summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2011-02-05 10:51:08 +0000
committerColin Watson <cjwatson@debian.org>2011-02-05 10:51:08 +0000
commitafde81fe5d3d6d3e9721ec56981e0214ea850bc6 (patch)
tree88a894b9003f577e40c7b04f71866a8257b8f6ee
parent8c0fe794fcc0f47ff728101568da865ab387dc6d (diff)
parent478ff799463ca926a8dfbabf058f4e84aaffc65a (diff)
Import 5.8p1 tarball
-rw-r--r--.cvsignore30
-rwxr-xr-xconfig.guess21
-rw-r--r--config.h.in1495
-rwxr-xr-xconfig.sub67
-rwxr-xr-xconfigure32039
-rwxr-xr-x[-rw-r--r--]contrib/solaris/README0
-rw-r--r--moduli.072
-rw-r--r--openbsd-compat/.cvsignore1
-rw-r--r--openbsd-compat/regress/.cvsignore5
-rwxr-xr-x[-rw-r--r--]openbsd-compat/sha2.c0
-rwxr-xr-x[-rw-r--r--]openbsd-compat/sha2.h0
-rw-r--r--regress/.cvsignore1
-rw-r--r--scard/.cvsignore2
-rw-r--r--scp.0156
-rw-r--r--sftp-server.064
-rw-r--r--sftp.0331
-rw-r--r--ssh-add.0115
-rw-r--r--ssh-agent.0123
-rw-r--r--ssh-keygen.0443
-rw-r--r--ssh-keyscan.0109
-rw-r--r--ssh-keysign.051
-rw-r--r--ssh-pkcs11-helper.025
-rw-r--r--ssh-rand-helper.051
-rw-r--r--ssh.0898
-rw-r--r--ssh_config.0744
-rw-r--r--sshd.0634
-rw-r--r--sshd_config.0713
27 files changed, 38090 insertions, 100 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.guess b/config.guess
index 78553c4ea..c2246a4f7 100755
--- a/config.guess
+++ b/config.guess
@@ -1,10 +1,10 @@
1#! /bin/sh 1#! /bin/sh
2# Attempt to guess a canonical system name. 2# Attempt to guess a canonical system name.
3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 4# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
5# 2011 Free Software Foundation, Inc. 5# Free Software Foundation, Inc.
6 6
7timestamp='2011-01-23' 7timestamp='2009-12-30'
8 8
9# This file is free software; you can redistribute it and/or modify it 9# This file is free software; you can redistribute it and/or modify it
10# under the terms of the GNU General Public License as published by 10# under the terms of the GNU General Public License as published by
@@ -57,7 +57,7 @@ GNU config.guess ($timestamp)
57 57
58Originally written by Per Bothner. 58Originally written by Per Bothner.
59Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 59Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
602001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free 602001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
61Software Foundation, Inc. 61Software Foundation, Inc.
62 62
63This is free software; see the source for copying conditions. There is NO 63This is free software; see the source for copying conditions. There is NO
@@ -270,10 +270,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
270 # A Xn.n version is an unreleased experimental baselevel. 270 # A Xn.n version is an unreleased experimental baselevel.
271 # 1.2 uses "1.2" for uname -r. 271 # 1.2 uses "1.2" for uname -r.
272 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 272 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
273 # Reset EXIT trap before exiting to avoid spurious non-zero exit code. 273 exit ;;
274 exitcode=$?
275 trap '' 0
276 exit $exitcode ;;
277 Alpha\ *:Windows_NT*:*) 274 Alpha\ *:Windows_NT*:*)
278 # How do we know it's Interix rather than the generic POSIX subsystem? 275 # How do we know it's Interix rather than the generic POSIX subsystem?
279 # Should we change UNAME_MACHINE based on the output of uname instead 276 # Should we change UNAME_MACHINE based on the output of uname instead
@@ -555,7 +552,7 @@ EOF
555 echo rs6000-ibm-aix3.2 552 echo rs6000-ibm-aix3.2
556 fi 553 fi
557 exit ;; 554 exit ;;
558 *:AIX:*:[4567]) 555 *:AIX:*:[456])
559 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 556 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
560 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then 557 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
561 IBM_ARCH=rs6000 558 IBM_ARCH=rs6000
@@ -971,9 +968,6 @@ EOF
971 sparc:Linux:*:* | sparc64:Linux:*:*) 968 sparc:Linux:*:* | sparc64:Linux:*:*)
972 echo ${UNAME_MACHINE}-unknown-linux-gnu 969 echo ${UNAME_MACHINE}-unknown-linux-gnu
973 exit ;; 970 exit ;;
974 tile*:Linux:*:*)
975 echo ${UNAME_MACHINE}-tilera-linux-gnu
976 exit ;;
977 vax:Linux:*:*) 971 vax:Linux:*:*)
978 echo ${UNAME_MACHINE}-dec-linux-gnu 972 echo ${UNAME_MACHINE}-dec-linux-gnu
979 exit ;; 973 exit ;;
@@ -1237,9 +1231,6 @@ EOF
1237 *:QNX:*:4*) 1231 *:QNX:*:4*)
1238 echo i386-pc-qnx 1232 echo i386-pc-qnx
1239 exit ;; 1233 exit ;;
1240 NEO-?:NONSTOP_KERNEL:*:*)
1241 echo neo-tandem-nsk${UNAME_RELEASE}
1242 exit ;;
1243 NSE-?:NONSTOP_KERNEL:*:*) 1234 NSE-?:NONSTOP_KERNEL:*:*)
1244 echo nse-tandem-nsk${UNAME_RELEASE} 1235 echo nse-tandem-nsk${UNAME_RELEASE}
1245 exit ;; 1236 exit ;;
diff --git a/config.h.in b/config.h.in
new file mode 100644
index 000000000..e5c9379c8
--- /dev/null
+++ b/config.h.in
@@ -0,0 +1,1495 @@
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/* File names may not contain backslash characters */
129#undef FILESYSTEM_NO_BACKSLASH
130
131/* fsid_t has member val */
132#undef FSID_HAS_VAL
133
134/* fsid_t has member __val */
135#undef FSID_HAS___VAL
136
137/* Define to 1 if the `getpgrp' function requires zero arguments. */
138#undef GETPGRP_VOID
139
140/* Conflicting defs for getspnam */
141#undef GETSPNAM_CONFLICTING_DEFS
142
143/* Define if your system glob() function has the GLOB_ALTDIRFUNC extension */
144#undef GLOB_HAS_ALTDIRFUNC
145
146/* Define if your system glob() function has gl_matchc options in glob_t */
147#undef GLOB_HAS_GL_MATCHC
148
149/* Define if your system glob() function has gl_statv options in glob_t */
150#undef GLOB_HAS_GL_STATV
151
152/* Define this if you want GSSAPI support in the version 2 protocol */
153#undef GSSAPI
154
155/* Define if you want to use shadow password expire field */
156#undef HAS_SHADOW_EXPIRE
157
158/* Define if your system uses access rights style file descriptor passing */
159#undef HAVE_ACCRIGHTS_IN_MSGHDR
160
161/* Define if you have ut_addr in utmp.h */
162#undef HAVE_ADDR_IN_UTMP
163
164/* Define if you have ut_addr in utmpx.h */
165#undef HAVE_ADDR_IN_UTMPX
166
167/* Define if you have ut_addr_v6 in utmp.h */
168#undef HAVE_ADDR_V6_IN_UTMP
169
170/* Define if you have ut_addr_v6 in utmpx.h */
171#undef HAVE_ADDR_V6_IN_UTMPX
172
173/* Define to 1 if you have the `arc4random' function. */
174#undef HAVE_ARC4RANDOM
175
176/* Define to 1 if you have the `arc4random_buf' function. */
177#undef HAVE_ARC4RANDOM_BUF
178
179/* Define to 1 if you have the `arc4random_uniform' function. */
180#undef HAVE_ARC4RANDOM_UNIFORM
181
182/* Define to 1 if you have the `asprintf' function. */
183#undef HAVE_ASPRINTF
184
185/* OpenBSD's gcc has bounded */
186#undef HAVE_ATTRIBUTE__BOUNDED__
187
188/* Have attribute nonnull */
189#undef HAVE_ATTRIBUTE__NONNULL__
190
191/* OpenBSD's gcc has sentinel */
192#undef HAVE_ATTRIBUTE__SENTINEL__
193
194/* Define to 1 if you have the `aug_get_machine' function. */
195#undef HAVE_AUG_GET_MACHINE
196
197/* Define to 1 if you have the `b64_ntop' function. */
198#undef HAVE_B64_NTOP
199
200/* Define to 1 if you have the `b64_pton' function. */
201#undef HAVE_B64_PTON
202
203/* Define if you have the basename function. */
204#undef HAVE_BASENAME
205
206/* Define to 1 if you have the `bcopy' function. */
207#undef HAVE_BCOPY
208
209/* Define to 1 if you have the `bindresvport_sa' function. */
210#undef HAVE_BINDRESVPORT_SA
211
212/* Define to 1 if you have the `BN_is_prime_ex' function. */
213#undef HAVE_BN_IS_PRIME_EX
214
215/* Define to 1 if you have the <bsm/audit.h> header file. */
216#undef HAVE_BSM_AUDIT_H
217
218/* Define to 1 if you have the <bstring.h> header file. */
219#undef HAVE_BSTRING_H
220
221/* Define to 1 if you have the `clock' function. */
222#undef HAVE_CLOCK
223
224/* define if you have clock_t data type */
225#undef HAVE_CLOCK_T
226
227/* Define to 1 if you have the `closefrom' function. */
228#undef HAVE_CLOSEFROM
229
230/* Define if gai_strerror() returns const char * */
231#undef HAVE_CONST_GAI_STRERROR_PROTO
232
233/* Define if your system uses ancillary data style file descriptor passing */
234#undef HAVE_CONTROL_IN_MSGHDR
235
236/* Define to 1 if you have the <crypto/sha2.h> header file. */
237#undef HAVE_CRYPTO_SHA2_H
238
239/* Define to 1 if you have the <crypt.h> header file. */
240#undef HAVE_CRYPT_H
241
242/* Define if you are on Cygwin */
243#undef HAVE_CYGWIN
244
245/* Define if your libraries define daemon() */
246#undef HAVE_DAEMON
247
248/* Define to 1 if you have the declaration of `authenticate', and to 0 if you
249 don't. */
250#undef HAVE_DECL_AUTHENTICATE
251
252/* Define to 1 if you have the declaration of `GLOB_NOMATCH', and to 0 if you
253 don't. */
254#undef HAVE_DECL_GLOB_NOMATCH
255
256/* Define to 1 if you have the declaration of `h_errno', and to 0 if you
257 don't. */
258#undef HAVE_DECL_H_ERRNO
259
260/* Define to 1 if you have the declaration of `loginfailed', and to 0 if you
261 don't. */
262#undef HAVE_DECL_LOGINFAILED
263
264/* Define to 1 if you have the declaration of `loginrestrictions', and to 0 if
265 you don't. */
266#undef HAVE_DECL_LOGINRESTRICTIONS
267
268/* Define to 1 if you have the declaration of `loginsuccess', and to 0 if you
269 don't. */
270#undef HAVE_DECL_LOGINSUCCESS
271
272/* Define to 1 if you have the declaration of `MAXSYMLINKS', and to 0 if you
273 don't. */
274#undef HAVE_DECL_MAXSYMLINKS
275
276/* Define to 1 if you have the declaration of `offsetof', and to 0 if you
277 don't. */
278#undef HAVE_DECL_OFFSETOF
279
280/* Define to 1 if you have the declaration of `O_NONBLOCK', and to 0 if you
281 don't. */
282#undef HAVE_DECL_O_NONBLOCK
283
284/* Define to 1 if you have the declaration of `passwdexpired', and to 0 if you
285 don't. */
286#undef HAVE_DECL_PASSWDEXPIRED
287
288/* Define to 1 if you have the declaration of `setauthdb', and to 0 if you
289 don't. */
290#undef HAVE_DECL_SETAUTHDB
291
292/* Define to 1 if you have the declaration of `SHUT_RD', and to 0 if you
293 don't. */
294#undef HAVE_DECL_SHUT_RD
295
296/* Define to 1 if you have the declaration of `writev', and to 0 if you don't.
297 */
298#undef HAVE_DECL_WRITEV
299
300/* Define to 1 if you have the declaration of `_getlong', and to 0 if you
301 don't. */
302#undef HAVE_DECL__GETLONG
303
304/* Define to 1 if you have the declaration of `_getshort', and to 0 if you
305 don't. */
306#undef HAVE_DECL__GETSHORT
307
308/* Define if you have /dev/ptmx */
309#undef HAVE_DEV_PTMX
310
311/* Define if you have /dev/ptc */
312#undef HAVE_DEV_PTS_AND_PTC
313
314/* Define to 1 if you have the <dirent.h> header file. */
315#undef HAVE_DIRENT_H
316
317/* Define to 1 if you have the `dirfd' function. */
318#undef HAVE_DIRFD
319
320/* Define to 1 if you have the `dirname' function. */
321#undef HAVE_DIRNAME
322
323/* Define to 1 if you have the `DSA_generate_parameters_ex' function. */
324#undef HAVE_DSA_GENERATE_PARAMETERS_EX
325
326/* Define to 1 if you have the <endian.h> header file. */
327#undef HAVE_ENDIAN_H
328
329/* Define to 1 if you have the `endutent' function. */
330#undef HAVE_ENDUTENT
331
332/* Define to 1 if you have the `endutxent' function. */
333#undef HAVE_ENDUTXENT
334
335/* Define if your system has /etc/default/login */
336#undef HAVE_ETC_DEFAULT_LOGIN
337
338/* Define to 1 if you have the `EVP_sha256' function. */
339#undef HAVE_EVP_SHA256
340
341/* Define if you have ut_exit in utmp.h */
342#undef HAVE_EXIT_IN_UTMP
343
344/* Define to 1 if you have the `fchmod' function. */
345#undef HAVE_FCHMOD
346
347/* Define to 1 if you have the `fchown' function. */
348#undef HAVE_FCHOWN
349
350/* Use F_CLOSEM fcntl for closefrom */
351#undef HAVE_FCNTL_CLOSEM
352
353/* Define to 1 if you have the <fcntl.h> header file. */
354#undef HAVE_FCNTL_H
355
356/* Define to 1 if you have the <features.h> header file. */
357#undef HAVE_FEATURES_H
358
359/* Define to 1 if you have the <floatingpoint.h> header file. */
360#undef HAVE_FLOATINGPOINT_H
361
362/* Define to 1 if you have the `fmt_scaled' function. */
363#undef HAVE_FMT_SCALED
364
365/* Define to 1 if you have the `freeaddrinfo' function. */
366#undef HAVE_FREEADDRINFO
367
368/* Define to 1 if the system has the type `fsblkcnt_t'. */
369#undef HAVE_FSBLKCNT_T
370
371/* Define to 1 if the system has the type `fsfilcnt_t'. */
372#undef HAVE_FSFILCNT_T
373
374/* Define to 1 if you have the `fstatvfs' function. */
375#undef HAVE_FSTATVFS
376
377/* Define to 1 if you have the `futimes' function. */
378#undef HAVE_FUTIMES
379
380/* Define to 1 if you have the `gai_strerror' function. */
381#undef HAVE_GAI_STRERROR
382
383/* Define to 1 if you have the `getaddrinfo' function. */
384#undef HAVE_GETADDRINFO
385
386/* Define to 1 if you have the `getaudit' function. */
387#undef HAVE_GETAUDIT
388
389/* Define to 1 if you have the `getaudit_addr' function. */
390#undef HAVE_GETAUDIT_ADDR
391
392/* Define to 1 if you have the `getcwd' function. */
393#undef HAVE_GETCWD
394
395/* Define to 1 if you have the `getgrouplist' function. */
396#undef HAVE_GETGROUPLIST
397
398/* Define to 1 if you have the `getgrset' function. */
399#undef HAVE_GETGRSET
400
401/* Define to 1 if you have the `getlastlogxbyname' function. */
402#undef HAVE_GETLASTLOGXBYNAME
403
404/* Define to 1 if you have the `getluid' function. */
405#undef HAVE_GETLUID
406
407/* Define to 1 if you have the `getnameinfo' function. */
408#undef HAVE_GETNAMEINFO
409
410/* Define to 1 if you have the `getopt' function. */
411#undef HAVE_GETOPT
412
413/* Define to 1 if you have the <getopt.h> header file. */
414#undef HAVE_GETOPT_H
415
416/* Define if your getopt(3) defines and uses optreset */
417#undef HAVE_GETOPT_OPTRESET
418
419/* Define if your libraries define getpagesize() */
420#undef HAVE_GETPAGESIZE
421
422/* Define to 1 if you have the `getpeereid' function. */
423#undef HAVE_GETPEEREID
424
425/* Define to 1 if you have the `getpeerucred' function. */
426#undef HAVE_GETPEERUCRED
427
428/* Define to 1 if you have the `getpwanam' function. */
429#undef HAVE_GETPWANAM
430
431/* Define to 1 if you have the `getrlimit' function. */
432#undef HAVE_GETRLIMIT
433
434/* Define if getrrsetbyname() exists */
435#undef HAVE_GETRRSETBYNAME
436
437/* Define to 1 if you have the `getrusage' function. */
438#undef HAVE_GETRUSAGE
439
440/* Define to 1 if you have the `getseuserbyname' function. */
441#undef HAVE_GETSEUSERBYNAME
442
443/* Define to 1 if you have the `gettimeofday' function. */
444#undef HAVE_GETTIMEOFDAY
445
446/* Define to 1 if you have the `getttyent' function. */
447#undef HAVE_GETTTYENT
448
449/* Define to 1 if you have the `getutent' function. */
450#undef HAVE_GETUTENT
451
452/* Define to 1 if you have the `getutid' function. */
453#undef HAVE_GETUTID
454
455/* Define to 1 if you have the `getutline' function. */
456#undef HAVE_GETUTLINE
457
458/* Define to 1 if you have the `getutxent' function. */
459#undef HAVE_GETUTXENT
460
461/* Define to 1 if you have the `getutxid' function. */
462#undef HAVE_GETUTXID
463
464/* Define to 1 if you have the `getutxline' function. */
465#undef HAVE_GETUTXLINE
466
467/* Define to 1 if you have the `getutxuser' function. */
468#undef HAVE_GETUTXUSER
469
470/* Define to 1 if you have the `get_default_context_with_level' function. */
471#undef HAVE_GET_DEFAULT_CONTEXT_WITH_LEVEL
472
473/* Define to 1 if you have the `glob' function. */
474#undef HAVE_GLOB
475
476/* Define to 1 if you have the <glob.h> header file. */
477#undef HAVE_GLOB_H
478
479/* Define to 1 if you have the `group_from_gid' function. */
480#undef HAVE_GROUP_FROM_GID
481
482/* Define to 1 if you have the <gssapi_generic.h> header file. */
483#undef HAVE_GSSAPI_GENERIC_H
484
485/* Define to 1 if you have the <gssapi/gssapi_generic.h> header file. */
486#undef HAVE_GSSAPI_GSSAPI_GENERIC_H
487
488/* Define to 1 if you have the <gssapi/gssapi.h> header file. */
489#undef HAVE_GSSAPI_GSSAPI_H
490
491/* Define to 1 if you have the <gssapi/gssapi_krb5.h> header file. */
492#undef HAVE_GSSAPI_GSSAPI_KRB5_H
493
494/* Define to 1 if you have the <gssapi.h> header file. */
495#undef HAVE_GSSAPI_H
496
497/* Define to 1 if you have the <gssapi_krb5.h> header file. */
498#undef HAVE_GSSAPI_KRB5_H
499
500/* Define if HEADER.ad exists in arpa/nameser.h */
501#undef HAVE_HEADER_AD
502
503/* Define if you have ut_host in utmp.h */
504#undef HAVE_HOST_IN_UTMP
505
506/* Define if you have ut_host in utmpx.h */
507#undef HAVE_HOST_IN_UTMPX
508
509/* Define to 1 if you have the <iaf.h> header file. */
510#undef HAVE_IAF_H
511
512/* Define to 1 if you have the <ia.h> header file. */
513#undef HAVE_IA_H
514
515/* Define if you have ut_id in utmp.h */
516#undef HAVE_ID_IN_UTMP
517
518/* Define if you have ut_id in utmpx.h */
519#undef HAVE_ID_IN_UTMPX
520
521/* Define to 1 if you have the `inet_aton' function. */
522#undef HAVE_INET_ATON
523
524/* Define to 1 if you have the `inet_ntoa' function. */
525#undef HAVE_INET_NTOA
526
527/* Define to 1 if you have the `inet_ntop' function. */
528#undef HAVE_INET_NTOP
529
530/* Define to 1 if you have the `innetgr' function. */
531#undef HAVE_INNETGR
532
533/* define if you have int64_t data type */
534#undef HAVE_INT64_T
535
536/* Define to 1 if you have the <inttypes.h> header file. */
537#undef HAVE_INTTYPES_H
538
539/* define if you have intxx_t data type */
540#undef HAVE_INTXX_T
541
542/* Define to 1 if the system has the type `in_addr_t'. */
543#undef HAVE_IN_ADDR_T
544
545/* Define to 1 if the system has the type `in_port_t'. */
546#undef HAVE_IN_PORT_T
547
548/* Define if you have isblank(3C). */
549#undef HAVE_ISBLANK
550
551/* Define to 1 if you have the <lastlog.h> header file. */
552#undef HAVE_LASTLOG_H
553
554/* Define to 1 if you have the <libaudit.h> header file. */
555#undef HAVE_LIBAUDIT_H
556
557/* Define to 1 if you have the `bsm' library (-lbsm). */
558#undef HAVE_LIBBSM
559
560/* Define to 1 if you have the `crypt' library (-lcrypt). */
561#undef HAVE_LIBCRYPT
562
563/* Define to 1 if you have the `dl' library (-ldl). */
564#undef HAVE_LIBDL
565
566/* Define to 1 if you have the <libgen.h> header file. */
567#undef HAVE_LIBGEN_H
568
569/* Define if system has libiaf that supports set_id */
570#undef HAVE_LIBIAF
571
572/* Define to 1 if you have the `network' library (-lnetwork). */
573#undef HAVE_LIBNETWORK
574
575/* Define to 1 if you have the `nsl' library (-lnsl). */
576#undef HAVE_LIBNSL
577
578/* Define to 1 if you have the `pam' library (-lpam). */
579#undef HAVE_LIBPAM
580
581/* Define to 1 if you have the `socket' library (-lsocket). */
582#undef HAVE_LIBSOCKET
583
584/* Define to 1 if you have the <libutil.h> header file. */
585#undef HAVE_LIBUTIL_H
586
587/* Define to 1 if you have the `xnet' library (-lxnet). */
588#undef HAVE_LIBXNET
589
590/* Define to 1 if you have the `z' library (-lz). */
591#undef HAVE_LIBZ
592
593/* Define to 1 if you have the <limits.h> header file. */
594#undef HAVE_LIMITS_H
595
596/* Define to 1 if you have the <linux/if_tun.h> header file. */
597#undef HAVE_LINUX_IF_TUN_H
598
599/* Define if your libraries define login() */
600#undef HAVE_LOGIN
601
602/* Define to 1 if you have the <login_cap.h> header file. */
603#undef HAVE_LOGIN_CAP_H
604
605/* Define to 1 if you have the `login_getcapbool' function. */
606#undef HAVE_LOGIN_GETCAPBOOL
607
608/* Define to 1 if you have the <login.h> header file. */
609#undef HAVE_LOGIN_H
610
611/* Define to 1 if you have the `logout' function. */
612#undef HAVE_LOGOUT
613
614/* Define to 1 if you have the `logwtmp' function. */
615#undef HAVE_LOGWTMP
616
617/* Define to 1 if the system has the type `long double'. */
618#undef HAVE_LONG_DOUBLE
619
620/* Define to 1 if the system has the type `long long'. */
621#undef HAVE_LONG_LONG
622
623/* Define to 1 if you have the <maillock.h> header file. */
624#undef HAVE_MAILLOCK_H
625
626/* Define to 1 if you have the `md5_crypt' function. */
627#undef HAVE_MD5_CRYPT
628
629/* Define if you want to allow MD5 passwords */
630#undef HAVE_MD5_PASSWORDS
631
632/* Define to 1 if you have the `memmove' function. */
633#undef HAVE_MEMMOVE
634
635/* Define to 1 if you have the <memory.h> header file. */
636#undef HAVE_MEMORY_H
637
638/* Define to 1 if you have the `mkdtemp' function. */
639#undef HAVE_MKDTEMP
640
641/* Define to 1 if you have the `mmap' function. */
642#undef HAVE_MMAP
643
644/* define if you have mode_t data type */
645#undef HAVE_MODE_T
646
647/* Some systems put nanosleep outside of libc */
648#undef HAVE_NANOSLEEP
649
650/* Define to 1 if you have the <ndir.h> header file. */
651#undef HAVE_NDIR_H
652
653/* Define to 1 if you have the <netdb.h> header file. */
654#undef HAVE_NETDB_H
655
656/* Define to 1 if you have the <netgroup.h> header file. */
657#undef HAVE_NETGROUP_H
658
659/* Define to 1 if you have the <net/if_tun.h> header file. */
660#undef HAVE_NET_IF_TUN_H
661
662/* Define if you are on NeXT */
663#undef HAVE_NEXT
664
665/* Define to 1 if you have the `ngetaddrinfo' function. */
666#undef HAVE_NGETADDRINFO
667
668/* Define to 1 if you have the `nsleep' function. */
669#undef HAVE_NSLEEP
670
671/* Define to 1 if you have the `ogetaddrinfo' function. */
672#undef HAVE_OGETADDRINFO
673
674/* Define if you have an old version of PAM which takes only one argument to
675 pam_strerror */
676#undef HAVE_OLD_PAM
677
678/* Define to 1 if you have the `openlog_r' function. */
679#undef HAVE_OPENLOG_R
680
681/* Define to 1 if you have the `openpty' function. */
682#undef HAVE_OPENPTY
683
684/* Define if your ssl headers are included with #include <openssl/header.h> */
685#undef HAVE_OPENSSL
686
687/* Define if you have Digital Unix Security Integration Architecture */
688#undef HAVE_OSF_SIA
689
690/* Define to 1 if you have the `pam_getenvlist' function. */
691#undef HAVE_PAM_GETENVLIST
692
693/* Define to 1 if you have the <pam/pam_appl.h> header file. */
694#undef HAVE_PAM_PAM_APPL_H
695
696/* Define to 1 if you have the `pam_putenv' function. */
697#undef HAVE_PAM_PUTENV
698
699/* Define to 1 if you have the <paths.h> header file. */
700#undef HAVE_PATHS_H
701
702/* Define if you have ut_pid in utmp.h */
703#undef HAVE_PID_IN_UTMP
704
705/* define if you have pid_t data type */
706#undef HAVE_PID_T
707
708/* Define to 1 if you have the `poll' function. */
709#undef HAVE_POLL
710
711/* Define to 1 if you have the <poll.h> header file. */
712#undef HAVE_POLL_H
713
714/* Define to 1 if you have the `prctl' function. */
715#undef HAVE_PRCTL
716
717/* Define if you have /proc/$pid/fd */
718#undef HAVE_PROC_PID
719
720/* Define to 1 if you have the `pstat' function. */
721#undef HAVE_PSTAT
722
723/* Define to 1 if you have the <pty.h> header file. */
724#undef HAVE_PTY_H
725
726/* Define to 1 if you have the `pututline' function. */
727#undef HAVE_PUTUTLINE
728
729/* Define to 1 if you have the `pututxline' function. */
730#undef HAVE_PUTUTXLINE
731
732/* Define if your password has a pw_change field */
733#undef HAVE_PW_CHANGE_IN_PASSWD
734
735/* Define if your password has a pw_class field */
736#undef HAVE_PW_CLASS_IN_PASSWD
737
738/* Define if your password has a pw_expire field */
739#undef HAVE_PW_EXPIRE_IN_PASSWD
740
741/* Define to 1 if you have the `readpassphrase' function. */
742#undef HAVE_READPASSPHRASE
743
744/* Define to 1 if you have the <readpassphrase.h> header file. */
745#undef HAVE_READPASSPHRASE_H
746
747/* Define to 1 if you have the `realpath' function. */
748#undef HAVE_REALPATH
749
750/* Define to 1 if you have the `recvmsg' function. */
751#undef HAVE_RECVMSG
752
753/* Define to 1 if you have the <rpc/types.h> header file. */
754#undef HAVE_RPC_TYPES_H
755
756/* Define to 1 if you have the `rresvport_af' function. */
757#undef HAVE_RRESVPORT_AF
758
759/* Define to 1 if you have the `RSA_generate_key_ex' function. */
760#undef HAVE_RSA_GENERATE_KEY_EX
761
762/* Define to 1 if you have the `RSA_get_default_method' function. */
763#undef HAVE_RSA_GET_DEFAULT_METHOD
764
765/* define if you have sa_family_t data type */
766#undef HAVE_SA_FAMILY_T
767
768/* Define if you have SecureWare-based protected password database */
769#undef HAVE_SECUREWARE
770
771/* Define to 1 if you have the <security/pam_appl.h> header file. */
772#undef HAVE_SECURITY_PAM_APPL_H
773
774/* Define to 1 if you have the `sendmsg' function. */
775#undef HAVE_SENDMSG
776
777/* Define to 1 if you have the `setauthdb' function. */
778#undef HAVE_SETAUTHDB
779
780/* Define to 1 if you have the `setdtablesize' function. */
781#undef HAVE_SETDTABLESIZE
782
783/* Define to 1 if you have the `setegid' function. */
784#undef HAVE_SETEGID
785
786/* Define to 1 if you have the `setenv' function. */
787#undef HAVE_SETENV
788
789/* Define to 1 if you have the `seteuid' function. */
790#undef HAVE_SETEUID
791
792/* Define to 1 if you have the `setgroupent' function. */
793#undef HAVE_SETGROUPENT
794
795/* Define to 1 if you have the `setgroups' function. */
796#undef HAVE_SETGROUPS
797
798/* Define to 1 if you have the `setlogin' function. */
799#undef HAVE_SETLOGIN
800
801/* Define to 1 if you have the `setluid' function. */
802#undef HAVE_SETLUID
803
804/* Define to 1 if you have the `setpassent' function. */
805#undef HAVE_SETPASSENT
806
807/* Define to 1 if you have the `setpcred' function. */
808#undef HAVE_SETPCRED
809
810/* Define to 1 if you have the `setproctitle' function. */
811#undef HAVE_SETPROCTITLE
812
813/* Define to 1 if you have the `setregid' function. */
814#undef HAVE_SETREGID
815
816/* Define to 1 if you have the `setresgid' function. */
817#undef HAVE_SETRESGID
818
819/* Define to 1 if you have the `setresuid' function. */
820#undef HAVE_SETRESUID
821
822/* Define to 1 if you have the `setreuid' function. */
823#undef HAVE_SETREUID
824
825/* Define to 1 if you have the `setrlimit' function. */
826#undef HAVE_SETRLIMIT
827
828/* Define to 1 if you have the `setsid' function. */
829#undef HAVE_SETSID
830
831/* Define to 1 if you have the `setutent' function. */
832#undef HAVE_SETUTENT
833
834/* Define to 1 if you have the `setutxdb' function. */
835#undef HAVE_SETUTXDB
836
837/* Define to 1 if you have the `setutxent' function. */
838#undef HAVE_SETUTXENT
839
840/* Define to 1 if you have the `setvbuf' function. */
841#undef HAVE_SETVBUF
842
843/* Define to 1 if you have the `set_id' function. */
844#undef HAVE_SET_ID
845
846/* Define to 1 if you have the `SHA256_Update' function. */
847#undef HAVE_SHA256_UPDATE
848
849/* Define to 1 if you have the <sha2.h> header file. */
850#undef HAVE_SHA2_H
851
852/* Define to 1 if you have the <shadow.h> header file. */
853#undef HAVE_SHADOW_H
854
855/* Define to 1 if you have the `sigaction' function. */
856#undef HAVE_SIGACTION
857
858/* Define to 1 if you have the `sigvec' function. */
859#undef HAVE_SIGVEC
860
861/* Define to 1 if the system has the type `sig_atomic_t'. */
862#undef HAVE_SIG_ATOMIC_T
863
864/* define if you have size_t data type */
865#undef HAVE_SIZE_T
866
867/* Define to 1 if you have the `snprintf' function. */
868#undef HAVE_SNPRINTF
869
870/* Define to 1 if you have the `socketpair' function. */
871#undef HAVE_SOCKETPAIR
872
873/* Have PEERCRED socket option */
874#undef HAVE_SO_PEERCRED
875
876/* define if you have ssize_t data type */
877#undef HAVE_SSIZE_T
878
879/* Fields in struct sockaddr_storage */
880#undef HAVE_SS_FAMILY_IN_SS
881
882/* Define to 1 if you have the `statfs' function. */
883#undef HAVE_STATFS
884
885/* Define to 1 if you have the `statvfs' function. */
886#undef HAVE_STATVFS
887
888/* Define to 1 if you have the <stddef.h> header file. */
889#undef HAVE_STDDEF_H
890
891/* Define to 1 if you have the <stdint.h> header file. */
892#undef HAVE_STDINT_H
893
894/* Define to 1 if you have the <stdlib.h> header file. */
895#undef HAVE_STDLIB_H
896
897/* Define to 1 if you have the `strdup' function. */
898#undef HAVE_STRDUP
899
900/* Define to 1 if you have the `strerror' function. */
901#undef HAVE_STRERROR
902
903/* Define to 1 if you have the `strftime' function. */
904#undef HAVE_STRFTIME
905
906/* Silly mkstemp() */
907#undef HAVE_STRICT_MKSTEMP
908
909/* Define to 1 if you have the <strings.h> header file. */
910#undef HAVE_STRINGS_H
911
912/* Define to 1 if you have the <string.h> header file. */
913#undef HAVE_STRING_H
914
915/* Define to 1 if you have the `strlcat' function. */
916#undef HAVE_STRLCAT
917
918/* Define to 1 if you have the `strlcpy' function. */
919#undef HAVE_STRLCPY
920
921/* Define to 1 if you have the `strmode' function. */
922#undef HAVE_STRMODE
923
924/* Define to 1 if you have the `strnvis' function. */
925#undef HAVE_STRNVIS
926
927/* Define to 1 if you have the `strptime' function. */
928#undef HAVE_STRPTIME
929
930/* Define to 1 if you have the `strsep' function. */
931#undef HAVE_STRSEP
932
933/* Define to 1 if you have the `strtoll' function. */
934#undef HAVE_STRTOLL
935
936/* Define to 1 if you have the `strtonum' function. */
937#undef HAVE_STRTONUM
938
939/* Define to 1 if you have the `strtoul' function. */
940#undef HAVE_STRTOUL
941
942/* define if you have struct addrinfo data type */
943#undef HAVE_STRUCT_ADDRINFO
944
945/* define if you have struct in6_addr data type */
946#undef HAVE_STRUCT_IN6_ADDR
947
948/* define if you have struct sockaddr_in6 data type */
949#undef HAVE_STRUCT_SOCKADDR_IN6
950
951/* Define to 1 if `sin6_scope_id' is member of `struct sockaddr_in6'. */
952#undef HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID
953
954/* define if you have struct sockaddr_storage data type */
955#undef HAVE_STRUCT_SOCKADDR_STORAGE
956
957/* Define to 1 if `st_blksize' is member of `struct stat'. */
958#undef HAVE_STRUCT_STAT_ST_BLKSIZE
959
960/* Define to 1 if the system has the type `struct timespec'. */
961#undef HAVE_STRUCT_TIMESPEC
962
963/* define if you have struct timeval */
964#undef HAVE_STRUCT_TIMEVAL
965
966/* Define to 1 if you have the `swap32' function. */
967#undef HAVE_SWAP32
968
969/* Define to 1 if you have the `sysconf' function. */
970#undef HAVE_SYSCONF
971
972/* Define if you have syslen in utmpx.h */
973#undef HAVE_SYSLEN_IN_UTMPX
974
975/* Define to 1 if you have the <sys/audit.h> header file. */
976#undef HAVE_SYS_AUDIT_H
977
978/* Define to 1 if you have the <sys/bitypes.h> header file. */
979#undef HAVE_SYS_BITYPES_H
980
981/* Define to 1 if you have the <sys/bsdtty.h> header file. */
982#undef HAVE_SYS_BSDTTY_H
983
984/* Define to 1 if you have the <sys/cdefs.h> header file. */
985#undef HAVE_SYS_CDEFS_H
986
987/* Define to 1 if you have the <sys/dir.h> header file. */
988#undef HAVE_SYS_DIR_H
989
990/* Define if your system defines sys_errlist[] */
991#undef HAVE_SYS_ERRLIST
992
993/* Define to 1 if you have the <sys/mman.h> header file. */
994#undef HAVE_SYS_MMAN_H
995
996/* Define to 1 if you have the <sys/mount.h> header file. */
997#undef HAVE_SYS_MOUNT_H
998
999/* Define to 1 if you have the <sys/ndir.h> header file. */
1000#undef HAVE_SYS_NDIR_H
1001
1002/* Define if your system defines sys_nerr */
1003#undef HAVE_SYS_NERR
1004
1005/* Define to 1 if you have the <sys/poll.h> header file. */
1006#undef HAVE_SYS_POLL_H
1007
1008/* Define to 1 if you have the <sys/prctl.h> header file. */
1009#undef HAVE_SYS_PRCTL_H
1010
1011/* Define to 1 if you have the <sys/pstat.h> header file. */
1012#undef HAVE_SYS_PSTAT_H
1013
1014/* Define to 1 if you have the <sys/ptms.h> header file. */
1015#undef HAVE_SYS_PTMS_H
1016
1017/* Define to 1 if you have the <sys/select.h> header file. */
1018#undef HAVE_SYS_SELECT_H
1019
1020/* Define to 1 if you have the <sys/statvfs.h> header file. */
1021#undef HAVE_SYS_STATVFS_H
1022
1023/* Define to 1 if you have the <sys/stat.h> header file. */
1024#undef HAVE_SYS_STAT_H
1025
1026/* Define to 1 if you have the <sys/stream.h> header file. */
1027#undef HAVE_SYS_STREAM_H
1028
1029/* Define to 1 if you have the <sys/stropts.h> header file. */
1030#undef HAVE_SYS_STROPTS_H
1031
1032/* Define to 1 if you have the <sys/strtio.h> header file. */
1033#undef HAVE_SYS_STRTIO_H
1034
1035/* Force use of sys/syslog.h on Ultrix */
1036#undef HAVE_SYS_SYSLOG_H
1037
1038/* Define to 1 if you have the <sys/sysmacros.h> header file. */
1039#undef HAVE_SYS_SYSMACROS_H
1040
1041/* Define to 1 if you have the <sys/timers.h> header file. */
1042#undef HAVE_SYS_TIMERS_H
1043
1044/* Define to 1 if you have the <sys/time.h> header file. */
1045#undef HAVE_SYS_TIME_H
1046
1047/* Define to 1 if you have the <sys/types.h> header file. */
1048#undef HAVE_SYS_TYPES_H
1049
1050/* Define to 1 if you have the <sys/un.h> header file. */
1051#undef HAVE_SYS_UN_H
1052
1053/* Define to 1 if you have the `tcgetpgrp' function. */
1054#undef HAVE_TCGETPGRP
1055
1056/* Define to 1 if you have the `tcsendbreak' function. */
1057#undef HAVE_TCSENDBREAK
1058
1059/* Define to 1 if you have the `time' function. */
1060#undef HAVE_TIME
1061
1062/* Define to 1 if you have the <time.h> header file. */
1063#undef HAVE_TIME_H
1064
1065/* Define if you have ut_time in utmp.h */
1066#undef HAVE_TIME_IN_UTMP
1067
1068/* Define if you have ut_time in utmpx.h */
1069#undef HAVE_TIME_IN_UTMPX
1070
1071/* Define to 1 if you have the `timingsafe_bcmp' function. */
1072#undef HAVE_TIMINGSAFE_BCMP
1073
1074/* Define to 1 if you have the <tmpdir.h> header file. */
1075#undef HAVE_TMPDIR_H
1076
1077/* Define to 1 if you have the `truncate' function. */
1078#undef HAVE_TRUNCATE
1079
1080/* Define to 1 if you have the <ttyent.h> header file. */
1081#undef HAVE_TTYENT_H
1082
1083/* Define if you have ut_tv in utmp.h */
1084#undef HAVE_TV_IN_UTMP
1085
1086/* Define if you have ut_tv in utmpx.h */
1087#undef HAVE_TV_IN_UTMPX
1088
1089/* Define if you have ut_type in utmp.h */
1090#undef HAVE_TYPE_IN_UTMP
1091
1092/* Define if you have ut_type in utmpx.h */
1093#undef HAVE_TYPE_IN_UTMPX
1094
1095/* Define to 1 if you have the <ucred.h> header file. */
1096#undef HAVE_UCRED_H
1097
1098/* define if you have uintxx_t data type */
1099#undef HAVE_UINTXX_T
1100
1101/* Define to 1 if you have the <unistd.h> header file. */
1102#undef HAVE_UNISTD_H
1103
1104/* Define to 1 if you have the `unsetenv' function. */
1105#undef HAVE_UNSETENV
1106
1107/* Define to 1 if the system has the type `unsigned long long'. */
1108#undef HAVE_UNSIGNED_LONG_LONG
1109
1110/* Define to 1 if you have the `updwtmp' function. */
1111#undef HAVE_UPDWTMP
1112
1113/* Define to 1 if you have the `updwtmpx' function. */
1114#undef HAVE_UPDWTMPX
1115
1116/* Define to 1 if you have the <usersec.h> header file. */
1117#undef HAVE_USERSEC_H
1118
1119/* Define to 1 if you have the `user_from_uid' function. */
1120#undef HAVE_USER_FROM_UID
1121
1122/* Define to 1 if you have the <util.h> header file. */
1123#undef HAVE_UTIL_H
1124
1125/* Define to 1 if you have the `utimes' function. */
1126#undef HAVE_UTIMES
1127
1128/* Define to 1 if you have the <utime.h> header file. */
1129#undef HAVE_UTIME_H
1130
1131/* Define to 1 if you have the `utmpname' function. */
1132#undef HAVE_UTMPNAME
1133
1134/* Define to 1 if you have the `utmpxname' function. */
1135#undef HAVE_UTMPXNAME
1136
1137/* Define to 1 if you have the <utmpx.h> header file. */
1138#undef HAVE_UTMPX_H
1139
1140/* Define to 1 if you have the <utmp.h> header file. */
1141#undef HAVE_UTMP_H
1142
1143/* define if you have u_char data type */
1144#undef HAVE_U_CHAR
1145
1146/* define if you have u_int data type */
1147#undef HAVE_U_INT
1148
1149/* define if you have u_int64_t data type */
1150#undef HAVE_U_INT64_T
1151
1152/* define if you have u_intxx_t data type */
1153#undef HAVE_U_INTXX_T
1154
1155/* Define to 1 if you have the `vasprintf' function. */
1156#undef HAVE_VASPRINTF
1157
1158/* Define if va_copy exists */
1159#undef HAVE_VA_COPY
1160
1161/* Define to 1 if you have the `vhangup' function. */
1162#undef HAVE_VHANGUP
1163
1164/* Define to 1 if you have the <vis.h> header file. */
1165#undef HAVE_VIS_H
1166
1167/* Define to 1 if you have the `vsnprintf' function. */
1168#undef HAVE_VSNPRINTF
1169
1170/* Define to 1 if you have the `waitpid' function. */
1171#undef HAVE_WAITPID
1172
1173/* Define to 1 if you have the `_getlong' function. */
1174#undef HAVE__GETLONG
1175
1176/* Define to 1 if you have the `_getpty' function. */
1177#undef HAVE__GETPTY
1178
1179/* Define to 1 if you have the `_getshort' function. */
1180#undef HAVE__GETSHORT
1181
1182/* Define if you have struct __res_state _res as an extern */
1183#undef HAVE__RES_EXTERN
1184
1185/* Define to 1 if you have the `__b64_ntop' function. */
1186#undef HAVE___B64_NTOP
1187
1188/* Define to 1 if you have the `__b64_pton' function. */
1189#undef HAVE___B64_PTON
1190
1191/* Define if compiler implements __FUNCTION__ */
1192#undef HAVE___FUNCTION__
1193
1194/* Define if libc defines __progname */
1195#undef HAVE___PROGNAME
1196
1197/* Fields in struct sockaddr_storage */
1198#undef HAVE___SS_FAMILY_IN_SS
1199
1200/* Define if __va_copy exists */
1201#undef HAVE___VA_COPY
1202
1203/* Define if compiler implements __func__ */
1204#undef HAVE___func__
1205
1206/* Define this if you are using the Heimdal version of Kerberos V5 */
1207#undef HEIMDAL
1208
1209/* Define if you need to use IP address instead of hostname in $DISPLAY */
1210#undef IPADDR_IN_DISPLAY
1211
1212/* Detect IPv4 in IPv6 mapped addresses and treat as IPv4 */
1213#undef IPV4_IN_IPV6
1214
1215/* Define if your system choked on IP TOS setting */
1216#undef IP_TOS_IS_BROKEN
1217
1218/* Define if you want Kerberos 5 support */
1219#undef KRB5
1220
1221/* Define if pututxline updates lastlog too */
1222#undef LASTLOG_WRITE_PUTUTXLINE
1223
1224/* Define if you want TCP Wrappers support */
1225#undef LIBWRAP
1226
1227/* Define to whatever link() returns for "not supported" if it doesn't return
1228 EOPNOTSUPP. */
1229#undef LINK_OPNOTSUPP_ERRNO
1230
1231/* Adjust Linux out-of-memory killer */
1232#undef LINUX_OOM_ADJUST
1233
1234/* max value of long long calculated by configure */
1235#undef LLONG_MAX
1236
1237/* min value of long long calculated by configure */
1238#undef LLONG_MIN
1239
1240/* Account locked with pw(1) */
1241#undef LOCKED_PASSWD_PREFIX
1242
1243/* String used in /etc/passwd to denote locked account */
1244#undef LOCKED_PASSWD_STRING
1245
1246/* String used in /etc/passwd to denote locked account */
1247#undef LOCKED_PASSWD_SUBSTR
1248
1249/* Some versions of /bin/login need the TERM supplied on the commandline */
1250#undef LOGIN_NEEDS_TERM
1251
1252/* Some systems need a utmpx entry for /bin/login to work */
1253#undef LOGIN_NEEDS_UTMPX
1254
1255/* Define if your login program cannot handle end of options ("--") */
1256#undef LOGIN_NO_ENDOPT
1257
1258/* If your header files don't define LOGIN_PROGRAM, then use this (detected)
1259 from environment and PATH */
1260#undef LOGIN_PROGRAM_FALLBACK
1261
1262/* Set this to your mail directory if you don't have maillock.h */
1263#undef MAIL_DIRECTORY
1264
1265/* Define on *nto-qnx systems */
1266#undef MISSING_FD_MASK
1267
1268/* Define on *nto-qnx systems */
1269#undef MISSING_HOWMANY
1270
1271/* Define on *nto-qnx systems */
1272#undef MISSING_NFDBITS
1273
1274/* Need setpgrp to acquire controlling tty */
1275#undef NEED_SETPGRP
1276
1277/* Define if the concept of ports only accessible to superusers isn't known */
1278#undef NO_IPPORT_RESERVED_CONCEPT
1279
1280/* Define if you don't want to use lastlog in session.c */
1281#undef NO_SSH_LASTLOG
1282
1283/* Define if X11 doesn't support AF_UNIX sockets on that system */
1284#undef NO_X11_UNIX_SOCKETS
1285
1286/* Define if EVP_DigestUpdate returns void */
1287#undef OPENSSL_EVP_DIGESTUPDATE_VOID
1288
1289/* libcrypto includes complete ECC support */
1290#undef OPENSSL_HAS_ECC
1291
1292/* libcrypto is missing AES 192 and 256 bit functions */
1293#undef OPENSSL_LOBOTOMISED_AES
1294
1295/* Define if you want OpenSSL's internally seeded PRNG only */
1296#undef OPENSSL_PRNG_ONLY
1297
1298/* Define to the address where bug reports for this package should be sent. */
1299#undef PACKAGE_BUGREPORT
1300
1301/* Define to the full name of this package. */
1302#undef PACKAGE_NAME
1303
1304/* Define to the full name and version of this package. */
1305#undef PACKAGE_STRING
1306
1307/* Define to the one symbol short name of this package. */
1308#undef PACKAGE_TARNAME
1309
1310/* Define to the version of this package. */
1311#undef PACKAGE_VERSION
1312
1313/* Define if you are using Solaris-derived PAM which passes pam_messages to
1314 the conversation function with an extra level of indirection */
1315#undef PAM_SUN_CODEBASE
1316
1317/* Work around problematic Linux PAM modules handling of PAM_TTY */
1318#undef PAM_TTY_KLUDGE
1319
1320/* must supply username to passwd */
1321#undef PASSWD_NEEDS_USERNAME
1322
1323/* Port number of PRNGD/EGD random number socket */
1324#undef PRNGD_PORT
1325
1326/* Location of PRNGD/EGD random number socket */
1327#undef PRNGD_SOCKET
1328
1329/* read(1) can return 0 for a non-closed fd */
1330#undef PTY_ZEROREAD
1331
1332/* Define if your platform breaks doing a seteuid before a setuid */
1333#undef SETEUID_BREAKS_SETUID
1334
1335/* The size of `char', as computed by sizeof. */
1336#undef SIZEOF_CHAR
1337
1338/* The size of `int', as computed by sizeof. */
1339#undef SIZEOF_INT
1340
1341/* The size of `long int', as computed by sizeof. */
1342#undef SIZEOF_LONG_INT
1343
1344/* The size of `long long int', as computed by sizeof. */
1345#undef SIZEOF_LONG_LONG_INT
1346
1347/* The size of `short int', as computed by sizeof. */
1348#undef SIZEOF_SHORT_INT
1349
1350/* Define if you want S/Key support */
1351#undef SKEY
1352
1353/* Define if your skeychallenge() function takes 4 arguments (NetBSD) */
1354#undef SKEYCHALLENGE_4ARG
1355
1356/* Define as const if snprintf() can declare const char *fmt */
1357#undef SNPRINTF_CONST
1358
1359/* Define to a Set Process Title type if your system is supported by
1360 bsd-setproctitle.c */
1361#undef SPT_TYPE
1362
1363/* Define if sshd somehow reacquires a controlling TTY after setsid() */
1364#undef SSHD_ACQUIRES_CTTY
1365
1366/* Define if pam_chauthtok wants real uid set to the unpriv'ed user */
1367#undef SSHPAM_CHAUTHTOK_NEEDS_RUID
1368
1369/* Use audit debugging module */
1370#undef SSH_AUDIT_EVENTS
1371
1372/* Windows is sensitive to read buffer size */
1373#undef SSH_IOBUFSZ
1374
1375/* non-privileged user for privilege separation */
1376#undef SSH_PRIVSEP_USER
1377
1378/* Use tunnel device compatibility to OpenBSD */
1379#undef SSH_TUN_COMPAT_AF
1380
1381/* Open tunnel devices the FreeBSD way */
1382#undef SSH_TUN_FREEBSD
1383
1384/* Open tunnel devices the Linux tun/tap way */
1385#undef SSH_TUN_LINUX
1386
1387/* No layer 2 tunnel support */
1388#undef SSH_TUN_NO_L2
1389
1390/* Open tunnel devices the OpenBSD way */
1391#undef SSH_TUN_OPENBSD
1392
1393/* Prepend the address family to IP tunnel traffic */
1394#undef SSH_TUN_PREPEND_AF
1395
1396/* Define to 1 if you have the ANSI C header files. */
1397#undef STDC_HEADERS
1398
1399/* Define if you want a different $PATH for the superuser */
1400#undef SUPERUSER_PATH
1401
1402/* syslog_r function is safe to use in in a signal handler */
1403#undef SYSLOG_R_SAFE_IN_SIGHAND
1404
1405/* Support passwords > 8 chars */
1406#undef UNIXWARE_LONG_PASSWORDS
1407
1408/* Specify default $PATH */
1409#undef USER_PATH
1410
1411/* Define this if you want to use libkafs' AFS support */
1412#undef USE_AFS
1413
1414/* Use BSM audit module */
1415#undef USE_BSM_AUDIT
1416
1417/* Use btmp to log bad logins */
1418#undef USE_BTMP
1419
1420/* Use libedit for sftp */
1421#undef USE_LIBEDIT
1422
1423/* Use Linux audit module */
1424#undef USE_LINUX_AUDIT
1425
1426/* Enable OpenSSL engine support */
1427#undef USE_OPENSSL_ENGINE
1428
1429/* Define if you want to enable PAM support */
1430#undef USE_PAM
1431
1432/* Use PIPES instead of a socketpair() */
1433#undef USE_PIPES
1434
1435/* Define if you have Solaris process contracts */
1436#undef USE_SOLARIS_PROCESS_CONTRACTS
1437
1438/* Define if you have Solaris projects */
1439#undef USE_SOLARIS_PROJECTS
1440
1441/* Define if you shouldn't strip 'tty' from your ttyname in [uw]tmp */
1442#undef WITH_ABBREV_NO_TTY
1443
1444/* Define if you want to enable AIX4's authenticate function */
1445#undef WITH_AIXAUTHENTICATE
1446
1447/* Define if you have/want arrays (cluster-wide session managment, not C
1448 arrays) */
1449#undef WITH_IRIX_ARRAY
1450
1451/* Define if you want IRIX audit trails */
1452#undef WITH_IRIX_AUDIT
1453
1454/* Define if you want IRIX kernel jobs */
1455#undef WITH_IRIX_JOBS
1456
1457/* Define if you want IRIX project management */
1458#undef WITH_IRIX_PROJECT
1459
1460/* Define if you want SELinux support. */
1461#undef WITH_SELINUX
1462
1463/* Define to 1 if your processor stores words with the most significant byte
1464 first (like Motorola and SPARC, unlike Intel and VAX). */
1465#undef WORDS_BIGENDIAN
1466
1467/* Define if xauth is found in your path */
1468#undef XAUTH_PATH
1469
1470/* Number of bits in a file offset, on hosts where this is settable. */
1471#undef _FILE_OFFSET_BITS
1472
1473/* Define for large files, on AIX-style hosts. */
1474#undef _LARGE_FILES
1475
1476/* log for bad login attempts */
1477#undef _PATH_BTMP
1478
1479/* Full path of your "passwd" program */
1480#undef _PATH_PASSWD_PROG
1481
1482/* Specify location of ssh.pid */
1483#undef _PATH_SSH_PIDDIR
1484
1485/* Define if we don't have struct __res_state in resolv.h */
1486#undef __res_state
1487
1488/* Define to `__inline__' or `__inline' if that's what the C compiler
1489 calls it, or to nothing if 'inline' is not supported under any name. */
1490#ifndef __cplusplus
1491#undef inline
1492#endif
1493
1494/* type to use in place of socklen_t if not defined */
1495#undef socklen_t
diff --git a/config.sub b/config.sub
index 2d8169626..c2d125724 100755
--- a/config.sub
+++ b/config.sub
@@ -1,10 +1,10 @@
1#! /bin/sh 1#! /bin/sh
2# Configuration validation subroutine script. 2# Configuration validation subroutine script.
3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 4# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
5# 2011 Free Software Foundation, Inc. 5# Free Software Foundation, Inc.
6 6
7timestamp='2011-01-01' 7timestamp='2010-01-22'
8 8
9# This file is (in principle) common to ALL GNU software. 9# This file is (in principle) common to ALL GNU software.
10# The presence of a machine in this file suggests that SOME GNU software 10# The presence of a machine in this file suggests that SOME GNU software
@@ -124,9 +124,8 @@ esac
124# Here we must recognize all the valid KERNEL-OS combinations. 124# Here we must recognize all the valid KERNEL-OS combinations.
125maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 125maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
126case $maybe_os in 126case $maybe_os in
127 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ 127 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
128 linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ 128 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
129 knetbsd*-gnu* | netbsd*-gnu* | \
130 kopensolaris*-gnu* | \ 129 kopensolaris*-gnu* | \
131 storm-chaos* | os2-emx* | rtmk-nova*) 130 storm-chaos* | os2-emx* | rtmk-nova*)
132 os=-$maybe_os 131 os=-$maybe_os
@@ -283,7 +282,6 @@ case $basic_machine in
283 | moxie \ 282 | moxie \
284 | mt \ 283 | mt \
285 | msp430 \ 284 | msp430 \
286 | nds32 | nds32le | nds32be \
287 | nios | nios2 \ 285 | nios | nios2 \
288 | ns16k | ns32k \ 286 | ns16k | ns32k \
289 | or32 \ 287 | or32 \
@@ -297,7 +295,7 @@ case $basic_machine in
297 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ 295 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
298 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ 296 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
299 | spu | strongarm \ 297 | spu | strongarm \
300 | tahoe | thumb | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ 298 | tahoe | thumb | tic4x | tic80 | tron \
301 | ubicom32 \ 299 | ubicom32 \
302 | v850 | v850e \ 300 | v850 | v850e \
303 | we32k \ 301 | we32k \
@@ -305,15 +303,6 @@ case $basic_machine in
305 | z8k | z80) 303 | z8k | z80)
306 basic_machine=$basic_machine-unknown 304 basic_machine=$basic_machine-unknown
307 ;; 305 ;;
308 c54x)
309 basic_machine=tic54x-unknown
310 ;;
311 c55x)
312 basic_machine=tic55x-unknown
313 ;;
314 c6x)
315 basic_machine=tic6x-unknown
316 ;;
317 m6811 | m68hc11 | m6812 | m68hc12 | picochip) 306 m6811 | m68hc11 | m6812 | m68hc12 | picochip)
318 # Motorola 68HC11/12. 307 # Motorola 68HC11/12.
319 basic_machine=$basic_machine-unknown 308 basic_machine=$basic_machine-unknown
@@ -345,7 +334,7 @@ case $basic_machine in
345 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 334 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
346 | avr-* | avr32-* \ 335 | avr-* | avr32-* \
347 | bfin-* | bs2000-* \ 336 | bfin-* | bs2000-* \
348 | c[123]* | c30-* | [cjt]90-* | c4x-* \ 337 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
349 | clipper-* | craynv-* | cydra-* \ 338 | clipper-* | craynv-* | cydra-* \
350 | d10v-* | d30v-* | dlx-* \ 339 | d10v-* | d30v-* | dlx-* \
351 | elxsi-* \ 340 | elxsi-* \
@@ -379,7 +368,6 @@ case $basic_machine in
379 | mmix-* \ 368 | mmix-* \
380 | mt-* \ 369 | mt-* \
381 | msp430-* \ 370 | msp430-* \
382 | nds32-* | nds32le-* | nds32be-* \
383 | nios-* | nios2-* \ 371 | nios-* | nios2-* \
384 | none-* | np1-* | ns16k-* | ns32k-* \ 372 | none-* | np1-* | ns16k-* | ns32k-* \
385 | orion-* \ 373 | orion-* \
@@ -494,15 +482,6 @@ case $basic_machine in
494 basic_machine=powerpc-ibm 482 basic_machine=powerpc-ibm
495 os=-cnk 483 os=-cnk
496 ;; 484 ;;
497 c54x-*)
498 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
499 ;;
500 c55x-*)
501 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
502 ;;
503 c6x-*)
504 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
505 ;;
506 c90) 485 c90)
507 basic_machine=c90-cray 486 basic_machine=c90-cray
508 os=-unicos 487 os=-unicos
@@ -539,7 +518,7 @@ case $basic_machine in
539 basic_machine=craynv-cray 518 basic_machine=craynv-cray
540 os=-unicosmp 519 os=-unicosmp
541 ;; 520 ;;
542 cr16 | cr16-*) 521 cr16)
543 basic_machine=cr16-unknown 522 basic_machine=cr16-unknown
544 os=-elf 523 os=-elf
545 ;; 524 ;;
@@ -862,12 +841,6 @@ case $basic_machine in
862 np1) 841 np1)
863 basic_machine=np1-gould 842 basic_machine=np1-gould
864 ;; 843 ;;
865 neo-tandem)
866 basic_machine=neo-tandem
867 ;;
868 nse-tandem)
869 basic_machine=nse-tandem
870 ;;
871 nsr-tandem) 844 nsr-tandem)
872 basic_machine=nsr-tandem 845 basic_machine=nsr-tandem
873 ;; 846 ;;
@@ -1102,6 +1075,18 @@ case $basic_machine in
1102 basic_machine=t90-cray 1075 basic_machine=t90-cray
1103 os=-unicos 1076 os=-unicos
1104 ;; 1077 ;;
1078 tic54x | c54x*)
1079 basic_machine=tic54x-unknown
1080 os=-coff
1081 ;;
1082 tic55x | c55x*)
1083 basic_machine=tic55x-unknown
1084 os=-coff
1085 ;;
1086 tic6x | c6x*)
1087 basic_machine=tic6x-unknown
1088 os=-coff
1089 ;;
1105 # This must be matched before tile*. 1090 # This must be matched before tile*.
1106 tilegx*) 1091 tilegx*)
1107 basic_machine=tilegx-unknown 1092 basic_machine=tilegx-unknown
@@ -1316,8 +1301,7 @@ case $os in
1316 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 1301 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1317 | -chorusos* | -chorusrdb* | -cegcc* \ 1302 | -chorusos* | -chorusrdb* | -cegcc* \
1318 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1303 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1319 | -mingw32* | -linux-gnu* | -linux-android* \ 1304 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1320 | -linux-newlib* | -linux-uclibc* \
1321 | -uxpv* | -beos* | -mpeix* | -udk* \ 1305 | -uxpv* | -beos* | -mpeix* | -udk* \
1322 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 1306 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1323 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1307 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
@@ -1500,15 +1484,6 @@ case $basic_machine in
1500 c4x-* | tic4x-*) 1484 c4x-* | tic4x-*)
1501 os=-coff 1485 os=-coff
1502 ;; 1486 ;;
1503 tic54x-*)
1504 os=-coff
1505 ;;
1506 tic55x-*)
1507 os=-coff
1508 ;;
1509 tic6x-*)
1510 os=-coff
1511 ;;
1512 # This must come before the *-dec entry. 1487 # This must come before the *-dec entry.
1513 pdp10-*) 1488 pdp10-*)
1514 os=-tops20 1489 os=-tops20
diff --git a/configure b/configure
new file mode 100755
index 000000000..73040c5d3
--- /dev/null
+++ b/configure
@@ -0,0 +1,32039 @@
1#! /bin/sh
2# From configure.ac Revision: 1.469.4.1 .
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
687GROFF
688NROFF
689MANDOC
690TEST_SHELL
691MANFMT
692PATH_GROUPADD_PROG
693PATH_USERADD_PROG
694MAKE_PACKAGE_SUPPORTED
695STARTUP_SCRIPT_SHELL
696LOGIN_PROGRAM_FALLBACK
697PATH_PASSWD_PROG
698LD
699PKGCONFIG
700LIBEDIT
701TEST_SSH_SHA256
702TEST_SSH_ECC
703COMMENT_OUT_ECC
704INSTALL_SSH_RAND_HELPER
705SSH_PRIVSEP_USER
706PROG_LS
707PROG_NETSTAT
708PROG_ARP
709PROG_IFCONFIG
710PROG_JSTAT
711PROG_PS
712PROG_SAR
713PROG_W
714PROG_WHO
715PROG_LAST
716PROG_LASTLOG
717PROG_DF
718PROG_VMSTAT
719PROG_UPTIME
720PROG_IPCS
721PROG_TAIL
722INSTALL_SSH_PRNG_CMDS
723SSHLIBS
724SSHDLIBS
725KRB5CONF
726PRIVSEP_PATH
727xauth_path
728STRIP_OPT
729XAUTH_PATH
730MANTYPE
731mansubdir
732user_path
733piddir
734TEST_SSH_IPV6
735LIBOBJS
736LTLIBOBJS'
737ac_subst_files=''
738 ac_precious_vars='build_alias
739host_alias
740target_alias
741CC
742CFLAGS
743LDFLAGS
744LIBS
745CPPFLAGS
746CPP'
747
748
749# Initialize some variables set by options.
750ac_init_help=
751ac_init_version=false
752# The variables have the same names as the options, with
753# dashes changed to underlines.
754cache_file=/dev/null
755exec_prefix=NONE
756no_create=
757no_recursion=
758prefix=NONE
759program_prefix=NONE
760program_suffix=NONE
761program_transform_name=s,x,x,
762silent=
763site=
764srcdir=
765verbose=
766x_includes=NONE
767x_libraries=NONE
768
769# Installation directory options.
770# These are left unexpanded so users can "make install exec_prefix=/foo"
771# and all the variables that are supposed to be based on exec_prefix
772# by default will actually change.
773# Use braces instead of parens because sh, perl, etc. also accept them.
774# (The list follows the same order as the GNU Coding Standards.)
775bindir='${exec_prefix}/bin'
776sbindir='${exec_prefix}/sbin'
777libexecdir='${exec_prefix}/libexec'
778datarootdir='${prefix}/share'
779datadir='${datarootdir}'
780sysconfdir='${prefix}/etc'
781sharedstatedir='${prefix}/com'
782localstatedir='${prefix}/var'
783includedir='${prefix}/include'
784oldincludedir='/usr/include'
785docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
786infodir='${datarootdir}/info'
787htmldir='${docdir}'
788dvidir='${docdir}'
789pdfdir='${docdir}'
790psdir='${docdir}'
791libdir='${exec_prefix}/lib'
792localedir='${datarootdir}/locale'
793mandir='${datarootdir}/man'
794
795ac_prev=
796ac_dashdash=
797for ac_option
798do
799 # If the previous option needs an argument, assign it.
800 if test -n "$ac_prev"; then
801 eval $ac_prev=\$ac_option
802 ac_prev=
803 continue
804 fi
805
806 case $ac_option in
807 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
808 *) ac_optarg=yes ;;
809 esac
810
811 # Accept the important Cygnus configure options, so we can diagnose typos.
812
813 case $ac_dashdash$ac_option in
814 --)
815 ac_dashdash=yes ;;
816
817 -bindir | --bindir | --bindi | --bind | --bin | --bi)
818 ac_prev=bindir ;;
819 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
820 bindir=$ac_optarg ;;
821
822 -build | --build | --buil | --bui | --bu)
823 ac_prev=build_alias ;;
824 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
825 build_alias=$ac_optarg ;;
826
827 -cache-file | --cache-file | --cache-fil | --cache-fi \
828 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
829 ac_prev=cache_file ;;
830 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
831 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
832 cache_file=$ac_optarg ;;
833
834 --config-cache | -C)
835 cache_file=config.cache ;;
836
837 -datadir | --datadir | --datadi | --datad)
838 ac_prev=datadir ;;
839 -datadir=* | --datadir=* | --datadi=* | --datad=*)
840 datadir=$ac_optarg ;;
841
842 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
843 | --dataroo | --dataro | --datar)
844 ac_prev=datarootdir ;;
845 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
846 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
847 datarootdir=$ac_optarg ;;
848
849 -disable-* | --disable-*)
850 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
851 # Reject names that are not valid shell variable names.
852 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
853 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
854 { (exit 1); exit 1; }; }
855 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
856 eval enable_$ac_feature=no ;;
857
858 -docdir | --docdir | --docdi | --doc | --do)
859 ac_prev=docdir ;;
860 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
861 docdir=$ac_optarg ;;
862
863 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
864 ac_prev=dvidir ;;
865 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
866 dvidir=$ac_optarg ;;
867
868 -enable-* | --enable-*)
869 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
870 # Reject names that are not valid shell variable names.
871 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
872 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
873 { (exit 1); exit 1; }; }
874 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
875 eval enable_$ac_feature=\$ac_optarg ;;
876
877 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
878 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
879 | --exec | --exe | --ex)
880 ac_prev=exec_prefix ;;
881 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
882 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
883 | --exec=* | --exe=* | --ex=*)
884 exec_prefix=$ac_optarg ;;
885
886 -gas | --gas | --ga | --g)
887 # Obsolete; use --with-gas.
888 with_gas=yes ;;
889
890 -help | --help | --hel | --he | -h)
891 ac_init_help=long ;;
892 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
893 ac_init_help=recursive ;;
894 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
895 ac_init_help=short ;;
896
897 -host | --host | --hos | --ho)
898 ac_prev=host_alias ;;
899 -host=* | --host=* | --hos=* | --ho=*)
900 host_alias=$ac_optarg ;;
901
902 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
903 ac_prev=htmldir ;;
904 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
905 | --ht=*)
906 htmldir=$ac_optarg ;;
907
908 -includedir | --includedir | --includedi | --included | --include \
909 | --includ | --inclu | --incl | --inc)
910 ac_prev=includedir ;;
911 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
912 | --includ=* | --inclu=* | --incl=* | --inc=*)
913 includedir=$ac_optarg ;;
914
915 -infodir | --infodir | --infodi | --infod | --info | --inf)
916 ac_prev=infodir ;;
917 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
918 infodir=$ac_optarg ;;
919
920 -libdir | --libdir | --libdi | --libd)
921 ac_prev=libdir ;;
922 -libdir=* | --libdir=* | --libdi=* | --libd=*)
923 libdir=$ac_optarg ;;
924
925 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
926 | --libexe | --libex | --libe)
927 ac_prev=libexecdir ;;
928 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
929 | --libexe=* | --libex=* | --libe=*)
930 libexecdir=$ac_optarg ;;
931
932 -localedir | --localedir | --localedi | --localed | --locale)
933 ac_prev=localedir ;;
934 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
935 localedir=$ac_optarg ;;
936
937 -localstatedir | --localstatedir | --localstatedi | --localstated \
938 | --localstate | --localstat | --localsta | --localst | --locals)
939 ac_prev=localstatedir ;;
940 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
941 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
942 localstatedir=$ac_optarg ;;
943
944 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
945 ac_prev=mandir ;;
946 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
947 mandir=$ac_optarg ;;
948
949 -nfp | --nfp | --nf)
950 # Obsolete; use --without-fp.
951 with_fp=no ;;
952
953 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
954 | --no-cr | --no-c | -n)
955 no_create=yes ;;
956
957 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
958 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
959 no_recursion=yes ;;
960
961 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
962 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
963 | --oldin | --oldi | --old | --ol | --o)
964 ac_prev=oldincludedir ;;
965 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
966 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
967 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
968 oldincludedir=$ac_optarg ;;
969
970 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
971 ac_prev=prefix ;;
972 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
973 prefix=$ac_optarg ;;
974
975 -program-prefix | --program-prefix | --program-prefi | --program-pref \
976 | --program-pre | --program-pr | --program-p)
977 ac_prev=program_prefix ;;
978 -program-prefix=* | --program-prefix=* | --program-prefi=* \
979 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
980 program_prefix=$ac_optarg ;;
981
982 -program-suffix | --program-suffix | --program-suffi | --program-suff \
983 | --program-suf | --program-su | --program-s)
984 ac_prev=program_suffix ;;
985 -program-suffix=* | --program-suffix=* | --program-suffi=* \
986 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
987 program_suffix=$ac_optarg ;;
988
989 -program-transform-name | --program-transform-name \
990 | --program-transform-nam | --program-transform-na \
991 | --program-transform-n | --program-transform- \
992 | --program-transform | --program-transfor \
993 | --program-transfo | --program-transf \
994 | --program-trans | --program-tran \
995 | --progr-tra | --program-tr | --program-t)
996 ac_prev=program_transform_name ;;
997 -program-transform-name=* | --program-transform-name=* \
998 | --program-transform-nam=* | --program-transform-na=* \
999 | --program-transform-n=* | --program-transform-=* \
1000 | --program-transform=* | --program-transfor=* \
1001 | --program-transfo=* | --program-transf=* \
1002 | --program-trans=* | --program-tran=* \
1003 | --progr-tra=* | --program-tr=* | --program-t=*)
1004 program_transform_name=$ac_optarg ;;
1005
1006 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1007 ac_prev=pdfdir ;;
1008 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1009 pdfdir=$ac_optarg ;;
1010
1011 -psdir | --psdir | --psdi | --psd | --ps)
1012 ac_prev=psdir ;;
1013 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1014 psdir=$ac_optarg ;;
1015
1016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1017 | -silent | --silent | --silen | --sile | --sil)
1018 silent=yes ;;
1019
1020 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1021 ac_prev=sbindir ;;
1022 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1023 | --sbi=* | --sb=*)
1024 sbindir=$ac_optarg ;;
1025
1026 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1027 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1028 | --sharedst | --shareds | --shared | --share | --shar \
1029 | --sha | --sh)
1030 ac_prev=sharedstatedir ;;
1031 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1032 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1033 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1034 | --sha=* | --sh=*)
1035 sharedstatedir=$ac_optarg ;;
1036
1037 -site | --site | --sit)
1038 ac_prev=site ;;
1039 -site=* | --site=* | --sit=*)
1040 site=$ac_optarg ;;
1041
1042 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1043 ac_prev=srcdir ;;
1044 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1045 srcdir=$ac_optarg ;;
1046
1047 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1048 | --syscon | --sysco | --sysc | --sys | --sy)
1049 ac_prev=sysconfdir ;;
1050 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1051 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1052 sysconfdir=$ac_optarg ;;
1053
1054 -target | --target | --targe | --targ | --tar | --ta | --t)
1055 ac_prev=target_alias ;;
1056 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1057 target_alias=$ac_optarg ;;
1058
1059 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1060 verbose=yes ;;
1061
1062 -version | --version | --versio | --versi | --vers | -V)
1063 ac_init_version=: ;;
1064
1065 -with-* | --with-*)
1066 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1069 { echo "$as_me: error: invalid package name: $ac_package" >&2
1070 { (exit 1); exit 1; }; }
1071 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1072 eval with_$ac_package=\$ac_optarg ;;
1073
1074 -without-* | --without-*)
1075 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1078 { echo "$as_me: error: invalid package name: $ac_package" >&2
1079 { (exit 1); exit 1; }; }
1080 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1081 eval with_$ac_package=no ;;
1082
1083 --x)
1084 # Obsolete; use --with-x.
1085 with_x=yes ;;
1086
1087 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1088 | --x-incl | --x-inc | --x-in | --x-i)
1089 ac_prev=x_includes ;;
1090 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1091 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1092 x_includes=$ac_optarg ;;
1093
1094 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1095 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1096 ac_prev=x_libraries ;;
1097 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1098 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1099 x_libraries=$ac_optarg ;;
1100
1101 -*) { echo "$as_me: error: unrecognized option: $ac_option
1102Try \`$0 --help' for more information." >&2
1103 { (exit 1); exit 1; }; }
1104 ;;
1105
1106 *=*)
1107 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1110 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1111 { (exit 1); exit 1; }; }
1112 eval $ac_envvar=\$ac_optarg
1113 export $ac_envvar ;;
1114
1115 *)
1116 # FIXME: should be removed in autoconf 3.0.
1117 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1118 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1119 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1120 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1121 ;;
1122
1123 esac
1124done
1125
1126if test -n "$ac_prev"; then
1127 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1128 { echo "$as_me: error: missing argument to $ac_option" >&2
1129 { (exit 1); exit 1; }; }
1130fi
1131
1132# Be sure to have absolute directory names.
1133for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1134 datadir sysconfdir sharedstatedir localstatedir includedir \
1135 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1136 libdir localedir mandir
1137do
1138 eval ac_val=\$$ac_var
1139 case $ac_val in
1140 [\\/$]* | ?:[\\/]* ) continue;;
1141 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1142 esac
1143 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1144 { (exit 1); exit 1; }; }
1145done
1146
1147# There might be people who depend on the old broken behavior: `$host'
1148# used to hold the argument of --host etc.
1149# FIXME: To remove some day.
1150build=$build_alias
1151host=$host_alias
1152target=$target_alias
1153
1154# FIXME: To remove some day.
1155if test "x$host_alias" != x; then
1156 if test "x$build_alias" = x; then
1157 cross_compiling=maybe
1158 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1159 If a cross compiler is detected then cross compile mode will be used." >&2
1160 elif test "x$build_alias" != "x$host_alias"; then
1161 cross_compiling=yes
1162 fi
1163fi
1164
1165ac_tool_prefix=
1166test -n "$host_alias" && ac_tool_prefix=$host_alias-
1167
1168test "$silent" = yes && exec 6>/dev/null
1169
1170
1171ac_pwd=`pwd` && test -n "$ac_pwd" &&
1172ac_ls_di=`ls -di .` &&
1173ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1174 { echo "$as_me: error: Working directory cannot be determined" >&2
1175 { (exit 1); exit 1; }; }
1176test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1177 { echo "$as_me: error: pwd does not report name of working directory" >&2
1178 { (exit 1); exit 1; }; }
1179
1180
1181# Find the source files, if location was not specified.
1182if test -z "$srcdir"; then
1183 ac_srcdir_defaulted=yes
1184 # Try the directory containing this script, then the parent directory.
1185 ac_confdir=`$as_dirname -- "$0" ||
1186$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1187 X"$0" : 'X\(//\)[^/]' \| \
1188 X"$0" : 'X\(//\)$' \| \
1189 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1190echo X"$0" |
1191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1192 s//\1/
1193 q
1194 }
1195 /^X\(\/\/\)[^/].*/{
1196 s//\1/
1197 q
1198 }
1199 /^X\(\/\/\)$/{
1200 s//\1/
1201 q
1202 }
1203 /^X\(\/\).*/{
1204 s//\1/
1205 q
1206 }
1207 s/.*/./; q'`
1208 srcdir=$ac_confdir
1209 if test ! -r "$srcdir/$ac_unique_file"; then
1210 srcdir=..
1211 fi
1212else
1213 ac_srcdir_defaulted=no
1214fi
1215if test ! -r "$srcdir/$ac_unique_file"; then
1216 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1217 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1218 { (exit 1); exit 1; }; }
1219fi
1220ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1221ac_abs_confdir=`(
1222 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1223 { (exit 1); exit 1; }; }
1224 pwd)`
1225# When building in place, set srcdir=.
1226if test "$ac_abs_confdir" = "$ac_pwd"; then
1227 srcdir=.
1228fi
1229# Remove unnecessary trailing slashes from srcdir.
1230# Double slashes in file names in object file debugging info
1231# mess up M-x gdb in Emacs.
1232case $srcdir in
1233*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1234esac
1235for ac_var in $ac_precious_vars; do
1236 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1237 eval ac_env_${ac_var}_value=\$${ac_var}
1238 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1239 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1240done
1241
1242#
1243# Report the --help message.
1244#
1245if test "$ac_init_help" = "long"; then
1246 # Omit some internal or obsolete options to make the list less imposing.
1247 # This message is too long to be a string in the A/UX 3.1 sh.
1248 cat <<_ACEOF
1249\`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1250
1251Usage: $0 [OPTION]... [VAR=VALUE]...
1252
1253To assign environment variables (e.g., CC, CFLAGS...), specify them as
1254VAR=VALUE. See below for descriptions of some of the useful variables.
1255
1256Defaults for the options are specified in brackets.
1257
1258Configuration:
1259 -h, --help display this help and exit
1260 --help=short display options specific to this package
1261 --help=recursive display the short help of all the included packages
1262 -V, --version display version information and exit
1263 -q, --quiet, --silent do not print \`checking...' messages
1264 --cache-file=FILE cache test results in FILE [disabled]
1265 -C, --config-cache alias for \`--cache-file=config.cache'
1266 -n, --no-create do not create output files
1267 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1268
1269Installation directories:
1270 --prefix=PREFIX install architecture-independent files in PREFIX
1271 [$ac_default_prefix]
1272 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1273 [PREFIX]
1274
1275By default, \`make install' will install all the files in
1276\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1277an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1278for instance \`--prefix=\$HOME'.
1279
1280For better control, use the options below.
1281
1282Fine tuning of the installation directories:
1283 --bindir=DIR user executables [EPREFIX/bin]
1284 --sbindir=DIR system admin executables [EPREFIX/sbin]
1285 --libexecdir=DIR program executables [EPREFIX/libexec]
1286 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1287 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1288 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1289 --libdir=DIR object code libraries [EPREFIX/lib]
1290 --includedir=DIR C header files [PREFIX/include]
1291 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1292 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1293 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1294 --infodir=DIR info documentation [DATAROOTDIR/info]
1295 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1296 --mandir=DIR man documentation [DATAROOTDIR/man]
1297 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh]
1298 --htmldir=DIR html documentation [DOCDIR]
1299 --dvidir=DIR dvi documentation [DOCDIR]
1300 --pdfdir=DIR pdf documentation [DOCDIR]
1301 --psdir=DIR ps documentation [DOCDIR]
1302_ACEOF
1303
1304 cat <<\_ACEOF
1305
1306System types:
1307 --build=BUILD configure for building on BUILD [guessed]
1308 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1309_ACEOF
1310fi
1311
1312if test -n "$ac_init_help"; then
1313 case $ac_init_help in
1314 short | recursive ) echo "Configuration of OpenSSH Portable:";;
1315 esac
1316 cat <<\_ACEOF
1317
1318Optional Features:
1319 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1320 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1321 --disable-largefile omit support for large files
1322 --disable-strip Disable calling strip(1) on install
1323 --disable-etc-default-login Disable using PATH from /etc/default/login no
1324 --disable-lastlog disable use of lastlog even if detected no
1325 --disable-utmp disable use of utmp even if detected no
1326 --disable-utmpx disable use of utmpx even if detected no
1327 --disable-wtmp disable use of wtmp even if detected no
1328 --disable-wtmpx disable use of wtmpx even if detected no
1329 --disable-libutil disable use of libutil (login() etc.) no
1330 --disable-pututline disable use of pututline() etc. (uwtmp) no
1331 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
1332
1333Optional Packages:
1334 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1335 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1336 --without-stackprotect Don't use compiler's stack protection
1337 --without-rpath Disable auto-added -R linker paths
1338 --with-cflags Specify additional flags to pass to compiler
1339 --with-cppflags Specify additional flags to pass to preprocessor
1340 --with-ldflags Specify additional flags to pass to linker
1341 --with-libs Specify additional libraries to link with
1342 --with-Werror Build main code with -Werror
1343 --with-solaris-contracts Enable Solaris process contracts (experimental)
1344 --with-solaris-projects Enable Solaris projects (experimental)
1345 --with-osfsia Enable Digital Unix SIA
1346 --with-zlib=PATH Use zlib in PATH
1347 --without-zlib-version-check Disable zlib version check
1348 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
1349 --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH)
1350 --with-libedit[=PATH] Enable libedit support for sftp
1351 --with-audit=module Enable audit support (modules=debug,bsm,linux)
1352 --with-ssl-dir=PATH Specify path to OpenSSL installation
1353 --without-openssl-header-check Disable OpenSSL version consistency check
1354 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1355 --with-pam Enable PAM support
1356 --with-rand-helper Use subprocess to gather strong randomness
1357 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1358 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1359 --with-entropy-timeout Specify entropy gathering command timeout (msec)
1360 --with-privsep-user=user Specify non-privileged user for privilege separation
1361 --with-selinux Enable SELinux support
1362 --with-kerberos5=PATH Enable Kerberos 5 support
1363 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1364 --with-xauth=PATH Specify path to xauth program
1365 --with-mantype=man|cat|doc Set man page type
1366 --with-md5-passwords Enable use of MD5 passwords
1367 --without-shadow Disable shadow password support
1368 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
1369 --with-default-path= Specify default \$PATH environment for server
1370 --with-superuser-path= Specify different path for super-user
1371 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1372 --with-bsd-auth Enable BSD auth support
1373 --with-pid-dir=PATH Specify location of ssh.pid file
1374 --with-lastlog=FILE|DIR specify lastlog location common locations
1375
1376Some influential environment variables:
1377 CC C compiler command
1378 CFLAGS C compiler flags
1379 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1380 nonstandard directory <lib dir>
1381 LIBS libraries to pass to the linker, e.g. -l<library>
1382 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1383 you have headers in a nonstandard directory <include dir>
1384 CPP C preprocessor
1385
1386Use these variables to override the choices made by `configure' or to help
1387it to find libraries and programs with nonstandard names/locations.
1388
1389Report bugs to <openssh-unix-dev@mindrot.org>.
1390_ACEOF
1391ac_status=$?
1392fi
1393
1394if test "$ac_init_help" = "recursive"; then
1395 # If there are subdirs, report their specific --help.
1396 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1397 test -d "$ac_dir" || continue
1398 ac_builddir=.
1399
1400case "$ac_dir" in
1401.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1402*)
1403 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1404 # A ".." for each directory in $ac_dir_suffix.
1405 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1406 case $ac_top_builddir_sub in
1407 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1408 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1409 esac ;;
1410esac
1411ac_abs_top_builddir=$ac_pwd
1412ac_abs_builddir=$ac_pwd$ac_dir_suffix
1413# for backward compatibility:
1414ac_top_builddir=$ac_top_build_prefix
1415
1416case $srcdir in
1417 .) # We are building in place.
1418 ac_srcdir=.
1419 ac_top_srcdir=$ac_top_builddir_sub
1420 ac_abs_top_srcdir=$ac_pwd ;;
1421 [\\/]* | ?:[\\/]* ) # Absolute name.
1422 ac_srcdir=$srcdir$ac_dir_suffix;
1423 ac_top_srcdir=$srcdir
1424 ac_abs_top_srcdir=$srcdir ;;
1425 *) # Relative name.
1426 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1427 ac_top_srcdir=$ac_top_build_prefix$srcdir
1428 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1429esac
1430ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1431
1432 cd "$ac_dir" || { ac_status=$?; continue; }
1433 # Check for guested configure.
1434 if test -f "$ac_srcdir/configure.gnu"; then
1435 echo &&
1436 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1437 elif test -f "$ac_srcdir/configure"; then
1438 echo &&
1439 $SHELL "$ac_srcdir/configure" --help=recursive
1440 else
1441 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1442 fi || ac_status=$?
1443 cd "$ac_pwd" || { ac_status=$?; break; }
1444 done
1445fi
1446
1447test -n "$ac_init_help" && exit $ac_status
1448if $ac_init_version; then
1449 cat <<\_ACEOF
1450OpenSSH configure Portable
1451generated by GNU Autoconf 2.61
1452
1453Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14542002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1455This configure script is free software; the Free Software Foundation
1456gives unlimited permission to copy, distribute and modify it.
1457_ACEOF
1458 exit
1459fi
1460cat >config.log <<_ACEOF
1461This file contains any messages produced by compilers while
1462running configure, to aid debugging if configure makes a mistake.
1463
1464It was created by OpenSSH $as_me Portable, which was
1465generated by GNU Autoconf 2.61. Invocation command line was
1466
1467 $ $0 $@
1468
1469_ACEOF
1470exec 5>>config.log
1471{
1472cat <<_ASUNAME
1473## --------- ##
1474## Platform. ##
1475## --------- ##
1476
1477hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1478uname -m = `(uname -m) 2>/dev/null || echo unknown`
1479uname -r = `(uname -r) 2>/dev/null || echo unknown`
1480uname -s = `(uname -s) 2>/dev/null || echo unknown`
1481uname -v = `(uname -v) 2>/dev/null || echo unknown`
1482
1483/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1484/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1485
1486/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1487/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1488/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1489/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1490/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1491/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1492/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1493
1494_ASUNAME
1495
1496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1497for as_dir in $PATH
1498do
1499 IFS=$as_save_IFS
1500 test -z "$as_dir" && as_dir=.
1501 echo "PATH: $as_dir"
1502done
1503IFS=$as_save_IFS
1504
1505} >&5
1506
1507cat >&5 <<_ACEOF
1508
1509
1510## ----------- ##
1511## Core tests. ##
1512## ----------- ##
1513
1514_ACEOF
1515
1516
1517# Keep a trace of the command line.
1518# Strip out --no-create and --no-recursion so they do not pile up.
1519# Strip out --silent because we don't want to record it for future runs.
1520# Also quote any args containing shell meta-characters.
1521# Make two passes to allow for proper duplicate-argument suppression.
1522ac_configure_args=
1523ac_configure_args0=
1524ac_configure_args1=
1525ac_must_keep_next=false
1526for ac_pass in 1 2
1527do
1528 for ac_arg
1529 do
1530 case $ac_arg in
1531 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1532 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1533 | -silent | --silent | --silen | --sile | --sil)
1534 continue ;;
1535 *\'*)
1536 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1537 esac
1538 case $ac_pass in
1539 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1540 2)
1541 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1542 if test $ac_must_keep_next = true; then
1543 ac_must_keep_next=false # Got value, back to normal.
1544 else
1545 case $ac_arg in
1546 *=* | --config-cache | -C | -disable-* | --disable-* \
1547 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1548 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1549 | -with-* | --with-* | -without-* | --without-* | --x)
1550 case "$ac_configure_args0 " in
1551 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1552 esac
1553 ;;
1554 -* ) ac_must_keep_next=true ;;
1555 esac
1556 fi
1557 ac_configure_args="$ac_configure_args '$ac_arg'"
1558 ;;
1559 esac
1560 done
1561done
1562$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1563$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1564
1565# When interrupted or exit'd, cleanup temporary files, and complete
1566# config.log. We remove comments because anyway the quotes in there
1567# would cause problems or look ugly.
1568# WARNING: Use '\'' to represent an apostrophe within the trap.
1569# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1570trap 'exit_status=$?
1571 # Save into config.log some information that might help in debugging.
1572 {
1573 echo
1574
1575 cat <<\_ASBOX
1576## ---------------- ##
1577## Cache variables. ##
1578## ---------------- ##
1579_ASBOX
1580 echo
1581 # The following way of writing the cache mishandles newlines in values,
1582(
1583 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1584 eval ac_val=\$$ac_var
1585 case $ac_val in #(
1586 *${as_nl}*)
1587 case $ac_var in #(
1588 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1589echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1590 esac
1591 case $ac_var in #(
1592 _ | IFS | as_nl) ;; #(
1593 *) $as_unset $ac_var ;;
1594 esac ;;
1595 esac
1596 done
1597 (set) 2>&1 |
1598 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1599 *${as_nl}ac_space=\ *)
1600 sed -n \
1601 "s/'\''/'\''\\\\'\'''\''/g;
1602 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1603 ;; #(
1604 *)
1605 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1606 ;;
1607 esac |
1608 sort
1609)
1610 echo
1611
1612 cat <<\_ASBOX
1613## ----------------- ##
1614## Output variables. ##
1615## ----------------- ##
1616_ASBOX
1617 echo
1618 for ac_var in $ac_subst_vars
1619 do
1620 eval ac_val=\$$ac_var
1621 case $ac_val in
1622 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1623 esac
1624 echo "$ac_var='\''$ac_val'\''"
1625 done | sort
1626 echo
1627
1628 if test -n "$ac_subst_files"; then
1629 cat <<\_ASBOX
1630## ------------------- ##
1631## File substitutions. ##
1632## ------------------- ##
1633_ASBOX
1634 echo
1635 for ac_var in $ac_subst_files
1636 do
1637 eval ac_val=\$$ac_var
1638 case $ac_val in
1639 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1640 esac
1641 echo "$ac_var='\''$ac_val'\''"
1642 done | sort
1643 echo
1644 fi
1645
1646 if test -s confdefs.h; then
1647 cat <<\_ASBOX
1648## ----------- ##
1649## confdefs.h. ##
1650## ----------- ##
1651_ASBOX
1652 echo
1653 cat confdefs.h
1654 echo
1655 fi
1656 test "$ac_signal" != 0 &&
1657 echo "$as_me: caught signal $ac_signal"
1658 echo "$as_me: exit $exit_status"
1659 } >&5
1660 rm -f core *.core core.conftest.* &&
1661 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1662 exit $exit_status
1663' 0
1664for ac_signal in 1 2 13 15; do
1665 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1666done
1667ac_signal=0
1668
1669# confdefs.h avoids OS command line length limits that DEFS can exceed.
1670rm -f -r conftest* confdefs.h
1671
1672# Predefined preprocessor variables.
1673
1674cat >>confdefs.h <<_ACEOF
1675#define PACKAGE_NAME "$PACKAGE_NAME"
1676_ACEOF
1677
1678
1679cat >>confdefs.h <<_ACEOF
1680#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1681_ACEOF
1682
1683
1684cat >>confdefs.h <<_ACEOF
1685#define PACKAGE_VERSION "$PACKAGE_VERSION"
1686_ACEOF
1687
1688
1689cat >>confdefs.h <<_ACEOF
1690#define PACKAGE_STRING "$PACKAGE_STRING"
1691_ACEOF
1692
1693
1694cat >>confdefs.h <<_ACEOF
1695#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1696_ACEOF
1697
1698
1699# Let the site file select an alternate cache file if it wants to.
1700# Prefer explicitly selected file to automatically selected ones.
1701if test -n "$CONFIG_SITE"; then
1702 set x "$CONFIG_SITE"
1703elif test "x$prefix" != xNONE; then
1704 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1705else
1706 set x "$ac_default_prefix/share/config.site" \
1707 "$ac_default_prefix/etc/config.site"
1708fi
1709shift
1710for ac_site_file
1711do
1712 if test -r "$ac_site_file"; then
1713 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1714echo "$as_me: loading site script $ac_site_file" >&6;}
1715 sed 's/^/| /' "$ac_site_file" >&5
1716 . "$ac_site_file"
1717 fi
1718done
1719
1720if test -r "$cache_file"; then
1721 # Some versions of bash will fail to source /dev/null (special
1722 # files actually), so we avoid doing that.
1723 if test -f "$cache_file"; then
1724 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1725echo "$as_me: loading cache $cache_file" >&6;}
1726 case $cache_file in
1727 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1728 *) . "./$cache_file";;
1729 esac
1730 fi
1731else
1732 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1733echo "$as_me: creating cache $cache_file" >&6;}
1734 >$cache_file
1735fi
1736
1737# Check that the precious variables saved in the cache have kept the same
1738# value.
1739ac_cache_corrupted=false
1740for ac_var in $ac_precious_vars; do
1741 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1742 eval ac_new_set=\$ac_env_${ac_var}_set
1743 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1744 eval ac_new_val=\$ac_env_${ac_var}_value
1745 case $ac_old_set,$ac_new_set in
1746 set,)
1747 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1748echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1749 ac_cache_corrupted=: ;;
1750 ,set)
1751 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1752echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1753 ac_cache_corrupted=: ;;
1754 ,);;
1755 *)
1756 if test "x$ac_old_val" != "x$ac_new_val"; then
1757 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1758echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1759 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1760echo "$as_me: former value: $ac_old_val" >&2;}
1761 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1762echo "$as_me: current value: $ac_new_val" >&2;}
1763 ac_cache_corrupted=:
1764 fi;;
1765 esac
1766 # Pass precious variables to config.status.
1767 if test "$ac_new_set" = set; then
1768 case $ac_new_val in
1769 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1770 *) ac_arg=$ac_var=$ac_new_val ;;
1771 esac
1772 case " $ac_configure_args " in
1773 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1774 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1775 esac
1776 fi
1777done
1778if $ac_cache_corrupted; then
1779 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1780echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1781 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1782echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1783 { (exit 1); exit 1; }; }
1784fi
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810ac_ext=c
1811ac_cpp='$CPP $CPPFLAGS'
1812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1814ac_compiler_gnu=$ac_cv_c_compiler_gnu
1815
1816
1817
1818
1819
1820# local macros
1821
1822
1823ac_config_headers="$ac_config_headers config.h"
1824
1825ac_ext=c
1826ac_cpp='$CPP $CPPFLAGS'
1827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1829ac_compiler_gnu=$ac_cv_c_compiler_gnu
1830if test -n "$ac_tool_prefix"; then
1831 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1832set dummy ${ac_tool_prefix}gcc; ac_word=$2
1833{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1835if test "${ac_cv_prog_CC+set}" = set; then
1836 echo $ECHO_N "(cached) $ECHO_C" >&6
1837else
1838 if test -n "$CC"; then
1839 ac_cv_prog_CC="$CC" # Let the user override the test.
1840else
1841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842for as_dir in $PATH
1843do
1844 IFS=$as_save_IFS
1845 test -z "$as_dir" && as_dir=.
1846 for ac_exec_ext in '' $ac_executable_extensions; do
1847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1848 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1850 break 2
1851 fi
1852done
1853done
1854IFS=$as_save_IFS
1855
1856fi
1857fi
1858CC=$ac_cv_prog_CC
1859if test -n "$CC"; then
1860 { echo "$as_me:$LINENO: result: $CC" >&5
1861echo "${ECHO_T}$CC" >&6; }
1862else
1863 { echo "$as_me:$LINENO: result: no" >&5
1864echo "${ECHO_T}no" >&6; }
1865fi
1866
1867
1868fi
1869if test -z "$ac_cv_prog_CC"; then
1870 ac_ct_CC=$CC
1871 # Extract the first word of "gcc", so it can be a program name with args.
1872set dummy gcc; ac_word=$2
1873{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1875if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1876 echo $ECHO_N "(cached) $ECHO_C" >&6
1877else
1878 if test -n "$ac_ct_CC"; then
1879 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1880else
1881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882for as_dir in $PATH
1883do
1884 IFS=$as_save_IFS
1885 test -z "$as_dir" && as_dir=.
1886 for ac_exec_ext in '' $ac_executable_extensions; do
1887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1888 ac_cv_prog_ac_ct_CC="gcc"
1889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890 break 2
1891 fi
1892done
1893done
1894IFS=$as_save_IFS
1895
1896fi
1897fi
1898ac_ct_CC=$ac_cv_prog_ac_ct_CC
1899if test -n "$ac_ct_CC"; then
1900 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1901echo "${ECHO_T}$ac_ct_CC" >&6; }
1902else
1903 { echo "$as_me:$LINENO: result: no" >&5
1904echo "${ECHO_T}no" >&6; }
1905fi
1906
1907 if test "x$ac_ct_CC" = x; then
1908 CC=""
1909 else
1910 case $cross_compiling:$ac_tool_warned in
1911yes:)
1912{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1913whose name does not start with the host triplet. If you think this
1914configuration is useful to you, please write to autoconf@gnu.org." >&5
1915echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1916whose name does not start with the host triplet. If you think this
1917configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1918ac_tool_warned=yes ;;
1919esac
1920 CC=$ac_ct_CC
1921 fi
1922else
1923 CC="$ac_cv_prog_CC"
1924fi
1925
1926if test -z "$CC"; then
1927 if test -n "$ac_tool_prefix"; then
1928 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1929set dummy ${ac_tool_prefix}cc; ac_word=$2
1930{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1932if test "${ac_cv_prog_CC+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1934else
1935 if test -n "$CC"; then
1936 ac_cv_prog_CC="$CC" # Let the user override the test.
1937else
1938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939for as_dir in $PATH
1940do
1941 IFS=$as_save_IFS
1942 test -z "$as_dir" && as_dir=.
1943 for ac_exec_ext in '' $ac_executable_extensions; do
1944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1945 ac_cv_prog_CC="${ac_tool_prefix}cc"
1946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1947 break 2
1948 fi
1949done
1950done
1951IFS=$as_save_IFS
1952
1953fi
1954fi
1955CC=$ac_cv_prog_CC
1956if test -n "$CC"; then
1957 { echo "$as_me:$LINENO: result: $CC" >&5
1958echo "${ECHO_T}$CC" >&6; }
1959else
1960 { echo "$as_me:$LINENO: result: no" >&5
1961echo "${ECHO_T}no" >&6; }
1962fi
1963
1964
1965 fi
1966fi
1967if test -z "$CC"; then
1968 # Extract the first word of "cc", so it can be a program name with args.
1969set dummy cc; ac_word=$2
1970{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1972if test "${ac_cv_prog_CC+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1974else
1975 if test -n "$CC"; then
1976 ac_cv_prog_CC="$CC" # Let the user override the test.
1977else
1978 ac_prog_rejected=no
1979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980for as_dir in $PATH
1981do
1982 IFS=$as_save_IFS
1983 test -z "$as_dir" && as_dir=.
1984 for ac_exec_ext in '' $ac_executable_extensions; do
1985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1986 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1987 ac_prog_rejected=yes
1988 continue
1989 fi
1990 ac_cv_prog_CC="cc"
1991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1992 break 2
1993 fi
1994done
1995done
1996IFS=$as_save_IFS
1997
1998if test $ac_prog_rejected = yes; then
1999 # We found a bogon in the path, so make sure we never use it.
2000 set dummy $ac_cv_prog_CC
2001 shift
2002 if test $# != 0; then
2003 # We chose a different compiler from the bogus one.
2004 # However, it has the same basename, so the bogon will be chosen
2005 # first if we set CC to just the basename; use the full file name.
2006 shift
2007 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2008 fi
2009fi
2010fi
2011fi
2012CC=$ac_cv_prog_CC
2013if test -n "$CC"; then
2014 { echo "$as_me:$LINENO: result: $CC" >&5
2015echo "${ECHO_T}$CC" >&6; }
2016else
2017 { echo "$as_me:$LINENO: result: no" >&5
2018echo "${ECHO_T}no" >&6; }
2019fi
2020
2021
2022fi
2023if test -z "$CC"; then
2024 if test -n "$ac_tool_prefix"; then
2025 for ac_prog in cl.exe
2026 do
2027 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2028set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2029{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2031if test "${ac_cv_prog_CC+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2033else
2034 if test -n "$CC"; then
2035 ac_cv_prog_CC="$CC" # Let the user override the test.
2036else
2037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038for as_dir in $PATH
2039do
2040 IFS=$as_save_IFS
2041 test -z "$as_dir" && as_dir=.
2042 for ac_exec_ext in '' $ac_executable_extensions; do
2043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2044 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046 break 2
2047 fi
2048done
2049done
2050IFS=$as_save_IFS
2051
2052fi
2053fi
2054CC=$ac_cv_prog_CC
2055if test -n "$CC"; then
2056 { echo "$as_me:$LINENO: result: $CC" >&5
2057echo "${ECHO_T}$CC" >&6; }
2058else
2059 { echo "$as_me:$LINENO: result: no" >&5
2060echo "${ECHO_T}no" >&6; }
2061fi
2062
2063
2064 test -n "$CC" && break
2065 done
2066fi
2067if test -z "$CC"; then
2068 ac_ct_CC=$CC
2069 for ac_prog in cl.exe
2070do
2071 # Extract the first word of "$ac_prog", so it can be a program name with args.
2072set dummy $ac_prog; ac_word=$2
2073{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2075if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2077else
2078 if test -n "$ac_ct_CC"; then
2079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2080else
2081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082for as_dir in $PATH
2083do
2084 IFS=$as_save_IFS
2085 test -z "$as_dir" && as_dir=.
2086 for ac_exec_ext in '' $ac_executable_extensions; do
2087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2088 ac_cv_prog_ac_ct_CC="$ac_prog"
2089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2090 break 2
2091 fi
2092done
2093done
2094IFS=$as_save_IFS
2095
2096fi
2097fi
2098ac_ct_CC=$ac_cv_prog_ac_ct_CC
2099if test -n "$ac_ct_CC"; then
2100 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2101echo "${ECHO_T}$ac_ct_CC" >&6; }
2102else
2103 { echo "$as_me:$LINENO: result: no" >&5
2104echo "${ECHO_T}no" >&6; }
2105fi
2106
2107
2108 test -n "$ac_ct_CC" && break
2109done
2110
2111 if test "x$ac_ct_CC" = x; then
2112 CC=""
2113 else
2114 case $cross_compiling:$ac_tool_warned in
2115yes:)
2116{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2117whose name does not start with the host triplet. If you think this
2118configuration is useful to you, please write to autoconf@gnu.org." >&5
2119echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2120whose name does not start with the host triplet. If you think this
2121configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2122ac_tool_warned=yes ;;
2123esac
2124 CC=$ac_ct_CC
2125 fi
2126fi
2127
2128fi
2129
2130
2131test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2132See \`config.log' for more details." >&5
2133echo "$as_me: error: no acceptable C compiler found in \$PATH
2134See \`config.log' for more details." >&2;}
2135 { (exit 1); exit 1; }; }
2136
2137# Provide some information about the compiler.
2138echo "$as_me:$LINENO: checking for C compiler version" >&5
2139ac_compiler=`set X $ac_compile; echo $2`
2140{ (ac_try="$ac_compiler --version >&5"
2141case "(($ac_try" in
2142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2143 *) ac_try_echo=$ac_try;;
2144esac
2145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2146 (eval "$ac_compiler --version >&5") 2>&5
2147 ac_status=$?
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }
2150{ (ac_try="$ac_compiler -v >&5"
2151case "(($ac_try" in
2152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2153 *) ac_try_echo=$ac_try;;
2154esac
2155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2156 (eval "$ac_compiler -v >&5") 2>&5
2157 ac_status=$?
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }
2160{ (ac_try="$ac_compiler -V >&5"
2161case "(($ac_try" in
2162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163 *) ac_try_echo=$ac_try;;
2164esac
2165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2166 (eval "$ac_compiler -V >&5") 2>&5
2167 ac_status=$?
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }
2170
2171cat >conftest.$ac_ext <<_ACEOF
2172/* confdefs.h. */
2173_ACEOF
2174cat confdefs.h >>conftest.$ac_ext
2175cat >>conftest.$ac_ext <<_ACEOF
2176/* end confdefs.h. */
2177
2178int
2179main ()
2180{
2181
2182 ;
2183 return 0;
2184}
2185_ACEOF
2186ac_clean_files_save=$ac_clean_files
2187ac_clean_files="$ac_clean_files a.out a.exe b.out"
2188# Try to create an executable without -o first, disregard a.out.
2189# It will help us diagnose broken compilers, and finding out an intuition
2190# of exeext.
2191{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2192echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2193ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2194#
2195# List of possible output files, starting from the most likely.
2196# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2197# only as a last resort. b.out is created by i960 compilers.
2198ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2199#
2200# The IRIX 6 linker writes into existing files which may not be
2201# executable, retaining their permissions. Remove them first so a
2202# subsequent execution test works.
2203ac_rmfiles=
2204for ac_file in $ac_files
2205do
2206 case $ac_file in
2207 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2208 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2209 esac
2210done
2211rm -f $ac_rmfiles
2212
2213if { (ac_try="$ac_link_default"
2214case "(($ac_try" in
2215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2216 *) ac_try_echo=$ac_try;;
2217esac
2218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2219 (eval "$ac_link_default") 2>&5
2220 ac_status=$?
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }; then
2223 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2224# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2225# in a Makefile. We should not override ac_cv_exeext if it was cached,
2226# so that the user can short-circuit this test for compilers unknown to
2227# Autoconf.
2228for ac_file in $ac_files ''
2229do
2230 test -f "$ac_file" || continue
2231 case $ac_file in
2232 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2233 ;;
2234 [ab].out )
2235 # We found the default executable, but exeext='' is most
2236 # certainly right.
2237 break;;
2238 *.* )
2239 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2240 then :; else
2241 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2242 fi
2243 # We set ac_cv_exeext here because the later test for it is not
2244 # safe: cross compilers may not add the suffix if given an `-o'
2245 # argument, so we may need to know it at that point already.
2246 # Even if this section looks crufty: it has the advantage of
2247 # actually working.
2248 break;;
2249 * )
2250 break;;
2251 esac
2252done
2253test "$ac_cv_exeext" = no && ac_cv_exeext=
2254
2255else
2256 ac_file=''
2257fi
2258
2259{ echo "$as_me:$LINENO: result: $ac_file" >&5
2260echo "${ECHO_T}$ac_file" >&6; }
2261if test -z "$ac_file"; then
2262 echo "$as_me: failed program was:" >&5
2263sed 's/^/| /' conftest.$ac_ext >&5
2264
2265{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2266See \`config.log' for more details." >&5
2267echo "$as_me: error: C compiler cannot create executables
2268See \`config.log' for more details." >&2;}
2269 { (exit 77); exit 77; }; }
2270fi
2271
2272ac_exeext=$ac_cv_exeext
2273
2274# Check that the compiler produces executables we can run. If not, either
2275# the compiler is broken, or we cross compile.
2276{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2277echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2278# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2279# If not cross compiling, check that we can run a simple program.
2280if test "$cross_compiling" != yes; then
2281 if { ac_try='./$ac_file'
2282 { (case "(($ac_try" in
2283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2284 *) ac_try_echo=$ac_try;;
2285esac
2286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2287 (eval "$ac_try") 2>&5
2288 ac_status=$?
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; }; then
2291 cross_compiling=no
2292 else
2293 if test "$cross_compiling" = maybe; then
2294 cross_compiling=yes
2295 else
2296 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2297If you meant to cross compile, use \`--host'.
2298See \`config.log' for more details." >&5
2299echo "$as_me: error: cannot run C compiled programs.
2300If you meant to cross compile, use \`--host'.
2301See \`config.log' for more details." >&2;}
2302 { (exit 1); exit 1; }; }
2303 fi
2304 fi
2305fi
2306{ echo "$as_me:$LINENO: result: yes" >&5
2307echo "${ECHO_T}yes" >&6; }
2308
2309rm -f a.out a.exe conftest$ac_cv_exeext b.out
2310ac_clean_files=$ac_clean_files_save
2311# Check that the compiler produces executables we can run. If not, either
2312# the compiler is broken, or we cross compile.
2313{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2314echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2315{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2316echo "${ECHO_T}$cross_compiling" >&6; }
2317
2318{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2319echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2320if { (ac_try="$ac_link"
2321case "(($ac_try" in
2322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323 *) ac_try_echo=$ac_try;;
2324esac
2325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2326 (eval "$ac_link") 2>&5
2327 ac_status=$?
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; then
2330 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2331# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2332# work properly (i.e., refer to `conftest.exe'), while it won't with
2333# `rm'.
2334for ac_file in conftest.exe conftest conftest.*; do
2335 test -f "$ac_file" || continue
2336 case $ac_file in
2337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2338 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2339 break;;
2340 * ) break;;
2341 esac
2342done
2343else
2344 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2345See \`config.log' for more details." >&5
2346echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2347See \`config.log' for more details." >&2;}
2348 { (exit 1); exit 1; }; }
2349fi
2350
2351rm -f conftest$ac_cv_exeext
2352{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2353echo "${ECHO_T}$ac_cv_exeext" >&6; }
2354
2355rm -f conftest.$ac_ext
2356EXEEXT=$ac_cv_exeext
2357ac_exeext=$EXEEXT
2358{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2359echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2360if test "${ac_cv_objext+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2362else
2363 cat >conftest.$ac_ext <<_ACEOF
2364/* confdefs.h. */
2365_ACEOF
2366cat confdefs.h >>conftest.$ac_ext
2367cat >>conftest.$ac_ext <<_ACEOF
2368/* end confdefs.h. */
2369
2370int
2371main ()
2372{
2373
2374 ;
2375 return 0;
2376}
2377_ACEOF
2378rm -f conftest.o conftest.obj
2379if { (ac_try="$ac_compile"
2380case "(($ac_try" in
2381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2382 *) ac_try_echo=$ac_try;;
2383esac
2384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2385 (eval "$ac_compile") 2>&5
2386 ac_status=$?
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }; then
2389 for ac_file in conftest.o conftest.obj conftest.*; do
2390 test -f "$ac_file" || continue;
2391 case $ac_file in
2392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2393 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2394 break;;
2395 esac
2396done
2397else
2398 echo "$as_me: failed program was:" >&5
2399sed 's/^/| /' conftest.$ac_ext >&5
2400
2401{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2402See \`config.log' for more details." >&5
2403echo "$as_me: error: cannot compute suffix of object files: cannot compile
2404See \`config.log' for more details." >&2;}
2405 { (exit 1); exit 1; }; }
2406fi
2407
2408rm -f conftest.$ac_cv_objext conftest.$ac_ext
2409fi
2410{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2411echo "${ECHO_T}$ac_cv_objext" >&6; }
2412OBJEXT=$ac_cv_objext
2413ac_objext=$OBJEXT
2414{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2415echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2416if test "${ac_cv_c_compiler_gnu+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2418else
2419 cat >conftest.$ac_ext <<_ACEOF
2420/* confdefs.h. */
2421_ACEOF
2422cat confdefs.h >>conftest.$ac_ext
2423cat >>conftest.$ac_ext <<_ACEOF
2424/* end confdefs.h. */
2425
2426int
2427main ()
2428{
2429#ifndef __GNUC__
2430 choke me
2431#endif
2432
2433 ;
2434 return 0;
2435}
2436_ACEOF
2437rm -f conftest.$ac_objext
2438if { (ac_try="$ac_compile"
2439case "(($ac_try" in
2440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2441 *) ac_try_echo=$ac_try;;
2442esac
2443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2444 (eval "$ac_compile") 2>conftest.er1
2445 ac_status=$?
2446 grep -v '^ *+' conftest.er1 >conftest.err
2447 rm -f conftest.er1
2448 cat conftest.err >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); } && {
2451 test -z "$ac_c_werror_flag" ||
2452 test ! -s conftest.err
2453 } && test -s conftest.$ac_objext; then
2454 ac_compiler_gnu=yes
2455else
2456 echo "$as_me: failed program was:" >&5
2457sed 's/^/| /' conftest.$ac_ext >&5
2458
2459 ac_compiler_gnu=no
2460fi
2461
2462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2463ac_cv_c_compiler_gnu=$ac_compiler_gnu
2464
2465fi
2466{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2467echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2468GCC=`test $ac_compiler_gnu = yes && echo yes`
2469ac_test_CFLAGS=${CFLAGS+set}
2470ac_save_CFLAGS=$CFLAGS
2471{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2472echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2473if test "${ac_cv_prog_cc_g+set}" = set; then
2474 echo $ECHO_N "(cached) $ECHO_C" >&6
2475else
2476 ac_save_c_werror_flag=$ac_c_werror_flag
2477 ac_c_werror_flag=yes
2478 ac_cv_prog_cc_g=no
2479 CFLAGS="-g"
2480 cat >conftest.$ac_ext <<_ACEOF
2481/* confdefs.h. */
2482_ACEOF
2483cat confdefs.h >>conftest.$ac_ext
2484cat >>conftest.$ac_ext <<_ACEOF
2485/* end confdefs.h. */
2486
2487int
2488main ()
2489{
2490
2491 ;
2492 return 0;
2493}
2494_ACEOF
2495rm -f conftest.$ac_objext
2496if { (ac_try="$ac_compile"
2497case "(($ac_try" in
2498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499 *) ac_try_echo=$ac_try;;
2500esac
2501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2502 (eval "$ac_compile") 2>conftest.er1
2503 ac_status=$?
2504 grep -v '^ *+' conftest.er1 >conftest.err
2505 rm -f conftest.er1
2506 cat conftest.err >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } && {
2509 test -z "$ac_c_werror_flag" ||
2510 test ! -s conftest.err
2511 } && test -s conftest.$ac_objext; then
2512 ac_cv_prog_cc_g=yes
2513else
2514 echo "$as_me: failed program was:" >&5
2515sed 's/^/| /' conftest.$ac_ext >&5
2516
2517 CFLAGS=""
2518 cat >conftest.$ac_ext <<_ACEOF
2519/* confdefs.h. */
2520_ACEOF
2521cat confdefs.h >>conftest.$ac_ext
2522cat >>conftest.$ac_ext <<_ACEOF
2523/* end confdefs.h. */
2524
2525int
2526main ()
2527{
2528
2529 ;
2530 return 0;
2531}
2532_ACEOF
2533rm -f conftest.$ac_objext
2534if { (ac_try="$ac_compile"
2535case "(($ac_try" in
2536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2537 *) ac_try_echo=$ac_try;;
2538esac
2539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2540 (eval "$ac_compile") 2>conftest.er1
2541 ac_status=$?
2542 grep -v '^ *+' conftest.er1 >conftest.err
2543 rm -f conftest.er1
2544 cat conftest.err >&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); } && {
2547 test -z "$ac_c_werror_flag" ||
2548 test ! -s conftest.err
2549 } && test -s conftest.$ac_objext; then
2550 :
2551else
2552 echo "$as_me: failed program was:" >&5
2553sed 's/^/| /' conftest.$ac_ext >&5
2554
2555 ac_c_werror_flag=$ac_save_c_werror_flag
2556 CFLAGS="-g"
2557 cat >conftest.$ac_ext <<_ACEOF
2558/* confdefs.h. */
2559_ACEOF
2560cat confdefs.h >>conftest.$ac_ext
2561cat >>conftest.$ac_ext <<_ACEOF
2562/* end confdefs.h. */
2563
2564int
2565main ()
2566{
2567
2568 ;
2569 return 0;
2570}
2571_ACEOF
2572rm -f conftest.$ac_objext
2573if { (ac_try="$ac_compile"
2574case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2577esac
2578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579 (eval "$ac_compile") 2>conftest.er1
2580 ac_status=$?
2581 grep -v '^ *+' conftest.er1 >conftest.err
2582 rm -f conftest.er1
2583 cat conftest.err >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); } && {
2586 test -z "$ac_c_werror_flag" ||
2587 test ! -s conftest.err
2588 } && test -s conftest.$ac_objext; then
2589 ac_cv_prog_cc_g=yes
2590else
2591 echo "$as_me: failed program was:" >&5
2592sed 's/^/| /' conftest.$ac_ext >&5
2593
2594
2595fi
2596
2597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598fi
2599
2600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601fi
2602
2603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2604 ac_c_werror_flag=$ac_save_c_werror_flag
2605fi
2606{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2607echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2608if test "$ac_test_CFLAGS" = set; then
2609 CFLAGS=$ac_save_CFLAGS
2610elif test $ac_cv_prog_cc_g = yes; then
2611 if test "$GCC" = yes; then
2612 CFLAGS="-g -O2"
2613 else
2614 CFLAGS="-g"
2615 fi
2616else
2617 if test "$GCC" = yes; then
2618 CFLAGS="-O2"
2619 else
2620 CFLAGS=
2621 fi
2622fi
2623{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2624echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2625if test "${ac_cv_prog_cc_c89+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2627else
2628 ac_cv_prog_cc_c89=no
2629ac_save_CC=$CC
2630cat >conftest.$ac_ext <<_ACEOF
2631/* confdefs.h. */
2632_ACEOF
2633cat confdefs.h >>conftest.$ac_ext
2634cat >>conftest.$ac_ext <<_ACEOF
2635/* end confdefs.h. */
2636#include <stdarg.h>
2637#include <stdio.h>
2638#include <sys/types.h>
2639#include <sys/stat.h>
2640/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2641struct buf { int x; };
2642FILE * (*rcsopen) (struct buf *, struct stat *, int);
2643static char *e (p, i)
2644 char **p;
2645 int i;
2646{
2647 return p[i];
2648}
2649static char *f (char * (*g) (char **, int), char **p, ...)
2650{
2651 char *s;
2652 va_list v;
2653 va_start (v,p);
2654 s = g (p, va_arg (v,int));
2655 va_end (v);
2656 return s;
2657}
2658
2659/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2660 function prototypes and stuff, but not '\xHH' hex character constants.
2661 These don't provoke an error unfortunately, instead are silently treated
2662 as 'x'. The following induces an error, until -std is added to get
2663 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2664 array size at least. It's necessary to write '\x00'==0 to get something
2665 that's true only with -std. */
2666int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2667
2668/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2669 inside strings and character constants. */
2670#define FOO(x) 'x'
2671int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2672
2673int test (int i, double x);
2674struct s1 {int (*f) (int a);};
2675struct s2 {int (*f) (double a);};
2676int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2677int argc;
2678char **argv;
2679int
2680main ()
2681{
2682return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2683 ;
2684 return 0;
2685}
2686_ACEOF
2687for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2688 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2689do
2690 CC="$ac_save_CC $ac_arg"
2691 rm -f conftest.$ac_objext
2692if { (ac_try="$ac_compile"
2693case "(($ac_try" in
2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695 *) ac_try_echo=$ac_try;;
2696esac
2697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2698 (eval "$ac_compile") 2>conftest.er1
2699 ac_status=$?
2700 grep -v '^ *+' conftest.er1 >conftest.err
2701 rm -f conftest.er1
2702 cat conftest.err >&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); } && {
2705 test -z "$ac_c_werror_flag" ||
2706 test ! -s conftest.err
2707 } && test -s conftest.$ac_objext; then
2708 ac_cv_prog_cc_c89=$ac_arg
2709else
2710 echo "$as_me: failed program was:" >&5
2711sed 's/^/| /' conftest.$ac_ext >&5
2712
2713
2714fi
2715
2716rm -f core conftest.err conftest.$ac_objext
2717 test "x$ac_cv_prog_cc_c89" != "xno" && break
2718done
2719rm -f conftest.$ac_ext
2720CC=$ac_save_CC
2721
2722fi
2723# AC_CACHE_VAL
2724case "x$ac_cv_prog_cc_c89" in
2725 x)
2726 { echo "$as_me:$LINENO: result: none needed" >&5
2727echo "${ECHO_T}none needed" >&6; } ;;
2728 xno)
2729 { echo "$as_me:$LINENO: result: unsupported" >&5
2730echo "${ECHO_T}unsupported" >&6; } ;;
2731 *)
2732 CC="$CC $ac_cv_prog_cc_c89"
2733 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2734echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2735esac
2736
2737
2738ac_ext=c
2739ac_cpp='$CPP $CPPFLAGS'
2740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2742ac_compiler_gnu=$ac_cv_c_compiler_gnu
2743
2744ac_aux_dir=
2745for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2746 if test -f "$ac_dir/install-sh"; then
2747 ac_aux_dir=$ac_dir
2748 ac_install_sh="$ac_aux_dir/install-sh -c"
2749 break
2750 elif test -f "$ac_dir/install.sh"; then
2751 ac_aux_dir=$ac_dir
2752 ac_install_sh="$ac_aux_dir/install.sh -c"
2753 break
2754 elif test -f "$ac_dir/shtool"; then
2755 ac_aux_dir=$ac_dir
2756 ac_install_sh="$ac_aux_dir/shtool install -c"
2757 break
2758 fi
2759done
2760if test -z "$ac_aux_dir"; then
2761 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2762echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2763 { (exit 1); exit 1; }; }
2764fi
2765
2766# These three variables are undocumented and unsupported,
2767# and are intended to be withdrawn in a future Autoconf release.
2768# They can cause serious problems if a builder's source tree is in a directory
2769# whose full name contains unusual characters.
2770ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2771ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2772ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2773
2774
2775# Make sure we can run config.sub.
2776$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2777 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2778echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2779 { (exit 1); exit 1; }; }
2780
2781{ echo "$as_me:$LINENO: checking build system type" >&5
2782echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2783if test "${ac_cv_build+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2785else
2786 ac_build_alias=$build_alias
2787test "x$ac_build_alias" = x &&
2788 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2789test "x$ac_build_alias" = x &&
2790 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2791echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2792 { (exit 1); exit 1; }; }
2793ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2794 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2795echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2796 { (exit 1); exit 1; }; }
2797
2798fi
2799{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2800echo "${ECHO_T}$ac_cv_build" >&6; }
2801case $ac_cv_build in
2802*-*-*) ;;
2803*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2804echo "$as_me: error: invalid value of canonical build" >&2;}
2805 { (exit 1); exit 1; }; };;
2806esac
2807build=$ac_cv_build
2808ac_save_IFS=$IFS; IFS='-'
2809set x $ac_cv_build
2810shift
2811build_cpu=$1
2812build_vendor=$2
2813shift; shift
2814# Remember, the first character of IFS is used to create $*,
2815# except with old shells:
2816build_os=$*
2817IFS=$ac_save_IFS
2818case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2819
2820
2821{ echo "$as_me:$LINENO: checking host system type" >&5
2822echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2823if test "${ac_cv_host+set}" = set; then
2824 echo $ECHO_N "(cached) $ECHO_C" >&6
2825else
2826 if test "x$host_alias" = x; then
2827 ac_cv_host=$ac_cv_build
2828else
2829 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2830 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2831echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2832 { (exit 1); exit 1; }; }
2833fi
2834
2835fi
2836{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2837echo "${ECHO_T}$ac_cv_host" >&6; }
2838case $ac_cv_host in
2839*-*-*) ;;
2840*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2841echo "$as_me: error: invalid value of canonical host" >&2;}
2842 { (exit 1); exit 1; }; };;
2843esac
2844host=$ac_cv_host
2845ac_save_IFS=$IFS; IFS='-'
2846set x $ac_cv_host
2847shift
2848host_cpu=$1
2849host_vendor=$2
2850shift; shift
2851# Remember, the first character of IFS is used to create $*,
2852# except with old shells:
2853host_os=$*
2854IFS=$ac_save_IFS
2855case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2856
2857
2858
2859ac_ext=c
2860ac_cpp='$CPP $CPPFLAGS'
2861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2863ac_compiler_gnu=$ac_cv_c_compiler_gnu
2864{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2865echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2866# On Suns, sometimes $CPP names a directory.
2867if test -n "$CPP" && test -d "$CPP"; then
2868 CPP=
2869fi
2870if test -z "$CPP"; then
2871 if test "${ac_cv_prog_CPP+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2873else
2874 # Double quotes because CPP needs to be expanded
2875 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2876 do
2877 ac_preproc_ok=false
2878for ac_c_preproc_warn_flag in '' yes
2879do
2880 # Use a header file that comes with gcc, so configuring glibc
2881 # with a fresh cross-compiler works.
2882 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2883 # <limits.h> exists even on freestanding compilers.
2884 # On the NeXT, cc -E runs the code through the compiler's parser,
2885 # not just through cpp. "Syntax error" is here to catch this case.
2886 cat >conftest.$ac_ext <<_ACEOF
2887/* confdefs.h. */
2888_ACEOF
2889cat confdefs.h >>conftest.$ac_ext
2890cat >>conftest.$ac_ext <<_ACEOF
2891/* end confdefs.h. */
2892#ifdef __STDC__
2893# include <limits.h>
2894#else
2895# include <assert.h>
2896#endif
2897 Syntax error
2898_ACEOF
2899if { (ac_try="$ac_cpp conftest.$ac_ext"
2900case "(($ac_try" in
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2903esac
2904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2906 ac_status=$?
2907 grep -v '^ *+' conftest.er1 >conftest.err
2908 rm -f conftest.er1
2909 cat conftest.err >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } >/dev/null && {
2912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2913 test ! -s conftest.err
2914 }; then
2915 :
2916else
2917 echo "$as_me: failed program was:" >&5
2918sed 's/^/| /' conftest.$ac_ext >&5
2919
2920 # Broken: fails on valid input.
2921continue
2922fi
2923
2924rm -f conftest.err conftest.$ac_ext
2925
2926 # OK, works on sane cases. Now check whether nonexistent headers
2927 # can be detected and how.
2928 cat >conftest.$ac_ext <<_ACEOF
2929/* confdefs.h. */
2930_ACEOF
2931cat confdefs.h >>conftest.$ac_ext
2932cat >>conftest.$ac_ext <<_ACEOF
2933/* end confdefs.h. */
2934#include <ac_nonexistent.h>
2935_ACEOF
2936if { (ac_try="$ac_cpp conftest.$ac_ext"
2937case "(($ac_try" in
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2940esac
2941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2943 ac_status=$?
2944 grep -v '^ *+' conftest.er1 >conftest.err
2945 rm -f conftest.er1
2946 cat conftest.err >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); } >/dev/null && {
2949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2950 test ! -s conftest.err
2951 }; then
2952 # Broken: success on invalid input.
2953continue
2954else
2955 echo "$as_me: failed program was:" >&5
2956sed 's/^/| /' conftest.$ac_ext >&5
2957
2958 # Passes both tests.
2959ac_preproc_ok=:
2960break
2961fi
2962
2963rm -f conftest.err conftest.$ac_ext
2964
2965done
2966# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2967rm -f conftest.err conftest.$ac_ext
2968if $ac_preproc_ok; then
2969 break
2970fi
2971
2972 done
2973 ac_cv_prog_CPP=$CPP
2974
2975fi
2976 CPP=$ac_cv_prog_CPP
2977else
2978 ac_cv_prog_CPP=$CPP
2979fi
2980{ echo "$as_me:$LINENO: result: $CPP" >&5
2981echo "${ECHO_T}$CPP" >&6; }
2982ac_preproc_ok=false
2983for ac_c_preproc_warn_flag in '' yes
2984do
2985 # Use a header file that comes with gcc, so configuring glibc
2986 # with a fresh cross-compiler works.
2987 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2988 # <limits.h> exists even on freestanding compilers.
2989 # On the NeXT, cc -E runs the code through the compiler's parser,
2990 # not just through cpp. "Syntax error" is here to catch this case.
2991 cat >conftest.$ac_ext <<_ACEOF
2992/* confdefs.h. */
2993_ACEOF
2994cat confdefs.h >>conftest.$ac_ext
2995cat >>conftest.$ac_ext <<_ACEOF
2996/* end confdefs.h. */
2997#ifdef __STDC__
2998# include <limits.h>
2999#else
3000# include <assert.h>
3001#endif
3002 Syntax error
3003_ACEOF
3004if { (ac_try="$ac_cpp conftest.$ac_ext"
3005case "(($ac_try" in
3006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007 *) ac_try_echo=$ac_try;;
3008esac
3009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3011 ac_status=$?
3012 grep -v '^ *+' conftest.er1 >conftest.err
3013 rm -f conftest.er1
3014 cat conftest.err >&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); } >/dev/null && {
3017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3018 test ! -s conftest.err
3019 }; then
3020 :
3021else
3022 echo "$as_me: failed program was:" >&5
3023sed 's/^/| /' conftest.$ac_ext >&5
3024
3025 # Broken: fails on valid input.
3026continue
3027fi
3028
3029rm -f conftest.err conftest.$ac_ext
3030
3031 # OK, works on sane cases. Now check whether nonexistent headers
3032 # can be detected and how.
3033 cat >conftest.$ac_ext <<_ACEOF
3034/* confdefs.h. */
3035_ACEOF
3036cat confdefs.h >>conftest.$ac_ext
3037cat >>conftest.$ac_ext <<_ACEOF
3038/* end confdefs.h. */
3039#include <ac_nonexistent.h>
3040_ACEOF
3041if { (ac_try="$ac_cpp conftest.$ac_ext"
3042case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045esac
3046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3048 ac_status=$?
3049 grep -v '^ *+' conftest.er1 >conftest.err
3050 rm -f conftest.er1
3051 cat conftest.err >&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); } >/dev/null && {
3054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3055 test ! -s conftest.err
3056 }; then
3057 # Broken: success on invalid input.
3058continue
3059else
3060 echo "$as_me: failed program was:" >&5
3061sed 's/^/| /' conftest.$ac_ext >&5
3062
3063 # Passes both tests.
3064ac_preproc_ok=:
3065break
3066fi
3067
3068rm -f conftest.err conftest.$ac_ext
3069
3070done
3071# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3072rm -f conftest.err conftest.$ac_ext
3073if $ac_preproc_ok; then
3074 :
3075else
3076 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3077See \`config.log' for more details." >&5
3078echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3079See \`config.log' for more details." >&2;}
3080 { (exit 1); exit 1; }; }
3081fi
3082
3083ac_ext=c
3084ac_cpp='$CPP $CPPFLAGS'
3085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3087ac_compiler_gnu=$ac_cv_c_compiler_gnu
3088
3089
3090{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3091echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3092if test "${ac_cv_path_GREP+set}" = set; then
3093 echo $ECHO_N "(cached) $ECHO_C" >&6
3094else
3095 # Extract the first word of "grep ggrep" to use in msg output
3096if test -z "$GREP"; then
3097set dummy grep ggrep; ac_prog_name=$2
3098if test "${ac_cv_path_GREP+set}" = set; then
3099 echo $ECHO_N "(cached) $ECHO_C" >&6
3100else
3101 ac_path_GREP_found=false
3102# Loop through the user's path and test for each of PROGNAME-LIST
3103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3105do
3106 IFS=$as_save_IFS
3107 test -z "$as_dir" && as_dir=.
3108 for ac_prog in grep ggrep; do
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3111 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3112 # Check for GNU ac_path_GREP and select it if it is found.
3113 # Check for GNU $ac_path_GREP
3114case `"$ac_path_GREP" --version 2>&1` in
3115*GNU*)
3116 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3117*)
3118 ac_count=0
3119 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3120 while :
3121 do
3122 cat "conftest.in" "conftest.in" >"conftest.tmp"
3123 mv "conftest.tmp" "conftest.in"
3124 cp "conftest.in" "conftest.nl"
3125 echo 'GREP' >> "conftest.nl"
3126 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3128 ac_count=`expr $ac_count + 1`
3129 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3130 # Best one so far, save it but keep looking for a better one
3131 ac_cv_path_GREP="$ac_path_GREP"
3132 ac_path_GREP_max=$ac_count
3133 fi
3134 # 10*(2^10) chars as input seems more than enough
3135 test $ac_count -gt 10 && break
3136 done
3137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3138esac
3139
3140
3141 $ac_path_GREP_found && break 3
3142 done
3143done
3144
3145done
3146IFS=$as_save_IFS
3147
3148
3149fi
3150
3151GREP="$ac_cv_path_GREP"
3152if test -z "$GREP"; then
3153 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3154echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3155 { (exit 1); exit 1; }; }
3156fi
3157
3158else
3159 ac_cv_path_GREP=$GREP
3160fi
3161
3162
3163fi
3164{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3165echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3166 GREP="$ac_cv_path_GREP"
3167
3168
3169{ echo "$as_me:$LINENO: checking for egrep" >&5
3170echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3171if test "${ac_cv_path_EGREP+set}" = set; then
3172 echo $ECHO_N "(cached) $ECHO_C" >&6
3173else
3174 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3175 then ac_cv_path_EGREP="$GREP -E"
3176 else
3177 # Extract the first word of "egrep" to use in msg output
3178if test -z "$EGREP"; then
3179set dummy egrep; ac_prog_name=$2
3180if test "${ac_cv_path_EGREP+set}" = set; then
3181 echo $ECHO_N "(cached) $ECHO_C" >&6
3182else
3183 ac_path_EGREP_found=false
3184# Loop through the user's path and test for each of PROGNAME-LIST
3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3187do
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
3190 for ac_prog in egrep; do
3191 for ac_exec_ext in '' $ac_executable_extensions; do
3192 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3193 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3194 # Check for GNU ac_path_EGREP and select it if it is found.
3195 # Check for GNU $ac_path_EGREP
3196case `"$ac_path_EGREP" --version 2>&1` in
3197*GNU*)
3198 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3199*)
3200 ac_count=0
3201 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3202 while :
3203 do
3204 cat "conftest.in" "conftest.in" >"conftest.tmp"
3205 mv "conftest.tmp" "conftest.in"
3206 cp "conftest.in" "conftest.nl"
3207 echo 'EGREP' >> "conftest.nl"
3208 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3209 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3210 ac_count=`expr $ac_count + 1`
3211 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3212 # Best one so far, save it but keep looking for a better one
3213 ac_cv_path_EGREP="$ac_path_EGREP"
3214 ac_path_EGREP_max=$ac_count
3215 fi
3216 # 10*(2^10) chars as input seems more than enough
3217 test $ac_count -gt 10 && break
3218 done
3219 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3220esac
3221
3222
3223 $ac_path_EGREP_found && break 3
3224 done
3225done
3226
3227done
3228IFS=$as_save_IFS
3229
3230
3231fi
3232
3233EGREP="$ac_cv_path_EGREP"
3234if test -z "$EGREP"; then
3235 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3236echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3237 { (exit 1); exit 1; }; }
3238fi
3239
3240else
3241 ac_cv_path_EGREP=$EGREP
3242fi
3243
3244
3245 fi
3246fi
3247{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3248echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3249 EGREP="$ac_cv_path_EGREP"
3250
3251
3252{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3253echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3254if test "${ac_cv_header_stdc+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3256else
3257 cat >conftest.$ac_ext <<_ACEOF
3258/* confdefs.h. */
3259_ACEOF
3260cat confdefs.h >>conftest.$ac_ext
3261cat >>conftest.$ac_ext <<_ACEOF
3262/* end confdefs.h. */
3263#include <stdlib.h>
3264#include <stdarg.h>
3265#include <string.h>
3266#include <float.h>
3267
3268int
3269main ()
3270{
3271
3272 ;
3273 return 0;
3274}
3275_ACEOF
3276rm -f conftest.$ac_objext
3277if { (ac_try="$ac_compile"
3278case "(($ac_try" in
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3281esac
3282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3283 (eval "$ac_compile") 2>conftest.er1
3284 ac_status=$?
3285 grep -v '^ *+' conftest.er1 >conftest.err
3286 rm -f conftest.er1
3287 cat conftest.err >&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } && {
3290 test -z "$ac_c_werror_flag" ||
3291 test ! -s conftest.err
3292 } && test -s conftest.$ac_objext; then
3293 ac_cv_header_stdc=yes
3294else
3295 echo "$as_me: failed program was:" >&5
3296sed 's/^/| /' conftest.$ac_ext >&5
3297
3298 ac_cv_header_stdc=no
3299fi
3300
3301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302
3303if test $ac_cv_header_stdc = yes; then
3304 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3305 cat >conftest.$ac_ext <<_ACEOF
3306/* confdefs.h. */
3307_ACEOF
3308cat confdefs.h >>conftest.$ac_ext
3309cat >>conftest.$ac_ext <<_ACEOF
3310/* end confdefs.h. */
3311#include <string.h>
3312
3313_ACEOF
3314if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3315 $EGREP "memchr" >/dev/null 2>&1; then
3316 :
3317else
3318 ac_cv_header_stdc=no
3319fi
3320rm -f conftest*
3321
3322fi
3323
3324if test $ac_cv_header_stdc = yes; then
3325 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3326 cat >conftest.$ac_ext <<_ACEOF
3327/* confdefs.h. */
3328_ACEOF
3329cat confdefs.h >>conftest.$ac_ext
3330cat >>conftest.$ac_ext <<_ACEOF
3331/* end confdefs.h. */
3332#include <stdlib.h>
3333
3334_ACEOF
3335if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3336 $EGREP "free" >/dev/null 2>&1; then
3337 :
3338else
3339 ac_cv_header_stdc=no
3340fi
3341rm -f conftest*
3342
3343fi
3344
3345if test $ac_cv_header_stdc = yes; then
3346 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3347 if test "$cross_compiling" = yes; then
3348 :
3349else
3350 cat >conftest.$ac_ext <<_ACEOF
3351/* confdefs.h. */
3352_ACEOF
3353cat confdefs.h >>conftest.$ac_ext
3354cat >>conftest.$ac_ext <<_ACEOF
3355/* end confdefs.h. */
3356#include <ctype.h>
3357#include <stdlib.h>
3358#if ((' ' & 0x0FF) == 0x020)
3359# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3360# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3361#else
3362# define ISLOWER(c) \
3363 (('a' <= (c) && (c) <= 'i') \
3364 || ('j' <= (c) && (c) <= 'r') \
3365 || ('s' <= (c) && (c) <= 'z'))
3366# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3367#endif
3368
3369#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3370int
3371main ()
3372{
3373 int i;
3374 for (i = 0; i < 256; i++)
3375 if (XOR (islower (i), ISLOWER (i))
3376 || toupper (i) != TOUPPER (i))
3377 return 2;
3378 return 0;
3379}
3380_ACEOF
3381rm -f conftest$ac_exeext
3382if { (ac_try="$ac_link"
3383case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3386esac
3387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388 (eval "$ac_link") 2>&5
3389 ac_status=$?
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3392 { (case "(($ac_try" in
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3395esac
3396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3397 (eval "$ac_try") 2>&5
3398 ac_status=$?
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); }; }; then
3401 :
3402else
3403 echo "$as_me: program exited with status $ac_status" >&5
3404echo "$as_me: failed program was:" >&5
3405sed 's/^/| /' conftest.$ac_ext >&5
3406
3407( exit $ac_status )
3408ac_cv_header_stdc=no
3409fi
3410rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3411fi
3412
3413
3414fi
3415fi
3416{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3417echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3418if test $ac_cv_header_stdc = yes; then
3419
3420cat >>confdefs.h <<\_ACEOF
3421#define STDC_HEADERS 1
3422_ACEOF
3423
3424fi
3425
3426# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3437 inttypes.h stdint.h unistd.h
3438do
3439as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3440{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3441echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3442if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3444else
3445 cat >conftest.$ac_ext <<_ACEOF
3446/* confdefs.h. */
3447_ACEOF
3448cat confdefs.h >>conftest.$ac_ext
3449cat >>conftest.$ac_ext <<_ACEOF
3450/* end confdefs.h. */
3451$ac_includes_default
3452
3453#include <$ac_header>
3454_ACEOF
3455rm -f conftest.$ac_objext
3456if { (ac_try="$ac_compile"
3457case "(($ac_try" in
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3460esac
3461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3462 (eval "$ac_compile") 2>conftest.er1
3463 ac_status=$?
3464 grep -v '^ *+' conftest.er1 >conftest.err
3465 rm -f conftest.er1
3466 cat conftest.err >&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); } && {
3469 test -z "$ac_c_werror_flag" ||
3470 test ! -s conftest.err
3471 } && test -s conftest.$ac_objext; then
3472 eval "$as_ac_Header=yes"
3473else
3474 echo "$as_me: failed program was:" >&5
3475sed 's/^/| /' conftest.$ac_ext >&5
3476
3477 eval "$as_ac_Header=no"
3478fi
3479
3480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481fi
3482ac_res=`eval echo '${'$as_ac_Header'}'`
3483 { echo "$as_me:$LINENO: result: $ac_res" >&5
3484echo "${ECHO_T}$ac_res" >&6; }
3485if test `eval echo '${'$as_ac_Header'}'` = yes; then
3486 cat >>confdefs.h <<_ACEOF
3487#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3488_ACEOF
3489
3490fi
3491
3492done
3493
3494
3495{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3496echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3497if test "${ac_cv_c_bigendian+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3499else
3500 # See if sys/param.h defines the BYTE_ORDER macro.
3501cat >conftest.$ac_ext <<_ACEOF
3502/* confdefs.h. */
3503_ACEOF
3504cat confdefs.h >>conftest.$ac_ext
3505cat >>conftest.$ac_ext <<_ACEOF
3506/* end confdefs.h. */
3507#include <sys/types.h>
3508#include <sys/param.h>
3509
3510int
3511main ()
3512{
3513#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3514 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3515 bogus endian macros
3516#endif
3517
3518 ;
3519 return 0;
3520}
3521_ACEOF
3522rm -f conftest.$ac_objext
3523if { (ac_try="$ac_compile"
3524case "(($ac_try" in
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3527esac
3528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3529 (eval "$ac_compile") 2>conftest.er1
3530 ac_status=$?
3531 grep -v '^ *+' conftest.er1 >conftest.err
3532 rm -f conftest.er1
3533 cat conftest.err >&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); } && {
3536 test -z "$ac_c_werror_flag" ||
3537 test ! -s conftest.err
3538 } && test -s conftest.$ac_objext; then
3539 # It does; now see whether it defined to BIG_ENDIAN or not.
3540cat >conftest.$ac_ext <<_ACEOF
3541/* confdefs.h. */
3542_ACEOF
3543cat confdefs.h >>conftest.$ac_ext
3544cat >>conftest.$ac_ext <<_ACEOF
3545/* end confdefs.h. */
3546#include <sys/types.h>
3547#include <sys/param.h>
3548
3549int
3550main ()
3551{
3552#if BYTE_ORDER != BIG_ENDIAN
3553 not big endian
3554#endif
3555
3556 ;
3557 return 0;
3558}
3559_ACEOF
3560rm -f conftest.$ac_objext
3561if { (ac_try="$ac_compile"
3562case "(($ac_try" in
3563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564 *) ac_try_echo=$ac_try;;
3565esac
3566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3567 (eval "$ac_compile") 2>conftest.er1
3568 ac_status=$?
3569 grep -v '^ *+' conftest.er1 >conftest.err
3570 rm -f conftest.er1
3571 cat conftest.err >&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); } && {
3574 test -z "$ac_c_werror_flag" ||
3575 test ! -s conftest.err
3576 } && test -s conftest.$ac_objext; then
3577 ac_cv_c_bigendian=yes
3578else
3579 echo "$as_me: failed program was:" >&5
3580sed 's/^/| /' conftest.$ac_ext >&5
3581
3582 ac_cv_c_bigendian=no
3583fi
3584
3585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586else
3587 echo "$as_me: failed program was:" >&5
3588sed 's/^/| /' conftest.$ac_ext >&5
3589
3590 # It does not; compile a test program.
3591if test "$cross_compiling" = yes; then
3592 # try to guess the endianness by grepping values into an object file
3593 ac_cv_c_bigendian=unknown
3594 cat >conftest.$ac_ext <<_ACEOF
3595/* confdefs.h. */
3596_ACEOF
3597cat confdefs.h >>conftest.$ac_ext
3598cat >>conftest.$ac_ext <<_ACEOF
3599/* end confdefs.h. */
3600short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3601short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3602void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3603short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3604short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3605void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3606int
3607main ()
3608{
3609 _ascii (); _ebcdic ();
3610 ;
3611 return 0;
3612}
3613_ACEOF
3614rm -f conftest.$ac_objext
3615if { (ac_try="$ac_compile"
3616case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3619esac
3620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3621 (eval "$ac_compile") 2>conftest.er1
3622 ac_status=$?
3623 grep -v '^ *+' conftest.er1 >conftest.err
3624 rm -f conftest.er1
3625 cat conftest.err >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } && {
3628 test -z "$ac_c_werror_flag" ||
3629 test ! -s conftest.err
3630 } && test -s conftest.$ac_objext; then
3631 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3632 ac_cv_c_bigendian=yes
3633fi
3634if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3635 if test "$ac_cv_c_bigendian" = unknown; then
3636 ac_cv_c_bigendian=no
3637 else
3638 # finding both strings is unlikely to happen, but who knows?
3639 ac_cv_c_bigendian=unknown
3640 fi
3641fi
3642else
3643 echo "$as_me: failed program was:" >&5
3644sed 's/^/| /' conftest.$ac_ext >&5
3645
3646
3647fi
3648
3649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650else
3651 cat >conftest.$ac_ext <<_ACEOF
3652/* confdefs.h. */
3653_ACEOF
3654cat confdefs.h >>conftest.$ac_ext
3655cat >>conftest.$ac_ext <<_ACEOF
3656/* end confdefs.h. */
3657$ac_includes_default
3658int
3659main ()
3660{
3661
3662 /* Are we little or big endian? From Harbison&Steele. */
3663 union
3664 {
3665 long int l;
3666 char c[sizeof (long int)];
3667 } u;
3668 u.l = 1;
3669 return u.c[sizeof (long int) - 1] == 1;
3670
3671 ;
3672 return 0;
3673}
3674_ACEOF
3675rm -f conftest$ac_exeext
3676if { (ac_try="$ac_link"
3677case "(($ac_try" in
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3680esac
3681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3682 (eval "$ac_link") 2>&5
3683 ac_status=$?
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3686 { (case "(($ac_try" in
3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688 *) ac_try_echo=$ac_try;;
3689esac
3690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3691 (eval "$ac_try") 2>&5
3692 ac_status=$?
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; }; then
3695 ac_cv_c_bigendian=no
3696else
3697 echo "$as_me: program exited with status $ac_status" >&5
3698echo "$as_me: failed program was:" >&5
3699sed 's/^/| /' conftest.$ac_ext >&5
3700
3701( exit $ac_status )
3702ac_cv_c_bigendian=yes
3703fi
3704rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3705fi
3706
3707
3708fi
3709
3710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3711fi
3712{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3713echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3714case $ac_cv_c_bigendian in
3715 yes)
3716
3717cat >>confdefs.h <<\_ACEOF
3718#define WORDS_BIGENDIAN 1
3719_ACEOF
3720 ;;
3721 no)
3722 ;;
3723 *)
3724 { { echo "$as_me:$LINENO: error: unknown endianness
3725presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3726echo "$as_me: error: unknown endianness
3727presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3728 { (exit 1); exit 1; }; } ;;
3729esac
3730
3731
3732# Checks for programs.
3733for ac_prog in gawk mawk nawk awk
3734do
3735 # Extract the first word of "$ac_prog", so it can be a program name with args.
3736set dummy $ac_prog; ac_word=$2
3737{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3739if test "${ac_cv_prog_AWK+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3741else
3742 if test -n "$AWK"; then
3743 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3744else
3745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746for as_dir in $PATH
3747do
3748 IFS=$as_save_IFS
3749 test -z "$as_dir" && as_dir=.
3750 for ac_exec_ext in '' $ac_executable_extensions; do
3751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3752 ac_cv_prog_AWK="$ac_prog"
3753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3754 break 2
3755 fi
3756done
3757done
3758IFS=$as_save_IFS
3759
3760fi
3761fi
3762AWK=$ac_cv_prog_AWK
3763if test -n "$AWK"; then
3764 { echo "$as_me:$LINENO: result: $AWK" >&5
3765echo "${ECHO_T}$AWK" >&6; }
3766else
3767 { echo "$as_me:$LINENO: result: no" >&5
3768echo "${ECHO_T}no" >&6; }
3769fi
3770
3771
3772 test -n "$AWK" && break
3773done
3774
3775ac_ext=c
3776ac_cpp='$CPP $CPPFLAGS'
3777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3779ac_compiler_gnu=$ac_cv_c_compiler_gnu
3780{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3781echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3782# On Suns, sometimes $CPP names a directory.
3783if test -n "$CPP" && test -d "$CPP"; then
3784 CPP=
3785fi
3786if test -z "$CPP"; then
3787 if test "${ac_cv_prog_CPP+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3789else
3790 # Double quotes because CPP needs to be expanded
3791 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3792 do
3793 ac_preproc_ok=false
3794for ac_c_preproc_warn_flag in '' yes
3795do
3796 # Use a header file that comes with gcc, so configuring glibc
3797 # with a fresh cross-compiler works.
3798 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3799 # <limits.h> exists even on freestanding compilers.
3800 # On the NeXT, cc -E runs the code through the compiler's parser,
3801 # not just through cpp. "Syntax error" is here to catch this case.
3802 cat >conftest.$ac_ext <<_ACEOF
3803/* confdefs.h. */
3804_ACEOF
3805cat confdefs.h >>conftest.$ac_ext
3806cat >>conftest.$ac_ext <<_ACEOF
3807/* end confdefs.h. */
3808#ifdef __STDC__
3809# include <limits.h>
3810#else
3811# include <assert.h>
3812#endif
3813 Syntax error
3814_ACEOF
3815if { (ac_try="$ac_cpp conftest.$ac_ext"
3816case "(($ac_try" in
3817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818 *) ac_try_echo=$ac_try;;
3819esac
3820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3822 ac_status=$?
3823 grep -v '^ *+' conftest.er1 >conftest.err
3824 rm -f conftest.er1
3825 cat conftest.err >&5
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); } >/dev/null && {
3828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3829 test ! -s conftest.err
3830 }; then
3831 :
3832else
3833 echo "$as_me: failed program was:" >&5
3834sed 's/^/| /' conftest.$ac_ext >&5
3835
3836 # Broken: fails on valid input.
3837continue
3838fi
3839
3840rm -f conftest.err conftest.$ac_ext
3841
3842 # OK, works on sane cases. Now check whether nonexistent headers
3843 # can be detected and how.
3844 cat >conftest.$ac_ext <<_ACEOF
3845/* confdefs.h. */
3846_ACEOF
3847cat confdefs.h >>conftest.$ac_ext
3848cat >>conftest.$ac_ext <<_ACEOF
3849/* end confdefs.h. */
3850#include <ac_nonexistent.h>
3851_ACEOF
3852if { (ac_try="$ac_cpp conftest.$ac_ext"
3853case "(($ac_try" in
3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855 *) ac_try_echo=$ac_try;;
3856esac
3857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3859 ac_status=$?
3860 grep -v '^ *+' conftest.er1 >conftest.err
3861 rm -f conftest.er1
3862 cat conftest.err >&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } >/dev/null && {
3865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3866 test ! -s conftest.err
3867 }; then
3868 # Broken: success on invalid input.
3869continue
3870else
3871 echo "$as_me: failed program was:" >&5
3872sed 's/^/| /' conftest.$ac_ext >&5
3873
3874 # Passes both tests.
3875ac_preproc_ok=:
3876break
3877fi
3878
3879rm -f conftest.err conftest.$ac_ext
3880
3881done
3882# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3883rm -f conftest.err conftest.$ac_ext
3884if $ac_preproc_ok; then
3885 break
3886fi
3887
3888 done
3889 ac_cv_prog_CPP=$CPP
3890
3891fi
3892 CPP=$ac_cv_prog_CPP
3893else
3894 ac_cv_prog_CPP=$CPP
3895fi
3896{ echo "$as_me:$LINENO: result: $CPP" >&5
3897echo "${ECHO_T}$CPP" >&6; }
3898ac_preproc_ok=false
3899for ac_c_preproc_warn_flag in '' yes
3900do
3901 # Use a header file that comes with gcc, so configuring glibc
3902 # with a fresh cross-compiler works.
3903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3904 # <limits.h> exists even on freestanding compilers.
3905 # On the NeXT, cc -E runs the code through the compiler's parser,
3906 # not just through cpp. "Syntax error" is here to catch this case.
3907 cat >conftest.$ac_ext <<_ACEOF
3908/* confdefs.h. */
3909_ACEOF
3910cat confdefs.h >>conftest.$ac_ext
3911cat >>conftest.$ac_ext <<_ACEOF
3912/* end confdefs.h. */
3913#ifdef __STDC__
3914# include <limits.h>
3915#else
3916# include <assert.h>
3917#endif
3918 Syntax error
3919_ACEOF
3920if { (ac_try="$ac_cpp conftest.$ac_ext"
3921case "(($ac_try" in
3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923 *) ac_try_echo=$ac_try;;
3924esac
3925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3927 ac_status=$?
3928 grep -v '^ *+' conftest.er1 >conftest.err
3929 rm -f conftest.er1
3930 cat conftest.err >&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } >/dev/null && {
3933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3934 test ! -s conftest.err
3935 }; then
3936 :
3937else
3938 echo "$as_me: failed program was:" >&5
3939sed 's/^/| /' conftest.$ac_ext >&5
3940
3941 # Broken: fails on valid input.
3942continue
3943fi
3944
3945rm -f conftest.err conftest.$ac_ext
3946
3947 # OK, works on sane cases. Now check whether nonexistent headers
3948 # can be detected and how.
3949 cat >conftest.$ac_ext <<_ACEOF
3950/* confdefs.h. */
3951_ACEOF
3952cat confdefs.h >>conftest.$ac_ext
3953cat >>conftest.$ac_ext <<_ACEOF
3954/* end confdefs.h. */
3955#include <ac_nonexistent.h>
3956_ACEOF
3957if { (ac_try="$ac_cpp conftest.$ac_ext"
3958case "(($ac_try" in
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3961esac
3962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3964 ac_status=$?
3965 grep -v '^ *+' conftest.er1 >conftest.err
3966 rm -f conftest.er1
3967 cat conftest.err >&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } >/dev/null && {
3970 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3971 test ! -s conftest.err
3972 }; then
3973 # Broken: success on invalid input.
3974continue
3975else
3976 echo "$as_me: failed program was:" >&5
3977sed 's/^/| /' conftest.$ac_ext >&5
3978
3979 # Passes both tests.
3980ac_preproc_ok=:
3981break
3982fi
3983
3984rm -f conftest.err conftest.$ac_ext
3985
3986done
3987# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3988rm -f conftest.err conftest.$ac_ext
3989if $ac_preproc_ok; then
3990 :
3991else
3992 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3993See \`config.log' for more details." >&5
3994echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3995See \`config.log' for more details." >&2;}
3996 { (exit 1); exit 1; }; }
3997fi
3998
3999ac_ext=c
4000ac_cpp='$CPP $CPPFLAGS'
4001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4003ac_compiler_gnu=$ac_cv_c_compiler_gnu
4004
4005if test -n "$ac_tool_prefix"; then
4006 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4007set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4008{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4010if test "${ac_cv_prog_RANLIB+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4012else
4013 if test -n "$RANLIB"; then
4014 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4015else
4016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017for as_dir in $PATH
4018do
4019 IFS=$as_save_IFS
4020 test -z "$as_dir" && as_dir=.
4021 for ac_exec_ext in '' $ac_executable_extensions; do
4022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4023 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4025 break 2
4026 fi
4027done
4028done
4029IFS=$as_save_IFS
4030
4031fi
4032fi
4033RANLIB=$ac_cv_prog_RANLIB
4034if test -n "$RANLIB"; then
4035 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4036echo "${ECHO_T}$RANLIB" >&6; }
4037else
4038 { echo "$as_me:$LINENO: result: no" >&5
4039echo "${ECHO_T}no" >&6; }
4040fi
4041
4042
4043fi
4044if test -z "$ac_cv_prog_RANLIB"; then
4045 ac_ct_RANLIB=$RANLIB
4046 # Extract the first word of "ranlib", so it can be a program name with args.
4047set dummy ranlib; ac_word=$2
4048{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4050if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4051 echo $ECHO_N "(cached) $ECHO_C" >&6
4052else
4053 if test -n "$ac_ct_RANLIB"; then
4054 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4055else
4056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057for as_dir in $PATH
4058do
4059 IFS=$as_save_IFS
4060 test -z "$as_dir" && as_dir=.
4061 for ac_exec_ext in '' $ac_executable_extensions; do
4062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4063 ac_cv_prog_ac_ct_RANLIB="ranlib"
4064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4065 break 2
4066 fi
4067done
4068done
4069IFS=$as_save_IFS
4070
4071fi
4072fi
4073ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4074if test -n "$ac_ct_RANLIB"; then
4075 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4076echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4077else
4078 { echo "$as_me:$LINENO: result: no" >&5
4079echo "${ECHO_T}no" >&6; }
4080fi
4081
4082 if test "x$ac_ct_RANLIB" = x; then
4083 RANLIB=":"
4084 else
4085 case $cross_compiling:$ac_tool_warned in
4086yes:)
4087{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4088whose name does not start with the host triplet. If you think this
4089configuration is useful to you, please write to autoconf@gnu.org." >&5
4090echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4091whose name does not start with the host triplet. If you think this
4092configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4093ac_tool_warned=yes ;;
4094esac
4095 RANLIB=$ac_ct_RANLIB
4096 fi
4097else
4098 RANLIB="$ac_cv_prog_RANLIB"
4099fi
4100
4101# Find a good install program. We prefer a C program (faster),
4102# so one script is as good as another. But avoid the broken or
4103# incompatible versions:
4104# SysV /etc/install, /usr/sbin/install
4105# SunOS /usr/etc/install
4106# IRIX /sbin/install
4107# AIX /bin/install
4108# AmigaOS /C/install, which installs bootblocks on floppy discs
4109# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4110# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4111# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4112# OS/2's system install, which has a completely different semantic
4113# ./install, which can be erroneously created by make from ./install.sh.
4114{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4115echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4116if test -z "$INSTALL"; then
4117if test "${ac_cv_path_install+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4119else
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121for as_dir in $PATH
4122do
4123 IFS=$as_save_IFS
4124 test -z "$as_dir" && as_dir=.
4125 # Account for people who put trailing slashes in PATH elements.
4126case $as_dir/ in
4127 ./ | .// | /cC/* | \
4128 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4129 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4130 /usr/ucb/* ) ;;
4131 *)
4132 # OSF1 and SCO ODT 3.0 have their own names for install.
4133 # Don't use installbsd from OSF since it installs stuff as root
4134 # by default.
4135 for ac_prog in ginstall scoinst install; do
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4138 if test $ac_prog = install &&
4139 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4140 # AIX install. It has an incompatible calling convention.
4141 :
4142 elif test $ac_prog = install &&
4143 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4144 # program-specific install script used by HP pwplus--don't use.
4145 :
4146 else
4147 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4148 break 3
4149 fi
4150 fi
4151 done
4152 done
4153 ;;
4154esac
4155done
4156IFS=$as_save_IFS
4157
4158
4159fi
4160 if test "${ac_cv_path_install+set}" = set; then
4161 INSTALL=$ac_cv_path_install
4162 else
4163 # As a last resort, use the slow shell script. Don't cache a
4164 # value for INSTALL within a source directory, because that will
4165 # break other packages using the cache if that directory is
4166 # removed, or if the value is a relative name.
4167 INSTALL=$ac_install_sh
4168 fi
4169fi
4170{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4171echo "${ECHO_T}$INSTALL" >&6; }
4172
4173# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4174# It thinks the first close brace ends the variable substitution.
4175test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4176
4177test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4178
4179test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4180
4181{ echo "$as_me:$LINENO: checking for egrep" >&5
4182echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4183if test "${ac_cv_path_EGREP+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4185else
4186 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4187 then ac_cv_path_EGREP="$GREP -E"
4188 else
4189 # Extract the first word of "egrep" to use in msg output
4190if test -z "$EGREP"; then
4191set dummy egrep; ac_prog_name=$2
4192if test "${ac_cv_path_EGREP+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4194else
4195 ac_path_EGREP_found=false
4196# Loop through the user's path and test for each of PROGNAME-LIST
4197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4199do
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
4202 for ac_prog in egrep; do
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4205 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4206 # Check for GNU ac_path_EGREP and select it if it is found.
4207 # Check for GNU $ac_path_EGREP
4208case `"$ac_path_EGREP" --version 2>&1` in
4209*GNU*)
4210 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4211*)
4212 ac_count=0
4213 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4214 while :
4215 do
4216 cat "conftest.in" "conftest.in" >"conftest.tmp"
4217 mv "conftest.tmp" "conftest.in"
4218 cp "conftest.in" "conftest.nl"
4219 echo 'EGREP' >> "conftest.nl"
4220 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4221 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4222 ac_count=`expr $ac_count + 1`
4223 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4224 # Best one so far, save it but keep looking for a better one
4225 ac_cv_path_EGREP="$ac_path_EGREP"
4226 ac_path_EGREP_max=$ac_count
4227 fi
4228 # 10*(2^10) chars as input seems more than enough
4229 test $ac_count -gt 10 && break
4230 done
4231 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4232esac
4233
4234
4235 $ac_path_EGREP_found && break 3
4236 done
4237done
4238
4239done
4240IFS=$as_save_IFS
4241
4242
4243fi
4244
4245EGREP="$ac_cv_path_EGREP"
4246if test -z "$EGREP"; then
4247 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4248echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4249 { (exit 1); exit 1; }; }
4250fi
4251
4252else
4253 ac_cv_path_EGREP=$EGREP
4254fi
4255
4256
4257 fi
4258fi
4259{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4260echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4261 EGREP="$ac_cv_path_EGREP"
4262
4263
4264# Extract the first word of "ar", so it can be a program name with args.
4265set dummy ar; ac_word=$2
4266{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4268if test "${ac_cv_path_AR+set}" = set; then
4269 echo $ECHO_N "(cached) $ECHO_C" >&6
4270else
4271 case $AR in
4272 [\\/]* | ?:[\\/]*)
4273 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4274 ;;
4275 *)
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277for as_dir in $PATH
4278do
4279 IFS=$as_save_IFS
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4283 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 break 2
4286 fi
4287done
4288done
4289IFS=$as_save_IFS
4290
4291 ;;
4292esac
4293fi
4294AR=$ac_cv_path_AR
4295if test -n "$AR"; then
4296 { echo "$as_me:$LINENO: result: $AR" >&5
4297echo "${ECHO_T}$AR" >&6; }
4298else
4299 { echo "$as_me:$LINENO: result: no" >&5
4300echo "${ECHO_T}no" >&6; }
4301fi
4302
4303
4304# Extract the first word of "cat", so it can be a program name with args.
4305set dummy cat; ac_word=$2
4306{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4308if test "${ac_cv_path_CAT+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4310else
4311 case $CAT in
4312 [\\/]* | ?:[\\/]*)
4313 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4314 ;;
4315 *)
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317for as_dir in $PATH
4318do
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4323 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4325 break 2
4326 fi
4327done
4328done
4329IFS=$as_save_IFS
4330
4331 ;;
4332esac
4333fi
4334CAT=$ac_cv_path_CAT
4335if test -n "$CAT"; then
4336 { echo "$as_me:$LINENO: result: $CAT" >&5
4337echo "${ECHO_T}$CAT" >&6; }
4338else
4339 { echo "$as_me:$LINENO: result: no" >&5
4340echo "${ECHO_T}no" >&6; }
4341fi
4342
4343
4344# Extract the first word of "kill", so it can be a program name with args.
4345set dummy kill; ac_word=$2
4346{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4348if test "${ac_cv_path_KILL+set}" = set; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4350else
4351 case $KILL in
4352 [\\/]* | ?:[\\/]*)
4353 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4354 ;;
4355 *)
4356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357for as_dir in $PATH
4358do
4359 IFS=$as_save_IFS
4360 test -z "$as_dir" && as_dir=.
4361 for ac_exec_ext in '' $ac_executable_extensions; do
4362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4363 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4365 break 2
4366 fi
4367done
4368done
4369IFS=$as_save_IFS
4370
4371 ;;
4372esac
4373fi
4374KILL=$ac_cv_path_KILL
4375if test -n "$KILL"; then
4376 { echo "$as_me:$LINENO: result: $KILL" >&5
4377echo "${ECHO_T}$KILL" >&6; }
4378else
4379 { echo "$as_me:$LINENO: result: no" >&5
4380echo "${ECHO_T}no" >&6; }
4381fi
4382
4383
4384for ac_prog in perl5 perl
4385do
4386 # Extract the first word of "$ac_prog", so it can be a program name with args.
4387set dummy $ac_prog; ac_word=$2
4388{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4390if test "${ac_cv_path_PERL+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4392else
4393 case $PERL in
4394 [\\/]* | ?:[\\/]*)
4395 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4396 ;;
4397 *)
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399for as_dir in $PATH
4400do
4401 IFS=$as_save_IFS
4402 test -z "$as_dir" && as_dir=.
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4405 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4407 break 2
4408 fi
4409done
4410done
4411IFS=$as_save_IFS
4412
4413 ;;
4414esac
4415fi
4416PERL=$ac_cv_path_PERL
4417if test -n "$PERL"; then
4418 { echo "$as_me:$LINENO: result: $PERL" >&5
4419echo "${ECHO_T}$PERL" >&6; }
4420else
4421 { echo "$as_me:$LINENO: result: no" >&5
4422echo "${ECHO_T}no" >&6; }
4423fi
4424
4425
4426 test -n "$PERL" && break
4427done
4428
4429# Extract the first word of "sed", so it can be a program name with args.
4430set dummy sed; ac_word=$2
4431{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4433if test "${ac_cv_path_SED+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4435else
4436 case $SED in
4437 [\\/]* | ?:[\\/]*)
4438 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4439 ;;
4440 *)
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442for as_dir in $PATH
4443do
4444 IFS=$as_save_IFS
4445 test -z "$as_dir" && as_dir=.
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4448 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4450 break 2
4451 fi
4452done
4453done
4454IFS=$as_save_IFS
4455
4456 ;;
4457esac
4458fi
4459SED=$ac_cv_path_SED
4460if test -n "$SED"; then
4461 { echo "$as_me:$LINENO: result: $SED" >&5
4462echo "${ECHO_T}$SED" >&6; }
4463else
4464 { echo "$as_me:$LINENO: result: no" >&5
4465echo "${ECHO_T}no" >&6; }
4466fi
4467
4468
4469
4470# Extract the first word of "ent", so it can be a program name with args.
4471set dummy ent; ac_word=$2
4472{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4474if test "${ac_cv_path_ENT+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
4476else
4477 case $ENT in
4478 [\\/]* | ?:[\\/]*)
4479 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4480 ;;
4481 *)
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483for as_dir in $PATH
4484do
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4489 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 break 2
4492 fi
4493done
4494done
4495IFS=$as_save_IFS
4496
4497 ;;
4498esac
4499fi
4500ENT=$ac_cv_path_ENT
4501if test -n "$ENT"; then
4502 { echo "$as_me:$LINENO: result: $ENT" >&5
4503echo "${ECHO_T}$ENT" >&6; }
4504else
4505 { echo "$as_me:$LINENO: result: no" >&5
4506echo "${ECHO_T}no" >&6; }
4507fi
4508
4509
4510
4511# Extract the first word of "bash", so it can be a program name with args.
4512set dummy bash; ac_word=$2
4513{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4515if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
4517else
4518 case $TEST_MINUS_S_SH in
4519 [\\/]* | ?:[\\/]*)
4520 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4521 ;;
4522 *)
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524for as_dir in $PATH
4525do
4526 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
4528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4530 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4532 break 2
4533 fi
4534done
4535done
4536IFS=$as_save_IFS
4537
4538 ;;
4539esac
4540fi
4541TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4542if test -n "$TEST_MINUS_S_SH"; then
4543 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4544echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4545else
4546 { echo "$as_me:$LINENO: result: no" >&5
4547echo "${ECHO_T}no" >&6; }
4548fi
4549
4550
4551# Extract the first word of "ksh", so it can be a program name with args.
4552set dummy ksh; ac_word=$2
4553{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4555if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4557else
4558 case $TEST_MINUS_S_SH in
4559 [\\/]* | ?:[\\/]*)
4560 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4561 ;;
4562 *)
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564for as_dir in $PATH
4565do
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4570 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 break 2
4573 fi
4574done
4575done
4576IFS=$as_save_IFS
4577
4578 ;;
4579esac
4580fi
4581TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4582if test -n "$TEST_MINUS_S_SH"; then
4583 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4584echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4585else
4586 { echo "$as_me:$LINENO: result: no" >&5
4587echo "${ECHO_T}no" >&6; }
4588fi
4589
4590
4591# Extract the first word of "sh", so it can be a program name with args.
4592set dummy sh; ac_word=$2
4593{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4595if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4597else
4598 case $TEST_MINUS_S_SH in
4599 [\\/]* | ?:[\\/]*)
4600 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4601 ;;
4602 *)
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604for as_dir in $PATH
4605do
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4610 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 break 2
4613 fi
4614done
4615done
4616IFS=$as_save_IFS
4617
4618 ;;
4619esac
4620fi
4621TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4622if test -n "$TEST_MINUS_S_SH"; then
4623 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4624echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4625else
4626 { echo "$as_me:$LINENO: result: no" >&5
4627echo "${ECHO_T}no" >&6; }
4628fi
4629
4630
4631# Extract the first word of "sh", so it can be a program name with args.
4632set dummy sh; ac_word=$2
4633{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4635if test "${ac_cv_path_SH+set}" = set; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4637else
4638 case $SH in
4639 [\\/]* | ?:[\\/]*)
4640 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4641 ;;
4642 *)
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644for as_dir in $PATH
4645do
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4650 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 break 2
4653 fi
4654done
4655done
4656IFS=$as_save_IFS
4657
4658 ;;
4659esac
4660fi
4661SH=$ac_cv_path_SH
4662if test -n "$SH"; then
4663 { echo "$as_me:$LINENO: result: $SH" >&5
4664echo "${ECHO_T}$SH" >&6; }
4665else
4666 { echo "$as_me:$LINENO: result: no" >&5
4667echo "${ECHO_T}no" >&6; }
4668fi
4669
4670
4671# Extract the first word of "groff", so it can be a program name with args.
4672set dummy groff; ac_word=$2
4673{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4675if test "${ac_cv_path_GROFF+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4677else
4678 case $GROFF in
4679 [\\/]* | ?:[\\/]*)
4680 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
4681 ;;
4682 *)
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684for as_dir in $PATH
4685do
4686 IFS=$as_save_IFS
4687 test -z "$as_dir" && as_dir=.
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4690 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
4691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4692 break 2
4693 fi
4694done
4695done
4696IFS=$as_save_IFS
4697
4698 ;;
4699esac
4700fi
4701GROFF=$ac_cv_path_GROFF
4702if test -n "$GROFF"; then
4703 { echo "$as_me:$LINENO: result: $GROFF" >&5
4704echo "${ECHO_T}$GROFF" >&6; }
4705else
4706 { echo "$as_me:$LINENO: result: no" >&5
4707echo "${ECHO_T}no" >&6; }
4708fi
4709
4710
4711# Extract the first word of "nroff", so it can be a program name with args.
4712set dummy nroff; ac_word=$2
4713{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4715if test "${ac_cv_path_NROFF+set}" = set; then
4716 echo $ECHO_N "(cached) $ECHO_C" >&6
4717else
4718 case $NROFF in
4719 [\\/]* | ?:[\\/]*)
4720 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
4721 ;;
4722 *)
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724for as_dir in $PATH
4725do
4726 IFS=$as_save_IFS
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4730 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
4731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 break 2
4733 fi
4734done
4735done
4736IFS=$as_save_IFS
4737
4738 ;;
4739esac
4740fi
4741NROFF=$ac_cv_path_NROFF
4742if test -n "$NROFF"; then
4743 { echo "$as_me:$LINENO: result: $NROFF" >&5
4744echo "${ECHO_T}$NROFF" >&6; }
4745else
4746 { echo "$as_me:$LINENO: result: no" >&5
4747echo "${ECHO_T}no" >&6; }
4748fi
4749
4750
4751# Extract the first word of "mandoc", so it can be a program name with args.
4752set dummy mandoc; ac_word=$2
4753{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4755if test "${ac_cv_path_MANDOC+set}" = set; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4757else
4758 case $MANDOC in
4759 [\\/]* | ?:[\\/]*)
4760 ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path.
4761 ;;
4762 *)
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764for as_dir in $PATH
4765do
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4770 ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext"
4771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 break 2
4773 fi
4774done
4775done
4776IFS=$as_save_IFS
4777
4778 ;;
4779esac
4780fi
4781MANDOC=$ac_cv_path_MANDOC
4782if test -n "$MANDOC"; then
4783 { echo "$as_me:$LINENO: result: $MANDOC" >&5
4784echo "${ECHO_T}$MANDOC" >&6; }
4785else
4786 { echo "$as_me:$LINENO: result: no" >&5
4787echo "${ECHO_T}no" >&6; }
4788fi
4789
4790
4791TEST_SHELL=sh
4792
4793
4794if test "x$MANDOC" != "x" ; then
4795 MANFMT="$MANDOC"
4796elif test "x$NROFF" != "x" ; then
4797 MANFMT="$NROFF -mandoc"
4798elif test "x$GROFF" != "x" ; then
4799 MANFMT="$GROFF -mandoc -Tascii"
4800else
4801 { echo "$as_me:$LINENO: WARNING: no manpage formatted found" >&5
4802echo "$as_me: WARNING: no manpage formatted found" >&2;}
4803 MANFMT="false"
4804fi
4805
4806
4807# Extract the first word of "groupadd", so it can be a program name with args.
4808set dummy groupadd; ac_word=$2
4809{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4811if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4813else
4814 case $PATH_GROUPADD_PROG in
4815 [\\/]* | ?:[\\/]*)
4816 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
4817 ;;
4818 *)
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4821do
4822 IFS=$as_save_IFS
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 break 2
4829 fi
4830done
4831done
4832IFS=$as_save_IFS
4833
4834 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
4835 ;;
4836esac
4837fi
4838PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
4839if test -n "$PATH_GROUPADD_PROG"; then
4840 { echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5
4841echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6; }
4842else
4843 { echo "$as_me:$LINENO: result: no" >&5
4844echo "${ECHO_T}no" >&6; }
4845fi
4846
4847
4848# Extract the first word of "useradd", so it can be a program name with args.
4849set dummy useradd; ac_word=$2
4850{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4852if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4854else
4855 case $PATH_USERADD_PROG in
4856 [\\/]* | ?:[\\/]*)
4857 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
4858 ;;
4859 *)
4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4862do
4863 IFS=$as_save_IFS
4864 test -z "$as_dir" && as_dir=.
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4867 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4869 break 2
4870 fi
4871done
4872done
4873IFS=$as_save_IFS
4874
4875 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
4876 ;;
4877esac
4878fi
4879PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
4880if test -n "$PATH_USERADD_PROG"; then
4881 { echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5
4882echo "${ECHO_T}$PATH_USERADD_PROG" >&6; }
4883else
4884 { echo "$as_me:$LINENO: result: no" >&5
4885echo "${ECHO_T}no" >&6; }
4886fi
4887
4888
4889# Extract the first word of "pkgmk", so it can be a program name with args.
4890set dummy pkgmk; ac_word=$2
4891{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4893if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4895else
4896 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4897 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
4898else
4899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900for as_dir in $PATH
4901do
4902 IFS=$as_save_IFS
4903 test -z "$as_dir" && as_dir=.
4904 for ac_exec_ext in '' $ac_executable_extensions; do
4905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4906 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
4907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 break 2
4909 fi
4910done
4911done
4912IFS=$as_save_IFS
4913
4914 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
4915fi
4916fi
4917MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
4918if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4919 { echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5
4920echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6; }
4921else
4922 { echo "$as_me:$LINENO: result: no" >&5
4923echo "${ECHO_T}no" >&6; }
4924fi
4925
4926
4927if test -x /sbin/sh; then
4928 STARTUP_SCRIPT_SHELL=/sbin/sh
4929
4930else
4931 STARTUP_SCRIPT_SHELL=/bin/sh
4932
4933fi
4934
4935# System features
4936# Check whether --enable-largefile was given.
4937if test "${enable_largefile+set}" = set; then
4938 enableval=$enable_largefile;
4939fi
4940
4941if test "$enable_largefile" != no; then
4942
4943 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4944echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4945if test "${ac_cv_sys_largefile_CC+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4947else
4948 ac_cv_sys_largefile_CC=no
4949 if test "$GCC" != yes; then
4950 ac_save_CC=$CC
4951 while :; do
4952 # IRIX 6.2 and later do not support large files by default,
4953 # so use the C compiler's -n32 option if that helps.
4954 cat >conftest.$ac_ext <<_ACEOF
4955/* confdefs.h. */
4956_ACEOF
4957cat confdefs.h >>conftest.$ac_ext
4958cat >>conftest.$ac_ext <<_ACEOF
4959/* end confdefs.h. */
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
4977 rm -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 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
5003 CC="$CC -n32"
5004 rm -f conftest.$ac_objext
5005if { (ac_try="$ac_compile"
5006case "(($ac_try" in
5007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5008 *) ac_try_echo=$ac_try;;
5009esac
5010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5011 (eval "$ac_compile") 2>conftest.er1
5012 ac_status=$?
5013 grep -v '^ *+' conftest.er1 >conftest.err
5014 rm -f conftest.er1
5015 cat conftest.err >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } && {
5018 test -z "$ac_c_werror_flag" ||
5019 test ! -s conftest.err
5020 } && test -s conftest.$ac_objext; then
5021 ac_cv_sys_largefile_CC=' -n32'; break
5022else
5023 echo "$as_me: failed program was:" >&5
5024sed 's/^/| /' conftest.$ac_ext >&5
5025
5026
5027fi
5028
5029rm -f core conftest.err conftest.$ac_objext
5030 break
5031 done
5032 CC=$ac_save_CC
5033 rm -f conftest.$ac_ext
5034 fi
5035fi
5036{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5037echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5038 if test "$ac_cv_sys_largefile_CC" != no; then
5039 CC=$CC$ac_cv_sys_largefile_CC
5040 fi
5041
5042 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5043echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5044if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5046else
5047 while :; do
5048 cat >conftest.$ac_ext <<_ACEOF
5049/* confdefs.h. */
5050_ACEOF
5051cat confdefs.h >>conftest.$ac_ext
5052cat >>conftest.$ac_ext <<_ACEOF
5053/* end confdefs.h. */
5054#include <sys/types.h>
5055 /* Check that off_t can represent 2**63 - 1 correctly.
5056 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5057 since some C++ compilers masquerading as C compilers
5058 incorrectly reject 9223372036854775807. */
5059#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5060 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5061 && LARGE_OFF_T % 2147483647 == 1)
5062 ? 1 : -1];
5063int
5064main ()
5065{
5066
5067 ;
5068 return 0;
5069}
5070_ACEOF
5071rm -f conftest.$ac_objext
5072if { (ac_try="$ac_compile"
5073case "(($ac_try" in
5074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5075 *) ac_try_echo=$ac_try;;
5076esac
5077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5078 (eval "$ac_compile") 2>conftest.er1
5079 ac_status=$?
5080 grep -v '^ *+' conftest.er1 >conftest.err
5081 rm -f conftest.er1
5082 cat conftest.err >&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); } && {
5085 test -z "$ac_c_werror_flag" ||
5086 test ! -s conftest.err
5087 } && test -s conftest.$ac_objext; then
5088 ac_cv_sys_file_offset_bits=no; break
5089else
5090 echo "$as_me: failed program was:" >&5
5091sed 's/^/| /' conftest.$ac_ext >&5
5092
5093
5094fi
5095
5096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5097 cat >conftest.$ac_ext <<_ACEOF
5098/* confdefs.h. */
5099_ACEOF
5100cat confdefs.h >>conftest.$ac_ext
5101cat >>conftest.$ac_ext <<_ACEOF
5102/* end confdefs.h. */
5103#define _FILE_OFFSET_BITS 64
5104#include <sys/types.h>
5105 /* Check that off_t can represent 2**63 - 1 correctly.
5106 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5107 since some C++ compilers masquerading as C compilers
5108 incorrectly reject 9223372036854775807. */
5109#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5110 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5111 && LARGE_OFF_T % 2147483647 == 1)
5112 ? 1 : -1];
5113int
5114main ()
5115{
5116
5117 ;
5118 return 0;
5119}
5120_ACEOF
5121rm -f conftest.$ac_objext
5122if { (ac_try="$ac_compile"
5123case "(($ac_try" in
5124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5125 *) ac_try_echo=$ac_try;;
5126esac
5127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5128 (eval "$ac_compile") 2>conftest.er1
5129 ac_status=$?
5130 grep -v '^ *+' conftest.er1 >conftest.err
5131 rm -f conftest.er1
5132 cat conftest.err >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); } && {
5135 test -z "$ac_c_werror_flag" ||
5136 test ! -s conftest.err
5137 } && test -s conftest.$ac_objext; then
5138 ac_cv_sys_file_offset_bits=64; break
5139else
5140 echo "$as_me: failed program was:" >&5
5141sed 's/^/| /' conftest.$ac_ext >&5
5142
5143
5144fi
5145
5146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5147 ac_cv_sys_file_offset_bits=unknown
5148 break
5149done
5150fi
5151{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5152echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5153case $ac_cv_sys_file_offset_bits in #(
5154 no | unknown) ;;
5155 *)
5156cat >>confdefs.h <<_ACEOF
5157#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5158_ACEOF
5159;;
5160esac
5161rm -f conftest*
5162 if test $ac_cv_sys_file_offset_bits = unknown; then
5163 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5164echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5165if test "${ac_cv_sys_large_files+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5167else
5168 while :; do
5169 cat >conftest.$ac_ext <<_ACEOF
5170/* confdefs.h. */
5171_ACEOF
5172cat confdefs.h >>conftest.$ac_ext
5173cat >>conftest.$ac_ext <<_ACEOF
5174/* end confdefs.h. */
5175#include <sys/types.h>
5176 /* Check that off_t can represent 2**63 - 1 correctly.
5177 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5178 since some C++ compilers masquerading as C compilers
5179 incorrectly reject 9223372036854775807. */
5180#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5181 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5182 && LARGE_OFF_T % 2147483647 == 1)
5183 ? 1 : -1];
5184int
5185main ()
5186{
5187
5188 ;
5189 return 0;
5190}
5191_ACEOF
5192rm -f conftest.$ac_objext
5193if { (ac_try="$ac_compile"
5194case "(($ac_try" in
5195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5196 *) ac_try_echo=$ac_try;;
5197esac
5198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5199 (eval "$ac_compile") 2>conftest.er1
5200 ac_status=$?
5201 grep -v '^ *+' conftest.er1 >conftest.err
5202 rm -f conftest.er1
5203 cat conftest.err >&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } && {
5206 test -z "$ac_c_werror_flag" ||
5207 test ! -s conftest.err
5208 } && test -s conftest.$ac_objext; then
5209 ac_cv_sys_large_files=no; break
5210else
5211 echo "$as_me: failed program was:" >&5
5212sed 's/^/| /' conftest.$ac_ext >&5
5213
5214
5215fi
5216
5217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5218 cat >conftest.$ac_ext <<_ACEOF
5219/* confdefs.h. */
5220_ACEOF
5221cat confdefs.h >>conftest.$ac_ext
5222cat >>conftest.$ac_ext <<_ACEOF
5223/* end confdefs.h. */
5224#define _LARGE_FILES 1
5225#include <sys/types.h>
5226 /* Check that off_t can represent 2**63 - 1 correctly.
5227 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5228 since some C++ compilers masquerading as C compilers
5229 incorrectly reject 9223372036854775807. */
5230#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5231 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5232 && LARGE_OFF_T % 2147483647 == 1)
5233 ? 1 : -1];
5234int
5235main ()
5236{
5237
5238 ;
5239 return 0;
5240}
5241_ACEOF
5242rm -f conftest.$ac_objext
5243if { (ac_try="$ac_compile"
5244case "(($ac_try" in
5245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246 *) ac_try_echo=$ac_try;;
5247esac
5248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5249 (eval "$ac_compile") 2>conftest.er1
5250 ac_status=$?
5251 grep -v '^ *+' conftest.er1 >conftest.err
5252 rm -f conftest.er1
5253 cat conftest.err >&5
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); } && {
5256 test -z "$ac_c_werror_flag" ||
5257 test ! -s conftest.err
5258 } && test -s conftest.$ac_objext; then
5259 ac_cv_sys_large_files=1; break
5260else
5261 echo "$as_me: failed program was:" >&5
5262sed 's/^/| /' conftest.$ac_ext >&5
5263
5264
5265fi
5266
5267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5268 ac_cv_sys_large_files=unknown
5269 break
5270done
5271fi
5272{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5273echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5274case $ac_cv_sys_large_files in #(
5275 no | unknown) ;;
5276 *)
5277cat >>confdefs.h <<_ACEOF
5278#define _LARGE_FILES $ac_cv_sys_large_files
5279_ACEOF
5280;;
5281esac
5282rm -f conftest*
5283 fi
5284fi
5285
5286
5287if test -z "$AR" ; then
5288 { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
5289echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
5290 { (exit 1); exit 1; }; }
5291fi
5292
5293# Use LOGIN_PROGRAM from environment if possible
5294if test ! -z "$LOGIN_PROGRAM" ; then
5295
5296cat >>confdefs.h <<_ACEOF
5297#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5298_ACEOF
5299
5300else
5301 # Search for login
5302 # Extract the first word of "login", so it can be a program name with args.
5303set dummy login; ac_word=$2
5304{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5306if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5308else
5309 case $LOGIN_PROGRAM_FALLBACK in
5310 [\\/]* | ?:[\\/]*)
5311 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5312 ;;
5313 *)
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315for as_dir in $PATH
5316do
5317 IFS=$as_save_IFS
5318 test -z "$as_dir" && as_dir=.
5319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5321 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5323 break 2
5324 fi
5325done
5326done
5327IFS=$as_save_IFS
5328
5329 ;;
5330esac
5331fi
5332LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5333if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5334 { echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
5335echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6; }
5336else
5337 { echo "$as_me:$LINENO: result: no" >&5
5338echo "${ECHO_T}no" >&6; }
5339fi
5340
5341
5342 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5343 cat >>confdefs.h <<_ACEOF
5344#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5345_ACEOF
5346
5347 fi
5348fi
5349
5350# Extract the first word of "passwd", so it can be a program name with args.
5351set dummy passwd; ac_word=$2
5352{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5354if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5356else
5357 case $PATH_PASSWD_PROG in
5358 [\\/]* | ?:[\\/]*)
5359 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5360 ;;
5361 *)
5362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363for as_dir in $PATH
5364do
5365 IFS=$as_save_IFS
5366 test -z "$as_dir" && as_dir=.
5367 for ac_exec_ext in '' $ac_executable_extensions; do
5368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5369 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5371 break 2
5372 fi
5373done
5374done
5375IFS=$as_save_IFS
5376
5377 ;;
5378esac
5379fi
5380PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5381if test -n "$PATH_PASSWD_PROG"; then
5382 { echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5
5383echo "${ECHO_T}$PATH_PASSWD_PROG" >&6; }
5384else
5385 { echo "$as_me:$LINENO: result: no" >&5
5386echo "${ECHO_T}no" >&6; }
5387fi
5388
5389
5390if test ! -z "$PATH_PASSWD_PROG" ; then
5391
5392cat >>confdefs.h <<_ACEOF
5393#define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5394_ACEOF
5395
5396fi
5397
5398if test -z "$LD" ; then
5399 LD=$CC
5400fi
5401
5402
5403{ echo "$as_me:$LINENO: checking for inline" >&5
5404echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5405if test "${ac_cv_c_inline+set}" = set; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5407else
5408 ac_cv_c_inline=no
5409for ac_kw in inline __inline__ __inline; do
5410 cat >conftest.$ac_ext <<_ACEOF
5411/* confdefs.h. */
5412_ACEOF
5413cat confdefs.h >>conftest.$ac_ext
5414cat >>conftest.$ac_ext <<_ACEOF
5415/* end confdefs.h. */
5416#ifndef __cplusplus
5417typedef int foo_t;
5418static $ac_kw foo_t static_foo () {return 0; }
5419$ac_kw foo_t foo () {return 0; }
5420#endif
5421
5422_ACEOF
5423rm -f conftest.$ac_objext
5424if { (ac_try="$ac_compile"
5425case "(($ac_try" in
5426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427 *) ac_try_echo=$ac_try;;
5428esac
5429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5430 (eval "$ac_compile") 2>conftest.er1
5431 ac_status=$?
5432 grep -v '^ *+' conftest.er1 >conftest.err
5433 rm -f conftest.er1
5434 cat conftest.err >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); } && {
5437 test -z "$ac_c_werror_flag" ||
5438 test ! -s conftest.err
5439 } && test -s conftest.$ac_objext; then
5440 ac_cv_c_inline=$ac_kw
5441else
5442 echo "$as_me: failed program was:" >&5
5443sed 's/^/| /' conftest.$ac_ext >&5
5444
5445
5446fi
5447
5448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5449 test "$ac_cv_c_inline" != no && break
5450done
5451
5452fi
5453{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5454echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5455
5456
5457case $ac_cv_c_inline in
5458 inline | yes) ;;
5459 *)
5460 case $ac_cv_c_inline in
5461 no) ac_val=;;
5462 *) ac_val=$ac_cv_c_inline;;
5463 esac
5464 cat >>confdefs.h <<_ACEOF
5465#ifndef __cplusplus
5466#define inline $ac_val
5467#endif
5468_ACEOF
5469 ;;
5470esac
5471
5472
5473{ echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5474echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
5475if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5476 echo $ECHO_N "(cached) $ECHO_C" >&6
5477else
5478 cat >conftest.$ac_ext <<_ACEOF
5479/* confdefs.h. */
5480_ACEOF
5481cat confdefs.h >>conftest.$ac_ext
5482cat >>conftest.$ac_ext <<_ACEOF
5483/* end confdefs.h. */
5484#include <limits.h>
5485
5486int
5487main ()
5488{
5489#ifndef LLONG_MAX
5490 (void) LLONG_MAX;
5491#endif
5492
5493 ;
5494 return 0;
5495}
5496_ACEOF
5497rm -f conftest.$ac_objext
5498if { (ac_try="$ac_compile"
5499case "(($ac_try" in
5500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5501 *) ac_try_echo=$ac_try;;
5502esac
5503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5504 (eval "$ac_compile") 2>conftest.er1
5505 ac_status=$?
5506 grep -v '^ *+' conftest.er1 >conftest.err
5507 rm -f conftest.er1
5508 cat conftest.err >&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } && {
5511 test -z "$ac_c_werror_flag" ||
5512 test ! -s conftest.err
5513 } && test -s conftest.$ac_objext; then
5514 ac_cv_have_decl_LLONG_MAX=yes
5515else
5516 echo "$as_me: failed program was:" >&5
5517sed 's/^/| /' conftest.$ac_ext >&5
5518
5519 ac_cv_have_decl_LLONG_MAX=no
5520fi
5521
5522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5523fi
5524{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5525echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
5526if test $ac_cv_have_decl_LLONG_MAX = yes; then
5527 have_llong_max=1
5528fi
5529
5530
5531use_stack_protector=1
5532
5533# Check whether --with-stackprotect was given.
5534if test "${with_stackprotect+set}" = set; then
5535 withval=$with_stackprotect;
5536 if test "x$withval" = "xno"; then
5537 use_stack_protector=0
5538 fi
5539fi
5540
5541
5542
5543if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5544 {
5545 { echo "$as_me:$LINENO: checking if $CC supports -Wall" >&5
5546echo $ECHO_N "checking if $CC supports -Wall... $ECHO_C" >&6; }
5547 saved_CFLAGS="$CFLAGS"
5548 CFLAGS="$CFLAGS -Wall"
5549 cat >conftest.$ac_ext <<_ACEOF
5550void main(void) { return 0; }
5551_ACEOF
5552rm -f conftest.$ac_objext
5553if { (ac_try="$ac_compile"
5554case "(($ac_try" in
5555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5556 *) ac_try_echo=$ac_try;;
5557esac
5558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5559 (eval "$ac_compile") 2>conftest.er1
5560 ac_status=$?
5561 grep -v '^ *+' conftest.er1 >conftest.err
5562 rm -f conftest.er1
5563 cat conftest.err >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } && {
5566 test -z "$ac_c_werror_flag" ||
5567 test ! -s conftest.err
5568 } && test -s conftest.$ac_objext; then
5569 { echo "$as_me:$LINENO: result: yes" >&5
5570echo "${ECHO_T}yes" >&6; }
5571else
5572 echo "$as_me: failed program was:" >&5
5573sed 's/^/| /' conftest.$ac_ext >&5
5574
5575 { echo "$as_me:$LINENO: result: no" >&5
5576echo "${ECHO_T}no" >&6; }
5577 CFLAGS="$saved_CFLAGS"
5578
5579fi
5580
5581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582}
5583 {
5584 { echo "$as_me:$LINENO: checking if $CC supports -Wpointer-arith" >&5
5585echo $ECHO_N "checking if $CC supports -Wpointer-arith... $ECHO_C" >&6; }
5586 saved_CFLAGS="$CFLAGS"
5587 CFLAGS="$CFLAGS -Wpointer-arith"
5588 cat >conftest.$ac_ext <<_ACEOF
5589void main(void) { return 0; }
5590_ACEOF
5591rm -f conftest.$ac_objext
5592if { (ac_try="$ac_compile"
5593case "(($ac_try" in
5594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595 *) ac_try_echo=$ac_try;;
5596esac
5597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5598 (eval "$ac_compile") 2>conftest.er1
5599 ac_status=$?
5600 grep -v '^ *+' conftest.er1 >conftest.err
5601 rm -f conftest.er1
5602 cat conftest.err >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } && {
5605 test -z "$ac_c_werror_flag" ||
5606 test ! -s conftest.err
5607 } && test -s conftest.$ac_objext; then
5608 { echo "$as_me:$LINENO: result: yes" >&5
5609echo "${ECHO_T}yes" >&6; }
5610else
5611 echo "$as_me: failed program was:" >&5
5612sed 's/^/| /' conftest.$ac_ext >&5
5613
5614 { echo "$as_me:$LINENO: result: no" >&5
5615echo "${ECHO_T}no" >&6; }
5616 CFLAGS="$saved_CFLAGS"
5617
5618fi
5619
5620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5621}
5622 {
5623 { echo "$as_me:$LINENO: checking if $CC supports -Wuninitialized" >&5
5624echo $ECHO_N "checking if $CC supports -Wuninitialized... $ECHO_C" >&6; }
5625 saved_CFLAGS="$CFLAGS"
5626 CFLAGS="$CFLAGS -Wuninitialized"
5627 cat >conftest.$ac_ext <<_ACEOF
5628void main(void) { return 0; }
5629_ACEOF
5630rm -f conftest.$ac_objext
5631if { (ac_try="$ac_compile"
5632case "(($ac_try" in
5633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634 *) ac_try_echo=$ac_try;;
5635esac
5636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5637 (eval "$ac_compile") 2>conftest.er1
5638 ac_status=$?
5639 grep -v '^ *+' conftest.er1 >conftest.err
5640 rm -f conftest.er1
5641 cat conftest.err >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); } && {
5644 test -z "$ac_c_werror_flag" ||
5645 test ! -s conftest.err
5646 } && test -s conftest.$ac_objext; then
5647 { echo "$as_me:$LINENO: result: yes" >&5
5648echo "${ECHO_T}yes" >&6; }
5649else
5650 echo "$as_me: failed program was:" >&5
5651sed 's/^/| /' conftest.$ac_ext >&5
5652
5653 { echo "$as_me:$LINENO: result: no" >&5
5654echo "${ECHO_T}no" >&6; }
5655 CFLAGS="$saved_CFLAGS"
5656
5657fi
5658
5659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5660}
5661 {
5662 { echo "$as_me:$LINENO: checking if $CC supports -Wsign-compare" >&5
5663echo $ECHO_N "checking if $CC supports -Wsign-compare... $ECHO_C" >&6; }
5664 saved_CFLAGS="$CFLAGS"
5665 CFLAGS="$CFLAGS -Wsign-compare"
5666 cat >conftest.$ac_ext <<_ACEOF
5667void main(void) { return 0; }
5668_ACEOF
5669rm -f conftest.$ac_objext
5670if { (ac_try="$ac_compile"
5671case "(($ac_try" in
5672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5673 *) ac_try_echo=$ac_try;;
5674esac
5675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5676 (eval "$ac_compile") 2>conftest.er1
5677 ac_status=$?
5678 grep -v '^ *+' conftest.er1 >conftest.err
5679 rm -f conftest.er1
5680 cat conftest.err >&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); } && {
5683 test -z "$ac_c_werror_flag" ||
5684 test ! -s conftest.err
5685 } && test -s conftest.$ac_objext; then
5686 { echo "$as_me:$LINENO: result: yes" >&5
5687echo "${ECHO_T}yes" >&6; }
5688else
5689 echo "$as_me: failed program was:" >&5
5690sed 's/^/| /' conftest.$ac_ext >&5
5691
5692 { echo "$as_me:$LINENO: result: no" >&5
5693echo "${ECHO_T}no" >&6; }
5694 CFLAGS="$saved_CFLAGS"
5695
5696fi
5697
5698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5699}
5700 {
5701 { echo "$as_me:$LINENO: checking if $CC supports -Wformat-security" >&5
5702echo $ECHO_N "checking if $CC supports -Wformat-security... $ECHO_C" >&6; }
5703 saved_CFLAGS="$CFLAGS"
5704 CFLAGS="$CFLAGS -Wformat-security"
5705 cat >conftest.$ac_ext <<_ACEOF
5706void main(void) { return 0; }
5707_ACEOF
5708rm -f conftest.$ac_objext
5709if { (ac_try="$ac_compile"
5710case "(($ac_try" in
5711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5712 *) ac_try_echo=$ac_try;;
5713esac
5714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5715 (eval "$ac_compile") 2>conftest.er1
5716 ac_status=$?
5717 grep -v '^ *+' conftest.er1 >conftest.err
5718 rm -f conftest.er1
5719 cat conftest.err >&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); } && {
5722 test -z "$ac_c_werror_flag" ||
5723 test ! -s conftest.err
5724 } && test -s conftest.$ac_objext; then
5725 { echo "$as_me:$LINENO: result: yes" >&5
5726echo "${ECHO_T}yes" >&6; }
5727else
5728 echo "$as_me: failed program was:" >&5
5729sed 's/^/| /' conftest.$ac_ext >&5
5730
5731 { echo "$as_me:$LINENO: result: no" >&5
5732echo "${ECHO_T}no" >&6; }
5733 CFLAGS="$saved_CFLAGS"
5734
5735fi
5736
5737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5738}
5739 {
5740 { echo "$as_me:$LINENO: checking if $CC supports -Wno-pointer-sign" >&5
5741echo $ECHO_N "checking if $CC supports -Wno-pointer-sign... $ECHO_C" >&6; }
5742 saved_CFLAGS="$CFLAGS"
5743 CFLAGS="$CFLAGS -Wno-pointer-sign"
5744 cat >conftest.$ac_ext <<_ACEOF
5745void main(void) { return 0; }
5746_ACEOF
5747rm -f conftest.$ac_objext
5748if { (ac_try="$ac_compile"
5749case "(($ac_try" in
5750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751 *) ac_try_echo=$ac_try;;
5752esac
5753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754 (eval "$ac_compile") 2>conftest.er1
5755 ac_status=$?
5756 grep -v '^ *+' conftest.er1 >conftest.err
5757 rm -f conftest.er1
5758 cat conftest.err >&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); } && {
5761 test -z "$ac_c_werror_flag" ||
5762 test ! -s conftest.err
5763 } && test -s conftest.$ac_objext; then
5764 { echo "$as_me:$LINENO: result: yes" >&5
5765echo "${ECHO_T}yes" >&6; }
5766else
5767 echo "$as_me: failed program was:" >&5
5768sed 's/^/| /' conftest.$ac_ext >&5
5769
5770 { echo "$as_me:$LINENO: result: no" >&5
5771echo "${ECHO_T}no" >&6; }
5772 CFLAGS="$saved_CFLAGS"
5773
5774fi
5775
5776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777}
5778 {
5779 { echo "$as_me:$LINENO: checking if $CC supports -Wno-unused-result" >&5
5780echo $ECHO_N "checking if $CC supports -Wno-unused-result... $ECHO_C" >&6; }
5781 saved_CFLAGS="$CFLAGS"
5782 CFLAGS="$CFLAGS -Wno-unused-result"
5783 cat >conftest.$ac_ext <<_ACEOF
5784void main(void) { return 0; }
5785_ACEOF
5786rm -f conftest.$ac_objext
5787if { (ac_try="$ac_compile"
5788case "(($ac_try" in
5789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790 *) ac_try_echo=$ac_try;;
5791esac
5792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5793 (eval "$ac_compile") 2>conftest.er1
5794 ac_status=$?
5795 grep -v '^ *+' conftest.er1 >conftest.err
5796 rm -f conftest.er1
5797 cat conftest.err >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } && {
5800 test -z "$ac_c_werror_flag" ||
5801 test ! -s conftest.err
5802 } && test -s conftest.$ac_objext; then
5803 { echo "$as_me:$LINENO: result: yes" >&5
5804echo "${ECHO_T}yes" >&6; }
5805else
5806 echo "$as_me: failed program was:" >&5
5807sed 's/^/| /' conftest.$ac_ext >&5
5808
5809 { echo "$as_me:$LINENO: result: no" >&5
5810echo "${ECHO_T}no" >&6; }
5811 CFLAGS="$saved_CFLAGS"
5812
5813fi
5814
5815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5816}
5817 {
5818 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
5819echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
5820 saved_CFLAGS="$CFLAGS"
5821 CFLAGS="$CFLAGS -fno-strict-aliasing"
5822 cat >conftest.$ac_ext <<_ACEOF
5823void main(void) { return 0; }
5824_ACEOF
5825rm -f conftest.$ac_objext
5826if { (ac_try="$ac_compile"
5827case "(($ac_try" in
5828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829 *) ac_try_echo=$ac_try;;
5830esac
5831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5832 (eval "$ac_compile") 2>conftest.er1
5833 ac_status=$?
5834 grep -v '^ *+' conftest.er1 >conftest.err
5835 rm -f conftest.er1
5836 cat conftest.err >&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); } && {
5839 test -z "$ac_c_werror_flag" ||
5840 test ! -s conftest.err
5841 } && test -s conftest.$ac_objext; then
5842 { echo "$as_me:$LINENO: result: yes" >&5
5843echo "${ECHO_T}yes" >&6; }
5844else
5845 echo "$as_me: failed program was:" >&5
5846sed 's/^/| /' conftest.$ac_ext >&5
5847
5848 { echo "$as_me:$LINENO: result: no" >&5
5849echo "${ECHO_T}no" >&6; }
5850 CFLAGS="$saved_CFLAGS"
5851
5852fi
5853
5854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855}
5856 { echo "$as_me:$LINENO: checking gcc version" >&5
5857echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
5858 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
5859 case $GCC_VER in
5860 1.*) no_attrib_nonnull=1 ;;
5861 2.8* | 2.9*)
5862 no_attrib_nonnull=1
5863 ;;
5864 2.*) no_attrib_nonnull=1 ;;
5865 *) ;;
5866 esac
5867 { echo "$as_me:$LINENO: result: $GCC_VER" >&5
5868echo "${ECHO_T}$GCC_VER" >&6; }
5869
5870 { echo "$as_me:$LINENO: checking if $CC accepts -fno-builtin-memset" >&5
5871echo $ECHO_N "checking if $CC accepts -fno-builtin-memset... $ECHO_C" >&6; }
5872 saved_CFLAGS="$CFLAGS"
5873 CFLAGS="$CFLAGS -fno-builtin-memset"
5874 cat >conftest.$ac_ext <<_ACEOF
5875/* confdefs.h. */
5876_ACEOF
5877cat confdefs.h >>conftest.$ac_ext
5878cat >>conftest.$ac_ext <<_ACEOF
5879/* end confdefs.h. */
5880
5881#include <string.h>
5882int main(void){char b[10]; memset(b, 0, sizeof(b));}
5883
5884_ACEOF
5885rm -f conftest.$ac_objext conftest$ac_exeext
5886if { (ac_try="$ac_link"
5887case "(($ac_try" in
5888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889 *) ac_try_echo=$ac_try;;
5890esac
5891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5892 (eval "$ac_link") 2>conftest.er1
5893 ac_status=$?
5894 grep -v '^ *+' conftest.er1 >conftest.err
5895 rm -f conftest.er1
5896 cat conftest.err >&5
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); } && {
5899 test -z "$ac_c_werror_flag" ||
5900 test ! -s conftest.err
5901 } && test -s conftest$ac_exeext &&
5902 $as_test_x conftest$ac_exeext; then
5903 { echo "$as_me:$LINENO: result: yes" >&5
5904echo "${ECHO_T}yes" >&6; }
5905else
5906 echo "$as_me: failed program was:" >&5
5907sed 's/^/| /' conftest.$ac_ext >&5
5908
5909 { echo "$as_me:$LINENO: result: no" >&5
5910echo "${ECHO_T}no" >&6; }
5911 CFLAGS="$saved_CFLAGS"
5912
5913fi
5914
5915rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5916 conftest$ac_exeext conftest.$ac_ext
5917
5918 # -fstack-protector-all doesn't always work for some GCC versions
5919 # and/or platforms, so we test if we can. If it's not supported
5920 # on a given platform gcc will emit a warning so we use -Werror.
5921 if test "x$use_stack_protector" = "x1"; then
5922 for t in -fstack-protector-all -fstack-protector; do
5923 { echo "$as_me:$LINENO: checking if $CC supports $t" >&5
5924echo $ECHO_N "checking if $CC supports $t... $ECHO_C" >&6; }
5925 saved_CFLAGS="$CFLAGS"
5926 saved_LDFLAGS="$LDFLAGS"
5927 CFLAGS="$CFLAGS $t -Werror"
5928 LDFLAGS="$LDFLAGS $t -Werror"
5929 cat >conftest.$ac_ext <<_ACEOF
5930/* confdefs.h. */
5931_ACEOF
5932cat confdefs.h >>conftest.$ac_ext
5933cat >>conftest.$ac_ext <<_ACEOF
5934/* end confdefs.h. */
5935
5936#include <stdio.h>
5937int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;}
5938
5939_ACEOF
5940rm -f conftest.$ac_objext conftest$ac_exeext
5941if { (ac_try="$ac_link"
5942case "(($ac_try" in
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5945esac
5946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947 (eval "$ac_link") 2>conftest.er1
5948 ac_status=$?
5949 grep -v '^ *+' conftest.er1 >conftest.err
5950 rm -f conftest.er1
5951 cat conftest.err >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } && {
5954 test -z "$ac_c_werror_flag" ||
5955 test ! -s conftest.err
5956 } && test -s conftest$ac_exeext &&
5957 $as_test_x conftest$ac_exeext; then
5958 { echo "$as_me:$LINENO: result: yes" >&5
5959echo "${ECHO_T}yes" >&6; }
5960 CFLAGS="$saved_CFLAGS $t"
5961 LDFLAGS="$saved_LDFLAGS $t"
5962 { echo "$as_me:$LINENO: checking if $t works" >&5
5963echo $ECHO_N "checking if $t works... $ECHO_C" >&6; }
5964 if test "$cross_compiling" = yes; then
5965 { echo "$as_me:$LINENO: WARNING: cross compiling: cannot test" >&5
5966echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
5967 break
5968
5969else
5970 cat >conftest.$ac_ext <<_ACEOF
5971/* confdefs.h. */
5972_ACEOF
5973cat confdefs.h >>conftest.$ac_ext
5974cat >>conftest.$ac_ext <<_ACEOF
5975/* end confdefs.h. */
5976
5977#include <stdio.h>
5978int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;}
5979
5980_ACEOF
5981rm -f conftest$ac_exeext
5982if { (ac_try="$ac_link"
5983case "(($ac_try" in
5984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985 *) ac_try_echo=$ac_try;;
5986esac
5987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5988 (eval "$ac_link") 2>&5
5989 ac_status=$?
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5992 { (case "(($ac_try" in
5993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5994 *) ac_try_echo=$ac_try;;
5995esac
5996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5997 (eval "$ac_try") 2>&5
5998 ac_status=$?
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; }; then
6001 { echo "$as_me:$LINENO: result: yes" >&5
6002echo "${ECHO_T}yes" >&6; }
6003 break
6004else
6005 echo "$as_me: program exited with status $ac_status" >&5
6006echo "$as_me: failed program was:" >&5
6007sed 's/^/| /' conftest.$ac_ext >&5
6008
6009( exit $ac_status )
6010 { echo "$as_me:$LINENO: result: no" >&5
6011echo "${ECHO_T}no" >&6; }
6012fi
6013rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6014fi
6015
6016
6017
6018else
6019 echo "$as_me: failed program was:" >&5
6020sed 's/^/| /' conftest.$ac_ext >&5
6021
6022 { echo "$as_me:$LINENO: result: no" >&5
6023echo "${ECHO_T}no" >&6; }
6024
6025fi
6026
6027rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6028 conftest$ac_exeext conftest.$ac_ext
6029 CFLAGS="$saved_CFLAGS"
6030 LDFLAGS="$saved_LDFLAGS"
6031 done
6032 fi
6033
6034 if test -z "$have_llong_max"; then
6035 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
6036 unset ac_cv_have_decl_LLONG_MAX
6037 saved_CFLAGS="$CFLAGS"
6038 CFLAGS="$CFLAGS -std=gnu99"
6039 { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
6040echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
6041if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
6042 echo $ECHO_N "(cached) $ECHO_C" >&6
6043else
6044 cat >conftest.$ac_ext <<_ACEOF
6045/* confdefs.h. */
6046_ACEOF
6047cat confdefs.h >>conftest.$ac_ext
6048cat >>conftest.$ac_ext <<_ACEOF
6049/* end confdefs.h. */
6050#include <limits.h>
6051
6052
6053int
6054main ()
6055{
6056#ifndef LLONG_MAX
6057 (void) LLONG_MAX;
6058#endif
6059
6060 ;
6061 return 0;
6062}
6063_ACEOF
6064rm -f conftest.$ac_objext
6065if { (ac_try="$ac_compile"
6066case "(($ac_try" in
6067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6068 *) ac_try_echo=$ac_try;;
6069esac
6070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6071 (eval "$ac_compile") 2>conftest.er1
6072 ac_status=$?
6073 grep -v '^ *+' conftest.er1 >conftest.err
6074 rm -f conftest.er1
6075 cat conftest.err >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } && {
6078 test -z "$ac_c_werror_flag" ||
6079 test ! -s conftest.err
6080 } && test -s conftest.$ac_objext; then
6081 ac_cv_have_decl_LLONG_MAX=yes
6082else
6083 echo "$as_me: failed program was:" >&5
6084sed 's/^/| /' conftest.$ac_ext >&5
6085
6086 ac_cv_have_decl_LLONG_MAX=no
6087fi
6088
6089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6090fi
6091{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
6092echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
6093if test $ac_cv_have_decl_LLONG_MAX = yes; then
6094 have_llong_max=1
6095else
6096 CFLAGS="$saved_CFLAGS"
6097fi
6098
6099 fi
6100fi
6101
6102if test "x$no_attrib_nonnull" != "x1" ; then
6103
6104cat >>confdefs.h <<\_ACEOF
6105#define HAVE_ATTRIBUTE__NONNULL__ 1
6106_ACEOF
6107
6108fi
6109
6110
6111# Check whether --with-rpath was given.
6112if test "${with_rpath+set}" = set; then
6113 withval=$with_rpath;
6114 if test "x$withval" = "xno" ; then
6115 need_dash_r=""
6116 fi
6117 if test "x$withval" = "xyes" ; then
6118 need_dash_r=1
6119 fi
6120
6121
6122fi
6123
6124
6125# Allow user to specify flags
6126
6127# Check whether --with-cflags was given.
6128if test "${with_cflags+set}" = set; then
6129 withval=$with_cflags;
6130 if test -n "$withval" && test "x$withval" != "xno" && \
6131 test "x${withval}" != "xyes"; then
6132 CFLAGS="$CFLAGS $withval"
6133 fi
6134
6135
6136fi
6137
6138
6139# Check whether --with-cppflags was given.
6140if test "${with_cppflags+set}" = set; then
6141 withval=$with_cppflags;
6142 if test -n "$withval" && test "x$withval" != "xno" && \
6143 test "x${withval}" != "xyes"; then
6144 CPPFLAGS="$CPPFLAGS $withval"
6145 fi
6146
6147
6148fi
6149
6150
6151# Check whether --with-ldflags was given.
6152if test "${with_ldflags+set}" = set; then
6153 withval=$with_ldflags;
6154 if test -n "$withval" && test "x$withval" != "xno" && \
6155 test "x${withval}" != "xyes"; then
6156 LDFLAGS="$LDFLAGS $withval"
6157 fi
6158
6159
6160fi
6161
6162
6163# Check whether --with-libs was given.
6164if test "${with_libs+set}" = set; then
6165 withval=$with_libs;
6166 if test -n "$withval" && test "x$withval" != "xno" && \
6167 test "x${withval}" != "xyes"; then
6168 LIBS="$LIBS $withval"
6169 fi
6170
6171
6172fi
6173
6174
6175# Check whether --with-Werror was given.
6176if test "${with_Werror+set}" = set; then
6177 withval=$with_Werror;
6178 if test -n "$withval" && test "x$withval" != "xno"; then
6179 werror_flags="-Werror"
6180 if test "x${withval}" != "xyes"; then
6181 werror_flags="$withval"
6182 fi
6183 fi
6184
6185
6186fi
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252for ac_header in \
6253 bstring.h \
6254 crypt.h \
6255 crypto/sha2.h \
6256 dirent.h \
6257 endian.h \
6258 features.h \
6259 fcntl.h \
6260 floatingpoint.h \
6261 getopt.h \
6262 glob.h \
6263 ia.h \
6264 iaf.h \
6265 limits.h \
6266 login.h \
6267 maillock.h \
6268 ndir.h \
6269 net/if_tun.h \
6270 netdb.h \
6271 netgroup.h \
6272 pam/pam_appl.h \
6273 paths.h \
6274 poll.h \
6275 pty.h \
6276 readpassphrase.h \
6277 rpc/types.h \
6278 security/pam_appl.h \
6279 sha2.h \
6280 shadow.h \
6281 stddef.h \
6282 stdint.h \
6283 string.h \
6284 strings.h \
6285 sys/audit.h \
6286 sys/bitypes.h \
6287 sys/bsdtty.h \
6288 sys/cdefs.h \
6289 sys/dir.h \
6290 sys/mman.h \
6291 sys/ndir.h \
6292 sys/poll.h \
6293 sys/prctl.h \
6294 sys/pstat.h \
6295 sys/select.h \
6296 sys/stat.h \
6297 sys/stream.h \
6298 sys/stropts.h \
6299 sys/strtio.h \
6300 sys/statvfs.h \
6301 sys/sysmacros.h \
6302 sys/time.h \
6303 sys/timers.h \
6304 sys/un.h \
6305 time.h \
6306 tmpdir.h \
6307 ttyent.h \
6308 ucred.h \
6309 unistd.h \
6310 usersec.h \
6311 util.h \
6312 utime.h \
6313 utmp.h \
6314 utmpx.h \
6315 vis.h \
6316
6317do
6318as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6319if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6320 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6321echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6322if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6324fi
6325ac_res=`eval echo '${'$as_ac_Header'}'`
6326 { echo "$as_me:$LINENO: result: $ac_res" >&5
6327echo "${ECHO_T}$ac_res" >&6; }
6328else
6329 # Is the header compilable?
6330{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6331echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6332cat >conftest.$ac_ext <<_ACEOF
6333/* confdefs.h. */
6334_ACEOF
6335cat confdefs.h >>conftest.$ac_ext
6336cat >>conftest.$ac_ext <<_ACEOF
6337/* end confdefs.h. */
6338$ac_includes_default
6339#include <$ac_header>
6340_ACEOF
6341rm -f conftest.$ac_objext
6342if { (ac_try="$ac_compile"
6343case "(($ac_try" in
6344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6345 *) ac_try_echo=$ac_try;;
6346esac
6347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6348 (eval "$ac_compile") 2>conftest.er1
6349 ac_status=$?
6350 grep -v '^ *+' conftest.er1 >conftest.err
6351 rm -f conftest.er1
6352 cat conftest.err >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } && {
6355 test -z "$ac_c_werror_flag" ||
6356 test ! -s conftest.err
6357 } && test -s conftest.$ac_objext; then
6358 ac_header_compiler=yes
6359else
6360 echo "$as_me: failed program was:" >&5
6361sed 's/^/| /' conftest.$ac_ext >&5
6362
6363 ac_header_compiler=no
6364fi
6365
6366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6367{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6368echo "${ECHO_T}$ac_header_compiler" >&6; }
6369
6370# Is the header present?
6371{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6372echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6373cat >conftest.$ac_ext <<_ACEOF
6374/* confdefs.h. */
6375_ACEOF
6376cat confdefs.h >>conftest.$ac_ext
6377cat >>conftest.$ac_ext <<_ACEOF
6378/* end confdefs.h. */
6379#include <$ac_header>
6380_ACEOF
6381if { (ac_try="$ac_cpp conftest.$ac_ext"
6382case "(($ac_try" in
6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6385esac
6386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6388 ac_status=$?
6389 grep -v '^ *+' conftest.er1 >conftest.err
6390 rm -f conftest.er1
6391 cat conftest.err >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } >/dev/null && {
6394 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6395 test ! -s conftest.err
6396 }; then
6397 ac_header_preproc=yes
6398else
6399 echo "$as_me: failed program was:" >&5
6400sed 's/^/| /' conftest.$ac_ext >&5
6401
6402 ac_header_preproc=no
6403fi
6404
6405rm -f conftest.err conftest.$ac_ext
6406{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6407echo "${ECHO_T}$ac_header_preproc" >&6; }
6408
6409# So? What about this header?
6410case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6411 yes:no: )
6412 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6413echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6415echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6416 ac_header_preproc=yes
6417 ;;
6418 no:yes:* )
6419 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6420echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6421 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6422echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6423 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6424echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6425 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6426echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6428echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6429 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6430echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6431 ( cat <<\_ASBOX
6432## ------------------------------------------- ##
6433## Report this to openssh-unix-dev@mindrot.org ##
6434## ------------------------------------------- ##
6435_ASBOX
6436 ) | sed "s/^/$as_me: WARNING: /" >&2
6437 ;;
6438esac
6439{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6440echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6441if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
6443else
6444 eval "$as_ac_Header=\$ac_header_preproc"
6445fi
6446ac_res=`eval echo '${'$as_ac_Header'}'`
6447 { echo "$as_me:$LINENO: result: $ac_res" >&5
6448echo "${ECHO_T}$ac_res" >&6; }
6449
6450fi
6451if test `eval echo '${'$as_ac_Header'}'` = yes; then
6452 cat >>confdefs.h <<_ACEOF
6453#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6454_ACEOF
6455
6456fi
6457
6458done
6459
6460
6461# lastlog.h requires sys/time.h to be included first on Solaris
6462
6463for ac_header in lastlog.h
6464do
6465as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6466{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6468if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6470else
6471 cat >conftest.$ac_ext <<_ACEOF
6472/* confdefs.h. */
6473_ACEOF
6474cat confdefs.h >>conftest.$ac_ext
6475cat >>conftest.$ac_ext <<_ACEOF
6476/* end confdefs.h. */
6477
6478#ifdef HAVE_SYS_TIME_H
6479# include <sys/time.h>
6480#endif
6481
6482
6483#include <$ac_header>
6484_ACEOF
6485rm -f conftest.$ac_objext
6486if { (ac_try="$ac_compile"
6487case "(($ac_try" in
6488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489 *) ac_try_echo=$ac_try;;
6490esac
6491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492 (eval "$ac_compile") 2>conftest.er1
6493 ac_status=$?
6494 grep -v '^ *+' conftest.er1 >conftest.err
6495 rm -f conftest.er1
6496 cat conftest.err >&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); } && {
6499 test -z "$ac_c_werror_flag" ||
6500 test ! -s conftest.err
6501 } && test -s conftest.$ac_objext; then
6502 eval "$as_ac_Header=yes"
6503else
6504 echo "$as_me: failed program was:" >&5
6505sed 's/^/| /' conftest.$ac_ext >&5
6506
6507 eval "$as_ac_Header=no"
6508fi
6509
6510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6511fi
6512ac_res=`eval echo '${'$as_ac_Header'}'`
6513 { echo "$as_me:$LINENO: result: $ac_res" >&5
6514echo "${ECHO_T}$ac_res" >&6; }
6515if test `eval echo '${'$as_ac_Header'}'` = yes; then
6516 cat >>confdefs.h <<_ACEOF
6517#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6518_ACEOF
6519
6520fi
6521
6522done
6523
6524
6525# sys/ptms.h requires sys/stream.h to be included first on Solaris
6526
6527for ac_header in sys/ptms.h
6528do
6529as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6530{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6531echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6532if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6533 echo $ECHO_N "(cached) $ECHO_C" >&6
6534else
6535 cat >conftest.$ac_ext <<_ACEOF
6536/* confdefs.h. */
6537_ACEOF
6538cat confdefs.h >>conftest.$ac_ext
6539cat >>conftest.$ac_ext <<_ACEOF
6540/* end confdefs.h. */
6541
6542#ifdef HAVE_SYS_STREAM_H
6543# include <sys/stream.h>
6544#endif
6545
6546
6547#include <$ac_header>
6548_ACEOF
6549rm -f conftest.$ac_objext
6550if { (ac_try="$ac_compile"
6551case "(($ac_try" in
6552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6553 *) ac_try_echo=$ac_try;;
6554esac
6555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6556 (eval "$ac_compile") 2>conftest.er1
6557 ac_status=$?
6558 grep -v '^ *+' conftest.er1 >conftest.err
6559 rm -f conftest.er1
6560 cat conftest.err >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } && {
6563 test -z "$ac_c_werror_flag" ||
6564 test ! -s conftest.err
6565 } && test -s conftest.$ac_objext; then
6566 eval "$as_ac_Header=yes"
6567else
6568 echo "$as_me: failed program was:" >&5
6569sed 's/^/| /' conftest.$ac_ext >&5
6570
6571 eval "$as_ac_Header=no"
6572fi
6573
6574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6575fi
6576ac_res=`eval echo '${'$as_ac_Header'}'`
6577 { echo "$as_me:$LINENO: result: $ac_res" >&5
6578echo "${ECHO_T}$ac_res" >&6; }
6579if test `eval echo '${'$as_ac_Header'}'` = yes; then
6580 cat >>confdefs.h <<_ACEOF
6581#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6582_ACEOF
6583
6584fi
6585
6586done
6587
6588
6589# login_cap.h requires sys/types.h on NetBSD
6590
6591for ac_header in login_cap.h
6592do
6593as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6594{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6595echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6596if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
6598else
6599 cat >conftest.$ac_ext <<_ACEOF
6600/* confdefs.h. */
6601_ACEOF
6602cat confdefs.h >>conftest.$ac_ext
6603cat >>conftest.$ac_ext <<_ACEOF
6604/* end confdefs.h. */
6605
6606#include <sys/types.h>
6607
6608
6609#include <$ac_header>
6610_ACEOF
6611rm -f conftest.$ac_objext
6612if { (ac_try="$ac_compile"
6613case "(($ac_try" in
6614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6615 *) ac_try_echo=$ac_try;;
6616esac
6617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6618 (eval "$ac_compile") 2>conftest.er1
6619 ac_status=$?
6620 grep -v '^ *+' conftest.er1 >conftest.err
6621 rm -f conftest.er1
6622 cat conftest.err >&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } && {
6625 test -z "$ac_c_werror_flag" ||
6626 test ! -s conftest.err
6627 } && test -s conftest.$ac_objext; then
6628 eval "$as_ac_Header=yes"
6629else
6630 echo "$as_me: failed program was:" >&5
6631sed 's/^/| /' conftest.$ac_ext >&5
6632
6633 eval "$as_ac_Header=no"
6634fi
6635
6636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6637fi
6638ac_res=`eval echo '${'$as_ac_Header'}'`
6639 { echo "$as_me:$LINENO: result: $ac_res" >&5
6640echo "${ECHO_T}$ac_res" >&6; }
6641if test `eval echo '${'$as_ac_Header'}'` = yes; then
6642 cat >>confdefs.h <<_ACEOF
6643#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6644_ACEOF
6645
6646fi
6647
6648done
6649
6650
6651# older BSDs need sys/param.h before sys/mount.h
6652
6653for ac_header in sys/mount.h
6654do
6655as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6656{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6658if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6660else
6661 cat >conftest.$ac_ext <<_ACEOF
6662/* confdefs.h. */
6663_ACEOF
6664cat confdefs.h >>conftest.$ac_ext
6665cat >>conftest.$ac_ext <<_ACEOF
6666/* end confdefs.h. */
6667
6668#include <sys/param.h>
6669
6670
6671#include <$ac_header>
6672_ACEOF
6673rm -f conftest.$ac_objext
6674if { (ac_try="$ac_compile"
6675case "(($ac_try" in
6676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6677 *) ac_try_echo=$ac_try;;
6678esac
6679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6680 (eval "$ac_compile") 2>conftest.er1
6681 ac_status=$?
6682 grep -v '^ *+' conftest.er1 >conftest.err
6683 rm -f conftest.er1
6684 cat conftest.err >&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } && {
6687 test -z "$ac_c_werror_flag" ||
6688 test ! -s conftest.err
6689 } && test -s conftest.$ac_objext; then
6690 eval "$as_ac_Header=yes"
6691else
6692 echo "$as_me: failed program was:" >&5
6693sed 's/^/| /' conftest.$ac_ext >&5
6694
6695 eval "$as_ac_Header=no"
6696fi
6697
6698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6699fi
6700ac_res=`eval echo '${'$as_ac_Header'}'`
6701 { echo "$as_me:$LINENO: result: $ac_res" >&5
6702echo "${ECHO_T}$ac_res" >&6; }
6703if test `eval echo '${'$as_ac_Header'}'` = yes; then
6704 cat >>confdefs.h <<_ACEOF
6705#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6706_ACEOF
6707
6708fi
6709
6710done
6711
6712
6713# Messages for features tested for in target-specific section
6714SIA_MSG="no"
6715SPC_MSG="no"
6716SP_MSG="no"
6717
6718# Check for some target-specific stuff
6719case "$host" in
6720*-*-aix*)
6721 # Some versions of VAC won't allow macro redefinitions at
6722 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
6723 # particularly with older versions of vac or xlc.
6724 # It also throws errors about null macro argments, but these are
6725 # not fatal.
6726 { echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5
6727echo $ECHO_N "checking if compiler allows macro redefinitions... $ECHO_C" >&6; }
6728 cat >conftest.$ac_ext <<_ACEOF
6729/* confdefs.h. */
6730_ACEOF
6731cat confdefs.h >>conftest.$ac_ext
6732cat >>conftest.$ac_ext <<_ACEOF
6733/* end confdefs.h. */
6734
6735#define testmacro foo
6736#define testmacro bar
6737int main(void) { exit(0); }
6738
6739_ACEOF
6740rm -f conftest.$ac_objext
6741if { (ac_try="$ac_compile"
6742case "(($ac_try" in
6743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6744 *) ac_try_echo=$ac_try;;
6745esac
6746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6747 (eval "$ac_compile") 2>conftest.er1
6748 ac_status=$?
6749 grep -v '^ *+' conftest.er1 >conftest.err
6750 rm -f conftest.er1
6751 cat conftest.err >&5
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); } && {
6754 test -z "$ac_c_werror_flag" ||
6755 test ! -s conftest.err
6756 } && test -s conftest.$ac_objext; then
6757 { echo "$as_me:$LINENO: result: yes" >&5
6758echo "${ECHO_T}yes" >&6; }
6759else
6760 echo "$as_me: failed program was:" >&5
6761sed 's/^/| /' conftest.$ac_ext >&5
6762
6763 { echo "$as_me:$LINENO: result: no" >&5
6764echo "${ECHO_T}no" >&6; }
6765 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
6766 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
6767 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6768 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6769
6770
6771fi
6772
6773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6774
6775 { echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5
6776echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; }
6777 if (test -z "$blibpath"); then
6778 blibpath="/usr/lib:/lib"
6779 fi
6780 saved_LDFLAGS="$LDFLAGS"
6781 if test "$GCC" = "yes"; then
6782 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
6783 else
6784 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
6785 fi
6786 for tryflags in $flags ;do
6787 if (test -z "$blibflags"); then
6788 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
6789 cat >conftest.$ac_ext <<_ACEOF
6790/* confdefs.h. */
6791_ACEOF
6792cat confdefs.h >>conftest.$ac_ext
6793cat >>conftest.$ac_ext <<_ACEOF
6794/* end confdefs.h. */
6795
6796int
6797main ()
6798{
6799
6800 ;
6801 return 0;
6802}
6803_ACEOF
6804rm -f conftest.$ac_objext conftest$ac_exeext
6805if { (ac_try="$ac_link"
6806case "(($ac_try" in
6807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6808 *) ac_try_echo=$ac_try;;
6809esac
6810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6811 (eval "$ac_link") 2>conftest.er1
6812 ac_status=$?
6813 grep -v '^ *+' conftest.er1 >conftest.err
6814 rm -f conftest.er1
6815 cat conftest.err >&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); } && {
6818 test -z "$ac_c_werror_flag" ||
6819 test ! -s conftest.err
6820 } && test -s conftest$ac_exeext &&
6821 $as_test_x conftest$ac_exeext; then
6822 blibflags=$tryflags
6823else
6824 echo "$as_me: failed program was:" >&5
6825sed 's/^/| /' conftest.$ac_ext >&5
6826
6827
6828fi
6829
6830rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6831 conftest$ac_exeext conftest.$ac_ext
6832 fi
6833 done
6834 if (test -z "$blibflags"); then
6835 { echo "$as_me:$LINENO: result: not found" >&5
6836echo "${ECHO_T}not found" >&6; }
6837 { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5
6838echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;}
6839 { (exit 1); exit 1; }; }
6840 else
6841 { echo "$as_me:$LINENO: result: $blibflags" >&5
6842echo "${ECHO_T}$blibflags" >&6; }
6843 fi
6844 LDFLAGS="$saved_LDFLAGS"
6845 { echo "$as_me:$LINENO: checking for authenticate" >&5
6846echo $ECHO_N "checking for authenticate... $ECHO_C" >&6; }
6847if test "${ac_cv_func_authenticate+set}" = set; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6849else
6850 cat >conftest.$ac_ext <<_ACEOF
6851/* confdefs.h. */
6852_ACEOF
6853cat confdefs.h >>conftest.$ac_ext
6854cat >>conftest.$ac_ext <<_ACEOF
6855/* end confdefs.h. */
6856/* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate.
6857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6858#define authenticate innocuous_authenticate
6859
6860/* System header to define __stub macros and hopefully few prototypes,
6861 which can conflict with char authenticate (); below.
6862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6863 <limits.h> exists even on freestanding compilers. */
6864
6865#ifdef __STDC__
6866# include <limits.h>
6867#else
6868# include <assert.h>
6869#endif
6870
6871#undef authenticate
6872
6873/* Override any GCC internal prototype to avoid an error.
6874 Use char because int might match the return type of a GCC
6875 builtin and then its argument prototype would still apply. */
6876#ifdef __cplusplus
6877extern "C"
6878#endif
6879char authenticate ();
6880/* The GNU C library defines this for functions which it implements
6881 to always fail with ENOSYS. Some functions are actually named
6882 something starting with __ and the normal name is an alias. */
6883#if defined __stub_authenticate || defined __stub___authenticate
6884choke me
6885#endif
6886
6887int
6888main ()
6889{
6890return authenticate ();
6891 ;
6892 return 0;
6893}
6894_ACEOF
6895rm -f conftest.$ac_objext conftest$ac_exeext
6896if { (ac_try="$ac_link"
6897case "(($ac_try" in
6898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6899 *) ac_try_echo=$ac_try;;
6900esac
6901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6902 (eval "$ac_link") 2>conftest.er1
6903 ac_status=$?
6904 grep -v '^ *+' conftest.er1 >conftest.err
6905 rm -f conftest.er1
6906 cat conftest.err >&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); } && {
6909 test -z "$ac_c_werror_flag" ||
6910 test ! -s conftest.err
6911 } && test -s conftest$ac_exeext &&
6912 $as_test_x conftest$ac_exeext; then
6913 ac_cv_func_authenticate=yes
6914else
6915 echo "$as_me: failed program was:" >&5
6916sed 's/^/| /' conftest.$ac_ext >&5
6917
6918 ac_cv_func_authenticate=no
6919fi
6920
6921rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6922 conftest$ac_exeext conftest.$ac_ext
6923fi
6924{ echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
6925echo "${ECHO_T}$ac_cv_func_authenticate" >&6; }
6926if test $ac_cv_func_authenticate = yes; then
6927
6928cat >>confdefs.h <<\_ACEOF
6929#define WITH_AIXAUTHENTICATE 1
6930_ACEOF
6931
6932else
6933 { echo "$as_me:$LINENO: checking for authenticate in -ls" >&5
6934echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6; }
6935if test "${ac_cv_lib_s_authenticate+set}" = set; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
6937else
6938 ac_check_lib_save_LIBS=$LIBS
6939LIBS="-ls $LIBS"
6940cat >conftest.$ac_ext <<_ACEOF
6941/* confdefs.h. */
6942_ACEOF
6943cat confdefs.h >>conftest.$ac_ext
6944cat >>conftest.$ac_ext <<_ACEOF
6945/* end confdefs.h. */
6946
6947/* Override any GCC internal prototype to avoid an error.
6948 Use char because int might match the return type of a GCC
6949 builtin and then its argument prototype would still apply. */
6950#ifdef __cplusplus
6951extern "C"
6952#endif
6953char authenticate ();
6954int
6955main ()
6956{
6957return authenticate ();
6958 ;
6959 return 0;
6960}
6961_ACEOF
6962rm -f conftest.$ac_objext conftest$ac_exeext
6963if { (ac_try="$ac_link"
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_link") 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_exeext &&
6979 $as_test_x conftest$ac_exeext; then
6980 ac_cv_lib_s_authenticate=yes
6981else
6982 echo "$as_me: failed program was:" >&5
6983sed 's/^/| /' conftest.$ac_ext >&5
6984
6985 ac_cv_lib_s_authenticate=no
6986fi
6987
6988rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6989 conftest$ac_exeext conftest.$ac_ext
6990LIBS=$ac_check_lib_save_LIBS
6991fi
6992{ echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5
6993echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6; }
6994if test $ac_cv_lib_s_authenticate = yes; then
6995 cat >>confdefs.h <<\_ACEOF
6996#define WITH_AIXAUTHENTICATE 1
6997_ACEOF
6998
6999 LIBS="$LIBS -ls"
7000
7001fi
7002
7003
7004fi
7005
7006 { echo "$as_me:$LINENO: checking whether authenticate is declared" >&5
7007echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6; }
7008if test "${ac_cv_have_decl_authenticate+set}" = set; then
7009 echo $ECHO_N "(cached) $ECHO_C" >&6
7010else
7011 cat >conftest.$ac_ext <<_ACEOF
7012/* confdefs.h. */
7013_ACEOF
7014cat confdefs.h >>conftest.$ac_ext
7015cat >>conftest.$ac_ext <<_ACEOF
7016/* end confdefs.h. */
7017#include <usersec.h>
7018
7019int
7020main ()
7021{
7022#ifndef authenticate
7023 (void) authenticate;
7024#endif
7025
7026 ;
7027 return 0;
7028}
7029_ACEOF
7030rm -f conftest.$ac_objext
7031if { (ac_try="$ac_compile"
7032case "(($ac_try" in
7033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7034 *) ac_try_echo=$ac_try;;
7035esac
7036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7037 (eval "$ac_compile") 2>conftest.er1
7038 ac_status=$?
7039 grep -v '^ *+' conftest.er1 >conftest.err
7040 rm -f conftest.er1
7041 cat conftest.err >&5
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); } && {
7044 test -z "$ac_c_werror_flag" ||
7045 test ! -s conftest.err
7046 } && test -s conftest.$ac_objext; then
7047 ac_cv_have_decl_authenticate=yes
7048else
7049 echo "$as_me: failed program was:" >&5
7050sed 's/^/| /' conftest.$ac_ext >&5
7051
7052 ac_cv_have_decl_authenticate=no
7053fi
7054
7055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7056fi
7057{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5
7058echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6; }
7059if test $ac_cv_have_decl_authenticate = yes; then
7060
7061cat >>confdefs.h <<_ACEOF
7062#define HAVE_DECL_AUTHENTICATE 1
7063_ACEOF
7064
7065
7066else
7067 cat >>confdefs.h <<_ACEOF
7068#define HAVE_DECL_AUTHENTICATE 0
7069_ACEOF
7070
7071
7072fi
7073{ echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5
7074echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6; }
7075if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then
7076 echo $ECHO_N "(cached) $ECHO_C" >&6
7077else
7078 cat >conftest.$ac_ext <<_ACEOF
7079/* confdefs.h. */
7080_ACEOF
7081cat confdefs.h >>conftest.$ac_ext
7082cat >>conftest.$ac_ext <<_ACEOF
7083/* end confdefs.h. */
7084#include <usersec.h>
7085
7086int
7087main ()
7088{
7089#ifndef loginrestrictions
7090 (void) loginrestrictions;
7091#endif
7092
7093 ;
7094 return 0;
7095}
7096_ACEOF
7097rm -f conftest.$ac_objext
7098if { (ac_try="$ac_compile"
7099case "(($ac_try" in
7100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7101 *) ac_try_echo=$ac_try;;
7102esac
7103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7104 (eval "$ac_compile") 2>conftest.er1
7105 ac_status=$?
7106 grep -v '^ *+' conftest.er1 >conftest.err
7107 rm -f conftest.er1
7108 cat conftest.err >&5
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); } && {
7111 test -z "$ac_c_werror_flag" ||
7112 test ! -s conftest.err
7113 } && test -s conftest.$ac_objext; then
7114 ac_cv_have_decl_loginrestrictions=yes
7115else
7116 echo "$as_me: failed program was:" >&5
7117sed 's/^/| /' conftest.$ac_ext >&5
7118
7119 ac_cv_have_decl_loginrestrictions=no
7120fi
7121
7122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7123fi
7124{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5
7125echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6; }
7126if test $ac_cv_have_decl_loginrestrictions = yes; then
7127
7128cat >>confdefs.h <<_ACEOF
7129#define HAVE_DECL_LOGINRESTRICTIONS 1
7130_ACEOF
7131
7132
7133else
7134 cat >>confdefs.h <<_ACEOF
7135#define HAVE_DECL_LOGINRESTRICTIONS 0
7136_ACEOF
7137
7138
7139fi
7140{ echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5
7141echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6; }
7142if test "${ac_cv_have_decl_loginsuccess+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7144else
7145 cat >conftest.$ac_ext <<_ACEOF
7146/* confdefs.h. */
7147_ACEOF
7148cat confdefs.h >>conftest.$ac_ext
7149cat >>conftest.$ac_ext <<_ACEOF
7150/* end confdefs.h. */
7151#include <usersec.h>
7152
7153int
7154main ()
7155{
7156#ifndef loginsuccess
7157 (void) loginsuccess;
7158#endif
7159
7160 ;
7161 return 0;
7162}
7163_ACEOF
7164rm -f conftest.$ac_objext
7165if { (ac_try="$ac_compile"
7166case "(($ac_try" in
7167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7168 *) ac_try_echo=$ac_try;;
7169esac
7170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7171 (eval "$ac_compile") 2>conftest.er1
7172 ac_status=$?
7173 grep -v '^ *+' conftest.er1 >conftest.err
7174 rm -f conftest.er1
7175 cat conftest.err >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); } && {
7178 test -z "$ac_c_werror_flag" ||
7179 test ! -s conftest.err
7180 } && test -s conftest.$ac_objext; then
7181 ac_cv_have_decl_loginsuccess=yes
7182else
7183 echo "$as_me: failed program was:" >&5
7184sed 's/^/| /' conftest.$ac_ext >&5
7185
7186 ac_cv_have_decl_loginsuccess=no
7187fi
7188
7189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7190fi
7191{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5
7192echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6; }
7193if test $ac_cv_have_decl_loginsuccess = yes; then
7194
7195cat >>confdefs.h <<_ACEOF
7196#define HAVE_DECL_LOGINSUCCESS 1
7197_ACEOF
7198
7199
7200else
7201 cat >>confdefs.h <<_ACEOF
7202#define HAVE_DECL_LOGINSUCCESS 0
7203_ACEOF
7204
7205
7206fi
7207{ echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5
7208echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6; }
7209if test "${ac_cv_have_decl_passwdexpired+set}" = set; then
7210 echo $ECHO_N "(cached) $ECHO_C" >&6
7211else
7212 cat >conftest.$ac_ext <<_ACEOF
7213/* confdefs.h. */
7214_ACEOF
7215cat confdefs.h >>conftest.$ac_ext
7216cat >>conftest.$ac_ext <<_ACEOF
7217/* end confdefs.h. */
7218#include <usersec.h>
7219
7220int
7221main ()
7222{
7223#ifndef passwdexpired
7224 (void) passwdexpired;
7225#endif
7226
7227 ;
7228 return 0;
7229}
7230_ACEOF
7231rm -f conftest.$ac_objext
7232if { (ac_try="$ac_compile"
7233case "(($ac_try" in
7234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7235 *) ac_try_echo=$ac_try;;
7236esac
7237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7238 (eval "$ac_compile") 2>conftest.er1
7239 ac_status=$?
7240 grep -v '^ *+' conftest.er1 >conftest.err
7241 rm -f conftest.er1
7242 cat conftest.err >&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); } && {
7245 test -z "$ac_c_werror_flag" ||
7246 test ! -s conftest.err
7247 } && test -s conftest.$ac_objext; then
7248 ac_cv_have_decl_passwdexpired=yes
7249else
7250 echo "$as_me: failed program was:" >&5
7251sed 's/^/| /' conftest.$ac_ext >&5
7252
7253 ac_cv_have_decl_passwdexpired=no
7254fi
7255
7256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7257fi
7258{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5
7259echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6; }
7260if test $ac_cv_have_decl_passwdexpired = yes; then
7261
7262cat >>confdefs.h <<_ACEOF
7263#define HAVE_DECL_PASSWDEXPIRED 1
7264_ACEOF
7265
7266
7267else
7268 cat >>confdefs.h <<_ACEOF
7269#define HAVE_DECL_PASSWDEXPIRED 0
7270_ACEOF
7271
7272
7273fi
7274{ echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5
7275echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6; }
7276if test "${ac_cv_have_decl_setauthdb+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7278else
7279 cat >conftest.$ac_ext <<_ACEOF
7280/* confdefs.h. */
7281_ACEOF
7282cat confdefs.h >>conftest.$ac_ext
7283cat >>conftest.$ac_ext <<_ACEOF
7284/* end confdefs.h. */
7285#include <usersec.h>
7286
7287int
7288main ()
7289{
7290#ifndef setauthdb
7291 (void) setauthdb;
7292#endif
7293
7294 ;
7295 return 0;
7296}
7297_ACEOF
7298rm -f conftest.$ac_objext
7299if { (ac_try="$ac_compile"
7300case "(($ac_try" in
7301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7302 *) ac_try_echo=$ac_try;;
7303esac
7304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7305 (eval "$ac_compile") 2>conftest.er1
7306 ac_status=$?
7307 grep -v '^ *+' conftest.er1 >conftest.err
7308 rm -f conftest.er1
7309 cat conftest.err >&5
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); } && {
7312 test -z "$ac_c_werror_flag" ||
7313 test ! -s conftest.err
7314 } && test -s conftest.$ac_objext; then
7315 ac_cv_have_decl_setauthdb=yes
7316else
7317 echo "$as_me: failed program was:" >&5
7318sed 's/^/| /' conftest.$ac_ext >&5
7319
7320 ac_cv_have_decl_setauthdb=no
7321fi
7322
7323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7324fi
7325{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5
7326echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6; }
7327if test $ac_cv_have_decl_setauthdb = yes; then
7328
7329cat >>confdefs.h <<_ACEOF
7330#define HAVE_DECL_SETAUTHDB 1
7331_ACEOF
7332
7333
7334else
7335 cat >>confdefs.h <<_ACEOF
7336#define HAVE_DECL_SETAUTHDB 0
7337_ACEOF
7338
7339
7340fi
7341
7342
7343 { echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5
7344echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6; }
7345if test "${ac_cv_have_decl_loginfailed+set}" = set; then
7346 echo $ECHO_N "(cached) $ECHO_C" >&6
7347else
7348 cat >conftest.$ac_ext <<_ACEOF
7349/* confdefs.h. */
7350_ACEOF
7351cat confdefs.h >>conftest.$ac_ext
7352cat >>conftest.$ac_ext <<_ACEOF
7353/* end confdefs.h. */
7354#include <usersec.h>
7355
7356
7357int
7358main ()
7359{
7360#ifndef loginfailed
7361 (void) loginfailed;
7362#endif
7363
7364 ;
7365 return 0;
7366}
7367_ACEOF
7368rm -f conftest.$ac_objext
7369if { (ac_try="$ac_compile"
7370case "(($ac_try" in
7371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7372 *) ac_try_echo=$ac_try;;
7373esac
7374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7375 (eval "$ac_compile") 2>conftest.er1
7376 ac_status=$?
7377 grep -v '^ *+' conftest.er1 >conftest.err
7378 rm -f conftest.er1
7379 cat conftest.err >&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); } && {
7382 test -z "$ac_c_werror_flag" ||
7383 test ! -s conftest.err
7384 } && test -s conftest.$ac_objext; then
7385 ac_cv_have_decl_loginfailed=yes
7386else
7387 echo "$as_me: failed program was:" >&5
7388sed 's/^/| /' conftest.$ac_ext >&5
7389
7390 ac_cv_have_decl_loginfailed=no
7391fi
7392
7393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7394fi
7395{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5
7396echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6; }
7397if test $ac_cv_have_decl_loginfailed = yes; then
7398
7399cat >>confdefs.h <<_ACEOF
7400#define HAVE_DECL_LOGINFAILED 1
7401_ACEOF
7402
7403{ echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5
7404echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6; }
7405 cat >conftest.$ac_ext <<_ACEOF
7406/* confdefs.h. */
7407_ACEOF
7408cat confdefs.h >>conftest.$ac_ext
7409cat >>conftest.$ac_ext <<_ACEOF
7410/* end confdefs.h. */
7411#include <usersec.h>
7412int
7413main ()
7414{
7415(void)loginfailed("user","host","tty",0);
7416 ;
7417 return 0;
7418}
7419_ACEOF
7420rm -f conftest.$ac_objext
7421if { (ac_try="$ac_compile"
7422case "(($ac_try" in
7423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7424 *) ac_try_echo=$ac_try;;
7425esac
7426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7427 (eval "$ac_compile") 2>conftest.er1
7428 ac_status=$?
7429 grep -v '^ *+' conftest.er1 >conftest.err
7430 rm -f conftest.er1
7431 cat conftest.err >&5
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); } && {
7434 test -z "$ac_c_werror_flag" ||
7435 test ! -s conftest.err
7436 } && test -s conftest.$ac_objext; then
7437 { echo "$as_me:$LINENO: result: yes" >&5
7438echo "${ECHO_T}yes" >&6; }
7439
7440cat >>confdefs.h <<\_ACEOF
7441#define AIX_LOGINFAILED_4ARG 1
7442_ACEOF
7443
7444else
7445 echo "$as_me: failed program was:" >&5
7446sed 's/^/| /' conftest.$ac_ext >&5
7447
7448 { echo "$as_me:$LINENO: result: no" >&5
7449echo "${ECHO_T}no" >&6; }
7450
7451fi
7452
7453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7454else
7455 cat >>confdefs.h <<_ACEOF
7456#define HAVE_DECL_LOGINFAILED 0
7457_ACEOF
7458
7459
7460fi
7461
7462
7463
7464
7465for ac_func in getgrset setauthdb
7466do
7467as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7468{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7469echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7470if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7471 echo $ECHO_N "(cached) $ECHO_C" >&6
7472else
7473 cat >conftest.$ac_ext <<_ACEOF
7474/* confdefs.h. */
7475_ACEOF
7476cat confdefs.h >>conftest.$ac_ext
7477cat >>conftest.$ac_ext <<_ACEOF
7478/* end confdefs.h. */
7479/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7481#define $ac_func innocuous_$ac_func
7482
7483/* System header to define __stub macros and hopefully few prototypes,
7484 which can conflict with char $ac_func (); below.
7485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7486 <limits.h> exists even on freestanding compilers. */
7487
7488#ifdef __STDC__
7489# include <limits.h>
7490#else
7491# include <assert.h>
7492#endif
7493
7494#undef $ac_func
7495
7496/* Override any GCC internal prototype to avoid an error.
7497 Use char because int might match the return type of a GCC
7498 builtin and then its argument prototype would still apply. */
7499#ifdef __cplusplus
7500extern "C"
7501#endif
7502char $ac_func ();
7503/* The GNU C library defines this for functions which it implements
7504 to always fail with ENOSYS. Some functions are actually named
7505 something starting with __ and the normal name is an alias. */
7506#if defined __stub_$ac_func || defined __stub___$ac_func
7507choke me
7508#endif
7509
7510int
7511main ()
7512{
7513return $ac_func ();
7514 ;
7515 return 0;
7516}
7517_ACEOF
7518rm -f conftest.$ac_objext conftest$ac_exeext
7519if { (ac_try="$ac_link"
7520case "(($ac_try" in
7521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7522 *) ac_try_echo=$ac_try;;
7523esac
7524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7525 (eval "$ac_link") 2>conftest.er1
7526 ac_status=$?
7527 grep -v '^ *+' conftest.er1 >conftest.err
7528 rm -f conftest.er1
7529 cat conftest.err >&5
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); } && {
7532 test -z "$ac_c_werror_flag" ||
7533 test ! -s conftest.err
7534 } && test -s conftest$ac_exeext &&
7535 $as_test_x conftest$ac_exeext; then
7536 eval "$as_ac_var=yes"
7537else
7538 echo "$as_me: failed program was:" >&5
7539sed 's/^/| /' conftest.$ac_ext >&5
7540
7541 eval "$as_ac_var=no"
7542fi
7543
7544rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7545 conftest$ac_exeext conftest.$ac_ext
7546fi
7547ac_res=`eval echo '${'$as_ac_var'}'`
7548 { echo "$as_me:$LINENO: result: $ac_res" >&5
7549echo "${ECHO_T}$ac_res" >&6; }
7550if test `eval echo '${'$as_ac_var'}'` = yes; then
7551 cat >>confdefs.h <<_ACEOF
7552#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7553_ACEOF
7554
7555fi
7556done
7557
7558 { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
7559echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
7560if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7562else
7563 cat >conftest.$ac_ext <<_ACEOF
7564/* confdefs.h. */
7565_ACEOF
7566cat confdefs.h >>conftest.$ac_ext
7567cat >>conftest.$ac_ext <<_ACEOF
7568/* end confdefs.h. */
7569 #include <limits.h>
7570 #include <fcntl.h>
7571
7572
7573int
7574main ()
7575{
7576#ifndef F_CLOSEM
7577 (void) F_CLOSEM;
7578#endif
7579
7580 ;
7581 return 0;
7582}
7583_ACEOF
7584rm -f conftest.$ac_objext
7585if { (ac_try="$ac_compile"
7586case "(($ac_try" in
7587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7588 *) ac_try_echo=$ac_try;;
7589esac
7590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7591 (eval "$ac_compile") 2>conftest.er1
7592 ac_status=$?
7593 grep -v '^ *+' conftest.er1 >conftest.err
7594 rm -f conftest.er1
7595 cat conftest.err >&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); } && {
7598 test -z "$ac_c_werror_flag" ||
7599 test ! -s conftest.err
7600 } && test -s conftest.$ac_objext; then
7601 ac_cv_have_decl_F_CLOSEM=yes
7602else
7603 echo "$as_me: failed program was:" >&5
7604sed 's/^/| /' conftest.$ac_ext >&5
7605
7606 ac_cv_have_decl_F_CLOSEM=no
7607fi
7608
7609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7610fi
7611{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
7612echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
7613if test $ac_cv_have_decl_F_CLOSEM = yes; then
7614
7615cat >>confdefs.h <<\_ACEOF
7616#define HAVE_FCNTL_CLOSEM 1
7617_ACEOF
7618
7619fi
7620
7621 check_for_aix_broken_getaddrinfo=1
7622
7623cat >>confdefs.h <<\_ACEOF
7624#define BROKEN_REALPATH 1
7625_ACEOF
7626
7627
7628cat >>confdefs.h <<\_ACEOF
7629#define SETEUID_BREAKS_SETUID 1
7630_ACEOF
7631
7632
7633cat >>confdefs.h <<\_ACEOF
7634#define BROKEN_SETREUID 1
7635_ACEOF
7636
7637
7638cat >>confdefs.h <<\_ACEOF
7639#define BROKEN_SETREGID 1
7640_ACEOF
7641
7642
7643cat >>confdefs.h <<\_ACEOF
7644#define DISABLE_LASTLOG 1
7645_ACEOF
7646
7647
7648cat >>confdefs.h <<\_ACEOF
7649#define LOGIN_NEEDS_UTMPX 1
7650_ACEOF
7651
7652
7653cat >>confdefs.h <<\_ACEOF
7654#define SPT_TYPE SPT_REUSEARGV
7655_ACEOF
7656
7657
7658cat >>confdefs.h <<\_ACEOF
7659#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
7660_ACEOF
7661
7662
7663cat >>confdefs.h <<\_ACEOF
7664#define PTY_ZEROREAD 1
7665_ACEOF
7666
7667 ;;
7668*-*-cygwin*)
7669 check_for_libcrypt_later=1
7670 LIBS="$LIBS /usr/lib/textreadmode.o"
7671
7672cat >>confdefs.h <<\_ACEOF
7673#define HAVE_CYGWIN 1
7674_ACEOF
7675
7676
7677cat >>confdefs.h <<\_ACEOF
7678#define USE_PIPES 1
7679_ACEOF
7680
7681
7682cat >>confdefs.h <<\_ACEOF
7683#define DISABLE_SHADOW 1
7684_ACEOF
7685
7686
7687cat >>confdefs.h <<\_ACEOF
7688#define NO_X11_UNIX_SOCKETS 1
7689_ACEOF
7690
7691
7692cat >>confdefs.h <<\_ACEOF
7693#define NO_IPPORT_RESERVED_CONCEPT 1
7694_ACEOF
7695
7696
7697cat >>confdefs.h <<\_ACEOF
7698#define DISABLE_FD_PASSING 1
7699_ACEOF
7700
7701
7702cat >>confdefs.h <<\_ACEOF
7703#define SSH_IOBUFSZ 65535
7704_ACEOF
7705
7706
7707cat >>confdefs.h <<\_ACEOF
7708#define FILESYSTEM_NO_BACKSLASH 1
7709_ACEOF
7710
7711 ;;
7712*-*-dgux*)
7713
7714cat >>confdefs.h <<\_ACEOF
7715#define IP_TOS_IS_BROKEN 1
7716_ACEOF
7717
7718 cat >>confdefs.h <<\_ACEOF
7719#define SETEUID_BREAKS_SETUID 1
7720_ACEOF
7721
7722 cat >>confdefs.h <<\_ACEOF
7723#define BROKEN_SETREUID 1
7724_ACEOF
7725
7726 cat >>confdefs.h <<\_ACEOF
7727#define BROKEN_SETREGID 1
7728_ACEOF
7729
7730 ;;
7731*-*-darwin*)
7732 { echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5
7733echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6; }
7734 if test "$cross_compiling" = yes; then
7735 { echo "$as_me:$LINENO: result: assume it is working" >&5
7736echo "${ECHO_T}assume it is working" >&6; }
7737else
7738 cat >conftest.$ac_ext <<_ACEOF
7739/* confdefs.h. */
7740_ACEOF
7741cat confdefs.h >>conftest.$ac_ext
7742cat >>conftest.$ac_ext <<_ACEOF
7743/* end confdefs.h. */
7744#include <mach-o/dyld.h>
7745main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
7746 exit(0);
7747 else
7748 exit(1);
7749}
7750_ACEOF
7751rm -f conftest$ac_exeext
7752if { (ac_try="$ac_link"
7753case "(($ac_try" in
7754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7755 *) ac_try_echo=$ac_try;;
7756esac
7757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7758 (eval "$ac_link") 2>&5
7759 ac_status=$?
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7762 { (case "(($ac_try" in
7763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7764 *) ac_try_echo=$ac_try;;
7765esac
7766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7767 (eval "$ac_try") 2>&5
7768 ac_status=$?
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); }; }; then
7771 { echo "$as_me:$LINENO: result: working" >&5
7772echo "${ECHO_T}working" >&6; }
7773else
7774 echo "$as_me: program exited with status $ac_status" >&5
7775echo "$as_me: failed program was:" >&5
7776sed 's/^/| /' conftest.$ac_ext >&5
7777
7778( exit $ac_status )
7779{ echo "$as_me:$LINENO: result: buggy" >&5
7780echo "${ECHO_T}buggy" >&6; }
7781
7782cat >>confdefs.h <<\_ACEOF
7783#define BROKEN_GETADDRINFO 1
7784_ACEOF
7785
7786fi
7787rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7788fi
7789
7790
7791 cat >>confdefs.h <<\_ACEOF
7792#define SETEUID_BREAKS_SETUID 1
7793_ACEOF
7794
7795 cat >>confdefs.h <<\_ACEOF
7796#define BROKEN_SETREUID 1
7797_ACEOF
7798
7799 cat >>confdefs.h <<\_ACEOF
7800#define BROKEN_SETREGID 1
7801_ACEOF
7802
7803
7804cat >>confdefs.h <<\_ACEOF
7805#define BROKEN_GLOB 1
7806_ACEOF
7807
7808
7809cat >>confdefs.h <<_ACEOF
7810#define BIND_8_COMPAT 1
7811_ACEOF
7812
7813
7814cat >>confdefs.h <<\_ACEOF
7815#define SSH_TUN_FREEBSD 1
7816_ACEOF
7817
7818
7819cat >>confdefs.h <<\_ACEOF
7820#define SSH_TUN_COMPAT_AF 1
7821_ACEOF
7822
7823
7824cat >>confdefs.h <<\_ACEOF
7825#define SSH_TUN_PREPEND_AF 1
7826_ACEOF
7827
7828
7829 { echo "$as_me:$LINENO: checking whether AU_IPv4 is declared" >&5
7830echo $ECHO_N "checking whether AU_IPv4 is declared... $ECHO_C" >&6; }
7831if test "${ac_cv_have_decl_AU_IPv4+set}" = set; then
7832 echo $ECHO_N "(cached) $ECHO_C" >&6
7833else
7834 cat >conftest.$ac_ext <<_ACEOF
7835/* confdefs.h. */
7836_ACEOF
7837cat confdefs.h >>conftest.$ac_ext
7838cat >>conftest.$ac_ext <<_ACEOF
7839/* end confdefs.h. */
7840$ac_includes_default
7841int
7842main ()
7843{
7844#ifndef AU_IPv4
7845 (void) AU_IPv4;
7846#endif
7847
7848 ;
7849 return 0;
7850}
7851_ACEOF
7852rm -f conftest.$ac_objext
7853if { (ac_try="$ac_compile"
7854case "(($ac_try" in
7855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856 *) ac_try_echo=$ac_try;;
7857esac
7858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859 (eval "$ac_compile") 2>conftest.er1
7860 ac_status=$?
7861 grep -v '^ *+' conftest.er1 >conftest.err
7862 rm -f conftest.er1
7863 cat conftest.err >&5
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); } && {
7866 test -z "$ac_c_werror_flag" ||
7867 test ! -s conftest.err
7868 } && test -s conftest.$ac_objext; then
7869 ac_cv_have_decl_AU_IPv4=yes
7870else
7871 echo "$as_me: failed program was:" >&5
7872sed 's/^/| /' conftest.$ac_ext >&5
7873
7874 ac_cv_have_decl_AU_IPv4=no
7875fi
7876
7877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7878fi
7879{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_AU_IPv4" >&5
7880echo "${ECHO_T}$ac_cv_have_decl_AU_IPv4" >&6; }
7881if test $ac_cv_have_decl_AU_IPv4 = yes; then
7882 :
7883else
7884
7885cat >>confdefs.h <<\_ACEOF
7886#define AU_IPv4 0
7887_ACEOF
7888
7889 #include <bsm/audit.h>
7890
7891cat >>confdefs.h <<\_ACEOF
7892#define LASTLOG_WRITE_PUTUTXLINE 1
7893_ACEOF
7894
7895
7896fi
7897
7898 ;;
7899*-*-dragonfly*)
7900 SSHDLIBS="$SSHDLIBS -lcrypt"
7901 ;;
7902*-*-haiku*)
7903 LIBS="$LIBS -lbsd "
7904
7905{ echo "$as_me:$LINENO: checking for socket in -lnetwork" >&5
7906echo $ECHO_N "checking for socket in -lnetwork... $ECHO_C" >&6; }
7907if test "${ac_cv_lib_network_socket+set}" = set; then
7908 echo $ECHO_N "(cached) $ECHO_C" >&6
7909else
7910 ac_check_lib_save_LIBS=$LIBS
7911LIBS="-lnetwork $LIBS"
7912cat >conftest.$ac_ext <<_ACEOF
7913/* confdefs.h. */
7914_ACEOF
7915cat confdefs.h >>conftest.$ac_ext
7916cat >>conftest.$ac_ext <<_ACEOF
7917/* end confdefs.h. */
7918
7919/* Override any GCC internal prototype to avoid an error.
7920 Use char because int might match the return type of a GCC
7921 builtin and then its argument prototype would still apply. */
7922#ifdef __cplusplus
7923extern "C"
7924#endif
7925char socket ();
7926int
7927main ()
7928{
7929return socket ();
7930 ;
7931 return 0;
7932}
7933_ACEOF
7934rm -f conftest.$ac_objext conftest$ac_exeext
7935if { (ac_try="$ac_link"
7936case "(($ac_try" in
7937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7938 *) ac_try_echo=$ac_try;;
7939esac
7940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7941 (eval "$ac_link") 2>conftest.er1
7942 ac_status=$?
7943 grep -v '^ *+' conftest.er1 >conftest.err
7944 rm -f conftest.er1
7945 cat conftest.err >&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } && {
7948 test -z "$ac_c_werror_flag" ||
7949 test ! -s conftest.err
7950 } && test -s conftest$ac_exeext &&
7951 $as_test_x conftest$ac_exeext; then
7952 ac_cv_lib_network_socket=yes
7953else
7954 echo "$as_me: failed program was:" >&5
7955sed 's/^/| /' conftest.$ac_ext >&5
7956
7957 ac_cv_lib_network_socket=no
7958fi
7959
7960rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7961 conftest$ac_exeext conftest.$ac_ext
7962LIBS=$ac_check_lib_save_LIBS
7963fi
7964{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_socket" >&5
7965echo "${ECHO_T}$ac_cv_lib_network_socket" >&6; }
7966if test $ac_cv_lib_network_socket = yes; then
7967 cat >>confdefs.h <<_ACEOF
7968#define HAVE_LIBNETWORK 1
7969_ACEOF
7970
7971 LIBS="-lnetwork $LIBS"
7972
7973fi
7974
7975 cat >>confdefs.h <<\_ACEOF
7976#define HAVE_U_INT64_T 1
7977_ACEOF
7978
7979 MANTYPE=man
7980 ;;
7981*-*-hpux*)
7982 # first we define all of the options common to all HP-UX releases
7983 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
7984 IPADDR_IN_DISPLAY=yes
7985 cat >>confdefs.h <<\_ACEOF
7986#define USE_PIPES 1
7987_ACEOF
7988
7989
7990cat >>confdefs.h <<\_ACEOF
7991#define LOGIN_NO_ENDOPT 1
7992_ACEOF
7993
7994 cat >>confdefs.h <<\_ACEOF
7995#define LOGIN_NEEDS_UTMPX 1
7996_ACEOF
7997
7998
7999cat >>confdefs.h <<\_ACEOF
8000#define LOCKED_PASSWD_STRING "*"
8001_ACEOF
8002
8003 cat >>confdefs.h <<\_ACEOF
8004#define SPT_TYPE SPT_PSTAT
8005_ACEOF
8006
8007 MAIL="/var/mail/username"
8008 LIBS="$LIBS -lsec"
8009
8010{ echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
8011echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6; }
8012if test "${ac_cv_lib_xnet_t_error+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8014else
8015 ac_check_lib_save_LIBS=$LIBS
8016LIBS="-lxnet $LIBS"
8017cat >conftest.$ac_ext <<_ACEOF
8018/* confdefs.h. */
8019_ACEOF
8020cat confdefs.h >>conftest.$ac_ext
8021cat >>conftest.$ac_ext <<_ACEOF
8022/* end confdefs.h. */
8023
8024/* Override any GCC internal prototype to avoid an error.
8025 Use char because int might match the return type of a GCC
8026 builtin and then its argument prototype would still apply. */
8027#ifdef __cplusplus
8028extern "C"
8029#endif
8030char t_error ();
8031int
8032main ()
8033{
8034return t_error ();
8035 ;
8036 return 0;
8037}
8038_ACEOF
8039rm -f conftest.$ac_objext conftest$ac_exeext
8040if { (ac_try="$ac_link"
8041case "(($ac_try" in
8042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8043 *) ac_try_echo=$ac_try;;
8044esac
8045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8046 (eval "$ac_link") 2>conftest.er1
8047 ac_status=$?
8048 grep -v '^ *+' conftest.er1 >conftest.err
8049 rm -f conftest.er1
8050 cat conftest.err >&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); } && {
8053 test -z "$ac_c_werror_flag" ||
8054 test ! -s conftest.err
8055 } && test -s conftest$ac_exeext &&
8056 $as_test_x conftest$ac_exeext; then
8057 ac_cv_lib_xnet_t_error=yes
8058else
8059 echo "$as_me: failed program was:" >&5
8060sed 's/^/| /' conftest.$ac_ext >&5
8061
8062 ac_cv_lib_xnet_t_error=no
8063fi
8064
8065rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8066 conftest$ac_exeext conftest.$ac_ext
8067LIBS=$ac_check_lib_save_LIBS
8068fi
8069{ echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
8070echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6; }
8071if test $ac_cv_lib_xnet_t_error = yes; then
8072 cat >>confdefs.h <<_ACEOF
8073#define HAVE_LIBXNET 1
8074_ACEOF
8075
8076 LIBS="-lxnet $LIBS"
8077
8078else
8079 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
8080echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
8081 { (exit 1); exit 1; }; }
8082fi
8083
8084
8085 # next, we define all of the options specific to major releases
8086 case "$host" in
8087 *-*-hpux10*)
8088 if test -z "$GCC"; then
8089 CFLAGS="$CFLAGS -Ae"
8090 fi
8091 ;;
8092 *-*-hpux11*)
8093
8094cat >>confdefs.h <<\_ACEOF
8095#define PAM_SUN_CODEBASE 1
8096_ACEOF
8097
8098
8099cat >>confdefs.h <<\_ACEOF
8100#define DISABLE_UTMP 1
8101_ACEOF
8102
8103
8104cat >>confdefs.h <<\_ACEOF
8105#define USE_BTMP 1
8106_ACEOF
8107
8108 check_for_hpux_broken_getaddrinfo=1
8109 check_for_conflicting_getspnam=1
8110 ;;
8111 esac
8112
8113 # lastly, we define options specific to minor releases
8114 case "$host" in
8115 *-*-hpux10.26)
8116
8117cat >>confdefs.h <<\_ACEOF
8118#define HAVE_SECUREWARE 1
8119_ACEOF
8120
8121 disable_ptmx_check=yes
8122 LIBS="$LIBS -lsecpw"
8123 ;;
8124 esac
8125 ;;
8126*-*-irix5*)
8127 PATH="$PATH:/usr/etc"
8128
8129cat >>confdefs.h <<\_ACEOF
8130#define BROKEN_INET_NTOA 1
8131_ACEOF
8132
8133 cat >>confdefs.h <<\_ACEOF
8134#define SETEUID_BREAKS_SETUID 1
8135_ACEOF
8136
8137 cat >>confdefs.h <<\_ACEOF
8138#define BROKEN_SETREUID 1
8139_ACEOF
8140
8141 cat >>confdefs.h <<\_ACEOF
8142#define BROKEN_SETREGID 1
8143_ACEOF
8144
8145
8146cat >>confdefs.h <<\_ACEOF
8147#define WITH_ABBREV_NO_TTY 1
8148_ACEOF
8149
8150 cat >>confdefs.h <<\_ACEOF
8151#define LOCKED_PASSWD_STRING "*LK*"
8152_ACEOF
8153
8154 ;;
8155*-*-irix6*)
8156 PATH="$PATH:/usr/etc"
8157
8158cat >>confdefs.h <<\_ACEOF
8159#define WITH_IRIX_ARRAY 1
8160_ACEOF
8161
8162
8163cat >>confdefs.h <<\_ACEOF
8164#define WITH_IRIX_PROJECT 1
8165_ACEOF
8166
8167
8168cat >>confdefs.h <<\_ACEOF
8169#define WITH_IRIX_AUDIT 1
8170_ACEOF
8171
8172 { echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
8173echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6; }
8174if test "${ac_cv_func_jlimit_startjob+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8176else
8177 cat >conftest.$ac_ext <<_ACEOF
8178/* confdefs.h. */
8179_ACEOF
8180cat confdefs.h >>conftest.$ac_ext
8181cat >>conftest.$ac_ext <<_ACEOF
8182/* end confdefs.h. */
8183/* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob.
8184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8185#define jlimit_startjob innocuous_jlimit_startjob
8186
8187/* System header to define __stub macros and hopefully few prototypes,
8188 which can conflict with char jlimit_startjob (); below.
8189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8190 <limits.h> exists even on freestanding compilers. */
8191
8192#ifdef __STDC__
8193# include <limits.h>
8194#else
8195# include <assert.h>
8196#endif
8197
8198#undef jlimit_startjob
8199
8200/* Override any GCC internal prototype to avoid an error.
8201 Use char because int might match the return type of a GCC
8202 builtin and then its argument prototype would still apply. */
8203#ifdef __cplusplus
8204extern "C"
8205#endif
8206char jlimit_startjob ();
8207/* The GNU C library defines this for functions which it implements
8208 to always fail with ENOSYS. Some functions are actually named
8209 something starting with __ and the normal name is an alias. */
8210#if defined __stub_jlimit_startjob || defined __stub___jlimit_startjob
8211choke me
8212#endif
8213
8214int
8215main ()
8216{
8217return jlimit_startjob ();
8218 ;
8219 return 0;
8220}
8221_ACEOF
8222rm -f conftest.$ac_objext conftest$ac_exeext
8223if { (ac_try="$ac_link"
8224case "(($ac_try" in
8225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226 *) ac_try_echo=$ac_try;;
8227esac
8228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8229 (eval "$ac_link") 2>conftest.er1
8230 ac_status=$?
8231 grep -v '^ *+' conftest.er1 >conftest.err
8232 rm -f conftest.er1
8233 cat conftest.err >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); } && {
8236 test -z "$ac_c_werror_flag" ||
8237 test ! -s conftest.err
8238 } && test -s conftest$ac_exeext &&
8239 $as_test_x conftest$ac_exeext; then
8240 ac_cv_func_jlimit_startjob=yes
8241else
8242 echo "$as_me: failed program was:" >&5
8243sed 's/^/| /' conftest.$ac_ext >&5
8244
8245 ac_cv_func_jlimit_startjob=no
8246fi
8247
8248rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8249 conftest$ac_exeext conftest.$ac_ext
8250fi
8251{ echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
8252echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6; }
8253if test $ac_cv_func_jlimit_startjob = yes; then
8254
8255cat >>confdefs.h <<\_ACEOF
8256#define WITH_IRIX_JOBS 1
8257_ACEOF
8258
8259fi
8260
8261 cat >>confdefs.h <<\_ACEOF
8262#define BROKEN_INET_NTOA 1
8263_ACEOF
8264
8265 cat >>confdefs.h <<\_ACEOF
8266#define SETEUID_BREAKS_SETUID 1
8267_ACEOF
8268
8269 cat >>confdefs.h <<\_ACEOF
8270#define BROKEN_SETREUID 1
8271_ACEOF
8272
8273 cat >>confdefs.h <<\_ACEOF
8274#define BROKEN_SETREGID 1
8275_ACEOF
8276
8277
8278cat >>confdefs.h <<\_ACEOF
8279#define BROKEN_UPDWTMPX 1
8280_ACEOF
8281
8282 cat >>confdefs.h <<\_ACEOF
8283#define WITH_ABBREV_NO_TTY 1
8284_ACEOF
8285
8286 cat >>confdefs.h <<\_ACEOF
8287#define LOCKED_PASSWD_STRING "*LK*"
8288_ACEOF
8289
8290 ;;
8291*-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
8292 check_for_libcrypt_later=1
8293 cat >>confdefs.h <<\_ACEOF
8294#define PAM_TTY_KLUDGE 1
8295_ACEOF
8296
8297 cat >>confdefs.h <<\_ACEOF
8298#define LOCKED_PASSWD_PREFIX "!"
8299_ACEOF
8300
8301 cat >>confdefs.h <<\_ACEOF
8302#define SPT_TYPE SPT_REUSEARGV
8303_ACEOF
8304
8305
8306cat >>confdefs.h <<\_ACEOF
8307#define _PATH_BTMP "/var/log/btmp"
8308_ACEOF
8309
8310
8311cat >>confdefs.h <<\_ACEOF
8312#define USE_BTMP 1
8313_ACEOF
8314
8315 ;;
8316*-*-linux*)
8317 no_dev_ptmx=1
8318 check_for_libcrypt_later=1
8319 check_for_openpty_ctty_bug=1
8320
8321cat >>confdefs.h <<\_ACEOF
8322#define PAM_TTY_KLUDGE 1
8323_ACEOF
8324
8325
8326cat >>confdefs.h <<\_ACEOF
8327#define LOCKED_PASSWD_PREFIX "!"
8328_ACEOF
8329
8330 cat >>confdefs.h <<\_ACEOF
8331#define SPT_TYPE SPT_REUSEARGV
8332_ACEOF
8333
8334
8335cat >>confdefs.h <<\_ACEOF
8336#define LINK_OPNOTSUPP_ERRNO EPERM
8337_ACEOF
8338
8339
8340cat >>confdefs.h <<\_ACEOF
8341#define _PATH_BTMP "/var/log/btmp"
8342_ACEOF
8343
8344 cat >>confdefs.h <<\_ACEOF
8345#define USE_BTMP 1
8346_ACEOF
8347
8348
8349cat >>confdefs.h <<\_ACEOF
8350#define LINUX_OOM_ADJUST 1
8351_ACEOF
8352
8353 inet6_default_4in6=yes
8354 case `uname -r` in
8355 1.*|2.0.*)
8356
8357cat >>confdefs.h <<\_ACEOF
8358#define BROKEN_CMSG_TYPE 1
8359_ACEOF
8360
8361 ;;
8362 esac
8363 # tun(4) forwarding compat code
8364
8365for ac_header in linux/if_tun.h
8366do
8367as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8368if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8370echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8371if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
8373fi
8374ac_res=`eval echo '${'$as_ac_Header'}'`
8375 { echo "$as_me:$LINENO: result: $ac_res" >&5
8376echo "${ECHO_T}$ac_res" >&6; }
8377else
8378 # Is the header compilable?
8379{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8380echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8381cat >conftest.$ac_ext <<_ACEOF
8382/* confdefs.h. */
8383_ACEOF
8384cat confdefs.h >>conftest.$ac_ext
8385cat >>conftest.$ac_ext <<_ACEOF
8386/* end confdefs.h. */
8387$ac_includes_default
8388#include <$ac_header>
8389_ACEOF
8390rm -f conftest.$ac_objext
8391if { (ac_try="$ac_compile"
8392case "(($ac_try" in
8393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394 *) ac_try_echo=$ac_try;;
8395esac
8396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397 (eval "$ac_compile") 2>conftest.er1
8398 ac_status=$?
8399 grep -v '^ *+' conftest.er1 >conftest.err
8400 rm -f conftest.er1
8401 cat conftest.err >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); } && {
8404 test -z "$ac_c_werror_flag" ||
8405 test ! -s conftest.err
8406 } && test -s conftest.$ac_objext; then
8407 ac_header_compiler=yes
8408else
8409 echo "$as_me: failed program was:" >&5
8410sed 's/^/| /' conftest.$ac_ext >&5
8411
8412 ac_header_compiler=no
8413fi
8414
8415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8416{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8417echo "${ECHO_T}$ac_header_compiler" >&6; }
8418
8419# Is the header present?
8420{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8421echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8422cat >conftest.$ac_ext <<_ACEOF
8423/* confdefs.h. */
8424_ACEOF
8425cat confdefs.h >>conftest.$ac_ext
8426cat >>conftest.$ac_ext <<_ACEOF
8427/* end confdefs.h. */
8428#include <$ac_header>
8429_ACEOF
8430if { (ac_try="$ac_cpp conftest.$ac_ext"
8431case "(($ac_try" in
8432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8433 *) ac_try_echo=$ac_try;;
8434esac
8435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8437 ac_status=$?
8438 grep -v '^ *+' conftest.er1 >conftest.err
8439 rm -f conftest.er1
8440 cat conftest.err >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); } >/dev/null && {
8443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8444 test ! -s conftest.err
8445 }; then
8446 ac_header_preproc=yes
8447else
8448 echo "$as_me: failed program was:" >&5
8449sed 's/^/| /' conftest.$ac_ext >&5
8450
8451 ac_header_preproc=no
8452fi
8453
8454rm -f conftest.err conftest.$ac_ext
8455{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8456echo "${ECHO_T}$ac_header_preproc" >&6; }
8457
8458# So? What about this header?
8459case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8460 yes:no: )
8461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8462echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8464echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8465 ac_header_preproc=yes
8466 ;;
8467 no:yes:* )
8468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8469echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8471echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8473echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8475echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8477echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8479echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8480 ( cat <<\_ASBOX
8481## ------------------------------------------- ##
8482## Report this to openssh-unix-dev@mindrot.org ##
8483## ------------------------------------------- ##
8484_ASBOX
8485 ) | sed "s/^/$as_me: WARNING: /" >&2
8486 ;;
8487esac
8488{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8490if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8491 echo $ECHO_N "(cached) $ECHO_C" >&6
8492else
8493 eval "$as_ac_Header=\$ac_header_preproc"
8494fi
8495ac_res=`eval echo '${'$as_ac_Header'}'`
8496 { echo "$as_me:$LINENO: result: $ac_res" >&5
8497echo "${ECHO_T}$ac_res" >&6; }
8498
8499fi
8500if test `eval echo '${'$as_ac_Header'}'` = yes; then
8501 cat >>confdefs.h <<_ACEOF
8502#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8503_ACEOF
8504
8505fi
8506
8507done
8508
8509 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
8510
8511cat >>confdefs.h <<\_ACEOF
8512#define SSH_TUN_LINUX 1
8513_ACEOF
8514
8515
8516cat >>confdefs.h <<\_ACEOF
8517#define SSH_TUN_COMPAT_AF 1
8518_ACEOF
8519
8520
8521cat >>confdefs.h <<\_ACEOF
8522#define SSH_TUN_PREPEND_AF 1
8523_ACEOF
8524
8525 fi
8526 ;;
8527mips-sony-bsd|mips-sony-newsos4)
8528
8529cat >>confdefs.h <<\_ACEOF
8530#define NEED_SETPGRP 1
8531_ACEOF
8532
8533 SONY=1
8534 ;;
8535*-*-netbsd*)
8536 check_for_libcrypt_before=1
8537 if test "x$withval" != "xno" ; then
8538 need_dash_r=1
8539 fi
8540
8541cat >>confdefs.h <<\_ACEOF
8542#define SSH_TUN_FREEBSD 1
8543_ACEOF
8544
8545 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8546 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8547echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8548if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
8550fi
8551{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8552echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8553else
8554 # Is the header compilable?
8555{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
8556echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
8557cat >conftest.$ac_ext <<_ACEOF
8558/* confdefs.h. */
8559_ACEOF
8560cat confdefs.h >>conftest.$ac_ext
8561cat >>conftest.$ac_ext <<_ACEOF
8562/* end confdefs.h. */
8563$ac_includes_default
8564#include <net/if_tap.h>
8565_ACEOF
8566rm -f conftest.$ac_objext
8567if { (ac_try="$ac_compile"
8568case "(($ac_try" in
8569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8570 *) ac_try_echo=$ac_try;;
8571esac
8572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8573 (eval "$ac_compile") 2>conftest.er1
8574 ac_status=$?
8575 grep -v '^ *+' conftest.er1 >conftest.err
8576 rm -f conftest.er1
8577 cat conftest.err >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); } && {
8580 test -z "$ac_c_werror_flag" ||
8581 test ! -s conftest.err
8582 } && test -s conftest.$ac_objext; then
8583 ac_header_compiler=yes
8584else
8585 echo "$as_me: failed program was:" >&5
8586sed 's/^/| /' conftest.$ac_ext >&5
8587
8588 ac_header_compiler=no
8589fi
8590
8591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8592{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8593echo "${ECHO_T}$ac_header_compiler" >&6; }
8594
8595# Is the header present?
8596{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
8597echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
8598cat >conftest.$ac_ext <<_ACEOF
8599/* confdefs.h. */
8600_ACEOF
8601cat confdefs.h >>conftest.$ac_ext
8602cat >>conftest.$ac_ext <<_ACEOF
8603/* end confdefs.h. */
8604#include <net/if_tap.h>
8605_ACEOF
8606if { (ac_try="$ac_cpp conftest.$ac_ext"
8607case "(($ac_try" in
8608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8609 *) ac_try_echo=$ac_try;;
8610esac
8611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8613 ac_status=$?
8614 grep -v '^ *+' conftest.er1 >conftest.err
8615 rm -f conftest.er1
8616 cat conftest.err >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } >/dev/null && {
8619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8620 test ! -s conftest.err
8621 }; then
8622 ac_header_preproc=yes
8623else
8624 echo "$as_me: failed program was:" >&5
8625sed 's/^/| /' conftest.$ac_ext >&5
8626
8627 ac_header_preproc=no
8628fi
8629
8630rm -f conftest.err conftest.$ac_ext
8631{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8632echo "${ECHO_T}$ac_header_preproc" >&6; }
8633
8634# So? What about this header?
8635case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8636 yes:no: )
8637 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
8638echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8639 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
8640echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
8641 ac_header_preproc=yes
8642 ;;
8643 no:yes:* )
8644 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
8645echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
8646 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
8647echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
8648 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
8649echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
8650 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
8651echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
8652 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
8653echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
8654 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
8655echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
8656 ( cat <<\_ASBOX
8657## ------------------------------------------- ##
8658## Report this to openssh-unix-dev@mindrot.org ##
8659## ------------------------------------------- ##
8660_ASBOX
8661 ) | sed "s/^/$as_me: WARNING: /" >&2
8662 ;;
8663esac
8664{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8665echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8666if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8667 echo $ECHO_N "(cached) $ECHO_C" >&6
8668else
8669 ac_cv_header_net_if_tap_h=$ac_header_preproc
8670fi
8671{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8672echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8673
8674fi
8675if test $ac_cv_header_net_if_tap_h = yes; then
8676 :
8677else
8678
8679cat >>confdefs.h <<\_ACEOF
8680#define SSH_TUN_NO_L2 1
8681_ACEOF
8682
8683fi
8684
8685
8686
8687cat >>confdefs.h <<\_ACEOF
8688#define SSH_TUN_PREPEND_AF 1
8689_ACEOF
8690
8691 ;;
8692*-*-freebsd*)
8693 check_for_libcrypt_later=1
8694
8695cat >>confdefs.h <<\_ACEOF
8696#define LOCKED_PASSWD_PREFIX "*LOCKED*"
8697_ACEOF
8698
8699
8700cat >>confdefs.h <<\_ACEOF
8701#define SSH_TUN_FREEBSD 1
8702_ACEOF
8703
8704 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8705 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8706echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8707if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8708 echo $ECHO_N "(cached) $ECHO_C" >&6
8709fi
8710{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8711echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8712else
8713 # Is the header compilable?
8714{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
8715echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
8716cat >conftest.$ac_ext <<_ACEOF
8717/* confdefs.h. */
8718_ACEOF
8719cat confdefs.h >>conftest.$ac_ext
8720cat >>conftest.$ac_ext <<_ACEOF
8721/* end confdefs.h. */
8722$ac_includes_default
8723#include <net/if_tap.h>
8724_ACEOF
8725rm -f conftest.$ac_objext
8726if { (ac_try="$ac_compile"
8727case "(($ac_try" in
8728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8729 *) ac_try_echo=$ac_try;;
8730esac
8731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8732 (eval "$ac_compile") 2>conftest.er1
8733 ac_status=$?
8734 grep -v '^ *+' conftest.er1 >conftest.err
8735 rm -f conftest.er1
8736 cat conftest.err >&5
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); } && {
8739 test -z "$ac_c_werror_flag" ||
8740 test ! -s conftest.err
8741 } && test -s conftest.$ac_objext; then
8742 ac_header_compiler=yes
8743else
8744 echo "$as_me: failed program was:" >&5
8745sed 's/^/| /' conftest.$ac_ext >&5
8746
8747 ac_header_compiler=no
8748fi
8749
8750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8751{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8752echo "${ECHO_T}$ac_header_compiler" >&6; }
8753
8754# Is the header present?
8755{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
8756echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
8757cat >conftest.$ac_ext <<_ACEOF
8758/* confdefs.h. */
8759_ACEOF
8760cat confdefs.h >>conftest.$ac_ext
8761cat >>conftest.$ac_ext <<_ACEOF
8762/* end confdefs.h. */
8763#include <net/if_tap.h>
8764_ACEOF
8765if { (ac_try="$ac_cpp conftest.$ac_ext"
8766case "(($ac_try" in
8767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8768 *) ac_try_echo=$ac_try;;
8769esac
8770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8772 ac_status=$?
8773 grep -v '^ *+' conftest.er1 >conftest.err
8774 rm -f conftest.er1
8775 cat conftest.err >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); } >/dev/null && {
8778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8779 test ! -s conftest.err
8780 }; then
8781 ac_header_preproc=yes
8782else
8783 echo "$as_me: failed program was:" >&5
8784sed 's/^/| /' conftest.$ac_ext >&5
8785
8786 ac_header_preproc=no
8787fi
8788
8789rm -f conftest.err conftest.$ac_ext
8790{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8791echo "${ECHO_T}$ac_header_preproc" >&6; }
8792
8793# So? What about this header?
8794case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8795 yes:no: )
8796 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
8797echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8798 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
8799echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
8800 ac_header_preproc=yes
8801 ;;
8802 no:yes:* )
8803 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
8804echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
8805 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
8806echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
8807 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
8808echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
8809 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
8810echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
8811 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
8812echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
8813 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
8814echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
8815 ( cat <<\_ASBOX
8816## ------------------------------------------- ##
8817## Report this to openssh-unix-dev@mindrot.org ##
8818## ------------------------------------------- ##
8819_ASBOX
8820 ) | sed "s/^/$as_me: WARNING: /" >&2
8821 ;;
8822esac
8823{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8824echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
8825if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8826 echo $ECHO_N "(cached) $ECHO_C" >&6
8827else
8828 ac_cv_header_net_if_tap_h=$ac_header_preproc
8829fi
8830{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8831echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
8832
8833fi
8834if test $ac_cv_header_net_if_tap_h = yes; then
8835 :
8836else
8837
8838cat >>confdefs.h <<\_ACEOF
8839#define SSH_TUN_NO_L2 1
8840_ACEOF
8841
8842fi
8843
8844
8845
8846cat >>confdefs.h <<\_ACEOF
8847#define BROKEN_GLOB 1
8848_ACEOF
8849
8850 ;;
8851*-*-bsdi*)
8852 cat >>confdefs.h <<\_ACEOF
8853#define SETEUID_BREAKS_SETUID 1
8854_ACEOF
8855
8856 cat >>confdefs.h <<\_ACEOF
8857#define BROKEN_SETREUID 1
8858_ACEOF
8859
8860 cat >>confdefs.h <<\_ACEOF
8861#define BROKEN_SETREGID 1
8862_ACEOF
8863
8864 ;;
8865*-next-*)
8866 conf_lastlog_location="/usr/adm/lastlog"
8867 conf_utmp_location=/etc/utmp
8868 conf_wtmp_location=/usr/adm/wtmp
8869 MAIL=/usr/spool/mail
8870
8871cat >>confdefs.h <<\_ACEOF
8872#define HAVE_NEXT 1
8873_ACEOF
8874
8875 cat >>confdefs.h <<\_ACEOF
8876#define BROKEN_REALPATH 1
8877_ACEOF
8878
8879 cat >>confdefs.h <<\_ACEOF
8880#define USE_PIPES 1
8881_ACEOF
8882
8883
8884cat >>confdefs.h <<\_ACEOF
8885#define BROKEN_SAVED_UIDS 1
8886_ACEOF
8887
8888 ;;
8889*-*-openbsd*)
8890
8891cat >>confdefs.h <<\_ACEOF
8892#define HAVE_ATTRIBUTE__SENTINEL__ 1
8893_ACEOF
8894
8895
8896cat >>confdefs.h <<\_ACEOF
8897#define HAVE_ATTRIBUTE__BOUNDED__ 1
8898_ACEOF
8899
8900
8901cat >>confdefs.h <<\_ACEOF
8902#define SSH_TUN_OPENBSD 1
8903_ACEOF
8904
8905
8906cat >>confdefs.h <<\_ACEOF
8907#define SYSLOG_R_SAFE_IN_SIGHAND 1
8908_ACEOF
8909
8910 ;;
8911*-*-solaris*)
8912 if test "x$withval" != "xno" ; then
8913 need_dash_r=1
8914 fi
8915 cat >>confdefs.h <<\_ACEOF
8916#define PAM_SUN_CODEBASE 1
8917_ACEOF
8918
8919 cat >>confdefs.h <<\_ACEOF
8920#define LOGIN_NEEDS_UTMPX 1
8921_ACEOF
8922
8923
8924cat >>confdefs.h <<\_ACEOF
8925#define LOGIN_NEEDS_TERM 1
8926_ACEOF
8927
8928 cat >>confdefs.h <<\_ACEOF
8929#define PAM_TTY_KLUDGE 1
8930_ACEOF
8931
8932
8933cat >>confdefs.h <<\_ACEOF
8934#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
8935_ACEOF
8936
8937 cat >>confdefs.h <<\_ACEOF
8938#define LOCKED_PASSWD_STRING "*LK*"
8939_ACEOF
8940
8941 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
8942
8943cat >>confdefs.h <<\_ACEOF
8944#define SSHD_ACQUIRES_CTTY 1
8945_ACEOF
8946
8947
8948cat >>confdefs.h <<\_ACEOF
8949#define PASSWD_NEEDS_USERNAME 1
8950_ACEOF
8951
8952
8953cat >>confdefs.h <<\_ACEOF
8954#define BROKEN_TCGETATTR_ICANON 1
8955_ACEOF
8956
8957 external_path_file=/etc/default/login
8958 # hardwire lastlog location (can't detect it on some versions)
8959 conf_lastlog_location="/var/adm/lastlog"
8960 { echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
8961echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6; }
8962 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
8963 if test "$sol2ver" -ge 8; then
8964 { echo "$as_me:$LINENO: result: yes" >&5
8965echo "${ECHO_T}yes" >&6; }
8966 cat >>confdefs.h <<\_ACEOF
8967#define DISABLE_UTMP 1
8968_ACEOF
8969
8970
8971cat >>confdefs.h <<\_ACEOF
8972#define DISABLE_WTMP 1
8973_ACEOF
8974
8975 else
8976 { echo "$as_me:$LINENO: result: no" >&5
8977echo "${ECHO_T}no" >&6; }
8978 fi
8979
8980# Check whether --with-solaris-contracts was given.
8981if test "${with_solaris_contracts+set}" = set; then
8982 withval=$with_solaris_contracts;
8983 { echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5
8984echo $ECHO_N "checking for ct_tmpl_activate in -lcontract... $ECHO_C" >&6; }
8985if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then
8986 echo $ECHO_N "(cached) $ECHO_C" >&6
8987else
8988 ac_check_lib_save_LIBS=$LIBS
8989LIBS="-lcontract $LIBS"
8990cat >conftest.$ac_ext <<_ACEOF
8991/* confdefs.h. */
8992_ACEOF
8993cat confdefs.h >>conftest.$ac_ext
8994cat >>conftest.$ac_ext <<_ACEOF
8995/* end confdefs.h. */
8996
8997/* Override any GCC internal prototype to avoid an error.
8998 Use char because int might match the return type of a GCC
8999 builtin and then its argument prototype would still apply. */
9000#ifdef __cplusplus
9001extern "C"
9002#endif
9003char ct_tmpl_activate ();
9004int
9005main ()
9006{
9007return ct_tmpl_activate ();
9008 ;
9009 return 0;
9010}
9011_ACEOF
9012rm -f conftest.$ac_objext conftest$ac_exeext
9013if { (ac_try="$ac_link"
9014case "(($ac_try" in
9015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9016 *) ac_try_echo=$ac_try;;
9017esac
9018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9019 (eval "$ac_link") 2>conftest.er1
9020 ac_status=$?
9021 grep -v '^ *+' conftest.er1 >conftest.err
9022 rm -f conftest.er1
9023 cat conftest.err >&5
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); } && {
9026 test -z "$ac_c_werror_flag" ||
9027 test ! -s conftest.err
9028 } && test -s conftest$ac_exeext &&
9029 $as_test_x conftest$ac_exeext; then
9030 ac_cv_lib_contract_ct_tmpl_activate=yes
9031else
9032 echo "$as_me: failed program was:" >&5
9033sed 's/^/| /' conftest.$ac_ext >&5
9034
9035 ac_cv_lib_contract_ct_tmpl_activate=no
9036fi
9037
9038rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9039 conftest$ac_exeext conftest.$ac_ext
9040LIBS=$ac_check_lib_save_LIBS
9041fi
9042{ echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
9043echo "${ECHO_T}$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
9044if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then
9045
9046cat >>confdefs.h <<\_ACEOF
9047#define USE_SOLARIS_PROCESS_CONTRACTS 1
9048_ACEOF
9049
9050 SSHDLIBS="$SSHDLIBS -lcontract"
9051 SPC_MSG="yes"
9052fi
9053
9054
9055fi
9056
9057
9058# Check whether --with-solaris-projects was given.
9059if test "${with_solaris_projects+set}" = set; then
9060 withval=$with_solaris_projects;
9061 { echo "$as_me:$LINENO: checking for setproject in -lproject" >&5
9062echo $ECHO_N "checking for setproject in -lproject... $ECHO_C" >&6; }
9063if test "${ac_cv_lib_project_setproject+set}" = set; then
9064 echo $ECHO_N "(cached) $ECHO_C" >&6
9065else
9066 ac_check_lib_save_LIBS=$LIBS
9067LIBS="-lproject $LIBS"
9068cat >conftest.$ac_ext <<_ACEOF
9069/* confdefs.h. */
9070_ACEOF
9071cat confdefs.h >>conftest.$ac_ext
9072cat >>conftest.$ac_ext <<_ACEOF
9073/* end confdefs.h. */
9074
9075/* Override any GCC internal prototype to avoid an error.
9076 Use char because int might match the return type of a GCC
9077 builtin and then its argument prototype would still apply. */
9078#ifdef __cplusplus
9079extern "C"
9080#endif
9081char setproject ();
9082int
9083main ()
9084{
9085return setproject ();
9086 ;
9087 return 0;
9088}
9089_ACEOF
9090rm -f conftest.$ac_objext conftest$ac_exeext
9091if { (ac_try="$ac_link"
9092case "(($ac_try" in
9093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9094 *) ac_try_echo=$ac_try;;
9095esac
9096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9097 (eval "$ac_link") 2>conftest.er1
9098 ac_status=$?
9099 grep -v '^ *+' conftest.er1 >conftest.err
9100 rm -f conftest.er1
9101 cat conftest.err >&5
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); } && {
9104 test -z "$ac_c_werror_flag" ||
9105 test ! -s conftest.err
9106 } && test -s conftest$ac_exeext &&
9107 $as_test_x conftest$ac_exeext; then
9108 ac_cv_lib_project_setproject=yes
9109else
9110 echo "$as_me: failed program was:" >&5
9111sed 's/^/| /' conftest.$ac_ext >&5
9112
9113 ac_cv_lib_project_setproject=no
9114fi
9115
9116rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9117 conftest$ac_exeext conftest.$ac_ext
9118LIBS=$ac_check_lib_save_LIBS
9119fi
9120{ echo "$as_me:$LINENO: result: $ac_cv_lib_project_setproject" >&5
9121echo "${ECHO_T}$ac_cv_lib_project_setproject" >&6; }
9122if test $ac_cv_lib_project_setproject = yes; then
9123
9124cat >>confdefs.h <<\_ACEOF
9125#define USE_SOLARIS_PROJECTS 1
9126_ACEOF
9127
9128 SSHDLIBS="$SSHDLIBS -lproject"
9129 SP_MSG="yes"
9130fi
9131
9132
9133fi
9134
9135 ;;
9136*-*-sunos4*)
9137 CPPFLAGS="$CPPFLAGS -DSUNOS4"
9138
9139for ac_func in getpwanam
9140do
9141as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9142{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9143echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9144if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9145 echo $ECHO_N "(cached) $ECHO_C" >&6
9146else
9147 cat >conftest.$ac_ext <<_ACEOF
9148/* confdefs.h. */
9149_ACEOF
9150cat confdefs.h >>conftest.$ac_ext
9151cat >>conftest.$ac_ext <<_ACEOF
9152/* end confdefs.h. */
9153/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9155#define $ac_func innocuous_$ac_func
9156
9157/* System header to define __stub macros and hopefully few prototypes,
9158 which can conflict with char $ac_func (); below.
9159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9160 <limits.h> exists even on freestanding compilers. */
9161
9162#ifdef __STDC__
9163# include <limits.h>
9164#else
9165# include <assert.h>
9166#endif
9167
9168#undef $ac_func
9169
9170/* Override any GCC internal prototype to avoid an error.
9171 Use char because int might match the return type of a GCC
9172 builtin and then its argument prototype would still apply. */
9173#ifdef __cplusplus
9174extern "C"
9175#endif
9176char $ac_func ();
9177/* The GNU C library defines this for functions which it implements
9178 to always fail with ENOSYS. Some functions are actually named
9179 something starting with __ and the normal name is an alias. */
9180#if defined __stub_$ac_func || defined __stub___$ac_func
9181choke me
9182#endif
9183
9184int
9185main ()
9186{
9187return $ac_func ();
9188 ;
9189 return 0;
9190}
9191_ACEOF
9192rm -f conftest.$ac_objext conftest$ac_exeext
9193if { (ac_try="$ac_link"
9194case "(($ac_try" in
9195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9196 *) ac_try_echo=$ac_try;;
9197esac
9198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9199 (eval "$ac_link") 2>conftest.er1
9200 ac_status=$?
9201 grep -v '^ *+' conftest.er1 >conftest.err
9202 rm -f conftest.er1
9203 cat conftest.err >&5
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); } && {
9206 test -z "$ac_c_werror_flag" ||
9207 test ! -s conftest.err
9208 } && test -s conftest$ac_exeext &&
9209 $as_test_x conftest$ac_exeext; then
9210 eval "$as_ac_var=yes"
9211else
9212 echo "$as_me: failed program was:" >&5
9213sed 's/^/| /' conftest.$ac_ext >&5
9214
9215 eval "$as_ac_var=no"
9216fi
9217
9218rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9219 conftest$ac_exeext conftest.$ac_ext
9220fi
9221ac_res=`eval echo '${'$as_ac_var'}'`
9222 { echo "$as_me:$LINENO: result: $ac_res" >&5
9223echo "${ECHO_T}$ac_res" >&6; }
9224if test `eval echo '${'$as_ac_var'}'` = yes; then
9225 cat >>confdefs.h <<_ACEOF
9226#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9227_ACEOF
9228
9229fi
9230done
9231
9232 cat >>confdefs.h <<\_ACEOF
9233#define PAM_SUN_CODEBASE 1
9234_ACEOF
9235
9236 conf_utmp_location=/etc/utmp
9237 conf_wtmp_location=/var/adm/wtmp
9238 conf_lastlog_location=/var/adm/lastlog
9239 cat >>confdefs.h <<\_ACEOF
9240#define USE_PIPES 1
9241_ACEOF
9242
9243 ;;
9244*-ncr-sysv*)
9245 LIBS="$LIBS -lc89"
9246 cat >>confdefs.h <<\_ACEOF
9247#define USE_PIPES 1
9248_ACEOF
9249
9250 cat >>confdefs.h <<\_ACEOF
9251#define SSHD_ACQUIRES_CTTY 1
9252_ACEOF
9253
9254 cat >>confdefs.h <<\_ACEOF
9255#define SETEUID_BREAKS_SETUID 1
9256_ACEOF
9257
9258 cat >>confdefs.h <<\_ACEOF
9259#define BROKEN_SETREUID 1
9260_ACEOF
9261
9262 cat >>confdefs.h <<\_ACEOF
9263#define BROKEN_SETREGID 1
9264_ACEOF
9265
9266 ;;
9267*-sni-sysv*)
9268 # /usr/ucblib MUST NOT be searched on ReliantUNIX
9269
9270{ echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9271echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; }
9272if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9273 echo $ECHO_N "(cached) $ECHO_C" >&6
9274else
9275 ac_check_lib_save_LIBS=$LIBS
9276LIBS="-ldl $LIBS"
9277cat >conftest.$ac_ext <<_ACEOF
9278/* confdefs.h. */
9279_ACEOF
9280cat confdefs.h >>conftest.$ac_ext
9281cat >>conftest.$ac_ext <<_ACEOF
9282/* end confdefs.h. */
9283
9284/* Override any GCC internal prototype to avoid an error.
9285 Use char because int might match the return type of a GCC
9286 builtin and then its argument prototype would still apply. */
9287#ifdef __cplusplus
9288extern "C"
9289#endif
9290char dlsym ();
9291int
9292main ()
9293{
9294return dlsym ();
9295 ;
9296 return 0;
9297}
9298_ACEOF
9299rm -f conftest.$ac_objext conftest$ac_exeext
9300if { (ac_try="$ac_link"
9301case "(($ac_try" in
9302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9303 *) ac_try_echo=$ac_try;;
9304esac
9305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9306 (eval "$ac_link") 2>conftest.er1
9307 ac_status=$?
9308 grep -v '^ *+' conftest.er1 >conftest.err
9309 rm -f conftest.er1
9310 cat conftest.err >&5
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); } && {
9313 test -z "$ac_c_werror_flag" ||
9314 test ! -s conftest.err
9315 } && test -s conftest$ac_exeext &&
9316 $as_test_x conftest$ac_exeext; then
9317 ac_cv_lib_dl_dlsym=yes
9318else
9319 echo "$as_me: failed program was:" >&5
9320sed 's/^/| /' conftest.$ac_ext >&5
9321
9322 ac_cv_lib_dl_dlsym=no
9323fi
9324
9325rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9326 conftest$ac_exeext conftest.$ac_ext
9327LIBS=$ac_check_lib_save_LIBS
9328fi
9329{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9330echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; }
9331if test $ac_cv_lib_dl_dlsym = yes; then
9332 cat >>confdefs.h <<_ACEOF
9333#define HAVE_LIBDL 1
9334_ACEOF
9335
9336 LIBS="-ldl $LIBS"
9337
9338fi
9339
9340 # -lresolv needs to be at the end of LIBS or DNS lookups break
9341 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
9342echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
9343if test "${ac_cv_lib_resolv_res_query+set}" = set; then
9344 echo $ECHO_N "(cached) $ECHO_C" >&6
9345else
9346 ac_check_lib_save_LIBS=$LIBS
9347LIBS="-lresolv $LIBS"
9348cat >conftest.$ac_ext <<_ACEOF
9349/* confdefs.h. */
9350_ACEOF
9351cat confdefs.h >>conftest.$ac_ext
9352cat >>conftest.$ac_ext <<_ACEOF
9353/* end confdefs.h. */
9354
9355/* Override any GCC internal prototype to avoid an error.
9356 Use char because int might match the return type of a GCC
9357 builtin and then its argument prototype would still apply. */
9358#ifdef __cplusplus
9359extern "C"
9360#endif
9361char res_query ();
9362int
9363main ()
9364{
9365return res_query ();
9366 ;
9367 return 0;
9368}
9369_ACEOF
9370rm -f conftest.$ac_objext conftest$ac_exeext
9371if { (ac_try="$ac_link"
9372case "(($ac_try" in
9373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9374 *) ac_try_echo=$ac_try;;
9375esac
9376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9377 (eval "$ac_link") 2>conftest.er1
9378 ac_status=$?
9379 grep -v '^ *+' conftest.er1 >conftest.err
9380 rm -f conftest.er1
9381 cat conftest.err >&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); } && {
9384 test -z "$ac_c_werror_flag" ||
9385 test ! -s conftest.err
9386 } && test -s conftest$ac_exeext &&
9387 $as_test_x conftest$ac_exeext; then
9388 ac_cv_lib_resolv_res_query=yes
9389else
9390 echo "$as_me: failed program was:" >&5
9391sed 's/^/| /' conftest.$ac_ext >&5
9392
9393 ac_cv_lib_resolv_res_query=no
9394fi
9395
9396rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9397 conftest$ac_exeext conftest.$ac_ext
9398LIBS=$ac_check_lib_save_LIBS
9399fi
9400{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
9401echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
9402if test $ac_cv_lib_resolv_res_query = yes; then
9403 LIBS="$LIBS -lresolv"
9404fi
9405
9406 IPADDR_IN_DISPLAY=yes
9407 cat >>confdefs.h <<\_ACEOF
9408#define USE_PIPES 1
9409_ACEOF
9410
9411 cat >>confdefs.h <<\_ACEOF
9412#define IP_TOS_IS_BROKEN 1
9413_ACEOF
9414
9415 cat >>confdefs.h <<\_ACEOF
9416#define SETEUID_BREAKS_SETUID 1
9417_ACEOF
9418
9419 cat >>confdefs.h <<\_ACEOF
9420#define BROKEN_SETREUID 1
9421_ACEOF
9422
9423 cat >>confdefs.h <<\_ACEOF
9424#define BROKEN_SETREGID 1
9425_ACEOF
9426
9427 cat >>confdefs.h <<\_ACEOF
9428#define SSHD_ACQUIRES_CTTY 1
9429_ACEOF
9430
9431 external_path_file=/etc/default/login
9432 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
9433 # Attention: always take care to bind libsocket and libnsl before libc,
9434 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
9435 ;;
9436# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
9437*-*-sysv4.2*)
9438 cat >>confdefs.h <<\_ACEOF
9439#define USE_PIPES 1
9440_ACEOF
9441
9442 cat >>confdefs.h <<\_ACEOF
9443#define SETEUID_BREAKS_SETUID 1
9444_ACEOF
9445
9446 cat >>confdefs.h <<\_ACEOF
9447#define BROKEN_SETREUID 1
9448_ACEOF
9449
9450 cat >>confdefs.h <<\_ACEOF
9451#define BROKEN_SETREGID 1
9452_ACEOF
9453
9454
9455cat >>confdefs.h <<\_ACEOF
9456#define PASSWD_NEEDS_USERNAME 1
9457_ACEOF
9458
9459 cat >>confdefs.h <<\_ACEOF
9460#define LOCKED_PASSWD_STRING "*LK*"
9461_ACEOF
9462
9463 ;;
9464# UnixWare 7.x, OpenUNIX 8
9465*-*-sysv5*)
9466 CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf"
9467
9468cat >>confdefs.h <<\_ACEOF
9469#define UNIXWARE_LONG_PASSWORDS 1
9470_ACEOF
9471
9472 cat >>confdefs.h <<\_ACEOF
9473#define USE_PIPES 1
9474_ACEOF
9475
9476 cat >>confdefs.h <<\_ACEOF
9477#define SETEUID_BREAKS_SETUID 1
9478_ACEOF
9479
9480 cat >>confdefs.h <<\_ACEOF
9481#define BROKEN_GETADDRINFO 1
9482_ACEOF
9483
9484 cat >>confdefs.h <<\_ACEOF
9485#define BROKEN_SETREUID 1
9486_ACEOF
9487
9488 cat >>confdefs.h <<\_ACEOF
9489#define BROKEN_SETREGID 1
9490_ACEOF
9491
9492 cat >>confdefs.h <<\_ACEOF
9493#define PASSWD_NEEDS_USERNAME 1
9494_ACEOF
9495
9496 case "$host" in
9497 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
9498 TEST_SHELL=/u95/bin/sh
9499
9500cat >>confdefs.h <<\_ACEOF
9501#define BROKEN_LIBIAF 1
9502_ACEOF
9503
9504 cat >>confdefs.h <<\_ACEOF
9505#define BROKEN_UPDWTMPX 1
9506_ACEOF
9507
9508 { echo "$as_me:$LINENO: checking for getluid in -lprot" >&5
9509echo $ECHO_N "checking for getluid in -lprot... $ECHO_C" >&6; }
9510if test "${ac_cv_lib_prot_getluid+set}" = set; then
9511 echo $ECHO_N "(cached) $ECHO_C" >&6
9512else
9513 ac_check_lib_save_LIBS=$LIBS
9514LIBS="-lprot $LIBS"
9515cat >conftest.$ac_ext <<_ACEOF
9516/* confdefs.h. */
9517_ACEOF
9518cat confdefs.h >>conftest.$ac_ext
9519cat >>conftest.$ac_ext <<_ACEOF
9520/* end confdefs.h. */
9521
9522/* Override any GCC internal prototype to avoid an error.
9523 Use char because int might match the return type of a GCC
9524 builtin and then its argument prototype would still apply. */
9525#ifdef __cplusplus
9526extern "C"
9527#endif
9528char getluid ();
9529int
9530main ()
9531{
9532return getluid ();
9533 ;
9534 return 0;
9535}
9536_ACEOF
9537rm -f conftest.$ac_objext conftest$ac_exeext
9538if { (ac_try="$ac_link"
9539case "(($ac_try" in
9540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9541 *) ac_try_echo=$ac_try;;
9542esac
9543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9544 (eval "$ac_link") 2>conftest.er1
9545 ac_status=$?
9546 grep -v '^ *+' conftest.er1 >conftest.err
9547 rm -f conftest.er1
9548 cat conftest.err >&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } && {
9551 test -z "$ac_c_werror_flag" ||
9552 test ! -s conftest.err
9553 } && test -s conftest$ac_exeext &&
9554 $as_test_x conftest$ac_exeext; then
9555 ac_cv_lib_prot_getluid=yes
9556else
9557 echo "$as_me: failed program was:" >&5
9558sed 's/^/| /' conftest.$ac_ext >&5
9559
9560 ac_cv_lib_prot_getluid=no
9561fi
9562
9563rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9564 conftest$ac_exeext conftest.$ac_ext
9565LIBS=$ac_check_lib_save_LIBS
9566fi
9567{ echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getluid" >&5
9568echo "${ECHO_T}$ac_cv_lib_prot_getluid" >&6; }
9569if test $ac_cv_lib_prot_getluid = yes; then
9570 LIBS="$LIBS -lprot"
9571
9572
9573for ac_func in getluid setluid
9574do
9575as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9576{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9577echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9578if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
9580else
9581 cat >conftest.$ac_ext <<_ACEOF
9582/* confdefs.h. */
9583_ACEOF
9584cat confdefs.h >>conftest.$ac_ext
9585cat >>conftest.$ac_ext <<_ACEOF
9586/* end confdefs.h. */
9587/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9589#define $ac_func innocuous_$ac_func
9590
9591/* System header to define __stub macros and hopefully few prototypes,
9592 which can conflict with char $ac_func (); below.
9593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9594 <limits.h> exists even on freestanding compilers. */
9595
9596#ifdef __STDC__
9597# include <limits.h>
9598#else
9599# include <assert.h>
9600#endif
9601
9602#undef $ac_func
9603
9604/* Override any GCC internal prototype to avoid an error.
9605 Use char because int might match the return type of a GCC
9606 builtin and then its argument prototype would still apply. */
9607#ifdef __cplusplus
9608extern "C"
9609#endif
9610char $ac_func ();
9611/* The GNU C library defines this for functions which it implements
9612 to always fail with ENOSYS. Some functions are actually named
9613 something starting with __ and the normal name is an alias. */
9614#if defined __stub_$ac_func || defined __stub___$ac_func
9615choke me
9616#endif
9617
9618int
9619main ()
9620{
9621return $ac_func ();
9622 ;
9623 return 0;
9624}
9625_ACEOF
9626rm -f conftest.$ac_objext conftest$ac_exeext
9627if { (ac_try="$ac_link"
9628case "(($ac_try" in
9629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9630 *) ac_try_echo=$ac_try;;
9631esac
9632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9633 (eval "$ac_link") 2>conftest.er1
9634 ac_status=$?
9635 grep -v '^ *+' conftest.er1 >conftest.err
9636 rm -f conftest.er1
9637 cat conftest.err >&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } && {
9640 test -z "$ac_c_werror_flag" ||
9641 test ! -s conftest.err
9642 } && test -s conftest$ac_exeext &&
9643 $as_test_x conftest$ac_exeext; then
9644 eval "$as_ac_var=yes"
9645else
9646 echo "$as_me: failed program was:" >&5
9647sed 's/^/| /' conftest.$ac_ext >&5
9648
9649 eval "$as_ac_var=no"
9650fi
9651
9652rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9653 conftest$ac_exeext conftest.$ac_ext
9654fi
9655ac_res=`eval echo '${'$as_ac_var'}'`
9656 { echo "$as_me:$LINENO: result: $ac_res" >&5
9657echo "${ECHO_T}$ac_res" >&6; }
9658if test `eval echo '${'$as_ac_var'}'` = yes; then
9659 cat >>confdefs.h <<_ACEOF
9660#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9661_ACEOF
9662
9663fi
9664done
9665
9666 cat >>confdefs.h <<\_ACEOF
9667#define HAVE_SECUREWARE 1
9668_ACEOF
9669
9670 cat >>confdefs.h <<\_ACEOF
9671#define DISABLE_SHADOW 1
9672_ACEOF
9673
9674
9675fi
9676
9677 ;;
9678 *) cat >>confdefs.h <<\_ACEOF
9679#define LOCKED_PASSWD_STRING "*LK*"
9680_ACEOF
9681
9682 check_for_libcrypt_later=1
9683 ;;
9684 esac
9685 ;;
9686*-*-sysv*)
9687 ;;
9688# SCO UNIX and OEM versions of SCO UNIX
9689*-*-sco3.2v4*)
9690 { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5
9691echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;}
9692 { (exit 1); exit 1; }; }
9693 ;;
9694# SCO OpenServer 5.x
9695*-*-sco3.2v5*)
9696 if test -z "$GCC"; then
9697 CFLAGS="$CFLAGS -belf"
9698 fi
9699 LIBS="$LIBS -lprot -lx -ltinfo -lm"
9700 no_dev_ptmx=1
9701 cat >>confdefs.h <<\_ACEOF
9702#define USE_PIPES 1
9703_ACEOF
9704
9705 cat >>confdefs.h <<\_ACEOF
9706#define HAVE_SECUREWARE 1
9707_ACEOF
9708
9709 cat >>confdefs.h <<\_ACEOF
9710#define DISABLE_SHADOW 1
9711_ACEOF
9712
9713 cat >>confdefs.h <<\_ACEOF
9714#define DISABLE_FD_PASSING 1
9715_ACEOF
9716
9717 cat >>confdefs.h <<\_ACEOF
9718#define SETEUID_BREAKS_SETUID 1
9719_ACEOF
9720
9721 cat >>confdefs.h <<\_ACEOF
9722#define BROKEN_GETADDRINFO 1
9723_ACEOF
9724
9725 cat >>confdefs.h <<\_ACEOF
9726#define BROKEN_SETREUID 1
9727_ACEOF
9728
9729 cat >>confdefs.h <<\_ACEOF
9730#define BROKEN_SETREGID 1
9731_ACEOF
9732
9733 cat >>confdefs.h <<\_ACEOF
9734#define WITH_ABBREV_NO_TTY 1
9735_ACEOF
9736
9737 cat >>confdefs.h <<\_ACEOF
9738#define BROKEN_UPDWTMPX 1
9739_ACEOF
9740
9741 cat >>confdefs.h <<\_ACEOF
9742#define PASSWD_NEEDS_USERNAME 1
9743_ACEOF
9744
9745
9746
9747for ac_func in getluid setluid
9748do
9749as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9750{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9751echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9752if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9754else
9755 cat >conftest.$ac_ext <<_ACEOF
9756/* confdefs.h. */
9757_ACEOF
9758cat confdefs.h >>conftest.$ac_ext
9759cat >>conftest.$ac_ext <<_ACEOF
9760/* end confdefs.h. */
9761/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9763#define $ac_func innocuous_$ac_func
9764
9765/* System header to define __stub macros and hopefully few prototypes,
9766 which can conflict with char $ac_func (); below.
9767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9768 <limits.h> exists even on freestanding compilers. */
9769
9770#ifdef __STDC__
9771# include <limits.h>
9772#else
9773# include <assert.h>
9774#endif
9775
9776#undef $ac_func
9777
9778/* Override any GCC internal prototype to avoid an error.
9779 Use char because int might match the return type of a GCC
9780 builtin and then its argument prototype would still apply. */
9781#ifdef __cplusplus
9782extern "C"
9783#endif
9784char $ac_func ();
9785/* The GNU C library defines this for functions which it implements
9786 to always fail with ENOSYS. Some functions are actually named
9787 something starting with __ and the normal name is an alias. */
9788#if defined __stub_$ac_func || defined __stub___$ac_func
9789choke me
9790#endif
9791
9792int
9793main ()
9794{
9795return $ac_func ();
9796 ;
9797 return 0;
9798}
9799_ACEOF
9800rm -f conftest.$ac_objext conftest$ac_exeext
9801if { (ac_try="$ac_link"
9802case "(($ac_try" in
9803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9804 *) ac_try_echo=$ac_try;;
9805esac
9806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9807 (eval "$ac_link") 2>conftest.er1
9808 ac_status=$?
9809 grep -v '^ *+' conftest.er1 >conftest.err
9810 rm -f conftest.er1
9811 cat conftest.err >&5
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); } && {
9814 test -z "$ac_c_werror_flag" ||
9815 test ! -s conftest.err
9816 } && test -s conftest$ac_exeext &&
9817 $as_test_x conftest$ac_exeext; then
9818 eval "$as_ac_var=yes"
9819else
9820 echo "$as_me: failed program was:" >&5
9821sed 's/^/| /' conftest.$ac_ext >&5
9822
9823 eval "$as_ac_var=no"
9824fi
9825
9826rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9827 conftest$ac_exeext conftest.$ac_ext
9828fi
9829ac_res=`eval echo '${'$as_ac_var'}'`
9830 { echo "$as_me:$LINENO: result: $ac_res" >&5
9831echo "${ECHO_T}$ac_res" >&6; }
9832if test `eval echo '${'$as_ac_var'}'` = yes; then
9833 cat >>confdefs.h <<_ACEOF
9834#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9835_ACEOF
9836
9837fi
9838done
9839
9840 MANTYPE=man
9841 TEST_SHELL=ksh
9842 ;;
9843*-*-unicosmk*)
9844
9845cat >>confdefs.h <<\_ACEOF
9846#define NO_SSH_LASTLOG 1
9847_ACEOF
9848
9849 cat >>confdefs.h <<\_ACEOF
9850#define SETEUID_BREAKS_SETUID 1
9851_ACEOF
9852
9853 cat >>confdefs.h <<\_ACEOF
9854#define BROKEN_SETREUID 1
9855_ACEOF
9856
9857 cat >>confdefs.h <<\_ACEOF
9858#define BROKEN_SETREGID 1
9859_ACEOF
9860
9861 cat >>confdefs.h <<\_ACEOF
9862#define USE_PIPES 1
9863_ACEOF
9864
9865 cat >>confdefs.h <<\_ACEOF
9866#define DISABLE_FD_PASSING 1
9867_ACEOF
9868
9869 LDFLAGS="$LDFLAGS"
9870 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
9871 MANTYPE=cat
9872 ;;
9873*-*-unicosmp*)
9874 cat >>confdefs.h <<\_ACEOF
9875#define SETEUID_BREAKS_SETUID 1
9876_ACEOF
9877
9878 cat >>confdefs.h <<\_ACEOF
9879#define BROKEN_SETREUID 1
9880_ACEOF
9881
9882 cat >>confdefs.h <<\_ACEOF
9883#define BROKEN_SETREGID 1
9884_ACEOF
9885
9886 cat >>confdefs.h <<\_ACEOF
9887#define WITH_ABBREV_NO_TTY 1
9888_ACEOF
9889
9890 cat >>confdefs.h <<\_ACEOF
9891#define USE_PIPES 1
9892_ACEOF
9893
9894 cat >>confdefs.h <<\_ACEOF
9895#define DISABLE_FD_PASSING 1
9896_ACEOF
9897
9898 LDFLAGS="$LDFLAGS"
9899 LIBS="$LIBS -lgen -lacid -ldb"
9900 MANTYPE=cat
9901 ;;
9902*-*-unicos*)
9903 cat >>confdefs.h <<\_ACEOF
9904#define SETEUID_BREAKS_SETUID 1
9905_ACEOF
9906
9907 cat >>confdefs.h <<\_ACEOF
9908#define BROKEN_SETREUID 1
9909_ACEOF
9910
9911 cat >>confdefs.h <<\_ACEOF
9912#define BROKEN_SETREGID 1
9913_ACEOF
9914
9915 cat >>confdefs.h <<\_ACEOF
9916#define USE_PIPES 1
9917_ACEOF
9918
9919 cat >>confdefs.h <<\_ACEOF
9920#define DISABLE_FD_PASSING 1
9921_ACEOF
9922
9923 cat >>confdefs.h <<\_ACEOF
9924#define NO_SSH_LASTLOG 1
9925_ACEOF
9926
9927 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
9928 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
9929 MANTYPE=cat
9930 ;;
9931*-dec-osf*)
9932 { echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
9933echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6; }
9934 no_osfsia=""
9935
9936# Check whether --with-osfsia was given.
9937if test "${with_osfsia+set}" = set; then
9938 withval=$with_osfsia;
9939 if test "x$withval" = "xno" ; then
9940 { echo "$as_me:$LINENO: result: disabled" >&5
9941echo "${ECHO_T}disabled" >&6; }
9942 no_osfsia=1
9943 fi
9944
9945fi
9946
9947 if test -z "$no_osfsia" ; then
9948 if test -f /etc/sia/matrix.conf; then
9949 { echo "$as_me:$LINENO: result: yes" >&5
9950echo "${ECHO_T}yes" >&6; }
9951
9952cat >>confdefs.h <<\_ACEOF
9953#define HAVE_OSF_SIA 1
9954_ACEOF
9955
9956
9957cat >>confdefs.h <<\_ACEOF
9958#define DISABLE_LOGIN 1
9959_ACEOF
9960
9961 cat >>confdefs.h <<\_ACEOF
9962#define DISABLE_FD_PASSING 1
9963_ACEOF
9964
9965 LIBS="$LIBS -lsecurity -ldb -lm -laud"
9966 SIA_MSG="yes"
9967 else
9968 { echo "$as_me:$LINENO: result: no" >&5
9969echo "${ECHO_T}no" >&6; }
9970
9971cat >>confdefs.h <<\_ACEOF
9972#define LOCKED_PASSWD_SUBSTR "Nologin"
9973_ACEOF
9974
9975 fi
9976 fi
9977 cat >>confdefs.h <<\_ACEOF
9978#define BROKEN_GETADDRINFO 1
9979_ACEOF
9980
9981 cat >>confdefs.h <<\_ACEOF
9982#define SETEUID_BREAKS_SETUID 1
9983_ACEOF
9984
9985 cat >>confdefs.h <<\_ACEOF
9986#define BROKEN_SETREUID 1
9987_ACEOF
9988
9989 cat >>confdefs.h <<\_ACEOF
9990#define BROKEN_SETREGID 1
9991_ACEOF
9992
9993
9994cat >>confdefs.h <<\_ACEOF
9995#define BROKEN_READV_COMPARISON 1
9996_ACEOF
9997
9998 ;;
9999
10000*-*-nto-qnx*)
10001 cat >>confdefs.h <<\_ACEOF
10002#define USE_PIPES 1
10003_ACEOF
10004
10005 cat >>confdefs.h <<\_ACEOF
10006#define NO_X11_UNIX_SOCKETS 1
10007_ACEOF
10008
10009
10010cat >>confdefs.h <<\_ACEOF
10011#define MISSING_NFDBITS 1
10012_ACEOF
10013
10014
10015cat >>confdefs.h <<\_ACEOF
10016#define MISSING_HOWMANY 1
10017_ACEOF
10018
10019
10020cat >>confdefs.h <<\_ACEOF
10021#define MISSING_FD_MASK 1
10022_ACEOF
10023
10024 cat >>confdefs.h <<\_ACEOF
10025#define DISABLE_LASTLOG 1
10026_ACEOF
10027
10028 cat >>confdefs.h <<\_ACEOF
10029#define SSHD_ACQUIRES_CTTY 1
10030_ACEOF
10031
10032
10033cat >>confdefs.h <<\_ACEOF
10034#define BROKEN_SHADOW_EXPIRE 1
10035_ACEOF
10036
10037 enable_etc_default_login=no # has incompatible /etc/default/login
10038 case "$host" in
10039 *-*-nto-qnx6*)
10040 cat >>confdefs.h <<\_ACEOF
10041#define DISABLE_FD_PASSING 1
10042_ACEOF
10043
10044 ;;
10045 esac
10046 ;;
10047
10048*-*-ultrix*)
10049
10050cat >>confdefs.h <<\_ACEOF
10051#define BROKEN_GETGROUPS 1
10052_ACEOF
10053
10054
10055cat >>confdefs.h <<\_ACEOF
10056#define BROKEN_MMAP 1
10057_ACEOF
10058
10059 cat >>confdefs.h <<\_ACEOF
10060#define NEED_SETPGRP 1
10061_ACEOF
10062
10063
10064cat >>confdefs.h <<\_ACEOF
10065#define HAVE_SYS_SYSLOG_H 1
10066_ACEOF
10067
10068 ;;
10069
10070*-*-lynxos)
10071 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
10072 cat >>confdefs.h <<\_ACEOF
10073#define MISSING_HOWMANY 1
10074_ACEOF
10075
10076
10077cat >>confdefs.h <<\_ACEOF
10078#define BROKEN_SETVBUF 1
10079_ACEOF
10080
10081 ;;
10082esac
10083
10084{ echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5
10085echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; }
10086if test "$cross_compiling" = yes; then
10087 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5
10088echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
10089
10090else
10091 cat >conftest.$ac_ext <<_ACEOF
10092/* confdefs.h. */
10093_ACEOF
10094cat confdefs.h >>conftest.$ac_ext
10095cat >>conftest.$ac_ext <<_ACEOF
10096/* end confdefs.h. */
10097
10098#include <stdio.h>
10099int main(){exit(0);}
10100
10101_ACEOF
10102rm -f conftest$ac_exeext
10103if { (ac_try="$ac_link"
10104case "(($ac_try" in
10105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10106 *) ac_try_echo=$ac_try;;
10107esac
10108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10109 (eval "$ac_link") 2>&5
10110 ac_status=$?
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10113 { (case "(($ac_try" in
10114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10115 *) ac_try_echo=$ac_try;;
10116esac
10117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10118 (eval "$ac_try") 2>&5
10119 ac_status=$?
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); }; }; then
10122 { echo "$as_me:$LINENO: result: yes" >&5
10123echo "${ECHO_T}yes" >&6; }
10124else
10125 echo "$as_me: program exited with status $ac_status" >&5
10126echo "$as_me: failed program was:" >&5
10127sed 's/^/| /' conftest.$ac_ext >&5
10128
10129( exit $ac_status )
10130
10131 { echo "$as_me:$LINENO: result: no" >&5
10132echo "${ECHO_T}no" >&6; }
10133 { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5
10134echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;}
10135 { (exit 1); exit 1; }; }
10136
10137fi
10138rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10139fi
10140
10141
10142
10143# Checks for libraries.
10144{ echo "$as_me:$LINENO: checking for yp_match" >&5
10145echo $ECHO_N "checking for yp_match... $ECHO_C" >&6; }
10146if test "${ac_cv_func_yp_match+set}" = set; then
10147 echo $ECHO_N "(cached) $ECHO_C" >&6
10148else
10149 cat >conftest.$ac_ext <<_ACEOF
10150/* confdefs.h. */
10151_ACEOF
10152cat confdefs.h >>conftest.$ac_ext
10153cat >>conftest.$ac_ext <<_ACEOF
10154/* end confdefs.h. */
10155/* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match.
10156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10157#define yp_match innocuous_yp_match
10158
10159/* System header to define __stub macros and hopefully few prototypes,
10160 which can conflict with char yp_match (); below.
10161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10162 <limits.h> exists even on freestanding compilers. */
10163
10164#ifdef __STDC__
10165# include <limits.h>
10166#else
10167# include <assert.h>
10168#endif
10169
10170#undef yp_match
10171
10172/* Override any GCC internal prototype to avoid an error.
10173 Use char because int might match the return type of a GCC
10174 builtin and then its argument prototype would still apply. */
10175#ifdef __cplusplus
10176extern "C"
10177#endif
10178char yp_match ();
10179/* The GNU C library defines this for functions which it implements
10180 to always fail with ENOSYS. Some functions are actually named
10181 something starting with __ and the normal name is an alias. */
10182#if defined __stub_yp_match || defined __stub___yp_match
10183choke me
10184#endif
10185
10186int
10187main ()
10188{
10189return yp_match ();
10190 ;
10191 return 0;
10192}
10193_ACEOF
10194rm -f conftest.$ac_objext conftest$ac_exeext
10195if { (ac_try="$ac_link"
10196case "(($ac_try" in
10197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10198 *) ac_try_echo=$ac_try;;
10199esac
10200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10201 (eval "$ac_link") 2>conftest.er1
10202 ac_status=$?
10203 grep -v '^ *+' conftest.er1 >conftest.err
10204 rm -f conftest.er1
10205 cat conftest.err >&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); } && {
10208 test -z "$ac_c_werror_flag" ||
10209 test ! -s conftest.err
10210 } && test -s conftest$ac_exeext &&
10211 $as_test_x conftest$ac_exeext; then
10212 ac_cv_func_yp_match=yes
10213else
10214 echo "$as_me: failed program was:" >&5
10215sed 's/^/| /' conftest.$ac_ext >&5
10216
10217 ac_cv_func_yp_match=no
10218fi
10219
10220rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10221 conftest$ac_exeext conftest.$ac_ext
10222fi
10223{ echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
10224echo "${ECHO_T}$ac_cv_func_yp_match" >&6; }
10225if test $ac_cv_func_yp_match = yes; then
10226 :
10227else
10228
10229{ echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
10230echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6; }
10231if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
10232 echo $ECHO_N "(cached) $ECHO_C" >&6
10233else
10234 ac_check_lib_save_LIBS=$LIBS
10235LIBS="-lnsl $LIBS"
10236cat >conftest.$ac_ext <<_ACEOF
10237/* confdefs.h. */
10238_ACEOF
10239cat confdefs.h >>conftest.$ac_ext
10240cat >>conftest.$ac_ext <<_ACEOF
10241/* end confdefs.h. */
10242
10243/* Override any GCC internal prototype to avoid an error.
10244 Use char because int might match the return type of a GCC
10245 builtin and then its argument prototype would still apply. */
10246#ifdef __cplusplus
10247extern "C"
10248#endif
10249char yp_match ();
10250int
10251main ()
10252{
10253return yp_match ();
10254 ;
10255 return 0;
10256}
10257_ACEOF
10258rm -f conftest.$ac_objext conftest$ac_exeext
10259if { (ac_try="$ac_link"
10260case "(($ac_try" in
10261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262 *) ac_try_echo=$ac_try;;
10263esac
10264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265 (eval "$ac_link") 2>conftest.er1
10266 ac_status=$?
10267 grep -v '^ *+' conftest.er1 >conftest.err
10268 rm -f conftest.er1
10269 cat conftest.err >&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); } && {
10272 test -z "$ac_c_werror_flag" ||
10273 test ! -s conftest.err
10274 } && test -s conftest$ac_exeext &&
10275 $as_test_x conftest$ac_exeext; then
10276 ac_cv_lib_nsl_yp_match=yes
10277else
10278 echo "$as_me: failed program was:" >&5
10279sed 's/^/| /' conftest.$ac_ext >&5
10280
10281 ac_cv_lib_nsl_yp_match=no
10282fi
10283
10284rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10285 conftest$ac_exeext conftest.$ac_ext
10286LIBS=$ac_check_lib_save_LIBS
10287fi
10288{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
10289echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6; }
10290if test $ac_cv_lib_nsl_yp_match = yes; then
10291 cat >>confdefs.h <<_ACEOF
10292#define HAVE_LIBNSL 1
10293_ACEOF
10294
10295 LIBS="-lnsl $LIBS"
10296
10297fi
10298
10299fi
10300
10301{ echo "$as_me:$LINENO: checking for setsockopt" >&5
10302echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; }
10303if test "${ac_cv_func_setsockopt+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10305else
10306 cat >conftest.$ac_ext <<_ACEOF
10307/* confdefs.h. */
10308_ACEOF
10309cat confdefs.h >>conftest.$ac_ext
10310cat >>conftest.$ac_ext <<_ACEOF
10311/* end confdefs.h. */
10312/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
10313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10314#define setsockopt innocuous_setsockopt
10315
10316/* System header to define __stub macros and hopefully few prototypes,
10317 which can conflict with char setsockopt (); below.
10318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10319 <limits.h> exists even on freestanding compilers. */
10320
10321#ifdef __STDC__
10322# include <limits.h>
10323#else
10324# include <assert.h>
10325#endif
10326
10327#undef setsockopt
10328
10329/* Override any GCC internal prototype to avoid an error.
10330 Use char because int might match the return type of a GCC
10331 builtin and then its argument prototype would still apply. */
10332#ifdef __cplusplus
10333extern "C"
10334#endif
10335char setsockopt ();
10336/* The GNU C library defines this for functions which it implements
10337 to always fail with ENOSYS. Some functions are actually named
10338 something starting with __ and the normal name is an alias. */
10339#if defined __stub_setsockopt || defined __stub___setsockopt
10340choke me
10341#endif
10342
10343int
10344main ()
10345{
10346return setsockopt ();
10347 ;
10348 return 0;
10349}
10350_ACEOF
10351rm -f conftest.$ac_objext conftest$ac_exeext
10352if { (ac_try="$ac_link"
10353case "(($ac_try" in
10354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10355 *) ac_try_echo=$ac_try;;
10356esac
10357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10358 (eval "$ac_link") 2>conftest.er1
10359 ac_status=$?
10360 grep -v '^ *+' conftest.er1 >conftest.err
10361 rm -f conftest.er1
10362 cat conftest.err >&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); } && {
10365 test -z "$ac_c_werror_flag" ||
10366 test ! -s conftest.err
10367 } && test -s conftest$ac_exeext &&
10368 $as_test_x conftest$ac_exeext; then
10369 ac_cv_func_setsockopt=yes
10370else
10371 echo "$as_me: failed program was:" >&5
10372sed 's/^/| /' conftest.$ac_ext >&5
10373
10374 ac_cv_func_setsockopt=no
10375fi
10376
10377rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10378 conftest$ac_exeext conftest.$ac_ext
10379fi
10380{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
10381echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; }
10382if test $ac_cv_func_setsockopt = yes; then
10383 :
10384else
10385
10386{ echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
10387echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; }
10388if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
10389 echo $ECHO_N "(cached) $ECHO_C" >&6
10390else
10391 ac_check_lib_save_LIBS=$LIBS
10392LIBS="-lsocket $LIBS"
10393cat >conftest.$ac_ext <<_ACEOF
10394/* confdefs.h. */
10395_ACEOF
10396cat confdefs.h >>conftest.$ac_ext
10397cat >>conftest.$ac_ext <<_ACEOF
10398/* end confdefs.h. */
10399
10400/* Override any GCC internal prototype to avoid an error.
10401 Use char because int might match the return type of a GCC
10402 builtin and then its argument prototype would still apply. */
10403#ifdef __cplusplus
10404extern "C"
10405#endif
10406char setsockopt ();
10407int
10408main ()
10409{
10410return setsockopt ();
10411 ;
10412 return 0;
10413}
10414_ACEOF
10415rm -f conftest.$ac_objext conftest$ac_exeext
10416if { (ac_try="$ac_link"
10417case "(($ac_try" in
10418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10419 *) ac_try_echo=$ac_try;;
10420esac
10421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10422 (eval "$ac_link") 2>conftest.er1
10423 ac_status=$?
10424 grep -v '^ *+' conftest.er1 >conftest.err
10425 rm -f conftest.er1
10426 cat conftest.err >&5
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); } && {
10429 test -z "$ac_c_werror_flag" ||
10430 test ! -s conftest.err
10431 } && test -s conftest$ac_exeext &&
10432 $as_test_x conftest$ac_exeext; then
10433 ac_cv_lib_socket_setsockopt=yes
10434else
10435 echo "$as_me: failed program was:" >&5
10436sed 's/^/| /' conftest.$ac_ext >&5
10437
10438 ac_cv_lib_socket_setsockopt=no
10439fi
10440
10441rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10442 conftest$ac_exeext conftest.$ac_ext
10443LIBS=$ac_check_lib_save_LIBS
10444fi
10445{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
10446echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; }
10447if test $ac_cv_lib_socket_setsockopt = yes; then
10448 cat >>confdefs.h <<_ACEOF
10449#define HAVE_LIBSOCKET 1
10450_ACEOF
10451
10452 LIBS="-lsocket $LIBS"
10453
10454fi
10455
10456fi
10457
10458
10459
10460for ac_func in dirname
10461do
10462as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10463{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10464echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10465if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10466 echo $ECHO_N "(cached) $ECHO_C" >&6
10467else
10468 cat >conftest.$ac_ext <<_ACEOF
10469/* confdefs.h. */
10470_ACEOF
10471cat confdefs.h >>conftest.$ac_ext
10472cat >>conftest.$ac_ext <<_ACEOF
10473/* end confdefs.h. */
10474/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10476#define $ac_func innocuous_$ac_func
10477
10478/* System header to define __stub macros and hopefully few prototypes,
10479 which can conflict with char $ac_func (); below.
10480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10481 <limits.h> exists even on freestanding compilers. */
10482
10483#ifdef __STDC__
10484# include <limits.h>
10485#else
10486# include <assert.h>
10487#endif
10488
10489#undef $ac_func
10490
10491/* Override any GCC internal prototype to avoid an error.
10492 Use char because int might match the return type of a GCC
10493 builtin and then its argument prototype would still apply. */
10494#ifdef __cplusplus
10495extern "C"
10496#endif
10497char $ac_func ();
10498/* The GNU C library defines this for functions which it implements
10499 to always fail with ENOSYS. Some functions are actually named
10500 something starting with __ and the normal name is an alias. */
10501#if defined __stub_$ac_func || defined __stub___$ac_func
10502choke me
10503#endif
10504
10505int
10506main ()
10507{
10508return $ac_func ();
10509 ;
10510 return 0;
10511}
10512_ACEOF
10513rm -f conftest.$ac_objext conftest$ac_exeext
10514if { (ac_try="$ac_link"
10515case "(($ac_try" in
10516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10517 *) ac_try_echo=$ac_try;;
10518esac
10519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10520 (eval "$ac_link") 2>conftest.er1
10521 ac_status=$?
10522 grep -v '^ *+' conftest.er1 >conftest.err
10523 rm -f conftest.er1
10524 cat conftest.err >&5
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); } && {
10527 test -z "$ac_c_werror_flag" ||
10528 test ! -s conftest.err
10529 } && test -s conftest$ac_exeext &&
10530 $as_test_x conftest$ac_exeext; then
10531 eval "$as_ac_var=yes"
10532else
10533 echo "$as_me: failed program was:" >&5
10534sed 's/^/| /' conftest.$ac_ext >&5
10535
10536 eval "$as_ac_var=no"
10537fi
10538
10539rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10540 conftest$ac_exeext conftest.$ac_ext
10541fi
10542ac_res=`eval echo '${'$as_ac_var'}'`
10543 { echo "$as_me:$LINENO: result: $ac_res" >&5
10544echo "${ECHO_T}$ac_res" >&6; }
10545if test `eval echo '${'$as_ac_var'}'` = yes; then
10546 cat >>confdefs.h <<_ACEOF
10547#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10548_ACEOF
10549
10550for ac_header in libgen.h
10551do
10552as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10553if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10555echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10556if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10557 echo $ECHO_N "(cached) $ECHO_C" >&6
10558fi
10559ac_res=`eval echo '${'$as_ac_Header'}'`
10560 { echo "$as_me:$LINENO: result: $ac_res" >&5
10561echo "${ECHO_T}$ac_res" >&6; }
10562else
10563 # Is the header compilable?
10564{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10565echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10566cat >conftest.$ac_ext <<_ACEOF
10567/* confdefs.h. */
10568_ACEOF
10569cat confdefs.h >>conftest.$ac_ext
10570cat >>conftest.$ac_ext <<_ACEOF
10571/* end confdefs.h. */
10572$ac_includes_default
10573#include <$ac_header>
10574_ACEOF
10575rm -f conftest.$ac_objext
10576if { (ac_try="$ac_compile"
10577case "(($ac_try" in
10578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10579 *) ac_try_echo=$ac_try;;
10580esac
10581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10582 (eval "$ac_compile") 2>conftest.er1
10583 ac_status=$?
10584 grep -v '^ *+' conftest.er1 >conftest.err
10585 rm -f conftest.er1
10586 cat conftest.err >&5
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); } && {
10589 test -z "$ac_c_werror_flag" ||
10590 test ! -s conftest.err
10591 } && test -s conftest.$ac_objext; then
10592 ac_header_compiler=yes
10593else
10594 echo "$as_me: failed program was:" >&5
10595sed 's/^/| /' conftest.$ac_ext >&5
10596
10597 ac_header_compiler=no
10598fi
10599
10600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10601{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10602echo "${ECHO_T}$ac_header_compiler" >&6; }
10603
10604# Is the header present?
10605{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10606echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10607cat >conftest.$ac_ext <<_ACEOF
10608/* confdefs.h. */
10609_ACEOF
10610cat confdefs.h >>conftest.$ac_ext
10611cat >>conftest.$ac_ext <<_ACEOF
10612/* end confdefs.h. */
10613#include <$ac_header>
10614_ACEOF
10615if { (ac_try="$ac_cpp conftest.$ac_ext"
10616case "(($ac_try" in
10617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618 *) ac_try_echo=$ac_try;;
10619esac
10620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10622 ac_status=$?
10623 grep -v '^ *+' conftest.er1 >conftest.err
10624 rm -f conftest.er1
10625 cat conftest.err >&5
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); } >/dev/null && {
10628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10629 test ! -s conftest.err
10630 }; then
10631 ac_header_preproc=yes
10632else
10633 echo "$as_me: failed program was:" >&5
10634sed 's/^/| /' conftest.$ac_ext >&5
10635
10636 ac_header_preproc=no
10637fi
10638
10639rm -f conftest.err conftest.$ac_ext
10640{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10641echo "${ECHO_T}$ac_header_preproc" >&6; }
10642
10643# So? What about this header?
10644case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10645 yes:no: )
10646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10647echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10649echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10650 ac_header_preproc=yes
10651 ;;
10652 no:yes:* )
10653 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10654echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10655 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10656echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10657 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10658echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10659 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10660echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10662echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10663 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10664echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10665 ( cat <<\_ASBOX
10666## ------------------------------------------- ##
10667## Report this to openssh-unix-dev@mindrot.org ##
10668## ------------------------------------------- ##
10669_ASBOX
10670 ) | sed "s/^/$as_me: WARNING: /" >&2
10671 ;;
10672esac
10673{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10675if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10676 echo $ECHO_N "(cached) $ECHO_C" >&6
10677else
10678 eval "$as_ac_Header=\$ac_header_preproc"
10679fi
10680ac_res=`eval echo '${'$as_ac_Header'}'`
10681 { echo "$as_me:$LINENO: result: $ac_res" >&5
10682echo "${ECHO_T}$ac_res" >&6; }
10683
10684fi
10685if test `eval echo '${'$as_ac_Header'}'` = yes; then
10686 cat >>confdefs.h <<_ACEOF
10687#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10688_ACEOF
10689
10690fi
10691
10692done
10693
10694else
10695
10696 { echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
10697echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6; }
10698if test "${ac_cv_lib_gen_dirname+set}" = set; then
10699 echo $ECHO_N "(cached) $ECHO_C" >&6
10700else
10701 ac_check_lib_save_LIBS=$LIBS
10702LIBS="-lgen $LIBS"
10703cat >conftest.$ac_ext <<_ACEOF
10704/* confdefs.h. */
10705_ACEOF
10706cat confdefs.h >>conftest.$ac_ext
10707cat >>conftest.$ac_ext <<_ACEOF
10708/* end confdefs.h. */
10709
10710/* Override any GCC internal prototype to avoid an error.
10711 Use char because int might match the return type of a GCC
10712 builtin and then its argument prototype would still apply. */
10713#ifdef __cplusplus
10714extern "C"
10715#endif
10716char dirname ();
10717int
10718main ()
10719{
10720return dirname ();
10721 ;
10722 return 0;
10723}
10724_ACEOF
10725rm -f conftest.$ac_objext conftest$ac_exeext
10726if { (ac_try="$ac_link"
10727case "(($ac_try" in
10728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729 *) ac_try_echo=$ac_try;;
10730esac
10731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10732 (eval "$ac_link") 2>conftest.er1
10733 ac_status=$?
10734 grep -v '^ *+' conftest.er1 >conftest.err
10735 rm -f conftest.er1
10736 cat conftest.err >&5
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); } && {
10739 test -z "$ac_c_werror_flag" ||
10740 test ! -s conftest.err
10741 } && test -s conftest$ac_exeext &&
10742 $as_test_x conftest$ac_exeext; then
10743 ac_cv_lib_gen_dirname=yes
10744else
10745 echo "$as_me: failed program was:" >&5
10746sed 's/^/| /' conftest.$ac_ext >&5
10747
10748 ac_cv_lib_gen_dirname=no
10749fi
10750
10751rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10752 conftest$ac_exeext conftest.$ac_ext
10753LIBS=$ac_check_lib_save_LIBS
10754fi
10755{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
10756echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6; }
10757if test $ac_cv_lib_gen_dirname = yes; then
10758
10759 { echo "$as_me:$LINENO: checking for broken dirname" >&5
10760echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6; }
10761if test "${ac_cv_have_broken_dirname+set}" = set; then
10762 echo $ECHO_N "(cached) $ECHO_C" >&6
10763else
10764
10765 save_LIBS="$LIBS"
10766 LIBS="$LIBS -lgen"
10767 if test "$cross_compiling" = yes; then
10768 ac_cv_have_broken_dirname="no"
10769else
10770 cat >conftest.$ac_ext <<_ACEOF
10771/* confdefs.h. */
10772_ACEOF
10773cat confdefs.h >>conftest.$ac_ext
10774cat >>conftest.$ac_ext <<_ACEOF
10775/* end confdefs.h. */
10776
10777#include <libgen.h>
10778#include <string.h>
10779
10780int main(int argc, char **argv) {
10781 char *s, buf[32];
10782
10783 strncpy(buf,"/etc", 32);
10784 s = dirname(buf);
10785 if (!s || strncmp(s, "/", 32) != 0) {
10786 exit(1);
10787 } else {
10788 exit(0);
10789 }
10790}
10791
10792_ACEOF
10793rm -f conftest$ac_exeext
10794if { (ac_try="$ac_link"
10795case "(($ac_try" in
10796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797 *) ac_try_echo=$ac_try;;
10798esac
10799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10800 (eval "$ac_link") 2>&5
10801 ac_status=$?
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10804 { (case "(($ac_try" in
10805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10806 *) ac_try_echo=$ac_try;;
10807esac
10808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10809 (eval "$ac_try") 2>&5
10810 ac_status=$?
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); }; }; then
10813 ac_cv_have_broken_dirname="no"
10814else
10815 echo "$as_me: program exited with status $ac_status" >&5
10816echo "$as_me: failed program was:" >&5
10817sed 's/^/| /' conftest.$ac_ext >&5
10818
10819( exit $ac_status )
10820 ac_cv_have_broken_dirname="yes"
10821fi
10822rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10823fi
10824
10825
10826 LIBS="$save_LIBS"
10827
10828fi
10829{ echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
10830echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6; }
10831 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
10832 LIBS="$LIBS -lgen"
10833 cat >>confdefs.h <<\_ACEOF
10834#define HAVE_DIRNAME 1
10835_ACEOF
10836
10837
10838for ac_header in libgen.h
10839do
10840as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10841if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10843echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10844if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10845 echo $ECHO_N "(cached) $ECHO_C" >&6
10846fi
10847ac_res=`eval echo '${'$as_ac_Header'}'`
10848 { echo "$as_me:$LINENO: result: $ac_res" >&5
10849echo "${ECHO_T}$ac_res" >&6; }
10850else
10851 # Is the header compilable?
10852{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10853echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10854cat >conftest.$ac_ext <<_ACEOF
10855/* confdefs.h. */
10856_ACEOF
10857cat confdefs.h >>conftest.$ac_ext
10858cat >>conftest.$ac_ext <<_ACEOF
10859/* end confdefs.h. */
10860$ac_includes_default
10861#include <$ac_header>
10862_ACEOF
10863rm -f conftest.$ac_objext
10864if { (ac_try="$ac_compile"
10865case "(($ac_try" in
10866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867 *) ac_try_echo=$ac_try;;
10868esac
10869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870 (eval "$ac_compile") 2>conftest.er1
10871 ac_status=$?
10872 grep -v '^ *+' conftest.er1 >conftest.err
10873 rm -f conftest.er1
10874 cat conftest.err >&5
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); } && {
10877 test -z "$ac_c_werror_flag" ||
10878 test ! -s conftest.err
10879 } && test -s conftest.$ac_objext; then
10880 ac_header_compiler=yes
10881else
10882 echo "$as_me: failed program was:" >&5
10883sed 's/^/| /' conftest.$ac_ext >&5
10884
10885 ac_header_compiler=no
10886fi
10887
10888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10889{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10890echo "${ECHO_T}$ac_header_compiler" >&6; }
10891
10892# Is the header present?
10893{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10894echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10895cat >conftest.$ac_ext <<_ACEOF
10896/* confdefs.h. */
10897_ACEOF
10898cat confdefs.h >>conftest.$ac_ext
10899cat >>conftest.$ac_ext <<_ACEOF
10900/* end confdefs.h. */
10901#include <$ac_header>
10902_ACEOF
10903if { (ac_try="$ac_cpp conftest.$ac_ext"
10904case "(($ac_try" in
10905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10906 *) ac_try_echo=$ac_try;;
10907esac
10908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10910 ac_status=$?
10911 grep -v '^ *+' conftest.er1 >conftest.err
10912 rm -f conftest.er1
10913 cat conftest.err >&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); } >/dev/null && {
10916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10917 test ! -s conftest.err
10918 }; then
10919 ac_header_preproc=yes
10920else
10921 echo "$as_me: failed program was:" >&5
10922sed 's/^/| /' conftest.$ac_ext >&5
10923
10924 ac_header_preproc=no
10925fi
10926
10927rm -f conftest.err conftest.$ac_ext
10928{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10929echo "${ECHO_T}$ac_header_preproc" >&6; }
10930
10931# So? What about this header?
10932case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10933 yes:no: )
10934 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10935echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10937echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10938 ac_header_preproc=yes
10939 ;;
10940 no:yes:* )
10941 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10942echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10943 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10944echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10945 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10946echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10947 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10948echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10950echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10951 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10952echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10953 ( cat <<\_ASBOX
10954## ------------------------------------------- ##
10955## Report this to openssh-unix-dev@mindrot.org ##
10956## ------------------------------------------- ##
10957_ASBOX
10958 ) | sed "s/^/$as_me: WARNING: /" >&2
10959 ;;
10960esac
10961{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10963if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10964 echo $ECHO_N "(cached) $ECHO_C" >&6
10965else
10966 eval "$as_ac_Header=\$ac_header_preproc"
10967fi
10968ac_res=`eval echo '${'$as_ac_Header'}'`
10969 { echo "$as_me:$LINENO: result: $ac_res" >&5
10970echo "${ECHO_T}$ac_res" >&6; }
10971
10972fi
10973if test `eval echo '${'$as_ac_Header'}'` = yes; then
10974 cat >>confdefs.h <<_ACEOF
10975#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10976_ACEOF
10977
10978fi
10979
10980done
10981
10982 fi
10983
10984fi
10985
10986
10987fi
10988done
10989
10990
10991{ echo "$as_me:$LINENO: checking for getspnam" >&5
10992echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; }
10993if test "${ac_cv_func_getspnam+set}" = set; then
10994 echo $ECHO_N "(cached) $ECHO_C" >&6
10995else
10996 cat >conftest.$ac_ext <<_ACEOF
10997/* confdefs.h. */
10998_ACEOF
10999cat confdefs.h >>conftest.$ac_ext
11000cat >>conftest.$ac_ext <<_ACEOF
11001/* end confdefs.h. */
11002/* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
11003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11004#define getspnam innocuous_getspnam
11005
11006/* System header to define __stub macros and hopefully few prototypes,
11007 which can conflict with char getspnam (); below.
11008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11009 <limits.h> exists even on freestanding compilers. */
11010
11011#ifdef __STDC__
11012# include <limits.h>
11013#else
11014# include <assert.h>
11015#endif
11016
11017#undef getspnam
11018
11019/* Override any GCC internal prototype to avoid an error.
11020 Use char because int might match the return type of a GCC
11021 builtin and then its argument prototype would still apply. */
11022#ifdef __cplusplus
11023extern "C"
11024#endif
11025char getspnam ();
11026/* The GNU C library defines this for functions which it implements
11027 to always fail with ENOSYS. Some functions are actually named
11028 something starting with __ and the normal name is an alias. */
11029#if defined __stub_getspnam || defined __stub___getspnam
11030choke me
11031#endif
11032
11033int
11034main ()
11035{
11036return getspnam ();
11037 ;
11038 return 0;
11039}
11040_ACEOF
11041rm -f conftest.$ac_objext conftest$ac_exeext
11042if { (ac_try="$ac_link"
11043case "(($ac_try" in
11044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045 *) ac_try_echo=$ac_try;;
11046esac
11047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048 (eval "$ac_link") 2>conftest.er1
11049 ac_status=$?
11050 grep -v '^ *+' conftest.er1 >conftest.err
11051 rm -f conftest.er1
11052 cat conftest.err >&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); } && {
11055 test -z "$ac_c_werror_flag" ||
11056 test ! -s conftest.err
11057 } && test -s conftest$ac_exeext &&
11058 $as_test_x conftest$ac_exeext; then
11059 ac_cv_func_getspnam=yes
11060else
11061 echo "$as_me: failed program was:" >&5
11062sed 's/^/| /' conftest.$ac_ext >&5
11063
11064 ac_cv_func_getspnam=no
11065fi
11066
11067rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11068 conftest$ac_exeext conftest.$ac_ext
11069fi
11070{ echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
11071echo "${ECHO_T}$ac_cv_func_getspnam" >&6; }
11072if test $ac_cv_func_getspnam = yes; then
11073 :
11074else
11075 { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
11076echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; }
11077if test "${ac_cv_lib_gen_getspnam+set}" = set; then
11078 echo $ECHO_N "(cached) $ECHO_C" >&6
11079else
11080 ac_check_lib_save_LIBS=$LIBS
11081LIBS="-lgen $LIBS"
11082cat >conftest.$ac_ext <<_ACEOF
11083/* confdefs.h. */
11084_ACEOF
11085cat confdefs.h >>conftest.$ac_ext
11086cat >>conftest.$ac_ext <<_ACEOF
11087/* end confdefs.h. */
11088
11089/* Override any GCC internal prototype to avoid an error.
11090 Use char because int might match the return type of a GCC
11091 builtin and then its argument prototype would still apply. */
11092#ifdef __cplusplus
11093extern "C"
11094#endif
11095char getspnam ();
11096int
11097main ()
11098{
11099return getspnam ();
11100 ;
11101 return 0;
11102}
11103_ACEOF
11104rm -f conftest.$ac_objext conftest$ac_exeext
11105if { (ac_try="$ac_link"
11106case "(($ac_try" in
11107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108 *) ac_try_echo=$ac_try;;
11109esac
11110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111 (eval "$ac_link") 2>conftest.er1
11112 ac_status=$?
11113 grep -v '^ *+' conftest.er1 >conftest.err
11114 rm -f conftest.er1
11115 cat conftest.err >&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); } && {
11118 test -z "$ac_c_werror_flag" ||
11119 test ! -s conftest.err
11120 } && test -s conftest$ac_exeext &&
11121 $as_test_x conftest$ac_exeext; then
11122 ac_cv_lib_gen_getspnam=yes
11123else
11124 echo "$as_me: failed program was:" >&5
11125sed 's/^/| /' conftest.$ac_ext >&5
11126
11127 ac_cv_lib_gen_getspnam=no
11128fi
11129
11130rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11131 conftest$ac_exeext conftest.$ac_ext
11132LIBS=$ac_check_lib_save_LIBS
11133fi
11134{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
11135echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; }
11136if test $ac_cv_lib_gen_getspnam = yes; then
11137 LIBS="$LIBS -lgen"
11138fi
11139
11140fi
11141
11142{ echo "$as_me:$LINENO: checking for library containing basename" >&5
11143echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6; }
11144if test "${ac_cv_search_basename+set}" = set; then
11145 echo $ECHO_N "(cached) $ECHO_C" >&6
11146else
11147 ac_func_search_save_LIBS=$LIBS
11148cat >conftest.$ac_ext <<_ACEOF
11149/* confdefs.h. */
11150_ACEOF
11151cat confdefs.h >>conftest.$ac_ext
11152cat >>conftest.$ac_ext <<_ACEOF
11153/* end confdefs.h. */
11154
11155/* Override any GCC internal prototype to avoid an error.
11156 Use char because int might match the return type of a GCC
11157 builtin and then its argument prototype would still apply. */
11158#ifdef __cplusplus
11159extern "C"
11160#endif
11161char basename ();
11162int
11163main ()
11164{
11165return basename ();
11166 ;
11167 return 0;
11168}
11169_ACEOF
11170for ac_lib in '' gen; do
11171 if test -z "$ac_lib"; then
11172 ac_res="none required"
11173 else
11174 ac_res=-l$ac_lib
11175 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11176 fi
11177 rm -f conftest.$ac_objext conftest$ac_exeext
11178if { (ac_try="$ac_link"
11179case "(($ac_try" in
11180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11181 *) ac_try_echo=$ac_try;;
11182esac
11183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11184 (eval "$ac_link") 2>conftest.er1
11185 ac_status=$?
11186 grep -v '^ *+' conftest.er1 >conftest.err
11187 rm -f conftest.er1
11188 cat conftest.err >&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); } && {
11191 test -z "$ac_c_werror_flag" ||
11192 test ! -s conftest.err
11193 } && test -s conftest$ac_exeext &&
11194 $as_test_x conftest$ac_exeext; then
11195 ac_cv_search_basename=$ac_res
11196else
11197 echo "$as_me: failed program was:" >&5
11198sed 's/^/| /' conftest.$ac_ext >&5
11199
11200
11201fi
11202
11203rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11204 conftest$ac_exeext
11205 if test "${ac_cv_search_basename+set}" = set; then
11206 break
11207fi
11208done
11209if test "${ac_cv_search_basename+set}" = set; then
11210 :
11211else
11212 ac_cv_search_basename=no
11213fi
11214rm conftest.$ac_ext
11215LIBS=$ac_func_search_save_LIBS
11216fi
11217{ echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5
11218echo "${ECHO_T}$ac_cv_search_basename" >&6; }
11219ac_res=$ac_cv_search_basename
11220if test "$ac_res" != no; then
11221 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11222
11223cat >>confdefs.h <<\_ACEOF
11224#define HAVE_BASENAME 1
11225_ACEOF
11226
11227fi
11228
11229
11230
11231# Check whether --with-zlib was given.
11232if test "${with_zlib+set}" = set; then
11233 withval=$with_zlib; if test "x$withval" = "xno" ; then
11234 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
11235echo "$as_me: error: *** zlib is required ***" >&2;}
11236 { (exit 1); exit 1; }; }
11237 elif test "x$withval" != "xyes"; then
11238 if test -d "$withval/lib"; then
11239 if test -n "${need_dash_r}"; then
11240 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
11241 else
11242 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
11243 fi
11244 else
11245 if test -n "${need_dash_r}"; then
11246 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
11247 else
11248 LDFLAGS="-L${withval} ${LDFLAGS}"
11249 fi
11250 fi
11251 if test -d "$withval/include"; then
11252 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
11253 else
11254 CPPFLAGS="-I${withval} ${CPPFLAGS}"
11255 fi
11256 fi
11257
11258fi
11259
11260
11261if test "${ac_cv_header_zlib_h+set}" = set; then
11262 { echo "$as_me:$LINENO: checking for zlib.h" >&5
11263echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11264if test "${ac_cv_header_zlib_h+set}" = set; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
11266fi
11267{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11268echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11269else
11270 # Is the header compilable?
11271{ echo "$as_me:$LINENO: checking zlib.h usability" >&5
11272echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
11273cat >conftest.$ac_ext <<_ACEOF
11274/* confdefs.h. */
11275_ACEOF
11276cat confdefs.h >>conftest.$ac_ext
11277cat >>conftest.$ac_ext <<_ACEOF
11278/* end confdefs.h. */
11279$ac_includes_default
11280#include <zlib.h>
11281_ACEOF
11282rm -f conftest.$ac_objext
11283if { (ac_try="$ac_compile"
11284case "(($ac_try" in
11285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11286 *) ac_try_echo=$ac_try;;
11287esac
11288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11289 (eval "$ac_compile") 2>conftest.er1
11290 ac_status=$?
11291 grep -v '^ *+' conftest.er1 >conftest.err
11292 rm -f conftest.er1
11293 cat conftest.err >&5
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); } && {
11296 test -z "$ac_c_werror_flag" ||
11297 test ! -s conftest.err
11298 } && test -s conftest.$ac_objext; then
11299 ac_header_compiler=yes
11300else
11301 echo "$as_me: failed program was:" >&5
11302sed 's/^/| /' conftest.$ac_ext >&5
11303
11304 ac_header_compiler=no
11305fi
11306
11307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11308{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11309echo "${ECHO_T}$ac_header_compiler" >&6; }
11310
11311# Is the header present?
11312{ echo "$as_me:$LINENO: checking zlib.h presence" >&5
11313echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
11314cat >conftest.$ac_ext <<_ACEOF
11315/* confdefs.h. */
11316_ACEOF
11317cat confdefs.h >>conftest.$ac_ext
11318cat >>conftest.$ac_ext <<_ACEOF
11319/* end confdefs.h. */
11320#include <zlib.h>
11321_ACEOF
11322if { (ac_try="$ac_cpp conftest.$ac_ext"
11323case "(($ac_try" in
11324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11325 *) ac_try_echo=$ac_try;;
11326esac
11327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11329 ac_status=$?
11330 grep -v '^ *+' conftest.er1 >conftest.err
11331 rm -f conftest.er1
11332 cat conftest.err >&5
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); } >/dev/null && {
11335 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11336 test ! -s conftest.err
11337 }; then
11338 ac_header_preproc=yes
11339else
11340 echo "$as_me: failed program was:" >&5
11341sed 's/^/| /' conftest.$ac_ext >&5
11342
11343 ac_header_preproc=no
11344fi
11345
11346rm -f conftest.err conftest.$ac_ext
11347{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11348echo "${ECHO_T}$ac_header_preproc" >&6; }
11349
11350# So? What about this header?
11351case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11352 yes:no: )
11353 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11354echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11355 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11356echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11357 ac_header_preproc=yes
11358 ;;
11359 no:yes:* )
11360 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11361echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
11363echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
11364 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11365echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11366 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
11367echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11368 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11369echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11370 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11371echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11372 ( cat <<\_ASBOX
11373## ------------------------------------------- ##
11374## Report this to openssh-unix-dev@mindrot.org ##
11375## ------------------------------------------- ##
11376_ASBOX
11377 ) | sed "s/^/$as_me: WARNING: /" >&2
11378 ;;
11379esac
11380{ echo "$as_me:$LINENO: checking for zlib.h" >&5
11381echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11382if test "${ac_cv_header_zlib_h+set}" = set; then
11383 echo $ECHO_N "(cached) $ECHO_C" >&6
11384else
11385 ac_cv_header_zlib_h=$ac_header_preproc
11386fi
11387{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11388echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11389
11390fi
11391if test $ac_cv_header_zlib_h = yes; then
11392 :
11393else
11394 { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5
11395echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;}
11396 { (exit 1); exit 1; }; }
11397fi
11398
11399
11400
11401{ echo "$as_me:$LINENO: checking for deflate in -lz" >&5
11402echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
11403if test "${ac_cv_lib_z_deflate+set}" = set; then
11404 echo $ECHO_N "(cached) $ECHO_C" >&6
11405else
11406 ac_check_lib_save_LIBS=$LIBS
11407LIBS="-lz $LIBS"
11408cat >conftest.$ac_ext <<_ACEOF
11409/* confdefs.h. */
11410_ACEOF
11411cat confdefs.h >>conftest.$ac_ext
11412cat >>conftest.$ac_ext <<_ACEOF
11413/* end confdefs.h. */
11414
11415/* Override any GCC internal prototype to avoid an error.
11416 Use char because int might match the return type of a GCC
11417 builtin and then its argument prototype would still apply. */
11418#ifdef __cplusplus
11419extern "C"
11420#endif
11421char deflate ();
11422int
11423main ()
11424{
11425return deflate ();
11426 ;
11427 return 0;
11428}
11429_ACEOF
11430rm -f conftest.$ac_objext conftest$ac_exeext
11431if { (ac_try="$ac_link"
11432case "(($ac_try" in
11433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11434 *) ac_try_echo=$ac_try;;
11435esac
11436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11437 (eval "$ac_link") 2>conftest.er1
11438 ac_status=$?
11439 grep -v '^ *+' conftest.er1 >conftest.err
11440 rm -f conftest.er1
11441 cat conftest.err >&5
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); } && {
11444 test -z "$ac_c_werror_flag" ||
11445 test ! -s conftest.err
11446 } && test -s conftest$ac_exeext &&
11447 $as_test_x conftest$ac_exeext; then
11448 ac_cv_lib_z_deflate=yes
11449else
11450 echo "$as_me: failed program was:" >&5
11451sed 's/^/| /' conftest.$ac_ext >&5
11452
11453 ac_cv_lib_z_deflate=no
11454fi
11455
11456rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11457 conftest$ac_exeext conftest.$ac_ext
11458LIBS=$ac_check_lib_save_LIBS
11459fi
11460{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
11461echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
11462if test $ac_cv_lib_z_deflate = yes; then
11463 cat >>confdefs.h <<_ACEOF
11464#define HAVE_LIBZ 1
11465_ACEOF
11466
11467 LIBS="-lz $LIBS"
11468
11469else
11470
11471 saved_CPPFLAGS="$CPPFLAGS"
11472 saved_LDFLAGS="$LDFLAGS"
11473 save_LIBS="$LIBS"
11474 if test -n "${need_dash_r}"; then
11475 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
11476 else
11477 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
11478 fi
11479 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
11480 LIBS="$LIBS -lz"
11481 cat >conftest.$ac_ext <<_ACEOF
11482/* confdefs.h. */
11483_ACEOF
11484cat confdefs.h >>conftest.$ac_ext
11485cat >>conftest.$ac_ext <<_ACEOF
11486/* end confdefs.h. */
11487
11488/* Override any GCC internal prototype to avoid an error.
11489 Use char because int might match the return type of a GCC
11490 builtin and then its argument prototype would still apply. */
11491#ifdef __cplusplus
11492extern "C"
11493#endif
11494char deflate ();
11495int
11496main ()
11497{
11498return deflate ();
11499 ;
11500 return 0;
11501}
11502_ACEOF
11503rm -f conftest.$ac_objext conftest$ac_exeext
11504if { (ac_try="$ac_link"
11505case "(($ac_try" in
11506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11507 *) ac_try_echo=$ac_try;;
11508esac
11509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11510 (eval "$ac_link") 2>conftest.er1
11511 ac_status=$?
11512 grep -v '^ *+' conftest.er1 >conftest.err
11513 rm -f conftest.er1
11514 cat conftest.err >&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); } && {
11517 test -z "$ac_c_werror_flag" ||
11518 test ! -s conftest.err
11519 } && test -s conftest$ac_exeext &&
11520 $as_test_x conftest$ac_exeext; then
11521 cat >>confdefs.h <<\_ACEOF
11522#define HAVE_LIBZ 1
11523_ACEOF
11524
11525else
11526 echo "$as_me: failed program was:" >&5
11527sed 's/^/| /' conftest.$ac_ext >&5
11528
11529
11530 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
11531echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
11532 { (exit 1); exit 1; }; }
11533
11534
11535fi
11536
11537rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11538 conftest$ac_exeext conftest.$ac_ext
11539
11540
11541fi
11542
11543
11544
11545# Check whether --with-zlib-version-check was given.
11546if test "${with_zlib_version_check+set}" = set; then
11547 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
11548 zlib_check_nonfatal=1
11549 fi
11550
11551
11552fi
11553
11554
11555{ echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5
11556echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6; }
11557if test "$cross_compiling" = yes; then
11558 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5
11559echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
11560
11561else
11562 cat >conftest.$ac_ext <<_ACEOF
11563/* confdefs.h. */
11564_ACEOF
11565cat confdefs.h >>conftest.$ac_ext
11566cat >>conftest.$ac_ext <<_ACEOF
11567/* end confdefs.h. */
11568
11569#include <stdio.h>
11570#include <zlib.h>
11571int main()
11572{
11573 int a=0, b=0, c=0, d=0, n, v;
11574 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
11575 if (n != 3 && n != 4)
11576 exit(1);
11577 v = a*1000000 + b*10000 + c*100 + d;
11578 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
11579
11580 /* 1.1.4 is OK */
11581 if (a == 1 && b == 1 && c >= 4)
11582 exit(0);
11583
11584 /* 1.2.3 and up are OK */
11585 if (v >= 1020300)
11586 exit(0);
11587
11588 exit(2);
11589}
11590
11591_ACEOF
11592rm -f conftest$ac_exeext
11593if { (ac_try="$ac_link"
11594case "(($ac_try" in
11595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596 *) ac_try_echo=$ac_try;;
11597esac
11598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11599 (eval "$ac_link") 2>&5
11600 ac_status=$?
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11603 { (case "(($ac_try" in
11604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11605 *) ac_try_echo=$ac_try;;
11606esac
11607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11608 (eval "$ac_try") 2>&5
11609 ac_status=$?
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); }; }; then
11612 { echo "$as_me:$LINENO: result: no" >&5
11613echo "${ECHO_T}no" >&6; }
11614else
11615 echo "$as_me: program exited with status $ac_status" >&5
11616echo "$as_me: failed program was:" >&5
11617sed 's/^/| /' conftest.$ac_ext >&5
11618
11619( exit $ac_status )
11620 { echo "$as_me:$LINENO: result: yes" >&5
11621echo "${ECHO_T}yes" >&6; }
11622 if test -z "$zlib_check_nonfatal" ; then
11623 { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log ***
11624Your reported zlib version has known security problems. It's possible your
11625vendor has fixed these problems without changing the version number. If you
11626are sure this is the case, you can disable the check by running
11627\"./configure --without-zlib-version-check\".
11628If you are in doubt, upgrade zlib to version 1.2.3 or greater.
11629See http://www.gzip.org/zlib/ for details." >&5
11630echo "$as_me: error: *** zlib too old - check config.log ***
11631Your reported zlib version has known security problems. It's possible your
11632vendor has fixed these problems without changing the version number. If you
11633are sure this is the case, you can disable the check by running
11634\"./configure --without-zlib-version-check\".
11635If you are in doubt, upgrade zlib to version 1.2.3 or greater.
11636See http://www.gzip.org/zlib/ for details." >&2;}
11637 { (exit 1); exit 1; }; }
11638 else
11639 { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5
11640echo "$as_me: WARNING: zlib version may have security problems" >&2;}
11641 fi
11642
11643fi
11644rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11645fi
11646
11647
11648
11649{ echo "$as_me:$LINENO: checking for strcasecmp" >&5
11650echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
11651if test "${ac_cv_func_strcasecmp+set}" = set; then
11652 echo $ECHO_N "(cached) $ECHO_C" >&6
11653else
11654 cat >conftest.$ac_ext <<_ACEOF
11655/* confdefs.h. */
11656_ACEOF
11657cat confdefs.h >>conftest.$ac_ext
11658cat >>conftest.$ac_ext <<_ACEOF
11659/* end confdefs.h. */
11660/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
11661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11662#define strcasecmp innocuous_strcasecmp
11663
11664/* System header to define __stub macros and hopefully few prototypes,
11665 which can conflict with char strcasecmp (); below.
11666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11667 <limits.h> exists even on freestanding compilers. */
11668
11669#ifdef __STDC__
11670# include <limits.h>
11671#else
11672# include <assert.h>
11673#endif
11674
11675#undef strcasecmp
11676
11677/* Override any GCC internal prototype to avoid an error.
11678 Use char because int might match the return type of a GCC
11679 builtin and then its argument prototype would still apply. */
11680#ifdef __cplusplus
11681extern "C"
11682#endif
11683char strcasecmp ();
11684/* The GNU C library defines this for functions which it implements
11685 to always fail with ENOSYS. Some functions are actually named
11686 something starting with __ and the normal name is an alias. */
11687#if defined __stub_strcasecmp || defined __stub___strcasecmp
11688choke me
11689#endif
11690
11691int
11692main ()
11693{
11694return strcasecmp ();
11695 ;
11696 return 0;
11697}
11698_ACEOF
11699rm -f conftest.$ac_objext conftest$ac_exeext
11700if { (ac_try="$ac_link"
11701case "(($ac_try" in
11702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11703 *) ac_try_echo=$ac_try;;
11704esac
11705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11706 (eval "$ac_link") 2>conftest.er1
11707 ac_status=$?
11708 grep -v '^ *+' conftest.er1 >conftest.err
11709 rm -f conftest.er1
11710 cat conftest.err >&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); } && {
11713 test -z "$ac_c_werror_flag" ||
11714 test ! -s conftest.err
11715 } && test -s conftest$ac_exeext &&
11716 $as_test_x conftest$ac_exeext; then
11717 ac_cv_func_strcasecmp=yes
11718else
11719 echo "$as_me: failed program was:" >&5
11720sed 's/^/| /' conftest.$ac_ext >&5
11721
11722 ac_cv_func_strcasecmp=no
11723fi
11724
11725rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11726 conftest$ac_exeext conftest.$ac_ext
11727fi
11728{ echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
11729echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
11730if test $ac_cv_func_strcasecmp = yes; then
11731 :
11732else
11733 { echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
11734echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6; }
11735if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
11736 echo $ECHO_N "(cached) $ECHO_C" >&6
11737else
11738 ac_check_lib_save_LIBS=$LIBS
11739LIBS="-lresolv $LIBS"
11740cat >conftest.$ac_ext <<_ACEOF
11741/* confdefs.h. */
11742_ACEOF
11743cat confdefs.h >>conftest.$ac_ext
11744cat >>conftest.$ac_ext <<_ACEOF
11745/* end confdefs.h. */
11746
11747/* Override any GCC internal prototype to avoid an error.
11748 Use char because int might match the return type of a GCC
11749 builtin and then its argument prototype would still apply. */
11750#ifdef __cplusplus
11751extern "C"
11752#endif
11753char strcasecmp ();
11754int
11755main ()
11756{
11757return strcasecmp ();
11758 ;
11759 return 0;
11760}
11761_ACEOF
11762rm -f conftest.$ac_objext conftest$ac_exeext
11763if { (ac_try="$ac_link"
11764case "(($ac_try" in
11765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11766 *) ac_try_echo=$ac_try;;
11767esac
11768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11769 (eval "$ac_link") 2>conftest.er1
11770 ac_status=$?
11771 grep -v '^ *+' conftest.er1 >conftest.err
11772 rm -f conftest.er1
11773 cat conftest.err >&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); } && {
11776 test -z "$ac_c_werror_flag" ||
11777 test ! -s conftest.err
11778 } && test -s conftest$ac_exeext &&
11779 $as_test_x conftest$ac_exeext; then
11780 ac_cv_lib_resolv_strcasecmp=yes
11781else
11782 echo "$as_me: failed program was:" >&5
11783sed 's/^/| /' conftest.$ac_ext >&5
11784
11785 ac_cv_lib_resolv_strcasecmp=no
11786fi
11787
11788rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11789 conftest$ac_exeext conftest.$ac_ext
11790LIBS=$ac_check_lib_save_LIBS
11791fi
11792{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
11793echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6; }
11794if test $ac_cv_lib_resolv_strcasecmp = yes; then
11795 LIBS="$LIBS -lresolv"
11796fi
11797
11798
11799fi
11800
11801
11802for ac_func in utimes
11803do
11804as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11805{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11806echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11807if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11808 echo $ECHO_N "(cached) $ECHO_C" >&6
11809else
11810 cat >conftest.$ac_ext <<_ACEOF
11811/* confdefs.h. */
11812_ACEOF
11813cat confdefs.h >>conftest.$ac_ext
11814cat >>conftest.$ac_ext <<_ACEOF
11815/* end confdefs.h. */
11816/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11818#define $ac_func innocuous_$ac_func
11819
11820/* System header to define __stub macros and hopefully few prototypes,
11821 which can conflict with char $ac_func (); below.
11822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11823 <limits.h> exists even on freestanding compilers. */
11824
11825#ifdef __STDC__
11826# include <limits.h>
11827#else
11828# include <assert.h>
11829#endif
11830
11831#undef $ac_func
11832
11833/* Override any GCC internal prototype to avoid an error.
11834 Use char because int might match the return type of a GCC
11835 builtin and then its argument prototype would still apply. */
11836#ifdef __cplusplus
11837extern "C"
11838#endif
11839char $ac_func ();
11840/* The GNU C library defines this for functions which it implements
11841 to always fail with ENOSYS. Some functions are actually named
11842 something starting with __ and the normal name is an alias. */
11843#if defined __stub_$ac_func || defined __stub___$ac_func
11844choke me
11845#endif
11846
11847int
11848main ()
11849{
11850return $ac_func ();
11851 ;
11852 return 0;
11853}
11854_ACEOF
11855rm -f conftest.$ac_objext conftest$ac_exeext
11856if { (ac_try="$ac_link"
11857case "(($ac_try" in
11858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859 *) ac_try_echo=$ac_try;;
11860esac
11861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11862 (eval "$ac_link") 2>conftest.er1
11863 ac_status=$?
11864 grep -v '^ *+' conftest.er1 >conftest.err
11865 rm -f conftest.er1
11866 cat conftest.err >&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); } && {
11869 test -z "$ac_c_werror_flag" ||
11870 test ! -s conftest.err
11871 } && test -s conftest$ac_exeext &&
11872 $as_test_x conftest$ac_exeext; then
11873 eval "$as_ac_var=yes"
11874else
11875 echo "$as_me: failed program was:" >&5
11876sed 's/^/| /' conftest.$ac_ext >&5
11877
11878 eval "$as_ac_var=no"
11879fi
11880
11881rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11882 conftest$ac_exeext conftest.$ac_ext
11883fi
11884ac_res=`eval echo '${'$as_ac_var'}'`
11885 { echo "$as_me:$LINENO: result: $ac_res" >&5
11886echo "${ECHO_T}$ac_res" >&6; }
11887if test `eval echo '${'$as_ac_var'}'` = yes; then
11888 cat >>confdefs.h <<_ACEOF
11889#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11890_ACEOF
11891
11892else
11893 { echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
11894echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6; }
11895if test "${ac_cv_lib_c89_utimes+set}" = set; then
11896 echo $ECHO_N "(cached) $ECHO_C" >&6
11897else
11898 ac_check_lib_save_LIBS=$LIBS
11899LIBS="-lc89 $LIBS"
11900cat >conftest.$ac_ext <<_ACEOF
11901/* confdefs.h. */
11902_ACEOF
11903cat confdefs.h >>conftest.$ac_ext
11904cat >>conftest.$ac_ext <<_ACEOF
11905/* end confdefs.h. */
11906
11907/* Override any GCC internal prototype to avoid an error.
11908 Use char because int might match the return type of a GCC
11909 builtin and then its argument prototype would still apply. */
11910#ifdef __cplusplus
11911extern "C"
11912#endif
11913char utimes ();
11914int
11915main ()
11916{
11917return utimes ();
11918 ;
11919 return 0;
11920}
11921_ACEOF
11922rm -f conftest.$ac_objext conftest$ac_exeext
11923if { (ac_try="$ac_link"
11924case "(($ac_try" in
11925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926 *) ac_try_echo=$ac_try;;
11927esac
11928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11929 (eval "$ac_link") 2>conftest.er1
11930 ac_status=$?
11931 grep -v '^ *+' conftest.er1 >conftest.err
11932 rm -f conftest.er1
11933 cat conftest.err >&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); } && {
11936 test -z "$ac_c_werror_flag" ||
11937 test ! -s conftest.err
11938 } && test -s conftest$ac_exeext &&
11939 $as_test_x conftest$ac_exeext; then
11940 ac_cv_lib_c89_utimes=yes
11941else
11942 echo "$as_me: failed program was:" >&5
11943sed 's/^/| /' conftest.$ac_ext >&5
11944
11945 ac_cv_lib_c89_utimes=no
11946fi
11947
11948rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11949 conftest$ac_exeext conftest.$ac_ext
11950LIBS=$ac_check_lib_save_LIBS
11951fi
11952{ echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
11953echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6; }
11954if test $ac_cv_lib_c89_utimes = yes; then
11955 cat >>confdefs.h <<\_ACEOF
11956#define HAVE_UTIMES 1
11957_ACEOF
11958
11959 LIBS="$LIBS -lc89"
11960fi
11961
11962
11963fi
11964done
11965
11966
11967
11968for ac_header in libutil.h
11969do
11970as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11971if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11975 echo $ECHO_N "(cached) $ECHO_C" >&6
11976fi
11977ac_res=`eval echo '${'$as_ac_Header'}'`
11978 { echo "$as_me:$LINENO: result: $ac_res" >&5
11979echo "${ECHO_T}$ac_res" >&6; }
11980else
11981 # Is the header compilable?
11982{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11983echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11984cat >conftest.$ac_ext <<_ACEOF
11985/* confdefs.h. */
11986_ACEOF
11987cat confdefs.h >>conftest.$ac_ext
11988cat >>conftest.$ac_ext <<_ACEOF
11989/* end confdefs.h. */
11990$ac_includes_default
11991#include <$ac_header>
11992_ACEOF
11993rm -f conftest.$ac_objext
11994if { (ac_try="$ac_compile"
11995case "(($ac_try" in
11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997 *) ac_try_echo=$ac_try;;
11998esac
11999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12000 (eval "$ac_compile") 2>conftest.er1
12001 ac_status=$?
12002 grep -v '^ *+' conftest.er1 >conftest.err
12003 rm -f conftest.er1
12004 cat conftest.err >&5
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); } && {
12007 test -z "$ac_c_werror_flag" ||
12008 test ! -s conftest.err
12009 } && test -s conftest.$ac_objext; then
12010 ac_header_compiler=yes
12011else
12012 echo "$as_me: failed program was:" >&5
12013sed 's/^/| /' conftest.$ac_ext >&5
12014
12015 ac_header_compiler=no
12016fi
12017
12018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12019{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12020echo "${ECHO_T}$ac_header_compiler" >&6; }
12021
12022# Is the header present?
12023{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12024echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12025cat >conftest.$ac_ext <<_ACEOF
12026/* confdefs.h. */
12027_ACEOF
12028cat confdefs.h >>conftest.$ac_ext
12029cat >>conftest.$ac_ext <<_ACEOF
12030/* end confdefs.h. */
12031#include <$ac_header>
12032_ACEOF
12033if { (ac_try="$ac_cpp conftest.$ac_ext"
12034case "(($ac_try" in
12035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036 *) ac_try_echo=$ac_try;;
12037esac
12038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12040 ac_status=$?
12041 grep -v '^ *+' conftest.er1 >conftest.err
12042 rm -f conftest.er1
12043 cat conftest.err >&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } >/dev/null && {
12046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12047 test ! -s conftest.err
12048 }; then
12049 ac_header_preproc=yes
12050else
12051 echo "$as_me: failed program was:" >&5
12052sed 's/^/| /' conftest.$ac_ext >&5
12053
12054 ac_header_preproc=no
12055fi
12056
12057rm -f conftest.err conftest.$ac_ext
12058{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12059echo "${ECHO_T}$ac_header_preproc" >&6; }
12060
12061# So? What about this header?
12062case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12063 yes:no: )
12064 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12065echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12067echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12068 ac_header_preproc=yes
12069 ;;
12070 no:yes:* )
12071 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12072echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12073 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12074echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12075 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12076echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12077 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12078echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12080echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12081 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12082echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12083 ( cat <<\_ASBOX
12084## ------------------------------------------- ##
12085## Report this to openssh-unix-dev@mindrot.org ##
12086## ------------------------------------------- ##
12087_ASBOX
12088 ) | sed "s/^/$as_me: WARNING: /" >&2
12089 ;;
12090esac
12091{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12092echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12093if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
12095else
12096 eval "$as_ac_Header=\$ac_header_preproc"
12097fi
12098ac_res=`eval echo '${'$as_ac_Header'}'`
12099 { echo "$as_me:$LINENO: result: $ac_res" >&5
12100echo "${ECHO_T}$ac_res" >&6; }
12101
12102fi
12103if test `eval echo '${'$as_ac_Header'}'` = yes; then
12104 cat >>confdefs.h <<_ACEOF
12105#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12106_ACEOF
12107
12108fi
12109
12110done
12111
12112{ echo "$as_me:$LINENO: checking for library containing login" >&5
12113echo $ECHO_N "checking for library containing login... $ECHO_C" >&6; }
12114if test "${ac_cv_search_login+set}" = set; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12116else
12117 ac_func_search_save_LIBS=$LIBS
12118cat >conftest.$ac_ext <<_ACEOF
12119/* confdefs.h. */
12120_ACEOF
12121cat confdefs.h >>conftest.$ac_ext
12122cat >>conftest.$ac_ext <<_ACEOF
12123/* end confdefs.h. */
12124
12125/* Override any GCC internal prototype to avoid an error.
12126 Use char because int might match the return type of a GCC
12127 builtin and then its argument prototype would still apply. */
12128#ifdef __cplusplus
12129extern "C"
12130#endif
12131char login ();
12132int
12133main ()
12134{
12135return login ();
12136 ;
12137 return 0;
12138}
12139_ACEOF
12140for ac_lib in '' util bsd; do
12141 if test -z "$ac_lib"; then
12142 ac_res="none required"
12143 else
12144 ac_res=-l$ac_lib
12145 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12146 fi
12147 rm -f conftest.$ac_objext conftest$ac_exeext
12148if { (ac_try="$ac_link"
12149case "(($ac_try" in
12150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151 *) ac_try_echo=$ac_try;;
12152esac
12153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12154 (eval "$ac_link") 2>conftest.er1
12155 ac_status=$?
12156 grep -v '^ *+' conftest.er1 >conftest.err
12157 rm -f conftest.er1
12158 cat conftest.err >&5
12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); } && {
12161 test -z "$ac_c_werror_flag" ||
12162 test ! -s conftest.err
12163 } && test -s conftest$ac_exeext &&
12164 $as_test_x conftest$ac_exeext; then
12165 ac_cv_search_login=$ac_res
12166else
12167 echo "$as_me: failed program was:" >&5
12168sed 's/^/| /' conftest.$ac_ext >&5
12169
12170
12171fi
12172
12173rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12174 conftest$ac_exeext
12175 if test "${ac_cv_search_login+set}" = set; then
12176 break
12177fi
12178done
12179if test "${ac_cv_search_login+set}" = set; then
12180 :
12181else
12182 ac_cv_search_login=no
12183fi
12184rm conftest.$ac_ext
12185LIBS=$ac_func_search_save_LIBS
12186fi
12187{ echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
12188echo "${ECHO_T}$ac_cv_search_login" >&6; }
12189ac_res=$ac_cv_search_login
12190if test "$ac_res" != no; then
12191 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12192
12193cat >>confdefs.h <<\_ACEOF
12194#define HAVE_LOGIN 1
12195_ACEOF
12196
12197fi
12198
12199
12200
12201
12202
12203for ac_func in fmt_scaled logout updwtmp logwtmp
12204do
12205as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12206{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12207echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12208if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12210else
12211 cat >conftest.$ac_ext <<_ACEOF
12212/* confdefs.h. */
12213_ACEOF
12214cat confdefs.h >>conftest.$ac_ext
12215cat >>conftest.$ac_ext <<_ACEOF
12216/* end confdefs.h. */
12217/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12219#define $ac_func innocuous_$ac_func
12220
12221/* System header to define __stub macros and hopefully few prototypes,
12222 which can conflict with char $ac_func (); below.
12223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12224 <limits.h> exists even on freestanding compilers. */
12225
12226#ifdef __STDC__
12227# include <limits.h>
12228#else
12229# include <assert.h>
12230#endif
12231
12232#undef $ac_func
12233
12234/* Override any GCC internal prototype to avoid an error.
12235 Use char because int might match the return type of a GCC
12236 builtin and then its argument prototype would still apply. */
12237#ifdef __cplusplus
12238extern "C"
12239#endif
12240char $ac_func ();
12241/* The GNU C library defines this for functions which it implements
12242 to always fail with ENOSYS. Some functions are actually named
12243 something starting with __ and the normal name is an alias. */
12244#if defined __stub_$ac_func || defined __stub___$ac_func
12245choke me
12246#endif
12247
12248int
12249main ()
12250{
12251return $ac_func ();
12252 ;
12253 return 0;
12254}
12255_ACEOF
12256rm -f conftest.$ac_objext conftest$ac_exeext
12257if { (ac_try="$ac_link"
12258case "(($ac_try" in
12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260 *) ac_try_echo=$ac_try;;
12261esac
12262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263 (eval "$ac_link") 2>conftest.er1
12264 ac_status=$?
12265 grep -v '^ *+' conftest.er1 >conftest.err
12266 rm -f conftest.er1
12267 cat conftest.err >&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } && {
12270 test -z "$ac_c_werror_flag" ||
12271 test ! -s conftest.err
12272 } && test -s conftest$ac_exeext &&
12273 $as_test_x conftest$ac_exeext; then
12274 eval "$as_ac_var=yes"
12275else
12276 echo "$as_me: failed program was:" >&5
12277sed 's/^/| /' conftest.$ac_ext >&5
12278
12279 eval "$as_ac_var=no"
12280fi
12281
12282rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12283 conftest$ac_exeext conftest.$ac_ext
12284fi
12285ac_res=`eval echo '${'$as_ac_var'}'`
12286 { echo "$as_me:$LINENO: result: $ac_res" >&5
12287echo "${ECHO_T}$ac_res" >&6; }
12288if test `eval echo '${'$as_ac_var'}'` = yes; then
12289 cat >>confdefs.h <<_ACEOF
12290#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12291_ACEOF
12292
12293fi
12294done
12295
12296
12297
12298for ac_func in strftime
12299do
12300as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12301{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12302echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12303if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12304 echo $ECHO_N "(cached) $ECHO_C" >&6
12305else
12306 cat >conftest.$ac_ext <<_ACEOF
12307/* confdefs.h. */
12308_ACEOF
12309cat confdefs.h >>conftest.$ac_ext
12310cat >>conftest.$ac_ext <<_ACEOF
12311/* end confdefs.h. */
12312/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12314#define $ac_func innocuous_$ac_func
12315
12316/* System header to define __stub macros and hopefully few prototypes,
12317 which can conflict with char $ac_func (); below.
12318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12319 <limits.h> exists even on freestanding compilers. */
12320
12321#ifdef __STDC__
12322# include <limits.h>
12323#else
12324# include <assert.h>
12325#endif
12326
12327#undef $ac_func
12328
12329/* Override any GCC internal prototype to avoid an error.
12330 Use char because int might match the return type of a GCC
12331 builtin and then its argument prototype would still apply. */
12332#ifdef __cplusplus
12333extern "C"
12334#endif
12335char $ac_func ();
12336/* The GNU C library defines this for functions which it implements
12337 to always fail with ENOSYS. Some functions are actually named
12338 something starting with __ and the normal name is an alias. */
12339#if defined __stub_$ac_func || defined __stub___$ac_func
12340choke me
12341#endif
12342
12343int
12344main ()
12345{
12346return $ac_func ();
12347 ;
12348 return 0;
12349}
12350_ACEOF
12351rm -f conftest.$ac_objext conftest$ac_exeext
12352if { (ac_try="$ac_link"
12353case "(($ac_try" in
12354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12355 *) ac_try_echo=$ac_try;;
12356esac
12357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12358 (eval "$ac_link") 2>conftest.er1
12359 ac_status=$?
12360 grep -v '^ *+' conftest.er1 >conftest.err
12361 rm -f conftest.er1
12362 cat conftest.err >&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); } && {
12365 test -z "$ac_c_werror_flag" ||
12366 test ! -s conftest.err
12367 } && test -s conftest$ac_exeext &&
12368 $as_test_x conftest$ac_exeext; then
12369 eval "$as_ac_var=yes"
12370else
12371 echo "$as_me: failed program was:" >&5
12372sed 's/^/| /' conftest.$ac_ext >&5
12373
12374 eval "$as_ac_var=no"
12375fi
12376
12377rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12378 conftest$ac_exeext conftest.$ac_ext
12379fi
12380ac_res=`eval echo '${'$as_ac_var'}'`
12381 { echo "$as_me:$LINENO: result: $ac_res" >&5
12382echo "${ECHO_T}$ac_res" >&6; }
12383if test `eval echo '${'$as_ac_var'}'` = yes; then
12384 cat >>confdefs.h <<_ACEOF
12385#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12386_ACEOF
12387
12388else
12389 # strftime is in -lintl on SCO UNIX.
12390{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
12391echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
12392if test "${ac_cv_lib_intl_strftime+set}" = set; then
12393 echo $ECHO_N "(cached) $ECHO_C" >&6
12394else
12395 ac_check_lib_save_LIBS=$LIBS
12396LIBS="-lintl $LIBS"
12397cat >conftest.$ac_ext <<_ACEOF
12398/* confdefs.h. */
12399_ACEOF
12400cat confdefs.h >>conftest.$ac_ext
12401cat >>conftest.$ac_ext <<_ACEOF
12402/* end confdefs.h. */
12403
12404/* Override any GCC internal prototype to avoid an error.
12405 Use char because int might match the return type of a GCC
12406 builtin and then its argument prototype would still apply. */
12407#ifdef __cplusplus
12408extern "C"
12409#endif
12410char strftime ();
12411int
12412main ()
12413{
12414return strftime ();
12415 ;
12416 return 0;
12417}
12418_ACEOF
12419rm -f conftest.$ac_objext conftest$ac_exeext
12420if { (ac_try="$ac_link"
12421case "(($ac_try" in
12422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12423 *) ac_try_echo=$ac_try;;
12424esac
12425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12426 (eval "$ac_link") 2>conftest.er1
12427 ac_status=$?
12428 grep -v '^ *+' conftest.er1 >conftest.err
12429 rm -f conftest.er1
12430 cat conftest.err >&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); } && {
12433 test -z "$ac_c_werror_flag" ||
12434 test ! -s conftest.err
12435 } && test -s conftest$ac_exeext &&
12436 $as_test_x conftest$ac_exeext; then
12437 ac_cv_lib_intl_strftime=yes
12438else
12439 echo "$as_me: failed program was:" >&5
12440sed 's/^/| /' conftest.$ac_ext >&5
12441
12442 ac_cv_lib_intl_strftime=no
12443fi
12444
12445rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12446 conftest$ac_exeext conftest.$ac_ext
12447LIBS=$ac_check_lib_save_LIBS
12448fi
12449{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
12450echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
12451if test $ac_cv_lib_intl_strftime = yes; then
12452 cat >>confdefs.h <<\_ACEOF
12453#define HAVE_STRFTIME 1
12454_ACEOF
12455
12456LIBS="-lintl $LIBS"
12457fi
12458
12459fi
12460done
12461
12462
12463# Check for ALTDIRFUNC glob() extension
12464{ echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
12465echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6; }
12466cat >conftest.$ac_ext <<_ACEOF
12467/* confdefs.h. */
12468_ACEOF
12469cat confdefs.h >>conftest.$ac_ext
12470cat >>conftest.$ac_ext <<_ACEOF
12471/* end confdefs.h. */
12472
12473 #include <glob.h>
12474 #ifdef GLOB_ALTDIRFUNC
12475 FOUNDIT
12476 #endif
12477
12478_ACEOF
12479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12480 $EGREP "FOUNDIT" >/dev/null 2>&1; then
12481
12482
12483cat >>confdefs.h <<\_ACEOF
12484#define GLOB_HAS_ALTDIRFUNC 1
12485_ACEOF
12486
12487 { echo "$as_me:$LINENO: result: yes" >&5
12488echo "${ECHO_T}yes" >&6; }
12489
12490else
12491
12492 { echo "$as_me:$LINENO: result: no" >&5
12493echo "${ECHO_T}no" >&6; }
12494
12495
12496fi
12497rm -f conftest*
12498
12499
12500# Check for g.gl_matchc glob() extension
12501{ echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
12502echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6; }
12503cat >conftest.$ac_ext <<_ACEOF
12504/* confdefs.h. */
12505_ACEOF
12506cat confdefs.h >>conftest.$ac_ext
12507cat >>conftest.$ac_ext <<_ACEOF
12508/* end confdefs.h. */
12509 #include <glob.h>
12510int
12511main ()
12512{
12513glob_t g; g.gl_matchc = 1;
12514 ;
12515 return 0;
12516}
12517_ACEOF
12518rm -f conftest.$ac_objext
12519if { (ac_try="$ac_compile"
12520case "(($ac_try" in
12521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12522 *) ac_try_echo=$ac_try;;
12523esac
12524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12525 (eval "$ac_compile") 2>conftest.er1
12526 ac_status=$?
12527 grep -v '^ *+' conftest.er1 >conftest.err
12528 rm -f conftest.er1
12529 cat conftest.err >&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); } && {
12532 test -z "$ac_c_werror_flag" ||
12533 test ! -s conftest.err
12534 } && test -s conftest.$ac_objext; then
12535
12536
12537cat >>confdefs.h <<\_ACEOF
12538#define GLOB_HAS_GL_MATCHC 1
12539_ACEOF
12540
12541 { echo "$as_me:$LINENO: result: yes" >&5
12542echo "${ECHO_T}yes" >&6; }
12543
12544else
12545 echo "$as_me: failed program was:" >&5
12546sed 's/^/| /' conftest.$ac_ext >&5
12547
12548
12549 { echo "$as_me:$LINENO: result: no" >&5
12550echo "${ECHO_T}no" >&6; }
12551
12552
12553fi
12554
12555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12556
12557# Check for g.gl_statv glob() extension
12558{ echo "$as_me:$LINENO: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5
12559echo $ECHO_N "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... $ECHO_C" >&6; }
12560cat >conftest.$ac_ext <<_ACEOF
12561/* confdefs.h. */
12562_ACEOF
12563cat confdefs.h >>conftest.$ac_ext
12564cat >>conftest.$ac_ext <<_ACEOF
12565/* end confdefs.h. */
12566 #include <glob.h>
12567int
12568main ()
12569{
12570
12571#ifndef GLOB_KEEPSTAT
12572#error "glob does not support GLOB_KEEPSTAT extension"
12573#endif
12574glob_t g;
12575g.gl_statv = NULL;
12576
12577 ;
12578 return 0;
12579}
12580_ACEOF
12581rm -f conftest.$ac_objext
12582if { (ac_try="$ac_compile"
12583case "(($ac_try" in
12584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12585 *) ac_try_echo=$ac_try;;
12586esac
12587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12588 (eval "$ac_compile") 2>conftest.er1
12589 ac_status=$?
12590 grep -v '^ *+' conftest.er1 >conftest.err
12591 rm -f conftest.er1
12592 cat conftest.err >&5
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); } && {
12595 test -z "$ac_c_werror_flag" ||
12596 test ! -s conftest.err
12597 } && test -s conftest.$ac_objext; then
12598
12599
12600cat >>confdefs.h <<\_ACEOF
12601#define GLOB_HAS_GL_STATV 1
12602_ACEOF
12603
12604 { echo "$as_me:$LINENO: result: yes" >&5
12605echo "${ECHO_T}yes" >&6; }
12606
12607else
12608 echo "$as_me: failed program was:" >&5
12609sed 's/^/| /' conftest.$ac_ext >&5
12610
12611
12612 { echo "$as_me:$LINENO: result: no" >&5
12613echo "${ECHO_T}no" >&6; }
12614
12615
12616fi
12617
12618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12619
12620{ echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5
12621echo $ECHO_N "checking whether GLOB_NOMATCH is declared... $ECHO_C" >&6; }
12622if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then
12623 echo $ECHO_N "(cached) $ECHO_C" >&6
12624else
12625 cat >conftest.$ac_ext <<_ACEOF
12626/* confdefs.h. */
12627_ACEOF
12628cat confdefs.h >>conftest.$ac_ext
12629cat >>conftest.$ac_ext <<_ACEOF
12630/* end confdefs.h. */
12631#include <glob.h>
12632
12633int
12634main ()
12635{
12636#ifndef GLOB_NOMATCH
12637 (void) GLOB_NOMATCH;
12638#endif
12639
12640 ;
12641 return 0;
12642}
12643_ACEOF
12644rm -f conftest.$ac_objext
12645if { (ac_try="$ac_compile"
12646case "(($ac_try" in
12647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648 *) ac_try_echo=$ac_try;;
12649esac
12650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651 (eval "$ac_compile") 2>conftest.er1
12652 ac_status=$?
12653 grep -v '^ *+' conftest.er1 >conftest.err
12654 rm -f conftest.er1
12655 cat conftest.err >&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); } && {
12658 test -z "$ac_c_werror_flag" ||
12659 test ! -s conftest.err
12660 } && test -s conftest.$ac_objext; then
12661 ac_cv_have_decl_GLOB_NOMATCH=yes
12662else
12663 echo "$as_me: failed program was:" >&5
12664sed 's/^/| /' conftest.$ac_ext >&5
12665
12666 ac_cv_have_decl_GLOB_NOMATCH=no
12667fi
12668
12669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12670fi
12671{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5
12672echo "${ECHO_T}$ac_cv_have_decl_GLOB_NOMATCH" >&6; }
12673if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then
12674
12675cat >>confdefs.h <<_ACEOF
12676#define HAVE_DECL_GLOB_NOMATCH 1
12677_ACEOF
12678
12679
12680else
12681 cat >>confdefs.h <<_ACEOF
12682#define HAVE_DECL_GLOB_NOMATCH 0
12683_ACEOF
12684
12685
12686fi
12687
12688
12689
12690{ echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
12691echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6; }
12692if test "$cross_compiling" = yes; then
12693
12694 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
12695echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
12696 cat >>confdefs.h <<\_ACEOF
12697#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
12698_ACEOF
12699
12700
12701
12702else
12703 cat >conftest.$ac_ext <<_ACEOF
12704/* confdefs.h. */
12705_ACEOF
12706cat confdefs.h >>conftest.$ac_ext
12707cat >>conftest.$ac_ext <<_ACEOF
12708/* end confdefs.h. */
12709
12710#include <sys/types.h>
12711#include <dirent.h>
12712int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
12713
12714_ACEOF
12715rm -f conftest$ac_exeext
12716if { (ac_try="$ac_link"
12717case "(($ac_try" in
12718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12719 *) ac_try_echo=$ac_try;;
12720esac
12721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12722 (eval "$ac_link") 2>&5
12723 ac_status=$?
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12726 { (case "(($ac_try" in
12727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12728 *) ac_try_echo=$ac_try;;
12729esac
12730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12731 (eval "$ac_try") 2>&5
12732 ac_status=$?
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); }; }; then
12735 { echo "$as_me:$LINENO: result: yes" >&5
12736echo "${ECHO_T}yes" >&6; }
12737else
12738 echo "$as_me: program exited with status $ac_status" >&5
12739echo "$as_me: failed program was:" >&5
12740sed 's/^/| /' conftest.$ac_ext >&5
12741
12742( exit $ac_status )
12743
12744 { echo "$as_me:$LINENO: result: no" >&5
12745echo "${ECHO_T}no" >&6; }
12746
12747cat >>confdefs.h <<\_ACEOF
12748#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
12749_ACEOF
12750
12751
12752fi
12753rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12754fi
12755
12756
12757
12758{ echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5
12759echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6; }
12760if test -d "/proc/$$/fd" ; then
12761
12762cat >>confdefs.h <<\_ACEOF
12763#define HAVE_PROC_PID 1
12764_ACEOF
12765
12766 { echo "$as_me:$LINENO: result: yes" >&5
12767echo "${ECHO_T}yes" >&6; }
12768else
12769 { echo "$as_me:$LINENO: result: no" >&5
12770echo "${ECHO_T}no" >&6; }
12771fi
12772
12773# Check whether user wants S/Key support
12774SKEY_MSG="no"
12775
12776# Check whether --with-skey was given.
12777if test "${with_skey+set}" = set; then
12778 withval=$with_skey;
12779 if test "x$withval" != "xno" ; then
12780
12781 if test "x$withval" != "xyes" ; then
12782 CPPFLAGS="$CPPFLAGS -I${withval}/include"
12783 LDFLAGS="$LDFLAGS -L${withval}/lib"
12784 fi
12785
12786
12787cat >>confdefs.h <<\_ACEOF
12788#define SKEY 1
12789_ACEOF
12790
12791 LIBS="-lskey $LIBS"
12792 SKEY_MSG="yes"
12793
12794 { echo "$as_me:$LINENO: checking for s/key support" >&5
12795echo $ECHO_N "checking for s/key support... $ECHO_C" >&6; }
12796 cat >conftest.$ac_ext <<_ACEOF
12797/* confdefs.h. */
12798_ACEOF
12799cat confdefs.h >>conftest.$ac_ext
12800cat >>conftest.$ac_ext <<_ACEOF
12801/* end confdefs.h. */
12802
12803#include <stdio.h>
12804#include <skey.h>
12805int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
12806
12807_ACEOF
12808rm -f conftest.$ac_objext conftest$ac_exeext
12809if { (ac_try="$ac_link"
12810case "(($ac_try" in
12811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12812 *) ac_try_echo=$ac_try;;
12813esac
12814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12815 (eval "$ac_link") 2>conftest.er1
12816 ac_status=$?
12817 grep -v '^ *+' conftest.er1 >conftest.err
12818 rm -f conftest.er1
12819 cat conftest.err >&5
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); } && {
12822 test -z "$ac_c_werror_flag" ||
12823 test ! -s conftest.err
12824 } && test -s conftest$ac_exeext &&
12825 $as_test_x conftest$ac_exeext; then
12826 { echo "$as_me:$LINENO: result: yes" >&5
12827echo "${ECHO_T}yes" >&6; }
12828else
12829 echo "$as_me: failed program was:" >&5
12830sed 's/^/| /' conftest.$ac_ext >&5
12831
12832
12833 { echo "$as_me:$LINENO: result: no" >&5
12834echo "${ECHO_T}no" >&6; }
12835 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
12836echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
12837 { (exit 1); exit 1; }; }
12838
12839fi
12840
12841rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12842 conftest$ac_exeext conftest.$ac_ext
12843 { echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5
12844echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6; }
12845 cat >conftest.$ac_ext <<_ACEOF
12846/* confdefs.h. */
12847_ACEOF
12848cat confdefs.h >>conftest.$ac_ext
12849cat >>conftest.$ac_ext <<_ACEOF
12850/* end confdefs.h. */
12851#include <stdio.h>
12852 #include <skey.h>
12853int
12854main ()
12855{
12856(void)skeychallenge(NULL,"name","",0);
12857 ;
12858 return 0;
12859}
12860_ACEOF
12861rm -f conftest.$ac_objext
12862if { (ac_try="$ac_compile"
12863case "(($ac_try" in
12864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12865 *) ac_try_echo=$ac_try;;
12866esac
12867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12868 (eval "$ac_compile") 2>conftest.er1
12869 ac_status=$?
12870 grep -v '^ *+' conftest.er1 >conftest.err
12871 rm -f conftest.er1
12872 cat conftest.err >&5
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); } && {
12875 test -z "$ac_c_werror_flag" ||
12876 test ! -s conftest.err
12877 } && test -s conftest.$ac_objext; then
12878 { echo "$as_me:$LINENO: result: yes" >&5
12879echo "${ECHO_T}yes" >&6; }
12880
12881cat >>confdefs.h <<\_ACEOF
12882#define SKEYCHALLENGE_4ARG 1
12883_ACEOF
12884
12885else
12886 echo "$as_me: failed program was:" >&5
12887sed 's/^/| /' conftest.$ac_ext >&5
12888
12889 { echo "$as_me:$LINENO: result: no" >&5
12890echo "${ECHO_T}no" >&6; }
12891
12892fi
12893
12894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12895 fi
12896
12897
12898fi
12899
12900
12901# Check whether user wants TCP wrappers support
12902TCPW_MSG="no"
12903
12904# Check whether --with-tcp-wrappers was given.
12905if test "${with_tcp_wrappers+set}" = set; then
12906 withval=$with_tcp_wrappers;
12907 if test "x$withval" != "xno" ; then
12908 saved_LIBS="$LIBS"
12909 saved_LDFLAGS="$LDFLAGS"
12910 saved_CPPFLAGS="$CPPFLAGS"
12911 if test -n "${withval}" && \
12912 test "x${withval}" != "xyes"; then
12913 if test -d "${withval}/lib"; then
12914 if test -n "${need_dash_r}"; then
12915 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
12916 else
12917 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
12918 fi
12919 else
12920 if test -n "${need_dash_r}"; then
12921 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
12922 else
12923 LDFLAGS="-L${withval} ${LDFLAGS}"
12924 fi
12925 fi
12926 if test -d "${withval}/include"; then
12927 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
12928 else
12929 CPPFLAGS="-I${withval} ${CPPFLAGS}"
12930 fi
12931 fi
12932 LIBS="-lwrap $LIBS"
12933 { echo "$as_me:$LINENO: checking for libwrap" >&5
12934echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
12935 cat >conftest.$ac_ext <<_ACEOF
12936/* confdefs.h. */
12937_ACEOF
12938cat confdefs.h >>conftest.$ac_ext
12939cat >>conftest.$ac_ext <<_ACEOF
12940/* end confdefs.h. */
12941
12942#include <sys/types.h>
12943#include <sys/socket.h>
12944#include <netinet/in.h>
12945#include <tcpd.h>
12946 int deny_severity = 0, allow_severity = 0;
12947
12948int
12949main ()
12950{
12951hosts_access(0);
12952 ;
12953 return 0;
12954}
12955_ACEOF
12956rm -f conftest.$ac_objext conftest$ac_exeext
12957if { (ac_try="$ac_link"
12958case "(($ac_try" in
12959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12960 *) ac_try_echo=$ac_try;;
12961esac
12962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12963 (eval "$ac_link") 2>conftest.er1
12964 ac_status=$?
12965 grep -v '^ *+' conftest.er1 >conftest.err
12966 rm -f conftest.er1
12967 cat conftest.err >&5
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); } && {
12970 test -z "$ac_c_werror_flag" ||
12971 test ! -s conftest.err
12972 } && test -s conftest$ac_exeext &&
12973 $as_test_x conftest$ac_exeext; then
12974
12975 { echo "$as_me:$LINENO: result: yes" >&5
12976echo "${ECHO_T}yes" >&6; }
12977
12978cat >>confdefs.h <<\_ACEOF
12979#define LIBWRAP 1
12980_ACEOF
12981
12982 SSHDLIBS="$SSHDLIBS -lwrap"
12983 TCPW_MSG="yes"
12984
12985else
12986 echo "$as_me: failed program was:" >&5
12987sed 's/^/| /' conftest.$ac_ext >&5
12988
12989
12990 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
12991echo "$as_me: error: *** libwrap missing" >&2;}
12992 { (exit 1); exit 1; }; }
12993
12994
12995fi
12996
12997rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12998 conftest$ac_exeext conftest.$ac_ext
12999 LIBS="$saved_LIBS"
13000 fi
13001
13002
13003fi
13004
13005
13006# Check whether user wants libedit support
13007LIBEDIT_MSG="no"
13008
13009# Check whether --with-libedit was given.
13010if test "${with_libedit+set}" = set; then
13011 withval=$with_libedit; if test "x$withval" != "xno" ; then
13012 if test "x$withval" = "xyes" ; then
13013 # Extract the first word of "pkg-config", so it can be a program name with args.
13014set dummy pkg-config; ac_word=$2
13015{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13017if test "${ac_cv_path_PKGCONFIG+set}" = set; then
13018 echo $ECHO_N "(cached) $ECHO_C" >&6
13019else
13020 case $PKGCONFIG in
13021 [\\/]* | ?:[\\/]*)
13022 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
13023 ;;
13024 *)
13025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13026for as_dir in $PATH
13027do
13028 IFS=$as_save_IFS
13029 test -z "$as_dir" && as_dir=.
13030 for ac_exec_ext in '' $ac_executable_extensions; do
13031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13032 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
13033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13034 break 2
13035 fi
13036done
13037done
13038IFS=$as_save_IFS
13039
13040 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
13041 ;;
13042esac
13043fi
13044PKGCONFIG=$ac_cv_path_PKGCONFIG
13045if test -n "$PKGCONFIG"; then
13046 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
13047echo "${ECHO_T}$PKGCONFIG" >&6; }
13048else
13049 { echo "$as_me:$LINENO: result: no" >&5
13050echo "${ECHO_T}no" >&6; }
13051fi
13052
13053
13054 if test "x$PKGCONFIG" != "xno"; then
13055 { echo "$as_me:$LINENO: checking if $PKGCONFIG knows about libedit" >&5
13056echo $ECHO_N "checking if $PKGCONFIG knows about libedit... $ECHO_C" >&6; }
13057 if "$PKGCONFIG" libedit; then
13058 { echo "$as_me:$LINENO: result: yes" >&5
13059echo "${ECHO_T}yes" >&6; }
13060 use_pkgconfig_for_libedit=yes
13061 else
13062 { echo "$as_me:$LINENO: result: no" >&5
13063echo "${ECHO_T}no" >&6; }
13064 fi
13065 fi
13066 else
13067 CPPFLAGS="$CPPFLAGS -I${withval}/include"
13068 if test -n "${need_dash_r}"; then
13069 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
13070 else
13071 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
13072 fi
13073 fi
13074 if test "x$use_pkgconfig_for_libedit" = "xyes"; then
13075 LIBEDIT=`$PKGCONFIG --libs-only-l libedit`
13076 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`"
13077 else
13078 LIBEDIT="-ledit -lcurses"
13079 fi
13080 OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
13081 { echo "$as_me:$LINENO: checking for el_init in -ledit" >&5
13082echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6; }
13083if test "${ac_cv_lib_edit_el_init+set}" = set; then
13084 echo $ECHO_N "(cached) $ECHO_C" >&6
13085else
13086 ac_check_lib_save_LIBS=$LIBS
13087LIBS="-ledit $OTHERLIBS
13088 $LIBS"
13089cat >conftest.$ac_ext <<_ACEOF
13090/* confdefs.h. */
13091_ACEOF
13092cat confdefs.h >>conftest.$ac_ext
13093cat >>conftest.$ac_ext <<_ACEOF
13094/* end confdefs.h. */
13095
13096/* Override any GCC internal prototype to avoid an error.
13097 Use char because int might match the return type of a GCC
13098 builtin and then its argument prototype would still apply. */
13099#ifdef __cplusplus
13100extern "C"
13101#endif
13102char el_init ();
13103int
13104main ()
13105{
13106return el_init ();
13107 ;
13108 return 0;
13109}
13110_ACEOF
13111rm -f conftest.$ac_objext conftest$ac_exeext
13112if { (ac_try="$ac_link"
13113case "(($ac_try" in
13114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13115 *) ac_try_echo=$ac_try;;
13116esac
13117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13118 (eval "$ac_link") 2>conftest.er1
13119 ac_status=$?
13120 grep -v '^ *+' conftest.er1 >conftest.err
13121 rm -f conftest.er1
13122 cat conftest.err >&5
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); } && {
13125 test -z "$ac_c_werror_flag" ||
13126 test ! -s conftest.err
13127 } && test -s conftest$ac_exeext &&
13128 $as_test_x conftest$ac_exeext; then
13129 ac_cv_lib_edit_el_init=yes
13130else
13131 echo "$as_me: failed program was:" >&5
13132sed 's/^/| /' conftest.$ac_ext >&5
13133
13134 ac_cv_lib_edit_el_init=no
13135fi
13136
13137rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13138 conftest$ac_exeext conftest.$ac_ext
13139LIBS=$ac_check_lib_save_LIBS
13140fi
13141{ echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5
13142echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6; }
13143if test $ac_cv_lib_edit_el_init = yes; then
13144
13145cat >>confdefs.h <<\_ACEOF
13146#define USE_LIBEDIT 1
13147_ACEOF
13148
13149 LIBEDIT_MSG="yes"
13150
13151
13152else
13153 { { echo "$as_me:$LINENO: error: libedit not found" >&5
13154echo "$as_me: error: libedit not found" >&2;}
13155 { (exit 1); exit 1; }; }
13156fi
13157
13158 { echo "$as_me:$LINENO: checking if libedit version is compatible" >&5
13159echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6; }
13160 cat >conftest.$ac_ext <<_ACEOF
13161/* confdefs.h. */
13162_ACEOF
13163cat confdefs.h >>conftest.$ac_ext
13164cat >>conftest.$ac_ext <<_ACEOF
13165/* end confdefs.h. */
13166
13167#include <histedit.h>
13168int main(void)
13169{
13170 int i = H_SETSIZE;
13171 el_init("", NULL, NULL, NULL);
13172 exit(0);
13173}
13174
13175_ACEOF
13176rm -f conftest.$ac_objext
13177if { (ac_try="$ac_compile"
13178case "(($ac_try" in
13179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13180 *) ac_try_echo=$ac_try;;
13181esac
13182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13183 (eval "$ac_compile") 2>conftest.er1
13184 ac_status=$?
13185 grep -v '^ *+' conftest.er1 >conftest.err
13186 rm -f conftest.er1
13187 cat conftest.err >&5
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); } && {
13190 test -z "$ac_c_werror_flag" ||
13191 test ! -s conftest.err
13192 } && test -s conftest.$ac_objext; then
13193 { echo "$as_me:$LINENO: result: yes" >&5
13194echo "${ECHO_T}yes" >&6; }
13195else
13196 echo "$as_me: failed program was:" >&5
13197sed 's/^/| /' conftest.$ac_ext >&5
13198
13199 { echo "$as_me:$LINENO: result: no" >&5
13200echo "${ECHO_T}no" >&6; }
13201 { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5
13202echo "$as_me: error: libedit version is not compatible" >&2;}
13203 { (exit 1); exit 1; }; }
13204
13205fi
13206
13207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13208 fi
13209
13210fi
13211
13212
13213AUDIT_MODULE=none
13214
13215# Check whether --with-audit was given.
13216if test "${with_audit+set}" = set; then
13217 withval=$with_audit;
13218 { echo "$as_me:$LINENO: checking for supported audit module" >&5
13219echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6; }
13220 case "$withval" in
13221 bsm)
13222 { echo "$as_me:$LINENO: result: bsm" >&5
13223echo "${ECHO_T}bsm" >&6; }
13224 AUDIT_MODULE=bsm
13225
13226for ac_header in bsm/audit.h
13227do
13228as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13229{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13231if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13232 echo $ECHO_N "(cached) $ECHO_C" >&6
13233else
13234 cat >conftest.$ac_ext <<_ACEOF
13235/* confdefs.h. */
13236_ACEOF
13237cat confdefs.h >>conftest.$ac_ext
13238cat >>conftest.$ac_ext <<_ACEOF
13239/* end confdefs.h. */
13240
13241#ifdef HAVE_TIME_H
13242# include <time.h>
13243#endif
13244
13245
13246
13247#include <$ac_header>
13248_ACEOF
13249rm -f conftest.$ac_objext
13250if { (ac_try="$ac_compile"
13251case "(($ac_try" in
13252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13253 *) ac_try_echo=$ac_try;;
13254esac
13255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13256 (eval "$ac_compile") 2>conftest.er1
13257 ac_status=$?
13258 grep -v '^ *+' conftest.er1 >conftest.err
13259 rm -f conftest.er1
13260 cat conftest.err >&5
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); } && {
13263 test -z "$ac_c_werror_flag" ||
13264 test ! -s conftest.err
13265 } && test -s conftest.$ac_objext; then
13266 eval "$as_ac_Header=yes"
13267else
13268 echo "$as_me: failed program was:" >&5
13269sed 's/^/| /' conftest.$ac_ext >&5
13270
13271 eval "$as_ac_Header=no"
13272fi
13273
13274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13275fi
13276ac_res=`eval echo '${'$as_ac_Header'}'`
13277 { echo "$as_me:$LINENO: result: $ac_res" >&5
13278echo "${ECHO_T}$ac_res" >&6; }
13279if test `eval echo '${'$as_ac_Header'}'` = yes; then
13280 cat >>confdefs.h <<_ACEOF
13281#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13282_ACEOF
13283
13284else
13285 { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5
13286echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;}
13287 { (exit 1); exit 1; }; }
13288fi
13289
13290done
13291
13292
13293{ echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5
13294echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6; }
13295if test "${ac_cv_lib_bsm_getaudit+set}" = set; then
13296 echo $ECHO_N "(cached) $ECHO_C" >&6
13297else
13298 ac_check_lib_save_LIBS=$LIBS
13299LIBS="-lbsm $LIBS"
13300cat >conftest.$ac_ext <<_ACEOF
13301/* confdefs.h. */
13302_ACEOF
13303cat confdefs.h >>conftest.$ac_ext
13304cat >>conftest.$ac_ext <<_ACEOF
13305/* end confdefs.h. */
13306
13307/* Override any GCC internal prototype to avoid an error.
13308 Use char because int might match the return type of a GCC
13309 builtin and then its argument prototype would still apply. */
13310#ifdef __cplusplus
13311extern "C"
13312#endif
13313char getaudit ();
13314int
13315main ()
13316{
13317return getaudit ();
13318 ;
13319 return 0;
13320}
13321_ACEOF
13322rm -f conftest.$ac_objext conftest$ac_exeext
13323if { (ac_try="$ac_link"
13324case "(($ac_try" in
13325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13326 *) ac_try_echo=$ac_try;;
13327esac
13328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13329 (eval "$ac_link") 2>conftest.er1
13330 ac_status=$?
13331 grep -v '^ *+' conftest.er1 >conftest.err
13332 rm -f conftest.er1
13333 cat conftest.err >&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); } && {
13336 test -z "$ac_c_werror_flag" ||
13337 test ! -s conftest.err
13338 } && test -s conftest$ac_exeext &&
13339 $as_test_x conftest$ac_exeext; then
13340 ac_cv_lib_bsm_getaudit=yes
13341else
13342 echo "$as_me: failed program was:" >&5
13343sed 's/^/| /' conftest.$ac_ext >&5
13344
13345 ac_cv_lib_bsm_getaudit=no
13346fi
13347
13348rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13349 conftest$ac_exeext conftest.$ac_ext
13350LIBS=$ac_check_lib_save_LIBS
13351fi
13352{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5
13353echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6; }
13354if test $ac_cv_lib_bsm_getaudit = yes; then
13355 cat >>confdefs.h <<_ACEOF
13356#define HAVE_LIBBSM 1
13357_ACEOF
13358
13359 LIBS="-lbsm $LIBS"
13360
13361else
13362 { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5
13363echo "$as_me: error: BSM enabled and required library not found" >&2;}
13364 { (exit 1); exit 1; }; }
13365fi
13366
13367
13368for ac_func in getaudit
13369do
13370as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13371{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13372echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13373if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13374 echo $ECHO_N "(cached) $ECHO_C" >&6
13375else
13376 cat >conftest.$ac_ext <<_ACEOF
13377/* confdefs.h. */
13378_ACEOF
13379cat confdefs.h >>conftest.$ac_ext
13380cat >>conftest.$ac_ext <<_ACEOF
13381/* end confdefs.h. */
13382/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13384#define $ac_func innocuous_$ac_func
13385
13386/* System header to define __stub macros and hopefully few prototypes,
13387 which can conflict with char $ac_func (); below.
13388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13389 <limits.h> exists even on freestanding compilers. */
13390
13391#ifdef __STDC__
13392# include <limits.h>
13393#else
13394# include <assert.h>
13395#endif
13396
13397#undef $ac_func
13398
13399/* Override any GCC internal prototype to avoid an error.
13400 Use char because int might match the return type of a GCC
13401 builtin and then its argument prototype would still apply. */
13402#ifdef __cplusplus
13403extern "C"
13404#endif
13405char $ac_func ();
13406/* The GNU C library defines this for functions which it implements
13407 to always fail with ENOSYS. Some functions are actually named
13408 something starting with __ and the normal name is an alias. */
13409#if defined __stub_$ac_func || defined __stub___$ac_func
13410choke me
13411#endif
13412
13413int
13414main ()
13415{
13416return $ac_func ();
13417 ;
13418 return 0;
13419}
13420_ACEOF
13421rm -f conftest.$ac_objext conftest$ac_exeext
13422if { (ac_try="$ac_link"
13423case "(($ac_try" in
13424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13425 *) ac_try_echo=$ac_try;;
13426esac
13427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13428 (eval "$ac_link") 2>conftest.er1
13429 ac_status=$?
13430 grep -v '^ *+' conftest.er1 >conftest.err
13431 rm -f conftest.er1
13432 cat conftest.err >&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); } && {
13435 test -z "$ac_c_werror_flag" ||
13436 test ! -s conftest.err
13437 } && test -s conftest$ac_exeext &&
13438 $as_test_x conftest$ac_exeext; then
13439 eval "$as_ac_var=yes"
13440else
13441 echo "$as_me: failed program was:" >&5
13442sed 's/^/| /' conftest.$ac_ext >&5
13443
13444 eval "$as_ac_var=no"
13445fi
13446
13447rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13448 conftest$ac_exeext conftest.$ac_ext
13449fi
13450ac_res=`eval echo '${'$as_ac_var'}'`
13451 { echo "$as_me:$LINENO: result: $ac_res" >&5
13452echo "${ECHO_T}$ac_res" >&6; }
13453if test `eval echo '${'$as_ac_var'}'` = yes; then
13454 cat >>confdefs.h <<_ACEOF
13455#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13456_ACEOF
13457
13458else
13459 { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5
13460echo "$as_me: error: BSM enabled and required function not found" >&2;}
13461 { (exit 1); exit 1; }; }
13462fi
13463done
13464
13465 # These are optional
13466
13467
13468for ac_func in getaudit_addr aug_get_machine
13469do
13470as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13471{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13472echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13473if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13474 echo $ECHO_N "(cached) $ECHO_C" >&6
13475else
13476 cat >conftest.$ac_ext <<_ACEOF
13477/* confdefs.h. */
13478_ACEOF
13479cat confdefs.h >>conftest.$ac_ext
13480cat >>conftest.$ac_ext <<_ACEOF
13481/* end confdefs.h. */
13482/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13484#define $ac_func innocuous_$ac_func
13485
13486/* System header to define __stub macros and hopefully few prototypes,
13487 which can conflict with char $ac_func (); below.
13488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13489 <limits.h> exists even on freestanding compilers. */
13490
13491#ifdef __STDC__
13492# include <limits.h>
13493#else
13494# include <assert.h>
13495#endif
13496
13497#undef $ac_func
13498
13499/* Override any GCC internal prototype to avoid an error.
13500 Use char because int might match the return type of a GCC
13501 builtin and then its argument prototype would still apply. */
13502#ifdef __cplusplus
13503extern "C"
13504#endif
13505char $ac_func ();
13506/* The GNU C library defines this for functions which it implements
13507 to always fail with ENOSYS. Some functions are actually named
13508 something starting with __ and the normal name is an alias. */
13509#if defined __stub_$ac_func || defined __stub___$ac_func
13510choke me
13511#endif
13512
13513int
13514main ()
13515{
13516return $ac_func ();
13517 ;
13518 return 0;
13519}
13520_ACEOF
13521rm -f conftest.$ac_objext conftest$ac_exeext
13522if { (ac_try="$ac_link"
13523case "(($ac_try" in
13524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13525 *) ac_try_echo=$ac_try;;
13526esac
13527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13528 (eval "$ac_link") 2>conftest.er1
13529 ac_status=$?
13530 grep -v '^ *+' conftest.er1 >conftest.err
13531 rm -f conftest.er1
13532 cat conftest.err >&5
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); } && {
13535 test -z "$ac_c_werror_flag" ||
13536 test ! -s conftest.err
13537 } && test -s conftest$ac_exeext &&
13538 $as_test_x conftest$ac_exeext; then
13539 eval "$as_ac_var=yes"
13540else
13541 echo "$as_me: failed program was:" >&5
13542sed 's/^/| /' conftest.$ac_ext >&5
13543
13544 eval "$as_ac_var=no"
13545fi
13546
13547rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13548 conftest$ac_exeext conftest.$ac_ext
13549fi
13550ac_res=`eval echo '${'$as_ac_var'}'`
13551 { echo "$as_me:$LINENO: result: $ac_res" >&5
13552echo "${ECHO_T}$ac_res" >&6; }
13553if test `eval echo '${'$as_ac_var'}'` = yes; then
13554 cat >>confdefs.h <<_ACEOF
13555#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13556_ACEOF
13557
13558fi
13559done
13560
13561
13562cat >>confdefs.h <<\_ACEOF
13563#define USE_BSM_AUDIT 1
13564_ACEOF
13565
13566 ;;
13567 linux)
13568 { echo "$as_me:$LINENO: result: linux" >&5
13569echo "${ECHO_T}linux" >&6; }
13570 AUDIT_MODULE=linux
13571
13572for ac_header in libaudit.h
13573do
13574as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13575if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13577echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13578if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13579 echo $ECHO_N "(cached) $ECHO_C" >&6
13580fi
13581ac_res=`eval echo '${'$as_ac_Header'}'`
13582 { echo "$as_me:$LINENO: result: $ac_res" >&5
13583echo "${ECHO_T}$ac_res" >&6; }
13584else
13585 # Is the header compilable?
13586{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13587echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13588cat >conftest.$ac_ext <<_ACEOF
13589/* confdefs.h. */
13590_ACEOF
13591cat confdefs.h >>conftest.$ac_ext
13592cat >>conftest.$ac_ext <<_ACEOF
13593/* end confdefs.h. */
13594$ac_includes_default
13595#include <$ac_header>
13596_ACEOF
13597rm -f conftest.$ac_objext
13598if { (ac_try="$ac_compile"
13599case "(($ac_try" in
13600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13601 *) ac_try_echo=$ac_try;;
13602esac
13603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13604 (eval "$ac_compile") 2>conftest.er1
13605 ac_status=$?
13606 grep -v '^ *+' conftest.er1 >conftest.err
13607 rm -f conftest.er1
13608 cat conftest.err >&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); } && {
13611 test -z "$ac_c_werror_flag" ||
13612 test ! -s conftest.err
13613 } && test -s conftest.$ac_objext; then
13614 ac_header_compiler=yes
13615else
13616 echo "$as_me: failed program was:" >&5
13617sed 's/^/| /' conftest.$ac_ext >&5
13618
13619 ac_header_compiler=no
13620fi
13621
13622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13623{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13624echo "${ECHO_T}$ac_header_compiler" >&6; }
13625
13626# Is the header present?
13627{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13628echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13629cat >conftest.$ac_ext <<_ACEOF
13630/* confdefs.h. */
13631_ACEOF
13632cat confdefs.h >>conftest.$ac_ext
13633cat >>conftest.$ac_ext <<_ACEOF
13634/* end confdefs.h. */
13635#include <$ac_header>
13636_ACEOF
13637if { (ac_try="$ac_cpp conftest.$ac_ext"
13638case "(($ac_try" in
13639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13640 *) ac_try_echo=$ac_try;;
13641esac
13642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13644 ac_status=$?
13645 grep -v '^ *+' conftest.er1 >conftest.err
13646 rm -f conftest.er1
13647 cat conftest.err >&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); } >/dev/null && {
13650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13651 test ! -s conftest.err
13652 }; then
13653 ac_header_preproc=yes
13654else
13655 echo "$as_me: failed program was:" >&5
13656sed 's/^/| /' conftest.$ac_ext >&5
13657
13658 ac_header_preproc=no
13659fi
13660
13661rm -f conftest.err conftest.$ac_ext
13662{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13663echo "${ECHO_T}$ac_header_preproc" >&6; }
13664
13665# So? What about this header?
13666case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13667 yes:no: )
13668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13669echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13671echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13672 ac_header_preproc=yes
13673 ;;
13674 no:yes:* )
13675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13676echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13678echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13680echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13682echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13684echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13686echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13687 ( cat <<\_ASBOX
13688## ------------------------------------------- ##
13689## Report this to openssh-unix-dev@mindrot.org ##
13690## ------------------------------------------- ##
13691_ASBOX
13692 ) | sed "s/^/$as_me: WARNING: /" >&2
13693 ;;
13694esac
13695{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13697if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13698 echo $ECHO_N "(cached) $ECHO_C" >&6
13699else
13700 eval "$as_ac_Header=\$ac_header_preproc"
13701fi
13702ac_res=`eval echo '${'$as_ac_Header'}'`
13703 { echo "$as_me:$LINENO: result: $ac_res" >&5
13704echo "${ECHO_T}$ac_res" >&6; }
13705
13706fi
13707if test `eval echo '${'$as_ac_Header'}'` = yes; then
13708 cat >>confdefs.h <<_ACEOF
13709#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13710_ACEOF
13711
13712fi
13713
13714done
13715
13716 SSHDLIBS="$SSHDLIBS -laudit"
13717
13718cat >>confdefs.h <<\_ACEOF
13719#define USE_LINUX_AUDIT 1
13720_ACEOF
13721
13722 ;;
13723 debug)
13724 AUDIT_MODULE=debug
13725 { echo "$as_me:$LINENO: result: debug" >&5
13726echo "${ECHO_T}debug" >&6; }
13727
13728cat >>confdefs.h <<\_ACEOF
13729#define SSH_AUDIT_EVENTS 1
13730_ACEOF
13731
13732 ;;
13733 no)
13734 { echo "$as_me:$LINENO: result: no" >&5
13735echo "${ECHO_T}no" >&6; }
13736 ;;
13737 *)
13738 { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5
13739echo "$as_me: error: Unknown audit module $withval" >&2;}
13740 { (exit 1); exit 1; }; }
13741 ;;
13742 esac
13743
13744fi
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842for ac_func in \
13843 arc4random \
13844 arc4random_buf \
13845 arc4random_uniform \
13846 asprintf \
13847 b64_ntop \
13848 __b64_ntop \
13849 b64_pton \
13850 __b64_pton \
13851 bcopy \
13852 bindresvport_sa \
13853 clock \
13854 closefrom \
13855 dirfd \
13856 fchmod \
13857 fchown \
13858 freeaddrinfo \
13859 fstatvfs \
13860 futimes \
13861 getaddrinfo \
13862 getcwd \
13863 getgrouplist \
13864 getnameinfo \
13865 getopt \
13866 getpeereid \
13867 getpeerucred \
13868 _getpty \
13869 getrlimit \
13870 getttyent \
13871 glob \
13872 group_from_gid \
13873 inet_aton \
13874 inet_ntoa \
13875 inet_ntop \
13876 innetgr \
13877 login_getcapbool \
13878 md5_crypt \
13879 memmove \
13880 mkdtemp \
13881 mmap \
13882 ngetaddrinfo \
13883 nsleep \
13884 ogetaddrinfo \
13885 openlog_r \
13886 openpty \
13887 poll \
13888 prctl \
13889 pstat \
13890 readpassphrase \
13891 realpath \
13892 recvmsg \
13893 rresvport_af \
13894 sendmsg \
13895 setdtablesize \
13896 setegid \
13897 setenv \
13898 seteuid \
13899 setgroupent \
13900 setgroups \
13901 setlogin \
13902 setpassent\
13903 setpcred \
13904 setproctitle \
13905 setregid \
13906 setreuid \
13907 setrlimit \
13908 setsid \
13909 setvbuf \
13910 sigaction \
13911 sigvec \
13912 snprintf \
13913 socketpair \
13914 statfs \
13915 statvfs \
13916 strdup \
13917 strerror \
13918 strlcat \
13919 strlcpy \
13920 strmode \
13921 strnvis \
13922 strptime \
13923 strtonum \
13924 strtoll \
13925 strtoul \
13926 swap32 \
13927 sysconf \
13928 tcgetpgrp \
13929 timingsafe_bcmp \
13930 truncate \
13931 unsetenv \
13932 updwtmpx \
13933 user_from_uid \
13934 vasprintf \
13935 vhangup \
13936 vsnprintf \
13937 waitpid \
13938
13939do
13940as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13941{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13942echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13943if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13944 echo $ECHO_N "(cached) $ECHO_C" >&6
13945else
13946 cat >conftest.$ac_ext <<_ACEOF
13947/* confdefs.h. */
13948_ACEOF
13949cat confdefs.h >>conftest.$ac_ext
13950cat >>conftest.$ac_ext <<_ACEOF
13951/* end confdefs.h. */
13952/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13954#define $ac_func innocuous_$ac_func
13955
13956/* System header to define __stub macros and hopefully few prototypes,
13957 which can conflict with char $ac_func (); below.
13958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13959 <limits.h> exists even on freestanding compilers. */
13960
13961#ifdef __STDC__
13962# include <limits.h>
13963#else
13964# include <assert.h>
13965#endif
13966
13967#undef $ac_func
13968
13969/* Override any GCC internal prototype to avoid an error.
13970 Use char because int might match the return type of a GCC
13971 builtin and then its argument prototype would still apply. */
13972#ifdef __cplusplus
13973extern "C"
13974#endif
13975char $ac_func ();
13976/* The GNU C library defines this for functions which it implements
13977 to always fail with ENOSYS. Some functions are actually named
13978 something starting with __ and the normal name is an alias. */
13979#if defined __stub_$ac_func || defined __stub___$ac_func
13980choke me
13981#endif
13982
13983int
13984main ()
13985{
13986return $ac_func ();
13987 ;
13988 return 0;
13989}
13990_ACEOF
13991rm -f conftest.$ac_objext conftest$ac_exeext
13992if { (ac_try="$ac_link"
13993case "(($ac_try" in
13994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13995 *) ac_try_echo=$ac_try;;
13996esac
13997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13998 (eval "$ac_link") 2>conftest.er1
13999 ac_status=$?
14000 grep -v '^ *+' conftest.er1 >conftest.err
14001 rm -f conftest.er1
14002 cat conftest.err >&5
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); } && {
14005 test -z "$ac_c_werror_flag" ||
14006 test ! -s conftest.err
14007 } && test -s conftest$ac_exeext &&
14008 $as_test_x conftest$ac_exeext; then
14009 eval "$as_ac_var=yes"
14010else
14011 echo "$as_me: failed program was:" >&5
14012sed 's/^/| /' conftest.$ac_ext >&5
14013
14014 eval "$as_ac_var=no"
14015fi
14016
14017rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14018 conftest$ac_exeext conftest.$ac_ext
14019fi
14020ac_res=`eval echo '${'$as_ac_var'}'`
14021 { echo "$as_me:$LINENO: result: $ac_res" >&5
14022echo "${ECHO_T}$ac_res" >&6; }
14023if test `eval echo '${'$as_ac_var'}'` = yes; then
14024 cat >>confdefs.h <<_ACEOF
14025#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14026_ACEOF
14027
14028fi
14029done
14030
14031
14032cat >conftest.$ac_ext <<_ACEOF
14033
14034#include <ctype.h>
14035int main(void)
14036{
14037 return (isblank('a'));
14038}
14039
14040_ACEOF
14041rm -f conftest.$ac_objext conftest$ac_exeext
14042if { (ac_try="$ac_link"
14043case "(($ac_try" in
14044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14045 *) ac_try_echo=$ac_try;;
14046esac
14047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14048 (eval "$ac_link") 2>conftest.er1
14049 ac_status=$?
14050 grep -v '^ *+' conftest.er1 >conftest.err
14051 rm -f conftest.er1
14052 cat conftest.err >&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); } && {
14055 test -z "$ac_c_werror_flag" ||
14056 test ! -s conftest.err
14057 } && test -s conftest$ac_exeext &&
14058 $as_test_x conftest$ac_exeext; then
14059
14060cat >>confdefs.h <<\_ACEOF
14061#define HAVE_ISBLANK 1
14062_ACEOF
14063
14064
14065else
14066 echo "$as_me: failed program was:" >&5
14067sed 's/^/| /' conftest.$ac_ext >&5
14068
14069
14070fi
14071
14072rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14073 conftest$ac_exeext conftest.$ac_ext
14074
14075# PKCS#11 support requires dlopen() and co
14076{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
14077echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
14078if test "${ac_cv_search_dlopen+set}" = set; then
14079 echo $ECHO_N "(cached) $ECHO_C" >&6
14080else
14081 ac_func_search_save_LIBS=$LIBS
14082cat >conftest.$ac_ext <<_ACEOF
14083/* confdefs.h. */
14084_ACEOF
14085cat confdefs.h >>conftest.$ac_ext
14086cat >>conftest.$ac_ext <<_ACEOF
14087/* end confdefs.h. */
14088
14089/* Override any GCC internal prototype to avoid an error.
14090 Use char because int might match the return type of a GCC
14091 builtin and then its argument prototype would still apply. */
14092#ifdef __cplusplus
14093extern "C"
14094#endif
14095char dlopen ();
14096int
14097main ()
14098{
14099return dlopen ();
14100 ;
14101 return 0;
14102}
14103_ACEOF
14104for ac_lib in '' dl; do
14105 if test -z "$ac_lib"; then
14106 ac_res="none required"
14107 else
14108 ac_res=-l$ac_lib
14109 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14110 fi
14111 rm -f conftest.$ac_objext conftest$ac_exeext
14112if { (ac_try="$ac_link"
14113case "(($ac_try" in
14114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14115 *) ac_try_echo=$ac_try;;
14116esac
14117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14118 (eval "$ac_link") 2>conftest.er1
14119 ac_status=$?
14120 grep -v '^ *+' conftest.er1 >conftest.err
14121 rm -f conftest.er1
14122 cat conftest.err >&5
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); } && {
14125 test -z "$ac_c_werror_flag" ||
14126 test ! -s conftest.err
14127 } && test -s conftest$ac_exeext &&
14128 $as_test_x conftest$ac_exeext; then
14129 ac_cv_search_dlopen=$ac_res
14130else
14131 echo "$as_me: failed program was:" >&5
14132sed 's/^/| /' conftest.$ac_ext >&5
14133
14134
14135fi
14136
14137rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14138 conftest$ac_exeext
14139 if test "${ac_cv_search_dlopen+set}" = set; then
14140 break
14141fi
14142done
14143if test "${ac_cv_search_dlopen+set}" = set; then
14144 :
14145else
14146 ac_cv_search_dlopen=no
14147fi
14148rm conftest.$ac_ext
14149LIBS=$ac_func_search_save_LIBS
14150fi
14151{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
14152echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
14153ac_res=$ac_cv_search_dlopen
14154if test "$ac_res" != no; then
14155 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14156
14157cat >>confdefs.h <<\_ACEOF
14158#define ENABLE_PKCS11
14159_ACEOF
14160
14161
14162fi
14163
14164
14165# IRIX has a const char return value for gai_strerror()
14166
14167for ac_func in gai_strerror
14168do
14169as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14170{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14171echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14172if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14173 echo $ECHO_N "(cached) $ECHO_C" >&6
14174else
14175 cat >conftest.$ac_ext <<_ACEOF
14176/* confdefs.h. */
14177_ACEOF
14178cat confdefs.h >>conftest.$ac_ext
14179cat >>conftest.$ac_ext <<_ACEOF
14180/* end confdefs.h. */
14181/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14183#define $ac_func innocuous_$ac_func
14184
14185/* System header to define __stub macros and hopefully few prototypes,
14186 which can conflict with char $ac_func (); below.
14187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14188 <limits.h> exists even on freestanding compilers. */
14189
14190#ifdef __STDC__
14191# include <limits.h>
14192#else
14193# include <assert.h>
14194#endif
14195
14196#undef $ac_func
14197
14198/* Override any GCC internal prototype to avoid an error.
14199 Use char because int might match the return type of a GCC
14200 builtin and then its argument prototype would still apply. */
14201#ifdef __cplusplus
14202extern "C"
14203#endif
14204char $ac_func ();
14205/* The GNU C library defines this for functions which it implements
14206 to always fail with ENOSYS. Some functions are actually named
14207 something starting with __ and the normal name is an alias. */
14208#if defined __stub_$ac_func || defined __stub___$ac_func
14209choke me
14210#endif
14211
14212int
14213main ()
14214{
14215return $ac_func ();
14216 ;
14217 return 0;
14218}
14219_ACEOF
14220rm -f conftest.$ac_objext conftest$ac_exeext
14221if { (ac_try="$ac_link"
14222case "(($ac_try" in
14223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14224 *) ac_try_echo=$ac_try;;
14225esac
14226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14227 (eval "$ac_link") 2>conftest.er1
14228 ac_status=$?
14229 grep -v '^ *+' conftest.er1 >conftest.err
14230 rm -f conftest.er1
14231 cat conftest.err >&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); } && {
14234 test -z "$ac_c_werror_flag" ||
14235 test ! -s conftest.err
14236 } && test -s conftest$ac_exeext &&
14237 $as_test_x conftest$ac_exeext; then
14238 eval "$as_ac_var=yes"
14239else
14240 echo "$as_me: failed program was:" >&5
14241sed 's/^/| /' conftest.$ac_ext >&5
14242
14243 eval "$as_ac_var=no"
14244fi
14245
14246rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14247 conftest$ac_exeext conftest.$ac_ext
14248fi
14249ac_res=`eval echo '${'$as_ac_var'}'`
14250 { echo "$as_me:$LINENO: result: $ac_res" >&5
14251echo "${ECHO_T}$ac_res" >&6; }
14252if test `eval echo '${'$as_ac_var'}'` = yes; then
14253 cat >>confdefs.h <<_ACEOF
14254#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14255_ACEOF
14256
14257 cat >>confdefs.h <<\_ACEOF
14258#define HAVE_GAI_STRERROR 1
14259_ACEOF
14260
14261 cat >conftest.$ac_ext <<_ACEOF
14262/* confdefs.h. */
14263_ACEOF
14264cat confdefs.h >>conftest.$ac_ext
14265cat >>conftest.$ac_ext <<_ACEOF
14266/* end confdefs.h. */
14267
14268#include <sys/types.h>
14269#include <sys/socket.h>
14270#include <netdb.h>
14271
14272const char *gai_strerror(int);
14273int
14274main ()
14275{
14276
14277char *str;
14278
14279str = gai_strerror(0);
14280 ;
14281 return 0;
14282}
14283_ACEOF
14284rm -f conftest.$ac_objext
14285if { (ac_try="$ac_compile"
14286case "(($ac_try" in
14287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14288 *) ac_try_echo=$ac_try;;
14289esac
14290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14291 (eval "$ac_compile") 2>conftest.er1
14292 ac_status=$?
14293 grep -v '^ *+' conftest.er1 >conftest.err
14294 rm -f conftest.er1
14295 cat conftest.err >&5
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); } && {
14298 test -z "$ac_c_werror_flag" ||
14299 test ! -s conftest.err
14300 } && test -s conftest.$ac_objext; then
14301
14302
14303cat >>confdefs.h <<\_ACEOF
14304#define HAVE_CONST_GAI_STRERROR_PROTO 1
14305_ACEOF
14306
14307else
14308 echo "$as_me: failed program was:" >&5
14309sed 's/^/| /' conftest.$ac_ext >&5
14310
14311
14312fi
14313
14314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14315fi
14316done
14317
14318
14319{ echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
14320echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
14321if test "${ac_cv_search_nanosleep+set}" = set; then
14322 echo $ECHO_N "(cached) $ECHO_C" >&6
14323else
14324 ac_func_search_save_LIBS=$LIBS
14325cat >conftest.$ac_ext <<_ACEOF
14326/* confdefs.h. */
14327_ACEOF
14328cat confdefs.h >>conftest.$ac_ext
14329cat >>conftest.$ac_ext <<_ACEOF
14330/* end confdefs.h. */
14331
14332/* Override any GCC internal prototype to avoid an error.
14333 Use char because int might match the return type of a GCC
14334 builtin and then its argument prototype would still apply. */
14335#ifdef __cplusplus
14336extern "C"
14337#endif
14338char nanosleep ();
14339int
14340main ()
14341{
14342return nanosleep ();
14343 ;
14344 return 0;
14345}
14346_ACEOF
14347for ac_lib in '' rt posix4; do
14348 if test -z "$ac_lib"; then
14349 ac_res="none required"
14350 else
14351 ac_res=-l$ac_lib
14352 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14353 fi
14354 rm -f conftest.$ac_objext conftest$ac_exeext
14355if { (ac_try="$ac_link"
14356case "(($ac_try" in
14357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14358 *) ac_try_echo=$ac_try;;
14359esac
14360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14361 (eval "$ac_link") 2>conftest.er1
14362 ac_status=$?
14363 grep -v '^ *+' conftest.er1 >conftest.err
14364 rm -f conftest.er1
14365 cat conftest.err >&5
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); } && {
14368 test -z "$ac_c_werror_flag" ||
14369 test ! -s conftest.err
14370 } && test -s conftest$ac_exeext &&
14371 $as_test_x conftest$ac_exeext; then
14372 ac_cv_search_nanosleep=$ac_res
14373else
14374 echo "$as_me: failed program was:" >&5
14375sed 's/^/| /' conftest.$ac_ext >&5
14376
14377
14378fi
14379
14380rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14381 conftest$ac_exeext
14382 if test "${ac_cv_search_nanosleep+set}" = set; then
14383 break
14384fi
14385done
14386if test "${ac_cv_search_nanosleep+set}" = set; then
14387 :
14388else
14389 ac_cv_search_nanosleep=no
14390fi
14391rm conftest.$ac_ext
14392LIBS=$ac_func_search_save_LIBS
14393fi
14394{ echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
14395echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
14396ac_res=$ac_cv_search_nanosleep
14397if test "$ac_res" != no; then
14398 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14399
14400cat >>confdefs.h <<\_ACEOF
14401#define HAVE_NANOSLEEP 1
14402_ACEOF
14403
14404fi
14405
14406
14407{ echo "$as_me:$LINENO: checking whether getrusage is declared" >&5
14408echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6; }
14409if test "${ac_cv_have_decl_getrusage+set}" = set; then
14410 echo $ECHO_N "(cached) $ECHO_C" >&6
14411else
14412 cat >conftest.$ac_ext <<_ACEOF
14413/* confdefs.h. */
14414_ACEOF
14415cat confdefs.h >>conftest.$ac_ext
14416cat >>conftest.$ac_ext <<_ACEOF
14417/* end confdefs.h. */
14418$ac_includes_default
14419int
14420main ()
14421{
14422#ifndef getrusage
14423 (void) getrusage;
14424#endif
14425
14426 ;
14427 return 0;
14428}
14429_ACEOF
14430rm -f conftest.$ac_objext
14431if { (ac_try="$ac_compile"
14432case "(($ac_try" in
14433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14434 *) ac_try_echo=$ac_try;;
14435esac
14436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14437 (eval "$ac_compile") 2>conftest.er1
14438 ac_status=$?
14439 grep -v '^ *+' conftest.er1 >conftest.err
14440 rm -f conftest.er1
14441 cat conftest.err >&5
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); } && {
14444 test -z "$ac_c_werror_flag" ||
14445 test ! -s conftest.err
14446 } && test -s conftest.$ac_objext; then
14447 ac_cv_have_decl_getrusage=yes
14448else
14449 echo "$as_me: failed program was:" >&5
14450sed 's/^/| /' conftest.$ac_ext >&5
14451
14452 ac_cv_have_decl_getrusage=no
14453fi
14454
14455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14456fi
14457{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5
14458echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6; }
14459if test $ac_cv_have_decl_getrusage = yes; then
14460
14461for ac_func in getrusage
14462do
14463as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14464{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14465echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14466if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14467 echo $ECHO_N "(cached) $ECHO_C" >&6
14468else
14469 cat >conftest.$ac_ext <<_ACEOF
14470/* confdefs.h. */
14471_ACEOF
14472cat confdefs.h >>conftest.$ac_ext
14473cat >>conftest.$ac_ext <<_ACEOF
14474/* end confdefs.h. */
14475/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14477#define $ac_func innocuous_$ac_func
14478
14479/* System header to define __stub macros and hopefully few prototypes,
14480 which can conflict with char $ac_func (); below.
14481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14482 <limits.h> exists even on freestanding compilers. */
14483
14484#ifdef __STDC__
14485# include <limits.h>
14486#else
14487# include <assert.h>
14488#endif
14489
14490#undef $ac_func
14491
14492/* Override any GCC internal prototype to avoid an error.
14493 Use char because int might match the return type of a GCC
14494 builtin and then its argument prototype would still apply. */
14495#ifdef __cplusplus
14496extern "C"
14497#endif
14498char $ac_func ();
14499/* The GNU C library defines this for functions which it implements
14500 to always fail with ENOSYS. Some functions are actually named
14501 something starting with __ and the normal name is an alias. */
14502#if defined __stub_$ac_func || defined __stub___$ac_func
14503choke me
14504#endif
14505
14506int
14507main ()
14508{
14509return $ac_func ();
14510 ;
14511 return 0;
14512}
14513_ACEOF
14514rm -f conftest.$ac_objext conftest$ac_exeext
14515if { (ac_try="$ac_link"
14516case "(($ac_try" in
14517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14518 *) ac_try_echo=$ac_try;;
14519esac
14520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14521 (eval "$ac_link") 2>conftest.er1
14522 ac_status=$?
14523 grep -v '^ *+' conftest.er1 >conftest.err
14524 rm -f conftest.er1
14525 cat conftest.err >&5
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); } && {
14528 test -z "$ac_c_werror_flag" ||
14529 test ! -s conftest.err
14530 } && test -s conftest$ac_exeext &&
14531 $as_test_x conftest$ac_exeext; then
14532 eval "$as_ac_var=yes"
14533else
14534 echo "$as_me: failed program was:" >&5
14535sed 's/^/| /' conftest.$ac_ext >&5
14536
14537 eval "$as_ac_var=no"
14538fi
14539
14540rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14541 conftest$ac_exeext conftest.$ac_ext
14542fi
14543ac_res=`eval echo '${'$as_ac_var'}'`
14544 { echo "$as_me:$LINENO: result: $ac_res" >&5
14545echo "${ECHO_T}$ac_res" >&6; }
14546if test `eval echo '${'$as_ac_var'}'` = yes; then
14547 cat >>confdefs.h <<_ACEOF
14548#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14549_ACEOF
14550
14551fi
14552done
14553
14554fi
14555
14556{ echo "$as_me:$LINENO: checking whether strsep is declared" >&5
14557echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6; }
14558if test "${ac_cv_have_decl_strsep+set}" = set; then
14559 echo $ECHO_N "(cached) $ECHO_C" >&6
14560else
14561 cat >conftest.$ac_ext <<_ACEOF
14562/* confdefs.h. */
14563_ACEOF
14564cat confdefs.h >>conftest.$ac_ext
14565cat >>conftest.$ac_ext <<_ACEOF
14566/* end confdefs.h. */
14567
14568#ifdef HAVE_STRING_H
14569# include <string.h>
14570#endif
14571
14572
14573int
14574main ()
14575{
14576#ifndef strsep
14577 (void) strsep;
14578#endif
14579
14580 ;
14581 return 0;
14582}
14583_ACEOF
14584rm -f conftest.$ac_objext
14585if { (ac_try="$ac_compile"
14586case "(($ac_try" in
14587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14588 *) ac_try_echo=$ac_try;;
14589esac
14590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14591 (eval "$ac_compile") 2>conftest.er1
14592 ac_status=$?
14593 grep -v '^ *+' conftest.er1 >conftest.err
14594 rm -f conftest.er1
14595 cat conftest.err >&5
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); } && {
14598 test -z "$ac_c_werror_flag" ||
14599 test ! -s conftest.err
14600 } && test -s conftest.$ac_objext; then
14601 ac_cv_have_decl_strsep=yes
14602else
14603 echo "$as_me: failed program was:" >&5
14604sed 's/^/| /' conftest.$ac_ext >&5
14605
14606 ac_cv_have_decl_strsep=no
14607fi
14608
14609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14610fi
14611{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5
14612echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6; }
14613if test $ac_cv_have_decl_strsep = yes; then
14614
14615for ac_func in strsep
14616do
14617as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14618{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14619echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14620if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14621 echo $ECHO_N "(cached) $ECHO_C" >&6
14622else
14623 cat >conftest.$ac_ext <<_ACEOF
14624/* confdefs.h. */
14625_ACEOF
14626cat confdefs.h >>conftest.$ac_ext
14627cat >>conftest.$ac_ext <<_ACEOF
14628/* end confdefs.h. */
14629/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14631#define $ac_func innocuous_$ac_func
14632
14633/* System header to define __stub macros and hopefully few prototypes,
14634 which can conflict with char $ac_func (); below.
14635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14636 <limits.h> exists even on freestanding compilers. */
14637
14638#ifdef __STDC__
14639# include <limits.h>
14640#else
14641# include <assert.h>
14642#endif
14643
14644#undef $ac_func
14645
14646/* Override any GCC internal prototype to avoid an error.
14647 Use char because int might match the return type of a GCC
14648 builtin and then its argument prototype would still apply. */
14649#ifdef __cplusplus
14650extern "C"
14651#endif
14652char $ac_func ();
14653/* The GNU C library defines this for functions which it implements
14654 to always fail with ENOSYS. Some functions are actually named
14655 something starting with __ and the normal name is an alias. */
14656#if defined __stub_$ac_func || defined __stub___$ac_func
14657choke me
14658#endif
14659
14660int
14661main ()
14662{
14663return $ac_func ();
14664 ;
14665 return 0;
14666}
14667_ACEOF
14668rm -f conftest.$ac_objext conftest$ac_exeext
14669if { (ac_try="$ac_link"
14670case "(($ac_try" in
14671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14672 *) ac_try_echo=$ac_try;;
14673esac
14674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14675 (eval "$ac_link") 2>conftest.er1
14676 ac_status=$?
14677 grep -v '^ *+' conftest.er1 >conftest.err
14678 rm -f conftest.er1
14679 cat conftest.err >&5
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); } && {
14682 test -z "$ac_c_werror_flag" ||
14683 test ! -s conftest.err
14684 } && test -s conftest$ac_exeext &&
14685 $as_test_x conftest$ac_exeext; then
14686 eval "$as_ac_var=yes"
14687else
14688 echo "$as_me: failed program was:" >&5
14689sed 's/^/| /' conftest.$ac_ext >&5
14690
14691 eval "$as_ac_var=no"
14692fi
14693
14694rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14695 conftest$ac_exeext conftest.$ac_ext
14696fi
14697ac_res=`eval echo '${'$as_ac_var'}'`
14698 { echo "$as_me:$LINENO: result: $ac_res" >&5
14699echo "${ECHO_T}$ac_res" >&6; }
14700if test `eval echo '${'$as_ac_var'}'` = yes; then
14701 cat >>confdefs.h <<_ACEOF
14702#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14703_ACEOF
14704
14705fi
14706done
14707
14708fi
14709
14710
14711{ echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5
14712echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6; }
14713if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then
14714 echo $ECHO_N "(cached) $ECHO_C" >&6
14715else
14716 cat >conftest.$ac_ext <<_ACEOF
14717/* confdefs.h. */
14718_ACEOF
14719cat confdefs.h >>conftest.$ac_ext
14720cat >>conftest.$ac_ext <<_ACEOF
14721/* end confdefs.h. */
14722#include <termios.h>
14723
14724
14725int
14726main ()
14727{
14728#ifndef tcsendbreak
14729 (void) tcsendbreak;
14730#endif
14731
14732 ;
14733 return 0;
14734}
14735_ACEOF
14736rm -f conftest.$ac_objext
14737if { (ac_try="$ac_compile"
14738case "(($ac_try" in
14739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740 *) ac_try_echo=$ac_try;;
14741esac
14742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14743 (eval "$ac_compile") 2>conftest.er1
14744 ac_status=$?
14745 grep -v '^ *+' conftest.er1 >conftest.err
14746 rm -f conftest.er1
14747 cat conftest.err >&5
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); } && {
14750 test -z "$ac_c_werror_flag" ||
14751 test ! -s conftest.err
14752 } && test -s conftest.$ac_objext; then
14753 ac_cv_have_decl_tcsendbreak=yes
14754else
14755 echo "$as_me: failed program was:" >&5
14756sed 's/^/| /' conftest.$ac_ext >&5
14757
14758 ac_cv_have_decl_tcsendbreak=no
14759fi
14760
14761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14762fi
14763{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5
14764echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6; }
14765if test $ac_cv_have_decl_tcsendbreak = yes; then
14766 cat >>confdefs.h <<\_ACEOF
14767#define HAVE_TCSENDBREAK 1
14768_ACEOF
14769
14770else
14771
14772for ac_func in tcsendbreak
14773do
14774as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14775{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14776echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14777if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14778 echo $ECHO_N "(cached) $ECHO_C" >&6
14779else
14780 cat >conftest.$ac_ext <<_ACEOF
14781/* confdefs.h. */
14782_ACEOF
14783cat confdefs.h >>conftest.$ac_ext
14784cat >>conftest.$ac_ext <<_ACEOF
14785/* end confdefs.h. */
14786/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14788#define $ac_func innocuous_$ac_func
14789
14790/* System header to define __stub macros and hopefully few prototypes,
14791 which can conflict with char $ac_func (); below.
14792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14793 <limits.h> exists even on freestanding compilers. */
14794
14795#ifdef __STDC__
14796# include <limits.h>
14797#else
14798# include <assert.h>
14799#endif
14800
14801#undef $ac_func
14802
14803/* Override any GCC internal prototype to avoid an error.
14804 Use char because int might match the return type of a GCC
14805 builtin and then its argument prototype would still apply. */
14806#ifdef __cplusplus
14807extern "C"
14808#endif
14809char $ac_func ();
14810/* The GNU C library defines this for functions which it implements
14811 to always fail with ENOSYS. Some functions are actually named
14812 something starting with __ and the normal name is an alias. */
14813#if defined __stub_$ac_func || defined __stub___$ac_func
14814choke me
14815#endif
14816
14817int
14818main ()
14819{
14820return $ac_func ();
14821 ;
14822 return 0;
14823}
14824_ACEOF
14825rm -f conftest.$ac_objext conftest$ac_exeext
14826if { (ac_try="$ac_link"
14827case "(($ac_try" in
14828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14829 *) ac_try_echo=$ac_try;;
14830esac
14831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14832 (eval "$ac_link") 2>conftest.er1
14833 ac_status=$?
14834 grep -v '^ *+' conftest.er1 >conftest.err
14835 rm -f conftest.er1
14836 cat conftest.err >&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); } && {
14839 test -z "$ac_c_werror_flag" ||
14840 test ! -s conftest.err
14841 } && test -s conftest$ac_exeext &&
14842 $as_test_x conftest$ac_exeext; then
14843 eval "$as_ac_var=yes"
14844else
14845 echo "$as_me: failed program was:" >&5
14846sed 's/^/| /' conftest.$ac_ext >&5
14847
14848 eval "$as_ac_var=no"
14849fi
14850
14851rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14852 conftest$ac_exeext conftest.$ac_ext
14853fi
14854ac_res=`eval echo '${'$as_ac_var'}'`
14855 { echo "$as_me:$LINENO: result: $ac_res" >&5
14856echo "${ECHO_T}$ac_res" >&6; }
14857if test `eval echo '${'$as_ac_var'}'` = yes; then
14858 cat >>confdefs.h <<_ACEOF
14859#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14860_ACEOF
14861
14862fi
14863done
14864
14865fi
14866
14867
14868{ echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
14869echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; }
14870if test "${ac_cv_have_decl_h_errno+set}" = set; then
14871 echo $ECHO_N "(cached) $ECHO_C" >&6
14872else
14873 cat >conftest.$ac_ext <<_ACEOF
14874/* confdefs.h. */
14875_ACEOF
14876cat confdefs.h >>conftest.$ac_ext
14877cat >>conftest.$ac_ext <<_ACEOF
14878/* end confdefs.h. */
14879#include <netdb.h>
14880
14881int
14882main ()
14883{
14884#ifndef h_errno
14885 (void) h_errno;
14886#endif
14887
14888 ;
14889 return 0;
14890}
14891_ACEOF
14892rm -f conftest.$ac_objext
14893if { (ac_try="$ac_compile"
14894case "(($ac_try" in
14895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14896 *) ac_try_echo=$ac_try;;
14897esac
14898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14899 (eval "$ac_compile") 2>conftest.er1
14900 ac_status=$?
14901 grep -v '^ *+' conftest.er1 >conftest.err
14902 rm -f conftest.er1
14903 cat conftest.err >&5
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); } && {
14906 test -z "$ac_c_werror_flag" ||
14907 test ! -s conftest.err
14908 } && test -s conftest.$ac_objext; then
14909 ac_cv_have_decl_h_errno=yes
14910else
14911 echo "$as_me: failed program was:" >&5
14912sed 's/^/| /' conftest.$ac_ext >&5
14913
14914 ac_cv_have_decl_h_errno=no
14915fi
14916
14917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14918fi
14919{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
14920echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; }
14921if test $ac_cv_have_decl_h_errno = yes; then
14922
14923cat >>confdefs.h <<_ACEOF
14924#define HAVE_DECL_H_ERRNO 1
14925_ACEOF
14926
14927
14928else
14929 cat >>confdefs.h <<_ACEOF
14930#define HAVE_DECL_H_ERRNO 0
14931_ACEOF
14932
14933
14934fi
14935
14936
14937
14938{ echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5
14939echo $ECHO_N "checking whether SHUT_RD is declared... $ECHO_C" >&6; }
14940if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then
14941 echo $ECHO_N "(cached) $ECHO_C" >&6
14942else
14943 cat >conftest.$ac_ext <<_ACEOF
14944/* confdefs.h. */
14945_ACEOF
14946cat confdefs.h >>conftest.$ac_ext
14947cat >>conftest.$ac_ext <<_ACEOF
14948/* end confdefs.h. */
14949
14950#include <sys/types.h>
14951#include <sys/socket.h>
14952
14953
14954int
14955main ()
14956{
14957#ifndef SHUT_RD
14958 (void) SHUT_RD;
14959#endif
14960
14961 ;
14962 return 0;
14963}
14964_ACEOF
14965rm -f conftest.$ac_objext
14966if { (ac_try="$ac_compile"
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_compile") 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_objext; then
14982 ac_cv_have_decl_SHUT_RD=yes
14983else
14984 echo "$as_me: failed program was:" >&5
14985sed 's/^/| /' conftest.$ac_ext >&5
14986
14987 ac_cv_have_decl_SHUT_RD=no
14988fi
14989
14990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14991fi
14992{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5
14993echo "${ECHO_T}$ac_cv_have_decl_SHUT_RD" >&6; }
14994if test $ac_cv_have_decl_SHUT_RD = yes; then
14995
14996cat >>confdefs.h <<_ACEOF
14997#define HAVE_DECL_SHUT_RD 1
14998_ACEOF
14999
15000
15001else
15002 cat >>confdefs.h <<_ACEOF
15003#define HAVE_DECL_SHUT_RD 0
15004_ACEOF
15005
15006
15007fi
15008
15009
15010
15011{ echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5
15012echo $ECHO_N "checking whether O_NONBLOCK is declared... $ECHO_C" >&6; }
15013if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then
15014 echo $ECHO_N "(cached) $ECHO_C" >&6
15015else
15016 cat >conftest.$ac_ext <<_ACEOF
15017/* confdefs.h. */
15018_ACEOF
15019cat confdefs.h >>conftest.$ac_ext
15020cat >>conftest.$ac_ext <<_ACEOF
15021/* end confdefs.h. */
15022
15023#include <sys/types.h>
15024#ifdef HAVE_SYS_STAT_H
15025# include <sys/stat.h>
15026#endif
15027#ifdef HAVE_FCNTL_H
15028# include <fcntl.h>
15029#endif
15030
15031
15032int
15033main ()
15034{
15035#ifndef O_NONBLOCK
15036 (void) O_NONBLOCK;
15037#endif
15038
15039 ;
15040 return 0;
15041}
15042_ACEOF
15043rm -f conftest.$ac_objext
15044if { (ac_try="$ac_compile"
15045case "(($ac_try" in
15046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15047 *) ac_try_echo=$ac_try;;
15048esac
15049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15050 (eval "$ac_compile") 2>conftest.er1
15051 ac_status=$?
15052 grep -v '^ *+' conftest.er1 >conftest.err
15053 rm -f conftest.er1
15054 cat conftest.err >&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); } && {
15057 test -z "$ac_c_werror_flag" ||
15058 test ! -s conftest.err
15059 } && test -s conftest.$ac_objext; then
15060 ac_cv_have_decl_O_NONBLOCK=yes
15061else
15062 echo "$as_me: failed program was:" >&5
15063sed 's/^/| /' conftest.$ac_ext >&5
15064
15065 ac_cv_have_decl_O_NONBLOCK=no
15066fi
15067
15068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15069fi
15070{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5
15071echo "${ECHO_T}$ac_cv_have_decl_O_NONBLOCK" >&6; }
15072if test $ac_cv_have_decl_O_NONBLOCK = yes; then
15073
15074cat >>confdefs.h <<_ACEOF
15075#define HAVE_DECL_O_NONBLOCK 1
15076_ACEOF
15077
15078
15079else
15080 cat >>confdefs.h <<_ACEOF
15081#define HAVE_DECL_O_NONBLOCK 0
15082_ACEOF
15083
15084
15085fi
15086
15087
15088
15089{ echo "$as_me:$LINENO: checking whether writev is declared" >&5
15090echo $ECHO_N "checking whether writev is declared... $ECHO_C" >&6; }
15091if test "${ac_cv_have_decl_writev+set}" = set; then
15092 echo $ECHO_N "(cached) $ECHO_C" >&6
15093else
15094 cat >conftest.$ac_ext <<_ACEOF
15095/* confdefs.h. */
15096_ACEOF
15097cat confdefs.h >>conftest.$ac_ext
15098cat >>conftest.$ac_ext <<_ACEOF
15099/* end confdefs.h. */
15100
15101#include <sys/types.h>
15102#include <sys/uio.h>
15103#include <unistd.h>
15104
15105
15106int
15107main ()
15108{
15109#ifndef writev
15110 (void) writev;
15111#endif
15112
15113 ;
15114 return 0;
15115}
15116_ACEOF
15117rm -f conftest.$ac_objext
15118if { (ac_try="$ac_compile"
15119case "(($ac_try" in
15120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15121 *) ac_try_echo=$ac_try;;
15122esac
15123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15124 (eval "$ac_compile") 2>conftest.er1
15125 ac_status=$?
15126 grep -v '^ *+' conftest.er1 >conftest.err
15127 rm -f conftest.er1
15128 cat conftest.err >&5
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); } && {
15131 test -z "$ac_c_werror_flag" ||
15132 test ! -s conftest.err
15133 } && test -s conftest.$ac_objext; then
15134 ac_cv_have_decl_writev=yes
15135else
15136 echo "$as_me: failed program was:" >&5
15137sed 's/^/| /' conftest.$ac_ext >&5
15138
15139 ac_cv_have_decl_writev=no
15140fi
15141
15142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15143fi
15144{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5
15145echo "${ECHO_T}$ac_cv_have_decl_writev" >&6; }
15146if test $ac_cv_have_decl_writev = yes; then
15147
15148cat >>confdefs.h <<_ACEOF
15149#define HAVE_DECL_WRITEV 1
15150_ACEOF
15151
15152
15153else
15154 cat >>confdefs.h <<_ACEOF
15155#define HAVE_DECL_WRITEV 0
15156_ACEOF
15157
15158
15159fi
15160
15161
15162
15163{ echo "$as_me:$LINENO: checking whether MAXSYMLINKS is declared" >&5
15164echo $ECHO_N "checking whether MAXSYMLINKS is declared... $ECHO_C" >&6; }
15165if test "${ac_cv_have_decl_MAXSYMLINKS+set}" = set; then
15166 echo $ECHO_N "(cached) $ECHO_C" >&6
15167else
15168 cat >conftest.$ac_ext <<_ACEOF
15169/* confdefs.h. */
15170_ACEOF
15171cat confdefs.h >>conftest.$ac_ext
15172cat >>conftest.$ac_ext <<_ACEOF
15173/* end confdefs.h. */
15174
15175#include <sys/param.h>
15176
15177
15178int
15179main ()
15180{
15181#ifndef MAXSYMLINKS
15182 (void) MAXSYMLINKS;
15183#endif
15184
15185 ;
15186 return 0;
15187}
15188_ACEOF
15189rm -f conftest.$ac_objext
15190if { (ac_try="$ac_compile"
15191case "(($ac_try" in
15192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15193 *) ac_try_echo=$ac_try;;
15194esac
15195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15196 (eval "$ac_compile") 2>conftest.er1
15197 ac_status=$?
15198 grep -v '^ *+' conftest.er1 >conftest.err
15199 rm -f conftest.er1
15200 cat conftest.err >&5
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); } && {
15203 test -z "$ac_c_werror_flag" ||
15204 test ! -s conftest.err
15205 } && test -s conftest.$ac_objext; then
15206 ac_cv_have_decl_MAXSYMLINKS=yes
15207else
15208 echo "$as_me: failed program was:" >&5
15209sed 's/^/| /' conftest.$ac_ext >&5
15210
15211 ac_cv_have_decl_MAXSYMLINKS=no
15212fi
15213
15214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15215fi
15216{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_MAXSYMLINKS" >&5
15217echo "${ECHO_T}$ac_cv_have_decl_MAXSYMLINKS" >&6; }
15218if test $ac_cv_have_decl_MAXSYMLINKS = yes; then
15219
15220cat >>confdefs.h <<_ACEOF
15221#define HAVE_DECL_MAXSYMLINKS 1
15222_ACEOF
15223
15224
15225else
15226 cat >>confdefs.h <<_ACEOF
15227#define HAVE_DECL_MAXSYMLINKS 0
15228_ACEOF
15229
15230
15231fi
15232
15233
15234
15235{ echo "$as_me:$LINENO: checking whether offsetof is declared" >&5
15236echo $ECHO_N "checking whether offsetof is declared... $ECHO_C" >&6; }
15237if test "${ac_cv_have_decl_offsetof+set}" = set; then
15238 echo $ECHO_N "(cached) $ECHO_C" >&6
15239else
15240 cat >conftest.$ac_ext <<_ACEOF
15241/* confdefs.h. */
15242_ACEOF
15243cat confdefs.h >>conftest.$ac_ext
15244cat >>conftest.$ac_ext <<_ACEOF
15245/* end confdefs.h. */
15246
15247#include <stddef.h>
15248
15249
15250int
15251main ()
15252{
15253#ifndef offsetof
15254 (void) offsetof;
15255#endif
15256
15257 ;
15258 return 0;
15259}
15260_ACEOF
15261rm -f conftest.$ac_objext
15262if { (ac_try="$ac_compile"
15263case "(($ac_try" in
15264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265 *) ac_try_echo=$ac_try;;
15266esac
15267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268 (eval "$ac_compile") 2>conftest.er1
15269 ac_status=$?
15270 grep -v '^ *+' conftest.er1 >conftest.err
15271 rm -f conftest.er1
15272 cat conftest.err >&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); } && {
15275 test -z "$ac_c_werror_flag" ||
15276 test ! -s conftest.err
15277 } && test -s conftest.$ac_objext; then
15278 ac_cv_have_decl_offsetof=yes
15279else
15280 echo "$as_me: failed program was:" >&5
15281sed 's/^/| /' conftest.$ac_ext >&5
15282
15283 ac_cv_have_decl_offsetof=no
15284fi
15285
15286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15287fi
15288{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_offsetof" >&5
15289echo "${ECHO_T}$ac_cv_have_decl_offsetof" >&6; }
15290if test $ac_cv_have_decl_offsetof = yes; then
15291
15292cat >>confdefs.h <<_ACEOF
15293#define HAVE_DECL_OFFSETOF 1
15294_ACEOF
15295
15296
15297else
15298 cat >>confdefs.h <<_ACEOF
15299#define HAVE_DECL_OFFSETOF 0
15300_ACEOF
15301
15302
15303fi
15304
15305
15306
15307
15308for ac_func in setresuid
15309do
15310as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15311{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15312echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15313if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15314 echo $ECHO_N "(cached) $ECHO_C" >&6
15315else
15316 cat >conftest.$ac_ext <<_ACEOF
15317/* confdefs.h. */
15318_ACEOF
15319cat confdefs.h >>conftest.$ac_ext
15320cat >>conftest.$ac_ext <<_ACEOF
15321/* end confdefs.h. */
15322/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15324#define $ac_func innocuous_$ac_func
15325
15326/* System header to define __stub macros and hopefully few prototypes,
15327 which can conflict with char $ac_func (); below.
15328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15329 <limits.h> exists even on freestanding compilers. */
15330
15331#ifdef __STDC__
15332# include <limits.h>
15333#else
15334# include <assert.h>
15335#endif
15336
15337#undef $ac_func
15338
15339/* Override any GCC internal prototype to avoid an error.
15340 Use char because int might match the return type of a GCC
15341 builtin and then its argument prototype would still apply. */
15342#ifdef __cplusplus
15343extern "C"
15344#endif
15345char $ac_func ();
15346/* The GNU C library defines this for functions which it implements
15347 to always fail with ENOSYS. Some functions are actually named
15348 something starting with __ and the normal name is an alias. */
15349#if defined __stub_$ac_func || defined __stub___$ac_func
15350choke me
15351#endif
15352
15353int
15354main ()
15355{
15356return $ac_func ();
15357 ;
15358 return 0;
15359}
15360_ACEOF
15361rm -f conftest.$ac_objext conftest$ac_exeext
15362if { (ac_try="$ac_link"
15363case "(($ac_try" in
15364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15365 *) ac_try_echo=$ac_try;;
15366esac
15367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15368 (eval "$ac_link") 2>conftest.er1
15369 ac_status=$?
15370 grep -v '^ *+' conftest.er1 >conftest.err
15371 rm -f conftest.er1
15372 cat conftest.err >&5
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); } && {
15375 test -z "$ac_c_werror_flag" ||
15376 test ! -s conftest.err
15377 } && test -s conftest$ac_exeext &&
15378 $as_test_x conftest$ac_exeext; then
15379 eval "$as_ac_var=yes"
15380else
15381 echo "$as_me: failed program was:" >&5
15382sed 's/^/| /' conftest.$ac_ext >&5
15383
15384 eval "$as_ac_var=no"
15385fi
15386
15387rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15388 conftest$ac_exeext conftest.$ac_ext
15389fi
15390ac_res=`eval echo '${'$as_ac_var'}'`
15391 { echo "$as_me:$LINENO: result: $ac_res" >&5
15392echo "${ECHO_T}$ac_res" >&6; }
15393if test `eval echo '${'$as_ac_var'}'` = yes; then
15394 cat >>confdefs.h <<_ACEOF
15395#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15396_ACEOF
15397
15398 { echo "$as_me:$LINENO: checking if setresuid seems to work" >&5
15399echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6; }
15400 if test "$cross_compiling" = yes; then
15401 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
15402echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
15403
15404else
15405 cat >conftest.$ac_ext <<_ACEOF
15406/* confdefs.h. */
15407_ACEOF
15408cat confdefs.h >>conftest.$ac_ext
15409cat >>conftest.$ac_ext <<_ACEOF
15410/* end confdefs.h. */
15411
15412#include <stdlib.h>
15413#include <errno.h>
15414int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
15415
15416_ACEOF
15417rm -f conftest$ac_exeext
15418if { (ac_try="$ac_link"
15419case "(($ac_try" in
15420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15421 *) ac_try_echo=$ac_try;;
15422esac
15423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15424 (eval "$ac_link") 2>&5
15425 ac_status=$?
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15428 { (case "(($ac_try" in
15429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15430 *) ac_try_echo=$ac_try;;
15431esac
15432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433 (eval "$ac_try") 2>&5
15434 ac_status=$?
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); }; }; then
15437 { echo "$as_me:$LINENO: result: yes" >&5
15438echo "${ECHO_T}yes" >&6; }
15439else
15440 echo "$as_me: program exited with status $ac_status" >&5
15441echo "$as_me: failed program was:" >&5
15442sed 's/^/| /' conftest.$ac_ext >&5
15443
15444( exit $ac_status )
15445
15446cat >>confdefs.h <<\_ACEOF
15447#define BROKEN_SETRESUID 1
15448_ACEOF
15449
15450 { echo "$as_me:$LINENO: result: not implemented" >&5
15451echo "${ECHO_T}not implemented" >&6; }
15452fi
15453rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15454fi
15455
15456
15457
15458fi
15459done
15460
15461
15462
15463for ac_func in setresgid
15464do
15465as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15466{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15467echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15468if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15469 echo $ECHO_N "(cached) $ECHO_C" >&6
15470else
15471 cat >conftest.$ac_ext <<_ACEOF
15472/* confdefs.h. */
15473_ACEOF
15474cat confdefs.h >>conftest.$ac_ext
15475cat >>conftest.$ac_ext <<_ACEOF
15476/* end confdefs.h. */
15477/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15479#define $ac_func innocuous_$ac_func
15480
15481/* System header to define __stub macros and hopefully few prototypes,
15482 which can conflict with char $ac_func (); below.
15483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15484 <limits.h> exists even on freestanding compilers. */
15485
15486#ifdef __STDC__
15487# include <limits.h>
15488#else
15489# include <assert.h>
15490#endif
15491
15492#undef $ac_func
15493
15494/* Override any GCC internal prototype to avoid an error.
15495 Use char because int might match the return type of a GCC
15496 builtin and then its argument prototype would still apply. */
15497#ifdef __cplusplus
15498extern "C"
15499#endif
15500char $ac_func ();
15501/* The GNU C library defines this for functions which it implements
15502 to always fail with ENOSYS. Some functions are actually named
15503 something starting with __ and the normal name is an alias. */
15504#if defined __stub_$ac_func || defined __stub___$ac_func
15505choke me
15506#endif
15507
15508int
15509main ()
15510{
15511return $ac_func ();
15512 ;
15513 return 0;
15514}
15515_ACEOF
15516rm -f conftest.$ac_objext conftest$ac_exeext
15517if { (ac_try="$ac_link"
15518case "(($ac_try" in
15519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15520 *) ac_try_echo=$ac_try;;
15521esac
15522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15523 (eval "$ac_link") 2>conftest.er1
15524 ac_status=$?
15525 grep -v '^ *+' conftest.er1 >conftest.err
15526 rm -f conftest.er1
15527 cat conftest.err >&5
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); } && {
15530 test -z "$ac_c_werror_flag" ||
15531 test ! -s conftest.err
15532 } && test -s conftest$ac_exeext &&
15533 $as_test_x conftest$ac_exeext; then
15534 eval "$as_ac_var=yes"
15535else
15536 echo "$as_me: failed program was:" >&5
15537sed 's/^/| /' conftest.$ac_ext >&5
15538
15539 eval "$as_ac_var=no"
15540fi
15541
15542rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15543 conftest$ac_exeext conftest.$ac_ext
15544fi
15545ac_res=`eval echo '${'$as_ac_var'}'`
15546 { echo "$as_me:$LINENO: result: $ac_res" >&5
15547echo "${ECHO_T}$ac_res" >&6; }
15548if test `eval echo '${'$as_ac_var'}'` = yes; then
15549 cat >>confdefs.h <<_ACEOF
15550#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15551_ACEOF
15552
15553 { echo "$as_me:$LINENO: checking if setresgid seems to work" >&5
15554echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6; }
15555 if test "$cross_compiling" = yes; then
15556 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
15557echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
15558
15559else
15560 cat >conftest.$ac_ext <<_ACEOF
15561/* confdefs.h. */
15562_ACEOF
15563cat confdefs.h >>conftest.$ac_ext
15564cat >>conftest.$ac_ext <<_ACEOF
15565/* end confdefs.h. */
15566
15567#include <stdlib.h>
15568#include <errno.h>
15569int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
15570
15571_ACEOF
15572rm -f conftest$ac_exeext
15573if { (ac_try="$ac_link"
15574case "(($ac_try" in
15575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15576 *) ac_try_echo=$ac_try;;
15577esac
15578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15579 (eval "$ac_link") 2>&5
15580 ac_status=$?
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15583 { (case "(($ac_try" in
15584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15585 *) ac_try_echo=$ac_try;;
15586esac
15587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15588 (eval "$ac_try") 2>&5
15589 ac_status=$?
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }; }; then
15592 { echo "$as_me:$LINENO: result: yes" >&5
15593echo "${ECHO_T}yes" >&6; }
15594else
15595 echo "$as_me: program exited with status $ac_status" >&5
15596echo "$as_me: failed program was:" >&5
15597sed 's/^/| /' conftest.$ac_ext >&5
15598
15599( exit $ac_status )
15600
15601cat >>confdefs.h <<\_ACEOF
15602#define BROKEN_SETRESGID 1
15603_ACEOF
15604
15605 { echo "$as_me:$LINENO: result: not implemented" >&5
15606echo "${ECHO_T}not implemented" >&6; }
15607fi
15608rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15609fi
15610
15611
15612
15613fi
15614done
15615
15616
15617
15618
15619for ac_func in gettimeofday time
15620do
15621as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15622{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15623echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15624if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15625 echo $ECHO_N "(cached) $ECHO_C" >&6
15626else
15627 cat >conftest.$ac_ext <<_ACEOF
15628/* confdefs.h. */
15629_ACEOF
15630cat confdefs.h >>conftest.$ac_ext
15631cat >>conftest.$ac_ext <<_ACEOF
15632/* end confdefs.h. */
15633/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15635#define $ac_func innocuous_$ac_func
15636
15637/* System header to define __stub macros and hopefully few prototypes,
15638 which can conflict with char $ac_func (); below.
15639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15640 <limits.h> exists even on freestanding compilers. */
15641
15642#ifdef __STDC__
15643# include <limits.h>
15644#else
15645# include <assert.h>
15646#endif
15647
15648#undef $ac_func
15649
15650/* Override any GCC internal prototype to avoid an error.
15651 Use char because int might match the return type of a GCC
15652 builtin and then its argument prototype would still apply. */
15653#ifdef __cplusplus
15654extern "C"
15655#endif
15656char $ac_func ();
15657/* The GNU C library defines this for functions which it implements
15658 to always fail with ENOSYS. Some functions are actually named
15659 something starting with __ and the normal name is an alias. */
15660#if defined __stub_$ac_func || defined __stub___$ac_func
15661choke me
15662#endif
15663
15664int
15665main ()
15666{
15667return $ac_func ();
15668 ;
15669 return 0;
15670}
15671_ACEOF
15672rm -f conftest.$ac_objext conftest$ac_exeext
15673if { (ac_try="$ac_link"
15674case "(($ac_try" in
15675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15676 *) ac_try_echo=$ac_try;;
15677esac
15678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15679 (eval "$ac_link") 2>conftest.er1
15680 ac_status=$?
15681 grep -v '^ *+' conftest.er1 >conftest.err
15682 rm -f conftest.er1
15683 cat conftest.err >&5
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); } && {
15686 test -z "$ac_c_werror_flag" ||
15687 test ! -s conftest.err
15688 } && test -s conftest$ac_exeext &&
15689 $as_test_x conftest$ac_exeext; then
15690 eval "$as_ac_var=yes"
15691else
15692 echo "$as_me: failed program was:" >&5
15693sed 's/^/| /' conftest.$ac_ext >&5
15694
15695 eval "$as_ac_var=no"
15696fi
15697
15698rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15699 conftest$ac_exeext conftest.$ac_ext
15700fi
15701ac_res=`eval echo '${'$as_ac_var'}'`
15702 { echo "$as_me:$LINENO: result: $ac_res" >&5
15703echo "${ECHO_T}$ac_res" >&6; }
15704if test `eval echo '${'$as_ac_var'}'` = yes; then
15705 cat >>confdefs.h <<_ACEOF
15706#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15707_ACEOF
15708
15709fi
15710done
15711
15712
15713
15714
15715
15716
15717
15718for ac_func in endutent getutent getutid getutline pututline setutent
15719do
15720as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15721{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15722echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15723if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15724 echo $ECHO_N "(cached) $ECHO_C" >&6
15725else
15726 cat >conftest.$ac_ext <<_ACEOF
15727/* confdefs.h. */
15728_ACEOF
15729cat confdefs.h >>conftest.$ac_ext
15730cat >>conftest.$ac_ext <<_ACEOF
15731/* end confdefs.h. */
15732/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15734#define $ac_func innocuous_$ac_func
15735
15736/* System header to define __stub macros and hopefully few prototypes,
15737 which can conflict with char $ac_func (); below.
15738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15739 <limits.h> exists even on freestanding compilers. */
15740
15741#ifdef __STDC__
15742# include <limits.h>
15743#else
15744# include <assert.h>
15745#endif
15746
15747#undef $ac_func
15748
15749/* Override any GCC internal prototype to avoid an error.
15750 Use char because int might match the return type of a GCC
15751 builtin and then its argument prototype would still apply. */
15752#ifdef __cplusplus
15753extern "C"
15754#endif
15755char $ac_func ();
15756/* The GNU C library defines this for functions which it implements
15757 to always fail with ENOSYS. Some functions are actually named
15758 something starting with __ and the normal name is an alias. */
15759#if defined __stub_$ac_func || defined __stub___$ac_func
15760choke me
15761#endif
15762
15763int
15764main ()
15765{
15766return $ac_func ();
15767 ;
15768 return 0;
15769}
15770_ACEOF
15771rm -f conftest.$ac_objext conftest$ac_exeext
15772if { (ac_try="$ac_link"
15773case "(($ac_try" in
15774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15775 *) ac_try_echo=$ac_try;;
15776esac
15777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15778 (eval "$ac_link") 2>conftest.er1
15779 ac_status=$?
15780 grep -v '^ *+' conftest.er1 >conftest.err
15781 rm -f conftest.er1
15782 cat conftest.err >&5
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); } && {
15785 test -z "$ac_c_werror_flag" ||
15786 test ! -s conftest.err
15787 } && test -s conftest$ac_exeext &&
15788 $as_test_x conftest$ac_exeext; then
15789 eval "$as_ac_var=yes"
15790else
15791 echo "$as_me: failed program was:" >&5
15792sed 's/^/| /' conftest.$ac_ext >&5
15793
15794 eval "$as_ac_var=no"
15795fi
15796
15797rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15798 conftest$ac_exeext conftest.$ac_ext
15799fi
15800ac_res=`eval echo '${'$as_ac_var'}'`
15801 { echo "$as_me:$LINENO: result: $ac_res" >&5
15802echo "${ECHO_T}$ac_res" >&6; }
15803if test `eval echo '${'$as_ac_var'}'` = yes; then
15804 cat >>confdefs.h <<_ACEOF
15805#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15806_ACEOF
15807
15808fi
15809done
15810
15811
15812for ac_func in utmpname
15813do
15814as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15815{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15816echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15817if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15818 echo $ECHO_N "(cached) $ECHO_C" >&6
15819else
15820 cat >conftest.$ac_ext <<_ACEOF
15821/* confdefs.h. */
15822_ACEOF
15823cat confdefs.h >>conftest.$ac_ext
15824cat >>conftest.$ac_ext <<_ACEOF
15825/* end confdefs.h. */
15826/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15828#define $ac_func innocuous_$ac_func
15829
15830/* System header to define __stub macros and hopefully few prototypes,
15831 which can conflict with char $ac_func (); below.
15832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15833 <limits.h> exists even on freestanding compilers. */
15834
15835#ifdef __STDC__
15836# include <limits.h>
15837#else
15838# include <assert.h>
15839#endif
15840
15841#undef $ac_func
15842
15843/* Override any GCC internal prototype to avoid an error.
15844 Use char because int might match the return type of a GCC
15845 builtin and then its argument prototype would still apply. */
15846#ifdef __cplusplus
15847extern "C"
15848#endif
15849char $ac_func ();
15850/* The GNU C library defines this for functions which it implements
15851 to always fail with ENOSYS. Some functions are actually named
15852 something starting with __ and the normal name is an alias. */
15853#if defined __stub_$ac_func || defined __stub___$ac_func
15854choke me
15855#endif
15856
15857int
15858main ()
15859{
15860return $ac_func ();
15861 ;
15862 return 0;
15863}
15864_ACEOF
15865rm -f conftest.$ac_objext conftest$ac_exeext
15866if { (ac_try="$ac_link"
15867case "(($ac_try" in
15868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869 *) ac_try_echo=$ac_try;;
15870esac
15871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15872 (eval "$ac_link") 2>conftest.er1
15873 ac_status=$?
15874 grep -v '^ *+' conftest.er1 >conftest.err
15875 rm -f conftest.er1
15876 cat conftest.err >&5
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); } && {
15879 test -z "$ac_c_werror_flag" ||
15880 test ! -s conftest.err
15881 } && test -s conftest$ac_exeext &&
15882 $as_test_x conftest$ac_exeext; then
15883 eval "$as_ac_var=yes"
15884else
15885 echo "$as_me: failed program was:" >&5
15886sed 's/^/| /' conftest.$ac_ext >&5
15887
15888 eval "$as_ac_var=no"
15889fi
15890
15891rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15892 conftest$ac_exeext conftest.$ac_ext
15893fi
15894ac_res=`eval echo '${'$as_ac_var'}'`
15895 { echo "$as_me:$LINENO: result: $ac_res" >&5
15896echo "${ECHO_T}$ac_res" >&6; }
15897if test `eval echo '${'$as_ac_var'}'` = yes; then
15898 cat >>confdefs.h <<_ACEOF
15899#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15900_ACEOF
15901
15902fi
15903done
15904
15905
15906
15907
15908
15909
15910
15911for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline
15912do
15913as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15914{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15915echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15916if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15917 echo $ECHO_N "(cached) $ECHO_C" >&6
15918else
15919 cat >conftest.$ac_ext <<_ACEOF
15920/* confdefs.h. */
15921_ACEOF
15922cat confdefs.h >>conftest.$ac_ext
15923cat >>conftest.$ac_ext <<_ACEOF
15924/* end confdefs.h. */
15925/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15927#define $ac_func innocuous_$ac_func
15928
15929/* System header to define __stub macros and hopefully few prototypes,
15930 which can conflict with char $ac_func (); below.
15931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15932 <limits.h> exists even on freestanding compilers. */
15933
15934#ifdef __STDC__
15935# include <limits.h>
15936#else
15937# include <assert.h>
15938#endif
15939
15940#undef $ac_func
15941
15942/* Override any GCC internal prototype to avoid an error.
15943 Use char because int might match the return type of a GCC
15944 builtin and then its argument prototype would still apply. */
15945#ifdef __cplusplus
15946extern "C"
15947#endif
15948char $ac_func ();
15949/* The GNU C library defines this for functions which it implements
15950 to always fail with ENOSYS. Some functions are actually named
15951 something starting with __ and the normal name is an alias. */
15952#if defined __stub_$ac_func || defined __stub___$ac_func
15953choke me
15954#endif
15955
15956int
15957main ()
15958{
15959return $ac_func ();
15960 ;
15961 return 0;
15962}
15963_ACEOF
15964rm -f conftest.$ac_objext conftest$ac_exeext
15965if { (ac_try="$ac_link"
15966case "(($ac_try" in
15967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15968 *) ac_try_echo=$ac_try;;
15969esac
15970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15971 (eval "$ac_link") 2>conftest.er1
15972 ac_status=$?
15973 grep -v '^ *+' conftest.er1 >conftest.err
15974 rm -f conftest.er1
15975 cat conftest.err >&5
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); } && {
15978 test -z "$ac_c_werror_flag" ||
15979 test ! -s conftest.err
15980 } && test -s conftest$ac_exeext &&
15981 $as_test_x conftest$ac_exeext; then
15982 eval "$as_ac_var=yes"
15983else
15984 echo "$as_me: failed program was:" >&5
15985sed 's/^/| /' conftest.$ac_ext >&5
15986
15987 eval "$as_ac_var=no"
15988fi
15989
15990rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15991 conftest$ac_exeext conftest.$ac_ext
15992fi
15993ac_res=`eval echo '${'$as_ac_var'}'`
15994 { echo "$as_me:$LINENO: result: $ac_res" >&5
15995echo "${ECHO_T}$ac_res" >&6; }
15996if test `eval echo '${'$as_ac_var'}'` = yes; then
15997 cat >>confdefs.h <<_ACEOF
15998#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15999_ACEOF
16000
16001fi
16002done
16003
16004
16005
16006
16007for ac_func in setutxdb setutxent utmpxname
16008do
16009as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16010{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16011echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16012if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16013 echo $ECHO_N "(cached) $ECHO_C" >&6
16014else
16015 cat >conftest.$ac_ext <<_ACEOF
16016/* confdefs.h. */
16017_ACEOF
16018cat confdefs.h >>conftest.$ac_ext
16019cat >>conftest.$ac_ext <<_ACEOF
16020/* end confdefs.h. */
16021/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16023#define $ac_func innocuous_$ac_func
16024
16025/* System header to define __stub macros and hopefully few prototypes,
16026 which can conflict with char $ac_func (); below.
16027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16028 <limits.h> exists even on freestanding compilers. */
16029
16030#ifdef __STDC__
16031# include <limits.h>
16032#else
16033# include <assert.h>
16034#endif
16035
16036#undef $ac_func
16037
16038/* Override any GCC internal prototype to avoid an error.
16039 Use char because int might match the return type of a GCC
16040 builtin and then its argument prototype would still apply. */
16041#ifdef __cplusplus
16042extern "C"
16043#endif
16044char $ac_func ();
16045/* The GNU C library defines this for functions which it implements
16046 to always fail with ENOSYS. Some functions are actually named
16047 something starting with __ and the normal name is an alias. */
16048#if defined __stub_$ac_func || defined __stub___$ac_func
16049choke me
16050#endif
16051
16052int
16053main ()
16054{
16055return $ac_func ();
16056 ;
16057 return 0;
16058}
16059_ACEOF
16060rm -f conftest.$ac_objext conftest$ac_exeext
16061if { (ac_try="$ac_link"
16062case "(($ac_try" in
16063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16064 *) ac_try_echo=$ac_try;;
16065esac
16066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16067 (eval "$ac_link") 2>conftest.er1
16068 ac_status=$?
16069 grep -v '^ *+' conftest.er1 >conftest.err
16070 rm -f conftest.er1
16071 cat conftest.err >&5
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); } && {
16074 test -z "$ac_c_werror_flag" ||
16075 test ! -s conftest.err
16076 } && test -s conftest$ac_exeext &&
16077 $as_test_x conftest$ac_exeext; then
16078 eval "$as_ac_var=yes"
16079else
16080 echo "$as_me: failed program was:" >&5
16081sed 's/^/| /' conftest.$ac_ext >&5
16082
16083 eval "$as_ac_var=no"
16084fi
16085
16086rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16087 conftest$ac_exeext conftest.$ac_ext
16088fi
16089ac_res=`eval echo '${'$as_ac_var'}'`
16090 { echo "$as_me:$LINENO: result: $ac_res" >&5
16091echo "${ECHO_T}$ac_res" >&6; }
16092if test `eval echo '${'$as_ac_var'}'` = yes; then
16093 cat >>confdefs.h <<_ACEOF
16094#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16095_ACEOF
16096
16097fi
16098done
16099
16100
16101for ac_func in getlastlogxbyname
16102do
16103as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16104{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16105echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16106if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16107 echo $ECHO_N "(cached) $ECHO_C" >&6
16108else
16109 cat >conftest.$ac_ext <<_ACEOF
16110/* confdefs.h. */
16111_ACEOF
16112cat confdefs.h >>conftest.$ac_ext
16113cat >>conftest.$ac_ext <<_ACEOF
16114/* end confdefs.h. */
16115/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16117#define $ac_func innocuous_$ac_func
16118
16119/* System header to define __stub macros and hopefully few prototypes,
16120 which can conflict with char $ac_func (); below.
16121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16122 <limits.h> exists even on freestanding compilers. */
16123
16124#ifdef __STDC__
16125# include <limits.h>
16126#else
16127# include <assert.h>
16128#endif
16129
16130#undef $ac_func
16131
16132/* Override any GCC internal prototype to avoid an error.
16133 Use char because int might match the return type of a GCC
16134 builtin and then its argument prototype would still apply. */
16135#ifdef __cplusplus
16136extern "C"
16137#endif
16138char $ac_func ();
16139/* The GNU C library defines this for functions which it implements
16140 to always fail with ENOSYS. Some functions are actually named
16141 something starting with __ and the normal name is an alias. */
16142#if defined __stub_$ac_func || defined __stub___$ac_func
16143choke me
16144#endif
16145
16146int
16147main ()
16148{
16149return $ac_func ();
16150 ;
16151 return 0;
16152}
16153_ACEOF
16154rm -f conftest.$ac_objext conftest$ac_exeext
16155if { (ac_try="$ac_link"
16156case "(($ac_try" in
16157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16158 *) ac_try_echo=$ac_try;;
16159esac
16160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16161 (eval "$ac_link") 2>conftest.er1
16162 ac_status=$?
16163 grep -v '^ *+' conftest.er1 >conftest.err
16164 rm -f conftest.er1
16165 cat conftest.err >&5
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); } && {
16168 test -z "$ac_c_werror_flag" ||
16169 test ! -s conftest.err
16170 } && test -s conftest$ac_exeext &&
16171 $as_test_x conftest$ac_exeext; then
16172 eval "$as_ac_var=yes"
16173else
16174 echo "$as_me: failed program was:" >&5
16175sed 's/^/| /' conftest.$ac_ext >&5
16176
16177 eval "$as_ac_var=no"
16178fi
16179
16180rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16181 conftest$ac_exeext conftest.$ac_ext
16182fi
16183ac_res=`eval echo '${'$as_ac_var'}'`
16184 { echo "$as_me:$LINENO: result: $ac_res" >&5
16185echo "${ECHO_T}$ac_res" >&6; }
16186if test `eval echo '${'$as_ac_var'}'` = yes; then
16187 cat >>confdefs.h <<_ACEOF
16188#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16189_ACEOF
16190
16191fi
16192done
16193
16194
16195{ echo "$as_me:$LINENO: checking for daemon" >&5
16196echo $ECHO_N "checking for daemon... $ECHO_C" >&6; }
16197if test "${ac_cv_func_daemon+set}" = set; then
16198 echo $ECHO_N "(cached) $ECHO_C" >&6
16199else
16200 cat >conftest.$ac_ext <<_ACEOF
16201/* confdefs.h. */
16202_ACEOF
16203cat confdefs.h >>conftest.$ac_ext
16204cat >>conftest.$ac_ext <<_ACEOF
16205/* end confdefs.h. */
16206/* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
16207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16208#define daemon innocuous_daemon
16209
16210/* System header to define __stub macros and hopefully few prototypes,
16211 which can conflict with char daemon (); below.
16212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16213 <limits.h> exists even on freestanding compilers. */
16214
16215#ifdef __STDC__
16216# include <limits.h>
16217#else
16218# include <assert.h>
16219#endif
16220
16221#undef daemon
16222
16223/* Override any GCC internal prototype to avoid an error.
16224 Use char because int might match the return type of a GCC
16225 builtin and then its argument prototype would still apply. */
16226#ifdef __cplusplus
16227extern "C"
16228#endif
16229char daemon ();
16230/* The GNU C library defines this for functions which it implements
16231 to always fail with ENOSYS. Some functions are actually named
16232 something starting with __ and the normal name is an alias. */
16233#if defined __stub_daemon || defined __stub___daemon
16234choke me
16235#endif
16236
16237int
16238main ()
16239{
16240return daemon ();
16241 ;
16242 return 0;
16243}
16244_ACEOF
16245rm -f conftest.$ac_objext conftest$ac_exeext
16246if { (ac_try="$ac_link"
16247case "(($ac_try" in
16248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16249 *) ac_try_echo=$ac_try;;
16250esac
16251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16252 (eval "$ac_link") 2>conftest.er1
16253 ac_status=$?
16254 grep -v '^ *+' conftest.er1 >conftest.err
16255 rm -f conftest.er1
16256 cat conftest.err >&5
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); } && {
16259 test -z "$ac_c_werror_flag" ||
16260 test ! -s conftest.err
16261 } && test -s conftest$ac_exeext &&
16262 $as_test_x conftest$ac_exeext; then
16263 ac_cv_func_daemon=yes
16264else
16265 echo "$as_me: failed program was:" >&5
16266sed 's/^/| /' conftest.$ac_ext >&5
16267
16268 ac_cv_func_daemon=no
16269fi
16270
16271rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16272 conftest$ac_exeext conftest.$ac_ext
16273fi
16274{ echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
16275echo "${ECHO_T}$ac_cv_func_daemon" >&6; }
16276if test $ac_cv_func_daemon = yes; then
16277
16278cat >>confdefs.h <<\_ACEOF
16279#define HAVE_DAEMON 1
16280_ACEOF
16281
16282else
16283 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
16284echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
16285if test "${ac_cv_lib_bsd_daemon+set}" = set; then
16286 echo $ECHO_N "(cached) $ECHO_C" >&6
16287else
16288 ac_check_lib_save_LIBS=$LIBS
16289LIBS="-lbsd $LIBS"
16290cat >conftest.$ac_ext <<_ACEOF
16291/* confdefs.h. */
16292_ACEOF
16293cat confdefs.h >>conftest.$ac_ext
16294cat >>conftest.$ac_ext <<_ACEOF
16295/* end confdefs.h. */
16296
16297/* Override any GCC internal prototype to avoid an error.
16298 Use char because int might match the return type of a GCC
16299 builtin and then its argument prototype would still apply. */
16300#ifdef __cplusplus
16301extern "C"
16302#endif
16303char daemon ();
16304int
16305main ()
16306{
16307return daemon ();
16308 ;
16309 return 0;
16310}
16311_ACEOF
16312rm -f conftest.$ac_objext conftest$ac_exeext
16313if { (ac_try="$ac_link"
16314case "(($ac_try" in
16315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16316 *) ac_try_echo=$ac_try;;
16317esac
16318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16319 (eval "$ac_link") 2>conftest.er1
16320 ac_status=$?
16321 grep -v '^ *+' conftest.er1 >conftest.err
16322 rm -f conftest.er1
16323 cat conftest.err >&5
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); } && {
16326 test -z "$ac_c_werror_flag" ||
16327 test ! -s conftest.err
16328 } && test -s conftest$ac_exeext &&
16329 $as_test_x conftest$ac_exeext; then
16330 ac_cv_lib_bsd_daemon=yes
16331else
16332 echo "$as_me: failed program was:" >&5
16333sed 's/^/| /' conftest.$ac_ext >&5
16334
16335 ac_cv_lib_bsd_daemon=no
16336fi
16337
16338rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16339 conftest$ac_exeext conftest.$ac_ext
16340LIBS=$ac_check_lib_save_LIBS
16341fi
16342{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
16343echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
16344if test $ac_cv_lib_bsd_daemon = yes; then
16345 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
16346#define HAVE_DAEMON 1
16347_ACEOF
16348
16349fi
16350
16351
16352fi
16353
16354
16355{ echo "$as_me:$LINENO: checking for getpagesize" >&5
16356echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
16357if test "${ac_cv_func_getpagesize+set}" = set; then
16358 echo $ECHO_N "(cached) $ECHO_C" >&6
16359else
16360 cat >conftest.$ac_ext <<_ACEOF
16361/* confdefs.h. */
16362_ACEOF
16363cat confdefs.h >>conftest.$ac_ext
16364cat >>conftest.$ac_ext <<_ACEOF
16365/* end confdefs.h. */
16366/* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize.
16367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16368#define getpagesize innocuous_getpagesize
16369
16370/* System header to define __stub macros and hopefully few prototypes,
16371 which can conflict with char getpagesize (); below.
16372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16373 <limits.h> exists even on freestanding compilers. */
16374
16375#ifdef __STDC__
16376# include <limits.h>
16377#else
16378# include <assert.h>
16379#endif
16380
16381#undef getpagesize
16382
16383/* Override any GCC internal prototype to avoid an error.
16384 Use char because int might match the return type of a GCC
16385 builtin and then its argument prototype would still apply. */
16386#ifdef __cplusplus
16387extern "C"
16388#endif
16389char getpagesize ();
16390/* The GNU C library defines this for functions which it implements
16391 to always fail with ENOSYS. Some functions are actually named
16392 something starting with __ and the normal name is an alias. */
16393#if defined __stub_getpagesize || defined __stub___getpagesize
16394choke me
16395#endif
16396
16397int
16398main ()
16399{
16400return getpagesize ();
16401 ;
16402 return 0;
16403}
16404_ACEOF
16405rm -f conftest.$ac_objext conftest$ac_exeext
16406if { (ac_try="$ac_link"
16407case "(($ac_try" in
16408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16409 *) ac_try_echo=$ac_try;;
16410esac
16411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16412 (eval "$ac_link") 2>conftest.er1
16413 ac_status=$?
16414 grep -v '^ *+' conftest.er1 >conftest.err
16415 rm -f conftest.er1
16416 cat conftest.err >&5
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); } && {
16419 test -z "$ac_c_werror_flag" ||
16420 test ! -s conftest.err
16421 } && test -s conftest$ac_exeext &&
16422 $as_test_x conftest$ac_exeext; then
16423 ac_cv_func_getpagesize=yes
16424else
16425 echo "$as_me: failed program was:" >&5
16426sed 's/^/| /' conftest.$ac_ext >&5
16427
16428 ac_cv_func_getpagesize=no
16429fi
16430
16431rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16432 conftest$ac_exeext conftest.$ac_ext
16433fi
16434{ echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
16435echo "${ECHO_T}$ac_cv_func_getpagesize" >&6; }
16436if test $ac_cv_func_getpagesize = yes; then
16437
16438cat >>confdefs.h <<\_ACEOF
16439#define HAVE_GETPAGESIZE 1
16440_ACEOF
16441
16442else
16443 { echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
16444echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6; }
16445if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
16446 echo $ECHO_N "(cached) $ECHO_C" >&6
16447else
16448 ac_check_lib_save_LIBS=$LIBS
16449LIBS="-lucb $LIBS"
16450cat >conftest.$ac_ext <<_ACEOF
16451/* confdefs.h. */
16452_ACEOF
16453cat confdefs.h >>conftest.$ac_ext
16454cat >>conftest.$ac_ext <<_ACEOF
16455/* end confdefs.h. */
16456
16457/* Override any GCC internal prototype to avoid an error.
16458 Use char because int might match the return type of a GCC
16459 builtin and then its argument prototype would still apply. */
16460#ifdef __cplusplus
16461extern "C"
16462#endif
16463char getpagesize ();
16464int
16465main ()
16466{
16467return getpagesize ();
16468 ;
16469 return 0;
16470}
16471_ACEOF
16472rm -f conftest.$ac_objext conftest$ac_exeext
16473if { (ac_try="$ac_link"
16474case "(($ac_try" in
16475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16476 *) ac_try_echo=$ac_try;;
16477esac
16478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16479 (eval "$ac_link") 2>conftest.er1
16480 ac_status=$?
16481 grep -v '^ *+' conftest.er1 >conftest.err
16482 rm -f conftest.er1
16483 cat conftest.err >&5
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); } && {
16486 test -z "$ac_c_werror_flag" ||
16487 test ! -s conftest.err
16488 } && test -s conftest$ac_exeext &&
16489 $as_test_x conftest$ac_exeext; then
16490 ac_cv_lib_ucb_getpagesize=yes
16491else
16492 echo "$as_me: failed program was:" >&5
16493sed 's/^/| /' conftest.$ac_ext >&5
16494
16495 ac_cv_lib_ucb_getpagesize=no
16496fi
16497
16498rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16499 conftest$ac_exeext conftest.$ac_ext
16500LIBS=$ac_check_lib_save_LIBS
16501fi
16502{ echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
16503echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6; }
16504if test $ac_cv_lib_ucb_getpagesize = yes; then
16505 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
16506#define HAVE_GETPAGESIZE 1
16507_ACEOF
16508
16509fi
16510
16511
16512fi
16513
16514
16515# Check for broken snprintf
16516if test "x$ac_cv_func_snprintf" = "xyes" ; then
16517 { echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
16518echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6; }
16519 if test "$cross_compiling" = yes; then
16520 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
16521echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
16522
16523else
16524 cat >conftest.$ac_ext <<_ACEOF
16525/* confdefs.h. */
16526_ACEOF
16527cat confdefs.h >>conftest.$ac_ext
16528cat >>conftest.$ac_ext <<_ACEOF
16529/* end confdefs.h. */
16530
16531#include <stdio.h>
16532int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
16533
16534_ACEOF
16535rm -f 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>&5
16543 ac_status=$?
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16546 { (case "(($ac_try" in
16547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548 *) ac_try_echo=$ac_try;;
16549esac
16550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551 (eval "$ac_try") 2>&5
16552 ac_status=$?
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; }; then
16555 { echo "$as_me:$LINENO: result: yes" >&5
16556echo "${ECHO_T}yes" >&6; }
16557else
16558 echo "$as_me: program exited with status $ac_status" >&5
16559echo "$as_me: failed program was:" >&5
16560sed 's/^/| /' conftest.$ac_ext >&5
16561
16562( exit $ac_status )
16563
16564 { echo "$as_me:$LINENO: result: no" >&5
16565echo "${ECHO_T}no" >&6; }
16566
16567cat >>confdefs.h <<\_ACEOF
16568#define BROKEN_SNPRINTF 1
16569_ACEOF
16570
16571 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
16572echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
16573
16574fi
16575rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16576fi
16577
16578
16579fi
16580
16581# If we don't have a working asprintf, then we strongly depend on vsnprintf
16582# returning the right thing on overflow: the number of characters it tried to
16583# create (as per SUSv3)
16584if test "x$ac_cv_func_asprintf" != "xyes" && \
16585 test "x$ac_cv_func_vsnprintf" = "xyes" ; then
16586 { echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5
16587echo $ECHO_N "checking whether vsnprintf returns correct values on overflow... $ECHO_C" >&6; }
16588 if test "$cross_compiling" = yes; then
16589 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5
16590echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
16591
16592else
16593 cat >conftest.$ac_ext <<_ACEOF
16594/* confdefs.h. */
16595_ACEOF
16596cat confdefs.h >>conftest.$ac_ext
16597cat >>conftest.$ac_ext <<_ACEOF
16598/* end confdefs.h. */
16599
16600#include <sys/types.h>
16601#include <stdio.h>
16602#include <stdarg.h>
16603
16604int x_snprintf(char *str,size_t count,const char *fmt,...)
16605{
16606 size_t ret; va_list ap;
16607 va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap);
16608 return ret;
16609}
16610int main(void)
16611{
16612 char x[1];
16613 exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1);
16614}
16615_ACEOF
16616rm -f conftest$ac_exeext
16617if { (ac_try="$ac_link"
16618case "(($ac_try" in
16619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16620 *) ac_try_echo=$ac_try;;
16621esac
16622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16623 (eval "$ac_link") 2>&5
16624 ac_status=$?
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16627 { (case "(($ac_try" in
16628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16629 *) ac_try_echo=$ac_try;;
16630esac
16631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16632 (eval "$ac_try") 2>&5
16633 ac_status=$?
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); }; }; then
16636 { echo "$as_me:$LINENO: result: yes" >&5
16637echo "${ECHO_T}yes" >&6; }
16638else
16639 echo "$as_me: program exited with status $ac_status" >&5
16640echo "$as_me: failed program was:" >&5
16641sed 's/^/| /' conftest.$ac_ext >&5
16642
16643( exit $ac_status )
16644
16645 { echo "$as_me:$LINENO: result: no" >&5
16646echo "${ECHO_T}no" >&6; }
16647
16648cat >>confdefs.h <<\_ACEOF
16649#define BROKEN_SNPRINTF 1
16650_ACEOF
16651
16652 { echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
16653echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
16654
16655fi
16656rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16657fi
16658
16659
16660fi
16661
16662# On systems where [v]snprintf is broken, but is declared in stdio,
16663# check that the fmt argument is const char * or just char *.
16664# This is only useful for when BROKEN_SNPRINTF
16665{ echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5
16666echo $ECHO_N "checking whether snprintf can declare const char *fmt... $ECHO_C" >&6; }
16667cat >conftest.$ac_ext <<_ACEOF
16668/* confdefs.h. */
16669_ACEOF
16670cat confdefs.h >>conftest.$ac_ext
16671cat >>conftest.$ac_ext <<_ACEOF
16672/* end confdefs.h. */
16673#include <stdio.h>
16674 int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
16675 int main(void) { snprintf(0, 0, 0); }
16676
16677_ACEOF
16678rm -f conftest.$ac_objext
16679if { (ac_try="$ac_compile"
16680case "(($ac_try" in
16681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682 *) ac_try_echo=$ac_try;;
16683esac
16684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16685 (eval "$ac_compile") 2>conftest.er1
16686 ac_status=$?
16687 grep -v '^ *+' conftest.er1 >conftest.err
16688 rm -f conftest.er1
16689 cat conftest.err >&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); } && {
16692 test -z "$ac_c_werror_flag" ||
16693 test ! -s conftest.err
16694 } && test -s conftest.$ac_objext; then
16695 { echo "$as_me:$LINENO: result: yes" >&5
16696echo "${ECHO_T}yes" >&6; }
16697
16698cat >>confdefs.h <<\_ACEOF
16699#define SNPRINTF_CONST const
16700_ACEOF
16701
16702else
16703 echo "$as_me: failed program was:" >&5
16704sed 's/^/| /' conftest.$ac_ext >&5
16705
16706 { echo "$as_me:$LINENO: result: no" >&5
16707echo "${ECHO_T}no" >&6; }
16708 cat >>confdefs.h <<\_ACEOF
16709#define SNPRINTF_CONST /* not const */
16710_ACEOF
16711
16712fi
16713
16714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16715
16716# Check for missing getpeereid (or equiv) support
16717NO_PEERCHECK=""
16718if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
16719 { echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5
16720echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6; }
16721 cat >conftest.$ac_ext <<_ACEOF
16722/* confdefs.h. */
16723_ACEOF
16724cat confdefs.h >>conftest.$ac_ext
16725cat >>conftest.$ac_ext <<_ACEOF
16726/* end confdefs.h. */
16727#include <sys/types.h>
16728 #include <sys/socket.h>
16729int
16730main ()
16731{
16732int i = SO_PEERCRED;
16733 ;
16734 return 0;
16735}
16736_ACEOF
16737rm -f conftest.$ac_objext
16738if { (ac_try="$ac_compile"
16739case "(($ac_try" in
16740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16741 *) ac_try_echo=$ac_try;;
16742esac
16743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16744 (eval "$ac_compile") 2>conftest.er1
16745 ac_status=$?
16746 grep -v '^ *+' conftest.er1 >conftest.err
16747 rm -f conftest.er1
16748 cat conftest.err >&5
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); } && {
16751 test -z "$ac_c_werror_flag" ||
16752 test ! -s conftest.err
16753 } && test -s conftest.$ac_objext; then
16754 { echo "$as_me:$LINENO: result: yes" >&5
16755echo "${ECHO_T}yes" >&6; }
16756
16757cat >>confdefs.h <<\_ACEOF
16758#define HAVE_SO_PEERCRED 1
16759_ACEOF
16760
16761
16762else
16763 echo "$as_me: failed program was:" >&5
16764sed 's/^/| /' conftest.$ac_ext >&5
16765
16766 { echo "$as_me:$LINENO: result: no" >&5
16767echo "${ECHO_T}no" >&6; }
16768 NO_PEERCHECK=1
16769
16770fi
16771
16772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16773fi
16774
16775if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
16776{ echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5
16777echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6; }
16778if test "$cross_compiling" = yes; then
16779
16780 { echo "$as_me:$LINENO: result: yes" >&5
16781echo "${ECHO_T}yes" >&6; }
16782 cat >>confdefs.h <<\_ACEOF
16783#define HAVE_STRICT_MKSTEMP 1
16784_ACEOF
16785
16786
16787
16788else
16789 cat >conftest.$ac_ext <<_ACEOF
16790/* confdefs.h. */
16791_ACEOF
16792cat confdefs.h >>conftest.$ac_ext
16793cat >>conftest.$ac_ext <<_ACEOF
16794/* end confdefs.h. */
16795
16796#include <stdlib.h>
16797main() { char template[]="conftest.mkstemp-test";
16798if (mkstemp(template) == -1)
16799 exit(1);
16800unlink(template); exit(0);
16801}
16802
16803_ACEOF
16804rm -f conftest$ac_exeext
16805if { (ac_try="$ac_link"
16806case "(($ac_try" in
16807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16808 *) ac_try_echo=$ac_try;;
16809esac
16810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16811 (eval "$ac_link") 2>&5
16812 ac_status=$?
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16815 { (case "(($ac_try" in
16816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16817 *) ac_try_echo=$ac_try;;
16818esac
16819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16820 (eval "$ac_try") 2>&5
16821 ac_status=$?
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; }; then
16824
16825 { echo "$as_me:$LINENO: result: no" >&5
16826echo "${ECHO_T}no" >&6; }
16827
16828else
16829 echo "$as_me: program exited with status $ac_status" >&5
16830echo "$as_me: failed program was:" >&5
16831sed 's/^/| /' conftest.$ac_ext >&5
16832
16833( exit $ac_status )
16834
16835 { echo "$as_me:$LINENO: result: yes" >&5
16836echo "${ECHO_T}yes" >&6; }
16837
16838cat >>confdefs.h <<\_ACEOF
16839#define HAVE_STRICT_MKSTEMP 1
16840_ACEOF
16841
16842
16843fi
16844rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16845fi
16846
16847
16848fi
16849
16850if test ! -z "$check_for_openpty_ctty_bug"; then
16851 { echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5
16852echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6; }
16853 if test "$cross_compiling" = yes; then
16854
16855 { echo "$as_me:$LINENO: result: cross-compiling" >&5
16856echo "${ECHO_T}cross-compiling" >&6; }
16857
16858
16859else
16860 cat >conftest.$ac_ext <<_ACEOF
16861/* confdefs.h. */
16862_ACEOF
16863cat confdefs.h >>conftest.$ac_ext
16864cat >>conftest.$ac_ext <<_ACEOF
16865/* end confdefs.h. */
16866
16867#include <stdio.h>
16868#include <sys/fcntl.h>
16869#include <sys/types.h>
16870#include <sys/wait.h>
16871
16872int
16873main()
16874{
16875 pid_t pid;
16876 int fd, ptyfd, ttyfd, status;
16877
16878 pid = fork();
16879 if (pid < 0) { /* failed */
16880 exit(1);
16881 } else if (pid > 0) { /* parent */
16882 waitpid(pid, &status, 0);
16883 if (WIFEXITED(status))
16884 exit(WEXITSTATUS(status));
16885 else
16886 exit(2);
16887 } else { /* child */
16888 close(0); close(1); close(2);
16889 setsid();
16890 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
16891 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
16892 if (fd >= 0)
16893 exit(3); /* Acquired ctty: broken */
16894 else
16895 exit(0); /* Did not acquire ctty: OK */
16896 }
16897}
16898
16899_ACEOF
16900rm -f conftest$ac_exeext
16901if { (ac_try="$ac_link"
16902case "(($ac_try" in
16903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904 *) ac_try_echo=$ac_try;;
16905esac
16906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907 (eval "$ac_link") 2>&5
16908 ac_status=$?
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16911 { (case "(($ac_try" in
16912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16913 *) ac_try_echo=$ac_try;;
16914esac
16915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16916 (eval "$ac_try") 2>&5
16917 ac_status=$?
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; }; then
16920
16921 { echo "$as_me:$LINENO: result: yes" >&5
16922echo "${ECHO_T}yes" >&6; }
16923
16924else
16925 echo "$as_me: program exited with status $ac_status" >&5
16926echo "$as_me: failed program was:" >&5
16927sed 's/^/| /' conftest.$ac_ext >&5
16928
16929( exit $ac_status )
16930
16931 { echo "$as_me:$LINENO: result: no" >&5
16932echo "${ECHO_T}no" >&6; }
16933 cat >>confdefs.h <<\_ACEOF
16934#define SSHD_ACQUIRES_CTTY 1
16935_ACEOF
16936
16937
16938fi
16939rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16940fi
16941
16942
16943fi
16944
16945if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
16946 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
16947 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
16948echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
16949 if test "$cross_compiling" = yes; then
16950
16951 { echo "$as_me:$LINENO: result: cross-compiling" >&5
16952echo "${ECHO_T}cross-compiling" >&6; }
16953
16954
16955else
16956 cat >conftest.$ac_ext <<_ACEOF
16957/* confdefs.h. */
16958_ACEOF
16959cat confdefs.h >>conftest.$ac_ext
16960cat >>conftest.$ac_ext <<_ACEOF
16961/* end confdefs.h. */
16962
16963#include <stdio.h>
16964#include <sys/socket.h>
16965#include <netdb.h>
16966#include <errno.h>
16967#include <netinet/in.h>
16968
16969#define TEST_PORT "2222"
16970
16971int
16972main(void)
16973{
16974 int err, sock;
16975 struct addrinfo *gai_ai, *ai, hints;
16976 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
16977
16978 memset(&hints, 0, sizeof(hints));
16979 hints.ai_family = PF_UNSPEC;
16980 hints.ai_socktype = SOCK_STREAM;
16981 hints.ai_flags = AI_PASSIVE;
16982
16983 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
16984 if (err != 0) {
16985 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
16986 exit(1);
16987 }
16988
16989 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
16990 if (ai->ai_family != AF_INET6)
16991 continue;
16992
16993 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
16994 sizeof(ntop), strport, sizeof(strport),
16995 NI_NUMERICHOST|NI_NUMERICSERV);
16996
16997 if (err != 0) {
16998 if (err == EAI_SYSTEM)
16999 perror("getnameinfo EAI_SYSTEM");
17000 else
17001 fprintf(stderr, "getnameinfo failed: %s\n",
17002 gai_strerror(err));
17003 exit(2);
17004 }
17005
17006 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
17007 if (sock < 0)
17008 perror("socket");
17009 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
17010 if (errno == EBADF)
17011 exit(3);
17012 }
17013 }
17014 exit(0);
17015}
17016
17017_ACEOF
17018rm -f conftest$ac_exeext
17019if { (ac_try="$ac_link"
17020case "(($ac_try" in
17021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17022 *) ac_try_echo=$ac_try;;
17023esac
17024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17025 (eval "$ac_link") 2>&5
17026 ac_status=$?
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17029 { (case "(($ac_try" in
17030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17031 *) ac_try_echo=$ac_try;;
17032esac
17033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17034 (eval "$ac_try") 2>&5
17035 ac_status=$?
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); }; }; then
17038
17039 { echo "$as_me:$LINENO: result: yes" >&5
17040echo "${ECHO_T}yes" >&6; }
17041
17042else
17043 echo "$as_me: program exited with status $ac_status" >&5
17044echo "$as_me: failed program was:" >&5
17045sed 's/^/| /' conftest.$ac_ext >&5
17046
17047( exit $ac_status )
17048
17049 { echo "$as_me:$LINENO: result: no" >&5
17050echo "${ECHO_T}no" >&6; }
17051 cat >>confdefs.h <<\_ACEOF
17052#define BROKEN_GETADDRINFO 1
17053_ACEOF
17054
17055
17056fi
17057rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17058fi
17059
17060
17061fi
17062
17063if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
17064 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
17065 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
17066echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
17067 if test "$cross_compiling" = yes; then
17068
17069 { echo "$as_me:$LINENO: result: cross-compiling" >&5
17070echo "${ECHO_T}cross-compiling" >&6; }
17071
17072
17073else
17074 cat >conftest.$ac_ext <<_ACEOF
17075/* confdefs.h. */
17076_ACEOF
17077cat confdefs.h >>conftest.$ac_ext
17078cat >>conftest.$ac_ext <<_ACEOF
17079/* end confdefs.h. */
17080
17081#include <stdio.h>
17082#include <sys/socket.h>
17083#include <netdb.h>
17084#include <errno.h>
17085#include <netinet/in.h>
17086
17087#define TEST_PORT "2222"
17088
17089int
17090main(void)
17091{
17092 int err, sock;
17093 struct addrinfo *gai_ai, *ai, hints;
17094 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
17095
17096 memset(&hints, 0, sizeof(hints));
17097 hints.ai_family = PF_UNSPEC;
17098 hints.ai_socktype = SOCK_STREAM;
17099 hints.ai_flags = AI_PASSIVE;
17100
17101 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
17102 if (err != 0) {
17103 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
17104 exit(1);
17105 }
17106
17107 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
17108 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
17109 continue;
17110
17111 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
17112 sizeof(ntop), strport, sizeof(strport),
17113 NI_NUMERICHOST|NI_NUMERICSERV);
17114
17115 if (ai->ai_family == AF_INET && err != 0) {
17116 perror("getnameinfo");
17117 exit(2);
17118 }
17119 }
17120 exit(0);
17121}
17122
17123_ACEOF
17124rm -f conftest$ac_exeext
17125if { (ac_try="$ac_link"
17126case "(($ac_try" in
17127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17128 *) ac_try_echo=$ac_try;;
17129esac
17130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17131 (eval "$ac_link") 2>&5
17132 ac_status=$?
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17135 { (case "(($ac_try" in
17136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17137 *) ac_try_echo=$ac_try;;
17138esac
17139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17140 (eval "$ac_try") 2>&5
17141 ac_status=$?
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); }; }; then
17144
17145 { echo "$as_me:$LINENO: result: yes" >&5
17146echo "${ECHO_T}yes" >&6; }
17147
17148cat >>confdefs.h <<\_ACEOF
17149#define AIX_GETNAMEINFO_HACK 1
17150_ACEOF
17151
17152
17153else
17154 echo "$as_me: program exited with status $ac_status" >&5
17155echo "$as_me: failed program was:" >&5
17156sed 's/^/| /' conftest.$ac_ext >&5
17157
17158( exit $ac_status )
17159
17160 { echo "$as_me:$LINENO: result: no" >&5
17161echo "${ECHO_T}no" >&6; }
17162 cat >>confdefs.h <<\_ACEOF
17163#define BROKEN_GETADDRINFO 1
17164_ACEOF
17165
17166
17167fi
17168rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17169fi
17170
17171
17172fi
17173
17174if test "x$check_for_conflicting_getspnam" = "x1"; then
17175 { echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5
17176echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6; }
17177 cat >conftest.$ac_ext <<_ACEOF
17178
17179#include <shadow.h>
17180int main(void) {exit(0);}
17181
17182_ACEOF
17183rm -f conftest.$ac_objext
17184if { (ac_try="$ac_compile"
17185case "(($ac_try" in
17186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17187 *) ac_try_echo=$ac_try;;
17188esac
17189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17190 (eval "$ac_compile") 2>conftest.er1
17191 ac_status=$?
17192 grep -v '^ *+' conftest.er1 >conftest.err
17193 rm -f conftest.er1
17194 cat conftest.err >&5
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); } && {
17197 test -z "$ac_c_werror_flag" ||
17198 test ! -s conftest.err
17199 } && test -s conftest.$ac_objext; then
17200
17201 { echo "$as_me:$LINENO: result: no" >&5
17202echo "${ECHO_T}no" >&6; }
17203
17204else
17205 echo "$as_me: failed program was:" >&5
17206sed 's/^/| /' conftest.$ac_ext >&5
17207
17208
17209 { echo "$as_me:$LINENO: result: yes" >&5
17210echo "${ECHO_T}yes" >&6; }
17211
17212cat >>confdefs.h <<\_ACEOF
17213#define GETSPNAM_CONFLICTING_DEFS 1
17214_ACEOF
17215
17216
17217
17218fi
17219
17220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17221fi
17222
17223{ echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17224echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
17225if test "${ac_cv_func_getpgrp_void+set}" = set; then
17226 echo $ECHO_N "(cached) $ECHO_C" >&6
17227else
17228 # Use it with a single arg.
17229cat >conftest.$ac_ext <<_ACEOF
17230/* confdefs.h. */
17231_ACEOF
17232cat confdefs.h >>conftest.$ac_ext
17233cat >>conftest.$ac_ext <<_ACEOF
17234/* end confdefs.h. */
17235$ac_includes_default
17236int
17237main ()
17238{
17239getpgrp (0);
17240 ;
17241 return 0;
17242}
17243_ACEOF
17244rm -f conftest.$ac_objext
17245if { (ac_try="$ac_compile"
17246case "(($ac_try" in
17247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17248 *) ac_try_echo=$ac_try;;
17249esac
17250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17251 (eval "$ac_compile") 2>conftest.er1
17252 ac_status=$?
17253 grep -v '^ *+' conftest.er1 >conftest.err
17254 rm -f conftest.er1
17255 cat conftest.err >&5
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); } && {
17258 test -z "$ac_c_werror_flag" ||
17259 test ! -s conftest.err
17260 } && test -s conftest.$ac_objext; then
17261 ac_cv_func_getpgrp_void=no
17262else
17263 echo "$as_me: failed program was:" >&5
17264sed 's/^/| /' conftest.$ac_ext >&5
17265
17266 ac_cv_func_getpgrp_void=yes
17267fi
17268
17269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17270
17271fi
17272{ echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17273echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
17274if test $ac_cv_func_getpgrp_void = yes; then
17275
17276cat >>confdefs.h <<\_ACEOF
17277#define GETPGRP_VOID 1
17278_ACEOF
17279
17280fi
17281
17282
17283# Search for OpenSSL
17284saved_CPPFLAGS="$CPPFLAGS"
17285saved_LDFLAGS="$LDFLAGS"
17286
17287# Check whether --with-ssl-dir was given.
17288if test "${with_ssl_dir+set}" = set; then
17289 withval=$with_ssl_dir;
17290 if test "x$withval" != "xno" ; then
17291 case "$withval" in
17292 # Relative paths
17293 ./*|../*) withval="`pwd`/$withval"
17294 esac
17295 if test -d "$withval/lib"; then
17296 if test -n "${need_dash_r}"; then
17297 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
17298 else
17299 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
17300 fi
17301 elif test -d "$withval/lib64"; then
17302 if test -n "${need_dash_r}"; then
17303 LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}"
17304 else
17305 LDFLAGS="-L${withval}/lib64 ${LDFLAGS}"
17306 fi
17307 else
17308 if test -n "${need_dash_r}"; then
17309 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
17310 else
17311 LDFLAGS="-L${withval} ${LDFLAGS}"
17312 fi
17313 fi
17314 if test -d "$withval/include"; then
17315 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
17316 else
17317 CPPFLAGS="-I${withval} ${CPPFLAGS}"
17318 fi
17319 fi
17320
17321
17322fi
17323
17324LIBS="-lcrypto $LIBS"
17325cat >conftest.$ac_ext <<_ACEOF
17326/* confdefs.h. */
17327_ACEOF
17328cat confdefs.h >>conftest.$ac_ext
17329cat >>conftest.$ac_ext <<_ACEOF
17330/* end confdefs.h. */
17331
17332/* Override any GCC internal prototype to avoid an error.
17333 Use char because int might match the return type of a GCC
17334 builtin and then its argument prototype would still apply. */
17335#ifdef __cplusplus
17336extern "C"
17337#endif
17338char RAND_add ();
17339int
17340main ()
17341{
17342return RAND_add ();
17343 ;
17344 return 0;
17345}
17346_ACEOF
17347rm -f conftest.$ac_objext conftest$ac_exeext
17348if { (ac_try="$ac_link"
17349case "(($ac_try" in
17350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351 *) ac_try_echo=$ac_try;;
17352esac
17353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17354 (eval "$ac_link") 2>conftest.er1
17355 ac_status=$?
17356 grep -v '^ *+' conftest.er1 >conftest.err
17357 rm -f conftest.er1
17358 cat conftest.err >&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); } && {
17361 test -z "$ac_c_werror_flag" ||
17362 test ! -s conftest.err
17363 } && test -s conftest$ac_exeext &&
17364 $as_test_x conftest$ac_exeext; then
17365
17366cat >>confdefs.h <<\_ACEOF
17367#define HAVE_OPENSSL 1
17368_ACEOF
17369
17370else
17371 echo "$as_me: failed program was:" >&5
17372sed 's/^/| /' conftest.$ac_ext >&5
17373
17374
17375 if test -n "${need_dash_r}"; then
17376 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
17377 else
17378 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
17379 fi
17380 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
17381 if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
17382 { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
17383echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
17384if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
17385 echo $ECHO_N "(cached) $ECHO_C" >&6
17386fi
17387{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
17388echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
17389else
17390 # Is the header compilable?
17391{ echo "$as_me:$LINENO: checking openssl/opensslv.h usability" >&5
17392echo $ECHO_N "checking openssl/opensslv.h usability... $ECHO_C" >&6; }
17393cat >conftest.$ac_ext <<_ACEOF
17394/* confdefs.h. */
17395_ACEOF
17396cat confdefs.h >>conftest.$ac_ext
17397cat >>conftest.$ac_ext <<_ACEOF
17398/* end confdefs.h. */
17399$ac_includes_default
17400#include <openssl/opensslv.h>
17401_ACEOF
17402rm -f conftest.$ac_objext
17403if { (ac_try="$ac_compile"
17404case "(($ac_try" in
17405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17406 *) ac_try_echo=$ac_try;;
17407esac
17408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17409 (eval "$ac_compile") 2>conftest.er1
17410 ac_status=$?
17411 grep -v '^ *+' conftest.er1 >conftest.err
17412 rm -f conftest.er1
17413 cat conftest.err >&5
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); } && {
17416 test -z "$ac_c_werror_flag" ||
17417 test ! -s conftest.err
17418 } && test -s conftest.$ac_objext; then
17419 ac_header_compiler=yes
17420else
17421 echo "$as_me: failed program was:" >&5
17422sed 's/^/| /' conftest.$ac_ext >&5
17423
17424 ac_header_compiler=no
17425fi
17426
17427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17428{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17429echo "${ECHO_T}$ac_header_compiler" >&6; }
17430
17431# Is the header present?
17432{ echo "$as_me:$LINENO: checking openssl/opensslv.h presence" >&5
17433echo $ECHO_N "checking openssl/opensslv.h presence... $ECHO_C" >&6; }
17434cat >conftest.$ac_ext <<_ACEOF
17435/* confdefs.h. */
17436_ACEOF
17437cat confdefs.h >>conftest.$ac_ext
17438cat >>conftest.$ac_ext <<_ACEOF
17439/* end confdefs.h. */
17440#include <openssl/opensslv.h>
17441_ACEOF
17442if { (ac_try="$ac_cpp conftest.$ac_ext"
17443case "(($ac_try" in
17444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445 *) ac_try_echo=$ac_try;;
17446esac
17447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17449 ac_status=$?
17450 grep -v '^ *+' conftest.er1 >conftest.err
17451 rm -f conftest.er1
17452 cat conftest.err >&5
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); } >/dev/null && {
17455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17456 test ! -s conftest.err
17457 }; then
17458 ac_header_preproc=yes
17459else
17460 echo "$as_me: failed program was:" >&5
17461sed 's/^/| /' conftest.$ac_ext >&5
17462
17463 ac_header_preproc=no
17464fi
17465
17466rm -f conftest.err conftest.$ac_ext
17467{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17468echo "${ECHO_T}$ac_header_preproc" >&6; }
17469
17470# So? What about this header?
17471case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17472 yes:no: )
17473 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&5
17474echo "$as_me: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17475 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&5
17476echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&2;}
17477 ac_header_preproc=yes
17478 ;;
17479 no:yes:* )
17480 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: present but cannot be compiled" >&5
17481echo "$as_me: WARNING: openssl/opensslv.h: present but cannot be compiled" >&2;}
17482 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&5
17483echo "$as_me: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&2;}
17484 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&5
17485echo "$as_me: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&2;}
17486 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&5
17487echo "$as_me: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&2;}
17488 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&5
17489echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&2;}
17490 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&5
17491echo "$as_me: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&2;}
17492 ( cat <<\_ASBOX
17493## ------------------------------------------- ##
17494## Report this to openssh-unix-dev@mindrot.org ##
17495## ------------------------------------------- ##
17496_ASBOX
17497 ) | sed "s/^/$as_me: WARNING: /" >&2
17498 ;;
17499esac
17500{ echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
17501echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
17502if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
17503 echo $ECHO_N "(cached) $ECHO_C" >&6
17504else
17505 ac_cv_header_openssl_opensslv_h=$ac_header_preproc
17506fi
17507{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
17508echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
17509
17510fi
17511if test $ac_cv_header_openssl_opensslv_h = yes; then
17512 :
17513else
17514 { { echo "$as_me:$LINENO: error: *** OpenSSL headers missing - please install first or check config.log ***" >&5
17515echo "$as_me: error: *** OpenSSL headers missing - please install first or check config.log ***" >&2;}
17516 { (exit 1); exit 1; }; }
17517fi
17518
17519
17520 cat >conftest.$ac_ext <<_ACEOF
17521/* confdefs.h. */
17522_ACEOF
17523cat confdefs.h >>conftest.$ac_ext
17524cat >>conftest.$ac_ext <<_ACEOF
17525/* end confdefs.h. */
17526
17527/* Override any GCC internal prototype to avoid an error.
17528 Use char because int might match the return type of a GCC
17529 builtin and then its argument prototype would still apply. */
17530#ifdef __cplusplus
17531extern "C"
17532#endif
17533char RAND_add ();
17534int
17535main ()
17536{
17537return RAND_add ();
17538 ;
17539 return 0;
17540}
17541_ACEOF
17542rm -f conftest.$ac_objext conftest$ac_exeext
17543if { (ac_try="$ac_link"
17544case "(($ac_try" in
17545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17546 *) ac_try_echo=$ac_try;;
17547esac
17548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17549 (eval "$ac_link") 2>conftest.er1
17550 ac_status=$?
17551 grep -v '^ *+' conftest.er1 >conftest.err
17552 rm -f conftest.er1
17553 cat conftest.err >&5
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); } && {
17556 test -z "$ac_c_werror_flag" ||
17557 test ! -s conftest.err
17558 } && test -s conftest$ac_exeext &&
17559 $as_test_x conftest$ac_exeext; then
17560 cat >>confdefs.h <<\_ACEOF
17561#define HAVE_OPENSSL 1
17562_ACEOF
17563
17564else
17565 echo "$as_me: failed program was:" >&5
17566sed 's/^/| /' conftest.$ac_ext >&5
17567
17568
17569 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
17570echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
17571 { (exit 1); exit 1; }; }
17572
17573
17574fi
17575
17576rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17577 conftest$ac_exeext conftest.$ac_ext
17578
17579
17580fi
17581
17582rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17583 conftest$ac_exeext conftest.$ac_ext
17584
17585# Determine OpenSSL header version
17586{ echo "$as_me:$LINENO: checking OpenSSL header version" >&5
17587echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6; }
17588if test "$cross_compiling" = yes; then
17589
17590 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
17591echo "$as_me: WARNING: cross compiling: not checking" >&2;}
17592
17593
17594else
17595 cat >conftest.$ac_ext <<_ACEOF
17596/* confdefs.h. */
17597_ACEOF
17598cat confdefs.h >>conftest.$ac_ext
17599cat >>conftest.$ac_ext <<_ACEOF
17600/* end confdefs.h. */
17601
17602#include <stdio.h>
17603#include <string.h>
17604#include <openssl/opensslv.h>
17605#define DATA "conftest.sslincver"
17606int main(void) {
17607 FILE *fd;
17608 int rc;
17609
17610 fd = fopen(DATA,"w");
17611 if(fd == NULL)
17612 exit(1);
17613
17614 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
17615 exit(1);
17616
17617 exit(0);
17618}
17619
17620_ACEOF
17621rm -f conftest$ac_exeext
17622if { (ac_try="$ac_link"
17623case "(($ac_try" in
17624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17625 *) ac_try_echo=$ac_try;;
17626esac
17627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17628 (eval "$ac_link") 2>&5
17629 ac_status=$?
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17632 { (case "(($ac_try" in
17633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17634 *) ac_try_echo=$ac_try;;
17635esac
17636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17637 (eval "$ac_try") 2>&5
17638 ac_status=$?
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); }; }; then
17641
17642 ssl_header_ver=`cat conftest.sslincver`
17643 { echo "$as_me:$LINENO: result: $ssl_header_ver" >&5
17644echo "${ECHO_T}$ssl_header_ver" >&6; }
17645
17646else
17647 echo "$as_me: program exited with status $ac_status" >&5
17648echo "$as_me: failed program was:" >&5
17649sed 's/^/| /' conftest.$ac_ext >&5
17650
17651( exit $ac_status )
17652
17653 { echo "$as_me:$LINENO: result: not found" >&5
17654echo "${ECHO_T}not found" >&6; }
17655 { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5
17656echo "$as_me: error: OpenSSL version header not found." >&2;}
17657 { (exit 1); exit 1; }; }
17658
17659fi
17660rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17661fi
17662
17663
17664
17665# Determine OpenSSL library version
17666{ echo "$as_me:$LINENO: checking OpenSSL library version" >&5
17667echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6; }
17668if test "$cross_compiling" = yes; then
17669
17670 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
17671echo "$as_me: WARNING: cross compiling: not checking" >&2;}
17672
17673
17674else
17675 cat >conftest.$ac_ext <<_ACEOF
17676/* confdefs.h. */
17677_ACEOF
17678cat confdefs.h >>conftest.$ac_ext
17679cat >>conftest.$ac_ext <<_ACEOF
17680/* end confdefs.h. */
17681
17682#include <stdio.h>
17683#include <string.h>
17684#include <openssl/opensslv.h>
17685#include <openssl/crypto.h>
17686#define DATA "conftest.ssllibver"
17687int main(void) {
17688 FILE *fd;
17689 int rc;
17690
17691 fd = fopen(DATA,"w");
17692 if(fd == NULL)
17693 exit(1);
17694
17695 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
17696 exit(1);
17697
17698 exit(0);
17699}
17700
17701_ACEOF
17702rm -f conftest$ac_exeext
17703if { (ac_try="$ac_link"
17704case "(($ac_try" in
17705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17706 *) ac_try_echo=$ac_try;;
17707esac
17708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17709 (eval "$ac_link") 2>&5
17710 ac_status=$?
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17713 { (case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17716esac
17717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718 (eval "$ac_try") 2>&5
17719 ac_status=$?
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; }; then
17722
17723 ssl_library_ver=`cat conftest.ssllibver`
17724 { echo "$as_me:$LINENO: result: $ssl_library_ver" >&5
17725echo "${ECHO_T}$ssl_library_ver" >&6; }
17726
17727else
17728 echo "$as_me: program exited with status $ac_status" >&5
17729echo "$as_me: failed program was:" >&5
17730sed 's/^/| /' conftest.$ac_ext >&5
17731
17732( exit $ac_status )
17733
17734 { echo "$as_me:$LINENO: result: not found" >&5
17735echo "${ECHO_T}not found" >&6; }
17736 { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5
17737echo "$as_me: error: OpenSSL library not found." >&2;}
17738 { (exit 1); exit 1; }; }
17739
17740fi
17741rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17742fi
17743
17744
17745
17746
17747# Check whether --with-openssl-header-check was given.
17748if test "${with_openssl_header_check+set}" = set; then
17749 withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then
17750 openssl_check_nonfatal=1
17751 fi
17752
17753
17754fi
17755
17756
17757# Sanity check OpenSSL headers
17758{ echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
17759echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; }
17760if test "$cross_compiling" = yes; then
17761
17762 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
17763echo "$as_me: WARNING: cross compiling: not checking" >&2;}
17764
17765
17766else
17767 cat >conftest.$ac_ext <<_ACEOF
17768/* confdefs.h. */
17769_ACEOF
17770cat confdefs.h >>conftest.$ac_ext
17771cat >>conftest.$ac_ext <<_ACEOF
17772/* end confdefs.h. */
17773
17774#include <string.h>
17775#include <openssl/opensslv.h>
17776int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
17777
17778_ACEOF
17779rm -f conftest$ac_exeext
17780if { (ac_try="$ac_link"
17781case "(($ac_try" in
17782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17783 *) ac_try_echo=$ac_try;;
17784esac
17785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17786 (eval "$ac_link") 2>&5
17787 ac_status=$?
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17790 { (case "(($ac_try" in
17791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17792 *) ac_try_echo=$ac_try;;
17793esac
17794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17795 (eval "$ac_try") 2>&5
17796 ac_status=$?
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); }; }; then
17799
17800 { echo "$as_me:$LINENO: result: yes" >&5
17801echo "${ECHO_T}yes" >&6; }
17802
17803else
17804 echo "$as_me: program exited with status $ac_status" >&5
17805echo "$as_me: failed program was:" >&5
17806sed 's/^/| /' conftest.$ac_ext >&5
17807
17808( exit $ac_status )
17809
17810 { echo "$as_me:$LINENO: result: no" >&5
17811echo "${ECHO_T}no" >&6; }
17812 if test "x$openssl_check_nonfatal" = "x"; then
17813 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your
17814library. Check config.log for details.
17815If you are sure your installation is consistent, you can disable the check
17816by running \"./configure --without-openssl-header-check\".
17817Also see contrib/findssl.sh for help identifying header/library mismatches.
17818" >&5
17819echo "$as_me: error: Your OpenSSL headers do not match your
17820library. Check config.log for details.
17821If you are sure your installation is consistent, you can disable the check
17822by running \"./configure --without-openssl-header-check\".
17823Also see contrib/findssl.sh for help identifying header/library mismatches.
17824" >&2;}
17825 { (exit 1); exit 1; }; }
17826 else
17827 { echo "$as_me:$LINENO: WARNING: Your OpenSSL headers do not match your
17828library. Check config.log for details.
17829Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
17830echo "$as_me: WARNING: Your OpenSSL headers do not match your
17831library. Check config.log for details.
17832Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
17833 fi
17834
17835fi
17836rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17837fi
17838
17839
17840
17841{ echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5
17842echo $ECHO_N "checking if programs using OpenSSL functions will link... $ECHO_C" >&6; }
17843cat >conftest.$ac_ext <<_ACEOF
17844/* confdefs.h. */
17845_ACEOF
17846cat confdefs.h >>conftest.$ac_ext
17847cat >>conftest.$ac_ext <<_ACEOF
17848/* end confdefs.h. */
17849
17850#include <openssl/evp.h>
17851int main(void) { SSLeay_add_all_algorithms(); }
17852
17853_ACEOF
17854rm -f conftest.$ac_objext conftest$ac_exeext
17855if { (ac_try="$ac_link"
17856case "(($ac_try" in
17857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858 *) ac_try_echo=$ac_try;;
17859esac
17860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861 (eval "$ac_link") 2>conftest.er1
17862 ac_status=$?
17863 grep -v '^ *+' conftest.er1 >conftest.err
17864 rm -f conftest.er1
17865 cat conftest.err >&5
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); } && {
17868 test -z "$ac_c_werror_flag" ||
17869 test ! -s conftest.err
17870 } && test -s conftest$ac_exeext &&
17871 $as_test_x conftest$ac_exeext; then
17872
17873 { echo "$as_me:$LINENO: result: yes" >&5
17874echo "${ECHO_T}yes" >&6; }
17875
17876else
17877 echo "$as_me: failed program was:" >&5
17878sed 's/^/| /' conftest.$ac_ext >&5
17879
17880
17881 { echo "$as_me:$LINENO: result: no" >&5
17882echo "${ECHO_T}no" >&6; }
17883 saved_LIBS="$LIBS"
17884 LIBS="$LIBS -ldl"
17885 { echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5
17886echo $ECHO_N "checking if programs using OpenSSL need -ldl... $ECHO_C" >&6; }
17887 cat >conftest.$ac_ext <<_ACEOF
17888/* confdefs.h. */
17889_ACEOF
17890cat confdefs.h >>conftest.$ac_ext
17891cat >>conftest.$ac_ext <<_ACEOF
17892/* end confdefs.h. */
17893
17894#include <openssl/evp.h>
17895int main(void) { SSLeay_add_all_algorithms(); }
17896
17897_ACEOF
17898rm -f conftest.$ac_objext conftest$ac_exeext
17899if { (ac_try="$ac_link"
17900case "(($ac_try" in
17901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17902 *) ac_try_echo=$ac_try;;
17903esac
17904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17905 (eval "$ac_link") 2>conftest.er1
17906 ac_status=$?
17907 grep -v '^ *+' conftest.er1 >conftest.err
17908 rm -f conftest.er1
17909 cat conftest.err >&5
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); } && {
17912 test -z "$ac_c_werror_flag" ||
17913 test ! -s conftest.err
17914 } && test -s conftest$ac_exeext &&
17915 $as_test_x conftest$ac_exeext; then
17916
17917 { echo "$as_me:$LINENO: result: yes" >&5
17918echo "${ECHO_T}yes" >&6; }
17919
17920else
17921 echo "$as_me: failed program was:" >&5
17922sed 's/^/| /' conftest.$ac_ext >&5
17923
17924
17925 { echo "$as_me:$LINENO: result: no" >&5
17926echo "${ECHO_T}no" >&6; }
17927 LIBS="$saved_LIBS"
17928
17929
17930fi
17931
17932rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17933 conftest$ac_exeext conftest.$ac_ext
17934
17935
17936fi
17937
17938rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17939 conftest$ac_exeext conftest.$ac_ext
17940
17941
17942
17943
17944
17945for ac_func in RSA_generate_key_ex DSA_generate_parameters_ex BN_is_prime_ex RSA_get_default_method
17946do
17947as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17948{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17949echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17950if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17951 echo $ECHO_N "(cached) $ECHO_C" >&6
17952else
17953 cat >conftest.$ac_ext <<_ACEOF
17954/* confdefs.h. */
17955_ACEOF
17956cat confdefs.h >>conftest.$ac_ext
17957cat >>conftest.$ac_ext <<_ACEOF
17958/* end confdefs.h. */
17959/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17961#define $ac_func innocuous_$ac_func
17962
17963/* System header to define __stub macros and hopefully few prototypes,
17964 which can conflict with char $ac_func (); below.
17965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17966 <limits.h> exists even on freestanding compilers. */
17967
17968#ifdef __STDC__
17969# include <limits.h>
17970#else
17971# include <assert.h>
17972#endif
17973
17974#undef $ac_func
17975
17976/* Override any GCC internal prototype to avoid an error.
17977 Use char because int might match the return type of a GCC
17978 builtin and then its argument prototype would still apply. */
17979#ifdef __cplusplus
17980extern "C"
17981#endif
17982char $ac_func ();
17983/* The GNU C library defines this for functions which it implements
17984 to always fail with ENOSYS. Some functions are actually named
17985 something starting with __ and the normal name is an alias. */
17986#if defined __stub_$ac_func || defined __stub___$ac_func
17987choke me
17988#endif
17989
17990int
17991main ()
17992{
17993return $ac_func ();
17994 ;
17995 return 0;
17996}
17997_ACEOF
17998rm -f conftest.$ac_objext conftest$ac_exeext
17999if { (ac_try="$ac_link"
18000case "(($ac_try" in
18001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18002 *) ac_try_echo=$ac_try;;
18003esac
18004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18005 (eval "$ac_link") 2>conftest.er1
18006 ac_status=$?
18007 grep -v '^ *+' conftest.er1 >conftest.err
18008 rm -f conftest.er1
18009 cat conftest.err >&5
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); } && {
18012 test -z "$ac_c_werror_flag" ||
18013 test ! -s conftest.err
18014 } && test -s conftest$ac_exeext &&
18015 $as_test_x conftest$ac_exeext; then
18016 eval "$as_ac_var=yes"
18017else
18018 echo "$as_me: failed program was:" >&5
18019sed 's/^/| /' conftest.$ac_ext >&5
18020
18021 eval "$as_ac_var=no"
18022fi
18023
18024rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18025 conftest$ac_exeext conftest.$ac_ext
18026fi
18027ac_res=`eval echo '${'$as_ac_var'}'`
18028 { echo "$as_me:$LINENO: result: $ac_res" >&5
18029echo "${ECHO_T}$ac_res" >&6; }
18030if test `eval echo '${'$as_ac_var'}'` = yes; then
18031 cat >>confdefs.h <<_ACEOF
18032#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18033_ACEOF
18034
18035fi
18036done
18037
18038
18039
18040# Check whether --with-ssl-engine was given.
18041if test "${with_ssl_engine+set}" = set; then
18042 withval=$with_ssl_engine; if test "x$withval" != "xno" ; then
18043 { echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5
18044echo $ECHO_N "checking for OpenSSL ENGINE support... $ECHO_C" >&6; }
18045 cat >conftest.$ac_ext <<_ACEOF
18046/* confdefs.h. */
18047_ACEOF
18048cat confdefs.h >>conftest.$ac_ext
18049cat >>conftest.$ac_ext <<_ACEOF
18050/* end confdefs.h. */
18051 #include <openssl/engine.h>
18052int
18053main ()
18054{
18055
18056ENGINE_load_builtin_engines();ENGINE_register_all_complete();
18057
18058 ;
18059 return 0;
18060}
18061_ACEOF
18062rm -f conftest.$ac_objext
18063if { (ac_try="$ac_compile"
18064case "(($ac_try" in
18065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18066 *) ac_try_echo=$ac_try;;
18067esac
18068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18069 (eval "$ac_compile") 2>conftest.er1
18070 ac_status=$?
18071 grep -v '^ *+' conftest.er1 >conftest.err
18072 rm -f conftest.er1
18073 cat conftest.err >&5
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); } && {
18076 test -z "$ac_c_werror_flag" ||
18077 test ! -s conftest.err
18078 } && test -s conftest.$ac_objext; then
18079 { echo "$as_me:$LINENO: result: yes" >&5
18080echo "${ECHO_T}yes" >&6; }
18081
18082cat >>confdefs.h <<\_ACEOF
18083#define USE_OPENSSL_ENGINE 1
18084_ACEOF
18085
18086
18087else
18088 echo "$as_me: failed program was:" >&5
18089sed 's/^/| /' conftest.$ac_ext >&5
18090
18091 { { echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5
18092echo "$as_me: error: OpenSSL ENGINE support not found" >&2;}
18093 { (exit 1); exit 1; }; }
18094
18095fi
18096
18097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18098 fi
18099
18100fi
18101
18102
18103# Check for OpenSSL without EVP_aes_{192,256}_cbc
18104{ echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5
18105echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; }
18106cat >conftest.$ac_ext <<_ACEOF
18107/* confdefs.h. */
18108_ACEOF
18109cat confdefs.h >>conftest.$ac_ext
18110cat >>conftest.$ac_ext <<_ACEOF
18111/* end confdefs.h. */
18112
18113#include <string.h>
18114#include <openssl/evp.h>
18115int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);}
18116
18117_ACEOF
18118rm -f conftest.$ac_objext conftest$ac_exeext
18119if { (ac_try="$ac_link"
18120case "(($ac_try" in
18121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18122 *) ac_try_echo=$ac_try;;
18123esac
18124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18125 (eval "$ac_link") 2>conftest.er1
18126 ac_status=$?
18127 grep -v '^ *+' conftest.er1 >conftest.err
18128 rm -f conftest.er1
18129 cat conftest.err >&5
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); } && {
18132 test -z "$ac_c_werror_flag" ||
18133 test ! -s conftest.err
18134 } && test -s conftest$ac_exeext &&
18135 $as_test_x conftest$ac_exeext; then
18136
18137 { echo "$as_me:$LINENO: result: no" >&5
18138echo "${ECHO_T}no" >&6; }
18139
18140else
18141 echo "$as_me: failed program was:" >&5
18142sed 's/^/| /' conftest.$ac_ext >&5
18143
18144
18145 { echo "$as_me:$LINENO: result: yes" >&5
18146echo "${ECHO_T}yes" >&6; }
18147
18148cat >>confdefs.h <<\_ACEOF
18149#define OPENSSL_LOBOTOMISED_AES 1
18150_ACEOF
18151
18152
18153
18154fi
18155
18156rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18157 conftest$ac_exeext conftest.$ac_ext
18158
18159{ echo "$as_me:$LINENO: checking if EVP_DigestUpdate returns an int" >&5
18160echo $ECHO_N "checking if EVP_DigestUpdate returns an int... $ECHO_C" >&6; }
18161cat >conftest.$ac_ext <<_ACEOF
18162/* confdefs.h. */
18163_ACEOF
18164cat confdefs.h >>conftest.$ac_ext
18165cat >>conftest.$ac_ext <<_ACEOF
18166/* end confdefs.h. */
18167
18168#include <string.h>
18169#include <openssl/evp.h>
18170int main(void) { if(EVP_DigestUpdate(NULL, NULL,0)) exit(0); }
18171
18172_ACEOF
18173rm -f conftest.$ac_objext conftest$ac_exeext
18174if { (ac_try="$ac_link"
18175case "(($ac_try" in
18176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18177 *) ac_try_echo=$ac_try;;
18178esac
18179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18180 (eval "$ac_link") 2>conftest.er1
18181 ac_status=$?
18182 grep -v '^ *+' conftest.er1 >conftest.err
18183 rm -f conftest.er1
18184 cat conftest.err >&5
18185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186 (exit $ac_status); } && {
18187 test -z "$ac_c_werror_flag" ||
18188 test ! -s conftest.err
18189 } && test -s conftest$ac_exeext &&
18190 $as_test_x conftest$ac_exeext; then
18191
18192 { echo "$as_me:$LINENO: result: yes" >&5
18193echo "${ECHO_T}yes" >&6; }
18194
18195else
18196 echo "$as_me: failed program was:" >&5
18197sed 's/^/| /' conftest.$ac_ext >&5
18198
18199
18200 { echo "$as_me:$LINENO: result: no" >&5
18201echo "${ECHO_T}no" >&6; }
18202
18203cat >>confdefs.h <<\_ACEOF
18204#define OPENSSL_EVP_DIGESTUPDATE_VOID 1
18205_ACEOF
18206
18207
18208
18209fi
18210
18211rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18212 conftest$ac_exeext conftest.$ac_ext
18213
18214# Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
18215# because the system crypt() is more featureful.
18216if test "x$check_for_libcrypt_before" = "x1"; then
18217
18218{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
18219echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
18220if test "${ac_cv_lib_crypt_crypt+set}" = set; then
18221 echo $ECHO_N "(cached) $ECHO_C" >&6
18222else
18223 ac_check_lib_save_LIBS=$LIBS
18224LIBS="-lcrypt $LIBS"
18225cat >conftest.$ac_ext <<_ACEOF
18226/* confdefs.h. */
18227_ACEOF
18228cat confdefs.h >>conftest.$ac_ext
18229cat >>conftest.$ac_ext <<_ACEOF
18230/* end confdefs.h. */
18231
18232/* Override any GCC internal prototype to avoid an error.
18233 Use char because int might match the return type of a GCC
18234 builtin and then its argument prototype would still apply. */
18235#ifdef __cplusplus
18236extern "C"
18237#endif
18238char crypt ();
18239int
18240main ()
18241{
18242return crypt ();
18243 ;
18244 return 0;
18245}
18246_ACEOF
18247rm -f conftest.$ac_objext conftest$ac_exeext
18248if { (ac_try="$ac_link"
18249case "(($ac_try" in
18250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18251 *) ac_try_echo=$ac_try;;
18252esac
18253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18254 (eval "$ac_link") 2>conftest.er1
18255 ac_status=$?
18256 grep -v '^ *+' conftest.er1 >conftest.err
18257 rm -f conftest.er1
18258 cat conftest.err >&5
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); } && {
18261 test -z "$ac_c_werror_flag" ||
18262 test ! -s conftest.err
18263 } && test -s conftest$ac_exeext &&
18264 $as_test_x conftest$ac_exeext; then
18265 ac_cv_lib_crypt_crypt=yes
18266else
18267 echo "$as_me: failed program was:" >&5
18268sed 's/^/| /' conftest.$ac_ext >&5
18269
18270 ac_cv_lib_crypt_crypt=no
18271fi
18272
18273rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18274 conftest$ac_exeext conftest.$ac_ext
18275LIBS=$ac_check_lib_save_LIBS
18276fi
18277{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
18278echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
18279if test $ac_cv_lib_crypt_crypt = yes; then
18280 cat >>confdefs.h <<_ACEOF
18281#define HAVE_LIBCRYPT 1
18282_ACEOF
18283
18284 LIBS="-lcrypt $LIBS"
18285
18286fi
18287
18288fi
18289
18290# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
18291# version in OpenSSL.
18292if test "x$check_for_libcrypt_later" = "x1"; then
18293 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
18294echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
18295if test "${ac_cv_lib_crypt_crypt+set}" = set; then
18296 echo $ECHO_N "(cached) $ECHO_C" >&6
18297else
18298 ac_check_lib_save_LIBS=$LIBS
18299LIBS="-lcrypt $LIBS"
18300cat >conftest.$ac_ext <<_ACEOF
18301/* confdefs.h. */
18302_ACEOF
18303cat confdefs.h >>conftest.$ac_ext
18304cat >>conftest.$ac_ext <<_ACEOF
18305/* end confdefs.h. */
18306
18307/* Override any GCC internal prototype to avoid an error.
18308 Use char because int might match the return type of a GCC
18309 builtin and then its argument prototype would still apply. */
18310#ifdef __cplusplus
18311extern "C"
18312#endif
18313char crypt ();
18314int
18315main ()
18316{
18317return crypt ();
18318 ;
18319 return 0;
18320}
18321_ACEOF
18322rm -f conftest.$ac_objext conftest$ac_exeext
18323if { (ac_try="$ac_link"
18324case "(($ac_try" in
18325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18326 *) ac_try_echo=$ac_try;;
18327esac
18328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18329 (eval "$ac_link") 2>conftest.er1
18330 ac_status=$?
18331 grep -v '^ *+' conftest.er1 >conftest.err
18332 rm -f conftest.er1
18333 cat conftest.err >&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } && {
18336 test -z "$ac_c_werror_flag" ||
18337 test ! -s conftest.err
18338 } && test -s conftest$ac_exeext &&
18339 $as_test_x conftest$ac_exeext; then
18340 ac_cv_lib_crypt_crypt=yes
18341else
18342 echo "$as_me: failed program was:" >&5
18343sed 's/^/| /' conftest.$ac_ext >&5
18344
18345 ac_cv_lib_crypt_crypt=no
18346fi
18347
18348rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18349 conftest$ac_exeext conftest.$ac_ext
18350LIBS=$ac_check_lib_save_LIBS
18351fi
18352{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
18353echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
18354if test $ac_cv_lib_crypt_crypt = yes; then
18355 LIBS="$LIBS -lcrypt"
18356fi
18357
18358fi
18359
18360# Search for SHA256 support in libc and/or OpenSSL
18361
18362
18363for ac_func in SHA256_Update EVP_sha256
18364do
18365as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18366{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18367echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18368if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18369 echo $ECHO_N "(cached) $ECHO_C" >&6
18370else
18371 cat >conftest.$ac_ext <<_ACEOF
18372/* confdefs.h. */
18373_ACEOF
18374cat confdefs.h >>conftest.$ac_ext
18375cat >>conftest.$ac_ext <<_ACEOF
18376/* end confdefs.h. */
18377/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18379#define $ac_func innocuous_$ac_func
18380
18381/* System header to define __stub macros and hopefully few prototypes,
18382 which can conflict with char $ac_func (); below.
18383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18384 <limits.h> exists even on freestanding compilers. */
18385
18386#ifdef __STDC__
18387# include <limits.h>
18388#else
18389# include <assert.h>
18390#endif
18391
18392#undef $ac_func
18393
18394/* Override any GCC internal prototype to avoid an error.
18395 Use char because int might match the return type of a GCC
18396 builtin and then its argument prototype would still apply. */
18397#ifdef __cplusplus
18398extern "C"
18399#endif
18400char $ac_func ();
18401/* The GNU C library defines this for functions which it implements
18402 to always fail with ENOSYS. Some functions are actually named
18403 something starting with __ and the normal name is an alias. */
18404#if defined __stub_$ac_func || defined __stub___$ac_func
18405choke me
18406#endif
18407
18408int
18409main ()
18410{
18411return $ac_func ();
18412 ;
18413 return 0;
18414}
18415_ACEOF
18416rm -f conftest.$ac_objext conftest$ac_exeext
18417if { (ac_try="$ac_link"
18418case "(($ac_try" in
18419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18420 *) ac_try_echo=$ac_try;;
18421esac
18422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18423 (eval "$ac_link") 2>conftest.er1
18424 ac_status=$?
18425 grep -v '^ *+' conftest.er1 >conftest.err
18426 rm -f conftest.er1
18427 cat conftest.err >&5
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); } && {
18430 test -z "$ac_c_werror_flag" ||
18431 test ! -s conftest.err
18432 } && test -s conftest$ac_exeext &&
18433 $as_test_x conftest$ac_exeext; then
18434 eval "$as_ac_var=yes"
18435else
18436 echo "$as_me: failed program was:" >&5
18437sed 's/^/| /' conftest.$ac_ext >&5
18438
18439 eval "$as_ac_var=no"
18440fi
18441
18442rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18443 conftest$ac_exeext conftest.$ac_ext
18444fi
18445ac_res=`eval echo '${'$as_ac_var'}'`
18446 { echo "$as_me:$LINENO: result: $ac_res" >&5
18447echo "${ECHO_T}$ac_res" >&6; }
18448if test `eval echo '${'$as_ac_var'}'` = yes; then
18449 cat >>confdefs.h <<_ACEOF
18450#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18451_ACEOF
18452 TEST_SSH_SHA256=yes
18453else
18454 TEST_SSH_SHA256=no
18455fi
18456done
18457
18458
18459
18460# Check complete ECC support in OpenSSL
18461{ echo "$as_me:$LINENO: checking whether OpenSSL has complete ECC support" >&5
18462echo $ECHO_N "checking whether OpenSSL has complete ECC support... $ECHO_C" >&6; }
18463cat >conftest.$ac_ext <<_ACEOF
18464/* confdefs.h. */
18465_ACEOF
18466cat confdefs.h >>conftest.$ac_ext
18467cat >>conftest.$ac_ext <<_ACEOF
18468/* end confdefs.h. */
18469
18470#include <openssl/ec.h>
18471#include <openssl/ecdh.h>
18472#include <openssl/ecdsa.h>
18473#include <openssl/evp.h>
18474#include <openssl/objects.h>
18475#include <openssl/opensslv.h>
18476#if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
18477# error "OpenSSL < 0.9.8g has unreliable ECC code"
18478#endif
18479int main(void) {
18480 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
18481 const EVP_MD *m = EVP_sha512(); /* We need this too */
18482}
18483
18484_ACEOF
18485rm -f conftest.$ac_objext conftest$ac_exeext
18486if { (ac_try="$ac_link"
18487case "(($ac_try" in
18488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18489 *) ac_try_echo=$ac_try;;
18490esac
18491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18492 (eval "$ac_link") 2>conftest.er1
18493 ac_status=$?
18494 grep -v '^ *+' conftest.er1 >conftest.err
18495 rm -f conftest.er1
18496 cat conftest.err >&5
18497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498 (exit $ac_status); } && {
18499 test -z "$ac_c_werror_flag" ||
18500 test ! -s conftest.err
18501 } && test -s conftest$ac_exeext &&
18502 $as_test_x conftest$ac_exeext; then
18503
18504 { echo "$as_me:$LINENO: result: yes" >&5
18505echo "${ECHO_T}yes" >&6; }
18506
18507cat >>confdefs.h <<\_ACEOF
18508#define OPENSSL_HAS_ECC 1
18509_ACEOF
18510
18511 TEST_SSH_ECC=yes
18512 COMMENT_OUT_ECC=""
18513
18514else
18515 echo "$as_me: failed program was:" >&5
18516sed 's/^/| /' conftest.$ac_ext >&5
18517
18518
18519 { echo "$as_me:$LINENO: result: no" >&5
18520echo "${ECHO_T}no" >&6; }
18521 TEST_SSH_ECC=no
18522 COMMENT_OUT_ECC="#no ecc#"
18523
18524
18525fi
18526
18527rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18528 conftest$ac_exeext conftest.$ac_ext
18529
18530
18531
18532saved_LIBS="$LIBS"
18533{ echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5
18534echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; }
18535if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then
18536 echo $ECHO_N "(cached) $ECHO_C" >&6
18537else
18538 ac_check_lib_save_LIBS=$LIBS
18539LIBS="-liaf $LIBS"
18540cat >conftest.$ac_ext <<_ACEOF
18541/* confdefs.h. */
18542_ACEOF
18543cat confdefs.h >>conftest.$ac_ext
18544cat >>conftest.$ac_ext <<_ACEOF
18545/* end confdefs.h. */
18546
18547/* Override any GCC internal prototype to avoid an error.
18548 Use char because int might match the return type of a GCC
18549 builtin and then its argument prototype would still apply. */
18550#ifdef __cplusplus
18551extern "C"
18552#endif
18553char ia_openinfo ();
18554int
18555main ()
18556{
18557return ia_openinfo ();
18558 ;
18559 return 0;
18560}
18561_ACEOF
18562rm -f conftest.$ac_objext conftest$ac_exeext
18563if { (ac_try="$ac_link"
18564case "(($ac_try" in
18565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18566 *) ac_try_echo=$ac_try;;
18567esac
18568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18569 (eval "$ac_link") 2>conftest.er1
18570 ac_status=$?
18571 grep -v '^ *+' conftest.er1 >conftest.err
18572 rm -f conftest.er1
18573 cat conftest.err >&5
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); } && {
18576 test -z "$ac_c_werror_flag" ||
18577 test ! -s conftest.err
18578 } && test -s conftest$ac_exeext &&
18579 $as_test_x conftest$ac_exeext; then
18580 ac_cv_lib_iaf_ia_openinfo=yes
18581else
18582 echo "$as_me: failed program was:" >&5
18583sed 's/^/| /' conftest.$ac_ext >&5
18584
18585 ac_cv_lib_iaf_ia_openinfo=no
18586fi
18587
18588rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18589 conftest$ac_exeext conftest.$ac_ext
18590LIBS=$ac_check_lib_save_LIBS
18591fi
18592{ echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5
18593echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6; }
18594if test $ac_cv_lib_iaf_ia_openinfo = yes; then
18595
18596 LIBS="$LIBS -liaf"
18597
18598for ac_func in set_id
18599do
18600as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18601{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18602echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18603if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18604 echo $ECHO_N "(cached) $ECHO_C" >&6
18605else
18606 cat >conftest.$ac_ext <<_ACEOF
18607/* confdefs.h. */
18608_ACEOF
18609cat confdefs.h >>conftest.$ac_ext
18610cat >>conftest.$ac_ext <<_ACEOF
18611/* end confdefs.h. */
18612/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18614#define $ac_func innocuous_$ac_func
18615
18616/* System header to define __stub macros and hopefully few prototypes,
18617 which can conflict with char $ac_func (); below.
18618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18619 <limits.h> exists even on freestanding compilers. */
18620
18621#ifdef __STDC__
18622# include <limits.h>
18623#else
18624# include <assert.h>
18625#endif
18626
18627#undef $ac_func
18628
18629/* Override any GCC internal prototype to avoid an error.
18630 Use char because int might match the return type of a GCC
18631 builtin and then its argument prototype would still apply. */
18632#ifdef __cplusplus
18633extern "C"
18634#endif
18635char $ac_func ();
18636/* The GNU C library defines this for functions which it implements
18637 to always fail with ENOSYS. Some functions are actually named
18638 something starting with __ and the normal name is an alias. */
18639#if defined __stub_$ac_func || defined __stub___$ac_func
18640choke me
18641#endif
18642
18643int
18644main ()
18645{
18646return $ac_func ();
18647 ;
18648 return 0;
18649}
18650_ACEOF
18651rm -f conftest.$ac_objext conftest$ac_exeext
18652if { (ac_try="$ac_link"
18653case "(($ac_try" in
18654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18655 *) ac_try_echo=$ac_try;;
18656esac
18657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18658 (eval "$ac_link") 2>conftest.er1
18659 ac_status=$?
18660 grep -v '^ *+' conftest.er1 >conftest.err
18661 rm -f conftest.er1
18662 cat conftest.err >&5
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); } && {
18665 test -z "$ac_c_werror_flag" ||
18666 test ! -s conftest.err
18667 } && test -s conftest$ac_exeext &&
18668 $as_test_x conftest$ac_exeext; then
18669 eval "$as_ac_var=yes"
18670else
18671 echo "$as_me: failed program was:" >&5
18672sed 's/^/| /' conftest.$ac_ext >&5
18673
18674 eval "$as_ac_var=no"
18675fi
18676
18677rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18678 conftest$ac_exeext conftest.$ac_ext
18679fi
18680ac_res=`eval echo '${'$as_ac_var'}'`
18681 { echo "$as_me:$LINENO: result: $ac_res" >&5
18682echo "${ECHO_T}$ac_res" >&6; }
18683if test `eval echo '${'$as_ac_var'}'` = yes; then
18684 cat >>confdefs.h <<_ACEOF
18685#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18686_ACEOF
18687 SSHDLIBS="$SSHDLIBS -liaf"
18688
18689cat >>confdefs.h <<\_ACEOF
18690#define HAVE_LIBIAF 1
18691_ACEOF
18692
18693
18694fi
18695done
18696
18697
18698fi
18699
18700LIBS="$saved_LIBS"
18701
18702### Configure cryptographic random number support
18703
18704# Check wheter OpenSSL seeds itself
18705{ echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
18706echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6; }
18707if test "$cross_compiling" = yes; then
18708
18709 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
18710echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
18711 # This is safe, since all recent OpenSSL versions will
18712 # complain at runtime if not seeded correctly.
18713 OPENSSL_SEEDS_ITSELF=yes
18714
18715
18716else
18717 cat >conftest.$ac_ext <<_ACEOF
18718/* confdefs.h. */
18719_ACEOF
18720cat confdefs.h >>conftest.$ac_ext
18721cat >>conftest.$ac_ext <<_ACEOF
18722/* end confdefs.h. */
18723
18724#include <string.h>
18725#include <openssl/rand.h>
18726int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
18727
18728_ACEOF
18729rm -f conftest$ac_exeext
18730if { (ac_try="$ac_link"
18731case "(($ac_try" in
18732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18733 *) ac_try_echo=$ac_try;;
18734esac
18735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18736 (eval "$ac_link") 2>&5
18737 ac_status=$?
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18740 { (case "(($ac_try" in
18741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18742 *) ac_try_echo=$ac_try;;
18743esac
18744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18745 (eval "$ac_try") 2>&5
18746 ac_status=$?
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); }; }; then
18749
18750 OPENSSL_SEEDS_ITSELF=yes
18751 { echo "$as_me:$LINENO: result: yes" >&5
18752echo "${ECHO_T}yes" >&6; }
18753
18754else
18755 echo "$as_me: program exited with status $ac_status" >&5
18756echo "$as_me: failed program was:" >&5
18757sed 's/^/| /' conftest.$ac_ext >&5
18758
18759( exit $ac_status )
18760
18761 { echo "$as_me:$LINENO: result: no" >&5
18762echo "${ECHO_T}no" >&6; }
18763 # Default to use of the rand helper if OpenSSL doesn't
18764 # seed itself
18765 USE_RAND_HELPER=yes
18766
18767fi
18768rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18769fi
18770
18771
18772
18773# Check for PAM libs
18774PAM_MSG="no"
18775
18776# Check whether --with-pam was given.
18777if test "${with_pam+set}" = set; then
18778 withval=$with_pam;
18779 if test "x$withval" != "xno" ; then
18780 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
18781 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
18782 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
18783echo "$as_me: error: PAM headers not found" >&2;}
18784 { (exit 1); exit 1; }; }
18785 fi
18786
18787 saved_LIBS="$LIBS"
18788
18789{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18790echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18791if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18792 echo $ECHO_N "(cached) $ECHO_C" >&6
18793else
18794 ac_check_lib_save_LIBS=$LIBS
18795LIBS="-ldl $LIBS"
18796cat >conftest.$ac_ext <<_ACEOF
18797/* confdefs.h. */
18798_ACEOF
18799cat confdefs.h >>conftest.$ac_ext
18800cat >>conftest.$ac_ext <<_ACEOF
18801/* end confdefs.h. */
18802
18803/* Override any GCC internal prototype to avoid an error.
18804 Use char because int might match the return type of a GCC
18805 builtin and then its argument prototype would still apply. */
18806#ifdef __cplusplus
18807extern "C"
18808#endif
18809char dlopen ();
18810int
18811main ()
18812{
18813return dlopen ();
18814 ;
18815 return 0;
18816}
18817_ACEOF
18818rm -f conftest.$ac_objext conftest$ac_exeext
18819if { (ac_try="$ac_link"
18820case "(($ac_try" in
18821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18822 *) ac_try_echo=$ac_try;;
18823esac
18824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18825 (eval "$ac_link") 2>conftest.er1
18826 ac_status=$?
18827 grep -v '^ *+' conftest.er1 >conftest.err
18828 rm -f conftest.er1
18829 cat conftest.err >&5
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); } && {
18832 test -z "$ac_c_werror_flag" ||
18833 test ! -s conftest.err
18834 } && test -s conftest$ac_exeext &&
18835 $as_test_x conftest$ac_exeext; then
18836 ac_cv_lib_dl_dlopen=yes
18837else
18838 echo "$as_me: failed program was:" >&5
18839sed 's/^/| /' conftest.$ac_ext >&5
18840
18841 ac_cv_lib_dl_dlopen=no
18842fi
18843
18844rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18845 conftest$ac_exeext conftest.$ac_ext
18846LIBS=$ac_check_lib_save_LIBS
18847fi
18848{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18849echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18850if test $ac_cv_lib_dl_dlopen = yes; then
18851 cat >>confdefs.h <<_ACEOF
18852#define HAVE_LIBDL 1
18853_ACEOF
18854
18855 LIBS="-ldl $LIBS"
18856
18857fi
18858
18859
18860{ echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
18861echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; }
18862if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
18863 echo $ECHO_N "(cached) $ECHO_C" >&6
18864else
18865 ac_check_lib_save_LIBS=$LIBS
18866LIBS="-lpam $LIBS"
18867cat >conftest.$ac_ext <<_ACEOF
18868/* confdefs.h. */
18869_ACEOF
18870cat confdefs.h >>conftest.$ac_ext
18871cat >>conftest.$ac_ext <<_ACEOF
18872/* end confdefs.h. */
18873
18874/* Override any GCC internal prototype to avoid an error.
18875 Use char because int might match the return type of a GCC
18876 builtin and then its argument prototype would still apply. */
18877#ifdef __cplusplus
18878extern "C"
18879#endif
18880char pam_set_item ();
18881int
18882main ()
18883{
18884return pam_set_item ();
18885 ;
18886 return 0;
18887}
18888_ACEOF
18889rm -f conftest.$ac_objext conftest$ac_exeext
18890if { (ac_try="$ac_link"
18891case "(($ac_try" in
18892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18893 *) ac_try_echo=$ac_try;;
18894esac
18895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18896 (eval "$ac_link") 2>conftest.er1
18897 ac_status=$?
18898 grep -v '^ *+' conftest.er1 >conftest.err
18899 rm -f conftest.er1
18900 cat conftest.err >&5
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); } && {
18903 test -z "$ac_c_werror_flag" ||
18904 test ! -s conftest.err
18905 } && test -s conftest$ac_exeext &&
18906 $as_test_x conftest$ac_exeext; then
18907 ac_cv_lib_pam_pam_set_item=yes
18908else
18909 echo "$as_me: failed program was:" >&5
18910sed 's/^/| /' conftest.$ac_ext >&5
18911
18912 ac_cv_lib_pam_pam_set_item=no
18913fi
18914
18915rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18916 conftest$ac_exeext conftest.$ac_ext
18917LIBS=$ac_check_lib_save_LIBS
18918fi
18919{ echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
18920echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; }
18921if test $ac_cv_lib_pam_pam_set_item = yes; then
18922 cat >>confdefs.h <<_ACEOF
18923#define HAVE_LIBPAM 1
18924_ACEOF
18925
18926 LIBS="-lpam $LIBS"
18927
18928else
18929 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
18930echo "$as_me: error: *** libpam missing" >&2;}
18931 { (exit 1); exit 1; }; }
18932fi
18933
18934
18935for ac_func in pam_getenvlist
18936do
18937as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18938{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18939echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18940if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18941 echo $ECHO_N "(cached) $ECHO_C" >&6
18942else
18943 cat >conftest.$ac_ext <<_ACEOF
18944/* confdefs.h. */
18945_ACEOF
18946cat confdefs.h >>conftest.$ac_ext
18947cat >>conftest.$ac_ext <<_ACEOF
18948/* end confdefs.h. */
18949/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18951#define $ac_func innocuous_$ac_func
18952
18953/* System header to define __stub macros and hopefully few prototypes,
18954 which can conflict with char $ac_func (); below.
18955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18956 <limits.h> exists even on freestanding compilers. */
18957
18958#ifdef __STDC__
18959# include <limits.h>
18960#else
18961# include <assert.h>
18962#endif
18963
18964#undef $ac_func
18965
18966/* Override any GCC internal prototype to avoid an error.
18967 Use char because int might match the return type of a GCC
18968 builtin and then its argument prototype would still apply. */
18969#ifdef __cplusplus
18970extern "C"
18971#endif
18972char $ac_func ();
18973/* The GNU C library defines this for functions which it implements
18974 to always fail with ENOSYS. Some functions are actually named
18975 something starting with __ and the normal name is an alias. */
18976#if defined __stub_$ac_func || defined __stub___$ac_func
18977choke me
18978#endif
18979
18980int
18981main ()
18982{
18983return $ac_func ();
18984 ;
18985 return 0;
18986}
18987_ACEOF
18988rm -f conftest.$ac_objext conftest$ac_exeext
18989if { (ac_try="$ac_link"
18990case "(($ac_try" in
18991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18992 *) ac_try_echo=$ac_try;;
18993esac
18994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18995 (eval "$ac_link") 2>conftest.er1
18996 ac_status=$?
18997 grep -v '^ *+' conftest.er1 >conftest.err
18998 rm -f conftest.er1
18999 cat conftest.err >&5
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); } && {
19002 test -z "$ac_c_werror_flag" ||
19003 test ! -s conftest.err
19004 } && test -s conftest$ac_exeext &&
19005 $as_test_x conftest$ac_exeext; then
19006 eval "$as_ac_var=yes"
19007else
19008 echo "$as_me: failed program was:" >&5
19009sed 's/^/| /' conftest.$ac_ext >&5
19010
19011 eval "$as_ac_var=no"
19012fi
19013
19014rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19015 conftest$ac_exeext conftest.$ac_ext
19016fi
19017ac_res=`eval echo '${'$as_ac_var'}'`
19018 { echo "$as_me:$LINENO: result: $ac_res" >&5
19019echo "${ECHO_T}$ac_res" >&6; }
19020if test `eval echo '${'$as_ac_var'}'` = yes; then
19021 cat >>confdefs.h <<_ACEOF
19022#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19023_ACEOF
19024
19025fi
19026done
19027
19028
19029for ac_func in pam_putenv
19030do
19031as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19032{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19033echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19034if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19035 echo $ECHO_N "(cached) $ECHO_C" >&6
19036else
19037 cat >conftest.$ac_ext <<_ACEOF
19038/* confdefs.h. */
19039_ACEOF
19040cat confdefs.h >>conftest.$ac_ext
19041cat >>conftest.$ac_ext <<_ACEOF
19042/* end confdefs.h. */
19043/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19045#define $ac_func innocuous_$ac_func
19046
19047/* System header to define __stub macros and hopefully few prototypes,
19048 which can conflict with char $ac_func (); below.
19049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19050 <limits.h> exists even on freestanding compilers. */
19051
19052#ifdef __STDC__
19053# include <limits.h>
19054#else
19055# include <assert.h>
19056#endif
19057
19058#undef $ac_func
19059
19060/* Override any GCC internal prototype to avoid an error.
19061 Use char because int might match the return type of a GCC
19062 builtin and then its argument prototype would still apply. */
19063#ifdef __cplusplus
19064extern "C"
19065#endif
19066char $ac_func ();
19067/* The GNU C library defines this for functions which it implements
19068 to always fail with ENOSYS. Some functions are actually named
19069 something starting with __ and the normal name is an alias. */
19070#if defined __stub_$ac_func || defined __stub___$ac_func
19071choke me
19072#endif
19073
19074int
19075main ()
19076{
19077return $ac_func ();
19078 ;
19079 return 0;
19080}
19081_ACEOF
19082rm -f conftest.$ac_objext conftest$ac_exeext
19083if { (ac_try="$ac_link"
19084case "(($ac_try" in
19085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086 *) ac_try_echo=$ac_try;;
19087esac
19088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19089 (eval "$ac_link") 2>conftest.er1
19090 ac_status=$?
19091 grep -v '^ *+' conftest.er1 >conftest.err
19092 rm -f conftest.er1
19093 cat conftest.err >&5
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); } && {
19096 test -z "$ac_c_werror_flag" ||
19097 test ! -s conftest.err
19098 } && test -s conftest$ac_exeext &&
19099 $as_test_x conftest$ac_exeext; then
19100 eval "$as_ac_var=yes"
19101else
19102 echo "$as_me: failed program was:" >&5
19103sed 's/^/| /' conftest.$ac_ext >&5
19104
19105 eval "$as_ac_var=no"
19106fi
19107
19108rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19109 conftest$ac_exeext conftest.$ac_ext
19110fi
19111ac_res=`eval echo '${'$as_ac_var'}'`
19112 { echo "$as_me:$LINENO: result: $ac_res" >&5
19113echo "${ECHO_T}$ac_res" >&6; }
19114if test `eval echo '${'$as_ac_var'}'` = yes; then
19115 cat >>confdefs.h <<_ACEOF
19116#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19117_ACEOF
19118
19119fi
19120done
19121
19122 LIBS="$saved_LIBS"
19123
19124 PAM_MSG="yes"
19125
19126 SSHDLIBS="$SSHDLIBS -lpam"
19127
19128cat >>confdefs.h <<\_ACEOF
19129#define USE_PAM 1
19130_ACEOF
19131
19132
19133 if test $ac_cv_lib_dl_dlopen = yes; then
19134 case "$LIBS" in
19135 *-ldl*)
19136 # libdl already in LIBS
19137 ;;
19138 *)
19139 SSHDLIBS="$SSHDLIBS -ldl"
19140 ;;
19141 esac
19142 fi
19143 fi
19144
19145
19146fi
19147
19148
19149# Check for older PAM
19150if test "x$PAM_MSG" = "xyes" ; then
19151 # Check PAM strerror arguments (old PAM)
19152 { echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
19153echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; }
19154 cat >conftest.$ac_ext <<_ACEOF
19155/* confdefs.h. */
19156_ACEOF
19157cat confdefs.h >>conftest.$ac_ext
19158cat >>conftest.$ac_ext <<_ACEOF
19159/* end confdefs.h. */
19160
19161#include <stdlib.h>
19162#if defined(HAVE_SECURITY_PAM_APPL_H)
19163#include <security/pam_appl.h>
19164#elif defined (HAVE_PAM_PAM_APPL_H)
19165#include <pam/pam_appl.h>
19166#endif
19167
19168int
19169main ()
19170{
19171(void)pam_strerror((pam_handle_t *)NULL, -1);
19172 ;
19173 return 0;
19174}
19175_ACEOF
19176rm -f conftest.$ac_objext
19177if { (ac_try="$ac_compile"
19178case "(($ac_try" in
19179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19180 *) ac_try_echo=$ac_try;;
19181esac
19182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19183 (eval "$ac_compile") 2>conftest.er1
19184 ac_status=$?
19185 grep -v '^ *+' conftest.er1 >conftest.err
19186 rm -f conftest.er1
19187 cat conftest.err >&5
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); } && {
19190 test -z "$ac_c_werror_flag" ||
19191 test ! -s conftest.err
19192 } && test -s conftest.$ac_objext; then
19193 { echo "$as_me:$LINENO: result: no" >&5
19194echo "${ECHO_T}no" >&6; }
19195else
19196 echo "$as_me: failed program was:" >&5
19197sed 's/^/| /' conftest.$ac_ext >&5
19198
19199
19200
19201cat >>confdefs.h <<\_ACEOF
19202#define HAVE_OLD_PAM 1
19203_ACEOF
19204
19205 { echo "$as_me:$LINENO: result: yes" >&5
19206echo "${ECHO_T}yes" >&6; }
19207 PAM_MSG="yes (old library)"
19208
19209
19210fi
19211
19212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19213fi
19214
19215# Do we want to force the use of the rand helper?
19216
19217# Check whether --with-rand-helper was given.
19218if test "${with_rand_helper+set}" = set; then
19219 withval=$with_rand_helper;
19220 if test "x$withval" = "xno" ; then
19221 # Force use of OpenSSL's internal RNG, even if
19222 # the previous test showed it to be unseeded.
19223 if test -z "$OPENSSL_SEEDS_ITSELF" ; then
19224 { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
19225echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
19226 OPENSSL_SEEDS_ITSELF=yes
19227 USE_RAND_HELPER=""
19228 fi
19229 else
19230 USE_RAND_HELPER=yes
19231 fi
19232
19233fi
19234
19235
19236# Which randomness source do we use?
19237if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then
19238 # OpenSSL only
19239
19240cat >>confdefs.h <<\_ACEOF
19241#define OPENSSL_PRNG_ONLY 1
19242_ACEOF
19243
19244 RAND_MSG="OpenSSL internal ONLY"
19245 INSTALL_SSH_RAND_HELPER=""
19246elif test ! -z "$USE_RAND_HELPER" ; then
19247 # install rand helper
19248 RAND_MSG="ssh-rand-helper"
19249 INSTALL_SSH_RAND_HELPER="yes"
19250fi
19251
19252
19253### Configuration of ssh-rand-helper
19254
19255# PRNGD TCP socket
19256
19257# Check whether --with-prngd-port was given.
19258if test "${with_prngd_port+set}" = set; then
19259 withval=$with_prngd_port;
19260 case "$withval" in
19261 no)
19262 withval=""
19263 ;;
19264 [0-9]*)
19265 ;;
19266 *)
19267 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
19268echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
19269 { (exit 1); exit 1; }; }
19270 ;;
19271 esac
19272 if test ! -z "$withval" ; then
19273 PRNGD_PORT="$withval"
19274
19275cat >>confdefs.h <<_ACEOF
19276#define PRNGD_PORT $PRNGD_PORT
19277_ACEOF
19278
19279 fi
19280
19281
19282fi
19283
19284
19285# PRNGD Unix domain socket
19286
19287# Check whether --with-prngd-socket was given.
19288if test "${with_prngd_socket+set}" = set; then
19289 withval=$with_prngd_socket;
19290 case "$withval" in
19291 yes)
19292 withval="/var/run/egd-pool"
19293 ;;
19294 no)
19295 withval=""
19296 ;;
19297 /*)
19298 ;;
19299 *)
19300 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
19301echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
19302 { (exit 1); exit 1; }; }
19303 ;;
19304 esac
19305
19306 if test ! -z "$withval" ; then
19307 if test ! -z "$PRNGD_PORT" ; then
19308 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
19309echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
19310 { (exit 1); exit 1; }; }
19311 fi
19312 if test ! -r "$withval" ; then
19313 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
19314echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
19315 fi
19316 PRNGD_SOCKET="$withval"
19317
19318cat >>confdefs.h <<_ACEOF
19319#define PRNGD_SOCKET "$PRNGD_SOCKET"
19320_ACEOF
19321
19322 fi
19323
19324else
19325
19326 # Check for existing socket only if we don't have a random device already
19327 if test "$USE_RAND_HELPER" = yes ; then
19328 { echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
19329echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6; }
19330 # Insert other locations here
19331 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
19332 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
19333 PRNGD_SOCKET="$sock"
19334 cat >>confdefs.h <<_ACEOF
19335#define PRNGD_SOCKET "$PRNGD_SOCKET"
19336_ACEOF
19337
19338 break;
19339 fi
19340 done
19341 if test ! -z "$PRNGD_SOCKET" ; then
19342 { echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
19343echo "${ECHO_T}$PRNGD_SOCKET" >&6; }
19344 else
19345 { echo "$as_me:$LINENO: result: not found" >&5
19346echo "${ECHO_T}not found" >&6; }
19347 fi
19348 fi
19349
19350
19351fi
19352
19353
19354# Change default command timeout for hashing entropy source
19355entropy_timeout=200
19356
19357# Check whether --with-entropy-timeout was given.
19358if test "${with_entropy_timeout+set}" = set; then
19359 withval=$with_entropy_timeout;
19360 if test -n "$withval" && test "x$withval" != "xno" && \
19361 test "x${withval}" != "xyes"; then
19362 entropy_timeout=$withval
19363 fi
19364
19365
19366fi
19367
19368
19369cat >>confdefs.h <<_ACEOF
19370#define ENTROPY_TIMEOUT_MSEC $entropy_timeout
19371_ACEOF
19372
19373
19374SSH_PRIVSEP_USER=sshd
19375
19376# Check whether --with-privsep-user was given.
19377if test "${with_privsep_user+set}" = set; then
19378 withval=$with_privsep_user;
19379 if test -n "$withval" && test "x$withval" != "xno" && \
19380 test "x${withval}" != "xyes"; then
19381 SSH_PRIVSEP_USER=$withval
19382 fi
19383
19384
19385fi
19386
19387
19388cat >>confdefs.h <<_ACEOF
19389#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
19390_ACEOF
19391
19392
19393
19394# We do this little dance with the search path to insure
19395# that programs that we select for use by installed programs
19396# (which may be run by the super-user) come from trusted
19397# locations before they come from the user's private area.
19398# This should help avoid accidentally configuring some
19399# random version of a program in someone's personal bin.
19400
19401OPATH=$PATH
19402PATH=/bin:/usr/bin
19403test -h /bin 2> /dev/null && PATH=/usr/bin
19404test -d /sbin && PATH=$PATH:/sbin
19405test -d /usr/sbin && PATH=$PATH:/usr/sbin
19406PATH=$PATH:/etc:$OPATH
19407
19408# These programs are used by the command hashing source to gather entropy
19409
19410 # Extract the first word of "ls", so it can be a program name with args.
19411set dummy ls; ac_word=$2
19412{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19414if test "${ac_cv_path_PROG_LS+set}" = set; then
19415 echo $ECHO_N "(cached) $ECHO_C" >&6
19416else
19417 case $PROG_LS in
19418 [\\/]* | ?:[\\/]*)
19419 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
19420 ;;
19421 *)
19422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19423for as_dir in $PATH
19424do
19425 IFS=$as_save_IFS
19426 test -z "$as_dir" && as_dir=.
19427 for ac_exec_ext in '' $ac_executable_extensions; do
19428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19429 ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
19430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19431 break 2
19432 fi
19433done
19434done
19435IFS=$as_save_IFS
19436
19437 ;;
19438esac
19439fi
19440PROG_LS=$ac_cv_path_PROG_LS
19441if test -n "$PROG_LS"; then
19442 { echo "$as_me:$LINENO: result: $PROG_LS" >&5
19443echo "${ECHO_T}$PROG_LS" >&6; }
19444else
19445 { echo "$as_me:$LINENO: result: no" >&5
19446echo "${ECHO_T}no" >&6; }
19447fi
19448
19449
19450 if test -z "$PROG_LS" ; then
19451 PROG_LS="undef"
19452 fi
19453
19454
19455
19456 # Extract the first word of "netstat", so it can be a program name with args.
19457set dummy netstat; ac_word=$2
19458{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19460if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
19461 echo $ECHO_N "(cached) $ECHO_C" >&6
19462else
19463 case $PROG_NETSTAT in
19464 [\\/]* | ?:[\\/]*)
19465 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
19466 ;;
19467 *)
19468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19469for as_dir in $PATH
19470do
19471 IFS=$as_save_IFS
19472 test -z "$as_dir" && as_dir=.
19473 for ac_exec_ext in '' $ac_executable_extensions; do
19474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19475 ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
19476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19477 break 2
19478 fi
19479done
19480done
19481IFS=$as_save_IFS
19482
19483 ;;
19484esac
19485fi
19486PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
19487if test -n "$PROG_NETSTAT"; then
19488 { echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5
19489echo "${ECHO_T}$PROG_NETSTAT" >&6; }
19490else
19491 { echo "$as_me:$LINENO: result: no" >&5
19492echo "${ECHO_T}no" >&6; }
19493fi
19494
19495
19496 if test -z "$PROG_NETSTAT" ; then
19497 PROG_NETSTAT="undef"
19498 fi
19499
19500
19501
19502 # Extract the first word of "arp", so it can be a program name with args.
19503set dummy arp; ac_word=$2
19504{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19506if test "${ac_cv_path_PROG_ARP+set}" = set; then
19507 echo $ECHO_N "(cached) $ECHO_C" >&6
19508else
19509 case $PROG_ARP in
19510 [\\/]* | ?:[\\/]*)
19511 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
19512 ;;
19513 *)
19514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19515for as_dir in $PATH
19516do
19517 IFS=$as_save_IFS
19518 test -z "$as_dir" && as_dir=.
19519 for ac_exec_ext in '' $ac_executable_extensions; do
19520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19521 ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
19522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19523 break 2
19524 fi
19525done
19526done
19527IFS=$as_save_IFS
19528
19529 ;;
19530esac
19531fi
19532PROG_ARP=$ac_cv_path_PROG_ARP
19533if test -n "$PROG_ARP"; then
19534 { echo "$as_me:$LINENO: result: $PROG_ARP" >&5
19535echo "${ECHO_T}$PROG_ARP" >&6; }
19536else
19537 { echo "$as_me:$LINENO: result: no" >&5
19538echo "${ECHO_T}no" >&6; }
19539fi
19540
19541
19542 if test -z "$PROG_ARP" ; then
19543 PROG_ARP="undef"
19544 fi
19545
19546
19547
19548 # Extract the first word of "ifconfig", so it can be a program name with args.
19549set dummy ifconfig; ac_word=$2
19550{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19552if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
19553 echo $ECHO_N "(cached) $ECHO_C" >&6
19554else
19555 case $PROG_IFCONFIG in
19556 [\\/]* | ?:[\\/]*)
19557 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
19558 ;;
19559 *)
19560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19561for as_dir in $PATH
19562do
19563 IFS=$as_save_IFS
19564 test -z "$as_dir" && as_dir=.
19565 for ac_exec_ext in '' $ac_executable_extensions; do
19566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19567 ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
19568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19569 break 2
19570 fi
19571done
19572done
19573IFS=$as_save_IFS
19574
19575 ;;
19576esac
19577fi
19578PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
19579if test -n "$PROG_IFCONFIG"; then
19580 { echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5
19581echo "${ECHO_T}$PROG_IFCONFIG" >&6; }
19582else
19583 { echo "$as_me:$LINENO: result: no" >&5
19584echo "${ECHO_T}no" >&6; }
19585fi
19586
19587
19588 if test -z "$PROG_IFCONFIG" ; then
19589 PROG_IFCONFIG="undef"
19590 fi
19591
19592
19593
19594 # Extract the first word of "jstat", so it can be a program name with args.
19595set dummy jstat; ac_word=$2
19596{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19598if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
19599 echo $ECHO_N "(cached) $ECHO_C" >&6
19600else
19601 case $PROG_JSTAT in
19602 [\\/]* | ?:[\\/]*)
19603 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
19604 ;;
19605 *)
19606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19607for as_dir in $PATH
19608do
19609 IFS=$as_save_IFS
19610 test -z "$as_dir" && as_dir=.
19611 for ac_exec_ext in '' $ac_executable_extensions; do
19612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19613 ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
19614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19615 break 2
19616 fi
19617done
19618done
19619IFS=$as_save_IFS
19620
19621 ;;
19622esac
19623fi
19624PROG_JSTAT=$ac_cv_path_PROG_JSTAT
19625if test -n "$PROG_JSTAT"; then
19626 { echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5
19627echo "${ECHO_T}$PROG_JSTAT" >&6; }
19628else
19629 { echo "$as_me:$LINENO: result: no" >&5
19630echo "${ECHO_T}no" >&6; }
19631fi
19632
19633
19634 if test -z "$PROG_JSTAT" ; then
19635 PROG_JSTAT="undef"
19636 fi
19637
19638
19639
19640 # Extract the first word of "ps", so it can be a program name with args.
19641set dummy ps; ac_word=$2
19642{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19644if test "${ac_cv_path_PROG_PS+set}" = set; then
19645 echo $ECHO_N "(cached) $ECHO_C" >&6
19646else
19647 case $PROG_PS in
19648 [\\/]* | ?:[\\/]*)
19649 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
19650 ;;
19651 *)
19652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19653for as_dir in $PATH
19654do
19655 IFS=$as_save_IFS
19656 test -z "$as_dir" && as_dir=.
19657 for ac_exec_ext in '' $ac_executable_extensions; do
19658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19659 ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
19660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19661 break 2
19662 fi
19663done
19664done
19665IFS=$as_save_IFS
19666
19667 ;;
19668esac
19669fi
19670PROG_PS=$ac_cv_path_PROG_PS
19671if test -n "$PROG_PS"; then
19672 { echo "$as_me:$LINENO: result: $PROG_PS" >&5
19673echo "${ECHO_T}$PROG_PS" >&6; }
19674else
19675 { echo "$as_me:$LINENO: result: no" >&5
19676echo "${ECHO_T}no" >&6; }
19677fi
19678
19679
19680 if test -z "$PROG_PS" ; then
19681 PROG_PS="undef"
19682 fi
19683
19684
19685
19686 # Extract the first word of "sar", so it can be a program name with args.
19687set dummy sar; ac_word=$2
19688{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19690if test "${ac_cv_path_PROG_SAR+set}" = set; then
19691 echo $ECHO_N "(cached) $ECHO_C" >&6
19692else
19693 case $PROG_SAR in
19694 [\\/]* | ?:[\\/]*)
19695 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
19696 ;;
19697 *)
19698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19699for as_dir in $PATH
19700do
19701 IFS=$as_save_IFS
19702 test -z "$as_dir" && as_dir=.
19703 for ac_exec_ext in '' $ac_executable_extensions; do
19704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19705 ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
19706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19707 break 2
19708 fi
19709done
19710done
19711IFS=$as_save_IFS
19712
19713 ;;
19714esac
19715fi
19716PROG_SAR=$ac_cv_path_PROG_SAR
19717if test -n "$PROG_SAR"; then
19718 { echo "$as_me:$LINENO: result: $PROG_SAR" >&5
19719echo "${ECHO_T}$PROG_SAR" >&6; }
19720else
19721 { echo "$as_me:$LINENO: result: no" >&5
19722echo "${ECHO_T}no" >&6; }
19723fi
19724
19725
19726 if test -z "$PROG_SAR" ; then
19727 PROG_SAR="undef"
19728 fi
19729
19730
19731
19732 # Extract the first word of "w", so it can be a program name with args.
19733set dummy w; ac_word=$2
19734{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19736if test "${ac_cv_path_PROG_W+set}" = set; then
19737 echo $ECHO_N "(cached) $ECHO_C" >&6
19738else
19739 case $PROG_W in
19740 [\\/]* | ?:[\\/]*)
19741 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
19742 ;;
19743 *)
19744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19745for as_dir in $PATH
19746do
19747 IFS=$as_save_IFS
19748 test -z "$as_dir" && as_dir=.
19749 for ac_exec_ext in '' $ac_executable_extensions; do
19750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19751 ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
19752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19753 break 2
19754 fi
19755done
19756done
19757IFS=$as_save_IFS
19758
19759 ;;
19760esac
19761fi
19762PROG_W=$ac_cv_path_PROG_W
19763if test -n "$PROG_W"; then
19764 { echo "$as_me:$LINENO: result: $PROG_W" >&5
19765echo "${ECHO_T}$PROG_W" >&6; }
19766else
19767 { echo "$as_me:$LINENO: result: no" >&5
19768echo "${ECHO_T}no" >&6; }
19769fi
19770
19771
19772 if test -z "$PROG_W" ; then
19773 PROG_W="undef"
19774 fi
19775
19776
19777
19778 # Extract the first word of "who", so it can be a program name with args.
19779set dummy who; ac_word=$2
19780{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19782if test "${ac_cv_path_PROG_WHO+set}" = set; then
19783 echo $ECHO_N "(cached) $ECHO_C" >&6
19784else
19785 case $PROG_WHO in
19786 [\\/]* | ?:[\\/]*)
19787 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
19788 ;;
19789 *)
19790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19791for as_dir in $PATH
19792do
19793 IFS=$as_save_IFS
19794 test -z "$as_dir" && as_dir=.
19795 for ac_exec_ext in '' $ac_executable_extensions; do
19796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19797 ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
19798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19799 break 2
19800 fi
19801done
19802done
19803IFS=$as_save_IFS
19804
19805 ;;
19806esac
19807fi
19808PROG_WHO=$ac_cv_path_PROG_WHO
19809if test -n "$PROG_WHO"; then
19810 { echo "$as_me:$LINENO: result: $PROG_WHO" >&5
19811echo "${ECHO_T}$PROG_WHO" >&6; }
19812else
19813 { echo "$as_me:$LINENO: result: no" >&5
19814echo "${ECHO_T}no" >&6; }
19815fi
19816
19817
19818 if test -z "$PROG_WHO" ; then
19819 PROG_WHO="undef"
19820 fi
19821
19822
19823
19824 # Extract the first word of "last", so it can be a program name with args.
19825set dummy last; ac_word=$2
19826{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19828if test "${ac_cv_path_PROG_LAST+set}" = set; then
19829 echo $ECHO_N "(cached) $ECHO_C" >&6
19830else
19831 case $PROG_LAST in
19832 [\\/]* | ?:[\\/]*)
19833 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
19834 ;;
19835 *)
19836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19837for as_dir in $PATH
19838do
19839 IFS=$as_save_IFS
19840 test -z "$as_dir" && as_dir=.
19841 for ac_exec_ext in '' $ac_executable_extensions; do
19842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19843 ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
19844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19845 break 2
19846 fi
19847done
19848done
19849IFS=$as_save_IFS
19850
19851 ;;
19852esac
19853fi
19854PROG_LAST=$ac_cv_path_PROG_LAST
19855if test -n "$PROG_LAST"; then
19856 { echo "$as_me:$LINENO: result: $PROG_LAST" >&5
19857echo "${ECHO_T}$PROG_LAST" >&6; }
19858else
19859 { echo "$as_me:$LINENO: result: no" >&5
19860echo "${ECHO_T}no" >&6; }
19861fi
19862
19863
19864 if test -z "$PROG_LAST" ; then
19865 PROG_LAST="undef"
19866 fi
19867
19868
19869
19870 # Extract the first word of "lastlog", so it can be a program name with args.
19871set dummy lastlog; ac_word=$2
19872{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19874if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
19875 echo $ECHO_N "(cached) $ECHO_C" >&6
19876else
19877 case $PROG_LASTLOG in
19878 [\\/]* | ?:[\\/]*)
19879 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
19880 ;;
19881 *)
19882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19883for as_dir in $PATH
19884do
19885 IFS=$as_save_IFS
19886 test -z "$as_dir" && as_dir=.
19887 for ac_exec_ext in '' $ac_executable_extensions; do
19888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19889 ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
19890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19891 break 2
19892 fi
19893done
19894done
19895IFS=$as_save_IFS
19896
19897 ;;
19898esac
19899fi
19900PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
19901if test -n "$PROG_LASTLOG"; then
19902 { echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5
19903echo "${ECHO_T}$PROG_LASTLOG" >&6; }
19904else
19905 { echo "$as_me:$LINENO: result: no" >&5
19906echo "${ECHO_T}no" >&6; }
19907fi
19908
19909
19910 if test -z "$PROG_LASTLOG" ; then
19911 PROG_LASTLOG="undef"
19912 fi
19913
19914
19915
19916 # Extract the first word of "df", so it can be a program name with args.
19917set dummy df; ac_word=$2
19918{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19920if test "${ac_cv_path_PROG_DF+set}" = set; then
19921 echo $ECHO_N "(cached) $ECHO_C" >&6
19922else
19923 case $PROG_DF in
19924 [\\/]* | ?:[\\/]*)
19925 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
19926 ;;
19927 *)
19928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19929for as_dir in $PATH
19930do
19931 IFS=$as_save_IFS
19932 test -z "$as_dir" && as_dir=.
19933 for ac_exec_ext in '' $ac_executable_extensions; do
19934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19935 ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
19936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19937 break 2
19938 fi
19939done
19940done
19941IFS=$as_save_IFS
19942
19943 ;;
19944esac
19945fi
19946PROG_DF=$ac_cv_path_PROG_DF
19947if test -n "$PROG_DF"; then
19948 { echo "$as_me:$LINENO: result: $PROG_DF" >&5
19949echo "${ECHO_T}$PROG_DF" >&6; }
19950else
19951 { echo "$as_me:$LINENO: result: no" >&5
19952echo "${ECHO_T}no" >&6; }
19953fi
19954
19955
19956 if test -z "$PROG_DF" ; then
19957 PROG_DF="undef"
19958 fi
19959
19960
19961
19962 # Extract the first word of "vmstat", so it can be a program name with args.
19963set dummy vmstat; ac_word=$2
19964{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19966if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
19967 echo $ECHO_N "(cached) $ECHO_C" >&6
19968else
19969 case $PROG_VMSTAT in
19970 [\\/]* | ?:[\\/]*)
19971 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
19972 ;;
19973 *)
19974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19975for as_dir in $PATH
19976do
19977 IFS=$as_save_IFS
19978 test -z "$as_dir" && as_dir=.
19979 for ac_exec_ext in '' $ac_executable_extensions; do
19980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19981 ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
19982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19983 break 2
19984 fi
19985done
19986done
19987IFS=$as_save_IFS
19988
19989 ;;
19990esac
19991fi
19992PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
19993if test -n "$PROG_VMSTAT"; then
19994 { echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5
19995echo "${ECHO_T}$PROG_VMSTAT" >&6; }
19996else
19997 { echo "$as_me:$LINENO: result: no" >&5
19998echo "${ECHO_T}no" >&6; }
19999fi
20000
20001
20002 if test -z "$PROG_VMSTAT" ; then
20003 PROG_VMSTAT="undef"
20004 fi
20005
20006
20007
20008 # Extract the first word of "uptime", so it can be a program name with args.
20009set dummy uptime; ac_word=$2
20010{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20012if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
20013 echo $ECHO_N "(cached) $ECHO_C" >&6
20014else
20015 case $PROG_UPTIME in
20016 [\\/]* | ?:[\\/]*)
20017 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
20018 ;;
20019 *)
20020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20021for as_dir in $PATH
20022do
20023 IFS=$as_save_IFS
20024 test -z "$as_dir" && as_dir=.
20025 for ac_exec_ext in '' $ac_executable_extensions; do
20026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20027 ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
20028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20029 break 2
20030 fi
20031done
20032done
20033IFS=$as_save_IFS
20034
20035 ;;
20036esac
20037fi
20038PROG_UPTIME=$ac_cv_path_PROG_UPTIME
20039if test -n "$PROG_UPTIME"; then
20040 { echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5
20041echo "${ECHO_T}$PROG_UPTIME" >&6; }
20042else
20043 { echo "$as_me:$LINENO: result: no" >&5
20044echo "${ECHO_T}no" >&6; }
20045fi
20046
20047
20048 if test -z "$PROG_UPTIME" ; then
20049 PROG_UPTIME="undef"
20050 fi
20051
20052
20053
20054 # Extract the first word of "ipcs", so it can be a program name with args.
20055set dummy ipcs; ac_word=$2
20056{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20058if test "${ac_cv_path_PROG_IPCS+set}" = set; then
20059 echo $ECHO_N "(cached) $ECHO_C" >&6
20060else
20061 case $PROG_IPCS in
20062 [\\/]* | ?:[\\/]*)
20063 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
20064 ;;
20065 *)
20066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20067for as_dir in $PATH
20068do
20069 IFS=$as_save_IFS
20070 test -z "$as_dir" && as_dir=.
20071 for ac_exec_ext in '' $ac_executable_extensions; do
20072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20073 ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
20074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20075 break 2
20076 fi
20077done
20078done
20079IFS=$as_save_IFS
20080
20081 ;;
20082esac
20083fi
20084PROG_IPCS=$ac_cv_path_PROG_IPCS
20085if test -n "$PROG_IPCS"; then
20086 { echo "$as_me:$LINENO: result: $PROG_IPCS" >&5
20087echo "${ECHO_T}$PROG_IPCS" >&6; }
20088else
20089 { echo "$as_me:$LINENO: result: no" >&5
20090echo "${ECHO_T}no" >&6; }
20091fi
20092
20093
20094 if test -z "$PROG_IPCS" ; then
20095 PROG_IPCS="undef"
20096 fi
20097
20098
20099
20100 # Extract the first word of "tail", so it can be a program name with args.
20101set dummy tail; ac_word=$2
20102{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20104if test "${ac_cv_path_PROG_TAIL+set}" = set; then
20105 echo $ECHO_N "(cached) $ECHO_C" >&6
20106else
20107 case $PROG_TAIL in
20108 [\\/]* | ?:[\\/]*)
20109 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
20110 ;;
20111 *)
20112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20113for as_dir in $PATH
20114do
20115 IFS=$as_save_IFS
20116 test -z "$as_dir" && as_dir=.
20117 for ac_exec_ext in '' $ac_executable_extensions; do
20118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20119 ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
20120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20121 break 2
20122 fi
20123done
20124done
20125IFS=$as_save_IFS
20126
20127 ;;
20128esac
20129fi
20130PROG_TAIL=$ac_cv_path_PROG_TAIL
20131if test -n "$PROG_TAIL"; then
20132 { echo "$as_me:$LINENO: result: $PROG_TAIL" >&5
20133echo "${ECHO_T}$PROG_TAIL" >&6; }
20134else
20135 { echo "$as_me:$LINENO: result: no" >&5
20136echo "${ECHO_T}no" >&6; }
20137fi
20138
20139
20140 if test -z "$PROG_TAIL" ; then
20141 PROG_TAIL="undef"
20142 fi
20143
20144
20145# restore PATH
20146PATH=$OPATH
20147
20148# Where does ssh-rand-helper get its randomness from?
20149INSTALL_SSH_PRNG_CMDS=""
20150if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
20151 if test ! -z "$PRNGD_PORT" ; then
20152 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
20153 elif test ! -z "$PRNGD_SOCKET" ; then
20154 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
20155 else
20156 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
20157 RAND_HELPER_CMDHASH=yes
20158 INSTALL_SSH_PRNG_CMDS="yes"
20159 fi
20160fi
20161
20162
20163
20164# Cheap hack to ensure NEWS-OS libraries are arranged right.
20165if test ! -z "$SONY" ; then
20166 LIBS="$LIBS -liberty";
20167fi
20168
20169# Check for long long datatypes
20170{ echo "$as_me:$LINENO: checking for long long" >&5
20171echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
20172if test "${ac_cv_type_long_long+set}" = set; then
20173 echo $ECHO_N "(cached) $ECHO_C" >&6
20174else
20175 cat >conftest.$ac_ext <<_ACEOF
20176/* confdefs.h. */
20177_ACEOF
20178cat confdefs.h >>conftest.$ac_ext
20179cat >>conftest.$ac_ext <<_ACEOF
20180/* end confdefs.h. */
20181$ac_includes_default
20182typedef long long ac__type_new_;
20183int
20184main ()
20185{
20186if ((ac__type_new_ *) 0)
20187 return 0;
20188if (sizeof (ac__type_new_))
20189 return 0;
20190 ;
20191 return 0;
20192}
20193_ACEOF
20194rm -f conftest.$ac_objext
20195if { (ac_try="$ac_compile"
20196case "(($ac_try" in
20197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20198 *) ac_try_echo=$ac_try;;
20199esac
20200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20201 (eval "$ac_compile") 2>conftest.er1
20202 ac_status=$?
20203 grep -v '^ *+' conftest.er1 >conftest.err
20204 rm -f conftest.er1
20205 cat conftest.err >&5
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); } && {
20208 test -z "$ac_c_werror_flag" ||
20209 test ! -s conftest.err
20210 } && test -s conftest.$ac_objext; then
20211 ac_cv_type_long_long=yes
20212else
20213 echo "$as_me: failed program was:" >&5
20214sed 's/^/| /' conftest.$ac_ext >&5
20215
20216 ac_cv_type_long_long=no
20217fi
20218
20219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20220fi
20221{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20222echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
20223if test $ac_cv_type_long_long = yes; then
20224
20225cat >>confdefs.h <<_ACEOF
20226#define HAVE_LONG_LONG 1
20227_ACEOF
20228
20229
20230fi
20231{ echo "$as_me:$LINENO: checking for unsigned long long" >&5
20232echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20233if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20234 echo $ECHO_N "(cached) $ECHO_C" >&6
20235else
20236 cat >conftest.$ac_ext <<_ACEOF
20237/* confdefs.h. */
20238_ACEOF
20239cat confdefs.h >>conftest.$ac_ext
20240cat >>conftest.$ac_ext <<_ACEOF
20241/* end confdefs.h. */
20242$ac_includes_default
20243typedef unsigned long long ac__type_new_;
20244int
20245main ()
20246{
20247if ((ac__type_new_ *) 0)
20248 return 0;
20249if (sizeof (ac__type_new_))
20250 return 0;
20251 ;
20252 return 0;
20253}
20254_ACEOF
20255rm -f conftest.$ac_objext
20256if { (ac_try="$ac_compile"
20257case "(($ac_try" in
20258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20259 *) ac_try_echo=$ac_try;;
20260esac
20261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20262 (eval "$ac_compile") 2>conftest.er1
20263 ac_status=$?
20264 grep -v '^ *+' conftest.er1 >conftest.err
20265 rm -f conftest.er1
20266 cat conftest.err >&5
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 (exit $ac_status); } && {
20269 test -z "$ac_c_werror_flag" ||
20270 test ! -s conftest.err
20271 } && test -s conftest.$ac_objext; then
20272 ac_cv_type_unsigned_long_long=yes
20273else
20274 echo "$as_me: failed program was:" >&5
20275sed 's/^/| /' conftest.$ac_ext >&5
20276
20277 ac_cv_type_unsigned_long_long=no
20278fi
20279
20280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20281fi
20282{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20283echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20284if test $ac_cv_type_unsigned_long_long = yes; then
20285
20286cat >>confdefs.h <<_ACEOF
20287#define HAVE_UNSIGNED_LONG_LONG 1
20288_ACEOF
20289
20290
20291fi
20292{ echo "$as_me:$LINENO: checking for long double" >&5
20293echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
20294if test "${ac_cv_type_long_double+set}" = set; then
20295 echo $ECHO_N "(cached) $ECHO_C" >&6
20296else
20297 cat >conftest.$ac_ext <<_ACEOF
20298/* confdefs.h. */
20299_ACEOF
20300cat confdefs.h >>conftest.$ac_ext
20301cat >>conftest.$ac_ext <<_ACEOF
20302/* end confdefs.h. */
20303$ac_includes_default
20304typedef long double ac__type_new_;
20305int
20306main ()
20307{
20308if ((ac__type_new_ *) 0)
20309 return 0;
20310if (sizeof (ac__type_new_))
20311 return 0;
20312 ;
20313 return 0;
20314}
20315_ACEOF
20316rm -f conftest.$ac_objext
20317if { (ac_try="$ac_compile"
20318case "(($ac_try" in
20319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20320 *) ac_try_echo=$ac_try;;
20321esac
20322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20323 (eval "$ac_compile") 2>conftest.er1
20324 ac_status=$?
20325 grep -v '^ *+' conftest.er1 >conftest.err
20326 rm -f conftest.er1
20327 cat conftest.err >&5
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); } && {
20330 test -z "$ac_c_werror_flag" ||
20331 test ! -s conftest.err
20332 } && test -s conftest.$ac_objext; then
20333 ac_cv_type_long_double=yes
20334else
20335 echo "$as_me: failed program was:" >&5
20336sed 's/^/| /' conftest.$ac_ext >&5
20337
20338 ac_cv_type_long_double=no
20339fi
20340
20341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20342fi
20343{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
20344echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
20345if test $ac_cv_type_long_double = yes; then
20346
20347cat >>confdefs.h <<_ACEOF
20348#define HAVE_LONG_DOUBLE 1
20349_ACEOF
20350
20351
20352fi
20353
20354
20355# Check datatype sizes
20356{ echo "$as_me:$LINENO: checking for char" >&5
20357echo $ECHO_N "checking for char... $ECHO_C" >&6; }
20358if test "${ac_cv_type_char+set}" = set; then
20359 echo $ECHO_N "(cached) $ECHO_C" >&6
20360else
20361 cat >conftest.$ac_ext <<_ACEOF
20362/* confdefs.h. */
20363_ACEOF
20364cat confdefs.h >>conftest.$ac_ext
20365cat >>conftest.$ac_ext <<_ACEOF
20366/* end confdefs.h. */
20367$ac_includes_default
20368typedef char ac__type_new_;
20369int
20370main ()
20371{
20372if ((ac__type_new_ *) 0)
20373 return 0;
20374if (sizeof (ac__type_new_))
20375 return 0;
20376 ;
20377 return 0;
20378}
20379_ACEOF
20380rm -f conftest.$ac_objext
20381if { (ac_try="$ac_compile"
20382case "(($ac_try" in
20383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20384 *) ac_try_echo=$ac_try;;
20385esac
20386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20387 (eval "$ac_compile") 2>conftest.er1
20388 ac_status=$?
20389 grep -v '^ *+' conftest.er1 >conftest.err
20390 rm -f conftest.er1
20391 cat conftest.err >&5
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); } && {
20394 test -z "$ac_c_werror_flag" ||
20395 test ! -s conftest.err
20396 } && test -s conftest.$ac_objext; then
20397 ac_cv_type_char=yes
20398else
20399 echo "$as_me: failed program was:" >&5
20400sed 's/^/| /' conftest.$ac_ext >&5
20401
20402 ac_cv_type_char=no
20403fi
20404
20405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20406fi
20407{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
20408echo "${ECHO_T}$ac_cv_type_char" >&6; }
20409
20410# The cast to long int works around a bug in the HP C Compiler
20411# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20412# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20413# This bug is HP SR number 8606223364.
20414{ echo "$as_me:$LINENO: checking size of char" >&5
20415echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
20416if test "${ac_cv_sizeof_char+set}" = set; then
20417 echo $ECHO_N "(cached) $ECHO_C" >&6
20418else
20419 if test "$cross_compiling" = yes; then
20420 # Depending upon the size, compute the lo and hi bounds.
20421cat >conftest.$ac_ext <<_ACEOF
20422/* confdefs.h. */
20423_ACEOF
20424cat confdefs.h >>conftest.$ac_ext
20425cat >>conftest.$ac_ext <<_ACEOF
20426/* end confdefs.h. */
20427$ac_includes_default
20428 typedef char ac__type_sizeof_;
20429int
20430main ()
20431{
20432static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20433test_array [0] = 0
20434
20435 ;
20436 return 0;
20437}
20438_ACEOF
20439rm -f conftest.$ac_objext
20440if { (ac_try="$ac_compile"
20441case "(($ac_try" in
20442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20443 *) ac_try_echo=$ac_try;;
20444esac
20445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20446 (eval "$ac_compile") 2>conftest.er1
20447 ac_status=$?
20448 grep -v '^ *+' conftest.er1 >conftest.err
20449 rm -f conftest.er1
20450 cat conftest.err >&5
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); } && {
20453 test -z "$ac_c_werror_flag" ||
20454 test ! -s conftest.err
20455 } && test -s conftest.$ac_objext; then
20456 ac_lo=0 ac_mid=0
20457 while :; do
20458 cat >conftest.$ac_ext <<_ACEOF
20459/* confdefs.h. */
20460_ACEOF
20461cat confdefs.h >>conftest.$ac_ext
20462cat >>conftest.$ac_ext <<_ACEOF
20463/* end confdefs.h. */
20464$ac_includes_default
20465 typedef char ac__type_sizeof_;
20466int
20467main ()
20468{
20469static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20470test_array [0] = 0
20471
20472 ;
20473 return 0;
20474}
20475_ACEOF
20476rm -f conftest.$ac_objext
20477if { (ac_try="$ac_compile"
20478case "(($ac_try" in
20479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20480 *) ac_try_echo=$ac_try;;
20481esac
20482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20483 (eval "$ac_compile") 2>conftest.er1
20484 ac_status=$?
20485 grep -v '^ *+' conftest.er1 >conftest.err
20486 rm -f conftest.er1
20487 cat conftest.err >&5
20488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489 (exit $ac_status); } && {
20490 test -z "$ac_c_werror_flag" ||
20491 test ! -s conftest.err
20492 } && test -s conftest.$ac_objext; then
20493 ac_hi=$ac_mid; break
20494else
20495 echo "$as_me: failed program was:" >&5
20496sed 's/^/| /' conftest.$ac_ext >&5
20497
20498 ac_lo=`expr $ac_mid + 1`
20499 if test $ac_lo -le $ac_mid; then
20500 ac_lo= ac_hi=
20501 break
20502 fi
20503 ac_mid=`expr 2 '*' $ac_mid + 1`
20504fi
20505
20506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20507 done
20508else
20509 echo "$as_me: failed program was:" >&5
20510sed 's/^/| /' conftest.$ac_ext >&5
20511
20512 cat >conftest.$ac_ext <<_ACEOF
20513/* confdefs.h. */
20514_ACEOF
20515cat confdefs.h >>conftest.$ac_ext
20516cat >>conftest.$ac_ext <<_ACEOF
20517/* end confdefs.h. */
20518$ac_includes_default
20519 typedef char ac__type_sizeof_;
20520int
20521main ()
20522{
20523static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20524test_array [0] = 0
20525
20526 ;
20527 return 0;
20528}
20529_ACEOF
20530rm -f conftest.$ac_objext
20531if { (ac_try="$ac_compile"
20532case "(($ac_try" in
20533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20534 *) ac_try_echo=$ac_try;;
20535esac
20536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20537 (eval "$ac_compile") 2>conftest.er1
20538 ac_status=$?
20539 grep -v '^ *+' conftest.er1 >conftest.err
20540 rm -f conftest.er1
20541 cat conftest.err >&5
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); } && {
20544 test -z "$ac_c_werror_flag" ||
20545 test ! -s conftest.err
20546 } && test -s conftest.$ac_objext; then
20547 ac_hi=-1 ac_mid=-1
20548 while :; do
20549 cat >conftest.$ac_ext <<_ACEOF
20550/* confdefs.h. */
20551_ACEOF
20552cat confdefs.h >>conftest.$ac_ext
20553cat >>conftest.$ac_ext <<_ACEOF
20554/* end confdefs.h. */
20555$ac_includes_default
20556 typedef char ac__type_sizeof_;
20557int
20558main ()
20559{
20560static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20561test_array [0] = 0
20562
20563 ;
20564 return 0;
20565}
20566_ACEOF
20567rm -f conftest.$ac_objext
20568if { (ac_try="$ac_compile"
20569case "(($ac_try" in
20570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571 *) ac_try_echo=$ac_try;;
20572esac
20573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20574 (eval "$ac_compile") 2>conftest.er1
20575 ac_status=$?
20576 grep -v '^ *+' conftest.er1 >conftest.err
20577 rm -f conftest.er1
20578 cat conftest.err >&5
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); } && {
20581 test -z "$ac_c_werror_flag" ||
20582 test ! -s conftest.err
20583 } && test -s conftest.$ac_objext; then
20584 ac_lo=$ac_mid; break
20585else
20586 echo "$as_me: failed program was:" >&5
20587sed 's/^/| /' conftest.$ac_ext >&5
20588
20589 ac_hi=`expr '(' $ac_mid ')' - 1`
20590 if test $ac_mid -le $ac_hi; then
20591 ac_lo= ac_hi=
20592 break
20593 fi
20594 ac_mid=`expr 2 '*' $ac_mid`
20595fi
20596
20597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20598 done
20599else
20600 echo "$as_me: failed program was:" >&5
20601sed 's/^/| /' conftest.$ac_ext >&5
20602
20603 ac_lo= ac_hi=
20604fi
20605
20606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20607fi
20608
20609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20610# Binary search between lo and hi bounds.
20611while test "x$ac_lo" != "x$ac_hi"; do
20612 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20613 cat >conftest.$ac_ext <<_ACEOF
20614/* confdefs.h. */
20615_ACEOF
20616cat confdefs.h >>conftest.$ac_ext
20617cat >>conftest.$ac_ext <<_ACEOF
20618/* end confdefs.h. */
20619$ac_includes_default
20620 typedef char ac__type_sizeof_;
20621int
20622main ()
20623{
20624static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20625test_array [0] = 0
20626
20627 ;
20628 return 0;
20629}
20630_ACEOF
20631rm -f conftest.$ac_objext
20632if { (ac_try="$ac_compile"
20633case "(($ac_try" in
20634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20635 *) ac_try_echo=$ac_try;;
20636esac
20637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20638 (eval "$ac_compile") 2>conftest.er1
20639 ac_status=$?
20640 grep -v '^ *+' conftest.er1 >conftest.err
20641 rm -f conftest.er1
20642 cat conftest.err >&5
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); } && {
20645 test -z "$ac_c_werror_flag" ||
20646 test ! -s conftest.err
20647 } && test -s conftest.$ac_objext; then
20648 ac_hi=$ac_mid
20649else
20650 echo "$as_me: failed program was:" >&5
20651sed 's/^/| /' conftest.$ac_ext >&5
20652
20653 ac_lo=`expr '(' $ac_mid ')' + 1`
20654fi
20655
20656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20657done
20658case $ac_lo in
20659?*) ac_cv_sizeof_char=$ac_lo;;
20660'') if test "$ac_cv_type_char" = yes; then
20661 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
20662See \`config.log' for more details." >&5
20663echo "$as_me: error: cannot compute sizeof (char)
20664See \`config.log' for more details." >&2;}
20665 { (exit 77); exit 77; }; }
20666 else
20667 ac_cv_sizeof_char=0
20668 fi ;;
20669esac
20670else
20671 cat >conftest.$ac_ext <<_ACEOF
20672/* confdefs.h. */
20673_ACEOF
20674cat confdefs.h >>conftest.$ac_ext
20675cat >>conftest.$ac_ext <<_ACEOF
20676/* end confdefs.h. */
20677$ac_includes_default
20678 typedef char ac__type_sizeof_;
20679static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20680static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20681#include <stdio.h>
20682#include <stdlib.h>
20683int
20684main ()
20685{
20686
20687 FILE *f = fopen ("conftest.val", "w");
20688 if (! f)
20689 return 1;
20690 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20691 {
20692 long int i = longval ();
20693 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20694 return 1;
20695 fprintf (f, "%ld\n", i);
20696 }
20697 else
20698 {
20699 unsigned long int i = ulongval ();
20700 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20701 return 1;
20702 fprintf (f, "%lu\n", i);
20703 }
20704 return ferror (f) || fclose (f) != 0;
20705
20706 ;
20707 return 0;
20708}
20709_ACEOF
20710rm -f conftest$ac_exeext
20711if { (ac_try="$ac_link"
20712case "(($ac_try" in
20713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20714 *) ac_try_echo=$ac_try;;
20715esac
20716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20717 (eval "$ac_link") 2>&5
20718 ac_status=$?
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20721 { (case "(($ac_try" in
20722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20723 *) ac_try_echo=$ac_try;;
20724esac
20725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20726 (eval "$ac_try") 2>&5
20727 ac_status=$?
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); }; }; then
20730 ac_cv_sizeof_char=`cat conftest.val`
20731else
20732 echo "$as_me: program exited with status $ac_status" >&5
20733echo "$as_me: failed program was:" >&5
20734sed 's/^/| /' conftest.$ac_ext >&5
20735
20736( exit $ac_status )
20737if test "$ac_cv_type_char" = yes; then
20738 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
20739See \`config.log' for more details." >&5
20740echo "$as_me: error: cannot compute sizeof (char)
20741See \`config.log' for more details." >&2;}
20742 { (exit 77); exit 77; }; }
20743 else
20744 ac_cv_sizeof_char=0
20745 fi
20746fi
20747rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20748fi
20749rm -f conftest.val
20750fi
20751{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
20752echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
20753
20754
20755
20756cat >>confdefs.h <<_ACEOF
20757#define SIZEOF_CHAR $ac_cv_sizeof_char
20758_ACEOF
20759
20760
20761{ echo "$as_me:$LINENO: checking for short int" >&5
20762echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
20763if test "${ac_cv_type_short_int+set}" = set; then
20764 echo $ECHO_N "(cached) $ECHO_C" >&6
20765else
20766 cat >conftest.$ac_ext <<_ACEOF
20767/* confdefs.h. */
20768_ACEOF
20769cat confdefs.h >>conftest.$ac_ext
20770cat >>conftest.$ac_ext <<_ACEOF
20771/* end confdefs.h. */
20772$ac_includes_default
20773typedef short int ac__type_new_;
20774int
20775main ()
20776{
20777if ((ac__type_new_ *) 0)
20778 return 0;
20779if (sizeof (ac__type_new_))
20780 return 0;
20781 ;
20782 return 0;
20783}
20784_ACEOF
20785rm -f conftest.$ac_objext
20786if { (ac_try="$ac_compile"
20787case "(($ac_try" in
20788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20789 *) ac_try_echo=$ac_try;;
20790esac
20791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20792 (eval "$ac_compile") 2>conftest.er1
20793 ac_status=$?
20794 grep -v '^ *+' conftest.er1 >conftest.err
20795 rm -f conftest.er1
20796 cat conftest.err >&5
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); } && {
20799 test -z "$ac_c_werror_flag" ||
20800 test ! -s conftest.err
20801 } && test -s conftest.$ac_objext; then
20802 ac_cv_type_short_int=yes
20803else
20804 echo "$as_me: failed program was:" >&5
20805sed 's/^/| /' conftest.$ac_ext >&5
20806
20807 ac_cv_type_short_int=no
20808fi
20809
20810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20811fi
20812{ echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
20813echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
20814
20815# The cast to long int works around a bug in the HP C Compiler
20816# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20817# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20818# This bug is HP SR number 8606223364.
20819{ echo "$as_me:$LINENO: checking size of short int" >&5
20820echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
20821if test "${ac_cv_sizeof_short_int+set}" = set; then
20822 echo $ECHO_N "(cached) $ECHO_C" >&6
20823else
20824 if test "$cross_compiling" = yes; then
20825 # Depending upon the size, compute the lo and hi bounds.
20826cat >conftest.$ac_ext <<_ACEOF
20827/* confdefs.h. */
20828_ACEOF
20829cat confdefs.h >>conftest.$ac_ext
20830cat >>conftest.$ac_ext <<_ACEOF
20831/* end confdefs.h. */
20832$ac_includes_default
20833 typedef short int ac__type_sizeof_;
20834int
20835main ()
20836{
20837static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20838test_array [0] = 0
20839
20840 ;
20841 return 0;
20842}
20843_ACEOF
20844rm -f conftest.$ac_objext
20845if { (ac_try="$ac_compile"
20846case "(($ac_try" in
20847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20848 *) ac_try_echo=$ac_try;;
20849esac
20850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20851 (eval "$ac_compile") 2>conftest.er1
20852 ac_status=$?
20853 grep -v '^ *+' conftest.er1 >conftest.err
20854 rm -f conftest.er1
20855 cat conftest.err >&5
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); } && {
20858 test -z "$ac_c_werror_flag" ||
20859 test ! -s conftest.err
20860 } && test -s conftest.$ac_objext; then
20861 ac_lo=0 ac_mid=0
20862 while :; do
20863 cat >conftest.$ac_ext <<_ACEOF
20864/* confdefs.h. */
20865_ACEOF
20866cat confdefs.h >>conftest.$ac_ext
20867cat >>conftest.$ac_ext <<_ACEOF
20868/* end confdefs.h. */
20869$ac_includes_default
20870 typedef short int ac__type_sizeof_;
20871int
20872main ()
20873{
20874static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20875test_array [0] = 0
20876
20877 ;
20878 return 0;
20879}
20880_ACEOF
20881rm -f conftest.$ac_objext
20882if { (ac_try="$ac_compile"
20883case "(($ac_try" in
20884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20885 *) ac_try_echo=$ac_try;;
20886esac
20887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20888 (eval "$ac_compile") 2>conftest.er1
20889 ac_status=$?
20890 grep -v '^ *+' conftest.er1 >conftest.err
20891 rm -f conftest.er1
20892 cat conftest.err >&5
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); } && {
20895 test -z "$ac_c_werror_flag" ||
20896 test ! -s conftest.err
20897 } && test -s conftest.$ac_objext; then
20898 ac_hi=$ac_mid; break
20899else
20900 echo "$as_me: failed program was:" >&5
20901sed 's/^/| /' conftest.$ac_ext >&5
20902
20903 ac_lo=`expr $ac_mid + 1`
20904 if test $ac_lo -le $ac_mid; then
20905 ac_lo= ac_hi=
20906 break
20907 fi
20908 ac_mid=`expr 2 '*' $ac_mid + 1`
20909fi
20910
20911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20912 done
20913else
20914 echo "$as_me: failed program was:" >&5
20915sed 's/^/| /' conftest.$ac_ext >&5
20916
20917 cat >conftest.$ac_ext <<_ACEOF
20918/* confdefs.h. */
20919_ACEOF
20920cat confdefs.h >>conftest.$ac_ext
20921cat >>conftest.$ac_ext <<_ACEOF
20922/* end confdefs.h. */
20923$ac_includes_default
20924 typedef short int ac__type_sizeof_;
20925int
20926main ()
20927{
20928static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20929test_array [0] = 0
20930
20931 ;
20932 return 0;
20933}
20934_ACEOF
20935rm -f conftest.$ac_objext
20936if { (ac_try="$ac_compile"
20937case "(($ac_try" in
20938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20939 *) ac_try_echo=$ac_try;;
20940esac
20941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20942 (eval "$ac_compile") 2>conftest.er1
20943 ac_status=$?
20944 grep -v '^ *+' conftest.er1 >conftest.err
20945 rm -f conftest.er1
20946 cat conftest.err >&5
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); } && {
20949 test -z "$ac_c_werror_flag" ||
20950 test ! -s conftest.err
20951 } && test -s conftest.$ac_objext; then
20952 ac_hi=-1 ac_mid=-1
20953 while :; do
20954 cat >conftest.$ac_ext <<_ACEOF
20955/* confdefs.h. */
20956_ACEOF
20957cat confdefs.h >>conftest.$ac_ext
20958cat >>conftest.$ac_ext <<_ACEOF
20959/* end confdefs.h. */
20960$ac_includes_default
20961 typedef short int ac__type_sizeof_;
20962int
20963main ()
20964{
20965static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20966test_array [0] = 0
20967
20968 ;
20969 return 0;
20970}
20971_ACEOF
20972rm -f conftest.$ac_objext
20973if { (ac_try="$ac_compile"
20974case "(($ac_try" in
20975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20976 *) ac_try_echo=$ac_try;;
20977esac
20978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20979 (eval "$ac_compile") 2>conftest.er1
20980 ac_status=$?
20981 grep -v '^ *+' conftest.er1 >conftest.err
20982 rm -f conftest.er1
20983 cat conftest.err >&5
20984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985 (exit $ac_status); } && {
20986 test -z "$ac_c_werror_flag" ||
20987 test ! -s conftest.err
20988 } && test -s conftest.$ac_objext; then
20989 ac_lo=$ac_mid; break
20990else
20991 echo "$as_me: failed program was:" >&5
20992sed 's/^/| /' conftest.$ac_ext >&5
20993
20994 ac_hi=`expr '(' $ac_mid ')' - 1`
20995 if test $ac_mid -le $ac_hi; then
20996 ac_lo= ac_hi=
20997 break
20998 fi
20999 ac_mid=`expr 2 '*' $ac_mid`
21000fi
21001
21002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21003 done
21004else
21005 echo "$as_me: failed program was:" >&5
21006sed 's/^/| /' conftest.$ac_ext >&5
21007
21008 ac_lo= ac_hi=
21009fi
21010
21011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21012fi
21013
21014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21015# Binary search between lo and hi bounds.
21016while test "x$ac_lo" != "x$ac_hi"; do
21017 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21018 cat >conftest.$ac_ext <<_ACEOF
21019/* confdefs.h. */
21020_ACEOF
21021cat confdefs.h >>conftest.$ac_ext
21022cat >>conftest.$ac_ext <<_ACEOF
21023/* end confdefs.h. */
21024$ac_includes_default
21025 typedef short int ac__type_sizeof_;
21026int
21027main ()
21028{
21029static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21030test_array [0] = 0
21031
21032 ;
21033 return 0;
21034}
21035_ACEOF
21036rm -f conftest.$ac_objext
21037if { (ac_try="$ac_compile"
21038case "(($ac_try" in
21039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040 *) ac_try_echo=$ac_try;;
21041esac
21042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21043 (eval "$ac_compile") 2>conftest.er1
21044 ac_status=$?
21045 grep -v '^ *+' conftest.er1 >conftest.err
21046 rm -f conftest.er1
21047 cat conftest.err >&5
21048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049 (exit $ac_status); } && {
21050 test -z "$ac_c_werror_flag" ||
21051 test ! -s conftest.err
21052 } && test -s conftest.$ac_objext; then
21053 ac_hi=$ac_mid
21054else
21055 echo "$as_me: failed program was:" >&5
21056sed 's/^/| /' conftest.$ac_ext >&5
21057
21058 ac_lo=`expr '(' $ac_mid ')' + 1`
21059fi
21060
21061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21062done
21063case $ac_lo in
21064?*) ac_cv_sizeof_short_int=$ac_lo;;
21065'') if test "$ac_cv_type_short_int" = yes; then
21066 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
21067See \`config.log' for more details." >&5
21068echo "$as_me: error: cannot compute sizeof (short int)
21069See \`config.log' for more details." >&2;}
21070 { (exit 77); exit 77; }; }
21071 else
21072 ac_cv_sizeof_short_int=0
21073 fi ;;
21074esac
21075else
21076 cat >conftest.$ac_ext <<_ACEOF
21077/* confdefs.h. */
21078_ACEOF
21079cat confdefs.h >>conftest.$ac_ext
21080cat >>conftest.$ac_ext <<_ACEOF
21081/* end confdefs.h. */
21082$ac_includes_default
21083 typedef short int ac__type_sizeof_;
21084static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21085static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21086#include <stdio.h>
21087#include <stdlib.h>
21088int
21089main ()
21090{
21091
21092 FILE *f = fopen ("conftest.val", "w");
21093 if (! f)
21094 return 1;
21095 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21096 {
21097 long int i = longval ();
21098 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21099 return 1;
21100 fprintf (f, "%ld\n", i);
21101 }
21102 else
21103 {
21104 unsigned long int i = ulongval ();
21105 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21106 return 1;
21107 fprintf (f, "%lu\n", i);
21108 }
21109 return ferror (f) || fclose (f) != 0;
21110
21111 ;
21112 return 0;
21113}
21114_ACEOF
21115rm -f conftest$ac_exeext
21116if { (ac_try="$ac_link"
21117case "(($ac_try" in
21118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21119 *) ac_try_echo=$ac_try;;
21120esac
21121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21122 (eval "$ac_link") 2>&5
21123 ac_status=$?
21124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21126 { (case "(($ac_try" in
21127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128 *) ac_try_echo=$ac_try;;
21129esac
21130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21131 (eval "$ac_try") 2>&5
21132 ac_status=$?
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); }; }; then
21135 ac_cv_sizeof_short_int=`cat conftest.val`
21136else
21137 echo "$as_me: program exited with status $ac_status" >&5
21138echo "$as_me: failed program was:" >&5
21139sed 's/^/| /' conftest.$ac_ext >&5
21140
21141( exit $ac_status )
21142if test "$ac_cv_type_short_int" = yes; then
21143 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
21144See \`config.log' for more details." >&5
21145echo "$as_me: error: cannot compute sizeof (short int)
21146See \`config.log' for more details." >&2;}
21147 { (exit 77); exit 77; }; }
21148 else
21149 ac_cv_sizeof_short_int=0
21150 fi
21151fi
21152rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21153fi
21154rm -f conftest.val
21155fi
21156{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
21157echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
21158
21159
21160
21161cat >>confdefs.h <<_ACEOF
21162#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
21163_ACEOF
21164
21165
21166{ echo "$as_me:$LINENO: checking for int" >&5
21167echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21168if test "${ac_cv_type_int+set}" = set; then
21169 echo $ECHO_N "(cached) $ECHO_C" >&6
21170else
21171 cat >conftest.$ac_ext <<_ACEOF
21172/* confdefs.h. */
21173_ACEOF
21174cat confdefs.h >>conftest.$ac_ext
21175cat >>conftest.$ac_ext <<_ACEOF
21176/* end confdefs.h. */
21177$ac_includes_default
21178typedef int ac__type_new_;
21179int
21180main ()
21181{
21182if ((ac__type_new_ *) 0)
21183 return 0;
21184if (sizeof (ac__type_new_))
21185 return 0;
21186 ;
21187 return 0;
21188}
21189_ACEOF
21190rm -f conftest.$ac_objext
21191if { (ac_try="$ac_compile"
21192case "(($ac_try" in
21193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21194 *) ac_try_echo=$ac_try;;
21195esac
21196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21197 (eval "$ac_compile") 2>conftest.er1
21198 ac_status=$?
21199 grep -v '^ *+' conftest.er1 >conftest.err
21200 rm -f conftest.er1
21201 cat conftest.err >&5
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); } && {
21204 test -z "$ac_c_werror_flag" ||
21205 test ! -s conftest.err
21206 } && test -s conftest.$ac_objext; then
21207 ac_cv_type_int=yes
21208else
21209 echo "$as_me: failed program was:" >&5
21210sed 's/^/| /' conftest.$ac_ext >&5
21211
21212 ac_cv_type_int=no
21213fi
21214
21215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21216fi
21217{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21218echo "${ECHO_T}$ac_cv_type_int" >&6; }
21219
21220# The cast to long int works around a bug in the HP C Compiler
21221# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21222# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21223# This bug is HP SR number 8606223364.
21224{ echo "$as_me:$LINENO: checking size of int" >&5
21225echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
21226if test "${ac_cv_sizeof_int+set}" = set; then
21227 echo $ECHO_N "(cached) $ECHO_C" >&6
21228else
21229 if test "$cross_compiling" = yes; then
21230 # Depending upon the size, compute the lo and hi bounds.
21231cat >conftest.$ac_ext <<_ACEOF
21232/* confdefs.h. */
21233_ACEOF
21234cat confdefs.h >>conftest.$ac_ext
21235cat >>conftest.$ac_ext <<_ACEOF
21236/* end confdefs.h. */
21237$ac_includes_default
21238 typedef int ac__type_sizeof_;
21239int
21240main ()
21241{
21242static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21243test_array [0] = 0
21244
21245 ;
21246 return 0;
21247}
21248_ACEOF
21249rm -f conftest.$ac_objext
21250if { (ac_try="$ac_compile"
21251case "(($ac_try" in
21252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21253 *) ac_try_echo=$ac_try;;
21254esac
21255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21256 (eval "$ac_compile") 2>conftest.er1
21257 ac_status=$?
21258 grep -v '^ *+' conftest.er1 >conftest.err
21259 rm -f conftest.er1
21260 cat conftest.err >&5
21261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262 (exit $ac_status); } && {
21263 test -z "$ac_c_werror_flag" ||
21264 test ! -s conftest.err
21265 } && test -s conftest.$ac_objext; then
21266 ac_lo=0 ac_mid=0
21267 while :; do
21268 cat >conftest.$ac_ext <<_ACEOF
21269/* confdefs.h. */
21270_ACEOF
21271cat confdefs.h >>conftest.$ac_ext
21272cat >>conftest.$ac_ext <<_ACEOF
21273/* end confdefs.h. */
21274$ac_includes_default
21275 typedef int ac__type_sizeof_;
21276int
21277main ()
21278{
21279static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21280test_array [0] = 0
21281
21282 ;
21283 return 0;
21284}
21285_ACEOF
21286rm -f conftest.$ac_objext
21287if { (ac_try="$ac_compile"
21288case "(($ac_try" in
21289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21290 *) ac_try_echo=$ac_try;;
21291esac
21292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21293 (eval "$ac_compile") 2>conftest.er1
21294 ac_status=$?
21295 grep -v '^ *+' conftest.er1 >conftest.err
21296 rm -f conftest.er1
21297 cat conftest.err >&5
21298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299 (exit $ac_status); } && {
21300 test -z "$ac_c_werror_flag" ||
21301 test ! -s conftest.err
21302 } && test -s conftest.$ac_objext; then
21303 ac_hi=$ac_mid; break
21304else
21305 echo "$as_me: failed program was:" >&5
21306sed 's/^/| /' conftest.$ac_ext >&5
21307
21308 ac_lo=`expr $ac_mid + 1`
21309 if test $ac_lo -le $ac_mid; then
21310 ac_lo= ac_hi=
21311 break
21312 fi
21313 ac_mid=`expr 2 '*' $ac_mid + 1`
21314fi
21315
21316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21317 done
21318else
21319 echo "$as_me: failed program was:" >&5
21320sed 's/^/| /' conftest.$ac_ext >&5
21321
21322 cat >conftest.$ac_ext <<_ACEOF
21323/* confdefs.h. */
21324_ACEOF
21325cat confdefs.h >>conftest.$ac_ext
21326cat >>conftest.$ac_ext <<_ACEOF
21327/* end confdefs.h. */
21328$ac_includes_default
21329 typedef int ac__type_sizeof_;
21330int
21331main ()
21332{
21333static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21334test_array [0] = 0
21335
21336 ;
21337 return 0;
21338}
21339_ACEOF
21340rm -f conftest.$ac_objext
21341if { (ac_try="$ac_compile"
21342case "(($ac_try" in
21343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21344 *) ac_try_echo=$ac_try;;
21345esac
21346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21347 (eval "$ac_compile") 2>conftest.er1
21348 ac_status=$?
21349 grep -v '^ *+' conftest.er1 >conftest.err
21350 rm -f conftest.er1
21351 cat conftest.err >&5
21352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353 (exit $ac_status); } && {
21354 test -z "$ac_c_werror_flag" ||
21355 test ! -s conftest.err
21356 } && test -s conftest.$ac_objext; then
21357 ac_hi=-1 ac_mid=-1
21358 while :; do
21359 cat >conftest.$ac_ext <<_ACEOF
21360/* confdefs.h. */
21361_ACEOF
21362cat confdefs.h >>conftest.$ac_ext
21363cat >>conftest.$ac_ext <<_ACEOF
21364/* end confdefs.h. */
21365$ac_includes_default
21366 typedef int ac__type_sizeof_;
21367int
21368main ()
21369{
21370static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21371test_array [0] = 0
21372
21373 ;
21374 return 0;
21375}
21376_ACEOF
21377rm -f conftest.$ac_objext
21378if { (ac_try="$ac_compile"
21379case "(($ac_try" in
21380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21381 *) ac_try_echo=$ac_try;;
21382esac
21383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21384 (eval "$ac_compile") 2>conftest.er1
21385 ac_status=$?
21386 grep -v '^ *+' conftest.er1 >conftest.err
21387 rm -f conftest.er1
21388 cat conftest.err >&5
21389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390 (exit $ac_status); } && {
21391 test -z "$ac_c_werror_flag" ||
21392 test ! -s conftest.err
21393 } && test -s conftest.$ac_objext; then
21394 ac_lo=$ac_mid; break
21395else
21396 echo "$as_me: failed program was:" >&5
21397sed 's/^/| /' conftest.$ac_ext >&5
21398
21399 ac_hi=`expr '(' $ac_mid ')' - 1`
21400 if test $ac_mid -le $ac_hi; then
21401 ac_lo= ac_hi=
21402 break
21403 fi
21404 ac_mid=`expr 2 '*' $ac_mid`
21405fi
21406
21407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21408 done
21409else
21410 echo "$as_me: failed program was:" >&5
21411sed 's/^/| /' conftest.$ac_ext >&5
21412
21413 ac_lo= ac_hi=
21414fi
21415
21416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21417fi
21418
21419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21420# Binary search between lo and hi bounds.
21421while test "x$ac_lo" != "x$ac_hi"; do
21422 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21423 cat >conftest.$ac_ext <<_ACEOF
21424/* confdefs.h. */
21425_ACEOF
21426cat confdefs.h >>conftest.$ac_ext
21427cat >>conftest.$ac_ext <<_ACEOF
21428/* end confdefs.h. */
21429$ac_includes_default
21430 typedef int ac__type_sizeof_;
21431int
21432main ()
21433{
21434static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21435test_array [0] = 0
21436
21437 ;
21438 return 0;
21439}
21440_ACEOF
21441rm -f conftest.$ac_objext
21442if { (ac_try="$ac_compile"
21443case "(($ac_try" in
21444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21445 *) ac_try_echo=$ac_try;;
21446esac
21447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21448 (eval "$ac_compile") 2>conftest.er1
21449 ac_status=$?
21450 grep -v '^ *+' conftest.er1 >conftest.err
21451 rm -f conftest.er1
21452 cat conftest.err >&5
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); } && {
21455 test -z "$ac_c_werror_flag" ||
21456 test ! -s conftest.err
21457 } && test -s conftest.$ac_objext; then
21458 ac_hi=$ac_mid
21459else
21460 echo "$as_me: failed program was:" >&5
21461sed 's/^/| /' conftest.$ac_ext >&5
21462
21463 ac_lo=`expr '(' $ac_mid ')' + 1`
21464fi
21465
21466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21467done
21468case $ac_lo in
21469?*) ac_cv_sizeof_int=$ac_lo;;
21470'') if test "$ac_cv_type_int" = yes; then
21471 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21472See \`config.log' for more details." >&5
21473echo "$as_me: error: cannot compute sizeof (int)
21474See \`config.log' for more details." >&2;}
21475 { (exit 77); exit 77; }; }
21476 else
21477 ac_cv_sizeof_int=0
21478 fi ;;
21479esac
21480else
21481 cat >conftest.$ac_ext <<_ACEOF
21482/* confdefs.h. */
21483_ACEOF
21484cat confdefs.h >>conftest.$ac_ext
21485cat >>conftest.$ac_ext <<_ACEOF
21486/* end confdefs.h. */
21487$ac_includes_default
21488 typedef int ac__type_sizeof_;
21489static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21490static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21491#include <stdio.h>
21492#include <stdlib.h>
21493int
21494main ()
21495{
21496
21497 FILE *f = fopen ("conftest.val", "w");
21498 if (! f)
21499 return 1;
21500 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21501 {
21502 long int i = longval ();
21503 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21504 return 1;
21505 fprintf (f, "%ld\n", i);
21506 }
21507 else
21508 {
21509 unsigned long int i = ulongval ();
21510 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21511 return 1;
21512 fprintf (f, "%lu\n", i);
21513 }
21514 return ferror (f) || fclose (f) != 0;
21515
21516 ;
21517 return 0;
21518}
21519_ACEOF
21520rm -f conftest$ac_exeext
21521if { (ac_try="$ac_link"
21522case "(($ac_try" in
21523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21524 *) ac_try_echo=$ac_try;;
21525esac
21526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21527 (eval "$ac_link") 2>&5
21528 ac_status=$?
21529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21531 { (case "(($ac_try" in
21532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21533 *) ac_try_echo=$ac_try;;
21534esac
21535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21536 (eval "$ac_try") 2>&5
21537 ac_status=$?
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); }; }; then
21540 ac_cv_sizeof_int=`cat conftest.val`
21541else
21542 echo "$as_me: program exited with status $ac_status" >&5
21543echo "$as_me: failed program was:" >&5
21544sed 's/^/| /' conftest.$ac_ext >&5
21545
21546( exit $ac_status )
21547if test "$ac_cv_type_int" = yes; then
21548 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21549See \`config.log' for more details." >&5
21550echo "$as_me: error: cannot compute sizeof (int)
21551See \`config.log' for more details." >&2;}
21552 { (exit 77); exit 77; }; }
21553 else
21554 ac_cv_sizeof_int=0
21555 fi
21556fi
21557rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21558fi
21559rm -f conftest.val
21560fi
21561{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21562echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
21563
21564
21565
21566cat >>confdefs.h <<_ACEOF
21567#define SIZEOF_INT $ac_cv_sizeof_int
21568_ACEOF
21569
21570
21571{ echo "$as_me:$LINENO: checking for long int" >&5
21572echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
21573if test "${ac_cv_type_long_int+set}" = set; then
21574 echo $ECHO_N "(cached) $ECHO_C" >&6
21575else
21576 cat >conftest.$ac_ext <<_ACEOF
21577/* confdefs.h. */
21578_ACEOF
21579cat confdefs.h >>conftest.$ac_ext
21580cat >>conftest.$ac_ext <<_ACEOF
21581/* end confdefs.h. */
21582$ac_includes_default
21583typedef long int ac__type_new_;
21584int
21585main ()
21586{
21587if ((ac__type_new_ *) 0)
21588 return 0;
21589if (sizeof (ac__type_new_))
21590 return 0;
21591 ;
21592 return 0;
21593}
21594_ACEOF
21595rm -f conftest.$ac_objext
21596if { (ac_try="$ac_compile"
21597case "(($ac_try" in
21598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21599 *) ac_try_echo=$ac_try;;
21600esac
21601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21602 (eval "$ac_compile") 2>conftest.er1
21603 ac_status=$?
21604 grep -v '^ *+' conftest.er1 >conftest.err
21605 rm -f conftest.er1
21606 cat conftest.err >&5
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); } && {
21609 test -z "$ac_c_werror_flag" ||
21610 test ! -s conftest.err
21611 } && test -s conftest.$ac_objext; then
21612 ac_cv_type_long_int=yes
21613else
21614 echo "$as_me: failed program was:" >&5
21615sed 's/^/| /' conftest.$ac_ext >&5
21616
21617 ac_cv_type_long_int=no
21618fi
21619
21620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21621fi
21622{ echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
21623echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
21624
21625# The cast to long int works around a bug in the HP C Compiler
21626# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21627# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21628# This bug is HP SR number 8606223364.
21629{ echo "$as_me:$LINENO: checking size of long int" >&5
21630echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
21631if test "${ac_cv_sizeof_long_int+set}" = set; then
21632 echo $ECHO_N "(cached) $ECHO_C" >&6
21633else
21634 if test "$cross_compiling" = yes; then
21635 # Depending upon the size, compute the lo and hi bounds.
21636cat >conftest.$ac_ext <<_ACEOF
21637/* confdefs.h. */
21638_ACEOF
21639cat confdefs.h >>conftest.$ac_ext
21640cat >>conftest.$ac_ext <<_ACEOF
21641/* end confdefs.h. */
21642$ac_includes_default
21643 typedef long int ac__type_sizeof_;
21644int
21645main ()
21646{
21647static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21648test_array [0] = 0
21649
21650 ;
21651 return 0;
21652}
21653_ACEOF
21654rm -f conftest.$ac_objext
21655if { (ac_try="$ac_compile"
21656case "(($ac_try" in
21657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21658 *) ac_try_echo=$ac_try;;
21659esac
21660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21661 (eval "$ac_compile") 2>conftest.er1
21662 ac_status=$?
21663 grep -v '^ *+' conftest.er1 >conftest.err
21664 rm -f conftest.er1
21665 cat conftest.err >&5
21666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); } && {
21668 test -z "$ac_c_werror_flag" ||
21669 test ! -s conftest.err
21670 } && test -s conftest.$ac_objext; then
21671 ac_lo=0 ac_mid=0
21672 while :; do
21673 cat >conftest.$ac_ext <<_ACEOF
21674/* confdefs.h. */
21675_ACEOF
21676cat confdefs.h >>conftest.$ac_ext
21677cat >>conftest.$ac_ext <<_ACEOF
21678/* end confdefs.h. */
21679$ac_includes_default
21680 typedef long int ac__type_sizeof_;
21681int
21682main ()
21683{
21684static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21685test_array [0] = 0
21686
21687 ;
21688 return 0;
21689}
21690_ACEOF
21691rm -f conftest.$ac_objext
21692if { (ac_try="$ac_compile"
21693case "(($ac_try" in
21694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21695 *) ac_try_echo=$ac_try;;
21696esac
21697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21698 (eval "$ac_compile") 2>conftest.er1
21699 ac_status=$?
21700 grep -v '^ *+' conftest.er1 >conftest.err
21701 rm -f conftest.er1
21702 cat conftest.err >&5
21703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704 (exit $ac_status); } && {
21705 test -z "$ac_c_werror_flag" ||
21706 test ! -s conftest.err
21707 } && test -s conftest.$ac_objext; then
21708 ac_hi=$ac_mid; break
21709else
21710 echo "$as_me: failed program was:" >&5
21711sed 's/^/| /' conftest.$ac_ext >&5
21712
21713 ac_lo=`expr $ac_mid + 1`
21714 if test $ac_lo -le $ac_mid; then
21715 ac_lo= ac_hi=
21716 break
21717 fi
21718 ac_mid=`expr 2 '*' $ac_mid + 1`
21719fi
21720
21721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21722 done
21723else
21724 echo "$as_me: failed program was:" >&5
21725sed 's/^/| /' conftest.$ac_ext >&5
21726
21727 cat >conftest.$ac_ext <<_ACEOF
21728/* confdefs.h. */
21729_ACEOF
21730cat confdefs.h >>conftest.$ac_ext
21731cat >>conftest.$ac_ext <<_ACEOF
21732/* end confdefs.h. */
21733$ac_includes_default
21734 typedef long int ac__type_sizeof_;
21735int
21736main ()
21737{
21738static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21739test_array [0] = 0
21740
21741 ;
21742 return 0;
21743}
21744_ACEOF
21745rm -f conftest.$ac_objext
21746if { (ac_try="$ac_compile"
21747case "(($ac_try" in
21748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21749 *) ac_try_echo=$ac_try;;
21750esac
21751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21752 (eval "$ac_compile") 2>conftest.er1
21753 ac_status=$?
21754 grep -v '^ *+' conftest.er1 >conftest.err
21755 rm -f conftest.er1
21756 cat conftest.err >&5
21757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758 (exit $ac_status); } && {
21759 test -z "$ac_c_werror_flag" ||
21760 test ! -s conftest.err
21761 } && test -s conftest.$ac_objext; then
21762 ac_hi=-1 ac_mid=-1
21763 while :; do
21764 cat >conftest.$ac_ext <<_ACEOF
21765/* confdefs.h. */
21766_ACEOF
21767cat confdefs.h >>conftest.$ac_ext
21768cat >>conftest.$ac_ext <<_ACEOF
21769/* end confdefs.h. */
21770$ac_includes_default
21771 typedef long int ac__type_sizeof_;
21772int
21773main ()
21774{
21775static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21776test_array [0] = 0
21777
21778 ;
21779 return 0;
21780}
21781_ACEOF
21782rm -f conftest.$ac_objext
21783if { (ac_try="$ac_compile"
21784case "(($ac_try" in
21785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21786 *) ac_try_echo=$ac_try;;
21787esac
21788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21789 (eval "$ac_compile") 2>conftest.er1
21790 ac_status=$?
21791 grep -v '^ *+' conftest.er1 >conftest.err
21792 rm -f conftest.er1
21793 cat conftest.err >&5
21794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795 (exit $ac_status); } && {
21796 test -z "$ac_c_werror_flag" ||
21797 test ! -s conftest.err
21798 } && test -s conftest.$ac_objext; then
21799 ac_lo=$ac_mid; break
21800else
21801 echo "$as_me: failed program was:" >&5
21802sed 's/^/| /' conftest.$ac_ext >&5
21803
21804 ac_hi=`expr '(' $ac_mid ')' - 1`
21805 if test $ac_mid -le $ac_hi; then
21806 ac_lo= ac_hi=
21807 break
21808 fi
21809 ac_mid=`expr 2 '*' $ac_mid`
21810fi
21811
21812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21813 done
21814else
21815 echo "$as_me: failed program was:" >&5
21816sed 's/^/| /' conftest.$ac_ext >&5
21817
21818 ac_lo= ac_hi=
21819fi
21820
21821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21822fi
21823
21824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21825# Binary search between lo and hi bounds.
21826while test "x$ac_lo" != "x$ac_hi"; do
21827 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21828 cat >conftest.$ac_ext <<_ACEOF
21829/* confdefs.h. */
21830_ACEOF
21831cat confdefs.h >>conftest.$ac_ext
21832cat >>conftest.$ac_ext <<_ACEOF
21833/* end confdefs.h. */
21834$ac_includes_default
21835 typedef long int ac__type_sizeof_;
21836int
21837main ()
21838{
21839static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21840test_array [0] = 0
21841
21842 ;
21843 return 0;
21844}
21845_ACEOF
21846rm -f conftest.$ac_objext
21847if { (ac_try="$ac_compile"
21848case "(($ac_try" in
21849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21850 *) ac_try_echo=$ac_try;;
21851esac
21852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21853 (eval "$ac_compile") 2>conftest.er1
21854 ac_status=$?
21855 grep -v '^ *+' conftest.er1 >conftest.err
21856 rm -f conftest.er1
21857 cat conftest.err >&5
21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859 (exit $ac_status); } && {
21860 test -z "$ac_c_werror_flag" ||
21861 test ! -s conftest.err
21862 } && test -s conftest.$ac_objext; then
21863 ac_hi=$ac_mid
21864else
21865 echo "$as_me: failed program was:" >&5
21866sed 's/^/| /' conftest.$ac_ext >&5
21867
21868 ac_lo=`expr '(' $ac_mid ')' + 1`
21869fi
21870
21871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21872done
21873case $ac_lo in
21874?*) ac_cv_sizeof_long_int=$ac_lo;;
21875'') if test "$ac_cv_type_long_int" = yes; then
21876 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
21877See \`config.log' for more details." >&5
21878echo "$as_me: error: cannot compute sizeof (long int)
21879See \`config.log' for more details." >&2;}
21880 { (exit 77); exit 77; }; }
21881 else
21882 ac_cv_sizeof_long_int=0
21883 fi ;;
21884esac
21885else
21886 cat >conftest.$ac_ext <<_ACEOF
21887/* confdefs.h. */
21888_ACEOF
21889cat confdefs.h >>conftest.$ac_ext
21890cat >>conftest.$ac_ext <<_ACEOF
21891/* end confdefs.h. */
21892$ac_includes_default
21893 typedef long int ac__type_sizeof_;
21894static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21895static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21896#include <stdio.h>
21897#include <stdlib.h>
21898int
21899main ()
21900{
21901
21902 FILE *f = fopen ("conftest.val", "w");
21903 if (! f)
21904 return 1;
21905 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21906 {
21907 long int i = longval ();
21908 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21909 return 1;
21910 fprintf (f, "%ld\n", i);
21911 }
21912 else
21913 {
21914 unsigned long int i = ulongval ();
21915 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21916 return 1;
21917 fprintf (f, "%lu\n", i);
21918 }
21919 return ferror (f) || fclose (f) != 0;
21920
21921 ;
21922 return 0;
21923}
21924_ACEOF
21925rm -f conftest$ac_exeext
21926if { (ac_try="$ac_link"
21927case "(($ac_try" in
21928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21929 *) ac_try_echo=$ac_try;;
21930esac
21931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21932 (eval "$ac_link") 2>&5
21933 ac_status=$?
21934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21936 { (case "(($ac_try" in
21937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21938 *) ac_try_echo=$ac_try;;
21939esac
21940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21941 (eval "$ac_try") 2>&5
21942 ac_status=$?
21943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944 (exit $ac_status); }; }; then
21945 ac_cv_sizeof_long_int=`cat conftest.val`
21946else
21947 echo "$as_me: program exited with status $ac_status" >&5
21948echo "$as_me: failed program was:" >&5
21949sed 's/^/| /' conftest.$ac_ext >&5
21950
21951( exit $ac_status )
21952if test "$ac_cv_type_long_int" = yes; then
21953 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
21954See \`config.log' for more details." >&5
21955echo "$as_me: error: cannot compute sizeof (long int)
21956See \`config.log' for more details." >&2;}
21957 { (exit 77); exit 77; }; }
21958 else
21959 ac_cv_sizeof_long_int=0
21960 fi
21961fi
21962rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21963fi
21964rm -f conftest.val
21965fi
21966{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
21967echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
21968
21969
21970
21971cat >>confdefs.h <<_ACEOF
21972#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
21973_ACEOF
21974
21975
21976{ echo "$as_me:$LINENO: checking for long long int" >&5
21977echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
21978if test "${ac_cv_type_long_long_int+set}" = set; then
21979 echo $ECHO_N "(cached) $ECHO_C" >&6
21980else
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$ac_includes_default
21988typedef long long int ac__type_new_;
21989int
21990main ()
21991{
21992if ((ac__type_new_ *) 0)
21993 return 0;
21994if (sizeof (ac__type_new_))
21995 return 0;
21996 ;
21997 return 0;
21998}
21999_ACEOF
22000rm -f conftest.$ac_objext
22001if { (ac_try="$ac_compile"
22002case "(($ac_try" in
22003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22004 *) ac_try_echo=$ac_try;;
22005esac
22006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22007 (eval "$ac_compile") 2>conftest.er1
22008 ac_status=$?
22009 grep -v '^ *+' conftest.er1 >conftest.err
22010 rm -f conftest.er1
22011 cat conftest.err >&5
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); } && {
22014 test -z "$ac_c_werror_flag" ||
22015 test ! -s conftest.err
22016 } && test -s conftest.$ac_objext; then
22017 ac_cv_type_long_long_int=yes
22018else
22019 echo "$as_me: failed program was:" >&5
22020sed 's/^/| /' conftest.$ac_ext >&5
22021
22022 ac_cv_type_long_long_int=no
22023fi
22024
22025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22026fi
22027{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
22028echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
22029
22030# The cast to long int works around a bug in the HP C Compiler
22031# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22032# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22033# This bug is HP SR number 8606223364.
22034{ echo "$as_me:$LINENO: checking size of long long int" >&5
22035echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
22036if test "${ac_cv_sizeof_long_long_int+set}" = set; then
22037 echo $ECHO_N "(cached) $ECHO_C" >&6
22038else
22039 if test "$cross_compiling" = yes; then
22040 # Depending upon the size, compute the lo and hi bounds.
22041cat >conftest.$ac_ext <<_ACEOF
22042/* confdefs.h. */
22043_ACEOF
22044cat confdefs.h >>conftest.$ac_ext
22045cat >>conftest.$ac_ext <<_ACEOF
22046/* end confdefs.h. */
22047$ac_includes_default
22048 typedef long long int ac__type_sizeof_;
22049int
22050main ()
22051{
22052static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22053test_array [0] = 0
22054
22055 ;
22056 return 0;
22057}
22058_ACEOF
22059rm -f conftest.$ac_objext
22060if { (ac_try="$ac_compile"
22061case "(($ac_try" in
22062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22063 *) ac_try_echo=$ac_try;;
22064esac
22065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22066 (eval "$ac_compile") 2>conftest.er1
22067 ac_status=$?
22068 grep -v '^ *+' conftest.er1 >conftest.err
22069 rm -f conftest.er1
22070 cat conftest.err >&5
22071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072 (exit $ac_status); } && {
22073 test -z "$ac_c_werror_flag" ||
22074 test ! -s conftest.err
22075 } && test -s conftest.$ac_objext; then
22076 ac_lo=0 ac_mid=0
22077 while :; do
22078 cat >conftest.$ac_ext <<_ACEOF
22079/* confdefs.h. */
22080_ACEOF
22081cat confdefs.h >>conftest.$ac_ext
22082cat >>conftest.$ac_ext <<_ACEOF
22083/* end confdefs.h. */
22084$ac_includes_default
22085 typedef long long int ac__type_sizeof_;
22086int
22087main ()
22088{
22089static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22090test_array [0] = 0
22091
22092 ;
22093 return 0;
22094}
22095_ACEOF
22096rm -f conftest.$ac_objext
22097if { (ac_try="$ac_compile"
22098case "(($ac_try" in
22099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22100 *) ac_try_echo=$ac_try;;
22101esac
22102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22103 (eval "$ac_compile") 2>conftest.er1
22104 ac_status=$?
22105 grep -v '^ *+' conftest.er1 >conftest.err
22106 rm -f conftest.er1
22107 cat conftest.err >&5
22108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109 (exit $ac_status); } && {
22110 test -z "$ac_c_werror_flag" ||
22111 test ! -s conftest.err
22112 } && test -s conftest.$ac_objext; then
22113 ac_hi=$ac_mid; break
22114else
22115 echo "$as_me: failed program was:" >&5
22116sed 's/^/| /' conftest.$ac_ext >&5
22117
22118 ac_lo=`expr $ac_mid + 1`
22119 if test $ac_lo -le $ac_mid; then
22120 ac_lo= ac_hi=
22121 break
22122 fi
22123 ac_mid=`expr 2 '*' $ac_mid + 1`
22124fi
22125
22126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22127 done
22128else
22129 echo "$as_me: failed program was:" >&5
22130sed 's/^/| /' conftest.$ac_ext >&5
22131
22132 cat >conftest.$ac_ext <<_ACEOF
22133/* confdefs.h. */
22134_ACEOF
22135cat confdefs.h >>conftest.$ac_ext
22136cat >>conftest.$ac_ext <<_ACEOF
22137/* end confdefs.h. */
22138$ac_includes_default
22139 typedef long long int ac__type_sizeof_;
22140int
22141main ()
22142{
22143static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22144test_array [0] = 0
22145
22146 ;
22147 return 0;
22148}
22149_ACEOF
22150rm -f conftest.$ac_objext
22151if { (ac_try="$ac_compile"
22152case "(($ac_try" in
22153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22154 *) ac_try_echo=$ac_try;;
22155esac
22156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22157 (eval "$ac_compile") 2>conftest.er1
22158 ac_status=$?
22159 grep -v '^ *+' conftest.er1 >conftest.err
22160 rm -f conftest.er1
22161 cat conftest.err >&5
22162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163 (exit $ac_status); } && {
22164 test -z "$ac_c_werror_flag" ||
22165 test ! -s conftest.err
22166 } && test -s conftest.$ac_objext; then
22167 ac_hi=-1 ac_mid=-1
22168 while :; do
22169 cat >conftest.$ac_ext <<_ACEOF
22170/* confdefs.h. */
22171_ACEOF
22172cat confdefs.h >>conftest.$ac_ext
22173cat >>conftest.$ac_ext <<_ACEOF
22174/* end confdefs.h. */
22175$ac_includes_default
22176 typedef long long int ac__type_sizeof_;
22177int
22178main ()
22179{
22180static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22181test_array [0] = 0
22182
22183 ;
22184 return 0;
22185}
22186_ACEOF
22187rm -f conftest.$ac_objext
22188if { (ac_try="$ac_compile"
22189case "(($ac_try" in
22190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22191 *) ac_try_echo=$ac_try;;
22192esac
22193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22194 (eval "$ac_compile") 2>conftest.er1
22195 ac_status=$?
22196 grep -v '^ *+' conftest.er1 >conftest.err
22197 rm -f conftest.er1
22198 cat conftest.err >&5
22199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); } && {
22201 test -z "$ac_c_werror_flag" ||
22202 test ! -s conftest.err
22203 } && test -s conftest.$ac_objext; then
22204 ac_lo=$ac_mid; break
22205else
22206 echo "$as_me: failed program was:" >&5
22207sed 's/^/| /' conftest.$ac_ext >&5
22208
22209 ac_hi=`expr '(' $ac_mid ')' - 1`
22210 if test $ac_mid -le $ac_hi; then
22211 ac_lo= ac_hi=
22212 break
22213 fi
22214 ac_mid=`expr 2 '*' $ac_mid`
22215fi
22216
22217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22218 done
22219else
22220 echo "$as_me: failed program was:" >&5
22221sed 's/^/| /' conftest.$ac_ext >&5
22222
22223 ac_lo= ac_hi=
22224fi
22225
22226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22227fi
22228
22229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22230# Binary search between lo and hi bounds.
22231while test "x$ac_lo" != "x$ac_hi"; do
22232 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22233 cat >conftest.$ac_ext <<_ACEOF
22234/* confdefs.h. */
22235_ACEOF
22236cat confdefs.h >>conftest.$ac_ext
22237cat >>conftest.$ac_ext <<_ACEOF
22238/* end confdefs.h. */
22239$ac_includes_default
22240 typedef long long int ac__type_sizeof_;
22241int
22242main ()
22243{
22244static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22245test_array [0] = 0
22246
22247 ;
22248 return 0;
22249}
22250_ACEOF
22251rm -f conftest.$ac_objext
22252if { (ac_try="$ac_compile"
22253case "(($ac_try" in
22254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22255 *) ac_try_echo=$ac_try;;
22256esac
22257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22258 (eval "$ac_compile") 2>conftest.er1
22259 ac_status=$?
22260 grep -v '^ *+' conftest.er1 >conftest.err
22261 rm -f conftest.er1
22262 cat conftest.err >&5
22263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264 (exit $ac_status); } && {
22265 test -z "$ac_c_werror_flag" ||
22266 test ! -s conftest.err
22267 } && test -s conftest.$ac_objext; then
22268 ac_hi=$ac_mid
22269else
22270 echo "$as_me: failed program was:" >&5
22271sed 's/^/| /' conftest.$ac_ext >&5
22272
22273 ac_lo=`expr '(' $ac_mid ')' + 1`
22274fi
22275
22276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22277done
22278case $ac_lo in
22279?*) ac_cv_sizeof_long_long_int=$ac_lo;;
22280'') if test "$ac_cv_type_long_long_int" = yes; then
22281 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
22282See \`config.log' for more details." >&5
22283echo "$as_me: error: cannot compute sizeof (long long int)
22284See \`config.log' for more details." >&2;}
22285 { (exit 77); exit 77; }; }
22286 else
22287 ac_cv_sizeof_long_long_int=0
22288 fi ;;
22289esac
22290else
22291 cat >conftest.$ac_ext <<_ACEOF
22292/* confdefs.h. */
22293_ACEOF
22294cat confdefs.h >>conftest.$ac_ext
22295cat >>conftest.$ac_ext <<_ACEOF
22296/* end confdefs.h. */
22297$ac_includes_default
22298 typedef long long int ac__type_sizeof_;
22299static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22300static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22301#include <stdio.h>
22302#include <stdlib.h>
22303int
22304main ()
22305{
22306
22307 FILE *f = fopen ("conftest.val", "w");
22308 if (! f)
22309 return 1;
22310 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22311 {
22312 long int i = longval ();
22313 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22314 return 1;
22315 fprintf (f, "%ld\n", i);
22316 }
22317 else
22318 {
22319 unsigned long int i = ulongval ();
22320 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22321 return 1;
22322 fprintf (f, "%lu\n", i);
22323 }
22324 return ferror (f) || fclose (f) != 0;
22325
22326 ;
22327 return 0;
22328}
22329_ACEOF
22330rm -f conftest$ac_exeext
22331if { (ac_try="$ac_link"
22332case "(($ac_try" in
22333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22334 *) ac_try_echo=$ac_try;;
22335esac
22336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22337 (eval "$ac_link") 2>&5
22338 ac_status=$?
22339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22341 { (case "(($ac_try" in
22342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22343 *) ac_try_echo=$ac_try;;
22344esac
22345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22346 (eval "$ac_try") 2>&5
22347 ac_status=$?
22348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); }; }; then
22350 ac_cv_sizeof_long_long_int=`cat conftest.val`
22351else
22352 echo "$as_me: program exited with status $ac_status" >&5
22353echo "$as_me: failed program was:" >&5
22354sed 's/^/| /' conftest.$ac_ext >&5
22355
22356( exit $ac_status )
22357if test "$ac_cv_type_long_long_int" = yes; then
22358 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
22359See \`config.log' for more details." >&5
22360echo "$as_me: error: cannot compute sizeof (long long int)
22361See \`config.log' for more details." >&2;}
22362 { (exit 77); exit 77; }; }
22363 else
22364 ac_cv_sizeof_long_long_int=0
22365 fi
22366fi
22367rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22368fi
22369rm -f conftest.val
22370fi
22371{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
22372echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
22373
22374
22375
22376cat >>confdefs.h <<_ACEOF
22377#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
22378_ACEOF
22379
22380
22381
22382# Sanity check long long for some platforms (AIX)
22383if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
22384 ac_cv_sizeof_long_long_int=0
22385fi
22386
22387# compute LLONG_MIN and LLONG_MAX if we don't know them.
22388if test -z "$have_llong_max"; then
22389 { echo "$as_me:$LINENO: checking for max value of long long" >&5
22390echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6; }
22391 if test "$cross_compiling" = yes; then
22392
22393 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
22394echo "$as_me: WARNING: cross compiling: not checking" >&2;}
22395
22396
22397else
22398 cat >conftest.$ac_ext <<_ACEOF
22399/* confdefs.h. */
22400_ACEOF
22401cat confdefs.h >>conftest.$ac_ext
22402cat >>conftest.$ac_ext <<_ACEOF
22403/* end confdefs.h. */
22404
22405#include <stdio.h>
22406/* Why is this so damn hard? */
22407#ifdef __GNUC__
22408# undef __GNUC__
22409#endif
22410#define __USE_ISOC99
22411#include <limits.h>
22412#define DATA "conftest.llminmax"
22413#define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
22414
22415/*
22416 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
22417 * we do this the hard way.
22418 */
22419static int
22420fprint_ll(FILE *f, long long n)
22421{
22422 unsigned int i;
22423 int l[sizeof(long long) * 8];
22424
22425 if (n < 0)
22426 if (fprintf(f, "-") < 0)
22427 return -1;
22428 for (i = 0; n != 0; i++) {
22429 l[i] = my_abs(n % 10);
22430 n /= 10;
22431 }
22432 do {
22433 if (fprintf(f, "%d", l[--i]) < 0)
22434 return -1;
22435 } while (i != 0);
22436 if (fprintf(f, " ") < 0)
22437 return -1;
22438 return 0;
22439}
22440
22441int main(void) {
22442 FILE *f;
22443 long long i, llmin, llmax = 0;
22444
22445 if((f = fopen(DATA,"w")) == NULL)
22446 exit(1);
22447
22448#if defined(LLONG_MIN) && defined(LLONG_MAX)
22449 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
22450 llmin = LLONG_MIN;
22451 llmax = LLONG_MAX;
22452#else
22453 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
22454 /* This will work on one's complement and two's complement */
22455 for (i = 1; i > llmax; i <<= 1, i++)
22456 llmax = i;
22457 llmin = llmax + 1LL; /* wrap */
22458#endif
22459
22460 /* Sanity check */
22461 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
22462 || llmax - 1 > llmax || llmin == llmax || llmin == 0
22463 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
22464 fprintf(f, "unknown unknown\n");
22465 exit(2);
22466 }
22467
22468 if (fprint_ll(f, llmin) < 0)
22469 exit(3);
22470 if (fprint_ll(f, llmax) < 0)
22471 exit(4);
22472 if (fclose(f) < 0)
22473 exit(5);
22474 exit(0);
22475}
22476
22477_ACEOF
22478rm -f conftest$ac_exeext
22479if { (ac_try="$ac_link"
22480case "(($ac_try" in
22481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22482 *) ac_try_echo=$ac_try;;
22483esac
22484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22485 (eval "$ac_link") 2>&5
22486 ac_status=$?
22487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22489 { (case "(($ac_try" in
22490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22491 *) ac_try_echo=$ac_try;;
22492esac
22493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22494 (eval "$ac_try") 2>&5
22495 ac_status=$?
22496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497 (exit $ac_status); }; }; then
22498
22499 llong_min=`$AWK '{print $1}' conftest.llminmax`
22500 llong_max=`$AWK '{print $2}' conftest.llminmax`
22501
22502 { echo "$as_me:$LINENO: result: $llong_max" >&5
22503echo "${ECHO_T}$llong_max" >&6; }
22504
22505cat >>confdefs.h <<_ACEOF
22506#define LLONG_MAX ${llong_max}LL
22507_ACEOF
22508
22509 { echo "$as_me:$LINENO: checking for min value of long long" >&5
22510echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6; }
22511 { echo "$as_me:$LINENO: result: $llong_min" >&5
22512echo "${ECHO_T}$llong_min" >&6; }
22513
22514cat >>confdefs.h <<_ACEOF
22515#define LLONG_MIN ${llong_min}LL
22516_ACEOF
22517
22518
22519else
22520 echo "$as_me: program exited with status $ac_status" >&5
22521echo "$as_me: failed program was:" >&5
22522sed 's/^/| /' conftest.$ac_ext >&5
22523
22524( exit $ac_status )
22525
22526 { echo "$as_me:$LINENO: result: not found" >&5
22527echo "${ECHO_T}not found" >&6; }
22528
22529fi
22530rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22531fi
22532
22533
22534fi
22535
22536
22537# More checks for data types
22538{ echo "$as_me:$LINENO: checking for u_int type" >&5
22539echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
22540if test "${ac_cv_have_u_int+set}" = set; then
22541 echo $ECHO_N "(cached) $ECHO_C" >&6
22542else
22543
22544 cat >conftest.$ac_ext <<_ACEOF
22545/* confdefs.h. */
22546_ACEOF
22547cat confdefs.h >>conftest.$ac_ext
22548cat >>conftest.$ac_ext <<_ACEOF
22549/* end confdefs.h. */
22550 #include <sys/types.h>
22551int
22552main ()
22553{
22554 u_int a; a = 1;
22555 ;
22556 return 0;
22557}
22558_ACEOF
22559rm -f conftest.$ac_objext
22560if { (ac_try="$ac_compile"
22561case "(($ac_try" in
22562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22563 *) ac_try_echo=$ac_try;;
22564esac
22565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22566 (eval "$ac_compile") 2>conftest.er1
22567 ac_status=$?
22568 grep -v '^ *+' conftest.er1 >conftest.err
22569 rm -f conftest.er1
22570 cat conftest.err >&5
22571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); } && {
22573 test -z "$ac_c_werror_flag" ||
22574 test ! -s conftest.err
22575 } && test -s conftest.$ac_objext; then
22576 ac_cv_have_u_int="yes"
22577else
22578 echo "$as_me: failed program was:" >&5
22579sed 's/^/| /' conftest.$ac_ext >&5
22580
22581 ac_cv_have_u_int="no"
22582
22583fi
22584
22585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22586
22587fi
22588{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
22589echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
22590if test "x$ac_cv_have_u_int" = "xyes" ; then
22591
22592cat >>confdefs.h <<\_ACEOF
22593#define HAVE_U_INT 1
22594_ACEOF
22595
22596 have_u_int=1
22597fi
22598
22599{ echo "$as_me:$LINENO: checking for intXX_t types" >&5
22600echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
22601if test "${ac_cv_have_intxx_t+set}" = set; then
22602 echo $ECHO_N "(cached) $ECHO_C" >&6
22603else
22604
22605 cat >conftest.$ac_ext <<_ACEOF
22606/* confdefs.h. */
22607_ACEOF
22608cat confdefs.h >>conftest.$ac_ext
22609cat >>conftest.$ac_ext <<_ACEOF
22610/* end confdefs.h. */
22611 #include <sys/types.h>
22612int
22613main ()
22614{
22615 int8_t a; int16_t b; int32_t c; a = b = c = 1;
22616 ;
22617 return 0;
22618}
22619_ACEOF
22620rm -f conftest.$ac_objext
22621if { (ac_try="$ac_compile"
22622case "(($ac_try" in
22623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22624 *) ac_try_echo=$ac_try;;
22625esac
22626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22627 (eval "$ac_compile") 2>conftest.er1
22628 ac_status=$?
22629 grep -v '^ *+' conftest.er1 >conftest.err
22630 rm -f conftest.er1
22631 cat conftest.err >&5
22632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633 (exit $ac_status); } && {
22634 test -z "$ac_c_werror_flag" ||
22635 test ! -s conftest.err
22636 } && test -s conftest.$ac_objext; then
22637 ac_cv_have_intxx_t="yes"
22638else
22639 echo "$as_me: failed program was:" >&5
22640sed 's/^/| /' conftest.$ac_ext >&5
22641
22642 ac_cv_have_intxx_t="no"
22643
22644fi
22645
22646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22647
22648fi
22649{ echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
22650echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
22651if test "x$ac_cv_have_intxx_t" = "xyes" ; then
22652
22653cat >>confdefs.h <<\_ACEOF
22654#define HAVE_INTXX_T 1
22655_ACEOF
22656
22657 have_intxx_t=1
22658fi
22659
22660if (test -z "$have_intxx_t" && \
22661 test "x$ac_cv_header_stdint_h" = "xyes")
22662then
22663 { echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
22664echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6; }
22665 cat >conftest.$ac_ext <<_ACEOF
22666/* confdefs.h. */
22667_ACEOF
22668cat confdefs.h >>conftest.$ac_ext
22669cat >>conftest.$ac_ext <<_ACEOF
22670/* end confdefs.h. */
22671 #include <stdint.h>
22672int
22673main ()
22674{
22675 int8_t a; int16_t b; int32_t c; a = b = c = 1;
22676 ;
22677 return 0;
22678}
22679_ACEOF
22680rm -f conftest.$ac_objext
22681if { (ac_try="$ac_compile"
22682case "(($ac_try" in
22683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22684 *) ac_try_echo=$ac_try;;
22685esac
22686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22687 (eval "$ac_compile") 2>conftest.er1
22688 ac_status=$?
22689 grep -v '^ *+' conftest.er1 >conftest.err
22690 rm -f conftest.er1
22691 cat conftest.err >&5
22692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693 (exit $ac_status); } && {
22694 test -z "$ac_c_werror_flag" ||
22695 test ! -s conftest.err
22696 } && test -s conftest.$ac_objext; then
22697
22698 cat >>confdefs.h <<\_ACEOF
22699#define HAVE_INTXX_T 1
22700_ACEOF
22701
22702 { echo "$as_me:$LINENO: result: yes" >&5
22703echo "${ECHO_T}yes" >&6; }
22704
22705else
22706 echo "$as_me: failed program was:" >&5
22707sed 's/^/| /' conftest.$ac_ext >&5
22708
22709 { echo "$as_me:$LINENO: result: no" >&5
22710echo "${ECHO_T}no" >&6; }
22711
22712fi
22713
22714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22715fi
22716
22717{ echo "$as_me:$LINENO: checking for int64_t type" >&5
22718echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
22719if test "${ac_cv_have_int64_t+set}" = set; then
22720 echo $ECHO_N "(cached) $ECHO_C" >&6
22721else
22722
22723 cat >conftest.$ac_ext <<_ACEOF
22724/* confdefs.h. */
22725_ACEOF
22726cat confdefs.h >>conftest.$ac_ext
22727cat >>conftest.$ac_ext <<_ACEOF
22728/* end confdefs.h. */
22729
22730#include <sys/types.h>
22731#ifdef HAVE_STDINT_H
22732# include <stdint.h>
22733#endif
22734#include <sys/socket.h>
22735#ifdef HAVE_SYS_BITYPES_H
22736# include <sys/bitypes.h>
22737#endif
22738
22739int
22740main ()
22741{
22742 int64_t a; a = 1;
22743 ;
22744 return 0;
22745}
22746_ACEOF
22747rm -f conftest.$ac_objext
22748if { (ac_try="$ac_compile"
22749case "(($ac_try" in
22750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22751 *) ac_try_echo=$ac_try;;
22752esac
22753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22754 (eval "$ac_compile") 2>conftest.er1
22755 ac_status=$?
22756 grep -v '^ *+' conftest.er1 >conftest.err
22757 rm -f conftest.er1
22758 cat conftest.err >&5
22759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760 (exit $ac_status); } && {
22761 test -z "$ac_c_werror_flag" ||
22762 test ! -s conftest.err
22763 } && test -s conftest.$ac_objext; then
22764 ac_cv_have_int64_t="yes"
22765else
22766 echo "$as_me: failed program was:" >&5
22767sed 's/^/| /' conftest.$ac_ext >&5
22768
22769 ac_cv_have_int64_t="no"
22770
22771fi
22772
22773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22774
22775fi
22776{ echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
22777echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
22778if test "x$ac_cv_have_int64_t" = "xyes" ; then
22779
22780cat >>confdefs.h <<\_ACEOF
22781#define HAVE_INT64_T 1
22782_ACEOF
22783
22784fi
22785
22786{ echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
22787echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
22788if test "${ac_cv_have_u_intxx_t+set}" = set; then
22789 echo $ECHO_N "(cached) $ECHO_C" >&6
22790else
22791
22792 cat >conftest.$ac_ext <<_ACEOF
22793/* confdefs.h. */
22794_ACEOF
22795cat confdefs.h >>conftest.$ac_ext
22796cat >>conftest.$ac_ext <<_ACEOF
22797/* end confdefs.h. */
22798 #include <sys/types.h>
22799int
22800main ()
22801{
22802 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
22803 ;
22804 return 0;
22805}
22806_ACEOF
22807rm -f conftest.$ac_objext
22808if { (ac_try="$ac_compile"
22809case "(($ac_try" in
22810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22811 *) ac_try_echo=$ac_try;;
22812esac
22813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22814 (eval "$ac_compile") 2>conftest.er1
22815 ac_status=$?
22816 grep -v '^ *+' conftest.er1 >conftest.err
22817 rm -f conftest.er1
22818 cat conftest.err >&5
22819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22820 (exit $ac_status); } && {
22821 test -z "$ac_c_werror_flag" ||
22822 test ! -s conftest.err
22823 } && test -s conftest.$ac_objext; then
22824 ac_cv_have_u_intxx_t="yes"
22825else
22826 echo "$as_me: failed program was:" >&5
22827sed 's/^/| /' conftest.$ac_ext >&5
22828
22829 ac_cv_have_u_intxx_t="no"
22830
22831fi
22832
22833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22834
22835fi
22836{ echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
22837echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
22838if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
22839
22840cat >>confdefs.h <<\_ACEOF
22841#define HAVE_U_INTXX_T 1
22842_ACEOF
22843
22844 have_u_intxx_t=1
22845fi
22846
22847if test -z "$have_u_intxx_t" ; then
22848 { echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
22849echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6; }
22850 cat >conftest.$ac_ext <<_ACEOF
22851/* confdefs.h. */
22852_ACEOF
22853cat confdefs.h >>conftest.$ac_ext
22854cat >>conftest.$ac_ext <<_ACEOF
22855/* end confdefs.h. */
22856 #include <sys/socket.h>
22857int
22858main ()
22859{
22860 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
22861 ;
22862 return 0;
22863}
22864_ACEOF
22865rm -f conftest.$ac_objext
22866if { (ac_try="$ac_compile"
22867case "(($ac_try" in
22868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22869 *) ac_try_echo=$ac_try;;
22870esac
22871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22872 (eval "$ac_compile") 2>conftest.er1
22873 ac_status=$?
22874 grep -v '^ *+' conftest.er1 >conftest.err
22875 rm -f conftest.er1
22876 cat conftest.err >&5
22877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878 (exit $ac_status); } && {
22879 test -z "$ac_c_werror_flag" ||
22880 test ! -s conftest.err
22881 } && test -s conftest.$ac_objext; then
22882
22883 cat >>confdefs.h <<\_ACEOF
22884#define HAVE_U_INTXX_T 1
22885_ACEOF
22886
22887 { echo "$as_me:$LINENO: result: yes" >&5
22888echo "${ECHO_T}yes" >&6; }
22889
22890else
22891 echo "$as_me: failed program was:" >&5
22892sed 's/^/| /' conftest.$ac_ext >&5
22893
22894 { echo "$as_me:$LINENO: result: no" >&5
22895echo "${ECHO_T}no" >&6; }
22896
22897fi
22898
22899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22900fi
22901
22902{ echo "$as_me:$LINENO: checking for u_int64_t types" >&5
22903echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
22904if test "${ac_cv_have_u_int64_t+set}" = set; then
22905 echo $ECHO_N "(cached) $ECHO_C" >&6
22906else
22907
22908 cat >conftest.$ac_ext <<_ACEOF
22909/* confdefs.h. */
22910_ACEOF
22911cat confdefs.h >>conftest.$ac_ext
22912cat >>conftest.$ac_ext <<_ACEOF
22913/* end confdefs.h. */
22914 #include <sys/types.h>
22915int
22916main ()
22917{
22918 u_int64_t a; a = 1;
22919 ;
22920 return 0;
22921}
22922_ACEOF
22923rm -f conftest.$ac_objext
22924if { (ac_try="$ac_compile"
22925case "(($ac_try" in
22926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22927 *) ac_try_echo=$ac_try;;
22928esac
22929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22930 (eval "$ac_compile") 2>conftest.er1
22931 ac_status=$?
22932 grep -v '^ *+' conftest.er1 >conftest.err
22933 rm -f conftest.er1
22934 cat conftest.err >&5
22935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22936 (exit $ac_status); } && {
22937 test -z "$ac_c_werror_flag" ||
22938 test ! -s conftest.err
22939 } && test -s conftest.$ac_objext; then
22940 ac_cv_have_u_int64_t="yes"
22941else
22942 echo "$as_me: failed program was:" >&5
22943sed 's/^/| /' conftest.$ac_ext >&5
22944
22945 ac_cv_have_u_int64_t="no"
22946
22947fi
22948
22949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22950
22951fi
22952{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
22953echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
22954if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
22955
22956cat >>confdefs.h <<\_ACEOF
22957#define HAVE_U_INT64_T 1
22958_ACEOF
22959
22960 have_u_int64_t=1
22961fi
22962
22963if test -z "$have_u_int64_t" ; then
22964 { echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
22965echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6; }
22966 cat >conftest.$ac_ext <<_ACEOF
22967/* confdefs.h. */
22968_ACEOF
22969cat confdefs.h >>conftest.$ac_ext
22970cat >>conftest.$ac_ext <<_ACEOF
22971/* end confdefs.h. */
22972 #include <sys/bitypes.h>
22973int
22974main ()
22975{
22976 u_int64_t a; a = 1
22977 ;
22978 return 0;
22979}
22980_ACEOF
22981rm -f conftest.$ac_objext
22982if { (ac_try="$ac_compile"
22983case "(($ac_try" in
22984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22985 *) ac_try_echo=$ac_try;;
22986esac
22987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22988 (eval "$ac_compile") 2>conftest.er1
22989 ac_status=$?
22990 grep -v '^ *+' conftest.er1 >conftest.err
22991 rm -f conftest.er1
22992 cat conftest.err >&5
22993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994 (exit $ac_status); } && {
22995 test -z "$ac_c_werror_flag" ||
22996 test ! -s conftest.err
22997 } && test -s conftest.$ac_objext; then
22998
22999 cat >>confdefs.h <<\_ACEOF
23000#define HAVE_U_INT64_T 1
23001_ACEOF
23002
23003 { echo "$as_me:$LINENO: result: yes" >&5
23004echo "${ECHO_T}yes" >&6; }
23005
23006else
23007 echo "$as_me: failed program was:" >&5
23008sed 's/^/| /' conftest.$ac_ext >&5
23009
23010 { echo "$as_me:$LINENO: result: no" >&5
23011echo "${ECHO_T}no" >&6; }
23012
23013fi
23014
23015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23016fi
23017
23018if test -z "$have_u_intxx_t" ; then
23019 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
23020echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
23021if test "${ac_cv_have_uintxx_t+set}" = set; then
23022 echo $ECHO_N "(cached) $ECHO_C" >&6
23023else
23024
23025 cat >conftest.$ac_ext <<_ACEOF
23026/* confdefs.h. */
23027_ACEOF
23028cat confdefs.h >>conftest.$ac_ext
23029cat >>conftest.$ac_ext <<_ACEOF
23030/* end confdefs.h. */
23031
23032#include <sys/types.h>
23033
23034int
23035main ()
23036{
23037 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
23038 ;
23039 return 0;
23040}
23041_ACEOF
23042rm -f conftest.$ac_objext
23043if { (ac_try="$ac_compile"
23044case "(($ac_try" in
23045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23046 *) ac_try_echo=$ac_try;;
23047esac
23048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23049 (eval "$ac_compile") 2>conftest.er1
23050 ac_status=$?
23051 grep -v '^ *+' conftest.er1 >conftest.err
23052 rm -f conftest.er1
23053 cat conftest.err >&5
23054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23055 (exit $ac_status); } && {
23056 test -z "$ac_c_werror_flag" ||
23057 test ! -s conftest.err
23058 } && test -s conftest.$ac_objext; then
23059 ac_cv_have_uintxx_t="yes"
23060else
23061 echo "$as_me: failed program was:" >&5
23062sed 's/^/| /' conftest.$ac_ext >&5
23063
23064 ac_cv_have_uintxx_t="no"
23065
23066fi
23067
23068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23069
23070fi
23071{ echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
23072echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
23073 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
23074
23075cat >>confdefs.h <<\_ACEOF
23076#define HAVE_UINTXX_T 1
23077_ACEOF
23078
23079 fi
23080fi
23081
23082if test -z "$have_uintxx_t" ; then
23083 { echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
23084echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6; }
23085 cat >conftest.$ac_ext <<_ACEOF
23086/* confdefs.h. */
23087_ACEOF
23088cat confdefs.h >>conftest.$ac_ext
23089cat >>conftest.$ac_ext <<_ACEOF
23090/* end confdefs.h. */
23091 #include <stdint.h>
23092int
23093main ()
23094{
23095 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
23096 ;
23097 return 0;
23098}
23099_ACEOF
23100rm -f conftest.$ac_objext
23101if { (ac_try="$ac_compile"
23102case "(($ac_try" in
23103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23104 *) ac_try_echo=$ac_try;;
23105esac
23106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23107 (eval "$ac_compile") 2>conftest.er1
23108 ac_status=$?
23109 grep -v '^ *+' conftest.er1 >conftest.err
23110 rm -f conftest.er1
23111 cat conftest.err >&5
23112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23113 (exit $ac_status); } && {
23114 test -z "$ac_c_werror_flag" ||
23115 test ! -s conftest.err
23116 } && test -s conftest.$ac_objext; then
23117
23118 cat >>confdefs.h <<\_ACEOF
23119#define HAVE_UINTXX_T 1
23120_ACEOF
23121
23122 { echo "$as_me:$LINENO: result: yes" >&5
23123echo "${ECHO_T}yes" >&6; }
23124
23125else
23126 echo "$as_me: failed program was:" >&5
23127sed 's/^/| /' conftest.$ac_ext >&5
23128
23129 { echo "$as_me:$LINENO: result: no" >&5
23130echo "${ECHO_T}no" >&6; }
23131
23132fi
23133
23134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23135fi
23136
23137if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
23138 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
23139then
23140 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
23141echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
23142 cat >conftest.$ac_ext <<_ACEOF
23143/* confdefs.h. */
23144_ACEOF
23145cat confdefs.h >>conftest.$ac_ext
23146cat >>conftest.$ac_ext <<_ACEOF
23147/* end confdefs.h. */
23148
23149#include <sys/bitypes.h>
23150
23151int
23152main ()
23153{
23154
23155 int8_t a; int16_t b; int32_t c;
23156 u_int8_t e; u_int16_t f; u_int32_t g;
23157 a = b = c = e = f = g = 1;
23158
23159 ;
23160 return 0;
23161}
23162_ACEOF
23163rm -f conftest.$ac_objext
23164if { (ac_try="$ac_compile"
23165case "(($ac_try" in
23166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23167 *) ac_try_echo=$ac_try;;
23168esac
23169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23170 (eval "$ac_compile") 2>conftest.er1
23171 ac_status=$?
23172 grep -v '^ *+' conftest.er1 >conftest.err
23173 rm -f conftest.er1
23174 cat conftest.err >&5
23175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176 (exit $ac_status); } && {
23177 test -z "$ac_c_werror_flag" ||
23178 test ! -s conftest.err
23179 } && test -s conftest.$ac_objext; then
23180
23181 cat >>confdefs.h <<\_ACEOF
23182#define HAVE_U_INTXX_T 1
23183_ACEOF
23184
23185 cat >>confdefs.h <<\_ACEOF
23186#define HAVE_INTXX_T 1
23187_ACEOF
23188
23189 { echo "$as_me:$LINENO: result: yes" >&5
23190echo "${ECHO_T}yes" >&6; }
23191
23192else
23193 echo "$as_me: failed program was:" >&5
23194sed 's/^/| /' conftest.$ac_ext >&5
23195
23196 { echo "$as_me:$LINENO: result: no" >&5
23197echo "${ECHO_T}no" >&6; }
23198
23199fi
23200
23201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23202fi
23203
23204
23205{ echo "$as_me:$LINENO: checking for u_char" >&5
23206echo $ECHO_N "checking for u_char... $ECHO_C" >&6; }
23207if test "${ac_cv_have_u_char+set}" = set; then
23208 echo $ECHO_N "(cached) $ECHO_C" >&6
23209else
23210
23211 cat >conftest.$ac_ext <<_ACEOF
23212/* confdefs.h. */
23213_ACEOF
23214cat confdefs.h >>conftest.$ac_ext
23215cat >>conftest.$ac_ext <<_ACEOF
23216/* end confdefs.h. */
23217
23218#include <sys/types.h>
23219
23220int
23221main ()
23222{
23223 u_char foo; foo = 125;
23224 ;
23225 return 0;
23226}
23227_ACEOF
23228rm -f conftest.$ac_objext
23229if { (ac_try="$ac_compile"
23230case "(($ac_try" in
23231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23232 *) ac_try_echo=$ac_try;;
23233esac
23234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23235 (eval "$ac_compile") 2>conftest.er1
23236 ac_status=$?
23237 grep -v '^ *+' conftest.er1 >conftest.err
23238 rm -f conftest.er1
23239 cat conftest.err >&5
23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); } && {
23242 test -z "$ac_c_werror_flag" ||
23243 test ! -s conftest.err
23244 } && test -s conftest.$ac_objext; then
23245 ac_cv_have_u_char="yes"
23246else
23247 echo "$as_me: failed program was:" >&5
23248sed 's/^/| /' conftest.$ac_ext >&5
23249
23250 ac_cv_have_u_char="no"
23251
23252fi
23253
23254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23255
23256fi
23257{ echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
23258echo "${ECHO_T}$ac_cv_have_u_char" >&6; }
23259if test "x$ac_cv_have_u_char" = "xyes" ; then
23260
23261cat >>confdefs.h <<\_ACEOF
23262#define HAVE_U_CHAR 1
23263_ACEOF
23264
23265fi
23266
23267
23268 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23269echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23270if test "${ac_cv_type_socklen_t+set}" = set; then
23271 echo $ECHO_N "(cached) $ECHO_C" >&6
23272else
23273 cat >conftest.$ac_ext <<_ACEOF
23274/* confdefs.h. */
23275_ACEOF
23276cat confdefs.h >>conftest.$ac_ext
23277cat >>conftest.$ac_ext <<_ACEOF
23278/* end confdefs.h. */
23279#include <sys/types.h>
23280#include <sys/socket.h>
23281
23282typedef socklen_t ac__type_new_;
23283int
23284main ()
23285{
23286if ((ac__type_new_ *) 0)
23287 return 0;
23288if (sizeof (ac__type_new_))
23289 return 0;
23290 ;
23291 return 0;
23292}
23293_ACEOF
23294rm -f conftest.$ac_objext
23295if { (ac_try="$ac_compile"
23296case "(($ac_try" in
23297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23298 *) ac_try_echo=$ac_try;;
23299esac
23300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23301 (eval "$ac_compile") 2>conftest.er1
23302 ac_status=$?
23303 grep -v '^ *+' conftest.er1 >conftest.err
23304 rm -f conftest.er1
23305 cat conftest.err >&5
23306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307 (exit $ac_status); } && {
23308 test -z "$ac_c_werror_flag" ||
23309 test ! -s conftest.err
23310 } && test -s conftest.$ac_objext; then
23311 ac_cv_type_socklen_t=yes
23312else
23313 echo "$as_me: failed program was:" >&5
23314sed 's/^/| /' conftest.$ac_ext >&5
23315
23316 ac_cv_type_socklen_t=no
23317fi
23318
23319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23320fi
23321{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23322echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23323if test $ac_cv_type_socklen_t = yes; then
23324 :
23325else
23326
23327 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
23328echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
23329 if test "${curl_cv_socklen_t_equiv+set}" = set; then
23330 echo $ECHO_N "(cached) $ECHO_C" >&6
23331else
23332
23333 # Systems have either "struct sockaddr *" or
23334 # "void *" as the second argument to getpeername
23335 curl_cv_socklen_t_equiv=
23336 for arg2 in "struct sockaddr" void; do
23337 for t in int size_t unsigned long "unsigned long"; do
23338 cat >conftest.$ac_ext <<_ACEOF
23339/* confdefs.h. */
23340_ACEOF
23341cat confdefs.h >>conftest.$ac_ext
23342cat >>conftest.$ac_ext <<_ACEOF
23343/* end confdefs.h. */
23344
23345 #include <sys/types.h>
23346 #include <sys/socket.h>
23347
23348 int getpeername (int, $arg2 *, $t *);
23349
23350int
23351main ()
23352{
23353
23354 $t len;
23355 getpeername(0,0,&len);
23356
23357 ;
23358 return 0;
23359}
23360_ACEOF
23361rm -f conftest.$ac_objext
23362if { (ac_try="$ac_compile"
23363case "(($ac_try" in
23364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23365 *) ac_try_echo=$ac_try;;
23366esac
23367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23368 (eval "$ac_compile") 2>conftest.er1
23369 ac_status=$?
23370 grep -v '^ *+' conftest.er1 >conftest.err
23371 rm -f conftest.er1
23372 cat conftest.err >&5
23373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374 (exit $ac_status); } && {
23375 test -z "$ac_c_werror_flag" ||
23376 test ! -s conftest.err
23377 } && test -s conftest.$ac_objext; then
23378
23379 curl_cv_socklen_t_equiv="$t"
23380 break
23381
23382else
23383 echo "$as_me: failed program was:" >&5
23384sed 's/^/| /' conftest.$ac_ext >&5
23385
23386
23387fi
23388
23389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23390 done
23391 done
23392
23393 if test "x$curl_cv_socklen_t_equiv" = x; then
23394 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
23395echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
23396 { (exit 1); exit 1; }; }
23397 fi
23398
23399fi
23400
23401 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
23402echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
23403
23404cat >>confdefs.h <<_ACEOF
23405#define socklen_t $curl_cv_socklen_t_equiv
23406_ACEOF
23407
23408fi
23409
23410
23411
23412{ echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
23413echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
23414if test "${ac_cv_type_sig_atomic_t+set}" = set; then
23415 echo $ECHO_N "(cached) $ECHO_C" >&6
23416else
23417 cat >conftest.$ac_ext <<_ACEOF
23418/* confdefs.h. */
23419_ACEOF
23420cat confdefs.h >>conftest.$ac_ext
23421cat >>conftest.$ac_ext <<_ACEOF
23422/* end confdefs.h. */
23423#include <signal.h>
23424
23425typedef sig_atomic_t ac__type_new_;
23426int
23427main ()
23428{
23429if ((ac__type_new_ *) 0)
23430 return 0;
23431if (sizeof (ac__type_new_))
23432 return 0;
23433 ;
23434 return 0;
23435}
23436_ACEOF
23437rm -f conftest.$ac_objext
23438if { (ac_try="$ac_compile"
23439case "(($ac_try" in
23440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23441 *) ac_try_echo=$ac_try;;
23442esac
23443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23444 (eval "$ac_compile") 2>conftest.er1
23445 ac_status=$?
23446 grep -v '^ *+' conftest.er1 >conftest.err
23447 rm -f conftest.er1
23448 cat conftest.err >&5
23449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450 (exit $ac_status); } && {
23451 test -z "$ac_c_werror_flag" ||
23452 test ! -s conftest.err
23453 } && test -s conftest.$ac_objext; then
23454 ac_cv_type_sig_atomic_t=yes
23455else
23456 echo "$as_me: failed program was:" >&5
23457sed 's/^/| /' conftest.$ac_ext >&5
23458
23459 ac_cv_type_sig_atomic_t=no
23460fi
23461
23462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23463fi
23464{ echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
23465echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
23466if test $ac_cv_type_sig_atomic_t = yes; then
23467
23468cat >>confdefs.h <<_ACEOF
23469#define HAVE_SIG_ATOMIC_T 1
23470_ACEOF
23471
23472
23473fi
23474
23475{ echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
23476echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
23477if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
23478 echo $ECHO_N "(cached) $ECHO_C" >&6
23479else
23480 cat >conftest.$ac_ext <<_ACEOF
23481/* confdefs.h. */
23482_ACEOF
23483cat confdefs.h >>conftest.$ac_ext
23484cat >>conftest.$ac_ext <<_ACEOF
23485/* end confdefs.h. */
23486
23487#include <sys/types.h>
23488#ifdef HAVE_SYS_BITYPES_H
23489#include <sys/bitypes.h>
23490#endif
23491#ifdef HAVE_SYS_STATFS_H
23492#include <sys/statfs.h>
23493#endif
23494#ifdef HAVE_SYS_STATVFS_H
23495#include <sys/statvfs.h>
23496#endif
23497
23498
23499typedef fsblkcnt_t ac__type_new_;
23500int
23501main ()
23502{
23503if ((ac__type_new_ *) 0)
23504 return 0;
23505if (sizeof (ac__type_new_))
23506 return 0;
23507 ;
23508 return 0;
23509}
23510_ACEOF
23511rm -f conftest.$ac_objext
23512if { (ac_try="$ac_compile"
23513case "(($ac_try" in
23514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23515 *) ac_try_echo=$ac_try;;
23516esac
23517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23518 (eval "$ac_compile") 2>conftest.er1
23519 ac_status=$?
23520 grep -v '^ *+' conftest.er1 >conftest.err
23521 rm -f conftest.er1
23522 cat conftest.err >&5
23523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524 (exit $ac_status); } && {
23525 test -z "$ac_c_werror_flag" ||
23526 test ! -s conftest.err
23527 } && test -s conftest.$ac_objext; then
23528 ac_cv_type_fsblkcnt_t=yes
23529else
23530 echo "$as_me: failed program was:" >&5
23531sed 's/^/| /' conftest.$ac_ext >&5
23532
23533 ac_cv_type_fsblkcnt_t=no
23534fi
23535
23536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23537fi
23538{ echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
23539echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
23540if test $ac_cv_type_fsblkcnt_t = yes; then
23541
23542cat >>confdefs.h <<_ACEOF
23543#define HAVE_FSBLKCNT_T 1
23544_ACEOF
23545
23546
23547fi
23548{ echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
23549echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
23550if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
23551 echo $ECHO_N "(cached) $ECHO_C" >&6
23552else
23553 cat >conftest.$ac_ext <<_ACEOF
23554/* confdefs.h. */
23555_ACEOF
23556cat confdefs.h >>conftest.$ac_ext
23557cat >>conftest.$ac_ext <<_ACEOF
23558/* end confdefs.h. */
23559
23560#include <sys/types.h>
23561#ifdef HAVE_SYS_BITYPES_H
23562#include <sys/bitypes.h>
23563#endif
23564#ifdef HAVE_SYS_STATFS_H
23565#include <sys/statfs.h>
23566#endif
23567#ifdef HAVE_SYS_STATVFS_H
23568#include <sys/statvfs.h>
23569#endif
23570
23571
23572typedef fsfilcnt_t ac__type_new_;
23573int
23574main ()
23575{
23576if ((ac__type_new_ *) 0)
23577 return 0;
23578if (sizeof (ac__type_new_))
23579 return 0;
23580 ;
23581 return 0;
23582}
23583_ACEOF
23584rm -f conftest.$ac_objext
23585if { (ac_try="$ac_compile"
23586case "(($ac_try" in
23587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23588 *) ac_try_echo=$ac_try;;
23589esac
23590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23591 (eval "$ac_compile") 2>conftest.er1
23592 ac_status=$?
23593 grep -v '^ *+' conftest.er1 >conftest.err
23594 rm -f conftest.er1
23595 cat conftest.err >&5
23596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597 (exit $ac_status); } && {
23598 test -z "$ac_c_werror_flag" ||
23599 test ! -s conftest.err
23600 } && test -s conftest.$ac_objext; then
23601 ac_cv_type_fsfilcnt_t=yes
23602else
23603 echo "$as_me: failed program was:" >&5
23604sed 's/^/| /' conftest.$ac_ext >&5
23605
23606 ac_cv_type_fsfilcnt_t=no
23607fi
23608
23609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23610fi
23611{ echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
23612echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
23613if test $ac_cv_type_fsfilcnt_t = yes; then
23614
23615cat >>confdefs.h <<_ACEOF
23616#define HAVE_FSFILCNT_T 1
23617_ACEOF
23618
23619
23620fi
23621
23622
23623{ echo "$as_me:$LINENO: checking for in_addr_t" >&5
23624echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
23625if test "${ac_cv_type_in_addr_t+set}" = set; then
23626 echo $ECHO_N "(cached) $ECHO_C" >&6
23627else
23628 cat >conftest.$ac_ext <<_ACEOF
23629/* confdefs.h. */
23630_ACEOF
23631cat confdefs.h >>conftest.$ac_ext
23632cat >>conftest.$ac_ext <<_ACEOF
23633/* end confdefs.h. */
23634#include <sys/types.h>
23635#include <netinet/in.h>
23636
23637typedef in_addr_t ac__type_new_;
23638int
23639main ()
23640{
23641if ((ac__type_new_ *) 0)
23642 return 0;
23643if (sizeof (ac__type_new_))
23644 return 0;
23645 ;
23646 return 0;
23647}
23648_ACEOF
23649rm -f conftest.$ac_objext
23650if { (ac_try="$ac_compile"
23651case "(($ac_try" in
23652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23653 *) ac_try_echo=$ac_try;;
23654esac
23655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23656 (eval "$ac_compile") 2>conftest.er1
23657 ac_status=$?
23658 grep -v '^ *+' conftest.er1 >conftest.err
23659 rm -f conftest.er1
23660 cat conftest.err >&5
23661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662 (exit $ac_status); } && {
23663 test -z "$ac_c_werror_flag" ||
23664 test ! -s conftest.err
23665 } && test -s conftest.$ac_objext; then
23666 ac_cv_type_in_addr_t=yes
23667else
23668 echo "$as_me: failed program was:" >&5
23669sed 's/^/| /' conftest.$ac_ext >&5
23670
23671 ac_cv_type_in_addr_t=no
23672fi
23673
23674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23675fi
23676{ echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
23677echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; }
23678if test $ac_cv_type_in_addr_t = yes; then
23679
23680cat >>confdefs.h <<_ACEOF
23681#define HAVE_IN_ADDR_T 1
23682_ACEOF
23683
23684
23685fi
23686{ echo "$as_me:$LINENO: checking for in_port_t" >&5
23687echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; }
23688if test "${ac_cv_type_in_port_t+set}" = set; then
23689 echo $ECHO_N "(cached) $ECHO_C" >&6
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#include <sys/types.h>
23698#include <netinet/in.h>
23699
23700typedef in_port_t ac__type_new_;
23701int
23702main ()
23703{
23704if ((ac__type_new_ *) 0)
23705 return 0;
23706if (sizeof (ac__type_new_))
23707 return 0;
23708 ;
23709 return 0;
23710}
23711_ACEOF
23712rm -f conftest.$ac_objext
23713if { (ac_try="$ac_compile"
23714case "(($ac_try" in
23715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23716 *) ac_try_echo=$ac_try;;
23717esac
23718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23719 (eval "$ac_compile") 2>conftest.er1
23720 ac_status=$?
23721 grep -v '^ *+' conftest.er1 >conftest.err
23722 rm -f conftest.er1
23723 cat conftest.err >&5
23724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23725 (exit $ac_status); } && {
23726 test -z "$ac_c_werror_flag" ||
23727 test ! -s conftest.err
23728 } && test -s conftest.$ac_objext; then
23729 ac_cv_type_in_port_t=yes
23730else
23731 echo "$as_me: failed program was:" >&5
23732sed 's/^/| /' conftest.$ac_ext >&5
23733
23734 ac_cv_type_in_port_t=no
23735fi
23736
23737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23738fi
23739{ echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
23740echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; }
23741if test $ac_cv_type_in_port_t = yes; then
23742
23743cat >>confdefs.h <<_ACEOF
23744#define HAVE_IN_PORT_T 1
23745_ACEOF
23746
23747
23748fi
23749
23750
23751{ echo "$as_me:$LINENO: checking for size_t" >&5
23752echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23753if test "${ac_cv_have_size_t+set}" = set; then
23754 echo $ECHO_N "(cached) $ECHO_C" >&6
23755else
23756
23757 cat >conftest.$ac_ext <<_ACEOF
23758/* confdefs.h. */
23759_ACEOF
23760cat confdefs.h >>conftest.$ac_ext
23761cat >>conftest.$ac_ext <<_ACEOF
23762/* end confdefs.h. */
23763
23764#include <sys/types.h>
23765
23766int
23767main ()
23768{
23769 size_t foo; foo = 1235;
23770 ;
23771 return 0;
23772}
23773_ACEOF
23774rm -f conftest.$ac_objext
23775if { (ac_try="$ac_compile"
23776case "(($ac_try" in
23777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23778 *) ac_try_echo=$ac_try;;
23779esac
23780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23781 (eval "$ac_compile") 2>conftest.er1
23782 ac_status=$?
23783 grep -v '^ *+' conftest.er1 >conftest.err
23784 rm -f conftest.er1
23785 cat conftest.err >&5
23786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23787 (exit $ac_status); } && {
23788 test -z "$ac_c_werror_flag" ||
23789 test ! -s conftest.err
23790 } && test -s conftest.$ac_objext; then
23791 ac_cv_have_size_t="yes"
23792else
23793 echo "$as_me: failed program was:" >&5
23794sed 's/^/| /' conftest.$ac_ext >&5
23795
23796 ac_cv_have_size_t="no"
23797
23798fi
23799
23800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23801
23802fi
23803{ echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
23804echo "${ECHO_T}$ac_cv_have_size_t" >&6; }
23805if test "x$ac_cv_have_size_t" = "xyes" ; then
23806
23807cat >>confdefs.h <<\_ACEOF
23808#define HAVE_SIZE_T 1
23809_ACEOF
23810
23811fi
23812
23813{ echo "$as_me:$LINENO: checking for ssize_t" >&5
23814echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
23815if test "${ac_cv_have_ssize_t+set}" = set; then
23816 echo $ECHO_N "(cached) $ECHO_C" >&6
23817else
23818
23819 cat >conftest.$ac_ext <<_ACEOF
23820/* confdefs.h. */
23821_ACEOF
23822cat confdefs.h >>conftest.$ac_ext
23823cat >>conftest.$ac_ext <<_ACEOF
23824/* end confdefs.h. */
23825
23826#include <sys/types.h>
23827
23828int
23829main ()
23830{
23831 ssize_t foo; foo = 1235;
23832 ;
23833 return 0;
23834}
23835_ACEOF
23836rm -f conftest.$ac_objext
23837if { (ac_try="$ac_compile"
23838case "(($ac_try" in
23839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23840 *) ac_try_echo=$ac_try;;
23841esac
23842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23843 (eval "$ac_compile") 2>conftest.er1
23844 ac_status=$?
23845 grep -v '^ *+' conftest.er1 >conftest.err
23846 rm -f conftest.er1
23847 cat conftest.err >&5
23848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23849 (exit $ac_status); } && {
23850 test -z "$ac_c_werror_flag" ||
23851 test ! -s conftest.err
23852 } && test -s conftest.$ac_objext; then
23853 ac_cv_have_ssize_t="yes"
23854else
23855 echo "$as_me: failed program was:" >&5
23856sed 's/^/| /' conftest.$ac_ext >&5
23857
23858 ac_cv_have_ssize_t="no"
23859
23860fi
23861
23862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23863
23864fi
23865{ echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
23866echo "${ECHO_T}$ac_cv_have_ssize_t" >&6; }
23867if test "x$ac_cv_have_ssize_t" = "xyes" ; then
23868
23869cat >>confdefs.h <<\_ACEOF
23870#define HAVE_SSIZE_T 1
23871_ACEOF
23872
23873fi
23874
23875{ echo "$as_me:$LINENO: checking for clock_t" >&5
23876echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
23877if test "${ac_cv_have_clock_t+set}" = set; then
23878 echo $ECHO_N "(cached) $ECHO_C" >&6
23879else
23880
23881 cat >conftest.$ac_ext <<_ACEOF
23882/* confdefs.h. */
23883_ACEOF
23884cat confdefs.h >>conftest.$ac_ext
23885cat >>conftest.$ac_ext <<_ACEOF
23886/* end confdefs.h. */
23887
23888#include <time.h>
23889
23890int
23891main ()
23892{
23893 clock_t foo; foo = 1235;
23894 ;
23895 return 0;
23896}
23897_ACEOF
23898rm -f conftest.$ac_objext
23899if { (ac_try="$ac_compile"
23900case "(($ac_try" in
23901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23902 *) ac_try_echo=$ac_try;;
23903esac
23904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23905 (eval "$ac_compile") 2>conftest.er1
23906 ac_status=$?
23907 grep -v '^ *+' conftest.er1 >conftest.err
23908 rm -f conftest.er1
23909 cat conftest.err >&5
23910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23911 (exit $ac_status); } && {
23912 test -z "$ac_c_werror_flag" ||
23913 test ! -s conftest.err
23914 } && test -s conftest.$ac_objext; then
23915 ac_cv_have_clock_t="yes"
23916else
23917 echo "$as_me: failed program was:" >&5
23918sed 's/^/| /' conftest.$ac_ext >&5
23919
23920 ac_cv_have_clock_t="no"
23921
23922fi
23923
23924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23925
23926fi
23927{ echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
23928echo "${ECHO_T}$ac_cv_have_clock_t" >&6; }
23929if test "x$ac_cv_have_clock_t" = "xyes" ; then
23930
23931cat >>confdefs.h <<\_ACEOF
23932#define HAVE_CLOCK_T 1
23933_ACEOF
23934
23935fi
23936
23937{ echo "$as_me:$LINENO: checking for sa_family_t" >&5
23938echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
23939if test "${ac_cv_have_sa_family_t+set}" = set; then
23940 echo $ECHO_N "(cached) $ECHO_C" >&6
23941else
23942
23943 cat >conftest.$ac_ext <<_ACEOF
23944/* confdefs.h. */
23945_ACEOF
23946cat confdefs.h >>conftest.$ac_ext
23947cat >>conftest.$ac_ext <<_ACEOF
23948/* end confdefs.h. */
23949
23950#include <sys/types.h>
23951#include <sys/socket.h>
23952
23953int
23954main ()
23955{
23956 sa_family_t foo; foo = 1235;
23957 ;
23958 return 0;
23959}
23960_ACEOF
23961rm -f conftest.$ac_objext
23962if { (ac_try="$ac_compile"
23963case "(($ac_try" in
23964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23965 *) ac_try_echo=$ac_try;;
23966esac
23967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23968 (eval "$ac_compile") 2>conftest.er1
23969 ac_status=$?
23970 grep -v '^ *+' conftest.er1 >conftest.err
23971 rm -f conftest.er1
23972 cat conftest.err >&5
23973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974 (exit $ac_status); } && {
23975 test -z "$ac_c_werror_flag" ||
23976 test ! -s conftest.err
23977 } && test -s conftest.$ac_objext; then
23978 ac_cv_have_sa_family_t="yes"
23979else
23980 echo "$as_me: failed program was:" >&5
23981sed 's/^/| /' conftest.$ac_ext >&5
23982
23983 cat >conftest.$ac_ext <<_ACEOF
23984/* confdefs.h. */
23985_ACEOF
23986cat confdefs.h >>conftest.$ac_ext
23987cat >>conftest.$ac_ext <<_ACEOF
23988/* end confdefs.h. */
23989
23990#include <sys/types.h>
23991#include <sys/socket.h>
23992#include <netinet/in.h>
23993
23994int
23995main ()
23996{
23997 sa_family_t foo; foo = 1235;
23998 ;
23999 return 0;
24000}
24001_ACEOF
24002rm -f conftest.$ac_objext
24003if { (ac_try="$ac_compile"
24004case "(($ac_try" in
24005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24006 *) ac_try_echo=$ac_try;;
24007esac
24008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24009 (eval "$ac_compile") 2>conftest.er1
24010 ac_status=$?
24011 grep -v '^ *+' conftest.er1 >conftest.err
24012 rm -f conftest.er1
24013 cat conftest.err >&5
24014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24015 (exit $ac_status); } && {
24016 test -z "$ac_c_werror_flag" ||
24017 test ! -s conftest.err
24018 } && test -s conftest.$ac_objext; then
24019 ac_cv_have_sa_family_t="yes"
24020else
24021 echo "$as_me: failed program was:" >&5
24022sed 's/^/| /' conftest.$ac_ext >&5
24023
24024 ac_cv_have_sa_family_t="no"
24025
24026fi
24027
24028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24029
24030fi
24031
24032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24033
24034fi
24035{ echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
24036echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6; }
24037if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
24038
24039cat >>confdefs.h <<\_ACEOF
24040#define HAVE_SA_FAMILY_T 1
24041_ACEOF
24042
24043fi
24044
24045{ echo "$as_me:$LINENO: checking for pid_t" >&5
24046echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24047if test "${ac_cv_have_pid_t+set}" = set; then
24048 echo $ECHO_N "(cached) $ECHO_C" >&6
24049else
24050
24051 cat >conftest.$ac_ext <<_ACEOF
24052/* confdefs.h. */
24053_ACEOF
24054cat confdefs.h >>conftest.$ac_ext
24055cat >>conftest.$ac_ext <<_ACEOF
24056/* end confdefs.h. */
24057
24058#include <sys/types.h>
24059
24060int
24061main ()
24062{
24063 pid_t foo; foo = 1235;
24064 ;
24065 return 0;
24066}
24067_ACEOF
24068rm -f conftest.$ac_objext
24069if { (ac_try="$ac_compile"
24070case "(($ac_try" in
24071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24072 *) ac_try_echo=$ac_try;;
24073esac
24074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24075 (eval "$ac_compile") 2>conftest.er1
24076 ac_status=$?
24077 grep -v '^ *+' conftest.er1 >conftest.err
24078 rm -f conftest.er1
24079 cat conftest.err >&5
24080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24081 (exit $ac_status); } && {
24082 test -z "$ac_c_werror_flag" ||
24083 test ! -s conftest.err
24084 } && test -s conftest.$ac_objext; then
24085 ac_cv_have_pid_t="yes"
24086else
24087 echo "$as_me: failed program was:" >&5
24088sed 's/^/| /' conftest.$ac_ext >&5
24089
24090 ac_cv_have_pid_t="no"
24091
24092fi
24093
24094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24095
24096fi
24097{ echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
24098echo "${ECHO_T}$ac_cv_have_pid_t" >&6; }
24099if test "x$ac_cv_have_pid_t" = "xyes" ; then
24100
24101cat >>confdefs.h <<\_ACEOF
24102#define HAVE_PID_T 1
24103_ACEOF
24104
24105fi
24106
24107{ echo "$as_me:$LINENO: checking for mode_t" >&5
24108echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
24109if test "${ac_cv_have_mode_t+set}" = set; then
24110 echo $ECHO_N "(cached) $ECHO_C" >&6
24111else
24112
24113 cat >conftest.$ac_ext <<_ACEOF
24114/* confdefs.h. */
24115_ACEOF
24116cat confdefs.h >>conftest.$ac_ext
24117cat >>conftest.$ac_ext <<_ACEOF
24118/* end confdefs.h. */
24119
24120#include <sys/types.h>
24121
24122int
24123main ()
24124{
24125 mode_t foo; foo = 1235;
24126 ;
24127 return 0;
24128}
24129_ACEOF
24130rm -f conftest.$ac_objext
24131if { (ac_try="$ac_compile"
24132case "(($ac_try" in
24133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24134 *) ac_try_echo=$ac_try;;
24135esac
24136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24137 (eval "$ac_compile") 2>conftest.er1
24138 ac_status=$?
24139 grep -v '^ *+' conftest.er1 >conftest.err
24140 rm -f conftest.er1
24141 cat conftest.err >&5
24142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24143 (exit $ac_status); } && {
24144 test -z "$ac_c_werror_flag" ||
24145 test ! -s conftest.err
24146 } && test -s conftest.$ac_objext; then
24147 ac_cv_have_mode_t="yes"
24148else
24149 echo "$as_me: failed program was:" >&5
24150sed 's/^/| /' conftest.$ac_ext >&5
24151
24152 ac_cv_have_mode_t="no"
24153
24154fi
24155
24156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24157
24158fi
24159{ echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
24160echo "${ECHO_T}$ac_cv_have_mode_t" >&6; }
24161if test "x$ac_cv_have_mode_t" = "xyes" ; then
24162
24163cat >>confdefs.h <<\_ACEOF
24164#define HAVE_MODE_T 1
24165_ACEOF
24166
24167fi
24168
24169
24170{ echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
24171echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
24172if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
24173 echo $ECHO_N "(cached) $ECHO_C" >&6
24174else
24175
24176 cat >conftest.$ac_ext <<_ACEOF
24177/* confdefs.h. */
24178_ACEOF
24179cat confdefs.h >>conftest.$ac_ext
24180cat >>conftest.$ac_ext <<_ACEOF
24181/* end confdefs.h. */
24182
24183#include <sys/types.h>
24184#include <sys/socket.h>
24185
24186int
24187main ()
24188{
24189 struct sockaddr_storage s;
24190 ;
24191 return 0;
24192}
24193_ACEOF
24194rm -f conftest.$ac_objext
24195if { (ac_try="$ac_compile"
24196case "(($ac_try" in
24197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24198 *) ac_try_echo=$ac_try;;
24199esac
24200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24201 (eval "$ac_compile") 2>conftest.er1
24202 ac_status=$?
24203 grep -v '^ *+' conftest.er1 >conftest.err
24204 rm -f conftest.er1
24205 cat conftest.err >&5
24206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207 (exit $ac_status); } && {
24208 test -z "$ac_c_werror_flag" ||
24209 test ! -s conftest.err
24210 } && test -s conftest.$ac_objext; then
24211 ac_cv_have_struct_sockaddr_storage="yes"
24212else
24213 echo "$as_me: failed program was:" >&5
24214sed 's/^/| /' conftest.$ac_ext >&5
24215
24216 ac_cv_have_struct_sockaddr_storage="no"
24217
24218fi
24219
24220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24221
24222fi
24223{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
24224echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6; }
24225if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
24226
24227cat >>confdefs.h <<\_ACEOF
24228#define HAVE_STRUCT_SOCKADDR_STORAGE 1
24229_ACEOF
24230
24231fi
24232
24233{ echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
24234echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
24235if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
24236 echo $ECHO_N "(cached) $ECHO_C" >&6
24237else
24238
24239 cat >conftest.$ac_ext <<_ACEOF
24240/* confdefs.h. */
24241_ACEOF
24242cat confdefs.h >>conftest.$ac_ext
24243cat >>conftest.$ac_ext <<_ACEOF
24244/* end confdefs.h. */
24245
24246#include <sys/types.h>
24247#include <netinet/in.h>
24248
24249int
24250main ()
24251{
24252 struct sockaddr_in6 s; s.sin6_family = 0;
24253 ;
24254 return 0;
24255}
24256_ACEOF
24257rm -f conftest.$ac_objext
24258if { (ac_try="$ac_compile"
24259case "(($ac_try" in
24260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24261 *) ac_try_echo=$ac_try;;
24262esac
24263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24264 (eval "$ac_compile") 2>conftest.er1
24265 ac_status=$?
24266 grep -v '^ *+' conftest.er1 >conftest.err
24267 rm -f conftest.er1
24268 cat conftest.err >&5
24269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270 (exit $ac_status); } && {
24271 test -z "$ac_c_werror_flag" ||
24272 test ! -s conftest.err
24273 } && test -s conftest.$ac_objext; then
24274 ac_cv_have_struct_sockaddr_in6="yes"
24275else
24276 echo "$as_me: failed program was:" >&5
24277sed 's/^/| /' conftest.$ac_ext >&5
24278
24279 ac_cv_have_struct_sockaddr_in6="no"
24280
24281fi
24282
24283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24284
24285fi
24286{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
24287echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6; }
24288if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
24289
24290cat >>confdefs.h <<\_ACEOF
24291#define HAVE_STRUCT_SOCKADDR_IN6 1
24292_ACEOF
24293
24294fi
24295
24296{ echo "$as_me:$LINENO: checking for struct in6_addr" >&5
24297echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
24298if test "${ac_cv_have_struct_in6_addr+set}" = set; then
24299 echo $ECHO_N "(cached) $ECHO_C" >&6
24300else
24301
24302 cat >conftest.$ac_ext <<_ACEOF
24303/* confdefs.h. */
24304_ACEOF
24305cat confdefs.h >>conftest.$ac_ext
24306cat >>conftest.$ac_ext <<_ACEOF
24307/* end confdefs.h. */
24308
24309#include <sys/types.h>
24310#include <netinet/in.h>
24311
24312int
24313main ()
24314{
24315 struct in6_addr s; s.s6_addr[0] = 0;
24316 ;
24317 return 0;
24318}
24319_ACEOF
24320rm -f conftest.$ac_objext
24321if { (ac_try="$ac_compile"
24322case "(($ac_try" in
24323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24324 *) ac_try_echo=$ac_try;;
24325esac
24326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24327 (eval "$ac_compile") 2>conftest.er1
24328 ac_status=$?
24329 grep -v '^ *+' conftest.er1 >conftest.err
24330 rm -f conftest.er1
24331 cat conftest.err >&5
24332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24333 (exit $ac_status); } && {
24334 test -z "$ac_c_werror_flag" ||
24335 test ! -s conftest.err
24336 } && test -s conftest.$ac_objext; then
24337 ac_cv_have_struct_in6_addr="yes"
24338else
24339 echo "$as_me: failed program was:" >&5
24340sed 's/^/| /' conftest.$ac_ext >&5
24341
24342 ac_cv_have_struct_in6_addr="no"
24343
24344fi
24345
24346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24347
24348fi
24349{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
24350echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6; }
24351if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
24352
24353cat >>confdefs.h <<\_ACEOF
24354#define HAVE_STRUCT_IN6_ADDR 1
24355_ACEOF
24356
24357
24358 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
24359echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
24360if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
24361 echo $ECHO_N "(cached) $ECHO_C" >&6
24362else
24363 cat >conftest.$ac_ext <<_ACEOF
24364/* confdefs.h. */
24365_ACEOF
24366cat confdefs.h >>conftest.$ac_ext
24367cat >>conftest.$ac_ext <<_ACEOF
24368/* end confdefs.h. */
24369
24370#ifdef HAVE_SYS_TYPES_H
24371#include <sys/types.h>
24372#endif
24373#include <netinet/in.h>
24374
24375
24376int
24377main ()
24378{
24379static struct sockaddr_in6 ac_aggr;
24380if (ac_aggr.sin6_scope_id)
24381return 0;
24382 ;
24383 return 0;
24384}
24385_ACEOF
24386rm -f conftest.$ac_objext
24387if { (ac_try="$ac_compile"
24388case "(($ac_try" in
24389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24390 *) ac_try_echo=$ac_try;;
24391esac
24392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24393 (eval "$ac_compile") 2>conftest.er1
24394 ac_status=$?
24395 grep -v '^ *+' conftest.er1 >conftest.err
24396 rm -f conftest.er1
24397 cat conftest.err >&5
24398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24399 (exit $ac_status); } && {
24400 test -z "$ac_c_werror_flag" ||
24401 test ! -s conftest.err
24402 } && test -s conftest.$ac_objext; then
24403 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
24404else
24405 echo "$as_me: failed program was:" >&5
24406sed 's/^/| /' conftest.$ac_ext >&5
24407
24408 cat >conftest.$ac_ext <<_ACEOF
24409/* confdefs.h. */
24410_ACEOF
24411cat confdefs.h >>conftest.$ac_ext
24412cat >>conftest.$ac_ext <<_ACEOF
24413/* end confdefs.h. */
24414
24415#ifdef HAVE_SYS_TYPES_H
24416#include <sys/types.h>
24417#endif
24418#include <netinet/in.h>
24419
24420
24421int
24422main ()
24423{
24424static struct sockaddr_in6 ac_aggr;
24425if (sizeof ac_aggr.sin6_scope_id)
24426return 0;
24427 ;
24428 return 0;
24429}
24430_ACEOF
24431rm -f conftest.$ac_objext
24432if { (ac_try="$ac_compile"
24433case "(($ac_try" in
24434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24435 *) ac_try_echo=$ac_try;;
24436esac
24437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24438 (eval "$ac_compile") 2>conftest.er1
24439 ac_status=$?
24440 grep -v '^ *+' conftest.er1 >conftest.err
24441 rm -f conftest.er1
24442 cat conftest.err >&5
24443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24444 (exit $ac_status); } && {
24445 test -z "$ac_c_werror_flag" ||
24446 test ! -s conftest.err
24447 } && test -s conftest.$ac_objext; then
24448 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
24449else
24450 echo "$as_me: failed program was:" >&5
24451sed 's/^/| /' conftest.$ac_ext >&5
24452
24453 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
24454fi
24455
24456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24457fi
24458
24459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24460fi
24461{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
24462echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
24463if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
24464
24465cat >>confdefs.h <<_ACEOF
24466#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
24467_ACEOF
24468
24469
24470fi
24471
24472fi
24473
24474{ echo "$as_me:$LINENO: checking for struct addrinfo" >&5
24475echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
24476if test "${ac_cv_have_struct_addrinfo+set}" = set; then
24477 echo $ECHO_N "(cached) $ECHO_C" >&6
24478else
24479
24480 cat >conftest.$ac_ext <<_ACEOF
24481/* confdefs.h. */
24482_ACEOF
24483cat confdefs.h >>conftest.$ac_ext
24484cat >>conftest.$ac_ext <<_ACEOF
24485/* end confdefs.h. */
24486
24487#include <sys/types.h>
24488#include <sys/socket.h>
24489#include <netdb.h>
24490
24491int
24492main ()
24493{
24494 struct addrinfo s; s.ai_flags = AI_PASSIVE;
24495 ;
24496 return 0;
24497}
24498_ACEOF
24499rm -f conftest.$ac_objext
24500if { (ac_try="$ac_compile"
24501case "(($ac_try" in
24502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24503 *) ac_try_echo=$ac_try;;
24504esac
24505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24506 (eval "$ac_compile") 2>conftest.er1
24507 ac_status=$?
24508 grep -v '^ *+' conftest.er1 >conftest.err
24509 rm -f conftest.er1
24510 cat conftest.err >&5
24511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24512 (exit $ac_status); } && {
24513 test -z "$ac_c_werror_flag" ||
24514 test ! -s conftest.err
24515 } && test -s conftest.$ac_objext; then
24516 ac_cv_have_struct_addrinfo="yes"
24517else
24518 echo "$as_me: failed program was:" >&5
24519sed 's/^/| /' conftest.$ac_ext >&5
24520
24521 ac_cv_have_struct_addrinfo="no"
24522
24523fi
24524
24525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24526
24527fi
24528{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
24529echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6; }
24530if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
24531
24532cat >>confdefs.h <<\_ACEOF
24533#define HAVE_STRUCT_ADDRINFO 1
24534_ACEOF
24535
24536fi
24537
24538{ echo "$as_me:$LINENO: checking for struct timeval" >&5
24539echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
24540if test "${ac_cv_have_struct_timeval+set}" = set; then
24541 echo $ECHO_N "(cached) $ECHO_C" >&6
24542else
24543
24544 cat >conftest.$ac_ext <<_ACEOF
24545/* confdefs.h. */
24546_ACEOF
24547cat confdefs.h >>conftest.$ac_ext
24548cat >>conftest.$ac_ext <<_ACEOF
24549/* end confdefs.h. */
24550 #include <sys/time.h>
24551int
24552main ()
24553{
24554 struct timeval tv; tv.tv_sec = 1;
24555 ;
24556 return 0;
24557}
24558_ACEOF
24559rm -f conftest.$ac_objext
24560if { (ac_try="$ac_compile"
24561case "(($ac_try" in
24562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24563 *) ac_try_echo=$ac_try;;
24564esac
24565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24566 (eval "$ac_compile") 2>conftest.er1
24567 ac_status=$?
24568 grep -v '^ *+' conftest.er1 >conftest.err
24569 rm -f conftest.er1
24570 cat conftest.err >&5
24571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24572 (exit $ac_status); } && {
24573 test -z "$ac_c_werror_flag" ||
24574 test ! -s conftest.err
24575 } && test -s conftest.$ac_objext; then
24576 ac_cv_have_struct_timeval="yes"
24577else
24578 echo "$as_me: failed program was:" >&5
24579sed 's/^/| /' conftest.$ac_ext >&5
24580
24581 ac_cv_have_struct_timeval="no"
24582
24583fi
24584
24585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24586
24587fi
24588{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
24589echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6; }
24590if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
24591
24592cat >>confdefs.h <<\_ACEOF
24593#define HAVE_STRUCT_TIMEVAL 1
24594_ACEOF
24595
24596 have_struct_timeval=1
24597fi
24598
24599{ echo "$as_me:$LINENO: checking for struct timespec" >&5
24600echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
24601if test "${ac_cv_type_struct_timespec+set}" = set; then
24602 echo $ECHO_N "(cached) $ECHO_C" >&6
24603else
24604 cat >conftest.$ac_ext <<_ACEOF
24605/* confdefs.h. */
24606_ACEOF
24607cat confdefs.h >>conftest.$ac_ext
24608cat >>conftest.$ac_ext <<_ACEOF
24609/* end confdefs.h. */
24610$ac_includes_default
24611typedef struct timespec ac__type_new_;
24612int
24613main ()
24614{
24615if ((ac__type_new_ *) 0)
24616 return 0;
24617if (sizeof (ac__type_new_))
24618 return 0;
24619 ;
24620 return 0;
24621}
24622_ACEOF
24623rm -f conftest.$ac_objext
24624if { (ac_try="$ac_compile"
24625case "(($ac_try" in
24626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24627 *) ac_try_echo=$ac_try;;
24628esac
24629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24630 (eval "$ac_compile") 2>conftest.er1
24631 ac_status=$?
24632 grep -v '^ *+' conftest.er1 >conftest.err
24633 rm -f conftest.er1
24634 cat conftest.err >&5
24635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24636 (exit $ac_status); } && {
24637 test -z "$ac_c_werror_flag" ||
24638 test ! -s conftest.err
24639 } && test -s conftest.$ac_objext; then
24640 ac_cv_type_struct_timespec=yes
24641else
24642 echo "$as_me: failed program was:" >&5
24643sed 's/^/| /' conftest.$ac_ext >&5
24644
24645 ac_cv_type_struct_timespec=no
24646fi
24647
24648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24649fi
24650{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
24651echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
24652if test $ac_cv_type_struct_timespec = yes; then
24653
24654cat >>confdefs.h <<_ACEOF
24655#define HAVE_STRUCT_TIMESPEC 1
24656_ACEOF
24657
24658
24659fi
24660
24661
24662# We need int64_t or else certian parts of the compile will fail.
24663if test "x$ac_cv_have_int64_t" = "xno" && \
24664 test "x$ac_cv_sizeof_long_int" != "x8" && \
24665 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
24666 echo "OpenSSH requires int64_t support. Contact your vendor or install"
24667 echo "an alternative compiler (I.E., GCC) before continuing."
24668 echo ""
24669 exit 1;
24670else
24671 if test "$cross_compiling" = yes; then
24672 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
24673echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
24674
24675else
24676 cat >conftest.$ac_ext <<_ACEOF
24677/* confdefs.h. */
24678_ACEOF
24679cat confdefs.h >>conftest.$ac_ext
24680cat >>conftest.$ac_ext <<_ACEOF
24681/* end confdefs.h. */
24682
24683#include <stdio.h>
24684#include <string.h>
24685#ifdef HAVE_SNPRINTF
24686main()
24687{
24688 char buf[50];
24689 char expected_out[50];
24690 int mazsize = 50 ;
24691#if (SIZEOF_LONG_INT == 8)
24692 long int num = 0x7fffffffffffffff;
24693#else
24694 long long num = 0x7fffffffffffffffll;
24695#endif
24696 strcpy(expected_out, "9223372036854775807");
24697 snprintf(buf, mazsize, "%lld", num);
24698 if(strcmp(buf, expected_out) != 0)
24699 exit(1);
24700 exit(0);
24701}
24702#else
24703main() { exit(0); }
24704#endif
24705
24706_ACEOF
24707rm -f conftest$ac_exeext
24708if { (ac_try="$ac_link"
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_link") 2>&5
24715 ac_status=$?
24716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24718 { (case "(($ac_try" in
24719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24720 *) ac_try_echo=$ac_try;;
24721esac
24722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24723 (eval "$ac_try") 2>&5
24724 ac_status=$?
24725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726 (exit $ac_status); }; }; then
24727 true
24728else
24729 echo "$as_me: program exited with status $ac_status" >&5
24730echo "$as_me: failed program was:" >&5
24731sed 's/^/| /' conftest.$ac_ext >&5
24732
24733( exit $ac_status )
24734 cat >>confdefs.h <<\_ACEOF
24735#define BROKEN_SNPRINTF 1
24736_ACEOF
24737
24738fi
24739rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24740fi
24741
24742
24743fi
24744
24745
24746# look for field 'ut_host' in header 'utmp.h'
24747 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
24748 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
24749 { echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
24750echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6; }
24751 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24752 echo $ECHO_N "(cached) $ECHO_C" >&6
24753else
24754
24755 cat >conftest.$ac_ext <<_ACEOF
24756/* confdefs.h. */
24757_ACEOF
24758cat confdefs.h >>conftest.$ac_ext
24759cat >>conftest.$ac_ext <<_ACEOF
24760/* end confdefs.h. */
24761#include <utmp.h>
24762
24763_ACEOF
24764if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24765 $EGREP "ut_host" >/dev/null 2>&1; then
24766 eval "$ossh_varname=yes"
24767else
24768 eval "$ossh_varname=no"
24769fi
24770rm -f conftest*
24771
24772fi
24773
24774 ossh_result=`eval 'echo $'"$ossh_varname"`
24775 if test -n "`echo $ossh_varname`"; then
24776 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24777echo "${ECHO_T}$ossh_result" >&6; }
24778 if test "x$ossh_result" = "xyes"; then
24779
24780cat >>confdefs.h <<\_ACEOF
24781#define HAVE_HOST_IN_UTMP 1
24782_ACEOF
24783
24784 fi
24785 else
24786 { echo "$as_me:$LINENO: result: no" >&5
24787echo "${ECHO_T}no" >&6; }
24788 fi
24789
24790
24791# look for field 'ut_host' in header 'utmpx.h'
24792 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
24793 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
24794 { echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
24795echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6; }
24796 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24797 echo $ECHO_N "(cached) $ECHO_C" >&6
24798else
24799
24800 cat >conftest.$ac_ext <<_ACEOF
24801/* confdefs.h. */
24802_ACEOF
24803cat confdefs.h >>conftest.$ac_ext
24804cat >>conftest.$ac_ext <<_ACEOF
24805/* end confdefs.h. */
24806#include <utmpx.h>
24807
24808_ACEOF
24809if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24810 $EGREP "ut_host" >/dev/null 2>&1; then
24811 eval "$ossh_varname=yes"
24812else
24813 eval "$ossh_varname=no"
24814fi
24815rm -f conftest*
24816
24817fi
24818
24819 ossh_result=`eval 'echo $'"$ossh_varname"`
24820 if test -n "`echo $ossh_varname`"; then
24821 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24822echo "${ECHO_T}$ossh_result" >&6; }
24823 if test "x$ossh_result" = "xyes"; then
24824
24825cat >>confdefs.h <<\_ACEOF
24826#define HAVE_HOST_IN_UTMPX 1
24827_ACEOF
24828
24829 fi
24830 else
24831 { echo "$as_me:$LINENO: result: no" >&5
24832echo "${ECHO_T}no" >&6; }
24833 fi
24834
24835
24836# look for field 'syslen' in header 'utmpx.h'
24837 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
24838 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
24839 { echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
24840echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6; }
24841 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24842 echo $ECHO_N "(cached) $ECHO_C" >&6
24843else
24844
24845 cat >conftest.$ac_ext <<_ACEOF
24846/* confdefs.h. */
24847_ACEOF
24848cat confdefs.h >>conftest.$ac_ext
24849cat >>conftest.$ac_ext <<_ACEOF
24850/* end confdefs.h. */
24851#include <utmpx.h>
24852
24853_ACEOF
24854if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24855 $EGREP "syslen" >/dev/null 2>&1; then
24856 eval "$ossh_varname=yes"
24857else
24858 eval "$ossh_varname=no"
24859fi
24860rm -f conftest*
24861
24862fi
24863
24864 ossh_result=`eval 'echo $'"$ossh_varname"`
24865 if test -n "`echo $ossh_varname`"; then
24866 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24867echo "${ECHO_T}$ossh_result" >&6; }
24868 if test "x$ossh_result" = "xyes"; then
24869
24870cat >>confdefs.h <<\_ACEOF
24871#define HAVE_SYSLEN_IN_UTMPX 1
24872_ACEOF
24873
24874 fi
24875 else
24876 { echo "$as_me:$LINENO: result: no" >&5
24877echo "${ECHO_T}no" >&6; }
24878 fi
24879
24880
24881# look for field 'ut_pid' in header 'utmp.h'
24882 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
24883 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
24884 { echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
24885echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6; }
24886 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24887 echo $ECHO_N "(cached) $ECHO_C" >&6
24888else
24889
24890 cat >conftest.$ac_ext <<_ACEOF
24891/* confdefs.h. */
24892_ACEOF
24893cat confdefs.h >>conftest.$ac_ext
24894cat >>conftest.$ac_ext <<_ACEOF
24895/* end confdefs.h. */
24896#include <utmp.h>
24897
24898_ACEOF
24899if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24900 $EGREP "ut_pid" >/dev/null 2>&1; then
24901 eval "$ossh_varname=yes"
24902else
24903 eval "$ossh_varname=no"
24904fi
24905rm -f conftest*
24906
24907fi
24908
24909 ossh_result=`eval 'echo $'"$ossh_varname"`
24910 if test -n "`echo $ossh_varname`"; then
24911 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24912echo "${ECHO_T}$ossh_result" >&6; }
24913 if test "x$ossh_result" = "xyes"; then
24914
24915cat >>confdefs.h <<\_ACEOF
24916#define HAVE_PID_IN_UTMP 1
24917_ACEOF
24918
24919 fi
24920 else
24921 { echo "$as_me:$LINENO: result: no" >&5
24922echo "${ECHO_T}no" >&6; }
24923 fi
24924
24925
24926# look for field 'ut_type' in header 'utmp.h'
24927 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
24928 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
24929 { echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
24930echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6; }
24931 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24932 echo $ECHO_N "(cached) $ECHO_C" >&6
24933else
24934
24935 cat >conftest.$ac_ext <<_ACEOF
24936/* confdefs.h. */
24937_ACEOF
24938cat confdefs.h >>conftest.$ac_ext
24939cat >>conftest.$ac_ext <<_ACEOF
24940/* end confdefs.h. */
24941#include <utmp.h>
24942
24943_ACEOF
24944if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24945 $EGREP "ut_type" >/dev/null 2>&1; then
24946 eval "$ossh_varname=yes"
24947else
24948 eval "$ossh_varname=no"
24949fi
24950rm -f conftest*
24951
24952fi
24953
24954 ossh_result=`eval 'echo $'"$ossh_varname"`
24955 if test -n "`echo $ossh_varname`"; then
24956 { echo "$as_me:$LINENO: result: $ossh_result" >&5
24957echo "${ECHO_T}$ossh_result" >&6; }
24958 if test "x$ossh_result" = "xyes"; then
24959
24960cat >>confdefs.h <<\_ACEOF
24961#define HAVE_TYPE_IN_UTMP 1
24962_ACEOF
24963
24964 fi
24965 else
24966 { echo "$as_me:$LINENO: result: no" >&5
24967echo "${ECHO_T}no" >&6; }
24968 fi
24969
24970
24971# look for field 'ut_type' in header 'utmpx.h'
24972 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
24973 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
24974 { echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
24975echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6; }
24976 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24977 echo $ECHO_N "(cached) $ECHO_C" >&6
24978else
24979
24980 cat >conftest.$ac_ext <<_ACEOF
24981/* confdefs.h. */
24982_ACEOF
24983cat confdefs.h >>conftest.$ac_ext
24984cat >>conftest.$ac_ext <<_ACEOF
24985/* end confdefs.h. */
24986#include <utmpx.h>
24987
24988_ACEOF
24989if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24990 $EGREP "ut_type" >/dev/null 2>&1; then
24991 eval "$ossh_varname=yes"
24992else
24993 eval "$ossh_varname=no"
24994fi
24995rm -f conftest*
24996
24997fi
24998
24999 ossh_result=`eval 'echo $'"$ossh_varname"`
25000 if test -n "`echo $ossh_varname`"; then
25001 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25002echo "${ECHO_T}$ossh_result" >&6; }
25003 if test "x$ossh_result" = "xyes"; then
25004
25005cat >>confdefs.h <<\_ACEOF
25006#define HAVE_TYPE_IN_UTMPX 1
25007_ACEOF
25008
25009 fi
25010 else
25011 { echo "$as_me:$LINENO: result: no" >&5
25012echo "${ECHO_T}no" >&6; }
25013 fi
25014
25015
25016# look for field 'ut_tv' in header 'utmp.h'
25017 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25018 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
25019 { echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
25020echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6; }
25021 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25022 echo $ECHO_N "(cached) $ECHO_C" >&6
25023else
25024
25025 cat >conftest.$ac_ext <<_ACEOF
25026/* confdefs.h. */
25027_ACEOF
25028cat confdefs.h >>conftest.$ac_ext
25029cat >>conftest.$ac_ext <<_ACEOF
25030/* end confdefs.h. */
25031#include <utmp.h>
25032
25033_ACEOF
25034if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25035 $EGREP "ut_tv" >/dev/null 2>&1; then
25036 eval "$ossh_varname=yes"
25037else
25038 eval "$ossh_varname=no"
25039fi
25040rm -f conftest*
25041
25042fi
25043
25044 ossh_result=`eval 'echo $'"$ossh_varname"`
25045 if test -n "`echo $ossh_varname`"; then
25046 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25047echo "${ECHO_T}$ossh_result" >&6; }
25048 if test "x$ossh_result" = "xyes"; then
25049
25050cat >>confdefs.h <<\_ACEOF
25051#define HAVE_TV_IN_UTMP 1
25052_ACEOF
25053
25054 fi
25055 else
25056 { echo "$as_me:$LINENO: result: no" >&5
25057echo "${ECHO_T}no" >&6; }
25058 fi
25059
25060
25061# look for field 'ut_id' in header 'utmp.h'
25062 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25063 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
25064 { echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
25065echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6; }
25066 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25067 echo $ECHO_N "(cached) $ECHO_C" >&6
25068else
25069
25070 cat >conftest.$ac_ext <<_ACEOF
25071/* confdefs.h. */
25072_ACEOF
25073cat confdefs.h >>conftest.$ac_ext
25074cat >>conftest.$ac_ext <<_ACEOF
25075/* end confdefs.h. */
25076#include <utmp.h>
25077
25078_ACEOF
25079if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25080 $EGREP "ut_id" >/dev/null 2>&1; then
25081 eval "$ossh_varname=yes"
25082else
25083 eval "$ossh_varname=no"
25084fi
25085rm -f conftest*
25086
25087fi
25088
25089 ossh_result=`eval 'echo $'"$ossh_varname"`
25090 if test -n "`echo $ossh_varname`"; then
25091 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25092echo "${ECHO_T}$ossh_result" >&6; }
25093 if test "x$ossh_result" = "xyes"; then
25094
25095cat >>confdefs.h <<\_ACEOF
25096#define HAVE_ID_IN_UTMP 1
25097_ACEOF
25098
25099 fi
25100 else
25101 { echo "$as_me:$LINENO: result: no" >&5
25102echo "${ECHO_T}no" >&6; }
25103 fi
25104
25105
25106# look for field 'ut_id' in header 'utmpx.h'
25107 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25108 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
25109 { echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
25110echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6; }
25111 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25112 echo $ECHO_N "(cached) $ECHO_C" >&6
25113else
25114
25115 cat >conftest.$ac_ext <<_ACEOF
25116/* confdefs.h. */
25117_ACEOF
25118cat confdefs.h >>conftest.$ac_ext
25119cat >>conftest.$ac_ext <<_ACEOF
25120/* end confdefs.h. */
25121#include <utmpx.h>
25122
25123_ACEOF
25124if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25125 $EGREP "ut_id" >/dev/null 2>&1; then
25126 eval "$ossh_varname=yes"
25127else
25128 eval "$ossh_varname=no"
25129fi
25130rm -f conftest*
25131
25132fi
25133
25134 ossh_result=`eval 'echo $'"$ossh_varname"`
25135 if test -n "`echo $ossh_varname`"; then
25136 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25137echo "${ECHO_T}$ossh_result" >&6; }
25138 if test "x$ossh_result" = "xyes"; then
25139
25140cat >>confdefs.h <<\_ACEOF
25141#define HAVE_ID_IN_UTMPX 1
25142_ACEOF
25143
25144 fi
25145 else
25146 { echo "$as_me:$LINENO: result: no" >&5
25147echo "${ECHO_T}no" >&6; }
25148 fi
25149
25150
25151# look for field 'ut_addr' in header 'utmp.h'
25152 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25153 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
25154 { echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
25155echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6; }
25156 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25157 echo $ECHO_N "(cached) $ECHO_C" >&6
25158else
25159
25160 cat >conftest.$ac_ext <<_ACEOF
25161/* confdefs.h. */
25162_ACEOF
25163cat confdefs.h >>conftest.$ac_ext
25164cat >>conftest.$ac_ext <<_ACEOF
25165/* end confdefs.h. */
25166#include <utmp.h>
25167
25168_ACEOF
25169if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25170 $EGREP "ut_addr" >/dev/null 2>&1; then
25171 eval "$ossh_varname=yes"
25172else
25173 eval "$ossh_varname=no"
25174fi
25175rm -f conftest*
25176
25177fi
25178
25179 ossh_result=`eval 'echo $'"$ossh_varname"`
25180 if test -n "`echo $ossh_varname`"; then
25181 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25182echo "${ECHO_T}$ossh_result" >&6; }
25183 if test "x$ossh_result" = "xyes"; then
25184
25185cat >>confdefs.h <<\_ACEOF
25186#define HAVE_ADDR_IN_UTMP 1
25187_ACEOF
25188
25189 fi
25190 else
25191 { echo "$as_me:$LINENO: result: no" >&5
25192echo "${ECHO_T}no" >&6; }
25193 fi
25194
25195
25196# look for field 'ut_addr' in header 'utmpx.h'
25197 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25198 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
25199 { echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
25200echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6; }
25201 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25202 echo $ECHO_N "(cached) $ECHO_C" >&6
25203else
25204
25205 cat >conftest.$ac_ext <<_ACEOF
25206/* confdefs.h. */
25207_ACEOF
25208cat confdefs.h >>conftest.$ac_ext
25209cat >>conftest.$ac_ext <<_ACEOF
25210/* end confdefs.h. */
25211#include <utmpx.h>
25212
25213_ACEOF
25214if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25215 $EGREP "ut_addr" >/dev/null 2>&1; then
25216 eval "$ossh_varname=yes"
25217else
25218 eval "$ossh_varname=no"
25219fi
25220rm -f conftest*
25221
25222fi
25223
25224 ossh_result=`eval 'echo $'"$ossh_varname"`
25225 if test -n "`echo $ossh_varname`"; then
25226 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25227echo "${ECHO_T}$ossh_result" >&6; }
25228 if test "x$ossh_result" = "xyes"; then
25229
25230cat >>confdefs.h <<\_ACEOF
25231#define HAVE_ADDR_IN_UTMPX 1
25232_ACEOF
25233
25234 fi
25235 else
25236 { echo "$as_me:$LINENO: result: no" >&5
25237echo "${ECHO_T}no" >&6; }
25238 fi
25239
25240
25241# look for field 'ut_addr_v6' in header 'utmp.h'
25242 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25243 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
25244 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
25245echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6; }
25246 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25247 echo $ECHO_N "(cached) $ECHO_C" >&6
25248else
25249
25250 cat >conftest.$ac_ext <<_ACEOF
25251/* confdefs.h. */
25252_ACEOF
25253cat confdefs.h >>conftest.$ac_ext
25254cat >>conftest.$ac_ext <<_ACEOF
25255/* end confdefs.h. */
25256#include <utmp.h>
25257
25258_ACEOF
25259if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25260 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
25261 eval "$ossh_varname=yes"
25262else
25263 eval "$ossh_varname=no"
25264fi
25265rm -f conftest*
25266
25267fi
25268
25269 ossh_result=`eval 'echo $'"$ossh_varname"`
25270 if test -n "`echo $ossh_varname`"; then
25271 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25272echo "${ECHO_T}$ossh_result" >&6; }
25273 if test "x$ossh_result" = "xyes"; then
25274
25275cat >>confdefs.h <<\_ACEOF
25276#define HAVE_ADDR_V6_IN_UTMP 1
25277_ACEOF
25278
25279 fi
25280 else
25281 { echo "$as_me:$LINENO: result: no" >&5
25282echo "${ECHO_T}no" >&6; }
25283 fi
25284
25285
25286# look for field 'ut_addr_v6' in header 'utmpx.h'
25287 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25288 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
25289 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
25290echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6; }
25291 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25292 echo $ECHO_N "(cached) $ECHO_C" >&6
25293else
25294
25295 cat >conftest.$ac_ext <<_ACEOF
25296/* confdefs.h. */
25297_ACEOF
25298cat confdefs.h >>conftest.$ac_ext
25299cat >>conftest.$ac_ext <<_ACEOF
25300/* end confdefs.h. */
25301#include <utmpx.h>
25302
25303_ACEOF
25304if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25305 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
25306 eval "$ossh_varname=yes"
25307else
25308 eval "$ossh_varname=no"
25309fi
25310rm -f conftest*
25311
25312fi
25313
25314 ossh_result=`eval 'echo $'"$ossh_varname"`
25315 if test -n "`echo $ossh_varname`"; then
25316 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25317echo "${ECHO_T}$ossh_result" >&6; }
25318 if test "x$ossh_result" = "xyes"; then
25319
25320cat >>confdefs.h <<\_ACEOF
25321#define HAVE_ADDR_V6_IN_UTMPX 1
25322_ACEOF
25323
25324 fi
25325 else
25326 { echo "$as_me:$LINENO: result: no" >&5
25327echo "${ECHO_T}no" >&6; }
25328 fi
25329
25330
25331# look for field 'ut_exit' in header 'utmp.h'
25332 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25333 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
25334 { echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
25335echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6; }
25336 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25337 echo $ECHO_N "(cached) $ECHO_C" >&6
25338else
25339
25340 cat >conftest.$ac_ext <<_ACEOF
25341/* confdefs.h. */
25342_ACEOF
25343cat confdefs.h >>conftest.$ac_ext
25344cat >>conftest.$ac_ext <<_ACEOF
25345/* end confdefs.h. */
25346#include <utmp.h>
25347
25348_ACEOF
25349if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25350 $EGREP "ut_exit" >/dev/null 2>&1; then
25351 eval "$ossh_varname=yes"
25352else
25353 eval "$ossh_varname=no"
25354fi
25355rm -f conftest*
25356
25357fi
25358
25359 ossh_result=`eval 'echo $'"$ossh_varname"`
25360 if test -n "`echo $ossh_varname`"; then
25361 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25362echo "${ECHO_T}$ossh_result" >&6; }
25363 if test "x$ossh_result" = "xyes"; then
25364
25365cat >>confdefs.h <<\_ACEOF
25366#define HAVE_EXIT_IN_UTMP 1
25367_ACEOF
25368
25369 fi
25370 else
25371 { echo "$as_me:$LINENO: result: no" >&5
25372echo "${ECHO_T}no" >&6; }
25373 fi
25374
25375
25376# look for field 'ut_time' in header 'utmp.h'
25377 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25378 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
25379 { echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
25380echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6; }
25381 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25382 echo $ECHO_N "(cached) $ECHO_C" >&6
25383else
25384
25385 cat >conftest.$ac_ext <<_ACEOF
25386/* confdefs.h. */
25387_ACEOF
25388cat confdefs.h >>conftest.$ac_ext
25389cat >>conftest.$ac_ext <<_ACEOF
25390/* end confdefs.h. */
25391#include <utmp.h>
25392
25393_ACEOF
25394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25395 $EGREP "ut_time" >/dev/null 2>&1; then
25396 eval "$ossh_varname=yes"
25397else
25398 eval "$ossh_varname=no"
25399fi
25400rm -f conftest*
25401
25402fi
25403
25404 ossh_result=`eval 'echo $'"$ossh_varname"`
25405 if test -n "`echo $ossh_varname`"; then
25406 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25407echo "${ECHO_T}$ossh_result" >&6; }
25408 if test "x$ossh_result" = "xyes"; then
25409
25410cat >>confdefs.h <<\_ACEOF
25411#define HAVE_TIME_IN_UTMP 1
25412_ACEOF
25413
25414 fi
25415 else
25416 { echo "$as_me:$LINENO: result: no" >&5
25417echo "${ECHO_T}no" >&6; }
25418 fi
25419
25420
25421# look for field 'ut_time' in header 'utmpx.h'
25422 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25423 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
25424 { echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
25425echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6; }
25426 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25427 echo $ECHO_N "(cached) $ECHO_C" >&6
25428else
25429
25430 cat >conftest.$ac_ext <<_ACEOF
25431/* confdefs.h. */
25432_ACEOF
25433cat confdefs.h >>conftest.$ac_ext
25434cat >>conftest.$ac_ext <<_ACEOF
25435/* end confdefs.h. */
25436#include <utmpx.h>
25437
25438_ACEOF
25439if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25440 $EGREP "ut_time" >/dev/null 2>&1; then
25441 eval "$ossh_varname=yes"
25442else
25443 eval "$ossh_varname=no"
25444fi
25445rm -f conftest*
25446
25447fi
25448
25449 ossh_result=`eval 'echo $'"$ossh_varname"`
25450 if test -n "`echo $ossh_varname`"; then
25451 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25452echo "${ECHO_T}$ossh_result" >&6; }
25453 if test "x$ossh_result" = "xyes"; then
25454
25455cat >>confdefs.h <<\_ACEOF
25456#define HAVE_TIME_IN_UTMPX 1
25457_ACEOF
25458
25459 fi
25460 else
25461 { echo "$as_me:$LINENO: result: no" >&5
25462echo "${ECHO_T}no" >&6; }
25463 fi
25464
25465
25466# look for field 'ut_tv' in header 'utmpx.h'
25467 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25468 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
25469 { echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
25470echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6; }
25471 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25472 echo $ECHO_N "(cached) $ECHO_C" >&6
25473else
25474
25475 cat >conftest.$ac_ext <<_ACEOF
25476/* confdefs.h. */
25477_ACEOF
25478cat confdefs.h >>conftest.$ac_ext
25479cat >>conftest.$ac_ext <<_ACEOF
25480/* end confdefs.h. */
25481#include <utmpx.h>
25482
25483_ACEOF
25484if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25485 $EGREP "ut_tv" >/dev/null 2>&1; then
25486 eval "$ossh_varname=yes"
25487else
25488 eval "$ossh_varname=no"
25489fi
25490rm -f conftest*
25491
25492fi
25493
25494 ossh_result=`eval 'echo $'"$ossh_varname"`
25495 if test -n "`echo $ossh_varname`"; then
25496 { echo "$as_me:$LINENO: result: $ossh_result" >&5
25497echo "${ECHO_T}$ossh_result" >&6; }
25498 if test "x$ossh_result" = "xyes"; then
25499
25500cat >>confdefs.h <<\_ACEOF
25501#define HAVE_TV_IN_UTMPX 1
25502_ACEOF
25503
25504 fi
25505 else
25506 { echo "$as_me:$LINENO: result: no" >&5
25507echo "${ECHO_T}no" >&6; }
25508 fi
25509
25510
25511{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
25512echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
25513if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
25514 echo $ECHO_N "(cached) $ECHO_C" >&6
25515else
25516 cat >conftest.$ac_ext <<_ACEOF
25517/* confdefs.h. */
25518_ACEOF
25519cat confdefs.h >>conftest.$ac_ext
25520cat >>conftest.$ac_ext <<_ACEOF
25521/* end confdefs.h. */
25522$ac_includes_default
25523int
25524main ()
25525{
25526static struct stat ac_aggr;
25527if (ac_aggr.st_blksize)
25528return 0;
25529 ;
25530 return 0;
25531}
25532_ACEOF
25533rm -f conftest.$ac_objext
25534if { (ac_try="$ac_compile"
25535case "(($ac_try" in
25536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25537 *) ac_try_echo=$ac_try;;
25538esac
25539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25540 (eval "$ac_compile") 2>conftest.er1
25541 ac_status=$?
25542 grep -v '^ *+' conftest.er1 >conftest.err
25543 rm -f conftest.er1
25544 cat conftest.err >&5
25545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25546 (exit $ac_status); } && {
25547 test -z "$ac_c_werror_flag" ||
25548 test ! -s conftest.err
25549 } && test -s conftest.$ac_objext; then
25550 ac_cv_member_struct_stat_st_blksize=yes
25551else
25552 echo "$as_me: failed program was:" >&5
25553sed 's/^/| /' conftest.$ac_ext >&5
25554
25555 cat >conftest.$ac_ext <<_ACEOF
25556/* confdefs.h. */
25557_ACEOF
25558cat confdefs.h >>conftest.$ac_ext
25559cat >>conftest.$ac_ext <<_ACEOF
25560/* end confdefs.h. */
25561$ac_includes_default
25562int
25563main ()
25564{
25565static struct stat ac_aggr;
25566if (sizeof ac_aggr.st_blksize)
25567return 0;
25568 ;
25569 return 0;
25570}
25571_ACEOF
25572rm -f conftest.$ac_objext
25573if { (ac_try="$ac_compile"
25574case "(($ac_try" in
25575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25576 *) ac_try_echo=$ac_try;;
25577esac
25578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25579 (eval "$ac_compile") 2>conftest.er1
25580 ac_status=$?
25581 grep -v '^ *+' conftest.er1 >conftest.err
25582 rm -f conftest.er1
25583 cat conftest.err >&5
25584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25585 (exit $ac_status); } && {
25586 test -z "$ac_c_werror_flag" ||
25587 test ! -s conftest.err
25588 } && test -s conftest.$ac_objext; then
25589 ac_cv_member_struct_stat_st_blksize=yes
25590else
25591 echo "$as_me: failed program was:" >&5
25592sed 's/^/| /' conftest.$ac_ext >&5
25593
25594 ac_cv_member_struct_stat_st_blksize=no
25595fi
25596
25597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25598fi
25599
25600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25601fi
25602{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
25603echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
25604if test $ac_cv_member_struct_stat_st_blksize = yes; then
25605
25606cat >>confdefs.h <<_ACEOF
25607#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25608_ACEOF
25609
25610
25611fi
25612
25613{ echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5
25614echo $ECHO_N "checking for struct __res_state.retrans... $ECHO_C" >&6; }
25615if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then
25616 echo $ECHO_N "(cached) $ECHO_C" >&6
25617else
25618 cat >conftest.$ac_ext <<_ACEOF
25619/* confdefs.h. */
25620_ACEOF
25621cat confdefs.h >>conftest.$ac_ext
25622cat >>conftest.$ac_ext <<_ACEOF
25623/* end confdefs.h. */
25624
25625#include <stdio.h>
25626#if HAVE_SYS_TYPES_H
25627# include <sys/types.h>
25628#endif
25629#include <netinet/in.h>
25630#include <arpa/nameser.h>
25631#include <resolv.h>
25632
25633
25634int
25635main ()
25636{
25637static struct __res_state ac_aggr;
25638if (ac_aggr.retrans)
25639return 0;
25640 ;
25641 return 0;
25642}
25643_ACEOF
25644rm -f conftest.$ac_objext
25645if { (ac_try="$ac_compile"
25646case "(($ac_try" in
25647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25648 *) ac_try_echo=$ac_try;;
25649esac
25650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25651 (eval "$ac_compile") 2>conftest.er1
25652 ac_status=$?
25653 grep -v '^ *+' conftest.er1 >conftest.err
25654 rm -f conftest.er1
25655 cat conftest.err >&5
25656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25657 (exit $ac_status); } && {
25658 test -z "$ac_c_werror_flag" ||
25659 test ! -s conftest.err
25660 } && test -s conftest.$ac_objext; then
25661 ac_cv_member_struct___res_state_retrans=yes
25662else
25663 echo "$as_me: failed program was:" >&5
25664sed 's/^/| /' conftest.$ac_ext >&5
25665
25666 cat >conftest.$ac_ext <<_ACEOF
25667/* confdefs.h. */
25668_ACEOF
25669cat confdefs.h >>conftest.$ac_ext
25670cat >>conftest.$ac_ext <<_ACEOF
25671/* end confdefs.h. */
25672
25673#include <stdio.h>
25674#if HAVE_SYS_TYPES_H
25675# include <sys/types.h>
25676#endif
25677#include <netinet/in.h>
25678#include <arpa/nameser.h>
25679#include <resolv.h>
25680
25681
25682int
25683main ()
25684{
25685static struct __res_state ac_aggr;
25686if (sizeof ac_aggr.retrans)
25687return 0;
25688 ;
25689 return 0;
25690}
25691_ACEOF
25692rm -f conftest.$ac_objext
25693if { (ac_try="$ac_compile"
25694case "(($ac_try" in
25695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25696 *) ac_try_echo=$ac_try;;
25697esac
25698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25699 (eval "$ac_compile") 2>conftest.er1
25700 ac_status=$?
25701 grep -v '^ *+' conftest.er1 >conftest.err
25702 rm -f conftest.er1
25703 cat conftest.err >&5
25704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705 (exit $ac_status); } && {
25706 test -z "$ac_c_werror_flag" ||
25707 test ! -s conftest.err
25708 } && test -s conftest.$ac_objext; then
25709 ac_cv_member_struct___res_state_retrans=yes
25710else
25711 echo "$as_me: failed program was:" >&5
25712sed 's/^/| /' conftest.$ac_ext >&5
25713
25714 ac_cv_member_struct___res_state_retrans=no
25715fi
25716
25717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25718fi
25719
25720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25721fi
25722{ echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5
25723echo "${ECHO_T}$ac_cv_member_struct___res_state_retrans" >&6; }
25724if test $ac_cv_member_struct___res_state_retrans = yes; then
25725 :
25726else
25727
25728cat >>confdefs.h <<\_ACEOF
25729#define __res_state state
25730_ACEOF
25731
25732fi
25733
25734
25735{ echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
25736echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
25737if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
25738 echo $ECHO_N "(cached) $ECHO_C" >&6
25739else
25740
25741 cat >conftest.$ac_ext <<_ACEOF
25742/* confdefs.h. */
25743_ACEOF
25744cat confdefs.h >>conftest.$ac_ext
25745cat >>conftest.$ac_ext <<_ACEOF
25746/* end confdefs.h. */
25747
25748#include <sys/types.h>
25749#include <sys/socket.h>
25750
25751int
25752main ()
25753{
25754 struct sockaddr_storage s; s.ss_family = 1;
25755 ;
25756 return 0;
25757}
25758_ACEOF
25759rm -f conftest.$ac_objext
25760if { (ac_try="$ac_compile"
25761case "(($ac_try" in
25762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25763 *) ac_try_echo=$ac_try;;
25764esac
25765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25766 (eval "$ac_compile") 2>conftest.er1
25767 ac_status=$?
25768 grep -v '^ *+' conftest.er1 >conftest.err
25769 rm -f conftest.er1
25770 cat conftest.err >&5
25771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25772 (exit $ac_status); } && {
25773 test -z "$ac_c_werror_flag" ||
25774 test ! -s conftest.err
25775 } && test -s conftest.$ac_objext; then
25776 ac_cv_have_ss_family_in_struct_ss="yes"
25777else
25778 echo "$as_me: failed program was:" >&5
25779sed 's/^/| /' conftest.$ac_ext >&5
25780
25781 ac_cv_have_ss_family_in_struct_ss="no"
25782fi
25783
25784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25785
25786fi
25787{ echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
25788echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6; }
25789if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
25790
25791cat >>confdefs.h <<\_ACEOF
25792#define HAVE_SS_FAMILY_IN_SS 1
25793_ACEOF
25794
25795fi
25796
25797{ echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
25798echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
25799if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
25800 echo $ECHO_N "(cached) $ECHO_C" >&6
25801else
25802
25803 cat >conftest.$ac_ext <<_ACEOF
25804/* confdefs.h. */
25805_ACEOF
25806cat confdefs.h >>conftest.$ac_ext
25807cat >>conftest.$ac_ext <<_ACEOF
25808/* end confdefs.h. */
25809
25810#include <sys/types.h>
25811#include <sys/socket.h>
25812
25813int
25814main ()
25815{
25816 struct sockaddr_storage s; s.__ss_family = 1;
25817 ;
25818 return 0;
25819}
25820_ACEOF
25821rm -f conftest.$ac_objext
25822if { (ac_try="$ac_compile"
25823case "(($ac_try" in
25824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25825 *) ac_try_echo=$ac_try;;
25826esac
25827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25828 (eval "$ac_compile") 2>conftest.er1
25829 ac_status=$?
25830 grep -v '^ *+' conftest.er1 >conftest.err
25831 rm -f conftest.er1
25832 cat conftest.err >&5
25833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834 (exit $ac_status); } && {
25835 test -z "$ac_c_werror_flag" ||
25836 test ! -s conftest.err
25837 } && test -s conftest.$ac_objext; then
25838 ac_cv_have___ss_family_in_struct_ss="yes"
25839else
25840 echo "$as_me: failed program was:" >&5
25841sed 's/^/| /' conftest.$ac_ext >&5
25842
25843 ac_cv_have___ss_family_in_struct_ss="no"
25844
25845fi
25846
25847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25848
25849fi
25850{ echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
25851echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6; }
25852if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
25853
25854cat >>confdefs.h <<\_ACEOF
25855#define HAVE___SS_FAMILY_IN_SS 1
25856_ACEOF
25857
25858fi
25859
25860{ echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5
25861echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6; }
25862if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
25863 echo $ECHO_N "(cached) $ECHO_C" >&6
25864else
25865
25866 cat >conftest.$ac_ext <<_ACEOF
25867/* confdefs.h. */
25868_ACEOF
25869cat confdefs.h >>conftest.$ac_ext
25870cat >>conftest.$ac_ext <<_ACEOF
25871/* end confdefs.h. */
25872
25873#include <pwd.h>
25874
25875int
25876main ()
25877{
25878 struct passwd p; p.pw_class = 0;
25879 ;
25880 return 0;
25881}
25882_ACEOF
25883rm -f conftest.$ac_objext
25884if { (ac_try="$ac_compile"
25885case "(($ac_try" in
25886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25887 *) ac_try_echo=$ac_try;;
25888esac
25889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25890 (eval "$ac_compile") 2>conftest.er1
25891 ac_status=$?
25892 grep -v '^ *+' conftest.er1 >conftest.err
25893 rm -f conftest.er1
25894 cat conftest.err >&5
25895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896 (exit $ac_status); } && {
25897 test -z "$ac_c_werror_flag" ||
25898 test ! -s conftest.err
25899 } && test -s conftest.$ac_objext; then
25900 ac_cv_have_pw_class_in_struct_passwd="yes"
25901else
25902 echo "$as_me: failed program was:" >&5
25903sed 's/^/| /' conftest.$ac_ext >&5
25904
25905 ac_cv_have_pw_class_in_struct_passwd="no"
25906
25907fi
25908
25909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25910
25911fi
25912{ echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
25913echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6; }
25914if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
25915
25916cat >>confdefs.h <<\_ACEOF
25917#define HAVE_PW_CLASS_IN_PASSWD 1
25918_ACEOF
25919
25920fi
25921
25922{ echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5
25923echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6; }
25924if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
25925 echo $ECHO_N "(cached) $ECHO_C" >&6
25926else
25927
25928 cat >conftest.$ac_ext <<_ACEOF
25929/* confdefs.h. */
25930_ACEOF
25931cat confdefs.h >>conftest.$ac_ext
25932cat >>conftest.$ac_ext <<_ACEOF
25933/* end confdefs.h. */
25934
25935#include <pwd.h>
25936
25937int
25938main ()
25939{
25940 struct passwd p; p.pw_expire = 0;
25941 ;
25942 return 0;
25943}
25944_ACEOF
25945rm -f conftest.$ac_objext
25946if { (ac_try="$ac_compile"
25947case "(($ac_try" in
25948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25949 *) ac_try_echo=$ac_try;;
25950esac
25951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25952 (eval "$ac_compile") 2>conftest.er1
25953 ac_status=$?
25954 grep -v '^ *+' conftest.er1 >conftest.err
25955 rm -f conftest.er1
25956 cat conftest.err >&5
25957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25958 (exit $ac_status); } && {
25959 test -z "$ac_c_werror_flag" ||
25960 test ! -s conftest.err
25961 } && test -s conftest.$ac_objext; then
25962 ac_cv_have_pw_expire_in_struct_passwd="yes"
25963else
25964 echo "$as_me: failed program was:" >&5
25965sed 's/^/| /' conftest.$ac_ext >&5
25966
25967 ac_cv_have_pw_expire_in_struct_passwd="no"
25968
25969fi
25970
25971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25972
25973fi
25974{ echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
25975echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6; }
25976if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
25977
25978cat >>confdefs.h <<\_ACEOF
25979#define HAVE_PW_EXPIRE_IN_PASSWD 1
25980_ACEOF
25981
25982fi
25983
25984{ echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5
25985echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6; }
25986if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
25987 echo $ECHO_N "(cached) $ECHO_C" >&6
25988else
25989
25990 cat >conftest.$ac_ext <<_ACEOF
25991/* confdefs.h. */
25992_ACEOF
25993cat confdefs.h >>conftest.$ac_ext
25994cat >>conftest.$ac_ext <<_ACEOF
25995/* end confdefs.h. */
25996
25997#include <pwd.h>
25998
25999int
26000main ()
26001{
26002 struct passwd p; p.pw_change = 0;
26003 ;
26004 return 0;
26005}
26006_ACEOF
26007rm -f conftest.$ac_objext
26008if { (ac_try="$ac_compile"
26009case "(($ac_try" in
26010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26011 *) ac_try_echo=$ac_try;;
26012esac
26013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26014 (eval "$ac_compile") 2>conftest.er1
26015 ac_status=$?
26016 grep -v '^ *+' conftest.er1 >conftest.err
26017 rm -f conftest.er1
26018 cat conftest.err >&5
26019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020 (exit $ac_status); } && {
26021 test -z "$ac_c_werror_flag" ||
26022 test ! -s conftest.err
26023 } && test -s conftest.$ac_objext; then
26024 ac_cv_have_pw_change_in_struct_passwd="yes"
26025else
26026 echo "$as_me: failed program was:" >&5
26027sed 's/^/| /' conftest.$ac_ext >&5
26028
26029 ac_cv_have_pw_change_in_struct_passwd="no"
26030
26031fi
26032
26033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26034
26035fi
26036{ echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
26037echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6; }
26038if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
26039
26040cat >>confdefs.h <<\_ACEOF
26041#define HAVE_PW_CHANGE_IN_PASSWD 1
26042_ACEOF
26043
26044fi
26045
26046{ echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
26047echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6; }
26048if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
26049 echo $ECHO_N "(cached) $ECHO_C" >&6
26050else
26051
26052 cat >conftest.$ac_ext <<_ACEOF
26053
26054#include <sys/types.h>
26055#include <sys/socket.h>
26056#include <sys/uio.h>
26057int main() {
26058#ifdef msg_accrights
26059#error "msg_accrights is a macro"
26060exit(1);
26061#endif
26062struct msghdr m;
26063m.msg_accrights = 0;
26064exit(0);
26065}
26066
26067_ACEOF
26068rm -f conftest.$ac_objext
26069if { (ac_try="$ac_compile"
26070case "(($ac_try" in
26071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26072 *) ac_try_echo=$ac_try;;
26073esac
26074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26075 (eval "$ac_compile") 2>conftest.er1
26076 ac_status=$?
26077 grep -v '^ *+' conftest.er1 >conftest.err
26078 rm -f conftest.er1
26079 cat conftest.err >&5
26080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26081 (exit $ac_status); } && {
26082 test -z "$ac_c_werror_flag" ||
26083 test ! -s conftest.err
26084 } && test -s conftest.$ac_objext; then
26085 ac_cv_have_accrights_in_msghdr="yes"
26086else
26087 echo "$as_me: failed program was:" >&5
26088sed 's/^/| /' conftest.$ac_ext >&5
26089
26090 ac_cv_have_accrights_in_msghdr="no"
26091
26092fi
26093
26094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26095
26096fi
26097{ echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
26098echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6; }
26099if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
26100
26101cat >>confdefs.h <<\_ACEOF
26102#define HAVE_ACCRIGHTS_IN_MSGHDR 1
26103_ACEOF
26104
26105fi
26106
26107{ echo "$as_me:$LINENO: checking if struct statvfs.f_fsid is integral type" >&5
26108echo $ECHO_N "checking if struct statvfs.f_fsid is integral type... $ECHO_C" >&6; }
26109cat >conftest.$ac_ext <<_ACEOF
26110/* confdefs.h. */
26111_ACEOF
26112cat confdefs.h >>conftest.$ac_ext
26113cat >>conftest.$ac_ext <<_ACEOF
26114/* end confdefs.h. */
26115
26116#include <sys/types.h>
26117#include <sys/stat.h>
26118#ifdef HAVE_SYS_TIME_H
26119# include <sys/time.h>
26120#endif
26121#ifdef HAVE_SYS_MOUNT_H
26122#include <sys/mount.h>
26123#endif
26124#ifdef HAVE_SYS_STATVFS_H
26125#include <sys/statvfs.h>
26126#endif
26127
26128int
26129main ()
26130{
26131struct statvfs s; s.f_fsid = 0;
26132 ;
26133 return 0;
26134}
26135_ACEOF
26136rm -f conftest.$ac_objext
26137if { (ac_try="$ac_compile"
26138case "(($ac_try" in
26139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26140 *) ac_try_echo=$ac_try;;
26141esac
26142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26143 (eval "$ac_compile") 2>conftest.er1
26144 ac_status=$?
26145 grep -v '^ *+' conftest.er1 >conftest.err
26146 rm -f conftest.er1
26147 cat conftest.err >&5
26148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26149 (exit $ac_status); } && {
26150 test -z "$ac_c_werror_flag" ||
26151 test ! -s conftest.err
26152 } && test -s conftest.$ac_objext; then
26153 { echo "$as_me:$LINENO: result: yes" >&5
26154echo "${ECHO_T}yes" >&6; }
26155else
26156 echo "$as_me: failed program was:" >&5
26157sed 's/^/| /' conftest.$ac_ext >&5
26158
26159 { echo "$as_me:$LINENO: result: no" >&5
26160echo "${ECHO_T}no" >&6; }
26161
26162 { echo "$as_me:$LINENO: checking if fsid_t has member val" >&5
26163echo $ECHO_N "checking if fsid_t has member val... $ECHO_C" >&6; }
26164 cat >conftest.$ac_ext <<_ACEOF
26165/* confdefs.h. */
26166_ACEOF
26167cat confdefs.h >>conftest.$ac_ext
26168cat >>conftest.$ac_ext <<_ACEOF
26169/* end confdefs.h. */
26170
26171#include <sys/types.h>
26172#include <sys/statvfs.h>
26173int
26174main ()
26175{
26176fsid_t t; t.val[0] = 0;
26177 ;
26178 return 0;
26179}
26180_ACEOF
26181rm -f conftest.$ac_objext
26182if { (ac_try="$ac_compile"
26183case "(($ac_try" in
26184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26185 *) ac_try_echo=$ac_try;;
26186esac
26187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26188 (eval "$ac_compile") 2>conftest.er1
26189 ac_status=$?
26190 grep -v '^ *+' conftest.er1 >conftest.err
26191 rm -f conftest.er1
26192 cat conftest.err >&5
26193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26194 (exit $ac_status); } && {
26195 test -z "$ac_c_werror_flag" ||
26196 test ! -s conftest.err
26197 } && test -s conftest.$ac_objext; then
26198 { echo "$as_me:$LINENO: result: yes" >&5
26199echo "${ECHO_T}yes" >&6; }
26200
26201cat >>confdefs.h <<\_ACEOF
26202#define FSID_HAS_VAL 1
26203_ACEOF
26204
26205else
26206 echo "$as_me: failed program was:" >&5
26207sed 's/^/| /' conftest.$ac_ext >&5
26208
26209 { echo "$as_me:$LINENO: result: no" >&5
26210echo "${ECHO_T}no" >&6; }
26211fi
26212
26213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26214
26215 { echo "$as_me:$LINENO: checking if f_fsid has member __val" >&5
26216echo $ECHO_N "checking if f_fsid has member __val... $ECHO_C" >&6; }
26217 cat >conftest.$ac_ext <<_ACEOF
26218/* confdefs.h. */
26219_ACEOF
26220cat confdefs.h >>conftest.$ac_ext
26221cat >>conftest.$ac_ext <<_ACEOF
26222/* end confdefs.h. */
26223
26224#include <sys/types.h>
26225#include <sys/statvfs.h>
26226int
26227main ()
26228{
26229fsid_t t; t.__val[0] = 0;
26230 ;
26231 return 0;
26232}
26233_ACEOF
26234rm -f conftest.$ac_objext
26235if { (ac_try="$ac_compile"
26236case "(($ac_try" in
26237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26238 *) ac_try_echo=$ac_try;;
26239esac
26240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26241 (eval "$ac_compile") 2>conftest.er1
26242 ac_status=$?
26243 grep -v '^ *+' conftest.er1 >conftest.err
26244 rm -f conftest.er1
26245 cat conftest.err >&5
26246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26247 (exit $ac_status); } && {
26248 test -z "$ac_c_werror_flag" ||
26249 test ! -s conftest.err
26250 } && test -s conftest.$ac_objext; then
26251 { echo "$as_me:$LINENO: result: yes" >&5
26252echo "${ECHO_T}yes" >&6; }
26253
26254cat >>confdefs.h <<\_ACEOF
26255#define FSID_HAS___VAL 1
26256_ACEOF
26257
26258else
26259 echo "$as_me: failed program was:" >&5
26260sed 's/^/| /' conftest.$ac_ext >&5
26261
26262 { echo "$as_me:$LINENO: result: no" >&5
26263echo "${ECHO_T}no" >&6; }
26264fi
26265
26266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26267
26268fi
26269
26270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26271
26272{ echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
26273echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; }
26274if test "${ac_cv_have_control_in_msghdr+set}" = set; then
26275 echo $ECHO_N "(cached) $ECHO_C" >&6
26276else
26277
26278 cat >conftest.$ac_ext <<_ACEOF
26279
26280#include <sys/types.h>
26281#include <sys/socket.h>
26282#include <sys/uio.h>
26283int main() {
26284#ifdef msg_control
26285#error "msg_control is a macro"
26286exit(1);
26287#endif
26288struct msghdr m;
26289m.msg_control = 0;
26290exit(0);
26291}
26292
26293_ACEOF
26294rm -f conftest.$ac_objext
26295if { (ac_try="$ac_compile"
26296case "(($ac_try" in
26297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26298 *) ac_try_echo=$ac_try;;
26299esac
26300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26301 (eval "$ac_compile") 2>conftest.er1
26302 ac_status=$?
26303 grep -v '^ *+' conftest.er1 >conftest.err
26304 rm -f conftest.er1
26305 cat conftest.err >&5
26306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26307 (exit $ac_status); } && {
26308 test -z "$ac_c_werror_flag" ||
26309 test ! -s conftest.err
26310 } && test -s conftest.$ac_objext; then
26311 ac_cv_have_control_in_msghdr="yes"
26312else
26313 echo "$as_me: failed program was:" >&5
26314sed 's/^/| /' conftest.$ac_ext >&5
26315
26316 ac_cv_have_control_in_msghdr="no"
26317
26318fi
26319
26320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26321
26322fi
26323{ echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
26324echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6; }
26325if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
26326
26327cat >>confdefs.h <<\_ACEOF
26328#define HAVE_CONTROL_IN_MSGHDR 1
26329_ACEOF
26330
26331fi
26332
26333{ echo "$as_me:$LINENO: checking if libc defines __progname" >&5
26334echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6; }
26335if test "${ac_cv_libc_defines___progname+set}" = set; then
26336 echo $ECHO_N "(cached) $ECHO_C" >&6
26337else
26338
26339 cat >conftest.$ac_ext <<_ACEOF
26340/* confdefs.h. */
26341_ACEOF
26342cat confdefs.h >>conftest.$ac_ext
26343cat >>conftest.$ac_ext <<_ACEOF
26344/* end confdefs.h. */
26345
26346int
26347main ()
26348{
26349 extern char *__progname; printf("%s", __progname);
26350 ;
26351 return 0;
26352}
26353_ACEOF
26354rm -f conftest.$ac_objext conftest$ac_exeext
26355if { (ac_try="$ac_link"
26356case "(($ac_try" in
26357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26358 *) ac_try_echo=$ac_try;;
26359esac
26360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26361 (eval "$ac_link") 2>conftest.er1
26362 ac_status=$?
26363 grep -v '^ *+' conftest.er1 >conftest.err
26364 rm -f conftest.er1
26365 cat conftest.err >&5
26366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26367 (exit $ac_status); } && {
26368 test -z "$ac_c_werror_flag" ||
26369 test ! -s conftest.err
26370 } && test -s conftest$ac_exeext &&
26371 $as_test_x conftest$ac_exeext; then
26372 ac_cv_libc_defines___progname="yes"
26373else
26374 echo "$as_me: failed program was:" >&5
26375sed 's/^/| /' conftest.$ac_ext >&5
26376
26377 ac_cv_libc_defines___progname="no"
26378
26379fi
26380
26381rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26382 conftest$ac_exeext conftest.$ac_ext
26383
26384fi
26385{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
26386echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6; }
26387if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
26388
26389cat >>confdefs.h <<\_ACEOF
26390#define HAVE___PROGNAME 1
26391_ACEOF
26392
26393fi
26394
26395{ echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
26396echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6; }
26397if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
26398 echo $ECHO_N "(cached) $ECHO_C" >&6
26399else
26400
26401 cat >conftest.$ac_ext <<_ACEOF
26402/* confdefs.h. */
26403_ACEOF
26404cat confdefs.h >>conftest.$ac_ext
26405cat >>conftest.$ac_ext <<_ACEOF
26406/* end confdefs.h. */
26407
26408#include <stdio.h>
26409
26410int
26411main ()
26412{
26413 printf("%s", __FUNCTION__);
26414 ;
26415 return 0;
26416}
26417_ACEOF
26418rm -f conftest.$ac_objext conftest$ac_exeext
26419if { (ac_try="$ac_link"
26420case "(($ac_try" in
26421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26422 *) ac_try_echo=$ac_try;;
26423esac
26424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26425 (eval "$ac_link") 2>conftest.er1
26426 ac_status=$?
26427 grep -v '^ *+' conftest.er1 >conftest.err
26428 rm -f conftest.er1
26429 cat conftest.err >&5
26430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26431 (exit $ac_status); } && {
26432 test -z "$ac_c_werror_flag" ||
26433 test ! -s conftest.err
26434 } && test -s conftest$ac_exeext &&
26435 $as_test_x conftest$ac_exeext; then
26436 ac_cv_cc_implements___FUNCTION__="yes"
26437else
26438 echo "$as_me: failed program was:" >&5
26439sed 's/^/| /' conftest.$ac_ext >&5
26440
26441 ac_cv_cc_implements___FUNCTION__="no"
26442
26443fi
26444
26445rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26446 conftest$ac_exeext conftest.$ac_ext
26447
26448fi
26449{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
26450echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6; }
26451if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
26452
26453cat >>confdefs.h <<\_ACEOF
26454#define HAVE___FUNCTION__ 1
26455_ACEOF
26456
26457fi
26458
26459{ echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
26460echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6; }
26461if test "${ac_cv_cc_implements___func__+set}" = set; then
26462 echo $ECHO_N "(cached) $ECHO_C" >&6
26463else
26464
26465 cat >conftest.$ac_ext <<_ACEOF
26466/* confdefs.h. */
26467_ACEOF
26468cat confdefs.h >>conftest.$ac_ext
26469cat >>conftest.$ac_ext <<_ACEOF
26470/* end confdefs.h. */
26471
26472#include <stdio.h>
26473
26474int
26475main ()
26476{
26477 printf("%s", __func__);
26478 ;
26479 return 0;
26480}
26481_ACEOF
26482rm -f conftest.$ac_objext conftest$ac_exeext
26483if { (ac_try="$ac_link"
26484case "(($ac_try" in
26485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26486 *) ac_try_echo=$ac_try;;
26487esac
26488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26489 (eval "$ac_link") 2>conftest.er1
26490 ac_status=$?
26491 grep -v '^ *+' conftest.er1 >conftest.err
26492 rm -f conftest.er1
26493 cat conftest.err >&5
26494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26495 (exit $ac_status); } && {
26496 test -z "$ac_c_werror_flag" ||
26497 test ! -s conftest.err
26498 } && test -s conftest$ac_exeext &&
26499 $as_test_x conftest$ac_exeext; then
26500 ac_cv_cc_implements___func__="yes"
26501else
26502 echo "$as_me: failed program was:" >&5
26503sed 's/^/| /' conftest.$ac_ext >&5
26504
26505 ac_cv_cc_implements___func__="no"
26506
26507fi
26508
26509rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26510 conftest$ac_exeext conftest.$ac_ext
26511
26512fi
26513{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
26514echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6; }
26515if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
26516
26517cat >>confdefs.h <<\_ACEOF
26518#define HAVE___func__ 1
26519_ACEOF
26520
26521fi
26522
26523{ echo "$as_me:$LINENO: checking whether va_copy exists" >&5
26524echo $ECHO_N "checking whether va_copy exists... $ECHO_C" >&6; }
26525if test "${ac_cv_have_va_copy+set}" = set; then
26526 echo $ECHO_N "(cached) $ECHO_C" >&6
26527else
26528
26529 cat >conftest.$ac_ext <<_ACEOF
26530/* confdefs.h. */
26531_ACEOF
26532cat confdefs.h >>conftest.$ac_ext
26533cat >>conftest.$ac_ext <<_ACEOF
26534/* end confdefs.h. */
26535#include <stdarg.h>
26536 va_list x,y;
26537int
26538main ()
26539{
26540va_copy(x,y);
26541 ;
26542 return 0;
26543}
26544_ACEOF
26545rm -f conftest.$ac_objext conftest$ac_exeext
26546if { (ac_try="$ac_link"
26547case "(($ac_try" in
26548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26549 *) ac_try_echo=$ac_try;;
26550esac
26551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26552 (eval "$ac_link") 2>conftest.er1
26553 ac_status=$?
26554 grep -v '^ *+' conftest.er1 >conftest.err
26555 rm -f conftest.er1
26556 cat conftest.err >&5
26557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26558 (exit $ac_status); } && {
26559 test -z "$ac_c_werror_flag" ||
26560 test ! -s conftest.err
26561 } && test -s conftest$ac_exeext &&
26562 $as_test_x conftest$ac_exeext; then
26563 ac_cv_have_va_copy="yes"
26564else
26565 echo "$as_me: failed program was:" >&5
26566sed 's/^/| /' conftest.$ac_ext >&5
26567
26568 ac_cv_have_va_copy="no"
26569
26570fi
26571
26572rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26573 conftest$ac_exeext conftest.$ac_ext
26574
26575fi
26576{ echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5
26577echo "${ECHO_T}$ac_cv_have_va_copy" >&6; }
26578if test "x$ac_cv_have_va_copy" = "xyes" ; then
26579
26580cat >>confdefs.h <<\_ACEOF
26581#define HAVE_VA_COPY 1
26582_ACEOF
26583
26584fi
26585
26586{ echo "$as_me:$LINENO: checking whether __va_copy exists" >&5
26587echo $ECHO_N "checking whether __va_copy exists... $ECHO_C" >&6; }
26588if test "${ac_cv_have___va_copy+set}" = set; then
26589 echo $ECHO_N "(cached) $ECHO_C" >&6
26590else
26591
26592 cat >conftest.$ac_ext <<_ACEOF
26593/* confdefs.h. */
26594_ACEOF
26595cat confdefs.h >>conftest.$ac_ext
26596cat >>conftest.$ac_ext <<_ACEOF
26597/* end confdefs.h. */
26598#include <stdarg.h>
26599 va_list x,y;
26600int
26601main ()
26602{
26603__va_copy(x,y);
26604 ;
26605 return 0;
26606}
26607_ACEOF
26608rm -f conftest.$ac_objext conftest$ac_exeext
26609if { (ac_try="$ac_link"
26610case "(($ac_try" in
26611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26612 *) ac_try_echo=$ac_try;;
26613esac
26614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26615 (eval "$ac_link") 2>conftest.er1
26616 ac_status=$?
26617 grep -v '^ *+' conftest.er1 >conftest.err
26618 rm -f conftest.er1
26619 cat conftest.err >&5
26620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26621 (exit $ac_status); } && {
26622 test -z "$ac_c_werror_flag" ||
26623 test ! -s conftest.err
26624 } && test -s conftest$ac_exeext &&
26625 $as_test_x conftest$ac_exeext; then
26626 ac_cv_have___va_copy="yes"
26627else
26628 echo "$as_me: failed program was:" >&5
26629sed 's/^/| /' conftest.$ac_ext >&5
26630
26631 ac_cv_have___va_copy="no"
26632
26633fi
26634
26635rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26636 conftest$ac_exeext conftest.$ac_ext
26637
26638fi
26639{ echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5
26640echo "${ECHO_T}$ac_cv_have___va_copy" >&6; }
26641if test "x$ac_cv_have___va_copy" = "xyes" ; then
26642
26643cat >>confdefs.h <<\_ACEOF
26644#define HAVE___VA_COPY 1
26645_ACEOF
26646
26647fi
26648
26649{ echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
26650echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6; }
26651if test "${ac_cv_have_getopt_optreset+set}" = set; then
26652 echo $ECHO_N "(cached) $ECHO_C" >&6
26653else
26654
26655 cat >conftest.$ac_ext <<_ACEOF
26656/* confdefs.h. */
26657_ACEOF
26658cat confdefs.h >>conftest.$ac_ext
26659cat >>conftest.$ac_ext <<_ACEOF
26660/* end confdefs.h. */
26661
26662#include <getopt.h>
26663
26664int
26665main ()
26666{
26667 extern int optreset; optreset = 0;
26668 ;
26669 return 0;
26670}
26671_ACEOF
26672rm -f conftest.$ac_objext conftest$ac_exeext
26673if { (ac_try="$ac_link"
26674case "(($ac_try" in
26675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26676 *) ac_try_echo=$ac_try;;
26677esac
26678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26679 (eval "$ac_link") 2>conftest.er1
26680 ac_status=$?
26681 grep -v '^ *+' conftest.er1 >conftest.err
26682 rm -f conftest.er1
26683 cat conftest.err >&5
26684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26685 (exit $ac_status); } && {
26686 test -z "$ac_c_werror_flag" ||
26687 test ! -s conftest.err
26688 } && test -s conftest$ac_exeext &&
26689 $as_test_x conftest$ac_exeext; then
26690 ac_cv_have_getopt_optreset="yes"
26691else
26692 echo "$as_me: failed program was:" >&5
26693sed 's/^/| /' conftest.$ac_ext >&5
26694
26695 ac_cv_have_getopt_optreset="no"
26696
26697fi
26698
26699rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26700 conftest$ac_exeext conftest.$ac_ext
26701
26702fi
26703{ echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
26704echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6; }
26705if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
26706
26707cat >>confdefs.h <<\_ACEOF
26708#define HAVE_GETOPT_OPTRESET 1
26709_ACEOF
26710
26711fi
26712
26713{ echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
26714echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6; }
26715if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
26716 echo $ECHO_N "(cached) $ECHO_C" >&6
26717else
26718
26719 cat >conftest.$ac_ext <<_ACEOF
26720/* confdefs.h. */
26721_ACEOF
26722cat confdefs.h >>conftest.$ac_ext
26723cat >>conftest.$ac_ext <<_ACEOF
26724/* end confdefs.h. */
26725
26726int
26727main ()
26728{
26729 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
26730 ;
26731 return 0;
26732}
26733_ACEOF
26734rm -f conftest.$ac_objext conftest$ac_exeext
26735if { (ac_try="$ac_link"
26736case "(($ac_try" in
26737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26738 *) ac_try_echo=$ac_try;;
26739esac
26740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26741 (eval "$ac_link") 2>conftest.er1
26742 ac_status=$?
26743 grep -v '^ *+' conftest.er1 >conftest.err
26744 rm -f conftest.er1
26745 cat conftest.err >&5
26746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747 (exit $ac_status); } && {
26748 test -z "$ac_c_werror_flag" ||
26749 test ! -s conftest.err
26750 } && test -s conftest$ac_exeext &&
26751 $as_test_x conftest$ac_exeext; then
26752 ac_cv_libc_defines_sys_errlist="yes"
26753else
26754 echo "$as_me: failed program was:" >&5
26755sed 's/^/| /' conftest.$ac_ext >&5
26756
26757 ac_cv_libc_defines_sys_errlist="no"
26758
26759fi
26760
26761rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26762 conftest$ac_exeext conftest.$ac_ext
26763
26764fi
26765{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
26766echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6; }
26767if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
26768
26769cat >>confdefs.h <<\_ACEOF
26770#define HAVE_SYS_ERRLIST 1
26771_ACEOF
26772
26773fi
26774
26775
26776{ echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
26777echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6; }
26778if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
26779 echo $ECHO_N "(cached) $ECHO_C" >&6
26780else
26781
26782 cat >conftest.$ac_ext <<_ACEOF
26783/* confdefs.h. */
26784_ACEOF
26785cat confdefs.h >>conftest.$ac_ext
26786cat >>conftest.$ac_ext <<_ACEOF
26787/* end confdefs.h. */
26788
26789int
26790main ()
26791{
26792 extern int sys_nerr; printf("%i", sys_nerr);
26793 ;
26794 return 0;
26795}
26796_ACEOF
26797rm -f conftest.$ac_objext conftest$ac_exeext
26798if { (ac_try="$ac_link"
26799case "(($ac_try" in
26800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26801 *) ac_try_echo=$ac_try;;
26802esac
26803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26804 (eval "$ac_link") 2>conftest.er1
26805 ac_status=$?
26806 grep -v '^ *+' conftest.er1 >conftest.err
26807 rm -f conftest.er1
26808 cat conftest.err >&5
26809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810 (exit $ac_status); } && {
26811 test -z "$ac_c_werror_flag" ||
26812 test ! -s conftest.err
26813 } && test -s conftest$ac_exeext &&
26814 $as_test_x conftest$ac_exeext; then
26815 ac_cv_libc_defines_sys_nerr="yes"
26816else
26817 echo "$as_me: failed program was:" >&5
26818sed 's/^/| /' conftest.$ac_ext >&5
26819
26820 ac_cv_libc_defines_sys_nerr="no"
26821
26822fi
26823
26824rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26825 conftest$ac_exeext conftest.$ac_ext
26826
26827fi
26828{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
26829echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6; }
26830if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
26831
26832cat >>confdefs.h <<\_ACEOF
26833#define HAVE_SYS_NERR 1
26834_ACEOF
26835
26836fi
26837
26838# Check libraries needed by DNS fingerprint support
26839{ echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5
26840echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6; }
26841if test "${ac_cv_search_getrrsetbyname+set}" = set; then
26842 echo $ECHO_N "(cached) $ECHO_C" >&6
26843else
26844 ac_func_search_save_LIBS=$LIBS
26845cat >conftest.$ac_ext <<_ACEOF
26846/* confdefs.h. */
26847_ACEOF
26848cat confdefs.h >>conftest.$ac_ext
26849cat >>conftest.$ac_ext <<_ACEOF
26850/* end confdefs.h. */
26851
26852/* Override any GCC internal prototype to avoid an error.
26853 Use char because int might match the return type of a GCC
26854 builtin and then its argument prototype would still apply. */
26855#ifdef __cplusplus
26856extern "C"
26857#endif
26858char getrrsetbyname ();
26859int
26860main ()
26861{
26862return getrrsetbyname ();
26863 ;
26864 return 0;
26865}
26866_ACEOF
26867for ac_lib in '' resolv; do
26868 if test -z "$ac_lib"; then
26869 ac_res="none required"
26870 else
26871 ac_res=-l$ac_lib
26872 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26873 fi
26874 rm -f conftest.$ac_objext conftest$ac_exeext
26875if { (ac_try="$ac_link"
26876case "(($ac_try" in
26877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26878 *) ac_try_echo=$ac_try;;
26879esac
26880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26881 (eval "$ac_link") 2>conftest.er1
26882 ac_status=$?
26883 grep -v '^ *+' conftest.er1 >conftest.err
26884 rm -f conftest.er1
26885 cat conftest.err >&5
26886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26887 (exit $ac_status); } && {
26888 test -z "$ac_c_werror_flag" ||
26889 test ! -s conftest.err
26890 } && test -s conftest$ac_exeext &&
26891 $as_test_x conftest$ac_exeext; then
26892 ac_cv_search_getrrsetbyname=$ac_res
26893else
26894 echo "$as_me: failed program was:" >&5
26895sed 's/^/| /' conftest.$ac_ext >&5
26896
26897
26898fi
26899
26900rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26901 conftest$ac_exeext
26902 if test "${ac_cv_search_getrrsetbyname+set}" = set; then
26903 break
26904fi
26905done
26906if test "${ac_cv_search_getrrsetbyname+set}" = set; then
26907 :
26908else
26909 ac_cv_search_getrrsetbyname=no
26910fi
26911rm conftest.$ac_ext
26912LIBS=$ac_func_search_save_LIBS
26913fi
26914{ echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5
26915echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6; }
26916ac_res=$ac_cv_search_getrrsetbyname
26917if test "$ac_res" != no; then
26918 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26919
26920cat >>confdefs.h <<\_ACEOF
26921#define HAVE_GETRRSETBYNAME 1
26922_ACEOF
26923
26924else
26925
26926 # Needed by our getrrsetbyname()
26927 { echo "$as_me:$LINENO: checking for library containing res_query" >&5
26928echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; }
26929if test "${ac_cv_search_res_query+set}" = set; then
26930 echo $ECHO_N "(cached) $ECHO_C" >&6
26931else
26932 ac_func_search_save_LIBS=$LIBS
26933cat >conftest.$ac_ext <<_ACEOF
26934/* confdefs.h. */
26935_ACEOF
26936cat confdefs.h >>conftest.$ac_ext
26937cat >>conftest.$ac_ext <<_ACEOF
26938/* end confdefs.h. */
26939
26940/* Override any GCC internal prototype to avoid an error.
26941 Use char because int might match the return type of a GCC
26942 builtin and then its argument prototype would still apply. */
26943#ifdef __cplusplus
26944extern "C"
26945#endif
26946char res_query ();
26947int
26948main ()
26949{
26950return res_query ();
26951 ;
26952 return 0;
26953}
26954_ACEOF
26955for ac_lib in '' resolv; do
26956 if test -z "$ac_lib"; then
26957 ac_res="none required"
26958 else
26959 ac_res=-l$ac_lib
26960 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26961 fi
26962 rm -f conftest.$ac_objext conftest$ac_exeext
26963if { (ac_try="$ac_link"
26964case "(($ac_try" in
26965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26966 *) ac_try_echo=$ac_try;;
26967esac
26968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26969 (eval "$ac_link") 2>conftest.er1
26970 ac_status=$?
26971 grep -v '^ *+' conftest.er1 >conftest.err
26972 rm -f conftest.er1
26973 cat conftest.err >&5
26974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26975 (exit $ac_status); } && {
26976 test -z "$ac_c_werror_flag" ||
26977 test ! -s conftest.err
26978 } && test -s conftest$ac_exeext &&
26979 $as_test_x conftest$ac_exeext; then
26980 ac_cv_search_res_query=$ac_res
26981else
26982 echo "$as_me: failed program was:" >&5
26983sed 's/^/| /' conftest.$ac_ext >&5
26984
26985
26986fi
26987
26988rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26989 conftest$ac_exeext
26990 if test "${ac_cv_search_res_query+set}" = set; then
26991 break
26992fi
26993done
26994if test "${ac_cv_search_res_query+set}" = set; then
26995 :
26996else
26997 ac_cv_search_res_query=no
26998fi
26999rm conftest.$ac_ext
27000LIBS=$ac_func_search_save_LIBS
27001fi
27002{ echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
27003echo "${ECHO_T}$ac_cv_search_res_query" >&6; }
27004ac_res=$ac_cv_search_res_query
27005if test "$ac_res" != no; then
27006 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27007
27008fi
27009
27010 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
27011echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
27012if test "${ac_cv_search_dn_expand+set}" = set; then
27013 echo $ECHO_N "(cached) $ECHO_C" >&6
27014else
27015 ac_func_search_save_LIBS=$LIBS
27016cat >conftest.$ac_ext <<_ACEOF
27017/* confdefs.h. */
27018_ACEOF
27019cat confdefs.h >>conftest.$ac_ext
27020cat >>conftest.$ac_ext <<_ACEOF
27021/* end confdefs.h. */
27022
27023/* Override any GCC internal prototype to avoid an error.
27024 Use char because int might match the return type of a GCC
27025 builtin and then its argument prototype would still apply. */
27026#ifdef __cplusplus
27027extern "C"
27028#endif
27029char dn_expand ();
27030int
27031main ()
27032{
27033return dn_expand ();
27034 ;
27035 return 0;
27036}
27037_ACEOF
27038for ac_lib in '' resolv; do
27039 if test -z "$ac_lib"; then
27040 ac_res="none required"
27041 else
27042 ac_res=-l$ac_lib
27043 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27044 fi
27045 rm -f conftest.$ac_objext conftest$ac_exeext
27046if { (ac_try="$ac_link"
27047case "(($ac_try" in
27048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27049 *) ac_try_echo=$ac_try;;
27050esac
27051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27052 (eval "$ac_link") 2>conftest.er1
27053 ac_status=$?
27054 grep -v '^ *+' conftest.er1 >conftest.err
27055 rm -f conftest.er1
27056 cat conftest.err >&5
27057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27058 (exit $ac_status); } && {
27059 test -z "$ac_c_werror_flag" ||
27060 test ! -s conftest.err
27061 } && test -s conftest$ac_exeext &&
27062 $as_test_x conftest$ac_exeext; then
27063 ac_cv_search_dn_expand=$ac_res
27064else
27065 echo "$as_me: failed program was:" >&5
27066sed 's/^/| /' conftest.$ac_ext >&5
27067
27068
27069fi
27070
27071rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27072 conftest$ac_exeext
27073 if test "${ac_cv_search_dn_expand+set}" = set; then
27074 break
27075fi
27076done
27077if test "${ac_cv_search_dn_expand+set}" = set; then
27078 :
27079else
27080 ac_cv_search_dn_expand=no
27081fi
27082rm conftest.$ac_ext
27083LIBS=$ac_func_search_save_LIBS
27084fi
27085{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
27086echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
27087ac_res=$ac_cv_search_dn_expand
27088if test "$ac_res" != no; then
27089 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27090
27091fi
27092
27093 { echo "$as_me:$LINENO: checking if res_query will link" >&5
27094echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6; }
27095 cat >conftest.$ac_ext <<_ACEOF
27096
27097#include "confdefs.h"
27098#include <sys/types.h>
27099#include <netinet/in.h>
27100#include <arpa/nameser.h>
27101#include <netdb.h>
27102#include <resolv.h>
27103int main()
27104{
27105 res_query (0, 0, 0, 0, 0);
27106 return 0;
27107}
27108
27109_ACEOF
27110rm -f conftest.$ac_objext conftest$ac_exeext
27111if { (ac_try="$ac_link"
27112case "(($ac_try" in
27113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27114 *) ac_try_echo=$ac_try;;
27115esac
27116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27117 (eval "$ac_link") 2>conftest.er1
27118 ac_status=$?
27119 grep -v '^ *+' conftest.er1 >conftest.err
27120 rm -f conftest.er1
27121 cat conftest.err >&5
27122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); } && {
27124 test -z "$ac_c_werror_flag" ||
27125 test ! -s conftest.err
27126 } && test -s conftest$ac_exeext &&
27127 $as_test_x conftest$ac_exeext; then
27128 { echo "$as_me:$LINENO: result: yes" >&5
27129echo "${ECHO_T}yes" >&6; }
27130else
27131 echo "$as_me: failed program was:" >&5
27132sed 's/^/| /' conftest.$ac_ext >&5
27133
27134 { echo "$as_me:$LINENO: result: no" >&5
27135echo "${ECHO_T}no" >&6; }
27136 saved_LIBS="$LIBS"
27137 LIBS="$LIBS -lresolv"
27138 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
27139echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
27140 cat >conftest.$ac_ext <<_ACEOF
27141
27142#include "confdefs.h"
27143#include <sys/types.h>
27144#include <netinet/in.h>
27145#include <arpa/nameser.h>
27146#include <netdb.h>
27147#include <resolv.h>
27148int main()
27149{
27150 res_query (0, 0, 0, 0, 0);
27151 return 0;
27152}
27153
27154_ACEOF
27155rm -f conftest.$ac_objext conftest$ac_exeext
27156if { (ac_try="$ac_link"
27157case "(($ac_try" in
27158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27159 *) ac_try_echo=$ac_try;;
27160esac
27161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27162 (eval "$ac_link") 2>conftest.er1
27163 ac_status=$?
27164 grep -v '^ *+' conftest.er1 >conftest.err
27165 rm -f conftest.er1
27166 cat conftest.err >&5
27167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27168 (exit $ac_status); } && {
27169 test -z "$ac_c_werror_flag" ||
27170 test ! -s conftest.err
27171 } && test -s conftest$ac_exeext &&
27172 $as_test_x conftest$ac_exeext; then
27173 { echo "$as_me:$LINENO: result: yes" >&5
27174echo "${ECHO_T}yes" >&6; }
27175else
27176 echo "$as_me: failed program was:" >&5
27177sed 's/^/| /' conftest.$ac_ext >&5
27178
27179 LIBS="$saved_LIBS"
27180 { echo "$as_me:$LINENO: result: no" >&5
27181echo "${ECHO_T}no" >&6; }
27182fi
27183
27184rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27185 conftest$ac_exeext conftest.$ac_ext
27186
27187fi
27188
27189rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27190 conftest$ac_exeext conftest.$ac_ext
27191
27192
27193for ac_func in _getshort _getlong
27194do
27195as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27196{ echo "$as_me:$LINENO: checking for $ac_func" >&5
27197echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27198if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27199 echo $ECHO_N "(cached) $ECHO_C" >&6
27200else
27201 cat >conftest.$ac_ext <<_ACEOF
27202/* confdefs.h. */
27203_ACEOF
27204cat confdefs.h >>conftest.$ac_ext
27205cat >>conftest.$ac_ext <<_ACEOF
27206/* end confdefs.h. */
27207/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27209#define $ac_func innocuous_$ac_func
27210
27211/* System header to define __stub macros and hopefully few prototypes,
27212 which can conflict with char $ac_func (); below.
27213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27214 <limits.h> exists even on freestanding compilers. */
27215
27216#ifdef __STDC__
27217# include <limits.h>
27218#else
27219# include <assert.h>
27220#endif
27221
27222#undef $ac_func
27223
27224/* Override any GCC internal prototype to avoid an error.
27225 Use char because int might match the return type of a GCC
27226 builtin and then its argument prototype would still apply. */
27227#ifdef __cplusplus
27228extern "C"
27229#endif
27230char $ac_func ();
27231/* The GNU C library defines this for functions which it implements
27232 to always fail with ENOSYS. Some functions are actually named
27233 something starting with __ and the normal name is an alias. */
27234#if defined __stub_$ac_func || defined __stub___$ac_func
27235choke me
27236#endif
27237
27238int
27239main ()
27240{
27241return $ac_func ();
27242 ;
27243 return 0;
27244}
27245_ACEOF
27246rm -f conftest.$ac_objext conftest$ac_exeext
27247if { (ac_try="$ac_link"
27248case "(($ac_try" in
27249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27250 *) ac_try_echo=$ac_try;;
27251esac
27252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27253 (eval "$ac_link") 2>conftest.er1
27254 ac_status=$?
27255 grep -v '^ *+' conftest.er1 >conftest.err
27256 rm -f conftest.er1
27257 cat conftest.err >&5
27258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27259 (exit $ac_status); } && {
27260 test -z "$ac_c_werror_flag" ||
27261 test ! -s conftest.err
27262 } && test -s conftest$ac_exeext &&
27263 $as_test_x conftest$ac_exeext; then
27264 eval "$as_ac_var=yes"
27265else
27266 echo "$as_me: failed program was:" >&5
27267sed 's/^/| /' conftest.$ac_ext >&5
27268
27269 eval "$as_ac_var=no"
27270fi
27271
27272rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27273 conftest$ac_exeext conftest.$ac_ext
27274fi
27275ac_res=`eval echo '${'$as_ac_var'}'`
27276 { echo "$as_me:$LINENO: result: $ac_res" >&5
27277echo "${ECHO_T}$ac_res" >&6; }
27278if test `eval echo '${'$as_ac_var'}'` = yes; then
27279 cat >>confdefs.h <<_ACEOF
27280#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27281_ACEOF
27282
27283fi
27284done
27285
27286 { echo "$as_me:$LINENO: checking whether _getshort is declared" >&5
27287echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6; }
27288if test "${ac_cv_have_decl__getshort+set}" = set; then
27289 echo $ECHO_N "(cached) $ECHO_C" >&6
27290else
27291 cat >conftest.$ac_ext <<_ACEOF
27292/* confdefs.h. */
27293_ACEOF
27294cat confdefs.h >>conftest.$ac_ext
27295cat >>conftest.$ac_ext <<_ACEOF
27296/* end confdefs.h. */
27297#include <sys/types.h>
27298 #include <arpa/nameser.h>
27299
27300int
27301main ()
27302{
27303#ifndef _getshort
27304 (void) _getshort;
27305#endif
27306
27307 ;
27308 return 0;
27309}
27310_ACEOF
27311rm -f conftest.$ac_objext
27312if { (ac_try="$ac_compile"
27313case "(($ac_try" in
27314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27315 *) ac_try_echo=$ac_try;;
27316esac
27317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27318 (eval "$ac_compile") 2>conftest.er1
27319 ac_status=$?
27320 grep -v '^ *+' conftest.er1 >conftest.err
27321 rm -f conftest.er1
27322 cat conftest.err >&5
27323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324 (exit $ac_status); } && {
27325 test -z "$ac_c_werror_flag" ||
27326 test ! -s conftest.err
27327 } && test -s conftest.$ac_objext; then
27328 ac_cv_have_decl__getshort=yes
27329else
27330 echo "$as_me: failed program was:" >&5
27331sed 's/^/| /' conftest.$ac_ext >&5
27332
27333 ac_cv_have_decl__getshort=no
27334fi
27335
27336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27337fi
27338{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5
27339echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6; }
27340if test $ac_cv_have_decl__getshort = yes; then
27341
27342cat >>confdefs.h <<_ACEOF
27343#define HAVE_DECL__GETSHORT 1
27344_ACEOF
27345
27346
27347else
27348 cat >>confdefs.h <<_ACEOF
27349#define HAVE_DECL__GETSHORT 0
27350_ACEOF
27351
27352
27353fi
27354{ echo "$as_me:$LINENO: checking whether _getlong is declared" >&5
27355echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6; }
27356if test "${ac_cv_have_decl__getlong+set}" = set; then
27357 echo $ECHO_N "(cached) $ECHO_C" >&6
27358else
27359 cat >conftest.$ac_ext <<_ACEOF
27360/* confdefs.h. */
27361_ACEOF
27362cat confdefs.h >>conftest.$ac_ext
27363cat >>conftest.$ac_ext <<_ACEOF
27364/* end confdefs.h. */
27365#include <sys/types.h>
27366 #include <arpa/nameser.h>
27367
27368int
27369main ()
27370{
27371#ifndef _getlong
27372 (void) _getlong;
27373#endif
27374
27375 ;
27376 return 0;
27377}
27378_ACEOF
27379rm -f conftest.$ac_objext
27380if { (ac_try="$ac_compile"
27381case "(($ac_try" in
27382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27383 *) ac_try_echo=$ac_try;;
27384esac
27385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27386 (eval "$ac_compile") 2>conftest.er1
27387 ac_status=$?
27388 grep -v '^ *+' conftest.er1 >conftest.err
27389 rm -f conftest.er1
27390 cat conftest.err >&5
27391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27392 (exit $ac_status); } && {
27393 test -z "$ac_c_werror_flag" ||
27394 test ! -s conftest.err
27395 } && test -s conftest.$ac_objext; then
27396 ac_cv_have_decl__getlong=yes
27397else
27398 echo "$as_me: failed program was:" >&5
27399sed 's/^/| /' conftest.$ac_ext >&5
27400
27401 ac_cv_have_decl__getlong=no
27402fi
27403
27404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27405fi
27406{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5
27407echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6; }
27408if test $ac_cv_have_decl__getlong = yes; then
27409
27410cat >>confdefs.h <<_ACEOF
27411#define HAVE_DECL__GETLONG 1
27412_ACEOF
27413
27414
27415else
27416 cat >>confdefs.h <<_ACEOF
27417#define HAVE_DECL__GETLONG 0
27418_ACEOF
27419
27420
27421fi
27422
27423
27424 { echo "$as_me:$LINENO: checking for HEADER.ad" >&5
27425echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6; }
27426if test "${ac_cv_member_HEADER_ad+set}" = set; then
27427 echo $ECHO_N "(cached) $ECHO_C" >&6
27428else
27429 cat >conftest.$ac_ext <<_ACEOF
27430/* confdefs.h. */
27431_ACEOF
27432cat confdefs.h >>conftest.$ac_ext
27433cat >>conftest.$ac_ext <<_ACEOF
27434/* end confdefs.h. */
27435#include <arpa/nameser.h>
27436
27437int
27438main ()
27439{
27440static HEADER ac_aggr;
27441if (ac_aggr.ad)
27442return 0;
27443 ;
27444 return 0;
27445}
27446_ACEOF
27447rm -f conftest.$ac_objext
27448if { (ac_try="$ac_compile"
27449case "(($ac_try" in
27450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27451 *) ac_try_echo=$ac_try;;
27452esac
27453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27454 (eval "$ac_compile") 2>conftest.er1
27455 ac_status=$?
27456 grep -v '^ *+' conftest.er1 >conftest.err
27457 rm -f conftest.er1
27458 cat conftest.err >&5
27459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460 (exit $ac_status); } && {
27461 test -z "$ac_c_werror_flag" ||
27462 test ! -s conftest.err
27463 } && test -s conftest.$ac_objext; then
27464 ac_cv_member_HEADER_ad=yes
27465else
27466 echo "$as_me: failed program was:" >&5
27467sed 's/^/| /' conftest.$ac_ext >&5
27468
27469 cat >conftest.$ac_ext <<_ACEOF
27470/* confdefs.h. */
27471_ACEOF
27472cat confdefs.h >>conftest.$ac_ext
27473cat >>conftest.$ac_ext <<_ACEOF
27474/* end confdefs.h. */
27475#include <arpa/nameser.h>
27476
27477int
27478main ()
27479{
27480static HEADER ac_aggr;
27481if (sizeof ac_aggr.ad)
27482return 0;
27483 ;
27484 return 0;
27485}
27486_ACEOF
27487rm -f conftest.$ac_objext
27488if { (ac_try="$ac_compile"
27489case "(($ac_try" in
27490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27491 *) ac_try_echo=$ac_try;;
27492esac
27493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27494 (eval "$ac_compile") 2>conftest.er1
27495 ac_status=$?
27496 grep -v '^ *+' conftest.er1 >conftest.err
27497 rm -f conftest.er1
27498 cat conftest.err >&5
27499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27500 (exit $ac_status); } && {
27501 test -z "$ac_c_werror_flag" ||
27502 test ! -s conftest.err
27503 } && test -s conftest.$ac_objext; then
27504 ac_cv_member_HEADER_ad=yes
27505else
27506 echo "$as_me: failed program was:" >&5
27507sed 's/^/| /' conftest.$ac_ext >&5
27508
27509 ac_cv_member_HEADER_ad=no
27510fi
27511
27512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27513fi
27514
27515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27516fi
27517{ echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5
27518echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6; }
27519if test $ac_cv_member_HEADER_ad = yes; then
27520
27521cat >>confdefs.h <<\_ACEOF
27522#define HAVE_HEADER_AD 1
27523_ACEOF
27524
27525fi
27526
27527
27528fi
27529
27530
27531{ echo "$as_me:$LINENO: checking if struct __res_state _res is an extern" >&5
27532echo $ECHO_N "checking if struct __res_state _res is an extern... $ECHO_C" >&6; }
27533cat >conftest.$ac_ext <<_ACEOF
27534
27535#include <stdio.h>
27536#if HAVE_SYS_TYPES_H
27537# include <sys/types.h>
27538#endif
27539#include <netinet/in.h>
27540#include <arpa/nameser.h>
27541#include <resolv.h>
27542extern struct __res_state _res;
27543int main() { return 0; }
27544
27545_ACEOF
27546rm -f conftest.$ac_objext conftest$ac_exeext
27547if { (ac_try="$ac_link"
27548case "(($ac_try" in
27549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27550 *) ac_try_echo=$ac_try;;
27551esac
27552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27553 (eval "$ac_link") 2>conftest.er1
27554 ac_status=$?
27555 grep -v '^ *+' conftest.er1 >conftest.err
27556 rm -f conftest.er1
27557 cat conftest.err >&5
27558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559 (exit $ac_status); } && {
27560 test -z "$ac_c_werror_flag" ||
27561 test ! -s conftest.err
27562 } && test -s conftest$ac_exeext &&
27563 $as_test_x conftest$ac_exeext; then
27564 { echo "$as_me:$LINENO: result: yes" >&5
27565echo "${ECHO_T}yes" >&6; }
27566
27567cat >>confdefs.h <<\_ACEOF
27568#define HAVE__RES_EXTERN 1
27569_ACEOF
27570
27571
27572else
27573 echo "$as_me: failed program was:" >&5
27574sed 's/^/| /' conftest.$ac_ext >&5
27575
27576 { echo "$as_me:$LINENO: result: no" >&5
27577echo "${ECHO_T}no" >&6; }
27578
27579fi
27580
27581rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27582 conftest$ac_exeext conftest.$ac_ext
27583
27584# Check whether user wants SELinux support
27585SELINUX_MSG="no"
27586LIBSELINUX=""
27587
27588# Check whether --with-selinux was given.
27589if test "${with_selinux+set}" = set; then
27590 withval=$with_selinux; if test "x$withval" != "xno" ; then
27591 save_LIBS="$LIBS"
27592
27593cat >>confdefs.h <<\_ACEOF
27594#define WITH_SELINUX 1
27595_ACEOF
27596
27597 SELINUX_MSG="yes"
27598 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
27599 { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
27600echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
27601if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
27602 echo $ECHO_N "(cached) $ECHO_C" >&6
27603fi
27604{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
27605echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
27606else
27607 # Is the header compilable?
27608{ echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
27609echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; }
27610cat >conftest.$ac_ext <<_ACEOF
27611/* confdefs.h. */
27612_ACEOF
27613cat confdefs.h >>conftest.$ac_ext
27614cat >>conftest.$ac_ext <<_ACEOF
27615/* end confdefs.h. */
27616$ac_includes_default
27617#include <selinux/selinux.h>
27618_ACEOF
27619rm -f conftest.$ac_objext
27620if { (ac_try="$ac_compile"
27621case "(($ac_try" in
27622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27623 *) ac_try_echo=$ac_try;;
27624esac
27625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27626 (eval "$ac_compile") 2>conftest.er1
27627 ac_status=$?
27628 grep -v '^ *+' conftest.er1 >conftest.err
27629 rm -f conftest.er1
27630 cat conftest.err >&5
27631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27632 (exit $ac_status); } && {
27633 test -z "$ac_c_werror_flag" ||
27634 test ! -s conftest.err
27635 } && test -s conftest.$ac_objext; then
27636 ac_header_compiler=yes
27637else
27638 echo "$as_me: failed program was:" >&5
27639sed 's/^/| /' conftest.$ac_ext >&5
27640
27641 ac_header_compiler=no
27642fi
27643
27644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27645{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27646echo "${ECHO_T}$ac_header_compiler" >&6; }
27647
27648# Is the header present?
27649{ echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
27650echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; }
27651cat >conftest.$ac_ext <<_ACEOF
27652/* confdefs.h. */
27653_ACEOF
27654cat confdefs.h >>conftest.$ac_ext
27655cat >>conftest.$ac_ext <<_ACEOF
27656/* end confdefs.h. */
27657#include <selinux/selinux.h>
27658_ACEOF
27659if { (ac_try="$ac_cpp conftest.$ac_ext"
27660case "(($ac_try" in
27661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27662 *) ac_try_echo=$ac_try;;
27663esac
27664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27666 ac_status=$?
27667 grep -v '^ *+' conftest.er1 >conftest.err
27668 rm -f conftest.er1
27669 cat conftest.err >&5
27670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27671 (exit $ac_status); } >/dev/null && {
27672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27673 test ! -s conftest.err
27674 }; then
27675 ac_header_preproc=yes
27676else
27677 echo "$as_me: failed program was:" >&5
27678sed 's/^/| /' conftest.$ac_ext >&5
27679
27680 ac_header_preproc=no
27681fi
27682
27683rm -f conftest.err conftest.$ac_ext
27684{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27685echo "${ECHO_T}$ac_header_preproc" >&6; }
27686
27687# So? What about this header?
27688case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27689 yes:no: )
27690 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
27691echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27692 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
27693echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
27694 ac_header_preproc=yes
27695 ;;
27696 no:yes:* )
27697 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
27698echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
27699 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
27700echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
27701 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
27702echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
27703 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
27704echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
27705 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
27706echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
27707 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
27708echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
27709 ( cat <<\_ASBOX
27710## ------------------------------------------- ##
27711## Report this to openssh-unix-dev@mindrot.org ##
27712## ------------------------------------------- ##
27713_ASBOX
27714 ) | sed "s/^/$as_me: WARNING: /" >&2
27715 ;;
27716esac
27717{ echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
27718echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
27719if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
27720 echo $ECHO_N "(cached) $ECHO_C" >&6
27721else
27722 ac_cv_header_selinux_selinux_h=$ac_header_preproc
27723fi
27724{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
27725echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
27726
27727fi
27728if test $ac_cv_header_selinux_selinux_h = yes; then
27729 :
27730else
27731 { { echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5
27732echo "$as_me: error: SELinux support requires selinux.h header" >&2;}
27733 { (exit 1); exit 1; }; }
27734fi
27735
27736
27737 { echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5
27738echo $ECHO_N "checking for setexeccon in -lselinux... $ECHO_C" >&6; }
27739if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then
27740 echo $ECHO_N "(cached) $ECHO_C" >&6
27741else
27742 ac_check_lib_save_LIBS=$LIBS
27743LIBS="-lselinux $LIBS"
27744cat >conftest.$ac_ext <<_ACEOF
27745/* confdefs.h. */
27746_ACEOF
27747cat confdefs.h >>conftest.$ac_ext
27748cat >>conftest.$ac_ext <<_ACEOF
27749/* end confdefs.h. */
27750
27751/* Override any GCC internal prototype to avoid an error.
27752 Use char because int might match the return type of a GCC
27753 builtin and then its argument prototype would still apply. */
27754#ifdef __cplusplus
27755extern "C"
27756#endif
27757char setexeccon ();
27758int
27759main ()
27760{
27761return setexeccon ();
27762 ;
27763 return 0;
27764}
27765_ACEOF
27766rm -f conftest.$ac_objext conftest$ac_exeext
27767if { (ac_try="$ac_link"
27768case "(($ac_try" in
27769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27770 *) ac_try_echo=$ac_try;;
27771esac
27772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27773 (eval "$ac_link") 2>conftest.er1
27774 ac_status=$?
27775 grep -v '^ *+' conftest.er1 >conftest.err
27776 rm -f conftest.er1
27777 cat conftest.err >&5
27778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779 (exit $ac_status); } && {
27780 test -z "$ac_c_werror_flag" ||
27781 test ! -s conftest.err
27782 } && test -s conftest$ac_exeext &&
27783 $as_test_x conftest$ac_exeext; then
27784 ac_cv_lib_selinux_setexeccon=yes
27785else
27786 echo "$as_me: failed program was:" >&5
27787sed 's/^/| /' conftest.$ac_ext >&5
27788
27789 ac_cv_lib_selinux_setexeccon=no
27790fi
27791
27792rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27793 conftest$ac_exeext conftest.$ac_ext
27794LIBS=$ac_check_lib_save_LIBS
27795fi
27796{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5
27797echo "${ECHO_T}$ac_cv_lib_selinux_setexeccon" >&6; }
27798if test $ac_cv_lib_selinux_setexeccon = yes; then
27799 LIBSELINUX="-lselinux"
27800 LIBS="$LIBS -lselinux"
27801
27802else
27803 { { echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5
27804echo "$as_me: error: SELinux support requires libselinux library" >&2;}
27805 { (exit 1); exit 1; }; }
27806fi
27807
27808 SSHLIBS="$SSHLIBS $LIBSELINUX"
27809 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
27810
27811
27812for ac_func in getseuserbyname get_default_context_with_level
27813do
27814as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27815{ echo "$as_me:$LINENO: checking for $ac_func" >&5
27816echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27817if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27818 echo $ECHO_N "(cached) $ECHO_C" >&6
27819else
27820 cat >conftest.$ac_ext <<_ACEOF
27821/* confdefs.h. */
27822_ACEOF
27823cat confdefs.h >>conftest.$ac_ext
27824cat >>conftest.$ac_ext <<_ACEOF
27825/* end confdefs.h. */
27826/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27828#define $ac_func innocuous_$ac_func
27829
27830/* System header to define __stub macros and hopefully few prototypes,
27831 which can conflict with char $ac_func (); below.
27832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27833 <limits.h> exists even on freestanding compilers. */
27834
27835#ifdef __STDC__
27836# include <limits.h>
27837#else
27838# include <assert.h>
27839#endif
27840
27841#undef $ac_func
27842
27843/* Override any GCC internal prototype to avoid an error.
27844 Use char because int might match the return type of a GCC
27845 builtin and then its argument prototype would still apply. */
27846#ifdef __cplusplus
27847extern "C"
27848#endif
27849char $ac_func ();
27850/* The GNU C library defines this for functions which it implements
27851 to always fail with ENOSYS. Some functions are actually named
27852 something starting with __ and the normal name is an alias. */
27853#if defined __stub_$ac_func || defined __stub___$ac_func
27854choke me
27855#endif
27856
27857int
27858main ()
27859{
27860return $ac_func ();
27861 ;
27862 return 0;
27863}
27864_ACEOF
27865rm -f conftest.$ac_objext conftest$ac_exeext
27866if { (ac_try="$ac_link"
27867case "(($ac_try" in
27868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27869 *) ac_try_echo=$ac_try;;
27870esac
27871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27872 (eval "$ac_link") 2>conftest.er1
27873 ac_status=$?
27874 grep -v '^ *+' conftest.er1 >conftest.err
27875 rm -f conftest.er1
27876 cat conftest.err >&5
27877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878 (exit $ac_status); } && {
27879 test -z "$ac_c_werror_flag" ||
27880 test ! -s conftest.err
27881 } && test -s conftest$ac_exeext &&
27882 $as_test_x conftest$ac_exeext; then
27883 eval "$as_ac_var=yes"
27884else
27885 echo "$as_me: failed program was:" >&5
27886sed 's/^/| /' conftest.$ac_ext >&5
27887
27888 eval "$as_ac_var=no"
27889fi
27890
27891rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27892 conftest$ac_exeext conftest.$ac_ext
27893fi
27894ac_res=`eval echo '${'$as_ac_var'}'`
27895 { echo "$as_me:$LINENO: result: $ac_res" >&5
27896echo "${ECHO_T}$ac_res" >&6; }
27897if test `eval echo '${'$as_ac_var'}'` = yes; then
27898 cat >>confdefs.h <<_ACEOF
27899#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27900_ACEOF
27901
27902fi
27903done
27904
27905 LIBS="$save_LIBS"
27906 fi
27907
27908fi
27909
27910
27911
27912
27913# Check whether user wants Kerberos 5 support
27914KRB5_MSG="no"
27915
27916# Check whether --with-kerberos5 was given.
27917if test "${with_kerberos5+set}" = set; then
27918 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
27919 if test "x$withval" = "xyes" ; then
27920 KRB5ROOT="/usr/local"
27921 else
27922 KRB5ROOT=${withval}
27923 fi
27924
27925
27926cat >>confdefs.h <<\_ACEOF
27927#define KRB5 1
27928_ACEOF
27929
27930 KRB5_MSG="yes"
27931
27932 # Extract the first word of "krb5-config", so it can be a program name with args.
27933set dummy krb5-config; ac_word=$2
27934{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27936if test "${ac_cv_path_KRB5CONF+set}" = set; then
27937 echo $ECHO_N "(cached) $ECHO_C" >&6
27938else
27939 case $KRB5CONF in
27940 [\\/]* | ?:[\\/]*)
27941 ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path.
27942 ;;
27943 *)
27944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27945as_dummy="$KRB5ROOT/bin:$PATH"
27946for as_dir in $as_dummy
27947do
27948 IFS=$as_save_IFS
27949 test -z "$as_dir" && as_dir=.
27950 for ac_exec_ext in '' $ac_executable_extensions; do
27951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27952 ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
27953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27954 break 2
27955 fi
27956done
27957done
27958IFS=$as_save_IFS
27959
27960 test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config"
27961 ;;
27962esac
27963fi
27964KRB5CONF=$ac_cv_path_KRB5CONF
27965if test -n "$KRB5CONF"; then
27966 { echo "$as_me:$LINENO: result: $KRB5CONF" >&5
27967echo "${ECHO_T}$KRB5CONF" >&6; }
27968else
27969 { echo "$as_me:$LINENO: result: no" >&5
27970echo "${ECHO_T}no" >&6; }
27971fi
27972
27973
27974 if test -x $KRB5CONF ; then
27975
27976 { echo "$as_me:$LINENO: checking for gssapi support" >&5
27977echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6; }
27978 if $KRB5CONF | grep gssapi >/dev/null ; then
27979 { echo "$as_me:$LINENO: result: yes" >&5
27980echo "${ECHO_T}yes" >&6; }
27981
27982cat >>confdefs.h <<\_ACEOF
27983#define GSSAPI 1
27984_ACEOF
27985
27986 k5confopts=gssapi
27987 else
27988 { echo "$as_me:$LINENO: result: no" >&5
27989echo "${ECHO_T}no" >&6; }
27990 k5confopts=""
27991 fi
27992 K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
27993 K5LIBS="`$KRB5CONF --libs $k5confopts`"
27994 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
27995 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
27996echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
27997 cat >conftest.$ac_ext <<_ACEOF
27998/* confdefs.h. */
27999_ACEOF
28000cat confdefs.h >>conftest.$ac_ext
28001cat >>conftest.$ac_ext <<_ACEOF
28002/* end confdefs.h. */
28003 #include <krb5.h>
28004int
28005main ()
28006{
28007 char *tmp = heimdal_version;
28008 ;
28009 return 0;
28010}
28011_ACEOF
28012rm -f conftest.$ac_objext
28013if { (ac_try="$ac_compile"
28014case "(($ac_try" in
28015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28016 *) ac_try_echo=$ac_try;;
28017esac
28018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28019 (eval "$ac_compile") 2>conftest.er1
28020 ac_status=$?
28021 grep -v '^ *+' conftest.er1 >conftest.err
28022 rm -f conftest.er1
28023 cat conftest.err >&5
28024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28025 (exit $ac_status); } && {
28026 test -z "$ac_c_werror_flag" ||
28027 test ! -s conftest.err
28028 } && test -s conftest.$ac_objext; then
28029 { echo "$as_me:$LINENO: result: yes" >&5
28030echo "${ECHO_T}yes" >&6; }
28031
28032cat >>confdefs.h <<\_ACEOF
28033#define HEIMDAL 1
28034_ACEOF
28035
28036else
28037 echo "$as_me: failed program was:" >&5
28038sed 's/^/| /' conftest.$ac_ext >&5
28039
28040 { echo "$as_me:$LINENO: result: no" >&5
28041echo "${ECHO_T}no" >&6; }
28042
28043fi
28044
28045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28046 else
28047 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
28048 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
28049 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
28050echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
28051 cat >conftest.$ac_ext <<_ACEOF
28052/* confdefs.h. */
28053_ACEOF
28054cat confdefs.h >>conftest.$ac_ext
28055cat >>conftest.$ac_ext <<_ACEOF
28056/* end confdefs.h. */
28057 #include <krb5.h>
28058int
28059main ()
28060{
28061 char *tmp = heimdal_version;
28062 ;
28063 return 0;
28064}
28065_ACEOF
28066rm -f conftest.$ac_objext
28067if { (ac_try="$ac_compile"
28068case "(($ac_try" in
28069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28070 *) ac_try_echo=$ac_try;;
28071esac
28072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28073 (eval "$ac_compile") 2>conftest.er1
28074 ac_status=$?
28075 grep -v '^ *+' conftest.er1 >conftest.err
28076 rm -f conftest.er1
28077 cat conftest.err >&5
28078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079 (exit $ac_status); } && {
28080 test -z "$ac_c_werror_flag" ||
28081 test ! -s conftest.err
28082 } && test -s conftest.$ac_objext; then
28083 { echo "$as_me:$LINENO: result: yes" >&5
28084echo "${ECHO_T}yes" >&6; }
28085 cat >>confdefs.h <<\_ACEOF
28086#define HEIMDAL 1
28087_ACEOF
28088
28089 K5LIBS="-lkrb5"
28090 K5LIBS="$K5LIBS -lcom_err -lasn1"
28091 { echo "$as_me:$LINENO: checking for net_write in -lroken" >&5
28092echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6; }
28093if test "${ac_cv_lib_roken_net_write+set}" = set; then
28094 echo $ECHO_N "(cached) $ECHO_C" >&6
28095else
28096 ac_check_lib_save_LIBS=$LIBS
28097LIBS="-lroken $LIBS"
28098cat >conftest.$ac_ext <<_ACEOF
28099/* confdefs.h. */
28100_ACEOF
28101cat confdefs.h >>conftest.$ac_ext
28102cat >>conftest.$ac_ext <<_ACEOF
28103/* end confdefs.h. */
28104
28105/* Override any GCC internal prototype to avoid an error.
28106 Use char because int might match the return type of a GCC
28107 builtin and then its argument prototype would still apply. */
28108#ifdef __cplusplus
28109extern "C"
28110#endif
28111char net_write ();
28112int
28113main ()
28114{
28115return net_write ();
28116 ;
28117 return 0;
28118}
28119_ACEOF
28120rm -f conftest.$ac_objext conftest$ac_exeext
28121if { (ac_try="$ac_link"
28122case "(($ac_try" in
28123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28124 *) ac_try_echo=$ac_try;;
28125esac
28126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28127 (eval "$ac_link") 2>conftest.er1
28128 ac_status=$?
28129 grep -v '^ *+' conftest.er1 >conftest.err
28130 rm -f conftest.er1
28131 cat conftest.err >&5
28132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133 (exit $ac_status); } && {
28134 test -z "$ac_c_werror_flag" ||
28135 test ! -s conftest.err
28136 } && test -s conftest$ac_exeext &&
28137 $as_test_x conftest$ac_exeext; then
28138 ac_cv_lib_roken_net_write=yes
28139else
28140 echo "$as_me: failed program was:" >&5
28141sed 's/^/| /' conftest.$ac_ext >&5
28142
28143 ac_cv_lib_roken_net_write=no
28144fi
28145
28146rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28147 conftest$ac_exeext conftest.$ac_ext
28148LIBS=$ac_check_lib_save_LIBS
28149fi
28150{ echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5
28151echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6; }
28152if test $ac_cv_lib_roken_net_write = yes; then
28153 K5LIBS="$K5LIBS -lroken"
28154fi
28155
28156 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
28157echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
28158if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
28159 echo $ECHO_N "(cached) $ECHO_C" >&6
28160else
28161 ac_check_lib_save_LIBS=$LIBS
28162LIBS="-ldes $LIBS"
28163cat >conftest.$ac_ext <<_ACEOF
28164/* confdefs.h. */
28165_ACEOF
28166cat confdefs.h >>conftest.$ac_ext
28167cat >>conftest.$ac_ext <<_ACEOF
28168/* end confdefs.h. */
28169
28170/* Override any GCC internal prototype to avoid an error.
28171 Use char because int might match the return type of a GCC
28172 builtin and then its argument prototype would still apply. */
28173#ifdef __cplusplus
28174extern "C"
28175#endif
28176char des_cbc_encrypt ();
28177int
28178main ()
28179{
28180return des_cbc_encrypt ();
28181 ;
28182 return 0;
28183}
28184_ACEOF
28185rm -f conftest.$ac_objext conftest$ac_exeext
28186if { (ac_try="$ac_link"
28187case "(($ac_try" in
28188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28189 *) ac_try_echo=$ac_try;;
28190esac
28191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28192 (eval "$ac_link") 2>conftest.er1
28193 ac_status=$?
28194 grep -v '^ *+' conftest.er1 >conftest.err
28195 rm -f conftest.er1
28196 cat conftest.err >&5
28197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28198 (exit $ac_status); } && {
28199 test -z "$ac_c_werror_flag" ||
28200 test ! -s conftest.err
28201 } && test -s conftest$ac_exeext &&
28202 $as_test_x conftest$ac_exeext; then
28203 ac_cv_lib_des_des_cbc_encrypt=yes
28204else
28205 echo "$as_me: failed program was:" >&5
28206sed 's/^/| /' conftest.$ac_ext >&5
28207
28208 ac_cv_lib_des_des_cbc_encrypt=no
28209fi
28210
28211rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28212 conftest$ac_exeext conftest.$ac_ext
28213LIBS=$ac_check_lib_save_LIBS
28214fi
28215{ echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
28216echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
28217if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
28218 K5LIBS="$K5LIBS -ldes"
28219fi
28220
28221
28222else
28223 echo "$as_me: failed program was:" >&5
28224sed 's/^/| /' conftest.$ac_ext >&5
28225
28226 { echo "$as_me:$LINENO: result: no" >&5
28227echo "${ECHO_T}no" >&6; }
28228 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
28229
28230
28231fi
28232
28233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28234 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
28235echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
28236if test "${ac_cv_search_dn_expand+set}" = set; then
28237 echo $ECHO_N "(cached) $ECHO_C" >&6
28238else
28239 ac_func_search_save_LIBS=$LIBS
28240cat >conftest.$ac_ext <<_ACEOF
28241/* confdefs.h. */
28242_ACEOF
28243cat confdefs.h >>conftest.$ac_ext
28244cat >>conftest.$ac_ext <<_ACEOF
28245/* end confdefs.h. */
28246
28247/* Override any GCC internal prototype to avoid an error.
28248 Use char because int might match the return type of a GCC
28249 builtin and then its argument prototype would still apply. */
28250#ifdef __cplusplus
28251extern "C"
28252#endif
28253char dn_expand ();
28254int
28255main ()
28256{
28257return dn_expand ();
28258 ;
28259 return 0;
28260}
28261_ACEOF
28262for ac_lib in '' resolv; do
28263 if test -z "$ac_lib"; then
28264 ac_res="none required"
28265 else
28266 ac_res=-l$ac_lib
28267 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28268 fi
28269 rm -f conftest.$ac_objext conftest$ac_exeext
28270if { (ac_try="$ac_link"
28271case "(($ac_try" in
28272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28273 *) ac_try_echo=$ac_try;;
28274esac
28275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28276 (eval "$ac_link") 2>conftest.er1
28277 ac_status=$?
28278 grep -v '^ *+' conftest.er1 >conftest.err
28279 rm -f conftest.er1
28280 cat conftest.err >&5
28281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28282 (exit $ac_status); } && {
28283 test -z "$ac_c_werror_flag" ||
28284 test ! -s conftest.err
28285 } && test -s conftest$ac_exeext &&
28286 $as_test_x conftest$ac_exeext; then
28287 ac_cv_search_dn_expand=$ac_res
28288else
28289 echo "$as_me: failed program was:" >&5
28290sed 's/^/| /' conftest.$ac_ext >&5
28291
28292
28293fi
28294
28295rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28296 conftest$ac_exeext
28297 if test "${ac_cv_search_dn_expand+set}" = set; then
28298 break
28299fi
28300done
28301if test "${ac_cv_search_dn_expand+set}" = set; then
28302 :
28303else
28304 ac_cv_search_dn_expand=no
28305fi
28306rm conftest.$ac_ext
28307LIBS=$ac_func_search_save_LIBS
28308fi
28309{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
28310echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
28311ac_res=$ac_cv_search_dn_expand
28312if test "$ac_res" != no; then
28313 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28314
28315fi
28316
28317
28318 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
28319echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; }
28320if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
28321 echo $ECHO_N "(cached) $ECHO_C" >&6
28322else
28323 ac_check_lib_save_LIBS=$LIBS
28324LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
28325cat >conftest.$ac_ext <<_ACEOF
28326/* confdefs.h. */
28327_ACEOF
28328cat confdefs.h >>conftest.$ac_ext
28329cat >>conftest.$ac_ext <<_ACEOF
28330/* end confdefs.h. */
28331
28332/* Override any GCC internal prototype to avoid an error.
28333 Use char because int might match the return type of a GCC
28334 builtin and then its argument prototype would still apply. */
28335#ifdef __cplusplus
28336extern "C"
28337#endif
28338char gss_init_sec_context ();
28339int
28340main ()
28341{
28342return gss_init_sec_context ();
28343 ;
28344 return 0;
28345}
28346_ACEOF
28347rm -f conftest.$ac_objext conftest$ac_exeext
28348if { (ac_try="$ac_link"
28349case "(($ac_try" in
28350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28351 *) ac_try_echo=$ac_try;;
28352esac
28353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28354 (eval "$ac_link") 2>conftest.er1
28355 ac_status=$?
28356 grep -v '^ *+' conftest.er1 >conftest.err
28357 rm -f conftest.er1
28358 cat conftest.err >&5
28359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28360 (exit $ac_status); } && {
28361 test -z "$ac_c_werror_flag" ||
28362 test ! -s conftest.err
28363 } && test -s conftest$ac_exeext &&
28364 $as_test_x conftest$ac_exeext; then
28365 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
28366else
28367 echo "$as_me: failed program was:" >&5
28368sed 's/^/| /' conftest.$ac_ext >&5
28369
28370 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
28371fi
28372
28373rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28374 conftest$ac_exeext conftest.$ac_ext
28375LIBS=$ac_check_lib_save_LIBS
28376fi
28377{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
28378echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
28379if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
28380 cat >>confdefs.h <<\_ACEOF
28381#define GSSAPI 1
28382_ACEOF
28383
28384 K5LIBS="-lgssapi_krb5 $K5LIBS"
28385else
28386 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
28387echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; }
28388if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
28389 echo $ECHO_N "(cached) $ECHO_C" >&6
28390else
28391 ac_check_lib_save_LIBS=$LIBS
28392LIBS="-lgssapi $K5LIBS $LIBS"
28393cat >conftest.$ac_ext <<_ACEOF
28394/* confdefs.h. */
28395_ACEOF
28396cat confdefs.h >>conftest.$ac_ext
28397cat >>conftest.$ac_ext <<_ACEOF
28398/* end confdefs.h. */
28399
28400/* Override any GCC internal prototype to avoid an error.
28401 Use char because int might match the return type of a GCC
28402 builtin and then its argument prototype would still apply. */
28403#ifdef __cplusplus
28404extern "C"
28405#endif
28406char gss_init_sec_context ();
28407int
28408main ()
28409{
28410return gss_init_sec_context ();
28411 ;
28412 return 0;
28413}
28414_ACEOF
28415rm -f conftest.$ac_objext conftest$ac_exeext
28416if { (ac_try="$ac_link"
28417case "(($ac_try" in
28418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28419 *) ac_try_echo=$ac_try;;
28420esac
28421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28422 (eval "$ac_link") 2>conftest.er1
28423 ac_status=$?
28424 grep -v '^ *+' conftest.er1 >conftest.err
28425 rm -f conftest.er1
28426 cat conftest.err >&5
28427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428 (exit $ac_status); } && {
28429 test -z "$ac_c_werror_flag" ||
28430 test ! -s conftest.err
28431 } && test -s conftest$ac_exeext &&
28432 $as_test_x conftest$ac_exeext; then
28433 ac_cv_lib_gssapi_gss_init_sec_context=yes
28434else
28435 echo "$as_me: failed program was:" >&5
28436sed 's/^/| /' conftest.$ac_ext >&5
28437
28438 ac_cv_lib_gssapi_gss_init_sec_context=no
28439fi
28440
28441rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28442 conftest$ac_exeext conftest.$ac_ext
28443LIBS=$ac_check_lib_save_LIBS
28444fi
28445{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
28446echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
28447if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
28448 cat >>confdefs.h <<\_ACEOF
28449#define GSSAPI 1
28450_ACEOF
28451
28452 K5LIBS="-lgssapi $K5LIBS"
28453else
28454 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
28455echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
28456fi
28457
28458
28459fi
28460
28461
28462 if test "${ac_cv_header_gssapi_h+set}" = set; then
28463 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
28464echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
28465if test "${ac_cv_header_gssapi_h+set}" = set; then
28466 echo $ECHO_N "(cached) $ECHO_C" >&6
28467fi
28468{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
28469echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
28470else
28471 # Is the header compilable?
28472{ echo "$as_me:$LINENO: checking gssapi.h usability" >&5
28473echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; }
28474cat >conftest.$ac_ext <<_ACEOF
28475/* confdefs.h. */
28476_ACEOF
28477cat confdefs.h >>conftest.$ac_ext
28478cat >>conftest.$ac_ext <<_ACEOF
28479/* end confdefs.h. */
28480$ac_includes_default
28481#include <gssapi.h>
28482_ACEOF
28483rm -f conftest.$ac_objext
28484if { (ac_try="$ac_compile"
28485case "(($ac_try" in
28486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28487 *) ac_try_echo=$ac_try;;
28488esac
28489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28490 (eval "$ac_compile") 2>conftest.er1
28491 ac_status=$?
28492 grep -v '^ *+' conftest.er1 >conftest.err
28493 rm -f conftest.er1
28494 cat conftest.err >&5
28495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28496 (exit $ac_status); } && {
28497 test -z "$ac_c_werror_flag" ||
28498 test ! -s conftest.err
28499 } && test -s conftest.$ac_objext; then
28500 ac_header_compiler=yes
28501else
28502 echo "$as_me: failed program was:" >&5
28503sed 's/^/| /' conftest.$ac_ext >&5
28504
28505 ac_header_compiler=no
28506fi
28507
28508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28509{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28510echo "${ECHO_T}$ac_header_compiler" >&6; }
28511
28512# Is the header present?
28513{ echo "$as_me:$LINENO: checking gssapi.h presence" >&5
28514echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; }
28515cat >conftest.$ac_ext <<_ACEOF
28516/* confdefs.h. */
28517_ACEOF
28518cat confdefs.h >>conftest.$ac_ext
28519cat >>conftest.$ac_ext <<_ACEOF
28520/* end confdefs.h. */
28521#include <gssapi.h>
28522_ACEOF
28523if { (ac_try="$ac_cpp conftest.$ac_ext"
28524case "(($ac_try" in
28525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28526 *) ac_try_echo=$ac_try;;
28527esac
28528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28530 ac_status=$?
28531 grep -v '^ *+' conftest.er1 >conftest.err
28532 rm -f conftest.er1
28533 cat conftest.err >&5
28534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28535 (exit $ac_status); } >/dev/null && {
28536 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28537 test ! -s conftest.err
28538 }; then
28539 ac_header_preproc=yes
28540else
28541 echo "$as_me: failed program was:" >&5
28542sed 's/^/| /' conftest.$ac_ext >&5
28543
28544 ac_header_preproc=no
28545fi
28546
28547rm -f conftest.err conftest.$ac_ext
28548{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28549echo "${ECHO_T}$ac_header_preproc" >&6; }
28550
28551# So? What about this header?
28552case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28553 yes:no: )
28554 { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
28555echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28556 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
28557echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
28558 ac_header_preproc=yes
28559 ;;
28560 no:yes:* )
28561 { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
28562echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
28563 { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5
28564echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;}
28565 { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
28566echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
28567 { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5
28568echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
28569 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
28570echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
28571 { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
28572echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
28573 ( cat <<\_ASBOX
28574## ------------------------------------------- ##
28575## Report this to openssh-unix-dev@mindrot.org ##
28576## ------------------------------------------- ##
28577_ASBOX
28578 ) | sed "s/^/$as_me: WARNING: /" >&2
28579 ;;
28580esac
28581{ echo "$as_me:$LINENO: checking for gssapi.h" >&5
28582echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
28583if test "${ac_cv_header_gssapi_h+set}" = set; then
28584 echo $ECHO_N "(cached) $ECHO_C" >&6
28585else
28586 ac_cv_header_gssapi_h=$ac_header_preproc
28587fi
28588{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
28589echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
28590
28591fi
28592if test $ac_cv_header_gssapi_h = yes; then
28593 :
28594else
28595 unset ac_cv_header_gssapi_h
28596 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
28597
28598for ac_header in gssapi.h
28599do
28600as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28601if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28603echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28604if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28605 echo $ECHO_N "(cached) $ECHO_C" >&6
28606fi
28607ac_res=`eval echo '${'$as_ac_Header'}'`
28608 { echo "$as_me:$LINENO: result: $ac_res" >&5
28609echo "${ECHO_T}$ac_res" >&6; }
28610else
28611 # Is the header compilable?
28612{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28613echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28614cat >conftest.$ac_ext <<_ACEOF
28615/* confdefs.h. */
28616_ACEOF
28617cat confdefs.h >>conftest.$ac_ext
28618cat >>conftest.$ac_ext <<_ACEOF
28619/* end confdefs.h. */
28620$ac_includes_default
28621#include <$ac_header>
28622_ACEOF
28623rm -f conftest.$ac_objext
28624if { (ac_try="$ac_compile"
28625case "(($ac_try" in
28626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28627 *) ac_try_echo=$ac_try;;
28628esac
28629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28630 (eval "$ac_compile") 2>conftest.er1
28631 ac_status=$?
28632 grep -v '^ *+' conftest.er1 >conftest.err
28633 rm -f conftest.er1
28634 cat conftest.err >&5
28635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28636 (exit $ac_status); } && {
28637 test -z "$ac_c_werror_flag" ||
28638 test ! -s conftest.err
28639 } && test -s conftest.$ac_objext; then
28640 ac_header_compiler=yes
28641else
28642 echo "$as_me: failed program was:" >&5
28643sed 's/^/| /' conftest.$ac_ext >&5
28644
28645 ac_header_compiler=no
28646fi
28647
28648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28649{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28650echo "${ECHO_T}$ac_header_compiler" >&6; }
28651
28652# Is the header present?
28653{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28654echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28655cat >conftest.$ac_ext <<_ACEOF
28656/* confdefs.h. */
28657_ACEOF
28658cat confdefs.h >>conftest.$ac_ext
28659cat >>conftest.$ac_ext <<_ACEOF
28660/* end confdefs.h. */
28661#include <$ac_header>
28662_ACEOF
28663if { (ac_try="$ac_cpp conftest.$ac_ext"
28664case "(($ac_try" in
28665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28666 *) ac_try_echo=$ac_try;;
28667esac
28668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28670 ac_status=$?
28671 grep -v '^ *+' conftest.er1 >conftest.err
28672 rm -f conftest.er1
28673 cat conftest.err >&5
28674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675 (exit $ac_status); } >/dev/null && {
28676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28677 test ! -s conftest.err
28678 }; then
28679 ac_header_preproc=yes
28680else
28681 echo "$as_me: failed program was:" >&5
28682sed 's/^/| /' conftest.$ac_ext >&5
28683
28684 ac_header_preproc=no
28685fi
28686
28687rm -f conftest.err conftest.$ac_ext
28688{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28689echo "${ECHO_T}$ac_header_preproc" >&6; }
28690
28691# So? What about this header?
28692case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28693 yes:no: )
28694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28695echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28697echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28698 ac_header_preproc=yes
28699 ;;
28700 no:yes:* )
28701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28702echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28704echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28706echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28708echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28710echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28712echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28713 ( cat <<\_ASBOX
28714## ------------------------------------------- ##
28715## Report this to openssh-unix-dev@mindrot.org ##
28716## ------------------------------------------- ##
28717_ASBOX
28718 ) | sed "s/^/$as_me: WARNING: /" >&2
28719 ;;
28720esac
28721{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28722echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28723if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28724 echo $ECHO_N "(cached) $ECHO_C" >&6
28725else
28726 eval "$as_ac_Header=\$ac_header_preproc"
28727fi
28728ac_res=`eval echo '${'$as_ac_Header'}'`
28729 { echo "$as_me:$LINENO: result: $ac_res" >&5
28730echo "${ECHO_T}$ac_res" >&6; }
28731
28732fi
28733if test `eval echo '${'$as_ac_Header'}'` = yes; then
28734 cat >>confdefs.h <<_ACEOF
28735#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28736_ACEOF
28737
28738else
28739 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
28740echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
28741
28742fi
28743
28744done
28745
28746
28747
28748fi
28749
28750
28751
28752 oldCPP="$CPPFLAGS"
28753 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
28754 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
28755 { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
28756echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
28757if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
28758 echo $ECHO_N "(cached) $ECHO_C" >&6
28759fi
28760{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
28761echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
28762else
28763 # Is the header compilable?
28764{ echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5
28765echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6; }
28766cat >conftest.$ac_ext <<_ACEOF
28767/* confdefs.h. */
28768_ACEOF
28769cat confdefs.h >>conftest.$ac_ext
28770cat >>conftest.$ac_ext <<_ACEOF
28771/* end confdefs.h. */
28772$ac_includes_default
28773#include <gssapi_krb5.h>
28774_ACEOF
28775rm -f conftest.$ac_objext
28776if { (ac_try="$ac_compile"
28777case "(($ac_try" in
28778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28779 *) ac_try_echo=$ac_try;;
28780esac
28781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28782 (eval "$ac_compile") 2>conftest.er1
28783 ac_status=$?
28784 grep -v '^ *+' conftest.er1 >conftest.err
28785 rm -f conftest.er1
28786 cat conftest.err >&5
28787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28788 (exit $ac_status); } && {
28789 test -z "$ac_c_werror_flag" ||
28790 test ! -s conftest.err
28791 } && test -s conftest.$ac_objext; then
28792 ac_header_compiler=yes
28793else
28794 echo "$as_me: failed program was:" >&5
28795sed 's/^/| /' conftest.$ac_ext >&5
28796
28797 ac_header_compiler=no
28798fi
28799
28800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28801{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28802echo "${ECHO_T}$ac_header_compiler" >&6; }
28803
28804# Is the header present?
28805{ echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5
28806echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6; }
28807cat >conftest.$ac_ext <<_ACEOF
28808/* confdefs.h. */
28809_ACEOF
28810cat confdefs.h >>conftest.$ac_ext
28811cat >>conftest.$ac_ext <<_ACEOF
28812/* end confdefs.h. */
28813#include <gssapi_krb5.h>
28814_ACEOF
28815if { (ac_try="$ac_cpp conftest.$ac_ext"
28816case "(($ac_try" in
28817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28818 *) ac_try_echo=$ac_try;;
28819esac
28820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28822 ac_status=$?
28823 grep -v '^ *+' conftest.er1 >conftest.err
28824 rm -f conftest.er1
28825 cat conftest.err >&5
28826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28827 (exit $ac_status); } >/dev/null && {
28828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28829 test ! -s conftest.err
28830 }; then
28831 ac_header_preproc=yes
28832else
28833 echo "$as_me: failed program was:" >&5
28834sed 's/^/| /' conftest.$ac_ext >&5
28835
28836 ac_header_preproc=no
28837fi
28838
28839rm -f conftest.err conftest.$ac_ext
28840{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28841echo "${ECHO_T}$ac_header_preproc" >&6; }
28842
28843# So? What about this header?
28844case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28845 yes:no: )
28846 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
28847echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28848 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5
28849echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;}
28850 ac_header_preproc=yes
28851 ;;
28852 no:yes:* )
28853 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5
28854echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;}
28855 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5
28856echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;}
28857 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5
28858echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;}
28859 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5
28860echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
28861 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5
28862echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;}
28863 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5
28864echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;}
28865 ( cat <<\_ASBOX
28866## ------------------------------------------- ##
28867## Report this to openssh-unix-dev@mindrot.org ##
28868## ------------------------------------------- ##
28869_ASBOX
28870 ) | sed "s/^/$as_me: WARNING: /" >&2
28871 ;;
28872esac
28873{ echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
28874echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
28875if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
28876 echo $ECHO_N "(cached) $ECHO_C" >&6
28877else
28878 ac_cv_header_gssapi_krb5_h=$ac_header_preproc
28879fi
28880{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
28881echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
28882
28883fi
28884if test $ac_cv_header_gssapi_krb5_h = yes; then
28885 :
28886else
28887 CPPFLAGS="$oldCPP"
28888fi
28889
28890
28891
28892 fi
28893 if test ! -z "$need_dash_r" ; then
28894 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
28895 fi
28896 if test ! -z "$blibpath" ; then
28897 blibpath="$blibpath:${KRB5ROOT}/lib"
28898 fi
28899
28900
28901
28902for ac_header in gssapi.h gssapi/gssapi.h
28903do
28904as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28905if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28906 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28908if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28909 echo $ECHO_N "(cached) $ECHO_C" >&6
28910fi
28911ac_res=`eval echo '${'$as_ac_Header'}'`
28912 { echo "$as_me:$LINENO: result: $ac_res" >&5
28913echo "${ECHO_T}$ac_res" >&6; }
28914else
28915 # Is the header compilable?
28916{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28917echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28918cat >conftest.$ac_ext <<_ACEOF
28919/* confdefs.h. */
28920_ACEOF
28921cat confdefs.h >>conftest.$ac_ext
28922cat >>conftest.$ac_ext <<_ACEOF
28923/* end confdefs.h. */
28924$ac_includes_default
28925#include <$ac_header>
28926_ACEOF
28927rm -f conftest.$ac_objext
28928if { (ac_try="$ac_compile"
28929case "(($ac_try" in
28930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28931 *) ac_try_echo=$ac_try;;
28932esac
28933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28934 (eval "$ac_compile") 2>conftest.er1
28935 ac_status=$?
28936 grep -v '^ *+' conftest.er1 >conftest.err
28937 rm -f conftest.er1
28938 cat conftest.err >&5
28939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28940 (exit $ac_status); } && {
28941 test -z "$ac_c_werror_flag" ||
28942 test ! -s conftest.err
28943 } && test -s conftest.$ac_objext; then
28944 ac_header_compiler=yes
28945else
28946 echo "$as_me: failed program was:" >&5
28947sed 's/^/| /' conftest.$ac_ext >&5
28948
28949 ac_header_compiler=no
28950fi
28951
28952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28953{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28954echo "${ECHO_T}$ac_header_compiler" >&6; }
28955
28956# Is the header present?
28957{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28958echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28959cat >conftest.$ac_ext <<_ACEOF
28960/* confdefs.h. */
28961_ACEOF
28962cat confdefs.h >>conftest.$ac_ext
28963cat >>conftest.$ac_ext <<_ACEOF
28964/* end confdefs.h. */
28965#include <$ac_header>
28966_ACEOF
28967if { (ac_try="$ac_cpp conftest.$ac_ext"
28968case "(($ac_try" in
28969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28970 *) ac_try_echo=$ac_try;;
28971esac
28972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28974 ac_status=$?
28975 grep -v '^ *+' conftest.er1 >conftest.err
28976 rm -f conftest.er1
28977 cat conftest.err >&5
28978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28979 (exit $ac_status); } >/dev/null && {
28980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28981 test ! -s conftest.err
28982 }; then
28983 ac_header_preproc=yes
28984else
28985 echo "$as_me: failed program was:" >&5
28986sed 's/^/| /' conftest.$ac_ext >&5
28987
28988 ac_header_preproc=no
28989fi
28990
28991rm -f conftest.err conftest.$ac_ext
28992{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28993echo "${ECHO_T}$ac_header_preproc" >&6; }
28994
28995# So? What about this header?
28996case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28997 yes:no: )
28998 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28999echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29001echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29002 ac_header_preproc=yes
29003 ;;
29004 no:yes:* )
29005 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29006echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29007 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29008echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29009 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29010echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29011 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29012echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29014echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29015 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29016echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29017 ( cat <<\_ASBOX
29018## ------------------------------------------- ##
29019## Report this to openssh-unix-dev@mindrot.org ##
29020## ------------------------------------------- ##
29021_ASBOX
29022 ) | sed "s/^/$as_me: WARNING: /" >&2
29023 ;;
29024esac
29025{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29028 echo $ECHO_N "(cached) $ECHO_C" >&6
29029else
29030 eval "$as_ac_Header=\$ac_header_preproc"
29031fi
29032ac_res=`eval echo '${'$as_ac_Header'}'`
29033 { echo "$as_me:$LINENO: result: $ac_res" >&5
29034echo "${ECHO_T}$ac_res" >&6; }
29035
29036fi
29037if test `eval echo '${'$as_ac_Header'}'` = yes; then
29038 cat >>confdefs.h <<_ACEOF
29039#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29040_ACEOF
29041
29042fi
29043
29044done
29045
29046
29047
29048for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
29049do
29050as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29053echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29054if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29055 echo $ECHO_N "(cached) $ECHO_C" >&6
29056fi
29057ac_res=`eval echo '${'$as_ac_Header'}'`
29058 { echo "$as_me:$LINENO: result: $ac_res" >&5
29059echo "${ECHO_T}$ac_res" >&6; }
29060else
29061 # Is the header compilable?
29062{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29063echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29064cat >conftest.$ac_ext <<_ACEOF
29065/* confdefs.h. */
29066_ACEOF
29067cat confdefs.h >>conftest.$ac_ext
29068cat >>conftest.$ac_ext <<_ACEOF
29069/* end confdefs.h. */
29070$ac_includes_default
29071#include <$ac_header>
29072_ACEOF
29073rm -f conftest.$ac_objext
29074if { (ac_try="$ac_compile"
29075case "(($ac_try" in
29076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29077 *) ac_try_echo=$ac_try;;
29078esac
29079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29080 (eval "$ac_compile") 2>conftest.er1
29081 ac_status=$?
29082 grep -v '^ *+' conftest.er1 >conftest.err
29083 rm -f conftest.er1
29084 cat conftest.err >&5
29085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29086 (exit $ac_status); } && {
29087 test -z "$ac_c_werror_flag" ||
29088 test ! -s conftest.err
29089 } && test -s conftest.$ac_objext; then
29090 ac_header_compiler=yes
29091else
29092 echo "$as_me: failed program was:" >&5
29093sed 's/^/| /' conftest.$ac_ext >&5
29094
29095 ac_header_compiler=no
29096fi
29097
29098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29099{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29100echo "${ECHO_T}$ac_header_compiler" >&6; }
29101
29102# Is the header present?
29103{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29104echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29105cat >conftest.$ac_ext <<_ACEOF
29106/* confdefs.h. */
29107_ACEOF
29108cat confdefs.h >>conftest.$ac_ext
29109cat >>conftest.$ac_ext <<_ACEOF
29110/* end confdefs.h. */
29111#include <$ac_header>
29112_ACEOF
29113if { (ac_try="$ac_cpp conftest.$ac_ext"
29114case "(($ac_try" in
29115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29116 *) ac_try_echo=$ac_try;;
29117esac
29118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29119 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29120 ac_status=$?
29121 grep -v '^ *+' conftest.er1 >conftest.err
29122 rm -f conftest.er1
29123 cat conftest.err >&5
29124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125 (exit $ac_status); } >/dev/null && {
29126 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29127 test ! -s conftest.err
29128 }; then
29129 ac_header_preproc=yes
29130else
29131 echo "$as_me: failed program was:" >&5
29132sed 's/^/| /' conftest.$ac_ext >&5
29133
29134 ac_header_preproc=no
29135fi
29136
29137rm -f conftest.err conftest.$ac_ext
29138{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29139echo "${ECHO_T}$ac_header_preproc" >&6; }
29140
29141# So? What about this header?
29142case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29143 yes:no: )
29144 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29145echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29147echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29148 ac_header_preproc=yes
29149 ;;
29150 no:yes:* )
29151 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29152echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29153 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29154echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29155 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29156echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29157 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29158echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29160echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29161 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29162echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29163 ( cat <<\_ASBOX
29164## ------------------------------------------- ##
29165## Report this to openssh-unix-dev@mindrot.org ##
29166## ------------------------------------------- ##
29167_ASBOX
29168 ) | sed "s/^/$as_me: WARNING: /" >&2
29169 ;;
29170esac
29171{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29174 echo $ECHO_N "(cached) $ECHO_C" >&6
29175else
29176 eval "$as_ac_Header=\$ac_header_preproc"
29177fi
29178ac_res=`eval echo '${'$as_ac_Header'}'`
29179 { echo "$as_me:$LINENO: result: $ac_res" >&5
29180echo "${ECHO_T}$ac_res" >&6; }
29181
29182fi
29183if test `eval echo '${'$as_ac_Header'}'` = yes; then
29184 cat >>confdefs.h <<_ACEOF
29185#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29186_ACEOF
29187
29188fi
29189
29190done
29191
29192
29193
29194for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
29195do
29196as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29199echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29200if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29201 echo $ECHO_N "(cached) $ECHO_C" >&6
29202fi
29203ac_res=`eval echo '${'$as_ac_Header'}'`
29204 { echo "$as_me:$LINENO: result: $ac_res" >&5
29205echo "${ECHO_T}$ac_res" >&6; }
29206else
29207 # Is the header compilable?
29208{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29209echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29210cat >conftest.$ac_ext <<_ACEOF
29211/* confdefs.h. */
29212_ACEOF
29213cat confdefs.h >>conftest.$ac_ext
29214cat >>conftest.$ac_ext <<_ACEOF
29215/* end confdefs.h. */
29216$ac_includes_default
29217#include <$ac_header>
29218_ACEOF
29219rm -f conftest.$ac_objext
29220if { (ac_try="$ac_compile"
29221case "(($ac_try" in
29222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29223 *) ac_try_echo=$ac_try;;
29224esac
29225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29226 (eval "$ac_compile") 2>conftest.er1
29227 ac_status=$?
29228 grep -v '^ *+' conftest.er1 >conftest.err
29229 rm -f conftest.er1
29230 cat conftest.err >&5
29231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29232 (exit $ac_status); } && {
29233 test -z "$ac_c_werror_flag" ||
29234 test ! -s conftest.err
29235 } && test -s conftest.$ac_objext; then
29236 ac_header_compiler=yes
29237else
29238 echo "$as_me: failed program was:" >&5
29239sed 's/^/| /' conftest.$ac_ext >&5
29240
29241 ac_header_compiler=no
29242fi
29243
29244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29245{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29246echo "${ECHO_T}$ac_header_compiler" >&6; }
29247
29248# Is the header present?
29249{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29250echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29251cat >conftest.$ac_ext <<_ACEOF
29252/* confdefs.h. */
29253_ACEOF
29254cat confdefs.h >>conftest.$ac_ext
29255cat >>conftest.$ac_ext <<_ACEOF
29256/* end confdefs.h. */
29257#include <$ac_header>
29258_ACEOF
29259if { (ac_try="$ac_cpp conftest.$ac_ext"
29260case "(($ac_try" in
29261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29262 *) ac_try_echo=$ac_try;;
29263esac
29264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29266 ac_status=$?
29267 grep -v '^ *+' conftest.er1 >conftest.err
29268 rm -f conftest.er1
29269 cat conftest.err >&5
29270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29271 (exit $ac_status); } >/dev/null && {
29272 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29273 test ! -s conftest.err
29274 }; then
29275 ac_header_preproc=yes
29276else
29277 echo "$as_me: failed program was:" >&5
29278sed 's/^/| /' conftest.$ac_ext >&5
29279
29280 ac_header_preproc=no
29281fi
29282
29283rm -f conftest.err conftest.$ac_ext
29284{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29285echo "${ECHO_T}$ac_header_preproc" >&6; }
29286
29287# So? What about this header?
29288case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29289 yes:no: )
29290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29291echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29293echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29294 ac_header_preproc=yes
29295 ;;
29296 no:yes:* )
29297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29298echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29300echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29302echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29304echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29306echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29308echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29309 ( cat <<\_ASBOX
29310## ------------------------------------------- ##
29311## Report this to openssh-unix-dev@mindrot.org ##
29312## ------------------------------------------- ##
29313_ASBOX
29314 ) | sed "s/^/$as_me: WARNING: /" >&2
29315 ;;
29316esac
29317{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29319if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29320 echo $ECHO_N "(cached) $ECHO_C" >&6
29321else
29322 eval "$as_ac_Header=\$ac_header_preproc"
29323fi
29324ac_res=`eval echo '${'$as_ac_Header'}'`
29325 { echo "$as_me:$LINENO: result: $ac_res" >&5
29326echo "${ECHO_T}$ac_res" >&6; }
29327
29328fi
29329if test `eval echo '${'$as_ac_Header'}'` = yes; then
29330 cat >>confdefs.h <<_ACEOF
29331#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29332_ACEOF
29333
29334fi
29335
29336done
29337
29338
29339 LIBS="$LIBS $K5LIBS"
29340 { echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5
29341echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6; }
29342if test "${ac_cv_search_k_hasafs+set}" = set; then
29343 echo $ECHO_N "(cached) $ECHO_C" >&6
29344else
29345 ac_func_search_save_LIBS=$LIBS
29346cat >conftest.$ac_ext <<_ACEOF
29347/* confdefs.h. */
29348_ACEOF
29349cat confdefs.h >>conftest.$ac_ext
29350cat >>conftest.$ac_ext <<_ACEOF
29351/* end confdefs.h. */
29352
29353/* Override any GCC internal prototype to avoid an error.
29354 Use char because int might match the return type of a GCC
29355 builtin and then its argument prototype would still apply. */
29356#ifdef __cplusplus
29357extern "C"
29358#endif
29359char k_hasafs ();
29360int
29361main ()
29362{
29363return k_hasafs ();
29364 ;
29365 return 0;
29366}
29367_ACEOF
29368for ac_lib in '' kafs; do
29369 if test -z "$ac_lib"; then
29370 ac_res="none required"
29371 else
29372 ac_res=-l$ac_lib
29373 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29374 fi
29375 rm -f conftest.$ac_objext conftest$ac_exeext
29376if { (ac_try="$ac_link"
29377case "(($ac_try" in
29378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29379 *) ac_try_echo=$ac_try;;
29380esac
29381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29382 (eval "$ac_link") 2>conftest.er1
29383 ac_status=$?
29384 grep -v '^ *+' conftest.er1 >conftest.err
29385 rm -f conftest.er1
29386 cat conftest.err >&5
29387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29388 (exit $ac_status); } && {
29389 test -z "$ac_c_werror_flag" ||
29390 test ! -s conftest.err
29391 } && test -s conftest$ac_exeext &&
29392 $as_test_x conftest$ac_exeext; then
29393 ac_cv_search_k_hasafs=$ac_res
29394else
29395 echo "$as_me: failed program was:" >&5
29396sed 's/^/| /' conftest.$ac_ext >&5
29397
29398
29399fi
29400
29401rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29402 conftest$ac_exeext
29403 if test "${ac_cv_search_k_hasafs+set}" = set; then
29404 break
29405fi
29406done
29407if test "${ac_cv_search_k_hasafs+set}" = set; then
29408 :
29409else
29410 ac_cv_search_k_hasafs=no
29411fi
29412rm conftest.$ac_ext
29413LIBS=$ac_func_search_save_LIBS
29414fi
29415{ echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5
29416echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6; }
29417ac_res=$ac_cv_search_k_hasafs
29418if test "$ac_res" != no; then
29419 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29420
29421cat >>confdefs.h <<\_ACEOF
29422#define USE_AFS 1
29423_ACEOF
29424
29425fi
29426
29427 fi
29428
29429
29430fi
29431
29432
29433# Looking for programs, paths and files
29434
29435PRIVSEP_PATH=/var/empty
29436
29437# Check whether --with-privsep-path was given.
29438if test "${with_privsep_path+set}" = set; then
29439 withval=$with_privsep_path;
29440 if test -n "$withval" && test "x$withval" != "xno" && \
29441 test "x${withval}" != "xyes"; then
29442 PRIVSEP_PATH=$withval
29443 fi
29444
29445
29446fi
29447
29448
29449
29450
29451# Check whether --with-xauth was given.
29452if test "${with_xauth+set}" = set; then
29453 withval=$with_xauth;
29454 if test -n "$withval" && test "x$withval" != "xno" && \
29455 test "x${withval}" != "xyes"; then
29456 xauth_path=$withval
29457 fi
29458
29459else
29460
29461 TestPath="$PATH"
29462 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
29463 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
29464 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
29465 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
29466 # Extract the first word of "xauth", so it can be a program name with args.
29467set dummy xauth; ac_word=$2
29468{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29470if test "${ac_cv_path_xauth_path+set}" = set; then
29471 echo $ECHO_N "(cached) $ECHO_C" >&6
29472else
29473 case $xauth_path in
29474 [\\/]* | ?:[\\/]*)
29475 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
29476 ;;
29477 *)
29478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29479for as_dir in $TestPath
29480do
29481 IFS=$as_save_IFS
29482 test -z "$as_dir" && as_dir=.
29483 for ac_exec_ext in '' $ac_executable_extensions; do
29484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29485 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
29486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29487 break 2
29488 fi
29489done
29490done
29491IFS=$as_save_IFS
29492
29493 ;;
29494esac
29495fi
29496xauth_path=$ac_cv_path_xauth_path
29497if test -n "$xauth_path"; then
29498 { echo "$as_me:$LINENO: result: $xauth_path" >&5
29499echo "${ECHO_T}$xauth_path" >&6; }
29500else
29501 { echo "$as_me:$LINENO: result: no" >&5
29502echo "${ECHO_T}no" >&6; }
29503fi
29504
29505
29506 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
29507 xauth_path="/usr/openwin/bin/xauth"
29508 fi
29509
29510
29511fi
29512
29513
29514STRIP_OPT=-s
29515# Check whether --enable-strip was given.
29516if test "${enable_strip+set}" = set; then
29517 enableval=$enable_strip;
29518 if test "x$enableval" = "xno" ; then
29519 STRIP_OPT=
29520 fi
29521
29522
29523fi
29524
29525
29526
29527if test -z "$xauth_path" ; then
29528 XAUTH_PATH="undefined"
29529
29530else
29531
29532cat >>confdefs.h <<_ACEOF
29533#define XAUTH_PATH "$xauth_path"
29534_ACEOF
29535
29536 XAUTH_PATH=$xauth_path
29537
29538fi
29539
29540# Check for mail directory (last resort if we cannot get it from headers)
29541if test ! -z "$MAIL" ; then
29542 maildir=`dirname $MAIL`
29543
29544cat >>confdefs.h <<_ACEOF
29545#define MAIL_DIRECTORY "$maildir"
29546_ACEOF
29547
29548fi
29549
29550if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
29551 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
29552echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
29553 disable_ptmx_check=yes
29554fi
29555if test -z "$no_dev_ptmx" ; then
29556 if test "x$disable_ptmx_check" != "xyes" ; then
29557 { echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
29558echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6; }
29559if test "${ac_cv_file___dev_ptmx_+set}" = set; then
29560 echo $ECHO_N "(cached) $ECHO_C" >&6
29561else
29562 test "$cross_compiling" = yes &&
29563 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
29564echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
29565 { (exit 1); exit 1; }; }
29566if test -r ""/dev/ptmx""; then
29567 ac_cv_file___dev_ptmx_=yes
29568else
29569 ac_cv_file___dev_ptmx_=no
29570fi
29571fi
29572{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
29573echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6; }
29574if test $ac_cv_file___dev_ptmx_ = yes; then
29575
29576
29577cat >>confdefs.h <<_ACEOF
29578#define HAVE_DEV_PTMX 1
29579_ACEOF
29580
29581 have_dev_ptmx=1
29582
29583
29584fi
29585
29586 fi
29587fi
29588
29589if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
29590 { echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
29591echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6; }
29592if test "${ac_cv_file___dev_ptc_+set}" = set; then
29593 echo $ECHO_N "(cached) $ECHO_C" >&6
29594else
29595 test "$cross_compiling" = yes &&
29596 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
29597echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
29598 { (exit 1); exit 1; }; }
29599if test -r ""/dev/ptc""; then
29600 ac_cv_file___dev_ptc_=yes
29601else
29602 ac_cv_file___dev_ptc_=no
29603fi
29604fi
29605{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
29606echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6; }
29607if test $ac_cv_file___dev_ptc_ = yes; then
29608
29609
29610cat >>confdefs.h <<_ACEOF
29611#define HAVE_DEV_PTS_AND_PTC 1
29612_ACEOF
29613
29614 have_dev_ptc=1
29615
29616
29617fi
29618
29619else
29620 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5
29621echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
29622fi
29623
29624# Options from here on. Some of these are preset by platform above
29625
29626# Check whether --with-mantype was given.
29627if test "${with_mantype+set}" = set; then
29628 withval=$with_mantype;
29629 case "$withval" in
29630 man|cat|doc)
29631 MANTYPE=$withval
29632 ;;
29633 *)
29634 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
29635echo "$as_me: error: invalid man type: $withval" >&2;}
29636 { (exit 1); exit 1; }; }
29637 ;;
29638 esac
29639
29640
29641fi
29642
29643if test -z "$MANTYPE"; then
29644 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
29645 for ac_prog in nroff awf
29646do
29647 # Extract the first word of "$ac_prog", so it can be a program name with args.
29648set dummy $ac_prog; ac_word=$2
29649{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29651if test "${ac_cv_path_NROFF+set}" = set; then
29652 echo $ECHO_N "(cached) $ECHO_C" >&6
29653else
29654 case $NROFF in
29655 [\\/]* | ?:[\\/]*)
29656 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
29657 ;;
29658 *)
29659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29660for as_dir in $TestPath
29661do
29662 IFS=$as_save_IFS
29663 test -z "$as_dir" && as_dir=.
29664 for ac_exec_ext in '' $ac_executable_extensions; do
29665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29666 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
29667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29668 break 2
29669 fi
29670done
29671done
29672IFS=$as_save_IFS
29673
29674 ;;
29675esac
29676fi
29677NROFF=$ac_cv_path_NROFF
29678if test -n "$NROFF"; then
29679 { echo "$as_me:$LINENO: result: $NROFF" >&5
29680echo "${ECHO_T}$NROFF" >&6; }
29681else
29682 { echo "$as_me:$LINENO: result: no" >&5
29683echo "${ECHO_T}no" >&6; }
29684fi
29685
29686
29687 test -n "$NROFF" && break
29688done
29689test -n "$NROFF" || NROFF="/bin/false"
29690
29691 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
29692 MANTYPE=doc
29693 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
29694 MANTYPE=man
29695 else
29696 MANTYPE=cat
29697 fi
29698fi
29699
29700if test "$MANTYPE" = "doc"; then
29701 mansubdir=man;
29702else
29703 mansubdir=$MANTYPE;
29704fi
29705
29706
29707# Check whether to enable MD5 passwords
29708MD5_MSG="no"
29709
29710# Check whether --with-md5-passwords was given.
29711if test "${with_md5_passwords+set}" = set; then
29712 withval=$with_md5_passwords;
29713 if test "x$withval" != "xno" ; then
29714
29715cat >>confdefs.h <<\_ACEOF
29716#define HAVE_MD5_PASSWORDS 1
29717_ACEOF
29718
29719 MD5_MSG="yes"
29720 fi
29721
29722
29723fi
29724
29725
29726# Whether to disable shadow password support
29727
29728# Check whether --with-shadow was given.
29729if test "${with_shadow+set}" = set; then
29730 withval=$with_shadow;
29731 if test "x$withval" = "xno" ; then
29732 cat >>confdefs.h <<\_ACEOF
29733#define DISABLE_SHADOW 1
29734_ACEOF
29735
29736 disable_shadow=yes
29737 fi
29738
29739
29740fi
29741
29742
29743if test -z "$disable_shadow" ; then
29744 { echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
29745echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6; }
29746 cat >conftest.$ac_ext <<_ACEOF
29747/* confdefs.h. */
29748_ACEOF
29749cat confdefs.h >>conftest.$ac_ext
29750cat >>conftest.$ac_ext <<_ACEOF
29751/* end confdefs.h. */
29752
29753#include <sys/types.h>
29754#include <shadow.h>
29755 struct spwd sp;
29756
29757int
29758main ()
29759{
29760 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
29761 ;
29762 return 0;
29763}
29764_ACEOF
29765rm -f conftest.$ac_objext
29766if { (ac_try="$ac_compile"
29767case "(($ac_try" in
29768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29769 *) ac_try_echo=$ac_try;;
29770esac
29771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29772 (eval "$ac_compile") 2>conftest.er1
29773 ac_status=$?
29774 grep -v '^ *+' conftest.er1 >conftest.err
29775 rm -f conftest.er1
29776 cat conftest.err >&5
29777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29778 (exit $ac_status); } && {
29779 test -z "$ac_c_werror_flag" ||
29780 test ! -s conftest.err
29781 } && test -s conftest.$ac_objext; then
29782 sp_expire_available=yes
29783else
29784 echo "$as_me: failed program was:" >&5
29785sed 's/^/| /' conftest.$ac_ext >&5
29786
29787
29788
29789fi
29790
29791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29792
29793 if test "x$sp_expire_available" = "xyes" ; then
29794 { echo "$as_me:$LINENO: result: yes" >&5
29795echo "${ECHO_T}yes" >&6; }
29796
29797cat >>confdefs.h <<\_ACEOF
29798#define HAS_SHADOW_EXPIRE 1
29799_ACEOF
29800
29801 else
29802 { echo "$as_me:$LINENO: result: no" >&5
29803echo "${ECHO_T}no" >&6; }
29804 fi
29805fi
29806
29807# Use ip address instead of hostname in $DISPLAY
29808if test ! -z "$IPADDR_IN_DISPLAY" ; then
29809 DISPLAY_HACK_MSG="yes"
29810
29811cat >>confdefs.h <<\_ACEOF
29812#define IPADDR_IN_DISPLAY 1
29813_ACEOF
29814
29815else
29816 DISPLAY_HACK_MSG="no"
29817
29818# Check whether --with-ipaddr-display was given.
29819if test "${with_ipaddr_display+set}" = set; then
29820 withval=$with_ipaddr_display;
29821 if test "x$withval" != "xno" ; then
29822 cat >>confdefs.h <<\_ACEOF
29823#define IPADDR_IN_DISPLAY 1
29824_ACEOF
29825
29826 DISPLAY_HACK_MSG="yes"
29827 fi
29828
29829
29830fi
29831
29832fi
29833
29834# check for /etc/default/login and use it if present.
29835# Check whether --enable-etc-default-login was given.
29836if test "${enable_etc_default_login+set}" = set; then
29837 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
29838 { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5
29839echo "$as_me: /etc/default/login handling disabled" >&6;}
29840 etc_default_login=no
29841 else
29842 etc_default_login=yes
29843 fi
29844else
29845 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
29846 then
29847 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5
29848echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
29849 etc_default_login=no
29850 else
29851 etc_default_login=yes
29852 fi
29853
29854fi
29855
29856
29857if test "x$etc_default_login" != "xno"; then
29858 { echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5
29859echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6; }
29860if test "${ac_cv_file___etc_default_login_+set}" = set; then
29861 echo $ECHO_N "(cached) $ECHO_C" >&6
29862else
29863 test "$cross_compiling" = yes &&
29864 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
29865echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
29866 { (exit 1); exit 1; }; }
29867if test -r ""/etc/default/login""; then
29868 ac_cv_file___etc_default_login_=yes
29869else
29870 ac_cv_file___etc_default_login_=no
29871fi
29872fi
29873{ echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5
29874echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6; }
29875if test $ac_cv_file___etc_default_login_ = yes; then
29876 external_path_file=/etc/default/login
29877fi
29878
29879 if test "x$external_path_file" = "x/etc/default/login"; then
29880
29881cat >>confdefs.h <<\_ACEOF
29882#define HAVE_ETC_DEFAULT_LOGIN 1
29883_ACEOF
29884
29885 fi
29886fi
29887
29888if test $ac_cv_func_login_getcapbool = "yes" && \
29889 test $ac_cv_header_login_cap_h = "yes" ; then
29890 external_path_file=/etc/login.conf
29891fi
29892
29893# Whether to mess with the default path
29894SERVER_PATH_MSG="(default)"
29895
29896# Check whether --with-default-path was given.
29897if test "${with_default_path+set}" = set; then
29898 withval=$with_default_path;
29899 if test "x$external_path_file" = "x/etc/login.conf" ; then
29900 { echo "$as_me:$LINENO: WARNING:
29901--with-default-path=PATH has no effect on this system.
29902Edit /etc/login.conf instead." >&5
29903echo "$as_me: WARNING:
29904--with-default-path=PATH has no effect on this system.
29905Edit /etc/login.conf instead." >&2;}
29906 elif test "x$withval" != "xno" ; then
29907 if test ! -z "$external_path_file" ; then
29908 { echo "$as_me:$LINENO: WARNING:
29909--with-default-path=PATH will only be used if PATH is not defined in
29910$external_path_file ." >&5
29911echo "$as_me: WARNING:
29912--with-default-path=PATH will only be used if PATH is not defined in
29913$external_path_file ." >&2;}
29914 fi
29915 user_path="$withval"
29916 SERVER_PATH_MSG="$withval"
29917 fi
29918
29919else
29920 if test "x$external_path_file" = "x/etc/login.conf" ; then
29921 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
29922echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
29923 else
29924 if test ! -z "$external_path_file" ; then
29925 { echo "$as_me:$LINENO: WARNING:
29926If PATH is defined in $external_path_file, ensure the path to scp is included,
29927otherwise scp will not work." >&5
29928echo "$as_me: WARNING:
29929If PATH is defined in $external_path_file, ensure the path to scp is included,
29930otherwise scp will not work." >&2;}
29931 fi
29932 if test "$cross_compiling" = yes; then
29933 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
29934
29935else
29936 cat >conftest.$ac_ext <<_ACEOF
29937/* confdefs.h. */
29938_ACEOF
29939cat confdefs.h >>conftest.$ac_ext
29940cat >>conftest.$ac_ext <<_ACEOF
29941/* end confdefs.h. */
29942
29943/* find out what STDPATH is */
29944#include <stdio.h>
29945#ifdef HAVE_PATHS_H
29946# include <paths.h>
29947#endif
29948#ifndef _PATH_STDPATH
29949# ifdef _PATH_USERPATH /* Irix */
29950# define _PATH_STDPATH _PATH_USERPATH
29951# else
29952# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
29953# endif
29954#endif
29955#include <sys/types.h>
29956#include <sys/stat.h>
29957#include <fcntl.h>
29958#define DATA "conftest.stdpath"
29959
29960main()
29961{
29962 FILE *fd;
29963 int rc;
29964
29965 fd = fopen(DATA,"w");
29966 if(fd == NULL)
29967 exit(1);
29968
29969 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
29970 exit(1);
29971
29972 exit(0);
29973}
29974
29975_ACEOF
29976rm -f conftest$ac_exeext
29977if { (ac_try="$ac_link"
29978case "(($ac_try" in
29979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29980 *) ac_try_echo=$ac_try;;
29981esac
29982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29983 (eval "$ac_link") 2>&5
29984 ac_status=$?
29985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29987 { (case "(($ac_try" in
29988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29989 *) ac_try_echo=$ac_try;;
29990esac
29991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29992 (eval "$ac_try") 2>&5
29993 ac_status=$?
29994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29995 (exit $ac_status); }; }; then
29996 user_path=`cat conftest.stdpath`
29997else
29998 echo "$as_me: program exited with status $ac_status" >&5
29999echo "$as_me: failed program was:" >&5
30000sed 's/^/| /' conftest.$ac_ext >&5
30001
30002( exit $ac_status )
30003 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
30004fi
30005rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30006fi
30007
30008
30009# make sure $bindir is in USER_PATH so scp will work
30010 t_bindir=`eval echo ${bindir}`
30011 case $t_bindir in
30012 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
30013 esac
30014 case $t_bindir in
30015 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
30016 esac
30017 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
30018 if test $? -ne 0 ; then
30019 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
30020 if test $? -ne 0 ; then
30021 user_path=$user_path:$t_bindir
30022 { echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
30023echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6; }
30024 fi
30025 fi
30026 fi
30027
30028fi
30029
30030if test "x$external_path_file" != "x/etc/login.conf" ; then
30031
30032cat >>confdefs.h <<_ACEOF
30033#define USER_PATH "$user_path"
30034_ACEOF
30035
30036
30037fi
30038
30039# Set superuser path separately to user path
30040
30041# Check whether --with-superuser-path was given.
30042if test "${with_superuser_path+set}" = set; then
30043 withval=$with_superuser_path;
30044 if test -n "$withval" && test "x$withval" != "xno" && \
30045 test "x${withval}" != "xyes"; then
30046
30047cat >>confdefs.h <<_ACEOF
30048#define SUPERUSER_PATH "$withval"
30049_ACEOF
30050
30051 superuser_path=$withval
30052 fi
30053
30054
30055fi
30056
30057
30058
30059{ echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
30060echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6; }
30061IPV4_IN6_HACK_MSG="no"
30062
30063# Check whether --with-4in6 was given.
30064if test "${with_4in6+set}" = set; then
30065 withval=$with_4in6;
30066 if test "x$withval" != "xno" ; then
30067 { echo "$as_me:$LINENO: result: yes" >&5
30068echo "${ECHO_T}yes" >&6; }
30069
30070cat >>confdefs.h <<\_ACEOF
30071#define IPV4_IN_IPV6 1
30072_ACEOF
30073
30074 IPV4_IN6_HACK_MSG="yes"
30075 else
30076 { echo "$as_me:$LINENO: result: no" >&5
30077echo "${ECHO_T}no" >&6; }
30078 fi
30079
30080else
30081
30082 if test "x$inet6_default_4in6" = "xyes"; then
30083 { echo "$as_me:$LINENO: result: yes (default)" >&5
30084echo "${ECHO_T}yes (default)" >&6; }
30085 cat >>confdefs.h <<\_ACEOF
30086#define IPV4_IN_IPV6 1
30087_ACEOF
30088
30089 IPV4_IN6_HACK_MSG="yes"
30090 else
30091 { echo "$as_me:$LINENO: result: no (default)" >&5
30092echo "${ECHO_T}no (default)" >&6; }
30093 fi
30094
30095
30096fi
30097
30098
30099# Whether to enable BSD auth support
30100BSD_AUTH_MSG=no
30101
30102# Check whether --with-bsd-auth was given.
30103if test "${with_bsd_auth+set}" = set; then
30104 withval=$with_bsd_auth;
30105 if test "x$withval" != "xno" ; then
30106
30107cat >>confdefs.h <<\_ACEOF
30108#define BSD_AUTH 1
30109_ACEOF
30110
30111 BSD_AUTH_MSG=yes
30112 fi
30113
30114
30115fi
30116
30117
30118# Where to place sshd.pid
30119piddir=/var/run
30120# make sure the directory exists
30121if test ! -d $piddir ; then
30122 piddir=`eval echo ${sysconfdir}`
30123 case $piddir in
30124 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
30125 esac
30126fi
30127
30128
30129# Check whether --with-pid-dir was given.
30130if test "${with_pid_dir+set}" = set; then
30131 withval=$with_pid_dir;
30132 if test -n "$withval" && test "x$withval" != "xno" && \
30133 test "x${withval}" != "xyes"; then
30134 piddir=$withval
30135 if test ! -d $piddir ; then
30136 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
30137echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
30138 fi
30139 fi
30140
30141
30142fi
30143
30144
30145
30146cat >>confdefs.h <<_ACEOF
30147#define _PATH_SSH_PIDDIR "$piddir"
30148_ACEOF
30149
30150
30151
30152# Check whether --enable-lastlog was given.
30153if test "${enable_lastlog+set}" = set; then
30154 enableval=$enable_lastlog;
30155 if test "x$enableval" = "xno" ; then
30156 cat >>confdefs.h <<\_ACEOF
30157#define DISABLE_LASTLOG 1
30158_ACEOF
30159
30160 fi
30161
30162
30163fi
30164
30165# Check whether --enable-utmp was given.
30166if test "${enable_utmp+set}" = set; then
30167 enableval=$enable_utmp;
30168 if test "x$enableval" = "xno" ; then
30169 cat >>confdefs.h <<\_ACEOF
30170#define DISABLE_UTMP 1
30171_ACEOF
30172
30173 fi
30174
30175
30176fi
30177
30178# Check whether --enable-utmpx was given.
30179if test "${enable_utmpx+set}" = set; then
30180 enableval=$enable_utmpx;
30181 if test "x$enableval" = "xno" ; then
30182
30183cat >>confdefs.h <<\_ACEOF
30184#define DISABLE_UTMPX 1
30185_ACEOF
30186
30187 fi
30188
30189
30190fi
30191
30192# Check whether --enable-wtmp was given.
30193if test "${enable_wtmp+set}" = set; then
30194 enableval=$enable_wtmp;
30195 if test "x$enableval" = "xno" ; then
30196 cat >>confdefs.h <<\_ACEOF
30197#define DISABLE_WTMP 1
30198_ACEOF
30199
30200 fi
30201
30202
30203fi
30204
30205# Check whether --enable-wtmpx was given.
30206if test "${enable_wtmpx+set}" = set; then
30207 enableval=$enable_wtmpx;
30208 if test "x$enableval" = "xno" ; then
30209
30210cat >>confdefs.h <<\_ACEOF
30211#define DISABLE_WTMPX 1
30212_ACEOF
30213
30214 fi
30215
30216
30217fi
30218
30219# Check whether --enable-libutil was given.
30220if test "${enable_libutil+set}" = set; then
30221 enableval=$enable_libutil;
30222 if test "x$enableval" = "xno" ; then
30223 cat >>confdefs.h <<\_ACEOF
30224#define DISABLE_LOGIN 1
30225_ACEOF
30226
30227 fi
30228
30229
30230fi
30231
30232# Check whether --enable-pututline was given.
30233if test "${enable_pututline+set}" = set; then
30234 enableval=$enable_pututline;
30235 if test "x$enableval" = "xno" ; then
30236
30237cat >>confdefs.h <<\_ACEOF
30238#define DISABLE_PUTUTLINE 1
30239_ACEOF
30240
30241 fi
30242
30243
30244fi
30245
30246# Check whether --enable-pututxline was given.
30247if test "${enable_pututxline+set}" = set; then
30248 enableval=$enable_pututxline;
30249 if test "x$enableval" = "xno" ; then
30250
30251cat >>confdefs.h <<\_ACEOF
30252#define DISABLE_PUTUTXLINE 1
30253_ACEOF
30254
30255 fi
30256
30257
30258fi
30259
30260
30261# Check whether --with-lastlog was given.
30262if test "${with_lastlog+set}" = set; then
30263 withval=$with_lastlog;
30264 if test "x$withval" = "xno" ; then
30265 cat >>confdefs.h <<\_ACEOF
30266#define DISABLE_LASTLOG 1
30267_ACEOF
30268
30269 elif test -n "$withval" && test "x${withval}" != "xyes"; then
30270 conf_lastlog_location=$withval
30271 fi
30272
30273
30274fi
30275
30276
30277
30278{ echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
30279echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6; }
30280cat >conftest.$ac_ext <<_ACEOF
30281/* confdefs.h. */
30282_ACEOF
30283cat confdefs.h >>conftest.$ac_ext
30284cat >>conftest.$ac_ext <<_ACEOF
30285/* end confdefs.h. */
30286
30287#include <sys/types.h>
30288#include <utmp.h>
30289#ifdef HAVE_LASTLOG_H
30290# include <lastlog.h>
30291#endif
30292#ifdef HAVE_PATHS_H
30293# include <paths.h>
30294#endif
30295#ifdef HAVE_LOGIN_H
30296# include <login.h>
30297#endif
30298
30299int
30300main ()
30301{
30302 char *lastlog = LASTLOG_FILE;
30303 ;
30304 return 0;
30305}
30306_ACEOF
30307rm -f conftest.$ac_objext
30308if { (ac_try="$ac_compile"
30309case "(($ac_try" in
30310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30311 *) ac_try_echo=$ac_try;;
30312esac
30313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30314 (eval "$ac_compile") 2>conftest.er1
30315 ac_status=$?
30316 grep -v '^ *+' conftest.er1 >conftest.err
30317 rm -f conftest.er1
30318 cat conftest.err >&5
30319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30320 (exit $ac_status); } && {
30321 test -z "$ac_c_werror_flag" ||
30322 test ! -s conftest.err
30323 } && test -s conftest.$ac_objext; then
30324 { echo "$as_me:$LINENO: result: yes" >&5
30325echo "${ECHO_T}yes" >&6; }
30326else
30327 echo "$as_me: failed program was:" >&5
30328sed 's/^/| /' conftest.$ac_ext >&5
30329
30330
30331 { echo "$as_me:$LINENO: result: no" >&5
30332echo "${ECHO_T}no" >&6; }
30333 { echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
30334echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6; }
30335 cat >conftest.$ac_ext <<_ACEOF
30336/* confdefs.h. */
30337_ACEOF
30338cat confdefs.h >>conftest.$ac_ext
30339cat >>conftest.$ac_ext <<_ACEOF
30340/* end confdefs.h. */
30341
30342#include <sys/types.h>
30343#include <utmp.h>
30344#ifdef HAVE_LASTLOG_H
30345# include <lastlog.h>
30346#endif
30347#ifdef HAVE_PATHS_H
30348# include <paths.h>
30349#endif
30350
30351int
30352main ()
30353{
30354 char *lastlog = _PATH_LASTLOG;
30355 ;
30356 return 0;
30357}
30358_ACEOF
30359rm -f conftest.$ac_objext
30360if { (ac_try="$ac_compile"
30361case "(($ac_try" in
30362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30363 *) ac_try_echo=$ac_try;;
30364esac
30365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30366 (eval "$ac_compile") 2>conftest.er1
30367 ac_status=$?
30368 grep -v '^ *+' conftest.er1 >conftest.err
30369 rm -f conftest.er1
30370 cat conftest.err >&5
30371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30372 (exit $ac_status); } && {
30373 test -z "$ac_c_werror_flag" ||
30374 test ! -s conftest.err
30375 } && test -s conftest.$ac_objext; then
30376 { echo "$as_me:$LINENO: result: yes" >&5
30377echo "${ECHO_T}yes" >&6; }
30378else
30379 echo "$as_me: failed program was:" >&5
30380sed 's/^/| /' conftest.$ac_ext >&5
30381
30382
30383 { echo "$as_me:$LINENO: result: no" >&5
30384echo "${ECHO_T}no" >&6; }
30385 system_lastlog_path=no
30386
30387fi
30388
30389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30390
30391
30392fi
30393
30394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30395
30396if test -z "$conf_lastlog_location"; then
30397 if test x"$system_lastlog_path" = x"no" ; then
30398 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
30399 if (test -d "$f" || test -f "$f") ; then
30400 conf_lastlog_location=$f
30401 fi
30402 done
30403 if test -z "$conf_lastlog_location"; then
30404 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
30405echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
30406 fi
30407 fi
30408fi
30409
30410if test -n "$conf_lastlog_location"; then
30411
30412cat >>confdefs.h <<_ACEOF
30413#define CONF_LASTLOG_FILE "$conf_lastlog_location"
30414_ACEOF
30415
30416fi
30417
30418{ echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
30419echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6; }
30420cat >conftest.$ac_ext <<_ACEOF
30421/* confdefs.h. */
30422_ACEOF
30423cat confdefs.h >>conftest.$ac_ext
30424cat >>conftest.$ac_ext <<_ACEOF
30425/* end confdefs.h. */
30426
30427#include <sys/types.h>
30428#include <utmp.h>
30429#ifdef HAVE_PATHS_H
30430# include <paths.h>
30431#endif
30432
30433int
30434main ()
30435{
30436 char *utmp = UTMP_FILE;
30437 ;
30438 return 0;
30439}
30440_ACEOF
30441rm -f conftest.$ac_objext
30442if { (ac_try="$ac_compile"
30443case "(($ac_try" in
30444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30445 *) ac_try_echo=$ac_try;;
30446esac
30447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30448 (eval "$ac_compile") 2>conftest.er1
30449 ac_status=$?
30450 grep -v '^ *+' conftest.er1 >conftest.err
30451 rm -f conftest.er1
30452 cat conftest.err >&5
30453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30454 (exit $ac_status); } && {
30455 test -z "$ac_c_werror_flag" ||
30456 test ! -s conftest.err
30457 } && test -s conftest.$ac_objext; then
30458 { echo "$as_me:$LINENO: result: yes" >&5
30459echo "${ECHO_T}yes" >&6; }
30460else
30461 echo "$as_me: failed program was:" >&5
30462sed 's/^/| /' conftest.$ac_ext >&5
30463
30464 { echo "$as_me:$LINENO: result: no" >&5
30465echo "${ECHO_T}no" >&6; }
30466 system_utmp_path=no
30467
30468fi
30469
30470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30471if test -z "$conf_utmp_location"; then
30472 if test x"$system_utmp_path" = x"no" ; then
30473 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
30474 if test -f $f ; then
30475 conf_utmp_location=$f
30476 fi
30477 done
30478 if test -z "$conf_utmp_location"; then
30479 cat >>confdefs.h <<\_ACEOF
30480#define DISABLE_UTMP 1
30481_ACEOF
30482
30483 fi
30484 fi
30485fi
30486if test -n "$conf_utmp_location"; then
30487
30488cat >>confdefs.h <<_ACEOF
30489#define CONF_UTMP_FILE "$conf_utmp_location"
30490_ACEOF
30491
30492fi
30493
30494{ echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
30495echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6; }
30496cat >conftest.$ac_ext <<_ACEOF
30497/* confdefs.h. */
30498_ACEOF
30499cat confdefs.h >>conftest.$ac_ext
30500cat >>conftest.$ac_ext <<_ACEOF
30501/* end confdefs.h. */
30502
30503#include <sys/types.h>
30504#include <utmp.h>
30505#ifdef HAVE_PATHS_H
30506# include <paths.h>
30507#endif
30508
30509int
30510main ()
30511{
30512 char *wtmp = WTMP_FILE;
30513 ;
30514 return 0;
30515}
30516_ACEOF
30517rm -f conftest.$ac_objext
30518if { (ac_try="$ac_compile"
30519case "(($ac_try" in
30520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30521 *) ac_try_echo=$ac_try;;
30522esac
30523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30524 (eval "$ac_compile") 2>conftest.er1
30525 ac_status=$?
30526 grep -v '^ *+' conftest.er1 >conftest.err
30527 rm -f conftest.er1
30528 cat conftest.err >&5
30529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530 (exit $ac_status); } && {
30531 test -z "$ac_c_werror_flag" ||
30532 test ! -s conftest.err
30533 } && test -s conftest.$ac_objext; then
30534 { echo "$as_me:$LINENO: result: yes" >&5
30535echo "${ECHO_T}yes" >&6; }
30536else
30537 echo "$as_me: failed program was:" >&5
30538sed 's/^/| /' conftest.$ac_ext >&5
30539
30540 { echo "$as_me:$LINENO: result: no" >&5
30541echo "${ECHO_T}no" >&6; }
30542 system_wtmp_path=no
30543
30544fi
30545
30546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30547if test -z "$conf_wtmp_location"; then
30548 if test x"$system_wtmp_path" = x"no" ; then
30549 for f in /usr/adm/wtmp /var/log/wtmp; do
30550 if test -f $f ; then
30551 conf_wtmp_location=$f
30552 fi
30553 done
30554 if test -z "$conf_wtmp_location"; then
30555 cat >>confdefs.h <<\_ACEOF
30556#define DISABLE_WTMP 1
30557_ACEOF
30558
30559 fi
30560 fi
30561fi
30562if test -n "$conf_wtmp_location"; then
30563
30564cat >>confdefs.h <<_ACEOF
30565#define CONF_WTMP_FILE "$conf_wtmp_location"
30566_ACEOF
30567
30568fi
30569
30570
30571{ echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
30572echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; }
30573cat >conftest.$ac_ext <<_ACEOF
30574/* confdefs.h. */
30575_ACEOF
30576cat confdefs.h >>conftest.$ac_ext
30577cat >>conftest.$ac_ext <<_ACEOF
30578/* end confdefs.h. */
30579
30580#include <sys/types.h>
30581#include <utmp.h>
30582#ifdef HAVE_UTMPX_H
30583#include <utmpx.h>
30584#endif
30585#ifdef HAVE_PATHS_H
30586# include <paths.h>
30587#endif
30588
30589int
30590main ()
30591{
30592 char *wtmpx = WTMPX_FILE;
30593 ;
30594 return 0;
30595}
30596_ACEOF
30597rm -f conftest.$ac_objext
30598if { (ac_try="$ac_compile"
30599case "(($ac_try" in
30600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30601 *) ac_try_echo=$ac_try;;
30602esac
30603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30604 (eval "$ac_compile") 2>conftest.er1
30605 ac_status=$?
30606 grep -v '^ *+' conftest.er1 >conftest.err
30607 rm -f conftest.er1
30608 cat conftest.err >&5
30609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30610 (exit $ac_status); } && {
30611 test -z "$ac_c_werror_flag" ||
30612 test ! -s conftest.err
30613 } && test -s conftest.$ac_objext; then
30614 { echo "$as_me:$LINENO: result: yes" >&5
30615echo "${ECHO_T}yes" >&6; }
30616else
30617 echo "$as_me: failed program was:" >&5
30618sed 's/^/| /' conftest.$ac_ext >&5
30619
30620 { echo "$as_me:$LINENO: result: no" >&5
30621echo "${ECHO_T}no" >&6; }
30622 system_wtmpx_path=no
30623
30624fi
30625
30626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30627if test -z "$conf_wtmpx_location"; then
30628 if test x"$system_wtmpx_path" = x"no" ; then
30629 cat >>confdefs.h <<\_ACEOF
30630#define DISABLE_WTMPX 1
30631_ACEOF
30632
30633 fi
30634else
30635
30636cat >>confdefs.h <<_ACEOF
30637#define CONF_WTMPX_FILE "$conf_wtmpx_location"
30638_ACEOF
30639
30640fi
30641
30642
30643if test ! -z "$blibpath" ; then
30644 LDFLAGS="$LDFLAGS $blibflags$blibpath"
30645 { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
30646echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
30647fi
30648
30649CFLAGS="$CFLAGS $werror_flags"
30650
30651if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
30652 TEST_SSH_IPV6=no
30653else
30654 TEST_SSH_IPV6=yes
30655fi
30656{ echo "$as_me:$LINENO: checking whether BROKEN_GETADDRINFO is declared" >&5
30657echo $ECHO_N "checking whether BROKEN_GETADDRINFO is declared... $ECHO_C" >&6; }
30658if test "${ac_cv_have_decl_BROKEN_GETADDRINFO+set}" = set; then
30659 echo $ECHO_N "(cached) $ECHO_C" >&6
30660else
30661 cat >conftest.$ac_ext <<_ACEOF
30662/* confdefs.h. */
30663_ACEOF
30664cat confdefs.h >>conftest.$ac_ext
30665cat >>conftest.$ac_ext <<_ACEOF
30666/* end confdefs.h. */
30667$ac_includes_default
30668int
30669main ()
30670{
30671#ifndef BROKEN_GETADDRINFO
30672 (void) BROKEN_GETADDRINFO;
30673#endif
30674
30675 ;
30676 return 0;
30677}
30678_ACEOF
30679rm -f conftest.$ac_objext
30680if { (ac_try="$ac_compile"
30681case "(($ac_try" in
30682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30683 *) ac_try_echo=$ac_try;;
30684esac
30685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30686 (eval "$ac_compile") 2>conftest.er1
30687 ac_status=$?
30688 grep -v '^ *+' conftest.er1 >conftest.err
30689 rm -f conftest.er1
30690 cat conftest.err >&5
30691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30692 (exit $ac_status); } && {
30693 test -z "$ac_c_werror_flag" ||
30694 test ! -s conftest.err
30695 } && test -s conftest.$ac_objext; then
30696 ac_cv_have_decl_BROKEN_GETADDRINFO=yes
30697else
30698 echo "$as_me: failed program was:" >&5
30699sed 's/^/| /' conftest.$ac_ext >&5
30700
30701 ac_cv_have_decl_BROKEN_GETADDRINFO=no
30702fi
30703
30704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30705fi
30706{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_BROKEN_GETADDRINFO" >&5
30707echo "${ECHO_T}$ac_cv_have_decl_BROKEN_GETADDRINFO" >&6; }
30708if test $ac_cv_have_decl_BROKEN_GETADDRINFO = yes; then
30709 TEST_SSH_IPV6=no
30710fi
30711
30712TEST_SSH_IPV6=$TEST_SSH_IPV6
30713
30714
30715
30716ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile ssh_prng_cmds survey.sh"
30717
30718cat >confcache <<\_ACEOF
30719# This file is a shell script that caches the results of configure
30720# tests run on this system so they can be shared between configure
30721# scripts and configure runs, see configure's option --config-cache.
30722# It is not useful on other systems. If it contains results you don't
30723# want to keep, you may remove or edit it.
30724#
30725# config.status only pays attention to the cache file if you give it
30726# the --recheck option to rerun configure.
30727#
30728# `ac_cv_env_foo' variables (set or unset) will be overridden when
30729# loading this file, other *unset* `ac_cv_foo' will be assigned the
30730# following values.
30731
30732_ACEOF
30733
30734# The following way of writing the cache mishandles newlines in values,
30735# but we know of no workaround that is simple, portable, and efficient.
30736# So, we kill variables containing newlines.
30737# Ultrix sh set writes to stderr and can't be redirected directly,
30738# and sets the high bit in the cache file unless we assign to the vars.
30739(
30740 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30741 eval ac_val=\$$ac_var
30742 case $ac_val in #(
30743 *${as_nl}*)
30744 case $ac_var in #(
30745 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30746echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30747 esac
30748 case $ac_var in #(
30749 _ | IFS | as_nl) ;; #(
30750 *) $as_unset $ac_var ;;
30751 esac ;;
30752 esac
30753 done
30754
30755 (set) 2>&1 |
30756 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30757 *${as_nl}ac_space=\ *)
30758 # `set' does not quote correctly, so add quotes (double-quote
30759 # substitution turns \\\\ into \\, and sed turns \\ into \).
30760 sed -n \
30761 "s/'/'\\\\''/g;
30762 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30763 ;; #(
30764 *)
30765 # `set' quotes correctly as required by POSIX, so do not add quotes.
30766 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30767 ;;
30768 esac |
30769 sort
30770) |
30771 sed '
30772 /^ac_cv_env_/b end
30773 t clear
30774 :clear
30775 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30776 t end
30777 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30778 :end' >>confcache
30779if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30780 if test -w "$cache_file"; then
30781 test "x$cache_file" != "x/dev/null" &&
30782 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30783echo "$as_me: updating cache $cache_file" >&6;}
30784 cat confcache >$cache_file
30785 else
30786 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30787echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30788 fi
30789fi
30790rm -f confcache
30791
30792test "x$prefix" = xNONE && prefix=$ac_default_prefix
30793# Let make expand exec_prefix.
30794test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30795
30796DEFS=-DHAVE_CONFIG_H
30797
30798ac_libobjs=
30799ac_ltlibobjs=
30800for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30801 # 1. Remove the extension, and $U if already installed.
30802 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30803 ac_i=`echo "$ac_i" | sed "$ac_script"`
30804 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30805 # will be set to the directory where LIBOBJS objects are built.
30806 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30807 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30808done
30809LIBOBJS=$ac_libobjs
30810
30811LTLIBOBJS=$ac_ltlibobjs
30812
30813
30814
30815: ${CONFIG_STATUS=./config.status}
30816ac_clean_files_save=$ac_clean_files
30817ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30818{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30819echo "$as_me: creating $CONFIG_STATUS" >&6;}
30820cat >$CONFIG_STATUS <<_ACEOF
30821#! $SHELL
30822# Generated by $as_me.
30823# Run this file to recreate the current configuration.
30824# Compiler output produced by configure, useful for debugging
30825# configure, is in config.log if it exists.
30826
30827debug=false
30828ac_cs_recheck=false
30829ac_cs_silent=false
30830SHELL=\${CONFIG_SHELL-$SHELL}
30831_ACEOF
30832
30833cat >>$CONFIG_STATUS <<\_ACEOF
30834## --------------------- ##
30835## M4sh Initialization. ##
30836## --------------------- ##
30837
30838# Be more Bourne compatible
30839DUALCASE=1; export DUALCASE # for MKS sh
30840if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30841 emulate sh
30842 NULLCMD=:
30843 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30844 # is contrary to our usage. Disable this feature.
30845 alias -g '${1+"$@"}'='"$@"'
30846 setopt NO_GLOB_SUBST
30847else
30848 case `(set -o) 2>/dev/null` in
30849 *posix*) set -o posix ;;
30850esac
30851
30852fi
30853
30854
30855
30856
30857# PATH needs CR
30858# Avoid depending upon Character Ranges.
30859as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30860as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30861as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30862as_cr_digits='0123456789'
30863as_cr_alnum=$as_cr_Letters$as_cr_digits
30864
30865# The user is always right.
30866if test "${PATH_SEPARATOR+set}" != set; then
30867 echo "#! /bin/sh" >conf$$.sh
30868 echo "exit 0" >>conf$$.sh
30869 chmod +x conf$$.sh
30870 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30871 PATH_SEPARATOR=';'
30872 else
30873 PATH_SEPARATOR=:
30874 fi
30875 rm -f conf$$.sh
30876fi
30877
30878# Support unset when possible.
30879if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30880 as_unset=unset
30881else
30882 as_unset=false
30883fi
30884
30885
30886# IFS
30887# We need space, tab and new line, in precisely that order. Quoting is
30888# there to prevent editors from complaining about space-tab.
30889# (If _AS_PATH_WALK were called with IFS unset, it would disable word
30890# splitting by setting IFS to empty value.)
30891as_nl='
30892'
30893IFS=" "" $as_nl"
30894
30895# Find who we are. Look in the path if we contain no directory separator.
30896case $0 in
30897 *[\\/]* ) as_myself=$0 ;;
30898 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30899for as_dir in $PATH
30900do
30901 IFS=$as_save_IFS
30902 test -z "$as_dir" && as_dir=.
30903 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30904done
30905IFS=$as_save_IFS
30906
30907 ;;
30908esac
30909# We did not find ourselves, most probably we were run as `sh COMMAND'
30910# in which case we are not to be found in the path.
30911if test "x$as_myself" = x; then
30912 as_myself=$0
30913fi
30914if test ! -f "$as_myself"; then
30915 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30916 { (exit 1); exit 1; }
30917fi
30918
30919# Work around bugs in pre-3.0 UWIN ksh.
30920for as_var in ENV MAIL MAILPATH
30921do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30922done
30923PS1='$ '
30924PS2='> '
30925PS4='+ '
30926
30927# NLS nuisances.
30928for as_var in \
30929 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30930 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30931 LC_TELEPHONE LC_TIME
30932do
30933 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30934 eval $as_var=C; export $as_var
30935 else
30936 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30937 fi
30938done
30939
30940# Required to use basename.
30941if expr a : '\(a\)' >/dev/null 2>&1 &&
30942 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30943 as_expr=expr
30944else
30945 as_expr=false
30946fi
30947
30948if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30949 as_basename=basename
30950else
30951 as_basename=false
30952fi
30953
30954
30955# Name of the executable.
30956as_me=`$as_basename -- "$0" ||
30957$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30958 X"$0" : 'X\(//\)$' \| \
30959 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30960echo X/"$0" |
30961 sed '/^.*\/\([^/][^/]*\)\/*$/{
30962 s//\1/
30963 q
30964 }
30965 /^X\/\(\/\/\)$/{
30966 s//\1/
30967 q
30968 }
30969 /^X\/\(\/\).*/{
30970 s//\1/
30971 q
30972 }
30973 s/.*/./; q'`
30974
30975# CDPATH.
30976$as_unset CDPATH
30977
30978
30979
30980 as_lineno_1=$LINENO
30981 as_lineno_2=$LINENO
30982 test "x$as_lineno_1" != "x$as_lineno_2" &&
30983 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30984
30985 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30986 # uniformly replaced by the line number. The first 'sed' inserts a
30987 # line-number line after each line using $LINENO; the second 'sed'
30988 # does the real work. The second script uses 'N' to pair each
30989 # line-number line with the line containing $LINENO, and appends
30990 # trailing '-' during substitution so that $LINENO is not a special
30991 # case at line end.
30992 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30993 # scripts with optimization help from Paolo Bonzini. Blame Lee
30994 # E. McMahon (1931-1989) for sed's syntax. :-)
30995 sed -n '
30996 p
30997 /[$]LINENO/=
30998 ' <$as_myself |
30999 sed '
31000 s/[$]LINENO.*/&-/
31001 t lineno
31002 b
31003 :lineno
31004 N
31005 :loop
31006 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
31007 t loop
31008 s/-\n.*//
31009 ' >$as_me.lineno &&
31010 chmod +x "$as_me.lineno" ||
31011 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
31012 { (exit 1); exit 1; }; }
31013
31014 # Don't try to exec as it changes $[0], causing all sort of problems
31015 # (the dirname of $[0] is not the place where we might find the
31016 # original and so on. Autoconf is especially sensitive to this).
31017 . "./$as_me.lineno"
31018 # Exit status is that of the last command.
31019 exit
31020}
31021
31022
31023if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31024 as_dirname=dirname
31025else
31026 as_dirname=false
31027fi
31028
31029ECHO_C= ECHO_N= ECHO_T=
31030case `echo -n x` in
31031-n*)
31032 case `echo 'x\c'` in
31033 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31034 *) ECHO_C='\c';;
31035 esac;;
31036*)
31037 ECHO_N='-n';;
31038esac
31039
31040if expr a : '\(a\)' >/dev/null 2>&1 &&
31041 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31042 as_expr=expr
31043else
31044 as_expr=false
31045fi
31046
31047rm -f conf$$ conf$$.exe conf$$.file
31048if test -d conf$$.dir; then
31049 rm -f conf$$.dir/conf$$.file
31050else
31051 rm -f conf$$.dir
31052 mkdir conf$$.dir
31053fi
31054echo >conf$$.file
31055if ln -s conf$$.file conf$$ 2>/dev/null; then
31056 as_ln_s='ln -s'
31057 # ... but there are two gotchas:
31058 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31059 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31060 # In both cases, we have to default to `cp -p'.
31061 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31062 as_ln_s='cp -p'
31063elif ln conf$$.file conf$$ 2>/dev/null; then
31064 as_ln_s=ln
31065else
31066 as_ln_s='cp -p'
31067fi
31068rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31069rmdir conf$$.dir 2>/dev/null
31070
31071if mkdir -p . 2>/dev/null; then
31072 as_mkdir_p=:
31073else
31074 test -d ./-p && rmdir ./-p
31075 as_mkdir_p=false
31076fi
31077
31078if test -x / >/dev/null 2>&1; then
31079 as_test_x='test -x'
31080else
31081 if ls -dL / >/dev/null 2>&1; then
31082 as_ls_L_option=L
31083 else
31084 as_ls_L_option=
31085 fi
31086 as_test_x='
31087 eval sh -c '\''
31088 if test -d "$1"; then
31089 test -d "$1/.";
31090 else
31091 case $1 in
31092 -*)set "./$1";;
31093 esac;
31094 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
31095 ???[sx]*):;;*)false;;esac;fi
31096 '\'' sh
31097 '
31098fi
31099as_executable_p=$as_test_x
31100
31101# Sed expression to map a string onto a valid CPP name.
31102as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31103
31104# Sed expression to map a string onto a valid variable name.
31105as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31106
31107
31108exec 6>&1
31109
31110# Save the log message, to keep $[0] and so on meaningful, and to
31111# report actual input values of CONFIG_FILES etc. instead of their
31112# values after options handling.
31113ac_log="
31114This file was extended by OpenSSH $as_me Portable, which was
31115generated by GNU Autoconf 2.61. Invocation command line was
31116
31117 CONFIG_FILES = $CONFIG_FILES
31118 CONFIG_HEADERS = $CONFIG_HEADERS
31119 CONFIG_LINKS = $CONFIG_LINKS
31120 CONFIG_COMMANDS = $CONFIG_COMMANDS
31121 $ $0 $@
31122
31123on `(hostname || uname -n) 2>/dev/null | sed 1q`
31124"
31125
31126_ACEOF
31127
31128cat >>$CONFIG_STATUS <<_ACEOF
31129# Files that config.status was made for.
31130config_files="$ac_config_files"
31131config_headers="$ac_config_headers"
31132
31133_ACEOF
31134
31135cat >>$CONFIG_STATUS <<\_ACEOF
31136ac_cs_usage="\
31137\`$as_me' instantiates files from templates according to the
31138current configuration.
31139
31140Usage: $0 [OPTIONS] [FILE]...
31141
31142 -h, --help print this help, then exit
31143 -V, --version print version number and configuration settings, then exit
31144 -q, --quiet do not print progress messages
31145 -d, --debug don't remove temporary files
31146 --recheck update $as_me by reconfiguring in the same conditions
31147 --file=FILE[:TEMPLATE]
31148 instantiate the configuration file FILE
31149 --header=FILE[:TEMPLATE]
31150 instantiate the configuration header FILE
31151
31152Configuration files:
31153$config_files
31154
31155Configuration headers:
31156$config_headers
31157
31158Report bugs to <bug-autoconf@gnu.org>."
31159
31160_ACEOF
31161cat >>$CONFIG_STATUS <<_ACEOF
31162ac_cs_version="\\
31163OpenSSH config.status Portable
31164configured by $0, generated by GNU Autoconf 2.61,
31165 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31166
31167Copyright (C) 2006 Free Software Foundation, Inc.
31168This config.status script is free software; the Free Software Foundation
31169gives unlimited permission to copy, distribute and modify it."
31170
31171ac_pwd='$ac_pwd'
31172srcdir='$srcdir'
31173INSTALL='$INSTALL'
31174_ACEOF
31175
31176cat >>$CONFIG_STATUS <<\_ACEOF
31177# If no file are specified by the user, then we need to provide default
31178# value. By we need to know if files were specified by the user.
31179ac_need_defaults=:
31180while test $# != 0
31181do
31182 case $1 in
31183 --*=*)
31184 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31185 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31186 ac_shift=:
31187 ;;
31188 *)
31189 ac_option=$1
31190 ac_optarg=$2
31191 ac_shift=shift
31192 ;;
31193 esac
31194
31195 case $ac_option in
31196 # Handling of the options.
31197 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31198 ac_cs_recheck=: ;;
31199 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31200 echo "$ac_cs_version"; exit ;;
31201 --debug | --debu | --deb | --de | --d | -d )
31202 debug=: ;;
31203 --file | --fil | --fi | --f )
31204 $ac_shift
31205 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31206 ac_need_defaults=false;;
31207 --header | --heade | --head | --hea )
31208 $ac_shift
31209 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31210 ac_need_defaults=false;;
31211 --he | --h)
31212 # Conflict between --help and --header
31213 { echo "$as_me: error: ambiguous option: $1
31214Try \`$0 --help' for more information." >&2
31215 { (exit 1); exit 1; }; };;
31216 --help | --hel | -h )
31217 echo "$ac_cs_usage"; exit ;;
31218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31219 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31220 ac_cs_silent=: ;;
31221
31222 # This is an error.
31223 -*) { echo "$as_me: error: unrecognized option: $1
31224Try \`$0 --help' for more information." >&2
31225 { (exit 1); exit 1; }; } ;;
31226
31227 *) ac_config_targets="$ac_config_targets $1"
31228 ac_need_defaults=false ;;
31229
31230 esac
31231 shift
31232done
31233
31234ac_configure_extra_args=
31235
31236if $ac_cs_silent; then
31237 exec 6>/dev/null
31238 ac_configure_extra_args="$ac_configure_extra_args --silent"
31239fi
31240
31241_ACEOF
31242cat >>$CONFIG_STATUS <<_ACEOF
31243if \$ac_cs_recheck; then
31244 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31245 CONFIG_SHELL=$SHELL
31246 export CONFIG_SHELL
31247 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31248fi
31249
31250_ACEOF
31251cat >>$CONFIG_STATUS <<\_ACEOF
31252exec 5>>config.log
31253{
31254 echo
31255 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31256## Running $as_me. ##
31257_ASBOX
31258 echo "$ac_log"
31259} >&5
31260
31261_ACEOF
31262cat >>$CONFIG_STATUS <<_ACEOF
31263_ACEOF
31264
31265cat >>$CONFIG_STATUS <<\_ACEOF
31266
31267# Handling of arguments.
31268for ac_config_target in $ac_config_targets
31269do
31270 case $ac_config_target in
31271 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
31272 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31273 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
31274 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
31275 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
31276 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
31277 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
31278 "ssh_prng_cmds") CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
31279 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
31280
31281 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31282echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31283 { (exit 1); exit 1; }; };;
31284 esac
31285done
31286
31287
31288# If the user did not use the arguments to specify the items to instantiate,
31289# then the envvar interface is used. Set only those that are not.
31290# We use the long form for the default assignment because of an extremely
31291# bizarre bug on SunOS 4.1.3.
31292if $ac_need_defaults; then
31293 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31294 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31295fi
31296
31297# Have a temporary directory for convenience. Make it in the build tree
31298# simply because there is no reason against having it here, and in addition,
31299# creating and moving files from /tmp can sometimes cause problems.
31300# Hook for its removal unless debugging.
31301# Note that there is a small window in which the directory will not be cleaned:
31302# after its creation but before its name has been assigned to `$tmp'.
31303$debug ||
31304{
31305 tmp=
31306 trap 'exit_status=$?
31307 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31308' 0
31309 trap '{ (exit 1); exit 1; }' 1 2 13 15
31310}
31311# Create a (secure) tmp directory for tmp files.
31312
31313{
31314 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31315 test -n "$tmp" && test -d "$tmp"
31316} ||
31317{
31318 tmp=./conf$$-$RANDOM
31319 (umask 077 && mkdir "$tmp")
31320} ||
31321{
31322 echo "$me: cannot create a temporary directory in ." >&2
31323 { (exit 1); exit 1; }
31324}
31325
31326#
31327# Set up the sed scripts for CONFIG_FILES section.
31328#
31329
31330# No need to generate the scripts if there are no CONFIG_FILES.
31331# This happens for instance when ./config.status config.h
31332if test -n "$CONFIG_FILES"; then
31333
31334_ACEOF
31335
31336
31337
31338ac_delim='%!_!# '
31339for ac_last_try in false false false false false :; do
31340 cat >conf$$subs.sed <<_ACEOF
31341SHELL!$SHELL$ac_delim
31342PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31343PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31344PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31345PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31346PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31347PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31348exec_prefix!$exec_prefix$ac_delim
31349prefix!$prefix$ac_delim
31350program_transform_name!$program_transform_name$ac_delim
31351bindir!$bindir$ac_delim
31352sbindir!$sbindir$ac_delim
31353libexecdir!$libexecdir$ac_delim
31354datarootdir!$datarootdir$ac_delim
31355datadir!$datadir$ac_delim
31356sysconfdir!$sysconfdir$ac_delim
31357sharedstatedir!$sharedstatedir$ac_delim
31358localstatedir!$localstatedir$ac_delim
31359includedir!$includedir$ac_delim
31360oldincludedir!$oldincludedir$ac_delim
31361docdir!$docdir$ac_delim
31362infodir!$infodir$ac_delim
31363htmldir!$htmldir$ac_delim
31364dvidir!$dvidir$ac_delim
31365pdfdir!$pdfdir$ac_delim
31366psdir!$psdir$ac_delim
31367libdir!$libdir$ac_delim
31368localedir!$localedir$ac_delim
31369mandir!$mandir$ac_delim
31370DEFS!$DEFS$ac_delim
31371ECHO_C!$ECHO_C$ac_delim
31372ECHO_N!$ECHO_N$ac_delim
31373ECHO_T!$ECHO_T$ac_delim
31374LIBS!$LIBS$ac_delim
31375build_alias!$build_alias$ac_delim
31376host_alias!$host_alias$ac_delim
31377target_alias!$target_alias$ac_delim
31378CC!$CC$ac_delim
31379CFLAGS!$CFLAGS$ac_delim
31380LDFLAGS!$LDFLAGS$ac_delim
31381CPPFLAGS!$CPPFLAGS$ac_delim
31382ac_ct_CC!$ac_ct_CC$ac_delim
31383EXEEXT!$EXEEXT$ac_delim
31384OBJEXT!$OBJEXT$ac_delim
31385build!$build$ac_delim
31386build_cpu!$build_cpu$ac_delim
31387build_vendor!$build_vendor$ac_delim
31388build_os!$build_os$ac_delim
31389host!$host$ac_delim
31390host_cpu!$host_cpu$ac_delim
31391host_vendor!$host_vendor$ac_delim
31392host_os!$host_os$ac_delim
31393CPP!$CPP$ac_delim
31394GREP!$GREP$ac_delim
31395EGREP!$EGREP$ac_delim
31396AWK!$AWK$ac_delim
31397RANLIB!$RANLIB$ac_delim
31398INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31399INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31400INSTALL_DATA!$INSTALL_DATA$ac_delim
31401AR!$AR$ac_delim
31402CAT!$CAT$ac_delim
31403KILL!$KILL$ac_delim
31404PERL!$PERL$ac_delim
31405SED!$SED$ac_delim
31406ENT!$ENT$ac_delim
31407TEST_MINUS_S_SH!$TEST_MINUS_S_SH$ac_delim
31408SH!$SH$ac_delim
31409GROFF!$GROFF$ac_delim
31410NROFF!$NROFF$ac_delim
31411MANDOC!$MANDOC$ac_delim
31412TEST_SHELL!$TEST_SHELL$ac_delim
31413MANFMT!$MANFMT$ac_delim
31414PATH_GROUPADD_PROG!$PATH_GROUPADD_PROG$ac_delim
31415PATH_USERADD_PROG!$PATH_USERADD_PROG$ac_delim
31416MAKE_PACKAGE_SUPPORTED!$MAKE_PACKAGE_SUPPORTED$ac_delim
31417STARTUP_SCRIPT_SHELL!$STARTUP_SCRIPT_SHELL$ac_delim
31418LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim
31419PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim
31420LD!$LD$ac_delim
31421PKGCONFIG!$PKGCONFIG$ac_delim
31422LIBEDIT!$LIBEDIT$ac_delim
31423TEST_SSH_SHA256!$TEST_SSH_SHA256$ac_delim
31424TEST_SSH_ECC!$TEST_SSH_ECC$ac_delim
31425COMMENT_OUT_ECC!$COMMENT_OUT_ECC$ac_delim
31426INSTALL_SSH_RAND_HELPER!$INSTALL_SSH_RAND_HELPER$ac_delim
31427SSH_PRIVSEP_USER!$SSH_PRIVSEP_USER$ac_delim
31428PROG_LS!$PROG_LS$ac_delim
31429PROG_NETSTAT!$PROG_NETSTAT$ac_delim
31430PROG_ARP!$PROG_ARP$ac_delim
31431PROG_IFCONFIG!$PROG_IFCONFIG$ac_delim
31432PROG_JSTAT!$PROG_JSTAT$ac_delim
31433PROG_PS!$PROG_PS$ac_delim
31434PROG_SAR!$PROG_SAR$ac_delim
31435PROG_W!$PROG_W$ac_delim
31436PROG_WHO!$PROG_WHO$ac_delim
31437PROG_LAST!$PROG_LAST$ac_delim
31438_ACEOF
31439
31440 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31441 break
31442 elif $ac_last_try; then
31443 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31444echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31445 { (exit 1); exit 1; }; }
31446 else
31447 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31448 fi
31449done
31450
31451ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31452if test -n "$ac_eof"; then
31453 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31454 ac_eof=`expr $ac_eof + 1`
31455fi
31456
31457cat >>$CONFIG_STATUS <<_ACEOF
31458cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31459/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31460_ACEOF
31461sed '
31462s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31463s/^/s,@/; s/!/@,|#_!!_#|/
31464:n
31465t n
31466s/'"$ac_delim"'$/,g/; t
31467s/$/\\/; p
31468N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31469' >>$CONFIG_STATUS <conf$$subs.sed
31470rm -f conf$$subs.sed
31471cat >>$CONFIG_STATUS <<_ACEOF
31472CEOF$ac_eof
31473_ACEOF
31474
31475
31476ac_delim='%!_!# '
31477for ac_last_try in false false false false false :; do
31478 cat >conf$$subs.sed <<_ACEOF
31479PROG_LASTLOG!$PROG_LASTLOG$ac_delim
31480PROG_DF!$PROG_DF$ac_delim
31481PROG_VMSTAT!$PROG_VMSTAT$ac_delim
31482PROG_UPTIME!$PROG_UPTIME$ac_delim
31483PROG_IPCS!$PROG_IPCS$ac_delim
31484PROG_TAIL!$PROG_TAIL$ac_delim
31485INSTALL_SSH_PRNG_CMDS!$INSTALL_SSH_PRNG_CMDS$ac_delim
31486SSHLIBS!$SSHLIBS$ac_delim
31487SSHDLIBS!$SSHDLIBS$ac_delim
31488KRB5CONF!$KRB5CONF$ac_delim
31489PRIVSEP_PATH!$PRIVSEP_PATH$ac_delim
31490xauth_path!$xauth_path$ac_delim
31491STRIP_OPT!$STRIP_OPT$ac_delim
31492XAUTH_PATH!$XAUTH_PATH$ac_delim
31493MANTYPE!$MANTYPE$ac_delim
31494mansubdir!$mansubdir$ac_delim
31495user_path!$user_path$ac_delim
31496piddir!$piddir$ac_delim
31497TEST_SSH_IPV6!$TEST_SSH_IPV6$ac_delim
31498LIBOBJS!$LIBOBJS$ac_delim
31499LTLIBOBJS!$LTLIBOBJS$ac_delim
31500_ACEOF
31501
31502 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
31503 break
31504 elif $ac_last_try; then
31505 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31506echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31507 { (exit 1); exit 1; }; }
31508 else
31509 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31510 fi
31511done
31512
31513ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31514if test -n "$ac_eof"; then
31515 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31516 ac_eof=`expr $ac_eof + 1`
31517fi
31518
31519cat >>$CONFIG_STATUS <<_ACEOF
31520cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31521/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31522_ACEOF
31523sed '
31524s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31525s/^/s,@/; s/!/@,|#_!!_#|/
31526:n
31527t n
31528s/'"$ac_delim"'$/,g/; t
31529s/$/\\/; p
31530N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31531' >>$CONFIG_STATUS <conf$$subs.sed
31532rm -f conf$$subs.sed
31533cat >>$CONFIG_STATUS <<_ACEOF
31534:end
31535s/|#_!!_#|//g
31536CEOF$ac_eof
31537_ACEOF
31538
31539
31540# VPATH may cause trouble with some makes, so we remove $(srcdir),
31541# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31542# trailing colons and then remove the whole line if VPATH becomes empty
31543# (actually we leave an empty line to preserve line numbers).
31544if test "x$srcdir" = x.; then
31545 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31546s/:*\$(srcdir):*/:/
31547s/:*\${srcdir}:*/:/
31548s/:*@srcdir@:*/:/
31549s/^\([^=]*=[ ]*\):*/\1/
31550s/:*$//
31551s/^[^=]*=[ ]*$//
31552}'
31553fi
31554
31555cat >>$CONFIG_STATUS <<\_ACEOF
31556fi # test -n "$CONFIG_FILES"
31557
31558
31559for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
31560do
31561 case $ac_tag in
31562 :[FHLC]) ac_mode=$ac_tag; continue;;
31563 esac
31564 case $ac_mode$ac_tag in
31565 :[FHL]*:*);;
31566 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31567echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31568 { (exit 1); exit 1; }; };;
31569 :[FH]-) ac_tag=-:-;;
31570 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31571 esac
31572 ac_save_IFS=$IFS
31573 IFS=:
31574 set x $ac_tag
31575 IFS=$ac_save_IFS
31576 shift
31577 ac_file=$1
31578 shift
31579
31580 case $ac_mode in
31581 :L) ac_source=$1;;
31582 :[FH])
31583 ac_file_inputs=
31584 for ac_f
31585 do
31586 case $ac_f in
31587 -) ac_f="$tmp/stdin";;
31588 *) # Look for the file first in the build tree, then in the source tree
31589 # (if the path is not absolute). The absolute path cannot be DOS-style,
31590 # because $ac_f cannot contain `:'.
31591 test -f "$ac_f" ||
31592 case $ac_f in
31593 [\\/$]*) false;;
31594 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31595 esac ||
31596 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31597echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31598 { (exit 1); exit 1; }; };;
31599 esac
31600 ac_file_inputs="$ac_file_inputs $ac_f"
31601 done
31602
31603 # Let's still pretend it is `configure' which instantiates (i.e., don't
31604 # use $as_me), people would be surprised to read:
31605 # /* config.h. Generated by config.status. */
31606 configure_input="Generated from "`IFS=:
31607 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31608 if test x"$ac_file" != x-; then
31609 configure_input="$ac_file. $configure_input"
31610 { echo "$as_me:$LINENO: creating $ac_file" >&5
31611echo "$as_me: creating $ac_file" >&6;}
31612 fi
31613
31614 case $ac_tag in
31615 *:-:* | *:-) cat >"$tmp/stdin";;
31616 esac
31617 ;;
31618 esac
31619
31620 ac_dir=`$as_dirname -- "$ac_file" ||
31621$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31622 X"$ac_file" : 'X\(//\)[^/]' \| \
31623 X"$ac_file" : 'X\(//\)$' \| \
31624 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31625echo X"$ac_file" |
31626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31627 s//\1/
31628 q
31629 }
31630 /^X\(\/\/\)[^/].*/{
31631 s//\1/
31632 q
31633 }
31634 /^X\(\/\/\)$/{
31635 s//\1/
31636 q
31637 }
31638 /^X\(\/\).*/{
31639 s//\1/
31640 q
31641 }
31642 s/.*/./; q'`
31643 { as_dir="$ac_dir"
31644 case $as_dir in #(
31645 -*) as_dir=./$as_dir;;
31646 esac
31647 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31648 as_dirs=
31649 while :; do
31650 case $as_dir in #(
31651 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31652 *) as_qdir=$as_dir;;
31653 esac
31654 as_dirs="'$as_qdir' $as_dirs"
31655 as_dir=`$as_dirname -- "$as_dir" ||
31656$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31657 X"$as_dir" : 'X\(//\)[^/]' \| \
31658 X"$as_dir" : 'X\(//\)$' \| \
31659 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31660echo X"$as_dir" |
31661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31662 s//\1/
31663 q
31664 }
31665 /^X\(\/\/\)[^/].*/{
31666 s//\1/
31667 q
31668 }
31669 /^X\(\/\/\)$/{
31670 s//\1/
31671 q
31672 }
31673 /^X\(\/\).*/{
31674 s//\1/
31675 q
31676 }
31677 s/.*/./; q'`
31678 test -d "$as_dir" && break
31679 done
31680 test -z "$as_dirs" || eval "mkdir $as_dirs"
31681 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31682echo "$as_me: error: cannot create directory $as_dir" >&2;}
31683 { (exit 1); exit 1; }; }; }
31684 ac_builddir=.
31685
31686case "$ac_dir" in
31687.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31688*)
31689 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31690 # A ".." for each directory in $ac_dir_suffix.
31691 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31692 case $ac_top_builddir_sub in
31693 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31694 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31695 esac ;;
31696esac
31697ac_abs_top_builddir=$ac_pwd
31698ac_abs_builddir=$ac_pwd$ac_dir_suffix
31699# for backward compatibility:
31700ac_top_builddir=$ac_top_build_prefix
31701
31702case $srcdir in
31703 .) # We are building in place.
31704 ac_srcdir=.
31705 ac_top_srcdir=$ac_top_builddir_sub
31706 ac_abs_top_srcdir=$ac_pwd ;;
31707 [\\/]* | ?:[\\/]* ) # Absolute name.
31708 ac_srcdir=$srcdir$ac_dir_suffix;
31709 ac_top_srcdir=$srcdir
31710 ac_abs_top_srcdir=$srcdir ;;
31711 *) # Relative name.
31712 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31713 ac_top_srcdir=$ac_top_build_prefix$srcdir
31714 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31715esac
31716ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31717
31718
31719 case $ac_mode in
31720 :F)
31721 #
31722 # CONFIG_FILE
31723 #
31724
31725 case $INSTALL in
31726 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31727 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31728 esac
31729_ACEOF
31730
31731cat >>$CONFIG_STATUS <<\_ACEOF
31732# If the template does not know about datarootdir, expand it.
31733# FIXME: This hack should be removed a few years after 2.60.
31734ac_datarootdir_hack=; ac_datarootdir_seen=
31735
31736case `sed -n '/datarootdir/ {
31737 p
31738 q
31739}
31740/@datadir@/p
31741/@docdir@/p
31742/@infodir@/p
31743/@localedir@/p
31744/@mandir@/p
31745' $ac_file_inputs` in
31746*datarootdir*) ac_datarootdir_seen=yes;;
31747*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31748 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31749echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31750_ACEOF
31751cat >>$CONFIG_STATUS <<_ACEOF
31752 ac_datarootdir_hack='
31753 s&@datadir@&$datadir&g
31754 s&@docdir@&$docdir&g
31755 s&@infodir@&$infodir&g
31756 s&@localedir@&$localedir&g
31757 s&@mandir@&$mandir&g
31758 s&\\\${datarootdir}&$datarootdir&g' ;;
31759esac
31760_ACEOF
31761
31762# Neutralize VPATH when `$srcdir' = `.'.
31763# Shell code in configure.ac might set extrasub.
31764# FIXME: do we really want to maintain this feature?
31765cat >>$CONFIG_STATUS <<_ACEOF
31766 sed "$ac_vpsub
31767$extrasub
31768_ACEOF
31769cat >>$CONFIG_STATUS <<\_ACEOF
31770:t
31771/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31772s&@configure_input@&$configure_input&;t t
31773s&@top_builddir@&$ac_top_builddir_sub&;t t
31774s&@srcdir@&$ac_srcdir&;t t
31775s&@abs_srcdir@&$ac_abs_srcdir&;t t
31776s&@top_srcdir@&$ac_top_srcdir&;t t
31777s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31778s&@builddir@&$ac_builddir&;t t
31779s&@abs_builddir@&$ac_abs_builddir&;t t
31780s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31781s&@INSTALL@&$ac_INSTALL&;t t
31782$ac_datarootdir_hack
31783" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
31784
31785test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31786 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31787 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31788 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31789which seems to be undefined. Please make sure it is defined." >&5
31790echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31791which seems to be undefined. Please make sure it is defined." >&2;}
31792
31793 rm -f "$tmp/stdin"
31794 case $ac_file in
31795 -) cat "$tmp/out"; rm -f "$tmp/out";;
31796 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31797 esac
31798 ;;
31799 :H)
31800 #
31801 # CONFIG_HEADER
31802 #
31803_ACEOF
31804
31805# Transform confdefs.h into a sed script `conftest.defines', that
31806# substitutes the proper values into config.h.in to produce config.h.
31807rm -f conftest.defines conftest.tail
31808# First, append a space to every undef/define line, to ease matching.
31809echo 's/$/ /' >conftest.defines
31810# Then, protect against being on the right side of a sed subst, or in
31811# an unquoted here document, in config.status. If some macros were
31812# called several times there might be several #defines for the same
31813# symbol, which is useless. But do not sort them, since the last
31814# AC_DEFINE must be honored.
31815ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31816# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31817# NAME is the cpp macro being defined, VALUE is the value it is being given.
31818# PARAMS is the parameter list in the macro definition--in most cases, it's
31819# just an empty string.
31820ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
31821ac_dB='\\)[ (].*,\\1define\\2'
31822ac_dC=' '
31823ac_dD=' ,'
31824
31825uniq confdefs.h |
31826 sed -n '
31827 t rset
31828 :rset
31829 s/^[ ]*#[ ]*define[ ][ ]*//
31830 t ok
31831 d
31832 :ok
31833 s/[\\&,]/\\&/g
31834 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31835 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31836 ' >>conftest.defines
31837
31838# Remove the space that was appended to ease matching.
31839# Then replace #undef with comments. This is necessary, for
31840# example, in the case of _POSIX_SOURCE, which is predefined and required
31841# on some systems where configure will not decide to define it.
31842# (The regexp can be short, since the line contains either #define or #undef.)
31843echo 's/ $//
31844s,^[ #]*u.*,/* & */,' >>conftest.defines
31845
31846# Break up conftest.defines:
31847ac_max_sed_lines=50
31848
31849# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31850# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31851# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31852# et cetera.
31853ac_in='$ac_file_inputs'
31854ac_out='"$tmp/out1"'
31855ac_nxt='"$tmp/out2"'
31856
31857while :
31858do
31859 # Write a here document:
31860 cat >>$CONFIG_STATUS <<_ACEOF
31861 # First, check the format of the line:
31862 cat >"\$tmp/defines.sed" <<\\CEOF
31863/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
31864/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
31865b
31866:def
31867_ACEOF
31868 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31869 echo 'CEOF
31870 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31871 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31872 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31873 grep . conftest.tail >/dev/null || break
31874 rm -f conftest.defines
31875 mv conftest.tail conftest.defines
31876done
31877rm -f conftest.defines conftest.tail
31878
31879echo "ac_result=$ac_in" >>$CONFIG_STATUS
31880cat >>$CONFIG_STATUS <<\_ACEOF
31881 if test x"$ac_file" != x-; then
31882 echo "/* $configure_input */" >"$tmp/config.h"
31883 cat "$ac_result" >>"$tmp/config.h"
31884 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31885 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31886echo "$as_me: $ac_file is unchanged" >&6;}
31887 else
31888 rm -f $ac_file
31889 mv "$tmp/config.h" $ac_file
31890 fi
31891 else
31892 echo "/* $configure_input */"
31893 cat "$ac_result"
31894 fi
31895 rm -f "$tmp/out12"
31896 ;;
31897
31898
31899 esac
31900
31901done # for ac_tag
31902
31903
31904{ (exit 0); exit 0; }
31905_ACEOF
31906chmod +x $CONFIG_STATUS
31907ac_clean_files=$ac_clean_files_save
31908
31909
31910# configure is writing to config.log, and then calls config.status.
31911# config.status does its own redirection, appending to config.log.
31912# Unfortunately, on DOS this fails, as config.log is still kept open
31913# by configure, so config.status won't be able to write to it; its
31914# output is simply discarded. So we exec the FD to /dev/null,
31915# effectively closing config.log, so it can be properly (re)opened and
31916# appended to by config.status. When coming back to configure, we
31917# need to make the FD available again.
31918if test "$no_create" != yes; then
31919 ac_cs_success=:
31920 ac_config_status_args=
31921 test "$silent" = yes &&
31922 ac_config_status_args="$ac_config_status_args --quiet"
31923 exec 5>/dev/null
31924 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31925 exec 5>>config.log
31926 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31927 # would make configure fail if this is the last instruction.
31928 $ac_cs_success || { (exit 1); exit 1; }
31929fi
31930
31931
31932# Print summary of options
31933
31934# Someone please show me a better way :)
31935A=`eval echo ${prefix}` ; A=`eval echo ${A}`
31936B=`eval echo ${bindir}` ; B=`eval echo ${B}`
31937C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
31938D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
31939E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
31940F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
31941G=`eval echo ${piddir}` ; G=`eval echo ${G}`
31942H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
31943I=`eval echo ${user_path}` ; I=`eval echo ${I}`
31944J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
31945
31946echo ""
31947echo "OpenSSH has been configured with the following options:"
31948echo " User binaries: $B"
31949echo " System binaries: $C"
31950echo " Configuration files: $D"
31951echo " Askpass program: $E"
31952echo " Manual pages: $F"
31953echo " PID file: $G"
31954echo " Privilege separation chroot path: $H"
31955if test "x$external_path_file" = "x/etc/login.conf" ; then
31956echo " At runtime, sshd will use the path defined in $external_path_file"
31957echo " Make sure the path to scp is present, otherwise scp will not work"
31958else
31959echo " sshd default user PATH: $I"
31960 if test ! -z "$external_path_file"; then
31961echo " (If PATH is set in $external_path_file it will be used instead. If"
31962echo " used, ensure the path to scp is present, otherwise scp will not work.)"
31963 fi
31964fi
31965if test ! -z "$superuser_path" ; then
31966echo " sshd superuser user PATH: $J"
31967fi
31968echo " Manpage format: $MANTYPE"
31969echo " PAM support: $PAM_MSG"
31970echo " OSF SIA support: $SIA_MSG"
31971echo " KerberosV support: $KRB5_MSG"
31972echo " SELinux support: $SELINUX_MSG"
31973echo " Smartcard support: $SCARD_MSG"
31974echo " S/KEY support: $SKEY_MSG"
31975echo " TCP Wrappers support: $TCPW_MSG"
31976echo " MD5 password support: $MD5_MSG"
31977echo " libedit support: $LIBEDIT_MSG"
31978echo " Solaris process contract support: $SPC_MSG"
31979echo " Solaris project support: $SP_MSG"
31980echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
31981echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
31982echo " BSD Auth support: $BSD_AUTH_MSG"
31983echo " Random number source: $RAND_MSG"
31984if test ! -z "$USE_RAND_HELPER" ; then
31985echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
31986fi
31987
31988echo ""
31989
31990echo " Host: ${host}"
31991echo " Compiler: ${CC}"
31992echo " Compiler flags: ${CFLAGS}"
31993echo "Preprocessor flags: ${CPPFLAGS}"
31994echo " Linker flags: ${LDFLAGS}"
31995echo " Libraries: ${LIBS}"
31996if test ! -z "${SSHDLIBS}"; then
31997echo " +for sshd: ${SSHDLIBS}"
31998fi
31999if test ! -z "${SSHLIBS}"; then
32000echo " +for ssh: ${SSHLIBS}"
32001fi
32002
32003echo ""
32004
32005if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
32006 echo "SVR4 style packages are supported with \"make package\""
32007 echo ""
32008fi
32009
32010if test "x$PAM_MSG" = "xyes" ; then
32011 echo "PAM is enabled. You may need to install a PAM control file "
32012 echo "for sshd, otherwise password authentication may fail. "
32013 echo "Example PAM control files can be found in the contrib/ "
32014 echo "subdirectory"
32015 echo ""
32016fi
32017
32018if test ! -z "$RAND_HELPER_CMDHASH" ; then
32019 echo "WARNING: you are using the builtin random number collection "
32020 echo "service. Please read WARNING.RNG and request that your OS "
32021 echo "vendor includes kernel-based random number collection in "
32022 echo "future versions of your OS."
32023 echo ""
32024fi
32025
32026if test ! -z "$NO_PEERCHECK" ; then
32027 echo "WARNING: the operating system that you are using does not"
32028 echo "appear to support getpeereid(), getpeerucred() or the"
32029 echo "SO_PEERCRED getsockopt() option. These facilities are used to"
32030 echo "enforce security checks to prevent unauthorised connections to"
32031 echo "ssh-agent. Their absence increases the risk that a malicious"
32032 echo "user can connect to your agent."
32033 echo ""
32034fi
32035
32036if test "$AUDIT_MODULE" = "bsm" ; then
32037 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
32038 echo "See the Solaris section in README.platform for details."
32039fi
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..ded094ff0
--- /dev/null
+++ b/moduli.0
@@ -0,0 +1,72 @@
1MODULI(5) OpenBSD Programmer's Manual MODULI(5)
2
3NAME
4 moduli - Diffie Hellman moduli
5
6DESCRIPTION
7 The /etc/moduli file contains prime numbers and generators for use by
8 sshd(8) in the Diffie-Hellman Group Exchange key exchange method.
9
10 New moduli may be generated with ssh-keygen(1) using a two-step process.
11 An initial candidate generation pass, using ssh-keygen -G, calculates
12 numbers that are likely to be useful. A second primality testing pass,
13 using ssh-keygen -T provides a high degree of assurance that the numbers
14 are prime and are safe for use in Diffie Hellman operations by sshd(8).
15 This moduli format is used as the output from each pass.
16
17 The file consists of newline-separated records, one per modulus,
18 containing seven space separated fields. These fields are as follows:
19
20 timestamp The time that the modulus was last processed as
21 YYYYMMDDHHMMSS.
22
23 type Decimal number specifying the internal structure of
24 the prime modulus. Supported types are:
25
26 0 Unknown, not tested
27 2 "Safe" prime; (p-1)/2 is also prime.
28 4 Sophie Germain; (p+1)*2 is also prime.
29
30 Moduli candidates initially produced by ssh-keygen(1)
31 are Sophie Germain primes (type 4). 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.9 June 26, 2008 OpenBSD 4.9
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..72467c8ec
--- /dev/null
+++ b/scp.0
@@ -0,0 +1,156 @@
1SCP(1) OpenBSD Reference Manual SCP(1)
2
3NAME
4 scp - secure copy (remote file copy program)
5
6SYNOPSIS
7 scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
8 [-l limit] [-o ssh_option] [-P port] [-S program]
9 [[user@]host1:]file1 ... [[user@]host2:]file2
10
11DESCRIPTION
12 scp copies files between hosts on a network. It uses ssh(1) for data
13 transfer, and uses the same authentication and provides the same security
14 as ssh(1). Unlike rcp(1), scp will ask for passwords or passphrases if
15 they are needed for authentication.
16
17 File names may contain a user and host specification to indicate that the
18 file is to be copied to/from that host. Local file names can be made
19 explicit using absolute or relative pathnames to avoid scp treating file
20 names containing `:' as host specifiers. Copies between two remote hosts
21 are also permitted.
22
23 The options are as follows:
24
25 -1 Forces scp to use protocol 1.
26
27 -2 Forces scp to use protocol 2.
28
29 -3 Copies between two remote hosts are transferred through the local
30 host. Without this option the data is copied directly between
31 the two remote hosts. Note that this option disables the
32 progress meter.
33
34 -4 Forces scp to use IPv4 addresses only.
35
36 -6 Forces scp to use IPv6 addresses only.
37
38 -B Selects batch mode (prevents asking for passwords or
39 passphrases).
40
41 -C Compression enable. Passes the -C flag to ssh(1) to enable
42 compression.
43
44 -c cipher
45 Selects the cipher to use for encrypting the data transfer. This
46 option is directly passed to ssh(1).
47
48 -F ssh_config
49 Specifies an alternative per-user configuration file for ssh.
50 This option is directly passed to ssh(1).
51
52 -i identity_file
53 Selects the file from which the identity (private key) for public
54 key authentication is read. This option is directly passed to
55 ssh(1).
56
57 -l limit
58 Limits the used bandwidth, specified in Kbit/s.
59
60 -o ssh_option
61 Can be used to pass options to ssh in the format used in
62 ssh_config(5). This is useful for specifying options for which
63 there is no separate scp command-line flag. For full details of
64 the options listed below, and their possible values, see
65 ssh_config(5).
66
67 AddressFamily
68 BatchMode
69 BindAddress
70 ChallengeResponseAuthentication
71 CheckHostIP
72 Cipher
73 Ciphers
74 Compression
75 CompressionLevel
76 ConnectionAttempts
77 ConnectTimeout
78 ControlMaster
79 ControlPath
80 GlobalKnownHostsFile
81 GSSAPIAuthentication
82 GSSAPIDelegateCredentials
83 HashKnownHosts
84 Host
85 HostbasedAuthentication
86 HostKeyAlgorithms
87 HostKeyAlias
88 HostName
89 IdentityFile
90 IdentitiesOnly
91 IPQoS
92 KbdInteractiveDevices
93 KexAlgorithms
94 LogLevel
95 MACs
96 NoHostAuthenticationForLocalhost
97 NumberOfPasswordPrompts
98 PasswordAuthentication
99 PKCS11Provider
100 Port
101 PreferredAuthentications
102 Protocol
103 ProxyCommand
104 PubkeyAuthentication
105 RekeyLimit
106 RhostsRSAAuthentication
107 RSAAuthentication
108 SendEnv
109 ServerAliveInterval
110 ServerAliveCountMax
111 StrictHostKeyChecking
112 TCPKeepAlive
113 UsePrivilegedPort
114 User
115 UserKnownHostsFile
116 VerifyHostKeyDNS
117
118 -P port
119 Specifies the port to connect to on the remote host. Note that
120 this option is written with a capital `P', because -p is already
121 reserved for preserving the times and modes of the file in
122 rcp(1).
123
124 -p Preserves modification times, access times, and modes from the
125 original file.
126
127 -q Quiet mode: disables the progress meter as well as warning and
128 diagnostic messages from ssh(1).
129
130 -r Recursively copy entire directories. Note that scp follows
131 symbolic links encountered in the tree traversal.
132
133 -S program
134 Name of program to use for the encrypted connection. The program
135 must understand ssh(1) options.
136
137 -v Verbose mode. Causes scp and ssh(1) to print debugging messages
138 about their progress. This is helpful in debugging connection,
139 authentication, and configuration problems.
140
141EXIT STATUS
142 The scp utility exits 0 on success, and >0 if an error occurs.
143
144SEE ALSO
145 rcp(1), sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1),
146 ssh_config(5), sshd(8)
147
148HISTORY
149 scp is based on the rcp(1) program in BSD source code from the Regents of
150 the University of California.
151
152AUTHORS
153 Timo Rinne <tri@iki.fi>
154 Tatu Ylonen <ylo@cs.hut.fi>
155
156OpenBSD 4.9 December 9, 2010 OpenBSD 4.9
diff --git a/sftp-server.0 b/sftp-server.0
new file mode 100644
index 000000000..b7d30ec09
--- /dev/null
+++ b/sftp-server.0
@@ -0,0 +1,64 @@
1SFTP-SERVER(8) OpenBSD System Manager's Manual SFTP-SERVER(8)
2
3NAME
4 sftp-server - SFTP server subsystem
5
6SYNOPSIS
7 sftp-server [-ehR] [-f log_facility] [-l log_level] [-u umask]
8
9DESCRIPTION
10 sftp-server is a program that speaks the server side of SFTP protocol to
11 stdout and expects client requests from stdin. sftp-server is not
12 intended to be called directly, but from sshd(8) using the Subsystem
13 option.
14
15 Command-line flags to sftp-server should be specified in the Subsystem
16 declaration. See sshd_config(5) for more information.
17
18 Valid options are:
19
20 -e Causes sftp-server to print logging information to stderr instead
21 of syslog for debugging.
22
23 -f log_facility
24 Specifies the facility code that is used when logging messages
25 from sftp-server. The possible values are: DAEMON, USER, AUTH,
26 LOCAL0, LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7.
27 The default is AUTH.
28
29 -h Displays sftp-server usage information.
30
31 -l log_level
32 Specifies which messages will be logged by sftp-server. The
33 possible values are: QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG,
34 DEBUG1, DEBUG2, and DEBUG3. INFO and VERBOSE log transactions
35 that sftp-server performs on behalf of the client. DEBUG and
36 DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify higher
37 levels of debugging output. The default is ERROR.
38
39 -R Places this instance of sftp-server into a read-only mode.
40 Attempts to open files for writing, as well as other operations
41 that change the state of the filesystem, will be denied.
42
43 -u umask
44 Sets an explicit umask(2) to be applied to newly-created files
45 and directories, instead of the user's default mask.
46
47 For logging to work, sftp-server must be able to access /dev/log. Use of
48 sftp-server in a chroot configuration therefore requires that syslogd(8)
49 establish a logging socket inside the chroot directory.
50
51SEE ALSO
52 sftp(1), ssh(1), sshd_config(5), sshd(8)
53
54 T. Ylonen and S. Lehtinen, SSH File Transfer Protocol,
55 draft-ietf-secsh-filexfer-00.txt, January 2001, work in progress
56 material.
57
58HISTORY
59 sftp-server first appeared in OpenBSD 2.8.
60
61AUTHORS
62 Markus Friedl <markus@openbsd.org>
63
64OpenBSD 4.9 January 9, 2010 OpenBSD 4.9
diff --git a/sftp.0 b/sftp.0
new file mode 100644
index 000000000..960ffb9df
--- /dev/null
+++ b/sftp.0
@@ -0,0 +1,331 @@
1SFTP(1) OpenBSD Reference Manual SFTP(1)
2
3NAME
4 sftp - secure file transfer program
5
6SYNOPSIS
7 sftp [-1246Cpqrv] [-B buffer_size] [-b batchfile] [-c cipher]
8 [-D sftp_server_path] [-F ssh_config] [-i identity_file] [-l limit]
9 [-o ssh_option] [-P port] [-R num_requests] [-S program]
10 [-s subsystem | sftp_server] host
11 sftp [user@]host[:file ...]
12 sftp [user@]host[:dir[/]]
13 sftp -b batchfile [user@]host
14
15DESCRIPTION
16 sftp is an interactive file transfer program, similar to ftp(1), which
17 performs all operations over an encrypted ssh(1) transport. It may also
18 use many features of ssh, such as public key authentication and
19 compression. sftp connects and logs into the specified host, then enters
20 an interactive command mode.
21
22 The second usage format will retrieve files automatically if a non-
23 interactive authentication method is used; otherwise it will do so after
24 successful interactive authentication.
25
26 The third usage format allows sftp to start in a remote directory.
27
28 The final usage format allows for automated sessions using the -b option.
29 In such cases, it is necessary to configure non-interactive
30 authentication to obviate the need to enter a password at connection time
31 (see sshd(8) and ssh-keygen(1) for details). 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
48 instead 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, symlink, and lmkdir. Termination on error can be
54 suppressed on a command by command basis by prefixing the command
55 with a `-' 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 -l limit
77 Limits the used bandwidth, specified in Kbit/s.
78
79 -o ssh_option
80 Can be used to pass options to ssh in the format used in
81 ssh_config(5). This is useful for specifying options for which
82 there is no separate sftp command-line flag. For example, to
83 specify an alternate port use: sftp -oPort=24. For full details
84 of the options listed below, and their possible values, see
85 ssh_config(5).
86
87 AddressFamily
88 BatchMode
89 BindAddress
90 ChallengeResponseAuthentication
91 CheckHostIP
92 Cipher
93 Ciphers
94 Compression
95 CompressionLevel
96 ConnectionAttempts
97 ConnectTimeout
98 ControlMaster
99 ControlPath
100 GlobalKnownHostsFile
101 GSSAPIAuthentication
102 GSSAPIDelegateCredentials
103 HashKnownHosts
104 Host
105 HostbasedAuthentication
106 HostKeyAlgorithms
107 HostKeyAlias
108 HostName
109 IdentityFile
110 IdentitiesOnly
111 IPQoS
112 KbdInteractiveDevices
113 KexAlgorithms
114 LogLevel
115 MACs
116 NoHostAuthenticationForLocalhost
117 NumberOfPasswordPrompts
118 PasswordAuthentication
119 PKCS11Provider
120 Port
121 PreferredAuthentications
122 Protocol
123 ProxyCommand
124 PubkeyAuthentication
125 RekeyLimit
126 RhostsRSAAuthentication
127 RSAAuthentication
128 SendEnv
129 ServerAliveInterval
130 ServerAliveCountMax
131 StrictHostKeyChecking
132 TCPKeepAlive
133 UsePrivilegedPort
134 User
135 UserKnownHostsFile
136 VerifyHostKeyDNS
137
138 -P port
139 Specifies the port to connect to on the remote host.
140
141 -p Preserves modification times, access times, and modes from the
142 original files transferred.
143
144 -q Quiet mode: disables the progress meter as well as warning and
145 diagnostic messages from ssh(1).
146
147 -R num_requests
148 Specify how many requests may be outstanding at any one time.
149 Increasing this may slightly improve file transfer speed but will
150 increase memory usage. The default is 64 outstanding requests.
151
152 -r Recursively copy entire directories when uploading and
153 downloading. Note that sftp does not follow symbolic links
154 encountered in the tree traversal.
155
156 -S program
157 Name of the program to use for the encrypted connection. The
158 program must understand ssh(1) options.
159
160 -s subsystem | sftp_server
161 Specifies the SSH2 subsystem or the path for an sftp server on
162 the remote host. A path is useful for using sftp over protocol
163 version 1, or when the remote sshd(8) does not have an sftp
164 subsystem configured.
165
166 -v Raise logging level. This option is also passed to ssh.
167
168INTERACTIVE COMMANDS
169 Once in interactive mode, sftp understands a set of commands similar to
170 those of ftp(1). Commands are case insensitive. Pathnames that contain
171 spaces must be enclosed in quotes. Any special characters contained
172 within pathnames that are recognized by glob(3) must be escaped with
173 backslashes (`\').
174
175 bye Quit sftp.
176
177 cd path
178 Change remote directory to path.
179
180 chgrp grp path
181 Change group of file path to grp. path may contain glob(3)
182 characters and may match multiple files. grp must be a numeric
183 GID.
184
185 chmod mode path
186 Change permissions of file path to mode. path may contain
187 glob(3) characters and may match multiple files.
188
189 chown own path
190 Change owner of file path to own. path may contain glob(3)
191 characters and may match multiple files. own must be a numeric
192 UID.
193
194 df [-hi] [path]
195 Display usage information for the filesystem holding the current
196 directory (or path if specified). If the -h flag is specified,
197 the capacity information will be displayed using "human-readable"
198 suffixes. The -i flag requests display of inode information in
199 addition to capacity information. This command is only supported
200 on servers that implement the ``statvfs@openssh.com'' extension.
201
202 exit Quit sftp.
203
204 get [-Ppr] remote-path [local-path]
205 Retrieve the remote-path and store it on the local machine. If
206 the local path name is not specified, it is given the same name
207 it has on the remote machine. remote-path may contain glob(3)
208 characters and may match multiple files. If it does and
209 local-path is specified, then local-path must specify a
210 directory.
211
212 If either the -P or -p flag is specified, then full file
213 permissions and access times are copied too.
214
215 If the -r flag is specified then directories will be copied
216 recursively. Note that sftp does not follow symbolic links when
217 performing recursive transfers.
218
219 help Display help text.
220
221 lcd path
222 Change local directory to path.
223
224 lls [ls-options [path]]
225 Display local directory listing of either path or current
226 directory if path is not specified. ls-options may contain any
227 flags supported by the local system's ls(1) command. path may
228 contain glob(3) characters and may match multiple files.
229
230 lmkdir path
231 Create local directory specified by path.
232
233 ln [-s] oldpath newpath
234 Create a link from oldpath to newpath. If the -s flag is
235 specified the created link is a symbolic link, otherwise it is a
236 hard link.
237
238 lpwd Print local working directory.
239
240 ls [-1afhlnrSt] [path]
241 Display a remote directory listing of either path or the current
242 directory if path is not specified. path may contain glob(3)
243 characters and may match multiple files.
244
245 The following flags are recognized and alter the behaviour of ls
246 accordingly:
247
248 -1 Produce single columnar output.
249
250 -a List files beginning with a dot (`.').
251
252 -f Do not sort the listing. The default sort order is
253 lexicographical.
254
255 -h When used with a long format option, use unit suffixes:
256 Byte, Kilobyte, Megabyte, Gigabyte, Terabyte, Petabyte,
257 and Exabyte in order to reduce the number of digits to
258 four or fewer using powers of 2 for sizes (K=1024,
259 M=1048576, etc.).
260
261 -l Display additional details including permissions and
262 ownership information.
263
264 -n Produce a long listing with user and group information
265 presented numerically.
266
267 -r Reverse the sort order of the listing.
268
269 -S Sort the listing by file size.
270
271 -t Sort the listing by last modification time.
272
273 lumask umask
274 Set local umask to umask.
275
276 mkdir path
277 Create remote directory specified by path.
278
279 progress
280 Toggle display of progress meter.
281
282 put [-Ppr] local-path [remote-path]
283 Upload local-path and store it on the remote machine. If the
284 remote path name is not specified, it is given the same name it
285 has on the local machine. local-path may contain glob(3)
286 characters and may match multiple files. If it does and
287 remote-path is specified, then remote-path must specify a
288 directory.
289
290 If ether the -P or -p flag is specified, then full file
291 permissions and access times are copied too.
292
293 If the -r flag is specified then directories will be copied
294 recursively. Note that sftp does not follow symbolic links when
295 performing recursive transfers.
296
297 pwd Display remote working directory.
298
299 quit Quit sftp.
300
301 rename oldpath newpath
302 Rename remote file from oldpath to newpath.
303
304 rm path
305 Delete remote file specified by path.
306
307 rmdir path
308 Remove remote directory specified by path.
309
310 symlink oldpath newpath
311 Create a symbolic link from oldpath to newpath.
312
313 version
314 Display the sftp protocol version.
315
316 !command
317 Execute command in local shell.
318
319 ! Escape to local shell.
320
321 ? Synonym for help.
322
323SEE ALSO
324 ftp(1), ls(1), scp(1), ssh(1), ssh-add(1), ssh-keygen(1), glob(3),
325 ssh_config(5), sftp-server(8), sshd(8)
326
327 T. Ylonen and S. Lehtinen, SSH File Transfer Protocol,
328 draft-ietf-secsh-filexfer-00.txt, January 2001, work in progress
329 material.
330
331OpenBSD 4.9 December 4, 2010 OpenBSD 4.9
diff --git a/ssh-add.0 b/ssh-add.0
new file mode 100644
index 000000000..d91512888
--- /dev/null
+++ b/ssh-add.0
@@ -0,0 +1,115 @@
1SSH-ADD(1) OpenBSD Reference Manual SSH-ADD(1)
2
3NAME
4 ssh-add - adds private key identities to the authentication agent
5
6SYNOPSIS
7 ssh-add [-cDdLlXx] [-t life] [file ...]
8 ssh-add -s pkcs11
9 ssh-add -e pkcs11
10
11DESCRIPTION
12 ssh-add adds private key identities to the authentication agent,
13 ssh-agent(1). When run without arguments, it adds the files
14 ~/.ssh/id_rsa, ~/.ssh/id_dsa, ~/.ssh/id_ecdsa and ~/.ssh/identity. After
15 loading a private key, ssh-add will try to load corresponding certificate
16 information from the filename obtained by appending -cert.pub to the name
17 of the private key file. Alternative file names can be given on the
18 command line.
19
20 If any file requires a passphrase, ssh-add asks for the passphrase from
21 the user. The passphrase is read from the user's tty. ssh-add retries
22 the last passphrase if multiple identity files are given.
23
24 The authentication agent must be running and the SSH_AUTH_SOCK
25 environment variable must contain the name of its socket for ssh-add to
26 work.
27
28 The options are as follows:
29
30 -c Indicates that added identities should be subject to confirmation
31 before being used for authentication. Confirmation is performed
32 by the SSH_ASKPASS program mentioned below. Successful
33 confirmation is signaled by a zero exit status from the
34 SSH_ASKPASS program, rather than text entered into the requester.
35
36 -D Deletes all identities from the agent.
37
38 -d Instead of adding identities, removes identities from the agent.
39 If ssh-add has been run without arguments, the keys for the
40 default identities will be removed. Otherwise, the argument list
41 will be interpreted as a list of paths to public key files and
42 matching keys will be removed from the agent. If no public key
43 is found at a given path, ssh-add will append .pub and retry.
44
45 -e pkcs11
46 Remove keys provided by the PKCS#11 shared library pkcs11.
47
48 -L Lists public key parameters of all identities currently
49 represented by the agent.
50
51 -l Lists fingerprints of all identities currently represented by the
52 agent.
53
54 -s pkcs11
55 Add keys provided by the PKCS#11 shared library pkcs11.
56
57 -t life
58 Set a maximum lifetime when adding identities to an agent. The
59 lifetime may be specified in seconds or in a time format
60 specified in sshd_config(5).
61
62 -X Unlock the agent.
63
64 -x Lock the agent with a password.
65
66ENVIRONMENT
67 DISPLAY and SSH_ASKPASS
68 If ssh-add needs a passphrase, it will read the passphrase from
69 the current terminal if it was run from a terminal. If ssh-add
70 does not have a terminal associated with it but DISPLAY and
71 SSH_ASKPASS are set, it will execute the program specified by
72 SSH_ASKPASS and open an X11 window to read the passphrase. This
73 is particularly useful when calling ssh-add from a .xsession or
74 related script. (Note that on some machines it may be necessary
75 to redirect the input from /dev/null to make this work.)
76
77 SSH_AUTH_SOCK
78 Identifies the path of a UNIX-domain socket used to communicate
79 with the agent.
80
81FILES
82 ~/.ssh/identity
83 Contains the protocol version 1 RSA authentication identity of
84 the user.
85
86 ~/.ssh/id_dsa
87 Contains the protocol version 2 DSA authentication identity of
88 the user.
89
90 ~/.ssh/id_ecdsa
91 Contains the protocol version 2 ECDSA authentication identity of
92 the user.
93
94 ~/.ssh/id_rsa
95 Contains the protocol version 2 RSA authentication identity of
96 the user.
97
98 Identity files should not be readable by anyone but the user. Note that
99 ssh-add ignores identity files if they are accessible by others.
100
101EXIT STATUS
102 Exit status is 0 on success, 1 if the specified command fails, and 2 if
103 ssh-add is unable to contact the authentication agent.
104
105SEE ALSO
106 ssh(1), ssh-agent(1), ssh-keygen(1), sshd(8)
107
108AUTHORS
109 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
110 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
111 de Raadt and Dug Song removed many bugs, re-added newer features and
112 created OpenSSH. Markus Friedl contributed the support for SSH protocol
113 versions 1.5 and 2.0.
114
115OpenBSD 4.9 October 28, 2010 OpenBSD 4.9
diff --git a/ssh-agent.0 b/ssh-agent.0
new file mode 100644
index 000000000..c3de21b42
--- /dev/null
+++ b/ssh-agent.0
@@ -0,0 +1,123 @@
1SSH-AGENT(1) OpenBSD Reference Manual SSH-AGENT(1)
2
3NAME
4 ssh-agent - authentication agent
5
6SYNOPSIS
7 ssh-agent [-c | -s] [-d] [-a bind_address] [-t life] [command [arg ...]]
8 ssh-agent [-c | -s] -k
9
10DESCRIPTION
11 ssh-agent is a program to hold private keys used for public key
12 authentication (RSA, DSA, ECDSA). The idea is that ssh-agent is started
13 in the beginning of an X-session or a login session, and all other
14 windows or programs are started as clients to the ssh-agent program.
15 Through use of environment variables the agent can be located and
16 automatically used for authentication when logging in to other machines
17 using ssh(1).
18
19 The options are as follows:
20
21 -a bind_address
22 Bind the agent to the UNIX-domain socket bind_address. The
23 default is $TMPDIR/ssh-XXXXXXXXXX/agent.<ppid>.
24
25 -c Generate C-shell commands on stdout. This is the default if
26 SHELL looks like it's a csh style of shell.
27
28 -d Debug mode. When this option is specified ssh-agent will not
29 fork.
30
31 -k Kill the current agent (given by the SSH_AGENT_PID environment
32 variable).
33
34 -s Generate Bourne shell commands on stdout. This is the default if
35 SHELL does not look like it's a csh style of shell.
36
37 -t life
38 Set a default value for the maximum lifetime of identities added
39 to the agent. The lifetime may be specified in seconds or in a
40 time format specified in sshd_config(5). A lifetime specified
41 for an identity with ssh-add(1) overrides this value. Without
42 this option the default maximum lifetime is forever.
43
44 If a commandline is given, this is executed as a subprocess of the agent.
45 When the command dies, so does the agent.
46
47 The agent initially does not have any private keys. Keys are added using
48 ssh-add(1). When executed without arguments, ssh-add(1) adds the files
49 ~/.ssh/id_rsa, ~/.ssh/id_dsa, ~/.ssh/id_ecdsa and ~/.ssh/identity. If
50 the identity has a passphrase, ssh-add(1) asks for the passphrase on the
51 terminal if it has one or from a small X11 program if running under X11.
52 If neither of these is the case then the authentication will fail. It
53 then sends the identity to the agent. Several identities can be stored
54 in the agent; the agent can automatically use any of these identities.
55 ssh-add -l displays the identities currently held by the agent.
56
57 The idea is that the agent is run in the user's local PC, laptop, or
58 terminal. Authentication data need not be stored on any other machine,
59 and authentication passphrases never go over the network. However, the
60 connection to the agent is forwarded over SSH remote logins, and the user
61 can thus use the privileges given by the identities anywhere in the
62 network in a secure way.
63
64 There are two main ways to get an agent set up: The first is that the
65 agent starts a new subcommand into which some environment variables are
66 exported, eg ssh-agent xterm &. The second is that the agent prints the
67 needed shell commands (either sh(1) or csh(1) syntax can be generated)
68 which can be evaluated in the calling shell, eg eval `ssh-agent -s` for
69 Bourne-type shells such as sh(1) or ksh(1) and eval `ssh-agent -c` for
70 csh(1) and derivatives.
71
72 Later ssh(1) looks at these variables and uses them to establish a
73 connection to the agent.
74
75 The agent will never send a private key over its request channel.
76 Instead, operations that require a private key will be performed by the
77 agent, and the result will be returned to the requester. This way,
78 private keys are not exposed to clients using the agent.
79
80 A UNIX-domain socket is created and the name of this socket is stored in
81 the SSH_AUTH_SOCK environment variable. The socket is made accessible
82 only to the current user. This method is easily abused by root or
83 another instance of the same user.
84
85 The SSH_AGENT_PID environment variable holds the agent's process ID.
86
87 The agent exits automatically when the command given on the command line
88 terminates.
89
90FILES
91 ~/.ssh/identity
92 Contains the protocol version 1 RSA authentication identity of
93 the user.
94
95 ~/.ssh/id_dsa
96 Contains the protocol version 2 DSA authentication identity of
97 the user.
98
99 ~/.ssh/id_ecdsa
100 Contains the protocol version 2 ECDSA authentication identity of
101 the user.
102
103 ~/.ssh/id_rsa
104 Contains the protocol version 2 RSA authentication identity of
105 the user.
106
107 $TMPDIR/ssh-XXXXXXXXXX/agent.<ppid>
108 UNIX-domain sockets used to contain the connection to the
109 authentication agent. These sockets should only be readable by
110 the owner. The sockets should get automatically removed when the
111 agent exits.
112
113SEE ALSO
114 ssh(1), ssh-add(1), ssh-keygen(1), sshd(8)
115
116AUTHORS
117 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
118 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
119 de Raadt and Dug Song removed many bugs, re-added newer features and
120 created OpenSSH. Markus Friedl contributed the support for SSH protocol
121 versions 1.5 and 2.0.
122
123OpenBSD 4.9 November 21, 2010 OpenBSD 4.9
diff --git a/ssh-keygen.0 b/ssh-keygen.0
new file mode 100644
index 000000000..a01b30db0
--- /dev/null
+++ b/ssh-keygen.0
@@ -0,0 +1,443 @@
1SSH-KEYGEN(1) OpenBSD Reference Manual SSH-KEYGEN(1)
2
3NAME
4 ssh-keygen - authentication key generation, management and conversion
5
6SYNOPSIS
7 ssh-keygen [-q] [-b bits] -t type [-N new_passphrase] [-C comment]
8 [-f output_keyfile]
9 ssh-keygen -p [-P old_passphrase] [-N new_passphrase] [-f keyfile]
10 ssh-keygen -i [-m key_format] [-f input_keyfile]
11 ssh-keygen -e [-m key_format] [-f input_keyfile]
12 ssh-keygen -y [-f input_keyfile]
13 ssh-keygen -c [-P passphrase] [-C comment] [-f keyfile]
14 ssh-keygen -l [-f input_keyfile]
15 ssh-keygen -B [-f input_keyfile]
16 ssh-keygen -D pkcs11
17 ssh-keygen -F hostname [-f known_hosts_file] [-l]
18 ssh-keygen -H [-f known_hosts_file]
19 ssh-keygen -R hostname [-f known_hosts_file]
20 ssh-keygen -r hostname [-f input_keyfile] [-g]
21 ssh-keygen -G output_file [-v] [-b bits] [-M memory] [-S start_point]
22 ssh-keygen -T output_file -f input_file [-v] [-a num_trials]
23 [-W generator]
24 ssh-keygen -s ca_key -I certificate_identity [-h] [-n principals]
25 [-O option] [-V validity_interval] [-z serial_number] file ...
26 ssh-keygen -L [-f input_keyfile]
27
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 DSA, ECDSA or RSA keys for use by SSH protocol version 2. The type
32 of key to be generated is specified with the -t option. If invoked
33 without any arguments, ssh-keygen will generate an RSA key for use in SSH
34 protocol 2 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 public key authentication runs
40 this once to create the authentication key in ~/.ssh/identity,
41 ~/.ssh/id_ecdsa, ~/.ssh/id_dsa or ~/.ssh/id_rsa. Additionally, the
42 system administrator may use this to generate host keys, as seen in
43 /etc/rc.
44
45 Normally this program generates the key and asks for a file in which to
46 store the private key. The public key is stored in a file with the same
47 name but ``.pub'' appended. The program also asks for a passphrase. The
48 passphrase may be empty to indicate no passphrase (host keys must have an
49 empty passphrase), or it may be a string of arbitrary length. A
50 passphrase is similar to a password, except it can be a phrase with a
51 series of words, punctuation, numbers, whitespace, or any string of
52 characters you want. Good passphrases are 10-30 characters long, are not
53 simple sentences or otherwise easily guessable (English prose has only 1-
54 2 bits of entropy per character, and provides very bad passphrases), and
55 contain a mix of upper and lowercase letters, numbers, and non-
56 alphanumeric characters. The passphrase can be changed later by using
57 the -p option.
58
59 There is no way to recover a lost passphrase. If the passphrase is lost
60 or forgotten, a new key must be generated and copied to the corresponding
61 public key to other machines.
62
63 For RSA1 keys, there is also a comment field in the key file that is only
64 for convenience to the user to help identify the key. The comment can
65 tell what the key is for, or whatever is useful. The comment is
66 initialized to ``user@host'' when the key is created, but can be changed
67 using the -c option.
68
69 After a key is generated, instructions below detail where the keys should
70 be placed to be activated.
71
72 The options are as follows:
73
74 -a trials
75 Specifies the number of primality tests to perform when screening
76 DH-GEX candidates using the -T command.
77
78 -B Show the bubblebabble digest of specified private or public key
79 file.
80
81 -b bits
82 Specifies the number of bits in the key to create. For RSA keys,
83 the minimum size is 768 bits and the default is 2048 bits.
84 Generally, 2048 bits is considered sufficient. DSA keys must be
85 exactly 1024 bits as specified by FIPS 186-2.
86
87 -C comment
88 Provides a new comment.
89
90 -c Requests changing the comment in the private and public key
91 files. This operation is only supported for RSA1 keys. The
92 program will prompt for the file containing the private keys, for
93 the passphrase if the key has one, and for the new comment.
94
95 -D pkcs11
96 Download the RSA public keys provided by the PKCS#11 shared
97 library pkcs11. When used in combination with -s, this option
98 indicates that a CA key resides in a PKCS#11 token (see the
99 CERTIFICATES section for details).
100
101 -e This option will read a private or public OpenSSH key file and
102 print to stdout the key in one of the formats specified by the -m
103 option. The default export format is ``RFC4716''. This option
104 allows exporting OpenSSH keys for use by other programs,
105 including several commercial SSH implementations.
106
107 -F hostname
108 Search for the specified hostname in a known_hosts file, listing
109 any occurrences found. This option is useful to find hashed host
110 names or addresses and may also be used in conjunction with the
111 -H option to print found keys in a hashed format.
112
113 -f filename
114 Specifies the filename of the key file.
115
116 -G output_file
117 Generate candidate primes for DH-GEX. These primes must be
118 screened for safety (using the -T option) before use.
119
120 -g Use generic DNS format when printing fingerprint resource records
121 using the -r command.
122
123 -H Hash a known_hosts file. This replaces all hostnames and
124 addresses with hashed representations within the specified file;
125 the original content is moved to a file with a .old suffix.
126 These hashes may be used normally by ssh and sshd, but they do
127 not reveal identifying information should the file's contents be
128 disclosed. This option will not modify existing hashed hostnames
129 and is therefore safe to use on files that mix hashed and non-
130 hashed names.
131
132 -h When signing a key, create a host certificate instead of a user
133 certificate. Please see the CERTIFICATES section for details.
134
135 -I certificate_identity
136 Specify the key identity when signing a public key. Please see
137 the CERTIFICATES section for details.
138
139 -i This option will read an unencrypted private (or public) key file
140 in the format specified by the -m option and print an OpenSSH
141 compatible private (or public) key to stdout. This option allows
142 importing keys from other software, including several commercial
143 SSH implementations. The default import format is ``RFC4716''.
144
145 -L Prints the contents of a certificate.
146
147 -l Show fingerprint of specified public key file. Private RSA1 keys
148 are also supported. For RSA and DSA keys ssh-keygen tries to
149 find the matching public key file and prints its fingerprint. If
150 combined with -v, an ASCII art representation of the key is
151 supplied with the fingerprint.
152
153 -M memory
154 Specify the amount of memory to use (in megabytes) when
155 generating candidate moduli for DH-GEX.
156
157 -m key_format
158 Specify a key format for the -i (import) or -e (export)
159 conversion options. The supported key formats are: ``RFC4716''
160 (RFC 4716/SSH2 public or private key), ``PKCS8'' (PEM PKCS8
161 public key) or ``PEM'' (PEM public key). The default conversion
162 format is ``RFC4716''.
163
164 -N new_passphrase
165 Provides the new passphrase.
166
167 -n principals
168 Specify one or more principals (user or host names) to be
169 included in a certificate when signing a key. Multiple
170 principals may be specified, separated by commas. Please see the
171 CERTIFICATES section for details.
172
173 -O option
174 Specify a certificate option when signing a key. This option may
175 be specified multiple times. Please see the CERTIFICATES section
176 for details. The options that are valid for user certificates
177 are:
178
179 clear Clear all enabled permissions. This is useful for
180 clearing the default set of permissions so permissions
181 may be added individually.
182
183 force-command=command
184 Forces the execution of command instead of any shell or
185 command specified by the user when the certificate is
186 used for authentication.
187
188 no-agent-forwarding
189 Disable ssh-agent(1) forwarding (permitted by default).
190
191 no-port-forwarding
192 Disable port forwarding (permitted by default).
193
194 no-pty Disable PTY allocation (permitted by default).
195
196 no-user-rc
197 Disable execution of ~/.ssh/rc by sshd(8) (permitted by
198 default).
199
200 no-x11-forwarding
201 Disable X11 forwarding (permitted by default).
202
203 permit-agent-forwarding
204 Allows ssh-agent(1) forwarding.
205
206 permit-port-forwarding
207 Allows port forwarding.
208
209 permit-pty
210 Allows PTY allocation.
211
212 permit-user-rc
213 Allows execution of ~/.ssh/rc by sshd(8).
214
215 permit-x11-forwarding
216 Allows X11 forwarding.
217
218 source-address=address_list
219 Restrict the source addresses from which the certificate
220 is considered valid. The address_list is a comma-
221 separated list of one or more address/netmask pairs in
222 CIDR format.
223
224 At present, no options are valid for host keys.
225
226 -P passphrase
227 Provides the (old) passphrase.
228
229 -p Requests changing the passphrase of a private key file instead of
230 creating a new private key. The program will prompt for the file
231 containing the private key, for the old passphrase, and twice for
232 the new passphrase.
233
234 -q Silence ssh-keygen. Used by /etc/rc when creating a new key.
235
236 -R hostname
237 Removes all keys belonging to hostname from a known_hosts file.
238 This option is useful to delete hashed hosts (see the -H option
239 above).
240
241 -r hostname
242 Print the SSHFP fingerprint resource record named hostname for
243 the specified public key file.
244
245 -S start
246 Specify start point (in hex) when generating candidate moduli for
247 DH-GEX.
248
249 -s ca_key
250 Certify (sign) a public key using the specified CA key. Please
251 see the CERTIFICATES section for details.
252
253 -T output_file
254 Test DH group exchange candidate primes (generated using the -G
255 option) for safety.
256
257 -t type
258 Specifies the type of key to create. The possible values are
259 ``rsa1'' for protocol version 1 and ``dsa'', ``ecdsa'' or ``rsa''
260 for protocol version 2.
261
262 -V validity_interval
263 Specify a validity interval when signing a certificate. A
264 validity interval may consist of a single time, indicating that
265 the certificate is valid beginning now and expiring at that time,
266 or may consist of two times separated by a colon to indicate an
267 explicit time interval. The start time may be specified as a
268 date in YYYYMMDD format, a time in YYYYMMDDHHMMSS format or a
269 relative time (to the current time) consisting of a minus sign
270 followed by a relative time in the format described in the TIME
271 FORMATS section of sshd_config(5). The end time may be specified
272 as a YYYYMMDD date, a YYYYMMDDHHMMSS time or a relative time
273 starting with a plus character.
274
275 For example: ``+52w1d'' (valid from now to 52 weeks and one day
276 from now), ``-4w:+4w'' (valid from four weeks ago to four weeks
277 from now), ``20100101123000:20110101123000'' (valid from 12:30
278 PM, January 1st, 2010 to 12:30 PM, January 1st, 2011),
279 ``-1d:20110101'' (valid from yesterday to midnight, January 1st,
280 2011).
281
282 -v Verbose mode. Causes ssh-keygen to print debugging messages
283 about its progress. This is helpful for debugging moduli
284 generation. Multiple -v options increase the verbosity. The
285 maximum is 3.
286
287 -W generator
288 Specify desired generator when testing candidate moduli for DH-
289 GEX.
290
291 -y This option will read a private OpenSSH format file and print an
292 OpenSSH public key to stdout.
293
294 -z serial_number
295 Specifies a serial number to be embedded in the certificate to
296 distinguish this certificate from others from the same CA. The
297 default serial number is zero.
298
299MODULI GENERATION
300 ssh-keygen may be used to generate groups for the Diffie-Hellman Group
301 Exchange (DH-GEX) protocol. Generating these groups is a two-step
302 process: first, candidate primes are generated using a fast, but memory
303 intensive process. These candidate primes are then tested for
304 suitability (a CPU-intensive process).
305
306 Generation of primes is performed using the -G option. The desired
307 length of the primes may be specified by the -b option. For example:
308
309 # ssh-keygen -G moduli-2048.candidates -b 2048
310
311 By default, the search for primes begins at a random point in the desired
312 length range. This may be overridden using the -S option, which
313 specifies a different start point (in hex).
314
315 Once a set of candidates have been generated, they must be tested for
316 suitability. This may be performed using the -T option. In this mode
317 ssh-keygen will read candidates from standard input (or a file specified
318 using the -f option). For example:
319
320 # ssh-keygen -T moduli-2048 -f moduli-2048.candidates
321
322 By default, each candidate will be subjected to 100 primality tests.
323 This may be overridden using the -a option. The DH generator value will
324 be chosen automatically for the prime under consideration. If a specific
325 generator is desired, it may be requested using the -W option. Valid
326 generator values are 2, 3, and 5.
327
328 Screened DH groups may be installed in /etc/moduli. It is important that
329 this file contains moduli of a range of bit lengths and that both ends of
330 a connection share common moduli.
331
332CERTIFICATES
333 ssh-keygen supports signing of keys to produce certificates that may be
334 used for user or host authentication. Certificates consist of a public
335 key, some identity information, zero or more principal (user or host)
336 names and a set of options that are signed by a Certification Authority
337 (CA) key. Clients or servers may then trust only the CA key and verify
338 its signature on a certificate rather than trusting many user/host keys.
339 Note that OpenSSH certificates are a different, and much simpler, format
340 to the X.509 certificates used in ssl(8).
341
342 ssh-keygen supports two types of certificates: user and host. User
343 certificates authenticate users to servers, whereas host certificates
344 authenticate server hosts to users. To generate a user certificate:
345
346 $ ssh-keygen -s /path/to/ca_key -I key_id /path/to/user_key.pub
347
348 The resultant certificate will be placed in /path/to/user_key-cert.pub.
349 A host certificate requires the -h option:
350
351 $ ssh-keygen -s /path/to/ca_key -I key_id -h /path/to/host_key.pub
352
353 The host certificate will be output to /path/to/host_key-cert.pub.
354
355 It is possible to sign using a CA key stored in a PKCS#11 token by
356 providing the token library using -D and identifying the CA key by
357 providing its public half as an argument to -s:
358
359 $ ssh-keygen -s ca_key.pub -D libpkcs11.so -I key_id host_key.pub
360
361 In all cases, key_id is a "key identifier" that is logged by the server
362 when the certificate is used for authentication.
363
364 Certificates may be limited to be valid for a set of principal
365 (user/host) names. By default, generated certificates are valid for all
366 users or hosts. To generate a certificate for a specified set of
367 principals:
368
369 $ ssh-keygen -s ca_key -I key_id -n user1,user2 user_key.pub
370 $ ssh-keygen -s ca_key -I key_id -h -n host.domain user_key.pub
371
372 Additional limitations on the validity and use of user certificates may
373 be specified through certificate options. A certificate option may
374 disable features of the SSH session, may be valid only when presented
375 from particular source addresses or may force the use of a specific
376 command. For a list of valid certificate options, see the documentation
377 for the -O option above.
378
379 Finally, certificates may be defined with a validity lifetime. The -V
380 option allows specification of certificate start and end times. A
381 certificate that is presented at a time outside this range will not be
382 considered valid. By default, certificates have a maximum validity
383 interval.
384
385 For certificates to be used for user or host authentication, the CA
386 public key must be trusted by sshd(8) or ssh(1). Please refer to those
387 manual pages for details.
388
389FILES
390 ~/.ssh/identity
391 Contains the protocol version 1 RSA authentication identity of
392 the user. This file should not be readable by anyone but the
393 user. It is possible to specify a passphrase when generating the
394 key; that passphrase will be used to encrypt the private part of
395 this file using 3DES. This file is not automatically accessed by
396 ssh-keygen but it is offered as the default file for the private
397 key. ssh(1) will read this file when a login attempt is made.
398
399 ~/.ssh/identity.pub
400 Contains the protocol version 1 RSA public key for
401 authentication. The contents of this file should be added to
402 ~/.ssh/authorized_keys on all machines where the user wishes to
403 log in using RSA authentication. There is no need to keep the
404 contents of this file secret.
405
406 ~/.ssh/id_dsa
407 ~/.ssh/id_ecdsa
408 ~/.ssh/id_rsa
409 Contains the protocol version 2 DSA, ECDSA or RSA authentication
410 identity of the user. This file should not be readable by anyone
411 but the user. It is possible to specify a passphrase when
412 generating the key; that passphrase will be used to encrypt the
413 private part of this file using 128-bit AES. This file is not
414 automatically accessed by ssh-keygen but it is offered as the
415 default file for the private key. ssh(1) will read this file
416 when a login attempt is made.
417
418 ~/.ssh/id_dsa.pub
419 ~/.ssh/id_ecdsa.pub
420 ~/.ssh/id_rsa.pub
421 Contains the protocol version 2 DSA, ECDSA or RSA public key for
422 authentication. The contents of this file should be added to
423 ~/.ssh/authorized_keys on all machines where the user wishes to
424 log in using public key authentication. There is no need to keep
425 the contents of this file secret.
426
427 /etc/moduli
428 Contains Diffie-Hellman groups used for DH-GEX. The file format
429 is described in moduli(5).
430
431SEE ALSO
432 ssh(1), ssh-add(1), ssh-agent(1), moduli(5), sshd(8)
433
434 The Secure Shell (SSH) Public Key File Format, RFC 4716, 2006.
435
436AUTHORS
437 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
438 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
439 de Raadt and Dug Song removed many bugs, re-added newer features and
440 created OpenSSH. Markus Friedl contributed the support for SSH protocol
441 versions 1.5 and 2.0.
442
443OpenBSD 4.9 October 28, 2010 OpenBSD 4.9
diff --git a/ssh-keyscan.0 b/ssh-keyscan.0
new file mode 100644
index 000000000..4c3d2dbcc
--- /dev/null
+++ b/ssh-keyscan.0
@@ -0,0 +1,109 @@
1SSH-KEYSCAN(1) OpenBSD Reference Manual SSH-KEYSCAN(1)
2
3NAME
4 ssh-keyscan - gather ssh public keys
5
6SYNOPSIS
7 ssh-keyscan [-46Hv] [-f file] [-p port] [-T timeout] [-t type]
8 [host | addrlist namelist] ...
9
10DESCRIPTION
11 ssh-keyscan is a utility for gathering the public ssh host keys of a
12 number of hosts. It was designed to aid in building and verifying
13 ssh_known_hosts files. ssh-keyscan provides a minimal interface suitable
14 for use by shell and perl scripts.
15
16 ssh-keyscan uses non-blocking socket I/O to contact as many hosts as
17 possible in parallel, so it is very efficient. The keys from a domain of
18 1,000 hosts can be collected in tens of seconds, even when some of those
19 hosts are down or do not run ssh. For scanning, one does not need login
20 access to the machines that are being scanned, nor does the scanning
21 process involve any encryption.
22
23 The options are as follows:
24
25 -4 Forces ssh-keyscan to use IPv4 addresses only.
26
27 -6 Forces ssh-keyscan to use IPv6 addresses only.
28
29 -f file
30 Read hosts or addrlist namelist pairs from this file, one per
31 line. If - is supplied instead of a filename, ssh-keyscan will
32 read hosts or addrlist namelist pairs from the standard input.
33
34 -H Hash all hostnames and addresses in the output. Hashed names may
35 be used normally by ssh and sshd, but they do not reveal
36 identifying information should the file's contents be disclosed.
37
38 -p port
39 Port to connect to on the remote host.
40
41 -T timeout
42 Set the timeout for connection attempts. If timeout seconds have
43 elapsed since a connection was initiated to a host or since the
44 last time anything was read from that host, then the connection
45 is closed and the host in question considered unavailable.
46 Default is 5 seconds.
47
48 -t type
49 Specifies the type of the key to fetch from the scanned hosts.
50 The possible values are ``rsa1'' for protocol version 1 and
51 ``dsa'', ``ecdsa'' or ``rsa'' for protocol version 2. Multiple
52 values may be specified by separating them with commas. The
53 default is ``rsa''.
54
55 -v Verbose mode. Causes ssh-keyscan to print debugging messages
56 about its progress.
57
58SECURITY
59 If an ssh_known_hosts file is constructed using ssh-keyscan without
60 verifying the keys, users will be vulnerable to man in the middle
61 attacks. On the other hand, if the security model allows such a risk,
62 ssh-keyscan can help in the detection of tampered keyfiles or man in the
63 middle attacks which have begun after the ssh_known_hosts file was
64 created.
65
66FILES
67 Input format:
68
69 1.2.3.4,1.2.4.4 name.my.domain,name,n.my.domain,n,1.2.3.4,1.2.4.4
70
71 Output format for rsa1 keys:
72
73 host-or-namelist bits exponent modulus
74
75 Output format for rsa, dsa and ecdsa keys:
76
77 host-or-namelist keytype base64-encoded-key
78
79 Where keytype is either ``ecdsa-sha2-nistp256'', ``ecdsa-sha2-nistp384'',
80 ``ecdsa-sha2-nistp521'', ``ssh-dss'' or ``ssh-rsa''.
81
82 /etc/ssh/ssh_known_hosts
83
84EXAMPLES
85 Print the rsa host key for machine hostname:
86
87 $ ssh-keyscan hostname
88
89 Find all hosts from the file ssh_hosts which have new or different keys
90 from those in the sorted file ssh_known_hosts:
91
92 $ ssh-keyscan -t rsa,dsa,ecdsa -f ssh_hosts | \
93 sort -u - ssh_known_hosts | diff ssh_known_hosts -
94
95SEE ALSO
96 ssh(1), sshd(8)
97
98AUTHORS
99 David Mazieres <dm@lcs.mit.edu> wrote the initial version, and Wayne
100 Davison <wayned@users.sourceforge.net> added support for protocol version
101 2.
102
103BUGS
104 It generates "Connection closed by remote host" messages on the consoles
105 of all the machines it scans if the server is older than version 2.9.
106 This is because it opens a connection to the ssh port, reads the public
107 key, and drops the connection as soon as it gets the key.
108
109OpenBSD 4.9 August 31, 2010 OpenBSD 4.9
diff --git a/ssh-keysign.0 b/ssh-keysign.0
new file mode 100644
index 000000000..bff850f27
--- /dev/null
+++ b/ssh-keysign.0
@@ -0,0 +1,51 @@
1SSH-KEYSIGN(8) OpenBSD System Manager's Manual SSH-KEYSIGN(8)
2
3NAME
4 ssh-keysign - ssh helper program for host-based authentication
5
6SYNOPSIS
7 ssh-keysign
8
9DESCRIPTION
10 ssh-keysign is used by ssh(1) to access the local host keys and generate
11 the digital signature required during host-based authentication with SSH
12 protocol version 2.
13
14 ssh-keysign is disabled by default and can only be enabled in the global
15 client configuration file /etc/ssh/ssh_config by setting EnableSSHKeysign
16 to ``yes''.
17
18 ssh-keysign is not intended to be invoked by the user, but from ssh(1).
19 See ssh(1) and sshd(8) for more information about host-based
20 authentication.
21
22FILES
23 /etc/ssh/ssh_config
24 Controls whether ssh-keysign is enabled.
25
26 /etc/ssh/ssh_host_dsa_key
27 /etc/ssh/ssh_host_ecdsa_key
28 /etc/ssh/ssh_host_rsa_key
29 These files contain the private parts of the host keys used to
30 generate the digital signature. They should be owned by root,
31 readable only by root, and not accessible to others. Since they
32 are readable only by root, ssh-keysign must be set-uid root if
33 host-based authentication is used.
34
35 /etc/ssh/ssh_host_dsa_key-cert.pub
36 /etc/ssh/ssh_host_ecdsa_key-cert.pub
37 /etc/ssh/ssh_host_rsa_key-cert.pub
38 If these files exist they are assumed to contain public
39 certificate information corresponding with the private keys
40 above.
41
42SEE ALSO
43 ssh(1), ssh-keygen(1), ssh_config(5), sshd(8)
44
45HISTORY
46 ssh-keysign first appeared in OpenBSD 3.2.
47
48AUTHORS
49 Markus Friedl <markus@openbsd.org>
50
51OpenBSD 4.9 August 31, 2010 OpenBSD 4.9
diff --git a/ssh-pkcs11-helper.0 b/ssh-pkcs11-helper.0
new file mode 100644
index 000000000..22526781e
--- /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.9 February 10, 2010 OpenBSD 4.9
diff --git a/ssh-rand-helper.0 b/ssh-rand-helper.0
new file mode 100644
index 000000000..93d3554fc
--- /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
31 commandline 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.9 April 14, 2002 OpenBSD 4.9
diff --git a/ssh.0 b/ssh.0
new file mode 100644
index 000000000..c1d3135ce
--- /dev/null
+++ b/ssh.0
@@ -0,0 +1,898 @@
1SSH(1) OpenBSD Reference Manual SSH(1)
2
3NAME
4 ssh - OpenSSH SSH client (remote login program)
5
6SYNOPSIS
7 ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
8 [-D [bind_address:]port] [-e escape_char] [-F configfile] [-I pkcs11]
9 [-i identity_file] [-L [bind_address:]port:host:hostport]
10 [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
11 [-R [bind_address:]port:host:hostport] [-S ctl_path] [-W host:port]
12 [-w local_tun[:remote_tun]] [user@]hostname [command]
13
14DESCRIPTION
15 ssh (SSH client) is a program for logging into a remote machine and for
16 executing commands on a remote machine. It is intended to replace rlogin
17 and rsh, and provide secure encrypted communications between two
18 untrusted hosts over an insecure network. X11 connections and arbitrary
19 TCP ports can also be forwarded over the secure channel.
20
21 ssh connects and logs into the specified hostname (with optional user
22 name). The user must prove his/her identity to the remote machine using
23 one of several methods depending on the protocol version used (see
24 below).
25
26 If command is specified, it is executed on the remote host instead of a
27 login shell.
28
29 The options are as follows:
30
31 -1 Forces ssh to try protocol version 1 only.
32
33 -2 Forces ssh to try protocol version 2 only.
34
35 -4 Forces ssh to use IPv4 addresses only.
36
37 -6 Forces ssh to use IPv6 addresses only.
38
39 -A Enables forwarding of the authentication agent connection. This
40 can also be specified on a per-host basis in a configuration
41 file.
42
43 Agent forwarding should be enabled with caution. Users with the
44 ability to bypass file permissions on the remote host (for the
45 agent's UNIX-domain socket) can access the local agent through
46 the forwarded connection. An attacker cannot obtain key material
47 from the agent, however they can perform operations on the keys
48 that enable them to authenticate using the identities loaded into
49 the agent.
50
51 -a Disables forwarding of the authentication agent connection.
52
53 -b bind_address
54 Use bind_address on the local machine as the source address of
55 the connection. Only useful on systems with more than one
56 address.
57
58 -C Requests compression of all data (including stdin, stdout,
59 stderr, and data for forwarded X11 and TCP connections). The
60 compression algorithm is the same used by gzip(1), and the
61 ``level'' can be controlled by the CompressionLevel option for
62 protocol version 1. Compression is desirable on modem lines and
63 other slow connections, but will only slow down things on fast
64 networks. The default value can be set on a host-by-host basis
65 in the configuration files; see the Compression option.
66
67 -c cipher_spec
68 Selects the cipher specification for encrypting the session.
69
70 Protocol version 1 allows specification of a single cipher. The
71 supported values are ``3des'', ``blowfish'', and ``des''. 3des
72 (triple-des) is an encrypt-decrypt-encrypt triple with three
73 different keys. It is believed to be secure. blowfish is a fast
74 block cipher; it appears very secure and is much faster than
75 3des. des is only supported in the ssh client for
76 interoperability with legacy protocol 1 implementations that do
77 not support the 3des cipher. Its use is strongly discouraged due
78 to cryptographic weaknesses. The default is ``3des''.
79
80 For protocol version 2, cipher_spec is a comma-separated list of
81 ciphers listed in order of preference. See the Ciphers keyword
82 in ssh_config(5) for more information.
83
84 -D [bind_address:]port
85 Specifies a local ``dynamic'' application-level port forwarding.
86 This works by allocating a socket to listen to port on the local
87 side, optionally bound to the specified bind_address. Whenever a
88 connection is made to this port, the connection is forwarded over
89 the secure channel, and the application protocol is then used to
90 determine where to connect to from the remote machine. Currently
91 the SOCKS4 and SOCKS5 protocols are supported, and ssh will act
92 as a SOCKS server. Only root can forward privileged ports.
93 Dynamic port forwardings can also be specified in the
94 configuration file.
95
96 IPv6 addresses can be specified by enclosing the address in
97 square brackets. Only the superuser can forward privileged
98 ports. By default, the local port is bound in accordance with
99 the GatewayPorts setting. However, an explicit bind_address may
100 be used to bind the connection to a specific address. The
101 bind_address of ``localhost'' indicates that the listening port
102 be bound for local use only, while an empty address or `*'
103 indicates that the port should be available from all interfaces.
104
105 -e escape_char
106 Sets the escape character for sessions with a pty (default: `~').
107 The escape character is only recognized at the beginning of a
108 line. The escape character followed by a dot (`.') closes the
109 connection; followed by control-Z suspends the connection; and
110 followed by itself sends the escape character once. Setting the
111 character to ``none'' disables any escapes and makes the session
112 fully transparent.
113
114 -F configfile
115 Specifies an alternative per-user configuration file. If a
116 configuration file is given on the command line, the system-wide
117 configuration file (/etc/ssh/ssh_config) will be ignored. The
118 default for the per-user configuration file is ~/.ssh/config.
119
120 -f Requests ssh to go to background just before command execution.
121 This is useful if ssh is going to ask for passwords or
122 passphrases, but the user wants it in the background. This
123 implies -n. The recommended way to start X11 programs at a
124 remote site is with something like ssh -f host xterm.
125
126 If the ExitOnForwardFailure configuration option is set to
127 ``yes'', then a client started with -f will wait for all remote
128 port forwards to be successfully established before placing
129 itself in the background.
130
131 -g Allows remote hosts to connect to local forwarded ports.
132
133 -I pkcs11
134 Specify the PKCS#11 shared library ssh should use to communicate
135 with a PKCS#11 token providing the user's private RSA key.
136
137 -i identity_file
138 Selects a file from which the identity (private key) for public
139 key authentication is read. The default is ~/.ssh/identity for
140 protocol version 1, and ~/.ssh/id_dsa, ~/.ssh/id_ecdsa and
141 ~/.ssh/id_rsa for protocol version 2. Identity files may also be
142 specified on a per-host basis in the configuration file. It is
143 possible to have multiple -i options (and multiple identities
144 specified in configuration files). ssh will also try to load
145 certificate information from the filename obtained by appending
146 -cert.pub to identity filenames.
147
148 -K Enables GSSAPI-based authentication and forwarding (delegation)
149 of GSSAPI credentials to the server.
150
151 -k Disables forwarding (delegation) of GSSAPI credentials to the
152 server.
153
154 -L [bind_address:]port:host:hostport
155 Specifies that the given port on the local (client) host is to be
156 forwarded to the given host and port on the remote side. This
157 works by allocating a socket to listen to port on the local side,
158 optionally bound to the specified bind_address. Whenever a
159 connection is made to this port, the connection is forwarded over
160 the secure channel, and a connection is made to host port
161 hostport from the remote machine. Port forwardings can also be
162 specified in the configuration file. IPv6 addresses can be
163 specified by enclosing the address in square brackets. Only the
164 superuser can forward privileged ports. By default, the local
165 port is bound in accordance with the GatewayPorts setting.
166 However, an explicit bind_address may be used to bind the
167 connection to a specific address. The bind_address of
168 ``localhost'' indicates that the listening port be bound for
169 local use only, while an empty address or `*' indicates that the
170 port should be available from all interfaces.
171
172 -l login_name
173 Specifies the user to log in as on the remote machine. This also
174 may be specified on a per-host basis in the configuration file.
175
176 -M Places the ssh client into ``master'' mode for connection
177 sharing. Multiple -M options places ssh into ``master'' mode
178 with confirmation required before slave connections are accepted.
179 Refer to the description of ControlMaster in ssh_config(5) for
180 details.
181
182 -m mac_spec
183 Additionally, for protocol version 2 a comma-separated list of
184 MAC (message authentication code) algorithms can be specified in
185 order of preference. See the MACs keyword for more information.
186
187 -N Do not execute a remote command. This is useful for just
188 forwarding ports (protocol version 2 only).
189
190 -n Redirects stdin from /dev/null (actually, prevents reading from
191 stdin). This must be used when ssh is run in the background. A
192 common trick is to use this to run X11 programs on a remote
193 machine. For example, ssh -n shadows.cs.hut.fi emacs & will
194 start an emacs on shadows.cs.hut.fi, and the X11 connection will
195 be automatically forwarded over an encrypted channel. The ssh
196 program will be put in the background. (This does not work if
197 ssh needs to ask for a password or passphrase; see also the -f
198 option.)
199
200 -O ctl_cmd
201 Control an active connection multiplexing master process. When
202 the -O option is specified, the ctl_cmd argument is interpreted
203 and passed to the master process. Valid commands are: ``check''
204 (check that the master process is running), ``forward'' (request
205 forwardings without command execution) and ``exit'' (request the
206 master to exit).
207
208 -o option
209 Can be used to give options in the format used in the
210 configuration file. This is useful for specifying options for
211 which there is no separate command-line flag. For full details
212 of the options listed below, and their possible values, see
213 ssh_config(5).
214
215 AddressFamily
216 BatchMode
217 BindAddress
218 ChallengeResponseAuthentication
219 CheckHostIP
220 Cipher
221 Ciphers
222 ClearAllForwardings
223 Compression
224 CompressionLevel
225 ConnectionAttempts
226 ConnectTimeout
227 ControlMaster
228 ControlPath
229 DynamicForward
230 EscapeChar
231 ExitOnForwardFailure
232 ForwardAgent
233 ForwardX11
234 ForwardX11Trusted
235 GatewayPorts
236 GlobalKnownHostsFile
237 GSSAPIAuthentication
238 GSSAPIDelegateCredentials
239 HashKnownHosts
240 Host
241 HostbasedAuthentication
242 HostKeyAlgorithms
243 HostKeyAlias
244 HostName
245 IdentityFile
246 IdentitiesOnly
247 IPQoS
248 KbdInteractiveDevices
249 KexAlgorithms
250 LocalCommand
251 LocalForward
252 LogLevel
253 MACs
254 NoHostAuthenticationForLocalhost
255 NumberOfPasswordPrompts
256 PasswordAuthentication
257 PermitLocalCommand
258 PKCS11Provider
259 Port
260 PreferredAuthentications
261 Protocol
262 ProxyCommand
263 PubkeyAuthentication
264 RekeyLimit
265 RemoteForward
266 RhostsRSAAuthentication
267 RSAAuthentication
268 SendEnv
269 ServerAliveInterval
270 ServerAliveCountMax
271 StrictHostKeyChecking
272 TCPKeepAlive
273 Tunnel
274 TunnelDevice
275 UsePrivilegedPort
276 User
277 UserKnownHostsFile
278 VerifyHostKeyDNS
279 VisualHostKey
280 XAuthLocation
281
282 -p port
283 Port to connect to on the remote host. This can be specified on
284 a per-host basis in the configuration file.
285
286 -q Quiet mode. Causes most warning and diagnostic messages to be
287 suppressed.
288
289 -R [bind_address:]port:host:hostport
290 Specifies that the given port on the remote (server) host is to
291 be forwarded to the given host and port on the local side. This
292 works by allocating a socket to listen to port on the remote
293 side, and whenever a connection is made to this port, the
294 connection is forwarded over the secure channel, and a connection
295 is made to host port hostport from the local machine.
296
297 Port forwardings can also be specified in the configuration file.
298 Privileged ports can be forwarded only when logging in as root on
299 the remote machine. IPv6 addresses can be specified by enclosing
300 the address in square braces.
301
302 By default, the listening socket on the server will be bound to
303 the loopback interface only. This may be overridden by
304 specifying a bind_address. An empty bind_address, or the address
305 `*', indicates that the remote socket should listen on all
306 interfaces. Specifying a remote bind_address will only succeed
307 if the server's GatewayPorts option is enabled (see
308 sshd_config(5)).
309
310 If the port argument is `0', the listen port will be dynamically
311 allocated on the server and reported to the client at run time.
312 When used together with -O forward the allocated port will be
313 printed to the standard output.
314
315 -S ctl_path
316 Specifies the location of a control socket for connection
317 sharing, or the string ``none'' to disable connection sharing.
318 Refer to the description of ControlPath and ControlMaster in
319 ssh_config(5) for details.
320
321 -s May be used to request invocation of a subsystem on the remote
322 system. Subsystems are a feature of the SSH2 protocol which
323 facilitate the use of SSH as a secure transport for other
324 applications (eg. sftp(1)). The subsystem is specified as the
325 remote command.
326
327 -T Disable pseudo-tty allocation.
328
329 -t Force pseudo-tty allocation. This can be used to execute
330 arbitrary screen-based programs on a remote machine, which can be
331 very useful, e.g. when implementing menu services. Multiple -t
332 options force tty allocation, even if ssh has no local tty.
333
334 -V Display the version number and exit.
335
336 -v Verbose mode. Causes ssh to print debugging messages about its
337 progress. This is helpful in debugging connection,
338 authentication, and configuration problems. Multiple -v options
339 increase the verbosity. The maximum is 3.
340
341 -W host:port
342 Requests that standard input and output on the client be
343 forwarded to host on port over the secure channel. Implies -N,
344 -T, ExitOnForwardFailure and ClearAllForwardings and works with
345 Protocol version 2 only.
346
347 -w local_tun[:remote_tun]
348 Requests tunnel device forwarding with the specified tun(4)
349 devices between the client (local_tun) and the server
350 (remote_tun).
351
352 The devices may be specified by numerical ID or the keyword
353 ``any'', which uses the next available tunnel device. If
354 remote_tun is not specified, it defaults to ``any''. See also
355 the Tunnel and TunnelDevice directives in ssh_config(5). If the
356 Tunnel directive is unset, it is set to the default tunnel mode,
357 which is ``point-to-point''.
358
359 -X Enables X11 forwarding. This can also be specified on a per-host
360 basis in a configuration file.
361
362 X11 forwarding should be enabled with caution. Users with the
363 ability to bypass file permissions on the remote host (for the
364 user's X authorization database) can access the local X11 display
365 through the forwarded connection. An attacker may then be able
366 to perform activities such as keystroke monitoring.
367
368 For this reason, X11 forwarding is subjected to X11 SECURITY
369 extension restrictions by default. Please refer to the ssh -Y
370 option and the ForwardX11Trusted directive in ssh_config(5) for
371 more information.
372
373 -x Disables X11 forwarding.
374
375 -Y Enables trusted X11 forwarding. Trusted X11 forwardings are not
376 subjected to the X11 SECURITY extension controls.
377
378 -y Send log information using the syslog(3) system module. By
379 default this information is sent to stderr.
380
381 ssh may additionally obtain configuration data from a per-user
382 configuration file and a system-wide configuration file. The file format
383 and configuration options are described in ssh_config(5).
384
385AUTHENTICATION
386 The OpenSSH SSH client supports SSH protocols 1 and 2. The default is to
387 use protocol 2 only, though this can be changed via the Protocol option
388 in ssh_config(5) or the -1 and -2 options (see above). Both protocols
389 support similar authentication methods, but protocol 2 is the default
390 since it provides additional mechanisms for confidentiality (the traffic
391 is encrypted using AES, 3DES, Blowfish, CAST128, or Arcfour) and
392 integrity (hmac-md5, hmac-sha1, umac-64, hmac-ripemd160). Protocol 1
393 lacks a strong mechanism for ensuring the integrity of the connection.
394
395 The methods available for authentication are: GSSAPI-based
396 authentication, host-based authentication, public key authentication,
397 challenge-response authentication, and password authentication.
398 Authentication methods are tried in the order specified above, though
399 protocol 2 has a configuration option to change the default order:
400 PreferredAuthentications.
401
402 Host-based authentication works as follows: If the machine the user logs
403 in from is listed in /etc/hosts.equiv or /etc/shosts.equiv on the remote
404 machine, and the user names are the same on both sides, or if the files
405 ~/.rhosts or ~/.shosts exist in the user's home directory on the remote
406 machine and contain a line containing the name of the client machine and
407 the name of the user on that machine, the user is considered for login.
408 Additionally, the server must be able to verify the client's host key
409 (see the description of /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts,
410 below) for login to be permitted. This authentication method closes
411 security holes due to IP spoofing, DNS spoofing, and routing spoofing.
412 [Note to the administrator: /etc/hosts.equiv, ~/.rhosts, and the
413 rlogin/rsh protocol in general, are inherently insecure and should be
414 disabled if security is desired.]
415
416 Public key authentication works as follows: The scheme is based on
417 public-key cryptography, using cryptosystems where encryption and
418 decryption are done using separate keys, and it is unfeasible to derive
419 the decryption key from the encryption key. The idea is that each user
420 creates a public/private key pair for authentication purposes. The
421 server knows the public key, and only the user knows the private key.
422 ssh implements public key authentication protocol automatically, using
423 one of the DSA, ECDSA or RSA algorithms. Protocol 1 is restricted to
424 using only RSA keys, but protocol 2 may use any. The HISTORY section of
425 ssl(8) contains a brief discussion of the DSA and RSA algorithms.
426
427 The file ~/.ssh/authorized_keys lists the public keys that are permitted
428 for logging in. When the user logs in, the ssh program tells the server
429 which key pair it would like to use for authentication. The client
430 proves that it has access to the private key and the server checks that
431 the corresponding public key is authorized to accept the account.
432
433 The user creates his/her key pair by running ssh-keygen(1). This stores
434 the private key in ~/.ssh/identity (protocol 1), ~/.ssh/id_dsa (protocol
435 2 DSA), ~/.ssh/id_ecdsa (protocol 2 ECDSA), or ~/.ssh/id_rsa (protocol 2
436 RSA) and stores the public key in ~/.ssh/identity.pub (protocol 1),
437 ~/.ssh/id_dsa.pub (protocol 2 DSA), ~/.ssh/id_ecdsa.pub (protocol 2
438 ECDSA), or ~/.ssh/id_rsa.pub (protocol 2 RSA) in the user's home
439 directory. The user should then copy the public key to
440 ~/.ssh/authorized_keys in his/her home directory on the remote machine.
441 The authorized_keys file corresponds to the conventional ~/.rhosts file,
442 and has one key per line, though the lines can be very long. After this,
443 the user can log in without giving the password.
444
445 A variation on public key authentication is available in the form of
446 certificate authentication: instead of a set of public/private keys,
447 signed certificates are used. This has the advantage that a single
448 trusted certification authority can be used in place of many
449 public/private keys. See the CERTIFICATES section of ssh-keygen(1) for
450 more information.
451
452 The most convenient way to use public key or certificate authentication
453 may be with an authentication agent. See ssh-agent(1) for more
454 information.
455
456 Challenge-response authentication works as follows: The server sends an
457 arbitrary "challenge" text, and prompts for a response. Protocol 2
458 allows multiple challenges and responses; protocol 1 is restricted to
459 just one challenge/response. Examples of challenge-response
460 authentication include BSD Authentication (see login.conf(5)) and PAM
461 (some non-OpenBSD systems).
462
463 Finally, if other authentication methods fail, ssh prompts the user for a
464 password. The password is sent to the remote host for checking; however,
465 since all communications are encrypted, the password cannot be seen by
466 someone listening on the network.
467
468 ssh automatically maintains and checks a database containing
469 identification for all hosts it has ever been used with. Host keys are
470 stored in ~/.ssh/known_hosts in the user's home directory. Additionally,
471 the file /etc/ssh/ssh_known_hosts is automatically checked for known
472 hosts. Any new hosts are automatically added to the user's file. If a
473 host's identification ever changes, ssh warns about this and disables
474 password authentication to prevent server spoofing or man-in-the-middle
475 attacks, which could otherwise be used to circumvent the encryption. The
476 StrictHostKeyChecking option can be used to control logins to machines
477 whose host key is not known or has changed.
478
479 When the user's identity has been accepted by the server, the server
480 either executes the given command, or logs into the machine and gives the
481 user a normal shell on the remote machine. All communication with the
482 remote command or shell will be automatically encrypted.
483
484 If a pseudo-terminal has been allocated (normal login session), the user
485 may use the escape characters noted below.
486
487 If no pseudo-tty has been allocated, the session is transparent and can
488 be used to reliably transfer binary data. On most systems, setting the
489 escape character to ``none'' will also make the session transparent even
490 if a tty is used.
491
492 The session terminates when the command or shell on the remote machine
493 exits and all X11 and TCP connections have been closed.
494
495ESCAPE CHARACTERS
496 When a pseudo-terminal has been requested, ssh supports a number of
497 functions through the use of an escape character.
498
499 A single tilde character can be sent as ~~ or by following the tilde by a
500 character other than those described below. The escape character must
501 always follow a newline to be interpreted as special. The escape
502 character can be changed in configuration files using the EscapeChar
503 configuration directive or on the command line by the -e option.
504
505 The supported escapes (assuming the default `~') are:
506
507 ~. Disconnect.
508
509 ~^Z Background ssh.
510
511 ~# List forwarded connections.
512
513 ~& Background ssh at logout when waiting for forwarded connection /
514 X11 sessions to terminate.
515
516 ~? Display a list of escape characters.
517
518 ~B Send a BREAK to the remote system (only useful for SSH protocol
519 version 2 and if the peer supports it).
520
521 ~C Open command line. Currently this allows the addition of port
522 forwardings using the -L, -R and -D options (see above). It also
523 allows the cancellation of existing remote port-forwardings using
524 -KR[bind_address:]port. !command allows the user to execute a
525 local command if the PermitLocalCommand option is enabled in
526 ssh_config(5). Basic help is available, using the -h option.
527
528 ~R Request rekeying of the connection (only useful for SSH protocol
529 version 2 and if the peer supports it).
530
531TCP FORWARDING
532 Forwarding of arbitrary TCP connections over the secure channel can be
533 specified either on the command line or in a configuration file. One
534 possible application of TCP forwarding is a secure connection to a mail
535 server; another is going through firewalls.
536
537 In the example below, we look at encrypting communication between an IRC
538 client and server, even though the IRC server does not directly support
539 encrypted communications. This works as follows: the user connects to
540 the remote host using ssh, specifying a port to be used to forward
541 connections to the remote server. After that it is possible to start the
542 service which is to be encrypted on the client machine, connecting to the
543 same local port, and ssh will encrypt and forward the connection.
544
545 The following example tunnels an IRC session from client machine
546 ``127.0.0.1'' (localhost) to remote server ``server.example.com'':
547
548 $ ssh -f -L 1234:localhost:6667 server.example.com sleep 10
549 $ irc -c '#users' -p 1234 pinky 127.0.0.1
550
551 This tunnels a connection to IRC server ``server.example.com'', joining
552 channel ``#users'', nickname ``pinky'', using port 1234. It doesn't
553 matter which port is used, as long as it's greater than 1023 (remember,
554 only root can open sockets on privileged ports) and doesn't conflict with
555 any ports already in use. The connection is forwarded to port 6667 on
556 the remote server, since that's the standard port for IRC services.
557
558 The -f option backgrounds ssh and the remote command ``sleep 10'' is
559 specified to allow an amount of time (10 seconds, in the example) to
560 start the service which is to be tunnelled. If no connections are made
561 within the time specified, ssh will exit.
562
563X11 FORWARDING
564 If the ForwardX11 variable is set to ``yes'' (or see the description of
565 the -X, -x, and -Y options above) and the user is using X11 (the DISPLAY
566 environment variable is set), the connection to the X11 display is
567 automatically forwarded to the remote side in such a way that any X11
568 programs started from the shell (or command) will go through the
569 encrypted channel, and the connection to the real X server will be made
570 from the local machine. The user should not manually set DISPLAY.
571 Forwarding of X11 connections can be configured on the command line or in
572 configuration files.
573
574 The DISPLAY value set by ssh will point to the server machine, but with a
575 display number greater than zero. This is normal, and happens because
576 ssh creates a ``proxy'' X server on the server machine for forwarding the
577 connections over the encrypted channel.
578
579 ssh will also automatically set up Xauthority data on the server machine.
580 For this purpose, it will generate a random authorization cookie, store
581 it in Xauthority on the server, and verify that any forwarded connections
582 carry this cookie and replace it by the real cookie when the connection
583 is opened. The real authentication cookie is never sent to the server
584 machine (and no cookies are sent in the plain).
585
586 If the ForwardAgent variable is set to ``yes'' (or see the description of
587 the -A and -a options above) and the user is using an authentication
588 agent, the connection to the agent is automatically forwarded to the
589 remote side.
590
591VERIFYING HOST KEYS
592 When connecting to a server for the first time, a fingerprint of the
593 server's public key is presented to the user (unless the option
594 StrictHostKeyChecking has been disabled). Fingerprints can be determined
595 using ssh-keygen(1):
596
597 $ ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key
598
599 If the fingerprint is already known, it can be matched and the key can be
600 accepted or rejected. Because of the difficulty of comparing host keys
601 just by looking at hex strings, there is also support to compare host
602 keys visually, using random art. By setting the VisualHostKey option to
603 ``yes'', a small ASCII graphic gets displayed on every login to a server,
604 no matter if the session itself is interactive or not. By learning the
605 pattern a known server produces, a user can easily find out that the host
606 key has changed when a completely different pattern is displayed.
607 Because these patterns are not unambiguous however, a pattern that looks
608 similar to the pattern remembered only gives a good probability that the
609 host key is the same, not guaranteed proof.
610
611 To get a listing of the fingerprints along with their random art for all
612 known hosts, the following command line can be used:
613
614 $ ssh-keygen -lv -f ~/.ssh/known_hosts
615
616 If the fingerprint is unknown, an alternative method of verification is
617 available: SSH fingerprints verified by DNS. An additional resource
618 record (RR), SSHFP, is added to a zonefile and the connecting client is
619 able to match the fingerprint with that of the key presented.
620
621 In this example, we are connecting a client to a server,
622 ``host.example.com''. The SSHFP resource records should first be added
623 to the zonefile for host.example.com:
624
625 $ ssh-keygen -r host.example.com.
626
627 The output lines will have to be added to the zonefile. To check that
628 the zone is answering fingerprint queries:
629
630 $ dig -t SSHFP host.example.com
631
632 Finally the client connects:
633
634 $ ssh -o "VerifyHostKeyDNS ask" host.example.com
635 [...]
636 Matching host key fingerprint found in DNS.
637 Are you sure you want to continue connecting (yes/no)?
638
639 See the VerifyHostKeyDNS option in ssh_config(5) for more information.
640
641SSH-BASED VIRTUAL PRIVATE NETWORKS
642 ssh contains support for Virtual Private Network (VPN) tunnelling using
643 the tun(4) network pseudo-device, allowing two networks to be joined
644 securely. The sshd_config(5) configuration option PermitTunnel controls
645 whether the server supports this, and at what level (layer 2 or 3
646 traffic).
647
648 The following example would connect client network 10.0.50.0/24 with
649 remote network 10.0.99.0/24 using a point-to-point connection from
650 10.1.1.1 to 10.1.1.2, provided that the SSH server running on the gateway
651 to the remote network, at 192.168.1.15, allows it.
652
653 On the client:
654
655 # ssh -f -w 0:1 192.168.1.15 true
656 # ifconfig tun0 10.1.1.1 10.1.1.2 netmask 255.255.255.252
657 # route add 10.0.99.0/24 10.1.1.2
658
659 On the server:
660
661 # ifconfig tun1 10.1.1.2 10.1.1.1 netmask 255.255.255.252
662 # route add 10.0.50.0/24 10.1.1.1
663
664 Client access may be more finely tuned via the /root/.ssh/authorized_keys
665 file (see below) and the PermitRootLogin server option. The following
666 entry would permit connections on tun(4) device 1 from user ``jane'' and
667 on tun device 2 from user ``john'', if PermitRootLogin is set to
668 ``forced-commands-only'':
669
670 tunnel="1",command="sh /etc/netstart tun1" ssh-rsa ... jane
671 tunnel="2",command="sh /etc/netstart tun2" ssh-rsa ... john
672
673 Since an SSH-based setup entails a fair amount of overhead, it may be
674 more suited to temporary setups, such as for wireless VPNs. More
675 permanent VPNs are better provided by tools such as ipsecctl(8) and
676 isakmpd(8).
677
678ENVIRONMENT
679 ssh will normally set the following environment variables:
680
681 DISPLAY The DISPLAY variable indicates the location of the
682 X11 server. It is automatically set by ssh to
683 point to a value of the form ``hostname:n'', where
684 ``hostname'' indicates the host where the shell
685 runs, and `n' is an integer >= 1. ssh uses this
686 special value to forward X11 connections over the
687 secure channel. The user should normally not set
688 DISPLAY explicitly, as that will render the X11
689 connection insecure (and will require the user to
690 manually copy any required authorization cookies).
691
692 HOME Set to the path of the user's home directory.
693
694 LOGNAME Synonym for USER; set for compatibility with
695 systems that use this variable.
696
697 MAIL Set to the path of the user's mailbox.
698
699 PATH Set to the default PATH, as specified when
700 compiling ssh.
701
702 SSH_ASKPASS If ssh needs a passphrase, it will read the
703 passphrase from the current terminal if it was run
704 from a terminal. If ssh does not have a terminal
705 associated with it but DISPLAY and SSH_ASKPASS are
706 set, it will execute the program specified by
707 SSH_ASKPASS and open an X11 window to read the
708 passphrase. This is particularly useful when
709 calling ssh from a .xsession or related script.
710 (Note that on some machines it may be necessary to
711 redirect the input from /dev/null to make this
712 work.)
713
714 SSH_AUTH_SOCK Identifies the path of a UNIX-domain socket used to
715 communicate with the agent.
716
717 SSH_CONNECTION Identifies the client and server ends of the
718 connection. The variable contains four space-
719 separated values: client IP address, client port
720 number, server IP address, and server port number.
721
722 SSH_ORIGINAL_COMMAND This variable contains the original command line if
723 a forced command is executed. It can be used to
724 extract the original arguments.
725
726 SSH_TTY This is set to the name of the tty (path to the
727 device) associated with the current shell or
728 command. If the current session has no tty, this
729 variable is not set.
730
731 TZ This variable is set to indicate the present time
732 zone if it was set when the daemon was started
733 (i.e. the daemon passes the value on to new
734 connections).
735
736 USER Set to the name of the user logging in.
737
738 Additionally, ssh reads ~/.ssh/environment, and adds lines of the format
739 ``VARNAME=value'' to the environment if the file exists and users are
740 allowed to change their environment. For more information, see the
741 PermitUserEnvironment option in sshd_config(5).
742
743FILES
744 ~/.rhosts
745 This file is used for host-based authentication (see above). On
746 some machines this file may need to be world-readable if the
747 user's home directory is on an NFS partition, because sshd(8)
748 reads it as root. Additionally, this file must be owned by the
749 user, and must not have write permissions for anyone else. The
750 recommended permission for most machines is read/write for the
751 user, and not accessible by others.
752
753 ~/.shosts
754 This file is used in exactly the same way as .rhosts, but allows
755 host-based authentication without permitting login with
756 rlogin/rsh.
757
758 ~/.ssh/
759 This directory is the default location for all user-specific
760 configuration and authentication information. There is no
761 general requirement to keep the entire contents of this directory
762 secret, but the recommended permissions are read/write/execute
763 for the user, and not accessible by others.
764
765 ~/.ssh/authorized_keys
766 Lists the public keys (DSA/ECDSA/RSA) that can be used for
767 logging in as this user. The format of this file is described in
768 the sshd(8) manual page. This file is not highly sensitive, but
769 the recommended permissions are read/write for the user, and not
770 accessible by others.
771
772 ~/.ssh/config
773 This is the per-user configuration file. The file format and
774 configuration options are described in ssh_config(5). Because of
775 the potential for abuse, this file must have strict permissions:
776 read/write for the user, and not accessible by others.
777
778 ~/.ssh/environment
779 Contains additional definitions for environment variables; see
780 ENVIRONMENT, above.
781
782 ~/.ssh/identity
783 ~/.ssh/id_dsa
784 ~/.ssh/id_ecdsa
785 ~/.ssh/id_rsa
786 Contains the private key for authentication. These files contain
787 sensitive data and should be readable by the user but not
788 accessible by others (read/write/execute). ssh will simply
789 ignore a private key file if it is accessible by others. It is
790 possible to specify a passphrase when generating the key which
791 will be used to encrypt the sensitive part of this file using
792 3DES.
793
794 ~/.ssh/identity.pub
795 ~/.ssh/id_dsa.pub
796 ~/.ssh/id_ecdsa.pub
797 ~/.ssh/id_rsa.pub
798 Contains the public key for authentication. These files are not
799 sensitive and can (but need not) be readable by anyone.
800
801 ~/.ssh/known_hosts
802 Contains a list of host keys for all hosts the user has logged
803 into that are not already in the systemwide list of known host
804 keys. See sshd(8) for further details of the format of this
805 file.
806
807 ~/.ssh/rc
808 Commands in this file are executed by ssh when the user logs in,
809 just before the user's shell (or command) is started. See the
810 sshd(8) manual page for more information.
811
812 /etc/hosts.equiv
813 This file is for host-based authentication (see above). It
814 should only be writable by root.
815
816 /etc/shosts.equiv
817 This file is used in exactly the same way as hosts.equiv, but
818 allows host-based authentication without permitting login with
819 rlogin/rsh.
820
821 /etc/ssh/ssh_config
822 Systemwide configuration file. The file format and configuration
823 options are described in ssh_config(5).
824
825 /etc/ssh/ssh_host_key
826 /etc/ssh/ssh_host_dsa_key
827 /etc/ssh/ssh_host_ecdsa_key
828 /etc/ssh/ssh_host_rsa_key
829 These three files contain the private parts of the host keys and
830 are used for host-based authentication. If protocol version 1 is
831 used, ssh must be setuid root, since the host key is readable
832 only by root. For protocol version 2, ssh uses ssh-keysign(8) to
833 access the host keys, eliminating the requirement that ssh be
834 setuid root when host-based authentication is used. By default
835 ssh is not setuid root.
836
837 /etc/ssh/ssh_known_hosts
838 Systemwide list of known host keys. This file should be prepared
839 by the system administrator to contain the public host keys of
840 all machines in the organization. It should be world-readable.
841 See sshd(8) for further details of the format of this file.
842
843 /etc/ssh/sshrc
844 Commands in this file are executed by ssh when the user logs in,
845 just before the user's shell (or command) is started. See the
846 sshd(8) manual page for more information.
847
848EXIT STATUS
849 ssh exits with the exit status of the remote command or with 255 if an
850 error occurred.
851
852SEE ALSO
853 scp(1), sftp(1), ssh-add(1), ssh-agent(1), ssh-keygen(1), ssh-keyscan(1),
854 tun(4), hosts.equiv(5), ssh_config(5), ssh-keysign(8), sshd(8)
855
856 The Secure Shell (SSH) Protocol Assigned Numbers, RFC 4250, 2006.
857
858 The Secure Shell (SSH) Protocol Architecture, RFC 4251, 2006.
859
860 The Secure Shell (SSH) Authentication Protocol, RFC 4252, 2006.
861
862 The Secure Shell (SSH) Transport Layer Protocol, RFC 4253, 2006.
863
864 The Secure Shell (SSH) Connection Protocol, RFC 4254, 2006.
865
866 Using DNS to Securely Publish Secure Shell (SSH) Key Fingerprints, RFC
867 4255, 2006.
868
869 Generic Message Exchange Authentication for the Secure Shell Protocol
870 (SSH), RFC 4256, 2006.
871
872 The Secure Shell (SSH) Session Channel Break Extension, RFC 4335, 2006.
873
874 The Secure Shell (SSH) Transport Layer Encryption Modes, RFC 4344, 2006.
875
876 Improved Arcfour Modes for the Secure Shell (SSH) Transport Layer
877 Protocol, RFC 4345, 2006.
878
879 Diffie-Hellman Group Exchange for the Secure Shell (SSH) Transport Layer
880 Protocol, RFC 4419, 2006.
881
882 The Secure Shell (SSH) Public Key File Format, RFC 4716, 2006.
883
884 Elliptic Curve Algorithm Integration in the Secure Shell Transport Layer,
885 RFC 5656, 2009.
886
887 A. Perrig and D. Song, Hash Visualization: a New Technique to improve
888 Real-World Security, 1999, International Workshop on Cryptographic
889 Techniques and E-Commerce (CrypTEC '99).
890
891AUTHORS
892 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
893 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
894 de Raadt and Dug Song removed many bugs, re-added newer features and
895 created OpenSSH. Markus Friedl contributed the support for SSH protocol
896 versions 1.5 and 2.0.
897
898OpenBSD 4.9 November 18, 2010 OpenBSD 4.9
diff --git a/ssh_config.0 b/ssh_config.0
new file mode 100644
index 000000000..c4a12f7bb
--- /dev/null
+++ b/ssh_config.0
@@ -0,0 +1,744 @@
1SSH_CONFIG(5) OpenBSD Programmer's Manual SSH_CONFIG(5)
2
3NAME
4 ssh_config - OpenSSH SSH client configuration files
5
6SYNOPSIS
7 ~/.ssh/config
8 /etc/ssh/ssh_config
9
10DESCRIPTION
11 ssh(1) obtains configuration data from the following sources in the
12 following order:
13
14 1. command-line options
15 2. user's configuration file (~/.ssh/config)
16 3. system-wide configuration file (/etc/ssh/ssh_config)
17
18 For each parameter, the first obtained value will be used. The
19 configuration files contain sections separated by ``Host''
20 specifications, and that section is only applied for hosts that match one
21 of the patterns given in the specification. The matched host name is the
22 one given on the command line.
23
24 Since the first obtained value for each parameter is used, more host-
25 specific declarations should be given near the beginning of the file, and
26 general defaults at the end.
27
28 The configuration file has the following format:
29
30 Empty lines and lines starting with `#' are comments. Otherwise a line
31 is of the format ``keyword arguments''. Configuration options may be
32 separated by whitespace or optional whitespace and exactly one `='; the
33 latter format is useful to avoid the need to quote whitespace when
34 specifying configuration options using the ssh, scp, and sftp -o option.
35 Arguments may optionally be enclosed in double quotes (") in order to
36 represent arguments containing spaces.
37
38 The possible keywords and their meanings are as follows (note that
39 keywords are case-insensitive and arguments are case-sensitive):
40
41 Host Restricts the following declarations (up to the next Host
42 keyword) to be only for those hosts that match one of the
43 patterns given after the keyword. If more than one pattern is
44 provided, they should be separated by whitespace. A single `*'
45 as a pattern can be used to provide global defaults for all
46 hosts. The host is the hostname argument given on the command
47 line (i.e. the name is not converted to a canonicalized host name
48 before matching).
49
50 See PATTERNS for more information on patterns.
51
52 AddressFamily
53 Specifies which address family to use when connecting. Valid
54 arguments are ``any'', ``inet'' (use IPv4 only), or ``inet6''
55 (use 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
65 address 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
82 protocol version 1. Currently, ``blowfish'', ``3des'', and
83 ``des'' are supported. des is only supported in the ssh(1)
84 client for interoperability with legacy protocol 1
85 implementations that do not support the 3des cipher. Its use is
86 strongly discouraged due to cryptographic weaknesses. The
87 default is ``3des''.
88
89 Ciphers
90 Specifies the ciphers allowed for protocol version 2 in order of
91 preference. Multiple ciphers must be comma-separated. The
92 supported ciphers are ``3des-cbc'', ``aes128-cbc'',
93 ``aes192-cbc'', ``aes256-cbc'', ``aes128-ctr'', ``aes192-ctr'',
94 ``aes256-ctr'', ``arcfour128'', ``arcfour256'', ``arcfour'',
95 ``blowfish-cbc'', and ``cast128-cbc''. The default is:
96
97 aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,
98 aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,
99 aes256-cbc,arcfour
100
101 ClearAllForwardings
102 Specifies that all local, remote, and dynamic port forwardings
103 specified in the configuration files or on the command line be
104 cleared. This option is primarily useful when used from the
105 ssh(1) command line to clear port forwardings set in
106 configuration files, and is automatically set by scp(1) and
107 sftp(1). The argument must be ``yes'' or ``no''. The default is
108 ``no''.
109
110 Compression
111 Specifies whether to use compression. The argument must be
112 ``yes'' or ``no''. The default is ``no''.
113
114 CompressionLevel
115 Specifies the compression level to use if compression is enabled.
116 The argument must be an integer from 1 (fast) to 9 (slow, best).
117 The default level is 6, which is good for most applications. The
118 meaning of the values is the same as in gzip(1). Note that this
119 option applies to protocol version 1 only.
120
121 ConnectionAttempts
122 Specifies the number of tries (one per second) to make before
123 exiting. The argument must be an integer. This may be useful in
124 scripts if the connection sometimes fails. The default is 1.
125
126 ConnectTimeout
127 Specifies the timeout (in seconds) used when connecting to the
128 SSH server, instead of using the default system TCP timeout.
129 This value is used only when the target is down or really
130 unreachable, not when it refuses the connection.
131
132 ControlMaster
133 Enables the sharing of multiple sessions over a single network
134 connection. When set to ``yes'', ssh(1) will listen for
135 connections on a control socket specified using the ControlPath
136 argument. Additional sessions can connect to this socket using
137 the same ControlPath with ControlMaster set to ``no'' (the
138 default). These sessions will try to reuse the master instance's
139 network connection rather than initiating new ones, but will fall
140 back to connecting normally if the control socket does not exist,
141 or is not listening.
142
143 Setting this to ``ask'' will cause ssh to listen for control
144 connections, but require confirmation using the SSH_ASKPASS
145 program before they are accepted (see ssh-add(1) for details).
146 If the ControlPath cannot be opened, ssh will continue without
147 connecting to a master instance.
148
149 X11 and ssh-agent(1) forwarding is supported over these
150 multiplexed connections, however the display and agent forwarded
151 will be the one belonging to the master connection i.e. it is not
152 possible to forward multiple displays or agents.
153
154 Two additional options allow for opportunistic multiplexing: try
155 to use a master connection but fall back to creating a new one if
156 one does not already exist. These options are: ``auto'' and
157 ``autoask''. The latter requires confirmation like the ``ask''
158 option.
159
160 ControlPath
161 Specify the path to the control socket used for connection
162 sharing as described in the ControlMaster section above or the
163 string ``none'' to disable connection sharing. In the path, `%l'
164 will be substituted by the local host name, `%h' will be
165 substituted by the target host name, `%p' the port, and `%r' by
166 the remote login username. It is recommended that any
167 ControlPath used for opportunistic connection sharing include at
168 least %h, %p, and %r. This ensures that shared connections are
169 uniquely identified.
170
171 ControlPersist
172 When used in conjunction with ControlMaster, specifies that the
173 master connection should remain open in the background (waiting
174 for future client connections) after the initial client
175 connection has been closed. If set to ``no'', then the master
176 connection will not be placed into the background, and will close
177 as soon as the initial client connection is closed. If set to
178 ``yes'', then the master connection will remain in the background
179 indefinitely (until killed or closed via a mechanism such as the
180 ssh(1) ``-O exit'' option). If set to a time in seconds, or a
181 time in any of the formats documented in sshd_config(5), then the
182 backgrounded master connection will automatically terminate after
183 it has remained idle (with no client connections) for the
184 specified time.
185
186 DynamicForward
187 Specifies that a TCP port on the local machine be forwarded over
188 the secure channel, and the application protocol is then used to
189 determine where to connect to from the remote machine.
190
191 The argument must be [bind_address:]port. IPv6 addresses can be
192 specified by enclosing addresses in square brackets. By default,
193 the local port is bound in accordance with the GatewayPorts
194 setting. However, an explicit bind_address may be used to bind
195 the connection to a specific address. The bind_address of
196 ``localhost'' indicates that the listening port be bound for
197 local use only, while an empty address or `*' indicates that the
198 port should be available from all interfaces.
199
200 Currently the SOCKS4 and SOCKS5 protocols are supported, and
201 ssh(1) will act as a SOCKS server. Multiple forwardings may be
202 specified, and additional forwardings can be given on the command
203 line. Only the superuser can forward privileged ports.
204
205 EnableSSHKeysign
206 Setting this option to ``yes'' in the global client configuration
207 file /etc/ssh/ssh_config enables the use of the helper program
208 ssh-keysign(8) during HostbasedAuthentication. The argument must
209 be ``yes'' or ``no''. The default is ``no''. This option should
210 be placed in the non-hostspecific section. See ssh-keysign(8)
211 for more information.
212
213 EscapeChar
214 Sets the escape character (default: `~'). The escape character
215 can also be set on the command line. The argument should be a
216 single character, `^' followed by a letter, or ``none'' to
217 disable the escape character entirely (making the connection
218 transparent for binary data).
219
220 ExitOnForwardFailure
221 Specifies whether ssh(1) should terminate the connection if it
222 cannot set up all requested dynamic, tunnel, local, and remote
223 port forwardings. The argument must be ``yes'' or ``no''. The
224 default is ``no''.
225
226 ForwardAgent
227 Specifies whether the connection to the authentication agent (if
228 any) will be forwarded to the remote machine. The argument must
229 be ``yes'' or ``no''. The default is ``no''.
230
231 Agent forwarding should be enabled with caution. Users with the
232 ability to bypass file permissions on the remote host (for the
233 agent's Unix-domain socket) can access the local agent through
234 the forwarded connection. An attacker cannot obtain key material
235 from the agent, however they can perform operations on the keys
236 that enable them to authenticate using the identities loaded into
237 the agent.
238
239 ForwardX11
240 Specifies whether X11 connections will be automatically
241 redirected over the secure channel and DISPLAY set. The argument
242 must be ``yes'' or ``no''. The default is ``no''.
243
244 X11 forwarding should be enabled with caution. Users with the
245 ability to bypass file permissions on the remote host (for the
246 user's X11 authorization database) can access the local X11
247 display through the forwarded connection. An attacker may then
248 be able to perform activities such as keystroke monitoring if the
249 ForwardX11Trusted option is also enabled.
250
251 ForwardX11Timeout
252 Specify a timeout for untrusted X11 forwarding using the format
253 described in the TIME FORMATS section of sshd_config(5). X11
254 connections received by ssh(1) after this time will be refused.
255 The default is to disable untrusted X11 forwarding after twenty
256 minutes has elapsed.
257
258 ForwardX11Trusted
259 If this option is set to ``yes'', remote X11 clients will have
260 full access to the original X11 display.
261
262 If this option is set to ``no'', remote X11 clients will be
263 considered untrusted and prevented from stealing or tampering
264 with data belonging to trusted X11 clients. Furthermore, the
265 xauth(1) token used for the session will be set to expire after
266 20 minutes. Remote clients will be refused access after this
267 time.
268
269 The default is ``no''.
270
271 See the X11 SECURITY extension specification for full details on
272 the restrictions imposed on untrusted clients.
273
274 GatewayPorts
275 Specifies whether remote hosts are allowed to connect to local
276 forwarded ports. By default, ssh(1) binds local port forwardings
277 to the loopback address. This prevents other remote hosts from
278 connecting to forwarded ports. GatewayPorts can be used to
279 specify that ssh should bind local port forwardings to the
280 wildcard address, thus allowing remote hosts to connect to
281 forwarded ports. The argument must be ``yes'' or ``no''. The
282 default is ``no''.
283
284 GlobalKnownHostsFile
285 Specifies a file to use for the global host key database instead
286 of /etc/ssh/ssh_known_hosts.
287
288 GSSAPIAuthentication
289 Specifies whether user authentication based on GSSAPI is allowed.
290 The default is ``no''. Note that this option applies to protocol
291 version 2 only.
292
293 GSSAPIDelegateCredentials
294 Forward (delegate) credentials to the server. The default is
295 ``no''. Note that this option applies to protocol version 2
296 only.
297
298 HashKnownHosts
299 Indicates that ssh(1) should hash host names and addresses when
300 they are added to ~/.ssh/known_hosts. These hashed names may be
301 used normally by ssh(1) and sshd(8), but they do not reveal
302 identifying information should the file's contents be disclosed.
303 The default is ``no''. Note that existing names and addresses in
304 known hosts files will not be converted automatically, but may be
305 manually hashed using ssh-keygen(1).
306
307 HostbasedAuthentication
308 Specifies whether to try rhosts based authentication with public
309 key authentication. The argument must be ``yes'' or ``no''. The
310 default is ``no''. This option applies to protocol version 2
311 only and is similar to RhostsRSAAuthentication.
312
313 HostKeyAlgorithms
314 Specifies the protocol version 2 host key algorithms that the
315 client wants to use in order of preference. The default for this
316 option is:
317
318 ecdsa-sha2-nistp256-cert-v01@openssh.com,
319 ecdsa-sha2-nistp384-cert-v01@openssh.com,
320 ecdsa-sha2-nistp521-cert-v01@openssh.com,
321 ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,
322 ssh-rsa-cert-v00@openssh.com,ssh-dss-cert-v00@openssh.com,
323 ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
324 ssh-rsa,ssh-dss
325
326 If hostkeys are known for the destination host then this default
327 is modified to prefer their algorithms.
328
329 HostKeyAlias
330 Specifies an alias that should be used instead of the real host
331 name when looking up or saving the host key in the host key
332 database files. This option is useful for tunneling SSH
333 connections or for multiple servers running on a single host.
334
335 HostName
336 Specifies the real host name to log into. This can be used to
337 specify nicknames or abbreviations for hosts. If the hostname
338 contains the character sequence `%h', then this will be replaced
339 with the host name specified on the commandline (this is useful
340 for manipulating unqualified names). The default is the name
341 given on the command line. Numeric IP addresses are also
342 permitted (both on the command line and in HostName
343 specifications).
344
345 IdentitiesOnly
346 Specifies that ssh(1) should only use the authentication identity
347 files configured in the ssh_config files, even if ssh-agent(1)
348 offers more identities. The argument to this keyword must be
349 ``yes'' or ``no''. This option is intended for situations where
350 ssh-agent offers many different identities. The default is
351 ``no''.
352
353 IdentityFile
354 Specifies a file from which the user's DSA, ECDSA or DSA
355 authentication identity is read. The default is ~/.ssh/identity
356 for protocol version 1, and ~/.ssh/id_dsa, ~/.ssh/id_ecdsa and
357 ~/.ssh/id_rsa for protocol version 2. Additionally, any
358 identities represented by the authentication agent will be used
359 for authentication. ssh(1) will try to load certificate
360 information from the filename obtained by appending -cert.pub to
361 the path of a specified IdentityFile.
362
363 The file name may use the tilde syntax to refer to a user's home
364 directory or one of the following escape characters: `%d' (local
365 user's home directory), `%u' (local user name), `%l' (local host
366 name), `%h' (remote host name) or `%r' (remote user name).
367
368 It is possible to have multiple identity files specified in
369 configuration files; all these identities will be tried in
370 sequence.
371
372 IPQoS Specifies the IPv4 type-of-service or DSCP class for connections.
373 Accepted values are ``af11'', ``af12'', ``af13'', ``af14'',
374 ``af22'', ``af23'', ``af31'', ``af32'', ``af33'', ``af41'',
375 ``af42'', ``af43'', ``cs0'', ``cs1'', ``cs2'', ``cs3'', ``cs4'',
376 ``cs5'', ``cs6'', ``cs7'', ``ef'', ``lowdelay'', ``throughput'',
377 ``reliability'', or a numeric value. This option may take one or
378 two arguments, separated by whitespace. If one argument is
379 specified, it is used as the packet class unconditionally. If
380 two values are specified, the first is automatically selected for
381 interactive sessions and the second for non-interactive sessions.
382 The default is ``lowdelay'' for interactive sessions and
383 ``throughput'' for non-interactive sessions.
384
385 KbdInteractiveAuthentication
386 Specifies whether to use keyboard-interactive authentication.
387 The argument to this keyword must be ``yes'' or ``no''. The
388 default is ``yes''.
389
390 KbdInteractiveDevices
391 Specifies the list of methods to use in keyboard-interactive
392 authentication. Multiple method names must be comma-separated.
393 The default is to use the server specified list. The methods
394 available vary depending on what the server supports. For an
395 OpenSSH server, it may be zero or more of: ``bsdauth'', ``pam'',
396 and ``skey''.
397
398 KexAlgorithms
399 Specifies the available KEX (Key Exchange) algorithms. Multiple
400 algorithms must be comma-separated. The default is:
401
402 ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,
403 diffie-hellman-group-exchange-sha256,
404 diffie-hellman-group-exchange-sha1,
405 diffie-hellman-group14-sha1,
406 diffie-hellman-group1-sha1
407
408 LocalCommand
409 Specifies a command to execute on the local machine after
410 successfully connecting to the server. The command string
411 extends to the end of the line, and is executed with the user's
412 shell. The following escape character substitutions will be
413 performed: `%d' (local user's home directory), `%h' (remote host
414 name), `%l' (local host name), `%n' (host name as provided on the
415 command line), `%p' (remote port), `%r' (remote user name) or
416 `%u' (local user name).
417
418 The command is run synchronously and does not have access to the
419 session of the ssh(1) that spawned it. It should not be used for
420 interactive commands.
421
422 This directive is ignored unless PermitLocalCommand has been
423 enabled.
424
425 LocalForward
426 Specifies that a TCP port on the local machine be forwarded over
427 the secure channel to the specified host and port from the remote
428 machine. The first argument must be [bind_address:]port and the
429 second argument must be host:hostport. IPv6 addresses can be
430 specified by enclosing addresses in square brackets. Multiple
431 forwardings may be specified, and additional forwardings can be
432 given on the command line. Only the superuser can forward
433 privileged ports. By default, the local port is bound in
434 accordance with the GatewayPorts setting. However, an explicit
435 bind_address may be used to bind the connection to a specific
436 address. The bind_address of ``localhost'' indicates that the
437 listening port be bound for local use only, while an empty
438 address or `*' indicates that the port should be available from
439 all interfaces.
440
441 LogLevel
442 Gives the verbosity level that is used when logging messages from
443 ssh(1). The possible values are: QUIET, FATAL, ERROR, INFO,
444 VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. The default is INFO.
445 DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify
446 higher levels of verbose output.
447
448 MACs Specifies the MAC (message authentication code) algorithms in
449 order of preference. The MAC algorithm is used in protocol
450 version 2 for data integrity protection. Multiple algorithms
451 must be comma-separated. The default is:
452
453 hmac-md5,hmac-sha1,umac-64@openssh.com,
454 hmac-ripemd160,hmac-sha1-96,hmac-md5-96
455
456 NoHostAuthenticationForLocalhost
457 This option can be used if the home directory is shared across
458 machines. In this case localhost will refer to a different
459 machine on each of the machines and the user will get many
460 warnings about changed host keys. However, this option disables
461 host authentication for localhost. The argument to this keyword
462 must be ``yes'' or ``no''. The default is to check the host key
463 for localhost.
464
465 NumberOfPasswordPrompts
466 Specifies the number of password prompts before giving up. The
467 argument to this keyword must be an integer. The default is 3.
468
469 PasswordAuthentication
470 Specifies whether to use password authentication. The argument
471 to this keyword must be ``yes'' or ``no''. The default is
472 ``yes''.
473
474 PermitLocalCommand
475 Allow local command execution via the LocalCommand option or
476 using the !command escape sequence in ssh(1). The argument must
477 be ``yes'' or ``no''. The default is ``no''.
478
479 PKCS11Provider
480 Specifies which PKCS#11 provider to use. The argument to this
481 keyword is the PKCS#11 shared library ssh(1) should use to
482 communicate with a PKCS#11 token providing the user's private RSA
483 key.
484
485 Port Specifies the port number to connect on the remote host. The
486 default is 22.
487
488 PreferredAuthentications
489 Specifies the order in which the client should try protocol 2
490 authentication methods. This allows a client to prefer one
491 method (e.g. keyboard-interactive) over another method (e.g.
492 password). The default is:
493
494 gssapi-with-mic,hostbased,publickey,
495 keyboard-interactive,password
496
497 Protocol
498 Specifies the protocol versions ssh(1) should support in order of
499 preference. The possible values are `1' and `2'. Multiple
500 versions must be comma-separated. When this option is set to
501 ``2,1'' ssh will try version 2 and fall back to version 1 if
502 version 2 is not available. The default is `2'.
503
504 ProxyCommand
505 Specifies the command to use to connect to the server. The
506 command string extends to the end of the line, and is executed
507 with the user's shell. In the command string, any occurrence of
508 `%h' will be substituted by the host name to connect, `%p' by the
509 port, and `%r' by the remote user name. The command can be
510 basically anything, and should read from its standard input and
511 write to its standard output. It should eventually connect an
512 sshd(8) server running on some machine, or execute sshd -i
513 somewhere. Host key management will be done using the HostName
514 of the host being connected (defaulting to the name typed by the
515 user). Setting the command to ``none'' disables this option
516 entirely. Note that CheckHostIP is not available for connects
517 with a proxy command.
518
519 This directive is useful in conjunction with nc(1) and its proxy
520 support. For example, the following directive would connect via
521 an HTTP proxy at 192.0.2.0:
522
523 ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p
524
525 PubkeyAuthentication
526 Specifies whether to try public key authentication. The argument
527 to this keyword must be ``yes'' or ``no''. The default is
528 ``yes''. This option applies to protocol version 2 only.
529
530 RekeyLimit
531 Specifies the maximum amount of data that may be transmitted
532 before the session key is renegotiated. The argument is the
533 number of bytes, with an optional suffix of `K', `M', or `G' to
534 indicate Kilobytes, Megabytes, or Gigabytes, respectively. The
535 default is between `1G' and `4G', depending on the cipher. This
536 option applies to protocol version 2 only.
537
538 RemoteForward
539 Specifies that a TCP port on the remote machine be forwarded over
540 the secure channel to the specified host and port from the local
541 machine. The first argument must be [bind_address:]port and the
542 second argument must be host:hostport. IPv6 addresses can be
543 specified by enclosing addresses in square brackets. Multiple
544 forwardings may be specified, and additional forwardings can be
545 given on the command line. Privileged ports can be forwarded
546 only when logging in as root on the remote machine.
547
548 If the port argument is `0', the listen port will be dynamically
549 allocated on the server and reported to the client at run time.
550
551 If the bind_address is not specified, the default is to only bind
552 to loopback addresses. If the bind_address is `*' or an empty
553 string, then the forwarding is requested to listen on all
554 interfaces. Specifying a remote bind_address will only succeed
555 if the server's GatewayPorts option is enabled (see
556 sshd_config(5)).
557
558 RhostsRSAAuthentication
559 Specifies whether to try rhosts based authentication with RSA
560 host authentication. The argument must be ``yes'' or ``no''.
561 The default is ``no''. This option applies to protocol version 1
562 only and requires ssh(1) to be setuid root.
563
564 RSAAuthentication
565 Specifies whether to try RSA authentication. The argument to
566 this keyword must be ``yes'' or ``no''. RSA authentication will
567 only be attempted if the identity file exists, or an
568 authentication agent is running. The default is ``yes''. Note
569 that this option applies to protocol version 1 only.
570
571 SendEnv
572 Specifies what variables from the local environ(7) should be sent
573 to the server. Note that environment passing is only supported
574 for protocol 2. The server must also support it, and the server
575 must be configured to accept these environment variables. Refer
576 to AcceptEnv in sshd_config(5) for how to configure the server.
577 Variables are specified by name, which may contain wildcard
578 characters. Multiple environment variables may be separated by
579 whitespace or spread across multiple SendEnv directives. The
580 default is not to send any environment variables.
581
582 See PATTERNS for more information on patterns.
583
584 ServerAliveCountMax
585 Sets the number of server alive messages (see below) which may be
586 sent without ssh(1) receiving any messages back from the server.
587 If this threshold is reached while server alive messages are
588 being sent, ssh will disconnect from the server, terminating the
589 session. It is important to note that the use of server alive
590 messages is very different from TCPKeepAlive (below). The server
591 alive messages are sent through the encrypted channel and
592 therefore will not be spoofable. The TCP keepalive option
593 enabled by TCPKeepAlive is spoofable. The server alive mechanism
594 is valuable when the client or server depend on knowing when a
595 connection has become inactive.
596
597 The default value is 3. If, for example, ServerAliveInterval
598 (see below) is set to 15 and ServerAliveCountMax is left at the
599 default, if the server becomes unresponsive, ssh will disconnect
600 after approximately 45 seconds. This option applies to protocol
601 version 2 only.
602
603 ServerAliveInterval
604 Sets a timeout interval in seconds after which if no data has
605 been received from the server, ssh(1) will send a message through
606 the encrypted channel to request a response from the server. The
607 default is 0, indicating that these messages will not be sent to
608 the server. This option applies to protocol version 2 only.
609
610 StrictHostKeyChecking
611 If this flag is set to ``yes'', ssh(1) will never automatically
612 add host keys to the ~/.ssh/known_hosts file, and refuses to
613 connect to hosts whose host key has changed. This provides
614 maximum protection against trojan horse attacks, though it can be
615 annoying when the /etc/ssh/ssh_known_hosts file is poorly
616 maintained or when connections to new hosts are frequently made.
617 This option forces the user to manually add all new hosts. If
618 this flag is set to ``no'', ssh will automatically add new host
619 keys to the user known hosts files. If this flag is set to
620 ``ask'', new host keys will be added to the user known host files
621 only after the user has confirmed that is what they really want
622 to do, and ssh will refuse to connect to hosts whose host key has
623 changed. The host keys of known hosts will be verified
624 automatically in all cases. The argument must be ``yes'',
625 ``no'', or ``ask''. The default is ``ask''.
626
627 TCPKeepAlive
628 Specifies whether the system should send TCP keepalive messages
629 to the other side. If they are sent, death of the connection or
630 crash of one of the machines will be properly noticed. However,
631 this means that connections will die if the route is down
632 temporarily, and some people find it annoying.
633
634 The default is ``yes'' (to send TCP keepalive messages), and the
635 client will notice if the network goes down or the remote host
636 dies. This is important in scripts, and many users want it too.
637
638 To disable TCP keepalive messages, the value should be set to
639 ``no''.
640
641 Tunnel Request tun(4) device forwarding between the client and the
642 server. The argument must be ``yes'', ``point-to-point'' (layer
643 3), ``ethernet'' (layer 2), or ``no''. Specifying ``yes''
644 requests the default tunnel mode, which is ``point-to-point''.
645 The default is ``no''.
646
647 TunnelDevice
648 Specifies the tun(4) devices to open on the client (local_tun)
649 and the server (remote_tun).
650
651 The argument must be local_tun[:remote_tun]. The devices may be
652 specified by numerical ID or the keyword ``any'', which uses the
653 next available tunnel device. If remote_tun is not specified, it
654 defaults to ``any''. The default is ``any:any''.
655
656 UsePrivilegedPort
657 Specifies whether to use a privileged port for outgoing
658 connections. The argument must be ``yes'' or ``no''. The
659 default is ``no''. If set to ``yes'', ssh(1) must be setuid
660 root. Note that this option must be set to ``yes'' for
661 RhostsRSAAuthentication with older servers.
662
663 User Specifies the user to log in as. This can be useful when a
664 different user name is used on different machines. This saves
665 the trouble of having to remember to give the user name on the
666 command line.
667
668 UserKnownHostsFile
669 Specifies a file to use for the user host key database instead of
670 ~/.ssh/known_hosts.
671
672 VerifyHostKeyDNS
673 Specifies whether to verify the remote key using DNS and SSHFP
674 resource records. If this option is set to ``yes'', the client
675 will implicitly trust keys that match a secure fingerprint from
676 DNS. Insecure fingerprints will be handled as if this option was
677 set to ``ask''. If this option is set to ``ask'', information on
678 fingerprint match will be displayed, but the user will still need
679 to confirm new host keys according to the StrictHostKeyChecking
680 option. The argument must be ``yes'', ``no'', or ``ask''. The
681 default is ``no''. Note that this option applies to protocol
682 version 2 only.
683
684 See also VERIFYING HOST KEYS in ssh(1).
685
686 VisualHostKey
687 If this flag is set to ``yes'', an ASCII art representation of
688 the remote host key fingerprint is printed in addition to the hex
689 fingerprint string at login and for unknown host keys. If this
690 flag is set to ``no'', no fingerprint strings are printed at
691 login and only the hex fingerprint string will be printed for
692 unknown host keys. The default is ``no''.
693
694 XAuthLocation
695 Specifies the full pathname of the xauth(1) program. The default
696 is /usr/X11R6/bin/xauth.
697
698PATTERNS
699 A pattern consists of zero or more non-whitespace characters, `*' (a
700 wildcard that matches zero or more characters), or `?' (a wildcard that
701 matches exactly one character). For example, to specify a set of
702 declarations for any host in the ``.co.uk'' set of domains, the following
703 pattern could be used:
704
705 Host *.co.uk
706
707 The following pattern would match any host in the 192.168.0.[0-9] network
708 range:
709
710 Host 192.168.0.?
711
712 A pattern-list is a comma-separated list of patterns. Patterns within
713 pattern-lists may be negated by preceding them with an exclamation mark
714 (`!'). For example, to allow a key to be used from anywhere within an
715 organisation except from the ``dialup'' pool, the following entry (in
716 authorized_keys) could be used:
717
718 from="!*.dialup.example.com,*.example.com"
719
720FILES
721 ~/.ssh/config
722 This is the per-user configuration file. The format of this file
723 is described above. This file is used by the SSH client.
724 Because of the potential for abuse, this file must have strict
725 permissions: read/write for the user, and not accessible by
726 others.
727
728 /etc/ssh/ssh_config
729 Systemwide configuration file. This file provides defaults for
730 those values that are not specified in the user's configuration
731 file, and for those users who do not have a configuration file.
732 This file must be world-readable.
733
734SEE ALSO
735 ssh(1)
736
737AUTHORS
738 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
739 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
740 de Raadt and Dug Song removed many bugs, re-added newer features and
741 created OpenSSH. Markus Friedl contributed the support for SSH protocol
742 versions 1.5 and 2.0.
743
744OpenBSD 4.9 December 8, 2010 OpenBSD 4.9
diff --git a/sshd.0 b/sshd.0
new file mode 100644
index 000000000..873584d7d
--- /dev/null
+++ b/sshd.0
@@ -0,0 +1,634 @@
1SSHD(8) OpenBSD System Manager's Manual SSHD(8)
2
3NAME
4 sshd - OpenSSH SSH daemon
5
6SYNOPSIS
7 sshd [-46DdeiqTt] [-b bits] [-C connection_spec]
8 [-c host_certificate_file] [-f config_file] [-g login_grace_time]
9 [-h host_key_file] [-k key_gen_time] [-o option] [-p port] [-u len]
10
11DESCRIPTION
12 sshd (OpenSSH Daemon) is the daemon program for ssh(1). Together these
13 programs replace rlogin(1) and rsh(1), and provide secure encrypted
14 communications between two untrusted hosts over an insecure network.
15
16 sshd listens for connections from clients. It is normally started at
17 boot from /etc/rc. It forks a new daemon for each incoming connection.
18 The forked daemons handle key exchange, encryption, authentication,
19 command execution, and data exchange.
20
21 sshd can be configured using command-line options or a configuration file
22 (by default sshd_config(5)); command-line options override values
23 specified in the configuration file. sshd rereads its configuration file
24 when it receives a hangup signal, SIGHUP, by executing itself with the
25 name and options it was started with, e.g. /usr/sbin/sshd.
26
27 The options are as follows:
28
29 -4 Forces sshd to use IPv4 addresses only.
30
31 -6 Forces sshd to use IPv6 addresses only.
32
33 -b bits
34 Specifies the number of bits in the ephemeral protocol version 1
35 server key (default 1024).
36
37 -C connection_spec
38 Specify the connection parameters to use for the -T extended test
39 mode. If provided, any Match directives in the configuration
40 file that would apply to the specified user, host, and address
41 will be set before the configuration is written to standard
42 output. The connection parameters are supplied as keyword=value
43 pairs. The keywords are ``user'', ``host'', and ``addr''. All
44 are required and may be supplied in any order, either with
45 multiple -C options or as a comma-separated list.
46
47 -c host_certificate_file
48 Specifies a path to a certificate file to identify sshd during
49 key exchange. The certificate file must match a host key file
50 specified using the -h option or the HostKey configuration
51 directive.
52
53 -D When this option is specified, sshd will not detach and does not
54 become a daemon. This allows easy monitoring of sshd.
55
56 -d Debug mode. The server sends verbose debug output to standard
57 error, and does not put itself in the background. The server
58 also will not fork and will only process one connection. This
59 option is only intended for debugging for the server. Multiple
60 -d options increase the debugging level. Maximum is 3.
61
62 -e When this option is specified, sshd will send the output to the
63 standard error instead of the system log.
64
65 -f config_file
66 Specifies the name of the configuration file. The default is
67 /etc/ssh/sshd_config. sshd refuses to start if there is no
68 configuration file.
69
70 -g login_grace_time
71 Gives the grace time for clients to authenticate themselves
72 (default 120 seconds). If the client fails to authenticate the
73 user within this many seconds, the server disconnects and exits.
74 A value of zero indicates no limit.
75
76 -h host_key_file
77 Specifies a file from which a host key is read. This option must
78 be given if sshd is not run as root (as the normal host key files
79 are normally not readable by anyone but root). The default is
80 /etc/ssh/ssh_host_key for protocol version 1, and
81 /etc/ssh/ssh_host_dsa_key, /etc/ssh/ssh_host_ecdsa_key and
82 /etc/ssh/ssh_host_rsa_key for protocol version 2. It is possible
83 to have multiple host key files for the different protocol
84 versions and host key algorithms.
85
86 -i Specifies that sshd is being run from inetd(8). sshd is normally
87 not run from inetd because it needs to generate the server key
88 before it can respond to the client, and this may take tens of
89 seconds. Clients would have to wait too long if the key was
90 regenerated every time. However, with small key sizes (e.g. 512)
91 using sshd from inetd may be feasible.
92
93 -k key_gen_time
94 Specifies how often the ephemeral protocol version 1 server key
95 is regenerated (default 3600 seconds, or one hour). The
96 motivation for regenerating the key fairly often is that the key
97 is not stored anywhere, and after about an hour it becomes
98 impossible to recover the key for decrypting intercepted
99 communications even if the machine is cracked into or physically
100 seized. A value of zero indicates that the key will never be
101 regenerated.
102
103 -o option
104 Can be used to give options in the format used in the
105 configuration file. This is useful for specifying options for
106 which there is no separate command-line flag. For full details
107 of the options, and their values, see sshd_config(5).
108
109 -p port
110 Specifies the port on which the server listens for connections
111 (default 22). Multiple port options are permitted. Ports
112 specified in the configuration file with the Port option are
113 ignored when a command-line port is specified. Ports specified
114 using the ListenAddress option override command-line ports.
115
116 -q Quiet mode. Nothing is sent to the system log. Normally the
117 beginning, authentication, and termination of each connection is
118 logged.
119
120 -T Extended test mode. Check the validity of the configuration
121 file, output the effective configuration to stdout and then exit.
122 Optionally, Match rules may be applied by specifying the
123 connection parameters using one or more -C options.
124
125 -t Test mode. Only check the validity of the configuration file and
126 sanity of the keys. This is useful for updating sshd reliably as
127 configuration options may change.
128
129 -u len This option is used to specify the size of the field in the utmp
130 structure that holds the remote host name. If the resolved host
131 name is longer than len, the dotted decimal value will be used
132 instead. This allows hosts with very long host names that
133 overflow this field to still be uniquely identified. Specifying
134 -u0 indicates that only dotted decimal addresses should be put
135 into the utmp file. -u0 may also be used to prevent sshd from
136 making DNS requests unless the authentication mechanism or
137 configuration requires it. Authentication mechanisms that may
138 require DNS include RhostsRSAAuthentication,
139 HostbasedAuthentication, and using a from="pattern-list" option
140 in a key file. Configuration options that require DNS include
141 using a USER@HOST pattern in AllowUsers or DenyUsers.
142
143AUTHENTICATION
144 The OpenSSH SSH daemon supports SSH protocols 1 and 2. The default is to
145 use protocol 2 only, though this can be changed via the Protocol option
146 in sshd_config(5). Protocol 2 supports DSA, ECDSA and RSA keys; protocol
147 1 only supports RSA keys. For both protocols, each host has a host-
148 specific key, normally 2048 bits, used to identify the host.
149
150 Forward security for protocol 1 is provided through an additional server
151 key, normally 768 bits, generated when the server starts. This key is
152 normally regenerated every hour if it has been used, and is never stored
153 on disk. Whenever a client connects, the daemon responds with its public
154 host and server keys. The client compares the RSA host key against its
155 own database to verify that it has not changed. The client then
156 generates a 256-bit random number. It encrypts this random number using
157 both the host key and the server key, and sends the encrypted number to
158 the server. Both sides then use this random number as a session key
159 which is used to encrypt all further communications in the session. The
160 rest of the session is encrypted using a conventional cipher, currently
161 Blowfish or 3DES, with 3DES being used by default. The client selects
162 the encryption algorithm to use from those offered by the server.
163
164 For protocol 2, forward security is provided through a Diffie-Hellman key
165 agreement. This key agreement results in a shared session key. The rest
166 of the session is encrypted using a symmetric cipher, currently 128-bit
167 AES, Blowfish, 3DES, CAST128, Arcfour, 192-bit AES, or 256-bit AES. The
168 client selects the encryption algorithm to use from those offered by the
169 server. Additionally, session integrity is provided through a
170 cryptographic message authentication code (hmac-md5, hmac-sha1, umac-64
171 or hmac-ripemd160).
172
173 Finally, the server and the client enter an authentication dialog. The
174 client tries to authenticate itself using host-based authentication,
175 public key authentication, challenge-response authentication, or password
176 authentication.
177
178 Regardless of the authentication type, the account is checked to ensure
179 that it is accessible. An account is not accessible if it is locked,
180 listed in DenyUsers or its group is listed in DenyGroups . The
181 definition of a locked account is system dependant. Some platforms have
182 their own account database (eg AIX) and some modify the passwd field (
183 `*LK*' on Solaris and UnixWare, `*' on HP-UX, containing `Nologin' on
184 Tru64, a leading `*LOCKED*' on FreeBSD and a leading `!' on most
185 Linuxes). If there is a requirement to disable password authentication
186 for the account while allowing still public-key, then the passwd field
187 should be set to something other than these values (eg `NP' or `*NP*' ).
188
189 If the client successfully authenticates itself, a dialog for preparing
190 the session is entered. At this time the client may request things like
191 allocating a pseudo-tty, forwarding X11 connections, forwarding TCP
192 connections, or forwarding the authentication agent connection over the
193 secure channel.
194
195 After this, the client either requests a shell or execution of a command.
196 The sides then enter session mode. In this mode, either side may send
197 data at any time, and such data is forwarded to/from the shell or command
198 on the server side, and the user terminal in the client side.
199
200 When the user program terminates and all forwarded X11 and other
201 connections have been closed, the server sends command exit status to the
202 client, and both sides exit.
203
204LOGIN PROCESS
205 When a user successfully logs in, sshd does the following:
206
207 1. If the login is on a tty, and no command has been specified,
208 prints last login time and /etc/motd (unless prevented in the
209 configuration file or by ~/.hushlogin; see the FILES section).
210
211 2. If the login is on a tty, records login time.
212
213 3. Checks /etc/nologin; if it exists, prints contents and quits
214 (unless root).
215
216 4. Changes to run with normal user privileges.
217
218 5. Sets up basic environment.
219
220 6. Reads the file ~/.ssh/environment, if it exists, and users are
221 allowed to change their environment. See the
222 PermitUserEnvironment option in sshd_config(5).
223
224 7. Changes to user's home directory.
225
226 8. If ~/.ssh/rc exists, runs it; else if /etc/ssh/sshrc exists,
227 runs it; otherwise runs xauth. The ``rc'' files are given the
228 X11 authentication protocol and cookie in standard input. See
229 SSHRC, below.
230
231 9. Runs user's shell or command.
232
233SSHRC
234 If the file ~/.ssh/rc exists, sh(1) runs it after reading the environment
235 files but before starting the user's shell or command. It must not
236 produce any output on stdout; stderr must be used instead. If X11
237 forwarding is in use, it will receive the "proto cookie" pair in its
238 standard input (and DISPLAY in its environment). The script must call
239 xauth(1) because sshd will not run xauth automatically to add X11
240 cookies.
241
242 The primary purpose of this file is to run any initialization routines
243 which may be needed before the user's home directory becomes accessible;
244 AFS is a particular example of such an environment.
245
246 This file will probably contain some initialization code followed by
247 something similar to:
248
249 if read proto cookie && [ -n "$DISPLAY" ]; then
250 if [ `echo $DISPLAY | cut -c1-10` = 'localhost:' ]; then
251 # X11UseLocalhost=yes
252 echo add unix:`echo $DISPLAY |
253 cut -c11-` $proto $cookie
254 else
255 # X11UseLocalhost=no
256 echo add $DISPLAY $proto $cookie
257 fi | xauth -q -
258 fi
259
260 If this file does not exist, /etc/ssh/sshrc is run, and if that does not
261 exist either, xauth is used to add the cookie.
262
263AUTHORIZED_KEYS FILE FORMAT
264 AuthorizedKeysFile specifies the file containing public keys for public
265 key authentication; if none is specified, the default is
266 ~/.ssh/authorized_keys. Each line of the file contains one key (empty
267 lines and lines starting with a `#' are ignored as comments). Protocol 1
268 public keys consist of the following space-separated fields: options,
269 bits, exponent, modulus, comment. Protocol 2 public key consist of:
270 options, keytype, base64-encoded key, comment. The options field is
271 optional; its presence is determined by whether the line starts with a
272 number or not (the options field never starts with a number). The bits,
273 exponent, modulus, and comment fields give the RSA key for protocol
274 version 1; the comment field is not used for anything (but may be
275 convenient for the user to identify the key). For protocol version 2 the
276 keytype is ``ecdsa-sha2-nistp256'', ``ecdsa-sha2-nistp384'',
277 ``ecdsa-sha2-nistp521'', ``ssh-dss'' or ``ssh-rsa''.
278
279 Note that lines in this file are usually several hundred bytes long
280 (because of the size of the public key encoding) up to a limit of 8
281 kilobytes, which permits DSA keys up to 8 kilobits and RSA keys up to 16
282 kilobits. You don't want to type them in; instead, copy the
283 identity.pub, id_dsa.pub, id_ecdsa.pub, or the id_rsa.pub file and edit
284 it.
285
286 sshd enforces a minimum RSA key modulus size for protocol 1 and protocol
287 2 keys of 768 bits.
288
289 The options (if present) consist of comma-separated option
290 specifications. No spaces are permitted, except within double quotes.
291 The following option specifications are supported (note that option
292 keywords are case-insensitive):
293
294 cert-authority
295 Specifies that the listed key is a certification authority (CA)
296 that is trusted to validate signed certificates for user
297 authentication.
298
299 Certificates may encode access restrictions similar to these key
300 options. If both certificate restrictions and key options are
301 present, the most restrictive union of the two is applied.
302
303 command="command"
304 Specifies that the command is executed whenever this key is used
305 for authentication. The command supplied by the user (if any) is
306 ignored. The command is run on a pty if the client requests a
307 pty; otherwise it is run without a tty. If an 8-bit clean
308 channel is required, one must not request a pty or should specify
309 no-pty. A quote may be included in the command by quoting it
310 with a backslash. This option might be useful to restrict
311 certain public keys to perform just a specific operation. An
312 example might be a key that permits remote backups but nothing
313 else. Note that the client may specify TCP and/or X11 forwarding
314 unless they are explicitly prohibited. The command originally
315 supplied by the client is available in the SSH_ORIGINAL_COMMAND
316 environment variable. Note that this option applies to shell,
317 command or subsystem execution. Also note that this command may
318 be superseded by either a sshd_config(5) ForceCommand directive
319 or a command embedded in a certificate.
320
321 environment="NAME=value"
322 Specifies that the string is to be added to the environment when
323 logging in using this key. Environment variables set this way
324 override other default environment values. Multiple options of
325 this type are permitted. Environment processing is disabled by
326 default and is controlled via the PermitUserEnvironment option.
327 This option is automatically disabled if UseLogin is enabled.
328
329 from="pattern-list"
330 Specifies that in addition to public key authentication, either
331 the canonical name of the remote host or its IP address must be
332 present in the comma-separated list of patterns. See PATTERNS in
333 ssh_config(5) for more information on patterns.
334
335 In addition to the wildcard matching that may be applied to
336 hostnames or addresses, a from stanza may match IP addresses
337 using CIDR address/masklen notation.
338
339 The purpose of this option is to optionally increase security:
340 public key authentication by itself does not trust the network or
341 name servers or anything (but the key); however, if somebody
342 somehow steals the key, the key permits an intruder to log in
343 from anywhere in the world. This additional option makes using a
344 stolen key more difficult (name servers and/or routers would have
345 to be compromised in addition to just the key).
346
347 no-agent-forwarding
348 Forbids authentication agent forwarding when this key is used for
349 authentication.
350
351 no-port-forwarding
352 Forbids TCP forwarding when this key is used for authentication.
353 Any port forward requests by the client will return an error.
354 This might be used, e.g. in connection with the command option.
355
356 no-pty Prevents tty allocation (a request to allocate a pty will fail).
357
358 no-user-rc
359 Disables execution of ~/.ssh/rc.
360
361 no-X11-forwarding
362 Forbids X11 forwarding when this key is used for authentication.
363 Any X11 forward requests by the client will return an error.
364
365 permitopen="host:port"
366 Limit local ``ssh -L'' port forwarding such that it may only
367 connect to the specified host and port. IPv6 addresses can be
368 specified by enclosing the address in square brackets. Multiple
369 permitopen options may be applied separated by commas. No
370 pattern matching is performed on the specified hostnames, they
371 must be literal domains or addresses.
372
373 principals="principals"
374 On a cert-authority line, specifies allowed principals for
375 certificate authentication as a comma-separated list. At least
376 one name from the list must appear in the certificate's list of
377 principals for the certificate to be accepted. This option is
378 ignored for keys that are not marked as trusted certificate
379 signers using the cert-authority option.
380
381 tunnel="n"
382 Force a tun(4) device on the server. Without this option, the
383 next available device will be used if the client requests a
384 tunnel.
385
386 An example authorized_keys file:
387
388 # Comments allowed at start of line
389 ssh-rsa AAAAB3Nza...LiPk== user@example.net
390 from="*.sales.example.net,!pc.sales.example.net" ssh-rsa
391 AAAAB2...19Q== john@example.net
392 command="dump /home",no-pty,no-port-forwarding ssh-dss
393 AAAAC3...51R== example.net
394 permitopen="192.0.2.1:80",permitopen="192.0.2.2:25" ssh-dss
395 AAAAB5...21S==
396 tunnel="0",command="sh /etc/netstart tun0" ssh-rsa AAAA...==
397 jane@example.net
398
399SSH_KNOWN_HOSTS FILE FORMAT
400 The /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts files contain host
401 public keys for all known hosts. The global file should be prepared by
402 the administrator (optional), and the per-user file is maintained
403 automatically: whenever the user connects from an unknown host, its key
404 is added to the per-user file.
405
406 Each line in these files contains the following fields: markers
407 (optional), hostnames, bits, exponent, modulus, comment. The fields are
408 separated by spaces.
409
410 The marker is optional, but if it is present then it must be one of
411 ``@cert-authority'', to indicate that the line contains a certification
412 authority (CA) key, or ``@revoked'', to indicate that the key contained
413 on the line is revoked and must not ever be accepted. Only one marker
414 should be used on a key line.
415
416 Hostnames is a comma-separated list of patterns (`*' and `?' act as
417 wildcards); each pattern in turn is matched against the canonical host
418 name (when authenticating a client) or against the user-supplied name
419 (when authenticating a server). A pattern may also be preceded by `!' to
420 indicate negation: if the host name matches a negated pattern, it is not
421 accepted (by that line) even if it matched another pattern on the line.
422 A hostname or address may optionally be enclosed within `[' and `]'
423 brackets then followed by `:' and a non-standard port number.
424
425 Alternately, hostnames may be stored in a hashed form which hides host
426 names and addresses should the file's contents be disclosed. Hashed
427 hostnames start with a `|' character. Only one hashed hostname may
428 appear on a single line and none of the above negation or wildcard
429 operators may be applied.
430
431 Bits, exponent, and modulus are taken directly from the RSA host key;
432 they can be obtained, for example, from /etc/ssh/ssh_host_key.pub. The
433 optional comment field continues to the end of the line, and is not used.
434
435 Lines starting with `#' and empty lines are ignored as comments.
436
437 When performing host authentication, authentication is accepted if any
438 matching line has the proper key; either one that matches exactly or, if
439 the server has presented a certificate for authentication, the key of the
440 certification authority that signed the certificate. For a key to be
441 trusted as a certification authority, it must use the ``@cert-authority''
442 marker described above.
443
444 The known hosts file also provides a facility to mark keys as revoked,
445 for example when it is known that the associated private key has been
446 stolen. Revoked keys are specified by including the ``@revoked'' marker
447 at the beginning of the key line, and are never accepted for
448 authentication or as certification authorities, but instead will produce
449 a warning from ssh(1) when they are encountered.
450
451 It is permissible (but not recommended) to have several lines or
452 different host keys for the same names. This will inevitably happen when
453 short forms of host names from different domains are put in the file. It
454 is possible that the files contain conflicting information;
455 authentication is accepted if valid information can be found from either
456 file.
457
458 Note that the lines in these files are typically hundreds of characters
459 long, and you definitely don't want to type in the host keys by hand.
460 Rather, generate them by a script, ssh-keyscan(1) or by taking
461 /etc/ssh/ssh_host_key.pub and adding the host names at the front.
462 ssh-keygen(1) also offers some basic automated editing for
463 ~/.ssh/known_hosts including removing hosts matching a host name and
464 converting all host names to their hashed representations.
465
466 An example ssh_known_hosts file:
467
468 # Comments allowed at start of line
469 closenet,...,192.0.2.53 1024 37 159...93 closenet.example.net
470 cvs.example.net,192.0.2.10 ssh-rsa AAAA1234.....=
471 # A hashed hostname
472 |1|JfKTdBh7rNbXkVAQCRp4OQoPfmI=|USECr3SWf1JUPsms5AqfD5QfxkM= ssh-rsa
473 AAAA1234.....=
474 # A revoked key
475 @revoked * ssh-rsa AAAAB5W...
476 # A CA key, accepted for any host in *.mydomain.com or *.mydomain.org
477 @cert-authority *.mydomain.org,*.mydomain.com ssh-rsa AAAAB5W...
478
479FILES
480 ~/.hushlogin
481 This file is used to suppress printing the last login time and
482 /etc/motd, if PrintLastLog and PrintMotd, respectively, are
483 enabled. It does not suppress printing of the banner specified
484 by Banner.
485
486 ~/.rhosts
487 This file is used for host-based authentication (see ssh(1) for
488 more information). On some machines this file may need to be
489 world-readable if the user's home directory is on an NFS
490 partition, because sshd reads it as root. Additionally, this
491 file must be owned by the user, and must not have write
492 permissions for anyone else. The recommended permission for most
493 machines is read/write for the user, and not accessible by
494 others.
495
496 ~/.shosts
497 This file is used in exactly the same way as .rhosts, but allows
498 host-based authentication without permitting login with
499 rlogin/rsh.
500
501 ~/.ssh/
502 This directory is the default location for all user-specific
503 configuration and authentication information. There is no
504 general requirement to keep the entire contents of this directory
505 secret, but the recommended permissions are read/write/execute
506 for the user, and not accessible by others.
507
508 ~/.ssh/authorized_keys
509 Lists the public keys (DSA/ECDSA/RSA) that can be used for
510 logging in as this user. The format of this file is described
511 above. The content of the file is not highly sensitive, but the
512 recommended permissions are read/write for the user, and not
513 accessible by others.
514
515 If this file, the ~/.ssh directory, or the user's home directory
516 are writable by other users, then the file could be modified or
517 replaced by unauthorized users. In this case, sshd will not
518 allow it to be used unless the StrictModes option has been set to
519 ``no''.
520
521 ~/.ssh/environment
522 This file is read into the environment at login (if it exists).
523 It can only contain empty lines, comment lines (that start with
524 `#'), and assignment lines of the form name=value. The file
525 should be writable only by the user; it need not be readable by
526 anyone else. Environment processing is disabled by default and
527 is controlled via the PermitUserEnvironment option.
528
529 ~/.ssh/known_hosts
530 Contains a list of host keys for all hosts the user has logged
531 into that are not already in the systemwide list of known host
532 keys. The format of this file is described above. This file
533 should be writable only by root/the owner and can, but need not
534 be, world-readable.
535
536 ~/.ssh/rc
537 Contains initialization routines to be run before the user's home
538 directory becomes accessible. This file should be writable only
539 by the user, and need not be readable by anyone else.
540
541 /etc/hosts.allow
542 /etc/hosts.deny
543 Access controls that should be enforced by tcp-wrappers are
544 defined here. Further details are described in hosts_access(5).
545
546 /etc/hosts.equiv
547 This file is for host-based authentication (see ssh(1)). It
548 should only be writable by root.
549
550 /etc/moduli
551 Contains Diffie-Hellman groups used for the "Diffie-Hellman Group
552 Exchange". The file format is described in moduli(5).
553
554 /etc/motd
555 See motd(5).
556
557 /etc/nologin
558 If this file exists, sshd refuses to let anyone except root log
559 in. The contents of the file are displayed to anyone trying to
560 log in, and non-root connections are refused. The file should be
561 world-readable.
562
563 /etc/shosts.equiv
564 This file is used in exactly the same way as hosts.equiv, but
565 allows host-based authentication without permitting login with
566 rlogin/rsh.
567
568 /etc/ssh/ssh_host_key
569 /etc/ssh/ssh_host_dsa_key
570 /etc/ssh/ssh_host_ecdsa_key
571 /etc/ssh/ssh_host_rsa_key
572 These three files contain the private parts of the host keys.
573 These files should only be owned by root, readable only by root,
574 and not accessible to others. Note that sshd does not start if
575 these files are group/world-accessible.
576
577 /etc/ssh/ssh_host_key.pub
578 /etc/ssh/ssh_host_dsa_key.pub
579 /etc/ssh/ssh_host_ecdsa_key.pub
580 /etc/ssh/ssh_host_rsa_key.pub
581 These three files contain the public parts of the host keys.
582 These files should be world-readable but writable only by root.
583 Their contents should match the respective private parts. These
584 files are not really used for anything; they are provided for the
585 convenience of the user so their contents can be copied to known
586 hosts files. These files are created using ssh-keygen(1).
587
588 /etc/ssh/ssh_known_hosts
589 Systemwide list of known host keys. This file should be prepared
590 by the system administrator to contain the public host keys of
591 all machines in the organization. The format of this file is
592 described above. This file should be writable only by root/the
593 owner and should be world-readable.
594
595 /etc/ssh/sshd_config
596 Contains configuration data for sshd. The file format and
597 configuration options are described in sshd_config(5).
598
599 /etc/ssh/sshrc
600 Similar to ~/.ssh/rc, it can be used to specify machine-specific
601 login-time initializations globally. This file should be
602 writable only by root, and should be world-readable.
603
604 /var/empty
605 chroot(2) directory used by sshd during privilege separation in
606 the pre-authentication phase. The directory should not contain
607 any files and must be owned by root and not group or world-
608 writable.
609
610 /var/run/sshd.pid
611 Contains the process ID of the sshd listening for connections (if
612 there are several daemons running concurrently for different
613 ports, this contains the process ID of the one started last).
614 The content of this file is not sensitive; it can be world-
615 readable.
616
617SEE ALSO
618 scp(1), sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1),
619 ssh-keyscan(1), chroot(2), hosts_access(5), login.conf(5), moduli(5),
620 sshd_config(5), inetd(8), sftp-server(8)
621
622AUTHORS
623 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
624 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
625 de Raadt and Dug Song removed many bugs, re-added newer features and
626 created OpenSSH. Markus Friedl contributed the support for SSH protocol
627 versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support
628 for privilege separation.
629
630CAVEATS
631 System security is not improved unless rshd, rlogind, and rexecd are
632 disabled (thus completely disabling rlogin and rsh into the machine).
633
634OpenBSD 4.9 October 28, 2010 OpenBSD 4.9
diff --git a/sshd_config.0 b/sshd_config.0
new file mode 100644
index 000000000..ab0d79be6
--- /dev/null
+++ b/sshd_config.0
@@ -0,0 +1,713 @@
1SSHD_CONFIG(5) OpenBSD Programmer's Manual SSHD_CONFIG(5)
2
3NAME
4 sshd_config - OpenSSH SSH daemon configuration file
5
6SYNOPSIS
7 /etc/ssh/sshd_config
8
9DESCRIPTION
10 sshd(8) reads configuration data from /etc/ssh/sshd_config (or the file
11 specified with -f on the command line). The file contains keyword-
12 argument pairs, one per line. Lines starting with `#' and empty lines
13 are interpreted as comments. Arguments may optionally be enclosed in
14 double quotes (") in order to represent arguments containing spaces.
15
16 The possible keywords and their meanings are as follows (note that
17 keywords are case-insensitive and arguments are case-sensitive):
18
19 AcceptEnv
20 Specifies what environment variables sent by the client will be
21 copied into the session's environ(7). See SendEnv in
22 ssh_config(5) for how to configure the client. Note that
23 environment passing is only supported for protocol 2. Variables
24 are specified by name, which may contain the wildcard characters
25 `*' and `?'. Multiple environment variables may be separated by
26 whitespace or spread across multiple AcceptEnv directives. Be
27 warned that some environment variables could be used to bypass
28 restricted user environments. For this reason, care should be
29 taken in the use of this directive. The default is not to accept
30 any environment variables.
31
32 AddressFamily
33 Specifies which address family should be used by sshd(8). Valid
34 arguments are ``any'', ``inet'' (use IPv4 only), or ``inet6''
35 (use IPv6 only). The default is ``any''.
36
37 AllowAgentForwarding
38 Specifies whether ssh-agent(1) forwarding is permitted. The
39 default is ``yes''. Note that disabling agent forwarding does
40 not improve security unless users are also denied shell access,
41 as they can always install their own forwarders.
42
43 AllowGroups
44 This keyword can be followed by a list of group name patterns,
45 separated by spaces. If specified, login is allowed only for
46 users whose primary group or supplementary group list matches one
47 of the patterns. Only group names are valid; a numerical group
48 ID is not recognized. By default, login is allowed for all
49 groups. The allow/deny directives are processed in the following
50 order: DenyUsers, AllowUsers, DenyGroups, and finally
51 AllowGroups.
52
53 See PATTERNS in ssh_config(5) for more information on patterns.
54
55 AllowTcpForwarding
56 Specifies whether TCP forwarding is permitted. The default is
57 ``yes''. Note that disabling TCP forwarding does not improve
58 security unless users are also denied shell access, as they can
59 always install their own forwarders.
60
61 AllowUsers
62 This keyword can be followed by a list of user name patterns,
63 separated by spaces. If specified, login is allowed only for
64 user names that match one of the patterns. Only user names are
65 valid; a numerical user ID is not recognized. By default, login
66 is allowed for all users. If the pattern takes the form
67 USER@HOST then USER and HOST are separately checked, restricting
68 logins to particular users from particular hosts. The allow/deny
69 directives are processed in the following order: DenyUsers,
70 AllowUsers, DenyGroups, and finally AllowGroups.
71
72 See PATTERNS in ssh_config(5) for more information on patterns.
73
74 AuthorizedKeysFile
75 Specifies the file that contains the public keys that can be used
76 for user authentication. The format is described in the
77 AUTHORIZED_KEYS FILE FORMAT section of sshd(8).
78 AuthorizedKeysFile may contain tokens of the form %T which are
79 substituted during connection setup. The following tokens are
80 defined: %% is replaced by a literal '%', %h is replaced by the
81 home directory of the user being authenticated, and %u is
82 replaced by the username of that user. After expansion,
83 AuthorizedKeysFile is taken to be an absolute path or one
84 relative to the user's home directory. The default is
85 ``.ssh/authorized_keys''.
86
87 AuthorizedPrincipalsFile
88 Specifies a file that lists principal names that are accepted for
89 certificate authentication. When using certificates signed by a
90 key listed in TrustedUserCAKeys, this file lists names, one of
91 which must appear in the certificate for it to be accepted for
92 authentication. Names are listed one per line preceded by key
93 options (as described in AUTHORIZED_KEYS FILE FORMAT in sshd(8)).
94 Empty lines and comments starting with `#' are ignored.
95
96 AuthorizedPrincipalsFile may contain tokens of the form %T which
97 are substituted during connection setup. The following tokens
98 are defined: %% is replaced by a literal '%', %h is replaced by
99 the home directory of the user being authenticated, and %u is
100 replaced by the username of that user. After expansion,
101 AuthorizedPrincipalsFile is taken to be an absolute path or one
102 relative to the user's home directory.
103
104 The default is not to use a principals file - in this case, the
105 username of the user must appear in a certificate's principals
106 list for it to be accepted. Note that AuthorizedPrincipalsFile
107 is only used when authentication proceeds using a CA listed in
108 TrustedUserCAKeys and is not consulted for certification
109 authorities trusted via ~/.ssh/authorized_keys, though the
110 principals= key option offers a similar facility (see sshd(8) for
111 details).
112
113 Banner The contents of the specified file are sent to the remote user
114 before authentication is allowed. If the argument is ``none''
115 then no banner is displayed. This option is only available for
116 protocol version 2. By default, no banner is displayed.
117
118 ChallengeResponseAuthentication
119 Specifies whether challenge-response authentication is allowed
120 (e.g. via PAM or though authentication styles supported in
121 login.conf(5)) The default is ``yes''.
122
123 ChrootDirectory
124 Specifies the pathname of a directory to chroot(2) to after
125 authentication. All components of the pathname must be root-
126 owned directories that are not writable by any other user or
127 group. After the chroot, sshd(8) changes the working directory
128 to the user's home directory.
129
130 The pathname may contain the following tokens that are expanded
131 at runtime once the connecting user has been authenticated: %% is
132 replaced by a literal '%', %h is replaced by the home directory
133 of the user being authenticated, and %u is replaced by the
134 username of that user.
135
136 The ChrootDirectory must contain the necessary files and
137 directories to support the user's session. For an interactive
138 session this requires at least a shell, typically sh(1), and
139 basic /dev nodes such as null(4), zero(4), stdin(4), stdout(4),
140 stderr(4), arandom(4) and tty(4) devices. For file transfer
141 sessions using ``sftp'', no additional configuration of the
142 environment is necessary if the in-process sftp server is used,
143 though sessions which use logging do require /dev/log inside the
144 chroot directory (see sftp-server(8) for details).
145
146 The default is not to chroot(2).
147
148 Ciphers
149 Specifies the ciphers allowed for protocol version 2. Multiple
150 ciphers must be comma-separated. The supported ciphers are
151 ``3des-cbc'', ``aes128-cbc'', ``aes192-cbc'', ``aes256-cbc'',
152 ``aes128-ctr'', ``aes192-ctr'', ``aes256-ctr'', ``arcfour128'',
153 ``arcfour256'', ``arcfour'', ``blowfish-cbc'', and
154 ``cast128-cbc''. The default is:
155
156 aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,
157 aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,
158 aes256-cbc,arcfour
159
160 ClientAliveCountMax
161 Sets the number of client alive messages (see below) which may be
162 sent without sshd(8) receiving any messages back from the client.
163 If this threshold is reached while client alive messages are
164 being sent, sshd will disconnect the client, terminating the
165 session. It is important to note that the use of client alive
166 messages is very different from TCPKeepAlive (below). The client
167 alive messages are sent through the encrypted channel and
168 therefore will not be spoofable. The TCP keepalive option
169 enabled by TCPKeepAlive is spoofable. The client alive mechanism
170 is valuable when the client or server depend on knowing when a
171 connection has become inactive.
172
173 The default value is 3. If ClientAliveInterval (see below) is
174 set to 15, and ClientAliveCountMax is left at the default,
175 unresponsive SSH clients will be disconnected after approximately
176 45 seconds. This option applies to protocol version 2 only.
177
178 ClientAliveInterval
179 Sets a timeout interval in seconds after which if no data has
180 been received from the client, sshd(8) will send a message
181 through the encrypted channel to request a response from the
182 client. The default is 0, indicating that these messages will
183 not be sent to the client. This option applies to protocol
184 version 2 only.
185
186 Compression
187 Specifies whether compression is allowed, or delayed until the
188 user has authenticated successfully. The argument must be
189 ``yes'', ``delayed'', or ``no''. The default is ``delayed''.
190
191 DenyGroups
192 This keyword can be followed by a list of group name patterns,
193 separated by spaces. Login is disallowed for users whose primary
194 group or supplementary group list matches one of the patterns.
195 Only group names are valid; a numerical group ID is not
196 recognized. By default, login is allowed for all groups. The
197 allow/deny directives are processed in the following order:
198 DenyUsers, AllowUsers, DenyGroups, and finally AllowGroups.
199
200 See PATTERNS in ssh_config(5) for more information on patterns.
201
202 DenyUsers
203 This keyword can be followed by a list of user name patterns,
204 separated by spaces. Login is disallowed for user names that
205 match one of the patterns. Only user names are valid; a
206 numerical user ID is not recognized. By default, login is
207 allowed for all users. If the pattern takes the form USER@HOST
208 then USER and HOST are separately checked, restricting logins to
209 particular users from particular hosts. The allow/deny
210 directives are processed in the following order: DenyUsers,
211 AllowUsers, DenyGroups, and finally AllowGroups.
212
213 See PATTERNS in ssh_config(5) for more information on patterns.
214
215 ForceCommand
216 Forces the execution of the command specified by ForceCommand,
217 ignoring any command supplied by the client and ~/.ssh/rc if
218 present. The command is invoked by using the user's login shell
219 with the -c option. This applies to shell, command, or subsystem
220 execution. It is most useful inside a Match block. The command
221 originally supplied by the client is available in the
222 SSH_ORIGINAL_COMMAND environment variable. Specifying a command
223 of ``internal-sftp'' will force the use of an in-process sftp
224 server that requires no support files when used with
225 ChrootDirectory.
226
227 GatewayPorts
228 Specifies whether remote hosts are allowed to connect to ports
229 forwarded for the client. By default, sshd(8) binds remote port
230 forwardings to the loopback address. This prevents other remote
231 hosts from connecting to forwarded ports. GatewayPorts can be
232 used to specify that sshd should allow remote port forwardings to
233 bind to non-loopback addresses, thus allowing other hosts to
234 connect. The argument may be ``no'' to force remote port
235 forwardings to be available to the local host only, ``yes'' to
236 force remote port forwardings to bind to the wildcard address, or
237 ``clientspecified'' to allow the client to select the address to
238 which the forwarding is bound. The default is ``no''.
239
240 GSSAPIAuthentication
241 Specifies whether user authentication based on GSSAPI is allowed.
242 The default is ``no''. Note that this option applies to protocol
243 version 2 only.
244
245 GSSAPICleanupCredentials
246 Specifies whether to automatically destroy the user's credentials
247 cache on logout. The default is ``yes''. Note that this option
248 applies to protocol version 2 only.
249
250 HostbasedAuthentication
251 Specifies whether rhosts or /etc/hosts.equiv authentication
252 together with successful public key client host authentication is
253 allowed (host-based authentication). This option is similar to
254 RhostsRSAAuthentication and applies to protocol version 2 only.
255 The default is ``no''.
256
257 HostbasedUsesNameFromPacketOnly
258 Specifies whether or not the server will attempt to perform a
259 reverse name lookup when matching the name in the ~/.shosts,
260 ~/.rhosts, and /etc/hosts.equiv files during
261 HostbasedAuthentication. A setting of ``yes'' means that sshd(8)
262 uses the name supplied by the client rather than attempting to
263 resolve the name from the TCP connection itself. The default is
264 ``no''.
265
266 HostCertificate
267 Specifies a file containing a public host certificate. The
268 certificate's public key must match a private host key already
269 specified by HostKey. The default behaviour of sshd(8) is not to
270 load any certificates.
271
272 HostKey
273 Specifies a file containing a private host key used by SSH. The
274 default is /etc/ssh/ssh_host_key for protocol version 1, and
275 /etc/ssh/ssh_host_dsa_key, /etc/ssh/ssh_host_ecdsa_key and
276 /etc/ssh/ssh_host_rsa_key for protocol version 2. Note that
277 sshd(8) will refuse to use a file if it is group/world-
278 accessible. It is possible to have multiple host key files.
279 ``rsa1'' keys are used for version 1 and ``dsa'', ``ecdsa'' or
280 ``rsa'' are used for version 2 of the SSH protocol.
281
282 IgnoreRhosts
283 Specifies that .rhosts and .shosts files will not be used in
284 RhostsRSAAuthentication or HostbasedAuthentication.
285
286 /etc/hosts.equiv and /etc/shosts.equiv are still used. The
287 default is ``yes''.
288
289 IgnoreUserKnownHosts
290 Specifies whether sshd(8) should ignore the user's
291 ~/.ssh/known_hosts during RhostsRSAAuthentication or
292 HostbasedAuthentication. The default is ``no''.
293
294 IPQoS Specifies the IPv4 type-of-service or DSCP class for the
295 connection. Accepted values are ``af11'', ``af12'', ``af13'',
296 ``af14'', ``af22'', ``af23'', ``af31'', ``af32'', ``af33'',
297 ``af41'', ``af42'', ``af43'', ``cs0'', ``cs1'', ``cs2'', ``cs3'',
298 ``cs4'', ``cs5'', ``cs6'', ``cs7'', ``ef'', ``lowdelay'',
299 ``throughput'', ``reliability'', or a numeric value. This option
300 may take one or two arguments, separated by whitespace. If one
301 argument is specified, it is used as the packet class
302 unconditionally. If two values are specified, the first is
303 automatically selected for interactive sessions and the second
304 for non-interactive sessions. The default is ``lowdelay'' for
305 interactive sessions and ``throughput'' for non-interactive
306 sessions.
307
308 KerberosAuthentication
309 Specifies whether the password provided by the user for
310 PasswordAuthentication will be validated through the Kerberos
311 KDC. To use this option, the server needs a Kerberos servtab
312 which allows the verification of the KDC's identity. The default
313 is ``no''.
314
315 KerberosGetAFSToken
316 If AFS is active and the user has a Kerberos 5 TGT, attempt to
317 acquire an AFS token before accessing the user's home directory.
318 The default is ``no''.
319
320 KerberosOrLocalPasswd
321 If password authentication through Kerberos fails then the
322 password will be validated via any additional local mechanism
323 such as /etc/passwd. The default is ``yes''.
324
325 KerberosTicketCleanup
326 Specifies whether to automatically destroy the user's ticket
327 cache file on logout. The default is ``yes''.
328
329 KexAlgorithms
330 Specifies the available KEX (Key Exchange) algorithms. Multiple
331 algorithms must be comma-separated. The default is
332 ``ecdh-sha2-nistp256'', ``ecdh-sha2-nistp384'',
333 ``ecdh-sha2-nistp521'', ``diffie-hellman-group-exchange-sha256'',
334 ``diffie-hellman-group-exchange-sha1'',
335 ``diffie-hellman-group14-sha1'', ``diffie-hellman-group1-sha1''.
336
337 KeyRegenerationInterval
338 In protocol version 1, the ephemeral server key is automatically
339 regenerated after this many seconds (if it has been used). The
340 purpose of regeneration is to prevent decrypting captured
341 sessions by later breaking into the machine and stealing the
342 keys. The key is never stored anywhere. If the value is 0, the
343 key is never regenerated. The default is 3600 (seconds).
344
345 ListenAddress
346 Specifies the local addresses sshd(8) should listen on. The
347 following forms may be used:
348
349 ListenAddress host|IPv4_addr|IPv6_addr
350 ListenAddress host|IPv4_addr:port
351 ListenAddress [host|IPv6_addr]:port
352
353 If port is not specified, sshd will listen on the address and all
354 prior Port options specified. The default is to listen on all
355 local addresses. Multiple ListenAddress options are permitted.
356 Additionally, any Port options must precede this option for non-
357 port qualified addresses.
358
359 LoginGraceTime
360 The server disconnects after this time if the user has not
361 successfully logged in. If the value is 0, there is no time
362 limit. The default is 120 seconds.
363
364 LogLevel
365 Gives the verbosity level that is used when logging messages from
366 sshd(8). The possible values are: QUIET, FATAL, ERROR, INFO,
367 VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. The default is INFO.
368 DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify
369 higher levels of debugging output. Logging with a DEBUG level
370 violates the privacy of users and is not recommended.
371
372 MACs Specifies the available MAC (message authentication code)
373 algorithms. The MAC algorithm is used in protocol version 2 for
374 data integrity protection. Multiple algorithms must be comma-
375 separated. The default is:
376
377 hmac-md5,hmac-sha1,umac-64@openssh.com,
378 hmac-ripemd160,hmac-sha1-96,hmac-md5-96
379
380 Match Introduces a conditional block. If all of the criteria on the
381 Match line are satisfied, the keywords on the following lines
382 override those set in the global section of the config file,
383 until either another Match line or the end of the file.
384
385 The arguments to Match are one or more criteria-pattern pairs.
386 The available criteria are User, Group, Host, and Address. The
387 match patterns may consist of single entries or comma-separated
388 lists and may use the wildcard and negation operators described
389 in the PATTERNS section of ssh_config(5).
390
391 The patterns in an Address criteria may additionally contain
392 addresses to match in CIDR address/masklen format, e.g.
393 ``192.0.2.0/24'' or ``3ffe:ffff::/32''. Note that the mask
394 length provided must be consistent with the address - it is an
395 error to specify a mask length that is too long for the address
396 or one with bits set in this host portion of the address. For
397 example, ``192.0.2.0/33'' and ``192.0.2.0/8'' respectively.
398
399 Only a subset of keywords may be used on the lines following a
400 Match keyword. Available keywords are AllowAgentForwarding,
401 AllowTcpForwarding, AuthorizedKeysFile, AuthorizedPrincipalsFile,
402 Banner, ChrootDirectory, ForceCommand, GatewayPorts,
403 GSSAPIAuthentication, HostbasedAuthentication,
404 HostbasedUsesNameFromPacketOnly, KbdInteractiveAuthentication,
405 KerberosAuthentication, MaxAuthTries, MaxSessions,
406 PasswordAuthentication, PermitEmptyPasswords, PermitOpen,
407 PermitRootLogin, PermitTunnel, PubkeyAuthentication,
408 RhostsRSAAuthentication, RSAAuthentication, X11DisplayOffset,
409 X11Forwarding and X11UseLocalHost.
410
411 MaxAuthTries
412 Specifies the maximum number of authentication attempts permitted
413 per connection. Once the number of failures reaches half this
414 value, additional failures are logged. The default is 6.
415
416 MaxSessions
417 Specifies the maximum number of open sessions permitted per
418 network connection. The default is 10.
419
420 MaxStartups
421 Specifies the maximum number of concurrent unauthenticated
422 connections to the SSH daemon. Additional connections will be
423 dropped until authentication succeeds or the LoginGraceTime
424 expires for a connection. The default is 10.
425
426 Alternatively, random early drop can be enabled by specifying the
427 three colon separated values ``start:rate:full'' (e.g.
428 "10:30:60"). sshd(8) will refuse connection attempts with a
429 probability of ``rate/100'' (30%) if there are currently
430 ``start'' (10) unauthenticated connections. The probability
431 increases linearly and all connection attempts are refused if the
432 number of unauthenticated connections reaches ``full'' (60).
433
434 PasswordAuthentication
435 Specifies whether password authentication is allowed. The
436 default is ``yes''.
437
438 PermitEmptyPasswords
439 When password authentication is allowed, it specifies whether the
440 server allows login to accounts with empty password strings. The
441 default is ``no''.
442
443 PermitOpen
444 Specifies the destinations to which TCP port forwarding is
445 permitted. The forwarding specification must be one of the
446 following forms:
447
448 PermitOpen host:port
449 PermitOpen IPv4_addr:port
450 PermitOpen [IPv6_addr]:port
451
452 Multiple forwards may be specified by separating them with
453 whitespace. An argument of ``any'' can be used to remove all
454 restrictions and permit any forwarding requests. By default all
455 port forwarding requests are permitted.
456
457 PermitRootLogin
458 Specifies whether root can log in using ssh(1). The argument
459 must be ``yes'', ``without-password'', ``forced-commands-only'',
460 or ``no''. The default is ``yes''.
461
462 If this option is set to ``without-password'', password
463 authentication is disabled for root.
464
465 If this option is set to ``forced-commands-only'', root login
466 with public key authentication will be allowed, but only if the
467 command option has been specified (which may be useful for taking
468 remote backups even if root login is normally not allowed). All
469 other authentication methods are disabled for root.
470
471 If this option is set to ``no'', root is not allowed to log in.
472
473 PermitTunnel
474 Specifies whether tun(4) device forwarding is allowed. The
475 argument must be ``yes'', ``point-to-point'' (layer 3),
476 ``ethernet'' (layer 2), or ``no''. Specifying ``yes'' permits
477 both ``point-to-point'' and ``ethernet''. The default is ``no''.
478
479 PermitUserEnvironment
480 Specifies whether ~/.ssh/environment and environment= options in
481 ~/.ssh/authorized_keys are processed by sshd(8). The default is
482 ``no''. Enabling environment processing may enable users to
483 bypass access restrictions in some configurations using
484 mechanisms such as LD_PRELOAD.
485
486 PidFile
487 Specifies the file that contains the process ID of the SSH
488 daemon. The default is /var/run/sshd.pid.
489
490 Port Specifies the port number that sshd(8) listens on. The default
491 is 22. Multiple options of this type are permitted. See also
492 ListenAddress.
493
494 PrintLastLog
495 Specifies whether sshd(8) should print the date and time of the
496 last user login when a user logs in interactively. The default
497 is ``yes''.
498
499 PrintMotd
500 Specifies whether sshd(8) should print /etc/motd when a user logs
501 in interactively. (On some systems it is also printed by the
502 shell, /etc/profile, or equivalent.) The default is ``yes''.
503
504 Protocol
505 Specifies the protocol versions sshd(8) supports. The possible
506 values are `1' and `2'. Multiple versions must be comma-
507 separated. The default is `2'. Note that the order of the
508 protocol list does not indicate preference, because the client
509 selects among multiple protocol versions offered by the server.
510 Specifying ``2,1'' is identical to ``1,2''.
511
512 PubkeyAuthentication
513 Specifies whether public key authentication is allowed. The
514 default is ``yes''. Note that this option applies to protocol
515 version 2 only.
516
517 RevokedKeys
518 Specifies a list of revoked public keys. Keys listed in this
519 file will be refused for public key authentication. Note that if
520 this file is not readable, then public key authentication will be
521 refused for all users.
522
523 RhostsRSAAuthentication
524 Specifies whether rhosts or /etc/hosts.equiv authentication
525 together with successful RSA host authentication is allowed. The
526 default is ``no''. This option applies to protocol version 1
527 only.
528
529 RSAAuthentication
530 Specifies whether pure RSA authentication is allowed. The
531 default is ``yes''. This option applies to protocol version 1
532 only.
533
534 ServerKeyBits
535 Defines the number of bits in the ephemeral protocol version 1
536 server key. The minimum value is 512, and the default is 1024.
537
538 StrictModes
539 Specifies whether sshd(8) should check file modes and ownership
540 of the user's files and home directory before accepting login.
541 This is normally desirable because novices sometimes accidentally
542 leave their directory or files world-writable. The default is
543 ``yes''. Note that this does not apply to ChrootDirectory, whose
544 permissions and ownership are checked unconditionally.
545
546 Subsystem
547 Configures an external subsystem (e.g. file transfer daemon).
548 Arguments should be a subsystem name and a command (with optional
549 arguments) to execute upon subsystem request.
550
551 The command sftp-server(8) implements the ``sftp'' file transfer
552 subsystem.
553
554 Alternately the name ``internal-sftp'' implements an in-process
555 ``sftp'' server. This may simplify configurations using
556 ChrootDirectory to force a different filesystem root on clients.
557
558 By default no subsystems are defined. Note that this option
559 applies to protocol version 2 only.
560
561 SyslogFacility
562 Gives the facility code that is used when logging messages from
563 sshd(8). The possible values are: DAEMON, USER, AUTH, LOCAL0,
564 LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. The
565 default is AUTH.
566
567 TCPKeepAlive
568 Specifies whether the system should send TCP keepalive messages
569 to the other side. If they are sent, death of the connection or
570 crash of one of the machines will be properly noticed. However,
571 this means that connections will die if the route is down
572 temporarily, and some people find it annoying. On the other
573 hand, if TCP keepalives are not sent, sessions may hang
574 indefinitely on the server, leaving ``ghost'' users and consuming
575 server resources.
576
577 The default is ``yes'' (to send TCP keepalive messages), and the
578 server will notice if the network goes down or the client host
579 crashes. This avoids infinitely hanging sessions.
580
581 To disable TCP keepalive messages, the value should be set to
582 ``no''.
583
584 TrustedUserCAKeys
585 Specifies a file containing public keys of certificate
586 authorities that are trusted to sign user certificates for
587 authentication. Keys are listed one per line; empty lines and
588 comments starting with `#' are allowed. If a certificate is
589 presented for authentication and has its signing CA key listed in
590 this file, then it may be used for authentication for any user
591 listed in the certificate's principals list. Note that
592 certificates that lack a list of principals will not be permitted
593 for authentication using TrustedUserCAKeys. For more details on
594 certificates, see the CERTIFICATES section in ssh-keygen(1).
595
596 UseDNS Specifies whether sshd(8) should look up the remote host name and
597 check that the resolved host name for the remote IP address maps
598 back to the very same IP address. The default is ``yes''.
599
600 UseLogin
601 Specifies whether login(1) is used for interactive login
602 sessions. The default is ``no''. Note that login(1) is never
603 used for remote command execution. Note also, that if this is
604 enabled, X11Forwarding will be disabled because login(1) does not
605 know how to handle xauth(1) cookies. If UsePrivilegeSeparation
606 is specified, it will be disabled after authentication.
607
608 UsePAM Enables the Pluggable Authentication Module interface. If set to
609 ``yes'' this will enable PAM authentication using
610 ChallengeResponseAuthentication and PasswordAuthentication in
611 addition to PAM account and session module processing for all
612 authentication types.
613
614 Because PAM challenge-response authentication usually serves an
615 equivalent role to password authentication, you should disable
616 either PasswordAuthentication or ChallengeResponseAuthentication.
617
618 If UsePAM is enabled, you will not be able to run sshd(8) as a
619 non-root user. The default is ``no''.
620
621 UsePrivilegeSeparation
622 Specifies whether sshd(8) separates privileges by creating an
623 unprivileged child process to deal with incoming network traffic.
624 After successful authentication, another process will be created
625 that has the privilege of the authenticated user. The goal of
626 privilege separation is to prevent privilege escalation by
627 containing any corruption within the unprivileged processes. The
628 default is ``yes''.
629
630 X11DisplayOffset
631 Specifies the first display number available for sshd(8)'s X11
632 forwarding. This prevents sshd from interfering with real X11
633 servers. The default is 10.
634
635 X11Forwarding
636 Specifies whether X11 forwarding is permitted. The argument must
637 be ``yes'' or ``no''. The default is ``no''.
638
639 When X11 forwarding is enabled, there may be additional exposure
640 to the server and to client displays if the sshd(8) proxy display
641 is configured to listen on the wildcard address (see
642 X11UseLocalhost below), though this is not the default.
643 Additionally, the authentication spoofing and authentication data
644 verification and substitution occur on the client side. The
645 security risk of using X11 forwarding is that the client's X11
646 display server may be exposed to attack when the SSH client
647 requests forwarding (see the warnings for ForwardX11 in
648 ssh_config(5)). A system administrator may have a stance in
649 which they want to protect clients that may expose themselves to
650 attack by unwittingly requesting X11 forwarding, which can
651 warrant a ``no'' setting.
652
653 Note that disabling X11 forwarding does not prevent users from
654 forwarding X11 traffic, as users can always install their own
655 forwarders. X11 forwarding is automatically disabled if UseLogin
656 is enabled.
657
658 X11UseLocalhost
659 Specifies whether sshd(8) should bind the X11 forwarding server
660 to the loopback address or to the wildcard address. By default,
661 sshd binds the forwarding server to the loopback address and sets
662 the hostname part of the DISPLAY environment variable to
663 ``localhost''. This prevents remote hosts from connecting to the
664 proxy display. However, some older X11 clients may not function
665 with this configuration. X11UseLocalhost may be set to ``no'' to
666 specify that the forwarding server should be bound to the
667 wildcard address. The argument must be ``yes'' or ``no''. The
668 default is ``yes''.
669
670 XAuthLocation
671 Specifies the full pathname of the xauth(1) program. The default
672 is /usr/X11R6/bin/xauth.
673
674TIME FORMATS
675 sshd(8) command-line arguments and configuration file options that
676 specify time may be expressed using a sequence of the form:
677 time[qualifier], where time is a positive integer value and qualifier is
678 one of the following:
679
680 <none> seconds
681 s | S seconds
682 m | M minutes
683 h | H hours
684 d | D days
685 w | W weeks
686
687 Each member of the sequence is added together to calculate the total time
688 value.
689
690 Time format examples:
691
692 600 600 seconds (10 minutes)
693 10m 10 minutes
694 1h30m 1 hour 30 minutes (90 minutes)
695
696FILES
697 /etc/ssh/sshd_config
698 Contains configuration data for sshd(8). This file should be
699 writable by root only, but it is recommended (though not
700 necessary) that it be world-readable.
701
702SEE ALSO
703 sshd(8)
704
705AUTHORS
706 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
707 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
708 de Raadt and Dug Song removed many bugs, re-added newer features and
709 created OpenSSH. Markus Friedl contributed the support for SSH protocol
710 versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support
711 for privilege separation.
712
713OpenBSD 4.9 December 8, 2010 OpenBSD 4.9