summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.cvsignore30
-rw-r--r--config.h.in1456
-rwxr-xr-xconfigure30975
-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.0148
-rw-r--r--sftp-server.063
-rw-r--r--sftp.0319
-rw-r--r--ssh-add.0109
-rw-r--r--ssh-agent.0118
-rw-r--r--ssh-keygen.0434
-rw-r--r--ssh-keyscan.0107
-rw-r--r--ssh-keysign.042
-rw-r--r--ssh-pkcs11-helper.025
-rw-r--r--ssh-rand-helper.051
-rw-r--r--ssh.0880
-rw-r--r--ssh_config.0676
-rw-r--r--sshd.0617
-rw-r--r--sshd_config.0659
25 files changed, 36751 insertions, 39 deletions
diff --git a/.cvsignore b/.cvsignore
deleted file mode 100644
index 8dd3ddff9..000000000
--- a/.cvsignore
+++ /dev/null
@@ -1,30 +0,0 @@
1*.0
2*.out
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
25ssh-rand-helper
26ssh_prng_cmds
27sshd
28stamp-h.in
29survey
30survey.sh
diff --git a/config.h.in b/config.h.in
new file mode 100644
index 000000000..a43ad5711
--- /dev/null
+++ b/config.h.in
@@ -0,0 +1,1456 @@
1/* config.h.in. Generated from configure.ac by autoheader. */
2
3/* Define if you have a getaddrinfo that fails for the all-zeros IPv6 address
4 */
5#undef AIX_GETNAMEINFO_HACK
6
7/* Define if your AIX loginfailed() function takes 4 arguments (AIX >= 5.2) */
8#undef AIX_LOGINFAILED_4ARG
9
10/* System only supports IPv4 audit records */
11#undef AU_IPv4
12
13/* Define if your resolver libs need this for getrrsetbyname */
14#undef BIND_8_COMPAT
15
16/* Define if cmsg_type is not passed correctly */
17#undef BROKEN_CMSG_TYPE
18
19/* getaddrinfo is broken (if present) */
20#undef BROKEN_GETADDRINFO
21
22/* getgroups(0,NULL) will return -1 */
23#undef BROKEN_GETGROUPS
24
25/* FreeBSD glob does not do what we need */
26#undef BROKEN_GLOB
27
28/* Define if you system's inet_ntoa is busted (e.g. Irix gcc issue) */
29#undef BROKEN_INET_NTOA
30
31/* ia_uinfo routines not supported by OS yet */
32#undef BROKEN_LIBIAF
33
34/* Ultrix mmap can't map files */
35#undef BROKEN_MMAP
36
37/* Define if your struct dirent expects you to allocate extra space for d_name
38 */
39#undef BROKEN_ONE_BYTE_DIRENT_D_NAME
40
41/* Can't do comparisons on readv */
42#undef BROKEN_READV_COMPARISON
43
44/* Define if you have a broken realpath. */
45#undef BROKEN_REALPATH
46
47/* Needed for NeXT */
48#undef BROKEN_SAVED_UIDS
49
50/* Define if your setregid() is broken */
51#undef BROKEN_SETREGID
52
53/* Define if your setresgid() is broken */
54#undef BROKEN_SETRESGID
55
56/* Define if your setresuid() is broken */
57#undef BROKEN_SETRESUID
58
59/* Define if your setreuid() is broken */
60#undef BROKEN_SETREUID
61
62/* LynxOS has broken setvbuf() implementation */
63#undef BROKEN_SETVBUF
64
65/* QNX shadow support is broken */
66#undef BROKEN_SHADOW_EXPIRE
67
68/* Define if your snprintf is busted */
69#undef BROKEN_SNPRINTF
70
71/* tcgetattr with ICANON may hang */
72#undef BROKEN_TCGETATTR_ICANON
73
74/* updwtmpx is broken (if present) */
75#undef BROKEN_UPDWTMPX
76
77/* Define if you have BSD auth support */
78#undef BSD_AUTH
79
80/* Define if you want to specify the path to your lastlog file */
81#undef CONF_LASTLOG_FILE
82
83/* Define if you want to specify the path to your utmp file */
84#undef CONF_UTMP_FILE
85
86/* Define if you want to specify the path to your wtmpx file */
87#undef CONF_WTMPX_FILE
88
89/* Define if you want to specify the path to your wtmp file */
90#undef CONF_WTMP_FILE
91
92/* Define if your platform needs to skip post auth file descriptor passing */
93#undef DISABLE_FD_PASSING
94
95/* Define if you don't want to use lastlog */
96#undef DISABLE_LASTLOG
97
98/* Define if you don't want to use your system's login() call */
99#undef DISABLE_LOGIN
100
101/* Define if you don't want to use pututline() etc. to write [uw]tmp */
102#undef DISABLE_PUTUTLINE
103
104/* Define if you don't want to use pututxline() etc. to write [uw]tmpx */
105#undef DISABLE_PUTUTXLINE
106
107/* Define if you want to disable shadow passwords */
108#undef DISABLE_SHADOW
109
110/* Define if you don't want to use utmp */
111#undef DISABLE_UTMP
112
113/* Define if you don't want to use utmpx */
114#undef DISABLE_UTMPX
115
116/* Define if you don't want to use wtmp */
117#undef DISABLE_WTMP
118
119/* Define if you don't want to use wtmpx */
120#undef DISABLE_WTMPX
121
122/* Enable for PKCS#11 support */
123#undef ENABLE_PKCS11
124
125/* Builtin PRNG command timeout */
126#undef ENTROPY_TIMEOUT_MSEC
127
128/* fsid_t has member val */
129#undef FSID_HAS_VAL
130
131/* fsid_t has member __val */
132#undef FSID_HAS___VAL
133
134/* Define to 1 if the `getpgrp' function requires zero arguments. */
135#undef GETPGRP_VOID
136
137/* Conflicting defs for getspnam */
138#undef GETSPNAM_CONFLICTING_DEFS
139
140/* Define if your system glob() function has the GLOB_ALTDIRFUNC extension */
141#undef GLOB_HAS_ALTDIRFUNC
142
143/* Define if your system glob() function has gl_matchc options in glob_t */
144#undef GLOB_HAS_GL_MATCHC
145
146/* Define this if you want GSSAPI support in the version 2 protocol */
147#undef GSSAPI
148
149/* Define if you want to use shadow password expire field */
150#undef HAS_SHADOW_EXPIRE
151
152/* Define if your system uses access rights style file descriptor passing */
153#undef HAVE_ACCRIGHTS_IN_MSGHDR
154
155/* Define if you have ut_addr in utmp.h */
156#undef HAVE_ADDR_IN_UTMP
157
158/* Define if you have ut_addr in utmpx.h */
159#undef HAVE_ADDR_IN_UTMPX
160
161/* Define if you have ut_addr_v6 in utmp.h */
162#undef HAVE_ADDR_V6_IN_UTMP
163
164/* Define if you have ut_addr_v6 in utmpx.h */
165#undef HAVE_ADDR_V6_IN_UTMPX
166
167/* Define to 1 if you have the `arc4random' function. */
168#undef HAVE_ARC4RANDOM
169
170/* Define to 1 if you have the `arc4random_buf' function. */
171#undef HAVE_ARC4RANDOM_BUF
172
173/* Define to 1 if you have the `arc4random_uniform' function. */
174#undef HAVE_ARC4RANDOM_UNIFORM
175
176/* Define to 1 if you have the `asprintf' function. */
177#undef HAVE_ASPRINTF
178
179/* OpenBSD's gcc has bounded */
180#undef HAVE_ATTRIBUTE__BOUNDED__
181
182/* Have attribute nonnull */
183#undef HAVE_ATTRIBUTE__NONNULL__
184
185/* OpenBSD's gcc has sentinel */
186#undef HAVE_ATTRIBUTE__SENTINEL__
187
188/* Define to 1 if you have the `aug_get_machine' function. */
189#undef HAVE_AUG_GET_MACHINE
190
191/* Define to 1 if you have the `b64_ntop' function. */
192#undef HAVE_B64_NTOP
193
194/* Define to 1 if you have the `b64_pton' function. */
195#undef HAVE_B64_PTON
196
197/* Define if you have the basename function. */
198#undef HAVE_BASENAME
199
200/* Define to 1 if you have the `bcopy' function. */
201#undef HAVE_BCOPY
202
203/* Define to 1 if you have the `bindresvport_sa' function. */
204#undef HAVE_BINDRESVPORT_SA
205
206/* Define to 1 if you have the <bsm/audit.h> header file. */
207#undef HAVE_BSM_AUDIT_H
208
209/* Define to 1 if you have the <bstring.h> header file. */
210#undef HAVE_BSTRING_H
211
212/* Define to 1 if you have the `clock' function. */
213#undef HAVE_CLOCK
214
215/* define if you have clock_t data type */
216#undef HAVE_CLOCK_T
217
218/* Define to 1 if you have the `closefrom' function. */
219#undef HAVE_CLOSEFROM
220
221/* Define if gai_strerror() returns const char * */
222#undef HAVE_CONST_GAI_STRERROR_PROTO
223
224/* Define if your system uses ancillary data style file descriptor passing */
225#undef HAVE_CONTROL_IN_MSGHDR
226
227/* Define to 1 if you have the <crypto/sha2.h> header file. */
228#undef HAVE_CRYPTO_SHA2_H
229
230/* Define to 1 if you have the <crypt.h> header file. */
231#undef HAVE_CRYPT_H
232
233/* Define if you are on Cygwin */
234#undef HAVE_CYGWIN
235
236/* Define if your libraries define daemon() */
237#undef HAVE_DAEMON
238
239/* Define to 1 if you have the declaration of `authenticate', and to 0 if you
240 don't. */
241#undef HAVE_DECL_AUTHENTICATE
242
243/* Define to 1 if you have the declaration of `GLOB_NOMATCH', and to 0 if you
244 don't. */
245#undef HAVE_DECL_GLOB_NOMATCH
246
247/* Define to 1 if you have the declaration of `h_errno', and to 0 if you
248 don't. */
249#undef HAVE_DECL_H_ERRNO
250
251/* Define to 1 if you have the declaration of `loginfailed', and to 0 if you
252 don't. */
253#undef HAVE_DECL_LOGINFAILED
254
255/* Define to 1 if you have the declaration of `loginrestrictions', and to 0 if
256 you don't. */
257#undef HAVE_DECL_LOGINRESTRICTIONS
258
259/* Define to 1 if you have the declaration of `loginsuccess', and to 0 if you
260 don't. */
261#undef HAVE_DECL_LOGINSUCCESS
262
263/* Define to 1 if you have the declaration of `MAXSYMLINKS', and to 0 if you
264 don't. */
265#undef HAVE_DECL_MAXSYMLINKS
266
267/* Define to 1 if you have the declaration of `offsetof', and to 0 if you
268 don't. */
269#undef HAVE_DECL_OFFSETOF
270
271/* Define to 1 if you have the declaration of `O_NONBLOCK', and to 0 if you
272 don't. */
273#undef HAVE_DECL_O_NONBLOCK
274
275/* Define to 1 if you have the declaration of `passwdexpired', and to 0 if you
276 don't. */
277#undef HAVE_DECL_PASSWDEXPIRED
278
279/* Define to 1 if you have the declaration of `setauthdb', and to 0 if you
280 don't. */
281#undef HAVE_DECL_SETAUTHDB
282
283/* Define to 1 if you have the declaration of `SHUT_RD', and to 0 if you
284 don't. */
285#undef HAVE_DECL_SHUT_RD
286
287/* Define to 1 if you have the declaration of `writev', and to 0 if you don't.
288 */
289#undef HAVE_DECL_WRITEV
290
291/* Define to 1 if you have the declaration of `_getlong', and to 0 if you
292 don't. */
293#undef HAVE_DECL__GETLONG
294
295/* Define to 1 if you have the declaration of `_getshort', and to 0 if you
296 don't. */
297#undef HAVE_DECL__GETSHORT
298
299/* Define if you have /dev/ptmx */
300#undef HAVE_DEV_PTMX
301
302/* Define if you have /dev/ptc */
303#undef HAVE_DEV_PTS_AND_PTC
304
305/* Define to 1 if you have the <dirent.h> header file. */
306#undef HAVE_DIRENT_H
307
308/* Define to 1 if you have the `dirfd' function. */
309#undef HAVE_DIRFD
310
311/* Define to 1 if you have the `dirname' function. */
312#undef HAVE_DIRNAME
313
314/* Define to 1 if you have the <endian.h> header file. */
315#undef HAVE_ENDIAN_H
316
317/* Define to 1 if you have the `endutent' function. */
318#undef HAVE_ENDUTENT
319
320/* Define to 1 if you have the `endutxent' function. */
321#undef HAVE_ENDUTXENT
322
323/* Define if your system has /etc/default/login */
324#undef HAVE_ETC_DEFAULT_LOGIN
325
326/* Define to 1 if you have the `EVP_sha256' function. */
327#undef HAVE_EVP_SHA256
328
329/* Define if you have ut_exit in utmp.h */
330#undef HAVE_EXIT_IN_UTMP
331
332/* Define to 1 if you have the `fchmod' function. */
333#undef HAVE_FCHMOD
334
335/* Define to 1 if you have the `fchown' function. */
336#undef HAVE_FCHOWN
337
338/* Use F_CLOSEM fcntl for closefrom */
339#undef HAVE_FCNTL_CLOSEM
340
341/* Define to 1 if you have the <fcntl.h> header file. */
342#undef HAVE_FCNTL_H
343
344/* Define to 1 if you have the <features.h> header file. */
345#undef HAVE_FEATURES_H
346
347/* Define to 1 if you have the <floatingpoint.h> header file. */
348#undef HAVE_FLOATINGPOINT_H
349
350/* Define to 1 if you have the `fmt_scaled' function. */
351#undef HAVE_FMT_SCALED
352
353/* Define to 1 if you have the `freeaddrinfo' function. */
354#undef HAVE_FREEADDRINFO
355
356/* Define to 1 if the system has the type `fsblkcnt_t'. */
357#undef HAVE_FSBLKCNT_T
358
359/* Define to 1 if the system has the type `fsfilcnt_t'. */
360#undef HAVE_FSFILCNT_T
361
362/* Define to 1 if you have the `fstatvfs' function. */
363#undef HAVE_FSTATVFS
364
365/* Define to 1 if you have the `futimes' function. */
366#undef HAVE_FUTIMES
367
368/* Define to 1 if you have the `gai_strerror' function. */
369#undef HAVE_GAI_STRERROR
370
371/* Define to 1 if you have the `getaddrinfo' function. */
372#undef HAVE_GETADDRINFO
373
374/* Define to 1 if you have the `getaudit' function. */
375#undef HAVE_GETAUDIT
376
377/* Define to 1 if you have the `getaudit_addr' function. */
378#undef HAVE_GETAUDIT_ADDR
379
380/* Define to 1 if you have the `getcwd' function. */
381#undef HAVE_GETCWD
382
383/* Define to 1 if you have the `getgrouplist' function. */
384#undef HAVE_GETGROUPLIST
385
386/* Define to 1 if you have the `getgrset' function. */
387#undef HAVE_GETGRSET
388
389/* Define to 1 if you have the `getlastlogxbyname' function. */
390#undef HAVE_GETLASTLOGXBYNAME
391
392/* Define to 1 if you have the `getluid' function. */
393#undef HAVE_GETLUID
394
395/* Define to 1 if you have the `getnameinfo' function. */
396#undef HAVE_GETNAMEINFO
397
398/* Define to 1 if you have the `getopt' function. */
399#undef HAVE_GETOPT
400
401/* Define to 1 if you have the <getopt.h> header file. */
402#undef HAVE_GETOPT_H
403
404/* Define if your getopt(3) defines and uses optreset */
405#undef HAVE_GETOPT_OPTRESET
406
407/* Define if your libraries define getpagesize() */
408#undef HAVE_GETPAGESIZE
409
410/* Define to 1 if you have the `getpeereid' function. */
411#undef HAVE_GETPEEREID
412
413/* Define to 1 if you have the `getpeerucred' function. */
414#undef HAVE_GETPEERUCRED
415
416/* Define to 1 if you have the `getpwanam' function. */
417#undef HAVE_GETPWANAM
418
419/* Define to 1 if you have the `getrlimit' function. */
420#undef HAVE_GETRLIMIT
421
422/* Define if getrrsetbyname() exists */
423#undef HAVE_GETRRSETBYNAME
424
425/* Define to 1 if you have the `getrusage' function. */
426#undef HAVE_GETRUSAGE
427
428/* Define to 1 if you have the `getseuserbyname' function. */
429#undef HAVE_GETSEUSERBYNAME
430
431/* Define to 1 if you have the `gettimeofday' function. */
432#undef HAVE_GETTIMEOFDAY
433
434/* Define to 1 if you have the `getttyent' function. */
435#undef HAVE_GETTTYENT
436
437/* Define to 1 if you have the `getutent' function. */
438#undef HAVE_GETUTENT
439
440/* Define to 1 if you have the `getutid' function. */
441#undef HAVE_GETUTID
442
443/* Define to 1 if you have the `getutline' function. */
444#undef HAVE_GETUTLINE
445
446/* Define to 1 if you have the `getutxent' function. */
447#undef HAVE_GETUTXENT
448
449/* Define to 1 if you have the `getutxid' function. */
450#undef HAVE_GETUTXID
451
452/* Define to 1 if you have the `getutxline' function. */
453#undef HAVE_GETUTXLINE
454
455/* Define to 1 if you have the `getutxuser' function. */
456#undef HAVE_GETUTXUSER
457
458/* Define to 1 if you have the `get_default_context_with_level' function. */
459#undef HAVE_GET_DEFAULT_CONTEXT_WITH_LEVEL
460
461/* Define to 1 if you have the `glob' function. */
462#undef HAVE_GLOB
463
464/* Define to 1 if you have the <glob.h> header file. */
465#undef HAVE_GLOB_H
466
467/* Define to 1 if you have the `group_from_gid' function. */
468#undef HAVE_GROUP_FROM_GID
469
470/* Define to 1 if you have the <gssapi_generic.h> header file. */
471#undef HAVE_GSSAPI_GENERIC_H
472
473/* Define to 1 if you have the <gssapi/gssapi_generic.h> header file. */
474#undef HAVE_GSSAPI_GSSAPI_GENERIC_H
475
476/* Define to 1 if you have the <gssapi/gssapi.h> header file. */
477#undef HAVE_GSSAPI_GSSAPI_H
478
479/* Define to 1 if you have the <gssapi/gssapi_krb5.h> header file. */
480#undef HAVE_GSSAPI_GSSAPI_KRB5_H
481
482/* Define to 1 if you have the <gssapi.h> header file. */
483#undef HAVE_GSSAPI_H
484
485/* Define to 1 if you have the <gssapi_krb5.h> header file. */
486#undef HAVE_GSSAPI_KRB5_H
487
488/* Define if HEADER.ad exists in arpa/nameser.h */
489#undef HAVE_HEADER_AD
490
491/* Define if you have ut_host in utmp.h */
492#undef HAVE_HOST_IN_UTMP
493
494/* Define if you have ut_host in utmpx.h */
495#undef HAVE_HOST_IN_UTMPX
496
497/* Define to 1 if you have the <iaf.h> header file. */
498#undef HAVE_IAF_H
499
500/* Define to 1 if you have the <ia.h> header file. */
501#undef HAVE_IA_H
502
503/* Define if you have ut_id in utmp.h */
504#undef HAVE_ID_IN_UTMP
505
506/* Define if you have ut_id in utmpx.h */
507#undef HAVE_ID_IN_UTMPX
508
509/* Define to 1 if you have the `inet_aton' function. */
510#undef HAVE_INET_ATON
511
512/* Define to 1 if you have the `inet_ntoa' function. */
513#undef HAVE_INET_NTOA
514
515/* Define to 1 if you have the `inet_ntop' function. */
516#undef HAVE_INET_NTOP
517
518/* Define to 1 if you have the `innetgr' function. */
519#undef HAVE_INNETGR
520
521/* define if you have int64_t data type */
522#undef HAVE_INT64_T
523
524/* Define to 1 if you have the <inttypes.h> header file. */
525#undef HAVE_INTTYPES_H
526
527/* define if you have intxx_t data type */
528#undef HAVE_INTXX_T
529
530/* Define to 1 if the system has the type `in_addr_t'. */
531#undef HAVE_IN_ADDR_T
532
533/* Define to 1 if the system has the type `in_port_t'. */
534#undef HAVE_IN_PORT_T
535
536/* Define to 1 if you have the <lastlog.h> header file. */
537#undef HAVE_LASTLOG_H
538
539/* Define to 1 if you have the `bsm' library (-lbsm). */
540#undef HAVE_LIBBSM
541
542/* Define to 1 if you have the `crypt' library (-lcrypt). */
543#undef HAVE_LIBCRYPT
544
545/* Define to 1 if you have the `dl' library (-ldl). */
546#undef HAVE_LIBDL
547
548/* Define to 1 if you have the <libgen.h> header file. */
549#undef HAVE_LIBGEN_H
550
551/* Define if system has libiaf that supports set_id */
552#undef HAVE_LIBIAF
553
554/* Define to 1 if you have the `network' library (-lnetwork). */
555#undef HAVE_LIBNETWORK
556
557/* Define to 1 if you have the `nsl' library (-lnsl). */
558#undef HAVE_LIBNSL
559
560/* Define to 1 if you have the `pam' library (-lpam). */
561#undef HAVE_LIBPAM
562
563/* Define to 1 if you have the `socket' library (-lsocket). */
564#undef HAVE_LIBSOCKET
565
566/* Define to 1 if you have the <libutil.h> header file. */
567#undef HAVE_LIBUTIL_H
568
569/* Define to 1 if you have the `xnet' library (-lxnet). */
570#undef HAVE_LIBXNET
571
572/* Define to 1 if you have the `z' library (-lz). */
573#undef HAVE_LIBZ
574
575/* Define to 1 if you have the <limits.h> header file. */
576#undef HAVE_LIMITS_H
577
578/* Define to 1 if you have the <linux/if_tun.h> header file. */
579#undef HAVE_LINUX_IF_TUN_H
580
581/* Define if your libraries define login() */
582#undef HAVE_LOGIN
583
584/* Define to 1 if you have the <login_cap.h> header file. */
585#undef HAVE_LOGIN_CAP_H
586
587/* Define to 1 if you have the `login_getcapbool' function. */
588#undef HAVE_LOGIN_GETCAPBOOL
589
590/* Define to 1 if you have the <login.h> header file. */
591#undef HAVE_LOGIN_H
592
593/* Define to 1 if you have the `logout' function. */
594#undef HAVE_LOGOUT
595
596/* Define to 1 if you have the `logwtmp' function. */
597#undef HAVE_LOGWTMP
598
599/* Define to 1 if the system has the type `long double'. */
600#undef HAVE_LONG_DOUBLE
601
602/* Define to 1 if the system has the type `long long'. */
603#undef HAVE_LONG_LONG
604
605/* Define to 1 if you have the <maillock.h> header file. */
606#undef HAVE_MAILLOCK_H
607
608/* Define to 1 if you have the `md5_crypt' function. */
609#undef HAVE_MD5_CRYPT
610
611/* Define if you want to allow MD5 passwords */
612#undef HAVE_MD5_PASSWORDS
613
614/* Define to 1 if you have the `memmove' function. */
615#undef HAVE_MEMMOVE
616
617/* Define to 1 if you have the <memory.h> header file. */
618#undef HAVE_MEMORY_H
619
620/* Define to 1 if you have the `mkdtemp' function. */
621#undef HAVE_MKDTEMP
622
623/* Define to 1 if you have the `mmap' function. */
624#undef HAVE_MMAP
625
626/* define if you have mode_t data type */
627#undef HAVE_MODE_T
628
629/* Some systems put nanosleep outside of libc */
630#undef HAVE_NANOSLEEP
631
632/* Define to 1 if you have the <ndir.h> header file. */
633#undef HAVE_NDIR_H
634
635/* Define to 1 if you have the <netdb.h> header file. */
636#undef HAVE_NETDB_H
637
638/* Define to 1 if you have the <netgroup.h> header file. */
639#undef HAVE_NETGROUP_H
640
641/* Define to 1 if you have the <net/if_tun.h> header file. */
642#undef HAVE_NET_IF_TUN_H
643
644/* Define if you are on NeXT */
645#undef HAVE_NEXT
646
647/* Define to 1 if you have the `ngetaddrinfo' function. */
648#undef HAVE_NGETADDRINFO
649
650/* Define to 1 if you have the `nsleep' function. */
651#undef HAVE_NSLEEP
652
653/* Define to 1 if you have the `ogetaddrinfo' function. */
654#undef HAVE_OGETADDRINFO
655
656/* Define if you have an old version of PAM which takes only one argument to
657 pam_strerror */
658#undef HAVE_OLD_PAM
659
660/* Define to 1 if you have the `openlog_r' function. */
661#undef HAVE_OPENLOG_R
662
663/* Define to 1 if you have the `openpty' function. */
664#undef HAVE_OPENPTY
665
666/* Define if your ssl headers are included with #include <openssl/header.h> */
667#undef HAVE_OPENSSL
668
669/* Define if you have Digital Unix Security Integration Architecture */
670#undef HAVE_OSF_SIA
671
672/* Define to 1 if you have the `pam_getenvlist' function. */
673#undef HAVE_PAM_GETENVLIST
674
675/* Define to 1 if you have the <pam/pam_appl.h> header file. */
676#undef HAVE_PAM_PAM_APPL_H
677
678/* Define to 1 if you have the `pam_putenv' function. */
679#undef HAVE_PAM_PUTENV
680
681/* Define to 1 if you have the <paths.h> header file. */
682#undef HAVE_PATHS_H
683
684/* Define if you have ut_pid in utmp.h */
685#undef HAVE_PID_IN_UTMP
686
687/* define if you have pid_t data type */
688#undef HAVE_PID_T
689
690/* Define to 1 if you have the `poll' function. */
691#undef HAVE_POLL
692
693/* Define to 1 if you have the <poll.h> header file. */
694#undef HAVE_POLL_H
695
696/* Define to 1 if you have the `prctl' function. */
697#undef HAVE_PRCTL
698
699/* Define if you have /proc/$pid/fd */
700#undef HAVE_PROC_PID
701
702/* Define to 1 if you have the `pstat' function. */
703#undef HAVE_PSTAT
704
705/* Define to 1 if you have the <pty.h> header file. */
706#undef HAVE_PTY_H
707
708/* Define to 1 if you have the `pututline' function. */
709#undef HAVE_PUTUTLINE
710
711/* Define to 1 if you have the `pututxline' function. */
712#undef HAVE_PUTUTXLINE
713
714/* Define if your password has a pw_change field */
715#undef HAVE_PW_CHANGE_IN_PASSWD
716
717/* Define if your password has a pw_class field */
718#undef HAVE_PW_CLASS_IN_PASSWD
719
720/* Define if your password has a pw_expire field */
721#undef HAVE_PW_EXPIRE_IN_PASSWD
722
723/* Define to 1 if you have the `readpassphrase' function. */
724#undef HAVE_READPASSPHRASE
725
726/* Define to 1 if you have the <readpassphrase.h> header file. */
727#undef HAVE_READPASSPHRASE_H
728
729/* Define to 1 if you have the `realpath' function. */
730#undef HAVE_REALPATH
731
732/* Define to 1 if you have the `recvmsg' function. */
733#undef HAVE_RECVMSG
734
735/* Define to 1 if you have the <rpc/types.h> header file. */
736#undef HAVE_RPC_TYPES_H
737
738/* Define to 1 if you have the `rresvport_af' function. */
739#undef HAVE_RRESVPORT_AF
740
741/* define if you have sa_family_t data type */
742#undef HAVE_SA_FAMILY_T
743
744/* Define if you have SecureWare-based protected password database */
745#undef HAVE_SECUREWARE
746
747/* Define to 1 if you have the <security/pam_appl.h> header file. */
748#undef HAVE_SECURITY_PAM_APPL_H
749
750/* Define to 1 if you have the `sendmsg' function. */
751#undef HAVE_SENDMSG
752
753/* Define to 1 if you have the `setauthdb' function. */
754#undef HAVE_SETAUTHDB
755
756/* Define to 1 if you have the `setdtablesize' function. */
757#undef HAVE_SETDTABLESIZE
758
759/* Define to 1 if you have the `setegid' function. */
760#undef HAVE_SETEGID
761
762/* Define to 1 if you have the `setenv' function. */
763#undef HAVE_SETENV
764
765/* Define to 1 if you have the `seteuid' function. */
766#undef HAVE_SETEUID
767
768/* Define to 1 if you have the `setgroupent' function. */
769#undef HAVE_SETGROUPENT
770
771/* Define to 1 if you have the `setgroups' function. */
772#undef HAVE_SETGROUPS
773
774/* Define to 1 if you have the `setlogin' function. */
775#undef HAVE_SETLOGIN
776
777/* Define to 1 if you have the `setluid' function. */
778#undef HAVE_SETLUID
779
780/* Define to 1 if you have the `setpassent' function. */
781#undef HAVE_SETPASSENT
782
783/* Define to 1 if you have the `setpcred' function. */
784#undef HAVE_SETPCRED
785
786/* Define to 1 if you have the `setproctitle' function. */
787#undef HAVE_SETPROCTITLE
788
789/* Define to 1 if you have the `setregid' function. */
790#undef HAVE_SETREGID
791
792/* Define to 1 if you have the `setresgid' function. */
793#undef HAVE_SETRESGID
794
795/* Define to 1 if you have the `setresuid' function. */
796#undef HAVE_SETRESUID
797
798/* Define to 1 if you have the `setreuid' function. */
799#undef HAVE_SETREUID
800
801/* Define to 1 if you have the `setrlimit' function. */
802#undef HAVE_SETRLIMIT
803
804/* Define to 1 if you have the `setsid' function. */
805#undef HAVE_SETSID
806
807/* Define to 1 if you have the `setutent' function. */
808#undef HAVE_SETUTENT
809
810/* Define to 1 if you have the `setutxdb' function. */
811#undef HAVE_SETUTXDB
812
813/* Define to 1 if you have the `setutxent' function. */
814#undef HAVE_SETUTXENT
815
816/* Define to 1 if you have the `setvbuf' function. */
817#undef HAVE_SETVBUF
818
819/* Define to 1 if you have the `set_id' function. */
820#undef HAVE_SET_ID
821
822/* Define to 1 if you have the `SHA256_Update' function. */
823#undef HAVE_SHA256_UPDATE
824
825/* Define to 1 if you have the <sha2.h> header file. */
826#undef HAVE_SHA2_H
827
828/* Define to 1 if you have the <shadow.h> header file. */
829#undef HAVE_SHADOW_H
830
831/* Define to 1 if you have the `sigaction' function. */
832#undef HAVE_SIGACTION
833
834/* Define to 1 if you have the `sigvec' function. */
835#undef HAVE_SIGVEC
836
837/* Define to 1 if the system has the type `sig_atomic_t'. */
838#undef HAVE_SIG_ATOMIC_T
839
840/* define if you have size_t data type */
841#undef HAVE_SIZE_T
842
843/* Define to 1 if you have the `snprintf' function. */
844#undef HAVE_SNPRINTF
845
846/* Define to 1 if you have the `socketpair' function. */
847#undef HAVE_SOCKETPAIR
848
849/* Have PEERCRED socket option */
850#undef HAVE_SO_PEERCRED
851
852/* define if you have ssize_t data type */
853#undef HAVE_SSIZE_T
854
855/* Fields in struct sockaddr_storage */
856#undef HAVE_SS_FAMILY_IN_SS
857
858/* Define to 1 if you have the `statfs' function. */
859#undef HAVE_STATFS
860
861/* Define to 1 if you have the `statvfs' function. */
862#undef HAVE_STATVFS
863
864/* Define to 1 if you have the <stddef.h> header file. */
865#undef HAVE_STDDEF_H
866
867/* Define to 1 if you have the <stdint.h> header file. */
868#undef HAVE_STDINT_H
869
870/* Define to 1 if you have the <stdlib.h> header file. */
871#undef HAVE_STDLIB_H
872
873/* Define to 1 if you have the `strdup' function. */
874#undef HAVE_STRDUP
875
876/* Define to 1 if you have the `strerror' function. */
877#undef HAVE_STRERROR
878
879/* Define to 1 if you have the `strftime' function. */
880#undef HAVE_STRFTIME
881
882/* Silly mkstemp() */
883#undef HAVE_STRICT_MKSTEMP
884
885/* Define to 1 if you have the <strings.h> header file. */
886#undef HAVE_STRINGS_H
887
888/* Define to 1 if you have the <string.h> header file. */
889#undef HAVE_STRING_H
890
891/* Define to 1 if you have the `strlcat' function. */
892#undef HAVE_STRLCAT
893
894/* Define to 1 if you have the `strlcpy' function. */
895#undef HAVE_STRLCPY
896
897/* Define to 1 if you have the `strmode' function. */
898#undef HAVE_STRMODE
899
900/* Define to 1 if you have the `strnvis' function. */
901#undef HAVE_STRNVIS
902
903/* Define to 1 if you have the `strsep' function. */
904#undef HAVE_STRSEP
905
906/* Define to 1 if you have the `strtoll' function. */
907#undef HAVE_STRTOLL
908
909/* Define to 1 if you have the `strtonum' function. */
910#undef HAVE_STRTONUM
911
912/* Define to 1 if you have the `strtoul' function. */
913#undef HAVE_STRTOUL
914
915/* define if you have struct addrinfo data type */
916#undef HAVE_STRUCT_ADDRINFO
917
918/* define if you have struct in6_addr data type */
919#undef HAVE_STRUCT_IN6_ADDR
920
921/* define if you have struct sockaddr_in6 data type */
922#undef HAVE_STRUCT_SOCKADDR_IN6
923
924/* Define to 1 if `sin6_scope_id' is member of `struct sockaddr_in6'. */
925#undef HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID
926
927/* define if you have struct sockaddr_storage data type */
928#undef HAVE_STRUCT_SOCKADDR_STORAGE
929
930/* Define to 1 if `st_blksize' is member of `struct stat'. */
931#undef HAVE_STRUCT_STAT_ST_BLKSIZE
932
933/* Define to 1 if the system has the type `struct timespec'. */
934#undef HAVE_STRUCT_TIMESPEC
935
936/* define if you have struct timeval */
937#undef HAVE_STRUCT_TIMEVAL
938
939/* Define to 1 if you have the `swap32' function. */
940#undef HAVE_SWAP32
941
942/* Define to 1 if you have the `sysconf' function. */
943#undef HAVE_SYSCONF
944
945/* Define if you have syslen in utmpx.h */
946#undef HAVE_SYSLEN_IN_UTMPX
947
948/* Define to 1 if you have the <sys/audit.h> header file. */
949#undef HAVE_SYS_AUDIT_H
950
951/* Define to 1 if you have the <sys/bitypes.h> header file. */
952#undef HAVE_SYS_BITYPES_H
953
954/* Define to 1 if you have the <sys/bsdtty.h> header file. */
955#undef HAVE_SYS_BSDTTY_H
956
957/* Define to 1 if you have the <sys/cdefs.h> header file. */
958#undef HAVE_SYS_CDEFS_H
959
960/* Define to 1 if you have the <sys/dir.h> header file. */
961#undef HAVE_SYS_DIR_H
962
963/* Define if your system defines sys_errlist[] */
964#undef HAVE_SYS_ERRLIST
965
966/* Define to 1 if you have the <sys/mman.h> header file. */
967#undef HAVE_SYS_MMAN_H
968
969/* Define to 1 if you have the <sys/mount.h> header file. */
970#undef HAVE_SYS_MOUNT_H
971
972/* Define to 1 if you have the <sys/ndir.h> header file. */
973#undef HAVE_SYS_NDIR_H
974
975/* Define if your system defines sys_nerr */
976#undef HAVE_SYS_NERR
977
978/* Define to 1 if you have the <sys/poll.h> header file. */
979#undef HAVE_SYS_POLL_H
980
981/* Define to 1 if you have the <sys/prctl.h> header file. */
982#undef HAVE_SYS_PRCTL_H
983
984/* Define to 1 if you have the <sys/pstat.h> header file. */
985#undef HAVE_SYS_PSTAT_H
986
987/* Define to 1 if you have the <sys/ptms.h> header file. */
988#undef HAVE_SYS_PTMS_H
989
990/* Define to 1 if you have the <sys/select.h> header file. */
991#undef HAVE_SYS_SELECT_H
992
993/* Define to 1 if you have the <sys/statvfs.h> header file. */
994#undef HAVE_SYS_STATVFS_H
995
996/* Define to 1 if you have the <sys/stat.h> header file. */
997#undef HAVE_SYS_STAT_H
998
999/* Define to 1 if you have the <sys/stream.h> header file. */
1000#undef HAVE_SYS_STREAM_H
1001
1002/* Define to 1 if you have the <sys/stropts.h> header file. */
1003#undef HAVE_SYS_STROPTS_H
1004
1005/* Define to 1 if you have the <sys/strtio.h> header file. */
1006#undef HAVE_SYS_STRTIO_H
1007
1008/* Force use of sys/syslog.h on Ultrix */
1009#undef HAVE_SYS_SYSLOG_H
1010
1011/* Define to 1 if you have the <sys/sysmacros.h> header file. */
1012#undef HAVE_SYS_SYSMACROS_H
1013
1014/* Define to 1 if you have the <sys/timers.h> header file. */
1015#undef HAVE_SYS_TIMERS_H
1016
1017/* Define to 1 if you have the <sys/time.h> header file. */
1018#undef HAVE_SYS_TIME_H
1019
1020/* Define to 1 if you have the <sys/types.h> header file. */
1021#undef HAVE_SYS_TYPES_H
1022
1023/* Define to 1 if you have the <sys/un.h> header file. */
1024#undef HAVE_SYS_UN_H
1025
1026/* Define to 1 if you have the `tcgetpgrp' function. */
1027#undef HAVE_TCGETPGRP
1028
1029/* Define to 1 if you have the `tcsendbreak' function. */
1030#undef HAVE_TCSENDBREAK
1031
1032/* Define to 1 if you have the `time' function. */
1033#undef HAVE_TIME
1034
1035/* Define to 1 if you have the <time.h> header file. */
1036#undef HAVE_TIME_H
1037
1038/* Define if you have ut_time in utmp.h */
1039#undef HAVE_TIME_IN_UTMP
1040
1041/* Define if you have ut_time in utmpx.h */
1042#undef HAVE_TIME_IN_UTMPX
1043
1044/* Define to 1 if you have the <tmpdir.h> header file. */
1045#undef HAVE_TMPDIR_H
1046
1047/* Define to 1 if you have the `truncate' function. */
1048#undef HAVE_TRUNCATE
1049
1050/* Define to 1 if you have the <ttyent.h> header file. */
1051#undef HAVE_TTYENT_H
1052
1053/* Define if you have ut_tv in utmp.h */
1054#undef HAVE_TV_IN_UTMP
1055
1056/* Define if you have ut_tv in utmpx.h */
1057#undef HAVE_TV_IN_UTMPX
1058
1059/* Define if you have ut_type in utmp.h */
1060#undef HAVE_TYPE_IN_UTMP
1061
1062/* Define if you have ut_type in utmpx.h */
1063#undef HAVE_TYPE_IN_UTMPX
1064
1065/* Define to 1 if you have the <ucred.h> header file. */
1066#undef HAVE_UCRED_H
1067
1068/* define if you have uintxx_t data type */
1069#undef HAVE_UINTXX_T
1070
1071/* Define to 1 if you have the <unistd.h> header file. */
1072#undef HAVE_UNISTD_H
1073
1074/* Define to 1 if you have the `unsetenv' function. */
1075#undef HAVE_UNSETENV
1076
1077/* Define to 1 if the system has the type `unsigned long long'. */
1078#undef HAVE_UNSIGNED_LONG_LONG
1079
1080/* Define to 1 if you have the `updwtmp' function. */
1081#undef HAVE_UPDWTMP
1082
1083/* Define to 1 if you have the `updwtmpx' function. */
1084#undef HAVE_UPDWTMPX
1085
1086/* Define to 1 if you have the <usersec.h> header file. */
1087#undef HAVE_USERSEC_H
1088
1089/* Define to 1 if you have the `user_from_uid' function. */
1090#undef HAVE_USER_FROM_UID
1091
1092/* Define to 1 if you have the <util.h> header file. */
1093#undef HAVE_UTIL_H
1094
1095/* Define to 1 if you have the `utimes' function. */
1096#undef HAVE_UTIMES
1097
1098/* Define to 1 if you have the <utime.h> header file. */
1099#undef HAVE_UTIME_H
1100
1101/* Define to 1 if you have the `utmpname' function. */
1102#undef HAVE_UTMPNAME
1103
1104/* Define to 1 if you have the `utmpxname' function. */
1105#undef HAVE_UTMPXNAME
1106
1107/* Define to 1 if you have the <utmpx.h> header file. */
1108#undef HAVE_UTMPX_H
1109
1110/* Define to 1 if you have the <utmp.h> header file. */
1111#undef HAVE_UTMP_H
1112
1113/* define if you have u_char data type */
1114#undef HAVE_U_CHAR
1115
1116/* define if you have u_int data type */
1117#undef HAVE_U_INT
1118
1119/* define if you have u_int64_t data type */
1120#undef HAVE_U_INT64_T
1121
1122/* define if you have u_intxx_t data type */
1123#undef HAVE_U_INTXX_T
1124
1125/* Define to 1 if you have the `vasprintf' function. */
1126#undef HAVE_VASPRINTF
1127
1128/* Define if va_copy exists */
1129#undef HAVE_VA_COPY
1130
1131/* Define to 1 if you have the `vhangup' function. */
1132#undef HAVE_VHANGUP
1133
1134/* Define to 1 if you have the <vis.h> header file. */
1135#undef HAVE_VIS_H
1136
1137/* Define to 1 if you have the `vsnprintf' function. */
1138#undef HAVE_VSNPRINTF
1139
1140/* Define to 1 if you have the `waitpid' function. */
1141#undef HAVE_WAITPID
1142
1143/* Define to 1 if you have the `_getlong' function. */
1144#undef HAVE__GETLONG
1145
1146/* Define to 1 if you have the `_getpty' function. */
1147#undef HAVE__GETPTY
1148
1149/* Define to 1 if you have the `_getshort' function. */
1150#undef HAVE__GETSHORT
1151
1152/* Define if you have struct __res_state _res as an extern */
1153#undef HAVE__RES_EXTERN
1154
1155/* Define to 1 if you have the `__b64_ntop' function. */
1156#undef HAVE___B64_NTOP
1157
1158/* Define to 1 if you have the `__b64_pton' function. */
1159#undef HAVE___B64_PTON
1160
1161/* Define if compiler implements __FUNCTION__ */
1162#undef HAVE___FUNCTION__
1163
1164/* Define if libc defines __progname */
1165#undef HAVE___PROGNAME
1166
1167/* Fields in struct sockaddr_storage */
1168#undef HAVE___SS_FAMILY_IN_SS
1169
1170/* Define if __va_copy exists */
1171#undef HAVE___VA_COPY
1172
1173/* Define if compiler implements __func__ */
1174#undef HAVE___func__
1175
1176/* Define this if you are using the Heimdal version of Kerberos V5 */
1177#undef HEIMDAL
1178
1179/* Define if you need to use IP address instead of hostname in $DISPLAY */
1180#undef IPADDR_IN_DISPLAY
1181
1182/* Detect IPv4 in IPv6 mapped addresses and treat as IPv4 */
1183#undef IPV4_IN_IPV6
1184
1185/* Define if your system choked on IP TOS setting */
1186#undef IP_TOS_IS_BROKEN
1187
1188/* Define if you want Kerberos 5 support */
1189#undef KRB5
1190
1191/* Define if pututxline updates lastlog too */
1192#undef LASTLOG_WRITE_PUTUTXLINE
1193
1194/* Define if you want TCP Wrappers support */
1195#undef LIBWRAP
1196
1197/* Define to whatever link() returns for "not supported" if it doesn't return
1198 EOPNOTSUPP. */
1199#undef LINK_OPNOTSUPP_ERRNO
1200
1201/* Adjust Linux out-of-memory killer */
1202#undef LINUX_OOM_ADJUST
1203
1204/* max value of long long calculated by configure */
1205#undef LLONG_MAX
1206
1207/* min value of long long calculated by configure */
1208#undef LLONG_MIN
1209
1210/* Account locked with pw(1) */
1211#undef LOCKED_PASSWD_PREFIX
1212
1213/* String used in /etc/passwd to denote locked account */
1214#undef LOCKED_PASSWD_STRING
1215
1216/* String used in /etc/passwd to denote locked account */
1217#undef LOCKED_PASSWD_SUBSTR
1218
1219/* Some versions of /bin/login need the TERM supplied on the commandline */
1220#undef LOGIN_NEEDS_TERM
1221
1222/* Some systems need a utmpx entry for /bin/login to work */
1223#undef LOGIN_NEEDS_UTMPX
1224
1225/* Define if your login program cannot handle end of options ("--") */
1226#undef LOGIN_NO_ENDOPT
1227
1228/* If your header files don't define LOGIN_PROGRAM, then use this (detected)
1229 from environment and PATH */
1230#undef LOGIN_PROGRAM_FALLBACK
1231
1232/* Set this to your mail directory if you don't have maillock.h */
1233#undef MAIL_DIRECTORY
1234
1235/* Define on *nto-qnx systems */
1236#undef MISSING_FD_MASK
1237
1238/* Define on *nto-qnx systems */
1239#undef MISSING_HOWMANY
1240
1241/* Define on *nto-qnx systems */
1242#undef MISSING_NFDBITS
1243
1244/* Need setpgrp to acquire controlling tty */
1245#undef NEED_SETPGRP
1246
1247/* Define if the concept of ports only accessible to superusers isn't known */
1248#undef NO_IPPORT_RESERVED_CONCEPT
1249
1250/* Define if you don't want to use lastlog in session.c */
1251#undef NO_SSH_LASTLOG
1252
1253/* Define if X11 doesn't support AF_UNIX sockets on that system */
1254#undef NO_X11_UNIX_SOCKETS
1255
1256/* Define if EVP_DigestUpdate returns void */
1257#undef OPENSSL_EVP_DIGESTUPDATE_VOID
1258
1259/* libcrypto is missing AES 192 and 256 bit functions */
1260#undef OPENSSL_LOBOTOMISED_AES
1261
1262/* Define if you want OpenSSL's internally seeded PRNG only */
1263#undef OPENSSL_PRNG_ONLY
1264
1265/* Define to the address where bug reports for this package should be sent. */
1266#undef PACKAGE_BUGREPORT
1267
1268/* Define to the full name of this package. */
1269#undef PACKAGE_NAME
1270
1271/* Define to the full name and version of this package. */
1272#undef PACKAGE_STRING
1273
1274/* Define to the one symbol short name of this package. */
1275#undef PACKAGE_TARNAME
1276
1277/* Define to the version of this package. */
1278#undef PACKAGE_VERSION
1279
1280/* Define if you are using Solaris-derived PAM which passes pam_messages to
1281 the conversation function with an extra level of indirection */
1282#undef PAM_SUN_CODEBASE
1283
1284/* Work around problematic Linux PAM modules handling of PAM_TTY */
1285#undef PAM_TTY_KLUDGE
1286
1287/* must supply username to passwd */
1288#undef PASSWD_NEEDS_USERNAME
1289
1290/* Port number of PRNGD/EGD random number socket */
1291#undef PRNGD_PORT
1292
1293/* Location of PRNGD/EGD random number socket */
1294#undef PRNGD_SOCKET
1295
1296/* read(1) can return 0 for a non-closed fd */
1297#undef PTY_ZEROREAD
1298
1299/* Define if your platform breaks doing a seteuid before a setuid */
1300#undef SETEUID_BREAKS_SETUID
1301
1302/* The size of `char', as computed by sizeof. */
1303#undef SIZEOF_CHAR
1304
1305/* The size of `int', as computed by sizeof. */
1306#undef SIZEOF_INT
1307
1308/* The size of `long int', as computed by sizeof. */
1309#undef SIZEOF_LONG_INT
1310
1311/* The size of `long long int', as computed by sizeof. */
1312#undef SIZEOF_LONG_LONG_INT
1313
1314/* The size of `short int', as computed by sizeof. */
1315#undef SIZEOF_SHORT_INT
1316
1317/* Define if you want S/Key support */
1318#undef SKEY
1319
1320/* Define if your skeychallenge() function takes 4 arguments (NetBSD) */
1321#undef SKEYCHALLENGE_4ARG
1322
1323/* Define as const if snprintf() can declare const char *fmt */
1324#undef SNPRINTF_CONST
1325
1326/* Define to a Set Process Title type if your system is supported by
1327 bsd-setproctitle.c */
1328#undef SPT_TYPE
1329
1330/* Define if sshd somehow reacquires a controlling TTY after setsid() */
1331#undef SSHD_ACQUIRES_CTTY
1332
1333/* Define if pam_chauthtok wants real uid set to the unpriv'ed user */
1334#undef SSHPAM_CHAUTHTOK_NEEDS_RUID
1335
1336/* Use audit debugging module */
1337#undef SSH_AUDIT_EVENTS
1338
1339/* Windows is sensitive to read buffer size */
1340#undef SSH_IOBUFSZ
1341
1342/* non-privileged user for privilege separation */
1343#undef SSH_PRIVSEP_USER
1344
1345/* Use tunnel device compatibility to OpenBSD */
1346#undef SSH_TUN_COMPAT_AF
1347
1348/* Open tunnel devices the FreeBSD way */
1349#undef SSH_TUN_FREEBSD
1350
1351/* Open tunnel devices the Linux tun/tap way */
1352#undef SSH_TUN_LINUX
1353
1354/* No layer 2 tunnel support */
1355#undef SSH_TUN_NO_L2
1356
1357/* Open tunnel devices the OpenBSD way */
1358#undef SSH_TUN_OPENBSD
1359
1360/* Prepend the address family to IP tunnel traffic */
1361#undef SSH_TUN_PREPEND_AF
1362
1363/* Define to 1 if you have the ANSI C header files. */
1364#undef STDC_HEADERS
1365
1366/* Define if you want a different $PATH for the superuser */
1367#undef SUPERUSER_PATH
1368
1369/* syslog_r function is safe to use in in a signal handler */
1370#undef SYSLOG_R_SAFE_IN_SIGHAND
1371
1372/* Support passwords > 8 chars */
1373#undef UNIXWARE_LONG_PASSWORDS
1374
1375/* Specify default $PATH */
1376#undef USER_PATH
1377
1378/* Define this if you want to use libkafs' AFS support */
1379#undef USE_AFS
1380
1381/* Use BSM audit module */
1382#undef USE_BSM_AUDIT
1383
1384/* Use btmp to log bad logins */
1385#undef USE_BTMP
1386
1387/* Use libedit for sftp */
1388#undef USE_LIBEDIT
1389
1390/* Enable OpenSSL engine support */
1391#undef USE_OPENSSL_ENGINE
1392
1393/* Define if you want to enable PAM support */
1394#undef USE_PAM
1395
1396/* Use PIPES instead of a socketpair() */
1397#undef USE_PIPES
1398
1399/* Define if you have Solaris process contracts */
1400#undef USE_SOLARIS_PROCESS_CONTRACTS
1401
1402/* Define if you shouldn't strip 'tty' from your ttyname in [uw]tmp */
1403#undef WITH_ABBREV_NO_TTY
1404
1405/* Define if you want to enable AIX4's authenticate function */
1406#undef WITH_AIXAUTHENTICATE
1407
1408/* Define if you have/want arrays (cluster-wide session managment, not C
1409 arrays) */
1410#undef WITH_IRIX_ARRAY
1411
1412/* Define if you want IRIX audit trails */
1413#undef WITH_IRIX_AUDIT
1414
1415/* Define if you want IRIX kernel jobs */
1416#undef WITH_IRIX_JOBS
1417
1418/* Define if you want IRIX project management */
1419#undef WITH_IRIX_PROJECT
1420
1421/* Define if you want SELinux support. */
1422#undef WITH_SELINUX
1423
1424/* Define to 1 if your processor stores words with the most significant byte
1425 first (like Motorola and SPARC, unlike Intel and VAX). */
1426#undef WORDS_BIGENDIAN
1427
1428/* Define if xauth is found in your path */
1429#undef XAUTH_PATH
1430
1431/* Number of bits in a file offset, on hosts where this is settable. */
1432#undef _FILE_OFFSET_BITS
1433
1434/* Define for large files, on AIX-style hosts. */
1435#undef _LARGE_FILES
1436
1437/* log for bad login attempts */
1438#undef _PATH_BTMP
1439
1440/* Full path of your "passwd" program */
1441#undef _PATH_PASSWD_PROG
1442
1443/* Specify location of ssh.pid */
1444#undef _PATH_SSH_PIDDIR
1445
1446/* Define if we don't have struct __res_state in resolv.h */
1447#undef __res_state
1448
1449/* Define to `__inline__' or `__inline' if that's what the C compiler
1450 calls it, or to nothing if 'inline' is not supported under any name. */
1451#ifndef __cplusplus
1452#undef inline
1453#endif
1454
1455/* type to use in place of socklen_t if not defined */
1456#undef socklen_t
diff --git a/configure b/configure
new file mode 100755
index 000000000..5ebdb15c6
--- /dev/null
+++ b/configure
@@ -0,0 +1,30975 @@
1#! /bin/sh
2# From configure.ac Revision: 1.449 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.61 for OpenSSH Portable.
5#
6# Report bugs to <openssh-unix-dev@mindrot.org>.
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
15
16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28esac
29
30fi
31
32
33
34
35# PATH needs CR
36# Avoid depending upon Character Ranges.
37as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40as_cr_digits='0123456789'
41as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43# The user is always right.
44if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
52 fi
53 rm -f conf$$.sh
54fi
55
56# Support unset when possible.
57if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59else
60 as_unset=false
61fi
62
63
64# IFS
65# We need space, tab and new line, in precisely that order. Quoting is
66# there to prevent editors from complaining about space-tab.
67# (If _AS_PATH_WALK were called with IFS unset, it would disable word
68# splitting by setting IFS to empty value.)
69as_nl='
70'
71IFS=" "" $as_nl"
72
73# Find who we are. Look in the path if we contain no directory separator.
74case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77for as_dir in $PATH
78do
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82done
83IFS=$as_save_IFS
84
85 ;;
86esac
87# We did not find ourselves, most probably we were run as `sh COMMAND'
88# in which case we are not to be found in the path.
89if test "x$as_myself" = x; then
90 as_myself=$0
91fi
92if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
95fi
96
97# Work around bugs in pre-3.0 UWIN ksh.
98for as_var in ENV MAIL MAILPATH
99do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100done
101PS1='$ '
102PS2='> '
103PS4='+ '
104
105# NLS nuisances.
106for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
110do
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 fi
116done
117
118# Required to use basename.
119if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122else
123 as_expr=false
124fi
125
126if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128else
129 as_basename=false
130fi
131
132
133# Name of the executable.
134as_me=`$as_basename -- "$0" ||
135$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
141 q
142 }
143 /^X\/\(\/\/\)$/{
144 s//\1/
145 q
146 }
147 /^X\/\(\/\).*/{
148 s//\1/
149 q
150 }
151 s/.*/./; q'`
152
153# CDPATH.
154$as_unset CDPATH
155
156
157if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160else
161 as_have_required=no
162fi
163
164 if test $as_have_required = yes && (eval ":
165(as_func_return () {
166 (exit \$1)
167}
168as_func_success () {
169 as_func_return 0
170}
171as_func_failure () {
172 as_func_return 1
173}
174as_func_ret_success () {
175 return 0
176}
177as_func_ret_failure () {
178 return 1
179}
180
181exitcode=0
182if as_func_success; then
183 :
184else
185 exitcode=1
186 echo as_func_success failed.
187fi
188
189if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
192fi
193
194if as_func_ret_success; then
195 :
196else
197 exitcode=1
198 echo as_func_ret_success failed.
199fi
200
201if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
204fi
205
206if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 :
208else
209 exitcode=1
210 echo positional parameters were not saved.
211fi
212
213test \$exitcode = 0) || { (exit 1); exit 1; }
214
215(
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220") 2> /dev/null; then
221 :
222else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226do
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
230 /*)
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235done
236IFS=$as_save_IFS
237
238
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253esac
254
255fi
256
257
258:
259_ASEOF
260}; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274esac
275
276fi
277
278
279:
280(as_func_return () {
281 (exit $1)
282}
283as_func_success () {
284 as_func_return 0
285}
286as_func_failure () {
287 as_func_return 1
288}
289as_func_ret_success () {
290 return 0
291}
292as_func_ret_failure () {
293 return 1
294}
295
296exitcode=0
297if as_func_success; then
298 :
299else
300 exitcode=1
301 echo as_func_success failed.
302fi
303
304if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
307fi
308
309if as_func_ret_success; then
310 :
311else
312 exitcode=1
313 echo as_func_ret_success failed.
314fi
315
316if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
319fi
320
321if ( set x; as_func_ret_success y && test x = "$1" ); then
322 :
323else
324 exitcode=1
325 echo positional parameters were not saved.
326fi
327
328test $exitcode = 0) || { (exit 1); exit 1; }
329
330(
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336_ASEOF
337}; then
338 break
339fi
340
341fi
342
343 done
344
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351fi
352
353
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
360fi
361
362
363fi
364
365fi
366
367
368
369(eval "as_func_return () {
370 (exit \$1)
371}
372as_func_success () {
373 as_func_return 0
374}
375as_func_failure () {
376 as_func_return 1
377}
378as_func_ret_success () {
379 return 0
380}
381as_func_ret_failure () {
382 return 1
383}
384
385exitcode=0
386if as_func_success; then
387 :
388else
389 exitcode=1
390 echo as_func_success failed.
391fi
392
393if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
396fi
397
398if as_func_ret_success; then
399 :
400else
401 exitcode=1
402 echo as_func_ret_success failed.
403fi
404
405if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
408fi
409
410if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 :
412else
413 exitcode=1
414 echo positional parameters were not saved.
415fi
416
417test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
422}
423
424
425
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
442 p
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
448 b
449 :lineno
450 N
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
459
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
466}
467
468
469if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471else
472 as_dirname=false
473fi
474
475ECHO_C= ECHO_N= ECHO_T=
476case `echo -n x` in
477-n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
482*)
483 ECHO_N='-n';;
484esac
485
486if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489else
490 as_expr=false
491fi
492
493rm -f conf$$ conf$$.exe conf$$.file
494if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
499fi
500echo >conf$$.file
501if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511else
512 as_ln_s='cp -p'
513fi
514rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515rmdir conf$$.dir 2>/dev/null
516
517if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
522fi
523
524if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
531 fi
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
543 '
544fi
545as_executable_p=$as_test_x
546
547# Sed expression to map a string onto a valid CPP name.
548as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550# Sed expression to map a string onto a valid variable name.
551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555exec 7<&0 </dev/null 6>&1
556
557# Name of the host.
558# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559# so uname gets run too.
560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562#
563# Initializations.
564#
565ac_default_prefix=/usr/local
566ac_clean_files=
567ac_config_libobj_dir=.
568LIBOBJS=
569cross_compiling=no
570subdirs=
571MFLAGS=
572MAKEFLAGS=
573SHELL=${CONFIG_SHELL-/bin/sh}
574
575# Identity of this package.
576PACKAGE_NAME='OpenSSH'
577PACKAGE_TARNAME='openssh'
578PACKAGE_VERSION='Portable'
579PACKAGE_STRING='OpenSSH Portable'
580PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
581
582ac_unique_file="ssh.c"
583# Factoring default headers for most tests.
584ac_includes_default="\
585#include <stdio.h>
586#ifdef HAVE_SYS_TYPES_H
587# include <sys/types.h>
588#endif
589#ifdef HAVE_SYS_STAT_H
590# include <sys/stat.h>
591#endif
592#ifdef STDC_HEADERS
593# include <stdlib.h>
594# include <stddef.h>
595#else
596# ifdef HAVE_STDLIB_H
597# include <stdlib.h>
598# endif
599#endif
600#ifdef HAVE_STRING_H
601# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602# include <memory.h>
603# endif
604# include <string.h>
605#endif
606#ifdef HAVE_STRINGS_H
607# include <strings.h>
608#endif
609#ifdef HAVE_INTTYPES_H
610# include <inttypes.h>
611#endif
612#ifdef HAVE_STDINT_H
613# include <stdint.h>
614#endif
615#ifdef HAVE_UNISTD_H
616# include <unistd.h>
617#endif"
618
619ac_subst_vars='SHELL
620PATH_SEPARATOR
621PACKAGE_NAME
622PACKAGE_TARNAME
623PACKAGE_VERSION
624PACKAGE_STRING
625PACKAGE_BUGREPORT
626exec_prefix
627prefix
628program_transform_name
629bindir
630sbindir
631libexecdir
632datarootdir
633datadir
634sysconfdir
635sharedstatedir
636localstatedir
637includedir
638oldincludedir
639docdir
640infodir
641htmldir
642dvidir
643pdfdir
644psdir
645libdir
646localedir
647mandir
648DEFS
649ECHO_C
650ECHO_N
651ECHO_T
652LIBS
653build_alias
654host_alias
655target_alias
656CC
657CFLAGS
658LDFLAGS
659CPPFLAGS
660ac_ct_CC
661EXEEXT
662OBJEXT
663build
664build_cpu
665build_vendor
666build_os
667host
668host_cpu
669host_vendor
670host_os
671CPP
672GREP
673EGREP
674AWK
675RANLIB
676INSTALL_PROGRAM
677INSTALL_SCRIPT
678INSTALL_DATA
679AR
680CAT
681KILL
682PERL
683SED
684ENT
685TEST_MINUS_S_SH
686SH
687TEST_SHELL
688PATH_GROUPADD_PROG
689PATH_USERADD_PROG
690MAKE_PACKAGE_SUPPORTED
691STARTUP_SCRIPT_SHELL
692LOGIN_PROGRAM_FALLBACK
693PATH_PASSWD_PROG
694LD
695SSHDLIBS
696PKGCONFIG
697LIBEDIT
698INSTALL_SSH_RAND_HELPER
699SSH_PRIVSEP_USER
700PROG_LS
701PROG_NETSTAT
702PROG_ARP
703PROG_IFCONFIG
704PROG_JSTAT
705PROG_PS
706PROG_SAR
707PROG_W
708PROG_WHO
709PROG_LAST
710PROG_LASTLOG
711PROG_DF
712PROG_VMSTAT
713PROG_UPTIME
714PROG_IPCS
715PROG_TAIL
716INSTALL_SSH_PRNG_CMDS
717KRB5CONF
718PRIVSEP_PATH
719xauth_path
720STRIP_OPT
721XAUTH_PATH
722NROFF
723MANTYPE
724mansubdir
725user_path
726piddir
727TEST_SSH_IPV6
728LIBOBJS
729LTLIBOBJS'
730ac_subst_files=''
731 ac_precious_vars='build_alias
732host_alias
733target_alias
734CC
735CFLAGS
736LDFLAGS
737LIBS
738CPPFLAGS
739CPP'
740
741
742# Initialize some variables set by options.
743ac_init_help=
744ac_init_version=false
745# The variables have the same names as the options, with
746# dashes changed to underlines.
747cache_file=/dev/null
748exec_prefix=NONE
749no_create=
750no_recursion=
751prefix=NONE
752program_prefix=NONE
753program_suffix=NONE
754program_transform_name=s,x,x,
755silent=
756site=
757srcdir=
758verbose=
759x_includes=NONE
760x_libraries=NONE
761
762# Installation directory options.
763# These are left unexpanded so users can "make install exec_prefix=/foo"
764# and all the variables that are supposed to be based on exec_prefix
765# by default will actually change.
766# Use braces instead of parens because sh, perl, etc. also accept them.
767# (The list follows the same order as the GNU Coding Standards.)
768bindir='${exec_prefix}/bin'
769sbindir='${exec_prefix}/sbin'
770libexecdir='${exec_prefix}/libexec'
771datarootdir='${prefix}/share'
772datadir='${datarootdir}'
773sysconfdir='${prefix}/etc'
774sharedstatedir='${prefix}/com'
775localstatedir='${prefix}/var'
776includedir='${prefix}/include'
777oldincludedir='/usr/include'
778docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
779infodir='${datarootdir}/info'
780htmldir='${docdir}'
781dvidir='${docdir}'
782pdfdir='${docdir}'
783psdir='${docdir}'
784libdir='${exec_prefix}/lib'
785localedir='${datarootdir}/locale'
786mandir='${datarootdir}/man'
787
788ac_prev=
789ac_dashdash=
790for ac_option
791do
792 # If the previous option needs an argument, assign it.
793 if test -n "$ac_prev"; then
794 eval $ac_prev=\$ac_option
795 ac_prev=
796 continue
797 fi
798
799 case $ac_option in
800 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
801 *) ac_optarg=yes ;;
802 esac
803
804 # Accept the important Cygnus configure options, so we can diagnose typos.
805
806 case $ac_dashdash$ac_option in
807 --)
808 ac_dashdash=yes ;;
809
810 -bindir | --bindir | --bindi | --bind | --bin | --bi)
811 ac_prev=bindir ;;
812 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
813 bindir=$ac_optarg ;;
814
815 -build | --build | --buil | --bui | --bu)
816 ac_prev=build_alias ;;
817 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
818 build_alias=$ac_optarg ;;
819
820 -cache-file | --cache-file | --cache-fil | --cache-fi \
821 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
822 ac_prev=cache_file ;;
823 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
824 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
825 cache_file=$ac_optarg ;;
826
827 --config-cache | -C)
828 cache_file=config.cache ;;
829
830 -datadir | --datadir | --datadi | --datad)
831 ac_prev=datadir ;;
832 -datadir=* | --datadir=* | --datadi=* | --datad=*)
833 datadir=$ac_optarg ;;
834
835 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
836 | --dataroo | --dataro | --datar)
837 ac_prev=datarootdir ;;
838 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
839 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
840 datarootdir=$ac_optarg ;;
841
842 -disable-* | --disable-*)
843 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
844 # Reject names that are not valid shell variable names.
845 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
846 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
847 { (exit 1); exit 1; }; }
848 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
849 eval enable_$ac_feature=no ;;
850
851 -docdir | --docdir | --docdi | --doc | --do)
852 ac_prev=docdir ;;
853 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
854 docdir=$ac_optarg ;;
855
856 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
857 ac_prev=dvidir ;;
858 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
859 dvidir=$ac_optarg ;;
860
861 -enable-* | --enable-*)
862 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
863 # Reject names that are not valid shell variable names.
864 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
865 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
866 { (exit 1); exit 1; }; }
867 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
868 eval enable_$ac_feature=\$ac_optarg ;;
869
870 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
871 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
872 | --exec | --exe | --ex)
873 ac_prev=exec_prefix ;;
874 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
875 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
876 | --exec=* | --exe=* | --ex=*)
877 exec_prefix=$ac_optarg ;;
878
879 -gas | --gas | --ga | --g)
880 # Obsolete; use --with-gas.
881 with_gas=yes ;;
882
883 -help | --help | --hel | --he | -h)
884 ac_init_help=long ;;
885 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
886 ac_init_help=recursive ;;
887 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
888 ac_init_help=short ;;
889
890 -host | --host | --hos | --ho)
891 ac_prev=host_alias ;;
892 -host=* | --host=* | --hos=* | --ho=*)
893 host_alias=$ac_optarg ;;
894
895 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
896 ac_prev=htmldir ;;
897 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
898 | --ht=*)
899 htmldir=$ac_optarg ;;
900
901 -includedir | --includedir | --includedi | --included | --include \
902 | --includ | --inclu | --incl | --inc)
903 ac_prev=includedir ;;
904 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
905 | --includ=* | --inclu=* | --incl=* | --inc=*)
906 includedir=$ac_optarg ;;
907
908 -infodir | --infodir | --infodi | --infod | --info | --inf)
909 ac_prev=infodir ;;
910 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
911 infodir=$ac_optarg ;;
912
913 -libdir | --libdir | --libdi | --libd)
914 ac_prev=libdir ;;
915 -libdir=* | --libdir=* | --libdi=* | --libd=*)
916 libdir=$ac_optarg ;;
917
918 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
919 | --libexe | --libex | --libe)
920 ac_prev=libexecdir ;;
921 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
922 | --libexe=* | --libex=* | --libe=*)
923 libexecdir=$ac_optarg ;;
924
925 -localedir | --localedir | --localedi | --localed | --locale)
926 ac_prev=localedir ;;
927 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
928 localedir=$ac_optarg ;;
929
930 -localstatedir | --localstatedir | --localstatedi | --localstated \
931 | --localstate | --localstat | --localsta | --localst | --locals)
932 ac_prev=localstatedir ;;
933 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
934 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
935 localstatedir=$ac_optarg ;;
936
937 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
938 ac_prev=mandir ;;
939 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
940 mandir=$ac_optarg ;;
941
942 -nfp | --nfp | --nf)
943 # Obsolete; use --without-fp.
944 with_fp=no ;;
945
946 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
947 | --no-cr | --no-c | -n)
948 no_create=yes ;;
949
950 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
951 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
952 no_recursion=yes ;;
953
954 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
955 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
956 | --oldin | --oldi | --old | --ol | --o)
957 ac_prev=oldincludedir ;;
958 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
959 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
960 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
961 oldincludedir=$ac_optarg ;;
962
963 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
964 ac_prev=prefix ;;
965 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
966 prefix=$ac_optarg ;;
967
968 -program-prefix | --program-prefix | --program-prefi | --program-pref \
969 | --program-pre | --program-pr | --program-p)
970 ac_prev=program_prefix ;;
971 -program-prefix=* | --program-prefix=* | --program-prefi=* \
972 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
973 program_prefix=$ac_optarg ;;
974
975 -program-suffix | --program-suffix | --program-suffi | --program-suff \
976 | --program-suf | --program-su | --program-s)
977 ac_prev=program_suffix ;;
978 -program-suffix=* | --program-suffix=* | --program-suffi=* \
979 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
980 program_suffix=$ac_optarg ;;
981
982 -program-transform-name | --program-transform-name \
983 | --program-transform-nam | --program-transform-na \
984 | --program-transform-n | --program-transform- \
985 | --program-transform | --program-transfor \
986 | --program-transfo | --program-transf \
987 | --program-trans | --program-tran \
988 | --progr-tra | --program-tr | --program-t)
989 ac_prev=program_transform_name ;;
990 -program-transform-name=* | --program-transform-name=* \
991 | --program-transform-nam=* | --program-transform-na=* \
992 | --program-transform-n=* | --program-transform-=* \
993 | --program-transform=* | --program-transfor=* \
994 | --program-transfo=* | --program-transf=* \
995 | --program-trans=* | --program-tran=* \
996 | --progr-tra=* | --program-tr=* | --program-t=*)
997 program_transform_name=$ac_optarg ;;
998
999 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1000 ac_prev=pdfdir ;;
1001 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1002 pdfdir=$ac_optarg ;;
1003
1004 -psdir | --psdir | --psdi | --psd | --ps)
1005 ac_prev=psdir ;;
1006 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1007 psdir=$ac_optarg ;;
1008
1009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1010 | -silent | --silent | --silen | --sile | --sil)
1011 silent=yes ;;
1012
1013 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1014 ac_prev=sbindir ;;
1015 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1016 | --sbi=* | --sb=*)
1017 sbindir=$ac_optarg ;;
1018
1019 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1020 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1021 | --sharedst | --shareds | --shared | --share | --shar \
1022 | --sha | --sh)
1023 ac_prev=sharedstatedir ;;
1024 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1025 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1026 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1027 | --sha=* | --sh=*)
1028 sharedstatedir=$ac_optarg ;;
1029
1030 -site | --site | --sit)
1031 ac_prev=site ;;
1032 -site=* | --site=* | --sit=*)
1033 site=$ac_optarg ;;
1034
1035 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1036 ac_prev=srcdir ;;
1037 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1038 srcdir=$ac_optarg ;;
1039
1040 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1041 | --syscon | --sysco | --sysc | --sys | --sy)
1042 ac_prev=sysconfdir ;;
1043 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1044 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1045 sysconfdir=$ac_optarg ;;
1046
1047 -target | --target | --targe | --targ | --tar | --ta | --t)
1048 ac_prev=target_alias ;;
1049 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1050 target_alias=$ac_optarg ;;
1051
1052 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1053 verbose=yes ;;
1054
1055 -version | --version | --versio | --versi | --vers | -V)
1056 ac_init_version=: ;;
1057
1058 -with-* | --with-*)
1059 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1062 { echo "$as_me: error: invalid package name: $ac_package" >&2
1063 { (exit 1); exit 1; }; }
1064 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1065 eval with_$ac_package=\$ac_optarg ;;
1066
1067 -without-* | --without-*)
1068 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071 { echo "$as_me: error: invalid package name: $ac_package" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1074 eval with_$ac_package=no ;;
1075
1076 --x)
1077 # Obsolete; use --with-x.
1078 with_x=yes ;;
1079
1080 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1081 | --x-incl | --x-inc | --x-in | --x-i)
1082 ac_prev=x_includes ;;
1083 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1084 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1085 x_includes=$ac_optarg ;;
1086
1087 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1088 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1089 ac_prev=x_libraries ;;
1090 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1091 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1092 x_libraries=$ac_optarg ;;
1093
1094 -*) { echo "$as_me: error: unrecognized option: $ac_option
1095Try \`$0 --help' for more information." >&2
1096 { (exit 1); exit 1; }; }
1097 ;;
1098
1099 *=*)
1100 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1103 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1104 { (exit 1); exit 1; }; }
1105 eval $ac_envvar=\$ac_optarg
1106 export $ac_envvar ;;
1107
1108 *)
1109 # FIXME: should be removed in autoconf 3.0.
1110 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1111 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1112 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1113 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1114 ;;
1115
1116 esac
1117done
1118
1119if test -n "$ac_prev"; then
1120 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1121 { echo "$as_me: error: missing argument to $ac_option" >&2
1122 { (exit 1); exit 1; }; }
1123fi
1124
1125# Be sure to have absolute directory names.
1126for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1127 datadir sysconfdir sharedstatedir localstatedir includedir \
1128 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1129 libdir localedir mandir
1130do
1131 eval ac_val=\$$ac_var
1132 case $ac_val in
1133 [\\/$]* | ?:[\\/]* ) continue;;
1134 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1135 esac
1136 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1137 { (exit 1); exit 1; }; }
1138done
1139
1140# There might be people who depend on the old broken behavior: `$host'
1141# used to hold the argument of --host etc.
1142# FIXME: To remove some day.
1143build=$build_alias
1144host=$host_alias
1145target=$target_alias
1146
1147# FIXME: To remove some day.
1148if test "x$host_alias" != x; then
1149 if test "x$build_alias" = x; then
1150 cross_compiling=maybe
1151 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1152 If a cross compiler is detected then cross compile mode will be used." >&2
1153 elif test "x$build_alias" != "x$host_alias"; then
1154 cross_compiling=yes
1155 fi
1156fi
1157
1158ac_tool_prefix=
1159test -n "$host_alias" && ac_tool_prefix=$host_alias-
1160
1161test "$silent" = yes && exec 6>/dev/null
1162
1163
1164ac_pwd=`pwd` && test -n "$ac_pwd" &&
1165ac_ls_di=`ls -di .` &&
1166ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1167 { echo "$as_me: error: Working directory cannot be determined" >&2
1168 { (exit 1); exit 1; }; }
1169test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1170 { echo "$as_me: error: pwd does not report name of working directory" >&2
1171 { (exit 1); exit 1; }; }
1172
1173
1174# Find the source files, if location was not specified.
1175if test -z "$srcdir"; then
1176 ac_srcdir_defaulted=yes
1177 # Try the directory containing this script, then the parent directory.
1178 ac_confdir=`$as_dirname -- "$0" ||
1179$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1180 X"$0" : 'X\(//\)[^/]' \| \
1181 X"$0" : 'X\(//\)$' \| \
1182 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1183echo X"$0" |
1184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1185 s//\1/
1186 q
1187 }
1188 /^X\(\/\/\)[^/].*/{
1189 s//\1/
1190 q
1191 }
1192 /^X\(\/\/\)$/{
1193 s//\1/
1194 q
1195 }
1196 /^X\(\/\).*/{
1197 s//\1/
1198 q
1199 }
1200 s/.*/./; q'`
1201 srcdir=$ac_confdir
1202 if test ! -r "$srcdir/$ac_unique_file"; then
1203 srcdir=..
1204 fi
1205else
1206 ac_srcdir_defaulted=no
1207fi
1208if test ! -r "$srcdir/$ac_unique_file"; then
1209 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1210 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1211 { (exit 1); exit 1; }; }
1212fi
1213ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1214ac_abs_confdir=`(
1215 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1216 { (exit 1); exit 1; }; }
1217 pwd)`
1218# When building in place, set srcdir=.
1219if test "$ac_abs_confdir" = "$ac_pwd"; then
1220 srcdir=.
1221fi
1222# Remove unnecessary trailing slashes from srcdir.
1223# Double slashes in file names in object file debugging info
1224# mess up M-x gdb in Emacs.
1225case $srcdir in
1226*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1227esac
1228for ac_var in $ac_precious_vars; do
1229 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1230 eval ac_env_${ac_var}_value=\$${ac_var}
1231 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1232 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1233done
1234
1235#
1236# Report the --help message.
1237#
1238if test "$ac_init_help" = "long"; then
1239 # Omit some internal or obsolete options to make the list less imposing.
1240 # This message is too long to be a string in the A/UX 3.1 sh.
1241 cat <<_ACEOF
1242\`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1243
1244Usage: $0 [OPTION]... [VAR=VALUE]...
1245
1246To assign environment variables (e.g., CC, CFLAGS...), specify them as
1247VAR=VALUE. See below for descriptions of some of the useful variables.
1248
1249Defaults for the options are specified in brackets.
1250
1251Configuration:
1252 -h, --help display this help and exit
1253 --help=short display options specific to this package
1254 --help=recursive display the short help of all the included packages
1255 -V, --version display version information and exit
1256 -q, --quiet, --silent do not print \`checking...' messages
1257 --cache-file=FILE cache test results in FILE [disabled]
1258 -C, --config-cache alias for \`--cache-file=config.cache'
1259 -n, --no-create do not create output files
1260 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1261
1262Installation directories:
1263 --prefix=PREFIX install architecture-independent files in PREFIX
1264 [$ac_default_prefix]
1265 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1266 [PREFIX]
1267
1268By default, \`make install' will install all the files in
1269\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1270an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1271for instance \`--prefix=\$HOME'.
1272
1273For better control, use the options below.
1274
1275Fine tuning of the installation directories:
1276 --bindir=DIR user executables [EPREFIX/bin]
1277 --sbindir=DIR system admin executables [EPREFIX/sbin]
1278 --libexecdir=DIR program executables [EPREFIX/libexec]
1279 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1280 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1281 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1282 --libdir=DIR object code libraries [EPREFIX/lib]
1283 --includedir=DIR C header files [PREFIX/include]
1284 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1285 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1286 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1287 --infodir=DIR info documentation [DATAROOTDIR/info]
1288 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1289 --mandir=DIR man documentation [DATAROOTDIR/man]
1290 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh]
1291 --htmldir=DIR html documentation [DOCDIR]
1292 --dvidir=DIR dvi documentation [DOCDIR]
1293 --pdfdir=DIR pdf documentation [DOCDIR]
1294 --psdir=DIR ps documentation [DOCDIR]
1295_ACEOF
1296
1297 cat <<\_ACEOF
1298
1299System types:
1300 --build=BUILD configure for building on BUILD [guessed]
1301 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1302_ACEOF
1303fi
1304
1305if test -n "$ac_init_help"; then
1306 case $ac_init_help in
1307 short | recursive ) echo "Configuration of OpenSSH Portable:";;
1308 esac
1309 cat <<\_ACEOF
1310
1311Optional Features:
1312 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1313 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1314 --disable-largefile omit support for large files
1315 --disable-strip Disable calling strip(1) on install
1316 --disable-etc-default-login Disable using PATH from /etc/default/login no
1317 --disable-lastlog disable use of lastlog even if detected no
1318 --disable-utmp disable use of utmp even if detected no
1319 --disable-utmpx disable use of utmpx even if detected no
1320 --disable-wtmp disable use of wtmp even if detected no
1321 --disable-wtmpx disable use of wtmpx even if detected no
1322 --disable-libutil disable use of libutil (login() etc.) no
1323 --disable-pututline disable use of pututline() etc. (uwtmp) no
1324 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
1325
1326Optional Packages:
1327 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1328 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1329 --without-stackprotect Don't use compiler's stack protection
1330 --without-rpath Disable auto-added -R linker paths
1331 --with-cflags Specify additional flags to pass to compiler
1332 --with-cppflags Specify additional flags to pass to preprocessor
1333 --with-ldflags Specify additional flags to pass to linker
1334 --with-libs Specify additional libraries to link with
1335 --with-Werror Build main code with -Werror
1336 --with-solaris-contracts Enable Solaris process contracts (experimental)
1337 --with-osfsia Enable Digital Unix SIA
1338 --with-zlib=PATH Use zlib in PATH
1339 --without-zlib-version-check Disable zlib version check
1340 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
1341 --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH)
1342 --with-libedit[=PATH] Enable libedit support for sftp
1343 --with-audit=module Enable EXPERIMENTAL audit support (modules=debug,bsm)
1344 --with-ssl-dir=PATH Specify path to OpenSSL installation
1345 --without-openssl-header-check Disable OpenSSL version consistency check
1346 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1347 --with-pam Enable PAM support
1348 --with-rand-helper Use subprocess to gather strong randomness
1349 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1350 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1351 --with-entropy-timeout Specify entropy gathering command timeout (msec)
1352 --with-privsep-user=user Specify non-privileged user for privilege separation
1353 --with-selinux Enable SELinux support
1354 --with-kerberos5=PATH Enable Kerberos 5 support
1355 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1356 --with-xauth=PATH Specify path to xauth program
1357 --with-mantype=man|cat|doc Set man page type
1358 --with-md5-passwords Enable use of MD5 passwords
1359 --without-shadow Disable shadow password support
1360 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
1361 --with-default-path= Specify default \$PATH environment for server
1362 --with-superuser-path= Specify different path for super-user
1363 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1364 --with-bsd-auth Enable BSD auth support
1365 --with-pid-dir=PATH Specify location of ssh.pid file
1366 --with-lastlog=FILE|DIR specify lastlog location common locations
1367
1368Some influential environment variables:
1369 CC C compiler command
1370 CFLAGS C compiler flags
1371 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1372 nonstandard directory <lib dir>
1373 LIBS libraries to pass to the linker, e.g. -l<library>
1374 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1375 you have headers in a nonstandard directory <include dir>
1376 CPP C preprocessor
1377
1378Use these variables to override the choices made by `configure' or to help
1379it to find libraries and programs with nonstandard names/locations.
1380
1381Report bugs to <openssh-unix-dev@mindrot.org>.
1382_ACEOF
1383ac_status=$?
1384fi
1385
1386if test "$ac_init_help" = "recursive"; then
1387 # If there are subdirs, report their specific --help.
1388 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1389 test -d "$ac_dir" || continue
1390 ac_builddir=.
1391
1392case "$ac_dir" in
1393.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1394*)
1395 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1396 # A ".." for each directory in $ac_dir_suffix.
1397 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1398 case $ac_top_builddir_sub in
1399 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1400 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1401 esac ;;
1402esac
1403ac_abs_top_builddir=$ac_pwd
1404ac_abs_builddir=$ac_pwd$ac_dir_suffix
1405# for backward compatibility:
1406ac_top_builddir=$ac_top_build_prefix
1407
1408case $srcdir in
1409 .) # We are building in place.
1410 ac_srcdir=.
1411 ac_top_srcdir=$ac_top_builddir_sub
1412 ac_abs_top_srcdir=$ac_pwd ;;
1413 [\\/]* | ?:[\\/]* ) # Absolute name.
1414 ac_srcdir=$srcdir$ac_dir_suffix;
1415 ac_top_srcdir=$srcdir
1416 ac_abs_top_srcdir=$srcdir ;;
1417 *) # Relative name.
1418 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1419 ac_top_srcdir=$ac_top_build_prefix$srcdir
1420 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1421esac
1422ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1423
1424 cd "$ac_dir" || { ac_status=$?; continue; }
1425 # Check for guested configure.
1426 if test -f "$ac_srcdir/configure.gnu"; then
1427 echo &&
1428 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1429 elif test -f "$ac_srcdir/configure"; then
1430 echo &&
1431 $SHELL "$ac_srcdir/configure" --help=recursive
1432 else
1433 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1434 fi || ac_status=$?
1435 cd "$ac_pwd" || { ac_status=$?; break; }
1436 done
1437fi
1438
1439test -n "$ac_init_help" && exit $ac_status
1440if $ac_init_version; then
1441 cat <<\_ACEOF
1442OpenSSH configure Portable
1443generated by GNU Autoconf 2.61
1444
1445Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14462002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1447This configure script is free software; the Free Software Foundation
1448gives unlimited permission to copy, distribute and modify it.
1449_ACEOF
1450 exit
1451fi
1452cat >config.log <<_ACEOF
1453This file contains any messages produced by compilers while
1454running configure, to aid debugging if configure makes a mistake.
1455
1456It was created by OpenSSH $as_me Portable, which was
1457generated by GNU Autoconf 2.61. Invocation command line was
1458
1459 $ $0 $@
1460
1461_ACEOF
1462exec 5>>config.log
1463{
1464cat <<_ASUNAME
1465## --------- ##
1466## Platform. ##
1467## --------- ##
1468
1469hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1470uname -m = `(uname -m) 2>/dev/null || echo unknown`
1471uname -r = `(uname -r) 2>/dev/null || echo unknown`
1472uname -s = `(uname -s) 2>/dev/null || echo unknown`
1473uname -v = `(uname -v) 2>/dev/null || echo unknown`
1474
1475/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1476/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1477
1478/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1479/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1480/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1481/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1482/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1483/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1484/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1485
1486_ASUNAME
1487
1488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489for as_dir in $PATH
1490do
1491 IFS=$as_save_IFS
1492 test -z "$as_dir" && as_dir=.
1493 echo "PATH: $as_dir"
1494done
1495IFS=$as_save_IFS
1496
1497} >&5
1498
1499cat >&5 <<_ACEOF
1500
1501
1502## ----------- ##
1503## Core tests. ##
1504## ----------- ##
1505
1506_ACEOF
1507
1508
1509# Keep a trace of the command line.
1510# Strip out --no-create and --no-recursion so they do not pile up.
1511# Strip out --silent because we don't want to record it for future runs.
1512# Also quote any args containing shell meta-characters.
1513# Make two passes to allow for proper duplicate-argument suppression.
1514ac_configure_args=
1515ac_configure_args0=
1516ac_configure_args1=
1517ac_must_keep_next=false
1518for ac_pass in 1 2
1519do
1520 for ac_arg
1521 do
1522 case $ac_arg in
1523 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1524 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1525 | -silent | --silent | --silen | --sile | --sil)
1526 continue ;;
1527 *\'*)
1528 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1529 esac
1530 case $ac_pass in
1531 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1532 2)
1533 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1534 if test $ac_must_keep_next = true; then
1535 ac_must_keep_next=false # Got value, back to normal.
1536 else
1537 case $ac_arg in
1538 *=* | --config-cache | -C | -disable-* | --disable-* \
1539 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1540 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1541 | -with-* | --with-* | -without-* | --without-* | --x)
1542 case "$ac_configure_args0 " in
1543 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1544 esac
1545 ;;
1546 -* ) ac_must_keep_next=true ;;
1547 esac
1548 fi
1549 ac_configure_args="$ac_configure_args '$ac_arg'"
1550 ;;
1551 esac
1552 done
1553done
1554$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1555$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1556
1557# When interrupted or exit'd, cleanup temporary files, and complete
1558# config.log. We remove comments because anyway the quotes in there
1559# would cause problems or look ugly.
1560# WARNING: Use '\'' to represent an apostrophe within the trap.
1561# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1562trap 'exit_status=$?
1563 # Save into config.log some information that might help in debugging.
1564 {
1565 echo
1566
1567 cat <<\_ASBOX
1568## ---------------- ##
1569## Cache variables. ##
1570## ---------------- ##
1571_ASBOX
1572 echo
1573 # The following way of writing the cache mishandles newlines in values,
1574(
1575 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1576 eval ac_val=\$$ac_var
1577 case $ac_val in #(
1578 *${as_nl}*)
1579 case $ac_var in #(
1580 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1581echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1582 esac
1583 case $ac_var in #(
1584 _ | IFS | as_nl) ;; #(
1585 *) $as_unset $ac_var ;;
1586 esac ;;
1587 esac
1588 done
1589 (set) 2>&1 |
1590 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1591 *${as_nl}ac_space=\ *)
1592 sed -n \
1593 "s/'\''/'\''\\\\'\'''\''/g;
1594 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1595 ;; #(
1596 *)
1597 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1598 ;;
1599 esac |
1600 sort
1601)
1602 echo
1603
1604 cat <<\_ASBOX
1605## ----------------- ##
1606## Output variables. ##
1607## ----------------- ##
1608_ASBOX
1609 echo
1610 for ac_var in $ac_subst_vars
1611 do
1612 eval ac_val=\$$ac_var
1613 case $ac_val in
1614 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1615 esac
1616 echo "$ac_var='\''$ac_val'\''"
1617 done | sort
1618 echo
1619
1620 if test -n "$ac_subst_files"; then
1621 cat <<\_ASBOX
1622## ------------------- ##
1623## File substitutions. ##
1624## ------------------- ##
1625_ASBOX
1626 echo
1627 for ac_var in $ac_subst_files
1628 do
1629 eval ac_val=\$$ac_var
1630 case $ac_val in
1631 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1632 esac
1633 echo "$ac_var='\''$ac_val'\''"
1634 done | sort
1635 echo
1636 fi
1637
1638 if test -s confdefs.h; then
1639 cat <<\_ASBOX
1640## ----------- ##
1641## confdefs.h. ##
1642## ----------- ##
1643_ASBOX
1644 echo
1645 cat confdefs.h
1646 echo
1647 fi
1648 test "$ac_signal" != 0 &&
1649 echo "$as_me: caught signal $ac_signal"
1650 echo "$as_me: exit $exit_status"
1651 } >&5
1652 rm -f core *.core core.conftest.* &&
1653 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1654 exit $exit_status
1655' 0
1656for ac_signal in 1 2 13 15; do
1657 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1658done
1659ac_signal=0
1660
1661# confdefs.h avoids OS command line length limits that DEFS can exceed.
1662rm -f -r conftest* confdefs.h
1663
1664# Predefined preprocessor variables.
1665
1666cat >>confdefs.h <<_ACEOF
1667#define PACKAGE_NAME "$PACKAGE_NAME"
1668_ACEOF
1669
1670
1671cat >>confdefs.h <<_ACEOF
1672#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1673_ACEOF
1674
1675
1676cat >>confdefs.h <<_ACEOF
1677#define PACKAGE_VERSION "$PACKAGE_VERSION"
1678_ACEOF
1679
1680
1681cat >>confdefs.h <<_ACEOF
1682#define PACKAGE_STRING "$PACKAGE_STRING"
1683_ACEOF
1684
1685
1686cat >>confdefs.h <<_ACEOF
1687#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1688_ACEOF
1689
1690
1691# Let the site file select an alternate cache file if it wants to.
1692# Prefer explicitly selected file to automatically selected ones.
1693if test -n "$CONFIG_SITE"; then
1694 set x "$CONFIG_SITE"
1695elif test "x$prefix" != xNONE; then
1696 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1697else
1698 set x "$ac_default_prefix/share/config.site" \
1699 "$ac_default_prefix/etc/config.site"
1700fi
1701shift
1702for ac_site_file
1703do
1704 if test -r "$ac_site_file"; then
1705 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1706echo "$as_me: loading site script $ac_site_file" >&6;}
1707 sed 's/^/| /' "$ac_site_file" >&5
1708 . "$ac_site_file"
1709 fi
1710done
1711
1712if test -r "$cache_file"; then
1713 # Some versions of bash will fail to source /dev/null (special
1714 # files actually), so we avoid doing that.
1715 if test -f "$cache_file"; then
1716 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1717echo "$as_me: loading cache $cache_file" >&6;}
1718 case $cache_file in
1719 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1720 *) . "./$cache_file";;
1721 esac
1722 fi
1723else
1724 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1725echo "$as_me: creating cache $cache_file" >&6;}
1726 >$cache_file
1727fi
1728
1729# Check that the precious variables saved in the cache have kept the same
1730# value.
1731ac_cache_corrupted=false
1732for ac_var in $ac_precious_vars; do
1733 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1734 eval ac_new_set=\$ac_env_${ac_var}_set
1735 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1736 eval ac_new_val=\$ac_env_${ac_var}_value
1737 case $ac_old_set,$ac_new_set in
1738 set,)
1739 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1740echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1741 ac_cache_corrupted=: ;;
1742 ,set)
1743 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1744echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1745 ac_cache_corrupted=: ;;
1746 ,);;
1747 *)
1748 if test "x$ac_old_val" != "x$ac_new_val"; then
1749 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1750echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1751 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1752echo "$as_me: former value: $ac_old_val" >&2;}
1753 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1754echo "$as_me: current value: $ac_new_val" >&2;}
1755 ac_cache_corrupted=:
1756 fi;;
1757 esac
1758 # Pass precious variables to config.status.
1759 if test "$ac_new_set" = set; then
1760 case $ac_new_val in
1761 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1762 *) ac_arg=$ac_var=$ac_new_val ;;
1763 esac
1764 case " $ac_configure_args " in
1765 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1766 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1767 esac
1768 fi
1769done
1770if $ac_cache_corrupted; then
1771 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1772echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1773 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1774echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1775 { (exit 1); exit 1; }; }
1776fi
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802ac_ext=c
1803ac_cpp='$CPP $CPPFLAGS'
1804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1806ac_compiler_gnu=$ac_cv_c_compiler_gnu
1807
1808
1809
1810
1811
1812ac_config_headers="$ac_config_headers config.h"
1813
1814ac_ext=c
1815ac_cpp='$CPP $CPPFLAGS'
1816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1818ac_compiler_gnu=$ac_cv_c_compiler_gnu
1819if test -n "$ac_tool_prefix"; then
1820 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1821set dummy ${ac_tool_prefix}gcc; ac_word=$2
1822{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1824if test "${ac_cv_prog_CC+set}" = set; then
1825 echo $ECHO_N "(cached) $ECHO_C" >&6
1826else
1827 if test -n "$CC"; then
1828 ac_cv_prog_CC="$CC" # Let the user override the test.
1829else
1830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831for as_dir in $PATH
1832do
1833 IFS=$as_save_IFS
1834 test -z "$as_dir" && as_dir=.
1835 for ac_exec_ext in '' $ac_executable_extensions; do
1836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1837 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1839 break 2
1840 fi
1841done
1842done
1843IFS=$as_save_IFS
1844
1845fi
1846fi
1847CC=$ac_cv_prog_CC
1848if test -n "$CC"; then
1849 { echo "$as_me:$LINENO: result: $CC" >&5
1850echo "${ECHO_T}$CC" >&6; }
1851else
1852 { echo "$as_me:$LINENO: result: no" >&5
1853echo "${ECHO_T}no" >&6; }
1854fi
1855
1856
1857fi
1858if test -z "$ac_cv_prog_CC"; then
1859 ac_ct_CC=$CC
1860 # Extract the first word of "gcc", so it can be a program name with args.
1861set dummy gcc; ac_word=$2
1862{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1864if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1865 echo $ECHO_N "(cached) $ECHO_C" >&6
1866else
1867 if test -n "$ac_ct_CC"; then
1868 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1869else
1870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871for as_dir in $PATH
1872do
1873 IFS=$as_save_IFS
1874 test -z "$as_dir" && as_dir=.
1875 for ac_exec_ext in '' $ac_executable_extensions; do
1876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1877 ac_cv_prog_ac_ct_CC="gcc"
1878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879 break 2
1880 fi
1881done
1882done
1883IFS=$as_save_IFS
1884
1885fi
1886fi
1887ac_ct_CC=$ac_cv_prog_ac_ct_CC
1888if test -n "$ac_ct_CC"; then
1889 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1890echo "${ECHO_T}$ac_ct_CC" >&6; }
1891else
1892 { echo "$as_me:$LINENO: result: no" >&5
1893echo "${ECHO_T}no" >&6; }
1894fi
1895
1896 if test "x$ac_ct_CC" = x; then
1897 CC=""
1898 else
1899 case $cross_compiling:$ac_tool_warned in
1900yes:)
1901{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1902whose name does not start with the host triplet. If you think this
1903configuration is useful to you, please write to autoconf@gnu.org." >&5
1904echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1905whose name does not start with the host triplet. If you think this
1906configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1907ac_tool_warned=yes ;;
1908esac
1909 CC=$ac_ct_CC
1910 fi
1911else
1912 CC="$ac_cv_prog_CC"
1913fi
1914
1915if test -z "$CC"; then
1916 if test -n "$ac_tool_prefix"; then
1917 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1918set dummy ${ac_tool_prefix}cc; ac_word=$2
1919{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1921if test "${ac_cv_prog_CC+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1923else
1924 if test -n "$CC"; then
1925 ac_cv_prog_CC="$CC" # Let the user override the test.
1926else
1927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928for as_dir in $PATH
1929do
1930 IFS=$as_save_IFS
1931 test -z "$as_dir" && as_dir=.
1932 for ac_exec_ext in '' $ac_executable_extensions; do
1933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1934 ac_cv_prog_CC="${ac_tool_prefix}cc"
1935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936 break 2
1937 fi
1938done
1939done
1940IFS=$as_save_IFS
1941
1942fi
1943fi
1944CC=$ac_cv_prog_CC
1945if test -n "$CC"; then
1946 { echo "$as_me:$LINENO: result: $CC" >&5
1947echo "${ECHO_T}$CC" >&6; }
1948else
1949 { echo "$as_me:$LINENO: result: no" >&5
1950echo "${ECHO_T}no" >&6; }
1951fi
1952
1953
1954 fi
1955fi
1956if test -z "$CC"; then
1957 # Extract the first word of "cc", so it can be a program name with args.
1958set dummy cc; ac_word=$2
1959{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1961if test "${ac_cv_prog_CC+set}" = set; then
1962 echo $ECHO_N "(cached) $ECHO_C" >&6
1963else
1964 if test -n "$CC"; then
1965 ac_cv_prog_CC="$CC" # Let the user override the test.
1966else
1967 ac_prog_rejected=no
1968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969for as_dir in $PATH
1970do
1971 IFS=$as_save_IFS
1972 test -z "$as_dir" && as_dir=.
1973 for ac_exec_ext in '' $ac_executable_extensions; do
1974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1975 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1976 ac_prog_rejected=yes
1977 continue
1978 fi
1979 ac_cv_prog_CC="cc"
1980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981 break 2
1982 fi
1983done
1984done
1985IFS=$as_save_IFS
1986
1987if test $ac_prog_rejected = yes; then
1988 # We found a bogon in the path, so make sure we never use it.
1989 set dummy $ac_cv_prog_CC
1990 shift
1991 if test $# != 0; then
1992 # We chose a different compiler from the bogus one.
1993 # However, it has the same basename, so the bogon will be chosen
1994 # first if we set CC to just the basename; use the full file name.
1995 shift
1996 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1997 fi
1998fi
1999fi
2000fi
2001CC=$ac_cv_prog_CC
2002if test -n "$CC"; then
2003 { echo "$as_me:$LINENO: result: $CC" >&5
2004echo "${ECHO_T}$CC" >&6; }
2005else
2006 { echo "$as_me:$LINENO: result: no" >&5
2007echo "${ECHO_T}no" >&6; }
2008fi
2009
2010
2011fi
2012if test -z "$CC"; then
2013 if test -n "$ac_tool_prefix"; then
2014 for ac_prog in cl.exe
2015 do
2016 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2017set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2018{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2020if test "${ac_cv_prog_CC+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2022else
2023 if test -n "$CC"; then
2024 ac_cv_prog_CC="$CC" # Let the user override the test.
2025else
2026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027for as_dir in $PATH
2028do
2029 IFS=$as_save_IFS
2030 test -z "$as_dir" && as_dir=.
2031 for ac_exec_ext in '' $ac_executable_extensions; do
2032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2033 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2035 break 2
2036 fi
2037done
2038done
2039IFS=$as_save_IFS
2040
2041fi
2042fi
2043CC=$ac_cv_prog_CC
2044if test -n "$CC"; then
2045 { echo "$as_me:$LINENO: result: $CC" >&5
2046echo "${ECHO_T}$CC" >&6; }
2047else
2048 { echo "$as_me:$LINENO: result: no" >&5
2049echo "${ECHO_T}no" >&6; }
2050fi
2051
2052
2053 test -n "$CC" && break
2054 done
2055fi
2056if test -z "$CC"; then
2057 ac_ct_CC=$CC
2058 for ac_prog in cl.exe
2059do
2060 # Extract the first word of "$ac_prog", so it can be a program name with args.
2061set dummy $ac_prog; ac_word=$2
2062{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2064if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
2066else
2067 if test -n "$ac_ct_CC"; then
2068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2069else
2070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071for as_dir in $PATH
2072do
2073 IFS=$as_save_IFS
2074 test -z "$as_dir" && as_dir=.
2075 for ac_exec_ext in '' $ac_executable_extensions; do
2076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2077 ac_cv_prog_ac_ct_CC="$ac_prog"
2078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2079 break 2
2080 fi
2081done
2082done
2083IFS=$as_save_IFS
2084
2085fi
2086fi
2087ac_ct_CC=$ac_cv_prog_ac_ct_CC
2088if test -n "$ac_ct_CC"; then
2089 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2090echo "${ECHO_T}$ac_ct_CC" >&6; }
2091else
2092 { echo "$as_me:$LINENO: result: no" >&5
2093echo "${ECHO_T}no" >&6; }
2094fi
2095
2096
2097 test -n "$ac_ct_CC" && break
2098done
2099
2100 if test "x$ac_ct_CC" = x; then
2101 CC=""
2102 else
2103 case $cross_compiling:$ac_tool_warned in
2104yes:)
2105{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2106whose name does not start with the host triplet. If you think this
2107configuration is useful to you, please write to autoconf@gnu.org." >&5
2108echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2109whose name does not start with the host triplet. If you think this
2110configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2111ac_tool_warned=yes ;;
2112esac
2113 CC=$ac_ct_CC
2114 fi
2115fi
2116
2117fi
2118
2119
2120test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2121See \`config.log' for more details." >&5
2122echo "$as_me: error: no acceptable C compiler found in \$PATH
2123See \`config.log' for more details." >&2;}
2124 { (exit 1); exit 1; }; }
2125
2126# Provide some information about the compiler.
2127echo "$as_me:$LINENO: checking for C compiler version" >&5
2128ac_compiler=`set X $ac_compile; echo $2`
2129{ (ac_try="$ac_compiler --version >&5"
2130case "(($ac_try" in
2131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132 *) ac_try_echo=$ac_try;;
2133esac
2134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2135 (eval "$ac_compiler --version >&5") 2>&5
2136 ac_status=$?
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }
2139{ (ac_try="$ac_compiler -v >&5"
2140case "(($ac_try" in
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2143esac
2144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2145 (eval "$ac_compiler -v >&5") 2>&5
2146 ac_status=$?
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }
2149{ (ac_try="$ac_compiler -V >&5"
2150case "(($ac_try" in
2151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2152 *) ac_try_echo=$ac_try;;
2153esac
2154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2155 (eval "$ac_compiler -V >&5") 2>&5
2156 ac_status=$?
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }
2159
2160cat >conftest.$ac_ext <<_ACEOF
2161/* confdefs.h. */
2162_ACEOF
2163cat confdefs.h >>conftest.$ac_ext
2164cat >>conftest.$ac_ext <<_ACEOF
2165/* end confdefs.h. */
2166
2167int
2168main ()
2169{
2170
2171 ;
2172 return 0;
2173}
2174_ACEOF
2175ac_clean_files_save=$ac_clean_files
2176ac_clean_files="$ac_clean_files a.out a.exe b.out"
2177# Try to create an executable without -o first, disregard a.out.
2178# It will help us diagnose broken compilers, and finding out an intuition
2179# of exeext.
2180{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2181echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2182ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2183#
2184# List of possible output files, starting from the most likely.
2185# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2186# only as a last resort. b.out is created by i960 compilers.
2187ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2188#
2189# The IRIX 6 linker writes into existing files which may not be
2190# executable, retaining their permissions. Remove them first so a
2191# subsequent execution test works.
2192ac_rmfiles=
2193for ac_file in $ac_files
2194do
2195 case $ac_file in
2196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2197 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2198 esac
2199done
2200rm -f $ac_rmfiles
2201
2202if { (ac_try="$ac_link_default"
2203case "(($ac_try" in
2204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2205 *) ac_try_echo=$ac_try;;
2206esac
2207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2208 (eval "$ac_link_default") 2>&5
2209 ac_status=$?
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }; then
2212 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2213# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2214# in a Makefile. We should not override ac_cv_exeext if it was cached,
2215# so that the user can short-circuit this test for compilers unknown to
2216# Autoconf.
2217for ac_file in $ac_files ''
2218do
2219 test -f "$ac_file" || continue
2220 case $ac_file in
2221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2222 ;;
2223 [ab].out )
2224 # We found the default executable, but exeext='' is most
2225 # certainly right.
2226 break;;
2227 *.* )
2228 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2229 then :; else
2230 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2231 fi
2232 # We set ac_cv_exeext here because the later test for it is not
2233 # safe: cross compilers may not add the suffix if given an `-o'
2234 # argument, so we may need to know it at that point already.
2235 # Even if this section looks crufty: it has the advantage of
2236 # actually working.
2237 break;;
2238 * )
2239 break;;
2240 esac
2241done
2242test "$ac_cv_exeext" = no && ac_cv_exeext=
2243
2244else
2245 ac_file=''
2246fi
2247
2248{ echo "$as_me:$LINENO: result: $ac_file" >&5
2249echo "${ECHO_T}$ac_file" >&6; }
2250if test -z "$ac_file"; then
2251 echo "$as_me: failed program was:" >&5
2252sed 's/^/| /' conftest.$ac_ext >&5
2253
2254{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2255See \`config.log' for more details." >&5
2256echo "$as_me: error: C compiler cannot create executables
2257See \`config.log' for more details." >&2;}
2258 { (exit 77); exit 77; }; }
2259fi
2260
2261ac_exeext=$ac_cv_exeext
2262
2263# Check that the compiler produces executables we can run. If not, either
2264# the compiler is broken, or we cross compile.
2265{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2266echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2267# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2268# If not cross compiling, check that we can run a simple program.
2269if test "$cross_compiling" != yes; then
2270 if { ac_try='./$ac_file'
2271 { (case "(($ac_try" in
2272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2273 *) ac_try_echo=$ac_try;;
2274esac
2275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2276 (eval "$ac_try") 2>&5
2277 ac_status=$?
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; }; then
2280 cross_compiling=no
2281 else
2282 if test "$cross_compiling" = maybe; then
2283 cross_compiling=yes
2284 else
2285 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2286If you meant to cross compile, use \`--host'.
2287See \`config.log' for more details." >&5
2288echo "$as_me: error: cannot run C compiled programs.
2289If you meant to cross compile, use \`--host'.
2290See \`config.log' for more details." >&2;}
2291 { (exit 1); exit 1; }; }
2292 fi
2293 fi
2294fi
2295{ echo "$as_me:$LINENO: result: yes" >&5
2296echo "${ECHO_T}yes" >&6; }
2297
2298rm -f a.out a.exe conftest$ac_cv_exeext b.out
2299ac_clean_files=$ac_clean_files_save
2300# Check that the compiler produces executables we can run. If not, either
2301# the compiler is broken, or we cross compile.
2302{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2303echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2304{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2305echo "${ECHO_T}$cross_compiling" >&6; }
2306
2307{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2308echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2309if { (ac_try="$ac_link"
2310case "(($ac_try" in
2311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2312 *) ac_try_echo=$ac_try;;
2313esac
2314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2315 (eval "$ac_link") 2>&5
2316 ac_status=$?
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }; then
2319 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2320# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2321# work properly (i.e., refer to `conftest.exe'), while it won't with
2322# `rm'.
2323for ac_file in conftest.exe conftest conftest.*; do
2324 test -f "$ac_file" || continue
2325 case $ac_file in
2326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2327 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2328 break;;
2329 * ) break;;
2330 esac
2331done
2332else
2333 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2334See \`config.log' for more details." >&5
2335echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2336See \`config.log' for more details." >&2;}
2337 { (exit 1); exit 1; }; }
2338fi
2339
2340rm -f conftest$ac_cv_exeext
2341{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2342echo "${ECHO_T}$ac_cv_exeext" >&6; }
2343
2344rm -f conftest.$ac_ext
2345EXEEXT=$ac_cv_exeext
2346ac_exeext=$EXEEXT
2347{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2348echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2349if test "${ac_cv_objext+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2351else
2352 cat >conftest.$ac_ext <<_ACEOF
2353/* confdefs.h. */
2354_ACEOF
2355cat confdefs.h >>conftest.$ac_ext
2356cat >>conftest.$ac_ext <<_ACEOF
2357/* end confdefs.h. */
2358
2359int
2360main ()
2361{
2362
2363 ;
2364 return 0;
2365}
2366_ACEOF
2367rm -f conftest.o conftest.obj
2368if { (ac_try="$ac_compile"
2369case "(($ac_try" in
2370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2371 *) ac_try_echo=$ac_try;;
2372esac
2373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2374 (eval "$ac_compile") 2>&5
2375 ac_status=$?
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }; then
2378 for ac_file in conftest.o conftest.obj conftest.*; do
2379 test -f "$ac_file" || continue;
2380 case $ac_file in
2381 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2382 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2383 break;;
2384 esac
2385done
2386else
2387 echo "$as_me: failed program was:" >&5
2388sed 's/^/| /' conftest.$ac_ext >&5
2389
2390{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2391See \`config.log' for more details." >&5
2392echo "$as_me: error: cannot compute suffix of object files: cannot compile
2393See \`config.log' for more details." >&2;}
2394 { (exit 1); exit 1; }; }
2395fi
2396
2397rm -f conftest.$ac_cv_objext conftest.$ac_ext
2398fi
2399{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2400echo "${ECHO_T}$ac_cv_objext" >&6; }
2401OBJEXT=$ac_cv_objext
2402ac_objext=$OBJEXT
2403{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2404echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2405if test "${ac_cv_c_compiler_gnu+set}" = set; then
2406 echo $ECHO_N "(cached) $ECHO_C" >&6
2407else
2408 cat >conftest.$ac_ext <<_ACEOF
2409/* confdefs.h. */
2410_ACEOF
2411cat confdefs.h >>conftest.$ac_ext
2412cat >>conftest.$ac_ext <<_ACEOF
2413/* end confdefs.h. */
2414
2415int
2416main ()
2417{
2418#ifndef __GNUC__
2419 choke me
2420#endif
2421
2422 ;
2423 return 0;
2424}
2425_ACEOF
2426rm -f conftest.$ac_objext
2427if { (ac_try="$ac_compile"
2428case "(($ac_try" in
2429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2430 *) ac_try_echo=$ac_try;;
2431esac
2432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2433 (eval "$ac_compile") 2>conftest.er1
2434 ac_status=$?
2435 grep -v '^ *+' conftest.er1 >conftest.err
2436 rm -f conftest.er1
2437 cat conftest.err >&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); } && {
2440 test -z "$ac_c_werror_flag" ||
2441 test ! -s conftest.err
2442 } && test -s conftest.$ac_objext; then
2443 ac_compiler_gnu=yes
2444else
2445 echo "$as_me: failed program was:" >&5
2446sed 's/^/| /' conftest.$ac_ext >&5
2447
2448 ac_compiler_gnu=no
2449fi
2450
2451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452ac_cv_c_compiler_gnu=$ac_compiler_gnu
2453
2454fi
2455{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2456echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2457GCC=`test $ac_compiler_gnu = yes && echo yes`
2458ac_test_CFLAGS=${CFLAGS+set}
2459ac_save_CFLAGS=$CFLAGS
2460{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2461echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2462if test "${ac_cv_prog_cc_g+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2464else
2465 ac_save_c_werror_flag=$ac_c_werror_flag
2466 ac_c_werror_flag=yes
2467 ac_cv_prog_cc_g=no
2468 CFLAGS="-g"
2469 cat >conftest.$ac_ext <<_ACEOF
2470/* confdefs.h. */
2471_ACEOF
2472cat confdefs.h >>conftest.$ac_ext
2473cat >>conftest.$ac_ext <<_ACEOF
2474/* end confdefs.h. */
2475
2476int
2477main ()
2478{
2479
2480 ;
2481 return 0;
2482}
2483_ACEOF
2484rm -f conftest.$ac_objext
2485if { (ac_try="$ac_compile"
2486case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2489esac
2490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_compile") 2>conftest.er1
2492 ac_status=$?
2493 grep -v '^ *+' conftest.er1 >conftest.err
2494 rm -f conftest.er1
2495 cat conftest.err >&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); } && {
2498 test -z "$ac_c_werror_flag" ||
2499 test ! -s conftest.err
2500 } && test -s conftest.$ac_objext; then
2501 ac_cv_prog_cc_g=yes
2502else
2503 echo "$as_me: failed program was:" >&5
2504sed 's/^/| /' conftest.$ac_ext >&5
2505
2506 CFLAGS=""
2507 cat >conftest.$ac_ext <<_ACEOF
2508/* confdefs.h. */
2509_ACEOF
2510cat confdefs.h >>conftest.$ac_ext
2511cat >>conftest.$ac_ext <<_ACEOF
2512/* end confdefs.h. */
2513
2514int
2515main ()
2516{
2517
2518 ;
2519 return 0;
2520}
2521_ACEOF
2522rm -f conftest.$ac_objext
2523if { (ac_try="$ac_compile"
2524case "(($ac_try" in
2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526 *) ac_try_echo=$ac_try;;
2527esac
2528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2529 (eval "$ac_compile") 2>conftest.er1
2530 ac_status=$?
2531 grep -v '^ *+' conftest.er1 >conftest.err
2532 rm -f conftest.er1
2533 cat conftest.err >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); } && {
2536 test -z "$ac_c_werror_flag" ||
2537 test ! -s conftest.err
2538 } && test -s conftest.$ac_objext; then
2539 :
2540else
2541 echo "$as_me: failed program was:" >&5
2542sed 's/^/| /' conftest.$ac_ext >&5
2543
2544 ac_c_werror_flag=$ac_save_c_werror_flag
2545 CFLAGS="-g"
2546 cat >conftest.$ac_ext <<_ACEOF
2547/* confdefs.h. */
2548_ACEOF
2549cat confdefs.h >>conftest.$ac_ext
2550cat >>conftest.$ac_ext <<_ACEOF
2551/* end confdefs.h. */
2552
2553int
2554main ()
2555{
2556
2557 ;
2558 return 0;
2559}
2560_ACEOF
2561rm -f conftest.$ac_objext
2562if { (ac_try="$ac_compile"
2563case "(($ac_try" in
2564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565 *) ac_try_echo=$ac_try;;
2566esac
2567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2568 (eval "$ac_compile") 2>conftest.er1
2569 ac_status=$?
2570 grep -v '^ *+' conftest.er1 >conftest.err
2571 rm -f conftest.er1
2572 cat conftest.err >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); } && {
2575 test -z "$ac_c_werror_flag" ||
2576 test ! -s conftest.err
2577 } && test -s conftest.$ac_objext; then
2578 ac_cv_prog_cc_g=yes
2579else
2580 echo "$as_me: failed program was:" >&5
2581sed 's/^/| /' conftest.$ac_ext >&5
2582
2583
2584fi
2585
2586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2587fi
2588
2589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2590fi
2591
2592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2593 ac_c_werror_flag=$ac_save_c_werror_flag
2594fi
2595{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2596echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2597if test "$ac_test_CFLAGS" = set; then
2598 CFLAGS=$ac_save_CFLAGS
2599elif test $ac_cv_prog_cc_g = yes; then
2600 if test "$GCC" = yes; then
2601 CFLAGS="-g -O2"
2602 else
2603 CFLAGS="-g"
2604 fi
2605else
2606 if test "$GCC" = yes; then
2607 CFLAGS="-O2"
2608 else
2609 CFLAGS=
2610 fi
2611fi
2612{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2613echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2614if test "${ac_cv_prog_cc_c89+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2616else
2617 ac_cv_prog_cc_c89=no
2618ac_save_CC=$CC
2619cat >conftest.$ac_ext <<_ACEOF
2620/* confdefs.h. */
2621_ACEOF
2622cat confdefs.h >>conftest.$ac_ext
2623cat >>conftest.$ac_ext <<_ACEOF
2624/* end confdefs.h. */
2625#include <stdarg.h>
2626#include <stdio.h>
2627#include <sys/types.h>
2628#include <sys/stat.h>
2629/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2630struct buf { int x; };
2631FILE * (*rcsopen) (struct buf *, struct stat *, int);
2632static char *e (p, i)
2633 char **p;
2634 int i;
2635{
2636 return p[i];
2637}
2638static char *f (char * (*g) (char **, int), char **p, ...)
2639{
2640 char *s;
2641 va_list v;
2642 va_start (v,p);
2643 s = g (p, va_arg (v,int));
2644 va_end (v);
2645 return s;
2646}
2647
2648/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2649 function prototypes and stuff, but not '\xHH' hex character constants.
2650 These don't provoke an error unfortunately, instead are silently treated
2651 as 'x'. The following induces an error, until -std is added to get
2652 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2653 array size at least. It's necessary to write '\x00'==0 to get something
2654 that's true only with -std. */
2655int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2656
2657/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2658 inside strings and character constants. */
2659#define FOO(x) 'x'
2660int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2661
2662int test (int i, double x);
2663struct s1 {int (*f) (int a);};
2664struct s2 {int (*f) (double a);};
2665int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2666int argc;
2667char **argv;
2668int
2669main ()
2670{
2671return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2672 ;
2673 return 0;
2674}
2675_ACEOF
2676for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2677 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2678do
2679 CC="$ac_save_CC $ac_arg"
2680 rm -f conftest.$ac_objext
2681if { (ac_try="$ac_compile"
2682case "(($ac_try" in
2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684 *) ac_try_echo=$ac_try;;
2685esac
2686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2687 (eval "$ac_compile") 2>conftest.er1
2688 ac_status=$?
2689 grep -v '^ *+' conftest.er1 >conftest.err
2690 rm -f conftest.er1
2691 cat conftest.err >&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); } && {
2694 test -z "$ac_c_werror_flag" ||
2695 test ! -s conftest.err
2696 } && test -s conftest.$ac_objext; then
2697 ac_cv_prog_cc_c89=$ac_arg
2698else
2699 echo "$as_me: failed program was:" >&5
2700sed 's/^/| /' conftest.$ac_ext >&5
2701
2702
2703fi
2704
2705rm -f core conftest.err conftest.$ac_objext
2706 test "x$ac_cv_prog_cc_c89" != "xno" && break
2707done
2708rm -f conftest.$ac_ext
2709CC=$ac_save_CC
2710
2711fi
2712# AC_CACHE_VAL
2713case "x$ac_cv_prog_cc_c89" in
2714 x)
2715 { echo "$as_me:$LINENO: result: none needed" >&5
2716echo "${ECHO_T}none needed" >&6; } ;;
2717 xno)
2718 { echo "$as_me:$LINENO: result: unsupported" >&5
2719echo "${ECHO_T}unsupported" >&6; } ;;
2720 *)
2721 CC="$CC $ac_cv_prog_cc_c89"
2722 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2723echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2724esac
2725
2726
2727ac_ext=c
2728ac_cpp='$CPP $CPPFLAGS'
2729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2731ac_compiler_gnu=$ac_cv_c_compiler_gnu
2732
2733ac_aux_dir=
2734for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2735 if test -f "$ac_dir/install-sh"; then
2736 ac_aux_dir=$ac_dir
2737 ac_install_sh="$ac_aux_dir/install-sh -c"
2738 break
2739 elif test -f "$ac_dir/install.sh"; then
2740 ac_aux_dir=$ac_dir
2741 ac_install_sh="$ac_aux_dir/install.sh -c"
2742 break
2743 elif test -f "$ac_dir/shtool"; then
2744 ac_aux_dir=$ac_dir
2745 ac_install_sh="$ac_aux_dir/shtool install -c"
2746 break
2747 fi
2748done
2749if test -z "$ac_aux_dir"; then
2750 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2751echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2752 { (exit 1); exit 1; }; }
2753fi
2754
2755# These three variables are undocumented and unsupported,
2756# and are intended to be withdrawn in a future Autoconf release.
2757# They can cause serious problems if a builder's source tree is in a directory
2758# whose full name contains unusual characters.
2759ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2760ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2761ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2762
2763
2764# Make sure we can run config.sub.
2765$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2766 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2767echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2768 { (exit 1); exit 1; }; }
2769
2770{ echo "$as_me:$LINENO: checking build system type" >&5
2771echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2772if test "${ac_cv_build+set}" = set; then
2773 echo $ECHO_N "(cached) $ECHO_C" >&6
2774else
2775 ac_build_alias=$build_alias
2776test "x$ac_build_alias" = x &&
2777 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2778test "x$ac_build_alias" = x &&
2779 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2780echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2781 { (exit 1); exit 1; }; }
2782ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2783 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2784echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2785 { (exit 1); exit 1; }; }
2786
2787fi
2788{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2789echo "${ECHO_T}$ac_cv_build" >&6; }
2790case $ac_cv_build in
2791*-*-*) ;;
2792*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2793echo "$as_me: error: invalid value of canonical build" >&2;}
2794 { (exit 1); exit 1; }; };;
2795esac
2796build=$ac_cv_build
2797ac_save_IFS=$IFS; IFS='-'
2798set x $ac_cv_build
2799shift
2800build_cpu=$1
2801build_vendor=$2
2802shift; shift
2803# Remember, the first character of IFS is used to create $*,
2804# except with old shells:
2805build_os=$*
2806IFS=$ac_save_IFS
2807case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2808
2809
2810{ echo "$as_me:$LINENO: checking host system type" >&5
2811echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2812if test "${ac_cv_host+set}" = set; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
2814else
2815 if test "x$host_alias" = x; then
2816 ac_cv_host=$ac_cv_build
2817else
2818 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2819 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2820echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2821 { (exit 1); exit 1; }; }
2822fi
2823
2824fi
2825{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2826echo "${ECHO_T}$ac_cv_host" >&6; }
2827case $ac_cv_host in
2828*-*-*) ;;
2829*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2830echo "$as_me: error: invalid value of canonical host" >&2;}
2831 { (exit 1); exit 1; }; };;
2832esac
2833host=$ac_cv_host
2834ac_save_IFS=$IFS; IFS='-'
2835set x $ac_cv_host
2836shift
2837host_cpu=$1
2838host_vendor=$2
2839shift; shift
2840# Remember, the first character of IFS is used to create $*,
2841# except with old shells:
2842host_os=$*
2843IFS=$ac_save_IFS
2844case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2845
2846
2847
2848ac_ext=c
2849ac_cpp='$CPP $CPPFLAGS'
2850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2852ac_compiler_gnu=$ac_cv_c_compiler_gnu
2853{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2854echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2855# On Suns, sometimes $CPP names a directory.
2856if test -n "$CPP" && test -d "$CPP"; then
2857 CPP=
2858fi
2859if test -z "$CPP"; then
2860 if test "${ac_cv_prog_CPP+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2862else
2863 # Double quotes because CPP needs to be expanded
2864 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2865 do
2866 ac_preproc_ok=false
2867for ac_c_preproc_warn_flag in '' yes
2868do
2869 # Use a header file that comes with gcc, so configuring glibc
2870 # with a fresh cross-compiler works.
2871 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2872 # <limits.h> exists even on freestanding compilers.
2873 # On the NeXT, cc -E runs the code through the compiler's parser,
2874 # not just through cpp. "Syntax error" is here to catch this case.
2875 cat >conftest.$ac_ext <<_ACEOF
2876/* confdefs.h. */
2877_ACEOF
2878cat confdefs.h >>conftest.$ac_ext
2879cat >>conftest.$ac_ext <<_ACEOF
2880/* end confdefs.h. */
2881#ifdef __STDC__
2882# include <limits.h>
2883#else
2884# include <assert.h>
2885#endif
2886 Syntax error
2887_ACEOF
2888if { (ac_try="$ac_cpp conftest.$ac_ext"
2889case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892esac
2893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2895 ac_status=$?
2896 grep -v '^ *+' conftest.er1 >conftest.err
2897 rm -f conftest.er1
2898 cat conftest.err >&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); } >/dev/null && {
2901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2902 test ! -s conftest.err
2903 }; then
2904 :
2905else
2906 echo "$as_me: failed program was:" >&5
2907sed 's/^/| /' conftest.$ac_ext >&5
2908
2909 # Broken: fails on valid input.
2910continue
2911fi
2912
2913rm -f conftest.err conftest.$ac_ext
2914
2915 # OK, works on sane cases. Now check whether nonexistent headers
2916 # can be detected and how.
2917 cat >conftest.$ac_ext <<_ACEOF
2918/* confdefs.h. */
2919_ACEOF
2920cat confdefs.h >>conftest.$ac_ext
2921cat >>conftest.$ac_ext <<_ACEOF
2922/* end confdefs.h. */
2923#include <ac_nonexistent.h>
2924_ACEOF
2925if { (ac_try="$ac_cpp conftest.$ac_ext"
2926case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929esac
2930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2932 ac_status=$?
2933 grep -v '^ *+' conftest.er1 >conftest.err
2934 rm -f conftest.er1
2935 cat conftest.err >&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); } >/dev/null && {
2938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2939 test ! -s conftest.err
2940 }; then
2941 # Broken: success on invalid input.
2942continue
2943else
2944 echo "$as_me: failed program was:" >&5
2945sed 's/^/| /' conftest.$ac_ext >&5
2946
2947 # Passes both tests.
2948ac_preproc_ok=:
2949break
2950fi
2951
2952rm -f conftest.err conftest.$ac_ext
2953
2954done
2955# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2956rm -f conftest.err conftest.$ac_ext
2957if $ac_preproc_ok; then
2958 break
2959fi
2960
2961 done
2962 ac_cv_prog_CPP=$CPP
2963
2964fi
2965 CPP=$ac_cv_prog_CPP
2966else
2967 ac_cv_prog_CPP=$CPP
2968fi
2969{ echo "$as_me:$LINENO: result: $CPP" >&5
2970echo "${ECHO_T}$CPP" >&6; }
2971ac_preproc_ok=false
2972for ac_c_preproc_warn_flag in '' yes
2973do
2974 # Use a header file that comes with gcc, so configuring glibc
2975 # with a fresh cross-compiler works.
2976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2977 # <limits.h> exists even on freestanding compilers.
2978 # On the NeXT, cc -E runs the code through the compiler's parser,
2979 # not just through cpp. "Syntax error" is here to catch this case.
2980 cat >conftest.$ac_ext <<_ACEOF
2981/* confdefs.h. */
2982_ACEOF
2983cat confdefs.h >>conftest.$ac_ext
2984cat >>conftest.$ac_ext <<_ACEOF
2985/* end confdefs.h. */
2986#ifdef __STDC__
2987# include <limits.h>
2988#else
2989# include <assert.h>
2990#endif
2991 Syntax error
2992_ACEOF
2993if { (ac_try="$ac_cpp conftest.$ac_ext"
2994case "(($ac_try" in
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2997esac
2998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3000 ac_status=$?
3001 grep -v '^ *+' conftest.er1 >conftest.err
3002 rm -f conftest.er1
3003 cat conftest.err >&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } >/dev/null && {
3006 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3007 test ! -s conftest.err
3008 }; then
3009 :
3010else
3011 echo "$as_me: failed program was:" >&5
3012sed 's/^/| /' conftest.$ac_ext >&5
3013
3014 # Broken: fails on valid input.
3015continue
3016fi
3017
3018rm -f conftest.err conftest.$ac_ext
3019
3020 # OK, works on sane cases. Now check whether nonexistent headers
3021 # can be detected and how.
3022 cat >conftest.$ac_ext <<_ACEOF
3023/* confdefs.h. */
3024_ACEOF
3025cat confdefs.h >>conftest.$ac_ext
3026cat >>conftest.$ac_ext <<_ACEOF
3027/* end confdefs.h. */
3028#include <ac_nonexistent.h>
3029_ACEOF
3030if { (ac_try="$ac_cpp conftest.$ac_ext"
3031case "(($ac_try" in
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3034esac
3035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3037 ac_status=$?
3038 grep -v '^ *+' conftest.er1 >conftest.err
3039 rm -f conftest.er1
3040 cat conftest.err >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); } >/dev/null && {
3043 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3044 test ! -s conftest.err
3045 }; then
3046 # Broken: success on invalid input.
3047continue
3048else
3049 echo "$as_me: failed program was:" >&5
3050sed 's/^/| /' conftest.$ac_ext >&5
3051
3052 # Passes both tests.
3053ac_preproc_ok=:
3054break
3055fi
3056
3057rm -f conftest.err conftest.$ac_ext
3058
3059done
3060# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3061rm -f conftest.err conftest.$ac_ext
3062if $ac_preproc_ok; then
3063 :
3064else
3065 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3066See \`config.log' for more details." >&5
3067echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3068See \`config.log' for more details." >&2;}
3069 { (exit 1); exit 1; }; }
3070fi
3071
3072ac_ext=c
3073ac_cpp='$CPP $CPPFLAGS'
3074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3076ac_compiler_gnu=$ac_cv_c_compiler_gnu
3077
3078
3079{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3080echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3081if test "${ac_cv_path_GREP+set}" = set; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
3083else
3084 # Extract the first word of "grep ggrep" to use in msg output
3085if test -z "$GREP"; then
3086set dummy grep ggrep; ac_prog_name=$2
3087if test "${ac_cv_path_GREP+set}" = set; then
3088 echo $ECHO_N "(cached) $ECHO_C" >&6
3089else
3090 ac_path_GREP_found=false
3091# Loop through the user's path and test for each of PROGNAME-LIST
3092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3094do
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
3097 for ac_prog in grep ggrep; do
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3100 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3101 # Check for GNU ac_path_GREP and select it if it is found.
3102 # Check for GNU $ac_path_GREP
3103case `"$ac_path_GREP" --version 2>&1` in
3104*GNU*)
3105 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3106*)
3107 ac_count=0
3108 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3109 while :
3110 do
3111 cat "conftest.in" "conftest.in" >"conftest.tmp"
3112 mv "conftest.tmp" "conftest.in"
3113 cp "conftest.in" "conftest.nl"
3114 echo 'GREP' >> "conftest.nl"
3115 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3116 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3117 ac_count=`expr $ac_count + 1`
3118 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3119 # Best one so far, save it but keep looking for a better one
3120 ac_cv_path_GREP="$ac_path_GREP"
3121 ac_path_GREP_max=$ac_count
3122 fi
3123 # 10*(2^10) chars as input seems more than enough
3124 test $ac_count -gt 10 && break
3125 done
3126 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3127esac
3128
3129
3130 $ac_path_GREP_found && break 3
3131 done
3132done
3133
3134done
3135IFS=$as_save_IFS
3136
3137
3138fi
3139
3140GREP="$ac_cv_path_GREP"
3141if test -z "$GREP"; then
3142 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3143echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3144 { (exit 1); exit 1; }; }
3145fi
3146
3147else
3148 ac_cv_path_GREP=$GREP
3149fi
3150
3151
3152fi
3153{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3154echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3155 GREP="$ac_cv_path_GREP"
3156
3157
3158{ echo "$as_me:$LINENO: checking for egrep" >&5
3159echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3160if test "${ac_cv_path_EGREP+set}" = set; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3162else
3163 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3164 then ac_cv_path_EGREP="$GREP -E"
3165 else
3166 # Extract the first word of "egrep" to use in msg output
3167if test -z "$EGREP"; then
3168set dummy egrep; ac_prog_name=$2
3169if test "${ac_cv_path_EGREP+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3171else
3172 ac_path_EGREP_found=false
3173# Loop through the user's path and test for each of PROGNAME-LIST
3174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3176do
3177 IFS=$as_save_IFS
3178 test -z "$as_dir" && as_dir=.
3179 for ac_prog in egrep; do
3180 for ac_exec_ext in '' $ac_executable_extensions; do
3181 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3182 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3183 # Check for GNU ac_path_EGREP and select it if it is found.
3184 # Check for GNU $ac_path_EGREP
3185case `"$ac_path_EGREP" --version 2>&1` in
3186*GNU*)
3187 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3188*)
3189 ac_count=0
3190 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3191 while :
3192 do
3193 cat "conftest.in" "conftest.in" >"conftest.tmp"
3194 mv "conftest.tmp" "conftest.in"
3195 cp "conftest.in" "conftest.nl"
3196 echo 'EGREP' >> "conftest.nl"
3197 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3199 ac_count=`expr $ac_count + 1`
3200 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3201 # Best one so far, save it but keep looking for a better one
3202 ac_cv_path_EGREP="$ac_path_EGREP"
3203 ac_path_EGREP_max=$ac_count
3204 fi
3205 # 10*(2^10) chars as input seems more than enough
3206 test $ac_count -gt 10 && break
3207 done
3208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3209esac
3210
3211
3212 $ac_path_EGREP_found && break 3
3213 done
3214done
3215
3216done
3217IFS=$as_save_IFS
3218
3219
3220fi
3221
3222EGREP="$ac_cv_path_EGREP"
3223if test -z "$EGREP"; then
3224 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3225echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3226 { (exit 1); exit 1; }; }
3227fi
3228
3229else
3230 ac_cv_path_EGREP=$EGREP
3231fi
3232
3233
3234 fi
3235fi
3236{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3237echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3238 EGREP="$ac_cv_path_EGREP"
3239
3240
3241{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3242echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3243if test "${ac_cv_header_stdc+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3245else
3246 cat >conftest.$ac_ext <<_ACEOF
3247/* confdefs.h. */
3248_ACEOF
3249cat confdefs.h >>conftest.$ac_ext
3250cat >>conftest.$ac_ext <<_ACEOF
3251/* end confdefs.h. */
3252#include <stdlib.h>
3253#include <stdarg.h>
3254#include <string.h>
3255#include <float.h>
3256
3257int
3258main ()
3259{
3260
3261 ;
3262 return 0;
3263}
3264_ACEOF
3265rm -f conftest.$ac_objext
3266if { (ac_try="$ac_compile"
3267case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270esac
3271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272 (eval "$ac_compile") 2>conftest.er1
3273 ac_status=$?
3274 grep -v '^ *+' conftest.er1 >conftest.err
3275 rm -f conftest.er1
3276 cat conftest.err >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } && {
3279 test -z "$ac_c_werror_flag" ||
3280 test ! -s conftest.err
3281 } && test -s conftest.$ac_objext; then
3282 ac_cv_header_stdc=yes
3283else
3284 echo "$as_me: failed program was:" >&5
3285sed 's/^/| /' conftest.$ac_ext >&5
3286
3287 ac_cv_header_stdc=no
3288fi
3289
3290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291
3292if test $ac_cv_header_stdc = yes; then
3293 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3294 cat >conftest.$ac_ext <<_ACEOF
3295/* confdefs.h. */
3296_ACEOF
3297cat confdefs.h >>conftest.$ac_ext
3298cat >>conftest.$ac_ext <<_ACEOF
3299/* end confdefs.h. */
3300#include <string.h>
3301
3302_ACEOF
3303if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3304 $EGREP "memchr" >/dev/null 2>&1; then
3305 :
3306else
3307 ac_cv_header_stdc=no
3308fi
3309rm -f conftest*
3310
3311fi
3312
3313if test $ac_cv_header_stdc = yes; then
3314 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3315 cat >conftest.$ac_ext <<_ACEOF
3316/* confdefs.h. */
3317_ACEOF
3318cat confdefs.h >>conftest.$ac_ext
3319cat >>conftest.$ac_ext <<_ACEOF
3320/* end confdefs.h. */
3321#include <stdlib.h>
3322
3323_ACEOF
3324if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3325 $EGREP "free" >/dev/null 2>&1; then
3326 :
3327else
3328 ac_cv_header_stdc=no
3329fi
3330rm -f conftest*
3331
3332fi
3333
3334if test $ac_cv_header_stdc = yes; then
3335 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3336 if test "$cross_compiling" = yes; then
3337 :
3338else
3339 cat >conftest.$ac_ext <<_ACEOF
3340/* confdefs.h. */
3341_ACEOF
3342cat confdefs.h >>conftest.$ac_ext
3343cat >>conftest.$ac_ext <<_ACEOF
3344/* end confdefs.h. */
3345#include <ctype.h>
3346#include <stdlib.h>
3347#if ((' ' & 0x0FF) == 0x020)
3348# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3349# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3350#else
3351# define ISLOWER(c) \
3352 (('a' <= (c) && (c) <= 'i') \
3353 || ('j' <= (c) && (c) <= 'r') \
3354 || ('s' <= (c) && (c) <= 'z'))
3355# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3356#endif
3357
3358#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3359int
3360main ()
3361{
3362 int i;
3363 for (i = 0; i < 256; i++)
3364 if (XOR (islower (i), ISLOWER (i))
3365 || toupper (i) != TOUPPER (i))
3366 return 2;
3367 return 0;
3368}
3369_ACEOF
3370rm -f conftest$ac_exeext
3371if { (ac_try="$ac_link"
3372case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3375esac
3376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377 (eval "$ac_link") 2>&5
3378 ac_status=$?
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3381 { (case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3384esac
3385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3386 (eval "$ac_try") 2>&5
3387 ac_status=$?
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; }; then
3390 :
3391else
3392 echo "$as_me: program exited with status $ac_status" >&5
3393echo "$as_me: failed program was:" >&5
3394sed 's/^/| /' conftest.$ac_ext >&5
3395
3396( exit $ac_status )
3397ac_cv_header_stdc=no
3398fi
3399rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3400fi
3401
3402
3403fi
3404fi
3405{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3406echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3407if test $ac_cv_header_stdc = yes; then
3408
3409cat >>confdefs.h <<\_ACEOF
3410#define STDC_HEADERS 1
3411_ACEOF
3412
3413fi
3414
3415# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3426 inttypes.h stdint.h unistd.h
3427do
3428as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3429{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3430echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3431if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3432 echo $ECHO_N "(cached) $ECHO_C" >&6
3433else
3434 cat >conftest.$ac_ext <<_ACEOF
3435/* confdefs.h. */
3436_ACEOF
3437cat confdefs.h >>conftest.$ac_ext
3438cat >>conftest.$ac_ext <<_ACEOF
3439/* end confdefs.h. */
3440$ac_includes_default
3441
3442#include <$ac_header>
3443_ACEOF
3444rm -f conftest.$ac_objext
3445if { (ac_try="$ac_compile"
3446case "(($ac_try" in
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3449esac
3450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451 (eval "$ac_compile") 2>conftest.er1
3452 ac_status=$?
3453 grep -v '^ *+' conftest.er1 >conftest.err
3454 rm -f conftest.er1
3455 cat conftest.err >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } && {
3458 test -z "$ac_c_werror_flag" ||
3459 test ! -s conftest.err
3460 } && test -s conftest.$ac_objext; then
3461 eval "$as_ac_Header=yes"
3462else
3463 echo "$as_me: failed program was:" >&5
3464sed 's/^/| /' conftest.$ac_ext >&5
3465
3466 eval "$as_ac_Header=no"
3467fi
3468
3469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470fi
3471ac_res=`eval echo '${'$as_ac_Header'}'`
3472 { echo "$as_me:$LINENO: result: $ac_res" >&5
3473echo "${ECHO_T}$ac_res" >&6; }
3474if test `eval echo '${'$as_ac_Header'}'` = yes; then
3475 cat >>confdefs.h <<_ACEOF
3476#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3477_ACEOF
3478
3479fi
3480
3481done
3482
3483
3484{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3485echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3486if test "${ac_cv_c_bigendian+set}" = set; then
3487 echo $ECHO_N "(cached) $ECHO_C" >&6
3488else
3489 # See if sys/param.h defines the BYTE_ORDER macro.
3490cat >conftest.$ac_ext <<_ACEOF
3491/* confdefs.h. */
3492_ACEOF
3493cat confdefs.h >>conftest.$ac_ext
3494cat >>conftest.$ac_ext <<_ACEOF
3495/* end confdefs.h. */
3496#include <sys/types.h>
3497#include <sys/param.h>
3498
3499int
3500main ()
3501{
3502#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3503 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3504 bogus endian macros
3505#endif
3506
3507 ;
3508 return 0;
3509}
3510_ACEOF
3511rm -f conftest.$ac_objext
3512if { (ac_try="$ac_compile"
3513case "(($ac_try" in
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3516esac
3517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518 (eval "$ac_compile") 2>conftest.er1
3519 ac_status=$?
3520 grep -v '^ *+' conftest.er1 >conftest.err
3521 rm -f conftest.er1
3522 cat conftest.err >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } && {
3525 test -z "$ac_c_werror_flag" ||
3526 test ! -s conftest.err
3527 } && test -s conftest.$ac_objext; then
3528 # It does; now see whether it defined to BIG_ENDIAN or not.
3529cat >conftest.$ac_ext <<_ACEOF
3530/* confdefs.h. */
3531_ACEOF
3532cat confdefs.h >>conftest.$ac_ext
3533cat >>conftest.$ac_ext <<_ACEOF
3534/* end confdefs.h. */
3535#include <sys/types.h>
3536#include <sys/param.h>
3537
3538int
3539main ()
3540{
3541#if BYTE_ORDER != BIG_ENDIAN
3542 not big endian
3543#endif
3544
3545 ;
3546 return 0;
3547}
3548_ACEOF
3549rm -f conftest.$ac_objext
3550if { (ac_try="$ac_compile"
3551case "(($ac_try" in
3552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553 *) ac_try_echo=$ac_try;;
3554esac
3555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3556 (eval "$ac_compile") 2>conftest.er1
3557 ac_status=$?
3558 grep -v '^ *+' conftest.er1 >conftest.err
3559 rm -f conftest.er1
3560 cat conftest.err >&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } && {
3563 test -z "$ac_c_werror_flag" ||
3564 test ! -s conftest.err
3565 } && test -s conftest.$ac_objext; then
3566 ac_cv_c_bigendian=yes
3567else
3568 echo "$as_me: failed program was:" >&5
3569sed 's/^/| /' conftest.$ac_ext >&5
3570
3571 ac_cv_c_bigendian=no
3572fi
3573
3574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575else
3576 echo "$as_me: failed program was:" >&5
3577sed 's/^/| /' conftest.$ac_ext >&5
3578
3579 # It does not; compile a test program.
3580if test "$cross_compiling" = yes; then
3581 # try to guess the endianness by grepping values into an object file
3582 ac_cv_c_bigendian=unknown
3583 cat >conftest.$ac_ext <<_ACEOF
3584/* confdefs.h. */
3585_ACEOF
3586cat confdefs.h >>conftest.$ac_ext
3587cat >>conftest.$ac_ext <<_ACEOF
3588/* end confdefs.h. */
3589short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3590short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3591void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3592short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3593short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3594void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3595int
3596main ()
3597{
3598 _ascii (); _ebcdic ();
3599 ;
3600 return 0;
3601}
3602_ACEOF
3603rm -f conftest.$ac_objext
3604if { (ac_try="$ac_compile"
3605case "(($ac_try" in
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3608esac
3609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3610 (eval "$ac_compile") 2>conftest.er1
3611 ac_status=$?
3612 grep -v '^ *+' conftest.er1 >conftest.err
3613 rm -f conftest.er1
3614 cat conftest.err >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } && {
3617 test -z "$ac_c_werror_flag" ||
3618 test ! -s conftest.err
3619 } && test -s conftest.$ac_objext; then
3620 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3621 ac_cv_c_bigendian=yes
3622fi
3623if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3624 if test "$ac_cv_c_bigendian" = unknown; then
3625 ac_cv_c_bigendian=no
3626 else
3627 # finding both strings is unlikely to happen, but who knows?
3628 ac_cv_c_bigendian=unknown
3629 fi
3630fi
3631else
3632 echo "$as_me: failed program was:" >&5
3633sed 's/^/| /' conftest.$ac_ext >&5
3634
3635
3636fi
3637
3638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639else
3640 cat >conftest.$ac_ext <<_ACEOF
3641/* confdefs.h. */
3642_ACEOF
3643cat confdefs.h >>conftest.$ac_ext
3644cat >>conftest.$ac_ext <<_ACEOF
3645/* end confdefs.h. */
3646$ac_includes_default
3647int
3648main ()
3649{
3650
3651 /* Are we little or big endian? From Harbison&Steele. */
3652 union
3653 {
3654 long int l;
3655 char c[sizeof (long int)];
3656 } u;
3657 u.l = 1;
3658 return u.c[sizeof (long int) - 1] == 1;
3659
3660 ;
3661 return 0;
3662}
3663_ACEOF
3664rm -f conftest$ac_exeext
3665if { (ac_try="$ac_link"
3666case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3669esac
3670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671 (eval "$ac_link") 2>&5
3672 ac_status=$?
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3675 { (case "(($ac_try" in
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3678esac
3679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680 (eval "$ac_try") 2>&5
3681 ac_status=$?
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); }; }; then
3684 ac_cv_c_bigendian=no
3685else
3686 echo "$as_me: program exited with status $ac_status" >&5
3687echo "$as_me: failed program was:" >&5
3688sed 's/^/| /' conftest.$ac_ext >&5
3689
3690( exit $ac_status )
3691ac_cv_c_bigendian=yes
3692fi
3693rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3694fi
3695
3696
3697fi
3698
3699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700fi
3701{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3702echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3703case $ac_cv_c_bigendian in
3704 yes)
3705
3706cat >>confdefs.h <<\_ACEOF
3707#define WORDS_BIGENDIAN 1
3708_ACEOF
3709 ;;
3710 no)
3711 ;;
3712 *)
3713 { { echo "$as_me:$LINENO: error: unknown endianness
3714presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3715echo "$as_me: error: unknown endianness
3716presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3717 { (exit 1); exit 1; }; } ;;
3718esac
3719
3720
3721# Checks for programs.
3722for ac_prog in gawk mawk nawk awk
3723do
3724 # Extract the first word of "$ac_prog", so it can be a program name with args.
3725set dummy $ac_prog; ac_word=$2
3726{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3728if test "${ac_cv_prog_AWK+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3730else
3731 if test -n "$AWK"; then
3732 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3733else
3734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735for as_dir in $PATH
3736do
3737 IFS=$as_save_IFS
3738 test -z "$as_dir" && as_dir=.
3739 for ac_exec_ext in '' $ac_executable_extensions; do
3740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3741 ac_cv_prog_AWK="$ac_prog"
3742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3743 break 2
3744 fi
3745done
3746done
3747IFS=$as_save_IFS
3748
3749fi
3750fi
3751AWK=$ac_cv_prog_AWK
3752if test -n "$AWK"; then
3753 { echo "$as_me:$LINENO: result: $AWK" >&5
3754echo "${ECHO_T}$AWK" >&6; }
3755else
3756 { echo "$as_me:$LINENO: result: no" >&5
3757echo "${ECHO_T}no" >&6; }
3758fi
3759
3760
3761 test -n "$AWK" && break
3762done
3763
3764ac_ext=c
3765ac_cpp='$CPP $CPPFLAGS'
3766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3768ac_compiler_gnu=$ac_cv_c_compiler_gnu
3769{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3770echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3771# On Suns, sometimes $CPP names a directory.
3772if test -n "$CPP" && test -d "$CPP"; then
3773 CPP=
3774fi
3775if test -z "$CPP"; then
3776 if test "${ac_cv_prog_CPP+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778else
3779 # Double quotes because CPP needs to be expanded
3780 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3781 do
3782 ac_preproc_ok=false
3783for ac_c_preproc_warn_flag in '' yes
3784do
3785 # Use a header file that comes with gcc, so configuring glibc
3786 # with a fresh cross-compiler works.
3787 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3788 # <limits.h> exists even on freestanding compilers.
3789 # On the NeXT, cc -E runs the code through the compiler's parser,
3790 # not just through cpp. "Syntax error" is here to catch this case.
3791 cat >conftest.$ac_ext <<_ACEOF
3792/* confdefs.h. */
3793_ACEOF
3794cat confdefs.h >>conftest.$ac_ext
3795cat >>conftest.$ac_ext <<_ACEOF
3796/* end confdefs.h. */
3797#ifdef __STDC__
3798# include <limits.h>
3799#else
3800# include <assert.h>
3801#endif
3802 Syntax error
3803_ACEOF
3804if { (ac_try="$ac_cpp conftest.$ac_ext"
3805case "(($ac_try" in
3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3808esac
3809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3811 ac_status=$?
3812 grep -v '^ *+' conftest.er1 >conftest.err
3813 rm -f conftest.er1
3814 cat conftest.err >&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } >/dev/null && {
3817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3818 test ! -s conftest.err
3819 }; then
3820 :
3821else
3822 echo "$as_me: failed program was:" >&5
3823sed 's/^/| /' conftest.$ac_ext >&5
3824
3825 # Broken: fails on valid input.
3826continue
3827fi
3828
3829rm -f conftest.err conftest.$ac_ext
3830
3831 # OK, works on sane cases. Now check whether nonexistent headers
3832 # can be detected and how.
3833 cat >conftest.$ac_ext <<_ACEOF
3834/* confdefs.h. */
3835_ACEOF
3836cat confdefs.h >>conftest.$ac_ext
3837cat >>conftest.$ac_ext <<_ACEOF
3838/* end confdefs.h. */
3839#include <ac_nonexistent.h>
3840_ACEOF
3841if { (ac_try="$ac_cpp conftest.$ac_ext"
3842case "(($ac_try" in
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3845esac
3846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } >/dev/null && {
3854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3855 test ! -s conftest.err
3856 }; then
3857 # Broken: success on invalid input.
3858continue
3859else
3860 echo "$as_me: failed program was:" >&5
3861sed 's/^/| /' conftest.$ac_ext >&5
3862
3863 # Passes both tests.
3864ac_preproc_ok=:
3865break
3866fi
3867
3868rm -f conftest.err conftest.$ac_ext
3869
3870done
3871# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3872rm -f conftest.err conftest.$ac_ext
3873if $ac_preproc_ok; then
3874 break
3875fi
3876
3877 done
3878 ac_cv_prog_CPP=$CPP
3879
3880fi
3881 CPP=$ac_cv_prog_CPP
3882else
3883 ac_cv_prog_CPP=$CPP
3884fi
3885{ echo "$as_me:$LINENO: result: $CPP" >&5
3886echo "${ECHO_T}$CPP" >&6; }
3887ac_preproc_ok=false
3888for ac_c_preproc_warn_flag in '' yes
3889do
3890 # Use a header file that comes with gcc, so configuring glibc
3891 # with a fresh cross-compiler works.
3892 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3893 # <limits.h> exists even on freestanding compilers.
3894 # On the NeXT, cc -E runs the code through the compiler's parser,
3895 # not just through cpp. "Syntax error" is here to catch this case.
3896 cat >conftest.$ac_ext <<_ACEOF
3897/* confdefs.h. */
3898_ACEOF
3899cat confdefs.h >>conftest.$ac_ext
3900cat >>conftest.$ac_ext <<_ACEOF
3901/* end confdefs.h. */
3902#ifdef __STDC__
3903# include <limits.h>
3904#else
3905# include <assert.h>
3906#endif
3907 Syntax error
3908_ACEOF
3909if { (ac_try="$ac_cpp conftest.$ac_ext"
3910case "(($ac_try" in
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3913esac
3914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3916 ac_status=$?
3917 grep -v '^ *+' conftest.er1 >conftest.err
3918 rm -f conftest.er1
3919 cat conftest.err >&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } >/dev/null && {
3922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3923 test ! -s conftest.err
3924 }; then
3925 :
3926else
3927 echo "$as_me: failed program was:" >&5
3928sed 's/^/| /' conftest.$ac_ext >&5
3929
3930 # Broken: fails on valid input.
3931continue
3932fi
3933
3934rm -f conftest.err conftest.$ac_ext
3935
3936 # OK, works on sane cases. Now check whether nonexistent headers
3937 # can be detected and how.
3938 cat >conftest.$ac_ext <<_ACEOF
3939/* confdefs.h. */
3940_ACEOF
3941cat confdefs.h >>conftest.$ac_ext
3942cat >>conftest.$ac_ext <<_ACEOF
3943/* end confdefs.h. */
3944#include <ac_nonexistent.h>
3945_ACEOF
3946if { (ac_try="$ac_cpp conftest.$ac_ext"
3947case "(($ac_try" in
3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949 *) ac_try_echo=$ac_try;;
3950esac
3951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3953 ac_status=$?
3954 grep -v '^ *+' conftest.er1 >conftest.err
3955 rm -f conftest.er1
3956 cat conftest.err >&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); } >/dev/null && {
3959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3960 test ! -s conftest.err
3961 }; then
3962 # Broken: success on invalid input.
3963continue
3964else
3965 echo "$as_me: failed program was:" >&5
3966sed 's/^/| /' conftest.$ac_ext >&5
3967
3968 # Passes both tests.
3969ac_preproc_ok=:
3970break
3971fi
3972
3973rm -f conftest.err conftest.$ac_ext
3974
3975done
3976# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3977rm -f conftest.err conftest.$ac_ext
3978if $ac_preproc_ok; then
3979 :
3980else
3981 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3982See \`config.log' for more details." >&5
3983echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3984See \`config.log' for more details." >&2;}
3985 { (exit 1); exit 1; }; }
3986fi
3987
3988ac_ext=c
3989ac_cpp='$CPP $CPPFLAGS'
3990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3992ac_compiler_gnu=$ac_cv_c_compiler_gnu
3993
3994if test -n "$ac_tool_prefix"; then
3995 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3996set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3997{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3999if test "${ac_cv_prog_RANLIB+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001else
4002 if test -n "$RANLIB"; then
4003 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4004else
4005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006for as_dir in $PATH
4007do
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4012 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4014 break 2
4015 fi
4016done
4017done
4018IFS=$as_save_IFS
4019
4020fi
4021fi
4022RANLIB=$ac_cv_prog_RANLIB
4023if test -n "$RANLIB"; then
4024 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4025echo "${ECHO_T}$RANLIB" >&6; }
4026else
4027 { echo "$as_me:$LINENO: result: no" >&5
4028echo "${ECHO_T}no" >&6; }
4029fi
4030
4031
4032fi
4033if test -z "$ac_cv_prog_RANLIB"; then
4034 ac_ct_RANLIB=$RANLIB
4035 # Extract the first word of "ranlib", so it can be a program name with args.
4036set dummy ranlib; ac_word=$2
4037{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4039if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4041else
4042 if test -n "$ac_ct_RANLIB"; then
4043 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4044else
4045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046for as_dir in $PATH
4047do
4048 IFS=$as_save_IFS
4049 test -z "$as_dir" && as_dir=.
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4052 ac_cv_prog_ac_ct_RANLIB="ranlib"
4053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4054 break 2
4055 fi
4056done
4057done
4058IFS=$as_save_IFS
4059
4060fi
4061fi
4062ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4063if test -n "$ac_ct_RANLIB"; then
4064 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4065echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4066else
4067 { echo "$as_me:$LINENO: result: no" >&5
4068echo "${ECHO_T}no" >&6; }
4069fi
4070
4071 if test "x$ac_ct_RANLIB" = x; then
4072 RANLIB=":"
4073 else
4074 case $cross_compiling:$ac_tool_warned in
4075yes:)
4076{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4077whose name does not start with the host triplet. If you think this
4078configuration is useful to you, please write to autoconf@gnu.org." >&5
4079echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4080whose name does not start with the host triplet. If you think this
4081configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4082ac_tool_warned=yes ;;
4083esac
4084 RANLIB=$ac_ct_RANLIB
4085 fi
4086else
4087 RANLIB="$ac_cv_prog_RANLIB"
4088fi
4089
4090# Find a good install program. We prefer a C program (faster),
4091# so one script is as good as another. But avoid the broken or
4092# incompatible versions:
4093# SysV /etc/install, /usr/sbin/install
4094# SunOS /usr/etc/install
4095# IRIX /sbin/install
4096# AIX /bin/install
4097# AmigaOS /C/install, which installs bootblocks on floppy discs
4098# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4099# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4100# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4101# OS/2's system install, which has a completely different semantic
4102# ./install, which can be erroneously created by make from ./install.sh.
4103{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4104echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4105if test -z "$INSTALL"; then
4106if test "${ac_cv_path_install+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4108else
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110for as_dir in $PATH
4111do
4112 IFS=$as_save_IFS
4113 test -z "$as_dir" && as_dir=.
4114 # Account for people who put trailing slashes in PATH elements.
4115case $as_dir/ in
4116 ./ | .// | /cC/* | \
4117 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4118 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4119 /usr/ucb/* ) ;;
4120 *)
4121 # OSF1 and SCO ODT 3.0 have their own names for install.
4122 # Don't use installbsd from OSF since it installs stuff as root
4123 # by default.
4124 for ac_prog in ginstall scoinst install; do
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4127 if test $ac_prog = install &&
4128 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4129 # AIX install. It has an incompatible calling convention.
4130 :
4131 elif test $ac_prog = install &&
4132 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4133 # program-specific install script used by HP pwplus--don't use.
4134 :
4135 else
4136 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4137 break 3
4138 fi
4139 fi
4140 done
4141 done
4142 ;;
4143esac
4144done
4145IFS=$as_save_IFS
4146
4147
4148fi
4149 if test "${ac_cv_path_install+set}" = set; then
4150 INSTALL=$ac_cv_path_install
4151 else
4152 # As a last resort, use the slow shell script. Don't cache a
4153 # value for INSTALL within a source directory, because that will
4154 # break other packages using the cache if that directory is
4155 # removed, or if the value is a relative name.
4156 INSTALL=$ac_install_sh
4157 fi
4158fi
4159{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4160echo "${ECHO_T}$INSTALL" >&6; }
4161
4162# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4163# It thinks the first close brace ends the variable substitution.
4164test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4165
4166test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4167
4168test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4169
4170{ echo "$as_me:$LINENO: checking for egrep" >&5
4171echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4172if test "${ac_cv_path_EGREP+set}" = set; then
4173 echo $ECHO_N "(cached) $ECHO_C" >&6
4174else
4175 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4176 then ac_cv_path_EGREP="$GREP -E"
4177 else
4178 # Extract the first word of "egrep" to use in msg output
4179if test -z "$EGREP"; then
4180set dummy egrep; ac_prog_name=$2
4181if test "${ac_cv_path_EGREP+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4183else
4184 ac_path_EGREP_found=false
4185# Loop through the user's path and test for each of PROGNAME-LIST
4186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4188do
4189 IFS=$as_save_IFS
4190 test -z "$as_dir" && as_dir=.
4191 for ac_prog in egrep; do
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4194 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4195 # Check for GNU ac_path_EGREP and select it if it is found.
4196 # Check for GNU $ac_path_EGREP
4197case `"$ac_path_EGREP" --version 2>&1` in
4198*GNU*)
4199 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4200*)
4201 ac_count=0
4202 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4203 while :
4204 do
4205 cat "conftest.in" "conftest.in" >"conftest.tmp"
4206 mv "conftest.tmp" "conftest.in"
4207 cp "conftest.in" "conftest.nl"
4208 echo 'EGREP' >> "conftest.nl"
4209 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4210 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4211 ac_count=`expr $ac_count + 1`
4212 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4213 # Best one so far, save it but keep looking for a better one
4214 ac_cv_path_EGREP="$ac_path_EGREP"
4215 ac_path_EGREP_max=$ac_count
4216 fi
4217 # 10*(2^10) chars as input seems more than enough
4218 test $ac_count -gt 10 && break
4219 done
4220 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4221esac
4222
4223
4224 $ac_path_EGREP_found && break 3
4225 done
4226done
4227
4228done
4229IFS=$as_save_IFS
4230
4231
4232fi
4233
4234EGREP="$ac_cv_path_EGREP"
4235if test -z "$EGREP"; then
4236 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4237echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4238 { (exit 1); exit 1; }; }
4239fi
4240
4241else
4242 ac_cv_path_EGREP=$EGREP
4243fi
4244
4245
4246 fi
4247fi
4248{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4249echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4250 EGREP="$ac_cv_path_EGREP"
4251
4252
4253# Extract the first word of "ar", so it can be a program name with args.
4254set dummy ar; ac_word=$2
4255{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4257if test "${ac_cv_path_AR+set}" = set; then
4258 echo $ECHO_N "(cached) $ECHO_C" >&6
4259else
4260 case $AR in
4261 [\\/]* | ?:[\\/]*)
4262 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4263 ;;
4264 *)
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266for as_dir in $PATH
4267do
4268 IFS=$as_save_IFS
4269 test -z "$as_dir" && as_dir=.
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4272 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4274 break 2
4275 fi
4276done
4277done
4278IFS=$as_save_IFS
4279
4280 ;;
4281esac
4282fi
4283AR=$ac_cv_path_AR
4284if test -n "$AR"; then
4285 { echo "$as_me:$LINENO: result: $AR" >&5
4286echo "${ECHO_T}$AR" >&6; }
4287else
4288 { echo "$as_me:$LINENO: result: no" >&5
4289echo "${ECHO_T}no" >&6; }
4290fi
4291
4292
4293# Extract the first word of "cat", so it can be a program name with args.
4294set dummy cat; ac_word=$2
4295{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4297if test "${ac_cv_path_CAT+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4299else
4300 case $CAT in
4301 [\\/]* | ?:[\\/]*)
4302 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4303 ;;
4304 *)
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306for as_dir in $PATH
4307do
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4312 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4314 break 2
4315 fi
4316done
4317done
4318IFS=$as_save_IFS
4319
4320 ;;
4321esac
4322fi
4323CAT=$ac_cv_path_CAT
4324if test -n "$CAT"; then
4325 { echo "$as_me:$LINENO: result: $CAT" >&5
4326echo "${ECHO_T}$CAT" >&6; }
4327else
4328 { echo "$as_me:$LINENO: result: no" >&5
4329echo "${ECHO_T}no" >&6; }
4330fi
4331
4332
4333# Extract the first word of "kill", so it can be a program name with args.
4334set dummy kill; ac_word=$2
4335{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4337if test "${ac_cv_path_KILL+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4339else
4340 case $KILL in
4341 [\\/]* | ?:[\\/]*)
4342 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4343 ;;
4344 *)
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346for as_dir in $PATH
4347do
4348 IFS=$as_save_IFS
4349 test -z "$as_dir" && as_dir=.
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4352 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4354 break 2
4355 fi
4356done
4357done
4358IFS=$as_save_IFS
4359
4360 ;;
4361esac
4362fi
4363KILL=$ac_cv_path_KILL
4364if test -n "$KILL"; then
4365 { echo "$as_me:$LINENO: result: $KILL" >&5
4366echo "${ECHO_T}$KILL" >&6; }
4367else
4368 { echo "$as_me:$LINENO: result: no" >&5
4369echo "${ECHO_T}no" >&6; }
4370fi
4371
4372
4373for ac_prog in perl5 perl
4374do
4375 # Extract the first word of "$ac_prog", so it can be a program name with args.
4376set dummy $ac_prog; ac_word=$2
4377{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4379if test "${ac_cv_path_PERL+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4381else
4382 case $PERL in
4383 [\\/]* | ?:[\\/]*)
4384 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4385 ;;
4386 *)
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388for as_dir in $PATH
4389do
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4394 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4396 break 2
4397 fi
4398done
4399done
4400IFS=$as_save_IFS
4401
4402 ;;
4403esac
4404fi
4405PERL=$ac_cv_path_PERL
4406if test -n "$PERL"; then
4407 { echo "$as_me:$LINENO: result: $PERL" >&5
4408echo "${ECHO_T}$PERL" >&6; }
4409else
4410 { echo "$as_me:$LINENO: result: no" >&5
4411echo "${ECHO_T}no" >&6; }
4412fi
4413
4414
4415 test -n "$PERL" && break
4416done
4417
4418# Extract the first word of "sed", so it can be a program name with args.
4419set dummy sed; ac_word=$2
4420{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4422if test "${ac_cv_path_SED+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4424else
4425 case $SED in
4426 [\\/]* | ?:[\\/]*)
4427 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4428 ;;
4429 *)
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431for as_dir in $PATH
4432do
4433 IFS=$as_save_IFS
4434 test -z "$as_dir" && as_dir=.
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4437 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4439 break 2
4440 fi
4441done
4442done
4443IFS=$as_save_IFS
4444
4445 ;;
4446esac
4447fi
4448SED=$ac_cv_path_SED
4449if test -n "$SED"; then
4450 { echo "$as_me:$LINENO: result: $SED" >&5
4451echo "${ECHO_T}$SED" >&6; }
4452else
4453 { echo "$as_me:$LINENO: result: no" >&5
4454echo "${ECHO_T}no" >&6; }
4455fi
4456
4457
4458
4459# Extract the first word of "ent", so it can be a program name with args.
4460set dummy ent; ac_word=$2
4461{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4463if test "${ac_cv_path_ENT+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4465else
4466 case $ENT in
4467 [\\/]* | ?:[\\/]*)
4468 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4469 ;;
4470 *)
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472for as_dir in $PATH
4473do
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4478 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4480 break 2
4481 fi
4482done
4483done
4484IFS=$as_save_IFS
4485
4486 ;;
4487esac
4488fi
4489ENT=$ac_cv_path_ENT
4490if test -n "$ENT"; then
4491 { echo "$as_me:$LINENO: result: $ENT" >&5
4492echo "${ECHO_T}$ENT" >&6; }
4493else
4494 { echo "$as_me:$LINENO: result: no" >&5
4495echo "${ECHO_T}no" >&6; }
4496fi
4497
4498
4499
4500# Extract the first word of "bash", so it can be a program name with args.
4501set dummy bash; ac_word=$2
4502{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4504if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4506else
4507 case $TEST_MINUS_S_SH in
4508 [\\/]* | ?:[\\/]*)
4509 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4510 ;;
4511 *)
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513for as_dir in $PATH
4514do
4515 IFS=$as_save_IFS
4516 test -z "$as_dir" && as_dir=.
4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4519 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4521 break 2
4522 fi
4523done
4524done
4525IFS=$as_save_IFS
4526
4527 ;;
4528esac
4529fi
4530TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4531if test -n "$TEST_MINUS_S_SH"; then
4532 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4533echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4534else
4535 { echo "$as_me:$LINENO: result: no" >&5
4536echo "${ECHO_T}no" >&6; }
4537fi
4538
4539
4540# Extract the first word of "ksh", so it can be a program name with args.
4541set dummy ksh; ac_word=$2
4542{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4544if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4546else
4547 case $TEST_MINUS_S_SH in
4548 [\\/]* | ?:[\\/]*)
4549 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4550 ;;
4551 *)
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553for as_dir in $PATH
4554do
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4559 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 break 2
4562 fi
4563done
4564done
4565IFS=$as_save_IFS
4566
4567 ;;
4568esac
4569fi
4570TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4571if test -n "$TEST_MINUS_S_SH"; then
4572 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4573echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4574else
4575 { echo "$as_me:$LINENO: result: no" >&5
4576echo "${ECHO_T}no" >&6; }
4577fi
4578
4579
4580# Extract the first word of "sh", so it can be a program name with args.
4581set dummy sh; ac_word=$2
4582{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4584if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4586else
4587 case $TEST_MINUS_S_SH in
4588 [\\/]* | ?:[\\/]*)
4589 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4590 ;;
4591 *)
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593for as_dir in $PATH
4594do
4595 IFS=$as_save_IFS
4596 test -z "$as_dir" && as_dir=.
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4599 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 break 2
4602 fi
4603done
4604done
4605IFS=$as_save_IFS
4606
4607 ;;
4608esac
4609fi
4610TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4611if test -n "$TEST_MINUS_S_SH"; then
4612 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4613echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4614else
4615 { echo "$as_me:$LINENO: result: no" >&5
4616echo "${ECHO_T}no" >&6; }
4617fi
4618
4619
4620# Extract the first word of "sh", so it can be a program name with args.
4621set dummy sh; ac_word=$2
4622{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4624if test "${ac_cv_path_SH+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4626else
4627 case $SH in
4628 [\\/]* | ?:[\\/]*)
4629 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4630 ;;
4631 *)
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633for as_dir in $PATH
4634do
4635 IFS=$as_save_IFS
4636 test -z "$as_dir" && as_dir=.
4637 for ac_exec_ext in '' $ac_executable_extensions; do
4638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4639 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4641 break 2
4642 fi
4643done
4644done
4645IFS=$as_save_IFS
4646
4647 ;;
4648esac
4649fi
4650SH=$ac_cv_path_SH
4651if test -n "$SH"; then
4652 { echo "$as_me:$LINENO: result: $SH" >&5
4653echo "${ECHO_T}$SH" >&6; }
4654else
4655 { echo "$as_me:$LINENO: result: no" >&5
4656echo "${ECHO_T}no" >&6; }
4657fi
4658
4659
4660TEST_SHELL=sh
4661
4662
4663# Extract the first word of "groupadd", so it can be a program name with args.
4664set dummy groupadd; ac_word=$2
4665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4667if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4669else
4670 case $PATH_GROUPADD_PROG in
4671 [\\/]* | ?:[\\/]*)
4672 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
4673 ;;
4674 *)
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4677do
4678 IFS=$as_save_IFS
4679 test -z "$as_dir" && as_dir=.
4680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4682 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4684 break 2
4685 fi
4686done
4687done
4688IFS=$as_save_IFS
4689
4690 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
4691 ;;
4692esac
4693fi
4694PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
4695if test -n "$PATH_GROUPADD_PROG"; then
4696 { echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5
4697echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6; }
4698else
4699 { echo "$as_me:$LINENO: result: no" >&5
4700echo "${ECHO_T}no" >&6; }
4701fi
4702
4703
4704# Extract the first word of "useradd", so it can be a program name with args.
4705set dummy useradd; ac_word=$2
4706{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4708if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4710else
4711 case $PATH_USERADD_PROG in
4712 [\\/]* | ?:[\\/]*)
4713 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
4714 ;;
4715 *)
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4718do
4719 IFS=$as_save_IFS
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4723 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4725 break 2
4726 fi
4727done
4728done
4729IFS=$as_save_IFS
4730
4731 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
4732 ;;
4733esac
4734fi
4735PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
4736if test -n "$PATH_USERADD_PROG"; then
4737 { echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5
4738echo "${ECHO_T}$PATH_USERADD_PROG" >&6; }
4739else
4740 { echo "$as_me:$LINENO: result: no" >&5
4741echo "${ECHO_T}no" >&6; }
4742fi
4743
4744
4745# Extract the first word of "pkgmk", so it can be a program name with args.
4746set dummy pkgmk; ac_word=$2
4747{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4749if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4751else
4752 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4753 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
4754else
4755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756for as_dir in $PATH
4757do
4758 IFS=$as_save_IFS
4759 test -z "$as_dir" && as_dir=.
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4762 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
4763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 break 2
4765 fi
4766done
4767done
4768IFS=$as_save_IFS
4769
4770 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
4771fi
4772fi
4773MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
4774if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4775 { echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5
4776echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6; }
4777else
4778 { echo "$as_me:$LINENO: result: no" >&5
4779echo "${ECHO_T}no" >&6; }
4780fi
4781
4782
4783if test -x /sbin/sh; then
4784 STARTUP_SCRIPT_SHELL=/sbin/sh
4785
4786else
4787 STARTUP_SCRIPT_SHELL=/bin/sh
4788
4789fi
4790
4791# System features
4792# Check whether --enable-largefile was given.
4793if test "${enable_largefile+set}" = set; then
4794 enableval=$enable_largefile;
4795fi
4796
4797if test "$enable_largefile" != no; then
4798
4799 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4800echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4801if test "${ac_cv_sys_largefile_CC+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4803else
4804 ac_cv_sys_largefile_CC=no
4805 if test "$GCC" != yes; then
4806 ac_save_CC=$CC
4807 while :; do
4808 # IRIX 6.2 and later do not support large files by default,
4809 # so use the C compiler's -n32 option if that helps.
4810 cat >conftest.$ac_ext <<_ACEOF
4811/* confdefs.h. */
4812_ACEOF
4813cat confdefs.h >>conftest.$ac_ext
4814cat >>conftest.$ac_ext <<_ACEOF
4815/* end confdefs.h. */
4816#include <sys/types.h>
4817 /* Check that off_t can represent 2**63 - 1 correctly.
4818 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4819 since some C++ compilers masquerading as C compilers
4820 incorrectly reject 9223372036854775807. */
4821#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4822 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4823 && LARGE_OFF_T % 2147483647 == 1)
4824 ? 1 : -1];
4825int
4826main ()
4827{
4828
4829 ;
4830 return 0;
4831}
4832_ACEOF
4833 rm -f conftest.$ac_objext
4834if { (ac_try="$ac_compile"
4835case "(($ac_try" in
4836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4837 *) ac_try_echo=$ac_try;;
4838esac
4839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4840 (eval "$ac_compile") 2>conftest.er1
4841 ac_status=$?
4842 grep -v '^ *+' conftest.er1 >conftest.err
4843 rm -f conftest.er1
4844 cat conftest.err >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } && {
4847 test -z "$ac_c_werror_flag" ||
4848 test ! -s conftest.err
4849 } && test -s conftest.$ac_objext; then
4850 break
4851else
4852 echo "$as_me: failed program was:" >&5
4853sed 's/^/| /' conftest.$ac_ext >&5
4854
4855
4856fi
4857
4858rm -f core conftest.err conftest.$ac_objext
4859 CC="$CC -n32"
4860 rm -f conftest.$ac_objext
4861if { (ac_try="$ac_compile"
4862case "(($ac_try" in
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4865esac
4866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4867 (eval "$ac_compile") 2>conftest.er1
4868 ac_status=$?
4869 grep -v '^ *+' conftest.er1 >conftest.err
4870 rm -f conftest.er1
4871 cat conftest.err >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } && {
4874 test -z "$ac_c_werror_flag" ||
4875 test ! -s conftest.err
4876 } && test -s conftest.$ac_objext; then
4877 ac_cv_sys_largefile_CC=' -n32'; break
4878else
4879 echo "$as_me: failed program was:" >&5
4880sed 's/^/| /' conftest.$ac_ext >&5
4881
4882
4883fi
4884
4885rm -f core conftest.err conftest.$ac_objext
4886 break
4887 done
4888 CC=$ac_save_CC
4889 rm -f conftest.$ac_ext
4890 fi
4891fi
4892{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4893echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4894 if test "$ac_cv_sys_largefile_CC" != no; then
4895 CC=$CC$ac_cv_sys_largefile_CC
4896 fi
4897
4898 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4899echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4900if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4902else
4903 while :; do
4904 cat >conftest.$ac_ext <<_ACEOF
4905/* confdefs.h. */
4906_ACEOF
4907cat confdefs.h >>conftest.$ac_ext
4908cat >>conftest.$ac_ext <<_ACEOF
4909/* end confdefs.h. */
4910#include <sys/types.h>
4911 /* Check that off_t can represent 2**63 - 1 correctly.
4912 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4913 since some C++ compilers masquerading as C compilers
4914 incorrectly reject 9223372036854775807. */
4915#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4916 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4917 && LARGE_OFF_T % 2147483647 == 1)
4918 ? 1 : -1];
4919int
4920main ()
4921{
4922
4923 ;
4924 return 0;
4925}
4926_ACEOF
4927rm -f conftest.$ac_objext
4928if { (ac_try="$ac_compile"
4929case "(($ac_try" in
4930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4931 *) ac_try_echo=$ac_try;;
4932esac
4933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4934 (eval "$ac_compile") 2>conftest.er1
4935 ac_status=$?
4936 grep -v '^ *+' conftest.er1 >conftest.err
4937 rm -f conftest.er1
4938 cat conftest.err >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } && {
4941 test -z "$ac_c_werror_flag" ||
4942 test ! -s conftest.err
4943 } && test -s conftest.$ac_objext; then
4944 ac_cv_sys_file_offset_bits=no; break
4945else
4946 echo "$as_me: failed program was:" >&5
4947sed 's/^/| /' conftest.$ac_ext >&5
4948
4949
4950fi
4951
4952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4953 cat >conftest.$ac_ext <<_ACEOF
4954/* confdefs.h. */
4955_ACEOF
4956cat confdefs.h >>conftest.$ac_ext
4957cat >>conftest.$ac_ext <<_ACEOF
4958/* end confdefs.h. */
4959#define _FILE_OFFSET_BITS 64
4960#include <sys/types.h>
4961 /* Check that off_t can represent 2**63 - 1 correctly.
4962 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4963 since some C++ compilers masquerading as C compilers
4964 incorrectly reject 9223372036854775807. */
4965#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4966 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4967 && LARGE_OFF_T % 2147483647 == 1)
4968 ? 1 : -1];
4969int
4970main ()
4971{
4972
4973 ;
4974 return 0;
4975}
4976_ACEOF
4977rm -f conftest.$ac_objext
4978if { (ac_try="$ac_compile"
4979case "(($ac_try" in
4980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4981 *) ac_try_echo=$ac_try;;
4982esac
4983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4984 (eval "$ac_compile") 2>conftest.er1
4985 ac_status=$?
4986 grep -v '^ *+' conftest.er1 >conftest.err
4987 rm -f conftest.er1
4988 cat conftest.err >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); } && {
4991 test -z "$ac_c_werror_flag" ||
4992 test ! -s conftest.err
4993 } && test -s conftest.$ac_objext; then
4994 ac_cv_sys_file_offset_bits=64; break
4995else
4996 echo "$as_me: failed program was:" >&5
4997sed 's/^/| /' conftest.$ac_ext >&5
4998
4999
5000fi
5001
5002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003 ac_cv_sys_file_offset_bits=unknown
5004 break
5005done
5006fi
5007{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5008echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5009case $ac_cv_sys_file_offset_bits in #(
5010 no | unknown) ;;
5011 *)
5012cat >>confdefs.h <<_ACEOF
5013#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5014_ACEOF
5015;;
5016esac
5017rm -f conftest*
5018 if test $ac_cv_sys_file_offset_bits = unknown; then
5019 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5020echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5021if test "${ac_cv_sys_large_files+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5023else
5024 while :; do
5025 cat >conftest.$ac_ext <<_ACEOF
5026/* confdefs.h. */
5027_ACEOF
5028cat confdefs.h >>conftest.$ac_ext
5029cat >>conftest.$ac_ext <<_ACEOF
5030/* end confdefs.h. */
5031#include <sys/types.h>
5032 /* Check that off_t can represent 2**63 - 1 correctly.
5033 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5034 since some C++ compilers masquerading as C compilers
5035 incorrectly reject 9223372036854775807. */
5036#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5037 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5038 && LARGE_OFF_T % 2147483647 == 1)
5039 ? 1 : -1];
5040int
5041main ()
5042{
5043
5044 ;
5045 return 0;
5046}
5047_ACEOF
5048rm -f conftest.$ac_objext
5049if { (ac_try="$ac_compile"
5050case "(($ac_try" in
5051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5052 *) ac_try_echo=$ac_try;;
5053esac
5054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5055 (eval "$ac_compile") 2>conftest.er1
5056 ac_status=$?
5057 grep -v '^ *+' conftest.er1 >conftest.err
5058 rm -f conftest.er1
5059 cat conftest.err >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } && {
5062 test -z "$ac_c_werror_flag" ||
5063 test ! -s conftest.err
5064 } && test -s conftest.$ac_objext; then
5065 ac_cv_sys_large_files=no; break
5066else
5067 echo "$as_me: failed program was:" >&5
5068sed 's/^/| /' conftest.$ac_ext >&5
5069
5070
5071fi
5072
5073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5074 cat >conftest.$ac_ext <<_ACEOF
5075/* confdefs.h. */
5076_ACEOF
5077cat confdefs.h >>conftest.$ac_ext
5078cat >>conftest.$ac_ext <<_ACEOF
5079/* end confdefs.h. */
5080#define _LARGE_FILES 1
5081#include <sys/types.h>
5082 /* Check that off_t can represent 2**63 - 1 correctly.
5083 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5084 since some C++ compilers masquerading as C compilers
5085 incorrectly reject 9223372036854775807. */
5086#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5087 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5088 && LARGE_OFF_T % 2147483647 == 1)
5089 ? 1 : -1];
5090int
5091main ()
5092{
5093
5094 ;
5095 return 0;
5096}
5097_ACEOF
5098rm -f conftest.$ac_objext
5099if { (ac_try="$ac_compile"
5100case "(($ac_try" in
5101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102 *) ac_try_echo=$ac_try;;
5103esac
5104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5105 (eval "$ac_compile") 2>conftest.er1
5106 ac_status=$?
5107 grep -v '^ *+' conftest.er1 >conftest.err
5108 rm -f conftest.er1
5109 cat conftest.err >&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); } && {
5112 test -z "$ac_c_werror_flag" ||
5113 test ! -s conftest.err
5114 } && test -s conftest.$ac_objext; then
5115 ac_cv_sys_large_files=1; break
5116else
5117 echo "$as_me: failed program was:" >&5
5118sed 's/^/| /' conftest.$ac_ext >&5
5119
5120
5121fi
5122
5123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5124 ac_cv_sys_large_files=unknown
5125 break
5126done
5127fi
5128{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5129echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5130case $ac_cv_sys_large_files in #(
5131 no | unknown) ;;
5132 *)
5133cat >>confdefs.h <<_ACEOF
5134#define _LARGE_FILES $ac_cv_sys_large_files
5135_ACEOF
5136;;
5137esac
5138rm -f conftest*
5139 fi
5140fi
5141
5142
5143if test -z "$AR" ; then
5144 { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
5145echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
5146 { (exit 1); exit 1; }; }
5147fi
5148
5149# Use LOGIN_PROGRAM from environment if possible
5150if test ! -z "$LOGIN_PROGRAM" ; then
5151
5152cat >>confdefs.h <<_ACEOF
5153#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5154_ACEOF
5155
5156else
5157 # Search for login
5158 # Extract the first word of "login", so it can be a program name with args.
5159set dummy login; ac_word=$2
5160{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5162if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164else
5165 case $LOGIN_PROGRAM_FALLBACK in
5166 [\\/]* | ?:[\\/]*)
5167 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5168 ;;
5169 *)
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171for as_dir in $PATH
5172do
5173 IFS=$as_save_IFS
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5177 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 break 2
5180 fi
5181done
5182done
5183IFS=$as_save_IFS
5184
5185 ;;
5186esac
5187fi
5188LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5189if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5190 { echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
5191echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6; }
5192else
5193 { echo "$as_me:$LINENO: result: no" >&5
5194echo "${ECHO_T}no" >&6; }
5195fi
5196
5197
5198 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5199 cat >>confdefs.h <<_ACEOF
5200#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5201_ACEOF
5202
5203 fi
5204fi
5205
5206# Extract the first word of "passwd", so it can be a program name with args.
5207set dummy passwd; ac_word=$2
5208{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5210if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5212else
5213 case $PATH_PASSWD_PROG in
5214 [\\/]* | ?:[\\/]*)
5215 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5216 ;;
5217 *)
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219for as_dir in $PATH
5220do
5221 IFS=$as_save_IFS
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5225 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5227 break 2
5228 fi
5229done
5230done
5231IFS=$as_save_IFS
5232
5233 ;;
5234esac
5235fi
5236PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5237if test -n "$PATH_PASSWD_PROG"; then
5238 { echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5
5239echo "${ECHO_T}$PATH_PASSWD_PROG" >&6; }
5240else
5241 { echo "$as_me:$LINENO: result: no" >&5
5242echo "${ECHO_T}no" >&6; }
5243fi
5244
5245
5246if test ! -z "$PATH_PASSWD_PROG" ; then
5247
5248cat >>confdefs.h <<_ACEOF
5249#define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5250_ACEOF
5251
5252fi
5253
5254if test -z "$LD" ; then
5255 LD=$CC
5256fi
5257
5258
5259{ echo "$as_me:$LINENO: checking for inline" >&5
5260echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5261if test "${ac_cv_c_inline+set}" = set; then
5262 echo $ECHO_N "(cached) $ECHO_C" >&6
5263else
5264 ac_cv_c_inline=no
5265for ac_kw in inline __inline__ __inline; do
5266 cat >conftest.$ac_ext <<_ACEOF
5267/* confdefs.h. */
5268_ACEOF
5269cat confdefs.h >>conftest.$ac_ext
5270cat >>conftest.$ac_ext <<_ACEOF
5271/* end confdefs.h. */
5272#ifndef __cplusplus
5273typedef int foo_t;
5274static $ac_kw foo_t static_foo () {return 0; }
5275$ac_kw foo_t foo () {return 0; }
5276#endif
5277
5278_ACEOF
5279rm -f conftest.$ac_objext
5280if { (ac_try="$ac_compile"
5281case "(($ac_try" in
5282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5283 *) ac_try_echo=$ac_try;;
5284esac
5285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5286 (eval "$ac_compile") 2>conftest.er1
5287 ac_status=$?
5288 grep -v '^ *+' conftest.er1 >conftest.err
5289 rm -f conftest.er1
5290 cat conftest.err >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } && {
5293 test -z "$ac_c_werror_flag" ||
5294 test ! -s conftest.err
5295 } && test -s conftest.$ac_objext; then
5296 ac_cv_c_inline=$ac_kw
5297else
5298 echo "$as_me: failed program was:" >&5
5299sed 's/^/| /' conftest.$ac_ext >&5
5300
5301
5302fi
5303
5304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5305 test "$ac_cv_c_inline" != no && break
5306done
5307
5308fi
5309{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5310echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5311
5312
5313case $ac_cv_c_inline in
5314 inline | yes) ;;
5315 *)
5316 case $ac_cv_c_inline in
5317 no) ac_val=;;
5318 *) ac_val=$ac_cv_c_inline;;
5319 esac
5320 cat >>confdefs.h <<_ACEOF
5321#ifndef __cplusplus
5322#define inline $ac_val
5323#endif
5324_ACEOF
5325 ;;
5326esac
5327
5328
5329{ echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5330echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
5331if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5332 echo $ECHO_N "(cached) $ECHO_C" >&6
5333else
5334 cat >conftest.$ac_ext <<_ACEOF
5335/* confdefs.h. */
5336_ACEOF
5337cat confdefs.h >>conftest.$ac_ext
5338cat >>conftest.$ac_ext <<_ACEOF
5339/* end confdefs.h. */
5340#include <limits.h>
5341
5342int
5343main ()
5344{
5345#ifndef LLONG_MAX
5346 (void) LLONG_MAX;
5347#endif
5348
5349 ;
5350 return 0;
5351}
5352_ACEOF
5353rm -f conftest.$ac_objext
5354if { (ac_try="$ac_compile"
5355case "(($ac_try" in
5356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357 *) ac_try_echo=$ac_try;;
5358esac
5359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5360 (eval "$ac_compile") 2>conftest.er1
5361 ac_status=$?
5362 grep -v '^ *+' conftest.er1 >conftest.err
5363 rm -f conftest.er1
5364 cat conftest.err >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } && {
5367 test -z "$ac_c_werror_flag" ||
5368 test ! -s conftest.err
5369 } && test -s conftest.$ac_objext; then
5370 ac_cv_have_decl_LLONG_MAX=yes
5371else
5372 echo "$as_me: failed program was:" >&5
5373sed 's/^/| /' conftest.$ac_ext >&5
5374
5375 ac_cv_have_decl_LLONG_MAX=no
5376fi
5377
5378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5379fi
5380{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5381echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
5382if test $ac_cv_have_decl_LLONG_MAX = yes; then
5383 have_llong_max=1
5384fi
5385
5386
5387use_stack_protector=1
5388
5389# Check whether --with-stackprotect was given.
5390if test "${with_stackprotect+set}" = set; then
5391 withval=$with_stackprotect;
5392 if test "x$withval" = "xno"; then
5393 use_stack_protector=0
5394 fi
5395fi
5396
5397
5398if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5399 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized"
5400 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
5401 case $GCC_VER in
5402 1.*) no_attrib_nonnull=1 ;;
5403 2.8* | 2.9*)
5404 CFLAGS="$CFLAGS -Wsign-compare"
5405 no_attrib_nonnull=1
5406 ;;
5407 2.*) no_attrib_nonnull=1 ;;
5408 3.*) CFLAGS="$CFLAGS -Wsign-compare -Wformat-security" ;;
5409 4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign -Wformat-security -fno-strict-aliasing" ;;
5410 *) ;;
5411 esac
5412
5413 { echo "$as_me:$LINENO: checking if $CC accepts -fno-builtin-memset" >&5
5414echo $ECHO_N "checking if $CC accepts -fno-builtin-memset... $ECHO_C" >&6; }
5415 saved_CFLAGS="$CFLAGS"
5416 CFLAGS="$CFLAGS -fno-builtin-memset"
5417 cat >conftest.$ac_ext <<_ACEOF
5418/* confdefs.h. */
5419_ACEOF
5420cat confdefs.h >>conftest.$ac_ext
5421cat >>conftest.$ac_ext <<_ACEOF
5422/* end confdefs.h. */
5423
5424#include <string.h>
5425int main(void){char b[10]; memset(b, 0, sizeof(b));}
5426
5427_ACEOF
5428rm -f conftest.$ac_objext conftest$ac_exeext
5429if { (ac_try="$ac_link"
5430case "(($ac_try" in
5431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432 *) ac_try_echo=$ac_try;;
5433esac
5434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5435 (eval "$ac_link") 2>conftest.er1
5436 ac_status=$?
5437 grep -v '^ *+' conftest.er1 >conftest.err
5438 rm -f conftest.er1
5439 cat conftest.err >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } && {
5442 test -z "$ac_c_werror_flag" ||
5443 test ! -s conftest.err
5444 } && test -s conftest$ac_exeext &&
5445 $as_test_x conftest$ac_exeext; then
5446 { echo "$as_me:$LINENO: result: yes" >&5
5447echo "${ECHO_T}yes" >&6; }
5448else
5449 echo "$as_me: failed program was:" >&5
5450sed 's/^/| /' conftest.$ac_ext >&5
5451
5452 { echo "$as_me:$LINENO: result: no" >&5
5453echo "${ECHO_T}no" >&6; }
5454 CFLAGS="$saved_CFLAGS"
5455
5456fi
5457
5458rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5459 conftest$ac_exeext conftest.$ac_ext
5460
5461 # -fstack-protector-all doesn't always work for some GCC versions
5462 # and/or platforms, so we test if we can. If it's not supported
5463 # on a given platform gcc will emit a warning so we use -Werror.
5464 if test "x$use_stack_protector" = "x1"; then
5465 for t in -fstack-protector-all -fstack-protector; do
5466 { echo "$as_me:$LINENO: checking if $CC supports $t" >&5
5467echo $ECHO_N "checking if $CC supports $t... $ECHO_C" >&6; }
5468 saved_CFLAGS="$CFLAGS"
5469 saved_LDFLAGS="$LDFLAGS"
5470 CFLAGS="$CFLAGS $t -Werror"
5471 LDFLAGS="$LDFLAGS $t -Werror"
5472 cat >conftest.$ac_ext <<_ACEOF
5473/* confdefs.h. */
5474_ACEOF
5475cat confdefs.h >>conftest.$ac_ext
5476cat >>conftest.$ac_ext <<_ACEOF
5477/* end confdefs.h. */
5478
5479#include <stdio.h>
5480int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;}
5481
5482_ACEOF
5483rm -f conftest.$ac_objext conftest$ac_exeext
5484if { (ac_try="$ac_link"
5485case "(($ac_try" in
5486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5487 *) ac_try_echo=$ac_try;;
5488esac
5489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5490 (eval "$ac_link") 2>conftest.er1
5491 ac_status=$?
5492 grep -v '^ *+' conftest.er1 >conftest.err
5493 rm -f conftest.er1
5494 cat conftest.err >&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); } && {
5497 test -z "$ac_c_werror_flag" ||
5498 test ! -s conftest.err
5499 } && test -s conftest$ac_exeext &&
5500 $as_test_x conftest$ac_exeext; then
5501 { echo "$as_me:$LINENO: result: yes" >&5
5502echo "${ECHO_T}yes" >&6; }
5503 CFLAGS="$saved_CFLAGS $t"
5504 LDFLAGS="$saved_LDFLAGS $t"
5505 { echo "$as_me:$LINENO: checking if $t works" >&5
5506echo $ECHO_N "checking if $t works... $ECHO_C" >&6; }
5507 if test "$cross_compiling" = yes; then
5508 { echo "$as_me:$LINENO: WARNING: cross compiling: cannot test" >&5
5509echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
5510 break
5511
5512else
5513 cat >conftest.$ac_ext <<_ACEOF
5514/* confdefs.h. */
5515_ACEOF
5516cat confdefs.h >>conftest.$ac_ext
5517cat >>conftest.$ac_ext <<_ACEOF
5518/* end confdefs.h. */
5519
5520#include <stdio.h>
5521int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;}
5522
5523_ACEOF
5524rm -f conftest$ac_exeext
5525if { (ac_try="$ac_link"
5526case "(($ac_try" in
5527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5528 *) ac_try_echo=$ac_try;;
5529esac
5530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5531 (eval "$ac_link") 2>&5
5532 ac_status=$?
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5535 { (case "(($ac_try" in
5536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5537 *) ac_try_echo=$ac_try;;
5538esac
5539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5540 (eval "$ac_try") 2>&5
5541 ac_status=$?
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); }; }; then
5544 { echo "$as_me:$LINENO: result: yes" >&5
5545echo "${ECHO_T}yes" >&6; }
5546 break
5547else
5548 echo "$as_me: program exited with status $ac_status" >&5
5549echo "$as_me: failed program was:" >&5
5550sed 's/^/| /' conftest.$ac_ext >&5
5551
5552( exit $ac_status )
5553 { echo "$as_me:$LINENO: result: no" >&5
5554echo "${ECHO_T}no" >&6; }
5555fi
5556rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5557fi
5558
5559
5560
5561else
5562 echo "$as_me: failed program was:" >&5
5563sed 's/^/| /' conftest.$ac_ext >&5
5564
5565 { echo "$as_me:$LINENO: result: no" >&5
5566echo "${ECHO_T}no" >&6; }
5567
5568fi
5569
5570rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5571 conftest$ac_exeext conftest.$ac_ext
5572 CFLAGS="$saved_CFLAGS"
5573 LDFLAGS="$saved_LDFLAGS"
5574 done
5575 fi
5576
5577 if test -z "$have_llong_max"; then
5578 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
5579 unset ac_cv_have_decl_LLONG_MAX
5580 saved_CFLAGS="$CFLAGS"
5581 CFLAGS="$CFLAGS -std=gnu99"
5582 { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5583echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
5584if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5586else
5587 cat >conftest.$ac_ext <<_ACEOF
5588/* confdefs.h. */
5589_ACEOF
5590cat confdefs.h >>conftest.$ac_ext
5591cat >>conftest.$ac_ext <<_ACEOF
5592/* end confdefs.h. */
5593#include <limits.h>
5594
5595
5596int
5597main ()
5598{
5599#ifndef LLONG_MAX
5600 (void) LLONG_MAX;
5601#endif
5602
5603 ;
5604 return 0;
5605}
5606_ACEOF
5607rm -f conftest.$ac_objext
5608if { (ac_try="$ac_compile"
5609case "(($ac_try" in
5610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5611 *) ac_try_echo=$ac_try;;
5612esac
5613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5614 (eval "$ac_compile") 2>conftest.er1
5615 ac_status=$?
5616 grep -v '^ *+' conftest.er1 >conftest.err
5617 rm -f conftest.er1
5618 cat conftest.err >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } && {
5621 test -z "$ac_c_werror_flag" ||
5622 test ! -s conftest.err
5623 } && test -s conftest.$ac_objext; then
5624 ac_cv_have_decl_LLONG_MAX=yes
5625else
5626 echo "$as_me: failed program was:" >&5
5627sed 's/^/| /' conftest.$ac_ext >&5
5628
5629 ac_cv_have_decl_LLONG_MAX=no
5630fi
5631
5632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5633fi
5634{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5635echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
5636if test $ac_cv_have_decl_LLONG_MAX = yes; then
5637 have_llong_max=1
5638else
5639 CFLAGS="$saved_CFLAGS"
5640fi
5641
5642 fi
5643fi
5644
5645if test "x$no_attrib_nonnull" != "x1" ; then
5646
5647cat >>confdefs.h <<\_ACEOF
5648#define HAVE_ATTRIBUTE__NONNULL__ 1
5649_ACEOF
5650
5651fi
5652
5653
5654# Check whether --with-rpath was given.
5655if test "${with_rpath+set}" = set; then
5656 withval=$with_rpath;
5657 if test "x$withval" = "xno" ; then
5658 need_dash_r=""
5659 fi
5660 if test "x$withval" = "xyes" ; then
5661 need_dash_r=1
5662 fi
5663
5664
5665fi
5666
5667
5668# Allow user to specify flags
5669
5670# Check whether --with-cflags was given.
5671if test "${with_cflags+set}" = set; then
5672 withval=$with_cflags;
5673 if test -n "$withval" && test "x$withval" != "xno" && \
5674 test "x${withval}" != "xyes"; then
5675 CFLAGS="$CFLAGS $withval"
5676 fi
5677
5678
5679fi
5680
5681
5682# Check whether --with-cppflags was given.
5683if test "${with_cppflags+set}" = set; then
5684 withval=$with_cppflags;
5685 if test -n "$withval" && test "x$withval" != "xno" && \
5686 test "x${withval}" != "xyes"; then
5687 CPPFLAGS="$CPPFLAGS $withval"
5688 fi
5689
5690
5691fi
5692
5693
5694# Check whether --with-ldflags was given.
5695if test "${with_ldflags+set}" = set; then
5696 withval=$with_ldflags;
5697 if test -n "$withval" && test "x$withval" != "xno" && \
5698 test "x${withval}" != "xyes"; then
5699 LDFLAGS="$LDFLAGS $withval"
5700 fi
5701
5702
5703fi
5704
5705
5706# Check whether --with-libs was given.
5707if test "${with_libs+set}" = set; then
5708 withval=$with_libs;
5709 if test -n "$withval" && test "x$withval" != "xno" && \
5710 test "x${withval}" != "xyes"; then
5711 LIBS="$LIBS $withval"
5712 fi
5713
5714
5715fi
5716
5717
5718# Check whether --with-Werror was given.
5719if test "${with_Werror+set}" = set; then
5720 withval=$with_Werror;
5721 if test -n "$withval" && test "x$withval" != "xno"; then
5722 werror_flags="-Werror"
5723 if test "x${withval}" != "xyes"; then
5724 werror_flags="$withval"
5725 fi
5726 fi
5727
5728
5729fi
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795for ac_header in \
5796 bstring.h \
5797 crypt.h \
5798 crypto/sha2.h \
5799 dirent.h \
5800 endian.h \
5801 features.h \
5802 fcntl.h \
5803 floatingpoint.h \
5804 getopt.h \
5805 glob.h \
5806 ia.h \
5807 iaf.h \
5808 limits.h \
5809 login.h \
5810 maillock.h \
5811 ndir.h \
5812 net/if_tun.h \
5813 netdb.h \
5814 netgroup.h \
5815 pam/pam_appl.h \
5816 paths.h \
5817 poll.h \
5818 pty.h \
5819 readpassphrase.h \
5820 rpc/types.h \
5821 security/pam_appl.h \
5822 sha2.h \
5823 shadow.h \
5824 stddef.h \
5825 stdint.h \
5826 string.h \
5827 strings.h \
5828 sys/audit.h \
5829 sys/bitypes.h \
5830 sys/bsdtty.h \
5831 sys/cdefs.h \
5832 sys/dir.h \
5833 sys/mman.h \
5834 sys/ndir.h \
5835 sys/poll.h \
5836 sys/prctl.h \
5837 sys/pstat.h \
5838 sys/select.h \
5839 sys/stat.h \
5840 sys/stream.h \
5841 sys/stropts.h \
5842 sys/strtio.h \
5843 sys/statvfs.h \
5844 sys/sysmacros.h \
5845 sys/time.h \
5846 sys/timers.h \
5847 sys/un.h \
5848 time.h \
5849 tmpdir.h \
5850 ttyent.h \
5851 ucred.h \
5852 unistd.h \
5853 usersec.h \
5854 util.h \
5855 utime.h \
5856 utmp.h \
5857 utmpx.h \
5858 vis.h \
5859
5860do
5861as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5862if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5863 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5864echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5865if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5867fi
5868ac_res=`eval echo '${'$as_ac_Header'}'`
5869 { echo "$as_me:$LINENO: result: $ac_res" >&5
5870echo "${ECHO_T}$ac_res" >&6; }
5871else
5872 # Is the header compilable?
5873{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5874echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5875cat >conftest.$ac_ext <<_ACEOF
5876/* confdefs.h. */
5877_ACEOF
5878cat confdefs.h >>conftest.$ac_ext
5879cat >>conftest.$ac_ext <<_ACEOF
5880/* end confdefs.h. */
5881$ac_includes_default
5882#include <$ac_header>
5883_ACEOF
5884rm -f conftest.$ac_objext
5885if { (ac_try="$ac_compile"
5886case "(($ac_try" in
5887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888 *) ac_try_echo=$ac_try;;
5889esac
5890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891 (eval "$ac_compile") 2>conftest.er1
5892 ac_status=$?
5893 grep -v '^ *+' conftest.er1 >conftest.err
5894 rm -f conftest.er1
5895 cat conftest.err >&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); } && {
5898 test -z "$ac_c_werror_flag" ||
5899 test ! -s conftest.err
5900 } && test -s conftest.$ac_objext; then
5901 ac_header_compiler=yes
5902else
5903 echo "$as_me: failed program was:" >&5
5904sed 's/^/| /' conftest.$ac_ext >&5
5905
5906 ac_header_compiler=no
5907fi
5908
5909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5910{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5911echo "${ECHO_T}$ac_header_compiler" >&6; }
5912
5913# Is the header present?
5914{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5915echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5916cat >conftest.$ac_ext <<_ACEOF
5917/* confdefs.h. */
5918_ACEOF
5919cat confdefs.h >>conftest.$ac_ext
5920cat >>conftest.$ac_ext <<_ACEOF
5921/* end confdefs.h. */
5922#include <$ac_header>
5923_ACEOF
5924if { (ac_try="$ac_cpp conftest.$ac_ext"
5925case "(($ac_try" in
5926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5927 *) ac_try_echo=$ac_try;;
5928esac
5929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } >/dev/null && {
5937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5938 test ! -s conftest.err
5939 }; then
5940 ac_header_preproc=yes
5941else
5942 echo "$as_me: failed program was:" >&5
5943sed 's/^/| /' conftest.$ac_ext >&5
5944
5945 ac_header_preproc=no
5946fi
5947
5948rm -f conftest.err conftest.$ac_ext
5949{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5950echo "${ECHO_T}$ac_header_preproc" >&6; }
5951
5952# So? What about this header?
5953case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5954 yes:no: )
5955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5956echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5958echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5959 ac_header_preproc=yes
5960 ;;
5961 no:yes:* )
5962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5963echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5965echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5966 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5967echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5968 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5969echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5971echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5972 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5973echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5974 ( cat <<\_ASBOX
5975## ------------------------------------------- ##
5976## Report this to openssh-unix-dev@mindrot.org ##
5977## ------------------------------------------- ##
5978_ASBOX
5979 ) | sed "s/^/$as_me: WARNING: /" >&2
5980 ;;
5981esac
5982{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5984if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5985 echo $ECHO_N "(cached) $ECHO_C" >&6
5986else
5987 eval "$as_ac_Header=\$ac_header_preproc"
5988fi
5989ac_res=`eval echo '${'$as_ac_Header'}'`
5990 { echo "$as_me:$LINENO: result: $ac_res" >&5
5991echo "${ECHO_T}$ac_res" >&6; }
5992
5993fi
5994if test `eval echo '${'$as_ac_Header'}'` = yes; then
5995 cat >>confdefs.h <<_ACEOF
5996#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5997_ACEOF
5998
5999fi
6000
6001done
6002
6003
6004# lastlog.h requires sys/time.h to be included first on Solaris
6005
6006for ac_header in lastlog.h
6007do
6008as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6009{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6010echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6011if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6013else
6014 cat >conftest.$ac_ext <<_ACEOF
6015/* confdefs.h. */
6016_ACEOF
6017cat confdefs.h >>conftest.$ac_ext
6018cat >>conftest.$ac_ext <<_ACEOF
6019/* end confdefs.h. */
6020
6021#ifdef HAVE_SYS_TIME_H
6022# include <sys/time.h>
6023#endif
6024
6025
6026#include <$ac_header>
6027_ACEOF
6028rm -f conftest.$ac_objext
6029if { (ac_try="$ac_compile"
6030case "(($ac_try" in
6031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6032 *) ac_try_echo=$ac_try;;
6033esac
6034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6035 (eval "$ac_compile") 2>conftest.er1
6036 ac_status=$?
6037 grep -v '^ *+' conftest.er1 >conftest.err
6038 rm -f conftest.er1
6039 cat conftest.err >&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); } && {
6042 test -z "$ac_c_werror_flag" ||
6043 test ! -s conftest.err
6044 } && test -s conftest.$ac_objext; then
6045 eval "$as_ac_Header=yes"
6046else
6047 echo "$as_me: failed program was:" >&5
6048sed 's/^/| /' conftest.$ac_ext >&5
6049
6050 eval "$as_ac_Header=no"
6051fi
6052
6053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054fi
6055ac_res=`eval echo '${'$as_ac_Header'}'`
6056 { echo "$as_me:$LINENO: result: $ac_res" >&5
6057echo "${ECHO_T}$ac_res" >&6; }
6058if test `eval echo '${'$as_ac_Header'}'` = yes; then
6059 cat >>confdefs.h <<_ACEOF
6060#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6061_ACEOF
6062
6063fi
6064
6065done
6066
6067
6068# sys/ptms.h requires sys/stream.h to be included first on Solaris
6069
6070for ac_header in sys/ptms.h
6071do
6072as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6073{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6074echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6075if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6076 echo $ECHO_N "(cached) $ECHO_C" >&6
6077else
6078 cat >conftest.$ac_ext <<_ACEOF
6079/* confdefs.h. */
6080_ACEOF
6081cat confdefs.h >>conftest.$ac_ext
6082cat >>conftest.$ac_ext <<_ACEOF
6083/* end confdefs.h. */
6084
6085#ifdef HAVE_SYS_STREAM_H
6086# include <sys/stream.h>
6087#endif
6088
6089
6090#include <$ac_header>
6091_ACEOF
6092rm -f conftest.$ac_objext
6093if { (ac_try="$ac_compile"
6094case "(($ac_try" in
6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096 *) ac_try_echo=$ac_try;;
6097esac
6098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6099 (eval "$ac_compile") 2>conftest.er1
6100 ac_status=$?
6101 grep -v '^ *+' conftest.er1 >conftest.err
6102 rm -f conftest.er1
6103 cat conftest.err >&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } && {
6106 test -z "$ac_c_werror_flag" ||
6107 test ! -s conftest.err
6108 } && test -s conftest.$ac_objext; then
6109 eval "$as_ac_Header=yes"
6110else
6111 echo "$as_me: failed program was:" >&5
6112sed 's/^/| /' conftest.$ac_ext >&5
6113
6114 eval "$as_ac_Header=no"
6115fi
6116
6117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6118fi
6119ac_res=`eval echo '${'$as_ac_Header'}'`
6120 { echo "$as_me:$LINENO: result: $ac_res" >&5
6121echo "${ECHO_T}$ac_res" >&6; }
6122if test `eval echo '${'$as_ac_Header'}'` = yes; then
6123 cat >>confdefs.h <<_ACEOF
6124#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6125_ACEOF
6126
6127fi
6128
6129done
6130
6131
6132# login_cap.h requires sys/types.h on NetBSD
6133
6134for ac_header in login_cap.h
6135do
6136as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6137{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6141else
6142 cat >conftest.$ac_ext <<_ACEOF
6143/* confdefs.h. */
6144_ACEOF
6145cat confdefs.h >>conftest.$ac_ext
6146cat >>conftest.$ac_ext <<_ACEOF
6147/* end confdefs.h. */
6148
6149#include <sys/types.h>
6150
6151
6152#include <$ac_header>
6153_ACEOF
6154rm -f conftest.$ac_objext
6155if { (ac_try="$ac_compile"
6156case "(($ac_try" in
6157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158 *) ac_try_echo=$ac_try;;
6159esac
6160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6161 (eval "$ac_compile") 2>conftest.er1
6162 ac_status=$?
6163 grep -v '^ *+' conftest.er1 >conftest.err
6164 rm -f conftest.er1
6165 cat conftest.err >&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); } && {
6168 test -z "$ac_c_werror_flag" ||
6169 test ! -s conftest.err
6170 } && test -s conftest.$ac_objext; then
6171 eval "$as_ac_Header=yes"
6172else
6173 echo "$as_me: failed program was:" >&5
6174sed 's/^/| /' conftest.$ac_ext >&5
6175
6176 eval "$as_ac_Header=no"
6177fi
6178
6179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6180fi
6181ac_res=`eval echo '${'$as_ac_Header'}'`
6182 { echo "$as_me:$LINENO: result: $ac_res" >&5
6183echo "${ECHO_T}$ac_res" >&6; }
6184if test `eval echo '${'$as_ac_Header'}'` = yes; then
6185 cat >>confdefs.h <<_ACEOF
6186#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6187_ACEOF
6188
6189fi
6190
6191done
6192
6193
6194# older BSDs need sys/param.h before sys/mount.h
6195
6196for ac_header in sys/mount.h
6197do
6198as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6199{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6200echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6201if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6203else
6204 cat >conftest.$ac_ext <<_ACEOF
6205/* confdefs.h. */
6206_ACEOF
6207cat confdefs.h >>conftest.$ac_ext
6208cat >>conftest.$ac_ext <<_ACEOF
6209/* end confdefs.h. */
6210
6211#include <sys/param.h>
6212
6213
6214#include <$ac_header>
6215_ACEOF
6216rm -f conftest.$ac_objext
6217if { (ac_try="$ac_compile"
6218case "(($ac_try" in
6219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6220 *) ac_try_echo=$ac_try;;
6221esac
6222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6223 (eval "$ac_compile") 2>conftest.er1
6224 ac_status=$?
6225 grep -v '^ *+' conftest.er1 >conftest.err
6226 rm -f conftest.er1
6227 cat conftest.err >&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); } && {
6230 test -z "$ac_c_werror_flag" ||
6231 test ! -s conftest.err
6232 } && test -s conftest.$ac_objext; then
6233 eval "$as_ac_Header=yes"
6234else
6235 echo "$as_me: failed program was:" >&5
6236sed 's/^/| /' conftest.$ac_ext >&5
6237
6238 eval "$as_ac_Header=no"
6239fi
6240
6241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6242fi
6243ac_res=`eval echo '${'$as_ac_Header'}'`
6244 { echo "$as_me:$LINENO: result: $ac_res" >&5
6245echo "${ECHO_T}$ac_res" >&6; }
6246if test `eval echo '${'$as_ac_Header'}'` = yes; then
6247 cat >>confdefs.h <<_ACEOF
6248#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6249_ACEOF
6250
6251fi
6252
6253done
6254
6255
6256# Messages for features tested for in target-specific section
6257SIA_MSG="no"
6258SPC_MSG="no"
6259
6260# Check for some target-specific stuff
6261case "$host" in
6262*-*-aix*)
6263 # Some versions of VAC won't allow macro redefinitions at
6264 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
6265 # particularly with older versions of vac or xlc.
6266 # It also throws errors about null macro argments, but these are
6267 # not fatal.
6268 { echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5
6269echo $ECHO_N "checking if compiler allows macro redefinitions... $ECHO_C" >&6; }
6270 cat >conftest.$ac_ext <<_ACEOF
6271/* confdefs.h. */
6272_ACEOF
6273cat confdefs.h >>conftest.$ac_ext
6274cat >>conftest.$ac_ext <<_ACEOF
6275/* end confdefs.h. */
6276
6277#define testmacro foo
6278#define testmacro bar
6279int main(void) { exit(0); }
6280
6281_ACEOF
6282rm -f conftest.$ac_objext
6283if { (ac_try="$ac_compile"
6284case "(($ac_try" in
6285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6286 *) ac_try_echo=$ac_try;;
6287esac
6288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6289 (eval "$ac_compile") 2>conftest.er1
6290 ac_status=$?
6291 grep -v '^ *+' conftest.er1 >conftest.err
6292 rm -f conftest.er1
6293 cat conftest.err >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } && {
6296 test -z "$ac_c_werror_flag" ||
6297 test ! -s conftest.err
6298 } && test -s conftest.$ac_objext; then
6299 { echo "$as_me:$LINENO: result: yes" >&5
6300echo "${ECHO_T}yes" >&6; }
6301else
6302 echo "$as_me: failed program was:" >&5
6303sed 's/^/| /' conftest.$ac_ext >&5
6304
6305 { echo "$as_me:$LINENO: result: no" >&5
6306echo "${ECHO_T}no" >&6; }
6307 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
6308 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
6309 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6310 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6311
6312
6313fi
6314
6315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6316
6317 { echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5
6318echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; }
6319 if (test -z "$blibpath"); then
6320 blibpath="/usr/lib:/lib"
6321 fi
6322 saved_LDFLAGS="$LDFLAGS"
6323 if test "$GCC" = "yes"; then
6324 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
6325 else
6326 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
6327 fi
6328 for tryflags in $flags ;do
6329 if (test -z "$blibflags"); then
6330 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
6331 cat >conftest.$ac_ext <<_ACEOF
6332/* confdefs.h. */
6333_ACEOF
6334cat confdefs.h >>conftest.$ac_ext
6335cat >>conftest.$ac_ext <<_ACEOF
6336/* end confdefs.h. */
6337
6338int
6339main ()
6340{
6341
6342 ;
6343 return 0;
6344}
6345_ACEOF
6346rm -f conftest.$ac_objext conftest$ac_exeext
6347if { (ac_try="$ac_link"
6348case "(($ac_try" in
6349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6350 *) ac_try_echo=$ac_try;;
6351esac
6352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6353 (eval "$ac_link") 2>conftest.er1
6354 ac_status=$?
6355 grep -v '^ *+' conftest.er1 >conftest.err
6356 rm -f conftest.er1
6357 cat conftest.err >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } && {
6360 test -z "$ac_c_werror_flag" ||
6361 test ! -s conftest.err
6362 } && test -s conftest$ac_exeext &&
6363 $as_test_x conftest$ac_exeext; then
6364 blibflags=$tryflags
6365else
6366 echo "$as_me: failed program was:" >&5
6367sed 's/^/| /' conftest.$ac_ext >&5
6368
6369
6370fi
6371
6372rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6373 conftest$ac_exeext conftest.$ac_ext
6374 fi
6375 done
6376 if (test -z "$blibflags"); then
6377 { echo "$as_me:$LINENO: result: not found" >&5
6378echo "${ECHO_T}not found" >&6; }
6379 { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5
6380echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;}
6381 { (exit 1); exit 1; }; }
6382 else
6383 { echo "$as_me:$LINENO: result: $blibflags" >&5
6384echo "${ECHO_T}$blibflags" >&6; }
6385 fi
6386 LDFLAGS="$saved_LDFLAGS"
6387 { echo "$as_me:$LINENO: checking for authenticate" >&5
6388echo $ECHO_N "checking for authenticate... $ECHO_C" >&6; }
6389if test "${ac_cv_func_authenticate+set}" = set; then
6390 echo $ECHO_N "(cached) $ECHO_C" >&6
6391else
6392 cat >conftest.$ac_ext <<_ACEOF
6393/* confdefs.h. */
6394_ACEOF
6395cat confdefs.h >>conftest.$ac_ext
6396cat >>conftest.$ac_ext <<_ACEOF
6397/* end confdefs.h. */
6398/* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate.
6399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6400#define authenticate innocuous_authenticate
6401
6402/* System header to define __stub macros and hopefully few prototypes,
6403 which can conflict with char authenticate (); below.
6404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6405 <limits.h> exists even on freestanding compilers. */
6406
6407#ifdef __STDC__
6408# include <limits.h>
6409#else
6410# include <assert.h>
6411#endif
6412
6413#undef authenticate
6414
6415/* Override any GCC internal prototype to avoid an error.
6416 Use char because int might match the return type of a GCC
6417 builtin and then its argument prototype would still apply. */
6418#ifdef __cplusplus
6419extern "C"
6420#endif
6421char authenticate ();
6422/* The GNU C library defines this for functions which it implements
6423 to always fail with ENOSYS. Some functions are actually named
6424 something starting with __ and the normal name is an alias. */
6425#if defined __stub_authenticate || defined __stub___authenticate
6426choke me
6427#endif
6428
6429int
6430main ()
6431{
6432return authenticate ();
6433 ;
6434 return 0;
6435}
6436_ACEOF
6437rm -f conftest.$ac_objext conftest$ac_exeext
6438if { (ac_try="$ac_link"
6439case "(($ac_try" in
6440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6441 *) ac_try_echo=$ac_try;;
6442esac
6443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6444 (eval "$ac_link") 2>conftest.er1
6445 ac_status=$?
6446 grep -v '^ *+' conftest.er1 >conftest.err
6447 rm -f conftest.er1
6448 cat conftest.err >&5
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); } && {
6451 test -z "$ac_c_werror_flag" ||
6452 test ! -s conftest.err
6453 } && test -s conftest$ac_exeext &&
6454 $as_test_x conftest$ac_exeext; then
6455 ac_cv_func_authenticate=yes
6456else
6457 echo "$as_me: failed program was:" >&5
6458sed 's/^/| /' conftest.$ac_ext >&5
6459
6460 ac_cv_func_authenticate=no
6461fi
6462
6463rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6464 conftest$ac_exeext conftest.$ac_ext
6465fi
6466{ echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
6467echo "${ECHO_T}$ac_cv_func_authenticate" >&6; }
6468if test $ac_cv_func_authenticate = yes; then
6469
6470cat >>confdefs.h <<\_ACEOF
6471#define WITH_AIXAUTHENTICATE 1
6472_ACEOF
6473
6474else
6475 { echo "$as_me:$LINENO: checking for authenticate in -ls" >&5
6476echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6; }
6477if test "${ac_cv_lib_s_authenticate+set}" = set; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6479else
6480 ac_check_lib_save_LIBS=$LIBS
6481LIBS="-ls $LIBS"
6482cat >conftest.$ac_ext <<_ACEOF
6483/* confdefs.h. */
6484_ACEOF
6485cat confdefs.h >>conftest.$ac_ext
6486cat >>conftest.$ac_ext <<_ACEOF
6487/* end confdefs.h. */
6488
6489/* Override any GCC internal prototype to avoid an error.
6490 Use char because int might match the return type of a GCC
6491 builtin and then its argument prototype would still apply. */
6492#ifdef __cplusplus
6493extern "C"
6494#endif
6495char authenticate ();
6496int
6497main ()
6498{
6499return authenticate ();
6500 ;
6501 return 0;
6502}
6503_ACEOF
6504rm -f conftest.$ac_objext conftest$ac_exeext
6505if { (ac_try="$ac_link"
6506case "(($ac_try" in
6507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6508 *) ac_try_echo=$ac_try;;
6509esac
6510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6511 (eval "$ac_link") 2>conftest.er1
6512 ac_status=$?
6513 grep -v '^ *+' conftest.er1 >conftest.err
6514 rm -f conftest.er1
6515 cat conftest.err >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } && {
6518 test -z "$ac_c_werror_flag" ||
6519 test ! -s conftest.err
6520 } && test -s conftest$ac_exeext &&
6521 $as_test_x conftest$ac_exeext; then
6522 ac_cv_lib_s_authenticate=yes
6523else
6524 echo "$as_me: failed program was:" >&5
6525sed 's/^/| /' conftest.$ac_ext >&5
6526
6527 ac_cv_lib_s_authenticate=no
6528fi
6529
6530rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6531 conftest$ac_exeext conftest.$ac_ext
6532LIBS=$ac_check_lib_save_LIBS
6533fi
6534{ echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5
6535echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6; }
6536if test $ac_cv_lib_s_authenticate = yes; then
6537 cat >>confdefs.h <<\_ACEOF
6538#define WITH_AIXAUTHENTICATE 1
6539_ACEOF
6540
6541 LIBS="$LIBS -ls"
6542
6543fi
6544
6545
6546fi
6547
6548 { echo "$as_me:$LINENO: checking whether authenticate is declared" >&5
6549echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6; }
6550if test "${ac_cv_have_decl_authenticate+set}" = set; then
6551 echo $ECHO_N "(cached) $ECHO_C" >&6
6552else
6553 cat >conftest.$ac_ext <<_ACEOF
6554/* confdefs.h. */
6555_ACEOF
6556cat confdefs.h >>conftest.$ac_ext
6557cat >>conftest.$ac_ext <<_ACEOF
6558/* end confdefs.h. */
6559#include <usersec.h>
6560
6561int
6562main ()
6563{
6564#ifndef authenticate
6565 (void) authenticate;
6566#endif
6567
6568 ;
6569 return 0;
6570}
6571_ACEOF
6572rm -f conftest.$ac_objext
6573if { (ac_try="$ac_compile"
6574case "(($ac_try" in
6575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576 *) ac_try_echo=$ac_try;;
6577esac
6578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6579 (eval "$ac_compile") 2>conftest.er1
6580 ac_status=$?
6581 grep -v '^ *+' conftest.er1 >conftest.err
6582 rm -f conftest.er1
6583 cat conftest.err >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); } && {
6586 test -z "$ac_c_werror_flag" ||
6587 test ! -s conftest.err
6588 } && test -s conftest.$ac_objext; then
6589 ac_cv_have_decl_authenticate=yes
6590else
6591 echo "$as_me: failed program was:" >&5
6592sed 's/^/| /' conftest.$ac_ext >&5
6593
6594 ac_cv_have_decl_authenticate=no
6595fi
6596
6597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6598fi
6599{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5
6600echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6; }
6601if test $ac_cv_have_decl_authenticate = yes; then
6602
6603cat >>confdefs.h <<_ACEOF
6604#define HAVE_DECL_AUTHENTICATE 1
6605_ACEOF
6606
6607
6608else
6609 cat >>confdefs.h <<_ACEOF
6610#define HAVE_DECL_AUTHENTICATE 0
6611_ACEOF
6612
6613
6614fi
6615{ echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5
6616echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6; }
6617if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6619else
6620 cat >conftest.$ac_ext <<_ACEOF
6621/* confdefs.h. */
6622_ACEOF
6623cat confdefs.h >>conftest.$ac_ext
6624cat >>conftest.$ac_ext <<_ACEOF
6625/* end confdefs.h. */
6626#include <usersec.h>
6627
6628int
6629main ()
6630{
6631#ifndef loginrestrictions
6632 (void) loginrestrictions;
6633#endif
6634
6635 ;
6636 return 0;
6637}
6638_ACEOF
6639rm -f conftest.$ac_objext
6640if { (ac_try="$ac_compile"
6641case "(($ac_try" in
6642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6643 *) ac_try_echo=$ac_try;;
6644esac
6645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6646 (eval "$ac_compile") 2>conftest.er1
6647 ac_status=$?
6648 grep -v '^ *+' conftest.er1 >conftest.err
6649 rm -f conftest.er1
6650 cat conftest.err >&5
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); } && {
6653 test -z "$ac_c_werror_flag" ||
6654 test ! -s conftest.err
6655 } && test -s conftest.$ac_objext; then
6656 ac_cv_have_decl_loginrestrictions=yes
6657else
6658 echo "$as_me: failed program was:" >&5
6659sed 's/^/| /' conftest.$ac_ext >&5
6660
6661 ac_cv_have_decl_loginrestrictions=no
6662fi
6663
6664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6665fi
6666{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5
6667echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6; }
6668if test $ac_cv_have_decl_loginrestrictions = yes; then
6669
6670cat >>confdefs.h <<_ACEOF
6671#define HAVE_DECL_LOGINRESTRICTIONS 1
6672_ACEOF
6673
6674
6675else
6676 cat >>confdefs.h <<_ACEOF
6677#define HAVE_DECL_LOGINRESTRICTIONS 0
6678_ACEOF
6679
6680
6681fi
6682{ echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5
6683echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6; }
6684if test "${ac_cv_have_decl_loginsuccess+set}" = set; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
6686else
6687 cat >conftest.$ac_ext <<_ACEOF
6688/* confdefs.h. */
6689_ACEOF
6690cat confdefs.h >>conftest.$ac_ext
6691cat >>conftest.$ac_ext <<_ACEOF
6692/* end confdefs.h. */
6693#include <usersec.h>
6694
6695int
6696main ()
6697{
6698#ifndef loginsuccess
6699 (void) loginsuccess;
6700#endif
6701
6702 ;
6703 return 0;
6704}
6705_ACEOF
6706rm -f conftest.$ac_objext
6707if { (ac_try="$ac_compile"
6708case "(($ac_try" in
6709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6710 *) ac_try_echo=$ac_try;;
6711esac
6712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6713 (eval "$ac_compile") 2>conftest.er1
6714 ac_status=$?
6715 grep -v '^ *+' conftest.er1 >conftest.err
6716 rm -f conftest.er1
6717 cat conftest.err >&5
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); } && {
6720 test -z "$ac_c_werror_flag" ||
6721 test ! -s conftest.err
6722 } && test -s conftest.$ac_objext; then
6723 ac_cv_have_decl_loginsuccess=yes
6724else
6725 echo "$as_me: failed program was:" >&5
6726sed 's/^/| /' conftest.$ac_ext >&5
6727
6728 ac_cv_have_decl_loginsuccess=no
6729fi
6730
6731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6732fi
6733{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5
6734echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6; }
6735if test $ac_cv_have_decl_loginsuccess = yes; then
6736
6737cat >>confdefs.h <<_ACEOF
6738#define HAVE_DECL_LOGINSUCCESS 1
6739_ACEOF
6740
6741
6742else
6743 cat >>confdefs.h <<_ACEOF
6744#define HAVE_DECL_LOGINSUCCESS 0
6745_ACEOF
6746
6747
6748fi
6749{ echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5
6750echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6; }
6751if test "${ac_cv_have_decl_passwdexpired+set}" = set; then
6752 echo $ECHO_N "(cached) $ECHO_C" >&6
6753else
6754 cat >conftest.$ac_ext <<_ACEOF
6755/* confdefs.h. */
6756_ACEOF
6757cat confdefs.h >>conftest.$ac_ext
6758cat >>conftest.$ac_ext <<_ACEOF
6759/* end confdefs.h. */
6760#include <usersec.h>
6761
6762int
6763main ()
6764{
6765#ifndef passwdexpired
6766 (void) passwdexpired;
6767#endif
6768
6769 ;
6770 return 0;
6771}
6772_ACEOF
6773rm -f conftest.$ac_objext
6774if { (ac_try="$ac_compile"
6775case "(($ac_try" in
6776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6777 *) ac_try_echo=$ac_try;;
6778esac
6779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6780 (eval "$ac_compile") 2>conftest.er1
6781 ac_status=$?
6782 grep -v '^ *+' conftest.er1 >conftest.err
6783 rm -f conftest.er1
6784 cat conftest.err >&5
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); } && {
6787 test -z "$ac_c_werror_flag" ||
6788 test ! -s conftest.err
6789 } && test -s conftest.$ac_objext; then
6790 ac_cv_have_decl_passwdexpired=yes
6791else
6792 echo "$as_me: failed program was:" >&5
6793sed 's/^/| /' conftest.$ac_ext >&5
6794
6795 ac_cv_have_decl_passwdexpired=no
6796fi
6797
6798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6799fi
6800{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5
6801echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6; }
6802if test $ac_cv_have_decl_passwdexpired = yes; then
6803
6804cat >>confdefs.h <<_ACEOF
6805#define HAVE_DECL_PASSWDEXPIRED 1
6806_ACEOF
6807
6808
6809else
6810 cat >>confdefs.h <<_ACEOF
6811#define HAVE_DECL_PASSWDEXPIRED 0
6812_ACEOF
6813
6814
6815fi
6816{ echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5
6817echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6; }
6818if test "${ac_cv_have_decl_setauthdb+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6820else
6821 cat >conftest.$ac_ext <<_ACEOF
6822/* confdefs.h. */
6823_ACEOF
6824cat confdefs.h >>conftest.$ac_ext
6825cat >>conftest.$ac_ext <<_ACEOF
6826/* end confdefs.h. */
6827#include <usersec.h>
6828
6829int
6830main ()
6831{
6832#ifndef setauthdb
6833 (void) setauthdb;
6834#endif
6835
6836 ;
6837 return 0;
6838}
6839_ACEOF
6840rm -f conftest.$ac_objext
6841if { (ac_try="$ac_compile"
6842case "(($ac_try" in
6843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6844 *) ac_try_echo=$ac_try;;
6845esac
6846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6847 (eval "$ac_compile") 2>conftest.er1
6848 ac_status=$?
6849 grep -v '^ *+' conftest.er1 >conftest.err
6850 rm -f conftest.er1
6851 cat conftest.err >&5
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); } && {
6854 test -z "$ac_c_werror_flag" ||
6855 test ! -s conftest.err
6856 } && test -s conftest.$ac_objext; then
6857 ac_cv_have_decl_setauthdb=yes
6858else
6859 echo "$as_me: failed program was:" >&5
6860sed 's/^/| /' conftest.$ac_ext >&5
6861
6862 ac_cv_have_decl_setauthdb=no
6863fi
6864
6865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6866fi
6867{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5
6868echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6; }
6869if test $ac_cv_have_decl_setauthdb = yes; then
6870
6871cat >>confdefs.h <<_ACEOF
6872#define HAVE_DECL_SETAUTHDB 1
6873_ACEOF
6874
6875
6876else
6877 cat >>confdefs.h <<_ACEOF
6878#define HAVE_DECL_SETAUTHDB 0
6879_ACEOF
6880
6881
6882fi
6883
6884
6885 { echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5
6886echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6; }
6887if test "${ac_cv_have_decl_loginfailed+set}" = set; then
6888 echo $ECHO_N "(cached) $ECHO_C" >&6
6889else
6890 cat >conftest.$ac_ext <<_ACEOF
6891/* confdefs.h. */
6892_ACEOF
6893cat confdefs.h >>conftest.$ac_ext
6894cat >>conftest.$ac_ext <<_ACEOF
6895/* end confdefs.h. */
6896#include <usersec.h>
6897
6898
6899int
6900main ()
6901{
6902#ifndef loginfailed
6903 (void) loginfailed;
6904#endif
6905
6906 ;
6907 return 0;
6908}
6909_ACEOF
6910rm -f conftest.$ac_objext
6911if { (ac_try="$ac_compile"
6912case "(($ac_try" in
6913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6914 *) ac_try_echo=$ac_try;;
6915esac
6916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6917 (eval "$ac_compile") 2>conftest.er1
6918 ac_status=$?
6919 grep -v '^ *+' conftest.er1 >conftest.err
6920 rm -f conftest.er1
6921 cat conftest.err >&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); } && {
6924 test -z "$ac_c_werror_flag" ||
6925 test ! -s conftest.err
6926 } && test -s conftest.$ac_objext; then
6927 ac_cv_have_decl_loginfailed=yes
6928else
6929 echo "$as_me: failed program was:" >&5
6930sed 's/^/| /' conftest.$ac_ext >&5
6931
6932 ac_cv_have_decl_loginfailed=no
6933fi
6934
6935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6936fi
6937{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5
6938echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6; }
6939if test $ac_cv_have_decl_loginfailed = yes; then
6940
6941cat >>confdefs.h <<_ACEOF
6942#define HAVE_DECL_LOGINFAILED 1
6943_ACEOF
6944
6945{ echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5
6946echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6; }
6947 cat >conftest.$ac_ext <<_ACEOF
6948/* confdefs.h. */
6949_ACEOF
6950cat confdefs.h >>conftest.$ac_ext
6951cat >>conftest.$ac_ext <<_ACEOF
6952/* end confdefs.h. */
6953#include <usersec.h>
6954int
6955main ()
6956{
6957(void)loginfailed("user","host","tty",0);
6958 ;
6959 return 0;
6960}
6961_ACEOF
6962rm -f conftest.$ac_objext
6963if { (ac_try="$ac_compile"
6964case "(($ac_try" in
6965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6966 *) ac_try_echo=$ac_try;;
6967esac
6968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6969 (eval "$ac_compile") 2>conftest.er1
6970 ac_status=$?
6971 grep -v '^ *+' conftest.er1 >conftest.err
6972 rm -f conftest.er1
6973 cat conftest.err >&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } && {
6976 test -z "$ac_c_werror_flag" ||
6977 test ! -s conftest.err
6978 } && test -s conftest.$ac_objext; then
6979 { echo "$as_me:$LINENO: result: yes" >&5
6980echo "${ECHO_T}yes" >&6; }
6981
6982cat >>confdefs.h <<\_ACEOF
6983#define AIX_LOGINFAILED_4ARG 1
6984_ACEOF
6985
6986else
6987 echo "$as_me: failed program was:" >&5
6988sed 's/^/| /' conftest.$ac_ext >&5
6989
6990 { echo "$as_me:$LINENO: result: no" >&5
6991echo "${ECHO_T}no" >&6; }
6992
6993fi
6994
6995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6996else
6997 cat >>confdefs.h <<_ACEOF
6998#define HAVE_DECL_LOGINFAILED 0
6999_ACEOF
7000
7001
7002fi
7003
7004
7005
7006
7007for ac_func in getgrset setauthdb
7008do
7009as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7010{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7011echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7012if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7013 echo $ECHO_N "(cached) $ECHO_C" >&6
7014else
7015 cat >conftest.$ac_ext <<_ACEOF
7016/* confdefs.h. */
7017_ACEOF
7018cat confdefs.h >>conftest.$ac_ext
7019cat >>conftest.$ac_ext <<_ACEOF
7020/* end confdefs.h. */
7021/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7023#define $ac_func innocuous_$ac_func
7024
7025/* System header to define __stub macros and hopefully few prototypes,
7026 which can conflict with char $ac_func (); below.
7027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7028 <limits.h> exists even on freestanding compilers. */
7029
7030#ifdef __STDC__
7031# include <limits.h>
7032#else
7033# include <assert.h>
7034#endif
7035
7036#undef $ac_func
7037
7038/* Override any GCC internal prototype to avoid an error.
7039 Use char because int might match the return type of a GCC
7040 builtin and then its argument prototype would still apply. */
7041#ifdef __cplusplus
7042extern "C"
7043#endif
7044char $ac_func ();
7045/* The GNU C library defines this for functions which it implements
7046 to always fail with ENOSYS. Some functions are actually named
7047 something starting with __ and the normal name is an alias. */
7048#if defined __stub_$ac_func || defined __stub___$ac_func
7049choke me
7050#endif
7051
7052int
7053main ()
7054{
7055return $ac_func ();
7056 ;
7057 return 0;
7058}
7059_ACEOF
7060rm -f conftest.$ac_objext conftest$ac_exeext
7061if { (ac_try="$ac_link"
7062case "(($ac_try" in
7063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7064 *) ac_try_echo=$ac_try;;
7065esac
7066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7067 (eval "$ac_link") 2>conftest.er1
7068 ac_status=$?
7069 grep -v '^ *+' conftest.er1 >conftest.err
7070 rm -f conftest.er1
7071 cat conftest.err >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } && {
7074 test -z "$ac_c_werror_flag" ||
7075 test ! -s conftest.err
7076 } && test -s conftest$ac_exeext &&
7077 $as_test_x conftest$ac_exeext; then
7078 eval "$as_ac_var=yes"
7079else
7080 echo "$as_me: failed program was:" >&5
7081sed 's/^/| /' conftest.$ac_ext >&5
7082
7083 eval "$as_ac_var=no"
7084fi
7085
7086rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7087 conftest$ac_exeext conftest.$ac_ext
7088fi
7089ac_res=`eval echo '${'$as_ac_var'}'`
7090 { echo "$as_me:$LINENO: result: $ac_res" >&5
7091echo "${ECHO_T}$ac_res" >&6; }
7092if test `eval echo '${'$as_ac_var'}'` = yes; then
7093 cat >>confdefs.h <<_ACEOF
7094#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7095_ACEOF
7096
7097fi
7098done
7099
7100 { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
7101echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
7102if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7104else
7105 cat >conftest.$ac_ext <<_ACEOF
7106/* confdefs.h. */
7107_ACEOF
7108cat confdefs.h >>conftest.$ac_ext
7109cat >>conftest.$ac_ext <<_ACEOF
7110/* end confdefs.h. */
7111 #include <limits.h>
7112 #include <fcntl.h>
7113
7114
7115int
7116main ()
7117{
7118#ifndef F_CLOSEM
7119 (void) F_CLOSEM;
7120#endif
7121
7122 ;
7123 return 0;
7124}
7125_ACEOF
7126rm -f conftest.$ac_objext
7127if { (ac_try="$ac_compile"
7128case "(($ac_try" in
7129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7130 *) ac_try_echo=$ac_try;;
7131esac
7132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7133 (eval "$ac_compile") 2>conftest.er1
7134 ac_status=$?
7135 grep -v '^ *+' conftest.er1 >conftest.err
7136 rm -f conftest.er1
7137 cat conftest.err >&5
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); } && {
7140 test -z "$ac_c_werror_flag" ||
7141 test ! -s conftest.err
7142 } && test -s conftest.$ac_objext; then
7143 ac_cv_have_decl_F_CLOSEM=yes
7144else
7145 echo "$as_me: failed program was:" >&5
7146sed 's/^/| /' conftest.$ac_ext >&5
7147
7148 ac_cv_have_decl_F_CLOSEM=no
7149fi
7150
7151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7152fi
7153{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
7154echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
7155if test $ac_cv_have_decl_F_CLOSEM = yes; then
7156
7157cat >>confdefs.h <<\_ACEOF
7158#define HAVE_FCNTL_CLOSEM 1
7159_ACEOF
7160
7161fi
7162
7163 check_for_aix_broken_getaddrinfo=1
7164
7165cat >>confdefs.h <<\_ACEOF
7166#define BROKEN_REALPATH 1
7167_ACEOF
7168
7169
7170cat >>confdefs.h <<\_ACEOF
7171#define SETEUID_BREAKS_SETUID 1
7172_ACEOF
7173
7174
7175cat >>confdefs.h <<\_ACEOF
7176#define BROKEN_SETREUID 1
7177_ACEOF
7178
7179
7180cat >>confdefs.h <<\_ACEOF
7181#define BROKEN_SETREGID 1
7182_ACEOF
7183
7184
7185cat >>confdefs.h <<\_ACEOF
7186#define DISABLE_LASTLOG 1
7187_ACEOF
7188
7189
7190cat >>confdefs.h <<\_ACEOF
7191#define LOGIN_NEEDS_UTMPX 1
7192_ACEOF
7193
7194
7195cat >>confdefs.h <<\_ACEOF
7196#define SPT_TYPE SPT_REUSEARGV
7197_ACEOF
7198
7199
7200cat >>confdefs.h <<\_ACEOF
7201#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
7202_ACEOF
7203
7204
7205cat >>confdefs.h <<\_ACEOF
7206#define PTY_ZEROREAD 1
7207_ACEOF
7208
7209 ;;
7210*-*-cygwin*)
7211 check_for_libcrypt_later=1
7212 LIBS="$LIBS /usr/lib/textreadmode.o"
7213
7214cat >>confdefs.h <<\_ACEOF
7215#define HAVE_CYGWIN 1
7216_ACEOF
7217
7218
7219cat >>confdefs.h <<\_ACEOF
7220#define USE_PIPES 1
7221_ACEOF
7222
7223
7224cat >>confdefs.h <<\_ACEOF
7225#define DISABLE_SHADOW 1
7226_ACEOF
7227
7228
7229cat >>confdefs.h <<\_ACEOF
7230#define NO_X11_UNIX_SOCKETS 1
7231_ACEOF
7232
7233
7234cat >>confdefs.h <<\_ACEOF
7235#define NO_IPPORT_RESERVED_CONCEPT 1
7236_ACEOF
7237
7238
7239cat >>confdefs.h <<\_ACEOF
7240#define DISABLE_FD_PASSING 1
7241_ACEOF
7242
7243
7244cat >>confdefs.h <<\_ACEOF
7245#define SSH_IOBUFSZ 65535
7246_ACEOF
7247
7248 ;;
7249*-*-dgux*)
7250
7251cat >>confdefs.h <<\_ACEOF
7252#define IP_TOS_IS_BROKEN 1
7253_ACEOF
7254
7255 cat >>confdefs.h <<\_ACEOF
7256#define SETEUID_BREAKS_SETUID 1
7257_ACEOF
7258
7259 cat >>confdefs.h <<\_ACEOF
7260#define BROKEN_SETREUID 1
7261_ACEOF
7262
7263 cat >>confdefs.h <<\_ACEOF
7264#define BROKEN_SETREGID 1
7265_ACEOF
7266
7267 ;;
7268*-*-darwin*)
7269 { echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5
7270echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6; }
7271 if test "$cross_compiling" = yes; then
7272 { echo "$as_me:$LINENO: result: assume it is working" >&5
7273echo "${ECHO_T}assume it is working" >&6; }
7274else
7275 cat >conftest.$ac_ext <<_ACEOF
7276/* confdefs.h. */
7277_ACEOF
7278cat confdefs.h >>conftest.$ac_ext
7279cat >>conftest.$ac_ext <<_ACEOF
7280/* end confdefs.h. */
7281#include <mach-o/dyld.h>
7282main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
7283 exit(0);
7284 else
7285 exit(1);
7286}
7287_ACEOF
7288rm -f conftest$ac_exeext
7289if { (ac_try="$ac_link"
7290case "(($ac_try" in
7291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7292 *) ac_try_echo=$ac_try;;
7293esac
7294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7295 (eval "$ac_link") 2>&5
7296 ac_status=$?
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7299 { (case "(($ac_try" in
7300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7301 *) ac_try_echo=$ac_try;;
7302esac
7303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7304 (eval "$ac_try") 2>&5
7305 ac_status=$?
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; }; then
7308 { echo "$as_me:$LINENO: result: working" >&5
7309echo "${ECHO_T}working" >&6; }
7310else
7311 echo "$as_me: program exited with status $ac_status" >&5
7312echo "$as_me: failed program was:" >&5
7313sed 's/^/| /' conftest.$ac_ext >&5
7314
7315( exit $ac_status )
7316{ echo "$as_me:$LINENO: result: buggy" >&5
7317echo "${ECHO_T}buggy" >&6; }
7318
7319cat >>confdefs.h <<\_ACEOF
7320#define BROKEN_GETADDRINFO 1
7321_ACEOF
7322
7323fi
7324rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7325fi
7326
7327
7328 cat >>confdefs.h <<\_ACEOF
7329#define SETEUID_BREAKS_SETUID 1
7330_ACEOF
7331
7332 cat >>confdefs.h <<\_ACEOF
7333#define BROKEN_SETREUID 1
7334_ACEOF
7335
7336 cat >>confdefs.h <<\_ACEOF
7337#define BROKEN_SETREGID 1
7338_ACEOF
7339
7340
7341cat >>confdefs.h <<\_ACEOF
7342#define BROKEN_GLOB 1
7343_ACEOF
7344
7345
7346cat >>confdefs.h <<_ACEOF
7347#define BIND_8_COMPAT 1
7348_ACEOF
7349
7350
7351cat >>confdefs.h <<\_ACEOF
7352#define SSH_TUN_FREEBSD 1
7353_ACEOF
7354
7355
7356cat >>confdefs.h <<\_ACEOF
7357#define SSH_TUN_COMPAT_AF 1
7358_ACEOF
7359
7360
7361cat >>confdefs.h <<\_ACEOF
7362#define SSH_TUN_PREPEND_AF 1
7363_ACEOF
7364
7365
7366 { echo "$as_me:$LINENO: checking whether AU_IPv4 is declared" >&5
7367echo $ECHO_N "checking whether AU_IPv4 is declared... $ECHO_C" >&6; }
7368if test "${ac_cv_have_decl_AU_IPv4+set}" = set; then
7369 echo $ECHO_N "(cached) $ECHO_C" >&6
7370else
7371 cat >conftest.$ac_ext <<_ACEOF
7372/* confdefs.h. */
7373_ACEOF
7374cat confdefs.h >>conftest.$ac_ext
7375cat >>conftest.$ac_ext <<_ACEOF
7376/* end confdefs.h. */
7377$ac_includes_default
7378int
7379main ()
7380{
7381#ifndef AU_IPv4
7382 (void) AU_IPv4;
7383#endif
7384
7385 ;
7386 return 0;
7387}
7388_ACEOF
7389rm -f conftest.$ac_objext
7390if { (ac_try="$ac_compile"
7391case "(($ac_try" in
7392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7393 *) ac_try_echo=$ac_try;;
7394esac
7395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7396 (eval "$ac_compile") 2>conftest.er1
7397 ac_status=$?
7398 grep -v '^ *+' conftest.er1 >conftest.err
7399 rm -f conftest.er1
7400 cat conftest.err >&5
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); } && {
7403 test -z "$ac_c_werror_flag" ||
7404 test ! -s conftest.err
7405 } && test -s conftest.$ac_objext; then
7406 ac_cv_have_decl_AU_IPv4=yes
7407else
7408 echo "$as_me: failed program was:" >&5
7409sed 's/^/| /' conftest.$ac_ext >&5
7410
7411 ac_cv_have_decl_AU_IPv4=no
7412fi
7413
7414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7415fi
7416{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_AU_IPv4" >&5
7417echo "${ECHO_T}$ac_cv_have_decl_AU_IPv4" >&6; }
7418if test $ac_cv_have_decl_AU_IPv4 = yes; then
7419 :
7420else
7421
7422cat >>confdefs.h <<\_ACEOF
7423#define AU_IPv4 0
7424_ACEOF
7425
7426 #include <bsm/audit.h>
7427
7428cat >>confdefs.h <<\_ACEOF
7429#define LASTLOG_WRITE_PUTUTXLINE 1
7430_ACEOF
7431
7432
7433fi
7434
7435 ;;
7436*-*-dragonfly*)
7437 SSHDLIBS="$SSHDLIBS -lcrypt"
7438 ;;
7439*-*-haiku*)
7440 LIBS="$LIBS -lbsd "
7441
7442{ echo "$as_me:$LINENO: checking for socket in -lnetwork" >&5
7443echo $ECHO_N "checking for socket in -lnetwork... $ECHO_C" >&6; }
7444if test "${ac_cv_lib_network_socket+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7446else
7447 ac_check_lib_save_LIBS=$LIBS
7448LIBS="-lnetwork $LIBS"
7449cat >conftest.$ac_ext <<_ACEOF
7450/* confdefs.h. */
7451_ACEOF
7452cat confdefs.h >>conftest.$ac_ext
7453cat >>conftest.$ac_ext <<_ACEOF
7454/* end confdefs.h. */
7455
7456/* Override any GCC internal prototype to avoid an error.
7457 Use char because int might match the return type of a GCC
7458 builtin and then its argument prototype would still apply. */
7459#ifdef __cplusplus
7460extern "C"
7461#endif
7462char socket ();
7463int
7464main ()
7465{
7466return socket ();
7467 ;
7468 return 0;
7469}
7470_ACEOF
7471rm -f conftest.$ac_objext conftest$ac_exeext
7472if { (ac_try="$ac_link"
7473case "(($ac_try" in
7474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7475 *) ac_try_echo=$ac_try;;
7476esac
7477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7478 (eval "$ac_link") 2>conftest.er1
7479 ac_status=$?
7480 grep -v '^ *+' conftest.er1 >conftest.err
7481 rm -f conftest.er1
7482 cat conftest.err >&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); } && {
7485 test -z "$ac_c_werror_flag" ||
7486 test ! -s conftest.err
7487 } && test -s conftest$ac_exeext &&
7488 $as_test_x conftest$ac_exeext; then
7489 ac_cv_lib_network_socket=yes
7490else
7491 echo "$as_me: failed program was:" >&5
7492sed 's/^/| /' conftest.$ac_ext >&5
7493
7494 ac_cv_lib_network_socket=no
7495fi
7496
7497rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7498 conftest$ac_exeext conftest.$ac_ext
7499LIBS=$ac_check_lib_save_LIBS
7500fi
7501{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_socket" >&5
7502echo "${ECHO_T}$ac_cv_lib_network_socket" >&6; }
7503if test $ac_cv_lib_network_socket = yes; then
7504 cat >>confdefs.h <<_ACEOF
7505#define HAVE_LIBNETWORK 1
7506_ACEOF
7507
7508 LIBS="-lnetwork $LIBS"
7509
7510fi
7511
7512 cat >>confdefs.h <<\_ACEOF
7513#define HAVE_U_INT64_T 1
7514_ACEOF
7515
7516 MANTYPE=man
7517 ;;
7518*-*-hpux*)
7519 # first we define all of the options common to all HP-UX releases
7520 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
7521 IPADDR_IN_DISPLAY=yes
7522 cat >>confdefs.h <<\_ACEOF
7523#define USE_PIPES 1
7524_ACEOF
7525
7526
7527cat >>confdefs.h <<\_ACEOF
7528#define LOGIN_NO_ENDOPT 1
7529_ACEOF
7530
7531 cat >>confdefs.h <<\_ACEOF
7532#define LOGIN_NEEDS_UTMPX 1
7533_ACEOF
7534
7535
7536cat >>confdefs.h <<\_ACEOF
7537#define LOCKED_PASSWD_STRING "*"
7538_ACEOF
7539
7540 cat >>confdefs.h <<\_ACEOF
7541#define SPT_TYPE SPT_PSTAT
7542_ACEOF
7543
7544 MAIL="/var/mail/username"
7545 LIBS="$LIBS -lsec"
7546
7547{ echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
7548echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6; }
7549if test "${ac_cv_lib_xnet_t_error+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7551else
7552 ac_check_lib_save_LIBS=$LIBS
7553LIBS="-lxnet $LIBS"
7554cat >conftest.$ac_ext <<_ACEOF
7555/* confdefs.h. */
7556_ACEOF
7557cat confdefs.h >>conftest.$ac_ext
7558cat >>conftest.$ac_ext <<_ACEOF
7559/* end confdefs.h. */
7560
7561/* Override any GCC internal prototype to avoid an error.
7562 Use char because int might match the return type of a GCC
7563 builtin and then its argument prototype would still apply. */
7564#ifdef __cplusplus
7565extern "C"
7566#endif
7567char t_error ();
7568int
7569main ()
7570{
7571return t_error ();
7572 ;
7573 return 0;
7574}
7575_ACEOF
7576rm -f conftest.$ac_objext conftest$ac_exeext
7577if { (ac_try="$ac_link"
7578case "(($ac_try" in
7579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7580 *) ac_try_echo=$ac_try;;
7581esac
7582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7583 (eval "$ac_link") 2>conftest.er1
7584 ac_status=$?
7585 grep -v '^ *+' conftest.er1 >conftest.err
7586 rm -f conftest.er1
7587 cat conftest.err >&5
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } && {
7590 test -z "$ac_c_werror_flag" ||
7591 test ! -s conftest.err
7592 } && test -s conftest$ac_exeext &&
7593 $as_test_x conftest$ac_exeext; then
7594 ac_cv_lib_xnet_t_error=yes
7595else
7596 echo "$as_me: failed program was:" >&5
7597sed 's/^/| /' conftest.$ac_ext >&5
7598
7599 ac_cv_lib_xnet_t_error=no
7600fi
7601
7602rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7603 conftest$ac_exeext conftest.$ac_ext
7604LIBS=$ac_check_lib_save_LIBS
7605fi
7606{ echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
7607echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6; }
7608if test $ac_cv_lib_xnet_t_error = yes; then
7609 cat >>confdefs.h <<_ACEOF
7610#define HAVE_LIBXNET 1
7611_ACEOF
7612
7613 LIBS="-lxnet $LIBS"
7614
7615else
7616 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
7617echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
7618 { (exit 1); exit 1; }; }
7619fi
7620
7621
7622 # next, we define all of the options specific to major releases
7623 case "$host" in
7624 *-*-hpux10*)
7625 if test -z "$GCC"; then
7626 CFLAGS="$CFLAGS -Ae"
7627 fi
7628 ;;
7629 *-*-hpux11*)
7630
7631cat >>confdefs.h <<\_ACEOF
7632#define PAM_SUN_CODEBASE 1
7633_ACEOF
7634
7635
7636cat >>confdefs.h <<\_ACEOF
7637#define DISABLE_UTMP 1
7638_ACEOF
7639
7640
7641cat >>confdefs.h <<\_ACEOF
7642#define USE_BTMP 1
7643_ACEOF
7644
7645 check_for_hpux_broken_getaddrinfo=1
7646 check_for_conflicting_getspnam=1
7647 ;;
7648 esac
7649
7650 # lastly, we define options specific to minor releases
7651 case "$host" in
7652 *-*-hpux10.26)
7653
7654cat >>confdefs.h <<\_ACEOF
7655#define HAVE_SECUREWARE 1
7656_ACEOF
7657
7658 disable_ptmx_check=yes
7659 LIBS="$LIBS -lsecpw"
7660 ;;
7661 esac
7662 ;;
7663*-*-irix5*)
7664 PATH="$PATH:/usr/etc"
7665
7666cat >>confdefs.h <<\_ACEOF
7667#define BROKEN_INET_NTOA 1
7668_ACEOF
7669
7670 cat >>confdefs.h <<\_ACEOF
7671#define SETEUID_BREAKS_SETUID 1
7672_ACEOF
7673
7674 cat >>confdefs.h <<\_ACEOF
7675#define BROKEN_SETREUID 1
7676_ACEOF
7677
7678 cat >>confdefs.h <<\_ACEOF
7679#define BROKEN_SETREGID 1
7680_ACEOF
7681
7682
7683cat >>confdefs.h <<\_ACEOF
7684#define WITH_ABBREV_NO_TTY 1
7685_ACEOF
7686
7687 cat >>confdefs.h <<\_ACEOF
7688#define LOCKED_PASSWD_STRING "*LK*"
7689_ACEOF
7690
7691 ;;
7692*-*-irix6*)
7693 PATH="$PATH:/usr/etc"
7694
7695cat >>confdefs.h <<\_ACEOF
7696#define WITH_IRIX_ARRAY 1
7697_ACEOF
7698
7699
7700cat >>confdefs.h <<\_ACEOF
7701#define WITH_IRIX_PROJECT 1
7702_ACEOF
7703
7704
7705cat >>confdefs.h <<\_ACEOF
7706#define WITH_IRIX_AUDIT 1
7707_ACEOF
7708
7709 { echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
7710echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6; }
7711if test "${ac_cv_func_jlimit_startjob+set}" = set; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7713else
7714 cat >conftest.$ac_ext <<_ACEOF
7715/* confdefs.h. */
7716_ACEOF
7717cat confdefs.h >>conftest.$ac_ext
7718cat >>conftest.$ac_ext <<_ACEOF
7719/* end confdefs.h. */
7720/* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob.
7721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7722#define jlimit_startjob innocuous_jlimit_startjob
7723
7724/* System header to define __stub macros and hopefully few prototypes,
7725 which can conflict with char jlimit_startjob (); below.
7726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7727 <limits.h> exists even on freestanding compilers. */
7728
7729#ifdef __STDC__
7730# include <limits.h>
7731#else
7732# include <assert.h>
7733#endif
7734
7735#undef jlimit_startjob
7736
7737/* Override any GCC internal prototype to avoid an error.
7738 Use char because int might match the return type of a GCC
7739 builtin and then its argument prototype would still apply. */
7740#ifdef __cplusplus
7741extern "C"
7742#endif
7743char jlimit_startjob ();
7744/* The GNU C library defines this for functions which it implements
7745 to always fail with ENOSYS. Some functions are actually named
7746 something starting with __ and the normal name is an alias. */
7747#if defined __stub_jlimit_startjob || defined __stub___jlimit_startjob
7748choke me
7749#endif
7750
7751int
7752main ()
7753{
7754return jlimit_startjob ();
7755 ;
7756 return 0;
7757}
7758_ACEOF
7759rm -f conftest.$ac_objext conftest$ac_exeext
7760if { (ac_try="$ac_link"
7761case "(($ac_try" in
7762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7763 *) ac_try_echo=$ac_try;;
7764esac
7765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7766 (eval "$ac_link") 2>conftest.er1
7767 ac_status=$?
7768 grep -v '^ *+' conftest.er1 >conftest.err
7769 rm -f conftest.er1
7770 cat conftest.err >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } && {
7773 test -z "$ac_c_werror_flag" ||
7774 test ! -s conftest.err
7775 } && test -s conftest$ac_exeext &&
7776 $as_test_x conftest$ac_exeext; then
7777 ac_cv_func_jlimit_startjob=yes
7778else
7779 echo "$as_me: failed program was:" >&5
7780sed 's/^/| /' conftest.$ac_ext >&5
7781
7782 ac_cv_func_jlimit_startjob=no
7783fi
7784
7785rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7786 conftest$ac_exeext conftest.$ac_ext
7787fi
7788{ echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
7789echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6; }
7790if test $ac_cv_func_jlimit_startjob = yes; then
7791
7792cat >>confdefs.h <<\_ACEOF
7793#define WITH_IRIX_JOBS 1
7794_ACEOF
7795
7796fi
7797
7798 cat >>confdefs.h <<\_ACEOF
7799#define BROKEN_INET_NTOA 1
7800_ACEOF
7801
7802 cat >>confdefs.h <<\_ACEOF
7803#define SETEUID_BREAKS_SETUID 1
7804_ACEOF
7805
7806 cat >>confdefs.h <<\_ACEOF
7807#define BROKEN_SETREUID 1
7808_ACEOF
7809
7810 cat >>confdefs.h <<\_ACEOF
7811#define BROKEN_SETREGID 1
7812_ACEOF
7813
7814
7815cat >>confdefs.h <<\_ACEOF
7816#define BROKEN_UPDWTMPX 1
7817_ACEOF
7818
7819 cat >>confdefs.h <<\_ACEOF
7820#define WITH_ABBREV_NO_TTY 1
7821_ACEOF
7822
7823 cat >>confdefs.h <<\_ACEOF
7824#define LOCKED_PASSWD_STRING "*LK*"
7825_ACEOF
7826
7827 ;;
7828*-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7829 check_for_libcrypt_later=1
7830 cat >>confdefs.h <<\_ACEOF
7831#define PAM_TTY_KLUDGE 1
7832_ACEOF
7833
7834 cat >>confdefs.h <<\_ACEOF
7835#define LOCKED_PASSWD_PREFIX "!"
7836_ACEOF
7837
7838 cat >>confdefs.h <<\_ACEOF
7839#define SPT_TYPE SPT_REUSEARGV
7840_ACEOF
7841
7842
7843cat >>confdefs.h <<\_ACEOF
7844#define _PATH_BTMP "/var/log/btmp"
7845_ACEOF
7846
7847
7848cat >>confdefs.h <<\_ACEOF
7849#define USE_BTMP 1
7850_ACEOF
7851
7852 ;;
7853*-*-linux*)
7854 no_dev_ptmx=1
7855 check_for_libcrypt_later=1
7856 check_for_openpty_ctty_bug=1
7857
7858cat >>confdefs.h <<\_ACEOF
7859#define PAM_TTY_KLUDGE 1
7860_ACEOF
7861
7862
7863cat >>confdefs.h <<\_ACEOF
7864#define LOCKED_PASSWD_PREFIX "!"
7865_ACEOF
7866
7867 cat >>confdefs.h <<\_ACEOF
7868#define SPT_TYPE SPT_REUSEARGV
7869_ACEOF
7870
7871
7872cat >>confdefs.h <<\_ACEOF
7873#define LINK_OPNOTSUPP_ERRNO EPERM
7874_ACEOF
7875
7876
7877cat >>confdefs.h <<\_ACEOF
7878#define _PATH_BTMP "/var/log/btmp"
7879_ACEOF
7880
7881 cat >>confdefs.h <<\_ACEOF
7882#define USE_BTMP 1
7883_ACEOF
7884
7885
7886cat >>confdefs.h <<\_ACEOF
7887#define LINUX_OOM_ADJUST 1
7888_ACEOF
7889
7890 inet6_default_4in6=yes
7891 case `uname -r` in
7892 1.*|2.0.*)
7893
7894cat >>confdefs.h <<\_ACEOF
7895#define BROKEN_CMSG_TYPE 1
7896_ACEOF
7897
7898 ;;
7899 esac
7900 # tun(4) forwarding compat code
7901
7902for ac_header in linux/if_tun.h
7903do
7904as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7905if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7906 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7908if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7910fi
7911ac_res=`eval echo '${'$as_ac_Header'}'`
7912 { echo "$as_me:$LINENO: result: $ac_res" >&5
7913echo "${ECHO_T}$ac_res" >&6; }
7914else
7915 # Is the header compilable?
7916{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7917echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7918cat >conftest.$ac_ext <<_ACEOF
7919/* confdefs.h. */
7920_ACEOF
7921cat confdefs.h >>conftest.$ac_ext
7922cat >>conftest.$ac_ext <<_ACEOF
7923/* end confdefs.h. */
7924$ac_includes_default
7925#include <$ac_header>
7926_ACEOF
7927rm -f conftest.$ac_objext
7928if { (ac_try="$ac_compile"
7929case "(($ac_try" in
7930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7931 *) ac_try_echo=$ac_try;;
7932esac
7933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7934 (eval "$ac_compile") 2>conftest.er1
7935 ac_status=$?
7936 grep -v '^ *+' conftest.er1 >conftest.err
7937 rm -f conftest.er1
7938 cat conftest.err >&5
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); } && {
7941 test -z "$ac_c_werror_flag" ||
7942 test ! -s conftest.err
7943 } && test -s conftest.$ac_objext; then
7944 ac_header_compiler=yes
7945else
7946 echo "$as_me: failed program was:" >&5
7947sed 's/^/| /' conftest.$ac_ext >&5
7948
7949 ac_header_compiler=no
7950fi
7951
7952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7953{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7954echo "${ECHO_T}$ac_header_compiler" >&6; }
7955
7956# Is the header present?
7957{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7958echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7959cat >conftest.$ac_ext <<_ACEOF
7960/* confdefs.h. */
7961_ACEOF
7962cat confdefs.h >>conftest.$ac_ext
7963cat >>conftest.$ac_ext <<_ACEOF
7964/* end confdefs.h. */
7965#include <$ac_header>
7966_ACEOF
7967if { (ac_try="$ac_cpp conftest.$ac_ext"
7968case "(($ac_try" in
7969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7970 *) ac_try_echo=$ac_try;;
7971esac
7972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7974 ac_status=$?
7975 grep -v '^ *+' conftest.er1 >conftest.err
7976 rm -f conftest.er1
7977 cat conftest.err >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); } >/dev/null && {
7980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7981 test ! -s conftest.err
7982 }; then
7983 ac_header_preproc=yes
7984else
7985 echo "$as_me: failed program was:" >&5
7986sed 's/^/| /' conftest.$ac_ext >&5
7987
7988 ac_header_preproc=no
7989fi
7990
7991rm -f conftest.err conftest.$ac_ext
7992{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7993echo "${ECHO_T}$ac_header_preproc" >&6; }
7994
7995# So? What about this header?
7996case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7997 yes:no: )
7998 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7999echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8001echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8002 ac_header_preproc=yes
8003 ;;
8004 no:yes:* )
8005 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8006echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8007 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8008echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8009 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8010echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8011 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8012echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8014echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8015 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8016echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8017 ( cat <<\_ASBOX
8018## ------------------------------------------- ##
8019## Report this to openssh-unix-dev@mindrot.org ##
8020## ------------------------------------------- ##
8021_ASBOX
8022 ) | sed "s/^/$as_me: WARNING: /" >&2
8023 ;;
8024esac
8025{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8028 echo $ECHO_N "(cached) $ECHO_C" >&6
8029else
8030 eval "$as_ac_Header=\$ac_header_preproc"
8031fi
8032ac_res=`eval echo '${'$as_ac_Header'}'`
8033 { echo "$as_me:$LINENO: result: $ac_res" >&5
8034echo "${ECHO_T}$ac_res" >&6; }
8035
8036fi
8037if test `eval echo '${'$as_ac_Header'}'` = yes; then
8038 cat >>confdefs.h <<_ACEOF
8039#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8040_ACEOF
8041
8042fi
8043
8044done
8045
8046 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
8047
8048cat >>confdefs.h <<\_ACEOF
8049#define SSH_TUN_LINUX 1
8050_ACEOF
8051
8052
8053cat >>confdefs.h <<\_ACEOF
8054#define SSH_TUN_COMPAT_AF 1
8055_ACEOF
8056
8057
8058cat >>confdefs.h <<\_ACEOF
8059#define SSH_TUN_PREPEND_AF 1
8060_ACEOF
8061
8062 fi
8063 ;;
8064mips-sony-bsd|mips-sony-newsos4)
8065
8066cat >>confdefs.h <<\_ACEOF
8067#define NEED_SETPGRP 1
8068_ACEOF
8069
8070 SONY=1
8071 ;;
8072*-*-netbsd*)
8073 check_for_libcrypt_before=1
8074 if test "x$withval" != "xno" ; then
8075 need_dash_r=1
8076 fi
8077
8078cat >>confdefs.h <<\_ACEOF
8079#define SSH_TUN_FREEBSD 1
8080_ACEOF
8081
8082 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8083 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8084echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8085if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8087fi
8088{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8089echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8090else
8091 # Is the header compilable?
8092{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
8093echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
8094cat >conftest.$ac_ext <<_ACEOF
8095/* confdefs.h. */
8096_ACEOF
8097cat confdefs.h >>conftest.$ac_ext
8098cat >>conftest.$ac_ext <<_ACEOF
8099/* end confdefs.h. */
8100$ac_includes_default
8101#include <net/if_tap.h>
8102_ACEOF
8103rm -f conftest.$ac_objext
8104if { (ac_try="$ac_compile"
8105case "(($ac_try" in
8106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8107 *) ac_try_echo=$ac_try;;
8108esac
8109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8110 (eval "$ac_compile") 2>conftest.er1
8111 ac_status=$?
8112 grep -v '^ *+' conftest.er1 >conftest.err
8113 rm -f conftest.er1
8114 cat conftest.err >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); } && {
8117 test -z "$ac_c_werror_flag" ||
8118 test ! -s conftest.err
8119 } && test -s conftest.$ac_objext; then
8120 ac_header_compiler=yes
8121else
8122 echo "$as_me: failed program was:" >&5
8123sed 's/^/| /' conftest.$ac_ext >&5
8124
8125 ac_header_compiler=no
8126fi
8127
8128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8129{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8130echo "${ECHO_T}$ac_header_compiler" >&6; }
8131
8132# Is the header present?
8133{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
8134echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
8135cat >conftest.$ac_ext <<_ACEOF
8136/* confdefs.h. */
8137_ACEOF
8138cat confdefs.h >>conftest.$ac_ext
8139cat >>conftest.$ac_ext <<_ACEOF
8140/* end confdefs.h. */
8141#include <net/if_tap.h>
8142_ACEOF
8143if { (ac_try="$ac_cpp conftest.$ac_ext"
8144case "(($ac_try" in
8145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8146 *) ac_try_echo=$ac_try;;
8147esac
8148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8150 ac_status=$?
8151 grep -v '^ *+' conftest.er1 >conftest.err
8152 rm -f conftest.er1
8153 cat conftest.err >&5
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); } >/dev/null && {
8156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8157 test ! -s conftest.err
8158 }; then
8159 ac_header_preproc=yes
8160else
8161 echo "$as_me: failed program was:" >&5
8162sed 's/^/| /' conftest.$ac_ext >&5
8163
8164 ac_header_preproc=no
8165fi
8166
8167rm -f conftest.err conftest.$ac_ext
8168{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8169echo "${ECHO_T}$ac_header_preproc" >&6; }
8170
8171# So? What about this header?
8172case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8173 yes:no: )
8174 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
8175echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8176 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
8177echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
8178 ac_header_preproc=yes
8179 ;;
8180 no:yes:* )
8181 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
8182echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
8183 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
8184echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
8185 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
8186echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
8187 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
8188echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
8189 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
8190echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
8191 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
8192echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
8193 ( cat <<\_ASBOX
8194## ------------------------------------------- ##
8195## Report this to openssh-unix-dev@mindrot.org ##
8196## ------------------------------------------- ##
8197_ASBOX
8198 ) | sed "s/^/$as_me: WARNING: /" >&2
8199 ;;
8200esac
8201{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8202echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8203if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8204 echo $ECHO_N "(cached) $ECHO_C" >&6
8205else
8206 ac_cv_header_net_if_tap_h=$ac_header_preproc
8207fi
8208{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8209echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8210
8211fi
8212if test $ac_cv_header_net_if_tap_h = yes; then
8213 :
8214else
8215
8216cat >>confdefs.h <<\_ACEOF
8217#define SSH_TUN_NO_L2 1
8218_ACEOF
8219
8220fi
8221
8222
8223
8224cat >>confdefs.h <<\_ACEOF
8225#define SSH_TUN_PREPEND_AF 1
8226_ACEOF
8227
8228 ;;
8229*-*-freebsd*)
8230 check_for_libcrypt_later=1
8231
8232cat >>confdefs.h <<\_ACEOF
8233#define LOCKED_PASSWD_PREFIX "*LOCKED*"
8234_ACEOF
8235
8236
8237cat >>confdefs.h <<\_ACEOF
8238#define SSH_TUN_FREEBSD 1
8239_ACEOF
8240
8241 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8242 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8243echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8244if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8245 echo $ECHO_N "(cached) $ECHO_C" >&6
8246fi
8247{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8248echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8249else
8250 # Is the header compilable?
8251{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
8252echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
8253cat >conftest.$ac_ext <<_ACEOF
8254/* confdefs.h. */
8255_ACEOF
8256cat confdefs.h >>conftest.$ac_ext
8257cat >>conftest.$ac_ext <<_ACEOF
8258/* end confdefs.h. */
8259$ac_includes_default
8260#include <net/if_tap.h>
8261_ACEOF
8262rm -f conftest.$ac_objext
8263if { (ac_try="$ac_compile"
8264case "(($ac_try" in
8265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266 *) ac_try_echo=$ac_try;;
8267esac
8268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269 (eval "$ac_compile") 2>conftest.er1
8270 ac_status=$?
8271 grep -v '^ *+' conftest.er1 >conftest.err
8272 rm -f conftest.er1
8273 cat conftest.err >&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); } && {
8276 test -z "$ac_c_werror_flag" ||
8277 test ! -s conftest.err
8278 } && test -s conftest.$ac_objext; then
8279 ac_header_compiler=yes
8280else
8281 echo "$as_me: failed program was:" >&5
8282sed 's/^/| /' conftest.$ac_ext >&5
8283
8284 ac_header_compiler=no
8285fi
8286
8287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8288{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8289echo "${ECHO_T}$ac_header_compiler" >&6; }
8290
8291# Is the header present?
8292{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
8293echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
8294cat >conftest.$ac_ext <<_ACEOF
8295/* confdefs.h. */
8296_ACEOF
8297cat confdefs.h >>conftest.$ac_ext
8298cat >>conftest.$ac_ext <<_ACEOF
8299/* end confdefs.h. */
8300#include <net/if_tap.h>
8301_ACEOF
8302if { (ac_try="$ac_cpp conftest.$ac_ext"
8303case "(($ac_try" in
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8306esac
8307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8309 ac_status=$?
8310 grep -v '^ *+' conftest.er1 >conftest.err
8311 rm -f conftest.er1
8312 cat conftest.err >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); } >/dev/null && {
8315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8316 test ! -s conftest.err
8317 }; then
8318 ac_header_preproc=yes
8319else
8320 echo "$as_me: failed program was:" >&5
8321sed 's/^/| /' conftest.$ac_ext >&5
8322
8323 ac_header_preproc=no
8324fi
8325
8326rm -f conftest.err conftest.$ac_ext
8327{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8328echo "${ECHO_T}$ac_header_preproc" >&6; }
8329
8330# So? What about this header?
8331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8332 yes:no: )
8333 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
8334echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8335 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
8336echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
8337 ac_header_preproc=yes
8338 ;;
8339 no:yes:* )
8340 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
8341echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
8342 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
8343echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
8344 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
8345echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
8346 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
8347echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
8348 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
8349echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
8350 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
8351echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
8352 ( cat <<\_ASBOX
8353## ------------------------------------------- ##
8354## Report this to openssh-unix-dev@mindrot.org ##
8355## ------------------------------------------- ##
8356_ASBOX
8357 ) | sed "s/^/$as_me: WARNING: /" >&2
8358 ;;
8359esac
8360{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8361echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8362if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8364else
8365 ac_cv_header_net_if_tap_h=$ac_header_preproc
8366fi
8367{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8368echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8369
8370fi
8371if test $ac_cv_header_net_if_tap_h = yes; then
8372 :
8373else
8374
8375cat >>confdefs.h <<\_ACEOF
8376#define SSH_TUN_NO_L2 1
8377_ACEOF
8378
8379fi
8380
8381
8382
8383cat >>confdefs.h <<\_ACEOF
8384#define BROKEN_GLOB 1
8385_ACEOF
8386
8387 ;;
8388*-*-bsdi*)
8389 cat >>confdefs.h <<\_ACEOF
8390#define SETEUID_BREAKS_SETUID 1
8391_ACEOF
8392
8393 cat >>confdefs.h <<\_ACEOF
8394#define BROKEN_SETREUID 1
8395_ACEOF
8396
8397 cat >>confdefs.h <<\_ACEOF
8398#define BROKEN_SETREGID 1
8399_ACEOF
8400
8401 ;;
8402*-next-*)
8403 conf_lastlog_location="/usr/adm/lastlog"
8404 conf_utmp_location=/etc/utmp
8405 conf_wtmp_location=/usr/adm/wtmp
8406 MAIL=/usr/spool/mail
8407
8408cat >>confdefs.h <<\_ACEOF
8409#define HAVE_NEXT 1
8410_ACEOF
8411
8412 cat >>confdefs.h <<\_ACEOF
8413#define BROKEN_REALPATH 1
8414_ACEOF
8415
8416 cat >>confdefs.h <<\_ACEOF
8417#define USE_PIPES 1
8418_ACEOF
8419
8420
8421cat >>confdefs.h <<\_ACEOF
8422#define BROKEN_SAVED_UIDS 1
8423_ACEOF
8424
8425 ;;
8426*-*-openbsd*)
8427
8428cat >>confdefs.h <<\_ACEOF
8429#define HAVE_ATTRIBUTE__SENTINEL__ 1
8430_ACEOF
8431
8432
8433cat >>confdefs.h <<\_ACEOF
8434#define HAVE_ATTRIBUTE__BOUNDED__ 1
8435_ACEOF
8436
8437
8438cat >>confdefs.h <<\_ACEOF
8439#define SSH_TUN_OPENBSD 1
8440_ACEOF
8441
8442
8443cat >>confdefs.h <<\_ACEOF
8444#define SYSLOG_R_SAFE_IN_SIGHAND 1
8445_ACEOF
8446
8447 ;;
8448*-*-solaris*)
8449 if test "x$withval" != "xno" ; then
8450 need_dash_r=1
8451 fi
8452 cat >>confdefs.h <<\_ACEOF
8453#define PAM_SUN_CODEBASE 1
8454_ACEOF
8455
8456 cat >>confdefs.h <<\_ACEOF
8457#define LOGIN_NEEDS_UTMPX 1
8458_ACEOF
8459
8460
8461cat >>confdefs.h <<\_ACEOF
8462#define LOGIN_NEEDS_TERM 1
8463_ACEOF
8464
8465 cat >>confdefs.h <<\_ACEOF
8466#define PAM_TTY_KLUDGE 1
8467_ACEOF
8468
8469
8470cat >>confdefs.h <<\_ACEOF
8471#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
8472_ACEOF
8473
8474 cat >>confdefs.h <<\_ACEOF
8475#define LOCKED_PASSWD_STRING "*LK*"
8476_ACEOF
8477
8478 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
8479
8480cat >>confdefs.h <<\_ACEOF
8481#define SSHD_ACQUIRES_CTTY 1
8482_ACEOF
8483
8484
8485cat >>confdefs.h <<\_ACEOF
8486#define PASSWD_NEEDS_USERNAME 1
8487_ACEOF
8488
8489
8490cat >>confdefs.h <<\_ACEOF
8491#define BROKEN_TCGETATTR_ICANON 1
8492_ACEOF
8493
8494 external_path_file=/etc/default/login
8495 # hardwire lastlog location (can't detect it on some versions)
8496 conf_lastlog_location="/var/adm/lastlog"
8497 { echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
8498echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6; }
8499 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
8500 if test "$sol2ver" -ge 8; then
8501 { echo "$as_me:$LINENO: result: yes" >&5
8502echo "${ECHO_T}yes" >&6; }
8503 cat >>confdefs.h <<\_ACEOF
8504#define DISABLE_UTMP 1
8505_ACEOF
8506
8507
8508cat >>confdefs.h <<\_ACEOF
8509#define DISABLE_WTMP 1
8510_ACEOF
8511
8512 else
8513 { echo "$as_me:$LINENO: result: no" >&5
8514echo "${ECHO_T}no" >&6; }
8515 fi
8516
8517# Check whether --with-solaris-contracts was given.
8518if test "${with_solaris_contracts+set}" = set; then
8519 withval=$with_solaris_contracts;
8520 { echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5
8521echo $ECHO_N "checking for ct_tmpl_activate in -lcontract... $ECHO_C" >&6; }
8522if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then
8523 echo $ECHO_N "(cached) $ECHO_C" >&6
8524else
8525 ac_check_lib_save_LIBS=$LIBS
8526LIBS="-lcontract $LIBS"
8527cat >conftest.$ac_ext <<_ACEOF
8528/* confdefs.h. */
8529_ACEOF
8530cat confdefs.h >>conftest.$ac_ext
8531cat >>conftest.$ac_ext <<_ACEOF
8532/* end confdefs.h. */
8533
8534/* Override any GCC internal prototype to avoid an error.
8535 Use char because int might match the return type of a GCC
8536 builtin and then its argument prototype would still apply. */
8537#ifdef __cplusplus
8538extern "C"
8539#endif
8540char ct_tmpl_activate ();
8541int
8542main ()
8543{
8544return ct_tmpl_activate ();
8545 ;
8546 return 0;
8547}
8548_ACEOF
8549rm -f conftest.$ac_objext conftest$ac_exeext
8550if { (ac_try="$ac_link"
8551case "(($ac_try" in
8552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8553 *) ac_try_echo=$ac_try;;
8554esac
8555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8556 (eval "$ac_link") 2>conftest.er1
8557 ac_status=$?
8558 grep -v '^ *+' conftest.er1 >conftest.err
8559 rm -f conftest.er1
8560 cat conftest.err >&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); } && {
8563 test -z "$ac_c_werror_flag" ||
8564 test ! -s conftest.err
8565 } && test -s conftest$ac_exeext &&
8566 $as_test_x conftest$ac_exeext; then
8567 ac_cv_lib_contract_ct_tmpl_activate=yes
8568else
8569 echo "$as_me: failed program was:" >&5
8570sed 's/^/| /' conftest.$ac_ext >&5
8571
8572 ac_cv_lib_contract_ct_tmpl_activate=no
8573fi
8574
8575rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8576 conftest$ac_exeext conftest.$ac_ext
8577LIBS=$ac_check_lib_save_LIBS
8578fi
8579{ echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
8580echo "${ECHO_T}$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
8581if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then
8582
8583cat >>confdefs.h <<\_ACEOF
8584#define USE_SOLARIS_PROCESS_CONTRACTS 1
8585_ACEOF
8586
8587 SSHDLIBS="$SSHDLIBS -lcontract"
8588
8589 SPC_MSG="yes"
8590fi
8591
8592
8593fi
8594
8595 ;;
8596*-*-sunos4*)
8597 CPPFLAGS="$CPPFLAGS -DSUNOS4"
8598
8599for ac_func in getpwanam
8600do
8601as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8602{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8603echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8604if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8605 echo $ECHO_N "(cached) $ECHO_C" >&6
8606else
8607 cat >conftest.$ac_ext <<_ACEOF
8608/* confdefs.h. */
8609_ACEOF
8610cat confdefs.h >>conftest.$ac_ext
8611cat >>conftest.$ac_ext <<_ACEOF
8612/* end confdefs.h. */
8613/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8615#define $ac_func innocuous_$ac_func
8616
8617/* System header to define __stub macros and hopefully few prototypes,
8618 which can conflict with char $ac_func (); below.
8619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8620 <limits.h> exists even on freestanding compilers. */
8621
8622#ifdef __STDC__
8623# include <limits.h>
8624#else
8625# include <assert.h>
8626#endif
8627
8628#undef $ac_func
8629
8630/* Override any GCC internal prototype to avoid an error.
8631 Use char because int might match the return type of a GCC
8632 builtin and then its argument prototype would still apply. */
8633#ifdef __cplusplus
8634extern "C"
8635#endif
8636char $ac_func ();
8637/* The GNU C library defines this for functions which it implements
8638 to always fail with ENOSYS. Some functions are actually named
8639 something starting with __ and the normal name is an alias. */
8640#if defined __stub_$ac_func || defined __stub___$ac_func
8641choke me
8642#endif
8643
8644int
8645main ()
8646{
8647return $ac_func ();
8648 ;
8649 return 0;
8650}
8651_ACEOF
8652rm -f conftest.$ac_objext conftest$ac_exeext
8653if { (ac_try="$ac_link"
8654case "(($ac_try" in
8655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8656 *) ac_try_echo=$ac_try;;
8657esac
8658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8659 (eval "$ac_link") 2>conftest.er1
8660 ac_status=$?
8661 grep -v '^ *+' conftest.er1 >conftest.err
8662 rm -f conftest.er1
8663 cat conftest.err >&5
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); } && {
8666 test -z "$ac_c_werror_flag" ||
8667 test ! -s conftest.err
8668 } && test -s conftest$ac_exeext &&
8669 $as_test_x conftest$ac_exeext; then
8670 eval "$as_ac_var=yes"
8671else
8672 echo "$as_me: failed program was:" >&5
8673sed 's/^/| /' conftest.$ac_ext >&5
8674
8675 eval "$as_ac_var=no"
8676fi
8677
8678rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8679 conftest$ac_exeext conftest.$ac_ext
8680fi
8681ac_res=`eval echo '${'$as_ac_var'}'`
8682 { echo "$as_me:$LINENO: result: $ac_res" >&5
8683echo "${ECHO_T}$ac_res" >&6; }
8684if test `eval echo '${'$as_ac_var'}'` = yes; then
8685 cat >>confdefs.h <<_ACEOF
8686#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8687_ACEOF
8688
8689fi
8690done
8691
8692 cat >>confdefs.h <<\_ACEOF
8693#define PAM_SUN_CODEBASE 1
8694_ACEOF
8695
8696 conf_utmp_location=/etc/utmp
8697 conf_wtmp_location=/var/adm/wtmp
8698 conf_lastlog_location=/var/adm/lastlog
8699 cat >>confdefs.h <<\_ACEOF
8700#define USE_PIPES 1
8701_ACEOF
8702
8703 ;;
8704*-ncr-sysv*)
8705 LIBS="$LIBS -lc89"
8706 cat >>confdefs.h <<\_ACEOF
8707#define USE_PIPES 1
8708_ACEOF
8709
8710 cat >>confdefs.h <<\_ACEOF
8711#define SSHD_ACQUIRES_CTTY 1
8712_ACEOF
8713
8714 cat >>confdefs.h <<\_ACEOF
8715#define SETEUID_BREAKS_SETUID 1
8716_ACEOF
8717
8718 cat >>confdefs.h <<\_ACEOF
8719#define BROKEN_SETREUID 1
8720_ACEOF
8721
8722 cat >>confdefs.h <<\_ACEOF
8723#define BROKEN_SETREGID 1
8724_ACEOF
8725
8726 ;;
8727*-sni-sysv*)
8728 # /usr/ucblib MUST NOT be searched on ReliantUNIX
8729
8730{ echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
8731echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; }
8732if test "${ac_cv_lib_dl_dlsym+set}" = set; then
8733 echo $ECHO_N "(cached) $ECHO_C" >&6
8734else
8735 ac_check_lib_save_LIBS=$LIBS
8736LIBS="-ldl $LIBS"
8737cat >conftest.$ac_ext <<_ACEOF
8738/* confdefs.h. */
8739_ACEOF
8740cat confdefs.h >>conftest.$ac_ext
8741cat >>conftest.$ac_ext <<_ACEOF
8742/* end confdefs.h. */
8743
8744/* Override any GCC internal prototype to avoid an error.
8745 Use char because int might match the return type of a GCC
8746 builtin and then its argument prototype would still apply. */
8747#ifdef __cplusplus
8748extern "C"
8749#endif
8750char dlsym ();
8751int
8752main ()
8753{
8754return dlsym ();
8755 ;
8756 return 0;
8757}
8758_ACEOF
8759rm -f conftest.$ac_objext conftest$ac_exeext
8760if { (ac_try="$ac_link"
8761case "(($ac_try" in
8762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8763 *) ac_try_echo=$ac_try;;
8764esac
8765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8766 (eval "$ac_link") 2>conftest.er1
8767 ac_status=$?
8768 grep -v '^ *+' conftest.er1 >conftest.err
8769 rm -f conftest.er1
8770 cat conftest.err >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); } && {
8773 test -z "$ac_c_werror_flag" ||
8774 test ! -s conftest.err
8775 } && test -s conftest$ac_exeext &&
8776 $as_test_x conftest$ac_exeext; then
8777 ac_cv_lib_dl_dlsym=yes
8778else
8779 echo "$as_me: failed program was:" >&5
8780sed 's/^/| /' conftest.$ac_ext >&5
8781
8782 ac_cv_lib_dl_dlsym=no
8783fi
8784
8785rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8786 conftest$ac_exeext conftest.$ac_ext
8787LIBS=$ac_check_lib_save_LIBS
8788fi
8789{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
8790echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; }
8791if test $ac_cv_lib_dl_dlsym = yes; then
8792 cat >>confdefs.h <<_ACEOF
8793#define HAVE_LIBDL 1
8794_ACEOF
8795
8796 LIBS="-ldl $LIBS"
8797
8798fi
8799
8800 # -lresolv needs to be at the end of LIBS or DNS lookups break
8801 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
8802echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
8803if test "${ac_cv_lib_resolv_res_query+set}" = set; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8805else
8806 ac_check_lib_save_LIBS=$LIBS
8807LIBS="-lresolv $LIBS"
8808cat >conftest.$ac_ext <<_ACEOF
8809/* confdefs.h. */
8810_ACEOF
8811cat confdefs.h >>conftest.$ac_ext
8812cat >>conftest.$ac_ext <<_ACEOF
8813/* end confdefs.h. */
8814
8815/* Override any GCC internal prototype to avoid an error.
8816 Use char because int might match the return type of a GCC
8817 builtin and then its argument prototype would still apply. */
8818#ifdef __cplusplus
8819extern "C"
8820#endif
8821char res_query ();
8822int
8823main ()
8824{
8825return res_query ();
8826 ;
8827 return 0;
8828}
8829_ACEOF
8830rm -f conftest.$ac_objext conftest$ac_exeext
8831if { (ac_try="$ac_link"
8832case "(($ac_try" in
8833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8834 *) ac_try_echo=$ac_try;;
8835esac
8836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8837 (eval "$ac_link") 2>conftest.er1
8838 ac_status=$?
8839 grep -v '^ *+' conftest.er1 >conftest.err
8840 rm -f conftest.er1
8841 cat conftest.err >&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); } && {
8844 test -z "$ac_c_werror_flag" ||
8845 test ! -s conftest.err
8846 } && test -s conftest$ac_exeext &&
8847 $as_test_x conftest$ac_exeext; then
8848 ac_cv_lib_resolv_res_query=yes
8849else
8850 echo "$as_me: failed program was:" >&5
8851sed 's/^/| /' conftest.$ac_ext >&5
8852
8853 ac_cv_lib_resolv_res_query=no
8854fi
8855
8856rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8857 conftest$ac_exeext conftest.$ac_ext
8858LIBS=$ac_check_lib_save_LIBS
8859fi
8860{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
8861echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
8862if test $ac_cv_lib_resolv_res_query = yes; then
8863 LIBS="$LIBS -lresolv"
8864fi
8865
8866 IPADDR_IN_DISPLAY=yes
8867 cat >>confdefs.h <<\_ACEOF
8868#define USE_PIPES 1
8869_ACEOF
8870
8871 cat >>confdefs.h <<\_ACEOF
8872#define IP_TOS_IS_BROKEN 1
8873_ACEOF
8874
8875 cat >>confdefs.h <<\_ACEOF
8876#define SETEUID_BREAKS_SETUID 1
8877_ACEOF
8878
8879 cat >>confdefs.h <<\_ACEOF
8880#define BROKEN_SETREUID 1
8881_ACEOF
8882
8883 cat >>confdefs.h <<\_ACEOF
8884#define BROKEN_SETREGID 1
8885_ACEOF
8886
8887 cat >>confdefs.h <<\_ACEOF
8888#define SSHD_ACQUIRES_CTTY 1
8889_ACEOF
8890
8891 external_path_file=/etc/default/login
8892 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
8893 # Attention: always take care to bind libsocket and libnsl before libc,
8894 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
8895 ;;
8896# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
8897*-*-sysv4.2*)
8898 cat >>confdefs.h <<\_ACEOF
8899#define USE_PIPES 1
8900_ACEOF
8901
8902 cat >>confdefs.h <<\_ACEOF
8903#define SETEUID_BREAKS_SETUID 1
8904_ACEOF
8905
8906 cat >>confdefs.h <<\_ACEOF
8907#define BROKEN_SETREUID 1
8908_ACEOF
8909
8910 cat >>confdefs.h <<\_ACEOF
8911#define BROKEN_SETREGID 1
8912_ACEOF
8913
8914
8915cat >>confdefs.h <<\_ACEOF
8916#define PASSWD_NEEDS_USERNAME 1
8917_ACEOF
8918
8919 cat >>confdefs.h <<\_ACEOF
8920#define LOCKED_PASSWD_STRING "*LK*"
8921_ACEOF
8922
8923 ;;
8924# UnixWare 7.x, OpenUNIX 8
8925*-*-sysv5*)
8926 CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf"
8927
8928cat >>confdefs.h <<\_ACEOF
8929#define UNIXWARE_LONG_PASSWORDS 1
8930_ACEOF
8931
8932 cat >>confdefs.h <<\_ACEOF
8933#define USE_PIPES 1
8934_ACEOF
8935
8936 cat >>confdefs.h <<\_ACEOF
8937#define SETEUID_BREAKS_SETUID 1
8938_ACEOF
8939
8940 cat >>confdefs.h <<\_ACEOF
8941#define BROKEN_GETADDRINFO 1
8942_ACEOF
8943
8944 cat >>confdefs.h <<\_ACEOF
8945#define BROKEN_SETREUID 1
8946_ACEOF
8947
8948 cat >>confdefs.h <<\_ACEOF
8949#define BROKEN_SETREGID 1
8950_ACEOF
8951
8952 cat >>confdefs.h <<\_ACEOF
8953#define PASSWD_NEEDS_USERNAME 1
8954_ACEOF
8955
8956 case "$host" in
8957 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
8958 TEST_SHELL=/u95/bin/sh
8959
8960cat >>confdefs.h <<\_ACEOF
8961#define BROKEN_LIBIAF 1
8962_ACEOF
8963
8964 cat >>confdefs.h <<\_ACEOF
8965#define BROKEN_UPDWTMPX 1
8966_ACEOF
8967
8968 { echo "$as_me:$LINENO: checking for getluid in -lprot" >&5
8969echo $ECHO_N "checking for getluid in -lprot... $ECHO_C" >&6; }
8970if test "${ac_cv_lib_prot_getluid+set}" = set; then
8971 echo $ECHO_N "(cached) $ECHO_C" >&6
8972else
8973 ac_check_lib_save_LIBS=$LIBS
8974LIBS="-lprot $LIBS"
8975cat >conftest.$ac_ext <<_ACEOF
8976/* confdefs.h. */
8977_ACEOF
8978cat confdefs.h >>conftest.$ac_ext
8979cat >>conftest.$ac_ext <<_ACEOF
8980/* end confdefs.h. */
8981
8982/* Override any GCC internal prototype to avoid an error.
8983 Use char because int might match the return type of a GCC
8984 builtin and then its argument prototype would still apply. */
8985#ifdef __cplusplus
8986extern "C"
8987#endif
8988char getluid ();
8989int
8990main ()
8991{
8992return getluid ();
8993 ;
8994 return 0;
8995}
8996_ACEOF
8997rm -f conftest.$ac_objext conftest$ac_exeext
8998if { (ac_try="$ac_link"
8999case "(($ac_try" in
9000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9001 *) ac_try_echo=$ac_try;;
9002esac
9003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9004 (eval "$ac_link") 2>conftest.er1
9005 ac_status=$?
9006 grep -v '^ *+' conftest.er1 >conftest.err
9007 rm -f conftest.er1
9008 cat conftest.err >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } && {
9011 test -z "$ac_c_werror_flag" ||
9012 test ! -s conftest.err
9013 } && test -s conftest$ac_exeext &&
9014 $as_test_x conftest$ac_exeext; then
9015 ac_cv_lib_prot_getluid=yes
9016else
9017 echo "$as_me: failed program was:" >&5
9018sed 's/^/| /' conftest.$ac_ext >&5
9019
9020 ac_cv_lib_prot_getluid=no
9021fi
9022
9023rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9024 conftest$ac_exeext conftest.$ac_ext
9025LIBS=$ac_check_lib_save_LIBS
9026fi
9027{ echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getluid" >&5
9028echo "${ECHO_T}$ac_cv_lib_prot_getluid" >&6; }
9029if test $ac_cv_lib_prot_getluid = yes; then
9030 LIBS="$LIBS -lprot"
9031
9032
9033for ac_func in getluid setluid
9034do
9035as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9036{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9037echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9038if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9039 echo $ECHO_N "(cached) $ECHO_C" >&6
9040else
9041 cat >conftest.$ac_ext <<_ACEOF
9042/* confdefs.h. */
9043_ACEOF
9044cat confdefs.h >>conftest.$ac_ext
9045cat >>conftest.$ac_ext <<_ACEOF
9046/* end confdefs.h. */
9047/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9049#define $ac_func innocuous_$ac_func
9050
9051/* System header to define __stub macros and hopefully few prototypes,
9052 which can conflict with char $ac_func (); below.
9053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9054 <limits.h> exists even on freestanding compilers. */
9055
9056#ifdef __STDC__
9057# include <limits.h>
9058#else
9059# include <assert.h>
9060#endif
9061
9062#undef $ac_func
9063
9064/* Override any GCC internal prototype to avoid an error.
9065 Use char because int might match the return type of a GCC
9066 builtin and then its argument prototype would still apply. */
9067#ifdef __cplusplus
9068extern "C"
9069#endif
9070char $ac_func ();
9071/* The GNU C library defines this for functions which it implements
9072 to always fail with ENOSYS. Some functions are actually named
9073 something starting with __ and the normal name is an alias. */
9074#if defined __stub_$ac_func || defined __stub___$ac_func
9075choke me
9076#endif
9077
9078int
9079main ()
9080{
9081return $ac_func ();
9082 ;
9083 return 0;
9084}
9085_ACEOF
9086rm -f conftest.$ac_objext conftest$ac_exeext
9087if { (ac_try="$ac_link"
9088case "(($ac_try" in
9089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9090 *) ac_try_echo=$ac_try;;
9091esac
9092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9093 (eval "$ac_link") 2>conftest.er1
9094 ac_status=$?
9095 grep -v '^ *+' conftest.er1 >conftest.err
9096 rm -f conftest.er1
9097 cat conftest.err >&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); } && {
9100 test -z "$ac_c_werror_flag" ||
9101 test ! -s conftest.err
9102 } && test -s conftest$ac_exeext &&
9103 $as_test_x conftest$ac_exeext; then
9104 eval "$as_ac_var=yes"
9105else
9106 echo "$as_me: failed program was:" >&5
9107sed 's/^/| /' conftest.$ac_ext >&5
9108
9109 eval "$as_ac_var=no"
9110fi
9111
9112rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9113 conftest$ac_exeext conftest.$ac_ext
9114fi
9115ac_res=`eval echo '${'$as_ac_var'}'`
9116 { echo "$as_me:$LINENO: result: $ac_res" >&5
9117echo "${ECHO_T}$ac_res" >&6; }
9118if test `eval echo '${'$as_ac_var'}'` = yes; then
9119 cat >>confdefs.h <<_ACEOF
9120#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9121_ACEOF
9122
9123fi
9124done
9125
9126 cat >>confdefs.h <<\_ACEOF
9127#define HAVE_SECUREWARE 1
9128_ACEOF
9129
9130 cat >>confdefs.h <<\_ACEOF
9131#define DISABLE_SHADOW 1
9132_ACEOF
9133
9134
9135fi
9136
9137 ;;
9138 *) cat >>confdefs.h <<\_ACEOF
9139#define LOCKED_PASSWD_STRING "*LK*"
9140_ACEOF
9141
9142 check_for_libcrypt_later=1
9143 ;;
9144 esac
9145 ;;
9146*-*-sysv*)
9147 ;;
9148# SCO UNIX and OEM versions of SCO UNIX
9149*-*-sco3.2v4*)
9150 { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5
9151echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;}
9152 { (exit 1); exit 1; }; }
9153 ;;
9154# SCO OpenServer 5.x
9155*-*-sco3.2v5*)
9156 if test -z "$GCC"; then
9157 CFLAGS="$CFLAGS -belf"
9158 fi
9159 LIBS="$LIBS -lprot -lx -ltinfo -lm"
9160 no_dev_ptmx=1
9161 cat >>confdefs.h <<\_ACEOF
9162#define USE_PIPES 1
9163_ACEOF
9164
9165 cat >>confdefs.h <<\_ACEOF
9166#define HAVE_SECUREWARE 1
9167_ACEOF
9168
9169 cat >>confdefs.h <<\_ACEOF
9170#define DISABLE_SHADOW 1
9171_ACEOF
9172
9173 cat >>confdefs.h <<\_ACEOF
9174#define DISABLE_FD_PASSING 1
9175_ACEOF
9176
9177 cat >>confdefs.h <<\_ACEOF
9178#define SETEUID_BREAKS_SETUID 1
9179_ACEOF
9180
9181 cat >>confdefs.h <<\_ACEOF
9182#define BROKEN_GETADDRINFO 1
9183_ACEOF
9184
9185 cat >>confdefs.h <<\_ACEOF
9186#define BROKEN_SETREUID 1
9187_ACEOF
9188
9189 cat >>confdefs.h <<\_ACEOF
9190#define BROKEN_SETREGID 1
9191_ACEOF
9192
9193 cat >>confdefs.h <<\_ACEOF
9194#define WITH_ABBREV_NO_TTY 1
9195_ACEOF
9196
9197 cat >>confdefs.h <<\_ACEOF
9198#define BROKEN_UPDWTMPX 1
9199_ACEOF
9200
9201 cat >>confdefs.h <<\_ACEOF
9202#define PASSWD_NEEDS_USERNAME 1
9203_ACEOF
9204
9205
9206
9207for ac_func in getluid setluid
9208do
9209as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9210{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9211echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9212if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9214else
9215 cat >conftest.$ac_ext <<_ACEOF
9216/* confdefs.h. */
9217_ACEOF
9218cat confdefs.h >>conftest.$ac_ext
9219cat >>conftest.$ac_ext <<_ACEOF
9220/* end confdefs.h. */
9221/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9223#define $ac_func innocuous_$ac_func
9224
9225/* System header to define __stub macros and hopefully few prototypes,
9226 which can conflict with char $ac_func (); below.
9227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9228 <limits.h> exists even on freestanding compilers. */
9229
9230#ifdef __STDC__
9231# include <limits.h>
9232#else
9233# include <assert.h>
9234#endif
9235
9236#undef $ac_func
9237
9238/* Override any GCC internal prototype to avoid an error.
9239 Use char because int might match the return type of a GCC
9240 builtin and then its argument prototype would still apply. */
9241#ifdef __cplusplus
9242extern "C"
9243#endif
9244char $ac_func ();
9245/* The GNU C library defines this for functions which it implements
9246 to always fail with ENOSYS. Some functions are actually named
9247 something starting with __ and the normal name is an alias. */
9248#if defined __stub_$ac_func || defined __stub___$ac_func
9249choke me
9250#endif
9251
9252int
9253main ()
9254{
9255return $ac_func ();
9256 ;
9257 return 0;
9258}
9259_ACEOF
9260rm -f conftest.$ac_objext conftest$ac_exeext
9261if { (ac_try="$ac_link"
9262case "(($ac_try" in
9263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9264 *) ac_try_echo=$ac_try;;
9265esac
9266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9267 (eval "$ac_link") 2>conftest.er1
9268 ac_status=$?
9269 grep -v '^ *+' conftest.er1 >conftest.err
9270 rm -f conftest.er1
9271 cat conftest.err >&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); } && {
9274 test -z "$ac_c_werror_flag" ||
9275 test ! -s conftest.err
9276 } && test -s conftest$ac_exeext &&
9277 $as_test_x conftest$ac_exeext; then
9278 eval "$as_ac_var=yes"
9279else
9280 echo "$as_me: failed program was:" >&5
9281sed 's/^/| /' conftest.$ac_ext >&5
9282
9283 eval "$as_ac_var=no"
9284fi
9285
9286rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9287 conftest$ac_exeext conftest.$ac_ext
9288fi
9289ac_res=`eval echo '${'$as_ac_var'}'`
9290 { echo "$as_me:$LINENO: result: $ac_res" >&5
9291echo "${ECHO_T}$ac_res" >&6; }
9292if test `eval echo '${'$as_ac_var'}'` = yes; then
9293 cat >>confdefs.h <<_ACEOF
9294#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9295_ACEOF
9296
9297fi
9298done
9299
9300 MANTYPE=man
9301 TEST_SHELL=ksh
9302 ;;
9303*-*-unicosmk*)
9304
9305cat >>confdefs.h <<\_ACEOF
9306#define NO_SSH_LASTLOG 1
9307_ACEOF
9308
9309 cat >>confdefs.h <<\_ACEOF
9310#define SETEUID_BREAKS_SETUID 1
9311_ACEOF
9312
9313 cat >>confdefs.h <<\_ACEOF
9314#define BROKEN_SETREUID 1
9315_ACEOF
9316
9317 cat >>confdefs.h <<\_ACEOF
9318#define BROKEN_SETREGID 1
9319_ACEOF
9320
9321 cat >>confdefs.h <<\_ACEOF
9322#define USE_PIPES 1
9323_ACEOF
9324
9325 cat >>confdefs.h <<\_ACEOF
9326#define DISABLE_FD_PASSING 1
9327_ACEOF
9328
9329 LDFLAGS="$LDFLAGS"
9330 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
9331 MANTYPE=cat
9332 ;;
9333*-*-unicosmp*)
9334 cat >>confdefs.h <<\_ACEOF
9335#define SETEUID_BREAKS_SETUID 1
9336_ACEOF
9337
9338 cat >>confdefs.h <<\_ACEOF
9339#define BROKEN_SETREUID 1
9340_ACEOF
9341
9342 cat >>confdefs.h <<\_ACEOF
9343#define BROKEN_SETREGID 1
9344_ACEOF
9345
9346 cat >>confdefs.h <<\_ACEOF
9347#define WITH_ABBREV_NO_TTY 1
9348_ACEOF
9349
9350 cat >>confdefs.h <<\_ACEOF
9351#define USE_PIPES 1
9352_ACEOF
9353
9354 cat >>confdefs.h <<\_ACEOF
9355#define DISABLE_FD_PASSING 1
9356_ACEOF
9357
9358 LDFLAGS="$LDFLAGS"
9359 LIBS="$LIBS -lgen -lacid -ldb"
9360 MANTYPE=cat
9361 ;;
9362*-*-unicos*)
9363 cat >>confdefs.h <<\_ACEOF
9364#define SETEUID_BREAKS_SETUID 1
9365_ACEOF
9366
9367 cat >>confdefs.h <<\_ACEOF
9368#define BROKEN_SETREUID 1
9369_ACEOF
9370
9371 cat >>confdefs.h <<\_ACEOF
9372#define BROKEN_SETREGID 1
9373_ACEOF
9374
9375 cat >>confdefs.h <<\_ACEOF
9376#define USE_PIPES 1
9377_ACEOF
9378
9379 cat >>confdefs.h <<\_ACEOF
9380#define DISABLE_FD_PASSING 1
9381_ACEOF
9382
9383 cat >>confdefs.h <<\_ACEOF
9384#define NO_SSH_LASTLOG 1
9385_ACEOF
9386
9387 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
9388 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
9389 MANTYPE=cat
9390 ;;
9391*-dec-osf*)
9392 { echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
9393echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6; }
9394 no_osfsia=""
9395
9396# Check whether --with-osfsia was given.
9397if test "${with_osfsia+set}" = set; then
9398 withval=$with_osfsia;
9399 if test "x$withval" = "xno" ; then
9400 { echo "$as_me:$LINENO: result: disabled" >&5
9401echo "${ECHO_T}disabled" >&6; }
9402 no_osfsia=1
9403 fi
9404
9405fi
9406
9407 if test -z "$no_osfsia" ; then
9408 if test -f /etc/sia/matrix.conf; then
9409 { echo "$as_me:$LINENO: result: yes" >&5
9410echo "${ECHO_T}yes" >&6; }
9411
9412cat >>confdefs.h <<\_ACEOF
9413#define HAVE_OSF_SIA 1
9414_ACEOF
9415
9416
9417cat >>confdefs.h <<\_ACEOF
9418#define DISABLE_LOGIN 1
9419_ACEOF
9420
9421 cat >>confdefs.h <<\_ACEOF
9422#define DISABLE_FD_PASSING 1
9423_ACEOF
9424
9425 LIBS="$LIBS -lsecurity -ldb -lm -laud"
9426 SIA_MSG="yes"
9427 else
9428 { echo "$as_me:$LINENO: result: no" >&5
9429echo "${ECHO_T}no" >&6; }
9430
9431cat >>confdefs.h <<\_ACEOF
9432#define LOCKED_PASSWD_SUBSTR "Nologin"
9433_ACEOF
9434
9435 fi
9436 fi
9437 cat >>confdefs.h <<\_ACEOF
9438#define BROKEN_GETADDRINFO 1
9439_ACEOF
9440
9441 cat >>confdefs.h <<\_ACEOF
9442#define SETEUID_BREAKS_SETUID 1
9443_ACEOF
9444
9445 cat >>confdefs.h <<\_ACEOF
9446#define BROKEN_SETREUID 1
9447_ACEOF
9448
9449 cat >>confdefs.h <<\_ACEOF
9450#define BROKEN_SETREGID 1
9451_ACEOF
9452
9453
9454cat >>confdefs.h <<\_ACEOF
9455#define BROKEN_READV_COMPARISON 1
9456_ACEOF
9457
9458 ;;
9459
9460*-*-nto-qnx*)
9461 cat >>confdefs.h <<\_ACEOF
9462#define USE_PIPES 1
9463_ACEOF
9464
9465 cat >>confdefs.h <<\_ACEOF
9466#define NO_X11_UNIX_SOCKETS 1
9467_ACEOF
9468
9469
9470cat >>confdefs.h <<\_ACEOF
9471#define MISSING_NFDBITS 1
9472_ACEOF
9473
9474
9475cat >>confdefs.h <<\_ACEOF
9476#define MISSING_HOWMANY 1
9477_ACEOF
9478
9479
9480cat >>confdefs.h <<\_ACEOF
9481#define MISSING_FD_MASK 1
9482_ACEOF
9483
9484 cat >>confdefs.h <<\_ACEOF
9485#define DISABLE_LASTLOG 1
9486_ACEOF
9487
9488 cat >>confdefs.h <<\_ACEOF
9489#define SSHD_ACQUIRES_CTTY 1
9490_ACEOF
9491
9492
9493cat >>confdefs.h <<\_ACEOF
9494#define BROKEN_SHADOW_EXPIRE 1
9495_ACEOF
9496
9497 enable_etc_default_login=no # has incompatible /etc/default/login
9498 case "$host" in
9499 *-*-nto-qnx6*)
9500 cat >>confdefs.h <<\_ACEOF
9501#define DISABLE_FD_PASSING 1
9502_ACEOF
9503
9504 ;;
9505 esac
9506 ;;
9507
9508*-*-ultrix*)
9509
9510cat >>confdefs.h <<\_ACEOF
9511#define BROKEN_GETGROUPS 1
9512_ACEOF
9513
9514
9515cat >>confdefs.h <<\_ACEOF
9516#define BROKEN_MMAP 1
9517_ACEOF
9518
9519 cat >>confdefs.h <<\_ACEOF
9520#define NEED_SETPGRP 1
9521_ACEOF
9522
9523
9524cat >>confdefs.h <<\_ACEOF
9525#define HAVE_SYS_SYSLOG_H 1
9526_ACEOF
9527
9528 ;;
9529
9530*-*-lynxos)
9531 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
9532 cat >>confdefs.h <<\_ACEOF
9533#define MISSING_HOWMANY 1
9534_ACEOF
9535
9536
9537cat >>confdefs.h <<\_ACEOF
9538#define BROKEN_SETVBUF 1
9539_ACEOF
9540
9541 ;;
9542esac
9543
9544{ echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5
9545echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; }
9546if test "$cross_compiling" = yes; then
9547 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5
9548echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
9549
9550else
9551 cat >conftest.$ac_ext <<_ACEOF
9552/* confdefs.h. */
9553_ACEOF
9554cat confdefs.h >>conftest.$ac_ext
9555cat >>conftest.$ac_ext <<_ACEOF
9556/* end confdefs.h. */
9557
9558#include <stdio.h>
9559int main(){exit(0);}
9560
9561_ACEOF
9562rm -f conftest$ac_exeext
9563if { (ac_try="$ac_link"
9564case "(($ac_try" in
9565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9566 *) ac_try_echo=$ac_try;;
9567esac
9568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9569 (eval "$ac_link") 2>&5
9570 ac_status=$?
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9573 { (case "(($ac_try" in
9574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575 *) ac_try_echo=$ac_try;;
9576esac
9577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9578 (eval "$ac_try") 2>&5
9579 ac_status=$?
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); }; }; then
9582 { echo "$as_me:$LINENO: result: yes" >&5
9583echo "${ECHO_T}yes" >&6; }
9584else
9585 echo "$as_me: program exited with status $ac_status" >&5
9586echo "$as_me: failed program was:" >&5
9587sed 's/^/| /' conftest.$ac_ext >&5
9588
9589( exit $ac_status )
9590
9591 { echo "$as_me:$LINENO: result: no" >&5
9592echo "${ECHO_T}no" >&6; }
9593 { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5
9594echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;}
9595 { (exit 1); exit 1; }; }
9596
9597fi
9598rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9599fi
9600
9601
9602
9603# Checks for libraries.
9604{ echo "$as_me:$LINENO: checking for yp_match" >&5
9605echo $ECHO_N "checking for yp_match... $ECHO_C" >&6; }
9606if test "${ac_cv_func_yp_match+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9608else
9609 cat >conftest.$ac_ext <<_ACEOF
9610/* confdefs.h. */
9611_ACEOF
9612cat confdefs.h >>conftest.$ac_ext
9613cat >>conftest.$ac_ext <<_ACEOF
9614/* end confdefs.h. */
9615/* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match.
9616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9617#define yp_match innocuous_yp_match
9618
9619/* System header to define __stub macros and hopefully few prototypes,
9620 which can conflict with char yp_match (); below.
9621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9622 <limits.h> exists even on freestanding compilers. */
9623
9624#ifdef __STDC__
9625# include <limits.h>
9626#else
9627# include <assert.h>
9628#endif
9629
9630#undef yp_match
9631
9632/* Override any GCC internal prototype to avoid an error.
9633 Use char because int might match the return type of a GCC
9634 builtin and then its argument prototype would still apply. */
9635#ifdef __cplusplus
9636extern "C"
9637#endif
9638char yp_match ();
9639/* The GNU C library defines this for functions which it implements
9640 to always fail with ENOSYS. Some functions are actually named
9641 something starting with __ and the normal name is an alias. */
9642#if defined __stub_yp_match || defined __stub___yp_match
9643choke me
9644#endif
9645
9646int
9647main ()
9648{
9649return yp_match ();
9650 ;
9651 return 0;
9652}
9653_ACEOF
9654rm -f conftest.$ac_objext conftest$ac_exeext
9655if { (ac_try="$ac_link"
9656case "(($ac_try" in
9657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658 *) ac_try_echo=$ac_try;;
9659esac
9660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9661 (eval "$ac_link") 2>conftest.er1
9662 ac_status=$?
9663 grep -v '^ *+' conftest.er1 >conftest.err
9664 rm -f conftest.er1
9665 cat conftest.err >&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); } && {
9668 test -z "$ac_c_werror_flag" ||
9669 test ! -s conftest.err
9670 } && test -s conftest$ac_exeext &&
9671 $as_test_x conftest$ac_exeext; then
9672 ac_cv_func_yp_match=yes
9673else
9674 echo "$as_me: failed program was:" >&5
9675sed 's/^/| /' conftest.$ac_ext >&5
9676
9677 ac_cv_func_yp_match=no
9678fi
9679
9680rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9681 conftest$ac_exeext conftest.$ac_ext
9682fi
9683{ echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
9684echo "${ECHO_T}$ac_cv_func_yp_match" >&6; }
9685if test $ac_cv_func_yp_match = yes; then
9686 :
9687else
9688
9689{ echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
9690echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6; }
9691if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9693else
9694 ac_check_lib_save_LIBS=$LIBS
9695LIBS="-lnsl $LIBS"
9696cat >conftest.$ac_ext <<_ACEOF
9697/* confdefs.h. */
9698_ACEOF
9699cat confdefs.h >>conftest.$ac_ext
9700cat >>conftest.$ac_ext <<_ACEOF
9701/* end confdefs.h. */
9702
9703/* Override any GCC internal prototype to avoid an error.
9704 Use char because int might match the return type of a GCC
9705 builtin and then its argument prototype would still apply. */
9706#ifdef __cplusplus
9707extern "C"
9708#endif
9709char yp_match ();
9710int
9711main ()
9712{
9713return yp_match ();
9714 ;
9715 return 0;
9716}
9717_ACEOF
9718rm -f conftest.$ac_objext conftest$ac_exeext
9719if { (ac_try="$ac_link"
9720case "(($ac_try" in
9721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9722 *) ac_try_echo=$ac_try;;
9723esac
9724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9725 (eval "$ac_link") 2>conftest.er1
9726 ac_status=$?
9727 grep -v '^ *+' conftest.er1 >conftest.err
9728 rm -f conftest.er1
9729 cat conftest.err >&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } && {
9732 test -z "$ac_c_werror_flag" ||
9733 test ! -s conftest.err
9734 } && test -s conftest$ac_exeext &&
9735 $as_test_x conftest$ac_exeext; then
9736 ac_cv_lib_nsl_yp_match=yes
9737else
9738 echo "$as_me: failed program was:" >&5
9739sed 's/^/| /' conftest.$ac_ext >&5
9740
9741 ac_cv_lib_nsl_yp_match=no
9742fi
9743
9744rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9745 conftest$ac_exeext conftest.$ac_ext
9746LIBS=$ac_check_lib_save_LIBS
9747fi
9748{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
9749echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6; }
9750if test $ac_cv_lib_nsl_yp_match = yes; then
9751 cat >>confdefs.h <<_ACEOF
9752#define HAVE_LIBNSL 1
9753_ACEOF
9754
9755 LIBS="-lnsl $LIBS"
9756
9757fi
9758
9759fi
9760
9761{ echo "$as_me:$LINENO: checking for setsockopt" >&5
9762echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; }
9763if test "${ac_cv_func_setsockopt+set}" = set; then
9764 echo $ECHO_N "(cached) $ECHO_C" >&6
9765else
9766 cat >conftest.$ac_ext <<_ACEOF
9767/* confdefs.h. */
9768_ACEOF
9769cat confdefs.h >>conftest.$ac_ext
9770cat >>conftest.$ac_ext <<_ACEOF
9771/* end confdefs.h. */
9772/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
9773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9774#define setsockopt innocuous_setsockopt
9775
9776/* System header to define __stub macros and hopefully few prototypes,
9777 which can conflict with char setsockopt (); below.
9778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9779 <limits.h> exists even on freestanding compilers. */
9780
9781#ifdef __STDC__
9782# include <limits.h>
9783#else
9784# include <assert.h>
9785#endif
9786
9787#undef setsockopt
9788
9789/* Override any GCC internal prototype to avoid an error.
9790 Use char because int might match the return type of a GCC
9791 builtin and then its argument prototype would still apply. */
9792#ifdef __cplusplus
9793extern "C"
9794#endif
9795char setsockopt ();
9796/* The GNU C library defines this for functions which it implements
9797 to always fail with ENOSYS. Some functions are actually named
9798 something starting with __ and the normal name is an alias. */
9799#if defined __stub_setsockopt || defined __stub___setsockopt
9800choke me
9801#endif
9802
9803int
9804main ()
9805{
9806return setsockopt ();
9807 ;
9808 return 0;
9809}
9810_ACEOF
9811rm -f conftest.$ac_objext conftest$ac_exeext
9812if { (ac_try="$ac_link"
9813case "(($ac_try" in
9814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9815 *) ac_try_echo=$ac_try;;
9816esac
9817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9818 (eval "$ac_link") 2>conftest.er1
9819 ac_status=$?
9820 grep -v '^ *+' conftest.er1 >conftest.err
9821 rm -f conftest.er1
9822 cat conftest.err >&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); } && {
9825 test -z "$ac_c_werror_flag" ||
9826 test ! -s conftest.err
9827 } && test -s conftest$ac_exeext &&
9828 $as_test_x conftest$ac_exeext; then
9829 ac_cv_func_setsockopt=yes
9830else
9831 echo "$as_me: failed program was:" >&5
9832sed 's/^/| /' conftest.$ac_ext >&5
9833
9834 ac_cv_func_setsockopt=no
9835fi
9836
9837rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9838 conftest$ac_exeext conftest.$ac_ext
9839fi
9840{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
9841echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; }
9842if test $ac_cv_func_setsockopt = yes; then
9843 :
9844else
9845
9846{ echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
9847echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; }
9848if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
9849 echo $ECHO_N "(cached) $ECHO_C" >&6
9850else
9851 ac_check_lib_save_LIBS=$LIBS
9852LIBS="-lsocket $LIBS"
9853cat >conftest.$ac_ext <<_ACEOF
9854/* confdefs.h. */
9855_ACEOF
9856cat confdefs.h >>conftest.$ac_ext
9857cat >>conftest.$ac_ext <<_ACEOF
9858/* end confdefs.h. */
9859
9860/* Override any GCC internal prototype to avoid an error.
9861 Use char because int might match the return type of a GCC
9862 builtin and then its argument prototype would still apply. */
9863#ifdef __cplusplus
9864extern "C"
9865#endif
9866char setsockopt ();
9867int
9868main ()
9869{
9870return setsockopt ();
9871 ;
9872 return 0;
9873}
9874_ACEOF
9875rm -f conftest.$ac_objext conftest$ac_exeext
9876if { (ac_try="$ac_link"
9877case "(($ac_try" in
9878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879 *) ac_try_echo=$ac_try;;
9880esac
9881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882 (eval "$ac_link") 2>conftest.er1
9883 ac_status=$?
9884 grep -v '^ *+' conftest.er1 >conftest.err
9885 rm -f conftest.er1
9886 cat conftest.err >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } && {
9889 test -z "$ac_c_werror_flag" ||
9890 test ! -s conftest.err
9891 } && test -s conftest$ac_exeext &&
9892 $as_test_x conftest$ac_exeext; then
9893 ac_cv_lib_socket_setsockopt=yes
9894else
9895 echo "$as_me: failed program was:" >&5
9896sed 's/^/| /' conftest.$ac_ext >&5
9897
9898 ac_cv_lib_socket_setsockopt=no
9899fi
9900
9901rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9902 conftest$ac_exeext conftest.$ac_ext
9903LIBS=$ac_check_lib_save_LIBS
9904fi
9905{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
9906echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; }
9907if test $ac_cv_lib_socket_setsockopt = yes; then
9908 cat >>confdefs.h <<_ACEOF
9909#define HAVE_LIBSOCKET 1
9910_ACEOF
9911
9912 LIBS="-lsocket $LIBS"
9913
9914fi
9915
9916fi
9917
9918
9919
9920for ac_func in dirname
9921do
9922as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9923{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9924echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9925if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
9927else
9928 cat >conftest.$ac_ext <<_ACEOF
9929/* confdefs.h. */
9930_ACEOF
9931cat confdefs.h >>conftest.$ac_ext
9932cat >>conftest.$ac_ext <<_ACEOF
9933/* end confdefs.h. */
9934/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9936#define $ac_func innocuous_$ac_func
9937
9938/* System header to define __stub macros and hopefully few prototypes,
9939 which can conflict with char $ac_func (); below.
9940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9941 <limits.h> exists even on freestanding compilers. */
9942
9943#ifdef __STDC__
9944# include <limits.h>
9945#else
9946# include <assert.h>
9947#endif
9948
9949#undef $ac_func
9950
9951/* Override any GCC internal prototype to avoid an error.
9952 Use char because int might match the return type of a GCC
9953 builtin and then its argument prototype would still apply. */
9954#ifdef __cplusplus
9955extern "C"
9956#endif
9957char $ac_func ();
9958/* The GNU C library defines this for functions which it implements
9959 to always fail with ENOSYS. Some functions are actually named
9960 something starting with __ and the normal name is an alias. */
9961#if defined __stub_$ac_func || defined __stub___$ac_func
9962choke me
9963#endif
9964
9965int
9966main ()
9967{
9968return $ac_func ();
9969 ;
9970 return 0;
9971}
9972_ACEOF
9973rm -f conftest.$ac_objext conftest$ac_exeext
9974if { (ac_try="$ac_link"
9975case "(($ac_try" in
9976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9977 *) ac_try_echo=$ac_try;;
9978esac
9979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9980 (eval "$ac_link") 2>conftest.er1
9981 ac_status=$?
9982 grep -v '^ *+' conftest.er1 >conftest.err
9983 rm -f conftest.er1
9984 cat conftest.err >&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); } && {
9987 test -z "$ac_c_werror_flag" ||
9988 test ! -s conftest.err
9989 } && test -s conftest$ac_exeext &&
9990 $as_test_x conftest$ac_exeext; then
9991 eval "$as_ac_var=yes"
9992else
9993 echo "$as_me: failed program was:" >&5
9994sed 's/^/| /' conftest.$ac_ext >&5
9995
9996 eval "$as_ac_var=no"
9997fi
9998
9999rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10000 conftest$ac_exeext conftest.$ac_ext
10001fi
10002ac_res=`eval echo '${'$as_ac_var'}'`
10003 { echo "$as_me:$LINENO: result: $ac_res" >&5
10004echo "${ECHO_T}$ac_res" >&6; }
10005if test `eval echo '${'$as_ac_var'}'` = yes; then
10006 cat >>confdefs.h <<_ACEOF
10007#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10008_ACEOF
10009
10010for ac_header in libgen.h
10011do
10012as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10013if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10015echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10016if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10018fi
10019ac_res=`eval echo '${'$as_ac_Header'}'`
10020 { echo "$as_me:$LINENO: result: $ac_res" >&5
10021echo "${ECHO_T}$ac_res" >&6; }
10022else
10023 # Is the header compilable?
10024{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10025echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10026cat >conftest.$ac_ext <<_ACEOF
10027/* confdefs.h. */
10028_ACEOF
10029cat confdefs.h >>conftest.$ac_ext
10030cat >>conftest.$ac_ext <<_ACEOF
10031/* end confdefs.h. */
10032$ac_includes_default
10033#include <$ac_header>
10034_ACEOF
10035rm -f conftest.$ac_objext
10036if { (ac_try="$ac_compile"
10037case "(($ac_try" in
10038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039 *) ac_try_echo=$ac_try;;
10040esac
10041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042 (eval "$ac_compile") 2>conftest.er1
10043 ac_status=$?
10044 grep -v '^ *+' conftest.er1 >conftest.err
10045 rm -f conftest.er1
10046 cat conftest.err >&5
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); } && {
10049 test -z "$ac_c_werror_flag" ||
10050 test ! -s conftest.err
10051 } && test -s conftest.$ac_objext; then
10052 ac_header_compiler=yes
10053else
10054 echo "$as_me: failed program was:" >&5
10055sed 's/^/| /' conftest.$ac_ext >&5
10056
10057 ac_header_compiler=no
10058fi
10059
10060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10061{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10062echo "${ECHO_T}$ac_header_compiler" >&6; }
10063
10064# Is the header present?
10065{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10066echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10067cat >conftest.$ac_ext <<_ACEOF
10068/* confdefs.h. */
10069_ACEOF
10070cat confdefs.h >>conftest.$ac_ext
10071cat >>conftest.$ac_ext <<_ACEOF
10072/* end confdefs.h. */
10073#include <$ac_header>
10074_ACEOF
10075if { (ac_try="$ac_cpp conftest.$ac_ext"
10076case "(($ac_try" in
10077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10078 *) ac_try_echo=$ac_try;;
10079esac
10080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10082 ac_status=$?
10083 grep -v '^ *+' conftest.er1 >conftest.err
10084 rm -f conftest.er1
10085 cat conftest.err >&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); } >/dev/null && {
10088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10089 test ! -s conftest.err
10090 }; then
10091 ac_header_preproc=yes
10092else
10093 echo "$as_me: failed program was:" >&5
10094sed 's/^/| /' conftest.$ac_ext >&5
10095
10096 ac_header_preproc=no
10097fi
10098
10099rm -f conftest.err conftest.$ac_ext
10100{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10101echo "${ECHO_T}$ac_header_preproc" >&6; }
10102
10103# So? What about this header?
10104case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10105 yes:no: )
10106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10107echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10109echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10110 ac_header_preproc=yes
10111 ;;
10112 no:yes:* )
10113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10114echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10116echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10117 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10118echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10119 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10120echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10122echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10123 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10124echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10125 ( cat <<\_ASBOX
10126## ------------------------------------------- ##
10127## Report this to openssh-unix-dev@mindrot.org ##
10128## ------------------------------------------- ##
10129_ASBOX
10130 ) | sed "s/^/$as_me: WARNING: /" >&2
10131 ;;
10132esac
10133{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10136 echo $ECHO_N "(cached) $ECHO_C" >&6
10137else
10138 eval "$as_ac_Header=\$ac_header_preproc"
10139fi
10140ac_res=`eval echo '${'$as_ac_Header'}'`
10141 { echo "$as_me:$LINENO: result: $ac_res" >&5
10142echo "${ECHO_T}$ac_res" >&6; }
10143
10144fi
10145if test `eval echo '${'$as_ac_Header'}'` = yes; then
10146 cat >>confdefs.h <<_ACEOF
10147#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10148_ACEOF
10149
10150fi
10151
10152done
10153
10154else
10155
10156 { echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
10157echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6; }
10158if test "${ac_cv_lib_gen_dirname+set}" = set; then
10159 echo $ECHO_N "(cached) $ECHO_C" >&6
10160else
10161 ac_check_lib_save_LIBS=$LIBS
10162LIBS="-lgen $LIBS"
10163cat >conftest.$ac_ext <<_ACEOF
10164/* confdefs.h. */
10165_ACEOF
10166cat confdefs.h >>conftest.$ac_ext
10167cat >>conftest.$ac_ext <<_ACEOF
10168/* end confdefs.h. */
10169
10170/* Override any GCC internal prototype to avoid an error.
10171 Use char because int might match the return type of a GCC
10172 builtin and then its argument prototype would still apply. */
10173#ifdef __cplusplus
10174extern "C"
10175#endif
10176char dirname ();
10177int
10178main ()
10179{
10180return dirname ();
10181 ;
10182 return 0;
10183}
10184_ACEOF
10185rm -f conftest.$ac_objext conftest$ac_exeext
10186if { (ac_try="$ac_link"
10187case "(($ac_try" in
10188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10189 *) ac_try_echo=$ac_try;;
10190esac
10191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10192 (eval "$ac_link") 2>conftest.er1
10193 ac_status=$?
10194 grep -v '^ *+' conftest.er1 >conftest.err
10195 rm -f conftest.er1
10196 cat conftest.err >&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); } && {
10199 test -z "$ac_c_werror_flag" ||
10200 test ! -s conftest.err
10201 } && test -s conftest$ac_exeext &&
10202 $as_test_x conftest$ac_exeext; then
10203 ac_cv_lib_gen_dirname=yes
10204else
10205 echo "$as_me: failed program was:" >&5
10206sed 's/^/| /' conftest.$ac_ext >&5
10207
10208 ac_cv_lib_gen_dirname=no
10209fi
10210
10211rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10212 conftest$ac_exeext conftest.$ac_ext
10213LIBS=$ac_check_lib_save_LIBS
10214fi
10215{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
10216echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6; }
10217if test $ac_cv_lib_gen_dirname = yes; then
10218
10219 { echo "$as_me:$LINENO: checking for broken dirname" >&5
10220echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6; }
10221if test "${ac_cv_have_broken_dirname+set}" = set; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10223else
10224
10225 save_LIBS="$LIBS"
10226 LIBS="$LIBS -lgen"
10227 if test "$cross_compiling" = yes; then
10228 ac_cv_have_broken_dirname="no"
10229else
10230 cat >conftest.$ac_ext <<_ACEOF
10231/* confdefs.h. */
10232_ACEOF
10233cat confdefs.h >>conftest.$ac_ext
10234cat >>conftest.$ac_ext <<_ACEOF
10235/* end confdefs.h. */
10236
10237#include <libgen.h>
10238#include <string.h>
10239
10240int main(int argc, char **argv) {
10241 char *s, buf[32];
10242
10243 strncpy(buf,"/etc", 32);
10244 s = dirname(buf);
10245 if (!s || strncmp(s, "/", 32) != 0) {
10246 exit(1);
10247 } else {
10248 exit(0);
10249 }
10250}
10251
10252_ACEOF
10253rm -f conftest$ac_exeext
10254if { (ac_try="$ac_link"
10255case "(($ac_try" in
10256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10258esac
10259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260 (eval "$ac_link") 2>&5
10261 ac_status=$?
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10264 { (case "(($ac_try" in
10265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10266 *) ac_try_echo=$ac_try;;
10267esac
10268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10269 (eval "$ac_try") 2>&5
10270 ac_status=$?
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; }; then
10273 ac_cv_have_broken_dirname="no"
10274else
10275 echo "$as_me: program exited with status $ac_status" >&5
10276echo "$as_me: failed program was:" >&5
10277sed 's/^/| /' conftest.$ac_ext >&5
10278
10279( exit $ac_status )
10280 ac_cv_have_broken_dirname="yes"
10281fi
10282rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10283fi
10284
10285
10286 LIBS="$save_LIBS"
10287
10288fi
10289{ echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
10290echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6; }
10291 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
10292 LIBS="$LIBS -lgen"
10293 cat >>confdefs.h <<\_ACEOF
10294#define HAVE_DIRNAME 1
10295_ACEOF
10296
10297
10298for ac_header in libgen.h
10299do
10300as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10301if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10306fi
10307ac_res=`eval echo '${'$as_ac_Header'}'`
10308 { echo "$as_me:$LINENO: result: $ac_res" >&5
10309echo "${ECHO_T}$ac_res" >&6; }
10310else
10311 # Is the header compilable?
10312{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10313echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10314cat >conftest.$ac_ext <<_ACEOF
10315/* confdefs.h. */
10316_ACEOF
10317cat confdefs.h >>conftest.$ac_ext
10318cat >>conftest.$ac_ext <<_ACEOF
10319/* end confdefs.h. */
10320$ac_includes_default
10321#include <$ac_header>
10322_ACEOF
10323rm -f conftest.$ac_objext
10324if { (ac_try="$ac_compile"
10325case "(($ac_try" in
10326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327 *) ac_try_echo=$ac_try;;
10328esac
10329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10330 (eval "$ac_compile") 2>conftest.er1
10331 ac_status=$?
10332 grep -v '^ *+' conftest.er1 >conftest.err
10333 rm -f conftest.er1
10334 cat conftest.err >&5
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); } && {
10337 test -z "$ac_c_werror_flag" ||
10338 test ! -s conftest.err
10339 } && test -s conftest.$ac_objext; then
10340 ac_header_compiler=yes
10341else
10342 echo "$as_me: failed program was:" >&5
10343sed 's/^/| /' conftest.$ac_ext >&5
10344
10345 ac_header_compiler=no
10346fi
10347
10348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10349{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10350echo "${ECHO_T}$ac_header_compiler" >&6; }
10351
10352# Is the header present?
10353{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10354echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10355cat >conftest.$ac_ext <<_ACEOF
10356/* confdefs.h. */
10357_ACEOF
10358cat confdefs.h >>conftest.$ac_ext
10359cat >>conftest.$ac_ext <<_ACEOF
10360/* end confdefs.h. */
10361#include <$ac_header>
10362_ACEOF
10363if { (ac_try="$ac_cpp conftest.$ac_ext"
10364case "(($ac_try" in
10365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10366 *) ac_try_echo=$ac_try;;
10367esac
10368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10370 ac_status=$?
10371 grep -v '^ *+' conftest.er1 >conftest.err
10372 rm -f conftest.er1
10373 cat conftest.err >&5
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); } >/dev/null && {
10376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10377 test ! -s conftest.err
10378 }; then
10379 ac_header_preproc=yes
10380else
10381 echo "$as_me: failed program was:" >&5
10382sed 's/^/| /' conftest.$ac_ext >&5
10383
10384 ac_header_preproc=no
10385fi
10386
10387rm -f conftest.err conftest.$ac_ext
10388{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10389echo "${ECHO_T}$ac_header_preproc" >&6; }
10390
10391# So? What about this header?
10392case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10393 yes:no: )
10394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10395echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10397echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10398 ac_header_preproc=yes
10399 ;;
10400 no:yes:* )
10401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10402echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10404echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10406echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10408echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10410echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10412echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10413 ( cat <<\_ASBOX
10414## ------------------------------------------- ##
10415## Report this to openssh-unix-dev@mindrot.org ##
10416## ------------------------------------------- ##
10417_ASBOX
10418 ) | sed "s/^/$as_me: WARNING: /" >&2
10419 ;;
10420esac
10421{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10422echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10423if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10424 echo $ECHO_N "(cached) $ECHO_C" >&6
10425else
10426 eval "$as_ac_Header=\$ac_header_preproc"
10427fi
10428ac_res=`eval echo '${'$as_ac_Header'}'`
10429 { echo "$as_me:$LINENO: result: $ac_res" >&5
10430echo "${ECHO_T}$ac_res" >&6; }
10431
10432fi
10433if test `eval echo '${'$as_ac_Header'}'` = yes; then
10434 cat >>confdefs.h <<_ACEOF
10435#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10436_ACEOF
10437
10438fi
10439
10440done
10441
10442 fi
10443
10444fi
10445
10446
10447fi
10448done
10449
10450
10451{ echo "$as_me:$LINENO: checking for getspnam" >&5
10452echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; }
10453if test "${ac_cv_func_getspnam+set}" = set; then
10454 echo $ECHO_N "(cached) $ECHO_C" >&6
10455else
10456 cat >conftest.$ac_ext <<_ACEOF
10457/* confdefs.h. */
10458_ACEOF
10459cat confdefs.h >>conftest.$ac_ext
10460cat >>conftest.$ac_ext <<_ACEOF
10461/* end confdefs.h. */
10462/* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
10463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10464#define getspnam innocuous_getspnam
10465
10466/* System header to define __stub macros and hopefully few prototypes,
10467 which can conflict with char getspnam (); below.
10468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10469 <limits.h> exists even on freestanding compilers. */
10470
10471#ifdef __STDC__
10472# include <limits.h>
10473#else
10474# include <assert.h>
10475#endif
10476
10477#undef getspnam
10478
10479/* Override any GCC internal prototype to avoid an error.
10480 Use char because int might match the return type of a GCC
10481 builtin and then its argument prototype would still apply. */
10482#ifdef __cplusplus
10483extern "C"
10484#endif
10485char getspnam ();
10486/* The GNU C library defines this for functions which it implements
10487 to always fail with ENOSYS. Some functions are actually named
10488 something starting with __ and the normal name is an alias. */
10489#if defined __stub_getspnam || defined __stub___getspnam
10490choke me
10491#endif
10492
10493int
10494main ()
10495{
10496return getspnam ();
10497 ;
10498 return 0;
10499}
10500_ACEOF
10501rm -f conftest.$ac_objext conftest$ac_exeext
10502if { (ac_try="$ac_link"
10503case "(($ac_try" in
10504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10505 *) ac_try_echo=$ac_try;;
10506esac
10507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10508 (eval "$ac_link") 2>conftest.er1
10509 ac_status=$?
10510 grep -v '^ *+' conftest.er1 >conftest.err
10511 rm -f conftest.er1
10512 cat conftest.err >&5
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); } && {
10515 test -z "$ac_c_werror_flag" ||
10516 test ! -s conftest.err
10517 } && test -s conftest$ac_exeext &&
10518 $as_test_x conftest$ac_exeext; then
10519 ac_cv_func_getspnam=yes
10520else
10521 echo "$as_me: failed program was:" >&5
10522sed 's/^/| /' conftest.$ac_ext >&5
10523
10524 ac_cv_func_getspnam=no
10525fi
10526
10527rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10528 conftest$ac_exeext conftest.$ac_ext
10529fi
10530{ echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
10531echo "${ECHO_T}$ac_cv_func_getspnam" >&6; }
10532if test $ac_cv_func_getspnam = yes; then
10533 :
10534else
10535 { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
10536echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; }
10537if test "${ac_cv_lib_gen_getspnam+set}" = set; then
10538 echo $ECHO_N "(cached) $ECHO_C" >&6
10539else
10540 ac_check_lib_save_LIBS=$LIBS
10541LIBS="-lgen $LIBS"
10542cat >conftest.$ac_ext <<_ACEOF
10543/* confdefs.h. */
10544_ACEOF
10545cat confdefs.h >>conftest.$ac_ext
10546cat >>conftest.$ac_ext <<_ACEOF
10547/* end confdefs.h. */
10548
10549/* Override any GCC internal prototype to avoid an error.
10550 Use char because int might match the return type of a GCC
10551 builtin and then its argument prototype would still apply. */
10552#ifdef __cplusplus
10553extern "C"
10554#endif
10555char getspnam ();
10556int
10557main ()
10558{
10559return getspnam ();
10560 ;
10561 return 0;
10562}
10563_ACEOF
10564rm -f conftest.$ac_objext conftest$ac_exeext
10565if { (ac_try="$ac_link"
10566case "(($ac_try" in
10567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10568 *) ac_try_echo=$ac_try;;
10569esac
10570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10571 (eval "$ac_link") 2>conftest.er1
10572 ac_status=$?
10573 grep -v '^ *+' conftest.er1 >conftest.err
10574 rm -f conftest.er1
10575 cat conftest.err >&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } && {
10578 test -z "$ac_c_werror_flag" ||
10579 test ! -s conftest.err
10580 } && test -s conftest$ac_exeext &&
10581 $as_test_x conftest$ac_exeext; then
10582 ac_cv_lib_gen_getspnam=yes
10583else
10584 echo "$as_me: failed program was:" >&5
10585sed 's/^/| /' conftest.$ac_ext >&5
10586
10587 ac_cv_lib_gen_getspnam=no
10588fi
10589
10590rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10591 conftest$ac_exeext conftest.$ac_ext
10592LIBS=$ac_check_lib_save_LIBS
10593fi
10594{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
10595echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; }
10596if test $ac_cv_lib_gen_getspnam = yes; then
10597 LIBS="$LIBS -lgen"
10598fi
10599
10600fi
10601
10602{ echo "$as_me:$LINENO: checking for library containing basename" >&5
10603echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6; }
10604if test "${ac_cv_search_basename+set}" = set; then
10605 echo $ECHO_N "(cached) $ECHO_C" >&6
10606else
10607 ac_func_search_save_LIBS=$LIBS
10608cat >conftest.$ac_ext <<_ACEOF
10609/* confdefs.h. */
10610_ACEOF
10611cat confdefs.h >>conftest.$ac_ext
10612cat >>conftest.$ac_ext <<_ACEOF
10613/* end confdefs.h. */
10614
10615/* Override any GCC internal prototype to avoid an error.
10616 Use char because int might match the return type of a GCC
10617 builtin and then its argument prototype would still apply. */
10618#ifdef __cplusplus
10619extern "C"
10620#endif
10621char basename ();
10622int
10623main ()
10624{
10625return basename ();
10626 ;
10627 return 0;
10628}
10629_ACEOF
10630for ac_lib in '' gen; do
10631 if test -z "$ac_lib"; then
10632 ac_res="none required"
10633 else
10634 ac_res=-l$ac_lib
10635 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10636 fi
10637 rm -f conftest.$ac_objext conftest$ac_exeext
10638if { (ac_try="$ac_link"
10639case "(($ac_try" in
10640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641 *) ac_try_echo=$ac_try;;
10642esac
10643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644 (eval "$ac_link") 2>conftest.er1
10645 ac_status=$?
10646 grep -v '^ *+' conftest.er1 >conftest.err
10647 rm -f conftest.er1
10648 cat conftest.err >&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); } && {
10651 test -z "$ac_c_werror_flag" ||
10652 test ! -s conftest.err
10653 } && test -s conftest$ac_exeext &&
10654 $as_test_x conftest$ac_exeext; then
10655 ac_cv_search_basename=$ac_res
10656else
10657 echo "$as_me: failed program was:" >&5
10658sed 's/^/| /' conftest.$ac_ext >&5
10659
10660
10661fi
10662
10663rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10664 conftest$ac_exeext
10665 if test "${ac_cv_search_basename+set}" = set; then
10666 break
10667fi
10668done
10669if test "${ac_cv_search_basename+set}" = set; then
10670 :
10671else
10672 ac_cv_search_basename=no
10673fi
10674rm conftest.$ac_ext
10675LIBS=$ac_func_search_save_LIBS
10676fi
10677{ echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5
10678echo "${ECHO_T}$ac_cv_search_basename" >&6; }
10679ac_res=$ac_cv_search_basename
10680if test "$ac_res" != no; then
10681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10682
10683cat >>confdefs.h <<\_ACEOF
10684#define HAVE_BASENAME 1
10685_ACEOF
10686
10687fi
10688
10689
10690
10691# Check whether --with-zlib was given.
10692if test "${with_zlib+set}" = set; then
10693 withval=$with_zlib; if test "x$withval" = "xno" ; then
10694 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
10695echo "$as_me: error: *** zlib is required ***" >&2;}
10696 { (exit 1); exit 1; }; }
10697 elif test "x$withval" != "xyes"; then
10698 if test -d "$withval/lib"; then
10699 if test -n "${need_dash_r}"; then
10700 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
10701 else
10702 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
10703 fi
10704 else
10705 if test -n "${need_dash_r}"; then
10706 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
10707 else
10708 LDFLAGS="-L${withval} ${LDFLAGS}"
10709 fi
10710 fi
10711 if test -d "$withval/include"; then
10712 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
10713 else
10714 CPPFLAGS="-I${withval} ${CPPFLAGS}"
10715 fi
10716 fi
10717
10718fi
10719
10720
10721if test "${ac_cv_header_zlib_h+set}" = set; then
10722 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10723echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10724if test "${ac_cv_header_zlib_h+set}" = set; then
10725 echo $ECHO_N "(cached) $ECHO_C" >&6
10726fi
10727{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10728echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10729else
10730 # Is the header compilable?
10731{ echo "$as_me:$LINENO: checking zlib.h usability" >&5
10732echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
10733cat >conftest.$ac_ext <<_ACEOF
10734/* confdefs.h. */
10735_ACEOF
10736cat confdefs.h >>conftest.$ac_ext
10737cat >>conftest.$ac_ext <<_ACEOF
10738/* end confdefs.h. */
10739$ac_includes_default
10740#include <zlib.h>
10741_ACEOF
10742rm -f conftest.$ac_objext
10743if { (ac_try="$ac_compile"
10744case "(($ac_try" in
10745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10746 *) ac_try_echo=$ac_try;;
10747esac
10748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10749 (eval "$ac_compile") 2>conftest.er1
10750 ac_status=$?
10751 grep -v '^ *+' conftest.er1 >conftest.err
10752 rm -f conftest.er1
10753 cat conftest.err >&5
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); } && {
10756 test -z "$ac_c_werror_flag" ||
10757 test ! -s conftest.err
10758 } && test -s conftest.$ac_objext; then
10759 ac_header_compiler=yes
10760else
10761 echo "$as_me: failed program was:" >&5
10762sed 's/^/| /' conftest.$ac_ext >&5
10763
10764 ac_header_compiler=no
10765fi
10766
10767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10768{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10769echo "${ECHO_T}$ac_header_compiler" >&6; }
10770
10771# Is the header present?
10772{ echo "$as_me:$LINENO: checking zlib.h presence" >&5
10773echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
10774cat >conftest.$ac_ext <<_ACEOF
10775/* confdefs.h. */
10776_ACEOF
10777cat confdefs.h >>conftest.$ac_ext
10778cat >>conftest.$ac_ext <<_ACEOF
10779/* end confdefs.h. */
10780#include <zlib.h>
10781_ACEOF
10782if { (ac_try="$ac_cpp conftest.$ac_ext"
10783case "(($ac_try" in
10784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10785 *) ac_try_echo=$ac_try;;
10786esac
10787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10789 ac_status=$?
10790 grep -v '^ *+' conftest.er1 >conftest.err
10791 rm -f conftest.er1
10792 cat conftest.err >&5
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); } >/dev/null && {
10795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10796 test ! -s conftest.err
10797 }; then
10798 ac_header_preproc=yes
10799else
10800 echo "$as_me: failed program was:" >&5
10801sed 's/^/| /' conftest.$ac_ext >&5
10802
10803 ac_header_preproc=no
10804fi
10805
10806rm -f conftest.err conftest.$ac_ext
10807{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10808echo "${ECHO_T}$ac_header_preproc" >&6; }
10809
10810# So? What about this header?
10811case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10812 yes:no: )
10813 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10814echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10815 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10816echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10817 ac_header_preproc=yes
10818 ;;
10819 no:yes:* )
10820 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10821echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10822 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
10823echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
10824 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10825echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10826 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
10827echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10828 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10829echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10830 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10831echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10832 ( cat <<\_ASBOX
10833## ------------------------------------------- ##
10834## Report this to openssh-unix-dev@mindrot.org ##
10835## ------------------------------------------- ##
10836_ASBOX
10837 ) | sed "s/^/$as_me: WARNING: /" >&2
10838 ;;
10839esac
10840{ echo "$as_me:$LINENO: checking for zlib.h" >&5
10841echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10842if test "${ac_cv_header_zlib_h+set}" = set; then
10843 echo $ECHO_N "(cached) $ECHO_C" >&6
10844else
10845 ac_cv_header_zlib_h=$ac_header_preproc
10846fi
10847{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10848echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10849
10850fi
10851if test $ac_cv_header_zlib_h = yes; then
10852 :
10853else
10854 { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5
10855echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;}
10856 { (exit 1); exit 1; }; }
10857fi
10858
10859
10860
10861{ echo "$as_me:$LINENO: checking for deflate in -lz" >&5
10862echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
10863if test "${ac_cv_lib_z_deflate+set}" = set; then
10864 echo $ECHO_N "(cached) $ECHO_C" >&6
10865else
10866 ac_check_lib_save_LIBS=$LIBS
10867LIBS="-lz $LIBS"
10868cat >conftest.$ac_ext <<_ACEOF
10869/* confdefs.h. */
10870_ACEOF
10871cat confdefs.h >>conftest.$ac_ext
10872cat >>conftest.$ac_ext <<_ACEOF
10873/* end confdefs.h. */
10874
10875/* Override any GCC internal prototype to avoid an error.
10876 Use char because int might match the return type of a GCC
10877 builtin and then its argument prototype would still apply. */
10878#ifdef __cplusplus
10879extern "C"
10880#endif
10881char deflate ();
10882int
10883main ()
10884{
10885return deflate ();
10886 ;
10887 return 0;
10888}
10889_ACEOF
10890rm -f conftest.$ac_objext conftest$ac_exeext
10891if { (ac_try="$ac_link"
10892case "(($ac_try" in
10893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894 *) ac_try_echo=$ac_try;;
10895esac
10896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897 (eval "$ac_link") 2>conftest.er1
10898 ac_status=$?
10899 grep -v '^ *+' conftest.er1 >conftest.err
10900 rm -f conftest.er1
10901 cat conftest.err >&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } && {
10904 test -z "$ac_c_werror_flag" ||
10905 test ! -s conftest.err
10906 } && test -s conftest$ac_exeext &&
10907 $as_test_x conftest$ac_exeext; then
10908 ac_cv_lib_z_deflate=yes
10909else
10910 echo "$as_me: failed program was:" >&5
10911sed 's/^/| /' conftest.$ac_ext >&5
10912
10913 ac_cv_lib_z_deflate=no
10914fi
10915
10916rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10917 conftest$ac_exeext conftest.$ac_ext
10918LIBS=$ac_check_lib_save_LIBS
10919fi
10920{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
10921echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
10922if test $ac_cv_lib_z_deflate = yes; then
10923 cat >>confdefs.h <<_ACEOF
10924#define HAVE_LIBZ 1
10925_ACEOF
10926
10927 LIBS="-lz $LIBS"
10928
10929else
10930
10931 saved_CPPFLAGS="$CPPFLAGS"
10932 saved_LDFLAGS="$LDFLAGS"
10933 save_LIBS="$LIBS"
10934 if test -n "${need_dash_r}"; then
10935 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
10936 else
10937 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
10938 fi
10939 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
10940 LIBS="$LIBS -lz"
10941 cat >conftest.$ac_ext <<_ACEOF
10942/* confdefs.h. */
10943_ACEOF
10944cat confdefs.h >>conftest.$ac_ext
10945cat >>conftest.$ac_ext <<_ACEOF
10946/* end confdefs.h. */
10947
10948/* Override any GCC internal prototype to avoid an error.
10949 Use char because int might match the return type of a GCC
10950 builtin and then its argument prototype would still apply. */
10951#ifdef __cplusplus
10952extern "C"
10953#endif
10954char deflate ();
10955int
10956main ()
10957{
10958return deflate ();
10959 ;
10960 return 0;
10961}
10962_ACEOF
10963rm -f conftest.$ac_objext conftest$ac_exeext
10964if { (ac_try="$ac_link"
10965case "(($ac_try" in
10966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10967 *) ac_try_echo=$ac_try;;
10968esac
10969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10970 (eval "$ac_link") 2>conftest.er1
10971 ac_status=$?
10972 grep -v '^ *+' conftest.er1 >conftest.err
10973 rm -f conftest.er1
10974 cat conftest.err >&5
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); } && {
10977 test -z "$ac_c_werror_flag" ||
10978 test ! -s conftest.err
10979 } && test -s conftest$ac_exeext &&
10980 $as_test_x conftest$ac_exeext; then
10981 cat >>confdefs.h <<\_ACEOF
10982#define HAVE_LIBZ 1
10983_ACEOF
10984
10985else
10986 echo "$as_me: failed program was:" >&5
10987sed 's/^/| /' conftest.$ac_ext >&5
10988
10989
10990 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
10991echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
10992 { (exit 1); exit 1; }; }
10993
10994
10995fi
10996
10997rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10998 conftest$ac_exeext conftest.$ac_ext
10999
11000
11001fi
11002
11003
11004
11005# Check whether --with-zlib-version-check was given.
11006if test "${with_zlib_version_check+set}" = set; then
11007 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
11008 zlib_check_nonfatal=1
11009 fi
11010
11011
11012fi
11013
11014
11015{ echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5
11016echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6; }
11017if test "$cross_compiling" = yes; then
11018 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5
11019echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
11020
11021else
11022 cat >conftest.$ac_ext <<_ACEOF
11023/* confdefs.h. */
11024_ACEOF
11025cat confdefs.h >>conftest.$ac_ext
11026cat >>conftest.$ac_ext <<_ACEOF
11027/* end confdefs.h. */
11028
11029#include <stdio.h>
11030#include <zlib.h>
11031int main()
11032{
11033 int a=0, b=0, c=0, d=0, n, v;
11034 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
11035 if (n != 3 && n != 4)
11036 exit(1);
11037 v = a*1000000 + b*10000 + c*100 + d;
11038 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
11039
11040 /* 1.1.4 is OK */
11041 if (a == 1 && b == 1 && c >= 4)
11042 exit(0);
11043
11044 /* 1.2.3 and up are OK */
11045 if (v >= 1020300)
11046 exit(0);
11047
11048 exit(2);
11049}
11050
11051_ACEOF
11052rm -f conftest$ac_exeext
11053if { (ac_try="$ac_link"
11054case "(($ac_try" in
11055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056 *) ac_try_echo=$ac_try;;
11057esac
11058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11059 (eval "$ac_link") 2>&5
11060 ac_status=$?
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11063 { (case "(($ac_try" in
11064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065 *) ac_try_echo=$ac_try;;
11066esac
11067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11068 (eval "$ac_try") 2>&5
11069 ac_status=$?
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }; }; then
11072 { echo "$as_me:$LINENO: result: no" >&5
11073echo "${ECHO_T}no" >&6; }
11074else
11075 echo "$as_me: program exited with status $ac_status" >&5
11076echo "$as_me: failed program was:" >&5
11077sed 's/^/| /' conftest.$ac_ext >&5
11078
11079( exit $ac_status )
11080 { echo "$as_me:$LINENO: result: yes" >&5
11081echo "${ECHO_T}yes" >&6; }
11082 if test -z "$zlib_check_nonfatal" ; then
11083 { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log ***
11084Your reported zlib version has known security problems. It's possible your
11085vendor has fixed these problems without changing the version number. If you
11086are sure this is the case, you can disable the check by running
11087\"./configure --without-zlib-version-check\".
11088If you are in doubt, upgrade zlib to version 1.2.3 or greater.
11089See http://www.gzip.org/zlib/ for details." >&5
11090echo "$as_me: error: *** zlib too old - check config.log ***
11091Your reported zlib version has known security problems. It's possible your
11092vendor has fixed these problems without changing the version number. If you
11093are sure this is the case, you can disable the check by running
11094\"./configure --without-zlib-version-check\".
11095If you are in doubt, upgrade zlib to version 1.2.3 or greater.
11096See http://www.gzip.org/zlib/ for details." >&2;}
11097 { (exit 1); exit 1; }; }
11098 else
11099 { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5
11100echo "$as_me: WARNING: zlib version may have security problems" >&2;}
11101 fi
11102
11103fi
11104rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11105fi
11106
11107
11108
11109{ echo "$as_me:$LINENO: checking for strcasecmp" >&5
11110echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
11111if test "${ac_cv_func_strcasecmp+set}" = set; then
11112 echo $ECHO_N "(cached) $ECHO_C" >&6
11113else
11114 cat >conftest.$ac_ext <<_ACEOF
11115/* confdefs.h. */
11116_ACEOF
11117cat confdefs.h >>conftest.$ac_ext
11118cat >>conftest.$ac_ext <<_ACEOF
11119/* end confdefs.h. */
11120/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
11121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11122#define strcasecmp innocuous_strcasecmp
11123
11124/* System header to define __stub macros and hopefully few prototypes,
11125 which can conflict with char strcasecmp (); below.
11126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11127 <limits.h> exists even on freestanding compilers. */
11128
11129#ifdef __STDC__
11130# include <limits.h>
11131#else
11132# include <assert.h>
11133#endif
11134
11135#undef strcasecmp
11136
11137/* Override any GCC internal prototype to avoid an error.
11138 Use char because int might match the return type of a GCC
11139 builtin and then its argument prototype would still apply. */
11140#ifdef __cplusplus
11141extern "C"
11142#endif
11143char strcasecmp ();
11144/* The GNU C library defines this for functions which it implements
11145 to always fail with ENOSYS. Some functions are actually named
11146 something starting with __ and the normal name is an alias. */
11147#if defined __stub_strcasecmp || defined __stub___strcasecmp
11148choke me
11149#endif
11150
11151int
11152main ()
11153{
11154return strcasecmp ();
11155 ;
11156 return 0;
11157}
11158_ACEOF
11159rm -f conftest.$ac_objext conftest$ac_exeext
11160if { (ac_try="$ac_link"
11161case "(($ac_try" in
11162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11163 *) ac_try_echo=$ac_try;;
11164esac
11165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11166 (eval "$ac_link") 2>conftest.er1
11167 ac_status=$?
11168 grep -v '^ *+' conftest.er1 >conftest.err
11169 rm -f conftest.er1
11170 cat conftest.err >&5
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); } && {
11173 test -z "$ac_c_werror_flag" ||
11174 test ! -s conftest.err
11175 } && test -s conftest$ac_exeext &&
11176 $as_test_x conftest$ac_exeext; then
11177 ac_cv_func_strcasecmp=yes
11178else
11179 echo "$as_me: failed program was:" >&5
11180sed 's/^/| /' conftest.$ac_ext >&5
11181
11182 ac_cv_func_strcasecmp=no
11183fi
11184
11185rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11186 conftest$ac_exeext conftest.$ac_ext
11187fi
11188{ echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
11189echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
11190if test $ac_cv_func_strcasecmp = yes; then
11191 :
11192else
11193 { echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
11194echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6; }
11195if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
11196 echo $ECHO_N "(cached) $ECHO_C" >&6
11197else
11198 ac_check_lib_save_LIBS=$LIBS
11199LIBS="-lresolv $LIBS"
11200cat >conftest.$ac_ext <<_ACEOF
11201/* confdefs.h. */
11202_ACEOF
11203cat confdefs.h >>conftest.$ac_ext
11204cat >>conftest.$ac_ext <<_ACEOF
11205/* end confdefs.h. */
11206
11207/* Override any GCC internal prototype to avoid an error.
11208 Use char because int might match the return type of a GCC
11209 builtin and then its argument prototype would still apply. */
11210#ifdef __cplusplus
11211extern "C"
11212#endif
11213char strcasecmp ();
11214int
11215main ()
11216{
11217return strcasecmp ();
11218 ;
11219 return 0;
11220}
11221_ACEOF
11222rm -f conftest.$ac_objext conftest$ac_exeext
11223if { (ac_try="$ac_link"
11224case "(($ac_try" in
11225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11226 *) ac_try_echo=$ac_try;;
11227esac
11228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11229 (eval "$ac_link") 2>conftest.er1
11230 ac_status=$?
11231 grep -v '^ *+' conftest.er1 >conftest.err
11232 rm -f conftest.er1
11233 cat conftest.err >&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); } && {
11236 test -z "$ac_c_werror_flag" ||
11237 test ! -s conftest.err
11238 } && test -s conftest$ac_exeext &&
11239 $as_test_x conftest$ac_exeext; then
11240 ac_cv_lib_resolv_strcasecmp=yes
11241else
11242 echo "$as_me: failed program was:" >&5
11243sed 's/^/| /' conftest.$ac_ext >&5
11244
11245 ac_cv_lib_resolv_strcasecmp=no
11246fi
11247
11248rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11249 conftest$ac_exeext conftest.$ac_ext
11250LIBS=$ac_check_lib_save_LIBS
11251fi
11252{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
11253echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6; }
11254if test $ac_cv_lib_resolv_strcasecmp = yes; then
11255 LIBS="$LIBS -lresolv"
11256fi
11257
11258
11259fi
11260
11261
11262for ac_func in utimes
11263do
11264as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11265{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11266echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11267if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
11269else
11270 cat >conftest.$ac_ext <<_ACEOF
11271/* confdefs.h. */
11272_ACEOF
11273cat confdefs.h >>conftest.$ac_ext
11274cat >>conftest.$ac_ext <<_ACEOF
11275/* end confdefs.h. */
11276/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11278#define $ac_func innocuous_$ac_func
11279
11280/* System header to define __stub macros and hopefully few prototypes,
11281 which can conflict with char $ac_func (); below.
11282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11283 <limits.h> exists even on freestanding compilers. */
11284
11285#ifdef __STDC__
11286# include <limits.h>
11287#else
11288# include <assert.h>
11289#endif
11290
11291#undef $ac_func
11292
11293/* Override any GCC internal prototype to avoid an error.
11294 Use char because int might match the return type of a GCC
11295 builtin and then its argument prototype would still apply. */
11296#ifdef __cplusplus
11297extern "C"
11298#endif
11299char $ac_func ();
11300/* The GNU C library defines this for functions which it implements
11301 to always fail with ENOSYS. Some functions are actually named
11302 something starting with __ and the normal name is an alias. */
11303#if defined __stub_$ac_func || defined __stub___$ac_func
11304choke me
11305#endif
11306
11307int
11308main ()
11309{
11310return $ac_func ();
11311 ;
11312 return 0;
11313}
11314_ACEOF
11315rm -f conftest.$ac_objext conftest$ac_exeext
11316if { (ac_try="$ac_link"
11317case "(($ac_try" in
11318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11319 *) ac_try_echo=$ac_try;;
11320esac
11321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11322 (eval "$ac_link") 2>conftest.er1
11323 ac_status=$?
11324 grep -v '^ *+' conftest.er1 >conftest.err
11325 rm -f conftest.er1
11326 cat conftest.err >&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); } && {
11329 test -z "$ac_c_werror_flag" ||
11330 test ! -s conftest.err
11331 } && test -s conftest$ac_exeext &&
11332 $as_test_x conftest$ac_exeext; then
11333 eval "$as_ac_var=yes"
11334else
11335 echo "$as_me: failed program was:" >&5
11336sed 's/^/| /' conftest.$ac_ext >&5
11337
11338 eval "$as_ac_var=no"
11339fi
11340
11341rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11342 conftest$ac_exeext conftest.$ac_ext
11343fi
11344ac_res=`eval echo '${'$as_ac_var'}'`
11345 { echo "$as_me:$LINENO: result: $ac_res" >&5
11346echo "${ECHO_T}$ac_res" >&6; }
11347if test `eval echo '${'$as_ac_var'}'` = yes; then
11348 cat >>confdefs.h <<_ACEOF
11349#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11350_ACEOF
11351
11352else
11353 { echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
11354echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6; }
11355if test "${ac_cv_lib_c89_utimes+set}" = set; then
11356 echo $ECHO_N "(cached) $ECHO_C" >&6
11357else
11358 ac_check_lib_save_LIBS=$LIBS
11359LIBS="-lc89 $LIBS"
11360cat >conftest.$ac_ext <<_ACEOF
11361/* confdefs.h. */
11362_ACEOF
11363cat confdefs.h >>conftest.$ac_ext
11364cat >>conftest.$ac_ext <<_ACEOF
11365/* end confdefs.h. */
11366
11367/* Override any GCC internal prototype to avoid an error.
11368 Use char because int might match the return type of a GCC
11369 builtin and then its argument prototype would still apply. */
11370#ifdef __cplusplus
11371extern "C"
11372#endif
11373char utimes ();
11374int
11375main ()
11376{
11377return utimes ();
11378 ;
11379 return 0;
11380}
11381_ACEOF
11382rm -f conftest.$ac_objext conftest$ac_exeext
11383if { (ac_try="$ac_link"
11384case "(($ac_try" in
11385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11386 *) ac_try_echo=$ac_try;;
11387esac
11388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11389 (eval "$ac_link") 2>conftest.er1
11390 ac_status=$?
11391 grep -v '^ *+' conftest.er1 >conftest.err
11392 rm -f conftest.er1
11393 cat conftest.err >&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); } && {
11396 test -z "$ac_c_werror_flag" ||
11397 test ! -s conftest.err
11398 } && test -s conftest$ac_exeext &&
11399 $as_test_x conftest$ac_exeext; then
11400 ac_cv_lib_c89_utimes=yes
11401else
11402 echo "$as_me: failed program was:" >&5
11403sed 's/^/| /' conftest.$ac_ext >&5
11404
11405 ac_cv_lib_c89_utimes=no
11406fi
11407
11408rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11409 conftest$ac_exeext conftest.$ac_ext
11410LIBS=$ac_check_lib_save_LIBS
11411fi
11412{ echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
11413echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6; }
11414if test $ac_cv_lib_c89_utimes = yes; then
11415 cat >>confdefs.h <<\_ACEOF
11416#define HAVE_UTIMES 1
11417_ACEOF
11418
11419 LIBS="$LIBS -lc89"
11420fi
11421
11422
11423fi
11424done
11425
11426
11427
11428for ac_header in libutil.h
11429do
11430as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11431if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11433echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11434if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11436fi
11437ac_res=`eval echo '${'$as_ac_Header'}'`
11438 { echo "$as_me:$LINENO: result: $ac_res" >&5
11439echo "${ECHO_T}$ac_res" >&6; }
11440else
11441 # Is the header compilable?
11442{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11443echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11444cat >conftest.$ac_ext <<_ACEOF
11445/* confdefs.h. */
11446_ACEOF
11447cat confdefs.h >>conftest.$ac_ext
11448cat >>conftest.$ac_ext <<_ACEOF
11449/* end confdefs.h. */
11450$ac_includes_default
11451#include <$ac_header>
11452_ACEOF
11453rm -f conftest.$ac_objext
11454if { (ac_try="$ac_compile"
11455case "(($ac_try" in
11456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11457 *) ac_try_echo=$ac_try;;
11458esac
11459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11460 (eval "$ac_compile") 2>conftest.er1
11461 ac_status=$?
11462 grep -v '^ *+' conftest.er1 >conftest.err
11463 rm -f conftest.er1
11464 cat conftest.err >&5
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); } && {
11467 test -z "$ac_c_werror_flag" ||
11468 test ! -s conftest.err
11469 } && test -s conftest.$ac_objext; then
11470 ac_header_compiler=yes
11471else
11472 echo "$as_me: failed program was:" >&5
11473sed 's/^/| /' conftest.$ac_ext >&5
11474
11475 ac_header_compiler=no
11476fi
11477
11478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11479{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11480echo "${ECHO_T}$ac_header_compiler" >&6; }
11481
11482# Is the header present?
11483{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11484echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11485cat >conftest.$ac_ext <<_ACEOF
11486/* confdefs.h. */
11487_ACEOF
11488cat confdefs.h >>conftest.$ac_ext
11489cat >>conftest.$ac_ext <<_ACEOF
11490/* end confdefs.h. */
11491#include <$ac_header>
11492_ACEOF
11493if { (ac_try="$ac_cpp conftest.$ac_ext"
11494case "(($ac_try" in
11495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11496 *) ac_try_echo=$ac_try;;
11497esac
11498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11500 ac_status=$?
11501 grep -v '^ *+' conftest.er1 >conftest.err
11502 rm -f conftest.er1
11503 cat conftest.err >&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); } >/dev/null && {
11506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11507 test ! -s conftest.err
11508 }; then
11509 ac_header_preproc=yes
11510else
11511 echo "$as_me: failed program was:" >&5
11512sed 's/^/| /' conftest.$ac_ext >&5
11513
11514 ac_header_preproc=no
11515fi
11516
11517rm -f conftest.err conftest.$ac_ext
11518{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11519echo "${ECHO_T}$ac_header_preproc" >&6; }
11520
11521# So? What about this header?
11522case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11523 yes:no: )
11524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11525echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11527echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11528 ac_header_preproc=yes
11529 ;;
11530 no:yes:* )
11531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11532echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11534echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11536echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11538echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11540echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11542echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11543 ( cat <<\_ASBOX
11544## ------------------------------------------- ##
11545## Report this to openssh-unix-dev@mindrot.org ##
11546## ------------------------------------------- ##
11547_ASBOX
11548 ) | sed "s/^/$as_me: WARNING: /" >&2
11549 ;;
11550esac
11551{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11553if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11554 echo $ECHO_N "(cached) $ECHO_C" >&6
11555else
11556 eval "$as_ac_Header=\$ac_header_preproc"
11557fi
11558ac_res=`eval echo '${'$as_ac_Header'}'`
11559 { echo "$as_me:$LINENO: result: $ac_res" >&5
11560echo "${ECHO_T}$ac_res" >&6; }
11561
11562fi
11563if test `eval echo '${'$as_ac_Header'}'` = yes; then
11564 cat >>confdefs.h <<_ACEOF
11565#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11566_ACEOF
11567
11568fi
11569
11570done
11571
11572{ echo "$as_me:$LINENO: checking for library containing login" >&5
11573echo $ECHO_N "checking for library containing login... $ECHO_C" >&6; }
11574if test "${ac_cv_search_login+set}" = set; then
11575 echo $ECHO_N "(cached) $ECHO_C" >&6
11576else
11577 ac_func_search_save_LIBS=$LIBS
11578cat >conftest.$ac_ext <<_ACEOF
11579/* confdefs.h. */
11580_ACEOF
11581cat confdefs.h >>conftest.$ac_ext
11582cat >>conftest.$ac_ext <<_ACEOF
11583/* end confdefs.h. */
11584
11585/* Override any GCC internal prototype to avoid an error.
11586 Use char because int might match the return type of a GCC
11587 builtin and then its argument prototype would still apply. */
11588#ifdef __cplusplus
11589extern "C"
11590#endif
11591char login ();
11592int
11593main ()
11594{
11595return login ();
11596 ;
11597 return 0;
11598}
11599_ACEOF
11600for ac_lib in '' util bsd; do
11601 if test -z "$ac_lib"; then
11602 ac_res="none required"
11603 else
11604 ac_res=-l$ac_lib
11605 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11606 fi
11607 rm -f conftest.$ac_objext conftest$ac_exeext
11608if { (ac_try="$ac_link"
11609case "(($ac_try" in
11610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611 *) ac_try_echo=$ac_try;;
11612esac
11613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11614 (eval "$ac_link") 2>conftest.er1
11615 ac_status=$?
11616 grep -v '^ *+' conftest.er1 >conftest.err
11617 rm -f conftest.er1
11618 cat conftest.err >&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); } && {
11621 test -z "$ac_c_werror_flag" ||
11622 test ! -s conftest.err
11623 } && test -s conftest$ac_exeext &&
11624 $as_test_x conftest$ac_exeext; then
11625 ac_cv_search_login=$ac_res
11626else
11627 echo "$as_me: failed program was:" >&5
11628sed 's/^/| /' conftest.$ac_ext >&5
11629
11630
11631fi
11632
11633rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11634 conftest$ac_exeext
11635 if test "${ac_cv_search_login+set}" = set; then
11636 break
11637fi
11638done
11639if test "${ac_cv_search_login+set}" = set; then
11640 :
11641else
11642 ac_cv_search_login=no
11643fi
11644rm conftest.$ac_ext
11645LIBS=$ac_func_search_save_LIBS
11646fi
11647{ echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
11648echo "${ECHO_T}$ac_cv_search_login" >&6; }
11649ac_res=$ac_cv_search_login
11650if test "$ac_res" != no; then
11651 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11652
11653cat >>confdefs.h <<\_ACEOF
11654#define HAVE_LOGIN 1
11655_ACEOF
11656
11657fi
11658
11659
11660
11661
11662
11663for ac_func in fmt_scaled logout updwtmp logwtmp
11664do
11665as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11666{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11667echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11668if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11669 echo $ECHO_N "(cached) $ECHO_C" >&6
11670else
11671 cat >conftest.$ac_ext <<_ACEOF
11672/* confdefs.h. */
11673_ACEOF
11674cat confdefs.h >>conftest.$ac_ext
11675cat >>conftest.$ac_ext <<_ACEOF
11676/* end confdefs.h. */
11677/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11679#define $ac_func innocuous_$ac_func
11680
11681/* System header to define __stub macros and hopefully few prototypes,
11682 which can conflict with char $ac_func (); below.
11683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11684 <limits.h> exists even on freestanding compilers. */
11685
11686#ifdef __STDC__
11687# include <limits.h>
11688#else
11689# include <assert.h>
11690#endif
11691
11692#undef $ac_func
11693
11694/* Override any GCC internal prototype to avoid an error.
11695 Use char because int might match the return type of a GCC
11696 builtin and then its argument prototype would still apply. */
11697#ifdef __cplusplus
11698extern "C"
11699#endif
11700char $ac_func ();
11701/* The GNU C library defines this for functions which it implements
11702 to always fail with ENOSYS. Some functions are actually named
11703 something starting with __ and the normal name is an alias. */
11704#if defined __stub_$ac_func || defined __stub___$ac_func
11705choke me
11706#endif
11707
11708int
11709main ()
11710{
11711return $ac_func ();
11712 ;
11713 return 0;
11714}
11715_ACEOF
11716rm -f conftest.$ac_objext conftest$ac_exeext
11717if { (ac_try="$ac_link"
11718case "(($ac_try" in
11719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11720 *) ac_try_echo=$ac_try;;
11721esac
11722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11723 (eval "$ac_link") 2>conftest.er1
11724 ac_status=$?
11725 grep -v '^ *+' conftest.er1 >conftest.err
11726 rm -f conftest.er1
11727 cat conftest.err >&5
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } && {
11730 test -z "$ac_c_werror_flag" ||
11731 test ! -s conftest.err
11732 } && test -s conftest$ac_exeext &&
11733 $as_test_x conftest$ac_exeext; then
11734 eval "$as_ac_var=yes"
11735else
11736 echo "$as_me: failed program was:" >&5
11737sed 's/^/| /' conftest.$ac_ext >&5
11738
11739 eval "$as_ac_var=no"
11740fi
11741
11742rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11743 conftest$ac_exeext conftest.$ac_ext
11744fi
11745ac_res=`eval echo '${'$as_ac_var'}'`
11746 { echo "$as_me:$LINENO: result: $ac_res" >&5
11747echo "${ECHO_T}$ac_res" >&6; }
11748if test `eval echo '${'$as_ac_var'}'` = yes; then
11749 cat >>confdefs.h <<_ACEOF
11750#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11751_ACEOF
11752
11753fi
11754done
11755
11756
11757
11758for ac_func in strftime
11759do
11760as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11761{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11762echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11763if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11764 echo $ECHO_N "(cached) $ECHO_C" >&6
11765else
11766 cat >conftest.$ac_ext <<_ACEOF
11767/* confdefs.h. */
11768_ACEOF
11769cat confdefs.h >>conftest.$ac_ext
11770cat >>conftest.$ac_ext <<_ACEOF
11771/* end confdefs.h. */
11772/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11774#define $ac_func innocuous_$ac_func
11775
11776/* System header to define __stub macros and hopefully few prototypes,
11777 which can conflict with char $ac_func (); below.
11778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11779 <limits.h> exists even on freestanding compilers. */
11780
11781#ifdef __STDC__
11782# include <limits.h>
11783#else
11784# include <assert.h>
11785#endif
11786
11787#undef $ac_func
11788
11789/* Override any GCC internal prototype to avoid an error.
11790 Use char because int might match the return type of a GCC
11791 builtin and then its argument prototype would still apply. */
11792#ifdef __cplusplus
11793extern "C"
11794#endif
11795char $ac_func ();
11796/* The GNU C library defines this for functions which it implements
11797 to always fail with ENOSYS. Some functions are actually named
11798 something starting with __ and the normal name is an alias. */
11799#if defined __stub_$ac_func || defined __stub___$ac_func
11800choke me
11801#endif
11802
11803int
11804main ()
11805{
11806return $ac_func ();
11807 ;
11808 return 0;
11809}
11810_ACEOF
11811rm -f conftest.$ac_objext conftest$ac_exeext
11812if { (ac_try="$ac_link"
11813case "(($ac_try" in
11814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815 *) ac_try_echo=$ac_try;;
11816esac
11817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818 (eval "$ac_link") 2>conftest.er1
11819 ac_status=$?
11820 grep -v '^ *+' conftest.er1 >conftest.err
11821 rm -f conftest.er1
11822 cat conftest.err >&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); } && {
11825 test -z "$ac_c_werror_flag" ||
11826 test ! -s conftest.err
11827 } && test -s conftest$ac_exeext &&
11828 $as_test_x conftest$ac_exeext; then
11829 eval "$as_ac_var=yes"
11830else
11831 echo "$as_me: failed program was:" >&5
11832sed 's/^/| /' conftest.$ac_ext >&5
11833
11834 eval "$as_ac_var=no"
11835fi
11836
11837rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11838 conftest$ac_exeext conftest.$ac_ext
11839fi
11840ac_res=`eval echo '${'$as_ac_var'}'`
11841 { echo "$as_me:$LINENO: result: $ac_res" >&5
11842echo "${ECHO_T}$ac_res" >&6; }
11843if test `eval echo '${'$as_ac_var'}'` = yes; then
11844 cat >>confdefs.h <<_ACEOF
11845#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11846_ACEOF
11847
11848else
11849 # strftime is in -lintl on SCO UNIX.
11850{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
11851echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
11852if test "${ac_cv_lib_intl_strftime+set}" = set; then
11853 echo $ECHO_N "(cached) $ECHO_C" >&6
11854else
11855 ac_check_lib_save_LIBS=$LIBS
11856LIBS="-lintl $LIBS"
11857cat >conftest.$ac_ext <<_ACEOF
11858/* confdefs.h. */
11859_ACEOF
11860cat confdefs.h >>conftest.$ac_ext
11861cat >>conftest.$ac_ext <<_ACEOF
11862/* end confdefs.h. */
11863
11864/* Override any GCC internal prototype to avoid an error.
11865 Use char because int might match the return type of a GCC
11866 builtin and then its argument prototype would still apply. */
11867#ifdef __cplusplus
11868extern "C"
11869#endif
11870char strftime ();
11871int
11872main ()
11873{
11874return strftime ();
11875 ;
11876 return 0;
11877}
11878_ACEOF
11879rm -f conftest.$ac_objext conftest$ac_exeext
11880if { (ac_try="$ac_link"
11881case "(($ac_try" in
11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883 *) ac_try_echo=$ac_try;;
11884esac
11885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886 (eval "$ac_link") 2>conftest.er1
11887 ac_status=$?
11888 grep -v '^ *+' conftest.er1 >conftest.err
11889 rm -f conftest.er1
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } && {
11893 test -z "$ac_c_werror_flag" ||
11894 test ! -s conftest.err
11895 } && test -s conftest$ac_exeext &&
11896 $as_test_x conftest$ac_exeext; then
11897 ac_cv_lib_intl_strftime=yes
11898else
11899 echo "$as_me: failed program was:" >&5
11900sed 's/^/| /' conftest.$ac_ext >&5
11901
11902 ac_cv_lib_intl_strftime=no
11903fi
11904
11905rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11906 conftest$ac_exeext conftest.$ac_ext
11907LIBS=$ac_check_lib_save_LIBS
11908fi
11909{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
11910echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
11911if test $ac_cv_lib_intl_strftime = yes; then
11912 cat >>confdefs.h <<\_ACEOF
11913#define HAVE_STRFTIME 1
11914_ACEOF
11915
11916LIBS="-lintl $LIBS"
11917fi
11918
11919fi
11920done
11921
11922
11923# Check for ALTDIRFUNC glob() extension
11924{ echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
11925echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6; }
11926cat >conftest.$ac_ext <<_ACEOF
11927/* confdefs.h. */
11928_ACEOF
11929cat confdefs.h >>conftest.$ac_ext
11930cat >>conftest.$ac_ext <<_ACEOF
11931/* end confdefs.h. */
11932
11933 #include <glob.h>
11934 #ifdef GLOB_ALTDIRFUNC
11935 FOUNDIT
11936 #endif
11937
11938_ACEOF
11939if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11940 $EGREP "FOUNDIT" >/dev/null 2>&1; then
11941
11942
11943cat >>confdefs.h <<\_ACEOF
11944#define GLOB_HAS_ALTDIRFUNC 1
11945_ACEOF
11946
11947 { echo "$as_me:$LINENO: result: yes" >&5
11948echo "${ECHO_T}yes" >&6; }
11949
11950else
11951
11952 { echo "$as_me:$LINENO: result: no" >&5
11953echo "${ECHO_T}no" >&6; }
11954
11955
11956fi
11957rm -f conftest*
11958
11959
11960# Check for g.gl_matchc glob() extension
11961{ echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
11962echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6; }
11963cat >conftest.$ac_ext <<_ACEOF
11964/* confdefs.h. */
11965_ACEOF
11966cat confdefs.h >>conftest.$ac_ext
11967cat >>conftest.$ac_ext <<_ACEOF
11968/* end confdefs.h. */
11969 #include <glob.h>
11970int
11971main ()
11972{
11973glob_t g; g.gl_matchc = 1;
11974 ;
11975 return 0;
11976}
11977_ACEOF
11978rm -f conftest.$ac_objext
11979if { (ac_try="$ac_compile"
11980case "(($ac_try" in
11981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11982 *) ac_try_echo=$ac_try;;
11983esac
11984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985 (eval "$ac_compile") 2>conftest.er1
11986 ac_status=$?
11987 grep -v '^ *+' conftest.er1 >conftest.err
11988 rm -f conftest.er1
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } && {
11992 test -z "$ac_c_werror_flag" ||
11993 test ! -s conftest.err
11994 } && test -s conftest.$ac_objext; then
11995
11996
11997cat >>confdefs.h <<\_ACEOF
11998#define GLOB_HAS_GL_MATCHC 1
11999_ACEOF
12000
12001 { echo "$as_me:$LINENO: result: yes" >&5
12002echo "${ECHO_T}yes" >&6; }
12003
12004else
12005 echo "$as_me: failed program was:" >&5
12006sed 's/^/| /' conftest.$ac_ext >&5
12007
12008
12009 { echo "$as_me:$LINENO: result: no" >&5
12010echo "${ECHO_T}no" >&6; }
12011
12012
12013fi
12014
12015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12016
12017{ echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5
12018echo $ECHO_N "checking whether GLOB_NOMATCH is declared... $ECHO_C" >&6; }
12019if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then
12020 echo $ECHO_N "(cached) $ECHO_C" >&6
12021else
12022 cat >conftest.$ac_ext <<_ACEOF
12023/* confdefs.h. */
12024_ACEOF
12025cat confdefs.h >>conftest.$ac_ext
12026cat >>conftest.$ac_ext <<_ACEOF
12027/* end confdefs.h. */
12028#include <glob.h>
12029
12030int
12031main ()
12032{
12033#ifndef GLOB_NOMATCH
12034 (void) GLOB_NOMATCH;
12035#endif
12036
12037 ;
12038 return 0;
12039}
12040_ACEOF
12041rm -f conftest.$ac_objext
12042if { (ac_try="$ac_compile"
12043case "(($ac_try" in
12044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12045 *) ac_try_echo=$ac_try;;
12046esac
12047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12048 (eval "$ac_compile") 2>conftest.er1
12049 ac_status=$?
12050 grep -v '^ *+' conftest.er1 >conftest.err
12051 rm -f conftest.er1
12052 cat conftest.err >&5
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); } && {
12055 test -z "$ac_c_werror_flag" ||
12056 test ! -s conftest.err
12057 } && test -s conftest.$ac_objext; then
12058 ac_cv_have_decl_GLOB_NOMATCH=yes
12059else
12060 echo "$as_me: failed program was:" >&5
12061sed 's/^/| /' conftest.$ac_ext >&5
12062
12063 ac_cv_have_decl_GLOB_NOMATCH=no
12064fi
12065
12066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12067fi
12068{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5
12069echo "${ECHO_T}$ac_cv_have_decl_GLOB_NOMATCH" >&6; }
12070if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then
12071
12072cat >>confdefs.h <<_ACEOF
12073#define HAVE_DECL_GLOB_NOMATCH 1
12074_ACEOF
12075
12076
12077else
12078 cat >>confdefs.h <<_ACEOF
12079#define HAVE_DECL_GLOB_NOMATCH 0
12080_ACEOF
12081
12082
12083fi
12084
12085
12086
12087{ echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
12088echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6; }
12089if test "$cross_compiling" = yes; then
12090
12091 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
12092echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
12093 cat >>confdefs.h <<\_ACEOF
12094#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
12095_ACEOF
12096
12097
12098
12099else
12100 cat >conftest.$ac_ext <<_ACEOF
12101/* confdefs.h. */
12102_ACEOF
12103cat confdefs.h >>conftest.$ac_ext
12104cat >>conftest.$ac_ext <<_ACEOF
12105/* end confdefs.h. */
12106
12107#include <sys/types.h>
12108#include <dirent.h>
12109int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
12110
12111_ACEOF
12112rm -f conftest$ac_exeext
12113if { (ac_try="$ac_link"
12114case "(($ac_try" in
12115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116 *) ac_try_echo=$ac_try;;
12117esac
12118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12119 (eval "$ac_link") 2>&5
12120 ac_status=$?
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12123 { (case "(($ac_try" in
12124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12125 *) ac_try_echo=$ac_try;;
12126esac
12127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128 (eval "$ac_try") 2>&5
12129 ac_status=$?
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; }; then
12132 { echo "$as_me:$LINENO: result: yes" >&5
12133echo "${ECHO_T}yes" >&6; }
12134else
12135 echo "$as_me: program exited with status $ac_status" >&5
12136echo "$as_me: failed program was:" >&5
12137sed 's/^/| /' conftest.$ac_ext >&5
12138
12139( exit $ac_status )
12140
12141 { echo "$as_me:$LINENO: result: no" >&5
12142echo "${ECHO_T}no" >&6; }
12143
12144cat >>confdefs.h <<\_ACEOF
12145#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
12146_ACEOF
12147
12148
12149fi
12150rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12151fi
12152
12153
12154
12155{ echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5
12156echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6; }
12157if test -d "/proc/$$/fd" ; then
12158
12159cat >>confdefs.h <<\_ACEOF
12160#define HAVE_PROC_PID 1
12161_ACEOF
12162
12163 { echo "$as_me:$LINENO: result: yes" >&5
12164echo "${ECHO_T}yes" >&6; }
12165else
12166 { echo "$as_me:$LINENO: result: no" >&5
12167echo "${ECHO_T}no" >&6; }
12168fi
12169
12170# Check whether user wants S/Key support
12171SKEY_MSG="no"
12172
12173# Check whether --with-skey was given.
12174if test "${with_skey+set}" = set; then
12175 withval=$with_skey;
12176 if test "x$withval" != "xno" ; then
12177
12178 if test "x$withval" != "xyes" ; then
12179 CPPFLAGS="$CPPFLAGS -I${withval}/include"
12180 LDFLAGS="$LDFLAGS -L${withval}/lib"
12181 fi
12182
12183
12184cat >>confdefs.h <<\_ACEOF
12185#define SKEY 1
12186_ACEOF
12187
12188 LIBS="-lskey $LIBS"
12189 SKEY_MSG="yes"
12190
12191 { echo "$as_me:$LINENO: checking for s/key support" >&5
12192echo $ECHO_N "checking for s/key support... $ECHO_C" >&6; }
12193 cat >conftest.$ac_ext <<_ACEOF
12194/* confdefs.h. */
12195_ACEOF
12196cat confdefs.h >>conftest.$ac_ext
12197cat >>conftest.$ac_ext <<_ACEOF
12198/* end confdefs.h. */
12199
12200#include <stdio.h>
12201#include <skey.h>
12202int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
12203
12204_ACEOF
12205rm -f conftest.$ac_objext conftest$ac_exeext
12206if { (ac_try="$ac_link"
12207case "(($ac_try" in
12208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209 *) ac_try_echo=$ac_try;;
12210esac
12211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212 (eval "$ac_link") 2>conftest.er1
12213 ac_status=$?
12214 grep -v '^ *+' conftest.er1 >conftest.err
12215 rm -f conftest.er1
12216 cat conftest.err >&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); } && {
12219 test -z "$ac_c_werror_flag" ||
12220 test ! -s conftest.err
12221 } && test -s conftest$ac_exeext &&
12222 $as_test_x conftest$ac_exeext; then
12223 { echo "$as_me:$LINENO: result: yes" >&5
12224echo "${ECHO_T}yes" >&6; }
12225else
12226 echo "$as_me: failed program was:" >&5
12227sed 's/^/| /' conftest.$ac_ext >&5
12228
12229
12230 { echo "$as_me:$LINENO: result: no" >&5
12231echo "${ECHO_T}no" >&6; }
12232 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
12233echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
12234 { (exit 1); exit 1; }; }
12235
12236fi
12237
12238rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12239 conftest$ac_exeext conftest.$ac_ext
12240 { echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5
12241echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6; }
12242 cat >conftest.$ac_ext <<_ACEOF
12243/* confdefs.h. */
12244_ACEOF
12245cat confdefs.h >>conftest.$ac_ext
12246cat >>conftest.$ac_ext <<_ACEOF
12247/* end confdefs.h. */
12248#include <stdio.h>
12249 #include <skey.h>
12250int
12251main ()
12252{
12253(void)skeychallenge(NULL,"name","",0);
12254 ;
12255 return 0;
12256}
12257_ACEOF
12258rm -f conftest.$ac_objext
12259if { (ac_try="$ac_compile"
12260case "(($ac_try" in
12261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12262 *) ac_try_echo=$ac_try;;
12263esac
12264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12265 (eval "$ac_compile") 2>conftest.er1
12266 ac_status=$?
12267 grep -v '^ *+' conftest.er1 >conftest.err
12268 rm -f conftest.er1
12269 cat conftest.err >&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } && {
12272 test -z "$ac_c_werror_flag" ||
12273 test ! -s conftest.err
12274 } && test -s conftest.$ac_objext; then
12275 { echo "$as_me:$LINENO: result: yes" >&5
12276echo "${ECHO_T}yes" >&6; }
12277
12278cat >>confdefs.h <<\_ACEOF
12279#define SKEYCHALLENGE_4ARG 1
12280_ACEOF
12281
12282else
12283 echo "$as_me: failed program was:" >&5
12284sed 's/^/| /' conftest.$ac_ext >&5
12285
12286 { echo "$as_me:$LINENO: result: no" >&5
12287echo "${ECHO_T}no" >&6; }
12288
12289fi
12290
12291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12292 fi
12293
12294
12295fi
12296
12297
12298# Check whether user wants TCP wrappers support
12299TCPW_MSG="no"
12300
12301# Check whether --with-tcp-wrappers was given.
12302if test "${with_tcp_wrappers+set}" = set; then
12303 withval=$with_tcp_wrappers;
12304 if test "x$withval" != "xno" ; then
12305 saved_LIBS="$LIBS"
12306 saved_LDFLAGS="$LDFLAGS"
12307 saved_CPPFLAGS="$CPPFLAGS"
12308 if test -n "${withval}" && \
12309 test "x${withval}" != "xyes"; then
12310 if test -d "${withval}/lib"; then
12311 if test -n "${need_dash_r}"; then
12312 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
12313 else
12314 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
12315 fi
12316 else
12317 if test -n "${need_dash_r}"; then
12318 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
12319 else
12320 LDFLAGS="-L${withval} ${LDFLAGS}"
12321 fi
12322 fi
12323 if test -d "${withval}/include"; then
12324 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
12325 else
12326 CPPFLAGS="-I${withval} ${CPPFLAGS}"
12327 fi
12328 fi
12329 LIBS="-lwrap $LIBS"
12330 { echo "$as_me:$LINENO: checking for libwrap" >&5
12331echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
12332 cat >conftest.$ac_ext <<_ACEOF
12333/* confdefs.h. */
12334_ACEOF
12335cat confdefs.h >>conftest.$ac_ext
12336cat >>conftest.$ac_ext <<_ACEOF
12337/* end confdefs.h. */
12338
12339#include <sys/types.h>
12340#include <sys/socket.h>
12341#include <netinet/in.h>
12342#include <tcpd.h>
12343 int deny_severity = 0, allow_severity = 0;
12344
12345int
12346main ()
12347{
12348hosts_access(0);
12349 ;
12350 return 0;
12351}
12352_ACEOF
12353rm -f conftest.$ac_objext conftest$ac_exeext
12354if { (ac_try="$ac_link"
12355case "(($ac_try" in
12356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357 *) ac_try_echo=$ac_try;;
12358esac
12359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12360 (eval "$ac_link") 2>conftest.er1
12361 ac_status=$?
12362 grep -v '^ *+' conftest.er1 >conftest.err
12363 rm -f conftest.er1
12364 cat conftest.err >&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } && {
12367 test -z "$ac_c_werror_flag" ||
12368 test ! -s conftest.err
12369 } && test -s conftest$ac_exeext &&
12370 $as_test_x conftest$ac_exeext; then
12371
12372 { echo "$as_me:$LINENO: result: yes" >&5
12373echo "${ECHO_T}yes" >&6; }
12374
12375cat >>confdefs.h <<\_ACEOF
12376#define LIBWRAP 1
12377_ACEOF
12378
12379 SSHDLIBS="$SSHDLIBS -lwrap"
12380 TCPW_MSG="yes"
12381
12382else
12383 echo "$as_me: failed program was:" >&5
12384sed 's/^/| /' conftest.$ac_ext >&5
12385
12386
12387 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
12388echo "$as_me: error: *** libwrap missing" >&2;}
12389 { (exit 1); exit 1; }; }
12390
12391
12392fi
12393
12394rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12395 conftest$ac_exeext conftest.$ac_ext
12396 LIBS="$saved_LIBS"
12397 fi
12398
12399
12400fi
12401
12402
12403# Check whether user wants libedit support
12404LIBEDIT_MSG="no"
12405
12406# Check whether --with-libedit was given.
12407if test "${with_libedit+set}" = set; then
12408 withval=$with_libedit; if test "x$withval" != "xno" ; then
12409 if test "x$withval" = "xyes" ; then
12410 # Extract the first word of "pkg-config", so it can be a program name with args.
12411set dummy pkg-config; ac_word=$2
12412{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12414if test "${ac_cv_path_PKGCONFIG+set}" = set; then
12415 echo $ECHO_N "(cached) $ECHO_C" >&6
12416else
12417 case $PKGCONFIG in
12418 [\\/]* | ?:[\\/]*)
12419 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
12420 ;;
12421 *)
12422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12423for as_dir in $PATH
12424do
12425 IFS=$as_save_IFS
12426 test -z "$as_dir" && as_dir=.
12427 for ac_exec_ext in '' $ac_executable_extensions; do
12428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12429 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
12430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12431 break 2
12432 fi
12433done
12434done
12435IFS=$as_save_IFS
12436
12437 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
12438 ;;
12439esac
12440fi
12441PKGCONFIG=$ac_cv_path_PKGCONFIG
12442if test -n "$PKGCONFIG"; then
12443 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
12444echo "${ECHO_T}$PKGCONFIG" >&6; }
12445else
12446 { echo "$as_me:$LINENO: result: no" >&5
12447echo "${ECHO_T}no" >&6; }
12448fi
12449
12450
12451 if test "x$PKGCONFIG" != "xno"; then
12452 { echo "$as_me:$LINENO: checking if $PKGCONFIG knows about libedit" >&5
12453echo $ECHO_N "checking if $PKGCONFIG knows about libedit... $ECHO_C" >&6; }
12454 if "$PKGCONFIG" libedit; then
12455 { echo "$as_me:$LINENO: result: yes" >&5
12456echo "${ECHO_T}yes" >&6; }
12457 use_pkgconfig_for_libedit=yes
12458 else
12459 { echo "$as_me:$LINENO: result: no" >&5
12460echo "${ECHO_T}no" >&6; }
12461 fi
12462 fi
12463 else
12464 CPPFLAGS="$CPPFLAGS -I${withval}/include"
12465 if test -n "${need_dash_r}"; then
12466 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
12467 else
12468 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
12469 fi
12470 fi
12471 if test "x$use_pkgconfig_for_libedit" == "xyes"; then
12472 LIBEDIT=`$PKGCONFIG --libs-only-l libedit`
12473 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`"
12474 else
12475 LIBEDIT="-ledit -lcurses"
12476 fi
12477 OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
12478 { echo "$as_me:$LINENO: checking for el_init in -ledit" >&5
12479echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6; }
12480if test "${ac_cv_lib_edit_el_init+set}" = set; then
12481 echo $ECHO_N "(cached) $ECHO_C" >&6
12482else
12483 ac_check_lib_save_LIBS=$LIBS
12484LIBS="-ledit $OTHERLIBS
12485 $LIBS"
12486cat >conftest.$ac_ext <<_ACEOF
12487/* confdefs.h. */
12488_ACEOF
12489cat confdefs.h >>conftest.$ac_ext
12490cat >>conftest.$ac_ext <<_ACEOF
12491/* end confdefs.h. */
12492
12493/* Override any GCC internal prototype to avoid an error.
12494 Use char because int might match the return type of a GCC
12495 builtin and then its argument prototype would still apply. */
12496#ifdef __cplusplus
12497extern "C"
12498#endif
12499char el_init ();
12500int
12501main ()
12502{
12503return el_init ();
12504 ;
12505 return 0;
12506}
12507_ACEOF
12508rm -f conftest.$ac_objext conftest$ac_exeext
12509if { (ac_try="$ac_link"
12510case "(($ac_try" in
12511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12512 *) ac_try_echo=$ac_try;;
12513esac
12514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12515 (eval "$ac_link") 2>conftest.er1
12516 ac_status=$?
12517 grep -v '^ *+' conftest.er1 >conftest.err
12518 rm -f conftest.er1
12519 cat conftest.err >&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); } && {
12522 test -z "$ac_c_werror_flag" ||
12523 test ! -s conftest.err
12524 } && test -s conftest$ac_exeext &&
12525 $as_test_x conftest$ac_exeext; then
12526 ac_cv_lib_edit_el_init=yes
12527else
12528 echo "$as_me: failed program was:" >&5
12529sed 's/^/| /' conftest.$ac_ext >&5
12530
12531 ac_cv_lib_edit_el_init=no
12532fi
12533
12534rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12535 conftest$ac_exeext conftest.$ac_ext
12536LIBS=$ac_check_lib_save_LIBS
12537fi
12538{ echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5
12539echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6; }
12540if test $ac_cv_lib_edit_el_init = yes; then
12541
12542cat >>confdefs.h <<\_ACEOF
12543#define USE_LIBEDIT 1
12544_ACEOF
12545
12546 LIBEDIT_MSG="yes"
12547
12548
12549else
12550 { { echo "$as_me:$LINENO: error: libedit not found" >&5
12551echo "$as_me: error: libedit not found" >&2;}
12552 { (exit 1); exit 1; }; }
12553fi
12554
12555 { echo "$as_me:$LINENO: checking if libedit version is compatible" >&5
12556echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6; }
12557 cat >conftest.$ac_ext <<_ACEOF
12558/* confdefs.h. */
12559_ACEOF
12560cat confdefs.h >>conftest.$ac_ext
12561cat >>conftest.$ac_ext <<_ACEOF
12562/* end confdefs.h. */
12563
12564#include <histedit.h>
12565int main(void)
12566{
12567 int i = H_SETSIZE;
12568 el_init("", NULL, NULL, NULL);
12569 exit(0);
12570}
12571
12572_ACEOF
12573rm -f conftest.$ac_objext
12574if { (ac_try="$ac_compile"
12575case "(($ac_try" in
12576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12577 *) ac_try_echo=$ac_try;;
12578esac
12579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12580 (eval "$ac_compile") 2>conftest.er1
12581 ac_status=$?
12582 grep -v '^ *+' conftest.er1 >conftest.err
12583 rm -f conftest.er1
12584 cat conftest.err >&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); } && {
12587 test -z "$ac_c_werror_flag" ||
12588 test ! -s conftest.err
12589 } && test -s conftest.$ac_objext; then
12590 { echo "$as_me:$LINENO: result: yes" >&5
12591echo "${ECHO_T}yes" >&6; }
12592else
12593 echo "$as_me: failed program was:" >&5
12594sed 's/^/| /' conftest.$ac_ext >&5
12595
12596 { echo "$as_me:$LINENO: result: no" >&5
12597echo "${ECHO_T}no" >&6; }
12598 { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5
12599echo "$as_me: error: libedit version is not compatible" >&2;}
12600 { (exit 1); exit 1; }; }
12601
12602fi
12603
12604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12605 fi
12606
12607fi
12608
12609
12610AUDIT_MODULE=none
12611
12612# Check whether --with-audit was given.
12613if test "${with_audit+set}" = set; then
12614 withval=$with_audit;
12615 { echo "$as_me:$LINENO: checking for supported audit module" >&5
12616echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6; }
12617 case "$withval" in
12618 bsm)
12619 { echo "$as_me:$LINENO: result: bsm" >&5
12620echo "${ECHO_T}bsm" >&6; }
12621 AUDIT_MODULE=bsm
12622
12623for ac_header in bsm/audit.h
12624do
12625as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12626{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12627echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12628if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12629 echo $ECHO_N "(cached) $ECHO_C" >&6
12630else
12631 cat >conftest.$ac_ext <<_ACEOF
12632/* confdefs.h. */
12633_ACEOF
12634cat confdefs.h >>conftest.$ac_ext
12635cat >>conftest.$ac_ext <<_ACEOF
12636/* end confdefs.h. */
12637
12638#ifdef HAVE_TIME_H
12639# include <time.h>
12640#endif
12641
12642
12643
12644#include <$ac_header>
12645_ACEOF
12646rm -f conftest.$ac_objext
12647if { (ac_try="$ac_compile"
12648case "(($ac_try" in
12649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12650 *) ac_try_echo=$ac_try;;
12651esac
12652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12653 (eval "$ac_compile") 2>conftest.er1
12654 ac_status=$?
12655 grep -v '^ *+' conftest.er1 >conftest.err
12656 rm -f conftest.er1
12657 cat conftest.err >&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); } && {
12660 test -z "$ac_c_werror_flag" ||
12661 test ! -s conftest.err
12662 } && test -s conftest.$ac_objext; then
12663 eval "$as_ac_Header=yes"
12664else
12665 echo "$as_me: failed program was:" >&5
12666sed 's/^/| /' conftest.$ac_ext >&5
12667
12668 eval "$as_ac_Header=no"
12669fi
12670
12671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12672fi
12673ac_res=`eval echo '${'$as_ac_Header'}'`
12674 { echo "$as_me:$LINENO: result: $ac_res" >&5
12675echo "${ECHO_T}$ac_res" >&6; }
12676if test `eval echo '${'$as_ac_Header'}'` = yes; then
12677 cat >>confdefs.h <<_ACEOF
12678#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12679_ACEOF
12680
12681else
12682 { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5
12683echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;}
12684 { (exit 1); exit 1; }; }
12685fi
12686
12687done
12688
12689
12690{ echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5
12691echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6; }
12692if test "${ac_cv_lib_bsm_getaudit+set}" = set; then
12693 echo $ECHO_N "(cached) $ECHO_C" >&6
12694else
12695 ac_check_lib_save_LIBS=$LIBS
12696LIBS="-lbsm $LIBS"
12697cat >conftest.$ac_ext <<_ACEOF
12698/* confdefs.h. */
12699_ACEOF
12700cat confdefs.h >>conftest.$ac_ext
12701cat >>conftest.$ac_ext <<_ACEOF
12702/* end confdefs.h. */
12703
12704/* Override any GCC internal prototype to avoid an error.
12705 Use char because int might match the return type of a GCC
12706 builtin and then its argument prototype would still apply. */
12707#ifdef __cplusplus
12708extern "C"
12709#endif
12710char getaudit ();
12711int
12712main ()
12713{
12714return getaudit ();
12715 ;
12716 return 0;
12717}
12718_ACEOF
12719rm -f conftest.$ac_objext conftest$ac_exeext
12720if { (ac_try="$ac_link"
12721case "(($ac_try" in
12722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12723 *) ac_try_echo=$ac_try;;
12724esac
12725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12726 (eval "$ac_link") 2>conftest.er1
12727 ac_status=$?
12728 grep -v '^ *+' conftest.er1 >conftest.err
12729 rm -f conftest.er1
12730 cat conftest.err >&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } && {
12733 test -z "$ac_c_werror_flag" ||
12734 test ! -s conftest.err
12735 } && test -s conftest$ac_exeext &&
12736 $as_test_x conftest$ac_exeext; then
12737 ac_cv_lib_bsm_getaudit=yes
12738else
12739 echo "$as_me: failed program was:" >&5
12740sed 's/^/| /' conftest.$ac_ext >&5
12741
12742 ac_cv_lib_bsm_getaudit=no
12743fi
12744
12745rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12746 conftest$ac_exeext conftest.$ac_ext
12747LIBS=$ac_check_lib_save_LIBS
12748fi
12749{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5
12750echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6; }
12751if test $ac_cv_lib_bsm_getaudit = yes; then
12752 cat >>confdefs.h <<_ACEOF
12753#define HAVE_LIBBSM 1
12754_ACEOF
12755
12756 LIBS="-lbsm $LIBS"
12757
12758else
12759 { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5
12760echo "$as_me: error: BSM enabled and required library not found" >&2;}
12761 { (exit 1); exit 1; }; }
12762fi
12763
12764
12765for ac_func in getaudit
12766do
12767as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12768{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12769echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12770if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12771 echo $ECHO_N "(cached) $ECHO_C" >&6
12772else
12773 cat >conftest.$ac_ext <<_ACEOF
12774/* confdefs.h. */
12775_ACEOF
12776cat confdefs.h >>conftest.$ac_ext
12777cat >>conftest.$ac_ext <<_ACEOF
12778/* end confdefs.h. */
12779/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12781#define $ac_func innocuous_$ac_func
12782
12783/* System header to define __stub macros and hopefully few prototypes,
12784 which can conflict with char $ac_func (); below.
12785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12786 <limits.h> exists even on freestanding compilers. */
12787
12788#ifdef __STDC__
12789# include <limits.h>
12790#else
12791# include <assert.h>
12792#endif
12793
12794#undef $ac_func
12795
12796/* Override any GCC internal prototype to avoid an error.
12797 Use char because int might match the return type of a GCC
12798 builtin and then its argument prototype would still apply. */
12799#ifdef __cplusplus
12800extern "C"
12801#endif
12802char $ac_func ();
12803/* The GNU C library defines this for functions which it implements
12804 to always fail with ENOSYS. Some functions are actually named
12805 something starting with __ and the normal name is an alias. */
12806#if defined __stub_$ac_func || defined __stub___$ac_func
12807choke me
12808#endif
12809
12810int
12811main ()
12812{
12813return $ac_func ();
12814 ;
12815 return 0;
12816}
12817_ACEOF
12818rm -f conftest.$ac_objext conftest$ac_exeext
12819if { (ac_try="$ac_link"
12820case "(($ac_try" in
12821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12822 *) ac_try_echo=$ac_try;;
12823esac
12824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12825 (eval "$ac_link") 2>conftest.er1
12826 ac_status=$?
12827 grep -v '^ *+' conftest.er1 >conftest.err
12828 rm -f conftest.er1
12829 cat conftest.err >&5
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); } && {
12832 test -z "$ac_c_werror_flag" ||
12833 test ! -s conftest.err
12834 } && test -s conftest$ac_exeext &&
12835 $as_test_x conftest$ac_exeext; then
12836 eval "$as_ac_var=yes"
12837else
12838 echo "$as_me: failed program was:" >&5
12839sed 's/^/| /' conftest.$ac_ext >&5
12840
12841 eval "$as_ac_var=no"
12842fi
12843
12844rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12845 conftest$ac_exeext conftest.$ac_ext
12846fi
12847ac_res=`eval echo '${'$as_ac_var'}'`
12848 { echo "$as_me:$LINENO: result: $ac_res" >&5
12849echo "${ECHO_T}$ac_res" >&6; }
12850if test `eval echo '${'$as_ac_var'}'` = yes; then
12851 cat >>confdefs.h <<_ACEOF
12852#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12853_ACEOF
12854
12855else
12856 { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5
12857echo "$as_me: error: BSM enabled and required function not found" >&2;}
12858 { (exit 1); exit 1; }; }
12859fi
12860done
12861
12862 # These are optional
12863
12864
12865for ac_func in getaudit_addr aug_get_machine
12866do
12867as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12868{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12869echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12870if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12871 echo $ECHO_N "(cached) $ECHO_C" >&6
12872else
12873 cat >conftest.$ac_ext <<_ACEOF
12874/* confdefs.h. */
12875_ACEOF
12876cat confdefs.h >>conftest.$ac_ext
12877cat >>conftest.$ac_ext <<_ACEOF
12878/* end confdefs.h. */
12879/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12881#define $ac_func innocuous_$ac_func
12882
12883/* System header to define __stub macros and hopefully few prototypes,
12884 which can conflict with char $ac_func (); below.
12885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12886 <limits.h> exists even on freestanding compilers. */
12887
12888#ifdef __STDC__
12889# include <limits.h>
12890#else
12891# include <assert.h>
12892#endif
12893
12894#undef $ac_func
12895
12896/* Override any GCC internal prototype to avoid an error.
12897 Use char because int might match the return type of a GCC
12898 builtin and then its argument prototype would still apply. */
12899#ifdef __cplusplus
12900extern "C"
12901#endif
12902char $ac_func ();
12903/* The GNU C library defines this for functions which it implements
12904 to always fail with ENOSYS. Some functions are actually named
12905 something starting with __ and the normal name is an alias. */
12906#if defined __stub_$ac_func || defined __stub___$ac_func
12907choke me
12908#endif
12909
12910int
12911main ()
12912{
12913return $ac_func ();
12914 ;
12915 return 0;
12916}
12917_ACEOF
12918rm -f conftest.$ac_objext conftest$ac_exeext
12919if { (ac_try="$ac_link"
12920case "(($ac_try" in
12921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12922 *) ac_try_echo=$ac_try;;
12923esac
12924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12925 (eval "$ac_link") 2>conftest.er1
12926 ac_status=$?
12927 grep -v '^ *+' conftest.er1 >conftest.err
12928 rm -f conftest.er1
12929 cat conftest.err >&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); } && {
12932 test -z "$ac_c_werror_flag" ||
12933 test ! -s conftest.err
12934 } && test -s conftest$ac_exeext &&
12935 $as_test_x conftest$ac_exeext; then
12936 eval "$as_ac_var=yes"
12937else
12938 echo "$as_me: failed program was:" >&5
12939sed 's/^/| /' conftest.$ac_ext >&5
12940
12941 eval "$as_ac_var=no"
12942fi
12943
12944rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12945 conftest$ac_exeext conftest.$ac_ext
12946fi
12947ac_res=`eval echo '${'$as_ac_var'}'`
12948 { echo "$as_me:$LINENO: result: $ac_res" >&5
12949echo "${ECHO_T}$ac_res" >&6; }
12950if test `eval echo '${'$as_ac_var'}'` = yes; then
12951 cat >>confdefs.h <<_ACEOF
12952#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12953_ACEOF
12954
12955fi
12956done
12957
12958
12959cat >>confdefs.h <<\_ACEOF
12960#define USE_BSM_AUDIT 1
12961_ACEOF
12962
12963 ;;
12964 debug)
12965 AUDIT_MODULE=debug
12966 { echo "$as_me:$LINENO: result: debug" >&5
12967echo "${ECHO_T}debug" >&6; }
12968
12969cat >>confdefs.h <<\_ACEOF
12970#define SSH_AUDIT_EVENTS 1
12971_ACEOF
12972
12973 ;;
12974 no)
12975 { echo "$as_me:$LINENO: result: no" >&5
12976echo "${ECHO_T}no" >&6; }
12977 ;;
12978 *)
12979 { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5
12980echo "$as_me: error: Unknown audit module $withval" >&2;}
12981 { (exit 1); exit 1; }; }
12982 ;;
12983 esac
12984
12985fi
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081for ac_func in \
13082 arc4random \
13083 arc4random_buf \
13084 arc4random_uniform \
13085 asprintf \
13086 b64_ntop \
13087 __b64_ntop \
13088 b64_pton \
13089 __b64_pton \
13090 bcopy \
13091 bindresvport_sa \
13092 clock \
13093 closefrom \
13094 dirfd \
13095 fchmod \
13096 fchown \
13097 freeaddrinfo \
13098 fstatvfs \
13099 futimes \
13100 getaddrinfo \
13101 getcwd \
13102 getgrouplist \
13103 getnameinfo \
13104 getopt \
13105 getpeereid \
13106 getpeerucred \
13107 _getpty \
13108 getrlimit \
13109 getttyent \
13110 glob \
13111 group_from_gid \
13112 inet_aton \
13113 inet_ntoa \
13114 inet_ntop \
13115 innetgr \
13116 login_getcapbool \
13117 md5_crypt \
13118 memmove \
13119 mkdtemp \
13120 mmap \
13121 ngetaddrinfo \
13122 nsleep \
13123 ogetaddrinfo \
13124 openlog_r \
13125 openpty \
13126 poll \
13127 prctl \
13128 pstat \
13129 readpassphrase \
13130 realpath \
13131 recvmsg \
13132 rresvport_af \
13133 sendmsg \
13134 setdtablesize \
13135 setegid \
13136 setenv \
13137 seteuid \
13138 setgroupent \
13139 setgroups \
13140 setlogin \
13141 setpassent\
13142 setpcred \
13143 setproctitle \
13144 setregid \
13145 setreuid \
13146 setrlimit \
13147 setsid \
13148 setvbuf \
13149 sigaction \
13150 sigvec \
13151 snprintf \
13152 socketpair \
13153 statfs \
13154 statvfs \
13155 strdup \
13156 strerror \
13157 strlcat \
13158 strlcpy \
13159 strmode \
13160 strnvis \
13161 strtonum \
13162 strtoll \
13163 strtoul \
13164 swap32 \
13165 sysconf \
13166 tcgetpgrp \
13167 truncate \
13168 unsetenv \
13169 updwtmpx \
13170 user_from_uid \
13171 vasprintf \
13172 vhangup \
13173 vsnprintf \
13174 waitpid \
13175
13176do
13177as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13178{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13179echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13180if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13181 echo $ECHO_N "(cached) $ECHO_C" >&6
13182else
13183 cat >conftest.$ac_ext <<_ACEOF
13184/* confdefs.h. */
13185_ACEOF
13186cat confdefs.h >>conftest.$ac_ext
13187cat >>conftest.$ac_ext <<_ACEOF
13188/* end confdefs.h. */
13189/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13191#define $ac_func innocuous_$ac_func
13192
13193/* System header to define __stub macros and hopefully few prototypes,
13194 which can conflict with char $ac_func (); below.
13195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13196 <limits.h> exists even on freestanding compilers. */
13197
13198#ifdef __STDC__
13199# include <limits.h>
13200#else
13201# include <assert.h>
13202#endif
13203
13204#undef $ac_func
13205
13206/* Override any GCC internal prototype to avoid an error.
13207 Use char because int might match the return type of a GCC
13208 builtin and then its argument prototype would still apply. */
13209#ifdef __cplusplus
13210extern "C"
13211#endif
13212char $ac_func ();
13213/* The GNU C library defines this for functions which it implements
13214 to always fail with ENOSYS. Some functions are actually named
13215 something starting with __ and the normal name is an alias. */
13216#if defined __stub_$ac_func || defined __stub___$ac_func
13217choke me
13218#endif
13219
13220int
13221main ()
13222{
13223return $ac_func ();
13224 ;
13225 return 0;
13226}
13227_ACEOF
13228rm -f conftest.$ac_objext conftest$ac_exeext
13229if { (ac_try="$ac_link"
13230case "(($ac_try" in
13231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13232 *) ac_try_echo=$ac_try;;
13233esac
13234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13235 (eval "$ac_link") 2>conftest.er1
13236 ac_status=$?
13237 grep -v '^ *+' conftest.er1 >conftest.err
13238 rm -f conftest.er1
13239 cat conftest.err >&5
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); } && {
13242 test -z "$ac_c_werror_flag" ||
13243 test ! -s conftest.err
13244 } && test -s conftest$ac_exeext &&
13245 $as_test_x conftest$ac_exeext; then
13246 eval "$as_ac_var=yes"
13247else
13248 echo "$as_me: failed program was:" >&5
13249sed 's/^/| /' conftest.$ac_ext >&5
13250
13251 eval "$as_ac_var=no"
13252fi
13253
13254rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13255 conftest$ac_exeext conftest.$ac_ext
13256fi
13257ac_res=`eval echo '${'$as_ac_var'}'`
13258 { echo "$as_me:$LINENO: result: $ac_res" >&5
13259echo "${ECHO_T}$ac_res" >&6; }
13260if test `eval echo '${'$as_ac_var'}'` = yes; then
13261 cat >>confdefs.h <<_ACEOF
13262#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13263_ACEOF
13264
13265fi
13266done
13267
13268
13269# PKCS#11 support requires dlopen() and co
13270{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13271echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13272if test "${ac_cv_search_dlopen+set}" = set; then
13273 echo $ECHO_N "(cached) $ECHO_C" >&6
13274else
13275 ac_func_search_save_LIBS=$LIBS
13276cat >conftest.$ac_ext <<_ACEOF
13277/* confdefs.h. */
13278_ACEOF
13279cat confdefs.h >>conftest.$ac_ext
13280cat >>conftest.$ac_ext <<_ACEOF
13281/* end confdefs.h. */
13282
13283/* Override any GCC internal prototype to avoid an error.
13284 Use char because int might match the return type of a GCC
13285 builtin and then its argument prototype would still apply. */
13286#ifdef __cplusplus
13287extern "C"
13288#endif
13289char dlopen ();
13290int
13291main ()
13292{
13293return dlopen ();
13294 ;
13295 return 0;
13296}
13297_ACEOF
13298for ac_lib in '' dl; do
13299 if test -z "$ac_lib"; then
13300 ac_res="none required"
13301 else
13302 ac_res=-l$ac_lib
13303 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13304 fi
13305 rm -f conftest.$ac_objext conftest$ac_exeext
13306if { (ac_try="$ac_link"
13307case "(($ac_try" in
13308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13309 *) ac_try_echo=$ac_try;;
13310esac
13311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13312 (eval "$ac_link") 2>conftest.er1
13313 ac_status=$?
13314 grep -v '^ *+' conftest.er1 >conftest.err
13315 rm -f conftest.er1
13316 cat conftest.err >&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); } && {
13319 test -z "$ac_c_werror_flag" ||
13320 test ! -s conftest.err
13321 } && test -s conftest$ac_exeext &&
13322 $as_test_x conftest$ac_exeext; then
13323 ac_cv_search_dlopen=$ac_res
13324else
13325 echo "$as_me: failed program was:" >&5
13326sed 's/^/| /' conftest.$ac_ext >&5
13327
13328
13329fi
13330
13331rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13332 conftest$ac_exeext
13333 if test "${ac_cv_search_dlopen+set}" = set; then
13334 break
13335fi
13336done
13337if test "${ac_cv_search_dlopen+set}" = set; then
13338 :
13339else
13340 ac_cv_search_dlopen=no
13341fi
13342rm conftest.$ac_ext
13343LIBS=$ac_func_search_save_LIBS
13344fi
13345{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13346echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13347ac_res=$ac_cv_search_dlopen
13348if test "$ac_res" != no; then
13349 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13350
13351cat >>confdefs.h <<\_ACEOF
13352#define ENABLE_PKCS11
13353_ACEOF
13354
13355
13356fi
13357
13358
13359# IRIX has a const char return value for gai_strerror()
13360
13361for ac_func in gai_strerror
13362do
13363as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13364{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13365echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13366if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13367 echo $ECHO_N "(cached) $ECHO_C" >&6
13368else
13369 cat >conftest.$ac_ext <<_ACEOF
13370/* confdefs.h. */
13371_ACEOF
13372cat confdefs.h >>conftest.$ac_ext
13373cat >>conftest.$ac_ext <<_ACEOF
13374/* end confdefs.h. */
13375/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13377#define $ac_func innocuous_$ac_func
13378
13379/* System header to define __stub macros and hopefully few prototypes,
13380 which can conflict with char $ac_func (); below.
13381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13382 <limits.h> exists even on freestanding compilers. */
13383
13384#ifdef __STDC__
13385# include <limits.h>
13386#else
13387# include <assert.h>
13388#endif
13389
13390#undef $ac_func
13391
13392/* Override any GCC internal prototype to avoid an error.
13393 Use char because int might match the return type of a GCC
13394 builtin and then its argument prototype would still apply. */
13395#ifdef __cplusplus
13396extern "C"
13397#endif
13398char $ac_func ();
13399/* The GNU C library defines this for functions which it implements
13400 to always fail with ENOSYS. Some functions are actually named
13401 something starting with __ and the normal name is an alias. */
13402#if defined __stub_$ac_func || defined __stub___$ac_func
13403choke me
13404#endif
13405
13406int
13407main ()
13408{
13409return $ac_func ();
13410 ;
13411 return 0;
13412}
13413_ACEOF
13414rm -f conftest.$ac_objext conftest$ac_exeext
13415if { (ac_try="$ac_link"
13416case "(($ac_try" in
13417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418 *) ac_try_echo=$ac_try;;
13419esac
13420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13421 (eval "$ac_link") 2>conftest.er1
13422 ac_status=$?
13423 grep -v '^ *+' conftest.er1 >conftest.err
13424 rm -f conftest.er1
13425 cat conftest.err >&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); } && {
13428 test -z "$ac_c_werror_flag" ||
13429 test ! -s conftest.err
13430 } && test -s conftest$ac_exeext &&
13431 $as_test_x conftest$ac_exeext; then
13432 eval "$as_ac_var=yes"
13433else
13434 echo "$as_me: failed program was:" >&5
13435sed 's/^/| /' conftest.$ac_ext >&5
13436
13437 eval "$as_ac_var=no"
13438fi
13439
13440rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13441 conftest$ac_exeext conftest.$ac_ext
13442fi
13443ac_res=`eval echo '${'$as_ac_var'}'`
13444 { echo "$as_me:$LINENO: result: $ac_res" >&5
13445echo "${ECHO_T}$ac_res" >&6; }
13446if test `eval echo '${'$as_ac_var'}'` = yes; then
13447 cat >>confdefs.h <<_ACEOF
13448#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13449_ACEOF
13450
13451 cat >>confdefs.h <<\_ACEOF
13452#define HAVE_GAI_STRERROR 1
13453_ACEOF
13454
13455 cat >conftest.$ac_ext <<_ACEOF
13456/* confdefs.h. */
13457_ACEOF
13458cat confdefs.h >>conftest.$ac_ext
13459cat >>conftest.$ac_ext <<_ACEOF
13460/* end confdefs.h. */
13461
13462#include <sys/types.h>
13463#include <sys/socket.h>
13464#include <netdb.h>
13465
13466const char *gai_strerror(int);
13467int
13468main ()
13469{
13470
13471char *str;
13472
13473str = gai_strerror(0);
13474 ;
13475 return 0;
13476}
13477_ACEOF
13478rm -f conftest.$ac_objext
13479if { (ac_try="$ac_compile"
13480case "(($ac_try" in
13481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13482 *) ac_try_echo=$ac_try;;
13483esac
13484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13485 (eval "$ac_compile") 2>conftest.er1
13486 ac_status=$?
13487 grep -v '^ *+' conftest.er1 >conftest.err
13488 rm -f conftest.er1
13489 cat conftest.err >&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } && {
13492 test -z "$ac_c_werror_flag" ||
13493 test ! -s conftest.err
13494 } && test -s conftest.$ac_objext; then
13495
13496
13497cat >>confdefs.h <<\_ACEOF
13498#define HAVE_CONST_GAI_STRERROR_PROTO 1
13499_ACEOF
13500
13501else
13502 echo "$as_me: failed program was:" >&5
13503sed 's/^/| /' conftest.$ac_ext >&5
13504
13505
13506fi
13507
13508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13509fi
13510done
13511
13512
13513{ echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
13514echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
13515if test "${ac_cv_search_nanosleep+set}" = set; then
13516 echo $ECHO_N "(cached) $ECHO_C" >&6
13517else
13518 ac_func_search_save_LIBS=$LIBS
13519cat >conftest.$ac_ext <<_ACEOF
13520/* confdefs.h. */
13521_ACEOF
13522cat confdefs.h >>conftest.$ac_ext
13523cat >>conftest.$ac_ext <<_ACEOF
13524/* end confdefs.h. */
13525
13526/* Override any GCC internal prototype to avoid an error.
13527 Use char because int might match the return type of a GCC
13528 builtin and then its argument prototype would still apply. */
13529#ifdef __cplusplus
13530extern "C"
13531#endif
13532char nanosleep ();
13533int
13534main ()
13535{
13536return nanosleep ();
13537 ;
13538 return 0;
13539}
13540_ACEOF
13541for ac_lib in '' rt posix4; do
13542 if test -z "$ac_lib"; then
13543 ac_res="none required"
13544 else
13545 ac_res=-l$ac_lib
13546 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13547 fi
13548 rm -f conftest.$ac_objext conftest$ac_exeext
13549if { (ac_try="$ac_link"
13550case "(($ac_try" in
13551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13552 *) ac_try_echo=$ac_try;;
13553esac
13554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13555 (eval "$ac_link") 2>conftest.er1
13556 ac_status=$?
13557 grep -v '^ *+' conftest.er1 >conftest.err
13558 rm -f conftest.er1
13559 cat conftest.err >&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); } && {
13562 test -z "$ac_c_werror_flag" ||
13563 test ! -s conftest.err
13564 } && test -s conftest$ac_exeext &&
13565 $as_test_x conftest$ac_exeext; then
13566 ac_cv_search_nanosleep=$ac_res
13567else
13568 echo "$as_me: failed program was:" >&5
13569sed 's/^/| /' conftest.$ac_ext >&5
13570
13571
13572fi
13573
13574rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13575 conftest$ac_exeext
13576 if test "${ac_cv_search_nanosleep+set}" = set; then
13577 break
13578fi
13579done
13580if test "${ac_cv_search_nanosleep+set}" = set; then
13581 :
13582else
13583 ac_cv_search_nanosleep=no
13584fi
13585rm conftest.$ac_ext
13586LIBS=$ac_func_search_save_LIBS
13587fi
13588{ echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
13589echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
13590ac_res=$ac_cv_search_nanosleep
13591if test "$ac_res" != no; then
13592 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13593
13594cat >>confdefs.h <<\_ACEOF
13595#define HAVE_NANOSLEEP 1
13596_ACEOF
13597
13598fi
13599
13600
13601{ echo "$as_me:$LINENO: checking whether getrusage is declared" >&5
13602echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6; }
13603if test "${ac_cv_have_decl_getrusage+set}" = set; then
13604 echo $ECHO_N "(cached) $ECHO_C" >&6
13605else
13606 cat >conftest.$ac_ext <<_ACEOF
13607/* confdefs.h. */
13608_ACEOF
13609cat confdefs.h >>conftest.$ac_ext
13610cat >>conftest.$ac_ext <<_ACEOF
13611/* end confdefs.h. */
13612$ac_includes_default
13613int
13614main ()
13615{
13616#ifndef getrusage
13617 (void) getrusage;
13618#endif
13619
13620 ;
13621 return 0;
13622}
13623_ACEOF
13624rm -f conftest.$ac_objext
13625if { (ac_try="$ac_compile"
13626case "(($ac_try" in
13627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13628 *) ac_try_echo=$ac_try;;
13629esac
13630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13631 (eval "$ac_compile") 2>conftest.er1
13632 ac_status=$?
13633 grep -v '^ *+' conftest.er1 >conftest.err
13634 rm -f conftest.er1
13635 cat conftest.err >&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); } && {
13638 test -z "$ac_c_werror_flag" ||
13639 test ! -s conftest.err
13640 } && test -s conftest.$ac_objext; then
13641 ac_cv_have_decl_getrusage=yes
13642else
13643 echo "$as_me: failed program was:" >&5
13644sed 's/^/| /' conftest.$ac_ext >&5
13645
13646 ac_cv_have_decl_getrusage=no
13647fi
13648
13649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13650fi
13651{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5
13652echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6; }
13653if test $ac_cv_have_decl_getrusage = yes; then
13654
13655for ac_func in getrusage
13656do
13657as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13658{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13659echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13660if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13661 echo $ECHO_N "(cached) $ECHO_C" >&6
13662else
13663 cat >conftest.$ac_ext <<_ACEOF
13664/* confdefs.h. */
13665_ACEOF
13666cat confdefs.h >>conftest.$ac_ext
13667cat >>conftest.$ac_ext <<_ACEOF
13668/* end confdefs.h. */
13669/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13671#define $ac_func innocuous_$ac_func
13672
13673/* System header to define __stub macros and hopefully few prototypes,
13674 which can conflict with char $ac_func (); below.
13675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13676 <limits.h> exists even on freestanding compilers. */
13677
13678#ifdef __STDC__
13679# include <limits.h>
13680#else
13681# include <assert.h>
13682#endif
13683
13684#undef $ac_func
13685
13686/* Override any GCC internal prototype to avoid an error.
13687 Use char because int might match the return type of a GCC
13688 builtin and then its argument prototype would still apply. */
13689#ifdef __cplusplus
13690extern "C"
13691#endif
13692char $ac_func ();
13693/* The GNU C library defines this for functions which it implements
13694 to always fail with ENOSYS. Some functions are actually named
13695 something starting with __ and the normal name is an alias. */
13696#if defined __stub_$ac_func || defined __stub___$ac_func
13697choke me
13698#endif
13699
13700int
13701main ()
13702{
13703return $ac_func ();
13704 ;
13705 return 0;
13706}
13707_ACEOF
13708rm -f conftest.$ac_objext conftest$ac_exeext
13709if { (ac_try="$ac_link"
13710case "(($ac_try" in
13711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712 *) ac_try_echo=$ac_try;;
13713esac
13714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715 (eval "$ac_link") 2>conftest.er1
13716 ac_status=$?
13717 grep -v '^ *+' conftest.er1 >conftest.err
13718 rm -f conftest.er1
13719 cat conftest.err >&5
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); } && {
13722 test -z "$ac_c_werror_flag" ||
13723 test ! -s conftest.err
13724 } && test -s conftest$ac_exeext &&
13725 $as_test_x conftest$ac_exeext; then
13726 eval "$as_ac_var=yes"
13727else
13728 echo "$as_me: failed program was:" >&5
13729sed 's/^/| /' conftest.$ac_ext >&5
13730
13731 eval "$as_ac_var=no"
13732fi
13733
13734rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13735 conftest$ac_exeext conftest.$ac_ext
13736fi
13737ac_res=`eval echo '${'$as_ac_var'}'`
13738 { echo "$as_me:$LINENO: result: $ac_res" >&5
13739echo "${ECHO_T}$ac_res" >&6; }
13740if test `eval echo '${'$as_ac_var'}'` = yes; then
13741 cat >>confdefs.h <<_ACEOF
13742#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13743_ACEOF
13744
13745fi
13746done
13747
13748fi
13749
13750{ echo "$as_me:$LINENO: checking whether strsep is declared" >&5
13751echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6; }
13752if test "${ac_cv_have_decl_strsep+set}" = set; then
13753 echo $ECHO_N "(cached) $ECHO_C" >&6
13754else
13755 cat >conftest.$ac_ext <<_ACEOF
13756/* confdefs.h. */
13757_ACEOF
13758cat confdefs.h >>conftest.$ac_ext
13759cat >>conftest.$ac_ext <<_ACEOF
13760/* end confdefs.h. */
13761
13762#ifdef HAVE_STRING_H
13763# include <string.h>
13764#endif
13765
13766
13767int
13768main ()
13769{
13770#ifndef strsep
13771 (void) strsep;
13772#endif
13773
13774 ;
13775 return 0;
13776}
13777_ACEOF
13778rm -f conftest.$ac_objext
13779if { (ac_try="$ac_compile"
13780case "(($ac_try" in
13781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13782 *) ac_try_echo=$ac_try;;
13783esac
13784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13785 (eval "$ac_compile") 2>conftest.er1
13786 ac_status=$?
13787 grep -v '^ *+' conftest.er1 >conftest.err
13788 rm -f conftest.er1
13789 cat conftest.err >&5
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); } && {
13792 test -z "$ac_c_werror_flag" ||
13793 test ! -s conftest.err
13794 } && test -s conftest.$ac_objext; then
13795 ac_cv_have_decl_strsep=yes
13796else
13797 echo "$as_me: failed program was:" >&5
13798sed 's/^/| /' conftest.$ac_ext >&5
13799
13800 ac_cv_have_decl_strsep=no
13801fi
13802
13803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13804fi
13805{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5
13806echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6; }
13807if test $ac_cv_have_decl_strsep = yes; then
13808
13809for ac_func in strsep
13810do
13811as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13812{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13813echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13814if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13815 echo $ECHO_N "(cached) $ECHO_C" >&6
13816else
13817 cat >conftest.$ac_ext <<_ACEOF
13818/* confdefs.h. */
13819_ACEOF
13820cat confdefs.h >>conftest.$ac_ext
13821cat >>conftest.$ac_ext <<_ACEOF
13822/* end confdefs.h. */
13823/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13825#define $ac_func innocuous_$ac_func
13826
13827/* System header to define __stub macros and hopefully few prototypes,
13828 which can conflict with char $ac_func (); below.
13829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13830 <limits.h> exists even on freestanding compilers. */
13831
13832#ifdef __STDC__
13833# include <limits.h>
13834#else
13835# include <assert.h>
13836#endif
13837
13838#undef $ac_func
13839
13840/* Override any GCC internal prototype to avoid an error.
13841 Use char because int might match the return type of a GCC
13842 builtin and then its argument prototype would still apply. */
13843#ifdef __cplusplus
13844extern "C"
13845#endif
13846char $ac_func ();
13847/* The GNU C library defines this for functions which it implements
13848 to always fail with ENOSYS. Some functions are actually named
13849 something starting with __ and the normal name is an alias. */
13850#if defined __stub_$ac_func || defined __stub___$ac_func
13851choke me
13852#endif
13853
13854int
13855main ()
13856{
13857return $ac_func ();
13858 ;
13859 return 0;
13860}
13861_ACEOF
13862rm -f conftest.$ac_objext conftest$ac_exeext
13863if { (ac_try="$ac_link"
13864case "(($ac_try" in
13865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13866 *) ac_try_echo=$ac_try;;
13867esac
13868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13869 (eval "$ac_link") 2>conftest.er1
13870 ac_status=$?
13871 grep -v '^ *+' conftest.er1 >conftest.err
13872 rm -f conftest.er1
13873 cat conftest.err >&5
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); } && {
13876 test -z "$ac_c_werror_flag" ||
13877 test ! -s conftest.err
13878 } && test -s conftest$ac_exeext &&
13879 $as_test_x conftest$ac_exeext; then
13880 eval "$as_ac_var=yes"
13881else
13882 echo "$as_me: failed program was:" >&5
13883sed 's/^/| /' conftest.$ac_ext >&5
13884
13885 eval "$as_ac_var=no"
13886fi
13887
13888rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13889 conftest$ac_exeext conftest.$ac_ext
13890fi
13891ac_res=`eval echo '${'$as_ac_var'}'`
13892 { echo "$as_me:$LINENO: result: $ac_res" >&5
13893echo "${ECHO_T}$ac_res" >&6; }
13894if test `eval echo '${'$as_ac_var'}'` = yes; then
13895 cat >>confdefs.h <<_ACEOF
13896#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13897_ACEOF
13898
13899fi
13900done
13901
13902fi
13903
13904
13905{ echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5
13906echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6; }
13907if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then
13908 echo $ECHO_N "(cached) $ECHO_C" >&6
13909else
13910 cat >conftest.$ac_ext <<_ACEOF
13911/* confdefs.h. */
13912_ACEOF
13913cat confdefs.h >>conftest.$ac_ext
13914cat >>conftest.$ac_ext <<_ACEOF
13915/* end confdefs.h. */
13916#include <termios.h>
13917
13918
13919int
13920main ()
13921{
13922#ifndef tcsendbreak
13923 (void) tcsendbreak;
13924#endif
13925
13926 ;
13927 return 0;
13928}
13929_ACEOF
13930rm -f conftest.$ac_objext
13931if { (ac_try="$ac_compile"
13932case "(($ac_try" in
13933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13934 *) ac_try_echo=$ac_try;;
13935esac
13936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13937 (eval "$ac_compile") 2>conftest.er1
13938 ac_status=$?
13939 grep -v '^ *+' conftest.er1 >conftest.err
13940 rm -f conftest.er1
13941 cat conftest.err >&5
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); } && {
13944 test -z "$ac_c_werror_flag" ||
13945 test ! -s conftest.err
13946 } && test -s conftest.$ac_objext; then
13947 ac_cv_have_decl_tcsendbreak=yes
13948else
13949 echo "$as_me: failed program was:" >&5
13950sed 's/^/| /' conftest.$ac_ext >&5
13951
13952 ac_cv_have_decl_tcsendbreak=no
13953fi
13954
13955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13956fi
13957{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5
13958echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6; }
13959if test $ac_cv_have_decl_tcsendbreak = yes; then
13960 cat >>confdefs.h <<\_ACEOF
13961#define HAVE_TCSENDBREAK 1
13962_ACEOF
13963
13964else
13965
13966for ac_func in tcsendbreak
13967do
13968as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13969{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13970echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13971if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13972 echo $ECHO_N "(cached) $ECHO_C" >&6
13973else
13974 cat >conftest.$ac_ext <<_ACEOF
13975/* confdefs.h. */
13976_ACEOF
13977cat confdefs.h >>conftest.$ac_ext
13978cat >>conftest.$ac_ext <<_ACEOF
13979/* end confdefs.h. */
13980/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13982#define $ac_func innocuous_$ac_func
13983
13984/* System header to define __stub macros and hopefully few prototypes,
13985 which can conflict with char $ac_func (); below.
13986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13987 <limits.h> exists even on freestanding compilers. */
13988
13989#ifdef __STDC__
13990# include <limits.h>
13991#else
13992# include <assert.h>
13993#endif
13994
13995#undef $ac_func
13996
13997/* Override any GCC internal prototype to avoid an error.
13998 Use char because int might match the return type of a GCC
13999 builtin and then its argument prototype would still apply. */
14000#ifdef __cplusplus
14001extern "C"
14002#endif
14003char $ac_func ();
14004/* The GNU C library defines this for functions which it implements
14005 to always fail with ENOSYS. Some functions are actually named
14006 something starting with __ and the normal name is an alias. */
14007#if defined __stub_$ac_func || defined __stub___$ac_func
14008choke me
14009#endif
14010
14011int
14012main ()
14013{
14014return $ac_func ();
14015 ;
14016 return 0;
14017}
14018_ACEOF
14019rm -f conftest.$ac_objext conftest$ac_exeext
14020if { (ac_try="$ac_link"
14021case "(($ac_try" in
14022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14023 *) ac_try_echo=$ac_try;;
14024esac
14025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14026 (eval "$ac_link") 2>conftest.er1
14027 ac_status=$?
14028 grep -v '^ *+' conftest.er1 >conftest.err
14029 rm -f conftest.er1
14030 cat conftest.err >&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); } && {
14033 test -z "$ac_c_werror_flag" ||
14034 test ! -s conftest.err
14035 } && test -s conftest$ac_exeext &&
14036 $as_test_x conftest$ac_exeext; then
14037 eval "$as_ac_var=yes"
14038else
14039 echo "$as_me: failed program was:" >&5
14040sed 's/^/| /' conftest.$ac_ext >&5
14041
14042 eval "$as_ac_var=no"
14043fi
14044
14045rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14046 conftest$ac_exeext conftest.$ac_ext
14047fi
14048ac_res=`eval echo '${'$as_ac_var'}'`
14049 { echo "$as_me:$LINENO: result: $ac_res" >&5
14050echo "${ECHO_T}$ac_res" >&6; }
14051if test `eval echo '${'$as_ac_var'}'` = yes; then
14052 cat >>confdefs.h <<_ACEOF
14053#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14054_ACEOF
14055
14056fi
14057done
14058
14059fi
14060
14061
14062{ echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
14063echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; }
14064if test "${ac_cv_have_decl_h_errno+set}" = set; then
14065 echo $ECHO_N "(cached) $ECHO_C" >&6
14066else
14067 cat >conftest.$ac_ext <<_ACEOF
14068/* confdefs.h. */
14069_ACEOF
14070cat confdefs.h >>conftest.$ac_ext
14071cat >>conftest.$ac_ext <<_ACEOF
14072/* end confdefs.h. */
14073#include <netdb.h>
14074
14075int
14076main ()
14077{
14078#ifndef h_errno
14079 (void) h_errno;
14080#endif
14081
14082 ;
14083 return 0;
14084}
14085_ACEOF
14086rm -f conftest.$ac_objext
14087if { (ac_try="$ac_compile"
14088case "(($ac_try" in
14089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14090 *) ac_try_echo=$ac_try;;
14091esac
14092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14093 (eval "$ac_compile") 2>conftest.er1
14094 ac_status=$?
14095 grep -v '^ *+' conftest.er1 >conftest.err
14096 rm -f conftest.er1
14097 cat conftest.err >&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); } && {
14100 test -z "$ac_c_werror_flag" ||
14101 test ! -s conftest.err
14102 } && test -s conftest.$ac_objext; then
14103 ac_cv_have_decl_h_errno=yes
14104else
14105 echo "$as_me: failed program was:" >&5
14106sed 's/^/| /' conftest.$ac_ext >&5
14107
14108 ac_cv_have_decl_h_errno=no
14109fi
14110
14111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14112fi
14113{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
14114echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; }
14115if test $ac_cv_have_decl_h_errno = yes; then
14116
14117cat >>confdefs.h <<_ACEOF
14118#define HAVE_DECL_H_ERRNO 1
14119_ACEOF
14120
14121
14122else
14123 cat >>confdefs.h <<_ACEOF
14124#define HAVE_DECL_H_ERRNO 0
14125_ACEOF
14126
14127
14128fi
14129
14130
14131
14132{ echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5
14133echo $ECHO_N "checking whether SHUT_RD is declared... $ECHO_C" >&6; }
14134if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then
14135 echo $ECHO_N "(cached) $ECHO_C" >&6
14136else
14137 cat >conftest.$ac_ext <<_ACEOF
14138/* confdefs.h. */
14139_ACEOF
14140cat confdefs.h >>conftest.$ac_ext
14141cat >>conftest.$ac_ext <<_ACEOF
14142/* end confdefs.h. */
14143
14144#include <sys/types.h>
14145#include <sys/socket.h>
14146
14147
14148int
14149main ()
14150{
14151#ifndef SHUT_RD
14152 (void) SHUT_RD;
14153#endif
14154
14155 ;
14156 return 0;
14157}
14158_ACEOF
14159rm -f conftest.$ac_objext
14160if { (ac_try="$ac_compile"
14161case "(($ac_try" in
14162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14163 *) ac_try_echo=$ac_try;;
14164esac
14165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14166 (eval "$ac_compile") 2>conftest.er1
14167 ac_status=$?
14168 grep -v '^ *+' conftest.er1 >conftest.err
14169 rm -f conftest.er1
14170 cat conftest.err >&5
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); } && {
14173 test -z "$ac_c_werror_flag" ||
14174 test ! -s conftest.err
14175 } && test -s conftest.$ac_objext; then
14176 ac_cv_have_decl_SHUT_RD=yes
14177else
14178 echo "$as_me: failed program was:" >&5
14179sed 's/^/| /' conftest.$ac_ext >&5
14180
14181 ac_cv_have_decl_SHUT_RD=no
14182fi
14183
14184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14185fi
14186{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5
14187echo "${ECHO_T}$ac_cv_have_decl_SHUT_RD" >&6; }
14188if test $ac_cv_have_decl_SHUT_RD = yes; then
14189
14190cat >>confdefs.h <<_ACEOF
14191#define HAVE_DECL_SHUT_RD 1
14192_ACEOF
14193
14194
14195else
14196 cat >>confdefs.h <<_ACEOF
14197#define HAVE_DECL_SHUT_RD 0
14198_ACEOF
14199
14200
14201fi
14202
14203
14204
14205{ echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5
14206echo $ECHO_N "checking whether O_NONBLOCK is declared... $ECHO_C" >&6; }
14207if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then
14208 echo $ECHO_N "(cached) $ECHO_C" >&6
14209else
14210 cat >conftest.$ac_ext <<_ACEOF
14211/* confdefs.h. */
14212_ACEOF
14213cat confdefs.h >>conftest.$ac_ext
14214cat >>conftest.$ac_ext <<_ACEOF
14215/* end confdefs.h. */
14216
14217#include <sys/types.h>
14218#ifdef HAVE_SYS_STAT_H
14219# include <sys/stat.h>
14220#endif
14221#ifdef HAVE_FCNTL_H
14222# include <fcntl.h>
14223#endif
14224
14225
14226int
14227main ()
14228{
14229#ifndef O_NONBLOCK
14230 (void) O_NONBLOCK;
14231#endif
14232
14233 ;
14234 return 0;
14235}
14236_ACEOF
14237rm -f conftest.$ac_objext
14238if { (ac_try="$ac_compile"
14239case "(($ac_try" in
14240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241 *) ac_try_echo=$ac_try;;
14242esac
14243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14244 (eval "$ac_compile") 2>conftest.er1
14245 ac_status=$?
14246 grep -v '^ *+' conftest.er1 >conftest.err
14247 rm -f conftest.er1
14248 cat conftest.err >&5
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); } && {
14251 test -z "$ac_c_werror_flag" ||
14252 test ! -s conftest.err
14253 } && test -s conftest.$ac_objext; then
14254 ac_cv_have_decl_O_NONBLOCK=yes
14255else
14256 echo "$as_me: failed program was:" >&5
14257sed 's/^/| /' conftest.$ac_ext >&5
14258
14259 ac_cv_have_decl_O_NONBLOCK=no
14260fi
14261
14262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14263fi
14264{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5
14265echo "${ECHO_T}$ac_cv_have_decl_O_NONBLOCK" >&6; }
14266if test $ac_cv_have_decl_O_NONBLOCK = yes; then
14267
14268cat >>confdefs.h <<_ACEOF
14269#define HAVE_DECL_O_NONBLOCK 1
14270_ACEOF
14271
14272
14273else
14274 cat >>confdefs.h <<_ACEOF
14275#define HAVE_DECL_O_NONBLOCK 0
14276_ACEOF
14277
14278
14279fi
14280
14281
14282
14283{ echo "$as_me:$LINENO: checking whether writev is declared" >&5
14284echo $ECHO_N "checking whether writev is declared... $ECHO_C" >&6; }
14285if test "${ac_cv_have_decl_writev+set}" = set; then
14286 echo $ECHO_N "(cached) $ECHO_C" >&6
14287else
14288 cat >conftest.$ac_ext <<_ACEOF
14289/* confdefs.h. */
14290_ACEOF
14291cat confdefs.h >>conftest.$ac_ext
14292cat >>conftest.$ac_ext <<_ACEOF
14293/* end confdefs.h. */
14294
14295#include <sys/types.h>
14296#include <sys/uio.h>
14297#include <unistd.h>
14298
14299
14300int
14301main ()
14302{
14303#ifndef writev
14304 (void) writev;
14305#endif
14306
14307 ;
14308 return 0;
14309}
14310_ACEOF
14311rm -f conftest.$ac_objext
14312if { (ac_try="$ac_compile"
14313case "(($ac_try" in
14314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14315 *) ac_try_echo=$ac_try;;
14316esac
14317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14318 (eval "$ac_compile") 2>conftest.er1
14319 ac_status=$?
14320 grep -v '^ *+' conftest.er1 >conftest.err
14321 rm -f conftest.er1
14322 cat conftest.err >&5
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); } && {
14325 test -z "$ac_c_werror_flag" ||
14326 test ! -s conftest.err
14327 } && test -s conftest.$ac_objext; then
14328 ac_cv_have_decl_writev=yes
14329else
14330 echo "$as_me: failed program was:" >&5
14331sed 's/^/| /' conftest.$ac_ext >&5
14332
14333 ac_cv_have_decl_writev=no
14334fi
14335
14336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14337fi
14338{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5
14339echo "${ECHO_T}$ac_cv_have_decl_writev" >&6; }
14340if test $ac_cv_have_decl_writev = yes; then
14341
14342cat >>confdefs.h <<_ACEOF
14343#define HAVE_DECL_WRITEV 1
14344_ACEOF
14345
14346
14347else
14348 cat >>confdefs.h <<_ACEOF
14349#define HAVE_DECL_WRITEV 0
14350_ACEOF
14351
14352
14353fi
14354
14355
14356
14357{ echo "$as_me:$LINENO: checking whether MAXSYMLINKS is declared" >&5
14358echo $ECHO_N "checking whether MAXSYMLINKS is declared... $ECHO_C" >&6; }
14359if test "${ac_cv_have_decl_MAXSYMLINKS+set}" = set; then
14360 echo $ECHO_N "(cached) $ECHO_C" >&6
14361else
14362 cat >conftest.$ac_ext <<_ACEOF
14363/* confdefs.h. */
14364_ACEOF
14365cat confdefs.h >>conftest.$ac_ext
14366cat >>conftest.$ac_ext <<_ACEOF
14367/* end confdefs.h. */
14368
14369#include <sys/param.h>
14370
14371
14372int
14373main ()
14374{
14375#ifndef MAXSYMLINKS
14376 (void) MAXSYMLINKS;
14377#endif
14378
14379 ;
14380 return 0;
14381}
14382_ACEOF
14383rm -f conftest.$ac_objext
14384if { (ac_try="$ac_compile"
14385case "(($ac_try" in
14386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14387 *) ac_try_echo=$ac_try;;
14388esac
14389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14390 (eval "$ac_compile") 2>conftest.er1
14391 ac_status=$?
14392 grep -v '^ *+' conftest.er1 >conftest.err
14393 rm -f conftest.er1
14394 cat conftest.err >&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); } && {
14397 test -z "$ac_c_werror_flag" ||
14398 test ! -s conftest.err
14399 } && test -s conftest.$ac_objext; then
14400 ac_cv_have_decl_MAXSYMLINKS=yes
14401else
14402 echo "$as_me: failed program was:" >&5
14403sed 's/^/| /' conftest.$ac_ext >&5
14404
14405 ac_cv_have_decl_MAXSYMLINKS=no
14406fi
14407
14408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14409fi
14410{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_MAXSYMLINKS" >&5
14411echo "${ECHO_T}$ac_cv_have_decl_MAXSYMLINKS" >&6; }
14412if test $ac_cv_have_decl_MAXSYMLINKS = yes; then
14413
14414cat >>confdefs.h <<_ACEOF
14415#define HAVE_DECL_MAXSYMLINKS 1
14416_ACEOF
14417
14418
14419else
14420 cat >>confdefs.h <<_ACEOF
14421#define HAVE_DECL_MAXSYMLINKS 0
14422_ACEOF
14423
14424
14425fi
14426
14427
14428
14429{ echo "$as_me:$LINENO: checking whether offsetof is declared" >&5
14430echo $ECHO_N "checking whether offsetof is declared... $ECHO_C" >&6; }
14431if test "${ac_cv_have_decl_offsetof+set}" = set; then
14432 echo $ECHO_N "(cached) $ECHO_C" >&6
14433else
14434 cat >conftest.$ac_ext <<_ACEOF
14435/* confdefs.h. */
14436_ACEOF
14437cat confdefs.h >>conftest.$ac_ext
14438cat >>conftest.$ac_ext <<_ACEOF
14439/* end confdefs.h. */
14440
14441#include <stddef.h>
14442
14443
14444int
14445main ()
14446{
14447#ifndef offsetof
14448 (void) offsetof;
14449#endif
14450
14451 ;
14452 return 0;
14453}
14454_ACEOF
14455rm -f conftest.$ac_objext
14456if { (ac_try="$ac_compile"
14457case "(($ac_try" in
14458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14459 *) ac_try_echo=$ac_try;;
14460esac
14461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14462 (eval "$ac_compile") 2>conftest.er1
14463 ac_status=$?
14464 grep -v '^ *+' conftest.er1 >conftest.err
14465 rm -f conftest.er1
14466 cat conftest.err >&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); } && {
14469 test -z "$ac_c_werror_flag" ||
14470 test ! -s conftest.err
14471 } && test -s conftest.$ac_objext; then
14472 ac_cv_have_decl_offsetof=yes
14473else
14474 echo "$as_me: failed program was:" >&5
14475sed 's/^/| /' conftest.$ac_ext >&5
14476
14477 ac_cv_have_decl_offsetof=no
14478fi
14479
14480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14481fi
14482{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_offsetof" >&5
14483echo "${ECHO_T}$ac_cv_have_decl_offsetof" >&6; }
14484if test $ac_cv_have_decl_offsetof = yes; then
14485
14486cat >>confdefs.h <<_ACEOF
14487#define HAVE_DECL_OFFSETOF 1
14488_ACEOF
14489
14490
14491else
14492 cat >>confdefs.h <<_ACEOF
14493#define HAVE_DECL_OFFSETOF 0
14494_ACEOF
14495
14496
14497fi
14498
14499
14500
14501
14502for ac_func in setresuid
14503do
14504as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14505{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14506echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14507if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14508 echo $ECHO_N "(cached) $ECHO_C" >&6
14509else
14510 cat >conftest.$ac_ext <<_ACEOF
14511/* confdefs.h. */
14512_ACEOF
14513cat confdefs.h >>conftest.$ac_ext
14514cat >>conftest.$ac_ext <<_ACEOF
14515/* end confdefs.h. */
14516/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14518#define $ac_func innocuous_$ac_func
14519
14520/* System header to define __stub macros and hopefully few prototypes,
14521 which can conflict with char $ac_func (); below.
14522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14523 <limits.h> exists even on freestanding compilers. */
14524
14525#ifdef __STDC__
14526# include <limits.h>
14527#else
14528# include <assert.h>
14529#endif
14530
14531#undef $ac_func
14532
14533/* Override any GCC internal prototype to avoid an error.
14534 Use char because int might match the return type of a GCC
14535 builtin and then its argument prototype would still apply. */
14536#ifdef __cplusplus
14537extern "C"
14538#endif
14539char $ac_func ();
14540/* The GNU C library defines this for functions which it implements
14541 to always fail with ENOSYS. Some functions are actually named
14542 something starting with __ and the normal name is an alias. */
14543#if defined __stub_$ac_func || defined __stub___$ac_func
14544choke me
14545#endif
14546
14547int
14548main ()
14549{
14550return $ac_func ();
14551 ;
14552 return 0;
14553}
14554_ACEOF
14555rm -f conftest.$ac_objext conftest$ac_exeext
14556if { (ac_try="$ac_link"
14557case "(($ac_try" in
14558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559 *) ac_try_echo=$ac_try;;
14560esac
14561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562 (eval "$ac_link") 2>conftest.er1
14563 ac_status=$?
14564 grep -v '^ *+' conftest.er1 >conftest.err
14565 rm -f conftest.er1
14566 cat conftest.err >&5
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); } && {
14569 test -z "$ac_c_werror_flag" ||
14570 test ! -s conftest.err
14571 } && test -s conftest$ac_exeext &&
14572 $as_test_x conftest$ac_exeext; then
14573 eval "$as_ac_var=yes"
14574else
14575 echo "$as_me: failed program was:" >&5
14576sed 's/^/| /' conftest.$ac_ext >&5
14577
14578 eval "$as_ac_var=no"
14579fi
14580
14581rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14582 conftest$ac_exeext conftest.$ac_ext
14583fi
14584ac_res=`eval echo '${'$as_ac_var'}'`
14585 { echo "$as_me:$LINENO: result: $ac_res" >&5
14586echo "${ECHO_T}$ac_res" >&6; }
14587if test `eval echo '${'$as_ac_var'}'` = yes; then
14588 cat >>confdefs.h <<_ACEOF
14589#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14590_ACEOF
14591
14592 { echo "$as_me:$LINENO: checking if setresuid seems to work" >&5
14593echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6; }
14594 if test "$cross_compiling" = yes; then
14595 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
14596echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
14597
14598else
14599 cat >conftest.$ac_ext <<_ACEOF
14600/* confdefs.h. */
14601_ACEOF
14602cat confdefs.h >>conftest.$ac_ext
14603cat >>conftest.$ac_ext <<_ACEOF
14604/* end confdefs.h. */
14605
14606#include <stdlib.h>
14607#include <errno.h>
14608int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
14609
14610_ACEOF
14611rm -f conftest$ac_exeext
14612if { (ac_try="$ac_link"
14613case "(($ac_try" in
14614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14615 *) ac_try_echo=$ac_try;;
14616esac
14617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14618 (eval "$ac_link") 2>&5
14619 ac_status=$?
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14622 { (case "(($ac_try" in
14623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14624 *) ac_try_echo=$ac_try;;
14625esac
14626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14627 (eval "$ac_try") 2>&5
14628 ac_status=$?
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); }; }; then
14631 { echo "$as_me:$LINENO: result: yes" >&5
14632echo "${ECHO_T}yes" >&6; }
14633else
14634 echo "$as_me: program exited with status $ac_status" >&5
14635echo "$as_me: failed program was:" >&5
14636sed 's/^/| /' conftest.$ac_ext >&5
14637
14638( exit $ac_status )
14639
14640cat >>confdefs.h <<\_ACEOF
14641#define BROKEN_SETRESUID 1
14642_ACEOF
14643
14644 { echo "$as_me:$LINENO: result: not implemented" >&5
14645echo "${ECHO_T}not implemented" >&6; }
14646fi
14647rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14648fi
14649
14650
14651
14652fi
14653done
14654
14655
14656
14657for ac_func in setresgid
14658do
14659as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14660{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14661echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14662if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14663 echo $ECHO_N "(cached) $ECHO_C" >&6
14664else
14665 cat >conftest.$ac_ext <<_ACEOF
14666/* confdefs.h. */
14667_ACEOF
14668cat confdefs.h >>conftest.$ac_ext
14669cat >>conftest.$ac_ext <<_ACEOF
14670/* end confdefs.h. */
14671/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14673#define $ac_func innocuous_$ac_func
14674
14675/* System header to define __stub macros and hopefully few prototypes,
14676 which can conflict with char $ac_func (); below.
14677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14678 <limits.h> exists even on freestanding compilers. */
14679
14680#ifdef __STDC__
14681# include <limits.h>
14682#else
14683# include <assert.h>
14684#endif
14685
14686#undef $ac_func
14687
14688/* Override any GCC internal prototype to avoid an error.
14689 Use char because int might match the return type of a GCC
14690 builtin and then its argument prototype would still apply. */
14691#ifdef __cplusplus
14692extern "C"
14693#endif
14694char $ac_func ();
14695/* The GNU C library defines this for functions which it implements
14696 to always fail with ENOSYS. Some functions are actually named
14697 something starting with __ and the normal name is an alias. */
14698#if defined __stub_$ac_func || defined __stub___$ac_func
14699choke me
14700#endif
14701
14702int
14703main ()
14704{
14705return $ac_func ();
14706 ;
14707 return 0;
14708}
14709_ACEOF
14710rm -f conftest.$ac_objext conftest$ac_exeext
14711if { (ac_try="$ac_link"
14712case "(($ac_try" in
14713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14714 *) ac_try_echo=$ac_try;;
14715esac
14716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14717 (eval "$ac_link") 2>conftest.er1
14718 ac_status=$?
14719 grep -v '^ *+' conftest.er1 >conftest.err
14720 rm -f conftest.er1
14721 cat conftest.err >&5
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); } && {
14724 test -z "$ac_c_werror_flag" ||
14725 test ! -s conftest.err
14726 } && test -s conftest$ac_exeext &&
14727 $as_test_x conftest$ac_exeext; then
14728 eval "$as_ac_var=yes"
14729else
14730 echo "$as_me: failed program was:" >&5
14731sed 's/^/| /' conftest.$ac_ext >&5
14732
14733 eval "$as_ac_var=no"
14734fi
14735
14736rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14737 conftest$ac_exeext conftest.$ac_ext
14738fi
14739ac_res=`eval echo '${'$as_ac_var'}'`
14740 { echo "$as_me:$LINENO: result: $ac_res" >&5
14741echo "${ECHO_T}$ac_res" >&6; }
14742if test `eval echo '${'$as_ac_var'}'` = yes; then
14743 cat >>confdefs.h <<_ACEOF
14744#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14745_ACEOF
14746
14747 { echo "$as_me:$LINENO: checking if setresgid seems to work" >&5
14748echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6; }
14749 if test "$cross_compiling" = yes; then
14750 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
14751echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
14752
14753else
14754 cat >conftest.$ac_ext <<_ACEOF
14755/* confdefs.h. */
14756_ACEOF
14757cat confdefs.h >>conftest.$ac_ext
14758cat >>conftest.$ac_ext <<_ACEOF
14759/* end confdefs.h. */
14760
14761#include <stdlib.h>
14762#include <errno.h>
14763int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
14764
14765_ACEOF
14766rm -f conftest$ac_exeext
14767if { (ac_try="$ac_link"
14768case "(($ac_try" in
14769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14770 *) ac_try_echo=$ac_try;;
14771esac
14772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14773 (eval "$ac_link") 2>&5
14774 ac_status=$?
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14777 { (case "(($ac_try" in
14778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14779 *) ac_try_echo=$ac_try;;
14780esac
14781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14782 (eval "$ac_try") 2>&5
14783 ac_status=$?
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); }; }; then
14786 { echo "$as_me:$LINENO: result: yes" >&5
14787echo "${ECHO_T}yes" >&6; }
14788else
14789 echo "$as_me: program exited with status $ac_status" >&5
14790echo "$as_me: failed program was:" >&5
14791sed 's/^/| /' conftest.$ac_ext >&5
14792
14793( exit $ac_status )
14794
14795cat >>confdefs.h <<\_ACEOF
14796#define BROKEN_SETRESGID 1
14797_ACEOF
14798
14799 { echo "$as_me:$LINENO: result: not implemented" >&5
14800echo "${ECHO_T}not implemented" >&6; }
14801fi
14802rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14803fi
14804
14805
14806
14807fi
14808done
14809
14810
14811
14812
14813for ac_func in gettimeofday time
14814do
14815as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14816{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14817echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14818if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14819 echo $ECHO_N "(cached) $ECHO_C" >&6
14820else
14821 cat >conftest.$ac_ext <<_ACEOF
14822/* confdefs.h. */
14823_ACEOF
14824cat confdefs.h >>conftest.$ac_ext
14825cat >>conftest.$ac_ext <<_ACEOF
14826/* end confdefs.h. */
14827/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14829#define $ac_func innocuous_$ac_func
14830
14831/* System header to define __stub macros and hopefully few prototypes,
14832 which can conflict with char $ac_func (); below.
14833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14834 <limits.h> exists even on freestanding compilers. */
14835
14836#ifdef __STDC__
14837# include <limits.h>
14838#else
14839# include <assert.h>
14840#endif
14841
14842#undef $ac_func
14843
14844/* Override any GCC internal prototype to avoid an error.
14845 Use char because int might match the return type of a GCC
14846 builtin and then its argument prototype would still apply. */
14847#ifdef __cplusplus
14848extern "C"
14849#endif
14850char $ac_func ();
14851/* The GNU C library defines this for functions which it implements
14852 to always fail with ENOSYS. Some functions are actually named
14853 something starting with __ and the normal name is an alias. */
14854#if defined __stub_$ac_func || defined __stub___$ac_func
14855choke me
14856#endif
14857
14858int
14859main ()
14860{
14861return $ac_func ();
14862 ;
14863 return 0;
14864}
14865_ACEOF
14866rm -f conftest.$ac_objext conftest$ac_exeext
14867if { (ac_try="$ac_link"
14868case "(($ac_try" in
14869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14870 *) ac_try_echo=$ac_try;;
14871esac
14872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14873 (eval "$ac_link") 2>conftest.er1
14874 ac_status=$?
14875 grep -v '^ *+' conftest.er1 >conftest.err
14876 rm -f conftest.er1
14877 cat conftest.err >&5
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); } && {
14880 test -z "$ac_c_werror_flag" ||
14881 test ! -s conftest.err
14882 } && test -s conftest$ac_exeext &&
14883 $as_test_x conftest$ac_exeext; then
14884 eval "$as_ac_var=yes"
14885else
14886 echo "$as_me: failed program was:" >&5
14887sed 's/^/| /' conftest.$ac_ext >&5
14888
14889 eval "$as_ac_var=no"
14890fi
14891
14892rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14893 conftest$ac_exeext conftest.$ac_ext
14894fi
14895ac_res=`eval echo '${'$as_ac_var'}'`
14896 { echo "$as_me:$LINENO: result: $ac_res" >&5
14897echo "${ECHO_T}$ac_res" >&6; }
14898if test `eval echo '${'$as_ac_var'}'` = yes; then
14899 cat >>confdefs.h <<_ACEOF
14900#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14901_ACEOF
14902
14903fi
14904done
14905
14906
14907
14908
14909
14910
14911
14912for ac_func in endutent getutent getutid getutline pututline setutent
14913do
14914as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14915{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14916echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14917if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14918 echo $ECHO_N "(cached) $ECHO_C" >&6
14919else
14920 cat >conftest.$ac_ext <<_ACEOF
14921/* confdefs.h. */
14922_ACEOF
14923cat confdefs.h >>conftest.$ac_ext
14924cat >>conftest.$ac_ext <<_ACEOF
14925/* end confdefs.h. */
14926/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14928#define $ac_func innocuous_$ac_func
14929
14930/* System header to define __stub macros and hopefully few prototypes,
14931 which can conflict with char $ac_func (); below.
14932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14933 <limits.h> exists even on freestanding compilers. */
14934
14935#ifdef __STDC__
14936# include <limits.h>
14937#else
14938# include <assert.h>
14939#endif
14940
14941#undef $ac_func
14942
14943/* Override any GCC internal prototype to avoid an error.
14944 Use char because int might match the return type of a GCC
14945 builtin and then its argument prototype would still apply. */
14946#ifdef __cplusplus
14947extern "C"
14948#endif
14949char $ac_func ();
14950/* The GNU C library defines this for functions which it implements
14951 to always fail with ENOSYS. Some functions are actually named
14952 something starting with __ and the normal name is an alias. */
14953#if defined __stub_$ac_func || defined __stub___$ac_func
14954choke me
14955#endif
14956
14957int
14958main ()
14959{
14960return $ac_func ();
14961 ;
14962 return 0;
14963}
14964_ACEOF
14965rm -f conftest.$ac_objext conftest$ac_exeext
14966if { (ac_try="$ac_link"
14967case "(($ac_try" in
14968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14969 *) ac_try_echo=$ac_try;;
14970esac
14971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14972 (eval "$ac_link") 2>conftest.er1
14973 ac_status=$?
14974 grep -v '^ *+' conftest.er1 >conftest.err
14975 rm -f conftest.er1
14976 cat conftest.err >&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); } && {
14979 test -z "$ac_c_werror_flag" ||
14980 test ! -s conftest.err
14981 } && test -s conftest$ac_exeext &&
14982 $as_test_x conftest$ac_exeext; then
14983 eval "$as_ac_var=yes"
14984else
14985 echo "$as_me: failed program was:" >&5
14986sed 's/^/| /' conftest.$ac_ext >&5
14987
14988 eval "$as_ac_var=no"
14989fi
14990
14991rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14992 conftest$ac_exeext conftest.$ac_ext
14993fi
14994ac_res=`eval echo '${'$as_ac_var'}'`
14995 { echo "$as_me:$LINENO: result: $ac_res" >&5
14996echo "${ECHO_T}$ac_res" >&6; }
14997if test `eval echo '${'$as_ac_var'}'` = yes; then
14998 cat >>confdefs.h <<_ACEOF
14999#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15000_ACEOF
15001
15002fi
15003done
15004
15005
15006for ac_func in utmpname
15007do
15008as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15009{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15010echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15011if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15012 echo $ECHO_N "(cached) $ECHO_C" >&6
15013else
15014 cat >conftest.$ac_ext <<_ACEOF
15015/* confdefs.h. */
15016_ACEOF
15017cat confdefs.h >>conftest.$ac_ext
15018cat >>conftest.$ac_ext <<_ACEOF
15019/* end confdefs.h. */
15020/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15022#define $ac_func innocuous_$ac_func
15023
15024/* System header to define __stub macros and hopefully few prototypes,
15025 which can conflict with char $ac_func (); below.
15026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15027 <limits.h> exists even on freestanding compilers. */
15028
15029#ifdef __STDC__
15030# include <limits.h>
15031#else
15032# include <assert.h>
15033#endif
15034
15035#undef $ac_func
15036
15037/* Override any GCC internal prototype to avoid an error.
15038 Use char because int might match the return type of a GCC
15039 builtin and then its argument prototype would still apply. */
15040#ifdef __cplusplus
15041extern "C"
15042#endif
15043char $ac_func ();
15044/* The GNU C library defines this for functions which it implements
15045 to always fail with ENOSYS. Some functions are actually named
15046 something starting with __ and the normal name is an alias. */
15047#if defined __stub_$ac_func || defined __stub___$ac_func
15048choke me
15049#endif
15050
15051int
15052main ()
15053{
15054return $ac_func ();
15055 ;
15056 return 0;
15057}
15058_ACEOF
15059rm -f conftest.$ac_objext conftest$ac_exeext
15060if { (ac_try="$ac_link"
15061case "(($ac_try" in
15062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15063 *) ac_try_echo=$ac_try;;
15064esac
15065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15066 (eval "$ac_link") 2>conftest.er1
15067 ac_status=$?
15068 grep -v '^ *+' conftest.er1 >conftest.err
15069 rm -f conftest.er1
15070 cat conftest.err >&5
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); } && {
15073 test -z "$ac_c_werror_flag" ||
15074 test ! -s conftest.err
15075 } && test -s conftest$ac_exeext &&
15076 $as_test_x conftest$ac_exeext; then
15077 eval "$as_ac_var=yes"
15078else
15079 echo "$as_me: failed program was:" >&5
15080sed 's/^/| /' conftest.$ac_ext >&5
15081
15082 eval "$as_ac_var=no"
15083fi
15084
15085rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15086 conftest$ac_exeext conftest.$ac_ext
15087fi
15088ac_res=`eval echo '${'$as_ac_var'}'`
15089 { echo "$as_me:$LINENO: result: $ac_res" >&5
15090echo "${ECHO_T}$ac_res" >&6; }
15091if test `eval echo '${'$as_ac_var'}'` = yes; then
15092 cat >>confdefs.h <<_ACEOF
15093#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15094_ACEOF
15095
15096fi
15097done
15098
15099
15100
15101
15102
15103
15104
15105for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline
15106do
15107as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15108{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15109echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15110if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15111 echo $ECHO_N "(cached) $ECHO_C" >&6
15112else
15113 cat >conftest.$ac_ext <<_ACEOF
15114/* confdefs.h. */
15115_ACEOF
15116cat confdefs.h >>conftest.$ac_ext
15117cat >>conftest.$ac_ext <<_ACEOF
15118/* end confdefs.h. */
15119/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15121#define $ac_func innocuous_$ac_func
15122
15123/* System header to define __stub macros and hopefully few prototypes,
15124 which can conflict with char $ac_func (); below.
15125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15126 <limits.h> exists even on freestanding compilers. */
15127
15128#ifdef __STDC__
15129# include <limits.h>
15130#else
15131# include <assert.h>
15132#endif
15133
15134#undef $ac_func
15135
15136/* Override any GCC internal prototype to avoid an error.
15137 Use char because int might match the return type of a GCC
15138 builtin and then its argument prototype would still apply. */
15139#ifdef __cplusplus
15140extern "C"
15141#endif
15142char $ac_func ();
15143/* The GNU C library defines this for functions which it implements
15144 to always fail with ENOSYS. Some functions are actually named
15145 something starting with __ and the normal name is an alias. */
15146#if defined __stub_$ac_func || defined __stub___$ac_func
15147choke me
15148#endif
15149
15150int
15151main ()
15152{
15153return $ac_func ();
15154 ;
15155 return 0;
15156}
15157_ACEOF
15158rm -f conftest.$ac_objext conftest$ac_exeext
15159if { (ac_try="$ac_link"
15160case "(($ac_try" in
15161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15162 *) ac_try_echo=$ac_try;;
15163esac
15164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15165 (eval "$ac_link") 2>conftest.er1
15166 ac_status=$?
15167 grep -v '^ *+' conftest.er1 >conftest.err
15168 rm -f conftest.er1
15169 cat conftest.err >&5
15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); } && {
15172 test -z "$ac_c_werror_flag" ||
15173 test ! -s conftest.err
15174 } && test -s conftest$ac_exeext &&
15175 $as_test_x conftest$ac_exeext; then
15176 eval "$as_ac_var=yes"
15177else
15178 echo "$as_me: failed program was:" >&5
15179sed 's/^/| /' conftest.$ac_ext >&5
15180
15181 eval "$as_ac_var=no"
15182fi
15183
15184rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15185 conftest$ac_exeext conftest.$ac_ext
15186fi
15187ac_res=`eval echo '${'$as_ac_var'}'`
15188 { echo "$as_me:$LINENO: result: $ac_res" >&5
15189echo "${ECHO_T}$ac_res" >&6; }
15190if test `eval echo '${'$as_ac_var'}'` = yes; then
15191 cat >>confdefs.h <<_ACEOF
15192#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15193_ACEOF
15194
15195fi
15196done
15197
15198
15199
15200
15201for ac_func in setutxdb setutxent utmpxname
15202do
15203as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15204{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15205echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15206if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15207 echo $ECHO_N "(cached) $ECHO_C" >&6
15208else
15209 cat >conftest.$ac_ext <<_ACEOF
15210/* confdefs.h. */
15211_ACEOF
15212cat confdefs.h >>conftest.$ac_ext
15213cat >>conftest.$ac_ext <<_ACEOF
15214/* end confdefs.h. */
15215/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15217#define $ac_func innocuous_$ac_func
15218
15219/* System header to define __stub macros and hopefully few prototypes,
15220 which can conflict with char $ac_func (); below.
15221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15222 <limits.h> exists even on freestanding compilers. */
15223
15224#ifdef __STDC__
15225# include <limits.h>
15226#else
15227# include <assert.h>
15228#endif
15229
15230#undef $ac_func
15231
15232/* Override any GCC internal prototype to avoid an error.
15233 Use char because int might match the return type of a GCC
15234 builtin and then its argument prototype would still apply. */
15235#ifdef __cplusplus
15236extern "C"
15237#endif
15238char $ac_func ();
15239/* The GNU C library defines this for functions which it implements
15240 to always fail with ENOSYS. Some functions are actually named
15241 something starting with __ and the normal name is an alias. */
15242#if defined __stub_$ac_func || defined __stub___$ac_func
15243choke me
15244#endif
15245
15246int
15247main ()
15248{
15249return $ac_func ();
15250 ;
15251 return 0;
15252}
15253_ACEOF
15254rm -f conftest.$ac_objext conftest$ac_exeext
15255if { (ac_try="$ac_link"
15256case "(($ac_try" in
15257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15258 *) ac_try_echo=$ac_try;;
15259esac
15260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15261 (eval "$ac_link") 2>conftest.er1
15262 ac_status=$?
15263 grep -v '^ *+' conftest.er1 >conftest.err
15264 rm -f conftest.er1
15265 cat conftest.err >&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); } && {
15268 test -z "$ac_c_werror_flag" ||
15269 test ! -s conftest.err
15270 } && test -s conftest$ac_exeext &&
15271 $as_test_x conftest$ac_exeext; then
15272 eval "$as_ac_var=yes"
15273else
15274 echo "$as_me: failed program was:" >&5
15275sed 's/^/| /' conftest.$ac_ext >&5
15276
15277 eval "$as_ac_var=no"
15278fi
15279
15280rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15281 conftest$ac_exeext conftest.$ac_ext
15282fi
15283ac_res=`eval echo '${'$as_ac_var'}'`
15284 { echo "$as_me:$LINENO: result: $ac_res" >&5
15285echo "${ECHO_T}$ac_res" >&6; }
15286if test `eval echo '${'$as_ac_var'}'` = yes; then
15287 cat >>confdefs.h <<_ACEOF
15288#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15289_ACEOF
15290
15291fi
15292done
15293
15294
15295for ac_func in getlastlogxbyname
15296do
15297as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15298{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15299echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15300if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15301 echo $ECHO_N "(cached) $ECHO_C" >&6
15302else
15303 cat >conftest.$ac_ext <<_ACEOF
15304/* confdefs.h. */
15305_ACEOF
15306cat confdefs.h >>conftest.$ac_ext
15307cat >>conftest.$ac_ext <<_ACEOF
15308/* end confdefs.h. */
15309/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15311#define $ac_func innocuous_$ac_func
15312
15313/* System header to define __stub macros and hopefully few prototypes,
15314 which can conflict with char $ac_func (); below.
15315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15316 <limits.h> exists even on freestanding compilers. */
15317
15318#ifdef __STDC__
15319# include <limits.h>
15320#else
15321# include <assert.h>
15322#endif
15323
15324#undef $ac_func
15325
15326/* Override any GCC internal prototype to avoid an error.
15327 Use char because int might match the return type of a GCC
15328 builtin and then its argument prototype would still apply. */
15329#ifdef __cplusplus
15330extern "C"
15331#endif
15332char $ac_func ();
15333/* The GNU C library defines this for functions which it implements
15334 to always fail with ENOSYS. Some functions are actually named
15335 something starting with __ and the normal name is an alias. */
15336#if defined __stub_$ac_func || defined __stub___$ac_func
15337choke me
15338#endif
15339
15340int
15341main ()
15342{
15343return $ac_func ();
15344 ;
15345 return 0;
15346}
15347_ACEOF
15348rm -f conftest.$ac_objext conftest$ac_exeext
15349if { (ac_try="$ac_link"
15350case "(($ac_try" in
15351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352 *) ac_try_echo=$ac_try;;
15353esac
15354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15355 (eval "$ac_link") 2>conftest.er1
15356 ac_status=$?
15357 grep -v '^ *+' conftest.er1 >conftest.err
15358 rm -f conftest.er1
15359 cat conftest.err >&5
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); } && {
15362 test -z "$ac_c_werror_flag" ||
15363 test ! -s conftest.err
15364 } && test -s conftest$ac_exeext &&
15365 $as_test_x conftest$ac_exeext; then
15366 eval "$as_ac_var=yes"
15367else
15368 echo "$as_me: failed program was:" >&5
15369sed 's/^/| /' conftest.$ac_ext >&5
15370
15371 eval "$as_ac_var=no"
15372fi
15373
15374rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15375 conftest$ac_exeext conftest.$ac_ext
15376fi
15377ac_res=`eval echo '${'$as_ac_var'}'`
15378 { echo "$as_me:$LINENO: result: $ac_res" >&5
15379echo "${ECHO_T}$ac_res" >&6; }
15380if test `eval echo '${'$as_ac_var'}'` = yes; then
15381 cat >>confdefs.h <<_ACEOF
15382#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15383_ACEOF
15384
15385fi
15386done
15387
15388
15389{ echo "$as_me:$LINENO: checking for daemon" >&5
15390echo $ECHO_N "checking for daemon... $ECHO_C" >&6; }
15391if test "${ac_cv_func_daemon+set}" = set; then
15392 echo $ECHO_N "(cached) $ECHO_C" >&6
15393else
15394 cat >conftest.$ac_ext <<_ACEOF
15395/* confdefs.h. */
15396_ACEOF
15397cat confdefs.h >>conftest.$ac_ext
15398cat >>conftest.$ac_ext <<_ACEOF
15399/* end confdefs.h. */
15400/* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
15401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15402#define daemon innocuous_daemon
15403
15404/* System header to define __stub macros and hopefully few prototypes,
15405 which can conflict with char daemon (); below.
15406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15407 <limits.h> exists even on freestanding compilers. */
15408
15409#ifdef __STDC__
15410# include <limits.h>
15411#else
15412# include <assert.h>
15413#endif
15414
15415#undef daemon
15416
15417/* Override any GCC internal prototype to avoid an error.
15418 Use char because int might match the return type of a GCC
15419 builtin and then its argument prototype would still apply. */
15420#ifdef __cplusplus
15421extern "C"
15422#endif
15423char daemon ();
15424/* The GNU C library defines this for functions which it implements
15425 to always fail with ENOSYS. Some functions are actually named
15426 something starting with __ and the normal name is an alias. */
15427#if defined __stub_daemon || defined __stub___daemon
15428choke me
15429#endif
15430
15431int
15432main ()
15433{
15434return daemon ();
15435 ;
15436 return 0;
15437}
15438_ACEOF
15439rm -f conftest.$ac_objext conftest$ac_exeext
15440if { (ac_try="$ac_link"
15441case "(($ac_try" in
15442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15443 *) ac_try_echo=$ac_try;;
15444esac
15445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15446 (eval "$ac_link") 2>conftest.er1
15447 ac_status=$?
15448 grep -v '^ *+' conftest.er1 >conftest.err
15449 rm -f conftest.er1
15450 cat conftest.err >&5
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); } && {
15453 test -z "$ac_c_werror_flag" ||
15454 test ! -s conftest.err
15455 } && test -s conftest$ac_exeext &&
15456 $as_test_x conftest$ac_exeext; then
15457 ac_cv_func_daemon=yes
15458else
15459 echo "$as_me: failed program was:" >&5
15460sed 's/^/| /' conftest.$ac_ext >&5
15461
15462 ac_cv_func_daemon=no
15463fi
15464
15465rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15466 conftest$ac_exeext conftest.$ac_ext
15467fi
15468{ echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
15469echo "${ECHO_T}$ac_cv_func_daemon" >&6; }
15470if test $ac_cv_func_daemon = yes; then
15471
15472cat >>confdefs.h <<\_ACEOF
15473#define HAVE_DAEMON 1
15474_ACEOF
15475
15476else
15477 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
15478echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
15479if test "${ac_cv_lib_bsd_daemon+set}" = set; then
15480 echo $ECHO_N "(cached) $ECHO_C" >&6
15481else
15482 ac_check_lib_save_LIBS=$LIBS
15483LIBS="-lbsd $LIBS"
15484cat >conftest.$ac_ext <<_ACEOF
15485/* confdefs.h. */
15486_ACEOF
15487cat confdefs.h >>conftest.$ac_ext
15488cat >>conftest.$ac_ext <<_ACEOF
15489/* end confdefs.h. */
15490
15491/* Override any GCC internal prototype to avoid an error.
15492 Use char because int might match the return type of a GCC
15493 builtin and then its argument prototype would still apply. */
15494#ifdef __cplusplus
15495extern "C"
15496#endif
15497char daemon ();
15498int
15499main ()
15500{
15501return daemon ();
15502 ;
15503 return 0;
15504}
15505_ACEOF
15506rm -f conftest.$ac_objext conftest$ac_exeext
15507if { (ac_try="$ac_link"
15508case "(($ac_try" in
15509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15510 *) ac_try_echo=$ac_try;;
15511esac
15512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15513 (eval "$ac_link") 2>conftest.er1
15514 ac_status=$?
15515 grep -v '^ *+' conftest.er1 >conftest.err
15516 rm -f conftest.er1
15517 cat conftest.err >&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); } && {
15520 test -z "$ac_c_werror_flag" ||
15521 test ! -s conftest.err
15522 } && test -s conftest$ac_exeext &&
15523 $as_test_x conftest$ac_exeext; then
15524 ac_cv_lib_bsd_daemon=yes
15525else
15526 echo "$as_me: failed program was:" >&5
15527sed 's/^/| /' conftest.$ac_ext >&5
15528
15529 ac_cv_lib_bsd_daemon=no
15530fi
15531
15532rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15533 conftest$ac_exeext conftest.$ac_ext
15534LIBS=$ac_check_lib_save_LIBS
15535fi
15536{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
15537echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
15538if test $ac_cv_lib_bsd_daemon = yes; then
15539 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
15540#define HAVE_DAEMON 1
15541_ACEOF
15542
15543fi
15544
15545
15546fi
15547
15548
15549{ echo "$as_me:$LINENO: checking for getpagesize" >&5
15550echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
15551if test "${ac_cv_func_getpagesize+set}" = set; then
15552 echo $ECHO_N "(cached) $ECHO_C" >&6
15553else
15554 cat >conftest.$ac_ext <<_ACEOF
15555/* confdefs.h. */
15556_ACEOF
15557cat confdefs.h >>conftest.$ac_ext
15558cat >>conftest.$ac_ext <<_ACEOF
15559/* end confdefs.h. */
15560/* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize.
15561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15562#define getpagesize innocuous_getpagesize
15563
15564/* System header to define __stub macros and hopefully few prototypes,
15565 which can conflict with char getpagesize (); below.
15566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15567 <limits.h> exists even on freestanding compilers. */
15568
15569#ifdef __STDC__
15570# include <limits.h>
15571#else
15572# include <assert.h>
15573#endif
15574
15575#undef getpagesize
15576
15577/* Override any GCC internal prototype to avoid an error.
15578 Use char because int might match the return type of a GCC
15579 builtin and then its argument prototype would still apply. */
15580#ifdef __cplusplus
15581extern "C"
15582#endif
15583char getpagesize ();
15584/* The GNU C library defines this for functions which it implements
15585 to always fail with ENOSYS. Some functions are actually named
15586 something starting with __ and the normal name is an alias. */
15587#if defined __stub_getpagesize || defined __stub___getpagesize
15588choke me
15589#endif
15590
15591int
15592main ()
15593{
15594return getpagesize ();
15595 ;
15596 return 0;
15597}
15598_ACEOF
15599rm -f conftest.$ac_objext conftest$ac_exeext
15600if { (ac_try="$ac_link"
15601case "(($ac_try" in
15602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15603 *) ac_try_echo=$ac_try;;
15604esac
15605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15606 (eval "$ac_link") 2>conftest.er1
15607 ac_status=$?
15608 grep -v '^ *+' conftest.er1 >conftest.err
15609 rm -f conftest.er1
15610 cat conftest.err >&5
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); } && {
15613 test -z "$ac_c_werror_flag" ||
15614 test ! -s conftest.err
15615 } && test -s conftest$ac_exeext &&
15616 $as_test_x conftest$ac_exeext; then
15617 ac_cv_func_getpagesize=yes
15618else
15619 echo "$as_me: failed program was:" >&5
15620sed 's/^/| /' conftest.$ac_ext >&5
15621
15622 ac_cv_func_getpagesize=no
15623fi
15624
15625rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15626 conftest$ac_exeext conftest.$ac_ext
15627fi
15628{ echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
15629echo "${ECHO_T}$ac_cv_func_getpagesize" >&6; }
15630if test $ac_cv_func_getpagesize = yes; then
15631
15632cat >>confdefs.h <<\_ACEOF
15633#define HAVE_GETPAGESIZE 1
15634_ACEOF
15635
15636else
15637 { echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
15638echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6; }
15639if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
15640 echo $ECHO_N "(cached) $ECHO_C" >&6
15641else
15642 ac_check_lib_save_LIBS=$LIBS
15643LIBS="-lucb $LIBS"
15644cat >conftest.$ac_ext <<_ACEOF
15645/* confdefs.h. */
15646_ACEOF
15647cat confdefs.h >>conftest.$ac_ext
15648cat >>conftest.$ac_ext <<_ACEOF
15649/* end confdefs.h. */
15650
15651/* Override any GCC internal prototype to avoid an error.
15652 Use char because int might match the return type of a GCC
15653 builtin and then its argument prototype would still apply. */
15654#ifdef __cplusplus
15655extern "C"
15656#endif
15657char getpagesize ();
15658int
15659main ()
15660{
15661return getpagesize ();
15662 ;
15663 return 0;
15664}
15665_ACEOF
15666rm -f conftest.$ac_objext conftest$ac_exeext
15667if { (ac_try="$ac_link"
15668case "(($ac_try" in
15669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15670 *) ac_try_echo=$ac_try;;
15671esac
15672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15673 (eval "$ac_link") 2>conftest.er1
15674 ac_status=$?
15675 grep -v '^ *+' conftest.er1 >conftest.err
15676 rm -f conftest.er1
15677 cat conftest.err >&5
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); } && {
15680 test -z "$ac_c_werror_flag" ||
15681 test ! -s conftest.err
15682 } && test -s conftest$ac_exeext &&
15683 $as_test_x conftest$ac_exeext; then
15684 ac_cv_lib_ucb_getpagesize=yes
15685else
15686 echo "$as_me: failed program was:" >&5
15687sed 's/^/| /' conftest.$ac_ext >&5
15688
15689 ac_cv_lib_ucb_getpagesize=no
15690fi
15691
15692rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15693 conftest$ac_exeext conftest.$ac_ext
15694LIBS=$ac_check_lib_save_LIBS
15695fi
15696{ echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
15697echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6; }
15698if test $ac_cv_lib_ucb_getpagesize = yes; then
15699 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
15700#define HAVE_GETPAGESIZE 1
15701_ACEOF
15702
15703fi
15704
15705
15706fi
15707
15708
15709# Check for broken snprintf
15710if test "x$ac_cv_func_snprintf" = "xyes" ; then
15711 { echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
15712echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6; }
15713 if test "$cross_compiling" = yes; then
15714 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
15715echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
15716
15717else
15718 cat >conftest.$ac_ext <<_ACEOF
15719/* confdefs.h. */
15720_ACEOF
15721cat confdefs.h >>conftest.$ac_ext
15722cat >>conftest.$ac_ext <<_ACEOF
15723/* end confdefs.h. */
15724
15725#include <stdio.h>
15726int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
15727
15728_ACEOF
15729rm -f conftest$ac_exeext
15730if { (ac_try="$ac_link"
15731case "(($ac_try" in
15732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15733 *) ac_try_echo=$ac_try;;
15734esac
15735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15736 (eval "$ac_link") 2>&5
15737 ac_status=$?
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15740 { (case "(($ac_try" in
15741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15742 *) ac_try_echo=$ac_try;;
15743esac
15744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15745 (eval "$ac_try") 2>&5
15746 ac_status=$?
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); }; }; then
15749 { echo "$as_me:$LINENO: result: yes" >&5
15750echo "${ECHO_T}yes" >&6; }
15751else
15752 echo "$as_me: program exited with status $ac_status" >&5
15753echo "$as_me: failed program was:" >&5
15754sed 's/^/| /' conftest.$ac_ext >&5
15755
15756( exit $ac_status )
15757
15758 { echo "$as_me:$LINENO: result: no" >&5
15759echo "${ECHO_T}no" >&6; }
15760
15761cat >>confdefs.h <<\_ACEOF
15762#define BROKEN_SNPRINTF 1
15763_ACEOF
15764
15765 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
15766echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
15767
15768fi
15769rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15770fi
15771
15772
15773fi
15774
15775# If we don't have a working asprintf, then we strongly depend on vsnprintf
15776# returning the right thing on overflow: the number of characters it tried to
15777# create (as per SUSv3)
15778if test "x$ac_cv_func_asprintf" != "xyes" && \
15779 test "x$ac_cv_func_vsnprintf" = "xyes" ; then
15780 { echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5
15781echo $ECHO_N "checking whether vsnprintf returns correct values on overflow... $ECHO_C" >&6; }
15782 if test "$cross_compiling" = yes; then
15783 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5
15784echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
15785
15786else
15787 cat >conftest.$ac_ext <<_ACEOF
15788/* confdefs.h. */
15789_ACEOF
15790cat confdefs.h >>conftest.$ac_ext
15791cat >>conftest.$ac_ext <<_ACEOF
15792/* end confdefs.h. */
15793
15794#include <sys/types.h>
15795#include <stdio.h>
15796#include <stdarg.h>
15797
15798int x_snprintf(char *str,size_t count,const char *fmt,...)
15799{
15800 size_t ret; va_list ap;
15801 va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap);
15802 return ret;
15803}
15804int main(void)
15805{
15806 char x[1];
15807 exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1);
15808}
15809_ACEOF
15810rm -f conftest$ac_exeext
15811if { (ac_try="$ac_link"
15812case "(($ac_try" in
15813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15814 *) ac_try_echo=$ac_try;;
15815esac
15816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15817 (eval "$ac_link") 2>&5
15818 ac_status=$?
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15821 { (case "(($ac_try" in
15822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15823 *) ac_try_echo=$ac_try;;
15824esac
15825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15826 (eval "$ac_try") 2>&5
15827 ac_status=$?
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); }; }; then
15830 { echo "$as_me:$LINENO: result: yes" >&5
15831echo "${ECHO_T}yes" >&6; }
15832else
15833 echo "$as_me: program exited with status $ac_status" >&5
15834echo "$as_me: failed program was:" >&5
15835sed 's/^/| /' conftest.$ac_ext >&5
15836
15837( exit $ac_status )
15838
15839 { echo "$as_me:$LINENO: result: no" >&5
15840echo "${ECHO_T}no" >&6; }
15841
15842cat >>confdefs.h <<\_ACEOF
15843#define BROKEN_SNPRINTF 1
15844_ACEOF
15845
15846 { echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
15847echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
15848
15849fi
15850rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15851fi
15852
15853
15854fi
15855
15856# On systems where [v]snprintf is broken, but is declared in stdio,
15857# check that the fmt argument is const char * or just char *.
15858# This is only useful for when BROKEN_SNPRINTF
15859{ echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5
15860echo $ECHO_N "checking whether snprintf can declare const char *fmt... $ECHO_C" >&6; }
15861cat >conftest.$ac_ext <<_ACEOF
15862/* confdefs.h. */
15863_ACEOF
15864cat confdefs.h >>conftest.$ac_ext
15865cat >>conftest.$ac_ext <<_ACEOF
15866/* end confdefs.h. */
15867#include <stdio.h>
15868 int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
15869 int main(void) { snprintf(0, 0, 0); }
15870
15871_ACEOF
15872rm -f conftest.$ac_objext
15873if { (ac_try="$ac_compile"
15874case "(($ac_try" in
15875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15876 *) ac_try_echo=$ac_try;;
15877esac
15878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15879 (eval "$ac_compile") 2>conftest.er1
15880 ac_status=$?
15881 grep -v '^ *+' conftest.er1 >conftest.err
15882 rm -f conftest.er1
15883 cat conftest.err >&5
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); } && {
15886 test -z "$ac_c_werror_flag" ||
15887 test ! -s conftest.err
15888 } && test -s conftest.$ac_objext; then
15889 { echo "$as_me:$LINENO: result: yes" >&5
15890echo "${ECHO_T}yes" >&6; }
15891
15892cat >>confdefs.h <<\_ACEOF
15893#define SNPRINTF_CONST const
15894_ACEOF
15895
15896else
15897 echo "$as_me: failed program was:" >&5
15898sed 's/^/| /' conftest.$ac_ext >&5
15899
15900 { echo "$as_me:$LINENO: result: no" >&5
15901echo "${ECHO_T}no" >&6; }
15902 cat >>confdefs.h <<\_ACEOF
15903#define SNPRINTF_CONST /* not const */
15904_ACEOF
15905
15906fi
15907
15908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15909
15910# Check for missing getpeereid (or equiv) support
15911NO_PEERCHECK=""
15912if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
15913 { echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5
15914echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6; }
15915 cat >conftest.$ac_ext <<_ACEOF
15916/* confdefs.h. */
15917_ACEOF
15918cat confdefs.h >>conftest.$ac_ext
15919cat >>conftest.$ac_ext <<_ACEOF
15920/* end confdefs.h. */
15921#include <sys/types.h>
15922 #include <sys/socket.h>
15923int
15924main ()
15925{
15926int i = SO_PEERCRED;
15927 ;
15928 return 0;
15929}
15930_ACEOF
15931rm -f conftest.$ac_objext
15932if { (ac_try="$ac_compile"
15933case "(($ac_try" in
15934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15935 *) ac_try_echo=$ac_try;;
15936esac
15937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15938 (eval "$ac_compile") 2>conftest.er1
15939 ac_status=$?
15940 grep -v '^ *+' conftest.er1 >conftest.err
15941 rm -f conftest.er1
15942 cat conftest.err >&5
15943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944 (exit $ac_status); } && {
15945 test -z "$ac_c_werror_flag" ||
15946 test ! -s conftest.err
15947 } && test -s conftest.$ac_objext; then
15948 { echo "$as_me:$LINENO: result: yes" >&5
15949echo "${ECHO_T}yes" >&6; }
15950
15951cat >>confdefs.h <<\_ACEOF
15952#define HAVE_SO_PEERCRED 1
15953_ACEOF
15954
15955
15956else
15957 echo "$as_me: failed program was:" >&5
15958sed 's/^/| /' conftest.$ac_ext >&5
15959
15960 { echo "$as_me:$LINENO: result: no" >&5
15961echo "${ECHO_T}no" >&6; }
15962 NO_PEERCHECK=1
15963
15964fi
15965
15966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15967fi
15968
15969if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
15970{ echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5
15971echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6; }
15972if test "$cross_compiling" = yes; then
15973
15974 { echo "$as_me:$LINENO: result: yes" >&5
15975echo "${ECHO_T}yes" >&6; }
15976 cat >>confdefs.h <<\_ACEOF
15977#define HAVE_STRICT_MKSTEMP 1
15978_ACEOF
15979
15980
15981
15982else
15983 cat >conftest.$ac_ext <<_ACEOF
15984/* confdefs.h. */
15985_ACEOF
15986cat confdefs.h >>conftest.$ac_ext
15987cat >>conftest.$ac_ext <<_ACEOF
15988/* end confdefs.h. */
15989
15990#include <stdlib.h>
15991main() { char template[]="conftest.mkstemp-test";
15992if (mkstemp(template) == -1)
15993 exit(1);
15994unlink(template); exit(0);
15995}
15996
15997_ACEOF
15998rm -f conftest$ac_exeext
15999if { (ac_try="$ac_link"
16000case "(($ac_try" in
16001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16002 *) ac_try_echo=$ac_try;;
16003esac
16004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16005 (eval "$ac_link") 2>&5
16006 ac_status=$?
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16009 { (case "(($ac_try" in
16010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011 *) ac_try_echo=$ac_try;;
16012esac
16013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16014 (eval "$ac_try") 2>&5
16015 ac_status=$?
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); }; }; then
16018
16019 { echo "$as_me:$LINENO: result: no" >&5
16020echo "${ECHO_T}no" >&6; }
16021
16022else
16023 echo "$as_me: program exited with status $ac_status" >&5
16024echo "$as_me: failed program was:" >&5
16025sed 's/^/| /' conftest.$ac_ext >&5
16026
16027( exit $ac_status )
16028
16029 { echo "$as_me:$LINENO: result: yes" >&5
16030echo "${ECHO_T}yes" >&6; }
16031
16032cat >>confdefs.h <<\_ACEOF
16033#define HAVE_STRICT_MKSTEMP 1
16034_ACEOF
16035
16036
16037fi
16038rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16039fi
16040
16041
16042fi
16043
16044if test ! -z "$check_for_openpty_ctty_bug"; then
16045 { echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5
16046echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6; }
16047 if test "$cross_compiling" = yes; then
16048
16049 { echo "$as_me:$LINENO: result: cross-compiling" >&5
16050echo "${ECHO_T}cross-compiling" >&6; }
16051
16052
16053else
16054 cat >conftest.$ac_ext <<_ACEOF
16055/* confdefs.h. */
16056_ACEOF
16057cat confdefs.h >>conftest.$ac_ext
16058cat >>conftest.$ac_ext <<_ACEOF
16059/* end confdefs.h. */
16060
16061#include <stdio.h>
16062#include <sys/fcntl.h>
16063#include <sys/types.h>
16064#include <sys/wait.h>
16065
16066int
16067main()
16068{
16069 pid_t pid;
16070 int fd, ptyfd, ttyfd, status;
16071
16072 pid = fork();
16073 if (pid < 0) { /* failed */
16074 exit(1);
16075 } else if (pid > 0) { /* parent */
16076 waitpid(pid, &status, 0);
16077 if (WIFEXITED(status))
16078 exit(WEXITSTATUS(status));
16079 else
16080 exit(2);
16081 } else { /* child */
16082 close(0); close(1); close(2);
16083 setsid();
16084 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
16085 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
16086 if (fd >= 0)
16087 exit(3); /* Acquired ctty: broken */
16088 else
16089 exit(0); /* Did not acquire ctty: OK */
16090 }
16091}
16092
16093_ACEOF
16094rm -f conftest$ac_exeext
16095if { (ac_try="$ac_link"
16096case "(($ac_try" in
16097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16098 *) ac_try_echo=$ac_try;;
16099esac
16100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16101 (eval "$ac_link") 2>&5
16102 ac_status=$?
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16105 { (case "(($ac_try" in
16106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16107 *) ac_try_echo=$ac_try;;
16108esac
16109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16110 (eval "$ac_try") 2>&5
16111 ac_status=$?
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); }; }; then
16114
16115 { echo "$as_me:$LINENO: result: yes" >&5
16116echo "${ECHO_T}yes" >&6; }
16117
16118else
16119 echo "$as_me: program exited with status $ac_status" >&5
16120echo "$as_me: failed program was:" >&5
16121sed 's/^/| /' conftest.$ac_ext >&5
16122
16123( exit $ac_status )
16124
16125 { echo "$as_me:$LINENO: result: no" >&5
16126echo "${ECHO_T}no" >&6; }
16127 cat >>confdefs.h <<\_ACEOF
16128#define SSHD_ACQUIRES_CTTY 1
16129_ACEOF
16130
16131
16132fi
16133rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16134fi
16135
16136
16137fi
16138
16139if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
16140 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
16141 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
16142echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
16143 if test "$cross_compiling" = yes; then
16144
16145 { echo "$as_me:$LINENO: result: cross-compiling" >&5
16146echo "${ECHO_T}cross-compiling" >&6; }
16147
16148
16149else
16150 cat >conftest.$ac_ext <<_ACEOF
16151/* confdefs.h. */
16152_ACEOF
16153cat confdefs.h >>conftest.$ac_ext
16154cat >>conftest.$ac_ext <<_ACEOF
16155/* end confdefs.h. */
16156
16157#include <stdio.h>
16158#include <sys/socket.h>
16159#include <netdb.h>
16160#include <errno.h>
16161#include <netinet/in.h>
16162
16163#define TEST_PORT "2222"
16164
16165int
16166main(void)
16167{
16168 int err, sock;
16169 struct addrinfo *gai_ai, *ai, hints;
16170 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
16171
16172 memset(&hints, 0, sizeof(hints));
16173 hints.ai_family = PF_UNSPEC;
16174 hints.ai_socktype = SOCK_STREAM;
16175 hints.ai_flags = AI_PASSIVE;
16176
16177 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
16178 if (err != 0) {
16179 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
16180 exit(1);
16181 }
16182
16183 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
16184 if (ai->ai_family != AF_INET6)
16185 continue;
16186
16187 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
16188 sizeof(ntop), strport, sizeof(strport),
16189 NI_NUMERICHOST|NI_NUMERICSERV);
16190
16191 if (err != 0) {
16192 if (err == EAI_SYSTEM)
16193 perror("getnameinfo EAI_SYSTEM");
16194 else
16195 fprintf(stderr, "getnameinfo failed: %s\n",
16196 gai_strerror(err));
16197 exit(2);
16198 }
16199
16200 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
16201 if (sock < 0)
16202 perror("socket");
16203 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
16204 if (errno == EBADF)
16205 exit(3);
16206 }
16207 }
16208 exit(0);
16209}
16210
16211_ACEOF
16212rm -f conftest$ac_exeext
16213if { (ac_try="$ac_link"
16214case "(($ac_try" in
16215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16216 *) ac_try_echo=$ac_try;;
16217esac
16218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16219 (eval "$ac_link") 2>&5
16220 ac_status=$?
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16223 { (case "(($ac_try" in
16224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16225 *) ac_try_echo=$ac_try;;
16226esac
16227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16228 (eval "$ac_try") 2>&5
16229 ac_status=$?
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); }; }; then
16232
16233 { echo "$as_me:$LINENO: result: yes" >&5
16234echo "${ECHO_T}yes" >&6; }
16235
16236else
16237 echo "$as_me: program exited with status $ac_status" >&5
16238echo "$as_me: failed program was:" >&5
16239sed 's/^/| /' conftest.$ac_ext >&5
16240
16241( exit $ac_status )
16242
16243 { echo "$as_me:$LINENO: result: no" >&5
16244echo "${ECHO_T}no" >&6; }
16245 cat >>confdefs.h <<\_ACEOF
16246#define BROKEN_GETADDRINFO 1
16247_ACEOF
16248
16249
16250fi
16251rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16252fi
16253
16254
16255fi
16256
16257if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
16258 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
16259 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
16260echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
16261 if test "$cross_compiling" = yes; then
16262
16263 { echo "$as_me:$LINENO: result: cross-compiling" >&5
16264echo "${ECHO_T}cross-compiling" >&6; }
16265
16266
16267else
16268 cat >conftest.$ac_ext <<_ACEOF
16269/* confdefs.h. */
16270_ACEOF
16271cat confdefs.h >>conftest.$ac_ext
16272cat >>conftest.$ac_ext <<_ACEOF
16273/* end confdefs.h. */
16274
16275#include <stdio.h>
16276#include <sys/socket.h>
16277#include <netdb.h>
16278#include <errno.h>
16279#include <netinet/in.h>
16280
16281#define TEST_PORT "2222"
16282
16283int
16284main(void)
16285{
16286 int err, sock;
16287 struct addrinfo *gai_ai, *ai, hints;
16288 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
16289
16290 memset(&hints, 0, sizeof(hints));
16291 hints.ai_family = PF_UNSPEC;
16292 hints.ai_socktype = SOCK_STREAM;
16293 hints.ai_flags = AI_PASSIVE;
16294
16295 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
16296 if (err != 0) {
16297 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
16298 exit(1);
16299 }
16300
16301 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
16302 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
16303 continue;
16304
16305 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
16306 sizeof(ntop), strport, sizeof(strport),
16307 NI_NUMERICHOST|NI_NUMERICSERV);
16308
16309 if (ai->ai_family == AF_INET && err != 0) {
16310 perror("getnameinfo");
16311 exit(2);
16312 }
16313 }
16314 exit(0);
16315}
16316
16317_ACEOF
16318rm -f conftest$ac_exeext
16319if { (ac_try="$ac_link"
16320case "(($ac_try" in
16321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322 *) ac_try_echo=$ac_try;;
16323esac
16324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16325 (eval "$ac_link") 2>&5
16326 ac_status=$?
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16329 { (case "(($ac_try" in
16330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16331 *) ac_try_echo=$ac_try;;
16332esac
16333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16334 (eval "$ac_try") 2>&5
16335 ac_status=$?
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); }; }; then
16338
16339 { echo "$as_me:$LINENO: result: yes" >&5
16340echo "${ECHO_T}yes" >&6; }
16341
16342cat >>confdefs.h <<\_ACEOF
16343#define AIX_GETNAMEINFO_HACK 1
16344_ACEOF
16345
16346
16347else
16348 echo "$as_me: program exited with status $ac_status" >&5
16349echo "$as_me: failed program was:" >&5
16350sed 's/^/| /' conftest.$ac_ext >&5
16351
16352( exit $ac_status )
16353
16354 { echo "$as_me:$LINENO: result: no" >&5
16355echo "${ECHO_T}no" >&6; }
16356 cat >>confdefs.h <<\_ACEOF
16357#define BROKEN_GETADDRINFO 1
16358_ACEOF
16359
16360
16361fi
16362rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16363fi
16364
16365
16366fi
16367
16368if test "x$check_for_conflicting_getspnam" = "x1"; then
16369 { echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5
16370echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6; }
16371 cat >conftest.$ac_ext <<_ACEOF
16372
16373#include <shadow.h>
16374int main(void) {exit(0);}
16375
16376_ACEOF
16377rm -f conftest.$ac_objext
16378if { (ac_try="$ac_compile"
16379case "(($ac_try" in
16380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16381 *) ac_try_echo=$ac_try;;
16382esac
16383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16384 (eval "$ac_compile") 2>conftest.er1
16385 ac_status=$?
16386 grep -v '^ *+' conftest.er1 >conftest.err
16387 rm -f conftest.er1
16388 cat conftest.err >&5
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); } && {
16391 test -z "$ac_c_werror_flag" ||
16392 test ! -s conftest.err
16393 } && test -s conftest.$ac_objext; then
16394
16395 { echo "$as_me:$LINENO: result: no" >&5
16396echo "${ECHO_T}no" >&6; }
16397
16398else
16399 echo "$as_me: failed program was:" >&5
16400sed 's/^/| /' conftest.$ac_ext >&5
16401
16402
16403 { echo "$as_me:$LINENO: result: yes" >&5
16404echo "${ECHO_T}yes" >&6; }
16405
16406cat >>confdefs.h <<\_ACEOF
16407#define GETSPNAM_CONFLICTING_DEFS 1
16408_ACEOF
16409
16410
16411
16412fi
16413
16414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16415fi
16416
16417{ echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16418echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
16419if test "${ac_cv_func_getpgrp_void+set}" = set; then
16420 echo $ECHO_N "(cached) $ECHO_C" >&6
16421else
16422 # Use it with a single arg.
16423cat >conftest.$ac_ext <<_ACEOF
16424/* confdefs.h. */
16425_ACEOF
16426cat confdefs.h >>conftest.$ac_ext
16427cat >>conftest.$ac_ext <<_ACEOF
16428/* end confdefs.h. */
16429$ac_includes_default
16430int
16431main ()
16432{
16433getpgrp (0);
16434 ;
16435 return 0;
16436}
16437_ACEOF
16438rm -f conftest.$ac_objext
16439if { (ac_try="$ac_compile"
16440case "(($ac_try" in
16441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16442 *) ac_try_echo=$ac_try;;
16443esac
16444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16445 (eval "$ac_compile") 2>conftest.er1
16446 ac_status=$?
16447 grep -v '^ *+' conftest.er1 >conftest.err
16448 rm -f conftest.er1
16449 cat conftest.err >&5
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); } && {
16452 test -z "$ac_c_werror_flag" ||
16453 test ! -s conftest.err
16454 } && test -s conftest.$ac_objext; then
16455 ac_cv_func_getpgrp_void=no
16456else
16457 echo "$as_me: failed program was:" >&5
16458sed 's/^/| /' conftest.$ac_ext >&5
16459
16460 ac_cv_func_getpgrp_void=yes
16461fi
16462
16463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16464
16465fi
16466{ echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16467echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
16468if test $ac_cv_func_getpgrp_void = yes; then
16469
16470cat >>confdefs.h <<\_ACEOF
16471#define GETPGRP_VOID 1
16472_ACEOF
16473
16474fi
16475
16476
16477# Search for OpenSSL
16478saved_CPPFLAGS="$CPPFLAGS"
16479saved_LDFLAGS="$LDFLAGS"
16480
16481# Check whether --with-ssl-dir was given.
16482if test "${with_ssl_dir+set}" = set; then
16483 withval=$with_ssl_dir;
16484 if test "x$withval" != "xno" ; then
16485 case "$withval" in
16486 # Relative paths
16487 ./*|../*) withval="`pwd`/$withval"
16488 esac
16489 if test -d "$withval/lib"; then
16490 if test -n "${need_dash_r}"; then
16491 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
16492 else
16493 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
16494 fi
16495 else
16496 if test -n "${need_dash_r}"; then
16497 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
16498 else
16499 LDFLAGS="-L${withval} ${LDFLAGS}"
16500 fi
16501 fi
16502 if test -d "$withval/include"; then
16503 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
16504 else
16505 CPPFLAGS="-I${withval} ${CPPFLAGS}"
16506 fi
16507 fi
16508
16509
16510fi
16511
16512LIBS="-lcrypto $LIBS"
16513cat >conftest.$ac_ext <<_ACEOF
16514/* confdefs.h. */
16515_ACEOF
16516cat confdefs.h >>conftest.$ac_ext
16517cat >>conftest.$ac_ext <<_ACEOF
16518/* end confdefs.h. */
16519
16520/* Override any GCC internal prototype to avoid an error.
16521 Use char because int might match the return type of a GCC
16522 builtin and then its argument prototype would still apply. */
16523#ifdef __cplusplus
16524extern "C"
16525#endif
16526char RAND_add ();
16527int
16528main ()
16529{
16530return RAND_add ();
16531 ;
16532 return 0;
16533}
16534_ACEOF
16535rm -f conftest.$ac_objext conftest$ac_exeext
16536if { (ac_try="$ac_link"
16537case "(($ac_try" in
16538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16539 *) ac_try_echo=$ac_try;;
16540esac
16541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16542 (eval "$ac_link") 2>conftest.er1
16543 ac_status=$?
16544 grep -v '^ *+' conftest.er1 >conftest.err
16545 rm -f conftest.er1
16546 cat conftest.err >&5
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); } && {
16549 test -z "$ac_c_werror_flag" ||
16550 test ! -s conftest.err
16551 } && test -s conftest$ac_exeext &&
16552 $as_test_x conftest$ac_exeext; then
16553
16554cat >>confdefs.h <<\_ACEOF
16555#define HAVE_OPENSSL 1
16556_ACEOF
16557
16558else
16559 echo "$as_me: failed program was:" >&5
16560sed 's/^/| /' conftest.$ac_ext >&5
16561
16562
16563 if test -n "${need_dash_r}"; then
16564 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
16565 else
16566 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
16567 fi
16568 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
16569 if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
16570 { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
16571echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
16572if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
16573 echo $ECHO_N "(cached) $ECHO_C" >&6
16574fi
16575{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
16576echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
16577else
16578 # Is the header compilable?
16579{ echo "$as_me:$LINENO: checking openssl/opensslv.h usability" >&5
16580echo $ECHO_N "checking openssl/opensslv.h usability... $ECHO_C" >&6; }
16581cat >conftest.$ac_ext <<_ACEOF
16582/* confdefs.h. */
16583_ACEOF
16584cat confdefs.h >>conftest.$ac_ext
16585cat >>conftest.$ac_ext <<_ACEOF
16586/* end confdefs.h. */
16587$ac_includes_default
16588#include <openssl/opensslv.h>
16589_ACEOF
16590rm -f conftest.$ac_objext
16591if { (ac_try="$ac_compile"
16592case "(($ac_try" in
16593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16594 *) ac_try_echo=$ac_try;;
16595esac
16596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16597 (eval "$ac_compile") 2>conftest.er1
16598 ac_status=$?
16599 grep -v '^ *+' conftest.er1 >conftest.err
16600 rm -f conftest.er1
16601 cat conftest.err >&5
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); } && {
16604 test -z "$ac_c_werror_flag" ||
16605 test ! -s conftest.err
16606 } && test -s conftest.$ac_objext; then
16607 ac_header_compiler=yes
16608else
16609 echo "$as_me: failed program was:" >&5
16610sed 's/^/| /' conftest.$ac_ext >&5
16611
16612 ac_header_compiler=no
16613fi
16614
16615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16616{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16617echo "${ECHO_T}$ac_header_compiler" >&6; }
16618
16619# Is the header present?
16620{ echo "$as_me:$LINENO: checking openssl/opensslv.h presence" >&5
16621echo $ECHO_N "checking openssl/opensslv.h presence... $ECHO_C" >&6; }
16622cat >conftest.$ac_ext <<_ACEOF
16623/* confdefs.h. */
16624_ACEOF
16625cat confdefs.h >>conftest.$ac_ext
16626cat >>conftest.$ac_ext <<_ACEOF
16627/* end confdefs.h. */
16628#include <openssl/opensslv.h>
16629_ACEOF
16630if { (ac_try="$ac_cpp conftest.$ac_ext"
16631case "(($ac_try" in
16632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16633 *) ac_try_echo=$ac_try;;
16634esac
16635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16637 ac_status=$?
16638 grep -v '^ *+' conftest.er1 >conftest.err
16639 rm -f conftest.er1
16640 cat conftest.err >&5
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); } >/dev/null && {
16643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16644 test ! -s conftest.err
16645 }; then
16646 ac_header_preproc=yes
16647else
16648 echo "$as_me: failed program was:" >&5
16649sed 's/^/| /' conftest.$ac_ext >&5
16650
16651 ac_header_preproc=no
16652fi
16653
16654rm -f conftest.err conftest.$ac_ext
16655{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16656echo "${ECHO_T}$ac_header_preproc" >&6; }
16657
16658# So? What about this header?
16659case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16660 yes:no: )
16661 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&5
16662echo "$as_me: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16663 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&5
16664echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&2;}
16665 ac_header_preproc=yes
16666 ;;
16667 no:yes:* )
16668 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: present but cannot be compiled" >&5
16669echo "$as_me: WARNING: openssl/opensslv.h: present but cannot be compiled" >&2;}
16670 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&5
16671echo "$as_me: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&2;}
16672 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&5
16673echo "$as_me: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&2;}
16674 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&5
16675echo "$as_me: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&2;}
16676 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&5
16677echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&2;}
16678 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&5
16679echo "$as_me: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&2;}
16680 ( cat <<\_ASBOX
16681## ------------------------------------------- ##
16682## Report this to openssh-unix-dev@mindrot.org ##
16683## ------------------------------------------- ##
16684_ASBOX
16685 ) | sed "s/^/$as_me: WARNING: /" >&2
16686 ;;
16687esac
16688{ echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
16689echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
16690if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
16691 echo $ECHO_N "(cached) $ECHO_C" >&6
16692else
16693 ac_cv_header_openssl_opensslv_h=$ac_header_preproc
16694fi
16695{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
16696echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
16697
16698fi
16699if test $ac_cv_header_openssl_opensslv_h = yes; then
16700 :
16701else
16702 { { echo "$as_me:$LINENO: error: *** OpenSSL headers missing - please install first or check config.log ***" >&5
16703echo "$as_me: error: *** OpenSSL headers missing - please install first or check config.log ***" >&2;}
16704 { (exit 1); exit 1; }; }
16705fi
16706
16707
16708 cat >conftest.$ac_ext <<_ACEOF
16709/* confdefs.h. */
16710_ACEOF
16711cat confdefs.h >>conftest.$ac_ext
16712cat >>conftest.$ac_ext <<_ACEOF
16713/* end confdefs.h. */
16714
16715/* Override any GCC internal prototype to avoid an error.
16716 Use char because int might match the return type of a GCC
16717 builtin and then its argument prototype would still apply. */
16718#ifdef __cplusplus
16719extern "C"
16720#endif
16721char RAND_add ();
16722int
16723main ()
16724{
16725return RAND_add ();
16726 ;
16727 return 0;
16728}
16729_ACEOF
16730rm -f conftest.$ac_objext conftest$ac_exeext
16731if { (ac_try="$ac_link"
16732case "(($ac_try" in
16733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16734 *) ac_try_echo=$ac_try;;
16735esac
16736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16737 (eval "$ac_link") 2>conftest.er1
16738 ac_status=$?
16739 grep -v '^ *+' conftest.er1 >conftest.err
16740 rm -f conftest.er1
16741 cat conftest.err >&5
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); } && {
16744 test -z "$ac_c_werror_flag" ||
16745 test ! -s conftest.err
16746 } && test -s conftest$ac_exeext &&
16747 $as_test_x conftest$ac_exeext; then
16748 cat >>confdefs.h <<\_ACEOF
16749#define HAVE_OPENSSL 1
16750_ACEOF
16751
16752else
16753 echo "$as_me: failed program was:" >&5
16754sed 's/^/| /' conftest.$ac_ext >&5
16755
16756
16757 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
16758echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
16759 { (exit 1); exit 1; }; }
16760
16761
16762fi
16763
16764rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16765 conftest$ac_exeext conftest.$ac_ext
16766
16767
16768fi
16769
16770rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16771 conftest$ac_exeext conftest.$ac_ext
16772
16773# Determine OpenSSL header version
16774{ echo "$as_me:$LINENO: checking OpenSSL header version" >&5
16775echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6; }
16776if test "$cross_compiling" = yes; then
16777
16778 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
16779echo "$as_me: WARNING: cross compiling: not checking" >&2;}
16780
16781
16782else
16783 cat >conftest.$ac_ext <<_ACEOF
16784/* confdefs.h. */
16785_ACEOF
16786cat confdefs.h >>conftest.$ac_ext
16787cat >>conftest.$ac_ext <<_ACEOF
16788/* end confdefs.h. */
16789
16790#include <stdio.h>
16791#include <string.h>
16792#include <openssl/opensslv.h>
16793#define DATA "conftest.sslincver"
16794int main(void) {
16795 FILE *fd;
16796 int rc;
16797
16798 fd = fopen(DATA,"w");
16799 if(fd == NULL)
16800 exit(1);
16801
16802 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
16803 exit(1);
16804
16805 exit(0);
16806}
16807
16808_ACEOF
16809rm -f conftest$ac_exeext
16810if { (ac_try="$ac_link"
16811case "(($ac_try" in
16812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16813 *) ac_try_echo=$ac_try;;
16814esac
16815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16816 (eval "$ac_link") 2>&5
16817 ac_status=$?
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16820 { (case "(($ac_try" in
16821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822 *) ac_try_echo=$ac_try;;
16823esac
16824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825 (eval "$ac_try") 2>&5
16826 ac_status=$?
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; }; then
16829
16830 ssl_header_ver=`cat conftest.sslincver`
16831 { echo "$as_me:$LINENO: result: $ssl_header_ver" >&5
16832echo "${ECHO_T}$ssl_header_ver" >&6; }
16833
16834else
16835 echo "$as_me: program exited with status $ac_status" >&5
16836echo "$as_me: failed program was:" >&5
16837sed 's/^/| /' conftest.$ac_ext >&5
16838
16839( exit $ac_status )
16840
16841 { echo "$as_me:$LINENO: result: not found" >&5
16842echo "${ECHO_T}not found" >&6; }
16843 { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5
16844echo "$as_me: error: OpenSSL version header not found." >&2;}
16845 { (exit 1); exit 1; }; }
16846
16847fi
16848rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16849fi
16850
16851
16852
16853# Determine OpenSSL library version
16854{ echo "$as_me:$LINENO: checking OpenSSL library version" >&5
16855echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6; }
16856if test "$cross_compiling" = yes; then
16857
16858 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
16859echo "$as_me: WARNING: cross compiling: not checking" >&2;}
16860
16861
16862else
16863 cat >conftest.$ac_ext <<_ACEOF
16864/* confdefs.h. */
16865_ACEOF
16866cat confdefs.h >>conftest.$ac_ext
16867cat >>conftest.$ac_ext <<_ACEOF
16868/* end confdefs.h. */
16869
16870#include <stdio.h>
16871#include <string.h>
16872#include <openssl/opensslv.h>
16873#include <openssl/crypto.h>
16874#define DATA "conftest.ssllibver"
16875int main(void) {
16876 FILE *fd;
16877 int rc;
16878
16879 fd = fopen(DATA,"w");
16880 if(fd == NULL)
16881 exit(1);
16882
16883 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
16884 exit(1);
16885
16886 exit(0);
16887}
16888
16889_ACEOF
16890rm -f conftest$ac_exeext
16891if { (ac_try="$ac_link"
16892case "(($ac_try" in
16893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16894 *) ac_try_echo=$ac_try;;
16895esac
16896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16897 (eval "$ac_link") 2>&5
16898 ac_status=$?
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16901 { (case "(($ac_try" in
16902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16903 *) ac_try_echo=$ac_try;;
16904esac
16905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16906 (eval "$ac_try") 2>&5
16907 ac_status=$?
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); }; }; then
16910
16911 ssl_library_ver=`cat conftest.ssllibver`
16912 { echo "$as_me:$LINENO: result: $ssl_library_ver" >&5
16913echo "${ECHO_T}$ssl_library_ver" >&6; }
16914
16915else
16916 echo "$as_me: program exited with status $ac_status" >&5
16917echo "$as_me: failed program was:" >&5
16918sed 's/^/| /' conftest.$ac_ext >&5
16919
16920( exit $ac_status )
16921
16922 { echo "$as_me:$LINENO: result: not found" >&5
16923echo "${ECHO_T}not found" >&6; }
16924 { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5
16925echo "$as_me: error: OpenSSL library not found." >&2;}
16926 { (exit 1); exit 1; }; }
16927
16928fi
16929rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16930fi
16931
16932
16933
16934
16935# Check whether --with-openssl-header-check was given.
16936if test "${with_openssl_header_check+set}" = set; then
16937 withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then
16938 openssl_check_nonfatal=1
16939 fi
16940
16941
16942fi
16943
16944
16945# Sanity check OpenSSL headers
16946{ echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
16947echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; }
16948if test "$cross_compiling" = yes; then
16949
16950 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
16951echo "$as_me: WARNING: cross compiling: not checking" >&2;}
16952
16953
16954else
16955 cat >conftest.$ac_ext <<_ACEOF
16956/* confdefs.h. */
16957_ACEOF
16958cat confdefs.h >>conftest.$ac_ext
16959cat >>conftest.$ac_ext <<_ACEOF
16960/* end confdefs.h. */
16961
16962#include <string.h>
16963#include <openssl/opensslv.h>
16964int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
16965
16966_ACEOF
16967rm -f conftest$ac_exeext
16968if { (ac_try="$ac_link"
16969case "(($ac_try" in
16970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16971 *) ac_try_echo=$ac_try;;
16972esac
16973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16974 (eval "$ac_link") 2>&5
16975 ac_status=$?
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16978 { (case "(($ac_try" in
16979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16980 *) ac_try_echo=$ac_try;;
16981esac
16982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16983 (eval "$ac_try") 2>&5
16984 ac_status=$?
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); }; }; then
16987
16988 { echo "$as_me:$LINENO: result: yes" >&5
16989echo "${ECHO_T}yes" >&6; }
16990
16991else
16992 echo "$as_me: program exited with status $ac_status" >&5
16993echo "$as_me: failed program was:" >&5
16994sed 's/^/| /' conftest.$ac_ext >&5
16995
16996( exit $ac_status )
16997
16998 { echo "$as_me:$LINENO: result: no" >&5
16999echo "${ECHO_T}no" >&6; }
17000 if test "x$openssl_check_nonfatal" = "x"; then
17001 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your
17002library. Check config.log for details.
17003If you are sure your installation is consistent, you can disable the check
17004by running \"./configure --without-openssl-header-check\".
17005Also see contrib/findssl.sh for help identifying header/library mismatches.
17006" >&5
17007echo "$as_me: error: Your OpenSSL headers do not match your
17008library. Check config.log for details.
17009If you are sure your installation is consistent, you can disable the check
17010by running \"./configure --without-openssl-header-check\".
17011Also see contrib/findssl.sh for help identifying header/library mismatches.
17012" >&2;}
17013 { (exit 1); exit 1; }; }
17014 else
17015 { echo "$as_me:$LINENO: WARNING: Your OpenSSL headers do not match your
17016library. Check config.log for details.
17017Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
17018echo "$as_me: WARNING: Your OpenSSL headers do not match your
17019library. Check config.log for details.
17020Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
17021 fi
17022
17023fi
17024rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17025fi
17026
17027
17028
17029{ echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5
17030echo $ECHO_N "checking if programs using OpenSSL functions will link... $ECHO_C" >&6; }
17031cat >conftest.$ac_ext <<_ACEOF
17032/* confdefs.h. */
17033_ACEOF
17034cat confdefs.h >>conftest.$ac_ext
17035cat >>conftest.$ac_ext <<_ACEOF
17036/* end confdefs.h. */
17037
17038#include <openssl/evp.h>
17039int main(void) { SSLeay_add_all_algorithms(); }
17040
17041_ACEOF
17042rm -f conftest.$ac_objext conftest$ac_exeext
17043if { (ac_try="$ac_link"
17044case "(($ac_try" in
17045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17046 *) ac_try_echo=$ac_try;;
17047esac
17048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17049 (eval "$ac_link") 2>conftest.er1
17050 ac_status=$?
17051 grep -v '^ *+' conftest.er1 >conftest.err
17052 rm -f conftest.er1
17053 cat conftest.err >&5
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } && {
17056 test -z "$ac_c_werror_flag" ||
17057 test ! -s conftest.err
17058 } && test -s conftest$ac_exeext &&
17059 $as_test_x conftest$ac_exeext; then
17060
17061 { echo "$as_me:$LINENO: result: yes" >&5
17062echo "${ECHO_T}yes" >&6; }
17063
17064else
17065 echo "$as_me: failed program was:" >&5
17066sed 's/^/| /' conftest.$ac_ext >&5
17067
17068
17069 { echo "$as_me:$LINENO: result: no" >&5
17070echo "${ECHO_T}no" >&6; }
17071 saved_LIBS="$LIBS"
17072 LIBS="$LIBS -ldl"
17073 { echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5
17074echo $ECHO_N "checking if programs using OpenSSL need -ldl... $ECHO_C" >&6; }
17075 cat >conftest.$ac_ext <<_ACEOF
17076/* confdefs.h. */
17077_ACEOF
17078cat confdefs.h >>conftest.$ac_ext
17079cat >>conftest.$ac_ext <<_ACEOF
17080/* end confdefs.h. */
17081
17082#include <openssl/evp.h>
17083int main(void) { SSLeay_add_all_algorithms(); }
17084
17085_ACEOF
17086rm -f conftest.$ac_objext conftest$ac_exeext
17087if { (ac_try="$ac_link"
17088case "(($ac_try" in
17089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17090 *) ac_try_echo=$ac_try;;
17091esac
17092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17093 (eval "$ac_link") 2>conftest.er1
17094 ac_status=$?
17095 grep -v '^ *+' conftest.er1 >conftest.err
17096 rm -f conftest.er1
17097 cat conftest.err >&5
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); } && {
17100 test -z "$ac_c_werror_flag" ||
17101 test ! -s conftest.err
17102 } && test -s conftest$ac_exeext &&
17103 $as_test_x conftest$ac_exeext; then
17104
17105 { echo "$as_me:$LINENO: result: yes" >&5
17106echo "${ECHO_T}yes" >&6; }
17107
17108else
17109 echo "$as_me: failed program was:" >&5
17110sed 's/^/| /' conftest.$ac_ext >&5
17111
17112
17113 { echo "$as_me:$LINENO: result: no" >&5
17114echo "${ECHO_T}no" >&6; }
17115 LIBS="$saved_LIBS"
17116
17117
17118fi
17119
17120rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17121 conftest$ac_exeext conftest.$ac_ext
17122
17123
17124fi
17125
17126rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17127 conftest$ac_exeext conftest.$ac_ext
17128
17129
17130# Check whether --with-ssl-engine was given.
17131if test "${with_ssl_engine+set}" = set; then
17132 withval=$with_ssl_engine; if test "x$withval" != "xno" ; then
17133 { echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5
17134echo $ECHO_N "checking for OpenSSL ENGINE support... $ECHO_C" >&6; }
17135 cat >conftest.$ac_ext <<_ACEOF
17136/* confdefs.h. */
17137_ACEOF
17138cat confdefs.h >>conftest.$ac_ext
17139cat >>conftest.$ac_ext <<_ACEOF
17140/* end confdefs.h. */
17141 #include <openssl/engine.h>
17142int
17143main ()
17144{
17145
17146ENGINE_load_builtin_engines();ENGINE_register_all_complete();
17147
17148 ;
17149 return 0;
17150}
17151_ACEOF
17152rm -f conftest.$ac_objext
17153if { (ac_try="$ac_compile"
17154case "(($ac_try" in
17155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156 *) ac_try_echo=$ac_try;;
17157esac
17158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159 (eval "$ac_compile") 2>conftest.er1
17160 ac_status=$?
17161 grep -v '^ *+' conftest.er1 >conftest.err
17162 rm -f conftest.er1
17163 cat conftest.err >&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); } && {
17166 test -z "$ac_c_werror_flag" ||
17167 test ! -s conftest.err
17168 } && test -s conftest.$ac_objext; then
17169 { echo "$as_me:$LINENO: result: yes" >&5
17170echo "${ECHO_T}yes" >&6; }
17171
17172cat >>confdefs.h <<\_ACEOF
17173#define USE_OPENSSL_ENGINE 1
17174_ACEOF
17175
17176
17177else
17178 echo "$as_me: failed program was:" >&5
17179sed 's/^/| /' conftest.$ac_ext >&5
17180
17181 { { echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5
17182echo "$as_me: error: OpenSSL ENGINE support not found" >&2;}
17183 { (exit 1); exit 1; }; }
17184
17185fi
17186
17187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17188 fi
17189
17190fi
17191
17192
17193# Check for OpenSSL without EVP_aes_{192,256}_cbc
17194{ echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5
17195echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; }
17196cat >conftest.$ac_ext <<_ACEOF
17197/* confdefs.h. */
17198_ACEOF
17199cat confdefs.h >>conftest.$ac_ext
17200cat >>conftest.$ac_ext <<_ACEOF
17201/* end confdefs.h. */
17202
17203#include <string.h>
17204#include <openssl/evp.h>
17205int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);}
17206
17207_ACEOF
17208rm -f conftest.$ac_objext conftest$ac_exeext
17209if { (ac_try="$ac_link"
17210case "(($ac_try" in
17211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212 *) ac_try_echo=$ac_try;;
17213esac
17214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215 (eval "$ac_link") 2>conftest.er1
17216 ac_status=$?
17217 grep -v '^ *+' conftest.er1 >conftest.err
17218 rm -f conftest.er1
17219 cat conftest.err >&5
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); } && {
17222 test -z "$ac_c_werror_flag" ||
17223 test ! -s conftest.err
17224 } && test -s conftest$ac_exeext &&
17225 $as_test_x conftest$ac_exeext; then
17226
17227 { echo "$as_me:$LINENO: result: no" >&5
17228echo "${ECHO_T}no" >&6; }
17229
17230else
17231 echo "$as_me: failed program was:" >&5
17232sed 's/^/| /' conftest.$ac_ext >&5
17233
17234
17235 { echo "$as_me:$LINENO: result: yes" >&5
17236echo "${ECHO_T}yes" >&6; }
17237
17238cat >>confdefs.h <<\_ACEOF
17239#define OPENSSL_LOBOTOMISED_AES 1
17240_ACEOF
17241
17242
17243
17244fi
17245
17246rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17247 conftest$ac_exeext conftest.$ac_ext
17248
17249{ echo "$as_me:$LINENO: checking if EVP_DigestUpdate returns an int" >&5
17250echo $ECHO_N "checking if EVP_DigestUpdate returns an int... $ECHO_C" >&6; }
17251cat >conftest.$ac_ext <<_ACEOF
17252/* confdefs.h. */
17253_ACEOF
17254cat confdefs.h >>conftest.$ac_ext
17255cat >>conftest.$ac_ext <<_ACEOF
17256/* end confdefs.h. */
17257
17258#include <string.h>
17259#include <openssl/evp.h>
17260int main(void) { if(EVP_DigestUpdate(NULL, NULL,0)) exit(0); }
17261
17262_ACEOF
17263rm -f conftest.$ac_objext conftest$ac_exeext
17264if { (ac_try="$ac_link"
17265case "(($ac_try" in
17266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17267 *) ac_try_echo=$ac_try;;
17268esac
17269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17270 (eval "$ac_link") 2>conftest.er1
17271 ac_status=$?
17272 grep -v '^ *+' conftest.er1 >conftest.err
17273 rm -f conftest.er1
17274 cat conftest.err >&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); } && {
17277 test -z "$ac_c_werror_flag" ||
17278 test ! -s conftest.err
17279 } && test -s conftest$ac_exeext &&
17280 $as_test_x conftest$ac_exeext; then
17281
17282 { echo "$as_me:$LINENO: result: yes" >&5
17283echo "${ECHO_T}yes" >&6; }
17284
17285else
17286 echo "$as_me: failed program was:" >&5
17287sed 's/^/| /' conftest.$ac_ext >&5
17288
17289
17290 { echo "$as_me:$LINENO: result: no" >&5
17291echo "${ECHO_T}no" >&6; }
17292
17293cat >>confdefs.h <<\_ACEOF
17294#define OPENSSL_EVP_DIGESTUPDATE_VOID 1
17295_ACEOF
17296
17297
17298
17299fi
17300
17301rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17302 conftest$ac_exeext conftest.$ac_ext
17303
17304# Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
17305# because the system crypt() is more featureful.
17306if test "x$check_for_libcrypt_before" = "x1"; then
17307
17308{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17309echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17310if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17311 echo $ECHO_N "(cached) $ECHO_C" >&6
17312else
17313 ac_check_lib_save_LIBS=$LIBS
17314LIBS="-lcrypt $LIBS"
17315cat >conftest.$ac_ext <<_ACEOF
17316/* confdefs.h. */
17317_ACEOF
17318cat confdefs.h >>conftest.$ac_ext
17319cat >>conftest.$ac_ext <<_ACEOF
17320/* end confdefs.h. */
17321
17322/* Override any GCC internal prototype to avoid an error.
17323 Use char because int might match the return type of a GCC
17324 builtin and then its argument prototype would still apply. */
17325#ifdef __cplusplus
17326extern "C"
17327#endif
17328char crypt ();
17329int
17330main ()
17331{
17332return crypt ();
17333 ;
17334 return 0;
17335}
17336_ACEOF
17337rm -f conftest.$ac_objext conftest$ac_exeext
17338if { (ac_try="$ac_link"
17339case "(($ac_try" in
17340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17341 *) ac_try_echo=$ac_try;;
17342esac
17343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17344 (eval "$ac_link") 2>conftest.er1
17345 ac_status=$?
17346 grep -v '^ *+' conftest.er1 >conftest.err
17347 rm -f conftest.er1
17348 cat conftest.err >&5
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); } && {
17351 test -z "$ac_c_werror_flag" ||
17352 test ! -s conftest.err
17353 } && test -s conftest$ac_exeext &&
17354 $as_test_x conftest$ac_exeext; then
17355 ac_cv_lib_crypt_crypt=yes
17356else
17357 echo "$as_me: failed program was:" >&5
17358sed 's/^/| /' conftest.$ac_ext >&5
17359
17360 ac_cv_lib_crypt_crypt=no
17361fi
17362
17363rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17364 conftest$ac_exeext conftest.$ac_ext
17365LIBS=$ac_check_lib_save_LIBS
17366fi
17367{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17368echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17369if test $ac_cv_lib_crypt_crypt = yes; then
17370 cat >>confdefs.h <<_ACEOF
17371#define HAVE_LIBCRYPT 1
17372_ACEOF
17373
17374 LIBS="-lcrypt $LIBS"
17375
17376fi
17377
17378fi
17379
17380# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
17381# version in OpenSSL.
17382if test "x$check_for_libcrypt_later" = "x1"; then
17383 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17384echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17385if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17386 echo $ECHO_N "(cached) $ECHO_C" >&6
17387else
17388 ac_check_lib_save_LIBS=$LIBS
17389LIBS="-lcrypt $LIBS"
17390cat >conftest.$ac_ext <<_ACEOF
17391/* confdefs.h. */
17392_ACEOF
17393cat confdefs.h >>conftest.$ac_ext
17394cat >>conftest.$ac_ext <<_ACEOF
17395/* end confdefs.h. */
17396
17397/* Override any GCC internal prototype to avoid an error.
17398 Use char because int might match the return type of a GCC
17399 builtin and then its argument prototype would still apply. */
17400#ifdef __cplusplus
17401extern "C"
17402#endif
17403char crypt ();
17404int
17405main ()
17406{
17407return crypt ();
17408 ;
17409 return 0;
17410}
17411_ACEOF
17412rm -f conftest.$ac_objext conftest$ac_exeext
17413if { (ac_try="$ac_link"
17414case "(($ac_try" in
17415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17416 *) ac_try_echo=$ac_try;;
17417esac
17418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17419 (eval "$ac_link") 2>conftest.er1
17420 ac_status=$?
17421 grep -v '^ *+' conftest.er1 >conftest.err
17422 rm -f conftest.er1
17423 cat conftest.err >&5
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); } && {
17426 test -z "$ac_c_werror_flag" ||
17427 test ! -s conftest.err
17428 } && test -s conftest$ac_exeext &&
17429 $as_test_x conftest$ac_exeext; then
17430 ac_cv_lib_crypt_crypt=yes
17431else
17432 echo "$as_me: failed program was:" >&5
17433sed 's/^/| /' conftest.$ac_ext >&5
17434
17435 ac_cv_lib_crypt_crypt=no
17436fi
17437
17438rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17439 conftest$ac_exeext conftest.$ac_ext
17440LIBS=$ac_check_lib_save_LIBS
17441fi
17442{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17443echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17444if test $ac_cv_lib_crypt_crypt = yes; then
17445 LIBS="$LIBS -lcrypt"
17446fi
17447
17448fi
17449
17450# Search for SHA256 support in libc and/or OpenSSL
17451
17452
17453for ac_func in SHA256_Update EVP_sha256
17454do
17455as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17456{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17457echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17458if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17459 echo $ECHO_N "(cached) $ECHO_C" >&6
17460else
17461 cat >conftest.$ac_ext <<_ACEOF
17462/* confdefs.h. */
17463_ACEOF
17464cat confdefs.h >>conftest.$ac_ext
17465cat >>conftest.$ac_ext <<_ACEOF
17466/* end confdefs.h. */
17467/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17469#define $ac_func innocuous_$ac_func
17470
17471/* System header to define __stub macros and hopefully few prototypes,
17472 which can conflict with char $ac_func (); below.
17473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17474 <limits.h> exists even on freestanding compilers. */
17475
17476#ifdef __STDC__
17477# include <limits.h>
17478#else
17479# include <assert.h>
17480#endif
17481
17482#undef $ac_func
17483
17484/* Override any GCC internal prototype to avoid an error.
17485 Use char because int might match the return type of a GCC
17486 builtin and then its argument prototype would still apply. */
17487#ifdef __cplusplus
17488extern "C"
17489#endif
17490char $ac_func ();
17491/* The GNU C library defines this for functions which it implements
17492 to always fail with ENOSYS. Some functions are actually named
17493 something starting with __ and the normal name is an alias. */
17494#if defined __stub_$ac_func || defined __stub___$ac_func
17495choke me
17496#endif
17497
17498int
17499main ()
17500{
17501return $ac_func ();
17502 ;
17503 return 0;
17504}
17505_ACEOF
17506rm -f conftest.$ac_objext conftest$ac_exeext
17507if { (ac_try="$ac_link"
17508case "(($ac_try" in
17509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17510 *) ac_try_echo=$ac_try;;
17511esac
17512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17513 (eval "$ac_link") 2>conftest.er1
17514 ac_status=$?
17515 grep -v '^ *+' conftest.er1 >conftest.err
17516 rm -f conftest.er1
17517 cat conftest.err >&5
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); } && {
17520 test -z "$ac_c_werror_flag" ||
17521 test ! -s conftest.err
17522 } && test -s conftest$ac_exeext &&
17523 $as_test_x conftest$ac_exeext; then
17524 eval "$as_ac_var=yes"
17525else
17526 echo "$as_me: failed program was:" >&5
17527sed 's/^/| /' conftest.$ac_ext >&5
17528
17529 eval "$as_ac_var=no"
17530fi
17531
17532rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17533 conftest$ac_exeext conftest.$ac_ext
17534fi
17535ac_res=`eval echo '${'$as_ac_var'}'`
17536 { echo "$as_me:$LINENO: result: $ac_res" >&5
17537echo "${ECHO_T}$ac_res" >&6; }
17538if test `eval echo '${'$as_ac_var'}'` = yes; then
17539 cat >>confdefs.h <<_ACEOF
17540#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17541_ACEOF
17542
17543fi
17544done
17545
17546
17547saved_LIBS="$LIBS"
17548{ echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5
17549echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; }
17550if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then
17551 echo $ECHO_N "(cached) $ECHO_C" >&6
17552else
17553 ac_check_lib_save_LIBS=$LIBS
17554LIBS="-liaf $LIBS"
17555cat >conftest.$ac_ext <<_ACEOF
17556/* confdefs.h. */
17557_ACEOF
17558cat confdefs.h >>conftest.$ac_ext
17559cat >>conftest.$ac_ext <<_ACEOF
17560/* end confdefs.h. */
17561
17562/* Override any GCC internal prototype to avoid an error.
17563 Use char because int might match the return type of a GCC
17564 builtin and then its argument prototype would still apply. */
17565#ifdef __cplusplus
17566extern "C"
17567#endif
17568char ia_openinfo ();
17569int
17570main ()
17571{
17572return ia_openinfo ();
17573 ;
17574 return 0;
17575}
17576_ACEOF
17577rm -f conftest.$ac_objext conftest$ac_exeext
17578if { (ac_try="$ac_link"
17579case "(($ac_try" in
17580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581 *) ac_try_echo=$ac_try;;
17582esac
17583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584 (eval "$ac_link") 2>conftest.er1
17585 ac_status=$?
17586 grep -v '^ *+' conftest.er1 >conftest.err
17587 rm -f conftest.er1
17588 cat conftest.err >&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); } && {
17591 test -z "$ac_c_werror_flag" ||
17592 test ! -s conftest.err
17593 } && test -s conftest$ac_exeext &&
17594 $as_test_x conftest$ac_exeext; then
17595 ac_cv_lib_iaf_ia_openinfo=yes
17596else
17597 echo "$as_me: failed program was:" >&5
17598sed 's/^/| /' conftest.$ac_ext >&5
17599
17600 ac_cv_lib_iaf_ia_openinfo=no
17601fi
17602
17603rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17604 conftest$ac_exeext conftest.$ac_ext
17605LIBS=$ac_check_lib_save_LIBS
17606fi
17607{ echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5
17608echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6; }
17609if test $ac_cv_lib_iaf_ia_openinfo = yes; then
17610
17611 LIBS="$LIBS -liaf"
17612
17613for ac_func in set_id
17614do
17615as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17616{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17617echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17618if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17619 echo $ECHO_N "(cached) $ECHO_C" >&6
17620else
17621 cat >conftest.$ac_ext <<_ACEOF
17622/* confdefs.h. */
17623_ACEOF
17624cat confdefs.h >>conftest.$ac_ext
17625cat >>conftest.$ac_ext <<_ACEOF
17626/* end confdefs.h. */
17627/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17629#define $ac_func innocuous_$ac_func
17630
17631/* System header to define __stub macros and hopefully few prototypes,
17632 which can conflict with char $ac_func (); below.
17633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17634 <limits.h> exists even on freestanding compilers. */
17635
17636#ifdef __STDC__
17637# include <limits.h>
17638#else
17639# include <assert.h>
17640#endif
17641
17642#undef $ac_func
17643
17644/* Override any GCC internal prototype to avoid an error.
17645 Use char because int might match the return type of a GCC
17646 builtin and then its argument prototype would still apply. */
17647#ifdef __cplusplus
17648extern "C"
17649#endif
17650char $ac_func ();
17651/* The GNU C library defines this for functions which it implements
17652 to always fail with ENOSYS. Some functions are actually named
17653 something starting with __ and the normal name is an alias. */
17654#if defined __stub_$ac_func || defined __stub___$ac_func
17655choke me
17656#endif
17657
17658int
17659main ()
17660{
17661return $ac_func ();
17662 ;
17663 return 0;
17664}
17665_ACEOF
17666rm -f conftest.$ac_objext conftest$ac_exeext
17667if { (ac_try="$ac_link"
17668case "(($ac_try" in
17669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670 *) ac_try_echo=$ac_try;;
17671esac
17672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673 (eval "$ac_link") 2>conftest.er1
17674 ac_status=$?
17675 grep -v '^ *+' conftest.er1 >conftest.err
17676 rm -f conftest.er1
17677 cat conftest.err >&5
17678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); } && {
17680 test -z "$ac_c_werror_flag" ||
17681 test ! -s conftest.err
17682 } && test -s conftest$ac_exeext &&
17683 $as_test_x conftest$ac_exeext; then
17684 eval "$as_ac_var=yes"
17685else
17686 echo "$as_me: failed program was:" >&5
17687sed 's/^/| /' conftest.$ac_ext >&5
17688
17689 eval "$as_ac_var=no"
17690fi
17691
17692rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17693 conftest$ac_exeext conftest.$ac_ext
17694fi
17695ac_res=`eval echo '${'$as_ac_var'}'`
17696 { echo "$as_me:$LINENO: result: $ac_res" >&5
17697echo "${ECHO_T}$ac_res" >&6; }
17698if test `eval echo '${'$as_ac_var'}'` = yes; then
17699 cat >>confdefs.h <<_ACEOF
17700#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17701_ACEOF
17702 SSHDLIBS="$SSHDLIBS -liaf"
17703
17704cat >>confdefs.h <<\_ACEOF
17705#define HAVE_LIBIAF 1
17706_ACEOF
17707
17708
17709fi
17710done
17711
17712
17713fi
17714
17715LIBS="$saved_LIBS"
17716
17717### Configure cryptographic random number support
17718
17719# Check wheter OpenSSL seeds itself
17720{ echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
17721echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6; }
17722if test "$cross_compiling" = yes; then
17723
17724 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
17725echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
17726 # This is safe, since all recent OpenSSL versions will
17727 # complain at runtime if not seeded correctly.
17728 OPENSSL_SEEDS_ITSELF=yes
17729
17730
17731else
17732 cat >conftest.$ac_ext <<_ACEOF
17733/* confdefs.h. */
17734_ACEOF
17735cat confdefs.h >>conftest.$ac_ext
17736cat >>conftest.$ac_ext <<_ACEOF
17737/* end confdefs.h. */
17738
17739#include <string.h>
17740#include <openssl/rand.h>
17741int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
17742
17743_ACEOF
17744rm -f conftest$ac_exeext
17745if { (ac_try="$ac_link"
17746case "(($ac_try" in
17747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17748 *) ac_try_echo=$ac_try;;
17749esac
17750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17751 (eval "$ac_link") 2>&5
17752 ac_status=$?
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17755 { (case "(($ac_try" in
17756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17757 *) ac_try_echo=$ac_try;;
17758esac
17759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17760 (eval "$ac_try") 2>&5
17761 ac_status=$?
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; }; then
17764
17765 OPENSSL_SEEDS_ITSELF=yes
17766 { echo "$as_me:$LINENO: result: yes" >&5
17767echo "${ECHO_T}yes" >&6; }
17768
17769else
17770 echo "$as_me: program exited with status $ac_status" >&5
17771echo "$as_me: failed program was:" >&5
17772sed 's/^/| /' conftest.$ac_ext >&5
17773
17774( exit $ac_status )
17775
17776 { echo "$as_me:$LINENO: result: no" >&5
17777echo "${ECHO_T}no" >&6; }
17778 # Default to use of the rand helper if OpenSSL doesn't
17779 # seed itself
17780 USE_RAND_HELPER=yes
17781
17782fi
17783rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17784fi
17785
17786
17787
17788# Check for PAM libs
17789PAM_MSG="no"
17790
17791# Check whether --with-pam was given.
17792if test "${with_pam+set}" = set; then
17793 withval=$with_pam;
17794 if test "x$withval" != "xno" ; then
17795 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
17796 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
17797 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
17798echo "$as_me: error: PAM headers not found" >&2;}
17799 { (exit 1); exit 1; }; }
17800 fi
17801
17802 saved_LIBS="$LIBS"
17803
17804{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17805echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17806if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17807 echo $ECHO_N "(cached) $ECHO_C" >&6
17808else
17809 ac_check_lib_save_LIBS=$LIBS
17810LIBS="-ldl $LIBS"
17811cat >conftest.$ac_ext <<_ACEOF
17812/* confdefs.h. */
17813_ACEOF
17814cat confdefs.h >>conftest.$ac_ext
17815cat >>conftest.$ac_ext <<_ACEOF
17816/* end confdefs.h. */
17817
17818/* Override any GCC internal prototype to avoid an error.
17819 Use char because int might match the return type of a GCC
17820 builtin and then its argument prototype would still apply. */
17821#ifdef __cplusplus
17822extern "C"
17823#endif
17824char dlopen ();
17825int
17826main ()
17827{
17828return dlopen ();
17829 ;
17830 return 0;
17831}
17832_ACEOF
17833rm -f conftest.$ac_objext conftest$ac_exeext
17834if { (ac_try="$ac_link"
17835case "(($ac_try" in
17836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17837 *) ac_try_echo=$ac_try;;
17838esac
17839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17840 (eval "$ac_link") 2>conftest.er1
17841 ac_status=$?
17842 grep -v '^ *+' conftest.er1 >conftest.err
17843 rm -f conftest.er1
17844 cat conftest.err >&5
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); } && {
17847 test -z "$ac_c_werror_flag" ||
17848 test ! -s conftest.err
17849 } && test -s conftest$ac_exeext &&
17850 $as_test_x conftest$ac_exeext; then
17851 ac_cv_lib_dl_dlopen=yes
17852else
17853 echo "$as_me: failed program was:" >&5
17854sed 's/^/| /' conftest.$ac_ext >&5
17855
17856 ac_cv_lib_dl_dlopen=no
17857fi
17858
17859rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17860 conftest$ac_exeext conftest.$ac_ext
17861LIBS=$ac_check_lib_save_LIBS
17862fi
17863{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17864echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17865if test $ac_cv_lib_dl_dlopen = yes; then
17866 cat >>confdefs.h <<_ACEOF
17867#define HAVE_LIBDL 1
17868_ACEOF
17869
17870 LIBS="-ldl $LIBS"
17871
17872fi
17873
17874
17875{ echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
17876echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; }
17877if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
17878 echo $ECHO_N "(cached) $ECHO_C" >&6
17879else
17880 ac_check_lib_save_LIBS=$LIBS
17881LIBS="-lpam $LIBS"
17882cat >conftest.$ac_ext <<_ACEOF
17883/* confdefs.h. */
17884_ACEOF
17885cat confdefs.h >>conftest.$ac_ext
17886cat >>conftest.$ac_ext <<_ACEOF
17887/* end confdefs.h. */
17888
17889/* Override any GCC internal prototype to avoid an error.
17890 Use char because int might match the return type of a GCC
17891 builtin and then its argument prototype would still apply. */
17892#ifdef __cplusplus
17893extern "C"
17894#endif
17895char pam_set_item ();
17896int
17897main ()
17898{
17899return pam_set_item ();
17900 ;
17901 return 0;
17902}
17903_ACEOF
17904rm -f conftest.$ac_objext conftest$ac_exeext
17905if { (ac_try="$ac_link"
17906case "(($ac_try" in
17907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17908 *) ac_try_echo=$ac_try;;
17909esac
17910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17911 (eval "$ac_link") 2>conftest.er1
17912 ac_status=$?
17913 grep -v '^ *+' conftest.er1 >conftest.err
17914 rm -f conftest.er1
17915 cat conftest.err >&5
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); } && {
17918 test -z "$ac_c_werror_flag" ||
17919 test ! -s conftest.err
17920 } && test -s conftest$ac_exeext &&
17921 $as_test_x conftest$ac_exeext; then
17922 ac_cv_lib_pam_pam_set_item=yes
17923else
17924 echo "$as_me: failed program was:" >&5
17925sed 's/^/| /' conftest.$ac_ext >&5
17926
17927 ac_cv_lib_pam_pam_set_item=no
17928fi
17929
17930rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17931 conftest$ac_exeext conftest.$ac_ext
17932LIBS=$ac_check_lib_save_LIBS
17933fi
17934{ echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
17935echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; }
17936if test $ac_cv_lib_pam_pam_set_item = yes; then
17937 cat >>confdefs.h <<_ACEOF
17938#define HAVE_LIBPAM 1
17939_ACEOF
17940
17941 LIBS="-lpam $LIBS"
17942
17943else
17944 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
17945echo "$as_me: error: *** libpam missing" >&2;}
17946 { (exit 1); exit 1; }; }
17947fi
17948
17949
17950for ac_func in pam_getenvlist
17951do
17952as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17953{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17954echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17955if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17956 echo $ECHO_N "(cached) $ECHO_C" >&6
17957else
17958 cat >conftest.$ac_ext <<_ACEOF
17959/* confdefs.h. */
17960_ACEOF
17961cat confdefs.h >>conftest.$ac_ext
17962cat >>conftest.$ac_ext <<_ACEOF
17963/* end confdefs.h. */
17964/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17966#define $ac_func innocuous_$ac_func
17967
17968/* System header to define __stub macros and hopefully few prototypes,
17969 which can conflict with char $ac_func (); below.
17970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17971 <limits.h> exists even on freestanding compilers. */
17972
17973#ifdef __STDC__
17974# include <limits.h>
17975#else
17976# include <assert.h>
17977#endif
17978
17979#undef $ac_func
17980
17981/* Override any GCC internal prototype to avoid an error.
17982 Use char because int might match the return type of a GCC
17983 builtin and then its argument prototype would still apply. */
17984#ifdef __cplusplus
17985extern "C"
17986#endif
17987char $ac_func ();
17988/* The GNU C library defines this for functions which it implements
17989 to always fail with ENOSYS. Some functions are actually named
17990 something starting with __ and the normal name is an alias. */
17991#if defined __stub_$ac_func || defined __stub___$ac_func
17992choke me
17993#endif
17994
17995int
17996main ()
17997{
17998return $ac_func ();
17999 ;
18000 return 0;
18001}
18002_ACEOF
18003rm -f conftest.$ac_objext conftest$ac_exeext
18004if { (ac_try="$ac_link"
18005case "(($ac_try" in
18006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18007 *) ac_try_echo=$ac_try;;
18008esac
18009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18010 (eval "$ac_link") 2>conftest.er1
18011 ac_status=$?
18012 grep -v '^ *+' conftest.er1 >conftest.err
18013 rm -f conftest.er1
18014 cat conftest.err >&5
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); } && {
18017 test -z "$ac_c_werror_flag" ||
18018 test ! -s conftest.err
18019 } && test -s conftest$ac_exeext &&
18020 $as_test_x conftest$ac_exeext; then
18021 eval "$as_ac_var=yes"
18022else
18023 echo "$as_me: failed program was:" >&5
18024sed 's/^/| /' conftest.$ac_ext >&5
18025
18026 eval "$as_ac_var=no"
18027fi
18028
18029rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18030 conftest$ac_exeext conftest.$ac_ext
18031fi
18032ac_res=`eval echo '${'$as_ac_var'}'`
18033 { echo "$as_me:$LINENO: result: $ac_res" >&5
18034echo "${ECHO_T}$ac_res" >&6; }
18035if test `eval echo '${'$as_ac_var'}'` = yes; then
18036 cat >>confdefs.h <<_ACEOF
18037#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18038_ACEOF
18039
18040fi
18041done
18042
18043
18044for ac_func in pam_putenv
18045do
18046as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18047{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18048echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18049if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18050 echo $ECHO_N "(cached) $ECHO_C" >&6
18051else
18052 cat >conftest.$ac_ext <<_ACEOF
18053/* confdefs.h. */
18054_ACEOF
18055cat confdefs.h >>conftest.$ac_ext
18056cat >>conftest.$ac_ext <<_ACEOF
18057/* end confdefs.h. */
18058/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18060#define $ac_func innocuous_$ac_func
18061
18062/* System header to define __stub macros and hopefully few prototypes,
18063 which can conflict with char $ac_func (); below.
18064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18065 <limits.h> exists even on freestanding compilers. */
18066
18067#ifdef __STDC__
18068# include <limits.h>
18069#else
18070# include <assert.h>
18071#endif
18072
18073#undef $ac_func
18074
18075/* Override any GCC internal prototype to avoid an error.
18076 Use char because int might match the return type of a GCC
18077 builtin and then its argument prototype would still apply. */
18078#ifdef __cplusplus
18079extern "C"
18080#endif
18081char $ac_func ();
18082/* The GNU C library defines this for functions which it implements
18083 to always fail with ENOSYS. Some functions are actually named
18084 something starting with __ and the normal name is an alias. */
18085#if defined __stub_$ac_func || defined __stub___$ac_func
18086choke me
18087#endif
18088
18089int
18090main ()
18091{
18092return $ac_func ();
18093 ;
18094 return 0;
18095}
18096_ACEOF
18097rm -f conftest.$ac_objext conftest$ac_exeext
18098if { (ac_try="$ac_link"
18099case "(($ac_try" in
18100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18101 *) ac_try_echo=$ac_try;;
18102esac
18103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18104 (eval "$ac_link") 2>conftest.er1
18105 ac_status=$?
18106 grep -v '^ *+' conftest.er1 >conftest.err
18107 rm -f conftest.er1
18108 cat conftest.err >&5
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); } && {
18111 test -z "$ac_c_werror_flag" ||
18112 test ! -s conftest.err
18113 } && test -s conftest$ac_exeext &&
18114 $as_test_x conftest$ac_exeext; then
18115 eval "$as_ac_var=yes"
18116else
18117 echo "$as_me: failed program was:" >&5
18118sed 's/^/| /' conftest.$ac_ext >&5
18119
18120 eval "$as_ac_var=no"
18121fi
18122
18123rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18124 conftest$ac_exeext conftest.$ac_ext
18125fi
18126ac_res=`eval echo '${'$as_ac_var'}'`
18127 { echo "$as_me:$LINENO: result: $ac_res" >&5
18128echo "${ECHO_T}$ac_res" >&6; }
18129if test `eval echo '${'$as_ac_var'}'` = yes; then
18130 cat >>confdefs.h <<_ACEOF
18131#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18132_ACEOF
18133
18134fi
18135done
18136
18137 LIBS="$saved_LIBS"
18138
18139 PAM_MSG="yes"
18140
18141 SSHDLIBS="$SSHDLIBS -lpam"
18142
18143cat >>confdefs.h <<\_ACEOF
18144#define USE_PAM 1
18145_ACEOF
18146
18147
18148 if test $ac_cv_lib_dl_dlopen = yes; then
18149 case "$LIBS" in
18150 *-ldl*)
18151 # libdl already in LIBS
18152 ;;
18153 *)
18154 SSHDLIBS="$SSHDLIBS -ldl"
18155 ;;
18156 esac
18157 fi
18158 fi
18159
18160
18161fi
18162
18163
18164# Check for older PAM
18165if test "x$PAM_MSG" = "xyes" ; then
18166 # Check PAM strerror arguments (old PAM)
18167 { echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
18168echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; }
18169 cat >conftest.$ac_ext <<_ACEOF
18170/* confdefs.h. */
18171_ACEOF
18172cat confdefs.h >>conftest.$ac_ext
18173cat >>conftest.$ac_ext <<_ACEOF
18174/* end confdefs.h. */
18175
18176#include <stdlib.h>
18177#if defined(HAVE_SECURITY_PAM_APPL_H)
18178#include <security/pam_appl.h>
18179#elif defined (HAVE_PAM_PAM_APPL_H)
18180#include <pam/pam_appl.h>
18181#endif
18182
18183int
18184main ()
18185{
18186(void)pam_strerror((pam_handle_t *)NULL, -1);
18187 ;
18188 return 0;
18189}
18190_ACEOF
18191rm -f conftest.$ac_objext
18192if { (ac_try="$ac_compile"
18193case "(($ac_try" in
18194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18195 *) ac_try_echo=$ac_try;;
18196esac
18197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18198 (eval "$ac_compile") 2>conftest.er1
18199 ac_status=$?
18200 grep -v '^ *+' conftest.er1 >conftest.err
18201 rm -f conftest.er1
18202 cat conftest.err >&5
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); } && {
18205 test -z "$ac_c_werror_flag" ||
18206 test ! -s conftest.err
18207 } && test -s conftest.$ac_objext; then
18208 { echo "$as_me:$LINENO: result: no" >&5
18209echo "${ECHO_T}no" >&6; }
18210else
18211 echo "$as_me: failed program was:" >&5
18212sed 's/^/| /' conftest.$ac_ext >&5
18213
18214
18215
18216cat >>confdefs.h <<\_ACEOF
18217#define HAVE_OLD_PAM 1
18218_ACEOF
18219
18220 { echo "$as_me:$LINENO: result: yes" >&5
18221echo "${ECHO_T}yes" >&6; }
18222 PAM_MSG="yes (old library)"
18223
18224
18225fi
18226
18227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18228fi
18229
18230# Do we want to force the use of the rand helper?
18231
18232# Check whether --with-rand-helper was given.
18233if test "${with_rand_helper+set}" = set; then
18234 withval=$with_rand_helper;
18235 if test "x$withval" = "xno" ; then
18236 # Force use of OpenSSL's internal RNG, even if
18237 # the previous test showed it to be unseeded.
18238 if test -z "$OPENSSL_SEEDS_ITSELF" ; then
18239 { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
18240echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
18241 OPENSSL_SEEDS_ITSELF=yes
18242 USE_RAND_HELPER=""
18243 fi
18244 else
18245 USE_RAND_HELPER=yes
18246 fi
18247
18248fi
18249
18250
18251# Which randomness source do we use?
18252if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then
18253 # OpenSSL only
18254
18255cat >>confdefs.h <<\_ACEOF
18256#define OPENSSL_PRNG_ONLY 1
18257_ACEOF
18258
18259 RAND_MSG="OpenSSL internal ONLY"
18260 INSTALL_SSH_RAND_HELPER=""
18261elif test ! -z "$USE_RAND_HELPER" ; then
18262 # install rand helper
18263 RAND_MSG="ssh-rand-helper"
18264 INSTALL_SSH_RAND_HELPER="yes"
18265fi
18266
18267
18268### Configuration of ssh-rand-helper
18269
18270# PRNGD TCP socket
18271
18272# Check whether --with-prngd-port was given.
18273if test "${with_prngd_port+set}" = set; then
18274 withval=$with_prngd_port;
18275 case "$withval" in
18276 no)
18277 withval=""
18278 ;;
18279 [0-9]*)
18280 ;;
18281 *)
18282 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
18283echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
18284 { (exit 1); exit 1; }; }
18285 ;;
18286 esac
18287 if test ! -z "$withval" ; then
18288 PRNGD_PORT="$withval"
18289
18290cat >>confdefs.h <<_ACEOF
18291#define PRNGD_PORT $PRNGD_PORT
18292_ACEOF
18293
18294 fi
18295
18296
18297fi
18298
18299
18300# PRNGD Unix domain socket
18301
18302# Check whether --with-prngd-socket was given.
18303if test "${with_prngd_socket+set}" = set; then
18304 withval=$with_prngd_socket;
18305 case "$withval" in
18306 yes)
18307 withval="/var/run/egd-pool"
18308 ;;
18309 no)
18310 withval=""
18311 ;;
18312 /*)
18313 ;;
18314 *)
18315 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
18316echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
18317 { (exit 1); exit 1; }; }
18318 ;;
18319 esac
18320
18321 if test ! -z "$withval" ; then
18322 if test ! -z "$PRNGD_PORT" ; then
18323 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
18324echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
18325 { (exit 1); exit 1; }; }
18326 fi
18327 if test ! -r "$withval" ; then
18328 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
18329echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
18330 fi
18331 PRNGD_SOCKET="$withval"
18332
18333cat >>confdefs.h <<_ACEOF
18334#define PRNGD_SOCKET "$PRNGD_SOCKET"
18335_ACEOF
18336
18337 fi
18338
18339else
18340
18341 # Check for existing socket only if we don't have a random device already
18342 if test "$USE_RAND_HELPER" = yes ; then
18343 { echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
18344echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6; }
18345 # Insert other locations here
18346 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
18347 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
18348 PRNGD_SOCKET="$sock"
18349 cat >>confdefs.h <<_ACEOF
18350#define PRNGD_SOCKET "$PRNGD_SOCKET"
18351_ACEOF
18352
18353 break;
18354 fi
18355 done
18356 if test ! -z "$PRNGD_SOCKET" ; then
18357 { echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
18358echo "${ECHO_T}$PRNGD_SOCKET" >&6; }
18359 else
18360 { echo "$as_me:$LINENO: result: not found" >&5
18361echo "${ECHO_T}not found" >&6; }
18362 fi
18363 fi
18364
18365
18366fi
18367
18368
18369# Change default command timeout for hashing entropy source
18370entropy_timeout=200
18371
18372# Check whether --with-entropy-timeout was given.
18373if test "${with_entropy_timeout+set}" = set; then
18374 withval=$with_entropy_timeout;
18375 if test -n "$withval" && test "x$withval" != "xno" && \
18376 test "x${withval}" != "xyes"; then
18377 entropy_timeout=$withval
18378 fi
18379
18380
18381fi
18382
18383
18384cat >>confdefs.h <<_ACEOF
18385#define ENTROPY_TIMEOUT_MSEC $entropy_timeout
18386_ACEOF
18387
18388
18389SSH_PRIVSEP_USER=sshd
18390
18391# Check whether --with-privsep-user was given.
18392if test "${with_privsep_user+set}" = set; then
18393 withval=$with_privsep_user;
18394 if test -n "$withval" && test "x$withval" != "xno" && \
18395 test "x${withval}" != "xyes"; then
18396 SSH_PRIVSEP_USER=$withval
18397 fi
18398
18399
18400fi
18401
18402
18403cat >>confdefs.h <<_ACEOF
18404#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
18405_ACEOF
18406
18407
18408
18409# We do this little dance with the search path to insure
18410# that programs that we select for use by installed programs
18411# (which may be run by the super-user) come from trusted
18412# locations before they come from the user's private area.
18413# This should help avoid accidentally configuring some
18414# random version of a program in someone's personal bin.
18415
18416OPATH=$PATH
18417PATH=/bin:/usr/bin
18418test -h /bin 2> /dev/null && PATH=/usr/bin
18419test -d /sbin && PATH=$PATH:/sbin
18420test -d /usr/sbin && PATH=$PATH:/usr/sbin
18421PATH=$PATH:/etc:$OPATH
18422
18423# These programs are used by the command hashing source to gather entropy
18424
18425 # Extract the first word of "ls", so it can be a program name with args.
18426set dummy ls; ac_word=$2
18427{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18429if test "${ac_cv_path_PROG_LS+set}" = set; then
18430 echo $ECHO_N "(cached) $ECHO_C" >&6
18431else
18432 case $PROG_LS in
18433 [\\/]* | ?:[\\/]*)
18434 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
18435 ;;
18436 *)
18437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18438for as_dir in $PATH
18439do
18440 IFS=$as_save_IFS
18441 test -z "$as_dir" && as_dir=.
18442 for ac_exec_ext in '' $ac_executable_extensions; do
18443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18444 ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
18445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18446 break 2
18447 fi
18448done
18449done
18450IFS=$as_save_IFS
18451
18452 ;;
18453esac
18454fi
18455PROG_LS=$ac_cv_path_PROG_LS
18456if test -n "$PROG_LS"; then
18457 { echo "$as_me:$LINENO: result: $PROG_LS" >&5
18458echo "${ECHO_T}$PROG_LS" >&6; }
18459else
18460 { echo "$as_me:$LINENO: result: no" >&5
18461echo "${ECHO_T}no" >&6; }
18462fi
18463
18464
18465 if test -z "$PROG_LS" ; then
18466 PROG_LS="undef"
18467 fi
18468
18469
18470
18471 # Extract the first word of "netstat", so it can be a program name with args.
18472set dummy netstat; ac_word=$2
18473{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18475if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
18476 echo $ECHO_N "(cached) $ECHO_C" >&6
18477else
18478 case $PROG_NETSTAT in
18479 [\\/]* | ?:[\\/]*)
18480 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
18481 ;;
18482 *)
18483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18484for as_dir in $PATH
18485do
18486 IFS=$as_save_IFS
18487 test -z "$as_dir" && as_dir=.
18488 for ac_exec_ext in '' $ac_executable_extensions; do
18489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18490 ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
18491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18492 break 2
18493 fi
18494done
18495done
18496IFS=$as_save_IFS
18497
18498 ;;
18499esac
18500fi
18501PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
18502if test -n "$PROG_NETSTAT"; then
18503 { echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5
18504echo "${ECHO_T}$PROG_NETSTAT" >&6; }
18505else
18506 { echo "$as_me:$LINENO: result: no" >&5
18507echo "${ECHO_T}no" >&6; }
18508fi
18509
18510
18511 if test -z "$PROG_NETSTAT" ; then
18512 PROG_NETSTAT="undef"
18513 fi
18514
18515
18516
18517 # Extract the first word of "arp", so it can be a program name with args.
18518set dummy arp; ac_word=$2
18519{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18521if test "${ac_cv_path_PROG_ARP+set}" = set; then
18522 echo $ECHO_N "(cached) $ECHO_C" >&6
18523else
18524 case $PROG_ARP in
18525 [\\/]* | ?:[\\/]*)
18526 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
18527 ;;
18528 *)
18529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18530for as_dir in $PATH
18531do
18532 IFS=$as_save_IFS
18533 test -z "$as_dir" && as_dir=.
18534 for ac_exec_ext in '' $ac_executable_extensions; do
18535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18536 ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
18537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18538 break 2
18539 fi
18540done
18541done
18542IFS=$as_save_IFS
18543
18544 ;;
18545esac
18546fi
18547PROG_ARP=$ac_cv_path_PROG_ARP
18548if test -n "$PROG_ARP"; then
18549 { echo "$as_me:$LINENO: result: $PROG_ARP" >&5
18550echo "${ECHO_T}$PROG_ARP" >&6; }
18551else
18552 { echo "$as_me:$LINENO: result: no" >&5
18553echo "${ECHO_T}no" >&6; }
18554fi
18555
18556
18557 if test -z "$PROG_ARP" ; then
18558 PROG_ARP="undef"
18559 fi
18560
18561
18562
18563 # Extract the first word of "ifconfig", so it can be a program name with args.
18564set dummy ifconfig; ac_word=$2
18565{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18567if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
18568 echo $ECHO_N "(cached) $ECHO_C" >&6
18569else
18570 case $PROG_IFCONFIG in
18571 [\\/]* | ?:[\\/]*)
18572 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
18573 ;;
18574 *)
18575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18576for as_dir in $PATH
18577do
18578 IFS=$as_save_IFS
18579 test -z "$as_dir" && as_dir=.
18580 for ac_exec_ext in '' $ac_executable_extensions; do
18581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18582 ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
18583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18584 break 2
18585 fi
18586done
18587done
18588IFS=$as_save_IFS
18589
18590 ;;
18591esac
18592fi
18593PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
18594if test -n "$PROG_IFCONFIG"; then
18595 { echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5
18596echo "${ECHO_T}$PROG_IFCONFIG" >&6; }
18597else
18598 { echo "$as_me:$LINENO: result: no" >&5
18599echo "${ECHO_T}no" >&6; }
18600fi
18601
18602
18603 if test -z "$PROG_IFCONFIG" ; then
18604 PROG_IFCONFIG="undef"
18605 fi
18606
18607
18608
18609 # Extract the first word of "jstat", so it can be a program name with args.
18610set dummy jstat; ac_word=$2
18611{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18613if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
18614 echo $ECHO_N "(cached) $ECHO_C" >&6
18615else
18616 case $PROG_JSTAT in
18617 [\\/]* | ?:[\\/]*)
18618 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
18619 ;;
18620 *)
18621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18622for as_dir in $PATH
18623do
18624 IFS=$as_save_IFS
18625 test -z "$as_dir" && as_dir=.
18626 for ac_exec_ext in '' $ac_executable_extensions; do
18627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18628 ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
18629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18630 break 2
18631 fi
18632done
18633done
18634IFS=$as_save_IFS
18635
18636 ;;
18637esac
18638fi
18639PROG_JSTAT=$ac_cv_path_PROG_JSTAT
18640if test -n "$PROG_JSTAT"; then
18641 { echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5
18642echo "${ECHO_T}$PROG_JSTAT" >&6; }
18643else
18644 { echo "$as_me:$LINENO: result: no" >&5
18645echo "${ECHO_T}no" >&6; }
18646fi
18647
18648
18649 if test -z "$PROG_JSTAT" ; then
18650 PROG_JSTAT="undef"
18651 fi
18652
18653
18654
18655 # Extract the first word of "ps", so it can be a program name with args.
18656set dummy ps; ac_word=$2
18657{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18659if test "${ac_cv_path_PROG_PS+set}" = set; then
18660 echo $ECHO_N "(cached) $ECHO_C" >&6
18661else
18662 case $PROG_PS in
18663 [\\/]* | ?:[\\/]*)
18664 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
18665 ;;
18666 *)
18667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18668for as_dir in $PATH
18669do
18670 IFS=$as_save_IFS
18671 test -z "$as_dir" && as_dir=.
18672 for ac_exec_ext in '' $ac_executable_extensions; do
18673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18674 ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
18675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18676 break 2
18677 fi
18678done
18679done
18680IFS=$as_save_IFS
18681
18682 ;;
18683esac
18684fi
18685PROG_PS=$ac_cv_path_PROG_PS
18686if test -n "$PROG_PS"; then
18687 { echo "$as_me:$LINENO: result: $PROG_PS" >&5
18688echo "${ECHO_T}$PROG_PS" >&6; }
18689else
18690 { echo "$as_me:$LINENO: result: no" >&5
18691echo "${ECHO_T}no" >&6; }
18692fi
18693
18694
18695 if test -z "$PROG_PS" ; then
18696 PROG_PS="undef"
18697 fi
18698
18699
18700
18701 # Extract the first word of "sar", so it can be a program name with args.
18702set dummy sar; ac_word=$2
18703{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18705if test "${ac_cv_path_PROG_SAR+set}" = set; then
18706 echo $ECHO_N "(cached) $ECHO_C" >&6
18707else
18708 case $PROG_SAR in
18709 [\\/]* | ?:[\\/]*)
18710 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
18711 ;;
18712 *)
18713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18714for as_dir in $PATH
18715do
18716 IFS=$as_save_IFS
18717 test -z "$as_dir" && as_dir=.
18718 for ac_exec_ext in '' $ac_executable_extensions; do
18719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18720 ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
18721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18722 break 2
18723 fi
18724done
18725done
18726IFS=$as_save_IFS
18727
18728 ;;
18729esac
18730fi
18731PROG_SAR=$ac_cv_path_PROG_SAR
18732if test -n "$PROG_SAR"; then
18733 { echo "$as_me:$LINENO: result: $PROG_SAR" >&5
18734echo "${ECHO_T}$PROG_SAR" >&6; }
18735else
18736 { echo "$as_me:$LINENO: result: no" >&5
18737echo "${ECHO_T}no" >&6; }
18738fi
18739
18740
18741 if test -z "$PROG_SAR" ; then
18742 PROG_SAR="undef"
18743 fi
18744
18745
18746
18747 # Extract the first word of "w", so it can be a program name with args.
18748set dummy w; ac_word=$2
18749{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18751if test "${ac_cv_path_PROG_W+set}" = set; then
18752 echo $ECHO_N "(cached) $ECHO_C" >&6
18753else
18754 case $PROG_W in
18755 [\\/]* | ?:[\\/]*)
18756 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
18757 ;;
18758 *)
18759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18760for as_dir in $PATH
18761do
18762 IFS=$as_save_IFS
18763 test -z "$as_dir" && as_dir=.
18764 for ac_exec_ext in '' $ac_executable_extensions; do
18765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18766 ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
18767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18768 break 2
18769 fi
18770done
18771done
18772IFS=$as_save_IFS
18773
18774 ;;
18775esac
18776fi
18777PROG_W=$ac_cv_path_PROG_W
18778if test -n "$PROG_W"; then
18779 { echo "$as_me:$LINENO: result: $PROG_W" >&5
18780echo "${ECHO_T}$PROG_W" >&6; }
18781else
18782 { echo "$as_me:$LINENO: result: no" >&5
18783echo "${ECHO_T}no" >&6; }
18784fi
18785
18786
18787 if test -z "$PROG_W" ; then
18788 PROG_W="undef"
18789 fi
18790
18791
18792
18793 # Extract the first word of "who", so it can be a program name with args.
18794set dummy who; ac_word=$2
18795{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18797if test "${ac_cv_path_PROG_WHO+set}" = set; then
18798 echo $ECHO_N "(cached) $ECHO_C" >&6
18799else
18800 case $PROG_WHO in
18801 [\\/]* | ?:[\\/]*)
18802 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
18803 ;;
18804 *)
18805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18806for as_dir in $PATH
18807do
18808 IFS=$as_save_IFS
18809 test -z "$as_dir" && as_dir=.
18810 for ac_exec_ext in '' $ac_executable_extensions; do
18811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18812 ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
18813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18814 break 2
18815 fi
18816done
18817done
18818IFS=$as_save_IFS
18819
18820 ;;
18821esac
18822fi
18823PROG_WHO=$ac_cv_path_PROG_WHO
18824if test -n "$PROG_WHO"; then
18825 { echo "$as_me:$LINENO: result: $PROG_WHO" >&5
18826echo "${ECHO_T}$PROG_WHO" >&6; }
18827else
18828 { echo "$as_me:$LINENO: result: no" >&5
18829echo "${ECHO_T}no" >&6; }
18830fi
18831
18832
18833 if test -z "$PROG_WHO" ; then
18834 PROG_WHO="undef"
18835 fi
18836
18837
18838
18839 # Extract the first word of "last", so it can be a program name with args.
18840set dummy last; ac_word=$2
18841{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18843if test "${ac_cv_path_PROG_LAST+set}" = set; then
18844 echo $ECHO_N "(cached) $ECHO_C" >&6
18845else
18846 case $PROG_LAST in
18847 [\\/]* | ?:[\\/]*)
18848 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
18849 ;;
18850 *)
18851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18852for as_dir in $PATH
18853do
18854 IFS=$as_save_IFS
18855 test -z "$as_dir" && as_dir=.
18856 for ac_exec_ext in '' $ac_executable_extensions; do
18857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18858 ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
18859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18860 break 2
18861 fi
18862done
18863done
18864IFS=$as_save_IFS
18865
18866 ;;
18867esac
18868fi
18869PROG_LAST=$ac_cv_path_PROG_LAST
18870if test -n "$PROG_LAST"; then
18871 { echo "$as_me:$LINENO: result: $PROG_LAST" >&5
18872echo "${ECHO_T}$PROG_LAST" >&6; }
18873else
18874 { echo "$as_me:$LINENO: result: no" >&5
18875echo "${ECHO_T}no" >&6; }
18876fi
18877
18878
18879 if test -z "$PROG_LAST" ; then
18880 PROG_LAST="undef"
18881 fi
18882
18883
18884
18885 # Extract the first word of "lastlog", so it can be a program name with args.
18886set dummy lastlog; ac_word=$2
18887{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18889if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
18890 echo $ECHO_N "(cached) $ECHO_C" >&6
18891else
18892 case $PROG_LASTLOG in
18893 [\\/]* | ?:[\\/]*)
18894 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
18895 ;;
18896 *)
18897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18898for as_dir in $PATH
18899do
18900 IFS=$as_save_IFS
18901 test -z "$as_dir" && as_dir=.
18902 for ac_exec_ext in '' $ac_executable_extensions; do
18903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18904 ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
18905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18906 break 2
18907 fi
18908done
18909done
18910IFS=$as_save_IFS
18911
18912 ;;
18913esac
18914fi
18915PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
18916if test -n "$PROG_LASTLOG"; then
18917 { echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5
18918echo "${ECHO_T}$PROG_LASTLOG" >&6; }
18919else
18920 { echo "$as_me:$LINENO: result: no" >&5
18921echo "${ECHO_T}no" >&6; }
18922fi
18923
18924
18925 if test -z "$PROG_LASTLOG" ; then
18926 PROG_LASTLOG="undef"
18927 fi
18928
18929
18930
18931 # Extract the first word of "df", so it can be a program name with args.
18932set dummy df; ac_word=$2
18933{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18935if test "${ac_cv_path_PROG_DF+set}" = set; then
18936 echo $ECHO_N "(cached) $ECHO_C" >&6
18937else
18938 case $PROG_DF in
18939 [\\/]* | ?:[\\/]*)
18940 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
18941 ;;
18942 *)
18943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18944for as_dir in $PATH
18945do
18946 IFS=$as_save_IFS
18947 test -z "$as_dir" && as_dir=.
18948 for ac_exec_ext in '' $ac_executable_extensions; do
18949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18950 ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
18951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18952 break 2
18953 fi
18954done
18955done
18956IFS=$as_save_IFS
18957
18958 ;;
18959esac
18960fi
18961PROG_DF=$ac_cv_path_PROG_DF
18962if test -n "$PROG_DF"; then
18963 { echo "$as_me:$LINENO: result: $PROG_DF" >&5
18964echo "${ECHO_T}$PROG_DF" >&6; }
18965else
18966 { echo "$as_me:$LINENO: result: no" >&5
18967echo "${ECHO_T}no" >&6; }
18968fi
18969
18970
18971 if test -z "$PROG_DF" ; then
18972 PROG_DF="undef"
18973 fi
18974
18975
18976
18977 # Extract the first word of "vmstat", so it can be a program name with args.
18978set dummy vmstat; ac_word=$2
18979{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18981if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
18982 echo $ECHO_N "(cached) $ECHO_C" >&6
18983else
18984 case $PROG_VMSTAT in
18985 [\\/]* | ?:[\\/]*)
18986 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
18987 ;;
18988 *)
18989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18990for as_dir in $PATH
18991do
18992 IFS=$as_save_IFS
18993 test -z "$as_dir" && as_dir=.
18994 for ac_exec_ext in '' $ac_executable_extensions; do
18995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18996 ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
18997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18998 break 2
18999 fi
19000done
19001done
19002IFS=$as_save_IFS
19003
19004 ;;
19005esac
19006fi
19007PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
19008if test -n "$PROG_VMSTAT"; then
19009 { echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5
19010echo "${ECHO_T}$PROG_VMSTAT" >&6; }
19011else
19012 { echo "$as_me:$LINENO: result: no" >&5
19013echo "${ECHO_T}no" >&6; }
19014fi
19015
19016
19017 if test -z "$PROG_VMSTAT" ; then
19018 PROG_VMSTAT="undef"
19019 fi
19020
19021
19022
19023 # Extract the first word of "uptime", so it can be a program name with args.
19024set dummy uptime; ac_word=$2
19025{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19027if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
19028 echo $ECHO_N "(cached) $ECHO_C" >&6
19029else
19030 case $PROG_UPTIME in
19031 [\\/]* | ?:[\\/]*)
19032 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
19033 ;;
19034 *)
19035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19036for as_dir in $PATH
19037do
19038 IFS=$as_save_IFS
19039 test -z "$as_dir" && as_dir=.
19040 for ac_exec_ext in '' $ac_executable_extensions; do
19041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19042 ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
19043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19044 break 2
19045 fi
19046done
19047done
19048IFS=$as_save_IFS
19049
19050 ;;
19051esac
19052fi
19053PROG_UPTIME=$ac_cv_path_PROG_UPTIME
19054if test -n "$PROG_UPTIME"; then
19055 { echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5
19056echo "${ECHO_T}$PROG_UPTIME" >&6; }
19057else
19058 { echo "$as_me:$LINENO: result: no" >&5
19059echo "${ECHO_T}no" >&6; }
19060fi
19061
19062
19063 if test -z "$PROG_UPTIME" ; then
19064 PROG_UPTIME="undef"
19065 fi
19066
19067
19068
19069 # Extract the first word of "ipcs", so it can be a program name with args.
19070set dummy ipcs; ac_word=$2
19071{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19073if test "${ac_cv_path_PROG_IPCS+set}" = set; then
19074 echo $ECHO_N "(cached) $ECHO_C" >&6
19075else
19076 case $PROG_IPCS in
19077 [\\/]* | ?:[\\/]*)
19078 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
19079 ;;
19080 *)
19081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19082for as_dir in $PATH
19083do
19084 IFS=$as_save_IFS
19085 test -z "$as_dir" && as_dir=.
19086 for ac_exec_ext in '' $ac_executable_extensions; do
19087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19088 ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
19089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19090 break 2
19091 fi
19092done
19093done
19094IFS=$as_save_IFS
19095
19096 ;;
19097esac
19098fi
19099PROG_IPCS=$ac_cv_path_PROG_IPCS
19100if test -n "$PROG_IPCS"; then
19101 { echo "$as_me:$LINENO: result: $PROG_IPCS" >&5
19102echo "${ECHO_T}$PROG_IPCS" >&6; }
19103else
19104 { echo "$as_me:$LINENO: result: no" >&5
19105echo "${ECHO_T}no" >&6; }
19106fi
19107
19108
19109 if test -z "$PROG_IPCS" ; then
19110 PROG_IPCS="undef"
19111 fi
19112
19113
19114
19115 # Extract the first word of "tail", so it can be a program name with args.
19116set dummy tail; ac_word=$2
19117{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19119if test "${ac_cv_path_PROG_TAIL+set}" = set; then
19120 echo $ECHO_N "(cached) $ECHO_C" >&6
19121else
19122 case $PROG_TAIL in
19123 [\\/]* | ?:[\\/]*)
19124 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
19125 ;;
19126 *)
19127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19128for as_dir in $PATH
19129do
19130 IFS=$as_save_IFS
19131 test -z "$as_dir" && as_dir=.
19132 for ac_exec_ext in '' $ac_executable_extensions; do
19133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19134 ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
19135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19136 break 2
19137 fi
19138done
19139done
19140IFS=$as_save_IFS
19141
19142 ;;
19143esac
19144fi
19145PROG_TAIL=$ac_cv_path_PROG_TAIL
19146if test -n "$PROG_TAIL"; then
19147 { echo "$as_me:$LINENO: result: $PROG_TAIL" >&5
19148echo "${ECHO_T}$PROG_TAIL" >&6; }
19149else
19150 { echo "$as_me:$LINENO: result: no" >&5
19151echo "${ECHO_T}no" >&6; }
19152fi
19153
19154
19155 if test -z "$PROG_TAIL" ; then
19156 PROG_TAIL="undef"
19157 fi
19158
19159
19160# restore PATH
19161PATH=$OPATH
19162
19163# Where does ssh-rand-helper get its randomness from?
19164INSTALL_SSH_PRNG_CMDS=""
19165if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
19166 if test ! -z "$PRNGD_PORT" ; then
19167 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
19168 elif test ! -z "$PRNGD_SOCKET" ; then
19169 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
19170 else
19171 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
19172 RAND_HELPER_CMDHASH=yes
19173 INSTALL_SSH_PRNG_CMDS="yes"
19174 fi
19175fi
19176
19177
19178
19179# Cheap hack to ensure NEWS-OS libraries are arranged right.
19180if test ! -z "$SONY" ; then
19181 LIBS="$LIBS -liberty";
19182fi
19183
19184# Check for long long datatypes
19185{ echo "$as_me:$LINENO: checking for long long" >&5
19186echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19187if test "${ac_cv_type_long_long+set}" = set; then
19188 echo $ECHO_N "(cached) $ECHO_C" >&6
19189else
19190 cat >conftest.$ac_ext <<_ACEOF
19191/* confdefs.h. */
19192_ACEOF
19193cat confdefs.h >>conftest.$ac_ext
19194cat >>conftest.$ac_ext <<_ACEOF
19195/* end confdefs.h. */
19196$ac_includes_default
19197typedef long long ac__type_new_;
19198int
19199main ()
19200{
19201if ((ac__type_new_ *) 0)
19202 return 0;
19203if (sizeof (ac__type_new_))
19204 return 0;
19205 ;
19206 return 0;
19207}
19208_ACEOF
19209rm -f conftest.$ac_objext
19210if { (ac_try="$ac_compile"
19211case "(($ac_try" in
19212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19213 *) ac_try_echo=$ac_try;;
19214esac
19215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19216 (eval "$ac_compile") 2>conftest.er1
19217 ac_status=$?
19218 grep -v '^ *+' conftest.er1 >conftest.err
19219 rm -f conftest.er1
19220 cat conftest.err >&5
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); } && {
19223 test -z "$ac_c_werror_flag" ||
19224 test ! -s conftest.err
19225 } && test -s conftest.$ac_objext; then
19226 ac_cv_type_long_long=yes
19227else
19228 echo "$as_me: failed program was:" >&5
19229sed 's/^/| /' conftest.$ac_ext >&5
19230
19231 ac_cv_type_long_long=no
19232fi
19233
19234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19235fi
19236{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19237echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19238if test $ac_cv_type_long_long = yes; then
19239
19240cat >>confdefs.h <<_ACEOF
19241#define HAVE_LONG_LONG 1
19242_ACEOF
19243
19244
19245fi
19246{ echo "$as_me:$LINENO: checking for unsigned long long" >&5
19247echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
19248if test "${ac_cv_type_unsigned_long_long+set}" = set; then
19249 echo $ECHO_N "(cached) $ECHO_C" >&6
19250else
19251 cat >conftest.$ac_ext <<_ACEOF
19252/* confdefs.h. */
19253_ACEOF
19254cat confdefs.h >>conftest.$ac_ext
19255cat >>conftest.$ac_ext <<_ACEOF
19256/* end confdefs.h. */
19257$ac_includes_default
19258typedef unsigned long long ac__type_new_;
19259int
19260main ()
19261{
19262if ((ac__type_new_ *) 0)
19263 return 0;
19264if (sizeof (ac__type_new_))
19265 return 0;
19266 ;
19267 return 0;
19268}
19269_ACEOF
19270rm -f conftest.$ac_objext
19271if { (ac_try="$ac_compile"
19272case "(($ac_try" in
19273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19274 *) ac_try_echo=$ac_try;;
19275esac
19276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19277 (eval "$ac_compile") 2>conftest.er1
19278 ac_status=$?
19279 grep -v '^ *+' conftest.er1 >conftest.err
19280 rm -f conftest.er1
19281 cat conftest.err >&5
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); } && {
19284 test -z "$ac_c_werror_flag" ||
19285 test ! -s conftest.err
19286 } && test -s conftest.$ac_objext; then
19287 ac_cv_type_unsigned_long_long=yes
19288else
19289 echo "$as_me: failed program was:" >&5
19290sed 's/^/| /' conftest.$ac_ext >&5
19291
19292 ac_cv_type_unsigned_long_long=no
19293fi
19294
19295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19296fi
19297{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
19298echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
19299if test $ac_cv_type_unsigned_long_long = yes; then
19300
19301cat >>confdefs.h <<_ACEOF
19302#define HAVE_UNSIGNED_LONG_LONG 1
19303_ACEOF
19304
19305
19306fi
19307{ echo "$as_me:$LINENO: checking for long double" >&5
19308echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19309if test "${ac_cv_type_long_double+set}" = set; then
19310 echo $ECHO_N "(cached) $ECHO_C" >&6
19311else
19312 cat >conftest.$ac_ext <<_ACEOF
19313/* confdefs.h. */
19314_ACEOF
19315cat confdefs.h >>conftest.$ac_ext
19316cat >>conftest.$ac_ext <<_ACEOF
19317/* end confdefs.h. */
19318$ac_includes_default
19319typedef long double ac__type_new_;
19320int
19321main ()
19322{
19323if ((ac__type_new_ *) 0)
19324 return 0;
19325if (sizeof (ac__type_new_))
19326 return 0;
19327 ;
19328 return 0;
19329}
19330_ACEOF
19331rm -f conftest.$ac_objext
19332if { (ac_try="$ac_compile"
19333case "(($ac_try" in
19334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19335 *) ac_try_echo=$ac_try;;
19336esac
19337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19338 (eval "$ac_compile") 2>conftest.er1
19339 ac_status=$?
19340 grep -v '^ *+' conftest.er1 >conftest.err
19341 rm -f conftest.er1
19342 cat conftest.err >&5
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); } && {
19345 test -z "$ac_c_werror_flag" ||
19346 test ! -s conftest.err
19347 } && test -s conftest.$ac_objext; then
19348 ac_cv_type_long_double=yes
19349else
19350 echo "$as_me: failed program was:" >&5
19351sed 's/^/| /' conftest.$ac_ext >&5
19352
19353 ac_cv_type_long_double=no
19354fi
19355
19356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19357fi
19358{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
19359echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
19360if test $ac_cv_type_long_double = yes; then
19361
19362cat >>confdefs.h <<_ACEOF
19363#define HAVE_LONG_DOUBLE 1
19364_ACEOF
19365
19366
19367fi
19368
19369
19370# Check datatype sizes
19371{ echo "$as_me:$LINENO: checking for char" >&5
19372echo $ECHO_N "checking for char... $ECHO_C" >&6; }
19373if test "${ac_cv_type_char+set}" = set; then
19374 echo $ECHO_N "(cached) $ECHO_C" >&6
19375else
19376 cat >conftest.$ac_ext <<_ACEOF
19377/* confdefs.h. */
19378_ACEOF
19379cat confdefs.h >>conftest.$ac_ext
19380cat >>conftest.$ac_ext <<_ACEOF
19381/* end confdefs.h. */
19382$ac_includes_default
19383typedef char ac__type_new_;
19384int
19385main ()
19386{
19387if ((ac__type_new_ *) 0)
19388 return 0;
19389if (sizeof (ac__type_new_))
19390 return 0;
19391 ;
19392 return 0;
19393}
19394_ACEOF
19395rm -f conftest.$ac_objext
19396if { (ac_try="$ac_compile"
19397case "(($ac_try" in
19398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399 *) ac_try_echo=$ac_try;;
19400esac
19401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19402 (eval "$ac_compile") 2>conftest.er1
19403 ac_status=$?
19404 grep -v '^ *+' conftest.er1 >conftest.err
19405 rm -f conftest.er1
19406 cat conftest.err >&5
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); } && {
19409 test -z "$ac_c_werror_flag" ||
19410 test ! -s conftest.err
19411 } && test -s conftest.$ac_objext; then
19412 ac_cv_type_char=yes
19413else
19414 echo "$as_me: failed program was:" >&5
19415sed 's/^/| /' conftest.$ac_ext >&5
19416
19417 ac_cv_type_char=no
19418fi
19419
19420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19421fi
19422{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
19423echo "${ECHO_T}$ac_cv_type_char" >&6; }
19424
19425# The cast to long int works around a bug in the HP C Compiler
19426# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19427# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19428# This bug is HP SR number 8606223364.
19429{ echo "$as_me:$LINENO: checking size of char" >&5
19430echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
19431if test "${ac_cv_sizeof_char+set}" = set; then
19432 echo $ECHO_N "(cached) $ECHO_C" >&6
19433else
19434 if test "$cross_compiling" = yes; then
19435 # Depending upon the size, compute the lo and hi bounds.
19436cat >conftest.$ac_ext <<_ACEOF
19437/* confdefs.h. */
19438_ACEOF
19439cat confdefs.h >>conftest.$ac_ext
19440cat >>conftest.$ac_ext <<_ACEOF
19441/* end confdefs.h. */
19442$ac_includes_default
19443 typedef char ac__type_sizeof_;
19444int
19445main ()
19446{
19447static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19448test_array [0] = 0
19449
19450 ;
19451 return 0;
19452}
19453_ACEOF
19454rm -f conftest.$ac_objext
19455if { (ac_try="$ac_compile"
19456case "(($ac_try" in
19457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19458 *) ac_try_echo=$ac_try;;
19459esac
19460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19461 (eval "$ac_compile") 2>conftest.er1
19462 ac_status=$?
19463 grep -v '^ *+' conftest.er1 >conftest.err
19464 rm -f conftest.er1
19465 cat conftest.err >&5
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); } && {
19468 test -z "$ac_c_werror_flag" ||
19469 test ! -s conftest.err
19470 } && test -s conftest.$ac_objext; then
19471 ac_lo=0 ac_mid=0
19472 while :; do
19473 cat >conftest.$ac_ext <<_ACEOF
19474/* confdefs.h. */
19475_ACEOF
19476cat confdefs.h >>conftest.$ac_ext
19477cat >>conftest.$ac_ext <<_ACEOF
19478/* end confdefs.h. */
19479$ac_includes_default
19480 typedef char ac__type_sizeof_;
19481int
19482main ()
19483{
19484static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19485test_array [0] = 0
19486
19487 ;
19488 return 0;
19489}
19490_ACEOF
19491rm -f conftest.$ac_objext
19492if { (ac_try="$ac_compile"
19493case "(($ac_try" in
19494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19495 *) ac_try_echo=$ac_try;;
19496esac
19497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19498 (eval "$ac_compile") 2>conftest.er1
19499 ac_status=$?
19500 grep -v '^ *+' conftest.er1 >conftest.err
19501 rm -f conftest.er1
19502 cat conftest.err >&5
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); } && {
19505 test -z "$ac_c_werror_flag" ||
19506 test ! -s conftest.err
19507 } && test -s conftest.$ac_objext; then
19508 ac_hi=$ac_mid; break
19509else
19510 echo "$as_me: failed program was:" >&5
19511sed 's/^/| /' conftest.$ac_ext >&5
19512
19513 ac_lo=`expr $ac_mid + 1`
19514 if test $ac_lo -le $ac_mid; then
19515 ac_lo= ac_hi=
19516 break
19517 fi
19518 ac_mid=`expr 2 '*' $ac_mid + 1`
19519fi
19520
19521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19522 done
19523else
19524 echo "$as_me: failed program was:" >&5
19525sed 's/^/| /' conftest.$ac_ext >&5
19526
19527 cat >conftest.$ac_ext <<_ACEOF
19528/* confdefs.h. */
19529_ACEOF
19530cat confdefs.h >>conftest.$ac_ext
19531cat >>conftest.$ac_ext <<_ACEOF
19532/* end confdefs.h. */
19533$ac_includes_default
19534 typedef char ac__type_sizeof_;
19535int
19536main ()
19537{
19538static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19539test_array [0] = 0
19540
19541 ;
19542 return 0;
19543}
19544_ACEOF
19545rm -f conftest.$ac_objext
19546if { (ac_try="$ac_compile"
19547case "(($ac_try" in
19548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19549 *) ac_try_echo=$ac_try;;
19550esac
19551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19552 (eval "$ac_compile") 2>conftest.er1
19553 ac_status=$?
19554 grep -v '^ *+' conftest.er1 >conftest.err
19555 rm -f conftest.er1
19556 cat conftest.err >&5
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); } && {
19559 test -z "$ac_c_werror_flag" ||
19560 test ! -s conftest.err
19561 } && test -s conftest.$ac_objext; then
19562 ac_hi=-1 ac_mid=-1
19563 while :; do
19564 cat >conftest.$ac_ext <<_ACEOF
19565/* confdefs.h. */
19566_ACEOF
19567cat confdefs.h >>conftest.$ac_ext
19568cat >>conftest.$ac_ext <<_ACEOF
19569/* end confdefs.h. */
19570$ac_includes_default
19571 typedef char ac__type_sizeof_;
19572int
19573main ()
19574{
19575static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19576test_array [0] = 0
19577
19578 ;
19579 return 0;
19580}
19581_ACEOF
19582rm -f conftest.$ac_objext
19583if { (ac_try="$ac_compile"
19584case "(($ac_try" in
19585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19586 *) ac_try_echo=$ac_try;;
19587esac
19588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19589 (eval "$ac_compile") 2>conftest.er1
19590 ac_status=$?
19591 grep -v '^ *+' conftest.er1 >conftest.err
19592 rm -f conftest.er1
19593 cat conftest.err >&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); } && {
19596 test -z "$ac_c_werror_flag" ||
19597 test ! -s conftest.err
19598 } && test -s conftest.$ac_objext; then
19599 ac_lo=$ac_mid; break
19600else
19601 echo "$as_me: failed program was:" >&5
19602sed 's/^/| /' conftest.$ac_ext >&5
19603
19604 ac_hi=`expr '(' $ac_mid ')' - 1`
19605 if test $ac_mid -le $ac_hi; then
19606 ac_lo= ac_hi=
19607 break
19608 fi
19609 ac_mid=`expr 2 '*' $ac_mid`
19610fi
19611
19612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19613 done
19614else
19615 echo "$as_me: failed program was:" >&5
19616sed 's/^/| /' conftest.$ac_ext >&5
19617
19618 ac_lo= ac_hi=
19619fi
19620
19621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19622fi
19623
19624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19625# Binary search between lo and hi bounds.
19626while test "x$ac_lo" != "x$ac_hi"; do
19627 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19628 cat >conftest.$ac_ext <<_ACEOF
19629/* confdefs.h. */
19630_ACEOF
19631cat confdefs.h >>conftest.$ac_ext
19632cat >>conftest.$ac_ext <<_ACEOF
19633/* end confdefs.h. */
19634$ac_includes_default
19635 typedef char ac__type_sizeof_;
19636int
19637main ()
19638{
19639static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19640test_array [0] = 0
19641
19642 ;
19643 return 0;
19644}
19645_ACEOF
19646rm -f conftest.$ac_objext
19647if { (ac_try="$ac_compile"
19648case "(($ac_try" in
19649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19650 *) ac_try_echo=$ac_try;;
19651esac
19652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19653 (eval "$ac_compile") 2>conftest.er1
19654 ac_status=$?
19655 grep -v '^ *+' conftest.er1 >conftest.err
19656 rm -f conftest.er1
19657 cat conftest.err >&5
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); } && {
19660 test -z "$ac_c_werror_flag" ||
19661 test ! -s conftest.err
19662 } && test -s conftest.$ac_objext; then
19663 ac_hi=$ac_mid
19664else
19665 echo "$as_me: failed program was:" >&5
19666sed 's/^/| /' conftest.$ac_ext >&5
19667
19668 ac_lo=`expr '(' $ac_mid ')' + 1`
19669fi
19670
19671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19672done
19673case $ac_lo in
19674?*) ac_cv_sizeof_char=$ac_lo;;
19675'') if test "$ac_cv_type_char" = yes; then
19676 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
19677See \`config.log' for more details." >&5
19678echo "$as_me: error: cannot compute sizeof (char)
19679See \`config.log' for more details." >&2;}
19680 { (exit 77); exit 77; }; }
19681 else
19682 ac_cv_sizeof_char=0
19683 fi ;;
19684esac
19685else
19686 cat >conftest.$ac_ext <<_ACEOF
19687/* confdefs.h. */
19688_ACEOF
19689cat confdefs.h >>conftest.$ac_ext
19690cat >>conftest.$ac_ext <<_ACEOF
19691/* end confdefs.h. */
19692$ac_includes_default
19693 typedef char ac__type_sizeof_;
19694static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19695static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19696#include <stdio.h>
19697#include <stdlib.h>
19698int
19699main ()
19700{
19701
19702 FILE *f = fopen ("conftest.val", "w");
19703 if (! f)
19704 return 1;
19705 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19706 {
19707 long int i = longval ();
19708 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19709 return 1;
19710 fprintf (f, "%ld\n", i);
19711 }
19712 else
19713 {
19714 unsigned long int i = ulongval ();
19715 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19716 return 1;
19717 fprintf (f, "%lu\n", i);
19718 }
19719 return ferror (f) || fclose (f) != 0;
19720
19721 ;
19722 return 0;
19723}
19724_ACEOF
19725rm -f conftest$ac_exeext
19726if { (ac_try="$ac_link"
19727case "(($ac_try" in
19728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19729 *) ac_try_echo=$ac_try;;
19730esac
19731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19732 (eval "$ac_link") 2>&5
19733 ac_status=$?
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19736 { (case "(($ac_try" in
19737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19738 *) ac_try_echo=$ac_try;;
19739esac
19740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19741 (eval "$ac_try") 2>&5
19742 ac_status=$?
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); }; }; then
19745 ac_cv_sizeof_char=`cat conftest.val`
19746else
19747 echo "$as_me: program exited with status $ac_status" >&5
19748echo "$as_me: failed program was:" >&5
19749sed 's/^/| /' conftest.$ac_ext >&5
19750
19751( exit $ac_status )
19752if test "$ac_cv_type_char" = yes; then
19753 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
19754See \`config.log' for more details." >&5
19755echo "$as_me: error: cannot compute sizeof (char)
19756See \`config.log' for more details." >&2;}
19757 { (exit 77); exit 77; }; }
19758 else
19759 ac_cv_sizeof_char=0
19760 fi
19761fi
19762rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19763fi
19764rm -f conftest.val
19765fi
19766{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
19767echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
19768
19769
19770
19771cat >>confdefs.h <<_ACEOF
19772#define SIZEOF_CHAR $ac_cv_sizeof_char
19773_ACEOF
19774
19775
19776{ echo "$as_me:$LINENO: checking for short int" >&5
19777echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
19778if test "${ac_cv_type_short_int+set}" = set; then
19779 echo $ECHO_N "(cached) $ECHO_C" >&6
19780else
19781 cat >conftest.$ac_ext <<_ACEOF
19782/* confdefs.h. */
19783_ACEOF
19784cat confdefs.h >>conftest.$ac_ext
19785cat >>conftest.$ac_ext <<_ACEOF
19786/* end confdefs.h. */
19787$ac_includes_default
19788typedef short int ac__type_new_;
19789int
19790main ()
19791{
19792if ((ac__type_new_ *) 0)
19793 return 0;
19794if (sizeof (ac__type_new_))
19795 return 0;
19796 ;
19797 return 0;
19798}
19799_ACEOF
19800rm -f conftest.$ac_objext
19801if { (ac_try="$ac_compile"
19802case "(($ac_try" in
19803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19804 *) ac_try_echo=$ac_try;;
19805esac
19806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19807 (eval "$ac_compile") 2>conftest.er1
19808 ac_status=$?
19809 grep -v '^ *+' conftest.er1 >conftest.err
19810 rm -f conftest.er1
19811 cat conftest.err >&5
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); } && {
19814 test -z "$ac_c_werror_flag" ||
19815 test ! -s conftest.err
19816 } && test -s conftest.$ac_objext; then
19817 ac_cv_type_short_int=yes
19818else
19819 echo "$as_me: failed program was:" >&5
19820sed 's/^/| /' conftest.$ac_ext >&5
19821
19822 ac_cv_type_short_int=no
19823fi
19824
19825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19826fi
19827{ echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
19828echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
19829
19830# The cast to long int works around a bug in the HP C Compiler
19831# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19832# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19833# This bug is HP SR number 8606223364.
19834{ echo "$as_me:$LINENO: checking size of short int" >&5
19835echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
19836if test "${ac_cv_sizeof_short_int+set}" = set; then
19837 echo $ECHO_N "(cached) $ECHO_C" >&6
19838else
19839 if test "$cross_compiling" = yes; then
19840 # Depending upon the size, compute the lo and hi bounds.
19841cat >conftest.$ac_ext <<_ACEOF
19842/* confdefs.h. */
19843_ACEOF
19844cat confdefs.h >>conftest.$ac_ext
19845cat >>conftest.$ac_ext <<_ACEOF
19846/* end confdefs.h. */
19847$ac_includes_default
19848 typedef short int ac__type_sizeof_;
19849int
19850main ()
19851{
19852static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19853test_array [0] = 0
19854
19855 ;
19856 return 0;
19857}
19858_ACEOF
19859rm -f conftest.$ac_objext
19860if { (ac_try="$ac_compile"
19861case "(($ac_try" in
19862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19863 *) ac_try_echo=$ac_try;;
19864esac
19865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19866 (eval "$ac_compile") 2>conftest.er1
19867 ac_status=$?
19868 grep -v '^ *+' conftest.er1 >conftest.err
19869 rm -f conftest.er1
19870 cat conftest.err >&5
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); } && {
19873 test -z "$ac_c_werror_flag" ||
19874 test ! -s conftest.err
19875 } && test -s conftest.$ac_objext; then
19876 ac_lo=0 ac_mid=0
19877 while :; do
19878 cat >conftest.$ac_ext <<_ACEOF
19879/* confdefs.h. */
19880_ACEOF
19881cat confdefs.h >>conftest.$ac_ext
19882cat >>conftest.$ac_ext <<_ACEOF
19883/* end confdefs.h. */
19884$ac_includes_default
19885 typedef short int ac__type_sizeof_;
19886int
19887main ()
19888{
19889static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19890test_array [0] = 0
19891
19892 ;
19893 return 0;
19894}
19895_ACEOF
19896rm -f conftest.$ac_objext
19897if { (ac_try="$ac_compile"
19898case "(($ac_try" in
19899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19900 *) ac_try_echo=$ac_try;;
19901esac
19902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19903 (eval "$ac_compile") 2>conftest.er1
19904 ac_status=$?
19905 grep -v '^ *+' conftest.er1 >conftest.err
19906 rm -f conftest.er1
19907 cat conftest.err >&5
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); } && {
19910 test -z "$ac_c_werror_flag" ||
19911 test ! -s conftest.err
19912 } && test -s conftest.$ac_objext; then
19913 ac_hi=$ac_mid; break
19914else
19915 echo "$as_me: failed program was:" >&5
19916sed 's/^/| /' conftest.$ac_ext >&5
19917
19918 ac_lo=`expr $ac_mid + 1`
19919 if test $ac_lo -le $ac_mid; then
19920 ac_lo= ac_hi=
19921 break
19922 fi
19923 ac_mid=`expr 2 '*' $ac_mid + 1`
19924fi
19925
19926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19927 done
19928else
19929 echo "$as_me: failed program was:" >&5
19930sed 's/^/| /' conftest.$ac_ext >&5
19931
19932 cat >conftest.$ac_ext <<_ACEOF
19933/* confdefs.h. */
19934_ACEOF
19935cat confdefs.h >>conftest.$ac_ext
19936cat >>conftest.$ac_ext <<_ACEOF
19937/* end confdefs.h. */
19938$ac_includes_default
19939 typedef short int ac__type_sizeof_;
19940int
19941main ()
19942{
19943static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19944test_array [0] = 0
19945
19946 ;
19947 return 0;
19948}
19949_ACEOF
19950rm -f conftest.$ac_objext
19951if { (ac_try="$ac_compile"
19952case "(($ac_try" in
19953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19954 *) ac_try_echo=$ac_try;;
19955esac
19956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19957 (eval "$ac_compile") 2>conftest.er1
19958 ac_status=$?
19959 grep -v '^ *+' conftest.er1 >conftest.err
19960 rm -f conftest.er1
19961 cat conftest.err >&5
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); } && {
19964 test -z "$ac_c_werror_flag" ||
19965 test ! -s conftest.err
19966 } && test -s conftest.$ac_objext; then
19967 ac_hi=-1 ac_mid=-1
19968 while :; do
19969 cat >conftest.$ac_ext <<_ACEOF
19970/* confdefs.h. */
19971_ACEOF
19972cat confdefs.h >>conftest.$ac_ext
19973cat >>conftest.$ac_ext <<_ACEOF
19974/* end confdefs.h. */
19975$ac_includes_default
19976 typedef short int ac__type_sizeof_;
19977int
19978main ()
19979{
19980static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19981test_array [0] = 0
19982
19983 ;
19984 return 0;
19985}
19986_ACEOF
19987rm -f conftest.$ac_objext
19988if { (ac_try="$ac_compile"
19989case "(($ac_try" in
19990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19991 *) ac_try_echo=$ac_try;;
19992esac
19993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19994 (eval "$ac_compile") 2>conftest.er1
19995 ac_status=$?
19996 grep -v '^ *+' conftest.er1 >conftest.err
19997 rm -f conftest.er1
19998 cat conftest.err >&5
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); } && {
20001 test -z "$ac_c_werror_flag" ||
20002 test ! -s conftest.err
20003 } && test -s conftest.$ac_objext; then
20004 ac_lo=$ac_mid; break
20005else
20006 echo "$as_me: failed program was:" >&5
20007sed 's/^/| /' conftest.$ac_ext >&5
20008
20009 ac_hi=`expr '(' $ac_mid ')' - 1`
20010 if test $ac_mid -le $ac_hi; then
20011 ac_lo= ac_hi=
20012 break
20013 fi
20014 ac_mid=`expr 2 '*' $ac_mid`
20015fi
20016
20017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20018 done
20019else
20020 echo "$as_me: failed program was:" >&5
20021sed 's/^/| /' conftest.$ac_ext >&5
20022
20023 ac_lo= ac_hi=
20024fi
20025
20026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20027fi
20028
20029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20030# Binary search between lo and hi bounds.
20031while test "x$ac_lo" != "x$ac_hi"; do
20032 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20033 cat >conftest.$ac_ext <<_ACEOF
20034/* confdefs.h. */
20035_ACEOF
20036cat confdefs.h >>conftest.$ac_ext
20037cat >>conftest.$ac_ext <<_ACEOF
20038/* end confdefs.h. */
20039$ac_includes_default
20040 typedef short int ac__type_sizeof_;
20041int
20042main ()
20043{
20044static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20045test_array [0] = 0
20046
20047 ;
20048 return 0;
20049}
20050_ACEOF
20051rm -f conftest.$ac_objext
20052if { (ac_try="$ac_compile"
20053case "(($ac_try" in
20054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20055 *) ac_try_echo=$ac_try;;
20056esac
20057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20058 (eval "$ac_compile") 2>conftest.er1
20059 ac_status=$?
20060 grep -v '^ *+' conftest.er1 >conftest.err
20061 rm -f conftest.er1
20062 cat conftest.err >&5
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); } && {
20065 test -z "$ac_c_werror_flag" ||
20066 test ! -s conftest.err
20067 } && test -s conftest.$ac_objext; then
20068 ac_hi=$ac_mid
20069else
20070 echo "$as_me: failed program was:" >&5
20071sed 's/^/| /' conftest.$ac_ext >&5
20072
20073 ac_lo=`expr '(' $ac_mid ')' + 1`
20074fi
20075
20076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20077done
20078case $ac_lo in
20079?*) ac_cv_sizeof_short_int=$ac_lo;;
20080'') if test "$ac_cv_type_short_int" = yes; then
20081 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
20082See \`config.log' for more details." >&5
20083echo "$as_me: error: cannot compute sizeof (short int)
20084See \`config.log' for more details." >&2;}
20085 { (exit 77); exit 77; }; }
20086 else
20087 ac_cv_sizeof_short_int=0
20088 fi ;;
20089esac
20090else
20091 cat >conftest.$ac_ext <<_ACEOF
20092/* confdefs.h. */
20093_ACEOF
20094cat confdefs.h >>conftest.$ac_ext
20095cat >>conftest.$ac_ext <<_ACEOF
20096/* end confdefs.h. */
20097$ac_includes_default
20098 typedef short int ac__type_sizeof_;
20099static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20100static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20101#include <stdio.h>
20102#include <stdlib.h>
20103int
20104main ()
20105{
20106
20107 FILE *f = fopen ("conftest.val", "w");
20108 if (! f)
20109 return 1;
20110 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20111 {
20112 long int i = longval ();
20113 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20114 return 1;
20115 fprintf (f, "%ld\n", i);
20116 }
20117 else
20118 {
20119 unsigned long int i = ulongval ();
20120 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20121 return 1;
20122 fprintf (f, "%lu\n", i);
20123 }
20124 return ferror (f) || fclose (f) != 0;
20125
20126 ;
20127 return 0;
20128}
20129_ACEOF
20130rm -f conftest$ac_exeext
20131if { (ac_try="$ac_link"
20132case "(($ac_try" in
20133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20134 *) ac_try_echo=$ac_try;;
20135esac
20136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20137 (eval "$ac_link") 2>&5
20138 ac_status=$?
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20141 { (case "(($ac_try" in
20142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20143 *) ac_try_echo=$ac_try;;
20144esac
20145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20146 (eval "$ac_try") 2>&5
20147 ac_status=$?
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); }; }; then
20150 ac_cv_sizeof_short_int=`cat conftest.val`
20151else
20152 echo "$as_me: program exited with status $ac_status" >&5
20153echo "$as_me: failed program was:" >&5
20154sed 's/^/| /' conftest.$ac_ext >&5
20155
20156( exit $ac_status )
20157if test "$ac_cv_type_short_int" = yes; then
20158 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
20159See \`config.log' for more details." >&5
20160echo "$as_me: error: cannot compute sizeof (short int)
20161See \`config.log' for more details." >&2;}
20162 { (exit 77); exit 77; }; }
20163 else
20164 ac_cv_sizeof_short_int=0
20165 fi
20166fi
20167rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20168fi
20169rm -f conftest.val
20170fi
20171{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
20172echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
20173
20174
20175
20176cat >>confdefs.h <<_ACEOF
20177#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
20178_ACEOF
20179
20180
20181{ echo "$as_me:$LINENO: checking for int" >&5
20182echo $ECHO_N "checking for int... $ECHO_C" >&6; }
20183if test "${ac_cv_type_int+set}" = set; then
20184 echo $ECHO_N "(cached) $ECHO_C" >&6
20185else
20186 cat >conftest.$ac_ext <<_ACEOF
20187/* confdefs.h. */
20188_ACEOF
20189cat confdefs.h >>conftest.$ac_ext
20190cat >>conftest.$ac_ext <<_ACEOF
20191/* end confdefs.h. */
20192$ac_includes_default
20193typedef int ac__type_new_;
20194int
20195main ()
20196{
20197if ((ac__type_new_ *) 0)
20198 return 0;
20199if (sizeof (ac__type_new_))
20200 return 0;
20201 ;
20202 return 0;
20203}
20204_ACEOF
20205rm -f conftest.$ac_objext
20206if { (ac_try="$ac_compile"
20207case "(($ac_try" in
20208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20209 *) ac_try_echo=$ac_try;;
20210esac
20211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20212 (eval "$ac_compile") 2>conftest.er1
20213 ac_status=$?
20214 grep -v '^ *+' conftest.er1 >conftest.err
20215 rm -f conftest.er1
20216 cat conftest.err >&5
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); } && {
20219 test -z "$ac_c_werror_flag" ||
20220 test ! -s conftest.err
20221 } && test -s conftest.$ac_objext; then
20222 ac_cv_type_int=yes
20223else
20224 echo "$as_me: failed program was:" >&5
20225sed 's/^/| /' conftest.$ac_ext >&5
20226
20227 ac_cv_type_int=no
20228fi
20229
20230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20231fi
20232{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20233echo "${ECHO_T}$ac_cv_type_int" >&6; }
20234
20235# The cast to long int works around a bug in the HP C Compiler
20236# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20237# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20238# This bug is HP SR number 8606223364.
20239{ echo "$as_me:$LINENO: checking size of int" >&5
20240echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
20241if test "${ac_cv_sizeof_int+set}" = set; then
20242 echo $ECHO_N "(cached) $ECHO_C" >&6
20243else
20244 if test "$cross_compiling" = yes; then
20245 # Depending upon the size, compute the lo and hi bounds.
20246cat >conftest.$ac_ext <<_ACEOF
20247/* confdefs.h. */
20248_ACEOF
20249cat confdefs.h >>conftest.$ac_ext
20250cat >>conftest.$ac_ext <<_ACEOF
20251/* end confdefs.h. */
20252$ac_includes_default
20253 typedef int ac__type_sizeof_;
20254int
20255main ()
20256{
20257static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20258test_array [0] = 0
20259
20260 ;
20261 return 0;
20262}
20263_ACEOF
20264rm -f conftest.$ac_objext
20265if { (ac_try="$ac_compile"
20266case "(($ac_try" in
20267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20268 *) ac_try_echo=$ac_try;;
20269esac
20270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20271 (eval "$ac_compile") 2>conftest.er1
20272 ac_status=$?
20273 grep -v '^ *+' conftest.er1 >conftest.err
20274 rm -f conftest.er1
20275 cat conftest.err >&5
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); } && {
20278 test -z "$ac_c_werror_flag" ||
20279 test ! -s conftest.err
20280 } && test -s conftest.$ac_objext; then
20281 ac_lo=0 ac_mid=0
20282 while :; do
20283 cat >conftest.$ac_ext <<_ACEOF
20284/* confdefs.h. */
20285_ACEOF
20286cat confdefs.h >>conftest.$ac_ext
20287cat >>conftest.$ac_ext <<_ACEOF
20288/* end confdefs.h. */
20289$ac_includes_default
20290 typedef int ac__type_sizeof_;
20291int
20292main ()
20293{
20294static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20295test_array [0] = 0
20296
20297 ;
20298 return 0;
20299}
20300_ACEOF
20301rm -f conftest.$ac_objext
20302if { (ac_try="$ac_compile"
20303case "(($ac_try" in
20304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20305 *) ac_try_echo=$ac_try;;
20306esac
20307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20308 (eval "$ac_compile") 2>conftest.er1
20309 ac_status=$?
20310 grep -v '^ *+' conftest.er1 >conftest.err
20311 rm -f conftest.er1
20312 cat conftest.err >&5
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); } && {
20315 test -z "$ac_c_werror_flag" ||
20316 test ! -s conftest.err
20317 } && test -s conftest.$ac_objext; then
20318 ac_hi=$ac_mid; break
20319else
20320 echo "$as_me: failed program was:" >&5
20321sed 's/^/| /' conftest.$ac_ext >&5
20322
20323 ac_lo=`expr $ac_mid + 1`
20324 if test $ac_lo -le $ac_mid; then
20325 ac_lo= ac_hi=
20326 break
20327 fi
20328 ac_mid=`expr 2 '*' $ac_mid + 1`
20329fi
20330
20331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20332 done
20333else
20334 echo "$as_me: failed program was:" >&5
20335sed 's/^/| /' conftest.$ac_ext >&5
20336
20337 cat >conftest.$ac_ext <<_ACEOF
20338/* confdefs.h. */
20339_ACEOF
20340cat confdefs.h >>conftest.$ac_ext
20341cat >>conftest.$ac_ext <<_ACEOF
20342/* end confdefs.h. */
20343$ac_includes_default
20344 typedef int ac__type_sizeof_;
20345int
20346main ()
20347{
20348static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20349test_array [0] = 0
20350
20351 ;
20352 return 0;
20353}
20354_ACEOF
20355rm -f conftest.$ac_objext
20356if { (ac_try="$ac_compile"
20357case "(($ac_try" in
20358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20359 *) ac_try_echo=$ac_try;;
20360esac
20361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20362 (eval "$ac_compile") 2>conftest.er1
20363 ac_status=$?
20364 grep -v '^ *+' conftest.er1 >conftest.err
20365 rm -f conftest.er1
20366 cat conftest.err >&5
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); } && {
20369 test -z "$ac_c_werror_flag" ||
20370 test ! -s conftest.err
20371 } && test -s conftest.$ac_objext; then
20372 ac_hi=-1 ac_mid=-1
20373 while :; do
20374 cat >conftest.$ac_ext <<_ACEOF
20375/* confdefs.h. */
20376_ACEOF
20377cat confdefs.h >>conftest.$ac_ext
20378cat >>conftest.$ac_ext <<_ACEOF
20379/* end confdefs.h. */
20380$ac_includes_default
20381 typedef int ac__type_sizeof_;
20382int
20383main ()
20384{
20385static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20386test_array [0] = 0
20387
20388 ;
20389 return 0;
20390}
20391_ACEOF
20392rm -f conftest.$ac_objext
20393if { (ac_try="$ac_compile"
20394case "(($ac_try" in
20395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20396 *) ac_try_echo=$ac_try;;
20397esac
20398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20399 (eval "$ac_compile") 2>conftest.er1
20400 ac_status=$?
20401 grep -v '^ *+' conftest.er1 >conftest.err
20402 rm -f conftest.er1
20403 cat conftest.err >&5
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); } && {
20406 test -z "$ac_c_werror_flag" ||
20407 test ! -s conftest.err
20408 } && test -s conftest.$ac_objext; then
20409 ac_lo=$ac_mid; break
20410else
20411 echo "$as_me: failed program was:" >&5
20412sed 's/^/| /' conftest.$ac_ext >&5
20413
20414 ac_hi=`expr '(' $ac_mid ')' - 1`
20415 if test $ac_mid -le $ac_hi; then
20416 ac_lo= ac_hi=
20417 break
20418 fi
20419 ac_mid=`expr 2 '*' $ac_mid`
20420fi
20421
20422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20423 done
20424else
20425 echo "$as_me: failed program was:" >&5
20426sed 's/^/| /' conftest.$ac_ext >&5
20427
20428 ac_lo= ac_hi=
20429fi
20430
20431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20432fi
20433
20434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20435# Binary search between lo and hi bounds.
20436while test "x$ac_lo" != "x$ac_hi"; do
20437 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20438 cat >conftest.$ac_ext <<_ACEOF
20439/* confdefs.h. */
20440_ACEOF
20441cat confdefs.h >>conftest.$ac_ext
20442cat >>conftest.$ac_ext <<_ACEOF
20443/* end confdefs.h. */
20444$ac_includes_default
20445 typedef int ac__type_sizeof_;
20446int
20447main ()
20448{
20449static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20450test_array [0] = 0
20451
20452 ;
20453 return 0;
20454}
20455_ACEOF
20456rm -f conftest.$ac_objext
20457if { (ac_try="$ac_compile"
20458case "(($ac_try" in
20459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460 *) ac_try_echo=$ac_try;;
20461esac
20462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20463 (eval "$ac_compile") 2>conftest.er1
20464 ac_status=$?
20465 grep -v '^ *+' conftest.er1 >conftest.err
20466 rm -f conftest.er1
20467 cat conftest.err >&5
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); } && {
20470 test -z "$ac_c_werror_flag" ||
20471 test ! -s conftest.err
20472 } && test -s conftest.$ac_objext; then
20473 ac_hi=$ac_mid
20474else
20475 echo "$as_me: failed program was:" >&5
20476sed 's/^/| /' conftest.$ac_ext >&5
20477
20478 ac_lo=`expr '(' $ac_mid ')' + 1`
20479fi
20480
20481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20482done
20483case $ac_lo in
20484?*) ac_cv_sizeof_int=$ac_lo;;
20485'') if test "$ac_cv_type_int" = yes; then
20486 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20487See \`config.log' for more details." >&5
20488echo "$as_me: error: cannot compute sizeof (int)
20489See \`config.log' for more details." >&2;}
20490 { (exit 77); exit 77; }; }
20491 else
20492 ac_cv_sizeof_int=0
20493 fi ;;
20494esac
20495else
20496 cat >conftest.$ac_ext <<_ACEOF
20497/* confdefs.h. */
20498_ACEOF
20499cat confdefs.h >>conftest.$ac_ext
20500cat >>conftest.$ac_ext <<_ACEOF
20501/* end confdefs.h. */
20502$ac_includes_default
20503 typedef int ac__type_sizeof_;
20504static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20505static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20506#include <stdio.h>
20507#include <stdlib.h>
20508int
20509main ()
20510{
20511
20512 FILE *f = fopen ("conftest.val", "w");
20513 if (! f)
20514 return 1;
20515 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20516 {
20517 long int i = longval ();
20518 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20519 return 1;
20520 fprintf (f, "%ld\n", i);
20521 }
20522 else
20523 {
20524 unsigned long int i = ulongval ();
20525 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20526 return 1;
20527 fprintf (f, "%lu\n", i);
20528 }
20529 return ferror (f) || fclose (f) != 0;
20530
20531 ;
20532 return 0;
20533}
20534_ACEOF
20535rm -f conftest$ac_exeext
20536if { (ac_try="$ac_link"
20537case "(($ac_try" in
20538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20539 *) ac_try_echo=$ac_try;;
20540esac
20541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20542 (eval "$ac_link") 2>&5
20543 ac_status=$?
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20546 { (case "(($ac_try" in
20547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20548 *) ac_try_echo=$ac_try;;
20549esac
20550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20551 (eval "$ac_try") 2>&5
20552 ac_status=$?
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); }; }; then
20555 ac_cv_sizeof_int=`cat conftest.val`
20556else
20557 echo "$as_me: program exited with status $ac_status" >&5
20558echo "$as_me: failed program was:" >&5
20559sed 's/^/| /' conftest.$ac_ext >&5
20560
20561( exit $ac_status )
20562if test "$ac_cv_type_int" = yes; then
20563 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20564See \`config.log' for more details." >&5
20565echo "$as_me: error: cannot compute sizeof (int)
20566See \`config.log' for more details." >&2;}
20567 { (exit 77); exit 77; }; }
20568 else
20569 ac_cv_sizeof_int=0
20570 fi
20571fi
20572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20573fi
20574rm -f conftest.val
20575fi
20576{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
20577echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
20578
20579
20580
20581cat >>confdefs.h <<_ACEOF
20582#define SIZEOF_INT $ac_cv_sizeof_int
20583_ACEOF
20584
20585
20586{ echo "$as_me:$LINENO: checking for long int" >&5
20587echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
20588if test "${ac_cv_type_long_int+set}" = set; then
20589 echo $ECHO_N "(cached) $ECHO_C" >&6
20590else
20591 cat >conftest.$ac_ext <<_ACEOF
20592/* confdefs.h. */
20593_ACEOF
20594cat confdefs.h >>conftest.$ac_ext
20595cat >>conftest.$ac_ext <<_ACEOF
20596/* end confdefs.h. */
20597$ac_includes_default
20598typedef long int ac__type_new_;
20599int
20600main ()
20601{
20602if ((ac__type_new_ *) 0)
20603 return 0;
20604if (sizeof (ac__type_new_))
20605 return 0;
20606 ;
20607 return 0;
20608}
20609_ACEOF
20610rm -f conftest.$ac_objext
20611if { (ac_try="$ac_compile"
20612case "(($ac_try" in
20613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20614 *) ac_try_echo=$ac_try;;
20615esac
20616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20617 (eval "$ac_compile") 2>conftest.er1
20618 ac_status=$?
20619 grep -v '^ *+' conftest.er1 >conftest.err
20620 rm -f conftest.er1
20621 cat conftest.err >&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); } && {
20624 test -z "$ac_c_werror_flag" ||
20625 test ! -s conftest.err
20626 } && test -s conftest.$ac_objext; then
20627 ac_cv_type_long_int=yes
20628else
20629 echo "$as_me: failed program was:" >&5
20630sed 's/^/| /' conftest.$ac_ext >&5
20631
20632 ac_cv_type_long_int=no
20633fi
20634
20635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20636fi
20637{ echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
20638echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
20639
20640# The cast to long int works around a bug in the HP C Compiler
20641# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20642# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20643# This bug is HP SR number 8606223364.
20644{ echo "$as_me:$LINENO: checking size of long int" >&5
20645echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
20646if test "${ac_cv_sizeof_long_int+set}" = set; then
20647 echo $ECHO_N "(cached) $ECHO_C" >&6
20648else
20649 if test "$cross_compiling" = yes; then
20650 # Depending upon the size, compute the lo and hi bounds.
20651cat >conftest.$ac_ext <<_ACEOF
20652/* confdefs.h. */
20653_ACEOF
20654cat confdefs.h >>conftest.$ac_ext
20655cat >>conftest.$ac_ext <<_ACEOF
20656/* end confdefs.h. */
20657$ac_includes_default
20658 typedef long int ac__type_sizeof_;
20659int
20660main ()
20661{
20662static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20663test_array [0] = 0
20664
20665 ;
20666 return 0;
20667}
20668_ACEOF
20669rm -f conftest.$ac_objext
20670if { (ac_try="$ac_compile"
20671case "(($ac_try" in
20672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20673 *) ac_try_echo=$ac_try;;
20674esac
20675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20676 (eval "$ac_compile") 2>conftest.er1
20677 ac_status=$?
20678 grep -v '^ *+' conftest.er1 >conftest.err
20679 rm -f conftest.er1
20680 cat conftest.err >&5
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); } && {
20683 test -z "$ac_c_werror_flag" ||
20684 test ! -s conftest.err
20685 } && test -s conftest.$ac_objext; then
20686 ac_lo=0 ac_mid=0
20687 while :; do
20688 cat >conftest.$ac_ext <<_ACEOF
20689/* confdefs.h. */
20690_ACEOF
20691cat confdefs.h >>conftest.$ac_ext
20692cat >>conftest.$ac_ext <<_ACEOF
20693/* end confdefs.h. */
20694$ac_includes_default
20695 typedef long int ac__type_sizeof_;
20696int
20697main ()
20698{
20699static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20700test_array [0] = 0
20701
20702 ;
20703 return 0;
20704}
20705_ACEOF
20706rm -f conftest.$ac_objext
20707if { (ac_try="$ac_compile"
20708case "(($ac_try" in
20709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20710 *) ac_try_echo=$ac_try;;
20711esac
20712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20713 (eval "$ac_compile") 2>conftest.er1
20714 ac_status=$?
20715 grep -v '^ *+' conftest.er1 >conftest.err
20716 rm -f conftest.er1
20717 cat conftest.err >&5
20718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); } && {
20720 test -z "$ac_c_werror_flag" ||
20721 test ! -s conftest.err
20722 } && test -s conftest.$ac_objext; then
20723 ac_hi=$ac_mid; break
20724else
20725 echo "$as_me: failed program was:" >&5
20726sed 's/^/| /' conftest.$ac_ext >&5
20727
20728 ac_lo=`expr $ac_mid + 1`
20729 if test $ac_lo -le $ac_mid; then
20730 ac_lo= ac_hi=
20731 break
20732 fi
20733 ac_mid=`expr 2 '*' $ac_mid + 1`
20734fi
20735
20736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20737 done
20738else
20739 echo "$as_me: failed program was:" >&5
20740sed 's/^/| /' conftest.$ac_ext >&5
20741
20742 cat >conftest.$ac_ext <<_ACEOF
20743/* confdefs.h. */
20744_ACEOF
20745cat confdefs.h >>conftest.$ac_ext
20746cat >>conftest.$ac_ext <<_ACEOF
20747/* end confdefs.h. */
20748$ac_includes_default
20749 typedef long int ac__type_sizeof_;
20750int
20751main ()
20752{
20753static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20754test_array [0] = 0
20755
20756 ;
20757 return 0;
20758}
20759_ACEOF
20760rm -f conftest.$ac_objext
20761if { (ac_try="$ac_compile"
20762case "(($ac_try" in
20763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20764 *) ac_try_echo=$ac_try;;
20765esac
20766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20767 (eval "$ac_compile") 2>conftest.er1
20768 ac_status=$?
20769 grep -v '^ *+' conftest.er1 >conftest.err
20770 rm -f conftest.er1
20771 cat conftest.err >&5
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); } && {
20774 test -z "$ac_c_werror_flag" ||
20775 test ! -s conftest.err
20776 } && test -s conftest.$ac_objext; then
20777 ac_hi=-1 ac_mid=-1
20778 while :; do
20779 cat >conftest.$ac_ext <<_ACEOF
20780/* confdefs.h. */
20781_ACEOF
20782cat confdefs.h >>conftest.$ac_ext
20783cat >>conftest.$ac_ext <<_ACEOF
20784/* end confdefs.h. */
20785$ac_includes_default
20786 typedef long int ac__type_sizeof_;
20787int
20788main ()
20789{
20790static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20791test_array [0] = 0
20792
20793 ;
20794 return 0;
20795}
20796_ACEOF
20797rm -f conftest.$ac_objext
20798if { (ac_try="$ac_compile"
20799case "(($ac_try" in
20800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20801 *) ac_try_echo=$ac_try;;
20802esac
20803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20804 (eval "$ac_compile") 2>conftest.er1
20805 ac_status=$?
20806 grep -v '^ *+' conftest.er1 >conftest.err
20807 rm -f conftest.er1
20808 cat conftest.err >&5
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); } && {
20811 test -z "$ac_c_werror_flag" ||
20812 test ! -s conftest.err
20813 } && test -s conftest.$ac_objext; then
20814 ac_lo=$ac_mid; break
20815else
20816 echo "$as_me: failed program was:" >&5
20817sed 's/^/| /' conftest.$ac_ext >&5
20818
20819 ac_hi=`expr '(' $ac_mid ')' - 1`
20820 if test $ac_mid -le $ac_hi; then
20821 ac_lo= ac_hi=
20822 break
20823 fi
20824 ac_mid=`expr 2 '*' $ac_mid`
20825fi
20826
20827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20828 done
20829else
20830 echo "$as_me: failed program was:" >&5
20831sed 's/^/| /' conftest.$ac_ext >&5
20832
20833 ac_lo= ac_hi=
20834fi
20835
20836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20837fi
20838
20839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20840# Binary search between lo and hi bounds.
20841while test "x$ac_lo" != "x$ac_hi"; do
20842 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20843 cat >conftest.$ac_ext <<_ACEOF
20844/* confdefs.h. */
20845_ACEOF
20846cat confdefs.h >>conftest.$ac_ext
20847cat >>conftest.$ac_ext <<_ACEOF
20848/* end confdefs.h. */
20849$ac_includes_default
20850 typedef long int ac__type_sizeof_;
20851int
20852main ()
20853{
20854static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20855test_array [0] = 0
20856
20857 ;
20858 return 0;
20859}
20860_ACEOF
20861rm -f conftest.$ac_objext
20862if { (ac_try="$ac_compile"
20863case "(($ac_try" in
20864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865 *) ac_try_echo=$ac_try;;
20866esac
20867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20868 (eval "$ac_compile") 2>conftest.er1
20869 ac_status=$?
20870 grep -v '^ *+' conftest.er1 >conftest.err
20871 rm -f conftest.er1
20872 cat conftest.err >&5
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); } && {
20875 test -z "$ac_c_werror_flag" ||
20876 test ! -s conftest.err
20877 } && test -s conftest.$ac_objext; then
20878 ac_hi=$ac_mid
20879else
20880 echo "$as_me: failed program was:" >&5
20881sed 's/^/| /' conftest.$ac_ext >&5
20882
20883 ac_lo=`expr '(' $ac_mid ')' + 1`
20884fi
20885
20886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20887done
20888case $ac_lo in
20889?*) ac_cv_sizeof_long_int=$ac_lo;;
20890'') if test "$ac_cv_type_long_int" = yes; then
20891 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
20892See \`config.log' for more details." >&5
20893echo "$as_me: error: cannot compute sizeof (long int)
20894See \`config.log' for more details." >&2;}
20895 { (exit 77); exit 77; }; }
20896 else
20897 ac_cv_sizeof_long_int=0
20898 fi ;;
20899esac
20900else
20901 cat >conftest.$ac_ext <<_ACEOF
20902/* confdefs.h. */
20903_ACEOF
20904cat confdefs.h >>conftest.$ac_ext
20905cat >>conftest.$ac_ext <<_ACEOF
20906/* end confdefs.h. */
20907$ac_includes_default
20908 typedef long int ac__type_sizeof_;
20909static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20910static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20911#include <stdio.h>
20912#include <stdlib.h>
20913int
20914main ()
20915{
20916
20917 FILE *f = fopen ("conftest.val", "w");
20918 if (! f)
20919 return 1;
20920 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20921 {
20922 long int i = longval ();
20923 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20924 return 1;
20925 fprintf (f, "%ld\n", i);
20926 }
20927 else
20928 {
20929 unsigned long int i = ulongval ();
20930 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20931 return 1;
20932 fprintf (f, "%lu\n", i);
20933 }
20934 return ferror (f) || fclose (f) != 0;
20935
20936 ;
20937 return 0;
20938}
20939_ACEOF
20940rm -f conftest$ac_exeext
20941if { (ac_try="$ac_link"
20942case "(($ac_try" in
20943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20944 *) ac_try_echo=$ac_try;;
20945esac
20946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20947 (eval "$ac_link") 2>&5
20948 ac_status=$?
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20951 { (case "(($ac_try" in
20952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20953 *) ac_try_echo=$ac_try;;
20954esac
20955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20956 (eval "$ac_try") 2>&5
20957 ac_status=$?
20958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 (exit $ac_status); }; }; then
20960 ac_cv_sizeof_long_int=`cat conftest.val`
20961else
20962 echo "$as_me: program exited with status $ac_status" >&5
20963echo "$as_me: failed program was:" >&5
20964sed 's/^/| /' conftest.$ac_ext >&5
20965
20966( exit $ac_status )
20967if test "$ac_cv_type_long_int" = yes; then
20968 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
20969See \`config.log' for more details." >&5
20970echo "$as_me: error: cannot compute sizeof (long int)
20971See \`config.log' for more details." >&2;}
20972 { (exit 77); exit 77; }; }
20973 else
20974 ac_cv_sizeof_long_int=0
20975 fi
20976fi
20977rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20978fi
20979rm -f conftest.val
20980fi
20981{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
20982echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
20983
20984
20985
20986cat >>confdefs.h <<_ACEOF
20987#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
20988_ACEOF
20989
20990
20991{ echo "$as_me:$LINENO: checking for long long int" >&5
20992echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
20993if test "${ac_cv_type_long_long_int+set}" = set; then
20994 echo $ECHO_N "(cached) $ECHO_C" >&6
20995else
20996 cat >conftest.$ac_ext <<_ACEOF
20997/* confdefs.h. */
20998_ACEOF
20999cat confdefs.h >>conftest.$ac_ext
21000cat >>conftest.$ac_ext <<_ACEOF
21001/* end confdefs.h. */
21002$ac_includes_default
21003typedef long long int ac__type_new_;
21004int
21005main ()
21006{
21007if ((ac__type_new_ *) 0)
21008 return 0;
21009if (sizeof (ac__type_new_))
21010 return 0;
21011 ;
21012 return 0;
21013}
21014_ACEOF
21015rm -f conftest.$ac_objext
21016if { (ac_try="$ac_compile"
21017case "(($ac_try" in
21018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21019 *) ac_try_echo=$ac_try;;
21020esac
21021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21022 (eval "$ac_compile") 2>conftest.er1
21023 ac_status=$?
21024 grep -v '^ *+' conftest.er1 >conftest.err
21025 rm -f conftest.er1
21026 cat conftest.err >&5
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); } && {
21029 test -z "$ac_c_werror_flag" ||
21030 test ! -s conftest.err
21031 } && test -s conftest.$ac_objext; then
21032 ac_cv_type_long_long_int=yes
21033else
21034 echo "$as_me: failed program was:" >&5
21035sed 's/^/| /' conftest.$ac_ext >&5
21036
21037 ac_cv_type_long_long_int=no
21038fi
21039
21040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21041fi
21042{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
21043echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
21044
21045# The cast to long int works around a bug in the HP C Compiler
21046# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21047# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21048# This bug is HP SR number 8606223364.
21049{ echo "$as_me:$LINENO: checking size of long long int" >&5
21050echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
21051if test "${ac_cv_sizeof_long_long_int+set}" = set; then
21052 echo $ECHO_N "(cached) $ECHO_C" >&6
21053else
21054 if test "$cross_compiling" = yes; then
21055 # Depending upon the size, compute the lo and hi bounds.
21056cat >conftest.$ac_ext <<_ACEOF
21057/* confdefs.h. */
21058_ACEOF
21059cat confdefs.h >>conftest.$ac_ext
21060cat >>conftest.$ac_ext <<_ACEOF
21061/* end confdefs.h. */
21062$ac_includes_default
21063 typedef long long int ac__type_sizeof_;
21064int
21065main ()
21066{
21067static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21068test_array [0] = 0
21069
21070 ;
21071 return 0;
21072}
21073_ACEOF
21074rm -f conftest.$ac_objext
21075if { (ac_try="$ac_compile"
21076case "(($ac_try" in
21077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078 *) ac_try_echo=$ac_try;;
21079esac
21080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21081 (eval "$ac_compile") 2>conftest.er1
21082 ac_status=$?
21083 grep -v '^ *+' conftest.er1 >conftest.err
21084 rm -f conftest.er1
21085 cat conftest.err >&5
21086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087 (exit $ac_status); } && {
21088 test -z "$ac_c_werror_flag" ||
21089 test ! -s conftest.err
21090 } && test -s conftest.$ac_objext; then
21091 ac_lo=0 ac_mid=0
21092 while :; do
21093 cat >conftest.$ac_ext <<_ACEOF
21094/* confdefs.h. */
21095_ACEOF
21096cat confdefs.h >>conftest.$ac_ext
21097cat >>conftest.$ac_ext <<_ACEOF
21098/* end confdefs.h. */
21099$ac_includes_default
21100 typedef long long int ac__type_sizeof_;
21101int
21102main ()
21103{
21104static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21105test_array [0] = 0
21106
21107 ;
21108 return 0;
21109}
21110_ACEOF
21111rm -f conftest.$ac_objext
21112if { (ac_try="$ac_compile"
21113case "(($ac_try" in
21114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21115 *) ac_try_echo=$ac_try;;
21116esac
21117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21118 (eval "$ac_compile") 2>conftest.er1
21119 ac_status=$?
21120 grep -v '^ *+' conftest.er1 >conftest.err
21121 rm -f conftest.er1
21122 cat conftest.err >&5
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); } && {
21125 test -z "$ac_c_werror_flag" ||
21126 test ! -s conftest.err
21127 } && test -s conftest.$ac_objext; then
21128 ac_hi=$ac_mid; break
21129else
21130 echo "$as_me: failed program was:" >&5
21131sed 's/^/| /' conftest.$ac_ext >&5
21132
21133 ac_lo=`expr $ac_mid + 1`
21134 if test $ac_lo -le $ac_mid; then
21135 ac_lo= ac_hi=
21136 break
21137 fi
21138 ac_mid=`expr 2 '*' $ac_mid + 1`
21139fi
21140
21141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21142 done
21143else
21144 echo "$as_me: failed program was:" >&5
21145sed 's/^/| /' conftest.$ac_ext >&5
21146
21147 cat >conftest.$ac_ext <<_ACEOF
21148/* confdefs.h. */
21149_ACEOF
21150cat confdefs.h >>conftest.$ac_ext
21151cat >>conftest.$ac_ext <<_ACEOF
21152/* end confdefs.h. */
21153$ac_includes_default
21154 typedef long long int ac__type_sizeof_;
21155int
21156main ()
21157{
21158static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21159test_array [0] = 0
21160
21161 ;
21162 return 0;
21163}
21164_ACEOF
21165rm -f conftest.$ac_objext
21166if { (ac_try="$ac_compile"
21167case "(($ac_try" in
21168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21169 *) ac_try_echo=$ac_try;;
21170esac
21171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21172 (eval "$ac_compile") 2>conftest.er1
21173 ac_status=$?
21174 grep -v '^ *+' conftest.er1 >conftest.err
21175 rm -f conftest.er1
21176 cat conftest.err >&5
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); } && {
21179 test -z "$ac_c_werror_flag" ||
21180 test ! -s conftest.err
21181 } && test -s conftest.$ac_objext; then
21182 ac_hi=-1 ac_mid=-1
21183 while :; do
21184 cat >conftest.$ac_ext <<_ACEOF
21185/* confdefs.h. */
21186_ACEOF
21187cat confdefs.h >>conftest.$ac_ext
21188cat >>conftest.$ac_ext <<_ACEOF
21189/* end confdefs.h. */
21190$ac_includes_default
21191 typedef long long int ac__type_sizeof_;
21192int
21193main ()
21194{
21195static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21196test_array [0] = 0
21197
21198 ;
21199 return 0;
21200}
21201_ACEOF
21202rm -f conftest.$ac_objext
21203if { (ac_try="$ac_compile"
21204case "(($ac_try" in
21205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21206 *) ac_try_echo=$ac_try;;
21207esac
21208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21209 (eval "$ac_compile") 2>conftest.er1
21210 ac_status=$?
21211 grep -v '^ *+' conftest.er1 >conftest.err
21212 rm -f conftest.er1
21213 cat conftest.err >&5
21214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215 (exit $ac_status); } && {
21216 test -z "$ac_c_werror_flag" ||
21217 test ! -s conftest.err
21218 } && test -s conftest.$ac_objext; then
21219 ac_lo=$ac_mid; break
21220else
21221 echo "$as_me: failed program was:" >&5
21222sed 's/^/| /' conftest.$ac_ext >&5
21223
21224 ac_hi=`expr '(' $ac_mid ')' - 1`
21225 if test $ac_mid -le $ac_hi; then
21226 ac_lo= ac_hi=
21227 break
21228 fi
21229 ac_mid=`expr 2 '*' $ac_mid`
21230fi
21231
21232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21233 done
21234else
21235 echo "$as_me: failed program was:" >&5
21236sed 's/^/| /' conftest.$ac_ext >&5
21237
21238 ac_lo= ac_hi=
21239fi
21240
21241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21242fi
21243
21244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21245# Binary search between lo and hi bounds.
21246while test "x$ac_lo" != "x$ac_hi"; do
21247 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21248 cat >conftest.$ac_ext <<_ACEOF
21249/* confdefs.h. */
21250_ACEOF
21251cat confdefs.h >>conftest.$ac_ext
21252cat >>conftest.$ac_ext <<_ACEOF
21253/* end confdefs.h. */
21254$ac_includes_default
21255 typedef long long int ac__type_sizeof_;
21256int
21257main ()
21258{
21259static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21260test_array [0] = 0
21261
21262 ;
21263 return 0;
21264}
21265_ACEOF
21266rm -f conftest.$ac_objext
21267if { (ac_try="$ac_compile"
21268case "(($ac_try" in
21269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21270 *) ac_try_echo=$ac_try;;
21271esac
21272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21273 (eval "$ac_compile") 2>conftest.er1
21274 ac_status=$?
21275 grep -v '^ *+' conftest.er1 >conftest.err
21276 rm -f conftest.er1
21277 cat conftest.err >&5
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); } && {
21280 test -z "$ac_c_werror_flag" ||
21281 test ! -s conftest.err
21282 } && test -s conftest.$ac_objext; then
21283 ac_hi=$ac_mid
21284else
21285 echo "$as_me: failed program was:" >&5
21286sed 's/^/| /' conftest.$ac_ext >&5
21287
21288 ac_lo=`expr '(' $ac_mid ')' + 1`
21289fi
21290
21291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21292done
21293case $ac_lo in
21294?*) ac_cv_sizeof_long_long_int=$ac_lo;;
21295'') if test "$ac_cv_type_long_long_int" = yes; then
21296 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
21297See \`config.log' for more details." >&5
21298echo "$as_me: error: cannot compute sizeof (long long int)
21299See \`config.log' for more details." >&2;}
21300 { (exit 77); exit 77; }; }
21301 else
21302 ac_cv_sizeof_long_long_int=0
21303 fi ;;
21304esac
21305else
21306 cat >conftest.$ac_ext <<_ACEOF
21307/* confdefs.h. */
21308_ACEOF
21309cat confdefs.h >>conftest.$ac_ext
21310cat >>conftest.$ac_ext <<_ACEOF
21311/* end confdefs.h. */
21312$ac_includes_default
21313 typedef long long int ac__type_sizeof_;
21314static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21315static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21316#include <stdio.h>
21317#include <stdlib.h>
21318int
21319main ()
21320{
21321
21322 FILE *f = fopen ("conftest.val", "w");
21323 if (! f)
21324 return 1;
21325 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21326 {
21327 long int i = longval ();
21328 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21329 return 1;
21330 fprintf (f, "%ld\n", i);
21331 }
21332 else
21333 {
21334 unsigned long int i = ulongval ();
21335 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21336 return 1;
21337 fprintf (f, "%lu\n", i);
21338 }
21339 return ferror (f) || fclose (f) != 0;
21340
21341 ;
21342 return 0;
21343}
21344_ACEOF
21345rm -f conftest$ac_exeext
21346if { (ac_try="$ac_link"
21347case "(($ac_try" in
21348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21349 *) ac_try_echo=$ac_try;;
21350esac
21351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21352 (eval "$ac_link") 2>&5
21353 ac_status=$?
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21356 { (case "(($ac_try" in
21357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21358 *) ac_try_echo=$ac_try;;
21359esac
21360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21361 (eval "$ac_try") 2>&5
21362 ac_status=$?
21363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); }; }; then
21365 ac_cv_sizeof_long_long_int=`cat conftest.val`
21366else
21367 echo "$as_me: program exited with status $ac_status" >&5
21368echo "$as_me: failed program was:" >&5
21369sed 's/^/| /' conftest.$ac_ext >&5
21370
21371( exit $ac_status )
21372if test "$ac_cv_type_long_long_int" = yes; then
21373 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
21374See \`config.log' for more details." >&5
21375echo "$as_me: error: cannot compute sizeof (long long int)
21376See \`config.log' for more details." >&2;}
21377 { (exit 77); exit 77; }; }
21378 else
21379 ac_cv_sizeof_long_long_int=0
21380 fi
21381fi
21382rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21383fi
21384rm -f conftest.val
21385fi
21386{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
21387echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
21388
21389
21390
21391cat >>confdefs.h <<_ACEOF
21392#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
21393_ACEOF
21394
21395
21396
21397# Sanity check long long for some platforms (AIX)
21398if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
21399 ac_cv_sizeof_long_long_int=0
21400fi
21401
21402# compute LLONG_MIN and LLONG_MAX if we don't know them.
21403if test -z "$have_llong_max"; then
21404 { echo "$as_me:$LINENO: checking for max value of long long" >&5
21405echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6; }
21406 if test "$cross_compiling" = yes; then
21407
21408 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
21409echo "$as_me: WARNING: cross compiling: not checking" >&2;}
21410
21411
21412else
21413 cat >conftest.$ac_ext <<_ACEOF
21414/* confdefs.h. */
21415_ACEOF
21416cat confdefs.h >>conftest.$ac_ext
21417cat >>conftest.$ac_ext <<_ACEOF
21418/* end confdefs.h. */
21419
21420#include <stdio.h>
21421/* Why is this so damn hard? */
21422#ifdef __GNUC__
21423# undef __GNUC__
21424#endif
21425#define __USE_ISOC99
21426#include <limits.h>
21427#define DATA "conftest.llminmax"
21428#define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
21429
21430/*
21431 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
21432 * we do this the hard way.
21433 */
21434static int
21435fprint_ll(FILE *f, long long n)
21436{
21437 unsigned int i;
21438 int l[sizeof(long long) * 8];
21439
21440 if (n < 0)
21441 if (fprintf(f, "-") < 0)
21442 return -1;
21443 for (i = 0; n != 0; i++) {
21444 l[i] = my_abs(n % 10);
21445 n /= 10;
21446 }
21447 do {
21448 if (fprintf(f, "%d", l[--i]) < 0)
21449 return -1;
21450 } while (i != 0);
21451 if (fprintf(f, " ") < 0)
21452 return -1;
21453 return 0;
21454}
21455
21456int main(void) {
21457 FILE *f;
21458 long long i, llmin, llmax = 0;
21459
21460 if((f = fopen(DATA,"w")) == NULL)
21461 exit(1);
21462
21463#if defined(LLONG_MIN) && defined(LLONG_MAX)
21464 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
21465 llmin = LLONG_MIN;
21466 llmax = LLONG_MAX;
21467#else
21468 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
21469 /* This will work on one's complement and two's complement */
21470 for (i = 1; i > llmax; i <<= 1, i++)
21471 llmax = i;
21472 llmin = llmax + 1LL; /* wrap */
21473#endif
21474
21475 /* Sanity check */
21476 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
21477 || llmax - 1 > llmax || llmin == llmax || llmin == 0
21478 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
21479 fprintf(f, "unknown unknown\n");
21480 exit(2);
21481 }
21482
21483 if (fprint_ll(f, llmin) < 0)
21484 exit(3);
21485 if (fprint_ll(f, llmax) < 0)
21486 exit(4);
21487 if (fclose(f) < 0)
21488 exit(5);
21489 exit(0);
21490}
21491
21492_ACEOF
21493rm -f conftest$ac_exeext
21494if { (ac_try="$ac_link"
21495case "(($ac_try" in
21496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21497 *) ac_try_echo=$ac_try;;
21498esac
21499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21500 (eval "$ac_link") 2>&5
21501 ac_status=$?
21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21504 { (case "(($ac_try" in
21505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21506 *) ac_try_echo=$ac_try;;
21507esac
21508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21509 (eval "$ac_try") 2>&5
21510 ac_status=$?
21511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512 (exit $ac_status); }; }; then
21513
21514 llong_min=`$AWK '{print $1}' conftest.llminmax`
21515 llong_max=`$AWK '{print $2}' conftest.llminmax`
21516
21517 { echo "$as_me:$LINENO: result: $llong_max" >&5
21518echo "${ECHO_T}$llong_max" >&6; }
21519
21520cat >>confdefs.h <<_ACEOF
21521#define LLONG_MAX ${llong_max}LL
21522_ACEOF
21523
21524 { echo "$as_me:$LINENO: checking for min value of long long" >&5
21525echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6; }
21526 { echo "$as_me:$LINENO: result: $llong_min" >&5
21527echo "${ECHO_T}$llong_min" >&6; }
21528
21529cat >>confdefs.h <<_ACEOF
21530#define LLONG_MIN ${llong_min}LL
21531_ACEOF
21532
21533
21534else
21535 echo "$as_me: program exited with status $ac_status" >&5
21536echo "$as_me: failed program was:" >&5
21537sed 's/^/| /' conftest.$ac_ext >&5
21538
21539( exit $ac_status )
21540
21541 { echo "$as_me:$LINENO: result: not found" >&5
21542echo "${ECHO_T}not found" >&6; }
21543
21544fi
21545rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21546fi
21547
21548
21549fi
21550
21551
21552# More checks for data types
21553{ echo "$as_me:$LINENO: checking for u_int type" >&5
21554echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
21555if test "${ac_cv_have_u_int+set}" = set; then
21556 echo $ECHO_N "(cached) $ECHO_C" >&6
21557else
21558
21559 cat >conftest.$ac_ext <<_ACEOF
21560/* confdefs.h. */
21561_ACEOF
21562cat confdefs.h >>conftest.$ac_ext
21563cat >>conftest.$ac_ext <<_ACEOF
21564/* end confdefs.h. */
21565 #include <sys/types.h>
21566int
21567main ()
21568{
21569 u_int a; a = 1;
21570 ;
21571 return 0;
21572}
21573_ACEOF
21574rm -f conftest.$ac_objext
21575if { (ac_try="$ac_compile"
21576case "(($ac_try" in
21577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21578 *) ac_try_echo=$ac_try;;
21579esac
21580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21581 (eval "$ac_compile") 2>conftest.er1
21582 ac_status=$?
21583 grep -v '^ *+' conftest.er1 >conftest.err
21584 rm -f conftest.er1
21585 cat conftest.err >&5
21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587 (exit $ac_status); } && {
21588 test -z "$ac_c_werror_flag" ||
21589 test ! -s conftest.err
21590 } && test -s conftest.$ac_objext; then
21591 ac_cv_have_u_int="yes"
21592else
21593 echo "$as_me: failed program was:" >&5
21594sed 's/^/| /' conftest.$ac_ext >&5
21595
21596 ac_cv_have_u_int="no"
21597
21598fi
21599
21600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21601
21602fi
21603{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
21604echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
21605if test "x$ac_cv_have_u_int" = "xyes" ; then
21606
21607cat >>confdefs.h <<\_ACEOF
21608#define HAVE_U_INT 1
21609_ACEOF
21610
21611 have_u_int=1
21612fi
21613
21614{ echo "$as_me:$LINENO: checking for intXX_t types" >&5
21615echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
21616if test "${ac_cv_have_intxx_t+set}" = set; then
21617 echo $ECHO_N "(cached) $ECHO_C" >&6
21618else
21619
21620 cat >conftest.$ac_ext <<_ACEOF
21621/* confdefs.h. */
21622_ACEOF
21623cat confdefs.h >>conftest.$ac_ext
21624cat >>conftest.$ac_ext <<_ACEOF
21625/* end confdefs.h. */
21626 #include <sys/types.h>
21627int
21628main ()
21629{
21630 int8_t a; int16_t b; int32_t c; a = b = c = 1;
21631 ;
21632 return 0;
21633}
21634_ACEOF
21635rm -f conftest.$ac_objext
21636if { (ac_try="$ac_compile"
21637case "(($ac_try" in
21638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21639 *) ac_try_echo=$ac_try;;
21640esac
21641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21642 (eval "$ac_compile") 2>conftest.er1
21643 ac_status=$?
21644 grep -v '^ *+' conftest.er1 >conftest.err
21645 rm -f conftest.er1
21646 cat conftest.err >&5
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); } && {
21649 test -z "$ac_c_werror_flag" ||
21650 test ! -s conftest.err
21651 } && test -s conftest.$ac_objext; then
21652 ac_cv_have_intxx_t="yes"
21653else
21654 echo "$as_me: failed program was:" >&5
21655sed 's/^/| /' conftest.$ac_ext >&5
21656
21657 ac_cv_have_intxx_t="no"
21658
21659fi
21660
21661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21662
21663fi
21664{ echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
21665echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
21666if test "x$ac_cv_have_intxx_t" = "xyes" ; then
21667
21668cat >>confdefs.h <<\_ACEOF
21669#define HAVE_INTXX_T 1
21670_ACEOF
21671
21672 have_intxx_t=1
21673fi
21674
21675if (test -z "$have_intxx_t" && \
21676 test "x$ac_cv_header_stdint_h" = "xyes")
21677then
21678 { echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
21679echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6; }
21680 cat >conftest.$ac_ext <<_ACEOF
21681/* confdefs.h. */
21682_ACEOF
21683cat confdefs.h >>conftest.$ac_ext
21684cat >>conftest.$ac_ext <<_ACEOF
21685/* end confdefs.h. */
21686 #include <stdint.h>
21687int
21688main ()
21689{
21690 int8_t a; int16_t b; int32_t c; a = b = c = 1;
21691 ;
21692 return 0;
21693}
21694_ACEOF
21695rm -f conftest.$ac_objext
21696if { (ac_try="$ac_compile"
21697case "(($ac_try" in
21698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21699 *) ac_try_echo=$ac_try;;
21700esac
21701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21702 (eval "$ac_compile") 2>conftest.er1
21703 ac_status=$?
21704 grep -v '^ *+' conftest.er1 >conftest.err
21705 rm -f conftest.er1
21706 cat conftest.err >&5
21707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708 (exit $ac_status); } && {
21709 test -z "$ac_c_werror_flag" ||
21710 test ! -s conftest.err
21711 } && test -s conftest.$ac_objext; then
21712
21713 cat >>confdefs.h <<\_ACEOF
21714#define HAVE_INTXX_T 1
21715_ACEOF
21716
21717 { echo "$as_me:$LINENO: result: yes" >&5
21718echo "${ECHO_T}yes" >&6; }
21719
21720else
21721 echo "$as_me: failed program was:" >&5
21722sed 's/^/| /' conftest.$ac_ext >&5
21723
21724 { echo "$as_me:$LINENO: result: no" >&5
21725echo "${ECHO_T}no" >&6; }
21726
21727fi
21728
21729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21730fi
21731
21732{ echo "$as_me:$LINENO: checking for int64_t type" >&5
21733echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
21734if test "${ac_cv_have_int64_t+set}" = set; then
21735 echo $ECHO_N "(cached) $ECHO_C" >&6
21736else
21737
21738 cat >conftest.$ac_ext <<_ACEOF
21739/* confdefs.h. */
21740_ACEOF
21741cat confdefs.h >>conftest.$ac_ext
21742cat >>conftest.$ac_ext <<_ACEOF
21743/* end confdefs.h. */
21744
21745#include <sys/types.h>
21746#ifdef HAVE_STDINT_H
21747# include <stdint.h>
21748#endif
21749#include <sys/socket.h>
21750#ifdef HAVE_SYS_BITYPES_H
21751# include <sys/bitypes.h>
21752#endif
21753
21754int
21755main ()
21756{
21757 int64_t a; a = 1;
21758 ;
21759 return 0;
21760}
21761_ACEOF
21762rm -f conftest.$ac_objext
21763if { (ac_try="$ac_compile"
21764case "(($ac_try" in
21765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21766 *) ac_try_echo=$ac_try;;
21767esac
21768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21769 (eval "$ac_compile") 2>conftest.er1
21770 ac_status=$?
21771 grep -v '^ *+' conftest.er1 >conftest.err
21772 rm -f conftest.er1
21773 cat conftest.err >&5
21774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775 (exit $ac_status); } && {
21776 test -z "$ac_c_werror_flag" ||
21777 test ! -s conftest.err
21778 } && test -s conftest.$ac_objext; then
21779 ac_cv_have_int64_t="yes"
21780else
21781 echo "$as_me: failed program was:" >&5
21782sed 's/^/| /' conftest.$ac_ext >&5
21783
21784 ac_cv_have_int64_t="no"
21785
21786fi
21787
21788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21789
21790fi
21791{ echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
21792echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
21793if test "x$ac_cv_have_int64_t" = "xyes" ; then
21794
21795cat >>confdefs.h <<\_ACEOF
21796#define HAVE_INT64_T 1
21797_ACEOF
21798
21799fi
21800
21801{ echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
21802echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
21803if test "${ac_cv_have_u_intxx_t+set}" = set; then
21804 echo $ECHO_N "(cached) $ECHO_C" >&6
21805else
21806
21807 cat >conftest.$ac_ext <<_ACEOF
21808/* confdefs.h. */
21809_ACEOF
21810cat confdefs.h >>conftest.$ac_ext
21811cat >>conftest.$ac_ext <<_ACEOF
21812/* end confdefs.h. */
21813 #include <sys/types.h>
21814int
21815main ()
21816{
21817 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
21818 ;
21819 return 0;
21820}
21821_ACEOF
21822rm -f conftest.$ac_objext
21823if { (ac_try="$ac_compile"
21824case "(($ac_try" in
21825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21826 *) ac_try_echo=$ac_try;;
21827esac
21828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21829 (eval "$ac_compile") 2>conftest.er1
21830 ac_status=$?
21831 grep -v '^ *+' conftest.er1 >conftest.err
21832 rm -f conftest.er1
21833 cat conftest.err >&5
21834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835 (exit $ac_status); } && {
21836 test -z "$ac_c_werror_flag" ||
21837 test ! -s conftest.err
21838 } && test -s conftest.$ac_objext; then
21839 ac_cv_have_u_intxx_t="yes"
21840else
21841 echo "$as_me: failed program was:" >&5
21842sed 's/^/| /' conftest.$ac_ext >&5
21843
21844 ac_cv_have_u_intxx_t="no"
21845
21846fi
21847
21848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21849
21850fi
21851{ echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
21852echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
21853if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
21854
21855cat >>confdefs.h <<\_ACEOF
21856#define HAVE_U_INTXX_T 1
21857_ACEOF
21858
21859 have_u_intxx_t=1
21860fi
21861
21862if test -z "$have_u_intxx_t" ; then
21863 { echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
21864echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6; }
21865 cat >conftest.$ac_ext <<_ACEOF
21866/* confdefs.h. */
21867_ACEOF
21868cat confdefs.h >>conftest.$ac_ext
21869cat >>conftest.$ac_ext <<_ACEOF
21870/* end confdefs.h. */
21871 #include <sys/socket.h>
21872int
21873main ()
21874{
21875 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
21876 ;
21877 return 0;
21878}
21879_ACEOF
21880rm -f conftest.$ac_objext
21881if { (ac_try="$ac_compile"
21882case "(($ac_try" in
21883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21884 *) ac_try_echo=$ac_try;;
21885esac
21886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21887 (eval "$ac_compile") 2>conftest.er1
21888 ac_status=$?
21889 grep -v '^ *+' conftest.er1 >conftest.err
21890 rm -f conftest.er1
21891 cat conftest.err >&5
21892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893 (exit $ac_status); } && {
21894 test -z "$ac_c_werror_flag" ||
21895 test ! -s conftest.err
21896 } && test -s conftest.$ac_objext; then
21897
21898 cat >>confdefs.h <<\_ACEOF
21899#define HAVE_U_INTXX_T 1
21900_ACEOF
21901
21902 { echo "$as_me:$LINENO: result: yes" >&5
21903echo "${ECHO_T}yes" >&6; }
21904
21905else
21906 echo "$as_me: failed program was:" >&5
21907sed 's/^/| /' conftest.$ac_ext >&5
21908
21909 { echo "$as_me:$LINENO: result: no" >&5
21910echo "${ECHO_T}no" >&6; }
21911
21912fi
21913
21914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21915fi
21916
21917{ echo "$as_me:$LINENO: checking for u_int64_t types" >&5
21918echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
21919if test "${ac_cv_have_u_int64_t+set}" = set; then
21920 echo $ECHO_N "(cached) $ECHO_C" >&6
21921else
21922
21923 cat >conftest.$ac_ext <<_ACEOF
21924/* confdefs.h. */
21925_ACEOF
21926cat confdefs.h >>conftest.$ac_ext
21927cat >>conftest.$ac_ext <<_ACEOF
21928/* end confdefs.h. */
21929 #include <sys/types.h>
21930int
21931main ()
21932{
21933 u_int64_t a; a = 1;
21934 ;
21935 return 0;
21936}
21937_ACEOF
21938rm -f conftest.$ac_objext
21939if { (ac_try="$ac_compile"
21940case "(($ac_try" in
21941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21942 *) ac_try_echo=$ac_try;;
21943esac
21944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21945 (eval "$ac_compile") 2>conftest.er1
21946 ac_status=$?
21947 grep -v '^ *+' conftest.er1 >conftest.err
21948 rm -f conftest.er1
21949 cat conftest.err >&5
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); } && {
21952 test -z "$ac_c_werror_flag" ||
21953 test ! -s conftest.err
21954 } && test -s conftest.$ac_objext; then
21955 ac_cv_have_u_int64_t="yes"
21956else
21957 echo "$as_me: failed program was:" >&5
21958sed 's/^/| /' conftest.$ac_ext >&5
21959
21960 ac_cv_have_u_int64_t="no"
21961
21962fi
21963
21964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21965
21966fi
21967{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
21968echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
21969if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
21970
21971cat >>confdefs.h <<\_ACEOF
21972#define HAVE_U_INT64_T 1
21973_ACEOF
21974
21975 have_u_int64_t=1
21976fi
21977
21978if test -z "$have_u_int64_t" ; then
21979 { echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
21980echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6; }
21981 cat >conftest.$ac_ext <<_ACEOF
21982/* confdefs.h. */
21983_ACEOF
21984cat confdefs.h >>conftest.$ac_ext
21985cat >>conftest.$ac_ext <<_ACEOF
21986/* end confdefs.h. */
21987 #include <sys/bitypes.h>
21988int
21989main ()
21990{
21991 u_int64_t a; a = 1
21992 ;
21993 return 0;
21994}
21995_ACEOF
21996rm -f conftest.$ac_objext
21997if { (ac_try="$ac_compile"
21998case "(($ac_try" in
21999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22000 *) ac_try_echo=$ac_try;;
22001esac
22002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22003 (eval "$ac_compile") 2>conftest.er1
22004 ac_status=$?
22005 grep -v '^ *+' conftest.er1 >conftest.err
22006 rm -f conftest.er1
22007 cat conftest.err >&5
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); } && {
22010 test -z "$ac_c_werror_flag" ||
22011 test ! -s conftest.err
22012 } && test -s conftest.$ac_objext; then
22013
22014 cat >>confdefs.h <<\_ACEOF
22015#define HAVE_U_INT64_T 1
22016_ACEOF
22017
22018 { echo "$as_me:$LINENO: result: yes" >&5
22019echo "${ECHO_T}yes" >&6; }
22020
22021else
22022 echo "$as_me: failed program was:" >&5
22023sed 's/^/| /' conftest.$ac_ext >&5
22024
22025 { echo "$as_me:$LINENO: result: no" >&5
22026echo "${ECHO_T}no" >&6; }
22027
22028fi
22029
22030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22031fi
22032
22033if test -z "$have_u_intxx_t" ; then
22034 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
22035echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
22036if test "${ac_cv_have_uintxx_t+set}" = set; then
22037 echo $ECHO_N "(cached) $ECHO_C" >&6
22038else
22039
22040 cat >conftest.$ac_ext <<_ACEOF
22041/* confdefs.h. */
22042_ACEOF
22043cat confdefs.h >>conftest.$ac_ext
22044cat >>conftest.$ac_ext <<_ACEOF
22045/* end confdefs.h. */
22046
22047#include <sys/types.h>
22048
22049int
22050main ()
22051{
22052 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
22053 ;
22054 return 0;
22055}
22056_ACEOF
22057rm -f conftest.$ac_objext
22058if { (ac_try="$ac_compile"
22059case "(($ac_try" in
22060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22061 *) ac_try_echo=$ac_try;;
22062esac
22063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22064 (eval "$ac_compile") 2>conftest.er1
22065 ac_status=$?
22066 grep -v '^ *+' conftest.er1 >conftest.err
22067 rm -f conftest.er1
22068 cat conftest.err >&5
22069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070 (exit $ac_status); } && {
22071 test -z "$ac_c_werror_flag" ||
22072 test ! -s conftest.err
22073 } && test -s conftest.$ac_objext; then
22074 ac_cv_have_uintxx_t="yes"
22075else
22076 echo "$as_me: failed program was:" >&5
22077sed 's/^/| /' conftest.$ac_ext >&5
22078
22079 ac_cv_have_uintxx_t="no"
22080
22081fi
22082
22083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22084
22085fi
22086{ echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
22087echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
22088 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
22089
22090cat >>confdefs.h <<\_ACEOF
22091#define HAVE_UINTXX_T 1
22092_ACEOF
22093
22094 fi
22095fi
22096
22097if test -z "$have_uintxx_t" ; then
22098 { echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
22099echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6; }
22100 cat >conftest.$ac_ext <<_ACEOF
22101/* confdefs.h. */
22102_ACEOF
22103cat confdefs.h >>conftest.$ac_ext
22104cat >>conftest.$ac_ext <<_ACEOF
22105/* end confdefs.h. */
22106 #include <stdint.h>
22107int
22108main ()
22109{
22110 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
22111 ;
22112 return 0;
22113}
22114_ACEOF
22115rm -f conftest.$ac_objext
22116if { (ac_try="$ac_compile"
22117case "(($ac_try" in
22118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22119 *) ac_try_echo=$ac_try;;
22120esac
22121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22122 (eval "$ac_compile") 2>conftest.er1
22123 ac_status=$?
22124 grep -v '^ *+' conftest.er1 >conftest.err
22125 rm -f conftest.er1
22126 cat conftest.err >&5
22127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 (exit $ac_status); } && {
22129 test -z "$ac_c_werror_flag" ||
22130 test ! -s conftest.err
22131 } && test -s conftest.$ac_objext; then
22132
22133 cat >>confdefs.h <<\_ACEOF
22134#define HAVE_UINTXX_T 1
22135_ACEOF
22136
22137 { echo "$as_me:$LINENO: result: yes" >&5
22138echo "${ECHO_T}yes" >&6; }
22139
22140else
22141 echo "$as_me: failed program was:" >&5
22142sed 's/^/| /' conftest.$ac_ext >&5
22143
22144 { echo "$as_me:$LINENO: result: no" >&5
22145echo "${ECHO_T}no" >&6; }
22146
22147fi
22148
22149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22150fi
22151
22152if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
22153 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
22154then
22155 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
22156echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
22157 cat >conftest.$ac_ext <<_ACEOF
22158/* confdefs.h. */
22159_ACEOF
22160cat confdefs.h >>conftest.$ac_ext
22161cat >>conftest.$ac_ext <<_ACEOF
22162/* end confdefs.h. */
22163
22164#include <sys/bitypes.h>
22165
22166int
22167main ()
22168{
22169
22170 int8_t a; int16_t b; int32_t c;
22171 u_int8_t e; u_int16_t f; u_int32_t g;
22172 a = b = c = e = f = g = 1;
22173
22174 ;
22175 return 0;
22176}
22177_ACEOF
22178rm -f conftest.$ac_objext
22179if { (ac_try="$ac_compile"
22180case "(($ac_try" in
22181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22182 *) ac_try_echo=$ac_try;;
22183esac
22184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22185 (eval "$ac_compile") 2>conftest.er1
22186 ac_status=$?
22187 grep -v '^ *+' conftest.er1 >conftest.err
22188 rm -f conftest.er1
22189 cat conftest.err >&5
22190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191 (exit $ac_status); } && {
22192 test -z "$ac_c_werror_flag" ||
22193 test ! -s conftest.err
22194 } && test -s conftest.$ac_objext; then
22195
22196 cat >>confdefs.h <<\_ACEOF
22197#define HAVE_U_INTXX_T 1
22198_ACEOF
22199
22200 cat >>confdefs.h <<\_ACEOF
22201#define HAVE_INTXX_T 1
22202_ACEOF
22203
22204 { echo "$as_me:$LINENO: result: yes" >&5
22205echo "${ECHO_T}yes" >&6; }
22206
22207else
22208 echo "$as_me: failed program was:" >&5
22209sed 's/^/| /' conftest.$ac_ext >&5
22210
22211 { echo "$as_me:$LINENO: result: no" >&5
22212echo "${ECHO_T}no" >&6; }
22213
22214fi
22215
22216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22217fi
22218
22219
22220{ echo "$as_me:$LINENO: checking for u_char" >&5
22221echo $ECHO_N "checking for u_char... $ECHO_C" >&6; }
22222if test "${ac_cv_have_u_char+set}" = set; then
22223 echo $ECHO_N "(cached) $ECHO_C" >&6
22224else
22225
22226 cat >conftest.$ac_ext <<_ACEOF
22227/* confdefs.h. */
22228_ACEOF
22229cat confdefs.h >>conftest.$ac_ext
22230cat >>conftest.$ac_ext <<_ACEOF
22231/* end confdefs.h. */
22232
22233#include <sys/types.h>
22234
22235int
22236main ()
22237{
22238 u_char foo; foo = 125;
22239 ;
22240 return 0;
22241}
22242_ACEOF
22243rm -f conftest.$ac_objext
22244if { (ac_try="$ac_compile"
22245case "(($ac_try" in
22246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22247 *) ac_try_echo=$ac_try;;
22248esac
22249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22250 (eval "$ac_compile") 2>conftest.er1
22251 ac_status=$?
22252 grep -v '^ *+' conftest.er1 >conftest.err
22253 rm -f conftest.er1
22254 cat conftest.err >&5
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); } && {
22257 test -z "$ac_c_werror_flag" ||
22258 test ! -s conftest.err
22259 } && test -s conftest.$ac_objext; then
22260 ac_cv_have_u_char="yes"
22261else
22262 echo "$as_me: failed program was:" >&5
22263sed 's/^/| /' conftest.$ac_ext >&5
22264
22265 ac_cv_have_u_char="no"
22266
22267fi
22268
22269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22270
22271fi
22272{ echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
22273echo "${ECHO_T}$ac_cv_have_u_char" >&6; }
22274if test "x$ac_cv_have_u_char" = "xyes" ; then
22275
22276cat >>confdefs.h <<\_ACEOF
22277#define HAVE_U_CHAR 1
22278_ACEOF
22279
22280fi
22281
22282
22283 { echo "$as_me:$LINENO: checking for socklen_t" >&5
22284echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
22285if test "${ac_cv_type_socklen_t+set}" = set; then
22286 echo $ECHO_N "(cached) $ECHO_C" >&6
22287else
22288 cat >conftest.$ac_ext <<_ACEOF
22289/* confdefs.h. */
22290_ACEOF
22291cat confdefs.h >>conftest.$ac_ext
22292cat >>conftest.$ac_ext <<_ACEOF
22293/* end confdefs.h. */
22294#include <sys/types.h>
22295#include <sys/socket.h>
22296
22297typedef socklen_t ac__type_new_;
22298int
22299main ()
22300{
22301if ((ac__type_new_ *) 0)
22302 return 0;
22303if (sizeof (ac__type_new_))
22304 return 0;
22305 ;
22306 return 0;
22307}
22308_ACEOF
22309rm -f conftest.$ac_objext
22310if { (ac_try="$ac_compile"
22311case "(($ac_try" in
22312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22313 *) ac_try_echo=$ac_try;;
22314esac
22315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22316 (eval "$ac_compile") 2>conftest.er1
22317 ac_status=$?
22318 grep -v '^ *+' conftest.er1 >conftest.err
22319 rm -f conftest.er1
22320 cat conftest.err >&5
22321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322 (exit $ac_status); } && {
22323 test -z "$ac_c_werror_flag" ||
22324 test ! -s conftest.err
22325 } && test -s conftest.$ac_objext; then
22326 ac_cv_type_socklen_t=yes
22327else
22328 echo "$as_me: failed program was:" >&5
22329sed 's/^/| /' conftest.$ac_ext >&5
22330
22331 ac_cv_type_socklen_t=no
22332fi
22333
22334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22335fi
22336{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22337echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
22338if test $ac_cv_type_socklen_t = yes; then
22339 :
22340else
22341
22342 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
22343echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
22344 if test "${curl_cv_socklen_t_equiv+set}" = set; then
22345 echo $ECHO_N "(cached) $ECHO_C" >&6
22346else
22347
22348 # Systems have either "struct sockaddr *" or
22349 # "void *" as the second argument to getpeername
22350 curl_cv_socklen_t_equiv=
22351 for arg2 in "struct sockaddr" void; do
22352 for t in int size_t unsigned long "unsigned long"; do
22353 cat >conftest.$ac_ext <<_ACEOF
22354/* confdefs.h. */
22355_ACEOF
22356cat confdefs.h >>conftest.$ac_ext
22357cat >>conftest.$ac_ext <<_ACEOF
22358/* end confdefs.h. */
22359
22360 #include <sys/types.h>
22361 #include <sys/socket.h>
22362
22363 int getpeername (int, $arg2 *, $t *);
22364
22365int
22366main ()
22367{
22368
22369 $t len;
22370 getpeername(0,0,&len);
22371
22372 ;
22373 return 0;
22374}
22375_ACEOF
22376rm -f conftest.$ac_objext
22377if { (ac_try="$ac_compile"
22378case "(($ac_try" in
22379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22380 *) ac_try_echo=$ac_try;;
22381esac
22382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22383 (eval "$ac_compile") 2>conftest.er1
22384 ac_status=$?
22385 grep -v '^ *+' conftest.er1 >conftest.err
22386 rm -f conftest.er1
22387 cat conftest.err >&5
22388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389 (exit $ac_status); } && {
22390 test -z "$ac_c_werror_flag" ||
22391 test ! -s conftest.err
22392 } && test -s conftest.$ac_objext; then
22393
22394 curl_cv_socklen_t_equiv="$t"
22395 break
22396
22397else
22398 echo "$as_me: failed program was:" >&5
22399sed 's/^/| /' conftest.$ac_ext >&5
22400
22401
22402fi
22403
22404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22405 done
22406 done
22407
22408 if test "x$curl_cv_socklen_t_equiv" = x; then
22409 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
22410echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
22411 { (exit 1); exit 1; }; }
22412 fi
22413
22414fi
22415
22416 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
22417echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
22418
22419cat >>confdefs.h <<_ACEOF
22420#define socklen_t $curl_cv_socklen_t_equiv
22421_ACEOF
22422
22423fi
22424
22425
22426
22427{ echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
22428echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
22429if test "${ac_cv_type_sig_atomic_t+set}" = set; then
22430 echo $ECHO_N "(cached) $ECHO_C" >&6
22431else
22432 cat >conftest.$ac_ext <<_ACEOF
22433/* confdefs.h. */
22434_ACEOF
22435cat confdefs.h >>conftest.$ac_ext
22436cat >>conftest.$ac_ext <<_ACEOF
22437/* end confdefs.h. */
22438#include <signal.h>
22439
22440typedef sig_atomic_t ac__type_new_;
22441int
22442main ()
22443{
22444if ((ac__type_new_ *) 0)
22445 return 0;
22446if (sizeof (ac__type_new_))
22447 return 0;
22448 ;
22449 return 0;
22450}
22451_ACEOF
22452rm -f conftest.$ac_objext
22453if { (ac_try="$ac_compile"
22454case "(($ac_try" in
22455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22456 *) ac_try_echo=$ac_try;;
22457esac
22458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22459 (eval "$ac_compile") 2>conftest.er1
22460 ac_status=$?
22461 grep -v '^ *+' conftest.er1 >conftest.err
22462 rm -f conftest.er1
22463 cat conftest.err >&5
22464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465 (exit $ac_status); } && {
22466 test -z "$ac_c_werror_flag" ||
22467 test ! -s conftest.err
22468 } && test -s conftest.$ac_objext; then
22469 ac_cv_type_sig_atomic_t=yes
22470else
22471 echo "$as_me: failed program was:" >&5
22472sed 's/^/| /' conftest.$ac_ext >&5
22473
22474 ac_cv_type_sig_atomic_t=no
22475fi
22476
22477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22478fi
22479{ echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
22480echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
22481if test $ac_cv_type_sig_atomic_t = yes; then
22482
22483cat >>confdefs.h <<_ACEOF
22484#define HAVE_SIG_ATOMIC_T 1
22485_ACEOF
22486
22487
22488fi
22489
22490{ echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
22491echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
22492if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
22493 echo $ECHO_N "(cached) $ECHO_C" >&6
22494else
22495 cat >conftest.$ac_ext <<_ACEOF
22496/* confdefs.h. */
22497_ACEOF
22498cat confdefs.h >>conftest.$ac_ext
22499cat >>conftest.$ac_ext <<_ACEOF
22500/* end confdefs.h. */
22501
22502#include <sys/types.h>
22503#ifdef HAVE_SYS_BITYPES_H
22504#include <sys/bitypes.h>
22505#endif
22506#ifdef HAVE_SYS_STATFS_H
22507#include <sys/statfs.h>
22508#endif
22509#ifdef HAVE_SYS_STATVFS_H
22510#include <sys/statvfs.h>
22511#endif
22512
22513
22514typedef fsblkcnt_t ac__type_new_;
22515int
22516main ()
22517{
22518if ((ac__type_new_ *) 0)
22519 return 0;
22520if (sizeof (ac__type_new_))
22521 return 0;
22522 ;
22523 return 0;
22524}
22525_ACEOF
22526rm -f conftest.$ac_objext
22527if { (ac_try="$ac_compile"
22528case "(($ac_try" in
22529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22530 *) ac_try_echo=$ac_try;;
22531esac
22532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22533 (eval "$ac_compile") 2>conftest.er1
22534 ac_status=$?
22535 grep -v '^ *+' conftest.er1 >conftest.err
22536 rm -f conftest.er1
22537 cat conftest.err >&5
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); } && {
22540 test -z "$ac_c_werror_flag" ||
22541 test ! -s conftest.err
22542 } && test -s conftest.$ac_objext; then
22543 ac_cv_type_fsblkcnt_t=yes
22544else
22545 echo "$as_me: failed program was:" >&5
22546sed 's/^/| /' conftest.$ac_ext >&5
22547
22548 ac_cv_type_fsblkcnt_t=no
22549fi
22550
22551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22552fi
22553{ echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
22554echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
22555if test $ac_cv_type_fsblkcnt_t = yes; then
22556
22557cat >>confdefs.h <<_ACEOF
22558#define HAVE_FSBLKCNT_T 1
22559_ACEOF
22560
22561
22562fi
22563{ echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
22564echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
22565if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
22566 echo $ECHO_N "(cached) $ECHO_C" >&6
22567else
22568 cat >conftest.$ac_ext <<_ACEOF
22569/* confdefs.h. */
22570_ACEOF
22571cat confdefs.h >>conftest.$ac_ext
22572cat >>conftest.$ac_ext <<_ACEOF
22573/* end confdefs.h. */
22574
22575#include <sys/types.h>
22576#ifdef HAVE_SYS_BITYPES_H
22577#include <sys/bitypes.h>
22578#endif
22579#ifdef HAVE_SYS_STATFS_H
22580#include <sys/statfs.h>
22581#endif
22582#ifdef HAVE_SYS_STATVFS_H
22583#include <sys/statvfs.h>
22584#endif
22585
22586
22587typedef fsfilcnt_t ac__type_new_;
22588int
22589main ()
22590{
22591if ((ac__type_new_ *) 0)
22592 return 0;
22593if (sizeof (ac__type_new_))
22594 return 0;
22595 ;
22596 return 0;
22597}
22598_ACEOF
22599rm -f conftest.$ac_objext
22600if { (ac_try="$ac_compile"
22601case "(($ac_try" in
22602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22603 *) ac_try_echo=$ac_try;;
22604esac
22605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22606 (eval "$ac_compile") 2>conftest.er1
22607 ac_status=$?
22608 grep -v '^ *+' conftest.er1 >conftest.err
22609 rm -f conftest.er1
22610 cat conftest.err >&5
22611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612 (exit $ac_status); } && {
22613 test -z "$ac_c_werror_flag" ||
22614 test ! -s conftest.err
22615 } && test -s conftest.$ac_objext; then
22616 ac_cv_type_fsfilcnt_t=yes
22617else
22618 echo "$as_me: failed program was:" >&5
22619sed 's/^/| /' conftest.$ac_ext >&5
22620
22621 ac_cv_type_fsfilcnt_t=no
22622fi
22623
22624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22625fi
22626{ echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
22627echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
22628if test $ac_cv_type_fsfilcnt_t = yes; then
22629
22630cat >>confdefs.h <<_ACEOF
22631#define HAVE_FSFILCNT_T 1
22632_ACEOF
22633
22634
22635fi
22636
22637
22638{ echo "$as_me:$LINENO: checking for in_addr_t" >&5
22639echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
22640if test "${ac_cv_type_in_addr_t+set}" = set; then
22641 echo $ECHO_N "(cached) $ECHO_C" >&6
22642else
22643 cat >conftest.$ac_ext <<_ACEOF
22644/* confdefs.h. */
22645_ACEOF
22646cat confdefs.h >>conftest.$ac_ext
22647cat >>conftest.$ac_ext <<_ACEOF
22648/* end confdefs.h. */
22649#include <sys/types.h>
22650#include <netinet/in.h>
22651
22652typedef in_addr_t ac__type_new_;
22653int
22654main ()
22655{
22656if ((ac__type_new_ *) 0)
22657 return 0;
22658if (sizeof (ac__type_new_))
22659 return 0;
22660 ;
22661 return 0;
22662}
22663_ACEOF
22664rm -f conftest.$ac_objext
22665if { (ac_try="$ac_compile"
22666case "(($ac_try" in
22667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22668 *) ac_try_echo=$ac_try;;
22669esac
22670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22671 (eval "$ac_compile") 2>conftest.er1
22672 ac_status=$?
22673 grep -v '^ *+' conftest.er1 >conftest.err
22674 rm -f conftest.er1
22675 cat conftest.err >&5
22676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677 (exit $ac_status); } && {
22678 test -z "$ac_c_werror_flag" ||
22679 test ! -s conftest.err
22680 } && test -s conftest.$ac_objext; then
22681 ac_cv_type_in_addr_t=yes
22682else
22683 echo "$as_me: failed program was:" >&5
22684sed 's/^/| /' conftest.$ac_ext >&5
22685
22686 ac_cv_type_in_addr_t=no
22687fi
22688
22689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22690fi
22691{ echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
22692echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; }
22693if test $ac_cv_type_in_addr_t = yes; then
22694
22695cat >>confdefs.h <<_ACEOF
22696#define HAVE_IN_ADDR_T 1
22697_ACEOF
22698
22699
22700fi
22701{ echo "$as_me:$LINENO: checking for in_port_t" >&5
22702echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; }
22703if test "${ac_cv_type_in_port_t+set}" = set; then
22704 echo $ECHO_N "(cached) $ECHO_C" >&6
22705else
22706 cat >conftest.$ac_ext <<_ACEOF
22707/* confdefs.h. */
22708_ACEOF
22709cat confdefs.h >>conftest.$ac_ext
22710cat >>conftest.$ac_ext <<_ACEOF
22711/* end confdefs.h. */
22712#include <sys/types.h>
22713#include <netinet/in.h>
22714
22715typedef in_port_t ac__type_new_;
22716int
22717main ()
22718{
22719if ((ac__type_new_ *) 0)
22720 return 0;
22721if (sizeof (ac__type_new_))
22722 return 0;
22723 ;
22724 return 0;
22725}
22726_ACEOF
22727rm -f conftest.$ac_objext
22728if { (ac_try="$ac_compile"
22729case "(($ac_try" in
22730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22731 *) ac_try_echo=$ac_try;;
22732esac
22733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22734 (eval "$ac_compile") 2>conftest.er1
22735 ac_status=$?
22736 grep -v '^ *+' conftest.er1 >conftest.err
22737 rm -f conftest.er1
22738 cat conftest.err >&5
22739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740 (exit $ac_status); } && {
22741 test -z "$ac_c_werror_flag" ||
22742 test ! -s conftest.err
22743 } && test -s conftest.$ac_objext; then
22744 ac_cv_type_in_port_t=yes
22745else
22746 echo "$as_me: failed program was:" >&5
22747sed 's/^/| /' conftest.$ac_ext >&5
22748
22749 ac_cv_type_in_port_t=no
22750fi
22751
22752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22753fi
22754{ echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
22755echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; }
22756if test $ac_cv_type_in_port_t = yes; then
22757
22758cat >>confdefs.h <<_ACEOF
22759#define HAVE_IN_PORT_T 1
22760_ACEOF
22761
22762
22763fi
22764
22765
22766{ echo "$as_me:$LINENO: checking for size_t" >&5
22767echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22768if test "${ac_cv_have_size_t+set}" = set; then
22769 echo $ECHO_N "(cached) $ECHO_C" >&6
22770else
22771
22772 cat >conftest.$ac_ext <<_ACEOF
22773/* confdefs.h. */
22774_ACEOF
22775cat confdefs.h >>conftest.$ac_ext
22776cat >>conftest.$ac_ext <<_ACEOF
22777/* end confdefs.h. */
22778
22779#include <sys/types.h>
22780
22781int
22782main ()
22783{
22784 size_t foo; foo = 1235;
22785 ;
22786 return 0;
22787}
22788_ACEOF
22789rm -f conftest.$ac_objext
22790if { (ac_try="$ac_compile"
22791case "(($ac_try" in
22792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22793 *) ac_try_echo=$ac_try;;
22794esac
22795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22796 (eval "$ac_compile") 2>conftest.er1
22797 ac_status=$?
22798 grep -v '^ *+' conftest.er1 >conftest.err
22799 rm -f conftest.er1
22800 cat conftest.err >&5
22801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802 (exit $ac_status); } && {
22803 test -z "$ac_c_werror_flag" ||
22804 test ! -s conftest.err
22805 } && test -s conftest.$ac_objext; then
22806 ac_cv_have_size_t="yes"
22807else
22808 echo "$as_me: failed program was:" >&5
22809sed 's/^/| /' conftest.$ac_ext >&5
22810
22811 ac_cv_have_size_t="no"
22812
22813fi
22814
22815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22816
22817fi
22818{ echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
22819echo "${ECHO_T}$ac_cv_have_size_t" >&6; }
22820if test "x$ac_cv_have_size_t" = "xyes" ; then
22821
22822cat >>confdefs.h <<\_ACEOF
22823#define HAVE_SIZE_T 1
22824_ACEOF
22825
22826fi
22827
22828{ echo "$as_me:$LINENO: checking for ssize_t" >&5
22829echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
22830if test "${ac_cv_have_ssize_t+set}" = set; then
22831 echo $ECHO_N "(cached) $ECHO_C" >&6
22832else
22833
22834 cat >conftest.$ac_ext <<_ACEOF
22835/* confdefs.h. */
22836_ACEOF
22837cat confdefs.h >>conftest.$ac_ext
22838cat >>conftest.$ac_ext <<_ACEOF
22839/* end confdefs.h. */
22840
22841#include <sys/types.h>
22842
22843int
22844main ()
22845{
22846 ssize_t foo; foo = 1235;
22847 ;
22848 return 0;
22849}
22850_ACEOF
22851rm -f conftest.$ac_objext
22852if { (ac_try="$ac_compile"
22853case "(($ac_try" in
22854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22855 *) ac_try_echo=$ac_try;;
22856esac
22857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22858 (eval "$ac_compile") 2>conftest.er1
22859 ac_status=$?
22860 grep -v '^ *+' conftest.er1 >conftest.err
22861 rm -f conftest.er1
22862 cat conftest.err >&5
22863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22864 (exit $ac_status); } && {
22865 test -z "$ac_c_werror_flag" ||
22866 test ! -s conftest.err
22867 } && test -s conftest.$ac_objext; then
22868 ac_cv_have_ssize_t="yes"
22869else
22870 echo "$as_me: failed program was:" >&5
22871sed 's/^/| /' conftest.$ac_ext >&5
22872
22873 ac_cv_have_ssize_t="no"
22874
22875fi
22876
22877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22878
22879fi
22880{ echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
22881echo "${ECHO_T}$ac_cv_have_ssize_t" >&6; }
22882if test "x$ac_cv_have_ssize_t" = "xyes" ; then
22883
22884cat >>confdefs.h <<\_ACEOF
22885#define HAVE_SSIZE_T 1
22886_ACEOF
22887
22888fi
22889
22890{ echo "$as_me:$LINENO: checking for clock_t" >&5
22891echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
22892if test "${ac_cv_have_clock_t+set}" = set; then
22893 echo $ECHO_N "(cached) $ECHO_C" >&6
22894else
22895
22896 cat >conftest.$ac_ext <<_ACEOF
22897/* confdefs.h. */
22898_ACEOF
22899cat confdefs.h >>conftest.$ac_ext
22900cat >>conftest.$ac_ext <<_ACEOF
22901/* end confdefs.h. */
22902
22903#include <time.h>
22904
22905int
22906main ()
22907{
22908 clock_t foo; foo = 1235;
22909 ;
22910 return 0;
22911}
22912_ACEOF
22913rm -f conftest.$ac_objext
22914if { (ac_try="$ac_compile"
22915case "(($ac_try" in
22916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22917 *) ac_try_echo=$ac_try;;
22918esac
22919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22920 (eval "$ac_compile") 2>conftest.er1
22921 ac_status=$?
22922 grep -v '^ *+' conftest.er1 >conftest.err
22923 rm -f conftest.er1
22924 cat conftest.err >&5
22925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926 (exit $ac_status); } && {
22927 test -z "$ac_c_werror_flag" ||
22928 test ! -s conftest.err
22929 } && test -s conftest.$ac_objext; then
22930 ac_cv_have_clock_t="yes"
22931else
22932 echo "$as_me: failed program was:" >&5
22933sed 's/^/| /' conftest.$ac_ext >&5
22934
22935 ac_cv_have_clock_t="no"
22936
22937fi
22938
22939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22940
22941fi
22942{ echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
22943echo "${ECHO_T}$ac_cv_have_clock_t" >&6; }
22944if test "x$ac_cv_have_clock_t" = "xyes" ; then
22945
22946cat >>confdefs.h <<\_ACEOF
22947#define HAVE_CLOCK_T 1
22948_ACEOF
22949
22950fi
22951
22952{ echo "$as_me:$LINENO: checking for sa_family_t" >&5
22953echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
22954if test "${ac_cv_have_sa_family_t+set}" = set; then
22955 echo $ECHO_N "(cached) $ECHO_C" >&6
22956else
22957
22958 cat >conftest.$ac_ext <<_ACEOF
22959/* confdefs.h. */
22960_ACEOF
22961cat confdefs.h >>conftest.$ac_ext
22962cat >>conftest.$ac_ext <<_ACEOF
22963/* end confdefs.h. */
22964
22965#include <sys/types.h>
22966#include <sys/socket.h>
22967
22968int
22969main ()
22970{
22971 sa_family_t foo; foo = 1235;
22972 ;
22973 return 0;
22974}
22975_ACEOF
22976rm -f conftest.$ac_objext
22977if { (ac_try="$ac_compile"
22978case "(($ac_try" in
22979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22980 *) ac_try_echo=$ac_try;;
22981esac
22982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22983 (eval "$ac_compile") 2>conftest.er1
22984 ac_status=$?
22985 grep -v '^ *+' conftest.er1 >conftest.err
22986 rm -f conftest.er1
22987 cat conftest.err >&5
22988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989 (exit $ac_status); } && {
22990 test -z "$ac_c_werror_flag" ||
22991 test ! -s conftest.err
22992 } && test -s conftest.$ac_objext; then
22993 ac_cv_have_sa_family_t="yes"
22994else
22995 echo "$as_me: failed program was:" >&5
22996sed 's/^/| /' conftest.$ac_ext >&5
22997
22998 cat >conftest.$ac_ext <<_ACEOF
22999/* confdefs.h. */
23000_ACEOF
23001cat confdefs.h >>conftest.$ac_ext
23002cat >>conftest.$ac_ext <<_ACEOF
23003/* end confdefs.h. */
23004
23005#include <sys/types.h>
23006#include <sys/socket.h>
23007#include <netinet/in.h>
23008
23009int
23010main ()
23011{
23012 sa_family_t foo; foo = 1235;
23013 ;
23014 return 0;
23015}
23016_ACEOF
23017rm -f conftest.$ac_objext
23018if { (ac_try="$ac_compile"
23019case "(($ac_try" in
23020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23021 *) ac_try_echo=$ac_try;;
23022esac
23023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23024 (eval "$ac_compile") 2>conftest.er1
23025 ac_status=$?
23026 grep -v '^ *+' conftest.er1 >conftest.err
23027 rm -f conftest.er1
23028 cat conftest.err >&5
23029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030 (exit $ac_status); } && {
23031 test -z "$ac_c_werror_flag" ||
23032 test ! -s conftest.err
23033 } && test -s conftest.$ac_objext; then
23034 ac_cv_have_sa_family_t="yes"
23035else
23036 echo "$as_me: failed program was:" >&5
23037sed 's/^/| /' conftest.$ac_ext >&5
23038
23039 ac_cv_have_sa_family_t="no"
23040
23041fi
23042
23043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23044
23045fi
23046
23047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23048
23049fi
23050{ echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
23051echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6; }
23052if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
23053
23054cat >>confdefs.h <<\_ACEOF
23055#define HAVE_SA_FAMILY_T 1
23056_ACEOF
23057
23058fi
23059
23060{ echo "$as_me:$LINENO: checking for pid_t" >&5
23061echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23062if test "${ac_cv_have_pid_t+set}" = set; then
23063 echo $ECHO_N "(cached) $ECHO_C" >&6
23064else
23065
23066 cat >conftest.$ac_ext <<_ACEOF
23067/* confdefs.h. */
23068_ACEOF
23069cat confdefs.h >>conftest.$ac_ext
23070cat >>conftest.$ac_ext <<_ACEOF
23071/* end confdefs.h. */
23072
23073#include <sys/types.h>
23074
23075int
23076main ()
23077{
23078 pid_t foo; foo = 1235;
23079 ;
23080 return 0;
23081}
23082_ACEOF
23083rm -f conftest.$ac_objext
23084if { (ac_try="$ac_compile"
23085case "(($ac_try" in
23086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23087 *) ac_try_echo=$ac_try;;
23088esac
23089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23090 (eval "$ac_compile") 2>conftest.er1
23091 ac_status=$?
23092 grep -v '^ *+' conftest.er1 >conftest.err
23093 rm -f conftest.er1
23094 cat conftest.err >&5
23095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23096 (exit $ac_status); } && {
23097 test -z "$ac_c_werror_flag" ||
23098 test ! -s conftest.err
23099 } && test -s conftest.$ac_objext; then
23100 ac_cv_have_pid_t="yes"
23101else
23102 echo "$as_me: failed program was:" >&5
23103sed 's/^/| /' conftest.$ac_ext >&5
23104
23105 ac_cv_have_pid_t="no"
23106
23107fi
23108
23109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23110
23111fi
23112{ echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
23113echo "${ECHO_T}$ac_cv_have_pid_t" >&6; }
23114if test "x$ac_cv_have_pid_t" = "xyes" ; then
23115
23116cat >>confdefs.h <<\_ACEOF
23117#define HAVE_PID_T 1
23118_ACEOF
23119
23120fi
23121
23122{ echo "$as_me:$LINENO: checking for mode_t" >&5
23123echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
23124if test "${ac_cv_have_mode_t+set}" = set; then
23125 echo $ECHO_N "(cached) $ECHO_C" >&6
23126else
23127
23128 cat >conftest.$ac_ext <<_ACEOF
23129/* confdefs.h. */
23130_ACEOF
23131cat confdefs.h >>conftest.$ac_ext
23132cat >>conftest.$ac_ext <<_ACEOF
23133/* end confdefs.h. */
23134
23135#include <sys/types.h>
23136
23137int
23138main ()
23139{
23140 mode_t foo; foo = 1235;
23141 ;
23142 return 0;
23143}
23144_ACEOF
23145rm -f conftest.$ac_objext
23146if { (ac_try="$ac_compile"
23147case "(($ac_try" in
23148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23149 *) ac_try_echo=$ac_try;;
23150esac
23151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23152 (eval "$ac_compile") 2>conftest.er1
23153 ac_status=$?
23154 grep -v '^ *+' conftest.er1 >conftest.err
23155 rm -f conftest.er1
23156 cat conftest.err >&5
23157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158 (exit $ac_status); } && {
23159 test -z "$ac_c_werror_flag" ||
23160 test ! -s conftest.err
23161 } && test -s conftest.$ac_objext; then
23162 ac_cv_have_mode_t="yes"
23163else
23164 echo "$as_me: failed program was:" >&5
23165sed 's/^/| /' conftest.$ac_ext >&5
23166
23167 ac_cv_have_mode_t="no"
23168
23169fi
23170
23171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23172
23173fi
23174{ echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
23175echo "${ECHO_T}$ac_cv_have_mode_t" >&6; }
23176if test "x$ac_cv_have_mode_t" = "xyes" ; then
23177
23178cat >>confdefs.h <<\_ACEOF
23179#define HAVE_MODE_T 1
23180_ACEOF
23181
23182fi
23183
23184
23185{ echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
23186echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
23187if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
23188 echo $ECHO_N "(cached) $ECHO_C" >&6
23189else
23190
23191 cat >conftest.$ac_ext <<_ACEOF
23192/* confdefs.h. */
23193_ACEOF
23194cat confdefs.h >>conftest.$ac_ext
23195cat >>conftest.$ac_ext <<_ACEOF
23196/* end confdefs.h. */
23197
23198#include <sys/types.h>
23199#include <sys/socket.h>
23200
23201int
23202main ()
23203{
23204 struct sockaddr_storage s;
23205 ;
23206 return 0;
23207}
23208_ACEOF
23209rm -f conftest.$ac_objext
23210if { (ac_try="$ac_compile"
23211case "(($ac_try" in
23212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23213 *) ac_try_echo=$ac_try;;
23214esac
23215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23216 (eval "$ac_compile") 2>conftest.er1
23217 ac_status=$?
23218 grep -v '^ *+' conftest.er1 >conftest.err
23219 rm -f conftest.er1
23220 cat conftest.err >&5
23221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23222 (exit $ac_status); } && {
23223 test -z "$ac_c_werror_flag" ||
23224 test ! -s conftest.err
23225 } && test -s conftest.$ac_objext; then
23226 ac_cv_have_struct_sockaddr_storage="yes"
23227else
23228 echo "$as_me: failed program was:" >&5
23229sed 's/^/| /' conftest.$ac_ext >&5
23230
23231 ac_cv_have_struct_sockaddr_storage="no"
23232
23233fi
23234
23235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23236
23237fi
23238{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
23239echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6; }
23240if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
23241
23242cat >>confdefs.h <<\_ACEOF
23243#define HAVE_STRUCT_SOCKADDR_STORAGE 1
23244_ACEOF
23245
23246fi
23247
23248{ echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
23249echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
23250if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
23251 echo $ECHO_N "(cached) $ECHO_C" >&6
23252else
23253
23254 cat >conftest.$ac_ext <<_ACEOF
23255/* confdefs.h. */
23256_ACEOF
23257cat confdefs.h >>conftest.$ac_ext
23258cat >>conftest.$ac_ext <<_ACEOF
23259/* end confdefs.h. */
23260
23261#include <sys/types.h>
23262#include <netinet/in.h>
23263
23264int
23265main ()
23266{
23267 struct sockaddr_in6 s; s.sin6_family = 0;
23268 ;
23269 return 0;
23270}
23271_ACEOF
23272rm -f conftest.$ac_objext
23273if { (ac_try="$ac_compile"
23274case "(($ac_try" in
23275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23276 *) ac_try_echo=$ac_try;;
23277esac
23278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23279 (eval "$ac_compile") 2>conftest.er1
23280 ac_status=$?
23281 grep -v '^ *+' conftest.er1 >conftest.err
23282 rm -f conftest.er1
23283 cat conftest.err >&5
23284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285 (exit $ac_status); } && {
23286 test -z "$ac_c_werror_flag" ||
23287 test ! -s conftest.err
23288 } && test -s conftest.$ac_objext; then
23289 ac_cv_have_struct_sockaddr_in6="yes"
23290else
23291 echo "$as_me: failed program was:" >&5
23292sed 's/^/| /' conftest.$ac_ext >&5
23293
23294 ac_cv_have_struct_sockaddr_in6="no"
23295
23296fi
23297
23298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23299
23300fi
23301{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
23302echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6; }
23303if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
23304
23305cat >>confdefs.h <<\_ACEOF
23306#define HAVE_STRUCT_SOCKADDR_IN6 1
23307_ACEOF
23308
23309fi
23310
23311{ echo "$as_me:$LINENO: checking for struct in6_addr" >&5
23312echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
23313if test "${ac_cv_have_struct_in6_addr+set}" = set; then
23314 echo $ECHO_N "(cached) $ECHO_C" >&6
23315else
23316
23317 cat >conftest.$ac_ext <<_ACEOF
23318/* confdefs.h. */
23319_ACEOF
23320cat confdefs.h >>conftest.$ac_ext
23321cat >>conftest.$ac_ext <<_ACEOF
23322/* end confdefs.h. */
23323
23324#include <sys/types.h>
23325#include <netinet/in.h>
23326
23327int
23328main ()
23329{
23330 struct in6_addr s; s.s6_addr[0] = 0;
23331 ;
23332 return 0;
23333}
23334_ACEOF
23335rm -f conftest.$ac_objext
23336if { (ac_try="$ac_compile"
23337case "(($ac_try" in
23338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23339 *) ac_try_echo=$ac_try;;
23340esac
23341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23342 (eval "$ac_compile") 2>conftest.er1
23343 ac_status=$?
23344 grep -v '^ *+' conftest.er1 >conftest.err
23345 rm -f conftest.er1
23346 cat conftest.err >&5
23347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348 (exit $ac_status); } && {
23349 test -z "$ac_c_werror_flag" ||
23350 test ! -s conftest.err
23351 } && test -s conftest.$ac_objext; then
23352 ac_cv_have_struct_in6_addr="yes"
23353else
23354 echo "$as_me: failed program was:" >&5
23355sed 's/^/| /' conftest.$ac_ext >&5
23356
23357 ac_cv_have_struct_in6_addr="no"
23358
23359fi
23360
23361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23362
23363fi
23364{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
23365echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6; }
23366if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
23367
23368cat >>confdefs.h <<\_ACEOF
23369#define HAVE_STRUCT_IN6_ADDR 1
23370_ACEOF
23371
23372
23373 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
23374echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
23375if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
23376 echo $ECHO_N "(cached) $ECHO_C" >&6
23377else
23378 cat >conftest.$ac_ext <<_ACEOF
23379/* confdefs.h. */
23380_ACEOF
23381cat confdefs.h >>conftest.$ac_ext
23382cat >>conftest.$ac_ext <<_ACEOF
23383/* end confdefs.h. */
23384
23385#ifdef HAVE_SYS_TYPES_H
23386#include <sys/types.h>
23387#endif
23388#include <netinet/in.h>
23389
23390
23391int
23392main ()
23393{
23394static struct sockaddr_in6 ac_aggr;
23395if (ac_aggr.sin6_scope_id)
23396return 0;
23397 ;
23398 return 0;
23399}
23400_ACEOF
23401rm -f conftest.$ac_objext
23402if { (ac_try="$ac_compile"
23403case "(($ac_try" in
23404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23405 *) ac_try_echo=$ac_try;;
23406esac
23407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23408 (eval "$ac_compile") 2>conftest.er1
23409 ac_status=$?
23410 grep -v '^ *+' conftest.er1 >conftest.err
23411 rm -f conftest.er1
23412 cat conftest.err >&5
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); } && {
23415 test -z "$ac_c_werror_flag" ||
23416 test ! -s conftest.err
23417 } && test -s conftest.$ac_objext; then
23418 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23419else
23420 echo "$as_me: failed program was:" >&5
23421sed 's/^/| /' conftest.$ac_ext >&5
23422
23423 cat >conftest.$ac_ext <<_ACEOF
23424/* confdefs.h. */
23425_ACEOF
23426cat confdefs.h >>conftest.$ac_ext
23427cat >>conftest.$ac_ext <<_ACEOF
23428/* end confdefs.h. */
23429
23430#ifdef HAVE_SYS_TYPES_H
23431#include <sys/types.h>
23432#endif
23433#include <netinet/in.h>
23434
23435
23436int
23437main ()
23438{
23439static struct sockaddr_in6 ac_aggr;
23440if (sizeof ac_aggr.sin6_scope_id)
23441return 0;
23442 ;
23443 return 0;
23444}
23445_ACEOF
23446rm -f conftest.$ac_objext
23447if { (ac_try="$ac_compile"
23448case "(($ac_try" in
23449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23450 *) ac_try_echo=$ac_try;;
23451esac
23452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23453 (eval "$ac_compile") 2>conftest.er1
23454 ac_status=$?
23455 grep -v '^ *+' conftest.er1 >conftest.err
23456 rm -f conftest.er1
23457 cat conftest.err >&5
23458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23459 (exit $ac_status); } && {
23460 test -z "$ac_c_werror_flag" ||
23461 test ! -s conftest.err
23462 } && test -s conftest.$ac_objext; then
23463 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23464else
23465 echo "$as_me: failed program was:" >&5
23466sed 's/^/| /' conftest.$ac_ext >&5
23467
23468 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
23469fi
23470
23471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23472fi
23473
23474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23475fi
23476{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
23477echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
23478if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
23479
23480cat >>confdefs.h <<_ACEOF
23481#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
23482_ACEOF
23483
23484
23485fi
23486
23487fi
23488
23489{ echo "$as_me:$LINENO: checking for struct addrinfo" >&5
23490echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
23491if test "${ac_cv_have_struct_addrinfo+set}" = set; then
23492 echo $ECHO_N "(cached) $ECHO_C" >&6
23493else
23494
23495 cat >conftest.$ac_ext <<_ACEOF
23496/* confdefs.h. */
23497_ACEOF
23498cat confdefs.h >>conftest.$ac_ext
23499cat >>conftest.$ac_ext <<_ACEOF
23500/* end confdefs.h. */
23501
23502#include <sys/types.h>
23503#include <sys/socket.h>
23504#include <netdb.h>
23505
23506int
23507main ()
23508{
23509 struct addrinfo s; s.ai_flags = AI_PASSIVE;
23510 ;
23511 return 0;
23512}
23513_ACEOF
23514rm -f conftest.$ac_objext
23515if { (ac_try="$ac_compile"
23516case "(($ac_try" in
23517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23518 *) ac_try_echo=$ac_try;;
23519esac
23520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23521 (eval "$ac_compile") 2>conftest.er1
23522 ac_status=$?
23523 grep -v '^ *+' conftest.er1 >conftest.err
23524 rm -f conftest.er1
23525 cat conftest.err >&5
23526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527 (exit $ac_status); } && {
23528 test -z "$ac_c_werror_flag" ||
23529 test ! -s conftest.err
23530 } && test -s conftest.$ac_objext; then
23531 ac_cv_have_struct_addrinfo="yes"
23532else
23533 echo "$as_me: failed program was:" >&5
23534sed 's/^/| /' conftest.$ac_ext >&5
23535
23536 ac_cv_have_struct_addrinfo="no"
23537
23538fi
23539
23540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23541
23542fi
23543{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
23544echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6; }
23545if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
23546
23547cat >>confdefs.h <<\_ACEOF
23548#define HAVE_STRUCT_ADDRINFO 1
23549_ACEOF
23550
23551fi
23552
23553{ echo "$as_me:$LINENO: checking for struct timeval" >&5
23554echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
23555if test "${ac_cv_have_struct_timeval+set}" = set; then
23556 echo $ECHO_N "(cached) $ECHO_C" >&6
23557else
23558
23559 cat >conftest.$ac_ext <<_ACEOF
23560/* confdefs.h. */
23561_ACEOF
23562cat confdefs.h >>conftest.$ac_ext
23563cat >>conftest.$ac_ext <<_ACEOF
23564/* end confdefs.h. */
23565 #include <sys/time.h>
23566int
23567main ()
23568{
23569 struct timeval tv; tv.tv_sec = 1;
23570 ;
23571 return 0;
23572}
23573_ACEOF
23574rm -f conftest.$ac_objext
23575if { (ac_try="$ac_compile"
23576case "(($ac_try" in
23577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23578 *) ac_try_echo=$ac_try;;
23579esac
23580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23581 (eval "$ac_compile") 2>conftest.er1
23582 ac_status=$?
23583 grep -v '^ *+' conftest.er1 >conftest.err
23584 rm -f conftest.er1
23585 cat conftest.err >&5
23586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23587 (exit $ac_status); } && {
23588 test -z "$ac_c_werror_flag" ||
23589 test ! -s conftest.err
23590 } && test -s conftest.$ac_objext; then
23591 ac_cv_have_struct_timeval="yes"
23592else
23593 echo "$as_me: failed program was:" >&5
23594sed 's/^/| /' conftest.$ac_ext >&5
23595
23596 ac_cv_have_struct_timeval="no"
23597
23598fi
23599
23600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23601
23602fi
23603{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
23604echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6; }
23605if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
23606
23607cat >>confdefs.h <<\_ACEOF
23608#define HAVE_STRUCT_TIMEVAL 1
23609_ACEOF
23610
23611 have_struct_timeval=1
23612fi
23613
23614{ echo "$as_me:$LINENO: checking for struct timespec" >&5
23615echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
23616if test "${ac_cv_type_struct_timespec+set}" = set; then
23617 echo $ECHO_N "(cached) $ECHO_C" >&6
23618else
23619 cat >conftest.$ac_ext <<_ACEOF
23620/* confdefs.h. */
23621_ACEOF
23622cat confdefs.h >>conftest.$ac_ext
23623cat >>conftest.$ac_ext <<_ACEOF
23624/* end confdefs.h. */
23625$ac_includes_default
23626typedef struct timespec ac__type_new_;
23627int
23628main ()
23629{
23630if ((ac__type_new_ *) 0)
23631 return 0;
23632if (sizeof (ac__type_new_))
23633 return 0;
23634 ;
23635 return 0;
23636}
23637_ACEOF
23638rm -f conftest.$ac_objext
23639if { (ac_try="$ac_compile"
23640case "(($ac_try" in
23641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23642 *) ac_try_echo=$ac_try;;
23643esac
23644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23645 (eval "$ac_compile") 2>conftest.er1
23646 ac_status=$?
23647 grep -v '^ *+' conftest.er1 >conftest.err
23648 rm -f conftest.er1
23649 cat conftest.err >&5
23650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23651 (exit $ac_status); } && {
23652 test -z "$ac_c_werror_flag" ||
23653 test ! -s conftest.err
23654 } && test -s conftest.$ac_objext; then
23655 ac_cv_type_struct_timespec=yes
23656else
23657 echo "$as_me: failed program was:" >&5
23658sed 's/^/| /' conftest.$ac_ext >&5
23659
23660 ac_cv_type_struct_timespec=no
23661fi
23662
23663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23664fi
23665{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
23666echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
23667if test $ac_cv_type_struct_timespec = yes; then
23668
23669cat >>confdefs.h <<_ACEOF
23670#define HAVE_STRUCT_TIMESPEC 1
23671_ACEOF
23672
23673
23674fi
23675
23676
23677# We need int64_t or else certian parts of the compile will fail.
23678if test "x$ac_cv_have_int64_t" = "xno" && \
23679 test "x$ac_cv_sizeof_long_int" != "x8" && \
23680 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
23681 echo "OpenSSH requires int64_t support. Contact your vendor or install"
23682 echo "an alternative compiler (I.E., GCC) before continuing."
23683 echo ""
23684 exit 1;
23685else
23686 if test "$cross_compiling" = yes; then
23687 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
23688echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
23689
23690else
23691 cat >conftest.$ac_ext <<_ACEOF
23692/* confdefs.h. */
23693_ACEOF
23694cat confdefs.h >>conftest.$ac_ext
23695cat >>conftest.$ac_ext <<_ACEOF
23696/* end confdefs.h. */
23697
23698#include <stdio.h>
23699#include <string.h>
23700#ifdef HAVE_SNPRINTF
23701main()
23702{
23703 char buf[50];
23704 char expected_out[50];
23705 int mazsize = 50 ;
23706#if (SIZEOF_LONG_INT == 8)
23707 long int num = 0x7fffffffffffffff;
23708#else
23709 long long num = 0x7fffffffffffffffll;
23710#endif
23711 strcpy(expected_out, "9223372036854775807");
23712 snprintf(buf, mazsize, "%lld", num);
23713 if(strcmp(buf, expected_out) != 0)
23714 exit(1);
23715 exit(0);
23716}
23717#else
23718main() { exit(0); }
23719#endif
23720
23721_ACEOF
23722rm -f conftest$ac_exeext
23723if { (ac_try="$ac_link"
23724case "(($ac_try" in
23725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23726 *) ac_try_echo=$ac_try;;
23727esac
23728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23729 (eval "$ac_link") 2>&5
23730 ac_status=$?
23731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23733 { (case "(($ac_try" in
23734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23735 *) ac_try_echo=$ac_try;;
23736esac
23737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23738 (eval "$ac_try") 2>&5
23739 ac_status=$?
23740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741 (exit $ac_status); }; }; then
23742 true
23743else
23744 echo "$as_me: program exited with status $ac_status" >&5
23745echo "$as_me: failed program was:" >&5
23746sed 's/^/| /' conftest.$ac_ext >&5
23747
23748( exit $ac_status )
23749 cat >>confdefs.h <<\_ACEOF
23750#define BROKEN_SNPRINTF 1
23751_ACEOF
23752
23753fi
23754rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23755fi
23756
23757
23758fi
23759
23760
23761# look for field 'ut_host' in header 'utmp.h'
23762 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
23763 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
23764 { echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
23765echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6; }
23766 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23767 echo $ECHO_N "(cached) $ECHO_C" >&6
23768else
23769
23770 cat >conftest.$ac_ext <<_ACEOF
23771/* confdefs.h. */
23772_ACEOF
23773cat confdefs.h >>conftest.$ac_ext
23774cat >>conftest.$ac_ext <<_ACEOF
23775/* end confdefs.h. */
23776#include <utmp.h>
23777
23778_ACEOF
23779if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23780 $EGREP "ut_host" >/dev/null 2>&1; then
23781 eval "$ossh_varname=yes"
23782else
23783 eval "$ossh_varname=no"
23784fi
23785rm -f conftest*
23786
23787fi
23788
23789 ossh_result=`eval 'echo $'"$ossh_varname"`
23790 if test -n "`echo $ossh_varname`"; then
23791 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23792echo "${ECHO_T}$ossh_result" >&6; }
23793 if test "x$ossh_result" = "xyes"; then
23794
23795cat >>confdefs.h <<\_ACEOF
23796#define HAVE_HOST_IN_UTMP 1
23797_ACEOF
23798
23799 fi
23800 else
23801 { echo "$as_me:$LINENO: result: no" >&5
23802echo "${ECHO_T}no" >&6; }
23803 fi
23804
23805
23806# look for field 'ut_host' in header 'utmpx.h'
23807 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23808 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
23809 { echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
23810echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6; }
23811 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23812 echo $ECHO_N "(cached) $ECHO_C" >&6
23813else
23814
23815 cat >conftest.$ac_ext <<_ACEOF
23816/* confdefs.h. */
23817_ACEOF
23818cat confdefs.h >>conftest.$ac_ext
23819cat >>conftest.$ac_ext <<_ACEOF
23820/* end confdefs.h. */
23821#include <utmpx.h>
23822
23823_ACEOF
23824if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23825 $EGREP "ut_host" >/dev/null 2>&1; then
23826 eval "$ossh_varname=yes"
23827else
23828 eval "$ossh_varname=no"
23829fi
23830rm -f conftest*
23831
23832fi
23833
23834 ossh_result=`eval 'echo $'"$ossh_varname"`
23835 if test -n "`echo $ossh_varname`"; then
23836 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23837echo "${ECHO_T}$ossh_result" >&6; }
23838 if test "x$ossh_result" = "xyes"; then
23839
23840cat >>confdefs.h <<\_ACEOF
23841#define HAVE_HOST_IN_UTMPX 1
23842_ACEOF
23843
23844 fi
23845 else
23846 { echo "$as_me:$LINENO: result: no" >&5
23847echo "${ECHO_T}no" >&6; }
23848 fi
23849
23850
23851# look for field 'syslen' in header 'utmpx.h'
23852 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23853 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
23854 { echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
23855echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6; }
23856 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23857 echo $ECHO_N "(cached) $ECHO_C" >&6
23858else
23859
23860 cat >conftest.$ac_ext <<_ACEOF
23861/* confdefs.h. */
23862_ACEOF
23863cat confdefs.h >>conftest.$ac_ext
23864cat >>conftest.$ac_ext <<_ACEOF
23865/* end confdefs.h. */
23866#include <utmpx.h>
23867
23868_ACEOF
23869if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23870 $EGREP "syslen" >/dev/null 2>&1; then
23871 eval "$ossh_varname=yes"
23872else
23873 eval "$ossh_varname=no"
23874fi
23875rm -f conftest*
23876
23877fi
23878
23879 ossh_result=`eval 'echo $'"$ossh_varname"`
23880 if test -n "`echo $ossh_varname`"; then
23881 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23882echo "${ECHO_T}$ossh_result" >&6; }
23883 if test "x$ossh_result" = "xyes"; then
23884
23885cat >>confdefs.h <<\_ACEOF
23886#define HAVE_SYSLEN_IN_UTMPX 1
23887_ACEOF
23888
23889 fi
23890 else
23891 { echo "$as_me:$LINENO: result: no" >&5
23892echo "${ECHO_T}no" >&6; }
23893 fi
23894
23895
23896# look for field 'ut_pid' in header 'utmp.h'
23897 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
23898 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
23899 { echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
23900echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6; }
23901 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23902 echo $ECHO_N "(cached) $ECHO_C" >&6
23903else
23904
23905 cat >conftest.$ac_ext <<_ACEOF
23906/* confdefs.h. */
23907_ACEOF
23908cat confdefs.h >>conftest.$ac_ext
23909cat >>conftest.$ac_ext <<_ACEOF
23910/* end confdefs.h. */
23911#include <utmp.h>
23912
23913_ACEOF
23914if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23915 $EGREP "ut_pid" >/dev/null 2>&1; then
23916 eval "$ossh_varname=yes"
23917else
23918 eval "$ossh_varname=no"
23919fi
23920rm -f conftest*
23921
23922fi
23923
23924 ossh_result=`eval 'echo $'"$ossh_varname"`
23925 if test -n "`echo $ossh_varname`"; then
23926 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23927echo "${ECHO_T}$ossh_result" >&6; }
23928 if test "x$ossh_result" = "xyes"; then
23929
23930cat >>confdefs.h <<\_ACEOF
23931#define HAVE_PID_IN_UTMP 1
23932_ACEOF
23933
23934 fi
23935 else
23936 { echo "$as_me:$LINENO: result: no" >&5
23937echo "${ECHO_T}no" >&6; }
23938 fi
23939
23940
23941# look for field 'ut_type' in header 'utmp.h'
23942 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
23943 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
23944 { echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
23945echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6; }
23946 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23947 echo $ECHO_N "(cached) $ECHO_C" >&6
23948else
23949
23950 cat >conftest.$ac_ext <<_ACEOF
23951/* confdefs.h. */
23952_ACEOF
23953cat confdefs.h >>conftest.$ac_ext
23954cat >>conftest.$ac_ext <<_ACEOF
23955/* end confdefs.h. */
23956#include <utmp.h>
23957
23958_ACEOF
23959if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23960 $EGREP "ut_type" >/dev/null 2>&1; then
23961 eval "$ossh_varname=yes"
23962else
23963 eval "$ossh_varname=no"
23964fi
23965rm -f conftest*
23966
23967fi
23968
23969 ossh_result=`eval 'echo $'"$ossh_varname"`
23970 if test -n "`echo $ossh_varname`"; then
23971 { echo "$as_me:$LINENO: result: $ossh_result" >&5
23972echo "${ECHO_T}$ossh_result" >&6; }
23973 if test "x$ossh_result" = "xyes"; then
23974
23975cat >>confdefs.h <<\_ACEOF
23976#define HAVE_TYPE_IN_UTMP 1
23977_ACEOF
23978
23979 fi
23980 else
23981 { echo "$as_me:$LINENO: result: no" >&5
23982echo "${ECHO_T}no" >&6; }
23983 fi
23984
23985
23986# look for field 'ut_type' in header 'utmpx.h'
23987 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
23988 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
23989 { echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
23990echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6; }
23991 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
23992 echo $ECHO_N "(cached) $ECHO_C" >&6
23993else
23994
23995 cat >conftest.$ac_ext <<_ACEOF
23996/* confdefs.h. */
23997_ACEOF
23998cat confdefs.h >>conftest.$ac_ext
23999cat >>conftest.$ac_ext <<_ACEOF
24000/* end confdefs.h. */
24001#include <utmpx.h>
24002
24003_ACEOF
24004if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24005 $EGREP "ut_type" >/dev/null 2>&1; then
24006 eval "$ossh_varname=yes"
24007else
24008 eval "$ossh_varname=no"
24009fi
24010rm -f conftest*
24011
24012fi
24013
24014 ossh_result=`eval 'echo $'"$ossh_varname"`
24015 if test -n "`echo $ossh_varname`"; then
24016 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24017echo "${ECHO_T}$ossh_result" >&6; }
24018 if test "x$ossh_result" = "xyes"; then
24019
24020cat >>confdefs.h <<\_ACEOF
24021#define HAVE_TYPE_IN_UTMPX 1
24022_ACEOF
24023
24024 fi
24025 else
24026 { echo "$as_me:$LINENO: result: no" >&5
24027echo "${ECHO_T}no" >&6; }
24028 fi
24029
24030
24031# look for field 'ut_tv' in header 'utmp.h'
24032 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
24033 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
24034 { echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
24035echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6; }
24036 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24037 echo $ECHO_N "(cached) $ECHO_C" >&6
24038else
24039
24040 cat >conftest.$ac_ext <<_ACEOF
24041/* confdefs.h. */
24042_ACEOF
24043cat confdefs.h >>conftest.$ac_ext
24044cat >>conftest.$ac_ext <<_ACEOF
24045/* end confdefs.h. */
24046#include <utmp.h>
24047
24048_ACEOF
24049if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24050 $EGREP "ut_tv" >/dev/null 2>&1; then
24051 eval "$ossh_varname=yes"
24052else
24053 eval "$ossh_varname=no"
24054fi
24055rm -f conftest*
24056
24057fi
24058
24059 ossh_result=`eval 'echo $'"$ossh_varname"`
24060 if test -n "`echo $ossh_varname`"; then
24061 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24062echo "${ECHO_T}$ossh_result" >&6; }
24063 if test "x$ossh_result" = "xyes"; then
24064
24065cat >>confdefs.h <<\_ACEOF
24066#define HAVE_TV_IN_UTMP 1
24067_ACEOF
24068
24069 fi
24070 else
24071 { echo "$as_me:$LINENO: result: no" >&5
24072echo "${ECHO_T}no" >&6; }
24073 fi
24074
24075
24076# look for field 'ut_id' in header 'utmp.h'
24077 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
24078 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
24079 { echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
24080echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6; }
24081 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24082 echo $ECHO_N "(cached) $ECHO_C" >&6
24083else
24084
24085 cat >conftest.$ac_ext <<_ACEOF
24086/* confdefs.h. */
24087_ACEOF
24088cat confdefs.h >>conftest.$ac_ext
24089cat >>conftest.$ac_ext <<_ACEOF
24090/* end confdefs.h. */
24091#include <utmp.h>
24092
24093_ACEOF
24094if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24095 $EGREP "ut_id" >/dev/null 2>&1; then
24096 eval "$ossh_varname=yes"
24097else
24098 eval "$ossh_varname=no"
24099fi
24100rm -f conftest*
24101
24102fi
24103
24104 ossh_result=`eval 'echo $'"$ossh_varname"`
24105 if test -n "`echo $ossh_varname`"; then
24106 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24107echo "${ECHO_T}$ossh_result" >&6; }
24108 if test "x$ossh_result" = "xyes"; then
24109
24110cat >>confdefs.h <<\_ACEOF
24111#define HAVE_ID_IN_UTMP 1
24112_ACEOF
24113
24114 fi
24115 else
24116 { echo "$as_me:$LINENO: result: no" >&5
24117echo "${ECHO_T}no" >&6; }
24118 fi
24119
24120
24121# look for field 'ut_id' in header 'utmpx.h'
24122 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
24123 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
24124 { echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
24125echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6; }
24126 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24127 echo $ECHO_N "(cached) $ECHO_C" >&6
24128else
24129
24130 cat >conftest.$ac_ext <<_ACEOF
24131/* confdefs.h. */
24132_ACEOF
24133cat confdefs.h >>conftest.$ac_ext
24134cat >>conftest.$ac_ext <<_ACEOF
24135/* end confdefs.h. */
24136#include <utmpx.h>
24137
24138_ACEOF
24139if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24140 $EGREP "ut_id" >/dev/null 2>&1; then
24141 eval "$ossh_varname=yes"
24142else
24143 eval "$ossh_varname=no"
24144fi
24145rm -f conftest*
24146
24147fi
24148
24149 ossh_result=`eval 'echo $'"$ossh_varname"`
24150 if test -n "`echo $ossh_varname`"; then
24151 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24152echo "${ECHO_T}$ossh_result" >&6; }
24153 if test "x$ossh_result" = "xyes"; then
24154
24155cat >>confdefs.h <<\_ACEOF
24156#define HAVE_ID_IN_UTMPX 1
24157_ACEOF
24158
24159 fi
24160 else
24161 { echo "$as_me:$LINENO: result: no" >&5
24162echo "${ECHO_T}no" >&6; }
24163 fi
24164
24165
24166# look for field 'ut_addr' in header 'utmp.h'
24167 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
24168 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
24169 { echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
24170echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6; }
24171 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24172 echo $ECHO_N "(cached) $ECHO_C" >&6
24173else
24174
24175 cat >conftest.$ac_ext <<_ACEOF
24176/* confdefs.h. */
24177_ACEOF
24178cat confdefs.h >>conftest.$ac_ext
24179cat >>conftest.$ac_ext <<_ACEOF
24180/* end confdefs.h. */
24181#include <utmp.h>
24182
24183_ACEOF
24184if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24185 $EGREP "ut_addr" >/dev/null 2>&1; then
24186 eval "$ossh_varname=yes"
24187else
24188 eval "$ossh_varname=no"
24189fi
24190rm -f conftest*
24191
24192fi
24193
24194 ossh_result=`eval 'echo $'"$ossh_varname"`
24195 if test -n "`echo $ossh_varname`"; then
24196 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24197echo "${ECHO_T}$ossh_result" >&6; }
24198 if test "x$ossh_result" = "xyes"; then
24199
24200cat >>confdefs.h <<\_ACEOF
24201#define HAVE_ADDR_IN_UTMP 1
24202_ACEOF
24203
24204 fi
24205 else
24206 { echo "$as_me:$LINENO: result: no" >&5
24207echo "${ECHO_T}no" >&6; }
24208 fi
24209
24210
24211# look for field 'ut_addr' in header 'utmpx.h'
24212 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
24213 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
24214 { echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
24215echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6; }
24216 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24217 echo $ECHO_N "(cached) $ECHO_C" >&6
24218else
24219
24220 cat >conftest.$ac_ext <<_ACEOF
24221/* confdefs.h. */
24222_ACEOF
24223cat confdefs.h >>conftest.$ac_ext
24224cat >>conftest.$ac_ext <<_ACEOF
24225/* end confdefs.h. */
24226#include <utmpx.h>
24227
24228_ACEOF
24229if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24230 $EGREP "ut_addr" >/dev/null 2>&1; then
24231 eval "$ossh_varname=yes"
24232else
24233 eval "$ossh_varname=no"
24234fi
24235rm -f conftest*
24236
24237fi
24238
24239 ossh_result=`eval 'echo $'"$ossh_varname"`
24240 if test -n "`echo $ossh_varname`"; then
24241 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24242echo "${ECHO_T}$ossh_result" >&6; }
24243 if test "x$ossh_result" = "xyes"; then
24244
24245cat >>confdefs.h <<\_ACEOF
24246#define HAVE_ADDR_IN_UTMPX 1
24247_ACEOF
24248
24249 fi
24250 else
24251 { echo "$as_me:$LINENO: result: no" >&5
24252echo "${ECHO_T}no" >&6; }
24253 fi
24254
24255
24256# look for field 'ut_addr_v6' in header 'utmp.h'
24257 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
24258 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
24259 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
24260echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6; }
24261 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24262 echo $ECHO_N "(cached) $ECHO_C" >&6
24263else
24264
24265 cat >conftest.$ac_ext <<_ACEOF
24266/* confdefs.h. */
24267_ACEOF
24268cat confdefs.h >>conftest.$ac_ext
24269cat >>conftest.$ac_ext <<_ACEOF
24270/* end confdefs.h. */
24271#include <utmp.h>
24272
24273_ACEOF
24274if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24275 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
24276 eval "$ossh_varname=yes"
24277else
24278 eval "$ossh_varname=no"
24279fi
24280rm -f conftest*
24281
24282fi
24283
24284 ossh_result=`eval 'echo $'"$ossh_varname"`
24285 if test -n "`echo $ossh_varname`"; then
24286 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24287echo "${ECHO_T}$ossh_result" >&6; }
24288 if test "x$ossh_result" = "xyes"; then
24289
24290cat >>confdefs.h <<\_ACEOF
24291#define HAVE_ADDR_V6_IN_UTMP 1
24292_ACEOF
24293
24294 fi
24295 else
24296 { echo "$as_me:$LINENO: result: no" >&5
24297echo "${ECHO_T}no" >&6; }
24298 fi
24299
24300
24301# look for field 'ut_addr_v6' in header 'utmpx.h'
24302 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
24303 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
24304 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
24305echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6; }
24306 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24307 echo $ECHO_N "(cached) $ECHO_C" >&6
24308else
24309
24310 cat >conftest.$ac_ext <<_ACEOF
24311/* confdefs.h. */
24312_ACEOF
24313cat confdefs.h >>conftest.$ac_ext
24314cat >>conftest.$ac_ext <<_ACEOF
24315/* end confdefs.h. */
24316#include <utmpx.h>
24317
24318_ACEOF
24319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24320 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
24321 eval "$ossh_varname=yes"
24322else
24323 eval "$ossh_varname=no"
24324fi
24325rm -f conftest*
24326
24327fi
24328
24329 ossh_result=`eval 'echo $'"$ossh_varname"`
24330 if test -n "`echo $ossh_varname`"; then
24331 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24332echo "${ECHO_T}$ossh_result" >&6; }
24333 if test "x$ossh_result" = "xyes"; then
24334
24335cat >>confdefs.h <<\_ACEOF
24336#define HAVE_ADDR_V6_IN_UTMPX 1
24337_ACEOF
24338
24339 fi
24340 else
24341 { echo "$as_me:$LINENO: result: no" >&5
24342echo "${ECHO_T}no" >&6; }
24343 fi
24344
24345
24346# look for field 'ut_exit' in header 'utmp.h'
24347 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
24348 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
24349 { echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
24350echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6; }
24351 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24352 echo $ECHO_N "(cached) $ECHO_C" >&6
24353else
24354
24355 cat >conftest.$ac_ext <<_ACEOF
24356/* confdefs.h. */
24357_ACEOF
24358cat confdefs.h >>conftest.$ac_ext
24359cat >>conftest.$ac_ext <<_ACEOF
24360/* end confdefs.h. */
24361#include <utmp.h>
24362
24363_ACEOF
24364if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24365 $EGREP "ut_exit" >/dev/null 2>&1; then
24366 eval "$ossh_varname=yes"
24367else
24368 eval "$ossh_varname=no"
24369fi
24370rm -f conftest*
24371
24372fi
24373
24374 ossh_result=`eval 'echo $'"$ossh_varname"`
24375 if test -n "`echo $ossh_varname`"; then
24376 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24377echo "${ECHO_T}$ossh_result" >&6; }
24378 if test "x$ossh_result" = "xyes"; then
24379
24380cat >>confdefs.h <<\_ACEOF
24381#define HAVE_EXIT_IN_UTMP 1
24382_ACEOF
24383
24384 fi
24385 else
24386 { echo "$as_me:$LINENO: result: no" >&5
24387echo "${ECHO_T}no" >&6; }
24388 fi
24389
24390
24391# look for field 'ut_time' in header 'utmp.h'
24392 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
24393 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
24394 { echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
24395echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6; }
24396 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24397 echo $ECHO_N "(cached) $ECHO_C" >&6
24398else
24399
24400 cat >conftest.$ac_ext <<_ACEOF
24401/* confdefs.h. */
24402_ACEOF
24403cat confdefs.h >>conftest.$ac_ext
24404cat >>conftest.$ac_ext <<_ACEOF
24405/* end confdefs.h. */
24406#include <utmp.h>
24407
24408_ACEOF
24409if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24410 $EGREP "ut_time" >/dev/null 2>&1; then
24411 eval "$ossh_varname=yes"
24412else
24413 eval "$ossh_varname=no"
24414fi
24415rm -f conftest*
24416
24417fi
24418
24419 ossh_result=`eval 'echo $'"$ossh_varname"`
24420 if test -n "`echo $ossh_varname`"; then
24421 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24422echo "${ECHO_T}$ossh_result" >&6; }
24423 if test "x$ossh_result" = "xyes"; then
24424
24425cat >>confdefs.h <<\_ACEOF
24426#define HAVE_TIME_IN_UTMP 1
24427_ACEOF
24428
24429 fi
24430 else
24431 { echo "$as_me:$LINENO: result: no" >&5
24432echo "${ECHO_T}no" >&6; }
24433 fi
24434
24435
24436# look for field 'ut_time' in header 'utmpx.h'
24437 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
24438 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
24439 { echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
24440echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6; }
24441 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24442 echo $ECHO_N "(cached) $ECHO_C" >&6
24443else
24444
24445 cat >conftest.$ac_ext <<_ACEOF
24446/* confdefs.h. */
24447_ACEOF
24448cat confdefs.h >>conftest.$ac_ext
24449cat >>conftest.$ac_ext <<_ACEOF
24450/* end confdefs.h. */
24451#include <utmpx.h>
24452
24453_ACEOF
24454if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24455 $EGREP "ut_time" >/dev/null 2>&1; then
24456 eval "$ossh_varname=yes"
24457else
24458 eval "$ossh_varname=no"
24459fi
24460rm -f conftest*
24461
24462fi
24463
24464 ossh_result=`eval 'echo $'"$ossh_varname"`
24465 if test -n "`echo $ossh_varname`"; then
24466 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24467echo "${ECHO_T}$ossh_result" >&6; }
24468 if test "x$ossh_result" = "xyes"; then
24469
24470cat >>confdefs.h <<\_ACEOF
24471#define HAVE_TIME_IN_UTMPX 1
24472_ACEOF
24473
24474 fi
24475 else
24476 { echo "$as_me:$LINENO: result: no" >&5
24477echo "${ECHO_T}no" >&6; }
24478 fi
24479
24480
24481# look for field 'ut_tv' in header 'utmpx.h'
24482 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
24483 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
24484 { echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
24485echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6; }
24486 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24487 echo $ECHO_N "(cached) $ECHO_C" >&6
24488else
24489
24490 cat >conftest.$ac_ext <<_ACEOF
24491/* confdefs.h. */
24492_ACEOF
24493cat confdefs.h >>conftest.$ac_ext
24494cat >>conftest.$ac_ext <<_ACEOF
24495/* end confdefs.h. */
24496#include <utmpx.h>
24497
24498_ACEOF
24499if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24500 $EGREP "ut_tv" >/dev/null 2>&1; then
24501 eval "$ossh_varname=yes"
24502else
24503 eval "$ossh_varname=no"
24504fi
24505rm -f conftest*
24506
24507fi
24508
24509 ossh_result=`eval 'echo $'"$ossh_varname"`
24510 if test -n "`echo $ossh_varname`"; then
24511 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24512echo "${ECHO_T}$ossh_result" >&6; }
24513 if test "x$ossh_result" = "xyes"; then
24514
24515cat >>confdefs.h <<\_ACEOF
24516#define HAVE_TV_IN_UTMPX 1
24517_ACEOF
24518
24519 fi
24520 else
24521 { echo "$as_me:$LINENO: result: no" >&5
24522echo "${ECHO_T}no" >&6; }
24523 fi
24524
24525
24526{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
24527echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
24528if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
24529 echo $ECHO_N "(cached) $ECHO_C" >&6
24530else
24531 cat >conftest.$ac_ext <<_ACEOF
24532/* confdefs.h. */
24533_ACEOF
24534cat confdefs.h >>conftest.$ac_ext
24535cat >>conftest.$ac_ext <<_ACEOF
24536/* end confdefs.h. */
24537$ac_includes_default
24538int
24539main ()
24540{
24541static struct stat ac_aggr;
24542if (ac_aggr.st_blksize)
24543return 0;
24544 ;
24545 return 0;
24546}
24547_ACEOF
24548rm -f conftest.$ac_objext
24549if { (ac_try="$ac_compile"
24550case "(($ac_try" in
24551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24552 *) ac_try_echo=$ac_try;;
24553esac
24554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24555 (eval "$ac_compile") 2>conftest.er1
24556 ac_status=$?
24557 grep -v '^ *+' conftest.er1 >conftest.err
24558 rm -f conftest.er1
24559 cat conftest.err >&5
24560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561 (exit $ac_status); } && {
24562 test -z "$ac_c_werror_flag" ||
24563 test ! -s conftest.err
24564 } && test -s conftest.$ac_objext; then
24565 ac_cv_member_struct_stat_st_blksize=yes
24566else
24567 echo "$as_me: failed program was:" >&5
24568sed 's/^/| /' conftest.$ac_ext >&5
24569
24570 cat >conftest.$ac_ext <<_ACEOF
24571/* confdefs.h. */
24572_ACEOF
24573cat confdefs.h >>conftest.$ac_ext
24574cat >>conftest.$ac_ext <<_ACEOF
24575/* end confdefs.h. */
24576$ac_includes_default
24577int
24578main ()
24579{
24580static struct stat ac_aggr;
24581if (sizeof ac_aggr.st_blksize)
24582return 0;
24583 ;
24584 return 0;
24585}
24586_ACEOF
24587rm -f conftest.$ac_objext
24588if { (ac_try="$ac_compile"
24589case "(($ac_try" in
24590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24591 *) ac_try_echo=$ac_try;;
24592esac
24593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24594 (eval "$ac_compile") 2>conftest.er1
24595 ac_status=$?
24596 grep -v '^ *+' conftest.er1 >conftest.err
24597 rm -f conftest.er1
24598 cat conftest.err >&5
24599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24600 (exit $ac_status); } && {
24601 test -z "$ac_c_werror_flag" ||
24602 test ! -s conftest.err
24603 } && test -s conftest.$ac_objext; then
24604 ac_cv_member_struct_stat_st_blksize=yes
24605else
24606 echo "$as_me: failed program was:" >&5
24607sed 's/^/| /' conftest.$ac_ext >&5
24608
24609 ac_cv_member_struct_stat_st_blksize=no
24610fi
24611
24612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24613fi
24614
24615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24616fi
24617{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
24618echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
24619if test $ac_cv_member_struct_stat_st_blksize = yes; then
24620
24621cat >>confdefs.h <<_ACEOF
24622#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
24623_ACEOF
24624
24625
24626fi
24627
24628{ echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5
24629echo $ECHO_N "checking for struct __res_state.retrans... $ECHO_C" >&6; }
24630if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then
24631 echo $ECHO_N "(cached) $ECHO_C" >&6
24632else
24633 cat >conftest.$ac_ext <<_ACEOF
24634/* confdefs.h. */
24635_ACEOF
24636cat confdefs.h >>conftest.$ac_ext
24637cat >>conftest.$ac_ext <<_ACEOF
24638/* end confdefs.h. */
24639
24640#include <stdio.h>
24641#if HAVE_SYS_TYPES_H
24642# include <sys/types.h>
24643#endif
24644#include <netinet/in.h>
24645#include <arpa/nameser.h>
24646#include <resolv.h>
24647
24648
24649int
24650main ()
24651{
24652static struct __res_state ac_aggr;
24653if (ac_aggr.retrans)
24654return 0;
24655 ;
24656 return 0;
24657}
24658_ACEOF
24659rm -f conftest.$ac_objext
24660if { (ac_try="$ac_compile"
24661case "(($ac_try" in
24662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24663 *) ac_try_echo=$ac_try;;
24664esac
24665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24666 (eval "$ac_compile") 2>conftest.er1
24667 ac_status=$?
24668 grep -v '^ *+' conftest.er1 >conftest.err
24669 rm -f conftest.er1
24670 cat conftest.err >&5
24671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24672 (exit $ac_status); } && {
24673 test -z "$ac_c_werror_flag" ||
24674 test ! -s conftest.err
24675 } && test -s conftest.$ac_objext; then
24676 ac_cv_member_struct___res_state_retrans=yes
24677else
24678 echo "$as_me: failed program was:" >&5
24679sed 's/^/| /' conftest.$ac_ext >&5
24680
24681 cat >conftest.$ac_ext <<_ACEOF
24682/* confdefs.h. */
24683_ACEOF
24684cat confdefs.h >>conftest.$ac_ext
24685cat >>conftest.$ac_ext <<_ACEOF
24686/* end confdefs.h. */
24687
24688#include <stdio.h>
24689#if HAVE_SYS_TYPES_H
24690# include <sys/types.h>
24691#endif
24692#include <netinet/in.h>
24693#include <arpa/nameser.h>
24694#include <resolv.h>
24695
24696
24697int
24698main ()
24699{
24700static struct __res_state ac_aggr;
24701if (sizeof ac_aggr.retrans)
24702return 0;
24703 ;
24704 return 0;
24705}
24706_ACEOF
24707rm -f conftest.$ac_objext
24708if { (ac_try="$ac_compile"
24709case "(($ac_try" in
24710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24711 *) ac_try_echo=$ac_try;;
24712esac
24713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24714 (eval "$ac_compile") 2>conftest.er1
24715 ac_status=$?
24716 grep -v '^ *+' conftest.er1 >conftest.err
24717 rm -f conftest.er1
24718 cat conftest.err >&5
24719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24720 (exit $ac_status); } && {
24721 test -z "$ac_c_werror_flag" ||
24722 test ! -s conftest.err
24723 } && test -s conftest.$ac_objext; then
24724 ac_cv_member_struct___res_state_retrans=yes
24725else
24726 echo "$as_me: failed program was:" >&5
24727sed 's/^/| /' conftest.$ac_ext >&5
24728
24729 ac_cv_member_struct___res_state_retrans=no
24730fi
24731
24732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24733fi
24734
24735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24736fi
24737{ echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5
24738echo "${ECHO_T}$ac_cv_member_struct___res_state_retrans" >&6; }
24739if test $ac_cv_member_struct___res_state_retrans = yes; then
24740 :
24741else
24742
24743cat >>confdefs.h <<\_ACEOF
24744#define __res_state state
24745_ACEOF
24746
24747fi
24748
24749
24750{ echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
24751echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
24752if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
24753 echo $ECHO_N "(cached) $ECHO_C" >&6
24754else
24755
24756 cat >conftest.$ac_ext <<_ACEOF
24757/* confdefs.h. */
24758_ACEOF
24759cat confdefs.h >>conftest.$ac_ext
24760cat >>conftest.$ac_ext <<_ACEOF
24761/* end confdefs.h. */
24762
24763#include <sys/types.h>
24764#include <sys/socket.h>
24765
24766int
24767main ()
24768{
24769 struct sockaddr_storage s; s.ss_family = 1;
24770 ;
24771 return 0;
24772}
24773_ACEOF
24774rm -f conftest.$ac_objext
24775if { (ac_try="$ac_compile"
24776case "(($ac_try" in
24777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24778 *) ac_try_echo=$ac_try;;
24779esac
24780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24781 (eval "$ac_compile") 2>conftest.er1
24782 ac_status=$?
24783 grep -v '^ *+' conftest.er1 >conftest.err
24784 rm -f conftest.er1
24785 cat conftest.err >&5
24786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24787 (exit $ac_status); } && {
24788 test -z "$ac_c_werror_flag" ||
24789 test ! -s conftest.err
24790 } && test -s conftest.$ac_objext; then
24791 ac_cv_have_ss_family_in_struct_ss="yes"
24792else
24793 echo "$as_me: failed program was:" >&5
24794sed 's/^/| /' conftest.$ac_ext >&5
24795
24796 ac_cv_have_ss_family_in_struct_ss="no"
24797fi
24798
24799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24800
24801fi
24802{ echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
24803echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6; }
24804if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
24805
24806cat >>confdefs.h <<\_ACEOF
24807#define HAVE_SS_FAMILY_IN_SS 1
24808_ACEOF
24809
24810fi
24811
24812{ echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
24813echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
24814if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
24815 echo $ECHO_N "(cached) $ECHO_C" >&6
24816else
24817
24818 cat >conftest.$ac_ext <<_ACEOF
24819/* confdefs.h. */
24820_ACEOF
24821cat confdefs.h >>conftest.$ac_ext
24822cat >>conftest.$ac_ext <<_ACEOF
24823/* end confdefs.h. */
24824
24825#include <sys/types.h>
24826#include <sys/socket.h>
24827
24828int
24829main ()
24830{
24831 struct sockaddr_storage s; s.__ss_family = 1;
24832 ;
24833 return 0;
24834}
24835_ACEOF
24836rm -f conftest.$ac_objext
24837if { (ac_try="$ac_compile"
24838case "(($ac_try" in
24839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24840 *) ac_try_echo=$ac_try;;
24841esac
24842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24843 (eval "$ac_compile") 2>conftest.er1
24844 ac_status=$?
24845 grep -v '^ *+' conftest.er1 >conftest.err
24846 rm -f conftest.er1
24847 cat conftest.err >&5
24848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24849 (exit $ac_status); } && {
24850 test -z "$ac_c_werror_flag" ||
24851 test ! -s conftest.err
24852 } && test -s conftest.$ac_objext; then
24853 ac_cv_have___ss_family_in_struct_ss="yes"
24854else
24855 echo "$as_me: failed program was:" >&5
24856sed 's/^/| /' conftest.$ac_ext >&5
24857
24858 ac_cv_have___ss_family_in_struct_ss="no"
24859
24860fi
24861
24862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24863
24864fi
24865{ echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
24866echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6; }
24867if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
24868
24869cat >>confdefs.h <<\_ACEOF
24870#define HAVE___SS_FAMILY_IN_SS 1
24871_ACEOF
24872
24873fi
24874
24875{ echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5
24876echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6; }
24877if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
24878 echo $ECHO_N "(cached) $ECHO_C" >&6
24879else
24880
24881 cat >conftest.$ac_ext <<_ACEOF
24882/* confdefs.h. */
24883_ACEOF
24884cat confdefs.h >>conftest.$ac_ext
24885cat >>conftest.$ac_ext <<_ACEOF
24886/* end confdefs.h. */
24887
24888#include <pwd.h>
24889
24890int
24891main ()
24892{
24893 struct passwd p; p.pw_class = 0;
24894 ;
24895 return 0;
24896}
24897_ACEOF
24898rm -f conftest.$ac_objext
24899if { (ac_try="$ac_compile"
24900case "(($ac_try" in
24901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24902 *) ac_try_echo=$ac_try;;
24903esac
24904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24905 (eval "$ac_compile") 2>conftest.er1
24906 ac_status=$?
24907 grep -v '^ *+' conftest.er1 >conftest.err
24908 rm -f conftest.er1
24909 cat conftest.err >&5
24910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24911 (exit $ac_status); } && {
24912 test -z "$ac_c_werror_flag" ||
24913 test ! -s conftest.err
24914 } && test -s conftest.$ac_objext; then
24915 ac_cv_have_pw_class_in_struct_passwd="yes"
24916else
24917 echo "$as_me: failed program was:" >&5
24918sed 's/^/| /' conftest.$ac_ext >&5
24919
24920 ac_cv_have_pw_class_in_struct_passwd="no"
24921
24922fi
24923
24924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24925
24926fi
24927{ echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
24928echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6; }
24929if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
24930
24931cat >>confdefs.h <<\_ACEOF
24932#define HAVE_PW_CLASS_IN_PASSWD 1
24933_ACEOF
24934
24935fi
24936
24937{ echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5
24938echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6; }
24939if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
24940 echo $ECHO_N "(cached) $ECHO_C" >&6
24941else
24942
24943 cat >conftest.$ac_ext <<_ACEOF
24944/* confdefs.h. */
24945_ACEOF
24946cat confdefs.h >>conftest.$ac_ext
24947cat >>conftest.$ac_ext <<_ACEOF
24948/* end confdefs.h. */
24949
24950#include <pwd.h>
24951
24952int
24953main ()
24954{
24955 struct passwd p; p.pw_expire = 0;
24956 ;
24957 return 0;
24958}
24959_ACEOF
24960rm -f conftest.$ac_objext
24961if { (ac_try="$ac_compile"
24962case "(($ac_try" in
24963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24964 *) ac_try_echo=$ac_try;;
24965esac
24966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24967 (eval "$ac_compile") 2>conftest.er1
24968 ac_status=$?
24969 grep -v '^ *+' conftest.er1 >conftest.err
24970 rm -f conftest.er1
24971 cat conftest.err >&5
24972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973 (exit $ac_status); } && {
24974 test -z "$ac_c_werror_flag" ||
24975 test ! -s conftest.err
24976 } && test -s conftest.$ac_objext; then
24977 ac_cv_have_pw_expire_in_struct_passwd="yes"
24978else
24979 echo "$as_me: failed program was:" >&5
24980sed 's/^/| /' conftest.$ac_ext >&5
24981
24982 ac_cv_have_pw_expire_in_struct_passwd="no"
24983
24984fi
24985
24986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24987
24988fi
24989{ echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
24990echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6; }
24991if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
24992
24993cat >>confdefs.h <<\_ACEOF
24994#define HAVE_PW_EXPIRE_IN_PASSWD 1
24995_ACEOF
24996
24997fi
24998
24999{ echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5
25000echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6; }
25001if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
25002 echo $ECHO_N "(cached) $ECHO_C" >&6
25003else
25004
25005 cat >conftest.$ac_ext <<_ACEOF
25006/* confdefs.h. */
25007_ACEOF
25008cat confdefs.h >>conftest.$ac_ext
25009cat >>conftest.$ac_ext <<_ACEOF
25010/* end confdefs.h. */
25011
25012#include <pwd.h>
25013
25014int
25015main ()
25016{
25017 struct passwd p; p.pw_change = 0;
25018 ;
25019 return 0;
25020}
25021_ACEOF
25022rm -f conftest.$ac_objext
25023if { (ac_try="$ac_compile"
25024case "(($ac_try" in
25025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25026 *) ac_try_echo=$ac_try;;
25027esac
25028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25029 (eval "$ac_compile") 2>conftest.er1
25030 ac_status=$?
25031 grep -v '^ *+' conftest.er1 >conftest.err
25032 rm -f conftest.er1
25033 cat conftest.err >&5
25034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25035 (exit $ac_status); } && {
25036 test -z "$ac_c_werror_flag" ||
25037 test ! -s conftest.err
25038 } && test -s conftest.$ac_objext; then
25039 ac_cv_have_pw_change_in_struct_passwd="yes"
25040else
25041 echo "$as_me: failed program was:" >&5
25042sed 's/^/| /' conftest.$ac_ext >&5
25043
25044 ac_cv_have_pw_change_in_struct_passwd="no"
25045
25046fi
25047
25048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25049
25050fi
25051{ echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
25052echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6; }
25053if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
25054
25055cat >>confdefs.h <<\_ACEOF
25056#define HAVE_PW_CHANGE_IN_PASSWD 1
25057_ACEOF
25058
25059fi
25060
25061{ echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
25062echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6; }
25063if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
25064 echo $ECHO_N "(cached) $ECHO_C" >&6
25065else
25066
25067 cat >conftest.$ac_ext <<_ACEOF
25068
25069#include <sys/types.h>
25070#include <sys/socket.h>
25071#include <sys/uio.h>
25072int main() {
25073#ifdef msg_accrights
25074#error "msg_accrights is a macro"
25075exit(1);
25076#endif
25077struct msghdr m;
25078m.msg_accrights = 0;
25079exit(0);
25080}
25081
25082_ACEOF
25083rm -f conftest.$ac_objext
25084if { (ac_try="$ac_compile"
25085case "(($ac_try" in
25086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25087 *) ac_try_echo=$ac_try;;
25088esac
25089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25090 (eval "$ac_compile") 2>conftest.er1
25091 ac_status=$?
25092 grep -v '^ *+' conftest.er1 >conftest.err
25093 rm -f conftest.er1
25094 cat conftest.err >&5
25095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25096 (exit $ac_status); } && {
25097 test -z "$ac_c_werror_flag" ||
25098 test ! -s conftest.err
25099 } && test -s conftest.$ac_objext; then
25100 ac_cv_have_accrights_in_msghdr="yes"
25101else
25102 echo "$as_me: failed program was:" >&5
25103sed 's/^/| /' conftest.$ac_ext >&5
25104
25105 ac_cv_have_accrights_in_msghdr="no"
25106
25107fi
25108
25109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25110
25111fi
25112{ echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
25113echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6; }
25114if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
25115
25116cat >>confdefs.h <<\_ACEOF
25117#define HAVE_ACCRIGHTS_IN_MSGHDR 1
25118_ACEOF
25119
25120fi
25121
25122{ echo "$as_me:$LINENO: checking if struct statvfs.f_fsid is integral type" >&5
25123echo $ECHO_N "checking if struct statvfs.f_fsid is integral type... $ECHO_C" >&6; }
25124cat >conftest.$ac_ext <<_ACEOF
25125/* confdefs.h. */
25126_ACEOF
25127cat confdefs.h >>conftest.$ac_ext
25128cat >>conftest.$ac_ext <<_ACEOF
25129/* end confdefs.h. */
25130
25131#include <sys/types.h>
25132#include <sys/stat.h>
25133#ifdef HAVE_SYS_TIME_H
25134# include <sys/time.h>
25135#endif
25136#ifdef HAVE_SYS_MOUNT_H
25137#include <sys/mount.h>
25138#endif
25139#ifdef HAVE_SYS_STATVFS_H
25140#include <sys/statvfs.h>
25141#endif
25142
25143int
25144main ()
25145{
25146struct statvfs s; s.f_fsid = 0;
25147 ;
25148 return 0;
25149}
25150_ACEOF
25151rm -f conftest.$ac_objext
25152if { (ac_try="$ac_compile"
25153case "(($ac_try" in
25154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25155 *) ac_try_echo=$ac_try;;
25156esac
25157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25158 (eval "$ac_compile") 2>conftest.er1
25159 ac_status=$?
25160 grep -v '^ *+' conftest.er1 >conftest.err
25161 rm -f conftest.er1
25162 cat conftest.err >&5
25163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164 (exit $ac_status); } && {
25165 test -z "$ac_c_werror_flag" ||
25166 test ! -s conftest.err
25167 } && test -s conftest.$ac_objext; then
25168 { echo "$as_me:$LINENO: result: yes" >&5
25169echo "${ECHO_T}yes" >&6; }
25170else
25171 echo "$as_me: failed program was:" >&5
25172sed 's/^/| /' conftest.$ac_ext >&5
25173
25174 { echo "$as_me:$LINENO: result: no" >&5
25175echo "${ECHO_T}no" >&6; }
25176
25177 { echo "$as_me:$LINENO: checking if fsid_t has member val" >&5
25178echo $ECHO_N "checking if fsid_t has member val... $ECHO_C" >&6; }
25179 cat >conftest.$ac_ext <<_ACEOF
25180/* confdefs.h. */
25181_ACEOF
25182cat confdefs.h >>conftest.$ac_ext
25183cat >>conftest.$ac_ext <<_ACEOF
25184/* end confdefs.h. */
25185
25186#include <sys/types.h>
25187#include <sys/statvfs.h>
25188int
25189main ()
25190{
25191fsid_t t; t.val[0] = 0;
25192 ;
25193 return 0;
25194}
25195_ACEOF
25196rm -f conftest.$ac_objext
25197if { (ac_try="$ac_compile"
25198case "(($ac_try" in
25199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25200 *) ac_try_echo=$ac_try;;
25201esac
25202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25203 (eval "$ac_compile") 2>conftest.er1
25204 ac_status=$?
25205 grep -v '^ *+' conftest.er1 >conftest.err
25206 rm -f conftest.er1
25207 cat conftest.err >&5
25208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209 (exit $ac_status); } && {
25210 test -z "$ac_c_werror_flag" ||
25211 test ! -s conftest.err
25212 } && test -s conftest.$ac_objext; then
25213 { echo "$as_me:$LINENO: result: yes" >&5
25214echo "${ECHO_T}yes" >&6; }
25215
25216cat >>confdefs.h <<\_ACEOF
25217#define FSID_HAS_VAL 1
25218_ACEOF
25219
25220else
25221 echo "$as_me: failed program was:" >&5
25222sed 's/^/| /' conftest.$ac_ext >&5
25223
25224 { echo "$as_me:$LINENO: result: no" >&5
25225echo "${ECHO_T}no" >&6; }
25226fi
25227
25228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25229
25230 { echo "$as_me:$LINENO: checking if f_fsid has member __val" >&5
25231echo $ECHO_N "checking if f_fsid has member __val... $ECHO_C" >&6; }
25232 cat >conftest.$ac_ext <<_ACEOF
25233/* confdefs.h. */
25234_ACEOF
25235cat confdefs.h >>conftest.$ac_ext
25236cat >>conftest.$ac_ext <<_ACEOF
25237/* end confdefs.h. */
25238
25239#include <sys/types.h>
25240#include <sys/statvfs.h>
25241int
25242main ()
25243{
25244fsid_t t; t.__val[0] = 0;
25245 ;
25246 return 0;
25247}
25248_ACEOF
25249rm -f conftest.$ac_objext
25250if { (ac_try="$ac_compile"
25251case "(($ac_try" in
25252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25253 *) ac_try_echo=$ac_try;;
25254esac
25255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25256 (eval "$ac_compile") 2>conftest.er1
25257 ac_status=$?
25258 grep -v '^ *+' conftest.er1 >conftest.err
25259 rm -f conftest.er1
25260 cat conftest.err >&5
25261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25262 (exit $ac_status); } && {
25263 test -z "$ac_c_werror_flag" ||
25264 test ! -s conftest.err
25265 } && test -s conftest.$ac_objext; then
25266 { echo "$as_me:$LINENO: result: yes" >&5
25267echo "${ECHO_T}yes" >&6; }
25268
25269cat >>confdefs.h <<\_ACEOF
25270#define FSID_HAS___VAL 1
25271_ACEOF
25272
25273else
25274 echo "$as_me: failed program was:" >&5
25275sed 's/^/| /' conftest.$ac_ext >&5
25276
25277 { echo "$as_me:$LINENO: result: no" >&5
25278echo "${ECHO_T}no" >&6; }
25279fi
25280
25281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25282
25283fi
25284
25285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25286
25287{ echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
25288echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; }
25289if test "${ac_cv_have_control_in_msghdr+set}" = set; then
25290 echo $ECHO_N "(cached) $ECHO_C" >&6
25291else
25292
25293 cat >conftest.$ac_ext <<_ACEOF
25294
25295#include <sys/types.h>
25296#include <sys/socket.h>
25297#include <sys/uio.h>
25298int main() {
25299#ifdef msg_control
25300#error "msg_control is a macro"
25301exit(1);
25302#endif
25303struct msghdr m;
25304m.msg_control = 0;
25305exit(0);
25306}
25307
25308_ACEOF
25309rm -f conftest.$ac_objext
25310if { (ac_try="$ac_compile"
25311case "(($ac_try" in
25312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25313 *) ac_try_echo=$ac_try;;
25314esac
25315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25316 (eval "$ac_compile") 2>conftest.er1
25317 ac_status=$?
25318 grep -v '^ *+' conftest.er1 >conftest.err
25319 rm -f conftest.er1
25320 cat conftest.err >&5
25321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25322 (exit $ac_status); } && {
25323 test -z "$ac_c_werror_flag" ||
25324 test ! -s conftest.err
25325 } && test -s conftest.$ac_objext; then
25326 ac_cv_have_control_in_msghdr="yes"
25327else
25328 echo "$as_me: failed program was:" >&5
25329sed 's/^/| /' conftest.$ac_ext >&5
25330
25331 ac_cv_have_control_in_msghdr="no"
25332
25333fi
25334
25335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25336
25337fi
25338{ echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
25339echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6; }
25340if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
25341
25342cat >>confdefs.h <<\_ACEOF
25343#define HAVE_CONTROL_IN_MSGHDR 1
25344_ACEOF
25345
25346fi
25347
25348{ echo "$as_me:$LINENO: checking if libc defines __progname" >&5
25349echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6; }
25350if test "${ac_cv_libc_defines___progname+set}" = set; then
25351 echo $ECHO_N "(cached) $ECHO_C" >&6
25352else
25353
25354 cat >conftest.$ac_ext <<_ACEOF
25355/* confdefs.h. */
25356_ACEOF
25357cat confdefs.h >>conftest.$ac_ext
25358cat >>conftest.$ac_ext <<_ACEOF
25359/* end confdefs.h. */
25360
25361int
25362main ()
25363{
25364 extern char *__progname; printf("%s", __progname);
25365 ;
25366 return 0;
25367}
25368_ACEOF
25369rm -f conftest.$ac_objext conftest$ac_exeext
25370if { (ac_try="$ac_link"
25371case "(($ac_try" in
25372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25373 *) ac_try_echo=$ac_try;;
25374esac
25375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25376 (eval "$ac_link") 2>conftest.er1
25377 ac_status=$?
25378 grep -v '^ *+' conftest.er1 >conftest.err
25379 rm -f conftest.er1
25380 cat conftest.err >&5
25381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25382 (exit $ac_status); } && {
25383 test -z "$ac_c_werror_flag" ||
25384 test ! -s conftest.err
25385 } && test -s conftest$ac_exeext &&
25386 $as_test_x conftest$ac_exeext; then
25387 ac_cv_libc_defines___progname="yes"
25388else
25389 echo "$as_me: failed program was:" >&5
25390sed 's/^/| /' conftest.$ac_ext >&5
25391
25392 ac_cv_libc_defines___progname="no"
25393
25394fi
25395
25396rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25397 conftest$ac_exeext conftest.$ac_ext
25398
25399fi
25400{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
25401echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6; }
25402if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
25403
25404cat >>confdefs.h <<\_ACEOF
25405#define HAVE___PROGNAME 1
25406_ACEOF
25407
25408fi
25409
25410{ echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
25411echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6; }
25412if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
25413 echo $ECHO_N "(cached) $ECHO_C" >&6
25414else
25415
25416 cat >conftest.$ac_ext <<_ACEOF
25417/* confdefs.h. */
25418_ACEOF
25419cat confdefs.h >>conftest.$ac_ext
25420cat >>conftest.$ac_ext <<_ACEOF
25421/* end confdefs.h. */
25422
25423#include <stdio.h>
25424
25425int
25426main ()
25427{
25428 printf("%s", __FUNCTION__);
25429 ;
25430 return 0;
25431}
25432_ACEOF
25433rm -f conftest.$ac_objext conftest$ac_exeext
25434if { (ac_try="$ac_link"
25435case "(($ac_try" in
25436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25437 *) ac_try_echo=$ac_try;;
25438esac
25439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25440 (eval "$ac_link") 2>conftest.er1
25441 ac_status=$?
25442 grep -v '^ *+' conftest.er1 >conftest.err
25443 rm -f conftest.er1
25444 cat conftest.err >&5
25445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446 (exit $ac_status); } && {
25447 test -z "$ac_c_werror_flag" ||
25448 test ! -s conftest.err
25449 } && test -s conftest$ac_exeext &&
25450 $as_test_x conftest$ac_exeext; then
25451 ac_cv_cc_implements___FUNCTION__="yes"
25452else
25453 echo "$as_me: failed program was:" >&5
25454sed 's/^/| /' conftest.$ac_ext >&5
25455
25456 ac_cv_cc_implements___FUNCTION__="no"
25457
25458fi
25459
25460rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25461 conftest$ac_exeext conftest.$ac_ext
25462
25463fi
25464{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
25465echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6; }
25466if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
25467
25468cat >>confdefs.h <<\_ACEOF
25469#define HAVE___FUNCTION__ 1
25470_ACEOF
25471
25472fi
25473
25474{ echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
25475echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6; }
25476if test "${ac_cv_cc_implements___func__+set}" = set; then
25477 echo $ECHO_N "(cached) $ECHO_C" >&6
25478else
25479
25480 cat >conftest.$ac_ext <<_ACEOF
25481/* confdefs.h. */
25482_ACEOF
25483cat confdefs.h >>conftest.$ac_ext
25484cat >>conftest.$ac_ext <<_ACEOF
25485/* end confdefs.h. */
25486
25487#include <stdio.h>
25488
25489int
25490main ()
25491{
25492 printf("%s", __func__);
25493 ;
25494 return 0;
25495}
25496_ACEOF
25497rm -f conftest.$ac_objext conftest$ac_exeext
25498if { (ac_try="$ac_link"
25499case "(($ac_try" in
25500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25501 *) ac_try_echo=$ac_try;;
25502esac
25503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25504 (eval "$ac_link") 2>conftest.er1
25505 ac_status=$?
25506 grep -v '^ *+' conftest.er1 >conftest.err
25507 rm -f conftest.er1
25508 cat conftest.err >&5
25509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510 (exit $ac_status); } && {
25511 test -z "$ac_c_werror_flag" ||
25512 test ! -s conftest.err
25513 } && test -s conftest$ac_exeext &&
25514 $as_test_x conftest$ac_exeext; then
25515 ac_cv_cc_implements___func__="yes"
25516else
25517 echo "$as_me: failed program was:" >&5
25518sed 's/^/| /' conftest.$ac_ext >&5
25519
25520 ac_cv_cc_implements___func__="no"
25521
25522fi
25523
25524rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25525 conftest$ac_exeext conftest.$ac_ext
25526
25527fi
25528{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
25529echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6; }
25530if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
25531
25532cat >>confdefs.h <<\_ACEOF
25533#define HAVE___func__ 1
25534_ACEOF
25535
25536fi
25537
25538{ echo "$as_me:$LINENO: checking whether va_copy exists" >&5
25539echo $ECHO_N "checking whether va_copy exists... $ECHO_C" >&6; }
25540if test "${ac_cv_have_va_copy+set}" = set; then
25541 echo $ECHO_N "(cached) $ECHO_C" >&6
25542else
25543
25544 cat >conftest.$ac_ext <<_ACEOF
25545/* confdefs.h. */
25546_ACEOF
25547cat confdefs.h >>conftest.$ac_ext
25548cat >>conftest.$ac_ext <<_ACEOF
25549/* end confdefs.h. */
25550#include <stdarg.h>
25551 va_list x,y;
25552int
25553main ()
25554{
25555va_copy(x,y);
25556 ;
25557 return 0;
25558}
25559_ACEOF
25560rm -f conftest.$ac_objext conftest$ac_exeext
25561if { (ac_try="$ac_link"
25562case "(($ac_try" in
25563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25564 *) ac_try_echo=$ac_try;;
25565esac
25566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25567 (eval "$ac_link") 2>conftest.er1
25568 ac_status=$?
25569 grep -v '^ *+' conftest.er1 >conftest.err
25570 rm -f conftest.er1
25571 cat conftest.err >&5
25572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573 (exit $ac_status); } && {
25574 test -z "$ac_c_werror_flag" ||
25575 test ! -s conftest.err
25576 } && test -s conftest$ac_exeext &&
25577 $as_test_x conftest$ac_exeext; then
25578 ac_cv_have_va_copy="yes"
25579else
25580 echo "$as_me: failed program was:" >&5
25581sed 's/^/| /' conftest.$ac_ext >&5
25582
25583 ac_cv_have_va_copy="no"
25584
25585fi
25586
25587rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25588 conftest$ac_exeext conftest.$ac_ext
25589
25590fi
25591{ echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5
25592echo "${ECHO_T}$ac_cv_have_va_copy" >&6; }
25593if test "x$ac_cv_have_va_copy" = "xyes" ; then
25594
25595cat >>confdefs.h <<\_ACEOF
25596#define HAVE_VA_COPY 1
25597_ACEOF
25598
25599fi
25600
25601{ echo "$as_me:$LINENO: checking whether __va_copy exists" >&5
25602echo $ECHO_N "checking whether __va_copy exists... $ECHO_C" >&6; }
25603if test "${ac_cv_have___va_copy+set}" = set; then
25604 echo $ECHO_N "(cached) $ECHO_C" >&6
25605else
25606
25607 cat >conftest.$ac_ext <<_ACEOF
25608/* confdefs.h. */
25609_ACEOF
25610cat confdefs.h >>conftest.$ac_ext
25611cat >>conftest.$ac_ext <<_ACEOF
25612/* end confdefs.h. */
25613#include <stdarg.h>
25614 va_list x,y;
25615int
25616main ()
25617{
25618__va_copy(x,y);
25619 ;
25620 return 0;
25621}
25622_ACEOF
25623rm -f conftest.$ac_objext conftest$ac_exeext
25624if { (ac_try="$ac_link"
25625case "(($ac_try" in
25626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25627 *) ac_try_echo=$ac_try;;
25628esac
25629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25630 (eval "$ac_link") 2>conftest.er1
25631 ac_status=$?
25632 grep -v '^ *+' conftest.er1 >conftest.err
25633 rm -f conftest.er1
25634 cat conftest.err >&5
25635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25636 (exit $ac_status); } && {
25637 test -z "$ac_c_werror_flag" ||
25638 test ! -s conftest.err
25639 } && test -s conftest$ac_exeext &&
25640 $as_test_x conftest$ac_exeext; then
25641 ac_cv_have___va_copy="yes"
25642else
25643 echo "$as_me: failed program was:" >&5
25644sed 's/^/| /' conftest.$ac_ext >&5
25645
25646 ac_cv_have___va_copy="no"
25647
25648fi
25649
25650rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25651 conftest$ac_exeext conftest.$ac_ext
25652
25653fi
25654{ echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5
25655echo "${ECHO_T}$ac_cv_have___va_copy" >&6; }
25656if test "x$ac_cv_have___va_copy" = "xyes" ; then
25657
25658cat >>confdefs.h <<\_ACEOF
25659#define HAVE___VA_COPY 1
25660_ACEOF
25661
25662fi
25663
25664{ echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
25665echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6; }
25666if test "${ac_cv_have_getopt_optreset+set}" = set; then
25667 echo $ECHO_N "(cached) $ECHO_C" >&6
25668else
25669
25670 cat >conftest.$ac_ext <<_ACEOF
25671/* confdefs.h. */
25672_ACEOF
25673cat confdefs.h >>conftest.$ac_ext
25674cat >>conftest.$ac_ext <<_ACEOF
25675/* end confdefs.h. */
25676
25677#include <getopt.h>
25678
25679int
25680main ()
25681{
25682 extern int optreset; optreset = 0;
25683 ;
25684 return 0;
25685}
25686_ACEOF
25687rm -f conftest.$ac_objext conftest$ac_exeext
25688if { (ac_try="$ac_link"
25689case "(($ac_try" in
25690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25691 *) ac_try_echo=$ac_try;;
25692esac
25693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25694 (eval "$ac_link") 2>conftest.er1
25695 ac_status=$?
25696 grep -v '^ *+' conftest.er1 >conftest.err
25697 rm -f conftest.er1
25698 cat conftest.err >&5
25699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700 (exit $ac_status); } && {
25701 test -z "$ac_c_werror_flag" ||
25702 test ! -s conftest.err
25703 } && test -s conftest$ac_exeext &&
25704 $as_test_x conftest$ac_exeext; then
25705 ac_cv_have_getopt_optreset="yes"
25706else
25707 echo "$as_me: failed program was:" >&5
25708sed 's/^/| /' conftest.$ac_ext >&5
25709
25710 ac_cv_have_getopt_optreset="no"
25711
25712fi
25713
25714rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25715 conftest$ac_exeext conftest.$ac_ext
25716
25717fi
25718{ echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
25719echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6; }
25720if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
25721
25722cat >>confdefs.h <<\_ACEOF
25723#define HAVE_GETOPT_OPTRESET 1
25724_ACEOF
25725
25726fi
25727
25728{ echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
25729echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6; }
25730if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
25731 echo $ECHO_N "(cached) $ECHO_C" >&6
25732else
25733
25734 cat >conftest.$ac_ext <<_ACEOF
25735/* confdefs.h. */
25736_ACEOF
25737cat confdefs.h >>conftest.$ac_ext
25738cat >>conftest.$ac_ext <<_ACEOF
25739/* end confdefs.h. */
25740
25741int
25742main ()
25743{
25744 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
25745 ;
25746 return 0;
25747}
25748_ACEOF
25749rm -f conftest.$ac_objext conftest$ac_exeext
25750if { (ac_try="$ac_link"
25751case "(($ac_try" in
25752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25753 *) ac_try_echo=$ac_try;;
25754esac
25755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25756 (eval "$ac_link") 2>conftest.er1
25757 ac_status=$?
25758 grep -v '^ *+' conftest.er1 >conftest.err
25759 rm -f conftest.er1
25760 cat conftest.err >&5
25761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25762 (exit $ac_status); } && {
25763 test -z "$ac_c_werror_flag" ||
25764 test ! -s conftest.err
25765 } && test -s conftest$ac_exeext &&
25766 $as_test_x conftest$ac_exeext; then
25767 ac_cv_libc_defines_sys_errlist="yes"
25768else
25769 echo "$as_me: failed program was:" >&5
25770sed 's/^/| /' conftest.$ac_ext >&5
25771
25772 ac_cv_libc_defines_sys_errlist="no"
25773
25774fi
25775
25776rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25777 conftest$ac_exeext conftest.$ac_ext
25778
25779fi
25780{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
25781echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6; }
25782if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
25783
25784cat >>confdefs.h <<\_ACEOF
25785#define HAVE_SYS_ERRLIST 1
25786_ACEOF
25787
25788fi
25789
25790
25791{ echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
25792echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6; }
25793if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
25794 echo $ECHO_N "(cached) $ECHO_C" >&6
25795else
25796
25797 cat >conftest.$ac_ext <<_ACEOF
25798/* confdefs.h. */
25799_ACEOF
25800cat confdefs.h >>conftest.$ac_ext
25801cat >>conftest.$ac_ext <<_ACEOF
25802/* end confdefs.h. */
25803
25804int
25805main ()
25806{
25807 extern int sys_nerr; printf("%i", sys_nerr);
25808 ;
25809 return 0;
25810}
25811_ACEOF
25812rm -f conftest.$ac_objext conftest$ac_exeext
25813if { (ac_try="$ac_link"
25814case "(($ac_try" in
25815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25816 *) ac_try_echo=$ac_try;;
25817esac
25818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25819 (eval "$ac_link") 2>conftest.er1
25820 ac_status=$?
25821 grep -v '^ *+' conftest.er1 >conftest.err
25822 rm -f conftest.er1
25823 cat conftest.err >&5
25824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25825 (exit $ac_status); } && {
25826 test -z "$ac_c_werror_flag" ||
25827 test ! -s conftest.err
25828 } && test -s conftest$ac_exeext &&
25829 $as_test_x conftest$ac_exeext; then
25830 ac_cv_libc_defines_sys_nerr="yes"
25831else
25832 echo "$as_me: failed program was:" >&5
25833sed 's/^/| /' conftest.$ac_ext >&5
25834
25835 ac_cv_libc_defines_sys_nerr="no"
25836
25837fi
25838
25839rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25840 conftest$ac_exeext conftest.$ac_ext
25841
25842fi
25843{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
25844echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6; }
25845if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
25846
25847cat >>confdefs.h <<\_ACEOF
25848#define HAVE_SYS_NERR 1
25849_ACEOF
25850
25851fi
25852
25853# Check libraries needed by DNS fingerprint support
25854{ echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5
25855echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6; }
25856if test "${ac_cv_search_getrrsetbyname+set}" = set; then
25857 echo $ECHO_N "(cached) $ECHO_C" >&6
25858else
25859 ac_func_search_save_LIBS=$LIBS
25860cat >conftest.$ac_ext <<_ACEOF
25861/* confdefs.h. */
25862_ACEOF
25863cat confdefs.h >>conftest.$ac_ext
25864cat >>conftest.$ac_ext <<_ACEOF
25865/* end confdefs.h. */
25866
25867/* Override any GCC internal prototype to avoid an error.
25868 Use char because int might match the return type of a GCC
25869 builtin and then its argument prototype would still apply. */
25870#ifdef __cplusplus
25871extern "C"
25872#endif
25873char getrrsetbyname ();
25874int
25875main ()
25876{
25877return getrrsetbyname ();
25878 ;
25879 return 0;
25880}
25881_ACEOF
25882for ac_lib in '' resolv; do
25883 if test -z "$ac_lib"; then
25884 ac_res="none required"
25885 else
25886 ac_res=-l$ac_lib
25887 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25888 fi
25889 rm -f conftest.$ac_objext conftest$ac_exeext
25890if { (ac_try="$ac_link"
25891case "(($ac_try" in
25892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25893 *) ac_try_echo=$ac_try;;
25894esac
25895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25896 (eval "$ac_link") 2>conftest.er1
25897 ac_status=$?
25898 grep -v '^ *+' conftest.er1 >conftest.err
25899 rm -f conftest.er1
25900 cat conftest.err >&5
25901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25902 (exit $ac_status); } && {
25903 test -z "$ac_c_werror_flag" ||
25904 test ! -s conftest.err
25905 } && test -s conftest$ac_exeext &&
25906 $as_test_x conftest$ac_exeext; then
25907 ac_cv_search_getrrsetbyname=$ac_res
25908else
25909 echo "$as_me: failed program was:" >&5
25910sed 's/^/| /' conftest.$ac_ext >&5
25911
25912
25913fi
25914
25915rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25916 conftest$ac_exeext
25917 if test "${ac_cv_search_getrrsetbyname+set}" = set; then
25918 break
25919fi
25920done
25921if test "${ac_cv_search_getrrsetbyname+set}" = set; then
25922 :
25923else
25924 ac_cv_search_getrrsetbyname=no
25925fi
25926rm conftest.$ac_ext
25927LIBS=$ac_func_search_save_LIBS
25928fi
25929{ echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5
25930echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6; }
25931ac_res=$ac_cv_search_getrrsetbyname
25932if test "$ac_res" != no; then
25933 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25934
25935cat >>confdefs.h <<\_ACEOF
25936#define HAVE_GETRRSETBYNAME 1
25937_ACEOF
25938
25939else
25940
25941 # Needed by our getrrsetbyname()
25942 { echo "$as_me:$LINENO: checking for library containing res_query" >&5
25943echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; }
25944if test "${ac_cv_search_res_query+set}" = set; then
25945 echo $ECHO_N "(cached) $ECHO_C" >&6
25946else
25947 ac_func_search_save_LIBS=$LIBS
25948cat >conftest.$ac_ext <<_ACEOF
25949/* confdefs.h. */
25950_ACEOF
25951cat confdefs.h >>conftest.$ac_ext
25952cat >>conftest.$ac_ext <<_ACEOF
25953/* end confdefs.h. */
25954
25955/* Override any GCC internal prototype to avoid an error.
25956 Use char because int might match the return type of a GCC
25957 builtin and then its argument prototype would still apply. */
25958#ifdef __cplusplus
25959extern "C"
25960#endif
25961char res_query ();
25962int
25963main ()
25964{
25965return res_query ();
25966 ;
25967 return 0;
25968}
25969_ACEOF
25970for ac_lib in '' resolv; do
25971 if test -z "$ac_lib"; then
25972 ac_res="none required"
25973 else
25974 ac_res=-l$ac_lib
25975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25976 fi
25977 rm -f conftest.$ac_objext conftest$ac_exeext
25978if { (ac_try="$ac_link"
25979case "(($ac_try" in
25980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25981 *) ac_try_echo=$ac_try;;
25982esac
25983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25984 (eval "$ac_link") 2>conftest.er1
25985 ac_status=$?
25986 grep -v '^ *+' conftest.er1 >conftest.err
25987 rm -f conftest.er1
25988 cat conftest.err >&5
25989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25990 (exit $ac_status); } && {
25991 test -z "$ac_c_werror_flag" ||
25992 test ! -s conftest.err
25993 } && test -s conftest$ac_exeext &&
25994 $as_test_x conftest$ac_exeext; then
25995 ac_cv_search_res_query=$ac_res
25996else
25997 echo "$as_me: failed program was:" >&5
25998sed 's/^/| /' conftest.$ac_ext >&5
25999
26000
26001fi
26002
26003rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26004 conftest$ac_exeext
26005 if test "${ac_cv_search_res_query+set}" = set; then
26006 break
26007fi
26008done
26009if test "${ac_cv_search_res_query+set}" = set; then
26010 :
26011else
26012 ac_cv_search_res_query=no
26013fi
26014rm conftest.$ac_ext
26015LIBS=$ac_func_search_save_LIBS
26016fi
26017{ echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
26018echo "${ECHO_T}$ac_cv_search_res_query" >&6; }
26019ac_res=$ac_cv_search_res_query
26020if test "$ac_res" != no; then
26021 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26022
26023fi
26024
26025 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
26026echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
26027if test "${ac_cv_search_dn_expand+set}" = set; then
26028 echo $ECHO_N "(cached) $ECHO_C" >&6
26029else
26030 ac_func_search_save_LIBS=$LIBS
26031cat >conftest.$ac_ext <<_ACEOF
26032/* confdefs.h. */
26033_ACEOF
26034cat confdefs.h >>conftest.$ac_ext
26035cat >>conftest.$ac_ext <<_ACEOF
26036/* end confdefs.h. */
26037
26038/* Override any GCC internal prototype to avoid an error.
26039 Use char because int might match the return type of a GCC
26040 builtin and then its argument prototype would still apply. */
26041#ifdef __cplusplus
26042extern "C"
26043#endif
26044char dn_expand ();
26045int
26046main ()
26047{
26048return dn_expand ();
26049 ;
26050 return 0;
26051}
26052_ACEOF
26053for ac_lib in '' resolv; do
26054 if test -z "$ac_lib"; then
26055 ac_res="none required"
26056 else
26057 ac_res=-l$ac_lib
26058 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26059 fi
26060 rm -f conftest.$ac_objext conftest$ac_exeext
26061if { (ac_try="$ac_link"
26062case "(($ac_try" in
26063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26064 *) ac_try_echo=$ac_try;;
26065esac
26066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26067 (eval "$ac_link") 2>conftest.er1
26068 ac_status=$?
26069 grep -v '^ *+' conftest.er1 >conftest.err
26070 rm -f conftest.er1
26071 cat conftest.err >&5
26072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26073 (exit $ac_status); } && {
26074 test -z "$ac_c_werror_flag" ||
26075 test ! -s conftest.err
26076 } && test -s conftest$ac_exeext &&
26077 $as_test_x conftest$ac_exeext; then
26078 ac_cv_search_dn_expand=$ac_res
26079else
26080 echo "$as_me: failed program was:" >&5
26081sed 's/^/| /' conftest.$ac_ext >&5
26082
26083
26084fi
26085
26086rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26087 conftest$ac_exeext
26088 if test "${ac_cv_search_dn_expand+set}" = set; then
26089 break
26090fi
26091done
26092if test "${ac_cv_search_dn_expand+set}" = set; then
26093 :
26094else
26095 ac_cv_search_dn_expand=no
26096fi
26097rm conftest.$ac_ext
26098LIBS=$ac_func_search_save_LIBS
26099fi
26100{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
26101echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
26102ac_res=$ac_cv_search_dn_expand
26103if test "$ac_res" != no; then
26104 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26105
26106fi
26107
26108 { echo "$as_me:$LINENO: checking if res_query will link" >&5
26109echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6; }
26110 cat >conftest.$ac_ext <<_ACEOF
26111
26112#include "confdefs.h"
26113#include <sys/types.h>
26114#include <netinet/in.h>
26115#include <arpa/nameser.h>
26116#include <netdb.h>
26117#include <resolv.h>
26118int main()
26119{
26120 res_query (0, 0, 0, 0, 0);
26121 return 0;
26122}
26123
26124_ACEOF
26125rm -f conftest.$ac_objext conftest$ac_exeext
26126if { (ac_try="$ac_link"
26127case "(($ac_try" in
26128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26129 *) ac_try_echo=$ac_try;;
26130esac
26131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26132 (eval "$ac_link") 2>conftest.er1
26133 ac_status=$?
26134 grep -v '^ *+' conftest.er1 >conftest.err
26135 rm -f conftest.er1
26136 cat conftest.err >&5
26137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26138 (exit $ac_status); } && {
26139 test -z "$ac_c_werror_flag" ||
26140 test ! -s conftest.err
26141 } && test -s conftest$ac_exeext &&
26142 $as_test_x conftest$ac_exeext; then
26143 { echo "$as_me:$LINENO: result: yes" >&5
26144echo "${ECHO_T}yes" >&6; }
26145else
26146 echo "$as_me: failed program was:" >&5
26147sed 's/^/| /' conftest.$ac_ext >&5
26148
26149 { echo "$as_me:$LINENO: result: no" >&5
26150echo "${ECHO_T}no" >&6; }
26151 saved_LIBS="$LIBS"
26152 LIBS="$LIBS -lresolv"
26153 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
26154echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
26155 cat >conftest.$ac_ext <<_ACEOF
26156
26157#include "confdefs.h"
26158#include <sys/types.h>
26159#include <netinet/in.h>
26160#include <arpa/nameser.h>
26161#include <netdb.h>
26162#include <resolv.h>
26163int main()
26164{
26165 res_query (0, 0, 0, 0, 0);
26166 return 0;
26167}
26168
26169_ACEOF
26170rm -f conftest.$ac_objext conftest$ac_exeext
26171if { (ac_try="$ac_link"
26172case "(($ac_try" in
26173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26174 *) ac_try_echo=$ac_try;;
26175esac
26176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26177 (eval "$ac_link") 2>conftest.er1
26178 ac_status=$?
26179 grep -v '^ *+' conftest.er1 >conftest.err
26180 rm -f conftest.er1
26181 cat conftest.err >&5
26182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26183 (exit $ac_status); } && {
26184 test -z "$ac_c_werror_flag" ||
26185 test ! -s conftest.err
26186 } && test -s conftest$ac_exeext &&
26187 $as_test_x conftest$ac_exeext; then
26188 { echo "$as_me:$LINENO: result: yes" >&5
26189echo "${ECHO_T}yes" >&6; }
26190else
26191 echo "$as_me: failed program was:" >&5
26192sed 's/^/| /' conftest.$ac_ext >&5
26193
26194 LIBS="$saved_LIBS"
26195 { echo "$as_me:$LINENO: result: no" >&5
26196echo "${ECHO_T}no" >&6; }
26197fi
26198
26199rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26200 conftest$ac_exeext conftest.$ac_ext
26201
26202fi
26203
26204rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26205 conftest$ac_exeext conftest.$ac_ext
26206
26207
26208for ac_func in _getshort _getlong
26209do
26210as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26211{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26212echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26213if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26214 echo $ECHO_N "(cached) $ECHO_C" >&6
26215else
26216 cat >conftest.$ac_ext <<_ACEOF
26217/* confdefs.h. */
26218_ACEOF
26219cat confdefs.h >>conftest.$ac_ext
26220cat >>conftest.$ac_ext <<_ACEOF
26221/* end confdefs.h. */
26222/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26224#define $ac_func innocuous_$ac_func
26225
26226/* System header to define __stub macros and hopefully few prototypes,
26227 which can conflict with char $ac_func (); below.
26228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26229 <limits.h> exists even on freestanding compilers. */
26230
26231#ifdef __STDC__
26232# include <limits.h>
26233#else
26234# include <assert.h>
26235#endif
26236
26237#undef $ac_func
26238
26239/* Override any GCC internal prototype to avoid an error.
26240 Use char because int might match the return type of a GCC
26241 builtin and then its argument prototype would still apply. */
26242#ifdef __cplusplus
26243extern "C"
26244#endif
26245char $ac_func ();
26246/* The GNU C library defines this for functions which it implements
26247 to always fail with ENOSYS. Some functions are actually named
26248 something starting with __ and the normal name is an alias. */
26249#if defined __stub_$ac_func || defined __stub___$ac_func
26250choke me
26251#endif
26252
26253int
26254main ()
26255{
26256return $ac_func ();
26257 ;
26258 return 0;
26259}
26260_ACEOF
26261rm -f conftest.$ac_objext conftest$ac_exeext
26262if { (ac_try="$ac_link"
26263case "(($ac_try" in
26264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26265 *) ac_try_echo=$ac_try;;
26266esac
26267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26268 (eval "$ac_link") 2>conftest.er1
26269 ac_status=$?
26270 grep -v '^ *+' conftest.er1 >conftest.err
26271 rm -f conftest.er1
26272 cat conftest.err >&5
26273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26274 (exit $ac_status); } && {
26275 test -z "$ac_c_werror_flag" ||
26276 test ! -s conftest.err
26277 } && test -s conftest$ac_exeext &&
26278 $as_test_x conftest$ac_exeext; then
26279 eval "$as_ac_var=yes"
26280else
26281 echo "$as_me: failed program was:" >&5
26282sed 's/^/| /' conftest.$ac_ext >&5
26283
26284 eval "$as_ac_var=no"
26285fi
26286
26287rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26288 conftest$ac_exeext conftest.$ac_ext
26289fi
26290ac_res=`eval echo '${'$as_ac_var'}'`
26291 { echo "$as_me:$LINENO: result: $ac_res" >&5
26292echo "${ECHO_T}$ac_res" >&6; }
26293if test `eval echo '${'$as_ac_var'}'` = yes; then
26294 cat >>confdefs.h <<_ACEOF
26295#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26296_ACEOF
26297
26298fi
26299done
26300
26301 { echo "$as_me:$LINENO: checking whether _getshort is declared" >&5
26302echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6; }
26303if test "${ac_cv_have_decl__getshort+set}" = set; then
26304 echo $ECHO_N "(cached) $ECHO_C" >&6
26305else
26306 cat >conftest.$ac_ext <<_ACEOF
26307/* confdefs.h. */
26308_ACEOF
26309cat confdefs.h >>conftest.$ac_ext
26310cat >>conftest.$ac_ext <<_ACEOF
26311/* end confdefs.h. */
26312#include <sys/types.h>
26313 #include <arpa/nameser.h>
26314
26315int
26316main ()
26317{
26318#ifndef _getshort
26319 (void) _getshort;
26320#endif
26321
26322 ;
26323 return 0;
26324}
26325_ACEOF
26326rm -f conftest.$ac_objext
26327if { (ac_try="$ac_compile"
26328case "(($ac_try" in
26329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26330 *) ac_try_echo=$ac_try;;
26331esac
26332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26333 (eval "$ac_compile") 2>conftest.er1
26334 ac_status=$?
26335 grep -v '^ *+' conftest.er1 >conftest.err
26336 rm -f conftest.er1
26337 cat conftest.err >&5
26338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26339 (exit $ac_status); } && {
26340 test -z "$ac_c_werror_flag" ||
26341 test ! -s conftest.err
26342 } && test -s conftest.$ac_objext; then
26343 ac_cv_have_decl__getshort=yes
26344else
26345 echo "$as_me: failed program was:" >&5
26346sed 's/^/| /' conftest.$ac_ext >&5
26347
26348 ac_cv_have_decl__getshort=no
26349fi
26350
26351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26352fi
26353{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5
26354echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6; }
26355if test $ac_cv_have_decl__getshort = yes; then
26356
26357cat >>confdefs.h <<_ACEOF
26358#define HAVE_DECL__GETSHORT 1
26359_ACEOF
26360
26361
26362else
26363 cat >>confdefs.h <<_ACEOF
26364#define HAVE_DECL__GETSHORT 0
26365_ACEOF
26366
26367
26368fi
26369{ echo "$as_me:$LINENO: checking whether _getlong is declared" >&5
26370echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6; }
26371if test "${ac_cv_have_decl__getlong+set}" = set; then
26372 echo $ECHO_N "(cached) $ECHO_C" >&6
26373else
26374 cat >conftest.$ac_ext <<_ACEOF
26375/* confdefs.h. */
26376_ACEOF
26377cat confdefs.h >>conftest.$ac_ext
26378cat >>conftest.$ac_ext <<_ACEOF
26379/* end confdefs.h. */
26380#include <sys/types.h>
26381 #include <arpa/nameser.h>
26382
26383int
26384main ()
26385{
26386#ifndef _getlong
26387 (void) _getlong;
26388#endif
26389
26390 ;
26391 return 0;
26392}
26393_ACEOF
26394rm -f conftest.$ac_objext
26395if { (ac_try="$ac_compile"
26396case "(($ac_try" in
26397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26398 *) ac_try_echo=$ac_try;;
26399esac
26400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26401 (eval "$ac_compile") 2>conftest.er1
26402 ac_status=$?
26403 grep -v '^ *+' conftest.er1 >conftest.err
26404 rm -f conftest.er1
26405 cat conftest.err >&5
26406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26407 (exit $ac_status); } && {
26408 test -z "$ac_c_werror_flag" ||
26409 test ! -s conftest.err
26410 } && test -s conftest.$ac_objext; then
26411 ac_cv_have_decl__getlong=yes
26412else
26413 echo "$as_me: failed program was:" >&5
26414sed 's/^/| /' conftest.$ac_ext >&5
26415
26416 ac_cv_have_decl__getlong=no
26417fi
26418
26419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26420fi
26421{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5
26422echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6; }
26423if test $ac_cv_have_decl__getlong = yes; then
26424
26425cat >>confdefs.h <<_ACEOF
26426#define HAVE_DECL__GETLONG 1
26427_ACEOF
26428
26429
26430else
26431 cat >>confdefs.h <<_ACEOF
26432#define HAVE_DECL__GETLONG 0
26433_ACEOF
26434
26435
26436fi
26437
26438
26439 { echo "$as_me:$LINENO: checking for HEADER.ad" >&5
26440echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6; }
26441if test "${ac_cv_member_HEADER_ad+set}" = set; then
26442 echo $ECHO_N "(cached) $ECHO_C" >&6
26443else
26444 cat >conftest.$ac_ext <<_ACEOF
26445/* confdefs.h. */
26446_ACEOF
26447cat confdefs.h >>conftest.$ac_ext
26448cat >>conftest.$ac_ext <<_ACEOF
26449/* end confdefs.h. */
26450#include <arpa/nameser.h>
26451
26452int
26453main ()
26454{
26455static HEADER ac_aggr;
26456if (ac_aggr.ad)
26457return 0;
26458 ;
26459 return 0;
26460}
26461_ACEOF
26462rm -f conftest.$ac_objext
26463if { (ac_try="$ac_compile"
26464case "(($ac_try" in
26465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26466 *) ac_try_echo=$ac_try;;
26467esac
26468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26469 (eval "$ac_compile") 2>conftest.er1
26470 ac_status=$?
26471 grep -v '^ *+' conftest.er1 >conftest.err
26472 rm -f conftest.er1
26473 cat conftest.err >&5
26474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475 (exit $ac_status); } && {
26476 test -z "$ac_c_werror_flag" ||
26477 test ! -s conftest.err
26478 } && test -s conftest.$ac_objext; then
26479 ac_cv_member_HEADER_ad=yes
26480else
26481 echo "$as_me: failed program was:" >&5
26482sed 's/^/| /' conftest.$ac_ext >&5
26483
26484 cat >conftest.$ac_ext <<_ACEOF
26485/* confdefs.h. */
26486_ACEOF
26487cat confdefs.h >>conftest.$ac_ext
26488cat >>conftest.$ac_ext <<_ACEOF
26489/* end confdefs.h. */
26490#include <arpa/nameser.h>
26491
26492int
26493main ()
26494{
26495static HEADER ac_aggr;
26496if (sizeof ac_aggr.ad)
26497return 0;
26498 ;
26499 return 0;
26500}
26501_ACEOF
26502rm -f conftest.$ac_objext
26503if { (ac_try="$ac_compile"
26504case "(($ac_try" in
26505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26506 *) ac_try_echo=$ac_try;;
26507esac
26508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26509 (eval "$ac_compile") 2>conftest.er1
26510 ac_status=$?
26511 grep -v '^ *+' conftest.er1 >conftest.err
26512 rm -f conftest.er1
26513 cat conftest.err >&5
26514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515 (exit $ac_status); } && {
26516 test -z "$ac_c_werror_flag" ||
26517 test ! -s conftest.err
26518 } && test -s conftest.$ac_objext; then
26519 ac_cv_member_HEADER_ad=yes
26520else
26521 echo "$as_me: failed program was:" >&5
26522sed 's/^/| /' conftest.$ac_ext >&5
26523
26524 ac_cv_member_HEADER_ad=no
26525fi
26526
26527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26528fi
26529
26530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26531fi
26532{ echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5
26533echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6; }
26534if test $ac_cv_member_HEADER_ad = yes; then
26535
26536cat >>confdefs.h <<\_ACEOF
26537#define HAVE_HEADER_AD 1
26538_ACEOF
26539
26540fi
26541
26542
26543fi
26544
26545
26546{ echo "$as_me:$LINENO: checking if struct __res_state _res is an extern" >&5
26547echo $ECHO_N "checking if struct __res_state _res is an extern... $ECHO_C" >&6; }
26548cat >conftest.$ac_ext <<_ACEOF
26549
26550#include <stdio.h>
26551#if HAVE_SYS_TYPES_H
26552# include <sys/types.h>
26553#endif
26554#include <netinet/in.h>
26555#include <arpa/nameser.h>
26556#include <resolv.h>
26557extern struct __res_state _res;
26558int main() { return 0; }
26559
26560_ACEOF
26561rm -f conftest.$ac_objext conftest$ac_exeext
26562if { (ac_try="$ac_link"
26563case "(($ac_try" in
26564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26565 *) ac_try_echo=$ac_try;;
26566esac
26567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26568 (eval "$ac_link") 2>conftest.er1
26569 ac_status=$?
26570 grep -v '^ *+' conftest.er1 >conftest.err
26571 rm -f conftest.er1
26572 cat conftest.err >&5
26573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26574 (exit $ac_status); } && {
26575 test -z "$ac_c_werror_flag" ||
26576 test ! -s conftest.err
26577 } && test -s conftest$ac_exeext &&
26578 $as_test_x conftest$ac_exeext; then
26579 { echo "$as_me:$LINENO: result: yes" >&5
26580echo "${ECHO_T}yes" >&6; }
26581
26582cat >>confdefs.h <<\_ACEOF
26583#define HAVE__RES_EXTERN 1
26584_ACEOF
26585
26586
26587else
26588 echo "$as_me: failed program was:" >&5
26589sed 's/^/| /' conftest.$ac_ext >&5
26590
26591 { echo "$as_me:$LINENO: result: no" >&5
26592echo "${ECHO_T}no" >&6; }
26593
26594fi
26595
26596rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26597 conftest$ac_exeext conftest.$ac_ext
26598
26599# Check whether user wants SELinux support
26600SELINUX_MSG="no"
26601LIBSELINUX=""
26602
26603# Check whether --with-selinux was given.
26604if test "${with_selinux+set}" = set; then
26605 withval=$with_selinux; if test "x$withval" != "xno" ; then
26606 save_LIBS="$LIBS"
26607
26608cat >>confdefs.h <<\_ACEOF
26609#define WITH_SELINUX 1
26610_ACEOF
26611
26612 SELINUX_MSG="yes"
26613 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
26614 { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
26615echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
26616if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
26617 echo $ECHO_N "(cached) $ECHO_C" >&6
26618fi
26619{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
26620echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
26621else
26622 # Is the header compilable?
26623{ echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
26624echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; }
26625cat >conftest.$ac_ext <<_ACEOF
26626/* confdefs.h. */
26627_ACEOF
26628cat confdefs.h >>conftest.$ac_ext
26629cat >>conftest.$ac_ext <<_ACEOF
26630/* end confdefs.h. */
26631$ac_includes_default
26632#include <selinux/selinux.h>
26633_ACEOF
26634rm -f conftest.$ac_objext
26635if { (ac_try="$ac_compile"
26636case "(($ac_try" in
26637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26638 *) ac_try_echo=$ac_try;;
26639esac
26640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26641 (eval "$ac_compile") 2>conftest.er1
26642 ac_status=$?
26643 grep -v '^ *+' conftest.er1 >conftest.err
26644 rm -f conftest.er1
26645 cat conftest.err >&5
26646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26647 (exit $ac_status); } && {
26648 test -z "$ac_c_werror_flag" ||
26649 test ! -s conftest.err
26650 } && test -s conftest.$ac_objext; then
26651 ac_header_compiler=yes
26652else
26653 echo "$as_me: failed program was:" >&5
26654sed 's/^/| /' conftest.$ac_ext >&5
26655
26656 ac_header_compiler=no
26657fi
26658
26659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26660{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26661echo "${ECHO_T}$ac_header_compiler" >&6; }
26662
26663# Is the header present?
26664{ echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
26665echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; }
26666cat >conftest.$ac_ext <<_ACEOF
26667/* confdefs.h. */
26668_ACEOF
26669cat confdefs.h >>conftest.$ac_ext
26670cat >>conftest.$ac_ext <<_ACEOF
26671/* end confdefs.h. */
26672#include <selinux/selinux.h>
26673_ACEOF
26674if { (ac_try="$ac_cpp conftest.$ac_ext"
26675case "(($ac_try" in
26676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26677 *) ac_try_echo=$ac_try;;
26678esac
26679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26681 ac_status=$?
26682 grep -v '^ *+' conftest.er1 >conftest.err
26683 rm -f conftest.er1
26684 cat conftest.err >&5
26685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26686 (exit $ac_status); } >/dev/null && {
26687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26688 test ! -s conftest.err
26689 }; then
26690 ac_header_preproc=yes
26691else
26692 echo "$as_me: failed program was:" >&5
26693sed 's/^/| /' conftest.$ac_ext >&5
26694
26695 ac_header_preproc=no
26696fi
26697
26698rm -f conftest.err conftest.$ac_ext
26699{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26700echo "${ECHO_T}$ac_header_preproc" >&6; }
26701
26702# So? What about this header?
26703case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26704 yes:no: )
26705 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
26706echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26707 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
26708echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
26709 ac_header_preproc=yes
26710 ;;
26711 no:yes:* )
26712 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
26713echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
26714 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
26715echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
26716 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
26717echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
26718 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
26719echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
26720 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
26721echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
26722 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
26723echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
26724 ( cat <<\_ASBOX
26725## ------------------------------------------- ##
26726## Report this to openssh-unix-dev@mindrot.org ##
26727## ------------------------------------------- ##
26728_ASBOX
26729 ) | sed "s/^/$as_me: WARNING: /" >&2
26730 ;;
26731esac
26732{ echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
26733echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
26734if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
26735 echo $ECHO_N "(cached) $ECHO_C" >&6
26736else
26737 ac_cv_header_selinux_selinux_h=$ac_header_preproc
26738fi
26739{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
26740echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
26741
26742fi
26743if test $ac_cv_header_selinux_selinux_h = yes; then
26744 :
26745else
26746 { { echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5
26747echo "$as_me: error: SELinux support requires selinux.h header" >&2;}
26748 { (exit 1); exit 1; }; }
26749fi
26750
26751
26752 { echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5
26753echo $ECHO_N "checking for setexeccon in -lselinux... $ECHO_C" >&6; }
26754if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then
26755 echo $ECHO_N "(cached) $ECHO_C" >&6
26756else
26757 ac_check_lib_save_LIBS=$LIBS
26758LIBS="-lselinux $LIBS"
26759cat >conftest.$ac_ext <<_ACEOF
26760/* confdefs.h. */
26761_ACEOF
26762cat confdefs.h >>conftest.$ac_ext
26763cat >>conftest.$ac_ext <<_ACEOF
26764/* end confdefs.h. */
26765
26766/* Override any GCC internal prototype to avoid an error.
26767 Use char because int might match the return type of a GCC
26768 builtin and then its argument prototype would still apply. */
26769#ifdef __cplusplus
26770extern "C"
26771#endif
26772char setexeccon ();
26773int
26774main ()
26775{
26776return setexeccon ();
26777 ;
26778 return 0;
26779}
26780_ACEOF
26781rm -f conftest.$ac_objext conftest$ac_exeext
26782if { (ac_try="$ac_link"
26783case "(($ac_try" in
26784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26785 *) ac_try_echo=$ac_try;;
26786esac
26787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26788 (eval "$ac_link") 2>conftest.er1
26789 ac_status=$?
26790 grep -v '^ *+' conftest.er1 >conftest.err
26791 rm -f conftest.er1
26792 cat conftest.err >&5
26793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26794 (exit $ac_status); } && {
26795 test -z "$ac_c_werror_flag" ||
26796 test ! -s conftest.err
26797 } && test -s conftest$ac_exeext &&
26798 $as_test_x conftest$ac_exeext; then
26799 ac_cv_lib_selinux_setexeccon=yes
26800else
26801 echo "$as_me: failed program was:" >&5
26802sed 's/^/| /' conftest.$ac_ext >&5
26803
26804 ac_cv_lib_selinux_setexeccon=no
26805fi
26806
26807rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26808 conftest$ac_exeext conftest.$ac_ext
26809LIBS=$ac_check_lib_save_LIBS
26810fi
26811{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5
26812echo "${ECHO_T}$ac_cv_lib_selinux_setexeccon" >&6; }
26813if test $ac_cv_lib_selinux_setexeccon = yes; then
26814 LIBSELINUX="-lselinux"
26815 LIBS="$LIBS -lselinux"
26816
26817else
26818 { { echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5
26819echo "$as_me: error: SELinux support requires libselinux library" >&2;}
26820 { (exit 1); exit 1; }; }
26821fi
26822
26823 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
26824
26825
26826for ac_func in getseuserbyname get_default_context_with_level
26827do
26828as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26829{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26830echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26831if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26832 echo $ECHO_N "(cached) $ECHO_C" >&6
26833else
26834 cat >conftest.$ac_ext <<_ACEOF
26835/* confdefs.h. */
26836_ACEOF
26837cat confdefs.h >>conftest.$ac_ext
26838cat >>conftest.$ac_ext <<_ACEOF
26839/* end confdefs.h. */
26840/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26842#define $ac_func innocuous_$ac_func
26843
26844/* System header to define __stub macros and hopefully few prototypes,
26845 which can conflict with char $ac_func (); below.
26846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26847 <limits.h> exists even on freestanding compilers. */
26848
26849#ifdef __STDC__
26850# include <limits.h>
26851#else
26852# include <assert.h>
26853#endif
26854
26855#undef $ac_func
26856
26857/* Override any GCC internal prototype to avoid an error.
26858 Use char because int might match the return type of a GCC
26859 builtin and then its argument prototype would still apply. */
26860#ifdef __cplusplus
26861extern "C"
26862#endif
26863char $ac_func ();
26864/* The GNU C library defines this for functions which it implements
26865 to always fail with ENOSYS. Some functions are actually named
26866 something starting with __ and the normal name is an alias. */
26867#if defined __stub_$ac_func || defined __stub___$ac_func
26868choke me
26869#endif
26870
26871int
26872main ()
26873{
26874return $ac_func ();
26875 ;
26876 return 0;
26877}
26878_ACEOF
26879rm -f conftest.$ac_objext conftest$ac_exeext
26880if { (ac_try="$ac_link"
26881case "(($ac_try" in
26882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26883 *) ac_try_echo=$ac_try;;
26884esac
26885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26886 (eval "$ac_link") 2>conftest.er1
26887 ac_status=$?
26888 grep -v '^ *+' conftest.er1 >conftest.err
26889 rm -f conftest.er1
26890 cat conftest.err >&5
26891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26892 (exit $ac_status); } && {
26893 test -z "$ac_c_werror_flag" ||
26894 test ! -s conftest.err
26895 } && test -s conftest$ac_exeext &&
26896 $as_test_x conftest$ac_exeext; then
26897 eval "$as_ac_var=yes"
26898else
26899 echo "$as_me: failed program was:" >&5
26900sed 's/^/| /' conftest.$ac_ext >&5
26901
26902 eval "$as_ac_var=no"
26903fi
26904
26905rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26906 conftest$ac_exeext conftest.$ac_ext
26907fi
26908ac_res=`eval echo '${'$as_ac_var'}'`
26909 { echo "$as_me:$LINENO: result: $ac_res" >&5
26910echo "${ECHO_T}$ac_res" >&6; }
26911if test `eval echo '${'$as_ac_var'}'` = yes; then
26912 cat >>confdefs.h <<_ACEOF
26913#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26914_ACEOF
26915
26916fi
26917done
26918
26919 LIBS="$save_LIBS"
26920 fi
26921
26922fi
26923
26924
26925# Check whether user wants Kerberos 5 support
26926KRB5_MSG="no"
26927
26928# Check whether --with-kerberos5 was given.
26929if test "${with_kerberos5+set}" = set; then
26930 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
26931 if test "x$withval" = "xyes" ; then
26932 KRB5ROOT="/usr/local"
26933 else
26934 KRB5ROOT=${withval}
26935 fi
26936
26937
26938cat >>confdefs.h <<\_ACEOF
26939#define KRB5 1
26940_ACEOF
26941
26942 KRB5_MSG="yes"
26943
26944 # Extract the first word of "krb5-config", so it can be a program name with args.
26945set dummy krb5-config; ac_word=$2
26946{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26948if test "${ac_cv_path_KRB5CONF+set}" = set; then
26949 echo $ECHO_N "(cached) $ECHO_C" >&6
26950else
26951 case $KRB5CONF in
26952 [\\/]* | ?:[\\/]*)
26953 ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path.
26954 ;;
26955 *)
26956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26957as_dummy="$KRB5ROOT/bin:$PATH"
26958for as_dir in $as_dummy
26959do
26960 IFS=$as_save_IFS
26961 test -z "$as_dir" && as_dir=.
26962 for ac_exec_ext in '' $ac_executable_extensions; do
26963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26964 ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
26965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26966 break 2
26967 fi
26968done
26969done
26970IFS=$as_save_IFS
26971
26972 test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config"
26973 ;;
26974esac
26975fi
26976KRB5CONF=$ac_cv_path_KRB5CONF
26977if test -n "$KRB5CONF"; then
26978 { echo "$as_me:$LINENO: result: $KRB5CONF" >&5
26979echo "${ECHO_T}$KRB5CONF" >&6; }
26980else
26981 { echo "$as_me:$LINENO: result: no" >&5
26982echo "${ECHO_T}no" >&6; }
26983fi
26984
26985
26986 if test -x $KRB5CONF ; then
26987
26988 { echo "$as_me:$LINENO: checking for gssapi support" >&5
26989echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6; }
26990 if $KRB5CONF | grep gssapi >/dev/null ; then
26991 { echo "$as_me:$LINENO: result: yes" >&5
26992echo "${ECHO_T}yes" >&6; }
26993
26994cat >>confdefs.h <<\_ACEOF
26995#define GSSAPI 1
26996_ACEOF
26997
26998 k5confopts=gssapi
26999 else
27000 { echo "$as_me:$LINENO: result: no" >&5
27001echo "${ECHO_T}no" >&6; }
27002 k5confopts=""
27003 fi
27004 K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
27005 K5LIBS="`$KRB5CONF --libs $k5confopts`"
27006 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
27007 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
27008echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
27009 cat >conftest.$ac_ext <<_ACEOF
27010/* confdefs.h. */
27011_ACEOF
27012cat confdefs.h >>conftest.$ac_ext
27013cat >>conftest.$ac_ext <<_ACEOF
27014/* end confdefs.h. */
27015 #include <krb5.h>
27016int
27017main ()
27018{
27019 char *tmp = heimdal_version;
27020 ;
27021 return 0;
27022}
27023_ACEOF
27024rm -f conftest.$ac_objext
27025if { (ac_try="$ac_compile"
27026case "(($ac_try" in
27027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27028 *) ac_try_echo=$ac_try;;
27029esac
27030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27031 (eval "$ac_compile") 2>conftest.er1
27032 ac_status=$?
27033 grep -v '^ *+' conftest.er1 >conftest.err
27034 rm -f conftest.er1
27035 cat conftest.err >&5
27036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27037 (exit $ac_status); } && {
27038 test -z "$ac_c_werror_flag" ||
27039 test ! -s conftest.err
27040 } && test -s conftest.$ac_objext; then
27041 { echo "$as_me:$LINENO: result: yes" >&5
27042echo "${ECHO_T}yes" >&6; }
27043
27044cat >>confdefs.h <<\_ACEOF
27045#define HEIMDAL 1
27046_ACEOF
27047
27048else
27049 echo "$as_me: failed program was:" >&5
27050sed 's/^/| /' conftest.$ac_ext >&5
27051
27052 { echo "$as_me:$LINENO: result: no" >&5
27053echo "${ECHO_T}no" >&6; }
27054
27055fi
27056
27057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27058 else
27059 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
27060 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
27061 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
27062echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
27063 cat >conftest.$ac_ext <<_ACEOF
27064/* confdefs.h. */
27065_ACEOF
27066cat confdefs.h >>conftest.$ac_ext
27067cat >>conftest.$ac_ext <<_ACEOF
27068/* end confdefs.h. */
27069 #include <krb5.h>
27070int
27071main ()
27072{
27073 char *tmp = heimdal_version;
27074 ;
27075 return 0;
27076}
27077_ACEOF
27078rm -f conftest.$ac_objext
27079if { (ac_try="$ac_compile"
27080case "(($ac_try" in
27081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27082 *) ac_try_echo=$ac_try;;
27083esac
27084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27085 (eval "$ac_compile") 2>conftest.er1
27086 ac_status=$?
27087 grep -v '^ *+' conftest.er1 >conftest.err
27088 rm -f conftest.er1
27089 cat conftest.err >&5
27090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091 (exit $ac_status); } && {
27092 test -z "$ac_c_werror_flag" ||
27093 test ! -s conftest.err
27094 } && test -s conftest.$ac_objext; then
27095 { echo "$as_me:$LINENO: result: yes" >&5
27096echo "${ECHO_T}yes" >&6; }
27097 cat >>confdefs.h <<\_ACEOF
27098#define HEIMDAL 1
27099_ACEOF
27100
27101 K5LIBS="-lkrb5 -ldes"
27102 K5LIBS="$K5LIBS -lcom_err -lasn1"
27103 { echo "$as_me:$LINENO: checking for net_write in -lroken" >&5
27104echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6; }
27105if test "${ac_cv_lib_roken_net_write+set}" = set; then
27106 echo $ECHO_N "(cached) $ECHO_C" >&6
27107else
27108 ac_check_lib_save_LIBS=$LIBS
27109LIBS="-lroken $LIBS"
27110cat >conftest.$ac_ext <<_ACEOF
27111/* confdefs.h. */
27112_ACEOF
27113cat confdefs.h >>conftest.$ac_ext
27114cat >>conftest.$ac_ext <<_ACEOF
27115/* end confdefs.h. */
27116
27117/* Override any GCC internal prototype to avoid an error.
27118 Use char because int might match the return type of a GCC
27119 builtin and then its argument prototype would still apply. */
27120#ifdef __cplusplus
27121extern "C"
27122#endif
27123char net_write ();
27124int
27125main ()
27126{
27127return net_write ();
27128 ;
27129 return 0;
27130}
27131_ACEOF
27132rm -f conftest.$ac_objext conftest$ac_exeext
27133if { (ac_try="$ac_link"
27134case "(($ac_try" in
27135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27136 *) ac_try_echo=$ac_try;;
27137esac
27138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27139 (eval "$ac_link") 2>conftest.er1
27140 ac_status=$?
27141 grep -v '^ *+' conftest.er1 >conftest.err
27142 rm -f conftest.er1
27143 cat conftest.err >&5
27144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27145 (exit $ac_status); } && {
27146 test -z "$ac_c_werror_flag" ||
27147 test ! -s conftest.err
27148 } && test -s conftest$ac_exeext &&
27149 $as_test_x conftest$ac_exeext; then
27150 ac_cv_lib_roken_net_write=yes
27151else
27152 echo "$as_me: failed program was:" >&5
27153sed 's/^/| /' conftest.$ac_ext >&5
27154
27155 ac_cv_lib_roken_net_write=no
27156fi
27157
27158rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27159 conftest$ac_exeext conftest.$ac_ext
27160LIBS=$ac_check_lib_save_LIBS
27161fi
27162{ echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5
27163echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6; }
27164if test $ac_cv_lib_roken_net_write = yes; then
27165 K5LIBS="$K5LIBS -lroken"
27166fi
27167
27168
27169else
27170 echo "$as_me: failed program was:" >&5
27171sed 's/^/| /' conftest.$ac_ext >&5
27172
27173 { echo "$as_me:$LINENO: result: no" >&5
27174echo "${ECHO_T}no" >&6; }
27175 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
27176
27177
27178fi
27179
27180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27181 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
27182echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
27183if test "${ac_cv_search_dn_expand+set}" = set; then
27184 echo $ECHO_N "(cached) $ECHO_C" >&6
27185else
27186 ac_func_search_save_LIBS=$LIBS
27187cat >conftest.$ac_ext <<_ACEOF
27188/* confdefs.h. */
27189_ACEOF
27190cat confdefs.h >>conftest.$ac_ext
27191cat >>conftest.$ac_ext <<_ACEOF
27192/* end confdefs.h. */
27193
27194/* Override any GCC internal prototype to avoid an error.
27195 Use char because int might match the return type of a GCC
27196 builtin and then its argument prototype would still apply. */
27197#ifdef __cplusplus
27198extern "C"
27199#endif
27200char dn_expand ();
27201int
27202main ()
27203{
27204return dn_expand ();
27205 ;
27206 return 0;
27207}
27208_ACEOF
27209for ac_lib in '' resolv; do
27210 if test -z "$ac_lib"; then
27211 ac_res="none required"
27212 else
27213 ac_res=-l$ac_lib
27214 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27215 fi
27216 rm -f conftest.$ac_objext conftest$ac_exeext
27217if { (ac_try="$ac_link"
27218case "(($ac_try" in
27219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27220 *) ac_try_echo=$ac_try;;
27221esac
27222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27223 (eval "$ac_link") 2>conftest.er1
27224 ac_status=$?
27225 grep -v '^ *+' conftest.er1 >conftest.err
27226 rm -f conftest.er1
27227 cat conftest.err >&5
27228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27229 (exit $ac_status); } && {
27230 test -z "$ac_c_werror_flag" ||
27231 test ! -s conftest.err
27232 } && test -s conftest$ac_exeext &&
27233 $as_test_x conftest$ac_exeext; then
27234 ac_cv_search_dn_expand=$ac_res
27235else
27236 echo "$as_me: failed program was:" >&5
27237sed 's/^/| /' conftest.$ac_ext >&5
27238
27239
27240fi
27241
27242rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27243 conftest$ac_exeext
27244 if test "${ac_cv_search_dn_expand+set}" = set; then
27245 break
27246fi
27247done
27248if test "${ac_cv_search_dn_expand+set}" = set; then
27249 :
27250else
27251 ac_cv_search_dn_expand=no
27252fi
27253rm conftest.$ac_ext
27254LIBS=$ac_func_search_save_LIBS
27255fi
27256{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
27257echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
27258ac_res=$ac_cv_search_dn_expand
27259if test "$ac_res" != no; then
27260 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27261
27262fi
27263
27264
27265 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
27266echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; }
27267if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
27268 echo $ECHO_N "(cached) $ECHO_C" >&6
27269else
27270 ac_check_lib_save_LIBS=$LIBS
27271LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
27272cat >conftest.$ac_ext <<_ACEOF
27273/* confdefs.h. */
27274_ACEOF
27275cat confdefs.h >>conftest.$ac_ext
27276cat >>conftest.$ac_ext <<_ACEOF
27277/* end confdefs.h. */
27278
27279/* Override any GCC internal prototype to avoid an error.
27280 Use char because int might match the return type of a GCC
27281 builtin and then its argument prototype would still apply. */
27282#ifdef __cplusplus
27283extern "C"
27284#endif
27285char gss_init_sec_context ();
27286int
27287main ()
27288{
27289return gss_init_sec_context ();
27290 ;
27291 return 0;
27292}
27293_ACEOF
27294rm -f conftest.$ac_objext conftest$ac_exeext
27295if { (ac_try="$ac_link"
27296case "(($ac_try" in
27297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27298 *) ac_try_echo=$ac_try;;
27299esac
27300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27301 (eval "$ac_link") 2>conftest.er1
27302 ac_status=$?
27303 grep -v '^ *+' conftest.er1 >conftest.err
27304 rm -f conftest.er1
27305 cat conftest.err >&5
27306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27307 (exit $ac_status); } && {
27308 test -z "$ac_c_werror_flag" ||
27309 test ! -s conftest.err
27310 } && test -s conftest$ac_exeext &&
27311 $as_test_x conftest$ac_exeext; then
27312 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
27313else
27314 echo "$as_me: failed program was:" >&5
27315sed 's/^/| /' conftest.$ac_ext >&5
27316
27317 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
27318fi
27319
27320rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27321 conftest$ac_exeext conftest.$ac_ext
27322LIBS=$ac_check_lib_save_LIBS
27323fi
27324{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
27325echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
27326if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
27327 cat >>confdefs.h <<\_ACEOF
27328#define GSSAPI 1
27329_ACEOF
27330
27331 K5LIBS="-lgssapi_krb5 $K5LIBS"
27332else
27333 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
27334echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; }
27335if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
27336 echo $ECHO_N "(cached) $ECHO_C" >&6
27337else
27338 ac_check_lib_save_LIBS=$LIBS
27339LIBS="-lgssapi $K5LIBS $LIBS"
27340cat >conftest.$ac_ext <<_ACEOF
27341/* confdefs.h. */
27342_ACEOF
27343cat confdefs.h >>conftest.$ac_ext
27344cat >>conftest.$ac_ext <<_ACEOF
27345/* end confdefs.h. */
27346
27347/* Override any GCC internal prototype to avoid an error.
27348 Use char because int might match the return type of a GCC
27349 builtin and then its argument prototype would still apply. */
27350#ifdef __cplusplus
27351extern "C"
27352#endif
27353char gss_init_sec_context ();
27354int
27355main ()
27356{
27357return gss_init_sec_context ();
27358 ;
27359 return 0;
27360}
27361_ACEOF
27362rm -f conftest.$ac_objext conftest$ac_exeext
27363if { (ac_try="$ac_link"
27364case "(($ac_try" in
27365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27366 *) ac_try_echo=$ac_try;;
27367esac
27368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27369 (eval "$ac_link") 2>conftest.er1
27370 ac_status=$?
27371 grep -v '^ *+' conftest.er1 >conftest.err
27372 rm -f conftest.er1
27373 cat conftest.err >&5
27374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27375 (exit $ac_status); } && {
27376 test -z "$ac_c_werror_flag" ||
27377 test ! -s conftest.err
27378 } && test -s conftest$ac_exeext &&
27379 $as_test_x conftest$ac_exeext; then
27380 ac_cv_lib_gssapi_gss_init_sec_context=yes
27381else
27382 echo "$as_me: failed program was:" >&5
27383sed 's/^/| /' conftest.$ac_ext >&5
27384
27385 ac_cv_lib_gssapi_gss_init_sec_context=no
27386fi
27387
27388rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27389 conftest$ac_exeext conftest.$ac_ext
27390LIBS=$ac_check_lib_save_LIBS
27391fi
27392{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
27393echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
27394if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
27395 cat >>confdefs.h <<\_ACEOF
27396#define GSSAPI 1
27397_ACEOF
27398
27399 K5LIBS="-lgssapi $K5LIBS"
27400else
27401 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
27402echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
27403fi
27404
27405
27406fi
27407
27408
27409 if test "${ac_cv_header_gssapi_h+set}" = set; then
27410 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
27411echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
27412if test "${ac_cv_header_gssapi_h+set}" = set; then
27413 echo $ECHO_N "(cached) $ECHO_C" >&6
27414fi
27415{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
27416echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
27417else
27418 # Is the header compilable?
27419{ echo "$as_me:$LINENO: checking gssapi.h usability" >&5
27420echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; }
27421cat >conftest.$ac_ext <<_ACEOF
27422/* confdefs.h. */
27423_ACEOF
27424cat confdefs.h >>conftest.$ac_ext
27425cat >>conftest.$ac_ext <<_ACEOF
27426/* end confdefs.h. */
27427$ac_includes_default
27428#include <gssapi.h>
27429_ACEOF
27430rm -f conftest.$ac_objext
27431if { (ac_try="$ac_compile"
27432case "(($ac_try" in
27433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27434 *) ac_try_echo=$ac_try;;
27435esac
27436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27437 (eval "$ac_compile") 2>conftest.er1
27438 ac_status=$?
27439 grep -v '^ *+' conftest.er1 >conftest.err
27440 rm -f conftest.er1
27441 cat conftest.err >&5
27442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27443 (exit $ac_status); } && {
27444 test -z "$ac_c_werror_flag" ||
27445 test ! -s conftest.err
27446 } && test -s conftest.$ac_objext; then
27447 ac_header_compiler=yes
27448else
27449 echo "$as_me: failed program was:" >&5
27450sed 's/^/| /' conftest.$ac_ext >&5
27451
27452 ac_header_compiler=no
27453fi
27454
27455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27456{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27457echo "${ECHO_T}$ac_header_compiler" >&6; }
27458
27459# Is the header present?
27460{ echo "$as_me:$LINENO: checking gssapi.h presence" >&5
27461echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; }
27462cat >conftest.$ac_ext <<_ACEOF
27463/* confdefs.h. */
27464_ACEOF
27465cat confdefs.h >>conftest.$ac_ext
27466cat >>conftest.$ac_ext <<_ACEOF
27467/* end confdefs.h. */
27468#include <gssapi.h>
27469_ACEOF
27470if { (ac_try="$ac_cpp conftest.$ac_ext"
27471case "(($ac_try" in
27472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27473 *) ac_try_echo=$ac_try;;
27474esac
27475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27477 ac_status=$?
27478 grep -v '^ *+' conftest.er1 >conftest.err
27479 rm -f conftest.er1
27480 cat conftest.err >&5
27481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27482 (exit $ac_status); } >/dev/null && {
27483 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27484 test ! -s conftest.err
27485 }; then
27486 ac_header_preproc=yes
27487else
27488 echo "$as_me: failed program was:" >&5
27489sed 's/^/| /' conftest.$ac_ext >&5
27490
27491 ac_header_preproc=no
27492fi
27493
27494rm -f conftest.err conftest.$ac_ext
27495{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27496echo "${ECHO_T}$ac_header_preproc" >&6; }
27497
27498# So? What about this header?
27499case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27500 yes:no: )
27501 { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
27502echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27503 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
27504echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
27505 ac_header_preproc=yes
27506 ;;
27507 no:yes:* )
27508 { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
27509echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
27510 { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5
27511echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;}
27512 { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
27513echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
27514 { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5
27515echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
27516 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
27517echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
27518 { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
27519echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
27520 ( cat <<\_ASBOX
27521## ------------------------------------------- ##
27522## Report this to openssh-unix-dev@mindrot.org ##
27523## ------------------------------------------- ##
27524_ASBOX
27525 ) | sed "s/^/$as_me: WARNING: /" >&2
27526 ;;
27527esac
27528{ echo "$as_me:$LINENO: checking for gssapi.h" >&5
27529echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
27530if test "${ac_cv_header_gssapi_h+set}" = set; then
27531 echo $ECHO_N "(cached) $ECHO_C" >&6
27532else
27533 ac_cv_header_gssapi_h=$ac_header_preproc
27534fi
27535{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
27536echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
27537
27538fi
27539if test $ac_cv_header_gssapi_h = yes; then
27540 :
27541else
27542 unset ac_cv_header_gssapi_h
27543 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
27544
27545for ac_header in gssapi.h
27546do
27547as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27548if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27549 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27550echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27551if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27552 echo $ECHO_N "(cached) $ECHO_C" >&6
27553fi
27554ac_res=`eval echo '${'$as_ac_Header'}'`
27555 { echo "$as_me:$LINENO: result: $ac_res" >&5
27556echo "${ECHO_T}$ac_res" >&6; }
27557else
27558 # Is the header compilable?
27559{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27560echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27561cat >conftest.$ac_ext <<_ACEOF
27562/* confdefs.h. */
27563_ACEOF
27564cat confdefs.h >>conftest.$ac_ext
27565cat >>conftest.$ac_ext <<_ACEOF
27566/* end confdefs.h. */
27567$ac_includes_default
27568#include <$ac_header>
27569_ACEOF
27570rm -f conftest.$ac_objext
27571if { (ac_try="$ac_compile"
27572case "(($ac_try" in
27573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27574 *) ac_try_echo=$ac_try;;
27575esac
27576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27577 (eval "$ac_compile") 2>conftest.er1
27578 ac_status=$?
27579 grep -v '^ *+' conftest.er1 >conftest.err
27580 rm -f conftest.er1
27581 cat conftest.err >&5
27582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27583 (exit $ac_status); } && {
27584 test -z "$ac_c_werror_flag" ||
27585 test ! -s conftest.err
27586 } && test -s conftest.$ac_objext; then
27587 ac_header_compiler=yes
27588else
27589 echo "$as_me: failed program was:" >&5
27590sed 's/^/| /' conftest.$ac_ext >&5
27591
27592 ac_header_compiler=no
27593fi
27594
27595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27596{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27597echo "${ECHO_T}$ac_header_compiler" >&6; }
27598
27599# Is the header present?
27600{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27601echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27602cat >conftest.$ac_ext <<_ACEOF
27603/* confdefs.h. */
27604_ACEOF
27605cat confdefs.h >>conftest.$ac_ext
27606cat >>conftest.$ac_ext <<_ACEOF
27607/* end confdefs.h. */
27608#include <$ac_header>
27609_ACEOF
27610if { (ac_try="$ac_cpp conftest.$ac_ext"
27611case "(($ac_try" in
27612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27613 *) ac_try_echo=$ac_try;;
27614esac
27615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27617 ac_status=$?
27618 grep -v '^ *+' conftest.er1 >conftest.err
27619 rm -f conftest.er1
27620 cat conftest.err >&5
27621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27622 (exit $ac_status); } >/dev/null && {
27623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27624 test ! -s conftest.err
27625 }; then
27626 ac_header_preproc=yes
27627else
27628 echo "$as_me: failed program was:" >&5
27629sed 's/^/| /' conftest.$ac_ext >&5
27630
27631 ac_header_preproc=no
27632fi
27633
27634rm -f conftest.err conftest.$ac_ext
27635{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27636echo "${ECHO_T}$ac_header_preproc" >&6; }
27637
27638# So? What about this header?
27639case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27640 yes:no: )
27641 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27642echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27644echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27645 ac_header_preproc=yes
27646 ;;
27647 no:yes:* )
27648 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27649echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27650 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27651echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27652 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27653echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27654 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27655echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27657echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27658 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27659echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27660 ( cat <<\_ASBOX
27661## ------------------------------------------- ##
27662## Report this to openssh-unix-dev@mindrot.org ##
27663## ------------------------------------------- ##
27664_ASBOX
27665 ) | sed "s/^/$as_me: WARNING: /" >&2
27666 ;;
27667esac
27668{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27671 echo $ECHO_N "(cached) $ECHO_C" >&6
27672else
27673 eval "$as_ac_Header=\$ac_header_preproc"
27674fi
27675ac_res=`eval echo '${'$as_ac_Header'}'`
27676 { echo "$as_me:$LINENO: result: $ac_res" >&5
27677echo "${ECHO_T}$ac_res" >&6; }
27678
27679fi
27680if test `eval echo '${'$as_ac_Header'}'` = yes; then
27681 cat >>confdefs.h <<_ACEOF
27682#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27683_ACEOF
27684
27685else
27686 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
27687echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
27688
27689fi
27690
27691done
27692
27693
27694
27695fi
27696
27697
27698
27699 oldCPP="$CPPFLAGS"
27700 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
27701 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
27702 { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
27703echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
27704if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
27705 echo $ECHO_N "(cached) $ECHO_C" >&6
27706fi
27707{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
27708echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
27709else
27710 # Is the header compilable?
27711{ echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5
27712echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6; }
27713cat >conftest.$ac_ext <<_ACEOF
27714/* confdefs.h. */
27715_ACEOF
27716cat confdefs.h >>conftest.$ac_ext
27717cat >>conftest.$ac_ext <<_ACEOF
27718/* end confdefs.h. */
27719$ac_includes_default
27720#include <gssapi_krb5.h>
27721_ACEOF
27722rm -f conftest.$ac_objext
27723if { (ac_try="$ac_compile"
27724case "(($ac_try" in
27725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27726 *) ac_try_echo=$ac_try;;
27727esac
27728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27729 (eval "$ac_compile") 2>conftest.er1
27730 ac_status=$?
27731 grep -v '^ *+' conftest.er1 >conftest.err
27732 rm -f conftest.er1
27733 cat conftest.err >&5
27734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735 (exit $ac_status); } && {
27736 test -z "$ac_c_werror_flag" ||
27737 test ! -s conftest.err
27738 } && test -s conftest.$ac_objext; then
27739 ac_header_compiler=yes
27740else
27741 echo "$as_me: failed program was:" >&5
27742sed 's/^/| /' conftest.$ac_ext >&5
27743
27744 ac_header_compiler=no
27745fi
27746
27747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27748{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27749echo "${ECHO_T}$ac_header_compiler" >&6; }
27750
27751# Is the header present?
27752{ echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5
27753echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6; }
27754cat >conftest.$ac_ext <<_ACEOF
27755/* confdefs.h. */
27756_ACEOF
27757cat confdefs.h >>conftest.$ac_ext
27758cat >>conftest.$ac_ext <<_ACEOF
27759/* end confdefs.h. */
27760#include <gssapi_krb5.h>
27761_ACEOF
27762if { (ac_try="$ac_cpp conftest.$ac_ext"
27763case "(($ac_try" in
27764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27765 *) ac_try_echo=$ac_try;;
27766esac
27767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27769 ac_status=$?
27770 grep -v '^ *+' conftest.er1 >conftest.err
27771 rm -f conftest.er1
27772 cat conftest.err >&5
27773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27774 (exit $ac_status); } >/dev/null && {
27775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27776 test ! -s conftest.err
27777 }; then
27778 ac_header_preproc=yes
27779else
27780 echo "$as_me: failed program was:" >&5
27781sed 's/^/| /' conftest.$ac_ext >&5
27782
27783 ac_header_preproc=no
27784fi
27785
27786rm -f conftest.err conftest.$ac_ext
27787{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27788echo "${ECHO_T}$ac_header_preproc" >&6; }
27789
27790# So? What about this header?
27791case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27792 yes:no: )
27793 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
27794echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27795 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5
27796echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;}
27797 ac_header_preproc=yes
27798 ;;
27799 no:yes:* )
27800 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5
27801echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;}
27802 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5
27803echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;}
27804 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5
27805echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;}
27806 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5
27807echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
27808 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5
27809echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;}
27810 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5
27811echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;}
27812 ( cat <<\_ASBOX
27813## ------------------------------------------- ##
27814## Report this to openssh-unix-dev@mindrot.org ##
27815## ------------------------------------------- ##
27816_ASBOX
27817 ) | sed "s/^/$as_me: WARNING: /" >&2
27818 ;;
27819esac
27820{ echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
27821echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
27822if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
27823 echo $ECHO_N "(cached) $ECHO_C" >&6
27824else
27825 ac_cv_header_gssapi_krb5_h=$ac_header_preproc
27826fi
27827{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
27828echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
27829
27830fi
27831if test $ac_cv_header_gssapi_krb5_h = yes; then
27832 :
27833else
27834 CPPFLAGS="$oldCPP"
27835fi
27836
27837
27838
27839 fi
27840 if test ! -z "$need_dash_r" ; then
27841 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
27842 fi
27843 if test ! -z "$blibpath" ; then
27844 blibpath="$blibpath:${KRB5ROOT}/lib"
27845 fi
27846
27847
27848
27849for ac_header in gssapi.h gssapi/gssapi.h
27850do
27851as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27852if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27854echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27855if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27856 echo $ECHO_N "(cached) $ECHO_C" >&6
27857fi
27858ac_res=`eval echo '${'$as_ac_Header'}'`
27859 { echo "$as_me:$LINENO: result: $ac_res" >&5
27860echo "${ECHO_T}$ac_res" >&6; }
27861else
27862 # Is the header compilable?
27863{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27864echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27865cat >conftest.$ac_ext <<_ACEOF
27866/* confdefs.h. */
27867_ACEOF
27868cat confdefs.h >>conftest.$ac_ext
27869cat >>conftest.$ac_ext <<_ACEOF
27870/* end confdefs.h. */
27871$ac_includes_default
27872#include <$ac_header>
27873_ACEOF
27874rm -f conftest.$ac_objext
27875if { (ac_try="$ac_compile"
27876case "(($ac_try" in
27877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27878 *) ac_try_echo=$ac_try;;
27879esac
27880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27881 (eval "$ac_compile") 2>conftest.er1
27882 ac_status=$?
27883 grep -v '^ *+' conftest.er1 >conftest.err
27884 rm -f conftest.er1
27885 cat conftest.err >&5
27886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887 (exit $ac_status); } && {
27888 test -z "$ac_c_werror_flag" ||
27889 test ! -s conftest.err
27890 } && test -s conftest.$ac_objext; then
27891 ac_header_compiler=yes
27892else
27893 echo "$as_me: failed program was:" >&5
27894sed 's/^/| /' conftest.$ac_ext >&5
27895
27896 ac_header_compiler=no
27897fi
27898
27899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27900{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27901echo "${ECHO_T}$ac_header_compiler" >&6; }
27902
27903# Is the header present?
27904{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27905echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27906cat >conftest.$ac_ext <<_ACEOF
27907/* confdefs.h. */
27908_ACEOF
27909cat confdefs.h >>conftest.$ac_ext
27910cat >>conftest.$ac_ext <<_ACEOF
27911/* end confdefs.h. */
27912#include <$ac_header>
27913_ACEOF
27914if { (ac_try="$ac_cpp conftest.$ac_ext"
27915case "(($ac_try" in
27916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27917 *) ac_try_echo=$ac_try;;
27918esac
27919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27921 ac_status=$?
27922 grep -v '^ *+' conftest.er1 >conftest.err
27923 rm -f conftest.er1
27924 cat conftest.err >&5
27925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27926 (exit $ac_status); } >/dev/null && {
27927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27928 test ! -s conftest.err
27929 }; then
27930 ac_header_preproc=yes
27931else
27932 echo "$as_me: failed program was:" >&5
27933sed 's/^/| /' conftest.$ac_ext >&5
27934
27935 ac_header_preproc=no
27936fi
27937
27938rm -f conftest.err conftest.$ac_ext
27939{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27940echo "${ECHO_T}$ac_header_preproc" >&6; }
27941
27942# So? What about this header?
27943case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27944 yes:no: )
27945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27946echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27948echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27949 ac_header_preproc=yes
27950 ;;
27951 no:yes:* )
27952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27953echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27955echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27957echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27959echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27961echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27963echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27964 ( cat <<\_ASBOX
27965## ------------------------------------------- ##
27966## Report this to openssh-unix-dev@mindrot.org ##
27967## ------------------------------------------- ##
27968_ASBOX
27969 ) | sed "s/^/$as_me: WARNING: /" >&2
27970 ;;
27971esac
27972{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27975 echo $ECHO_N "(cached) $ECHO_C" >&6
27976else
27977 eval "$as_ac_Header=\$ac_header_preproc"
27978fi
27979ac_res=`eval echo '${'$as_ac_Header'}'`
27980 { echo "$as_me:$LINENO: result: $ac_res" >&5
27981echo "${ECHO_T}$ac_res" >&6; }
27982
27983fi
27984if test `eval echo '${'$as_ac_Header'}'` = yes; then
27985 cat >>confdefs.h <<_ACEOF
27986#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27987_ACEOF
27988
27989fi
27990
27991done
27992
27993
27994
27995for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
27996do
27997as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27998if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27999 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28000echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28001if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28002 echo $ECHO_N "(cached) $ECHO_C" >&6
28003fi
28004ac_res=`eval echo '${'$as_ac_Header'}'`
28005 { echo "$as_me:$LINENO: result: $ac_res" >&5
28006echo "${ECHO_T}$ac_res" >&6; }
28007else
28008 # Is the header compilable?
28009{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28010echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28011cat >conftest.$ac_ext <<_ACEOF
28012/* confdefs.h. */
28013_ACEOF
28014cat confdefs.h >>conftest.$ac_ext
28015cat >>conftest.$ac_ext <<_ACEOF
28016/* end confdefs.h. */
28017$ac_includes_default
28018#include <$ac_header>
28019_ACEOF
28020rm -f conftest.$ac_objext
28021if { (ac_try="$ac_compile"
28022case "(($ac_try" in
28023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28024 *) ac_try_echo=$ac_try;;
28025esac
28026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28027 (eval "$ac_compile") 2>conftest.er1
28028 ac_status=$?
28029 grep -v '^ *+' conftest.er1 >conftest.err
28030 rm -f conftest.er1
28031 cat conftest.err >&5
28032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28033 (exit $ac_status); } && {
28034 test -z "$ac_c_werror_flag" ||
28035 test ! -s conftest.err
28036 } && test -s conftest.$ac_objext; then
28037 ac_header_compiler=yes
28038else
28039 echo "$as_me: failed program was:" >&5
28040sed 's/^/| /' conftest.$ac_ext >&5
28041
28042 ac_header_compiler=no
28043fi
28044
28045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28046{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28047echo "${ECHO_T}$ac_header_compiler" >&6; }
28048
28049# Is the header present?
28050{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28051echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28052cat >conftest.$ac_ext <<_ACEOF
28053/* confdefs.h. */
28054_ACEOF
28055cat confdefs.h >>conftest.$ac_ext
28056cat >>conftest.$ac_ext <<_ACEOF
28057/* end confdefs.h. */
28058#include <$ac_header>
28059_ACEOF
28060if { (ac_try="$ac_cpp conftest.$ac_ext"
28061case "(($ac_try" in
28062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28063 *) ac_try_echo=$ac_try;;
28064esac
28065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28067 ac_status=$?
28068 grep -v '^ *+' conftest.er1 >conftest.err
28069 rm -f conftest.er1
28070 cat conftest.err >&5
28071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072 (exit $ac_status); } >/dev/null && {
28073 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28074 test ! -s conftest.err
28075 }; then
28076 ac_header_preproc=yes
28077else
28078 echo "$as_me: failed program was:" >&5
28079sed 's/^/| /' conftest.$ac_ext >&5
28080
28081 ac_header_preproc=no
28082fi
28083
28084rm -f conftest.err conftest.$ac_ext
28085{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28086echo "${ECHO_T}$ac_header_preproc" >&6; }
28087
28088# So? What about this header?
28089case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28090 yes:no: )
28091 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28092echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28094echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28095 ac_header_preproc=yes
28096 ;;
28097 no:yes:* )
28098 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28099echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28100 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28101echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28102 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28103echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28104 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28105echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28107echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28108 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28109echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28110 ( cat <<\_ASBOX
28111## ------------------------------------------- ##
28112## Report this to openssh-unix-dev@mindrot.org ##
28113## ------------------------------------------- ##
28114_ASBOX
28115 ) | sed "s/^/$as_me: WARNING: /" >&2
28116 ;;
28117esac
28118{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28119echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28120if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28121 echo $ECHO_N "(cached) $ECHO_C" >&6
28122else
28123 eval "$as_ac_Header=\$ac_header_preproc"
28124fi
28125ac_res=`eval echo '${'$as_ac_Header'}'`
28126 { echo "$as_me:$LINENO: result: $ac_res" >&5
28127echo "${ECHO_T}$ac_res" >&6; }
28128
28129fi
28130if test `eval echo '${'$as_ac_Header'}'` = yes; then
28131 cat >>confdefs.h <<_ACEOF
28132#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28133_ACEOF
28134
28135fi
28136
28137done
28138
28139
28140
28141for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
28142do
28143as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28144if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28147if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28148 echo $ECHO_N "(cached) $ECHO_C" >&6
28149fi
28150ac_res=`eval echo '${'$as_ac_Header'}'`
28151 { echo "$as_me:$LINENO: result: $ac_res" >&5
28152echo "${ECHO_T}$ac_res" >&6; }
28153else
28154 # Is the header compilable?
28155{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28156echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28157cat >conftest.$ac_ext <<_ACEOF
28158/* confdefs.h. */
28159_ACEOF
28160cat confdefs.h >>conftest.$ac_ext
28161cat >>conftest.$ac_ext <<_ACEOF
28162/* end confdefs.h. */
28163$ac_includes_default
28164#include <$ac_header>
28165_ACEOF
28166rm -f conftest.$ac_objext
28167if { (ac_try="$ac_compile"
28168case "(($ac_try" in
28169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28170 *) ac_try_echo=$ac_try;;
28171esac
28172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28173 (eval "$ac_compile") 2>conftest.er1
28174 ac_status=$?
28175 grep -v '^ *+' conftest.er1 >conftest.err
28176 rm -f conftest.er1
28177 cat conftest.err >&5
28178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28179 (exit $ac_status); } && {
28180 test -z "$ac_c_werror_flag" ||
28181 test ! -s conftest.err
28182 } && test -s conftest.$ac_objext; then
28183 ac_header_compiler=yes
28184else
28185 echo "$as_me: failed program was:" >&5
28186sed 's/^/| /' conftest.$ac_ext >&5
28187
28188 ac_header_compiler=no
28189fi
28190
28191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28192{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28193echo "${ECHO_T}$ac_header_compiler" >&6; }
28194
28195# Is the header present?
28196{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28197echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28198cat >conftest.$ac_ext <<_ACEOF
28199/* confdefs.h. */
28200_ACEOF
28201cat confdefs.h >>conftest.$ac_ext
28202cat >>conftest.$ac_ext <<_ACEOF
28203/* end confdefs.h. */
28204#include <$ac_header>
28205_ACEOF
28206if { (ac_try="$ac_cpp conftest.$ac_ext"
28207case "(($ac_try" in
28208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28209 *) ac_try_echo=$ac_try;;
28210esac
28211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28213 ac_status=$?
28214 grep -v '^ *+' conftest.er1 >conftest.err
28215 rm -f conftest.er1
28216 cat conftest.err >&5
28217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28218 (exit $ac_status); } >/dev/null && {
28219 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28220 test ! -s conftest.err
28221 }; then
28222 ac_header_preproc=yes
28223else
28224 echo "$as_me: failed program was:" >&5
28225sed 's/^/| /' conftest.$ac_ext >&5
28226
28227 ac_header_preproc=no
28228fi
28229
28230rm -f conftest.err conftest.$ac_ext
28231{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28232echo "${ECHO_T}$ac_header_preproc" >&6; }
28233
28234# So? What about this header?
28235case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28236 yes:no: )
28237 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28238echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28240echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28241 ac_header_preproc=yes
28242 ;;
28243 no:yes:* )
28244 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28245echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28246 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28247echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28248 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28249echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28250 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28251echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28253echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28254 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28255echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28256 ( cat <<\_ASBOX
28257## ------------------------------------------- ##
28258## Report this to openssh-unix-dev@mindrot.org ##
28259## ------------------------------------------- ##
28260_ASBOX
28261 ) | sed "s/^/$as_me: WARNING: /" >&2
28262 ;;
28263esac
28264{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28265echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28266if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28267 echo $ECHO_N "(cached) $ECHO_C" >&6
28268else
28269 eval "$as_ac_Header=\$ac_header_preproc"
28270fi
28271ac_res=`eval echo '${'$as_ac_Header'}'`
28272 { echo "$as_me:$LINENO: result: $ac_res" >&5
28273echo "${ECHO_T}$ac_res" >&6; }
28274
28275fi
28276if test `eval echo '${'$as_ac_Header'}'` = yes; then
28277 cat >>confdefs.h <<_ACEOF
28278#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28279_ACEOF
28280
28281fi
28282
28283done
28284
28285
28286 LIBS="$LIBS $K5LIBS"
28287 { echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5
28288echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6; }
28289if test "${ac_cv_search_k_hasafs+set}" = set; then
28290 echo $ECHO_N "(cached) $ECHO_C" >&6
28291else
28292 ac_func_search_save_LIBS=$LIBS
28293cat >conftest.$ac_ext <<_ACEOF
28294/* confdefs.h. */
28295_ACEOF
28296cat confdefs.h >>conftest.$ac_ext
28297cat >>conftest.$ac_ext <<_ACEOF
28298/* end confdefs.h. */
28299
28300/* Override any GCC internal prototype to avoid an error.
28301 Use char because int might match the return type of a GCC
28302 builtin and then its argument prototype would still apply. */
28303#ifdef __cplusplus
28304extern "C"
28305#endif
28306char k_hasafs ();
28307int
28308main ()
28309{
28310return k_hasafs ();
28311 ;
28312 return 0;
28313}
28314_ACEOF
28315for ac_lib in '' kafs; do
28316 if test -z "$ac_lib"; then
28317 ac_res="none required"
28318 else
28319 ac_res=-l$ac_lib
28320 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28321 fi
28322 rm -f conftest.$ac_objext conftest$ac_exeext
28323if { (ac_try="$ac_link"
28324case "(($ac_try" in
28325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28326 *) ac_try_echo=$ac_try;;
28327esac
28328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28329 (eval "$ac_link") 2>conftest.er1
28330 ac_status=$?
28331 grep -v '^ *+' conftest.er1 >conftest.err
28332 rm -f conftest.er1
28333 cat conftest.err >&5
28334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28335 (exit $ac_status); } && {
28336 test -z "$ac_c_werror_flag" ||
28337 test ! -s conftest.err
28338 } && test -s conftest$ac_exeext &&
28339 $as_test_x conftest$ac_exeext; then
28340 ac_cv_search_k_hasafs=$ac_res
28341else
28342 echo "$as_me: failed program was:" >&5
28343sed 's/^/| /' conftest.$ac_ext >&5
28344
28345
28346fi
28347
28348rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28349 conftest$ac_exeext
28350 if test "${ac_cv_search_k_hasafs+set}" = set; then
28351 break
28352fi
28353done
28354if test "${ac_cv_search_k_hasafs+set}" = set; then
28355 :
28356else
28357 ac_cv_search_k_hasafs=no
28358fi
28359rm conftest.$ac_ext
28360LIBS=$ac_func_search_save_LIBS
28361fi
28362{ echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5
28363echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6; }
28364ac_res=$ac_cv_search_k_hasafs
28365if test "$ac_res" != no; then
28366 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28367
28368cat >>confdefs.h <<\_ACEOF
28369#define USE_AFS 1
28370_ACEOF
28371
28372fi
28373
28374 fi
28375
28376
28377fi
28378
28379
28380# Looking for programs, paths and files
28381
28382PRIVSEP_PATH=/var/empty
28383
28384# Check whether --with-privsep-path was given.
28385if test "${with_privsep_path+set}" = set; then
28386 withval=$with_privsep_path;
28387 if test -n "$withval" && test "x$withval" != "xno" && \
28388 test "x${withval}" != "xyes"; then
28389 PRIVSEP_PATH=$withval
28390 fi
28391
28392
28393fi
28394
28395
28396
28397
28398# Check whether --with-xauth was given.
28399if test "${with_xauth+set}" = set; then
28400 withval=$with_xauth;
28401 if test -n "$withval" && test "x$withval" != "xno" && \
28402 test "x${withval}" != "xyes"; then
28403 xauth_path=$withval
28404 fi
28405
28406else
28407
28408 TestPath="$PATH"
28409 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
28410 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
28411 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
28412 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
28413 # Extract the first word of "xauth", so it can be a program name with args.
28414set dummy xauth; ac_word=$2
28415{ echo "$as_me:$LINENO: checking for $ac_word" >&5
28416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28417if test "${ac_cv_path_xauth_path+set}" = set; then
28418 echo $ECHO_N "(cached) $ECHO_C" >&6
28419else
28420 case $xauth_path in
28421 [\\/]* | ?:[\\/]*)
28422 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
28423 ;;
28424 *)
28425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28426for as_dir in $TestPath
28427do
28428 IFS=$as_save_IFS
28429 test -z "$as_dir" && as_dir=.
28430 for ac_exec_ext in '' $ac_executable_extensions; do
28431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28432 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
28433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28434 break 2
28435 fi
28436done
28437done
28438IFS=$as_save_IFS
28439
28440 ;;
28441esac
28442fi
28443xauth_path=$ac_cv_path_xauth_path
28444if test -n "$xauth_path"; then
28445 { echo "$as_me:$LINENO: result: $xauth_path" >&5
28446echo "${ECHO_T}$xauth_path" >&6; }
28447else
28448 { echo "$as_me:$LINENO: result: no" >&5
28449echo "${ECHO_T}no" >&6; }
28450fi
28451
28452
28453 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
28454 xauth_path="/usr/openwin/bin/xauth"
28455 fi
28456
28457
28458fi
28459
28460
28461STRIP_OPT=-s
28462# Check whether --enable-strip was given.
28463if test "${enable_strip+set}" = set; then
28464 enableval=$enable_strip;
28465 if test "x$enableval" = "xno" ; then
28466 STRIP_OPT=
28467 fi
28468
28469
28470fi
28471
28472
28473
28474if test -z "$xauth_path" ; then
28475 XAUTH_PATH="undefined"
28476
28477else
28478
28479cat >>confdefs.h <<_ACEOF
28480#define XAUTH_PATH "$xauth_path"
28481_ACEOF
28482
28483 XAUTH_PATH=$xauth_path
28484
28485fi
28486
28487# Check for mail directory (last resort if we cannot get it from headers)
28488if test ! -z "$MAIL" ; then
28489 maildir=`dirname $MAIL`
28490
28491cat >>confdefs.h <<_ACEOF
28492#define MAIL_DIRECTORY "$maildir"
28493_ACEOF
28494
28495fi
28496
28497if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
28498 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
28499echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
28500 disable_ptmx_check=yes
28501fi
28502if test -z "$no_dev_ptmx" ; then
28503 if test "x$disable_ptmx_check" != "xyes" ; then
28504 { echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
28505echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6; }
28506if test "${ac_cv_file___dev_ptmx_+set}" = set; then
28507 echo $ECHO_N "(cached) $ECHO_C" >&6
28508else
28509 test "$cross_compiling" = yes &&
28510 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28511echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28512 { (exit 1); exit 1; }; }
28513if test -r ""/dev/ptmx""; then
28514 ac_cv_file___dev_ptmx_=yes
28515else
28516 ac_cv_file___dev_ptmx_=no
28517fi
28518fi
28519{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
28520echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6; }
28521if test $ac_cv_file___dev_ptmx_ = yes; then
28522
28523
28524cat >>confdefs.h <<_ACEOF
28525#define HAVE_DEV_PTMX 1
28526_ACEOF
28527
28528 have_dev_ptmx=1
28529
28530
28531fi
28532
28533 fi
28534fi
28535
28536if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
28537 { echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
28538echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6; }
28539if test "${ac_cv_file___dev_ptc_+set}" = set; then
28540 echo $ECHO_N "(cached) $ECHO_C" >&6
28541else
28542 test "$cross_compiling" = yes &&
28543 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28544echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28545 { (exit 1); exit 1; }; }
28546if test -r ""/dev/ptc""; then
28547 ac_cv_file___dev_ptc_=yes
28548else
28549 ac_cv_file___dev_ptc_=no
28550fi
28551fi
28552{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
28553echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6; }
28554if test $ac_cv_file___dev_ptc_ = yes; then
28555
28556
28557cat >>confdefs.h <<_ACEOF
28558#define HAVE_DEV_PTS_AND_PTC 1
28559_ACEOF
28560
28561 have_dev_ptc=1
28562
28563
28564fi
28565
28566else
28567 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5
28568echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
28569fi
28570
28571# Options from here on. Some of these are preset by platform above
28572
28573# Check whether --with-mantype was given.
28574if test "${with_mantype+set}" = set; then
28575 withval=$with_mantype;
28576 case "$withval" in
28577 man|cat|doc)
28578 MANTYPE=$withval
28579 ;;
28580 *)
28581 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
28582echo "$as_me: error: invalid man type: $withval" >&2;}
28583 { (exit 1); exit 1; }; }
28584 ;;
28585 esac
28586
28587
28588fi
28589
28590if test -z "$MANTYPE"; then
28591 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
28592 for ac_prog in nroff awf
28593do
28594 # Extract the first word of "$ac_prog", so it can be a program name with args.
28595set dummy $ac_prog; ac_word=$2
28596{ echo "$as_me:$LINENO: checking for $ac_word" >&5
28597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28598if test "${ac_cv_path_NROFF+set}" = set; then
28599 echo $ECHO_N "(cached) $ECHO_C" >&6
28600else
28601 case $NROFF in
28602 [\\/]* | ?:[\\/]*)
28603 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
28604 ;;
28605 *)
28606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28607for as_dir in $TestPath
28608do
28609 IFS=$as_save_IFS
28610 test -z "$as_dir" && as_dir=.
28611 for ac_exec_ext in '' $ac_executable_extensions; do
28612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28613 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
28614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28615 break 2
28616 fi
28617done
28618done
28619IFS=$as_save_IFS
28620
28621 ;;
28622esac
28623fi
28624NROFF=$ac_cv_path_NROFF
28625if test -n "$NROFF"; then
28626 { echo "$as_me:$LINENO: result: $NROFF" >&5
28627echo "${ECHO_T}$NROFF" >&6; }
28628else
28629 { echo "$as_me:$LINENO: result: no" >&5
28630echo "${ECHO_T}no" >&6; }
28631fi
28632
28633
28634 test -n "$NROFF" && break
28635done
28636test -n "$NROFF" || NROFF="/bin/false"
28637
28638 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
28639 MANTYPE=doc
28640 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
28641 MANTYPE=man
28642 else
28643 MANTYPE=cat
28644 fi
28645fi
28646
28647if test "$MANTYPE" = "doc"; then
28648 mansubdir=man;
28649else
28650 mansubdir=$MANTYPE;
28651fi
28652
28653
28654# Check whether to enable MD5 passwords
28655MD5_MSG="no"
28656
28657# Check whether --with-md5-passwords was given.
28658if test "${with_md5_passwords+set}" = set; then
28659 withval=$with_md5_passwords;
28660 if test "x$withval" != "xno" ; then
28661
28662cat >>confdefs.h <<\_ACEOF
28663#define HAVE_MD5_PASSWORDS 1
28664_ACEOF
28665
28666 MD5_MSG="yes"
28667 fi
28668
28669
28670fi
28671
28672
28673# Whether to disable shadow password support
28674
28675# Check whether --with-shadow was given.
28676if test "${with_shadow+set}" = set; then
28677 withval=$with_shadow;
28678 if test "x$withval" = "xno" ; then
28679 cat >>confdefs.h <<\_ACEOF
28680#define DISABLE_SHADOW 1
28681_ACEOF
28682
28683 disable_shadow=yes
28684 fi
28685
28686
28687fi
28688
28689
28690if test -z "$disable_shadow" ; then
28691 { echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
28692echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6; }
28693 cat >conftest.$ac_ext <<_ACEOF
28694/* confdefs.h. */
28695_ACEOF
28696cat confdefs.h >>conftest.$ac_ext
28697cat >>conftest.$ac_ext <<_ACEOF
28698/* end confdefs.h. */
28699
28700#include <sys/types.h>
28701#include <shadow.h>
28702 struct spwd sp;
28703
28704int
28705main ()
28706{
28707 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
28708 ;
28709 return 0;
28710}
28711_ACEOF
28712rm -f conftest.$ac_objext
28713if { (ac_try="$ac_compile"
28714case "(($ac_try" in
28715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28716 *) ac_try_echo=$ac_try;;
28717esac
28718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28719 (eval "$ac_compile") 2>conftest.er1
28720 ac_status=$?
28721 grep -v '^ *+' conftest.er1 >conftest.err
28722 rm -f conftest.er1
28723 cat conftest.err >&5
28724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28725 (exit $ac_status); } && {
28726 test -z "$ac_c_werror_flag" ||
28727 test ! -s conftest.err
28728 } && test -s conftest.$ac_objext; then
28729 sp_expire_available=yes
28730else
28731 echo "$as_me: failed program was:" >&5
28732sed 's/^/| /' conftest.$ac_ext >&5
28733
28734
28735
28736fi
28737
28738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28739
28740 if test "x$sp_expire_available" = "xyes" ; then
28741 { echo "$as_me:$LINENO: result: yes" >&5
28742echo "${ECHO_T}yes" >&6; }
28743
28744cat >>confdefs.h <<\_ACEOF
28745#define HAS_SHADOW_EXPIRE 1
28746_ACEOF
28747
28748 else
28749 { echo "$as_me:$LINENO: result: no" >&5
28750echo "${ECHO_T}no" >&6; }
28751 fi
28752fi
28753
28754# Use ip address instead of hostname in $DISPLAY
28755if test ! -z "$IPADDR_IN_DISPLAY" ; then
28756 DISPLAY_HACK_MSG="yes"
28757
28758cat >>confdefs.h <<\_ACEOF
28759#define IPADDR_IN_DISPLAY 1
28760_ACEOF
28761
28762else
28763 DISPLAY_HACK_MSG="no"
28764
28765# Check whether --with-ipaddr-display was given.
28766if test "${with_ipaddr_display+set}" = set; then
28767 withval=$with_ipaddr_display;
28768 if test "x$withval" != "xno" ; then
28769 cat >>confdefs.h <<\_ACEOF
28770#define IPADDR_IN_DISPLAY 1
28771_ACEOF
28772
28773 DISPLAY_HACK_MSG="yes"
28774 fi
28775
28776
28777fi
28778
28779fi
28780
28781# check for /etc/default/login and use it if present.
28782# Check whether --enable-etc-default-login was given.
28783if test "${enable_etc_default_login+set}" = set; then
28784 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
28785 { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5
28786echo "$as_me: /etc/default/login handling disabled" >&6;}
28787 etc_default_login=no
28788 else
28789 etc_default_login=yes
28790 fi
28791else
28792 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
28793 then
28794 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5
28795echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
28796 etc_default_login=no
28797 else
28798 etc_default_login=yes
28799 fi
28800
28801fi
28802
28803
28804if test "x$etc_default_login" != "xno"; then
28805 { echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5
28806echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6; }
28807if test "${ac_cv_file___etc_default_login_+set}" = set; then
28808 echo $ECHO_N "(cached) $ECHO_C" >&6
28809else
28810 test "$cross_compiling" = yes &&
28811 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28812echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28813 { (exit 1); exit 1; }; }
28814if test -r ""/etc/default/login""; then
28815 ac_cv_file___etc_default_login_=yes
28816else
28817 ac_cv_file___etc_default_login_=no
28818fi
28819fi
28820{ echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5
28821echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6; }
28822if test $ac_cv_file___etc_default_login_ = yes; then
28823 external_path_file=/etc/default/login
28824fi
28825
28826 if test "x$external_path_file" = "x/etc/default/login"; then
28827
28828cat >>confdefs.h <<\_ACEOF
28829#define HAVE_ETC_DEFAULT_LOGIN 1
28830_ACEOF
28831
28832 fi
28833fi
28834
28835if test $ac_cv_func_login_getcapbool = "yes" && \
28836 test $ac_cv_header_login_cap_h = "yes" ; then
28837 external_path_file=/etc/login.conf
28838fi
28839
28840# Whether to mess with the default path
28841SERVER_PATH_MSG="(default)"
28842
28843# Check whether --with-default-path was given.
28844if test "${with_default_path+set}" = set; then
28845 withval=$with_default_path;
28846 if test "x$external_path_file" = "x/etc/login.conf" ; then
28847 { echo "$as_me:$LINENO: WARNING:
28848--with-default-path=PATH has no effect on this system.
28849Edit /etc/login.conf instead." >&5
28850echo "$as_me: WARNING:
28851--with-default-path=PATH has no effect on this system.
28852Edit /etc/login.conf instead." >&2;}
28853 elif test "x$withval" != "xno" ; then
28854 if test ! -z "$external_path_file" ; then
28855 { echo "$as_me:$LINENO: WARNING:
28856--with-default-path=PATH will only be used if PATH is not defined in
28857$external_path_file ." >&5
28858echo "$as_me: WARNING:
28859--with-default-path=PATH will only be used if PATH is not defined in
28860$external_path_file ." >&2;}
28861 fi
28862 user_path="$withval"
28863 SERVER_PATH_MSG="$withval"
28864 fi
28865
28866else
28867 if test "x$external_path_file" = "x/etc/login.conf" ; then
28868 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
28869echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
28870 else
28871 if test ! -z "$external_path_file" ; then
28872 { echo "$as_me:$LINENO: WARNING:
28873If PATH is defined in $external_path_file, ensure the path to scp is included,
28874otherwise scp will not work." >&5
28875echo "$as_me: WARNING:
28876If PATH is defined in $external_path_file, ensure the path to scp is included,
28877otherwise scp will not work." >&2;}
28878 fi
28879 if test "$cross_compiling" = yes; then
28880 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
28881
28882else
28883 cat >conftest.$ac_ext <<_ACEOF
28884/* confdefs.h. */
28885_ACEOF
28886cat confdefs.h >>conftest.$ac_ext
28887cat >>conftest.$ac_ext <<_ACEOF
28888/* end confdefs.h. */
28889
28890/* find out what STDPATH is */
28891#include <stdio.h>
28892#ifdef HAVE_PATHS_H
28893# include <paths.h>
28894#endif
28895#ifndef _PATH_STDPATH
28896# ifdef _PATH_USERPATH /* Irix */
28897# define _PATH_STDPATH _PATH_USERPATH
28898# else
28899# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
28900# endif
28901#endif
28902#include <sys/types.h>
28903#include <sys/stat.h>
28904#include <fcntl.h>
28905#define DATA "conftest.stdpath"
28906
28907main()
28908{
28909 FILE *fd;
28910 int rc;
28911
28912 fd = fopen(DATA,"w");
28913 if(fd == NULL)
28914 exit(1);
28915
28916 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
28917 exit(1);
28918
28919 exit(0);
28920}
28921
28922_ACEOF
28923rm -f conftest$ac_exeext
28924if { (ac_try="$ac_link"
28925case "(($ac_try" in
28926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28927 *) ac_try_echo=$ac_try;;
28928esac
28929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28930 (eval "$ac_link") 2>&5
28931 ac_status=$?
28932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28934 { (case "(($ac_try" in
28935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28936 *) ac_try_echo=$ac_try;;
28937esac
28938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28939 (eval "$ac_try") 2>&5
28940 ac_status=$?
28941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28942 (exit $ac_status); }; }; then
28943 user_path=`cat conftest.stdpath`
28944else
28945 echo "$as_me: program exited with status $ac_status" >&5
28946echo "$as_me: failed program was:" >&5
28947sed 's/^/| /' conftest.$ac_ext >&5
28948
28949( exit $ac_status )
28950 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
28951fi
28952rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28953fi
28954
28955
28956# make sure $bindir is in USER_PATH so scp will work
28957 t_bindir=`eval echo ${bindir}`
28958 case $t_bindir in
28959 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
28960 esac
28961 case $t_bindir in
28962 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
28963 esac
28964 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
28965 if test $? -ne 0 ; then
28966 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
28967 if test $? -ne 0 ; then
28968 user_path=$user_path:$t_bindir
28969 { echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
28970echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6; }
28971 fi
28972 fi
28973 fi
28974
28975fi
28976
28977if test "x$external_path_file" != "x/etc/login.conf" ; then
28978
28979cat >>confdefs.h <<_ACEOF
28980#define USER_PATH "$user_path"
28981_ACEOF
28982
28983
28984fi
28985
28986# Set superuser path separately to user path
28987
28988# Check whether --with-superuser-path was given.
28989if test "${with_superuser_path+set}" = set; then
28990 withval=$with_superuser_path;
28991 if test -n "$withval" && test "x$withval" != "xno" && \
28992 test "x${withval}" != "xyes"; then
28993
28994cat >>confdefs.h <<_ACEOF
28995#define SUPERUSER_PATH "$withval"
28996_ACEOF
28997
28998 superuser_path=$withval
28999 fi
29000
29001
29002fi
29003
29004
29005
29006{ echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
29007echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6; }
29008IPV4_IN6_HACK_MSG="no"
29009
29010# Check whether --with-4in6 was given.
29011if test "${with_4in6+set}" = set; then
29012 withval=$with_4in6;
29013 if test "x$withval" != "xno" ; then
29014 { echo "$as_me:$LINENO: result: yes" >&5
29015echo "${ECHO_T}yes" >&6; }
29016
29017cat >>confdefs.h <<\_ACEOF
29018#define IPV4_IN_IPV6 1
29019_ACEOF
29020
29021 IPV4_IN6_HACK_MSG="yes"
29022 else
29023 { echo "$as_me:$LINENO: result: no" >&5
29024echo "${ECHO_T}no" >&6; }
29025 fi
29026
29027else
29028
29029 if test "x$inet6_default_4in6" = "xyes"; then
29030 { echo "$as_me:$LINENO: result: yes (default)" >&5
29031echo "${ECHO_T}yes (default)" >&6; }
29032 cat >>confdefs.h <<\_ACEOF
29033#define IPV4_IN_IPV6 1
29034_ACEOF
29035
29036 IPV4_IN6_HACK_MSG="yes"
29037 else
29038 { echo "$as_me:$LINENO: result: no (default)" >&5
29039echo "${ECHO_T}no (default)" >&6; }
29040 fi
29041
29042
29043fi
29044
29045
29046# Whether to enable BSD auth support
29047BSD_AUTH_MSG=no
29048
29049# Check whether --with-bsd-auth was given.
29050if test "${with_bsd_auth+set}" = set; then
29051 withval=$with_bsd_auth;
29052 if test "x$withval" != "xno" ; then
29053
29054cat >>confdefs.h <<\_ACEOF
29055#define BSD_AUTH 1
29056_ACEOF
29057
29058 BSD_AUTH_MSG=yes
29059 fi
29060
29061
29062fi
29063
29064
29065# Where to place sshd.pid
29066piddir=/var/run
29067# make sure the directory exists
29068if test ! -d $piddir ; then
29069 piddir=`eval echo ${sysconfdir}`
29070 case $piddir in
29071 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
29072 esac
29073fi
29074
29075
29076# Check whether --with-pid-dir was given.
29077if test "${with_pid_dir+set}" = set; then
29078 withval=$with_pid_dir;
29079 if test -n "$withval" && test "x$withval" != "xno" && \
29080 test "x${withval}" != "xyes"; then
29081 piddir=$withval
29082 if test ! -d $piddir ; then
29083 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
29084echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
29085 fi
29086 fi
29087
29088
29089fi
29090
29091
29092
29093cat >>confdefs.h <<_ACEOF
29094#define _PATH_SSH_PIDDIR "$piddir"
29095_ACEOF
29096
29097
29098
29099# Check whether --enable-lastlog was given.
29100if test "${enable_lastlog+set}" = set; then
29101 enableval=$enable_lastlog;
29102 if test "x$enableval" = "xno" ; then
29103 cat >>confdefs.h <<\_ACEOF
29104#define DISABLE_LASTLOG 1
29105_ACEOF
29106
29107 fi
29108
29109
29110fi
29111
29112# Check whether --enable-utmp was given.
29113if test "${enable_utmp+set}" = set; then
29114 enableval=$enable_utmp;
29115 if test "x$enableval" = "xno" ; then
29116 cat >>confdefs.h <<\_ACEOF
29117#define DISABLE_UTMP 1
29118_ACEOF
29119
29120 fi
29121
29122
29123fi
29124
29125# Check whether --enable-utmpx was given.
29126if test "${enable_utmpx+set}" = set; then
29127 enableval=$enable_utmpx;
29128 if test "x$enableval" = "xno" ; then
29129
29130cat >>confdefs.h <<\_ACEOF
29131#define DISABLE_UTMPX 1
29132_ACEOF
29133
29134 fi
29135
29136
29137fi
29138
29139# Check whether --enable-wtmp was given.
29140if test "${enable_wtmp+set}" = set; then
29141 enableval=$enable_wtmp;
29142 if test "x$enableval" = "xno" ; then
29143 cat >>confdefs.h <<\_ACEOF
29144#define DISABLE_WTMP 1
29145_ACEOF
29146
29147 fi
29148
29149
29150fi
29151
29152# Check whether --enable-wtmpx was given.
29153if test "${enable_wtmpx+set}" = set; then
29154 enableval=$enable_wtmpx;
29155 if test "x$enableval" = "xno" ; then
29156
29157cat >>confdefs.h <<\_ACEOF
29158#define DISABLE_WTMPX 1
29159_ACEOF
29160
29161 fi
29162
29163
29164fi
29165
29166# Check whether --enable-libutil was given.
29167if test "${enable_libutil+set}" = set; then
29168 enableval=$enable_libutil;
29169 if test "x$enableval" = "xno" ; then
29170 cat >>confdefs.h <<\_ACEOF
29171#define DISABLE_LOGIN 1
29172_ACEOF
29173
29174 fi
29175
29176
29177fi
29178
29179# Check whether --enable-pututline was given.
29180if test "${enable_pututline+set}" = set; then
29181 enableval=$enable_pututline;
29182 if test "x$enableval" = "xno" ; then
29183
29184cat >>confdefs.h <<\_ACEOF
29185#define DISABLE_PUTUTLINE 1
29186_ACEOF
29187
29188 fi
29189
29190
29191fi
29192
29193# Check whether --enable-pututxline was given.
29194if test "${enable_pututxline+set}" = set; then
29195 enableval=$enable_pututxline;
29196 if test "x$enableval" = "xno" ; then
29197
29198cat >>confdefs.h <<\_ACEOF
29199#define DISABLE_PUTUTXLINE 1
29200_ACEOF
29201
29202 fi
29203
29204
29205fi
29206
29207
29208# Check whether --with-lastlog was given.
29209if test "${with_lastlog+set}" = set; then
29210 withval=$with_lastlog;
29211 if test "x$withval" = "xno" ; then
29212 cat >>confdefs.h <<\_ACEOF
29213#define DISABLE_LASTLOG 1
29214_ACEOF
29215
29216 elif test -n "$withval" && test "x${withval}" != "xyes"; then
29217 conf_lastlog_location=$withval
29218 fi
29219
29220
29221fi
29222
29223
29224
29225{ echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
29226echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6; }
29227cat >conftest.$ac_ext <<_ACEOF
29228/* confdefs.h. */
29229_ACEOF
29230cat confdefs.h >>conftest.$ac_ext
29231cat >>conftest.$ac_ext <<_ACEOF
29232/* end confdefs.h. */
29233
29234#include <sys/types.h>
29235#include <utmp.h>
29236#ifdef HAVE_LASTLOG_H
29237# include <lastlog.h>
29238#endif
29239#ifdef HAVE_PATHS_H
29240# include <paths.h>
29241#endif
29242#ifdef HAVE_LOGIN_H
29243# include <login.h>
29244#endif
29245
29246int
29247main ()
29248{
29249 char *lastlog = LASTLOG_FILE;
29250 ;
29251 return 0;
29252}
29253_ACEOF
29254rm -f conftest.$ac_objext
29255if { (ac_try="$ac_compile"
29256case "(($ac_try" in
29257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29258 *) ac_try_echo=$ac_try;;
29259esac
29260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29261 (eval "$ac_compile") 2>conftest.er1
29262 ac_status=$?
29263 grep -v '^ *+' conftest.er1 >conftest.err
29264 rm -f conftest.er1
29265 cat conftest.err >&5
29266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29267 (exit $ac_status); } && {
29268 test -z "$ac_c_werror_flag" ||
29269 test ! -s conftest.err
29270 } && test -s conftest.$ac_objext; then
29271 { echo "$as_me:$LINENO: result: yes" >&5
29272echo "${ECHO_T}yes" >&6; }
29273else
29274 echo "$as_me: failed program was:" >&5
29275sed 's/^/| /' conftest.$ac_ext >&5
29276
29277
29278 { echo "$as_me:$LINENO: result: no" >&5
29279echo "${ECHO_T}no" >&6; }
29280 { echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
29281echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6; }
29282 cat >conftest.$ac_ext <<_ACEOF
29283/* confdefs.h. */
29284_ACEOF
29285cat confdefs.h >>conftest.$ac_ext
29286cat >>conftest.$ac_ext <<_ACEOF
29287/* end confdefs.h. */
29288
29289#include <sys/types.h>
29290#include <utmp.h>
29291#ifdef HAVE_LASTLOG_H
29292# include <lastlog.h>
29293#endif
29294#ifdef HAVE_PATHS_H
29295# include <paths.h>
29296#endif
29297
29298int
29299main ()
29300{
29301 char *lastlog = _PATH_LASTLOG;
29302 ;
29303 return 0;
29304}
29305_ACEOF
29306rm -f conftest.$ac_objext
29307if { (ac_try="$ac_compile"
29308case "(($ac_try" in
29309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29310 *) ac_try_echo=$ac_try;;
29311esac
29312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29313 (eval "$ac_compile") 2>conftest.er1
29314 ac_status=$?
29315 grep -v '^ *+' conftest.er1 >conftest.err
29316 rm -f conftest.er1
29317 cat conftest.err >&5
29318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29319 (exit $ac_status); } && {
29320 test -z "$ac_c_werror_flag" ||
29321 test ! -s conftest.err
29322 } && test -s conftest.$ac_objext; then
29323 { echo "$as_me:$LINENO: result: yes" >&5
29324echo "${ECHO_T}yes" >&6; }
29325else
29326 echo "$as_me: failed program was:" >&5
29327sed 's/^/| /' conftest.$ac_ext >&5
29328
29329
29330 { echo "$as_me:$LINENO: result: no" >&5
29331echo "${ECHO_T}no" >&6; }
29332 system_lastlog_path=no
29333
29334fi
29335
29336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29337
29338
29339fi
29340
29341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29342
29343if test -z "$conf_lastlog_location"; then
29344 if test x"$system_lastlog_path" = x"no" ; then
29345 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
29346 if (test -d "$f" || test -f "$f") ; then
29347 conf_lastlog_location=$f
29348 fi
29349 done
29350 if test -z "$conf_lastlog_location"; then
29351 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
29352echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
29353 fi
29354 fi
29355fi
29356
29357if test -n "$conf_lastlog_location"; then
29358
29359cat >>confdefs.h <<_ACEOF
29360#define CONF_LASTLOG_FILE "$conf_lastlog_location"
29361_ACEOF
29362
29363fi
29364
29365{ echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
29366echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6; }
29367cat >conftest.$ac_ext <<_ACEOF
29368/* confdefs.h. */
29369_ACEOF
29370cat confdefs.h >>conftest.$ac_ext
29371cat >>conftest.$ac_ext <<_ACEOF
29372/* end confdefs.h. */
29373
29374#include <sys/types.h>
29375#include <utmp.h>
29376#ifdef HAVE_PATHS_H
29377# include <paths.h>
29378#endif
29379
29380int
29381main ()
29382{
29383 char *utmp = UTMP_FILE;
29384 ;
29385 return 0;
29386}
29387_ACEOF
29388rm -f conftest.$ac_objext
29389if { (ac_try="$ac_compile"
29390case "(($ac_try" in
29391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29392 *) ac_try_echo=$ac_try;;
29393esac
29394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29395 (eval "$ac_compile") 2>conftest.er1
29396 ac_status=$?
29397 grep -v '^ *+' conftest.er1 >conftest.err
29398 rm -f conftest.er1
29399 cat conftest.err >&5
29400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401 (exit $ac_status); } && {
29402 test -z "$ac_c_werror_flag" ||
29403 test ! -s conftest.err
29404 } && test -s conftest.$ac_objext; then
29405 { echo "$as_me:$LINENO: result: yes" >&5
29406echo "${ECHO_T}yes" >&6; }
29407else
29408 echo "$as_me: failed program was:" >&5
29409sed 's/^/| /' conftest.$ac_ext >&5
29410
29411 { echo "$as_me:$LINENO: result: no" >&5
29412echo "${ECHO_T}no" >&6; }
29413 system_utmp_path=no
29414
29415fi
29416
29417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29418if test -z "$conf_utmp_location"; then
29419 if test x"$system_utmp_path" = x"no" ; then
29420 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
29421 if test -f $f ; then
29422 conf_utmp_location=$f
29423 fi
29424 done
29425 if test -z "$conf_utmp_location"; then
29426 cat >>confdefs.h <<\_ACEOF
29427#define DISABLE_UTMP 1
29428_ACEOF
29429
29430 fi
29431 fi
29432fi
29433if test -n "$conf_utmp_location"; then
29434
29435cat >>confdefs.h <<_ACEOF
29436#define CONF_UTMP_FILE "$conf_utmp_location"
29437_ACEOF
29438
29439fi
29440
29441{ echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
29442echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6; }
29443cat >conftest.$ac_ext <<_ACEOF
29444/* confdefs.h. */
29445_ACEOF
29446cat confdefs.h >>conftest.$ac_ext
29447cat >>conftest.$ac_ext <<_ACEOF
29448/* end confdefs.h. */
29449
29450#include <sys/types.h>
29451#include <utmp.h>
29452#ifdef HAVE_PATHS_H
29453# include <paths.h>
29454#endif
29455
29456int
29457main ()
29458{
29459 char *wtmp = WTMP_FILE;
29460 ;
29461 return 0;
29462}
29463_ACEOF
29464rm -f conftest.$ac_objext
29465if { (ac_try="$ac_compile"
29466case "(($ac_try" in
29467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29468 *) ac_try_echo=$ac_try;;
29469esac
29470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29471 (eval "$ac_compile") 2>conftest.er1
29472 ac_status=$?
29473 grep -v '^ *+' conftest.er1 >conftest.err
29474 rm -f conftest.er1
29475 cat conftest.err >&5
29476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29477 (exit $ac_status); } && {
29478 test -z "$ac_c_werror_flag" ||
29479 test ! -s conftest.err
29480 } && test -s conftest.$ac_objext; then
29481 { echo "$as_me:$LINENO: result: yes" >&5
29482echo "${ECHO_T}yes" >&6; }
29483else
29484 echo "$as_me: failed program was:" >&5
29485sed 's/^/| /' conftest.$ac_ext >&5
29486
29487 { echo "$as_me:$LINENO: result: no" >&5
29488echo "${ECHO_T}no" >&6; }
29489 system_wtmp_path=no
29490
29491fi
29492
29493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29494if test -z "$conf_wtmp_location"; then
29495 if test x"$system_wtmp_path" = x"no" ; then
29496 for f in /usr/adm/wtmp /var/log/wtmp; do
29497 if test -f $f ; then
29498 conf_wtmp_location=$f
29499 fi
29500 done
29501 if test -z "$conf_wtmp_location"; then
29502 cat >>confdefs.h <<\_ACEOF
29503#define DISABLE_WTMP 1
29504_ACEOF
29505
29506 fi
29507 fi
29508fi
29509if test -n "$conf_wtmp_location"; then
29510
29511cat >>confdefs.h <<_ACEOF
29512#define CONF_WTMP_FILE "$conf_wtmp_location"
29513_ACEOF
29514
29515fi
29516
29517
29518{ echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
29519echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; }
29520cat >conftest.$ac_ext <<_ACEOF
29521/* confdefs.h. */
29522_ACEOF
29523cat confdefs.h >>conftest.$ac_ext
29524cat >>conftest.$ac_ext <<_ACEOF
29525/* end confdefs.h. */
29526
29527#include <sys/types.h>
29528#include <utmp.h>
29529#ifdef HAVE_UTMPX_H
29530#include <utmpx.h>
29531#endif
29532#ifdef HAVE_PATHS_H
29533# include <paths.h>
29534#endif
29535
29536int
29537main ()
29538{
29539 char *wtmpx = WTMPX_FILE;
29540 ;
29541 return 0;
29542}
29543_ACEOF
29544rm -f conftest.$ac_objext
29545if { (ac_try="$ac_compile"
29546case "(($ac_try" in
29547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29548 *) ac_try_echo=$ac_try;;
29549esac
29550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29551 (eval "$ac_compile") 2>conftest.er1
29552 ac_status=$?
29553 grep -v '^ *+' conftest.er1 >conftest.err
29554 rm -f conftest.er1
29555 cat conftest.err >&5
29556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29557 (exit $ac_status); } && {
29558 test -z "$ac_c_werror_flag" ||
29559 test ! -s conftest.err
29560 } && test -s conftest.$ac_objext; then
29561 { echo "$as_me:$LINENO: result: yes" >&5
29562echo "${ECHO_T}yes" >&6; }
29563else
29564 echo "$as_me: failed program was:" >&5
29565sed 's/^/| /' conftest.$ac_ext >&5
29566
29567 { echo "$as_me:$LINENO: result: no" >&5
29568echo "${ECHO_T}no" >&6; }
29569 system_wtmpx_path=no
29570
29571fi
29572
29573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29574if test -z "$conf_wtmpx_location"; then
29575 if test x"$system_wtmpx_path" = x"no" ; then
29576 cat >>confdefs.h <<\_ACEOF
29577#define DISABLE_WTMPX 1
29578_ACEOF
29579
29580 fi
29581else
29582
29583cat >>confdefs.h <<_ACEOF
29584#define CONF_WTMPX_FILE "$conf_wtmpx_location"
29585_ACEOF
29586
29587fi
29588
29589
29590if test ! -z "$blibpath" ; then
29591 LDFLAGS="$LDFLAGS $blibflags$blibpath"
29592 { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
29593echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
29594fi
29595
29596CFLAGS="$CFLAGS $werror_flags"
29597
29598if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
29599 TEST_SSH_IPV6=no
29600else
29601 TEST_SSH_IPV6=yes
29602fi
29603{ echo "$as_me:$LINENO: checking whether BROKEN_GETADDRINFO is declared" >&5
29604echo $ECHO_N "checking whether BROKEN_GETADDRINFO is declared... $ECHO_C" >&6; }
29605if test "${ac_cv_have_decl_BROKEN_GETADDRINFO+set}" = set; then
29606 echo $ECHO_N "(cached) $ECHO_C" >&6
29607else
29608 cat >conftest.$ac_ext <<_ACEOF
29609/* confdefs.h. */
29610_ACEOF
29611cat confdefs.h >>conftest.$ac_ext
29612cat >>conftest.$ac_ext <<_ACEOF
29613/* end confdefs.h. */
29614$ac_includes_default
29615int
29616main ()
29617{
29618#ifndef BROKEN_GETADDRINFO
29619 (void) BROKEN_GETADDRINFO;
29620#endif
29621
29622 ;
29623 return 0;
29624}
29625_ACEOF
29626rm -f conftest.$ac_objext
29627if { (ac_try="$ac_compile"
29628case "(($ac_try" in
29629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29630 *) ac_try_echo=$ac_try;;
29631esac
29632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29633 (eval "$ac_compile") 2>conftest.er1
29634 ac_status=$?
29635 grep -v '^ *+' conftest.er1 >conftest.err
29636 rm -f conftest.er1
29637 cat conftest.err >&5
29638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29639 (exit $ac_status); } && {
29640 test -z "$ac_c_werror_flag" ||
29641 test ! -s conftest.err
29642 } && test -s conftest.$ac_objext; then
29643 ac_cv_have_decl_BROKEN_GETADDRINFO=yes
29644else
29645 echo "$as_me: failed program was:" >&5
29646sed 's/^/| /' conftest.$ac_ext >&5
29647
29648 ac_cv_have_decl_BROKEN_GETADDRINFO=no
29649fi
29650
29651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29652fi
29653{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_BROKEN_GETADDRINFO" >&5
29654echo "${ECHO_T}$ac_cv_have_decl_BROKEN_GETADDRINFO" >&6; }
29655if test $ac_cv_have_decl_BROKEN_GETADDRINFO = yes; then
29656 TEST_SSH_IPV6=no
29657fi
29658
29659TEST_SSH_IPV6=$TEST_SSH_IPV6
29660
29661
29662
29663ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile ssh_prng_cmds survey.sh"
29664
29665cat >confcache <<\_ACEOF
29666# This file is a shell script that caches the results of configure
29667# tests run on this system so they can be shared between configure
29668# scripts and configure runs, see configure's option --config-cache.
29669# It is not useful on other systems. If it contains results you don't
29670# want to keep, you may remove or edit it.
29671#
29672# config.status only pays attention to the cache file if you give it
29673# the --recheck option to rerun configure.
29674#
29675# `ac_cv_env_foo' variables (set or unset) will be overridden when
29676# loading this file, other *unset* `ac_cv_foo' will be assigned the
29677# following values.
29678
29679_ACEOF
29680
29681# The following way of writing the cache mishandles newlines in values,
29682# but we know of no workaround that is simple, portable, and efficient.
29683# So, we kill variables containing newlines.
29684# Ultrix sh set writes to stderr and can't be redirected directly,
29685# and sets the high bit in the cache file unless we assign to the vars.
29686(
29687 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29688 eval ac_val=\$$ac_var
29689 case $ac_val in #(
29690 *${as_nl}*)
29691 case $ac_var in #(
29692 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
29693echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
29694 esac
29695 case $ac_var in #(
29696 _ | IFS | as_nl) ;; #(
29697 *) $as_unset $ac_var ;;
29698 esac ;;
29699 esac
29700 done
29701
29702 (set) 2>&1 |
29703 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29704 *${as_nl}ac_space=\ *)
29705 # `set' does not quote correctly, so add quotes (double-quote
29706 # substitution turns \\\\ into \\, and sed turns \\ into \).
29707 sed -n \
29708 "s/'/'\\\\''/g;
29709 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29710 ;; #(
29711 *)
29712 # `set' quotes correctly as required by POSIX, so do not add quotes.
29713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29714 ;;
29715 esac |
29716 sort
29717) |
29718 sed '
29719 /^ac_cv_env_/b end
29720 t clear
29721 :clear
29722 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29723 t end
29724 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29725 :end' >>confcache
29726if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29727 if test -w "$cache_file"; then
29728 test "x$cache_file" != "x/dev/null" &&
29729 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
29730echo "$as_me: updating cache $cache_file" >&6;}
29731 cat confcache >$cache_file
29732 else
29733 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29734echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29735 fi
29736fi
29737rm -f confcache
29738
29739test "x$prefix" = xNONE && prefix=$ac_default_prefix
29740# Let make expand exec_prefix.
29741test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29742
29743DEFS=-DHAVE_CONFIG_H
29744
29745ac_libobjs=
29746ac_ltlibobjs=
29747for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29748 # 1. Remove the extension, and $U if already installed.
29749 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29750 ac_i=`echo "$ac_i" | sed "$ac_script"`
29751 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29752 # will be set to the directory where LIBOBJS objects are built.
29753 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29754 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29755done
29756LIBOBJS=$ac_libobjs
29757
29758LTLIBOBJS=$ac_ltlibobjs
29759
29760
29761
29762: ${CONFIG_STATUS=./config.status}
29763ac_clean_files_save=$ac_clean_files
29764ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29765{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29766echo "$as_me: creating $CONFIG_STATUS" >&6;}
29767cat >$CONFIG_STATUS <<_ACEOF
29768#! $SHELL
29769# Generated by $as_me.
29770# Run this file to recreate the current configuration.
29771# Compiler output produced by configure, useful for debugging
29772# configure, is in config.log if it exists.
29773
29774debug=false
29775ac_cs_recheck=false
29776ac_cs_silent=false
29777SHELL=\${CONFIG_SHELL-$SHELL}
29778_ACEOF
29779
29780cat >>$CONFIG_STATUS <<\_ACEOF
29781## --------------------- ##
29782## M4sh Initialization. ##
29783## --------------------- ##
29784
29785# Be more Bourne compatible
29786DUALCASE=1; export DUALCASE # for MKS sh
29787if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29788 emulate sh
29789 NULLCMD=:
29790 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29791 # is contrary to our usage. Disable this feature.
29792 alias -g '${1+"$@"}'='"$@"'
29793 setopt NO_GLOB_SUBST
29794else
29795 case `(set -o) 2>/dev/null` in
29796 *posix*) set -o posix ;;
29797esac
29798
29799fi
29800
29801
29802
29803
29804# PATH needs CR
29805# Avoid depending upon Character Ranges.
29806as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29807as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29808as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29809as_cr_digits='0123456789'
29810as_cr_alnum=$as_cr_Letters$as_cr_digits
29811
29812# The user is always right.
29813if test "${PATH_SEPARATOR+set}" != set; then
29814 echo "#! /bin/sh" >conf$$.sh
29815 echo "exit 0" >>conf$$.sh
29816 chmod +x conf$$.sh
29817 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29818 PATH_SEPARATOR=';'
29819 else
29820 PATH_SEPARATOR=:
29821 fi
29822 rm -f conf$$.sh
29823fi
29824
29825# Support unset when possible.
29826if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29827 as_unset=unset
29828else
29829 as_unset=false
29830fi
29831
29832
29833# IFS
29834# We need space, tab and new line, in precisely that order. Quoting is
29835# there to prevent editors from complaining about space-tab.
29836# (If _AS_PATH_WALK were called with IFS unset, it would disable word
29837# splitting by setting IFS to empty value.)
29838as_nl='
29839'
29840IFS=" "" $as_nl"
29841
29842# Find who we are. Look in the path if we contain no directory separator.
29843case $0 in
29844 *[\\/]* ) as_myself=$0 ;;
29845 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29846for as_dir in $PATH
29847do
29848 IFS=$as_save_IFS
29849 test -z "$as_dir" && as_dir=.
29850 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29851done
29852IFS=$as_save_IFS
29853
29854 ;;
29855esac
29856# We did not find ourselves, most probably we were run as `sh COMMAND'
29857# in which case we are not to be found in the path.
29858if test "x$as_myself" = x; then
29859 as_myself=$0
29860fi
29861if test ! -f "$as_myself"; then
29862 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29863 { (exit 1); exit 1; }
29864fi
29865
29866# Work around bugs in pre-3.0 UWIN ksh.
29867for as_var in ENV MAIL MAILPATH
29868do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29869done
29870PS1='$ '
29871PS2='> '
29872PS4='+ '
29873
29874# NLS nuisances.
29875for as_var in \
29876 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29877 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29878 LC_TELEPHONE LC_TIME
29879do
29880 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29881 eval $as_var=C; export $as_var
29882 else
29883 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29884 fi
29885done
29886
29887# Required to use basename.
29888if expr a : '\(a\)' >/dev/null 2>&1 &&
29889 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29890 as_expr=expr
29891else
29892 as_expr=false
29893fi
29894
29895if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29896 as_basename=basename
29897else
29898 as_basename=false
29899fi
29900
29901
29902# Name of the executable.
29903as_me=`$as_basename -- "$0" ||
29904$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29905 X"$0" : 'X\(//\)$' \| \
29906 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29907echo X/"$0" |
29908 sed '/^.*\/\([^/][^/]*\)\/*$/{
29909 s//\1/
29910 q
29911 }
29912 /^X\/\(\/\/\)$/{
29913 s//\1/
29914 q
29915 }
29916 /^X\/\(\/\).*/{
29917 s//\1/
29918 q
29919 }
29920 s/.*/./; q'`
29921
29922# CDPATH.
29923$as_unset CDPATH
29924
29925
29926
29927 as_lineno_1=$LINENO
29928 as_lineno_2=$LINENO
29929 test "x$as_lineno_1" != "x$as_lineno_2" &&
29930 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29931
29932 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29933 # uniformly replaced by the line number. The first 'sed' inserts a
29934 # line-number line after each line using $LINENO; the second 'sed'
29935 # does the real work. The second script uses 'N' to pair each
29936 # line-number line with the line containing $LINENO, and appends
29937 # trailing '-' during substitution so that $LINENO is not a special
29938 # case at line end.
29939 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29940 # scripts with optimization help from Paolo Bonzini. Blame Lee
29941 # E. McMahon (1931-1989) for sed's syntax. :-)
29942 sed -n '
29943 p
29944 /[$]LINENO/=
29945 ' <$as_myself |
29946 sed '
29947 s/[$]LINENO.*/&-/
29948 t lineno
29949 b
29950 :lineno
29951 N
29952 :loop
29953 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29954 t loop
29955 s/-\n.*//
29956 ' >$as_me.lineno &&
29957 chmod +x "$as_me.lineno" ||
29958 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29959 { (exit 1); exit 1; }; }
29960
29961 # Don't try to exec as it changes $[0], causing all sort of problems
29962 # (the dirname of $[0] is not the place where we might find the
29963 # original and so on. Autoconf is especially sensitive to this).
29964 . "./$as_me.lineno"
29965 # Exit status is that of the last command.
29966 exit
29967}
29968
29969
29970if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29971 as_dirname=dirname
29972else
29973 as_dirname=false
29974fi
29975
29976ECHO_C= ECHO_N= ECHO_T=
29977case `echo -n x` in
29978-n*)
29979 case `echo 'x\c'` in
29980 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29981 *) ECHO_C='\c';;
29982 esac;;
29983*)
29984 ECHO_N='-n';;
29985esac
29986
29987if expr a : '\(a\)' >/dev/null 2>&1 &&
29988 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29989 as_expr=expr
29990else
29991 as_expr=false
29992fi
29993
29994rm -f conf$$ conf$$.exe conf$$.file
29995if test -d conf$$.dir; then
29996 rm -f conf$$.dir/conf$$.file
29997else
29998 rm -f conf$$.dir
29999 mkdir conf$$.dir
30000fi
30001echo >conf$$.file
30002if ln -s conf$$.file conf$$ 2>/dev/null; then
30003 as_ln_s='ln -s'
30004 # ... but there are two gotchas:
30005 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30006 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30007 # In both cases, we have to default to `cp -p'.
30008 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30009 as_ln_s='cp -p'
30010elif ln conf$$.file conf$$ 2>/dev/null; then
30011 as_ln_s=ln
30012else
30013 as_ln_s='cp -p'
30014fi
30015rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30016rmdir conf$$.dir 2>/dev/null
30017
30018if mkdir -p . 2>/dev/null; then
30019 as_mkdir_p=:
30020else
30021 test -d ./-p && rmdir ./-p
30022 as_mkdir_p=false
30023fi
30024
30025if test -x / >/dev/null 2>&1; then
30026 as_test_x='test -x'
30027else
30028 if ls -dL / >/dev/null 2>&1; then
30029 as_ls_L_option=L
30030 else
30031 as_ls_L_option=
30032 fi
30033 as_test_x='
30034 eval sh -c '\''
30035 if test -d "$1"; then
30036 test -d "$1/.";
30037 else
30038 case $1 in
30039 -*)set "./$1";;
30040 esac;
30041 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30042 ???[sx]*):;;*)false;;esac;fi
30043 '\'' sh
30044 '
30045fi
30046as_executable_p=$as_test_x
30047
30048# Sed expression to map a string onto a valid CPP name.
30049as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30050
30051# Sed expression to map a string onto a valid variable name.
30052as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30053
30054
30055exec 6>&1
30056
30057# Save the log message, to keep $[0] and so on meaningful, and to
30058# report actual input values of CONFIG_FILES etc. instead of their
30059# values after options handling.
30060ac_log="
30061This file was extended by OpenSSH $as_me Portable, which was
30062generated by GNU Autoconf 2.61. Invocation command line was
30063
30064 CONFIG_FILES = $CONFIG_FILES
30065 CONFIG_HEADERS = $CONFIG_HEADERS
30066 CONFIG_LINKS = $CONFIG_LINKS
30067 CONFIG_COMMANDS = $CONFIG_COMMANDS
30068 $ $0 $@
30069
30070on `(hostname || uname -n) 2>/dev/null | sed 1q`
30071"
30072
30073_ACEOF
30074
30075cat >>$CONFIG_STATUS <<_ACEOF
30076# Files that config.status was made for.
30077config_files="$ac_config_files"
30078config_headers="$ac_config_headers"
30079
30080_ACEOF
30081
30082cat >>$CONFIG_STATUS <<\_ACEOF
30083ac_cs_usage="\
30084\`$as_me' instantiates files from templates according to the
30085current configuration.
30086
30087Usage: $0 [OPTIONS] [FILE]...
30088
30089 -h, --help print this help, then exit
30090 -V, --version print version number and configuration settings, then exit
30091 -q, --quiet do not print progress messages
30092 -d, --debug don't remove temporary files
30093 --recheck update $as_me by reconfiguring in the same conditions
30094 --file=FILE[:TEMPLATE]
30095 instantiate the configuration file FILE
30096 --header=FILE[:TEMPLATE]
30097 instantiate the configuration header FILE
30098
30099Configuration files:
30100$config_files
30101
30102Configuration headers:
30103$config_headers
30104
30105Report bugs to <bug-autoconf@gnu.org>."
30106
30107_ACEOF
30108cat >>$CONFIG_STATUS <<_ACEOF
30109ac_cs_version="\\
30110OpenSSH config.status Portable
30111configured by $0, generated by GNU Autoconf 2.61,
30112 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30113
30114Copyright (C) 2006 Free Software Foundation, Inc.
30115This config.status script is free software; the Free Software Foundation
30116gives unlimited permission to copy, distribute and modify it."
30117
30118ac_pwd='$ac_pwd'
30119srcdir='$srcdir'
30120INSTALL='$INSTALL'
30121_ACEOF
30122
30123cat >>$CONFIG_STATUS <<\_ACEOF
30124# If no file are specified by the user, then we need to provide default
30125# value. By we need to know if files were specified by the user.
30126ac_need_defaults=:
30127while test $# != 0
30128do
30129 case $1 in
30130 --*=*)
30131 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30132 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30133 ac_shift=:
30134 ;;
30135 *)
30136 ac_option=$1
30137 ac_optarg=$2
30138 ac_shift=shift
30139 ;;
30140 esac
30141
30142 case $ac_option in
30143 # Handling of the options.
30144 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30145 ac_cs_recheck=: ;;
30146 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30147 echo "$ac_cs_version"; exit ;;
30148 --debug | --debu | --deb | --de | --d | -d )
30149 debug=: ;;
30150 --file | --fil | --fi | --f )
30151 $ac_shift
30152 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30153 ac_need_defaults=false;;
30154 --header | --heade | --head | --hea )
30155 $ac_shift
30156 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30157 ac_need_defaults=false;;
30158 --he | --h)
30159 # Conflict between --help and --header
30160 { echo "$as_me: error: ambiguous option: $1
30161Try \`$0 --help' for more information." >&2
30162 { (exit 1); exit 1; }; };;
30163 --help | --hel | -h )
30164 echo "$ac_cs_usage"; exit ;;
30165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30166 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30167 ac_cs_silent=: ;;
30168
30169 # This is an error.
30170 -*) { echo "$as_me: error: unrecognized option: $1
30171Try \`$0 --help' for more information." >&2
30172 { (exit 1); exit 1; }; } ;;
30173
30174 *) ac_config_targets="$ac_config_targets $1"
30175 ac_need_defaults=false ;;
30176
30177 esac
30178 shift
30179done
30180
30181ac_configure_extra_args=
30182
30183if $ac_cs_silent; then
30184 exec 6>/dev/null
30185 ac_configure_extra_args="$ac_configure_extra_args --silent"
30186fi
30187
30188_ACEOF
30189cat >>$CONFIG_STATUS <<_ACEOF
30190if \$ac_cs_recheck; then
30191 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30192 CONFIG_SHELL=$SHELL
30193 export CONFIG_SHELL
30194 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30195fi
30196
30197_ACEOF
30198cat >>$CONFIG_STATUS <<\_ACEOF
30199exec 5>>config.log
30200{
30201 echo
30202 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30203## Running $as_me. ##
30204_ASBOX
30205 echo "$ac_log"
30206} >&5
30207
30208_ACEOF
30209cat >>$CONFIG_STATUS <<_ACEOF
30210_ACEOF
30211
30212cat >>$CONFIG_STATUS <<\_ACEOF
30213
30214# Handling of arguments.
30215for ac_config_target in $ac_config_targets
30216do
30217 case $ac_config_target in
30218 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
30219 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30220 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
30221 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
30222 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
30223 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
30224 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
30225 "ssh_prng_cmds") CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
30226 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
30227
30228 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30229echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30230 { (exit 1); exit 1; }; };;
30231 esac
30232done
30233
30234
30235# If the user did not use the arguments to specify the items to instantiate,
30236# then the envvar interface is used. Set only those that are not.
30237# We use the long form for the default assignment because of an extremely
30238# bizarre bug on SunOS 4.1.3.
30239if $ac_need_defaults; then
30240 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30241 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30242fi
30243
30244# Have a temporary directory for convenience. Make it in the build tree
30245# simply because there is no reason against having it here, and in addition,
30246# creating and moving files from /tmp can sometimes cause problems.
30247# Hook for its removal unless debugging.
30248# Note that there is a small window in which the directory will not be cleaned:
30249# after its creation but before its name has been assigned to `$tmp'.
30250$debug ||
30251{
30252 tmp=
30253 trap 'exit_status=$?
30254 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30255' 0
30256 trap '{ (exit 1); exit 1; }' 1 2 13 15
30257}
30258# Create a (secure) tmp directory for tmp files.
30259
30260{
30261 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30262 test -n "$tmp" && test -d "$tmp"
30263} ||
30264{
30265 tmp=./conf$$-$RANDOM
30266 (umask 077 && mkdir "$tmp")
30267} ||
30268{
30269 echo "$me: cannot create a temporary directory in ." >&2
30270 { (exit 1); exit 1; }
30271}
30272
30273#
30274# Set up the sed scripts for CONFIG_FILES section.
30275#
30276
30277# No need to generate the scripts if there are no CONFIG_FILES.
30278# This happens for instance when ./config.status config.h
30279if test -n "$CONFIG_FILES"; then
30280
30281_ACEOF
30282
30283
30284
30285ac_delim='%!_!# '
30286for ac_last_try in false false false false false :; do
30287 cat >conf$$subs.sed <<_ACEOF
30288SHELL!$SHELL$ac_delim
30289PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30290PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30291PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30292PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30293PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30294PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30295exec_prefix!$exec_prefix$ac_delim
30296prefix!$prefix$ac_delim
30297program_transform_name!$program_transform_name$ac_delim
30298bindir!$bindir$ac_delim
30299sbindir!$sbindir$ac_delim
30300libexecdir!$libexecdir$ac_delim
30301datarootdir!$datarootdir$ac_delim
30302datadir!$datadir$ac_delim
30303sysconfdir!$sysconfdir$ac_delim
30304sharedstatedir!$sharedstatedir$ac_delim
30305localstatedir!$localstatedir$ac_delim
30306includedir!$includedir$ac_delim
30307oldincludedir!$oldincludedir$ac_delim
30308docdir!$docdir$ac_delim
30309infodir!$infodir$ac_delim
30310htmldir!$htmldir$ac_delim
30311dvidir!$dvidir$ac_delim
30312pdfdir!$pdfdir$ac_delim
30313psdir!$psdir$ac_delim
30314libdir!$libdir$ac_delim
30315localedir!$localedir$ac_delim
30316mandir!$mandir$ac_delim
30317DEFS!$DEFS$ac_delim
30318ECHO_C!$ECHO_C$ac_delim
30319ECHO_N!$ECHO_N$ac_delim
30320ECHO_T!$ECHO_T$ac_delim
30321LIBS!$LIBS$ac_delim
30322build_alias!$build_alias$ac_delim
30323host_alias!$host_alias$ac_delim
30324target_alias!$target_alias$ac_delim
30325CC!$CC$ac_delim
30326CFLAGS!$CFLAGS$ac_delim
30327LDFLAGS!$LDFLAGS$ac_delim
30328CPPFLAGS!$CPPFLAGS$ac_delim
30329ac_ct_CC!$ac_ct_CC$ac_delim
30330EXEEXT!$EXEEXT$ac_delim
30331OBJEXT!$OBJEXT$ac_delim
30332build!$build$ac_delim
30333build_cpu!$build_cpu$ac_delim
30334build_vendor!$build_vendor$ac_delim
30335build_os!$build_os$ac_delim
30336host!$host$ac_delim
30337host_cpu!$host_cpu$ac_delim
30338host_vendor!$host_vendor$ac_delim
30339host_os!$host_os$ac_delim
30340CPP!$CPP$ac_delim
30341GREP!$GREP$ac_delim
30342EGREP!$EGREP$ac_delim
30343AWK!$AWK$ac_delim
30344RANLIB!$RANLIB$ac_delim
30345INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30346INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30347INSTALL_DATA!$INSTALL_DATA$ac_delim
30348AR!$AR$ac_delim
30349CAT!$CAT$ac_delim
30350KILL!$KILL$ac_delim
30351PERL!$PERL$ac_delim
30352SED!$SED$ac_delim
30353ENT!$ENT$ac_delim
30354TEST_MINUS_S_SH!$TEST_MINUS_S_SH$ac_delim
30355SH!$SH$ac_delim
30356TEST_SHELL!$TEST_SHELL$ac_delim
30357PATH_GROUPADD_PROG!$PATH_GROUPADD_PROG$ac_delim
30358PATH_USERADD_PROG!$PATH_USERADD_PROG$ac_delim
30359MAKE_PACKAGE_SUPPORTED!$MAKE_PACKAGE_SUPPORTED$ac_delim
30360STARTUP_SCRIPT_SHELL!$STARTUP_SCRIPT_SHELL$ac_delim
30361LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim
30362PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim
30363LD!$LD$ac_delim
30364SSHDLIBS!$SSHDLIBS$ac_delim
30365PKGCONFIG!$PKGCONFIG$ac_delim
30366LIBEDIT!$LIBEDIT$ac_delim
30367INSTALL_SSH_RAND_HELPER!$INSTALL_SSH_RAND_HELPER$ac_delim
30368SSH_PRIVSEP_USER!$SSH_PRIVSEP_USER$ac_delim
30369PROG_LS!$PROG_LS$ac_delim
30370PROG_NETSTAT!$PROG_NETSTAT$ac_delim
30371PROG_ARP!$PROG_ARP$ac_delim
30372PROG_IFCONFIG!$PROG_IFCONFIG$ac_delim
30373PROG_JSTAT!$PROG_JSTAT$ac_delim
30374PROG_PS!$PROG_PS$ac_delim
30375PROG_SAR!$PROG_SAR$ac_delim
30376PROG_W!$PROG_W$ac_delim
30377PROG_WHO!$PROG_WHO$ac_delim
30378PROG_LAST!$PROG_LAST$ac_delim
30379PROG_LASTLOG!$PROG_LASTLOG$ac_delim
30380PROG_DF!$PROG_DF$ac_delim
30381PROG_VMSTAT!$PROG_VMSTAT$ac_delim
30382PROG_UPTIME!$PROG_UPTIME$ac_delim
30383PROG_IPCS!$PROG_IPCS$ac_delim
30384PROG_TAIL!$PROG_TAIL$ac_delim
30385_ACEOF
30386
30387 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30388 break
30389 elif $ac_last_try; then
30390 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30391echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30392 { (exit 1); exit 1; }; }
30393 else
30394 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30395 fi
30396done
30397
30398ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30399if test -n "$ac_eof"; then
30400 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30401 ac_eof=`expr $ac_eof + 1`
30402fi
30403
30404cat >>$CONFIG_STATUS <<_ACEOF
30405cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30406/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30407_ACEOF
30408sed '
30409s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30410s/^/s,@/; s/!/@,|#_!!_#|/
30411:n
30412t n
30413s/'"$ac_delim"'$/,g/; t
30414s/$/\\/; p
30415N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30416' >>$CONFIG_STATUS <conf$$subs.sed
30417rm -f conf$$subs.sed
30418cat >>$CONFIG_STATUS <<_ACEOF
30419CEOF$ac_eof
30420_ACEOF
30421
30422
30423ac_delim='%!_!# '
30424for ac_last_try in false false false false false :; do
30425 cat >conf$$subs.sed <<_ACEOF
30426INSTALL_SSH_PRNG_CMDS!$INSTALL_SSH_PRNG_CMDS$ac_delim
30427KRB5CONF!$KRB5CONF$ac_delim
30428PRIVSEP_PATH!$PRIVSEP_PATH$ac_delim
30429xauth_path!$xauth_path$ac_delim
30430STRIP_OPT!$STRIP_OPT$ac_delim
30431XAUTH_PATH!$XAUTH_PATH$ac_delim
30432NROFF!$NROFF$ac_delim
30433MANTYPE!$MANTYPE$ac_delim
30434mansubdir!$mansubdir$ac_delim
30435user_path!$user_path$ac_delim
30436piddir!$piddir$ac_delim
30437TEST_SSH_IPV6!$TEST_SSH_IPV6$ac_delim
30438LIBOBJS!$LIBOBJS$ac_delim
30439LTLIBOBJS!$LTLIBOBJS$ac_delim
30440_ACEOF
30441
30442 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
30443 break
30444 elif $ac_last_try; then
30445 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30446echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30447 { (exit 1); exit 1; }; }
30448 else
30449 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30450 fi
30451done
30452
30453ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30454if test -n "$ac_eof"; then
30455 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30456 ac_eof=`expr $ac_eof + 1`
30457fi
30458
30459cat >>$CONFIG_STATUS <<_ACEOF
30460cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30461/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30462_ACEOF
30463sed '
30464s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30465s/^/s,@/; s/!/@,|#_!!_#|/
30466:n
30467t n
30468s/'"$ac_delim"'$/,g/; t
30469s/$/\\/; p
30470N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30471' >>$CONFIG_STATUS <conf$$subs.sed
30472rm -f conf$$subs.sed
30473cat >>$CONFIG_STATUS <<_ACEOF
30474:end
30475s/|#_!!_#|//g
30476CEOF$ac_eof
30477_ACEOF
30478
30479
30480# VPATH may cause trouble with some makes, so we remove $(srcdir),
30481# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30482# trailing colons and then remove the whole line if VPATH becomes empty
30483# (actually we leave an empty line to preserve line numbers).
30484if test "x$srcdir" = x.; then
30485 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30486s/:*\$(srcdir):*/:/
30487s/:*\${srcdir}:*/:/
30488s/:*@srcdir@:*/:/
30489s/^\([^=]*=[ ]*\):*/\1/
30490s/:*$//
30491s/^[^=]*=[ ]*$//
30492}'
30493fi
30494
30495cat >>$CONFIG_STATUS <<\_ACEOF
30496fi # test -n "$CONFIG_FILES"
30497
30498
30499for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
30500do
30501 case $ac_tag in
30502 :[FHLC]) ac_mode=$ac_tag; continue;;
30503 esac
30504 case $ac_mode$ac_tag in
30505 :[FHL]*:*);;
30506 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30507echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30508 { (exit 1); exit 1; }; };;
30509 :[FH]-) ac_tag=-:-;;
30510 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30511 esac
30512 ac_save_IFS=$IFS
30513 IFS=:
30514 set x $ac_tag
30515 IFS=$ac_save_IFS
30516 shift
30517 ac_file=$1
30518 shift
30519
30520 case $ac_mode in
30521 :L) ac_source=$1;;
30522 :[FH])
30523 ac_file_inputs=
30524 for ac_f
30525 do
30526 case $ac_f in
30527 -) ac_f="$tmp/stdin";;
30528 *) # Look for the file first in the build tree, then in the source tree
30529 # (if the path is not absolute). The absolute path cannot be DOS-style,
30530 # because $ac_f cannot contain `:'.
30531 test -f "$ac_f" ||
30532 case $ac_f in
30533 [\\/$]*) false;;
30534 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30535 esac ||
30536 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30537echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30538 { (exit 1); exit 1; }; };;
30539 esac
30540 ac_file_inputs="$ac_file_inputs $ac_f"
30541 done
30542
30543 # Let's still pretend it is `configure' which instantiates (i.e., don't
30544 # use $as_me), people would be surprised to read:
30545 # /* config.h. Generated by config.status. */
30546 configure_input="Generated from "`IFS=:
30547 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
30548 if test x"$ac_file" != x-; then
30549 configure_input="$ac_file. $configure_input"
30550 { echo "$as_me:$LINENO: creating $ac_file" >&5
30551echo "$as_me: creating $ac_file" >&6;}
30552 fi
30553
30554 case $ac_tag in
30555 *:-:* | *:-) cat >"$tmp/stdin";;
30556 esac
30557 ;;
30558 esac
30559
30560 ac_dir=`$as_dirname -- "$ac_file" ||
30561$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30562 X"$ac_file" : 'X\(//\)[^/]' \| \
30563 X"$ac_file" : 'X\(//\)$' \| \
30564 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30565echo X"$ac_file" |
30566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30567 s//\1/
30568 q
30569 }
30570 /^X\(\/\/\)[^/].*/{
30571 s//\1/
30572 q
30573 }
30574 /^X\(\/\/\)$/{
30575 s//\1/
30576 q
30577 }
30578 /^X\(\/\).*/{
30579 s//\1/
30580 q
30581 }
30582 s/.*/./; q'`
30583 { as_dir="$ac_dir"
30584 case $as_dir in #(
30585 -*) as_dir=./$as_dir;;
30586 esac
30587 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30588 as_dirs=
30589 while :; do
30590 case $as_dir in #(
30591 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30592 *) as_qdir=$as_dir;;
30593 esac
30594 as_dirs="'$as_qdir' $as_dirs"
30595 as_dir=`$as_dirname -- "$as_dir" ||
30596$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30597 X"$as_dir" : 'X\(//\)[^/]' \| \
30598 X"$as_dir" : 'X\(//\)$' \| \
30599 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30600echo X"$as_dir" |
30601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30602 s//\1/
30603 q
30604 }
30605 /^X\(\/\/\)[^/].*/{
30606 s//\1/
30607 q
30608 }
30609 /^X\(\/\/\)$/{
30610 s//\1/
30611 q
30612 }
30613 /^X\(\/\).*/{
30614 s//\1/
30615 q
30616 }
30617 s/.*/./; q'`
30618 test -d "$as_dir" && break
30619 done
30620 test -z "$as_dirs" || eval "mkdir $as_dirs"
30621 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30622echo "$as_me: error: cannot create directory $as_dir" >&2;}
30623 { (exit 1); exit 1; }; }; }
30624 ac_builddir=.
30625
30626case "$ac_dir" in
30627.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30628*)
30629 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30630 # A ".." for each directory in $ac_dir_suffix.
30631 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
30632 case $ac_top_builddir_sub in
30633 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30634 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30635 esac ;;
30636esac
30637ac_abs_top_builddir=$ac_pwd
30638ac_abs_builddir=$ac_pwd$ac_dir_suffix
30639# for backward compatibility:
30640ac_top_builddir=$ac_top_build_prefix
30641
30642case $srcdir in
30643 .) # We are building in place.
30644 ac_srcdir=.
30645 ac_top_srcdir=$ac_top_builddir_sub
30646 ac_abs_top_srcdir=$ac_pwd ;;
30647 [\\/]* | ?:[\\/]* ) # Absolute name.
30648 ac_srcdir=$srcdir$ac_dir_suffix;
30649 ac_top_srcdir=$srcdir
30650 ac_abs_top_srcdir=$srcdir ;;
30651 *) # Relative name.
30652 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30653 ac_top_srcdir=$ac_top_build_prefix$srcdir
30654 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30655esac
30656ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30657
30658
30659 case $ac_mode in
30660 :F)
30661 #
30662 # CONFIG_FILE
30663 #
30664
30665 case $INSTALL in
30666 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30667 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30668 esac
30669_ACEOF
30670
30671cat >>$CONFIG_STATUS <<\_ACEOF
30672# If the template does not know about datarootdir, expand it.
30673# FIXME: This hack should be removed a few years after 2.60.
30674ac_datarootdir_hack=; ac_datarootdir_seen=
30675
30676case `sed -n '/datarootdir/ {
30677 p
30678 q
30679}
30680/@datadir@/p
30681/@docdir@/p
30682/@infodir@/p
30683/@localedir@/p
30684/@mandir@/p
30685' $ac_file_inputs` in
30686*datarootdir*) ac_datarootdir_seen=yes;;
30687*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30688 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30689echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30690_ACEOF
30691cat >>$CONFIG_STATUS <<_ACEOF
30692 ac_datarootdir_hack='
30693 s&@datadir@&$datadir&g
30694 s&@docdir@&$docdir&g
30695 s&@infodir@&$infodir&g
30696 s&@localedir@&$localedir&g
30697 s&@mandir@&$mandir&g
30698 s&\\\${datarootdir}&$datarootdir&g' ;;
30699esac
30700_ACEOF
30701
30702# Neutralize VPATH when `$srcdir' = `.'.
30703# Shell code in configure.ac might set extrasub.
30704# FIXME: do we really want to maintain this feature?
30705cat >>$CONFIG_STATUS <<_ACEOF
30706 sed "$ac_vpsub
30707$extrasub
30708_ACEOF
30709cat >>$CONFIG_STATUS <<\_ACEOF
30710:t
30711/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30712s&@configure_input@&$configure_input&;t t
30713s&@top_builddir@&$ac_top_builddir_sub&;t t
30714s&@srcdir@&$ac_srcdir&;t t
30715s&@abs_srcdir@&$ac_abs_srcdir&;t t
30716s&@top_srcdir@&$ac_top_srcdir&;t t
30717s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30718s&@builddir@&$ac_builddir&;t t
30719s&@abs_builddir@&$ac_abs_builddir&;t t
30720s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30721s&@INSTALL@&$ac_INSTALL&;t t
30722$ac_datarootdir_hack
30723" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
30724
30725test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30726 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30727 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30728 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30729which seems to be undefined. Please make sure it is defined." >&5
30730echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30731which seems to be undefined. Please make sure it is defined." >&2;}
30732
30733 rm -f "$tmp/stdin"
30734 case $ac_file in
30735 -) cat "$tmp/out"; rm -f "$tmp/out";;
30736 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30737 esac
30738 ;;
30739 :H)
30740 #
30741 # CONFIG_HEADER
30742 #
30743_ACEOF
30744
30745# Transform confdefs.h into a sed script `conftest.defines', that
30746# substitutes the proper values into config.h.in to produce config.h.
30747rm -f conftest.defines conftest.tail
30748# First, append a space to every undef/define line, to ease matching.
30749echo 's/$/ /' >conftest.defines
30750# Then, protect against being on the right side of a sed subst, or in
30751# an unquoted here document, in config.status. If some macros were
30752# called several times there might be several #defines for the same
30753# symbol, which is useless. But do not sort them, since the last
30754# AC_DEFINE must be honored.
30755ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30756# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30757# NAME is the cpp macro being defined, VALUE is the value it is being given.
30758# PARAMS is the parameter list in the macro definition--in most cases, it's
30759# just an empty string.
30760ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
30761ac_dB='\\)[ (].*,\\1define\\2'
30762ac_dC=' '
30763ac_dD=' ,'
30764
30765uniq confdefs.h |
30766 sed -n '
30767 t rset
30768 :rset
30769 s/^[ ]*#[ ]*define[ ][ ]*//
30770 t ok
30771 d
30772 :ok
30773 s/[\\&,]/\\&/g
30774 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
30775 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
30776 ' >>conftest.defines
30777
30778# Remove the space that was appended to ease matching.
30779# Then replace #undef with comments. This is necessary, for
30780# example, in the case of _POSIX_SOURCE, which is predefined and required
30781# on some systems where configure will not decide to define it.
30782# (The regexp can be short, since the line contains either #define or #undef.)
30783echo 's/ $//
30784s,^[ #]*u.*,/* & */,' >>conftest.defines
30785
30786# Break up conftest.defines:
30787ac_max_sed_lines=50
30788
30789# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30790# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30791# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30792# et cetera.
30793ac_in='$ac_file_inputs'
30794ac_out='"$tmp/out1"'
30795ac_nxt='"$tmp/out2"'
30796
30797while :
30798do
30799 # Write a here document:
30800 cat >>$CONFIG_STATUS <<_ACEOF
30801 # First, check the format of the line:
30802 cat >"\$tmp/defines.sed" <<\\CEOF
30803/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
30804/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
30805b
30806:def
30807_ACEOF
30808 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30809 echo 'CEOF
30810 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30811 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30812 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30813 grep . conftest.tail >/dev/null || break
30814 rm -f conftest.defines
30815 mv conftest.tail conftest.defines
30816done
30817rm -f conftest.defines conftest.tail
30818
30819echo "ac_result=$ac_in" >>$CONFIG_STATUS
30820cat >>$CONFIG_STATUS <<\_ACEOF
30821 if test x"$ac_file" != x-; then
30822 echo "/* $configure_input */" >"$tmp/config.h"
30823 cat "$ac_result" >>"$tmp/config.h"
30824 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30825 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30826echo "$as_me: $ac_file is unchanged" >&6;}
30827 else
30828 rm -f $ac_file
30829 mv "$tmp/config.h" $ac_file
30830 fi
30831 else
30832 echo "/* $configure_input */"
30833 cat "$ac_result"
30834 fi
30835 rm -f "$tmp/out12"
30836 ;;
30837
30838
30839 esac
30840
30841done # for ac_tag
30842
30843
30844{ (exit 0); exit 0; }
30845_ACEOF
30846chmod +x $CONFIG_STATUS
30847ac_clean_files=$ac_clean_files_save
30848
30849
30850# configure is writing to config.log, and then calls config.status.
30851# config.status does its own redirection, appending to config.log.
30852# Unfortunately, on DOS this fails, as config.log is still kept open
30853# by configure, so config.status won't be able to write to it; its
30854# output is simply discarded. So we exec the FD to /dev/null,
30855# effectively closing config.log, so it can be properly (re)opened and
30856# appended to by config.status. When coming back to configure, we
30857# need to make the FD available again.
30858if test "$no_create" != yes; then
30859 ac_cs_success=:
30860 ac_config_status_args=
30861 test "$silent" = yes &&
30862 ac_config_status_args="$ac_config_status_args --quiet"
30863 exec 5>/dev/null
30864 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30865 exec 5>>config.log
30866 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30867 # would make configure fail if this is the last instruction.
30868 $ac_cs_success || { (exit 1); exit 1; }
30869fi
30870
30871
30872# Print summary of options
30873
30874# Someone please show me a better way :)
30875A=`eval echo ${prefix}` ; A=`eval echo ${A}`
30876B=`eval echo ${bindir}` ; B=`eval echo ${B}`
30877C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
30878D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
30879E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
30880F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
30881G=`eval echo ${piddir}` ; G=`eval echo ${G}`
30882H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
30883I=`eval echo ${user_path}` ; I=`eval echo ${I}`
30884J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
30885
30886echo ""
30887echo "OpenSSH has been configured with the following options:"
30888echo " User binaries: $B"
30889echo " System binaries: $C"
30890echo " Configuration files: $D"
30891echo " Askpass program: $E"
30892echo " Manual pages: $F"
30893echo " PID file: $G"
30894echo " Privilege separation chroot path: $H"
30895if test "x$external_path_file" = "x/etc/login.conf" ; then
30896echo " At runtime, sshd will use the path defined in $external_path_file"
30897echo " Make sure the path to scp is present, otherwise scp will not work"
30898else
30899echo " sshd default user PATH: $I"
30900 if test ! -z "$external_path_file"; then
30901echo " (If PATH is set in $external_path_file it will be used instead. If"
30902echo " used, ensure the path to scp is present, otherwise scp will not work.)"
30903 fi
30904fi
30905if test ! -z "$superuser_path" ; then
30906echo " sshd superuser user PATH: $J"
30907fi
30908echo " Manpage format: $MANTYPE"
30909echo " PAM support: $PAM_MSG"
30910echo " OSF SIA support: $SIA_MSG"
30911echo " KerberosV support: $KRB5_MSG"
30912echo " SELinux support: $SELINUX_MSG"
30913echo " Smartcard support: $SCARD_MSG"
30914echo " S/KEY support: $SKEY_MSG"
30915echo " TCP Wrappers support: $TCPW_MSG"
30916echo " MD5 password support: $MD5_MSG"
30917echo " libedit support: $LIBEDIT_MSG"
30918echo " Solaris process contract support: $SPC_MSG"
30919echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
30920echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
30921echo " BSD Auth support: $BSD_AUTH_MSG"
30922echo " Random number source: $RAND_MSG"
30923if test ! -z "$USE_RAND_HELPER" ; then
30924echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
30925fi
30926
30927echo ""
30928
30929echo " Host: ${host}"
30930echo " Compiler: ${CC}"
30931echo " Compiler flags: ${CFLAGS}"
30932echo "Preprocessor flags: ${CPPFLAGS}"
30933echo " Linker flags: ${LDFLAGS}"
30934echo " Libraries: ${LIBS}"
30935if test ! -z "${SSHDLIBS}"; then
30936echo " +for sshd: ${SSHDLIBS}"
30937fi
30938
30939echo ""
30940
30941if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
30942 echo "SVR4 style packages are supported with \"make package\""
30943 echo ""
30944fi
30945
30946if test "x$PAM_MSG" = "xyes" ; then
30947 echo "PAM is enabled. You may need to install a PAM control file "
30948 echo "for sshd, otherwise password authentication may fail. "
30949 echo "Example PAM control files can be found in the contrib/ "
30950 echo "subdirectory"
30951 echo ""
30952fi
30953
30954if test ! -z "$RAND_HELPER_CMDHASH" ; then
30955 echo "WARNING: you are using the builtin random number collection "
30956 echo "service. Please read WARNING.RNG and request that your OS "
30957 echo "vendor includes kernel-based random number collection in "
30958 echo "future versions of your OS."
30959 echo ""
30960fi
30961
30962if test ! -z "$NO_PEERCHECK" ; then
30963 echo "WARNING: the operating system that you are using does not"
30964 echo "appear to support getpeereid(), getpeerucred() or the"
30965 echo "SO_PEERCRED getsockopt() option. These facilities are used to"
30966 echo "enforce security checks to prevent unauthorised connections to"
30967 echo "ssh-agent. Their absence increases the risk that a malicious"
30968 echo "user can connect to your agent."
30969 echo ""
30970fi
30971
30972if test "$AUDIT_MODULE" = "bsm" ; then
30973 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
30974 echo "See the Solaris section in README.platform for details."
30975fi
diff --git a/contrib/solaris/README b/contrib/solaris/README
index fefdd4b53..fefdd4b53 100644..100755
--- a/contrib/solaris/README
+++ b/contrib/solaris/README
diff --git a/moduli.0 b/moduli.0
new file mode 100644
index 000000000..e3fea22a9
--- /dev/null
+++ b/moduli.0
@@ -0,0 +1,72 @@
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, contain-
18 ing seven space separated fields. These fields are as follows:
19
20 timestamp The time that the modulus was last processed as YYYYM-
21 MDDHHMMSS.
22
23 type Decimal number specifying the internal structure of
24 the prime modulus. Supported types are:
25
26 0 Unknown, not tested
27 2 "Safe" prime; (p-1)/2 is also prime.
28 4 Sophie Germain; (p+1)*2 is also prime.
29
30 Moduli candidates initially produced by ssh-keygen(1)
31 are Sophie Germain primes (type 4). Futher primality
32 testing with ssh-keygen(1) produces safe prime moduli
33 (type 2) that are ready for use in sshd(8). Other
34 types are not used by OpenSSH.
35
36 tests Decimal number indicating the type of primality tests
37 that the number has been subjected to represented as a
38 bitmask of the following values:
39
40 0x00 Not tested
41 0x01 Composite number - not prime.
42 0x02 Sieve of Eratosthenes
43 0x04 Probabalistic Miller-Rabin primality tests.
44
45 The ssh-keygen(1) moduli candidate generation uses the
46 Sieve of Eratosthenes (flag 0x02). Subsequent
47 ssh-keygen(1) primality tests are Miller-Rabin tests
48 (flag 0x04).
49
50 trials Decimal number indicating of primaility trials that
51 have been performed on the modulus.
52
53 size Decimal number indicating the size of the prime in
54 bits.
55
56 generator The recommended generator for use with this modulus
57 (hexadecimal).
58
59 modulus The modulus itself in hexadecimal.
60
61 When performing Diffie Hellman Group Exchange, sshd(8) first estimates
62 the size of the modulus required to produce enough Diffie Hellman output
63 to sufficiently key the selected symmetric cipher. sshd(8) then randomly
64 selects a modulus from /etc/moduli that best meets the size requirement.
65
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 4.7 June 26, 2008 2
diff --git a/openbsd-compat/.cvsignore b/openbsd-compat/.cvsignore
deleted file mode 100644
index f3c7a7c5d..000000000
--- a/openbsd-compat/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
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..fc9f75594
--- /dev/null
+++ b/scp.0
@@ -0,0 +1,148 @@
1SCP(1) OpenBSD Reference Manual SCP(1)
2
3NAME
4 scp - secure copy (remote file copy program)
5
6SYNOPSIS
7 scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
8 [-l limit] [-o ssh_option] [-P port] [-S program]
9 [[user@]host1:]file1 ... [[user@]host2:]file2
10
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 ex-
19 plicit using absolute or relative pathnames to avoid scp treating file
20 names containing `:' as host specifiers. Copies between two remote hosts
21 are also permitted.
22
23 The options are as follows:
24
25 -1 Forces scp to use protocol 1.
26
27 -2 Forces scp to use protocol 2.
28
29 -4 Forces scp to use IPv4 addresses only.
30
31 -6 Forces scp to use IPv6 addresses only.
32
33 -B Selects batch mode (prevents asking for passwords or passphras-
34 es).
35
36 -C Compression enable. Passes the -C flag to ssh(1) to enable com-
37 pression.
38
39 -c cipher
40 Selects the cipher to use for encrypting the data transfer. This
41 option is directly passed to ssh(1).
42
43 -F ssh_config
44 Specifies an alternative per-user configuration file for ssh.
45 This option is directly passed to ssh(1).
46
47 -i identity_file
48 Selects the file from which the identity (private key) for public
49 key authentication is read. This option is directly passed to
50 ssh(1).
51
52 -l limit
53 Limits the used bandwidth, specified in Kbit/s.
54
55 -o ssh_option
56 Can be used to pass options to ssh in the format used in
57 ssh_config(5). This is useful for specifying options for which
58 there is no separate scp command-line flag. For full details of
59 the options listed below, and their possible values, see
60 ssh_config(5).
61
62 AddressFamily
63 BatchMode
64 BindAddress
65 ChallengeResponseAuthentication
66 CheckHostIP
67 Cipher
68 Ciphers
69 Compression
70 CompressionLevel
71 ConnectionAttempts
72 ConnectTimeout
73 ControlMaster
74 ControlPath
75 GlobalKnownHostsFile
76 GSSAPIAuthentication
77 GSSAPIDelegateCredentials
78 HashKnownHosts
79 Host
80 HostbasedAuthentication
81 HostKeyAlgorithms
82 HostKeyAlias
83 HostName
84 IdentityFile
85 IdentitiesOnly
86 KbdInteractiveDevices
87 LogLevel
88 MACs
89 NoHostAuthenticationForLocalhost
90 NumberOfPasswordPrompts
91 PasswordAuthentication
92 PKCS11Provider
93 Port
94 PreferredAuthentications
95 Protocol
96 ProxyCommand
97 PubkeyAuthentication
98 RekeyLimit
99 RhostsRSAAuthentication
100 RSAAuthentication
101 SendEnv
102 ServerAliveInterval
103 ServerAliveCountMax
104 StrictHostKeyChecking
105 TCPKeepAlive
106 UsePrivilegedPort
107 User
108 UserKnownHostsFile
109 VerifyHostKeyDNS
110
111 -P port
112 Specifies the port to connect to on the remote host. Note that
113 this option is written with a capital `P', because -p is already
114 reserved for preserving the times and modes of the file in
115 rcp(1).
116
117 -p Preserves modification times, access times, and modes from the
118 original file.
119
120 -q Quiet mode: disables the progress meter as well as warning and
121 diagnostic messages from ssh(1).
122
123 -r Recursively copy entire directories. Note that scp follows sym-
124 bolic links encountered in the tree traversal.
125
126 -S program
127 Name of program to use for the encrypted connection. The program
128 must understand ssh(1) options.
129
130 -v Verbose mode. Causes scp and ssh(1) to print debugging messages
131 about their progress. This is helpful in debugging connection,
132 authentication, and configuration problems.
133
134 The scp utility exits 0 on success, and >0 if an error occurs.
135
136SEE ALSO
137 rcp(1), sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1),
138 ssh_config(5), sshd(8)
139
140HISTORY
141 scp is based on the rcp(1) program in BSD source code from the Regents of
142 the University of California.
143
144AUTHORS
145 Timo Rinne <tri@iki.fi>
146 Tatu Ylonen <ylo@cs.hut.fi>
147
148OpenBSD 4.7 February 8, 2010 3
diff --git a/sftp-server.0 b/sftp-server.0
new file mode 100644
index 000000000..0c2654c8d
--- /dev/null
+++ b/sftp-server.0
@@ -0,0 +1,63 @@
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 in-
12 tended to be called directly, but from sshd(8) using the Subsystem op-
13 tion.
14
15 Command-line flags to sftp-server should be specified in the Subsystem
16 declaration. See sshd_config(5) for more information.
17
18 Valid options are:
19
20 -e Causes sftp-server to print logging information to stderr instead
21 of syslog for debugging.
22
23 -f log_facility
24 Specifies the facility code that is used when logging messages
25 from sftp-server. The possible values are: DAEMON, USER, AUTH,
26 LOCAL0, LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7.
27 The default is AUTH.
28
29 -h Displays sftp-server usage information.
30
31 -l log_level
32 Specifies which messages will be logged by sftp-server. The pos-
33 sible values are: QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DE-
34 BUG1, DEBUG2, and DEBUG3. INFO and VERBOSE log transactions that
35 sftp-server performs on behalf of the client. DEBUG and DEBUG1
36 are equivalent. DEBUG2 and DEBUG3 each specify higher levels of
37 debugging output. The default is ERROR.
38
39 -R Places this instance of sftp-server into a read-only mode. At-
40 tempts to open files for writing, as well as other operations
41 that change the state of the filesystem, will be denied.
42
43 -u umask
44 Sets an explicit umask(2) to be applied to newly-created files
45 and directories, instead of the user's default mask.
46
47 For logging to work, sftp-server must be able to access /dev/log. Use of
48 sftp-server in a chroot configuration therefore requires that syslogd(8)
49 establish a logging socket inside the chroot directory.
50
51SEE ALSO
52 sftp(1), ssh(1), sshd_config(5), sshd(8)
53
54 T. Ylonen and S. Lehtinen, SSH File Transfer Protocol, draft-ietf-secsh-
55 filexfer-00.txt, January 2001, work in progress material.
56
57HISTORY
58 sftp-server first appeared in OpenBSD 2.8.
59
60AUTHORS
61 Markus Friedl <markus@openbsd.org>
62
63OpenBSD 4.7 January 9, 2010 1
diff --git a/sftp.0 b/sftp.0
new file mode 100644
index 000000000..488548a6e
--- /dev/null
+++ b/sftp.0
@@ -0,0 +1,319 @@
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]
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 compres-
19 sion. sftp connects and logs into the specified host, then enters an in-
20 teractive command mode.
21
22 The second usage format will retrieve files automatically if a non-inter-
23 active authentication method is used; otherwise it will do so after suc-
24 cessful interactive authentication.
25
26 The third usage format allows sftp to start in a remote directory.
27
28 The final usage format allows for automated sessions using the -b option.
29 In such cases, it is necessary to configure non-interactive authentica-
30 tion to obviate the need to enter a password at connection time (see
31 sshd(8) and ssh-keygen(1) for details). The options are as follows:
32
33 -1 Specify the use of protocol version 1.
34
35 -2 Specify the use of protocol version 2.
36
37 -4 Forces sftp to use IPv4 addresses only.
38
39 -6 Forces sftp to use IPv6 addresses only.
40
41 -B buffer_size
42 Specify the size of the buffer that sftp uses when transferring
43 files. Larger buffers require fewer round trips at the cost of
44 higher memory consumption. The default is 32768 bytes.
45
46 -b batchfile
47 Batch mode reads a series of commands from an input batchfile in-
48 stead of stdin. Since it lacks user interaction it should be
49 used in conjunction with non-interactive authentication. A
50 batchfile of `-' may be used to indicate standard input. sftp
51 will abort if any of the following commands fail: get, put,
52 rename, ln, rm, mkdir, chdir, ls, lchdir, chmod, chown, chgrp,
53 lpwd, df, and lmkdir. Termination on error can be suppressed on
54 a command by command basis by prefixing the command with a `-'
55 character (for example, -rm /tmp/blah*).
56
57 -C Enables compression (via ssh's -C flag).
58
59 -c cipher
60 Selects the cipher to use for encrypting the data transfers.
61 This option is directly passed to ssh(1).
62
63 -D sftp_server_path
64 Connect directly to a local sftp server (rather than via ssh(1)).
65 This option may be useful in debugging the client and server.
66
67 -F ssh_config
68 Specifies an alternative per-user configuration file for ssh(1).
69 This option is directly passed to ssh(1).
70
71 -i identity_file
72 Selects the file from which the identity (private key) for public
73 key authentication is read. This option is directly passed to
74 ssh(1).
75
76 -o ssh_option
77 Can be used to pass options to ssh in the format used in
78 ssh_config(5). This is useful for specifying options for which
79 there is no separate sftp command-line flag. For example, to
80 specify an alternate port use: sftp -oPort=24. For full details
81 of the options listed below, and their possible values, see
82 ssh_config(5).
83
84 AddressFamily
85 BatchMode
86 BindAddress
87 ChallengeResponseAuthentication
88 CheckHostIP
89 Cipher
90 Ciphers
91 Compression
92 CompressionLevel
93 ConnectionAttempts
94 ConnectTimeout
95 ControlMaster
96 ControlPath
97 GlobalKnownHostsFile
98 GSSAPIAuthentication
99 GSSAPIDelegateCredentials
100 HashKnownHosts
101 Host
102 HostbasedAuthentication
103 HostKeyAlgorithms
104 HostKeyAlias
105 HostName
106 IdentityFile
107 IdentitiesOnly
108 KbdInteractiveDevices
109 LogLevel
110 MACs
111 NoHostAuthenticationForLocalhost
112 NumberOfPasswordPrompts
113 PasswordAuthentication
114 PKCS11Provider
115 Port
116 PreferredAuthentications
117 Protocol
118 ProxyCommand
119 PubkeyAuthentication
120 RekeyLimit
121 RhostsRSAAuthentication
122 RSAAuthentication
123 SendEnv
124 ServerAliveInterval
125 ServerAliveCountMax
126 StrictHostKeyChecking
127 TCPKeepAlive
128 UsePrivilegedPort
129 User
130 UserKnownHostsFile
131 VerifyHostKeyDNS
132
133 -P port
134 Specifies the port to connect to on the remote host.
135
136 -p Preserves modification times, access times, and modes from the
137 original files transferred.
138
139 -q Quiet mode: disables the progress meter as well as warning and
140 diagnostic messages from ssh(1).
141
142 -R num_requests
143 Specify how many requests may be outstanding at any one time.
144 Increasing this may slightly improve file transfer speed but will
145 increase memory usage. The default is 64 outstanding requests.
146
147 -r Recursively copy entire directories when uploading and download-
148 ing. Note that sftp does not follow symbolic links encountered
149 in the tree traversal.
150
151 -S program
152 Name of the program to use for the encrypted connection. The
153 program must understand ssh(1) options.
154
155 -s subsystem | sftp_server
156 Specifies the SSH2 subsystem or the path for an sftp server on
157 the remote host. A path is useful for using sftp over protocol
158 version 1, or when the remote sshd(8) does not have an sftp sub-
159 system configured.
160
161 -v Raise logging level. This option is also passed to ssh.
162
163INTERACTIVE COMMANDS
164 Once in interactive mode, sftp understands a set of commands similar to
165 those of ftp(1). Commands are case insensitive. Pathnames that contain
166 spaces must be enclosed in quotes. Any special characters contained
167 within pathnames that are recognized by glob(3) must be escaped with
168 backslashes (`\').
169
170 bye Quit sftp.
171
172 cd path
173 Change remote directory to path.
174
175 chgrp grp path
176 Change group of file path to grp. path may contain glob(3) char-
177 acters and may match multiple files. grp must be a numeric GID.
178
179 chmod mode path
180 Change permissions of file path to mode. path may contain
181 glob(3) characters and may match multiple files.
182
183 chown own path
184 Change owner of file path to own. path may contain glob(3) char-
185 acters and may match multiple files. own must be a numeric UID.
186
187 df [-hi] [path]
188 Display usage information for the filesystem holding the current
189 directory (or path if specified). If the -h flag is specified,
190 the capacity information will be displayed using "human-readable"
191 suffixes. The -i flag requests display of inode information in
192 addition to capacity information. This command is only supported
193 on servers that implement the ``statvfs@openssh.com'' extension.
194
195 exit Quit sftp.
196
197 get [-Ppr] remote-path [local-path]
198 Retrieve the remote-path and store it on the local machine. If
199 the local path name is not specified, it is given the same name
200 it has on the remote machine. remote-path may contain glob(3)
201 characters and may match multiple files. If it does and local-
202 path is specified, then local-path must specify a directory.
203
204 If either the -P or -p flag is specified, then full file permis-
205 sions and access times are copied too.
206
207 If the -r flag is specified then directories will be copied re-
208 cursively. Note that sftp does not follow symbolic links when
209 performing recursive transfers.
210
211 help Display help text.
212
213 lcd path
214 Change local directory to path.
215
216 lls [ls-options [path]]
217 Display local directory listing of either path or current direc-
218 tory if path is not specified. ls-options may contain any flags
219 supported by the local system's ls(1) command. path may contain
220 glob(3) characters and may match multiple files.
221
222 lmkdir path
223 Create local directory specified by path.
224
225 ln oldpath newpath
226 Create a symbolic link from oldpath to newpath.
227
228 lpwd Print local working directory.
229
230 ls [-1afhlnrSt] [path]
231 Display a remote directory listing of either path or the current
232 directory if path is not specified. path may contain glob(3)
233 characters and may match multiple files.
234
235 The following flags are recognized and alter the behaviour of ls
236 accordingly:
237
238 -1 Produce single columnar output.
239
240 -a List files beginning with a dot (`.').
241
242 -f Do not sort the listing. The default sort order is lexi-
243 cographical.
244
245 -h When used with a long format option, use unit suffixes:
246 Byte, Kilobyte, Megabyte, Gigabyte, Terabyte, Petabyte,
247 and Exabyte in order to reduce the number of digits to
248 four or fewer using powers of 2 for sizes (K=1024,
249 M=1048576, etc.).
250
251 -l Display additional details including permissions and own-
252 ership information.
253
254 -n Produce a long listing with user and group information
255 presented numerically.
256
257 -r Reverse the sort order of the listing.
258
259 -S Sort the listing by file size.
260
261 -t Sort the listing by last modification time.
262
263 lumask umask
264 Set local umask to umask.
265
266 mkdir path
267 Create remote directory specified by path.
268
269 progress
270 Toggle display of progress meter.
271
272 put [-Ppr] local-path [remote-path]
273 Upload local-path and store it on the remote machine. If the re-
274 mote path name is not specified, it is given the same name it has
275 on the local machine. local-path may contain glob(3) characters
276 and may match multiple files. If it does and remote-path is
277 specified, then remote-path must specify a directory.
278
279 If ether the -P or -p flag is specified, then full file permis-
280 sions and access times are copied too.
281
282 If the -r flag is specified then directories will be copied re-
283 cursively. Note that sftp does not follow symbolic links when
284 performing recursive transfers.
285
286 pwd Display remote working directory.
287
288 quit Quit sftp.
289
290 rename oldpath newpath
291 Rename remote file from oldpath to newpath.
292
293 rm path
294 Delete remote file specified by path.
295
296 rmdir path
297 Remove remote directory specified by path.
298
299 symlink oldpath newpath
300 Create a symbolic link from oldpath to newpath.
301
302 version
303 Display the sftp protocol version.
304
305 !command
306 Execute command in local shell.
307
308 ! Escape to local shell.
309
310 ? Synonym for help.
311
312SEE ALSO
313 ftp(1), ls(1), scp(1), ssh(1), ssh-add(1), ssh-keygen(1), glob(3),
314 ssh_config(5), sftp-server(8), sshd(8)
315
316 T. Ylonen and S. Lehtinen, SSH File Transfer Protocol, draft-ietf-secsh-
317 filexfer-00.txt, January 2001, work in progress material.
318
319OpenBSD 4.7 February 8, 2010 5
diff --git a/ssh-add.0 b/ssh-add.0
new file mode 100644
index 000000000..0d49c5ea3
--- /dev/null
+++ b/ssh-add.0
@@ -0,0 +1,109 @@
1SSH-ADD(1) OpenBSD Reference Manual SSH-ADD(1)
2
3NAME
4 ssh-add - adds RSA or DSA 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 RSA or DSA identities to the authentication agent,
13 ssh-agent(1). When run without arguments, it adds the files
14 ~/.ssh/id_rsa, ~/.ssh/id_dsa and ~/.ssh/identity. After loading a pri-
15 vate key, ssh-add will try to load corresponding certificate information
16 from the filename obtained by appending -cert.pub to the name of the pri-
17 vate key file. Alternative file names can be given on the command line.
18
19 If any file requires a passphrase, ssh-add asks for the passphrase from
20 the user. The passphrase is read from the user's tty. ssh-add retries
21 the last passphrase if multiple identity files are given.
22
23 The authentication agent must be running and the SSH_AUTH_SOCK environ-
24 ment variable must contain the name of its socket for ssh-add to work.
25
26 The options are as follows:
27
28 -c Indicates that added identities should be subject to confirmation
29 before being used for authentication. Confirmation is performed
30 by the SSH_ASKPASS program mentioned below. Successful confirma-
31 tion is signaled by a zero exit status from the SSH_ASKPASS pro-
32 gram, rather than text entered into the requester.
33
34 -D Deletes all identities from the agent.
35
36 -d Instead of adding identities, removes identities from the agent.
37 If ssh-add has been run without arguments, the keys for the de-
38 fault identities will be removed. Otherwise, the argument list
39 will be interpreted as a list of paths to public key files and
40 matching keys will be removed from the agent. If no public key
41 is found at a given path, ssh-add will append .pub and retry.
42
43 -e pkcs11
44 Remove keys provided by the PKCS#11 shared library pkcs11.
45
46 -L Lists public key parameters of all identities currently repre-
47 sented by the agent.
48
49 -l Lists fingerprints of all identities currently represented by the
50 agent.
51
52 -s pkcs11
53 Add keys provided by the PKCS#11 shared library pkcs11.
54
55 -t life
56 Set a maximum lifetime when adding identities to an agent. The
57 lifetime may be specified in seconds or in a time format speci-
58 fied in sshd_config(5).
59
60 -X Unlock the agent.
61
62 -x Lock the agent with a password.
63
64ENVIRONMENT
65 DISPLAY and SSH_ASKPASS
66 If ssh-add needs a passphrase, it will read the passphrase from
67 the current terminal if it was run from a terminal. If ssh-add
68 does not have a terminal associated with it but DISPLAY and
69 SSH_ASKPASS are set, it will execute the program specified by
70 SSH_ASKPASS and open an X11 window to read the passphrase. This
71 is particularly useful when calling ssh-add from a .xsession or
72 related script. (Note that on some machines it may be necessary
73 to redirect the input from /dev/null to make this work.)
74
75 SSH_AUTH_SOCK
76 Identifies the path of a UNIX-domain socket used to communicate
77 with the agent.
78
79FILES
80 ~/.ssh/identity
81 Contains the protocol version 1 RSA authentication identity of
82 the user.
83
84 ~/.ssh/id_dsa
85 Contains the protocol version 2 DSA authentication identity of
86 the user.
87
88 ~/.ssh/id_rsa
89 Contains the protocol version 2 RSA authentication identity of
90 the user.
91
92 Identity files should not be readable by anyone but the user. Note that
93 ssh-add ignores identity files if they are accessible by others.
94
95DIAGNOSTICS
96 Exit status is 0 on success, 1 if the specified command fails, and 2 if
97 ssh-add is unable to contact the authentication agent.
98
99SEE ALSO
100 ssh(1), ssh-agent(1), ssh-keygen(1), sshd(8)
101
102AUTHORS
103 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
104 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
105 de Raadt and Dug Song removed many bugs, re-added newer features and cre-
106 ated OpenSSH. Markus Friedl contributed the support for SSH protocol
107 versions 1.5 and 2.0.
108
109OpenBSD 4.7 March 5, 2010 2
diff --git a/ssh-agent.0 b/ssh-agent.0
new file mode 100644
index 000000000..536eac756
--- /dev/null
+++ b/ssh-agent.0
@@ -0,0 +1,118 @@
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 authenti-
12 cation (RSA, DSA). The idea is that ssh-agent is started in the begin-
13 ning of an X-session or a login session, and all other windows or pro-
14 grams are started as clients to the ssh-agent program. Through use of
15 environment variables the agent can be located and automatically used for
16 authentication when logging in to other machines using ssh(1).
17
18 The options are as follows:
19
20 -a bind_address
21 Bind the agent to the UNIX-domain socket bind_address. The de-
22 fault is /tmp/ssh-XXXXXXXXXX/agent.<ppid>.
23
24 -c Generate C-shell commands on stdout. This is the default if
25 SHELL looks like it's a csh style of shell.
26
27 -d Debug mode. When this option is specified ssh-agent will not
28 fork.
29
30 -k Kill the current agent (given by the SSH_AGENT_PID environment
31 variable).
32
33 -s Generate Bourne shell commands on stdout. This is the default if
34 SHELL does not look like it's a csh style of shell.
35
36 -t life
37 Set a default value for the maximum lifetime of identities added
38 to the agent. The lifetime may be specified in seconds or in a
39 time format specified in sshd_config(5). A lifetime specified
40 for an identity with ssh-add(1) overrides this value. Without
41 this option the default maximum lifetime is forever.
42
43 If a commandline is given, this is executed as a subprocess of the agent.
44 When the command dies, so does the agent.
45
46 The agent initially does not have any private keys. Keys are added using
47 ssh-add(1). When executed without arguments, ssh-add(1) adds the files
48 ~/.ssh/id_rsa, ~/.ssh/id_dsa and ~/.ssh/identity. If the identity has a
49 passphrase, ssh-add(1) asks for the passphrase on the terminal if it has
50 one or from a small X11 program if running under X11. If neither of
51 these is the case then the authentication will fail. It then sends the
52 identity to the agent. Several identities can be stored in the agent;
53 the agent can automatically use any of these identities. ssh-add -l dis-
54 plays the identities currently held by the agent.
55
56 The idea is that the agent is run in the user's local PC, laptop, or ter-
57 minal. Authentication data need not be stored on any other machine, and
58 authentication passphrases never go over the network. However, the con-
59 nection to the agent is forwarded over SSH remote logins, and the user
60 can thus use the privileges given by the identities anywhere in the net-
61 work in a secure way.
62
63 There are two main ways to get an agent set up: The first is that the
64 agent starts a new subcommand into which some environment variables are
65 exported, eg ssh-agent xterm &. The second is that the agent prints the
66 needed shell commands (either sh(1) or csh(1) syntax can be generated)
67 which can be evaluated in the calling shell, eg eval `ssh-agent -s` for
68 Bourne-type shells such as sh(1) or ksh(1) and eval `ssh-agent -c` for
69 csh(1) and derivatives.
70
71 Later ssh(1) looks at these variables and uses them to establish a con-
72 nection to the agent.
73
74 The agent will never send a private key over its request channel. In-
75 stead, operations that require a private key will be performed by the
76 agent, and the result will be returned to the requester. This way, pri-
77 vate keys are not exposed to clients using the agent.
78
79 A UNIX-domain socket is created and the name of this socket is stored in
80 the SSH_AUTH_SOCK environment variable. The socket is made accessible
81 only to the current user. This method is easily abused by root or anoth-
82 er instance of the same user.
83
84 The SSH_AGENT_PID environment variable holds the agent's process ID.
85
86 The agent exits automatically when the command given on the command line
87 terminates.
88
89FILES
90 ~/.ssh/identity
91 Contains the protocol version 1 RSA authentication identity of
92 the user.
93
94 ~/.ssh/id_dsa
95 Contains the protocol version 2 DSA authentication identity of
96 the user.
97
98 ~/.ssh/id_rsa
99 Contains the protocol version 2 RSA authentication identity of
100 the user.
101
102 /tmp/ssh-XXXXXXXXXX/agent.<ppid>
103 UNIX-domain sockets used to contain the connection to the authen-
104 tication agent. These sockets should only be readable by the
105 owner. The sockets should get automatically removed when the
106 agent exits.
107
108SEE ALSO
109 ssh(1), ssh-add(1), ssh-keygen(1), sshd(8)
110
111AUTHORS
112 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
113 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
114 de Raadt and Dug Song removed many bugs, re-added newer features and cre-
115 ated OpenSSH. Markus Friedl contributed the support for SSH protocol
116 versions 1.5 and 2.0.
117
118OpenBSD 4.7 January 17, 2010 2
diff --git a/ssh-keygen.0 b/ssh-keygen.0
new file mode 100644
index 000000000..aed4a14ad
--- /dev/null
+++ b/ssh-keygen.0
@@ -0,0 +1,434 @@
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 [-f input_keyfile]
11 ssh-keygen -e [-f input_keyfile]
12 ssh-keygen -y [-f input_keyfile]
13 ssh-keygen -c [-P passphrase] [-C comment] [-f keyfile]
14 ssh-keygen -l [-f input_keyfile]
15 ssh-keygen -B [-f input_keyfile]
16 ssh-keygen -D pkcs11
17 ssh-keygen -F hostname [-f known_hosts_file] [-l]
18 ssh-keygen -H [-f known_hosts_file]
19 ssh-keygen -R hostname [-f known_hosts_file]
20 ssh-keygen -r hostname [-f input_keyfile] [-g]
21 ssh-keygen -G output_file [-v] [-b bits] [-M memory] [-S start_point]
22 ssh-keygen -T output_file -f input_file [-v] [-a num_trials]
23 [-W generator]
24 ssh-keygen -s ca_key -I certificate_identity [-h] [-n principals]
25 [-O constraint] [-V validity_interval] file ...
26 ssh-keygen -L [-f input_keyfile]
27
28DESCRIPTION
29 ssh-keygen generates, manages and converts authentication keys for
30 ssh(1). ssh-keygen can create RSA keys for use by SSH protocol version 1
31 and RSA or DSA keys for use by SSH protocol version 2. The type of key
32 to be generated is specified with the -t option. If invoked without any
33 arguments, ssh-keygen will generate an RSA key for use in SSH protocol 2
34 connections.
35
36 ssh-keygen is also used to generate groups for use in Diffie-Hellman
37 group exchange (DH-GEX). See the MODULI GENERATION section for details.
38
39 Normally each user wishing to use SSH with RSA or DSA authentication runs
40 this once to create the authentication key in ~/.ssh/identity,
41 ~/.ssh/id_dsa or ~/.ssh/id_rsa. Additionally, the system administrator
42 may use this to generate host keys, as seen in /etc/rc.
43
44 Normally this program generates the key and asks for a file in which to
45 store the private key. The public key is stored in a file with the same
46 name but ``.pub'' appended. The program also asks for a passphrase. The
47 passphrase may be empty to indicate no passphrase (host keys must have an
48 empty passphrase), or it may be a string of arbitrary length. A
49 passphrase is similar to a password, except it can be a phrase with a se-
50 ries of words, punctuation, numbers, whitespace, or any string of charac-
51 ters you want. Good passphrases are 10-30 characters long, are not sim-
52 ple sentences or otherwise easily guessable (English prose has only 1-2
53 bits of entropy per character, and provides very bad passphrases), and
54 contain a mix of upper and lowercase letters, numbers, and non-alphanu-
55 meric characters. The passphrase can be changed later by using the -p
56 option.
57
58 There is no way to recover a lost passphrase. If the passphrase is lost
59 or forgotten, a new key must be generated and copied to the corresponding
60 public key to other machines.
61
62 For RSA1 keys, there is also a comment field in the key file that is only
63 for convenience to the user to help identify the key. The comment can
64 tell what the key is for, or whatever is useful. The comment is initial-
65 ized to ``user@host'' when the key is created, but can be changed using
66 the -c option.
67
68 After a key is generated, instructions below detail where the keys should
69 be placed to be activated.
70
71 The options are as follows:
72
73 -a trials
74 Specifies the number of primality tests to perform when screening
75 DH-GEX candidates using the -T command.
76
77 -B Show the bubblebabble digest of specified private or public key
78 file.
79
80 -b bits
81 Specifies the number of bits in the key to create. For RSA keys,
82 the minimum size is 768 bits and the default is 2048 bits. Gen-
83 erally, 2048 bits is considered sufficient. DSA keys must be ex-
84 actly 1024 bits as specified by FIPS 186-2.
85
86 -C comment
87 Provides a new comment.
88
89 -c Requests changing the comment in the private and public key
90 files. This operation is only supported for RSA1 keys. The pro-
91 gram will prompt for the file containing the private keys, for
92 the passphrase if the key has one, and for the new comment.
93
94 -D pkcs11
95 Download the RSA public keys provided by the PKCS#11 shared li-
96 brary pkcs11.
97
98 -e This option will read a private or public OpenSSH key file and
99 print the key in RFC 4716 SSH Public Key File Format to stdout.
100 This option allows exporting keys for use by several commercial
101 SSH implementations.
102
103 -F hostname
104 Search for the specified hostname in a known_hosts file, listing
105 any occurrences found. This option is useful to find hashed host
106 names or addresses and may also be used in conjunction with the
107 -H option to print found keys in a hashed format.
108
109 -f filename
110 Specifies the filename of the key file.
111
112 -G output_file
113 Generate candidate primes for DH-GEX. These primes must be
114 screened for safety (using the -T option) before use.
115
116 -g Use generic DNS format when printing fingerprint resource records
117 using the -r command.
118
119 -H Hash a known_hosts file. This replaces all hostnames and ad-
120 dresses with hashed representations within the specified file;
121 the original content is moved to a file with a .old suffix.
122 These hashes may be used normally by ssh and sshd, but they do
123 not reveal identifying information should the file's contents be
124 disclosed. This option will not modify existing hashed hostnames
125 and is therefore safe to use on files that mix hashed and non-
126 hashed names.
127
128 -h When signing a key, create a host certificate instead of a user
129 certificate. Please see the CERTIFICATES section for details.
130
131 -I certificate_identity
132 Specify the key identity when signing a public key. Please see
133 the CERTIFICATES section for details.
134
135 -i This option will read an unencrypted private (or public) key file
136 in SSH2-compatible format and print an OpenSSH compatible private
137 (or public) key to stdout. ssh-keygen also reads the RFC 4716
138 SSH Public Key File Format. This option allows importing keys
139 from several commercial SSH implementations.
140
141 -L Prints the contents of a certificate.
142
143 -l Show fingerprint of specified public key file. Private RSA1 keys
144 are also supported. For RSA and DSA keys ssh-keygen tries to
145 find the matching public key file and prints its fingerprint. If
146 combined with -v, an ASCII art representation of the key is sup-
147 plied with the fingerprint.
148
149 -M memory
150 Specify the amount of memory to use (in megabytes) when generat-
151 ing candidate moduli for DH-GEX.
152
153 -N new_passphrase
154 Provides the new passphrase.
155
156 -n principals
157 Specify one or more principals (user or host names) to be includ-
158 ed in a certificate when signing a key. Multiple principals may
159 be specified, separated by commas. Please see the CERTIFICATES
160 section for details.
161
162 -O constraint
163 Specify a certificate constraint when signing a key. This option
164 may be specified multiple times. Please see the CERTIFICATES
165 section for details. The constraints that are valid for user
166 certificates are:
167
168 clear Clear all enabled permissions. This is useful for clear-
169 ing the default set of permissions so permissions may be
170 added individually.
171
172 force-command=command
173 Forces the execution of command instead of any shell or
174 command specified by the user when the certificate is
175 used for authentication.
176
177 no-agent-forwarding
178 Disable ssh-agent(1) forwarding (permitted by default).
179
180 no-port-forwarding
181 Disable port forwarding (permitted by default).
182
183 no-pty Disable PTY allocation (permitted by default).
184
185 no-user-rc
186 Disable execution of ~/.ssh/rc by sshd(8) (permitted by
187 default).
188
189 no-x11-forwarding
190 Disable X11 forwarding (permitted by default).
191
192 permit-agent-forwarding
193 Allows ssh-agent(1) forwarding.
194
195 permit-port-forwarding
196 Allows port forwarding.
197
198 permit-pty
199 Allows PTY allocation.
200
201 permit-user-rc
202 Allows execution of ~/.ssh/rc by sshd(8).
203
204 permit-x11-forwarding
205 Allows X11 forwarding.
206
207 source-address=address_list
208 Restrict the source addresses from which the certificate
209 is considered valid. The address_list is a comma-sepa-
210 rated list of one or more address/netmask pairs in CIDR
211 format.
212
213 At present, no constraints are valid for host keys.
214
215 -P passphrase
216 Provides the (old) passphrase.
217
218 -p Requests changing the passphrase of a private key file instead of
219 creating a new private key. The program will prompt for the file
220 containing the private key, for the old passphrase, and twice for
221 the new passphrase.
222
223 -q Silence ssh-keygen. Used by /etc/rc when creating a new key.
224
225 -R hostname
226 Removes all keys belonging to hostname from a known_hosts file.
227 This option is useful to delete hashed hosts (see the -H option
228 above).
229
230 -r hostname
231 Print the SSHFP fingerprint resource record named hostname for
232 the specified public key file.
233
234 -S start
235 Specify start point (in hex) when generating candidate moduli for
236 DH-GEX.
237
238 -s ca_key
239 Certify (sign) a public key using the specified CA key. Please
240 see the CERTIFICATES section for details.
241
242 -T output_file
243 Test DH group exchange candidate primes (generated using the -G
244 option) for safety.
245
246 -t type
247 Specifies the type of key to create. The possible values are
248 ``rsa1'' for protocol version 1 and ``rsa'' or ``dsa'' for proto-
249 col version 2.
250
251 -V validity_interval
252 Specify a validity interval when signing a certificate. A valid-
253 ity interval may consist of a single time, indicating that the
254 certificate is valid beginning now and expiring at that time, or
255 may consist of two times separated by a colon to indicate an ex-
256 plicit time interval. The start time may be specified as a date
257 in YYYYMMDD format, a time in YYYYMMDDHHMMSS format or a relative
258 time (to the current time) consisting of a minus sign followed by
259 a relative time in the format described in the TIME FORMATS sec-
260 tion of sshd_config(5). The end time may be specified as a
261 YYYYMMDD date, a YYYYMMDDHHMMSS time or a relative time starting
262 with a plus character.
263
264 For example: ``+52w1d'' (valid from now to 52 weeks and one day
265 from now), ``-4w:+4w'' (valid from four weeks ago to four weeks
266 from now), ``20100101123000:20110101123000'' (valid from 12:30
267 PM, January 1st, 2010 to 12:30 PM, January 1st, 2011),
268 ``-1d:20110101'' (valid from yesterday to midnight, January 1st,
269 2011).
270
271 -v Verbose mode. Causes ssh-keygen to print debugging messages
272 about its progress. This is helpful for debugging moduli genera-
273 tion. Multiple -v options increase the verbosity. The maximum
274 is 3.
275
276 -W generator
277 Specify desired generator when testing candidate moduli for DH-
278 GEX.
279
280 -y This option will read a private OpenSSH format file and print an
281 OpenSSH public key to stdout.
282
283MODULI GENERATION
284 ssh-keygen may be used to generate groups for the Diffie-Hellman Group
285 Exchange (DH-GEX) protocol. Generating these groups is a two-step pro-
286 cess: first, candidate primes are generated using a fast, but memory in-
287 tensive process. These candidate primes are then tested for suitability
288 (a CPU-intensive process).
289
290 Generation of primes is performed using the -G option. The desired
291 length of the primes may be specified by the -b option. For example:
292
293 # ssh-keygen -G moduli-2048.candidates -b 2048
294
295 By default, the search for primes begins at a random point in the desired
296 length range. This may be overridden using the -S option, which speci-
297 fies a different start point (in hex).
298
299 Once a set of candidates have been generated, they must be tested for
300 suitability. This may be performed using the -T option. In this mode
301 ssh-keygen will read candidates from standard input (or a file specified
302 using the -f option). For example:
303
304 # ssh-keygen -T moduli-2048 -f moduli-2048.candidates
305
306 By default, each candidate will be subjected to 100 primality tests.
307 This may be overridden using the -a option. The DH generator value will
308 be chosen automatically for the prime under consideration. If a specific
309 generator is desired, it may be requested using the -W option. Valid
310 generator values are 2, 3, and 5.
311
312 Screened DH groups may be installed in /etc/moduli. It is important that
313 this file contains moduli of a range of bit lengths and that both ends of
314 a connection share common moduli.
315
316CERTIFICATES
317 ssh-keygen supports signing of keys to produce certificates that may be
318 used for user or host authentication. Certificates consist of a public
319 key, some identity information, zero or more principal (user or host)
320 names and an optional set of constraints that are signed by a Certifica-
321 tion Authority (CA) key. Clients or servers may then trust only the CA
322 key and verify its signature on a certificate rather than trusting many
323 user/host keys. Note that OpenSSH certificates are a different, and much
324 simpler, format to the X.509 certificates used in ssl(8).
325
326 ssh-keygen supports two types of certificates: user and host. User cer-
327 tificates authenticate users to servers, whereas host certificates au-
328 thenticate server hosts to users. To generate a user certificate:
329
330 $ ssh-keygen -s /path/to/ca_key -I key_id /path/to/user_key.pub
331
332 The resultant certificate will be placed in /path/to/user_key-cert.pub.
333 A host certificate requires the -h option:
334
335 $ ssh-keygen -s /path/to/ca_key -I key_id -h /path/to/host_key.pub
336
337 The host certificate will be output to /path/to/host_key-cert.pub. In
338 both cases, key_id is a "key identifier" that is logged by the server
339 when the certificate is used for authentication.
340
341 Certificates may be limited to be valid for a set of principal (us-
342 er/host) names. By default, generated certificates are valid for all
343 users or hosts. To generate a certificate for a specified set of princi-
344 pals:
345
346 $ ssh-keygen -s ca_key -I key_id -n user1,user2 user_key.pub
347 $ ssh-keygen -s ca_key -I key_id -h -n host.domain user_key.pub
348
349 Additional limitations on the validity and use of user certificates may
350 be specified through certificate constraints. A constrained certificate
351 may disable features of the SSH session, may be valid only when presented
352 from particular source addresses or may force the use of a specific com-
353 mand. For a list of valid certificate constraints, see the documentation
354 for the -O option above.
355
356 Finally, certificates may be defined with a validity lifetime. The -V
357 option allows specification of certificate start and end times. A cer-
358 tificate that is presented at a time outside this range will not be con-
359 sidered valid. By default, certificates have a maximum validity inter-
360 val.
361
362 For certificates to be used for user or host authentication, the CA pub-
363 lic key must be trusted by sshd(8) or ssh(1). Please refer to those man-
364 ual pages for details.
365
366FILES
367 ~/.ssh/identity
368 Contains the protocol version 1 RSA authentication identity of
369 the user. This file should not be readable by anyone but the us-
370 er. It is possible to specify a passphrase when generating the
371 key; that passphrase will be used to encrypt the private part of
372 this file using 128-bit AES. This file is not automatically ac-
373 cessed by ssh-keygen but it is offered as the default file for
374 the private key. ssh(1) will read this file when a login attempt
375 is made.
376
377 ~/.ssh/identity.pub
378 Contains the protocol version 1 RSA public key for authentica-
379 tion. The contents of this file should be added to
380 ~/.ssh/authorized_keys on all machines where the user wishes to
381 log in using RSA authentication. There is no need to keep the
382 contents of this file secret.
383
384 ~/.ssh/id_dsa
385 Contains the protocol version 2 DSA authentication identity of
386 the user. This file should not be readable by anyone but the us-
387 er. It is possible to specify a passphrase when generating the
388 key; that passphrase will be used to encrypt the private part of
389 this file using 128-bit AES. This file is not automatically ac-
390 cessed by ssh-keygen but it is offered as the default file for
391 the private key. ssh(1) will read this file when a login attempt
392 is made.
393
394 ~/.ssh/id_dsa.pub
395 Contains the protocol version 2 DSA public key for authentica-
396 tion. The contents of this file should be added to
397 ~/.ssh/authorized_keys on all machines where the user wishes to
398 log in using public key authentication. There is no need to keep
399 the contents of this file secret.
400
401 ~/.ssh/id_rsa
402 Contains the protocol version 2 RSA authentication identity of
403 the user. This file should not be readable by anyone but the us-
404 er. It is possible to specify a passphrase when generating the
405 key; that passphrase will be used to encrypt the private part of
406 this file using 128-bit AES. This file is not automatically ac-
407 cessed by ssh-keygen but it is offered as the default file for
408 the private key. ssh(1) will read this file when a login attempt
409 is made.
410
411 ~/.ssh/id_rsa.pub
412 Contains the protocol version 2 RSA public key for authentica-
413 tion. The contents of this file should be added to
414 ~/.ssh/authorized_keys on all machines where the user wishes to
415 log in using public key authentication. There is no need to keep
416 the contents of this file secret.
417
418 /etc/moduli
419 Contains Diffie-Hellman groups used for DH-GEX. The file format
420 is described in moduli(5).
421
422SEE ALSO
423 ssh(1), ssh-add(1), ssh-agent(1), moduli(5), sshd(8)
424
425 The Secure Shell (SSH) Public Key File Format, RFC 4716, 2006.
426
427AUTHORS
428 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
429 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
430 de Raadt and Dug Song removed many bugs, re-added newer features and
431 created OpenSSH. Markus Friedl contributed the support for SSH protocol
432 versions 1.5 and 2.0.
433
434OpenBSD 4.7 March 13, 2010 7
diff --git a/ssh-keyscan.0 b/ssh-keyscan.0
new file mode 100644
index 000000000..8a0ef60e4
--- /dev/null
+++ b/ssh-keyscan.0
@@ -0,0 +1,107 @@
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 num-
12 ber of hosts. It was designed to aid in building and verifying
13 ssh_known_hosts files. ssh-keyscan provides a minimal interface suitable
14 for use by shell and perl scripts.
15
16 ssh-keyscan uses non-blocking socket I/O to contact as many hosts as pos-
17 sible in parallel, so it is very efficient. The keys from a domain of
18 1,000 hosts can be collected in tens of seconds, even when some of those
19 hosts are down or do not run ssh. For scanning, one does not need login
20 access to the machines that are being scanned, nor does the scanning pro-
21 cess involve any encryption.
22
23 The options are as follows:
24
25 -4 Forces ssh-keyscan to use IPv4 addresses only.
26
27 -6 Forces ssh-keyscan to use IPv6 addresses only.
28
29 -f file
30 Read hosts or addrlist namelist pairs from this file, one per
31 line. If - is supplied instead of a filename, ssh-keyscan will
32 read hosts or addrlist namelist pairs from the standard input.
33
34 -H Hash all hostnames and addresses in the output. Hashed names may
35 be used normally by ssh and sshd, but they do not reveal identi-
36 fying information should the file's contents be disclosed.
37
38 -p port
39 Port to connect to on the remote host.
40
41 -T timeout
42 Set the timeout for connection attempts. If timeout seconds have
43 elapsed since a connection was initiated to a host or since the
44 last time anything was read from that host, then the connection
45 is closed and the host in question considered unavailable. De-
46 fault is 5 seconds.
47
48 -t type
49 Specifies the type of the key to fetch from the scanned hosts.
50 The possible values are ``rsa1'' for protocol version 1 and
51 ``rsa'' or ``dsa'' for protocol version 2. Multiple values may
52 be specified by separating them with commas. The default is
53 ``rsa''.
54
55 -v Verbose mode. Causes ssh-keyscan to print debugging messages
56 about its progress.
57
58SECURITY
59 If an ssh_known_hosts file is constructed using ssh-keyscan without veri-
60 fying the keys, users will be vulnerable to man in the middle attacks.
61 On the other hand, if the security model allows such a risk, ssh-keyscan
62 can help in the detection of tampered keyfiles or man in the middle at-
63 tacks which have begun after the ssh_known_hosts file was created.
64
65FILES
66 Input format:
67
68 1.2.3.4,1.2.4.4 name.my.domain,name,n.my.domain,n,1.2.3.4,1.2.4.4
69
70 Output format for rsa1 keys:
71
72 host-or-namelist bits exponent modulus
73
74 Output format for rsa and dsa keys:
75
76 host-or-namelist keytype base64-encoded-key
77
78 Where keytype is either ``ssh-rsa'' or ``ssh-dss''.
79
80 /etc/ssh/ssh_known_hosts
81
82EXAMPLES
83 Print the rsa host key for machine hostname:
84
85 $ ssh-keyscan hostname
86
87 Find all hosts from the file ssh_hosts which have new or different keys
88 from those in the sorted file ssh_known_hosts:
89
90 $ ssh-keyscan -t rsa,dsa -f ssh_hosts | \
91 sort -u - ssh_known_hosts | diff ssh_known_hosts -
92
93SEE ALSO
94 ssh(1), sshd(8)
95
96AUTHORS
97 David Mazieres <dm@lcs.mit.edu> wrote the initial version, and Wayne
98 Davison <wayned@users.sourceforge.net> added support for protocol version
99 2.
100
101BUGS
102 It generates "Connection closed by remote host" messages on the consoles
103 of all the machines it scans if the server is older than version 2.9.
104 This is because it opens a connection to the ssh port, reads the public
105 key, and drops the connection as soon as it gets the key.
106
107OpenBSD 4.7 January 9, 2010 2
diff --git a/ssh-keysign.0 b/ssh-keysign.0
new file mode 100644
index 000000000..20a8eaa87
--- /dev/null
+++ b/ssh-keysign.0
@@ -0,0 +1,42 @@
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 authentica-
20 tion.
21
22FILES
23 /etc/ssh/ssh_config
24 Controls whether ssh-keysign is enabled.
25
26 /etc/ssh/ssh_host_dsa_key, /etc/ssh/ssh_host_rsa_key
27 These files contain the private parts of the host keys used to
28 generate the digital signature. They should be owned by root,
29 readable only by root, and not accessible to others. Since they
30 are readable only by root, ssh-keysign must be set-uid root if
31 host-based authentication is used.
32
33SEE ALSO
34 ssh(1), ssh-keygen(1), ssh_config(5), sshd(8)
35
36HISTORY
37 ssh-keysign first appeared in OpenBSD 3.2.
38
39AUTHORS
40 Markus Friedl <markus@openbsd.org>
41
42OpenBSD 4.7 May 31, 2007 1
diff --git a/ssh-pkcs11-helper.0 b/ssh-pkcs11-helper.0
new file mode 100644
index 000000000..9eb2bc96a
--- /dev/null
+++ b/ssh-pkcs11-helper.0
@@ -0,0 +1,25 @@
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 4.7 February 10, 2010 1
diff --git a/ssh-rand-helper.0 b/ssh-rand-helper.0
new file mode 100644
index 000000000..51b6f5571
--- /dev/null
+++ b/ssh-rand-helper.0
@@ -0,0 +1,51 @@
1SSH-RAND-HELPER(8) OpenBSD System Manager's Manual SSH-RAND-HELPER(8)
2
3NAME
4 ssh-rand-helper - random number gatherer for OpenSSH
5
6SYNOPSIS
7 ssh-rand-hlper [-vxXh] [-b bytes]
8
9DESCRIPTION
10 ssh-rand-helper is a small helper program used by ssh(1), ssh-add(1),
11 ssh-agent(1), ssh-keygen(1), ssh-keyscan(1) and sshd(8) to gather random
12 numbers of cryptographic quality if the openssl(4) library has not been
13 configured to provide them itself.
14
15 Normally ssh-rand-helper will generate a strong random seed and provide
16 it to the calling program via standard output. If standard output is a
17 tty, ssh-rand-helper will instead print the seed in hexidecimal format
18 unless told otherwise.
19
20 ssh-rand-helper will by default gather random numbers from the system
21 commands listed in /etc/ssh/ssh_prng_cmds. The output of each of the
22 commands listed will be hashed and used to generate a random seed for the
23 calling program. ssh-rand-helper will also store seed files in
24 ~/.ssh/prng_seed between executions.
25
26 Alternately, ssh-rand-helper may be configured at build time to collect
27 random numbers from a EGD/PRNGd server via a unix domain or localhost tcp
28 socket.
29
30 This program is not intended to be run by the end-user, so the few com-
31 mandline options are for debugging purposes only.
32
33 -b bytes
34 Specify the number of random bytes to include in the output.
35
36 -x Output a hexidecimal instead of a binary seed.
37
38 -X Force output of a binary seed, even if standard output is a tty
39
40 -v Turn on debugging message. Multiple -v options will increase the
41 debugging level.
42
43 -h Display a summary of options.
44
45AUTHORS
46 Damien Miller <djm@mindrot.org>
47
48SEE ALSO
49 ssh(1), ssh-add(1), ssh-keygen(1), sshd(8)
50
51OpenBSD 4.7 April 14, 2002 1
diff --git a/ssh.0 b/ssh.0
new file mode 100644
index 000000000..9c793b843
--- /dev/null
+++ b/ssh.0
@@ -0,0 +1,880 @@
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 untrust-
18 ed hosts over an insecure network. X11 connections and arbitrary TCP
19 ports can also be forwarded over the secure channel.
20
21 ssh connects and logs into the specified hostname (with optional user
22 name). The user must prove his/her identity to the remote machine using
23 one of several methods depending on the protocol version used (see be-
24 low).
25
26 If command is specified, it is executed on the remote host instead of a
27 login shell.
28
29 The options are as follows:
30
31 -1 Forces ssh to try protocol version 1 only.
32
33 -2 Forces ssh to try protocol version 2 only.
34
35 -4 Forces ssh to use IPv4 addresses only.
36
37 -6 Forces ssh to use IPv6 addresses only.
38
39 -A Enables forwarding of the authentication agent connection. This
40 can also be specified on a per-host basis in a configuration
41 file.
42
43 Agent forwarding should be enabled with caution. Users with the
44 ability to bypass file permissions on the remote host (for the
45 agent's UNIX-domain socket) can access the local agent through
46 the forwarded connection. An attacker cannot obtain key material
47 from the agent, however they can perform operations on the keys
48 that enable them to authenticate using the identities loaded into
49 the agent.
50
51 -a Disables forwarding of the authentication agent connection.
52
53 -b bind_address
54 Use bind_address on the local machine as the source address of
55 the connection. Only useful on systems with more than one ad-
56 dress.
57
58 -C Requests compression of all data (including stdin, stdout,
59 stderr, and data for forwarded X11 and TCP connections). The
60 compression algorithm is the same used by gzip(1), and the
61 ``level'' can be controlled by the CompressionLevel option for
62 protocol version 1. Compression is desirable on modem lines and
63 other slow connections, but will only slow down things on fast
64 networks. The default value can be set on a host-by-host basis
65 in the configuration files; see the Compression option.
66
67 -c cipher_spec
68 Selects the cipher specification for encrypting the session.
69
70 Protocol version 1 allows specification of a single cipher. The
71 supported values are ``3des'', ``blowfish'', and ``des''. 3des
72 (triple-des) is an encrypt-decrypt-encrypt triple with three dif-
73 ferent keys. It is believed to be secure. blowfish is a fast
74 block cipher; it appears very secure and is much faster than
75 3des. des is only supported in the ssh client for interoperabil-
76 ity with legacy protocol 1 implementations that do not support
77 the 3des cipher. Its use is strongly discouraged due to crypto-
78 graphic weaknesses. The default is ``3des''.
79
80 For protocol version 2, cipher_spec is a comma-separated list of
81 ciphers listed in order of preference. See the Ciphers keyword
82 for more information.
83
84 -D [bind_address:]port
85 Specifies a local ``dynamic'' application-level port forwarding.
86 This works by allocating a socket to listen to port on the local
87 side, optionally bound to the specified bind_address. Whenever a
88 connection is made to this port, the connection is forwarded over
89 the secure channel, and the application protocol is then used to
90 determine where to connect to from the remote machine. Currently
91 the SOCKS4 and SOCKS5 protocols are supported, and ssh will act
92 as a SOCKS server. Only root can forward privileged ports. Dy-
93 namic port forwardings can also be specified in the configuration
94 file.
95
96 IPv6 addresses can be specified with an alternative syntax:
97 [bind_address/]port or by enclosing the address in square brack-
98 ets. Only the superuser can forward privileged ports. By de-
99 fault, the local port is bound in accordance with the
100 GatewayPorts setting. However, an explicit bind_address may be
101 used to bind the connection to a specific address. The
102 bind_address of ``localhost'' indicates that the listening port
103 be bound for local use only, while an empty address or `*' indi-
104 cates that the port should be available from all interfaces.
105
106 -e escape_char
107 Sets the escape character for sessions with a pty (default: `~').
108 The escape character is only recognized at the beginning of a
109 line. The escape character followed by a dot (`.') closes the
110 connection; followed by control-Z suspends the connection; and
111 followed by itself sends the escape character once. Setting the
112 character to ``none'' disables any escapes and makes the session
113 fully transparent.
114
115 -F configfile
116 Specifies an alternative per-user configuration file. If a con-
117 figuration file is given on the command line, the system-wide
118 configuration file (/etc/ssh/ssh_config) will be ignored. The
119 default for the per-user configuration file is ~/.ssh/config.
120
121 -f Requests ssh to go to background just before command execution.
122 This is useful if ssh is going to ask for passwords or passphras-
123 es, but the user wants it in the background. This implies -n.
124 The recommended way to start X11 programs at a remote site is
125 with something like ssh -f host xterm.
126
127 If the ExitOnForwardFailure configuration option is set to
128 ``yes'', then a client started with -f will wait for all remote
129 port forwards to be successfully established before placing it-
130 self in the background.
131
132 -g Allows remote hosts to connect to local forwarded ports.
133
134 -I pkcs11
135 Specify the PKCS#11 shared library ssh should use to communicate
136 with a PKCS#11 token providing the user's private RSA key.
137
138 -i identity_file
139 Selects a file from which the identity (private key) for RSA or
140 DSA authentication is read. The default is ~/.ssh/identity for
141 protocol version 1, and ~/.ssh/id_rsa and ~/.ssh/id_dsa for pro-
142 tocol version 2. Identity files may also be specified on a per-
143 host basis in the configuration file. It is possible to have
144 multiple -i options (and multiple identities specified in config-
145 uration files). ssh will also try to load certificate informa-
146 tion from the filename obtained by appending -cert.pub to identi-
147 ty filenames.
148
149 -K Enables GSSAPI-based authentication and forwarding (delegation)
150 of GSSAPI credentials to the server.
151
152 -k Disables forwarding (delegation) of GSSAPI credentials to the
153 server.
154
155 -L [bind_address:]port:host:hostport
156 Specifies that the given port on the local (client) host is to be
157 forwarded to the given host and port on the remote side. This
158 works by allocating a socket to listen to port on the local side,
159 optionally bound to the specified bind_address. Whenever a con-
160 nection is made to this port, the connection is forwarded over
161 the secure channel, and a connection is made to host port
162 hostport from the remote machine. Port forwardings can also be
163 specified in the configuration file. IPv6 addresses can be spec-
164 ified with an alternative syntax: [bind_address/]port/host/host-
165 port or by enclosing the address in square brackets. Only the
166 superuser can forward privileged ports. By default, the local
167 port is bound in accordance with the GatewayPorts setting. How-
168 ever, an explicit bind_address may be used to bind the connection
169 to a specific address. The bind_address of ``localhost'' indi-
170 cates that the listening port be bound for local use only, while
171 an empty address or `*' indicates that the port should be avail-
172 able from all interfaces.
173
174 -l login_name
175 Specifies the user to log in as on the remote machine. This also
176 may be specified on a per-host basis in the configuration file.
177
178 -M Places the ssh client into ``master'' mode for connection shar-
179 ing. Multiple -M options places ssh into ``master'' mode with
180 confirmation required before slave connections are accepted. Re-
181 fer to the description of ControlMaster in ssh_config(5) for de-
182 tails.
183
184 -m mac_spec
185 Additionally, for protocol version 2 a comma-separated list of
186 MAC (message authentication code) algorithms can be specified in
187 order of preference. See the MACs keyword for more information.
188
189 -N Do not execute a remote command. This is useful for just for-
190 warding ports (protocol version 2 only).
191
192 -n Redirects stdin from /dev/null (actually, prevents reading from
193 stdin). This must be used when ssh is run in the background. A
194 common trick is to use this to run X11 programs on a remote ma-
195 chine. For example, ssh -n shadows.cs.hut.fi emacs & will start
196 an emacs on shadows.cs.hut.fi, and the X11 connection will be au-
197 tomatically forwarded over an encrypted channel. The ssh program
198 will be put in the background. (This does not work if ssh needs
199 to ask for a password or passphrase; see also the -f option.)
200
201 -O ctl_cmd
202 Control an active connection multiplexing master process. When
203 the -O option is specified, the ctl_cmd argument is interpreted
204 and passed to the master process. Valid commands are: ``check''
205 (check that the master process is running) and ``exit'' (request
206 the master to exit).
207
208 -o option
209 Can be used to give options in the format used in the configura-
210 tion file. This is useful for specifying options for which there
211 is no separate command-line flag. For full details of the op-
212 tions listed below, and their possible values, see ssh_config(5).
213
214 AddressFamily
215 BatchMode
216 BindAddress
217 ChallengeResponseAuthentication
218 CheckHostIP
219 Cipher
220 Ciphers
221 ClearAllForwardings
222 Compression
223 CompressionLevel
224 ConnectionAttempts
225 ConnectTimeout
226 ControlMaster
227 ControlPath
228 DynamicForward
229 EscapeChar
230 ExitOnForwardFailure
231 ForwardAgent
232 ForwardX11
233 ForwardX11Trusted
234 GatewayPorts
235 GlobalKnownHostsFile
236 GSSAPIAuthentication
237 GSSAPIDelegateCredentials
238 HashKnownHosts
239 Host
240 HostbasedAuthentication
241 HostKeyAlgorithms
242 HostKeyAlias
243 HostName
244 IdentityFile
245 IdentitiesOnly
246 KbdInteractiveDevices
247 LocalCommand
248 LocalForward
249 LogLevel
250 MACs
251 NoHostAuthenticationForLocalhost
252 NumberOfPasswordPrompts
253 PasswordAuthentication
254 PermitLocalCommand
255 PKCS11Provider
256 Port
257 PreferredAuthentications
258 Protocol
259 ProxyCommand
260 PubkeyAuthentication
261 RekeyLimit
262 RemoteForward
263 RhostsRSAAuthentication
264 RSAAuthentication
265 SendEnv
266 ServerAliveInterval
267 ServerAliveCountMax
268 StrictHostKeyChecking
269 TCPKeepAlive
270 Tunnel
271 TunnelDevice
272 UsePrivilegedPort
273 User
274 UserKnownHostsFile
275 VerifyHostKeyDNS
276 VisualHostKey
277 XAuthLocation
278
279 -p port
280 Port to connect to on the remote host. This can be specified on
281 a per-host basis in the configuration file.
282
283 -q Quiet mode. Causes most warning and diagnostic messages to be
284 suppressed.
285
286 -R [bind_address:]port:host:hostport
287 Specifies that the given port on the remote (server) host is to
288 be forwarded to the given host and port on the local side. This
289 works by allocating a socket to listen to port on the remote
290 side, and whenever a connection is made to this port, the connec-
291 tion is forwarded over the secure channel, and a connection is
292 made to host port hostport from the local machine.
293
294 Port forwardings can also be specified in the configuration file.
295 Privileged ports can be forwarded only when logging in as root on
296 the remote machine. IPv6 addresses can be specified by enclosing
297 the address in square braces or using an alternative syntax:
298 [bind_address/]host/port/hostport.
299
300 By default, the listening socket on the server will be bound to
301 the loopback interface only. This may be overridden by specify-
302 ing a bind_address. An empty bind_address, or the address `*',
303 indicates that the remote socket should listen on all interfaces.
304 Specifying a remote bind_address will only succeed if the serv-
305 er's GatewayPorts option is enabled (see sshd_config(5)).
306
307 If the port argument is `0', the listen port will be dynamically
308 allocated on the server and reported to the client at run time.
309
310 -S ctl_path
311 Specifies the location of a control socket for connection sharing
312 or the string ``none'' to disable connection sharing. Refer to
313 the description of ControlPath and ControlMaster in ssh_config(5)
314 for details.
315
316 -s May be used to request invocation of a subsystem on the remote
317 system. Subsystems are a feature of the SSH2 protocol which fa-
318 cilitate the use of SSH as a secure transport for other applica-
319 tions (eg. sftp(1)). The subsystem is specified as the remote
320 command.
321
322 -T Disable pseudo-tty allocation.
323
324 -t Force pseudo-tty allocation. This can be used to execute arbi-
325 trary screen-based programs on a remote machine, which can be
326 very useful, e.g. when implementing menu services. Multiple -t
327 options force tty allocation, even if ssh has no local tty.
328
329 -V Display the version number and exit.
330
331 -v Verbose mode. Causes ssh to print debugging messages about its
332 progress. This is helpful in debugging connection, authentica-
333 tion, and configuration problems. Multiple -v options increase
334 the verbosity. The maximum is 3.
335
336 -W host:port
337 Requests that standard input and output on the client be forward-
338 ed to host on port over the secure channel. Implies -N, -T,
339 ExitOnForwardFailure and ClearAllForwardings and works with Pro-
340 tocol version 2 only.
341
342 -w local_tun[:remote_tun]
343 Requests tunnel device forwarding with the specified tun(4) de-
344 vices between the client (local_tun) and the server (remote_tun).
345
346 The devices may be specified by numerical ID or the keyword
347 ``any'', which uses the next available tunnel device. If
348 remote_tun is not specified, it defaults to ``any''. See also
349 the Tunnel and TunnelDevice directives in ssh_config(5). If the
350 Tunnel directive is unset, it is set to the default tunnel mode,
351 which is ``point-to-point''.
352
353 -X Enables X11 forwarding. This can also be specified on a per-host
354 basis in a configuration file.
355
356 X11 forwarding should be enabled with caution. Users with the
357 ability to bypass file permissions on the remote host (for the
358 user's X authorization database) can access the local X11 display
359 through the forwarded connection. An attacker may then be able
360 to perform activities such as keystroke monitoring.
361
362 For this reason, X11 forwarding is subjected to X11 SECURITY ex-
363 tension restrictions by default. Please refer to the ssh -Y op-
364 tion and the ForwardX11Trusted directive in ssh_config(5) for
365 more information.
366
367 -x Disables X11 forwarding.
368
369 -Y Enables trusted X11 forwarding. Trusted X11 forwardings are not
370 subjected to the X11 SECURITY extension controls.
371
372 -y Send log information using the syslog(3) system module. By de-
373 fault this information is sent to stderr.
374
375 ssh may additionally obtain configuration data from a per-user configura-
376 tion file and a system-wide configuration file. The file format and con-
377 figuration options are described in ssh_config(5).
378
379 ssh exits with the exit status of the remote command or with 255 if an
380 error occurred.
381
382AUTHENTICATION
383 The OpenSSH SSH client supports SSH protocols 1 and 2. The default is to
384 use protocol 2 only, though this can be changed via the Protocol option
385 in ssh_config(5) or the -1 and -2 options (see above). Both protocols
386 support similar authentication methods, but protocol 2 is the default
387 since it provides additional mechanisms for confidentiality (the traffic
388 is encrypted using AES, 3DES, Blowfish, CAST128, or Arcfour) and integri-
389 ty (hmac-md5, hmac-sha1, umac-64, hmac-ripemd160). Protocol 1 lacks a
390 strong mechanism for ensuring the integrity of the connection.
391
392 The methods available for authentication are: GSSAPI-based authentica-
393 tion, host-based authentication, public key authentication, challenge-re-
394 sponse authentication, and password authentication. Authentication meth-
395 ods are tried in the order specified above, though protocol 2 has a con-
396 figuration option to change the default order: PreferredAuthentications.
397
398 Host-based authentication works as follows: If the machine the user logs
399 in from is listed in /etc/hosts.equiv or /etc/shosts.equiv on the remote
400 machine, and the user names are the same on both sides, or if the files
401 ~/.rhosts or ~/.shosts exist in the user's home directory on the remote
402 machine and contain a line containing the name of the client machine and
403 the name of the user on that machine, the user is considered for login.
404 Additionally, the server must be able to verify the client's host key
405 (see the description of /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts,
406 below) for login to be permitted. This authentication method closes se-
407 curity holes due to IP spoofing, DNS spoofing, and routing spoofing.
408 [Note to the administrator: /etc/hosts.equiv, ~/.rhosts, and the
409 rlogin/rsh protocol in general, are inherently insecure and should be
410 disabled if security is desired.]
411
412 Public key authentication works as follows: The scheme is based on pub-
413 lic-key cryptography, using cryptosystems where encryption and decryption
414 are done using separate keys, and it is unfeasible to derive the decryp-
415 tion key from the encryption key. The idea is that each user creates a
416 public/private key pair for authentication purposes. The server knows
417 the public key, and only the user knows the private key. ssh implements
418 public key authentication protocol automatically, using either the RSA or
419 DSA algorithms. Protocol 1 is restricted to using only RSA keys, but
420 protocol 2 may use either. The HISTORY section of ssl(8) contains a
421 brief discussion of the two algorithms.
422
423 The file ~/.ssh/authorized_keys lists the public keys that are permitted
424 for logging in. When the user logs in, the ssh program tells the server
425 which key pair it would like to use for authentication. The client
426 proves that it has access to the private key and the server checks that
427 the corresponding public key is authorized to accept the account.
428
429 The user creates his/her key pair by running ssh-keygen(1). This stores
430 the private key in ~/.ssh/identity (protocol 1), ~/.ssh/id_dsa (protocol
431 2 DSA), or ~/.ssh/id_rsa (protocol 2 RSA) and stores the public key in
432 ~/.ssh/identity.pub (protocol 1), ~/.ssh/id_dsa.pub (protocol 2 DSA), or
433 ~/.ssh/id_rsa.pub (protocol 2 RSA) in the user's home directory. The us-
434 er should then copy the public key to ~/.ssh/authorized_keys in his/her
435 home directory on the remote machine. The authorized_keys file corre-
436 sponds to the conventional ~/.rhosts file, and has one key per line,
437 though the lines can be very long. After this, the user can log in with-
438 out giving the password.
439
440 A variation on public key authentication is available in the form of cer-
441 tificate authentication: instead of a set of public/private keys, signed
442 certificates are used. This has the advantage that a single trusted cer-
443 tification authority can be used in place of many public/private keys.
444 See the CERTIFICATES section of ssh-keygen(1) for more information.
445
446 The most convenient way to use public key or certificate authentication
447 may be with an authentication agent. See ssh-agent(1) for more informa-
448 tion.
449
450 Challenge-response authentication works as follows: The server sends an
451 arbitrary "challenge" text, and prompts for a response. Protocol 2 al-
452 lows multiple challenges and responses; protocol 1 is restricted to just
453 one challenge/response. Examples of challenge-response authentication
454 include BSD Authentication (see login.conf(5)) and PAM (some non-OpenBSD
455 systems).
456
457 Finally, if other authentication methods fail, ssh prompts the user for a
458 password. The password is sent to the remote host for checking; however,
459 since all communications are encrypted, the password cannot be seen by
460 someone listening on the network.
461
462 ssh automatically maintains and checks a database containing identifica-
463 tion for all hosts it has ever been used with. Host keys are stored in
464 ~/.ssh/known_hosts in the user's home directory. Additionally, the file
465 /etc/ssh/ssh_known_hosts is automatically checked for known hosts. Any
466 new hosts are automatically added to the user's file. If a host's iden-
467 tification ever changes, ssh warns about this and disables password au-
468 thentication to prevent server spoofing or man-in-the-middle attacks,
469 which could otherwise be used to circumvent the encryption. The
470 StrictHostKeyChecking option can be used to control logins to machines
471 whose host key is not known or has changed.
472
473 When the user's identity has been accepted by the server, the server ei-
474 ther executes the given command, or logs into the machine and gives the
475 user a normal shell on the remote machine. All communication with the
476 remote command or shell will be automatically encrypted.
477
478 If a pseudo-terminal has been allocated (normal login session), the user
479 may use the escape characters noted below.
480
481 If no pseudo-tty has been allocated, the session is transparent and can
482 be used to reliably transfer binary data. On most systems, setting the
483 escape character to ``none'' will also make the session transparent even
484 if a tty is used.
485
486 The session terminates when the command or shell on the remote machine
487 exits and all X11 and TCP connections have been closed.
488
489ESCAPE CHARACTERS
490 When a pseudo-terminal has been requested, ssh supports a number of func-
491 tions through the use of an escape character.
492
493 A single tilde character can be sent as ~~ or by following the tilde by a
494 character other than those described below. The escape character must
495 always follow a newline to be interpreted as special. The escape charac-
496 ter can be changed in configuration files using the EscapeChar configura-
497 tion directive or on the command line by the -e option.
498
499 The supported escapes (assuming the default `~') are:
500
501 ~. Disconnect.
502
503 ~^Z Background ssh.
504
505 ~# List forwarded connections.
506
507 ~& Background ssh at logout when waiting for forwarded connection /
508 X11 sessions to terminate.
509
510 ~? Display a list of escape characters.
511
512 ~B Send a BREAK to the remote system (only useful for SSH protocol
513 version 2 and if the peer supports it).
514
515 ~C Open command line. Currently this allows the addition of port
516 forwardings using the -L, -R and -D options (see above). It also
517 allows the cancellation of existing remote port-forwardings using
518 -KR[bind_address:]port. !command allows the user to execute a
519 local command if the PermitLocalCommand option is enabled in
520 ssh_config(5). Basic help is available, using the -h option.
521
522 ~R Request rekeying of the connection (only useful for SSH protocol
523 version 2 and if the peer supports it).
524
525TCP FORWARDING
526 Forwarding of arbitrary TCP connections over the secure channel can be
527 specified either on the command line or in a configuration file. One
528 possible application of TCP forwarding is a secure connection to a mail
529 server; another is going through firewalls.
530
531 In the example below, we look at encrypting communication between an IRC
532 client and server, even though the IRC server does not directly support
533 encrypted communications. This works as follows: the user connects to
534 the remote host using ssh, specifying a port to be used to forward con-
535 nections to the remote server. After that it is possible to start the
536 service which is to be encrypted on the client machine, connecting to the
537 same local port, and ssh will encrypt and forward the connection.
538
539 The following example tunnels an IRC session from client machine
540 ``127.0.0.1'' (localhost) to remote server ``server.example.com'':
541
542 $ ssh -f -L 1234:localhost:6667 server.example.com sleep 10
543 $ irc -c '#users' -p 1234 pinky 127.0.0.1
544
545 This tunnels a connection to IRC server ``server.example.com'', joining
546 channel ``#users'', nickname ``pinky'', using port 1234. It doesn't mat-
547 ter which port is used, as long as it's greater than 1023 (remember, only
548 root can open sockets on privileged ports) and doesn't conflict with any
549 ports already in use. The connection is forwarded to port 6667 on the
550 remote server, since that's the standard port for IRC services.
551
552 The -f option backgrounds ssh and the remote command ``sleep 10'' is
553 specified to allow an amount of time (10 seconds, in the example) to
554 start the service which is to be tunnelled. If no connections are made
555 within the time specified, ssh will exit.
556
557X11 FORWARDING
558 If the ForwardX11 variable is set to ``yes'' (or see the description of
559 the -X, -x, and -Y options above) and the user is using X11 (the DISPLAY
560 environment variable is set), the connection to the X11 display is auto-
561 matically forwarded to the remote side in such a way that any X11 pro-
562 grams started from the shell (or command) will go through the encrypted
563 channel, and the connection to the real X server will be made from the
564 local machine. The user should not manually set DISPLAY. Forwarding of
565 X11 connections can be configured on the command line or in configuration
566 files.
567
568 The DISPLAY value set by ssh will point to the server machine, but with a
569 display number greater than zero. This is normal, and happens because
570 ssh creates a ``proxy'' X server on the server machine for forwarding the
571 connections over the encrypted channel.
572
573 ssh will also automatically set up Xauthority data on the server machine.
574 For this purpose, it will generate a random authorization cookie, store
575 it in Xauthority on the server, and verify that any forwarded connections
576 carry this cookie and replace it by the real cookie when the connection
577 is opened. The real authentication cookie is never sent to the server
578 machine (and no cookies are sent in the plain).
579
580 If the ForwardAgent variable is set to ``yes'' (or see the description of
581 the -A and -a options above) and the user is using an authentication
582 agent, the connection to the agent is automatically forwarded to the re-
583 mote side.
584
585VERIFYING HOST KEYS
586 When connecting to a server for the first time, a fingerprint of the
587 server's public key is presented to the user (unless the option
588 StrictHostKeyChecking has been disabled). Fingerprints can be determined
589 using ssh-keygen(1):
590
591 $ ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key
592
593 If the fingerprint is already known, it can be matched and the key can be
594 accepted or rejected. Because of the difficulty of comparing host keys
595 just by looking at hex strings, there is also support to compare host
596 keys visually, using random art. By setting the VisualHostKey option to
597 ``yes'', a small ASCII graphic gets displayed on every login to a server,
598 no matter if the session itself is interactive or not. By learning the
599 pattern a known server produces, a user can easily find out that the host
600 key has changed when a completely different pattern is displayed. Be-
601 cause these patterns are not unambiguous however, a pattern that looks
602 similar to the pattern remembered only gives a good probability that the
603 host key is the same, not guaranteed proof.
604
605 To get a listing of the fingerprints along with their random art for all
606 known hosts, the following command line can be used:
607
608 $ ssh-keygen -lv -f ~/.ssh/known_hosts
609
610 If the fingerprint is unknown, an alternative method of verification is
611 available: SSH fingerprints verified by DNS. An additional resource
612 record (RR), SSHFP, is added to a zonefile and the connecting client is
613 able to match the fingerprint with that of the key presented.
614
615 In this example, we are connecting a client to a server,
616 ``host.example.com''. The SSHFP resource records should first be added
617 to the zonefile for host.example.com:
618
619 $ ssh-keygen -r host.example.com.
620
621 The output lines will have to be added to the zonefile. To check that
622 the zone is answering fingerprint queries:
623
624 $ dig -t SSHFP host.example.com
625
626 Finally the client connects:
627
628 $ ssh -o "VerifyHostKeyDNS ask" host.example.com
629 [...]
630 Matching host key fingerprint found in DNS.
631 Are you sure you want to continue connecting (yes/no)?
632
633 See the VerifyHostKeyDNS option in ssh_config(5) for more information.
634
635SSH-BASED VIRTUAL PRIVATE NETWORKS
636 ssh contains support for Virtual Private Network (VPN) tunnelling using
637 the tun(4) network pseudo-device, allowing two networks to be joined se-
638 curely. The sshd_config(5) configuration option PermitTunnel controls
639 whether the server supports this, and at what level (layer 2 or 3 traf-
640 fic).
641
642 The following example would connect client network 10.0.50.0/24 with re-
643 mote network 10.0.99.0/24 using a point-to-point connection from 10.1.1.1
644 to 10.1.1.2, provided that the SSH server running on the gateway to the
645 remote network, at 192.168.1.15, allows it.
646
647 On the client:
648
649 # ssh -f -w 0:1 192.168.1.15 true
650 # ifconfig tun0 10.1.1.1 10.1.1.2 netmask 255.255.255.252
651 # route add 10.0.99.0/24 10.1.1.2
652
653 On the server:
654
655 # ifconfig tun1 10.1.1.2 10.1.1.1 netmask 255.255.255.252
656 # route add 10.0.50.0/24 10.1.1.1
657
658 Client access may be more finely tuned via the /root/.ssh/authorized_keys
659 file (see below) and the PermitRootLogin server option. The following
660 entry would permit connections on tun(4) device 1 from user ``jane'' and
661 on tun device 2 from user ``john'', if PermitRootLogin is set to
662 ``forced-commands-only'':
663
664 tunnel="1",command="sh /etc/netstart tun1" ssh-rsa ... jane
665 tunnel="2",command="sh /etc/netstart tun2" ssh-rsa ... john
666
667 Since an SSH-based setup entails a fair amount of overhead, it may be
668 more suited to temporary setups, such as for wireless VPNs. More perma-
669 nent VPNs are better provided by tools such as ipsecctl(8) and
670 isakmpd(8).
671
672ENVIRONMENT
673 ssh will normally set the following environment variables:
674
675 DISPLAY The DISPLAY variable indicates the location of the
676 X11 server. It is automatically set by ssh to
677 point to a value of the form ``hostname:n'', where
678 ``hostname'' indicates the host where the shell
679 runs, and `n' is an integer >= 1. ssh uses this
680 special value to forward X11 connections over the
681 secure channel. The user should normally not set
682 DISPLAY explicitly, as that will render the X11
683 connection insecure (and will require the user to
684 manually copy any required authorization cookies).
685
686 HOME Set to the path of the user's home directory.
687
688 LOGNAME Synonym for USER; set for compatibility with sys-
689 tems that use this variable.
690
691 MAIL Set to the path of the user's mailbox.
692
693 PATH Set to the default PATH, as specified when compil-
694 ing ssh.
695
696 SSH_ASKPASS If ssh needs a passphrase, it will read the
697 passphrase from the current terminal if it was run
698 from a terminal. If ssh does not have a terminal
699 associated with it but DISPLAY and SSH_ASKPASS are
700 set, it will execute the program specified by
701 SSH_ASKPASS and open an X11 window to read the
702 passphrase. This is particularly useful when call-
703 ing ssh from a .xsession or related script. (Note
704 that on some machines it may be necessary to redi-
705 rect the input from /dev/null to make this work.)
706
707 SSH_AUTH_SOCK Identifies the path of a UNIX-domain socket used to
708 communicate with the agent.
709
710 SSH_CONNECTION Identifies the client and server ends of the con-
711 nection. The variable contains four space-separat-
712 ed values: client IP address, client port number,
713 server IP address, and server port number.
714
715 SSH_ORIGINAL_COMMAND This variable contains the original command line if
716 a forced command is executed. It can be used to
717 extract the original arguments.
718
719 SSH_TTY This is set to the name of the tty (path to the de-
720 vice) associated with the current shell or command.
721 If the current session has no tty, this variable is
722 not set.
723
724 TZ This variable is set to indicate the present time
725 zone if it was set when the daemon was started
726 (i.e. the daemon passes the value on to new connec-
727 tions).
728
729 USER Set to the name of the user logging in.
730
731 Additionally, ssh reads ~/.ssh/environment, and adds lines of the format
732 ``VARNAME=value'' to the environment if the file exists and users are al-
733 lowed to change their environment. For more information, see the
734 PermitUserEnvironment option in sshd_config(5).
735
736FILES
737 ~/.rhosts
738 This file is used for host-based authentication (see above). On
739 some machines this file may need to be world-readable if the us-
740 er's home directory is on an NFS partition, because sshd(8) reads
741 it as root. Additionally, this file must be owned by the user,
742 and must not have write permissions for anyone else. The recom-
743 mended permission for most machines is read/write for the user,
744 and not accessible by others.
745
746 ~/.shosts
747 This file is used in exactly the same way as .rhosts, but allows
748 host-based authentication without permitting login with
749 rlogin/rsh.
750
751 ~/.ssh/
752 This directory is the default location for all user-specific con-
753 figuration and authentication information. There is no general
754 requirement to keep the entire contents of this directory secret,
755 but the recommended permissions are read/write/execute for the
756 user, and not accessible by others.
757
758 ~/.ssh/authorized_keys
759 Lists the public keys (RSA/DSA) that can be used for logging in
760 as this user. The format of this file is described in the
761 sshd(8) manual page. This file is not highly sensitive, but the
762 recommended permissions are read/write for the user, and not ac-
763 cessible by others.
764
765 ~/.ssh/config
766 This is the per-user configuration file. The file format and
767 configuration options are described in ssh_config(5). Because of
768 the potential for abuse, this file must have strict permissions:
769 read/write for the user, and not accessible by others.
770
771 ~/.ssh/environment
772 Contains additional definitions for environment variables; see
773 ENVIRONMENT, above.
774
775 ~/.ssh/identity
776 ~/.ssh/id_dsa
777 ~/.ssh/id_rsa
778 Contains the private key for authentication. These files contain
779 sensitive data and should be readable by the user but not acces-
780 sible by others (read/write/execute). ssh will simply ignore a
781 private key file if it is accessible by others. It is possible
782 to specify a passphrase when generating the key which will be
783 used to encrypt the sensitive part of this file using 3DES.
784
785 ~/.ssh/identity.pub
786 ~/.ssh/id_dsa.pub
787 ~/.ssh/id_rsa.pub
788 Contains the public key for authentication. These files are not
789 sensitive and can (but need not) be readable by anyone.
790
791 ~/.ssh/known_hosts
792 Contains a list of host keys for all hosts the user has logged
793 into that are not already in the systemwide list of known host
794 keys. See sshd(8) for further details of the format of this
795 file.
796
797 ~/.ssh/rc
798 Commands in this file are executed by ssh when the user logs in,
799 just before the user's shell (or command) is started. See the
800 sshd(8) manual page for more information.
801
802 /etc/hosts.equiv
803 This file is for host-based authentication (see above). It
804 should only be writable by root.
805
806 /etc/shosts.equiv
807 This file is used in exactly the same way as hosts.equiv, but al-
808 lows host-based authentication without permitting login with
809 rlogin/rsh.
810
811 /etc/ssh/ssh_config
812 Systemwide configuration file. The file format and configuration
813 options are described in ssh_config(5).
814
815 /etc/ssh/ssh_host_key
816 /etc/ssh/ssh_host_dsa_key
817 /etc/ssh/ssh_host_rsa_key
818 These three files contain the private parts of the host keys and
819 are used for host-based authentication. If protocol version 1 is
820 used, ssh must be setuid root, since the host key is readable on-
821 ly by root. For protocol version 2, ssh uses ssh-keysign(8) to
822 access the host keys, eliminating the requirement that ssh be se-
823 tuid root when host-based authentication is used. By default ssh
824 is not setuid root.
825
826 /etc/ssh/ssh_known_hosts
827 Systemwide list of known host keys. This file should be prepared
828 by the system administrator to contain the public host keys of
829 all machines in the organization. It should be world-readable.
830 See sshd(8) for further details of the format of this file.
831
832 /etc/ssh/sshrc
833 Commands in this file are executed by ssh when the user logs in,
834 just before the user's shell (or command) is started. See the
835 sshd(8) manual page for more information.
836
837SEE ALSO
838 scp(1), sftp(1), ssh-add(1), ssh-agent(1), ssh-keygen(1), ssh-keyscan(1),
839 tun(4), hosts.equiv(5), ssh_config(5), ssh-keysign(8), sshd(8)
840
841 The Secure Shell (SSH) Protocol Assigned Numbers, RFC 4250, 2006.
842
843 The Secure Shell (SSH) Protocol Architecture, RFC 4251, 2006.
844
845 The Secure Shell (SSH) Authentication Protocol, RFC 4252, 2006.
846
847 The Secure Shell (SSH) Transport Layer Protocol, RFC 4253, 2006.
848
849 The Secure Shell (SSH) Connection Protocol, RFC 4254, 2006.
850
851 Using DNS to Securely Publish Secure Shell (SSH) Key Fingerprints, RFC
852 4255, 2006.
853
854 Generic Message Exchange Authentication for the Secure Shell Protocol
855 (SSH), RFC 4256, 2006.
856
857 The Secure Shell (SSH) Session Channel Break Extension, RFC 4335, 2006.
858
859 The Secure Shell (SSH) Transport Layer Encryption Modes, RFC 4344, 2006.
860
861 Improved Arcfour Modes for the Secure Shell (SSH) Transport Layer
862 Protocol, RFC 4345, 2006.
863
864 Diffie-Hellman Group Exchange for the Secure Shell (SSH) Transport Layer
865 Protocol, RFC 4419, 2006.
866
867 The Secure Shell (SSH) Public Key File Format, RFC 4716, 2006.
868
869 A. Perrig and D. Song, Hash Visualization: a New Technique to improve
870 Real-World Security, 1999, International Workshop on Cryptographic
871 Techniques and E-Commerce (CrypTEC '99).
872
873AUTHORS
874 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
875 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
876 de Raadt and Dug Song removed many bugs, re-added newer features and
877 created OpenSSH. Markus Friedl contributed the support for SSH protocol
878 versions 1.5 and 2.0.
879
880OpenBSD 4.7 March 26, 2010 14
diff --git a/ssh_config.0 b/ssh_config.0
new file mode 100644
index 000000000..1a2c64ce1
--- /dev/null
+++ b/ssh_config.0
@@ -0,0 +1,676 @@
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 fol-
12 lowing order:
13
14 1. command-line options
15 2. user's configuration file (~/.ssh/config)
16 3. system-wide configuration file (/etc/ssh/ssh_config)
17
18 For each parameter, the first obtained value will be used. The configu-
19 ration files contain sections separated by ``Host'' specifications, and
20 that section is only applied for hosts that match one of the patterns
21 given in the specification. The matched host name is the one given on
22 the command line.
23
24 Since the first obtained value for each parameter is used, more host-spe-
25 cific declarations should be given near the beginning of the file, and
26 general defaults at the end.
27
28 The configuration file has the following format:
29
30 Empty lines and lines starting with `#' are comments. Otherwise a line
31 is of the format ``keyword arguments''. Configuration options may be
32 separated by whitespace or optional whitespace and exactly one `='; the
33 latter format is useful to avoid the need to quote whitespace when speci-
34 fying configuration options using the ssh, scp, and sftp -o option. Ar-
35 guments may optionally be enclosed in double quotes (") in order to rep-
36 resent arguments containing spaces.
37
38 The possible keywords and their meanings are as follows (note that key-
39 words are case-insensitive and arguments are case-sensitive):
40
41 Host Restricts the following declarations (up to the next Host key-
42 word) to be only for those hosts that match one of the patterns
43 given after the keyword. If more than one pattern is provided,
44 they should be separated by whitespace. A single `*' as a pat-
45 tern can be used to provide global defaults for all hosts. The
46 host is the hostname argument given on the command line (i.e. the
47 name is not converted to a canonicalized host name before match-
48 ing).
49
50 See PATTERNS for more information on patterns.
51
52 AddressFamily
53 Specifies which address family to use when connecting. Valid ar-
54 guments are ``any'', ``inet'' (use IPv4 only), or ``inet6'' (use
55 IPv6 only).
56
57 BatchMode
58 If set to ``yes'', passphrase/password querying will be disabled.
59 This option is useful in scripts and other batch jobs where no
60 user is present to supply the password. The argument must be
61 ``yes'' or ``no''. The default is ``no''.
62
63 BindAddress
64 Use the specified address on the local machine as the source ad-
65 dress of the connection. Only useful on systems with more than
66 one address. Note that this option does not work if
67 UsePrivilegedPort is set to ``yes''.
68
69 ChallengeResponseAuthentication
70 Specifies whether to use challenge-response authentication. The
71 argument to this keyword must be ``yes'' or ``no''. The default
72 is ``yes''.
73
74 CheckHostIP
75 If this flag is set to ``yes'', ssh(1) will additionally check
76 the host IP address in the known_hosts file. This allows ssh to
77 detect if a host key changed due to DNS spoofing. If the option
78 is set to ``no'', the check will not be executed. The default is
79 ``yes''.
80
81 Cipher Specifies the cipher to use for encrypting the session in proto-
82 col version 1. Currently, ``blowfish'', ``3des'', and ``des''
83 are supported. des is only supported in the ssh(1) client for
84 interoperability with legacy protocol 1 implementations that do
85 not support the 3des cipher. Its use is strongly discouraged due
86 to cryptographic weaknesses. The default is ``3des''.
87
88 Ciphers
89 Specifies the ciphers allowed for protocol version 2 in order of
90 preference. Multiple ciphers must be comma-separated. The sup-
91 ported ciphers are ``3des-cbc'', ``aes128-cbc'', ``aes192-cbc'',
92 ``aes256-cbc'', ``aes128-ctr'', ``aes192-ctr'', ``aes256-ctr'',
93 ``arcfour128'', ``arcfour256'', ``arcfour'', ``blowfish-cbc'',
94 and ``cast128-cbc''. The default is:
95
96 aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,
97 aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,
98 aes256-cbc,arcfour
99
100 ClearAllForwardings
101 Specifies that all local, remote, and dynamic port forwardings
102 specified in the configuration files or on the command line be
103 cleared. This option is primarily useful when used from the
104 ssh(1) command line to clear port forwardings set in configura-
105 tion files, and is automatically set by scp(1) and sftp(1). The
106 argument must be ``yes'' or ``no''. The default is ``no''.
107
108 Compression
109 Specifies whether to use compression. The argument must be
110 ``yes'' or ``no''. The default is ``no''.
111
112 CompressionLevel
113 Specifies the compression level to use if compression is enabled.
114 The argument must be an integer from 1 (fast) to 9 (slow, best).
115 The default level is 6, which is good for most applications. The
116 meaning of the values is the same as in gzip(1). Note that this
117 option applies to protocol version 1 only.
118
119 ConnectionAttempts
120 Specifies the number of tries (one per second) to make before ex-
121 iting. The argument must be an integer. This may be useful in
122 scripts if the connection sometimes fails. The default is 1.
123
124 ConnectTimeout
125 Specifies the timeout (in seconds) used when connecting to the
126 SSH server, instead of using the default system TCP timeout.
127 This value is used only when the target is down or really un-
128 reachable, not when it refuses the connection.
129
130 ControlMaster
131 Enables the sharing of multiple sessions over a single network
132 connection. When set to ``yes'', ssh(1) will listen for connec-
133 tions on a control socket specified using the ControlPath argu-
134 ment. Additional sessions can connect to this socket using the
135 same ControlPath with ControlMaster set to ``no'' (the default).
136 These sessions will try to reuse the master instance's network
137 connection rather than initiating new ones, but will fall back to
138 connecting normally if the control socket does not exist, or is
139 not listening.
140
141 Setting this to ``ask'' will cause ssh to listen for control con-
142 nections, but require confirmation using the SSH_ASKPASS program
143 before they are accepted (see ssh-add(1) for details). If the
144 ControlPath cannot be opened, ssh will continue without connect-
145 ing to a master instance.
146
147 X11 and ssh-agent(1) forwarding is supported over these multi-
148 plexed connections, however the display and agent forwarded will
149 be the one belonging to the master connection i.e. it is not pos-
150 sible to forward multiple displays or agents.
151
152 Two additional options allow for opportunistic multiplexing: try
153 to use a master connection but fall back to creating a new one if
154 one does not already exist. These options are: ``auto'' and
155 ``autoask''. The latter requires confirmation like the ``ask''
156 option.
157
158 ControlPath
159 Specify the path to the control socket used for connection shar-
160 ing as described in the ControlMaster section above or the string
161 ``none'' to disable connection sharing. In the path, `%l' will
162 be substituted by the local host name, `%h' will be substituted
163 by the target host name, `%p' the port, and `%r' by the remote
164 login username. It is recommended that any ControlPath used for
165 opportunistic connection sharing include at least %h, %p, and %r.
166 This ensures that shared connections are uniquely identified.
167
168 DynamicForward
169 Specifies that a TCP port on the local machine be forwarded over
170 the secure channel, and the application protocol is then used to
171 determine where to connect to from the remote machine.
172
173 The argument must be [bind_address:]port. IPv6 addresses can be
174 specified by enclosing addresses in square brackets or by using
175 an alternative syntax: [bind_address/]port. By default, the lo-
176 cal port is bound in accordance with the GatewayPorts setting.
177 However, an explicit bind_address may be used to bind the connec-
178 tion to a specific address. The bind_address of ``localhost''
179 indicates that the listening port be bound for local use only,
180 while an empty address or `*' indicates that the port should be
181 available from all interfaces.
182
183 Currently the SOCKS4 and SOCKS5 protocols are supported, and
184 ssh(1) will act as a SOCKS server. Multiple forwardings may be
185 specified, and additional forwardings can be given on the command
186 line. Only the superuser can forward privileged ports.
187
188 EnableSSHKeysign
189 Setting this option to ``yes'' in the global client configuration
190 file /etc/ssh/ssh_config enables the use of the helper program
191 ssh-keysign(8) during HostbasedAuthentication. The argument must
192 be ``yes'' or ``no''. The default is ``no''. This option should
193 be placed in the non-hostspecific section. See ssh-keysign(8)
194 for more information.
195
196 EscapeChar
197 Sets the escape character (default: `~'). The escape character
198 can also be set on the command line. The argument should be a
199 single character, `^' followed by a letter, or ``none'' to dis-
200 able the escape character entirely (making the connection trans-
201 parent for binary data).
202
203 ExitOnForwardFailure
204 Specifies whether ssh(1) should terminate the connection if it
205 cannot set up all requested dynamic, tunnel, local, and remote
206 port forwardings. The argument must be ``yes'' or ``no''. The
207 default is ``no''.
208
209 ForwardAgent
210 Specifies whether the connection to the authentication agent (if
211 any) will be forwarded to the remote machine. The argument must
212 be ``yes'' or ``no''. The default is ``no''.
213
214 Agent forwarding should be enabled with caution. Users with the
215 ability to bypass file permissions on the remote host (for the
216 agent's Unix-domain socket) can access the local agent through
217 the forwarded connection. An attacker cannot obtain key material
218 from the agent, however they can perform operations on the keys
219 that enable them to authenticate using the identities loaded into
220 the agent.
221
222 ForwardX11
223 Specifies whether X11 connections will be automatically redirect-
224 ed over the secure channel and DISPLAY set. The argument must be
225 ``yes'' or ``no''. The default is ``no''.
226
227 X11 forwarding should be enabled with caution. Users with the
228 ability to bypass file permissions on the remote host (for the
229 user's X11 authorization database) can access the local X11 dis-
230 play through the forwarded connection. An attacker may then be
231 able to perform activities such as keystroke monitoring if the
232 ForwardX11Trusted option is also enabled.
233
234 ForwardX11Trusted
235 If this option is set to ``yes'', remote X11 clients will have
236 full access to the original X11 display.
237
238 If this option is set to ``no'', remote X11 clients will be con-
239 sidered untrusted and prevented from stealing or tampering with
240 data belonging to trusted X11 clients. Furthermore, the xauth(1)
241 token used for the session will be set to expire after 20 min-
242 utes. Remote clients will be refused access after this time.
243
244 The default is ``no''.
245
246 See the X11 SECURITY extension specification for full details on
247 the restrictions imposed on untrusted clients.
248
249 GatewayPorts
250 Specifies whether remote hosts are allowed to connect to local
251 forwarded ports. By default, ssh(1) binds local port forwardings
252 to the loopback address. This prevents other remote hosts from
253 connecting to forwarded ports. GatewayPorts can be used to spec-
254 ify that ssh should bind local port forwardings to the wildcard
255 address, thus allowing remote hosts to connect to forwarded
256 ports. The argument must be ``yes'' or ``no''. The default is
257 ``no''.
258
259 GlobalKnownHostsFile
260 Specifies a file to use for the global host key database instead
261 of /etc/ssh/ssh_known_hosts.
262
263 GSSAPIAuthentication
264 Specifies whether user authentication based on GSSAPI is allowed.
265 The default is ``no''. Note that this option applies to protocol
266 version 2 only.
267
268 GSSAPIDelegateCredentials
269 Forward (delegate) credentials to the server. The default is
270 ``no''. Note that this option applies to protocol version 2 on-
271 ly.
272
273 HashKnownHosts
274 Indicates that ssh(1) should hash host names and addresses when
275 they are added to ~/.ssh/known_hosts. These hashed names may be
276 used normally by ssh(1) and sshd(8), but they do not reveal iden-
277 tifying information should the file's contents be disclosed. The
278 default is ``no''. Note that existing names and addresses in
279 known hosts files will not be converted automatically, but may be
280 manually hashed using ssh-keygen(1).
281
282 HostbasedAuthentication
283 Specifies whether to try rhosts based authentication with public
284 key authentication. The argument must be ``yes'' or ``no''. The
285 default is ``no''. This option applies to protocol version 2 on-
286 ly and is similar to RhostsRSAAuthentication.
287
288 HostKeyAlgorithms
289 Specifies the protocol version 2 host key algorithms that the
290 client wants to use in order of preference. The default for this
291 option is: ``ssh-rsa,ssh-dss''.
292
293 HostKeyAlias
294 Specifies an alias that should be used instead of the real host
295 name when looking up or saving the host key in the host key
296 database files. This option is useful for tunneling SSH connec-
297 tions or for multiple servers running on a single host.
298
299 HostName
300 Specifies the real host name to log into. This can be used to
301 specify nicknames or abbreviations for hosts. The default is the
302 name given on the command line. Numeric IP addresses are also
303 permitted (both on the command line and in HostName specifica-
304 tions).
305
306 IdentitiesOnly
307 Specifies that ssh(1) should only use the authentication identity
308 files configured in the ssh_config files, even if ssh-agent(1)
309 offers more identities. The argument to this keyword must be
310 ``yes'' or ``no''. This option is intended for situations where
311 ssh-agent offers many different identities. The default is
312 ``no''.
313
314 IdentityFile
315 Specifies a file from which the user's RSA or DSA authentication
316 identity is read. The default is ~/.ssh/identity for protocol
317 version 1, and ~/.ssh/id_rsa and ~/.ssh/id_dsa for protocol ver-
318 sion 2. Additionally, any identities represented by the authen-
319 tication agent will be used for authentication. ssh(1) will try
320 to load certificate information from the filename obtained by ap-
321 pending -cert.pub to the path of a specified IdentityFile.
322
323 The file name may use the tilde syntax to refer to a user's home
324 directory or one of the following escape characters: `%d' (local
325 user's home directory), `%u' (local user name), `%l' (local host
326 name), `%h' (remote host name) or `%r' (remote user name).
327
328 It is possible to have multiple identity files specified in con-
329 figuration files; all these identities will be tried in sequence.
330
331 KbdInteractiveAuthentication
332 Specifies whether to use keyboard-interactive authentication.
333 The argument to this keyword must be ``yes'' or ``no''. The de-
334 fault is ``yes''.
335
336 KbdInteractiveDevices
337 Specifies the list of methods to use in keyboard-interactive au-
338 thentication. Multiple method names must be comma-separated.
339 The default is to use the server specified list. The methods
340 available vary depending on what the server supports. For an
341 OpenSSH server, it may be zero or more of: ``bsdauth'', ``pam'',
342 and ``skey''.
343
344 LocalCommand
345 Specifies a command to execute on the local machine after suc-
346 cessfully connecting to the server. The command string extends
347 to the end of the line, and is executed with the user's shell.
348 The following escape character substitutions will be performed:
349 `%d' (local user's home directory), `%h' (remote host name), `%l'
350 (local host name), `%n' (host name as provided on the command
351 line), `%p' (remote port), `%r' (remote user name) or `%u' (local
352 user name).
353
354 The command is run synchronously and does not have access to the
355 session of the ssh(1) that spawned it. It should not be used for
356 interactive commands.
357
358 This directive is ignored unless PermitLocalCommand has been en-
359 abled.
360
361 LocalForward
362 Specifies that a TCP port on the local machine be forwarded over
363 the secure channel to the specified host and port from the remote
364 machine. The first argument must be [bind_address:]port and the
365 second argument must be host:hostport. IPv6 addresses can be
366 specified by enclosing addresses in square brackets or by using
367 an alternative syntax: [bind_address/]port and host/hostport.
368 Multiple forwardings may be specified, and additional forwardings
369 can be given on the command line. Only the superuser can forward
370 privileged ports. By default, the local port is bound in accor-
371 dance with the GatewayPorts setting. However, an explicit
372 bind_address may be used to bind the connection to a specific ad-
373 dress. The bind_address of ``localhost'' indicates that the lis-
374 tening port be bound for local use only, while an empty address
375 or `*' indicates that the port should be available from all in-
376 terfaces.
377
378 LogLevel
379 Gives the verbosity level that is used when logging messages from
380 ssh(1). The possible values are: QUIET, FATAL, ERROR, INFO, VER-
381 BOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. The default is INFO.
382 DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify
383 higher levels of verbose output.
384
385 MACs Specifies the MAC (message authentication code) algorithms in or-
386 der of preference. The MAC algorithm is used in protocol version
387 2 for data integrity protection. Multiple algorithms must be
388 comma-separated. The default is:
389
390 hmac-md5,hmac-sha1,umac-64@openssh.com,
391 hmac-ripemd160,hmac-sha1-96,hmac-md5-96
392
393 NoHostAuthenticationForLocalhost
394 This option can be used if the home directory is shared across
395 machines. In this case localhost will refer to a different ma-
396 chine on each of the machines and the user will get many warnings
397 about changed host keys. However, this option disables host au-
398 thentication for localhost. The argument to this keyword must be
399 ``yes'' or ``no''. The default is to check the host key for lo-
400 calhost.
401
402 NumberOfPasswordPrompts
403 Specifies the number of password prompts before giving up. The
404 argument to this keyword must be an integer. The default is 3.
405
406 PasswordAuthentication
407 Specifies whether to use password authentication. The argument
408 to this keyword must be ``yes'' or ``no''. The default is
409 ``yes''.
410
411 PermitLocalCommand
412 Allow local command execution via the LocalCommand option or us-
413 ing the !command escape sequence in ssh(1). The argument must be
414 ``yes'' or ``no''. The default is ``no''.
415
416 PKCS11Provider
417 Specifies which PKCS#11 provider to use. The argument to this
418 keyword is the PKCS#11 shared libary ssh(1) should use to commu-
419 nicate with a PKCS#11 token providing the user's private RSA key.
420
421 Port Specifies the port number to connect on the remote host. The de-
422 fault is 22.
423
424 PreferredAuthentications
425 Specifies the order in which the client should try protocol 2 au-
426 thentication methods. This allows a client to prefer one method
427 (e.g. keyboard-interactive) over another method (e.g. password)
428 The default for this option is: ``gssapi-with-
429 mic,hostbased,publickey,keyboard-interactive,password''.
430
431 Protocol
432 Specifies the protocol versions ssh(1) should support in order of
433 preference. The possible values are `1' and `2'. Multiple ver-
434 sions must be comma-separated. When this option is set to
435 ``2,1'' ssh will try version 2 and fall back to version 1 if ver-
436 sion 2 is not available. The default is `2'.
437
438 ProxyCommand
439 Specifies the command to use to connect to the server. The com-
440 mand string extends to the end of the line, and is executed with
441 the user's shell. In the command string, `%h' will be substitut-
442 ed by the host name to connect and `%p' by the port. The command
443 can be basically anything, and should read from its standard in-
444 put and write to its standard output. It should eventually con-
445 nect an sshd(8) server running on some machine, or execute sshd
446 -i somewhere. Host key management will be done using the Host-
447 Name of the host being connected (defaulting to the name typed by
448 the user). Setting the command to ``none'' disables this option
449 entirely. Note that CheckHostIP is not available for connects
450 with a proxy command.
451
452 This directive is useful in conjunction with nc(1) and its proxy
453 support. For example, the following directive would connect via
454 an HTTP proxy at 192.0.2.0:
455
456 ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p
457
458 PubkeyAuthentication
459 Specifies whether to try public key authentication. The argument
460 to this keyword must be ``yes'' or ``no''. The default is
461 ``yes''. This option applies to protocol version 2 only.
462
463 RekeyLimit
464 Specifies the maximum amount of data that may be transmitted be-
465 fore the session key is renegotiated. The argument is the number
466 of bytes, with an optional suffix of `K', `M', or `G' to indicate
467 Kilobytes, Megabytes, or Gigabytes, respectively. The default is
468 between `1G' and `4G', depending on the cipher. This option ap-
469 plies to protocol version 2 only.
470
471 RemoteForward
472 Specifies that a TCP port on the remote machine be forwarded over
473 the secure channel to the specified host and port from the local
474 machine. The first argument must be [bind_address:]port and the
475 second argument must be host:hostport. IPv6 addresses can be
476 specified by enclosing addresses in square brackets or by using
477 an alternative syntax: [bind_address/]port and host/hostport.
478 Multiple forwardings may be specified, and additional forwardings
479 can be given on the command line. Privileged ports can be for-
480 warded only when logging in as root on the remote machine.
481
482 If the port argument is `0', the listen port will be dynamically
483 allocated on the server and reported to the client at run time.
484
485 If the bind_address is not specified, the default is to only bind
486 to loopback addresses. If the bind_address is `*' or an empty
487 string, then the forwarding is requested to listen on all inter-
488 faces. Specifying a remote bind_address will only succeed if the
489 server's GatewayPorts option is enabled (see sshd_config(5)).
490
491 RhostsRSAAuthentication
492 Specifies whether to try rhosts based authentication with RSA
493 host authentication. The argument must be ``yes'' or ``no''.
494 The default is ``no''. This option applies to protocol version 1
495 only and requires ssh(1) to be setuid root.
496
497 RSAAuthentication
498 Specifies whether to try RSA authentication. The argument to
499 this keyword must be ``yes'' or ``no''. RSA authentication will
500 only be attempted if the identity file exists, or an authentica-
501 tion agent is running. The default is ``yes''. Note that this
502 option applies to protocol version 1 only.
503
504 SendEnv
505 Specifies what variables from the local environ(7) should be sent
506 to the server. Note that environment passing is only supported
507 for protocol 2. The server must also support it, and the server
508 must be configured to accept these environment variables. Refer
509 to AcceptEnv in sshd_config(5) for how to configure the server.
510 Variables are specified by name, which may contain wildcard char-
511 acters. Multiple environment variables may be separated by
512 whitespace or spread across multiple SendEnv directives. The de-
513 fault is not to send any environment variables.
514
515 See PATTERNS for more information on patterns.
516
517 ServerAliveCountMax
518 Sets the number of server alive messages (see below) which may be
519 sent without ssh(1) receiving any messages back from the server.
520 If this threshold is reached while server alive messages are be-
521 ing sent, ssh will disconnect from the server, terminating the
522 session. It is important to note that the use of server alive
523 messages is very different from TCPKeepAlive (below). The server
524 alive messages are sent through the encrypted channel and there-
525 fore will not be spoofable. The TCP keepalive option enabled by
526 TCPKeepAlive is spoofable. The server alive mechanism is valu-
527 able when the client or server depend on knowing when a connec-
528 tion has become inactive.
529
530 The default value is 3. If, for example, ServerAliveInterval
531 (see below) is set to 15 and ServerAliveCountMax is left at the
532 default, if the server becomes unresponsive, ssh will disconnect
533 after approximately 45 seconds. This option applies to protocol
534 version 2 only.
535
536 ServerAliveInterval
537 Sets a timeout interval in seconds after which if no data has
538 been received from the server, ssh(1) will send a message through
539 the encrypted channel to request a response from the server. The
540 default is 0, indicating that these messages will not be sent to
541 the server. This option applies to protocol version 2 only.
542
543 StrictHostKeyChecking
544 If this flag is set to ``yes'', ssh(1) will never automatically
545 add host keys to the ~/.ssh/known_hosts file, and refuses to con-
546 nect to hosts whose host key has changed. This provides maximum
547 protection against trojan horse attacks, though it can be annoy-
548 ing when the /etc/ssh/ssh_known_hosts file is poorly maintained
549 or when connections to new hosts are frequently made. This op-
550 tion forces the user to manually add all new hosts. If this flag
551 is set to ``no'', ssh will automatically add new host keys to the
552 user known hosts files. If this flag is set to ``ask'', new host
553 keys will be added to the user known host files only after the
554 user has confirmed that is what they really want to do, and ssh
555 will refuse to connect to hosts whose host key has changed. The
556 host keys of known hosts will be verified automatically in all
557 cases. The argument must be ``yes'', ``no'', or ``ask''. The
558 default is ``ask''.
559
560 TCPKeepAlive
561 Specifies whether the system should send TCP keepalive messages
562 to the other side. If they are sent, death of the connection or
563 crash of one of the machines will be properly noticed. However,
564 this means that connections will die if the route is down tem-
565 porarily, and some people find it annoying.
566
567 The default is ``yes'' (to send TCP keepalive messages), and the
568 client will notice if the network goes down or the remote host
569 dies. This is important in scripts, and many users want it too.
570
571 To disable TCP keepalive messages, the value should be set to
572 ``no''.
573
574 Tunnel Request tun(4) device forwarding between the client and the serv-
575 er. The argument must be ``yes'', ``point-to-point'' (layer 3),
576 ``ethernet'' (layer 2), or ``no''. Specifying ``yes'' requests
577 the default tunnel mode, which is ``point-to-point''. The de-
578 fault is ``no''.
579
580 TunnelDevice
581 Specifies the tun(4) devices to open on the client (local_tun)
582 and the server (remote_tun).
583
584 The argument must be local_tun[:remote_tun]. The devices may be
585 specified by numerical ID or the keyword ``any'', which uses the
586 next available tunnel device. If remote_tun is not specified, it
587 defaults to ``any''. The default is ``any:any''.
588
589 UsePrivilegedPort
590 Specifies whether to use a privileged port for outgoing connec-
591 tions. The argument must be ``yes'' or ``no''. The default is
592 ``no''. If set to ``yes'', ssh(1) must be setuid root. Note
593 that this option must be set to ``yes'' for
594 RhostsRSAAuthentication with older servers.
595
596 User Specifies the user to log in as. This can be useful when a dif-
597 ferent user name is used on different machines. This saves the
598 trouble of having to remember to give the user name on the com-
599 mand line.
600
601 UserKnownHostsFile
602 Specifies a file to use for the user host key database instead of
603 ~/.ssh/known_hosts.
604
605 VerifyHostKeyDNS
606 Specifies whether to verify the remote key using DNS and SSHFP
607 resource records. If this option is set to ``yes'', the client
608 will implicitly trust keys that match a secure fingerprint from
609 DNS. Insecure fingerprints will be handled as if this option was
610 set to ``ask''. If this option is set to ``ask'', information on
611 fingerprint match will be displayed, but the user will still need
612 to confirm new host keys according to the StrictHostKeyChecking
613 option. The argument must be ``yes'', ``no'', or ``ask''. The
614 default is ``no''. Note that this option applies to protocol
615 version 2 only.
616
617 See also VERIFYING HOST KEYS in ssh(1).
618
619 VisualHostKey
620 If this flag is set to ``yes'', an ASCII art representation of
621 the remote host key fingerprint is printed in addition to the hex
622 fingerprint string at login and for unknown host keys. If this
623 flag is set to ``no'', no fingerprint strings are printed at lo-
624 gin and only the hex fingerprint string will be printed for un-
625 known host keys. The default is ``no''.
626
627 XAuthLocation
628 Specifies the full pathname of the xauth(1) program. The default
629 is /usr/X11R6/bin/xauth.
630
631PATTERNS
632 A pattern consists of zero or more non-whitespace characters, `*' (a
633 wildcard that matches zero or more characters), or `?' (a wildcard that
634 matches exactly one character). For example, to specify a set of decla-
635 rations for any host in the ``.co.uk'' set of domains, the following pat-
636 tern could be used:
637
638 Host *.co.uk
639
640 The following pattern would match any host in the 192.168.0.[0-9] network
641 range:
642
643 Host 192.168.0.?
644
645 A pattern-list is a comma-separated list of patterns. Patterns within
646 pattern-lists may be negated by preceding them with an exclamation mark
647 (`!'). For example, to allow a key to be used from anywhere within an
648 organisation except from the ``dialup'' pool, the following entry (in au-
649 thorized_keys) could be used:
650
651 from="!*.dialup.example.com,*.example.com"
652
653FILES
654 ~/.ssh/config
655 This is the per-user configuration file. The format of this file
656 is described above. This file is used by the SSH client. Be-
657 cause of the potential for abuse, this file must have strict per-
658 missions: read/write for the user, and not accessible by others.
659
660 /etc/ssh/ssh_config
661 Systemwide configuration file. This file provides defaults for
662 those values that are not specified in the user's configuration
663 file, and for those users who do not have a configuration file.
664 This file must be world-readable.
665
666SEE ALSO
667 ssh(1)
668
669AUTHORS
670 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
671 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
672 de Raadt and Dug Song removed many bugs, re-added newer features and cre-
673 ated OpenSSH. Markus Friedl contributed the support for SSH protocol
674 versions 1.5 and 2.0.
675
676OpenBSD 4.7 March 26, 2010 11
diff --git a/sshd.0 b/sshd.0
new file mode 100644
index 000000000..30bf6dede
--- /dev/null
+++ b/sshd.0
@@ -0,0 +1,617 @@
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 com-
14 munications between two untrusted hosts over an insecure network.
15
16 sshd listens for connections from clients. It is normally started at
17 boot from /etc/rc. It forks a new daemon for each incoming connection.
18 The forked daemons handle key exchange, encryption, authentication, com-
19 mand execution, and data exchange.
20
21 sshd can be configured using command-line options or a configuration file
22 (by default sshd_config(5)); command-line options override values speci-
23 fied in the configuration file. sshd rereads its configuration file when
24 it receives a hangup signal, SIGHUP, by executing itself with the name
25 and options it was started with, e.g. /usr/sbin/sshd.
26
27 The options are as follows:
28
29 -4 Forces sshd to use IPv4 addresses only.
30
31 -6 Forces sshd to use IPv6 addresses only.
32
33 -b bits
34 Specifies the number of bits in the ephemeral protocol version 1
35 server key (default 1024).
36
37 -C connection_spec
38 Specify the connection parameters to use for the -T extended test
39 mode. If provided, any Match directives in the configuration
40 file that would apply to the specified user, host, and address
41 will be set before the configuration is written to standard out-
42 put. The connection parameters are supplied as keyword=value
43 pairs. The keywords are ``user'', ``host'', and ``addr''. All
44 are required and may be supplied in any order, either with multi-
45 ple -C options or as a comma-separated list.
46
47 -c host_certificate_file
48 Specifies a path to a certificate file to identify sshd during
49 key exchange. The certificate file must match a host key file
50 specified using the -h option or the HostKey configuration direc-
51 tive.
52
53 -D When this option is specified, sshd will not detach and does not
54 become a daemon. This allows easy monitoring of sshd.
55
56 -d Debug mode. The server sends verbose debug output to standard
57 error, and does not put itself in the background. The server al-
58 so will not fork and will only process one connection. This op-
59 tion is only intended for debugging for the server. Multiple -d
60 options increase the debugging level. Maximum is 3.
61
62 -e When this option is specified, sshd will send the output to the
63 standard error instead of the system log.
64
65 -f config_file
66 Specifies the name of the configuration file. The default is
67 /etc/ssh/sshd_config. sshd refuses to start if there is no con-
68 figuration file.
69
70 -g login_grace_time
71 Gives the grace time for clients to authenticate themselves (de-
72 fault 120 seconds). If the client fails to authenticate the user
73 within this many seconds, the server disconnects and exits. A
74 value of zero indicates no limit.
75
76 -h host_key_file
77 Specifies a file from which a host key is read. This option must
78 be given if sshd is not run as root (as the normal host key files
79 are normally not readable by anyone but root). The default is
80 /etc/ssh/ssh_host_key for protocol version 1, and
81 /etc/ssh/ssh_host_rsa_key and /etc/ssh/ssh_host_dsa_key for pro-
82 tocol version 2. It is possible to have multiple host key files
83 for the different protocol versions and host key algorithms.
84
85 -i Specifies that sshd is being run from inetd(8). sshd is normally
86 not run from inetd because it needs to generate the server key
87 before it can respond to the client, and this may take tens of
88 seconds. Clients would have to wait too long if the key was re-
89 generated every time. However, with small key sizes (e.g. 512)
90 using sshd from inetd may be feasible.
91
92 -k key_gen_time
93 Specifies how often the ephemeral protocol version 1 server key
94 is regenerated (default 3600 seconds, or one hour). The motiva-
95 tion for regenerating the key fairly often is that the key is not
96 stored anywhere, and after about an hour it becomes impossible to
97 recover the key for decrypting intercepted communications even if
98 the machine is cracked into or physically seized. A value of ze-
99 ro indicates that the key will never be regenerated.
100
101 -o option
102 Can be used to give options in the format used in the configura-
103 tion file. This is useful for specifying options for which there
104 is no separate command-line flag. For full details of the op-
105 tions, and their values, see sshd_config(5).
106
107 -p port
108 Specifies the port on which the server listens for connections
109 (default 22). Multiple port options are permitted. Ports speci-
110 fied in the configuration file with the Port option are ignored
111 when a command-line port is specified. Ports specified using the
112 ListenAddress option override command-line ports.
113
114 -q Quiet mode. Nothing is sent to the system log. Normally the be-
115 ginning, authentication, and termination of each connection is
116 logged.
117
118 -T Extended test mode. Check the validity of the configuration
119 file, output the effective configuration to stdout and then exit.
120 Optionally, Match rules may be applied by specifying the connec-
121 tion parameters using one or more -C options.
122
123 -t Test mode. Only check the validity of the configuration file and
124 sanity of the keys. This is useful for updating sshd reliably as
125 configuration options may change.
126
127 -u len This option is used to specify the size of the field in the utmp
128 structure that holds the remote host name. If the resolved host
129 name is longer than len, the dotted decimal value will be used
130 instead. This allows hosts with very long host names that over-
131 flow this field to still be uniquely identified. Specifying -u0
132 indicates that only dotted decimal addresses should be put into
133 the utmp file. -u0 may also be used to prevent sshd from making
134 DNS requests unless the authentication mechanism or configuration
135 requires it. Authentication mechanisms that may require DNS in-
136 clude RhostsRSAAuthentication, HostbasedAuthentication, and using
137 a from="pattern-list" option in a key file. Configuration op-
138 tions that require DNS include using a USER@HOST pattern in
139 AllowUsers or DenyUsers.
140
141AUTHENTICATION
142 The OpenSSH SSH daemon supports SSH protocols 1 and 2. The default is to
143 use protocol 2 only, though this can be changed via the Protocol option
144 in sshd_config(5). Protocol 2 supports both RSA and DSA keys; protocol 1
145 only supports RSA keys. For both protocols, each host has a host-specif-
146 ic key, normally 2048 bits, used to identify the host.
147
148 Forward security for protocol 1 is provided through an additional server
149 key, normally 768 bits, generated when the server starts. This key is
150 normally regenerated every hour if it has been used, and is never stored
151 on disk. Whenever a client connects, the daemon responds with its public
152 host and server keys. The client compares the RSA host key against its
153 own database to verify that it has not changed. The client then gener-
154 ates a 256-bit random number. It encrypts this random number using both
155 the host key and the server key, and sends the encrypted number to the
156 server. Both sides then use this random number as a session key which is
157 used to encrypt all further communications in the session. The rest of
158 the session is encrypted using a conventional cipher, currently Blowfish
159 or 3DES, with 3DES being used by default. The client selects the encryp-
160 tion algorithm to use from those offered by the server.
161
162 For protocol 2, forward security is provided through a Diffie-Hellman key
163 agreement. This key agreement results in a shared session key. The rest
164 of the session is encrypted using a symmetric cipher, currently 128-bit
165 AES, Blowfish, 3DES, CAST128, Arcfour, 192-bit AES, or 256-bit AES. The
166 client selects the encryption algorithm to use from those offered by the
167 server. Additionally, session integrity is provided through a crypto-
168 graphic message authentication code (hmac-md5, hmac-sha1, umac-64 or
169 hmac-ripemd160).
170
171 Finally, the server and the client enter an authentication dialog. The
172 client tries to authenticate itself using host-based authentication, pub-
173 lic key authentication, challenge-response authentication, or password
174 authentication.
175
176 Regardless of the authentication type, the account is checked to ensure
177 that it is accessible. An account is not accessible if it is locked,
178 listed in DenyUsers or its group is listed in DenyGroups . The defini-
179 tion of a locked account is system dependant. Some platforms have their
180 own account database (eg AIX) and some modify the passwd field ( `*LK*'
181 on Solaris and UnixWare, `*' on HP-UX, containing `Nologin' on Tru64, a
182 leading `*LOCKED*' on FreeBSD and a leading `!' on most Linuxes). If
183 there is a requirement to disable password authentication for the account
184 while allowing still public-key, then the passwd field should be set to
185 something other than these values (eg `NP' or `*NP*' ).
186
187 If the client successfully authenticates itself, a dialog for preparing
188 the session is entered. At this time the client may request things like
189 allocating a pseudo-tty, forwarding X11 connections, forwarding TCP con-
190 nections, or forwarding the authentication agent connection over the se-
191 cure channel.
192
193 After this, the client either requests a shell or execution of a command.
194 The sides then enter session mode. In this mode, either side may send
195 data at any time, and such data is forwarded to/from the shell or command
196 on the server side, and the user terminal in the client side.
197
198 When the user program terminates and all forwarded X11 and other connec-
199 tions have been closed, the server sends command exit status to the
200 client, and both sides exit.
201
202LOGIN PROCESS
203 When a user successfully logs in, sshd does the following:
204
205 1. If the login is on a tty, and no command has been specified,
206 prints last login time and /etc/motd (unless prevented in the
207 configuration file or by ~/.hushlogin; see the FILES section).
208
209 2. If the login is on a tty, records login time.
210
211 3. Checks /etc/nologin; if it exists, prints contents and quits
212 (unless root).
213
214 4. Changes to run with normal user privileges.
215
216 5. Sets up basic environment.
217
218 6. Reads the file ~/.ssh/environment, if it exists, and users are
219 allowed to change their environment. See the
220 PermitUserEnvironment option in sshd_config(5).
221
222 7. Changes to user's home directory.
223
224 8. If ~/.ssh/rc exists, runs it; else if /etc/ssh/sshrc exists,
225 runs it; otherwise runs xauth. The ``rc'' files are given the
226 X11 authentication protocol and cookie in standard input. See
227 SSHRC, below.
228
229 9. Runs user's shell or command.
230
231SSHRC
232 If the file ~/.ssh/rc exists, sh(1) runs it after reading the environment
233 files but before starting the user's shell or command. It must not pro-
234 duce any output on stdout; stderr must be used instead. If X11 forward-
235 ing is in use, it will receive the "proto cookie" pair in its standard
236 input (and DISPLAY in its environment). The script must call xauth(1)
237 because sshd will not run xauth automatically to add X11 cookies.
238
239 The primary purpose of this file is to run any initialization routines
240 which may be needed before the user's home directory becomes accessible;
241 AFS is a particular example of such an environment.
242
243 This file will probably contain some initialization code followed by
244 something similar to:
245
246 if read proto cookie && [ -n "$DISPLAY" ]; then
247 if [ `echo $DISPLAY | cut -c1-10` = 'localhost:' ]; then
248 # X11UseLocalhost=yes
249 echo add unix:`echo $DISPLAY |
250 cut -c11-` $proto $cookie
251 else
252 # X11UseLocalhost=no
253 echo add $DISPLAY $proto $cookie
254 fi | xauth -q -
255 fi
256
257 If this file does not exist, /etc/ssh/sshrc is run, and if that does not
258 exist either, xauth is used to add the cookie.
259
260AUTHORIZED_KEYS FILE FORMAT
261 AuthorizedKeysFile specifies the file containing public keys for public
262 key authentication; if none is specified, the default is
263 ~/.ssh/authorized_keys. Each line of the file contains one key (empty
264 lines and lines starting with a `#' are ignored as comments). Protocol 1
265 public keys consist of the following space-separated fields: options,
266 bits, exponent, modulus, comment. Protocol 2 public key consist of: op-
267 tions, keytype, base64-encoded key, comment. The options field is op-
268 tional; its presence is determined by whether the line starts with a num-
269 ber or not (the options field never starts with a number). The bits, ex-
270 ponent, modulus, and comment fields give the RSA key for protocol version
271 1; the comment field is not used for anything (but may be convenient for
272 the user to identify the key). For protocol version 2 the keytype is
273 ``ssh-dss'' or ``ssh-rsa''.
274
275 Note that lines in this file are usually several hundred bytes long (be-
276 cause of the size of the public key encoding) up to a limit of 8 kilo-
277 bytes, which permits DSA keys up to 8 kilobits and RSA keys up to 16
278 kilobits. You don't want to type them in; instead, copy the
279 identity.pub, id_dsa.pub, or the id_rsa.pub file and edit it.
280
281 sshd enforces a minimum RSA key modulus size for protocol 1 and protocol
282 2 keys of 768 bits.
283
284 The options (if present) consist of comma-separated option specifica-
285 tions. No spaces are permitted, except within double quotes. The fol-
286 lowing option specifications are supported (note that option keywords are
287 case-insensitive):
288
289 cert-authority
290 Specifies that the listed key is a certification authority (CA)
291 that is trusted to validate signed certificates for user authen-
292 tication.
293
294 Certificates may encode access restrictions similar to these key
295 options. If both certificate restrictions and key options are
296 present, the most restrictive union of the two is applied.
297
298 command="command"
299 Specifies that the command is executed whenever this key is used
300 for authentication. The command supplied by the user (if any) is
301 ignored. The command is run on a pty if the client requests a
302 pty; otherwise it is run without a tty. If an 8-bit clean chan-
303 nel is required, one must not request a pty or should specify no-
304 pty. A quote may be included in the command by quoting it with a
305 backslash. This option might be useful to restrict certain pub-
306 lic keys to perform just a specific operation. An example might
307 be a key that permits remote backups but nothing else. Note that
308 the client may specify TCP and/or X11 forwarding unless they are
309 explicitly prohibited. The command originally supplied by the
310 client is available in the SSH_ORIGINAL_COMMAND environment vari-
311 able. Note that this option applies to shell, command or subsys-
312 tem execution. Also note that this command may be superseded by
313 either a sshd_config(5) ForceCommand directive or a command em-
314 bedded in a certificate.
315
316 environment="NAME=value"
317 Specifies that the string is to be added to the environment when
318 logging in using this key. Environment variables set this way
319 override other default environment values. Multiple options of
320 this type are permitted. Environment processing is disabled by
321 default and is controlled via the PermitUserEnvironment option.
322 This option is automatically disabled if UseLogin is enabled.
323
324 from="pattern-list"
325 Specifies that in addition to public key authentication, either
326 the canonical name of the remote host or its IP address must be
327 present in the comma-separated list of patterns. See PATTERNS in
328 ssh_config(5) for more information on patterns.
329
330 In addition to the wildcard matching that may be applied to host-
331 names or addresses, a from stanza may match IP addresses using
332 CIDR address/masklen notation.
333
334 The purpose of this option is to optionally increase security:
335 public key authentication by itself does not trust the network or
336 name servers or anything (but the key); however, if somebody
337 somehow steals the key, the key permits an intruder to log in
338 from anywhere in the world. This additional option makes using a
339 stolen key more difficult (name servers and/or routers would have
340 to be compromised in addition to just the key).
341
342 no-agent-forwarding
343 Forbids authentication agent forwarding when this key is used for
344 authentication.
345
346 no-port-forwarding
347 Forbids TCP forwarding when this key is used for authentication.
348 Any port forward requests by the client will return an error.
349 This might be used, e.g. in connection with the command option.
350
351 no-pty Prevents tty allocation (a request to allocate a pty will fail).
352
353 no-user-rc
354 Disables execution of ~/.ssh/rc.
355
356 no-X11-forwarding
357 Forbids X11 forwarding when this key is used for authentication.
358 Any X11 forward requests by the client will return an error.
359
360 permitopen="host:port"
361 Limit local ``ssh -L'' port forwarding such that it may only con-
362 nect to the specified host and port. IPv6 addresses can be spec-
363 ified with an alternative syntax: host/port. Multiple permitopen
364 options may be applied separated by commas. No pattern matching
365 is performed on the specified hostnames, they must be literal do-
366 mains or addresses.
367
368 tunnel="n"
369 Force a tun(4) device on the server. Without this option, the
370 next available device will be used if the client requests a tun-
371 nel.
372
373 An example authorized_keys file:
374
375 # Comments allowed at start of line
376 ssh-rsa AAAAB3Nza...LiPk== user@example.net
377 from="*.sales.example.net,!pc.sales.example.net" ssh-rsa
378 AAAAB2...19Q== john@example.net
379 command="dump /home",no-pty,no-port-forwarding ssh-dss
380 AAAAC3...51R== example.net
381 permitopen="192.0.2.1:80",permitopen="192.0.2.2:25" ssh-dss
382 AAAAB5...21S==
383 tunnel="0",command="sh /etc/netstart tun0" ssh-rsa AAAA...==
384 jane@example.net
385
386SSH_KNOWN_HOSTS FILE FORMAT
387 The /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts files contain host
388 public keys for all known hosts. The global file should be prepared by
389 the administrator (optional), and the per-user file is maintained auto-
390 matically: whenever the user connects from an unknown host, its key is
391 added to the per-user file.
392
393 Each line in these files contains the following fields: markers (option-
394 al), hostnames, bits, exponent, modulus, comment. The fields are sepa-
395 rated by spaces.
396
397 The marker is optional, but if it is present then it must be one of
398 ``@cert-authority'', to indicate that the line contains a certification
399 authority (CA) key, or ``@revoked'', to indicate that the key contained
400 on the line is revoked and must not ever be accepted. Only one marker
401 should be used on a key line.
402
403 Hostnames is a comma-separated list of patterns (`*' and `?' act as wild-
404 cards); each pattern in turn is matched against the canonical host name
405 (when authenticating a client) or against the user-supplied name (when
406 authenticating a server). A pattern may also be preceded by `!' to indi-
407 cate negation: if the host name matches a negated pattern, it is not ac-
408 cepted (by that line) even if it matched another pattern on the line. A
409 hostname or address may optionally be enclosed within `[' and `]' brack-
410 ets then followed by `:' and a non-standard port number.
411
412 Alternately, hostnames may be stored in a hashed form which hides host
413 names and addresses should the file's contents be disclosed. Hashed
414 hostnames start with a `|' character. Only one hashed hostname may ap-
415 pear on a single line and none of the above negation or wildcard opera-
416 tors may be applied.
417
418 Bits, exponent, and modulus are taken directly from the RSA host key;
419 they can be obtained, for example, from /etc/ssh/ssh_host_key.pub. The
420 optional comment field continues to the end of the line, and is not used.
421
422 Lines starting with `#' and empty lines are ignored as comments.
423
424 When performing host authentication, authentication is accepted if any
425 matching line has the proper key; either one that matches exactly or, if
426 the server has presented a certificate for authentication, the key of the
427 certification authority that signed the certificate. For a key to be
428 trusted as a certification authority, it must use the ``@cert-authority''
429 marker described above.
430
431 The known hosts file also provides a facility to mark keys as revoked,
432 for example when it is known that the associated private key has been
433 stolen. Revoked keys are specified by including the ``@revoked'' marker
434 at the beginning of the key line, and are never accepted for authentica-
435 tion or as certification authorities, but instead will produce a warning
436 from ssh(1) when they are encountered.
437
438 It is permissible (but not recommended) to have several lines or differ-
439 ent host keys for the same names. This will inevitably happen when short
440 forms of host names from different domains are put in the file. It is
441 possible that the files contain conflicting information; authentication
442 is accepted if valid information can be found from either file.
443
444 Note that the lines in these files are typically hundreds of characters
445 long, and you definitely don't want to type in the host keys by hand.
446 Rather, generate them by a script, ssh-keyscan(1) or by taking
447 /etc/ssh/ssh_host_key.pub and adding the host names at the front.
448 ssh-keygen(1) also offers some basic automated editing for
449 ~/.ssh/known_hosts including removing hosts matching a host name and con-
450 verting all host names to their hashed representations.
451
452 An example ssh_known_hosts file:
453
454 # Comments allowed at start of line
455 closenet,...,192.0.2.53 1024 37 159...93 closenet.example.net
456 cvs.example.net,192.0.2.10 ssh-rsa AAAA1234.....=
457 # A hashed hostname
458 |1|JfKTdBh7rNbXkVAQCRp4OQoPfmI=|USECr3SWf1JUPsms5AqfD5QfxkM= ssh-rsa
459 AAAA1234.....=
460 # A revoked key
461 @revoked * ssh-rsa AAAAB5W...
462 # A CA key, accepted for any host in *.mydomain.com or *.mydomain.org
463 @cert-authority *.mydomain.org,*.mydomain.com ssh-rsa AAAAB5W...
464
465FILES
466 ~/.hushlogin
467 This file is used to suppress printing the last login time and
468 /etc/motd, if PrintLastLog and PrintMotd, respectively, are en-
469 abled. It does not suppress printing of the banner specified by
470 Banner.
471
472 ~/.rhosts
473 This file is used for host-based authentication (see ssh(1) for
474 more information). On some machines this file may need to be
475 world-readable if the user's home directory is on an NFS parti-
476 tion, because sshd reads it as root. Additionally, this file
477 must be owned by the user, and must not have write permissions
478 for anyone else. The recommended permission for most machines is
479 read/write for the user, and not accessible by others.
480
481 ~/.shosts
482 This file is used in exactly the same way as .rhosts, but allows
483 host-based authentication without permitting login with
484 rlogin/rsh.
485
486 ~/.ssh/
487 This directory is the default location for all user-specific con-
488 figuration and authentication information. There is no general
489 requirement to keep the entire contents of this directory secret,
490 but the recommended permissions are read/write/execute for the
491 user, and not accessible by others.
492
493 ~/.ssh/authorized_keys
494 Lists the public keys (RSA/DSA) that can be used for logging in
495 as this user. The format of this file is described above. The
496 content of the file is not highly sensitive, but the recommended
497 permissions are read/write for the user, and not accessible by
498 others.
499
500 If this file, the ~/.ssh directory, or the user's home directory
501 are writable by other users, then the file could be modified or
502 replaced by unauthorized users. In this case, sshd will not al-
503 low it to be used unless the StrictModes option has been set to
504 ``no''.
505
506 ~/.ssh/environment
507 This file is read into the environment at login (if it exists).
508 It can only contain empty lines, comment lines (that start with
509 `#'), and assignment lines of the form name=value. The file
510 should be writable only by the user; it need not be readable by
511 anyone else. Environment processing is disabled by default and
512 is controlled via the PermitUserEnvironment option.
513
514 ~/.ssh/known_hosts
515 Contains a list of host keys for all hosts the user has logged
516 into that are not already in the systemwide list of known host
517 keys. The format of this file is described above. This file
518 should be writable only by root/the owner and can, but need not
519 be, world-readable.
520
521 ~/.ssh/rc
522 Contains initialization routines to be run before the user's home
523 directory becomes accessible. This file should be writable only
524 by the user, and need not be readable by anyone else.
525
526 /etc/hosts.allow
527 /etc/hosts.deny
528 Access controls that should be enforced by tcp-wrappers are de-
529 fined here. Further details are described in hosts_access(5).
530
531 /etc/hosts.equiv
532 This file is for host-based authentication (see ssh(1)). It
533 should only be writable by root.
534
535 /etc/moduli
536 Contains Diffie-Hellman groups used for the "Diffie-Hellman Group
537 Exchange". The file format is described in moduli(5).
538
539 /etc/motd
540 See motd(5).
541
542 /etc/nologin
543 If this file exists, sshd refuses to let anyone except root log
544 in. The contents of the file are displayed to anyone trying to
545 log in, and non-root connections are refused. The file should be
546 world-readable.
547
548 /etc/shosts.equiv
549 This file is used in exactly the same way as hosts.equiv, but al-
550 lows host-based authentication without permitting login with
551 rlogin/rsh.
552
553 /etc/ssh/ssh_host_key
554 /etc/ssh/ssh_host_dsa_key
555 /etc/ssh/ssh_host_rsa_key
556 These three files contain the private parts of the host keys.
557 These files should only be owned by root, readable only by root,
558 and not accessible to others. Note that sshd does not start if
559 these files are group/world-accessible.
560
561 /etc/ssh/ssh_host_key.pub
562 /etc/ssh/ssh_host_dsa_key.pub
563 /etc/ssh/ssh_host_rsa_key.pub
564 These three files contain the public parts of the host keys.
565 These files should be world-readable but writable only by root.
566 Their contents should match the respective private parts. These
567 files are not really used for anything; they are provided for the
568 convenience of the user so their contents can be copied to known
569 hosts files. These files are created using ssh-keygen(1).
570
571 /etc/ssh/ssh_known_hosts
572 Systemwide list of known host keys. This file should be prepared
573 by the system administrator to contain the public host keys of
574 all machines in the organization. The format of this file is de-
575 scribed above. This file should be writable only by root/the
576 owner and should be world-readable.
577
578 /etc/ssh/sshd_config
579 Contains configuration data for sshd. The file format and con-
580 figuration options are described in sshd_config(5).
581
582 /etc/ssh/sshrc
583 Similar to ~/.ssh/rc, it can be used to specify machine-specific
584 login-time initializations globally. This file should be
585 writable only by root, and should be world-readable.
586
587 /var/empty
588 chroot(2) directory used by sshd during privilege separation in
589 the pre-authentication phase. The directory should not contain
590 any files and must be owned by root and not group or world-
591 writable.
592
593 /var/run/sshd.pid
594 Contains the process ID of the sshd listening for connections (if
595 there are several daemons running concurrently for different
596 ports, this contains the process ID of the one started last).
597 The content of this file is not sensitive; it can be world-read-
598 able.
599
600SEE ALSO
601 scp(1), sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1),
602 ssh-keyscan(1), chroot(2), hosts_access(5), login.conf(5), moduli(5),
603 sshd_config(5), inetd(8), sftp-server(8)
604
605AUTHORS
606 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
607 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
608 de Raadt and Dug Song removed many bugs, re-added newer features and cre-
609 ated OpenSSH. Markus Friedl contributed the support for SSH protocol
610 versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support
611 for privilege separation.
612
613CAVEATS
614 System security is not improved unless rshd, rlogind, and rexecd are dis-
615 abled (thus completely disabling rlogin and rsh into the machine).
616
617OpenBSD 4.7 March 5, 2010 10
diff --git a/sshd_config.0 b/sshd_config.0
new file mode 100644
index 000000000..94935c07f
--- /dev/null
+++ b/sshd_config.0
@@ -0,0 +1,659 @@
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-argu-
12 ment pairs, one per line. Lines starting with `#' and empty lines are
13 interpreted as comments. Arguments may optionally be enclosed in double
14 quotes (") in order to represent arguments containing spaces.
15
16 The possible keywords and their meanings are as follows (note that key-
17 words are case-insensitive and arguments are case-sensitive):
18
19 AcceptEnv
20 Specifies what environment variables sent by the client will be
21 copied into the session's environ(7). See SendEnv in
22 ssh_config(5) for how to configure the client. Note that envi-
23 ronment passing is only supported for protocol 2. Variables are
24 specified by name, which may contain the wildcard characters `*'
25 and `?'. Multiple environment variables may be separated by
26 whitespace or spread across multiple AcceptEnv directives. Be
27 warned that some environment variables could be used to bypass
28 restricted user environments. For this reason, care should be
29 taken in the use of this directive. The default is not to accept
30 any environment variables.
31
32 AddressFamily
33 Specifies which address family should be used by sshd(8). Valid
34 arguments are ``any'', ``inet'' (use IPv4 only), or ``inet6''
35 (use IPv6 only). The default is ``any''.
36
37 AllowAgentForwarding
38 Specifies whether ssh-agent(1) forwarding is permitted. The de-
39 fault is ``yes''. Note that disabling agent forwarding does not
40 improve security unless users are also denied shell access, as
41 they can always install their own forwarders.
42
43 AllowGroups
44 This keyword can be followed by a list of group name patterns,
45 separated by spaces. If specified, login is allowed only for
46 users whose primary group or supplementary group list matches one
47 of the patterns. Only group names are valid; a numerical group
48 ID is not recognized. By default, login is allowed for all
49 groups. The allow/deny directives are processed in the following
50 order: DenyUsers, AllowUsers, DenyGroups, and finally
51 AllowGroups.
52
53 See PATTERNS in ssh_config(5) for more information on patterns.
54
55 AllowTcpForwarding
56 Specifies whether TCP forwarding is permitted. The default is
57 ``yes''. Note that disabling TCP forwarding does not improve se-
58 curity unless users are also denied shell access, as they can al-
59 ways install their own forwarders.
60
61 AllowUsers
62 This keyword can be followed by a list of user name patterns,
63 separated by spaces. If specified, login is allowed only for us-
64 er names that match one of the patterns. Only user names are
65 valid; a numerical user ID is not recognized. By default, login
66 is allowed for all users. If the pattern takes the form US-
67 ER@HOST then USER and HOST are separately checked, restricting
68 logins to particular users from particular hosts. The allow/deny
69 directives are processed in the following order: DenyUsers,
70 AllowUsers, DenyGroups, and finally AllowGroups.
71
72 See PATTERNS in ssh_config(5) for more information on patterns.
73
74 AuthorizedKeysFile
75 Specifies the file that contains the public keys that can be used
76 for user authentication. AuthorizedKeysFile may contain tokens
77 of the form %T which are substituted during connection setup.
78 The following tokens are defined: %% is replaced by a literal
79 '%', %h is replaced by the home directory of the user being au-
80 thenticated, and %u is replaced by the username of that user.
81 After expansion, AuthorizedKeysFile is taken to be an absolute
82 path or one relative to the user's home directory. The default
83 is ``.ssh/authorized_keys''.
84
85 Banner The contents of the specified file are sent to the remote user
86 before authentication is allowed. If the argument is ``none''
87 then no banner is displayed. This option is only available for
88 protocol version 2. By default, no banner is displayed.
89
90 ChallengeResponseAuthentication
91 Specifies whether challenge-response authentication is allowed
92 (e.g. via PAM or though authentication styles supported in
93 login.conf(5)) The default is ``yes''.
94
95 ChrootDirectory
96 Specifies the pathname of a directory to chroot(2) to after au-
97 thentication. All components of the pathname must be root-owned
98 directories that are not writable by any other user or group.
99 After the chroot, sshd(8) changes the working directory to the
100 user's home directory.
101
102 The pathname may contain the following tokens that are expanded
103 at runtime once the connecting user has been authenticated: %% is
104 replaced by a literal '%', %h is replaced by the home directory
105 of the user being authenticated, and %u is replaced by the user-
106 name of that user.
107
108 The ChrootDirectory must contain the necessary files and directo-
109 ries to support the user's session. For an interactive session
110 this requires at least a shell, typically sh(1), and basic /dev
111 nodes such as null(4), zero(4), stdin(4), stdout(4), stderr(4),
112 arandom(4) and tty(4) devices. For file transfer sessions using
113 ``sftp'', no additional configuration of the environment is nec-
114 essary if the in-process sftp server is used, though sessions
115 which use logging do require /dev/log inside the chroot directory
116 (see sftp-server(8) for details).
117
118 The default is not to chroot(2).
119
120 Ciphers
121 Specifies the ciphers allowed for protocol version 2. Multiple
122 ciphers must be comma-separated. The supported ciphers are
123 ``3des-cbc'', ``aes128-cbc'', ``aes192-cbc'', ``aes256-cbc'',
124 ``aes128-ctr'', ``aes192-ctr'', ``aes256-ctr'', ``arcfour128'',
125 ``arcfour256'', ``arcfour'', ``blowfish-cbc'', and
126 ``cast128-cbc''. The default is:
127
128 aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,
129 aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,
130 aes256-cbc,arcfour
131
132 ClientAliveCountMax
133 Sets the number of client alive messages (see below) which may be
134 sent without sshd(8) receiving any messages back from the client.
135 If this threshold is reached while client alive messages are be-
136 ing sent, sshd will disconnect the client, terminating the ses-
137 sion. It is important to note that the use of client alive mes-
138 sages is very different from TCPKeepAlive (below). The client
139 alive messages are sent through the encrypted channel and there-
140 fore will not be spoofable. The TCP keepalive option enabled by
141 TCPKeepAlive is spoofable. The client alive mechanism is valu-
142 able when the client or server depend on knowing when a connec-
143 tion has become inactive.
144
145 The default value is 3. If ClientAliveInterval (see below) is
146 set to 15, and ClientAliveCountMax is left at the default, unre-
147 sponsive SSH clients will be disconnected after approximately 45
148 seconds. This option applies to protocol version 2 only.
149
150 ClientAliveInterval
151 Sets a timeout interval in seconds after which if no data has
152 been received from the client, sshd(8) will send a message
153 through the encrypted channel to request a response from the
154 client. The default is 0, indicating that these messages will
155 not be sent to the client. This option applies to protocol ver-
156 sion 2 only.
157
158 Compression
159 Specifies whether compression is allowed, or delayed until the
160 user has authenticated successfully. The argument must be
161 ``yes'', ``delayed'', or ``no''. The default is ``delayed''.
162
163 DenyGroups
164 This keyword can be followed by a list of group name patterns,
165 separated by spaces. Login is disallowed for users whose primary
166 group or supplementary group list matches one of the patterns.
167 Only group names are valid; a numerical group ID is not recog-
168 nized. By default, login is allowed for all groups. The al-
169 low/deny directives are processed in the following order:
170 DenyUsers, AllowUsers, DenyGroups, and finally AllowGroups.
171
172 See PATTERNS in ssh_config(5) for more information on patterns.
173
174 DenyUsers
175 This keyword can be followed by a list of user name patterns,
176 separated by spaces. Login is disallowed for user names that
177 match one of the patterns. Only user names are valid; a numeri-
178 cal user ID is not recognized. By default, login is allowed for
179 all users. If the pattern takes the form USER@HOST then USER and
180 HOST are separately checked, restricting logins to particular
181 users from particular hosts. The allow/deny directives are pro-
182 cessed in the following order: DenyUsers, AllowUsers, DenyGroups,
183 and finally AllowGroups.
184
185 See PATTERNS in ssh_config(5) for more information on patterns.
186
187 ForceCommand
188 Forces the execution of the command specified by ForceCommand,
189 ignoring any command supplied by the client and ~/.ssh/rc if pre-
190 sent. The command is invoked by using the user's login shell
191 with the -c option. This applies to shell, command, or subsystem
192 execution. It is most useful inside a Match block. The command
193 originally supplied by the client is available in the
194 SSH_ORIGINAL_COMMAND environment variable. Specifying a command
195 of ``internal-sftp'' will force the use of an in-process sftp
196 server that requires no support files when used with
197 ChrootDirectory.
198
199 GatewayPorts
200 Specifies whether remote hosts are allowed to connect to ports
201 forwarded for the client. By default, sshd(8) binds remote port
202 forwardings to the loopback address. This prevents other remote
203 hosts from connecting to forwarded ports. GatewayPorts can be
204 used to specify that sshd should allow remote port forwardings to
205 bind to non-loopback addresses, thus allowing other hosts to con-
206 nect. The argument may be ``no'' to force remote port forward-
207 ings to be available to the local host only, ``yes'' to force re-
208 mote port forwardings to bind to the wildcard address, or
209 ``clientspecified'' to allow the client to select the address to
210 which the forwarding is bound. The default is ``no''.
211
212 GSSAPIAuthentication
213 Specifies whether user authentication based on GSSAPI is allowed.
214 The default is ``no''. Note that this option applies to protocol
215 version 2 only.
216
217 GSSAPICleanupCredentials
218 Specifies whether to automatically destroy the user's credentials
219 cache on logout. The default is ``yes''. Note that this option
220 applies to protocol version 2 only.
221
222 HostbasedAuthentication
223 Specifies whether rhosts or /etc/hosts.equiv authentication to-
224 gether with successful public key client host authentication is
225 allowed (host-based authentication). This option is similar to
226 RhostsRSAAuthentication and applies to protocol version 2 only.
227 The default is ``no''.
228
229 HostbasedUsesNameFromPacketOnly
230 Specifies whether or not the server will attempt to perform a re-
231 verse name lookup when matching the name in the ~/.shosts,
232 ~/.rhosts, and /etc/hosts.equiv files during
233 HostbasedAuthentication. A setting of ``yes'' means that sshd(8)
234 uses the name supplied by the client rather than attempting to
235 resolve the name from the TCP connection itself. The default is
236 ``no''.
237
238 HostCertificate
239 Specifies a file containing a public host certificate. The cer-
240 tificate's public key must match a private host key already spec-
241 ified by HostKey. The default behaviour of sshd(8) is not to
242 load any certificates.
243
244 HostKey
245 Specifies a file containing a private host key used by SSH. The
246 default is /etc/ssh/ssh_host_key for protocol version 1, and
247 /etc/ssh/ssh_host_rsa_key and /etc/ssh/ssh_host_dsa_key for pro-
248 tocol version 2. Note that sshd(8) will refuse to use a file if
249 it is group/world-accessible. It is possible to have multiple
250 host key files. ``rsa1'' keys are used for version 1 and ``dsa''
251 or ``rsa'' are used for version 2 of the SSH protocol.
252
253 IgnoreRhosts
254 Specifies that .rhosts and .shosts files will not be used in
255 RhostsRSAAuthentication or HostbasedAuthentication.
256
257 /etc/hosts.equiv and /etc/shosts.equiv are still used. The de-
258 fault is ``yes''.
259
260 IgnoreUserKnownHosts
261 Specifies whether sshd(8) should ignore the user's
262 ~/.ssh/known_hosts during RhostsRSAAuthentication or
263 HostbasedAuthentication. The default is ``no''.
264
265 KerberosAuthentication
266 Specifies whether the password provided by the user for
267 PasswordAuthentication will be validated through the Kerberos
268 KDC. To use this option, the server needs a Kerberos servtab
269 which allows the verification of the KDC's identity. The default
270 is ``no''.
271
272 KerberosGetAFSToken
273 If AFS is active and the user has a Kerberos 5 TGT, attempt to
274 acquire an AFS token before accessing the user's home directory.
275 The default is ``no''.
276
277 KerberosOrLocalPasswd
278 If password authentication through Kerberos fails then the pass-
279 word will be validated via any additional local mechanism such as
280 /etc/passwd. The default is ``yes''.
281
282 KerberosTicketCleanup
283 Specifies whether to automatically destroy the user's ticket
284 cache file on logout. The default is ``yes''.
285
286 KeyRegenerationInterval
287 In protocol version 1, the ephemeral server key is automatically
288 regenerated after this many seconds (if it has been used). The
289 purpose of regeneration is to prevent decrypting captured ses-
290 sions by later breaking into the machine and stealing the keys.
291 The key is never stored anywhere. If the value is 0, the key is
292 never regenerated. The default is 3600 (seconds).
293
294 ListenAddress
295 Specifies the local addresses sshd(8) should listen on. The fol-
296 lowing forms may be used:
297
298 ListenAddress host|IPv4_addr|IPv6_addr
299 ListenAddress host|IPv4_addr:port
300 ListenAddress [host|IPv6_addr]:port
301
302 If port is not specified, sshd will listen on the address and all
303 prior Port options specified. The default is to listen on all
304 local addresses. Multiple ListenAddress options are permitted.
305 Additionally, any Port options must precede this option for non-
306 port qualified addresses.
307
308 LoginGraceTime
309 The server disconnects after this time if the user has not suc-
310 cessfully logged in. If the value is 0, there is no time limit.
311 The default is 120 seconds.
312
313 LogLevel
314 Gives the verbosity level that is used when logging messages from
315 sshd(8). The possible values are: QUIET, FATAL, ERROR, INFO,
316 VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. The default is INFO.
317 DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify
318 higher levels of debugging output. Logging with a DEBUG level
319 violates the privacy of users and is not recommended.
320
321 MACs Specifies the available MAC (message authentication code) algo-
322 rithms. The MAC algorithm is used in protocol version 2 for data
323 integrity protection. Multiple algorithms must be comma-separat-
324 ed. The default is:
325
326 hmac-md5,hmac-sha1,umac-64@openssh.com,
327 hmac-ripemd160,hmac-sha1-96,hmac-md5-96
328
329 Match Introduces a conditional block. If all of the criteria on the
330 Match line are satisfied, the keywords on the following lines
331 override those set in the global section of the config file, un-
332 til either another Match line or the end of the file.
333
334 The arguments to Match are one or more criteria-pattern pairs.
335 The available criteria are User, Group, Host, and Address. The
336 match patterns may consist of single entries or comma-separated
337 lists and may use the wildcard and negation operators described
338 in the PATTERNS section of ssh_config(5).
339
340 The patterns in an Address criteria may additionally contain ad-
341 dresses to match in CIDR address/masklen format, e.g.
342 ``192.0.2.0/24'' or ``3ffe:ffff::/32''. Note that the mask
343 length provided must be consistent with the address - it is an
344 error to specify a mask length that is too long for the address
345 or one with bits set in this host portion of the address. For
346 example, ``192.0.2.0/33'' and ``192.0.2.0/8'' respectively.
347
348 Only a subset of keywords may be used on the lines following a
349 Match keyword. Available keywords are AllowAgentForwarding,
350 AllowTcpForwarding, Banner, ChrootDirectory, ForceCommand,
351 GatewayPorts, GSSAPIAuthentication, HostbasedAuthentication,
352 KbdInteractiveAuthentication, KerberosAuthentication,
353 MaxAuthTries, MaxSessions, PasswordAuthentication,
354 PermitEmptyPasswords, PermitOpen, PermitRootLogin,
355 PubkeyAuthentication, RhostsRSAAuthentication, RSAAuthentication,
356 X11DisplayOffset, X11Forwarding and X11UseLocalHost.
357
358 MaxAuthTries
359 Specifies the maximum number of authentication attempts permitted
360 per connection. Once the number of failures reaches half this
361 value, additional failures are logged. The default is 6.
362
363 MaxSessions
364 Specifies the maximum number of open sessions permitted per net-
365 work connection. The default is 10.
366
367 MaxStartups
368 Specifies the maximum number of concurrent unauthenticated con-
369 nections to the SSH daemon. Additional connections will be
370 dropped until authentication succeeds or the LoginGraceTime ex-
371 pires for a connection. The default is 10.
372
373 Alternatively, random early drop can be enabled by specifying the
374 three colon separated values ``start:rate:full'' (e.g.
375 "10:30:60"). sshd(8) will refuse connection attempts with a
376 probability of ``rate/100'' (30%) if there are currently
377 ``start'' (10) unauthenticated connections. The probability in-
378 creases linearly and all connection attempts are refused if the
379 number of unauthenticated connections reaches ``full'' (60).
380
381 PasswordAuthentication
382 Specifies whether password authentication is allowed. The de-
383 fault is ``yes''.
384
385 PermitEmptyPasswords
386 When password authentication is allowed, it specifies whether the
387 server allows login to accounts with empty password strings. The
388 default is ``no''.
389
390 PermitOpen
391 Specifies the destinations to which TCP port forwarding is per-
392 mitted. The forwarding specification must be one of the follow-
393 ing forms:
394
395 PermitOpen host:port
396 PermitOpen IPv4_addr:port
397 PermitOpen [IPv6_addr]:port
398
399 Multiple forwards may be specified by separating them with
400 whitespace. An argument of ``any'' can be used to remove all re-
401 strictions and permit any forwarding requests. By default all
402 port forwarding requests are permitted.
403
404 PermitRootLogin
405 Specifies whether root can log in using ssh(1). The argument
406 must be ``yes'', ``without-password'', ``forced-commands-only'',
407 or ``no''. The default is ``yes''.
408
409 If this option is set to ``without-password'', password authenti-
410 cation is disabled for root.
411
412 If this option is set to ``forced-commands-only'', root login
413 with public key authentication will be allowed, but only if the
414 command option has been specified (which may be useful for taking
415 remote backups even if root login is normally not allowed). All
416 other authentication methods are disabled for root.
417
418 If this option is set to ``no'', root is not allowed to log in.
419
420 PermitTunnel
421 Specifies whether tun(4) device forwarding is allowed. The argu-
422 ment must be ``yes'', ``point-to-point'' (layer 3), ``ethernet''
423 (layer 2), or ``no''. Specifying ``yes'' permits both ``point-
424 to-point'' and ``ethernet''. The default is ``no''.
425
426 PermitUserEnvironment
427 Specifies whether ~/.ssh/environment and environment= options in
428 ~/.ssh/authorized_keys are processed by sshd(8). The default is
429 ``no''. Enabling environment processing may enable users to by-
430 pass access restrictions in some configurations using mechanisms
431 such as LD_PRELOAD.
432
433 PidFile
434 Specifies the file that contains the process ID of the SSH dae-
435 mon. The default is /var/run/sshd.pid.
436
437 Port Specifies the port number that sshd(8) listens on. The default
438 is 22. Multiple options of this type are permitted. See also
439 ListenAddress.
440
441 PrintLastLog
442 Specifies whether sshd(8) should print the date and time of the
443 last user login when a user logs in interactively. The default
444 is ``yes''.
445
446 PrintMotd
447 Specifies whether sshd(8) should print /etc/motd when a user logs
448 in interactively. (On some systems it is also printed by the
449 shell, /etc/profile, or equivalent.) The default is ``yes''.
450
451 Protocol
452 Specifies the protocol versions sshd(8) supports. The possible
453 values are `1' and `2'. Multiple versions must be comma-separat-
454 ed. The default is `2'. Note that the order of the protocol
455 list does not indicate preference, because the client selects
456 among multiple protocol versions offered by the server. Specify-
457 ing ``2,1'' is identical to ``1,2''.
458
459 PubkeyAuthentication
460 Specifies whether public key authentication is allowed. The de-
461 fault is ``yes''. Note that this option applies to protocol ver-
462 sion 2 only.
463
464 RevokedKeys
465 Specifies a list of revoked public keys. Keys listed in this
466 file will be refused for public key authentication. Note that if
467 this file is not readable, then public key authentication will be
468 refused for all users.
469
470 RhostsRSAAuthentication
471 Specifies whether rhosts or /etc/hosts.equiv authentication to-
472 gether with successful RSA host authentication is allowed. The
473 default is ``no''. This option applies to protocol version 1 on-
474 ly.
475
476 RSAAuthentication
477 Specifies whether pure RSA authentication is allowed. The de-
478 fault is ``yes''. This option applies to protocol version 1 on-
479 ly.
480
481 ServerKeyBits
482 Defines the number of bits in the ephemeral protocol version 1
483 server key. The minimum value is 512, and the default is 1024.
484
485 StrictModes
486 Specifies whether sshd(8) should check file modes and ownership
487 of the user's files and home directory before accepting login.
488 This is normally desirable because novices sometimes accidentally
489 leave their directory or files world-writable. The default is
490 ``yes''. Note that this does not apply to ChrootDirectory, whose
491 permissions and ownership are checked unconditionally.
492
493 Subsystem
494 Configures an external subsystem (e.g. file transfer daemon).
495 Arguments should be a subsystem name and a command (with optional
496 arguments) to execute upon subsystem request.
497
498 The command sftp-server(8) implements the ``sftp'' file transfer
499 subsystem.
500
501 Alternately the name ``internal-sftp'' implements an in-process
502 ``sftp'' server. This may simplify configurations using
503 ChrootDirectory to force a different filesystem root on clients.
504
505 By default no subsystems are defined. Note that this option ap-
506 plies to protocol version 2 only.
507
508 SyslogFacility
509 Gives the facility code that is used when logging messages from
510 sshd(8). The possible values are: DAEMON, USER, AUTH, LOCAL0,
511 LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. The de-
512 fault is AUTH.
513
514 TCPKeepAlive
515 Specifies whether the system should send TCP keepalive messages
516 to the other side. If they are sent, death of the connection or
517 crash of one of the machines will be properly noticed. However,
518 this means that connections will die if the route is down tem-
519 porarily, and some people find it annoying. On the other hand,
520 if TCP keepalives are not sent, sessions may hang indefinitely on
521 the server, leaving ``ghost'' users and consuming server re-
522 sources.
523
524 The default is ``yes'' (to send TCP keepalive messages), and the
525 server will notice if the network goes down or the client host
526 crashes. This avoids infinitely hanging sessions.
527
528 To disable TCP keepalive messages, the value should be set to
529 ``no''.
530
531 TrustedUserCAKeys
532 Specifies a file containing public keys of certificate authori-
533 ties that are trusted to sign user certificates for authentica-
534 tion. Keys are listed one per line; empty lines and comments
535 starting with `#' are allowed. If a certificate is presented for
536 authentication and has its signing CA key listed in this file,
537 then it may be used for authentication for any user listed in the
538 certificate's principals list. Note that certificates that lack
539 a list of principals will not be permitted for authentication us-
540 ing TrustedUserCAKeys. For more details on certificates, see the
541 CERTIFICATES section in ssh-keygen(1).
542
543 UseDNS Specifies whether sshd(8) should look up the remote host name and
544 check that the resolved host name for the remote IP address maps
545 back to the very same IP address. The default is ``yes''.
546
547 UseLogin
548 Specifies whether login(1) is used for interactive login ses-
549 sions. The default is ``no''. Note that login(1) is never used
550 for remote command execution. Note also, that if this is en-
551 abled, X11Forwarding will be disabled because login(1) does not
552 know how to handle xauth(1) cookies. If UsePrivilegeSeparation
553 is specified, it will be disabled after authentication.
554
555 UsePAM Enables the Pluggable Authentication Module interface. If set to
556 ``yes'' this will enable PAM authentication using
557 ChallengeResponseAuthentication and PasswordAuthentication in ad-
558 dition to PAM account and session module processing for all au-
559 thentication types.
560
561 Because PAM challenge-response authentication usually serves an
562 equivalent role to password authentication, you should disable
563 either PasswordAuthentication or ChallengeResponseAuthentication.
564
565 If UsePAM is enabled, you will not be able to run sshd(8) as a
566 non-root user. The default is ``no''.
567
568 UsePrivilegeSeparation
569 Specifies whether sshd(8) separates privileges by creating an un-
570 privileged child process to deal with incoming network traffic.
571 After successful authentication, another process will be created
572 that has the privilege of the authenticated user. The goal of
573 privilege separation is to prevent privilege escalation by con-
574 taining any corruption within the unprivileged processes. The
575 default is ``yes''.
576
577 X11DisplayOffset
578 Specifies the first display number available for sshd(8)'s X11
579 forwarding. This prevents sshd from interfering with real X11
580 servers. The default is 10.
581
582 X11Forwarding
583 Specifies whether X11 forwarding is permitted. The argument must
584 be ``yes'' or ``no''. The default is ``no''.
585
586 When X11 forwarding is enabled, there may be additional exposure
587 to the server and to client displays if the sshd(8) proxy display
588 is configured to listen on the wildcard address (see
589 X11UseLocalhost below), though this is not the default. Addi-
590 tionally, the authentication spoofing and authentication data
591 verification and substitution occur on the client side. The se-
592 curity risk of using X11 forwarding is that the client's X11 dis-
593 play server may be exposed to attack when the SSH client requests
594 forwarding (see the warnings for ForwardX11 in ssh_config(5)). A
595 system administrator may have a stance in which they want to pro-
596 tect clients that may expose themselves to attack by unwittingly
597 requesting X11 forwarding, which can warrant a ``no'' setting.
598
599 Note that disabling X11 forwarding does not prevent users from
600 forwarding X11 traffic, as users can always install their own
601 forwarders. X11 forwarding is automatically disabled if UseLogin
602 is enabled.
603
604 X11UseLocalhost
605 Specifies whether sshd(8) should bind the X11 forwarding server
606 to the loopback address or to the wildcard address. By default,
607 sshd binds the forwarding server to the loopback address and sets
608 the hostname part of the DISPLAY environment variable to
609 ``localhost''. This prevents remote hosts from connecting to the
610 proxy display. However, some older X11 clients may not function
611 with this configuration. X11UseLocalhost may be set to ``no'' to
612 specify that the forwarding server should be bound to the wild-
613 card address. The argument must be ``yes'' or ``no''. The de-
614 fault is ``yes''.
615
616 XAuthLocation
617 Specifies the full pathname of the xauth(1) program. The default
618 is /usr/X11R6/bin/xauth.
619
620TIME FORMATS
621 sshd(8) command-line arguments and configuration file options that speci-
622 fy time may be expressed using a sequence of the form: time[qualifier],
623 where time is a positive integer value and qualifier is one of the fol-
624 lowing:
625
626 <none> seconds
627 s | S seconds
628 m | M minutes
629 h | H hours
630 d | D days
631 w | W weeks
632
633 Each member of the sequence is added together to calculate the total time
634 value.
635
636 Time format examples:
637
638 600 600 seconds (10 minutes)
639 10m 10 minutes
640 1h30m 1 hour 30 minutes (90 minutes)
641
642FILES
643 /etc/ssh/sshd_config
644 Contains configuration data for sshd(8). This file should be
645 writable by root only, but it is recommended (though not neces-
646 sary) that it be world-readable.
647
648SEE ALSO
649 sshd(8)
650
651AUTHORS
652 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
653 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
654 de Raadt and Dug Song removed many bugs, re-added newer features and cre-
655 ated OpenSSH. Markus Friedl contributed the support for SSH protocol
656 versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support
657 for privilege separation.
658
659OpenBSD 4.7 March 4, 2010 10