summaryrefslogtreecommitdiff
path: root/other/ssharp/configure
diff options
context:
space:
mode:
Diffstat (limited to 'other/ssharp/configure')
-rwxr-xr-xother/ssharp/configure9189
1 files changed, 9189 insertions, 0 deletions
diff --git a/other/ssharp/configure b/other/ssharp/configure
new file mode 100755
index 0000000..24a4ed2
--- /dev/null
+++ b/other/ssharp/configure
@@ -0,0 +1,9189 @@
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --with-cflags Specify additional flags to pass to compiler"
16ac_help="$ac_help
17 --with-cppflags Specify additional flags to pass to preprocessor "
18ac_help="$ac_help
19 --with-ldflags Specify additional flags to pass to linker"
20ac_help="$ac_help
21 --with-libs Specify additional libraries to link with"
22ac_help="$ac_help
23 --with-pcre Override built in regex library with pcre"
24ac_help="$ac_help
25 --with-skey=PATH Enable S/Key support"
26ac_help="$ac_help
27 --with-tcp-wrappers Enable tcpwrappers support"
28ac_help="$ac_help
29 --with-pam Enable PAM support "
30ac_help="$ac_help
31 --with-ssl-dir=PATH Specify path to OpenSSL installation "
32ac_help="$ac_help
33 --with-kerberos4=PATH Enable Kerberos 4 support"
34ac_help="$ac_help
35 --with-afs=PATH Enable AFS support"
36ac_help="$ac_help
37 --with-rsh=PATH Specify path to remote shell program "
38ac_help="$ac_help
39 --with-xauth=PATH Specify path to xauth program "
40ac_help="$ac_help
41 --with-random=FILE read entropy from FILE (default=/dev/urandom)"
42ac_help="$ac_help
43 --with-prngd-port=PORT read entropy from PRNGD/EGD localhost:PORT"
44ac_help="$ac_help
45 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)"
46ac_help="$ac_help
47 --with-mantype=man|cat|doc Set man page type"
48ac_help="$ac_help
49 --with-md5-passwords Enable use of MD5 passwords"
50ac_help="$ac_help
51 --without-shadow Disable shadow password support"
52ac_help="$ac_help
53 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY"
54ac_help="$ac_help
55 --with-default-path=PATH Specify default \$PATH environment for server"
56ac_help="$ac_help
57 --with-ipv4-default Use IPv4 by connections unless '-6' specified"
58ac_help="$ac_help
59 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses"
60ac_help="$ac_help
61 --with-bsd-auth Enable BSD auth support"
62ac_help="$ac_help
63 --enable-suid-ssh Install ssh as suid root (default)
64 --disable-suid-ssh Install ssh without suid bit"
65ac_help="$ac_help
66 --with-pid-dir=PATH Specify location of ssh.pid file"
67ac_help="$ac_help
68 --disable-lastlog disable use of lastlog even if detected [no]"
69ac_help="$ac_help
70 --disable-utmp disable use of utmp even if detected [no]"
71ac_help="$ac_help
72 --disable-utmpx disable use of utmpx even if detected [no]"
73ac_help="$ac_help
74 --disable-wtmp disable use of wtmp even if detected [no]"
75ac_help="$ac_help
76 --disable-wtmpx disable use of wtmpx even if detected [no]"
77ac_help="$ac_help
78 --disable-libutil disable use of libutil (login() etc.) [no]"
79ac_help="$ac_help
80 --disable-pututline disable use of pututline() etc. ([uw]tmp) [no]"
81ac_help="$ac_help
82 --disable-pututxline disable use of pututxline() etc. ([uw]tmpx) [no]"
83ac_help="$ac_help
84 --with-lastlog=FILE|DIR specify lastlog location [common locations]"
85ac_help="$ac_help
86 --with-entropy-timeout Specify entropy gathering command timeout (msec)"
87
88# Initialize some variables set by options.
89# The variables have the same names as the options, with
90# dashes changed to underlines.
91build=NONE
92cache_file=./config.cache
93exec_prefix=NONE
94host=NONE
95no_create=
96nonopt=NONE
97no_recursion=
98prefix=NONE
99program_prefix=NONE
100program_suffix=NONE
101program_transform_name=s,x,x,
102silent=
103site=
104srcdir=
105target=NONE
106verbose=
107x_includes=NONE
108x_libraries=NONE
109bindir='${exec_prefix}/bin'
110sbindir='${exec_prefix}/sbin'
111libexecdir='${exec_prefix}/libexec'
112datadir='${prefix}/share'
113sysconfdir='${prefix}/etc'
114sharedstatedir='${prefix}/com'
115localstatedir='${prefix}/var'
116libdir='${exec_prefix}/lib'
117includedir='${prefix}/include'
118oldincludedir='/usr/include'
119infodir='${prefix}/info'
120mandir='${prefix}/man'
121
122# Initialize some other variables.
123subdirs=
124MFLAGS= MAKEFLAGS=
125SHELL=${CONFIG_SHELL-/bin/sh}
126# Maximum number of lines to put in a shell here document.
127ac_max_here_lines=12
128
129ac_prev=
130for ac_option
131do
132
133 # If the previous option needs an argument, assign it.
134 if test -n "$ac_prev"; then
135 eval "$ac_prev=\$ac_option"
136 ac_prev=
137 continue
138 fi
139
140 case "$ac_option" in
141 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
142 *) ac_optarg= ;;
143 esac
144
145 # Accept the important Cygnus configure options, so we can diagnose typos.
146
147 case "$ac_option" in
148
149 -bindir | --bindir | --bindi | --bind | --bin | --bi)
150 ac_prev=bindir ;;
151 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
152 bindir="$ac_optarg" ;;
153
154 -build | --build | --buil | --bui | --bu)
155 ac_prev=build ;;
156 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
157 build="$ac_optarg" ;;
158
159 -cache-file | --cache-file | --cache-fil | --cache-fi \
160 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
161 ac_prev=cache_file ;;
162 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
163 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
164 cache_file="$ac_optarg" ;;
165
166 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
167 ac_prev=datadir ;;
168 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
169 | --da=*)
170 datadir="$ac_optarg" ;;
171
172 -disable-* | --disable-*)
173 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
174 # Reject names that are not valid shell variable names.
175 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
176 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
177 fi
178 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
179 eval "enable_${ac_feature}=no" ;;
180
181 -enable-* | --enable-*)
182 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
183 # Reject names that are not valid shell variable names.
184 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
185 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
186 fi
187 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
188 case "$ac_option" in
189 *=*) ;;
190 *) ac_optarg=yes ;;
191 esac
192 eval "enable_${ac_feature}='$ac_optarg'" ;;
193
194 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
195 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
196 | --exec | --exe | --ex)
197 ac_prev=exec_prefix ;;
198 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
199 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
200 | --exec=* | --exe=* | --ex=*)
201 exec_prefix="$ac_optarg" ;;
202
203 -gas | --gas | --ga | --g)
204 # Obsolete; use --with-gas.
205 with_gas=yes ;;
206
207 -help | --help | --hel | --he)
208 # Omit some internal or obsolete options to make the list less imposing.
209 # This message is too long to be a string in the A/UX 3.1 sh.
210 cat << EOF
211Usage: configure [options] [host]
212Options: [defaults in brackets after descriptions]
213Configuration:
214 --cache-file=FILE cache test results in FILE
215 --help print this message
216 --no-create do not create output files
217 --quiet, --silent do not print \`checking...' messages
218 --version print the version of autoconf that created configure
219Directory and file names:
220 --prefix=PREFIX install architecture-independent files in PREFIX
221 [$ac_default_prefix]
222 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
223 [same as prefix]
224 --bindir=DIR user executables in DIR [EPREFIX/bin]
225 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
226 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
227 --datadir=DIR read-only architecture-independent data in DIR
228 [PREFIX/share]
229 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
230 --sharedstatedir=DIR modifiable architecture-independent data in DIR
231 [PREFIX/com]
232 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
233 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
234 --includedir=DIR C header files in DIR [PREFIX/include]
235 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
236 --infodir=DIR info documentation in DIR [PREFIX/info]
237 --mandir=DIR man documentation in DIR [PREFIX/man]
238 --srcdir=DIR find the sources in DIR [configure dir or ..]
239 --program-prefix=PREFIX prepend PREFIX to installed program names
240 --program-suffix=SUFFIX append SUFFIX to installed program names
241 --program-transform-name=PROGRAM
242 run sed PROGRAM on installed program names
243EOF
244 cat << EOF
245Host type:
246 --build=BUILD configure for building on BUILD [BUILD=HOST]
247 --host=HOST configure for HOST [guessed]
248 --target=TARGET configure for TARGET [TARGET=HOST]
249Features and packages:
250 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
251 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
252 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
253 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
254 --x-includes=DIR X include files are in DIR
255 --x-libraries=DIR X library files are in DIR
256EOF
257 if test -n "$ac_help"; then
258 echo "--enable and --with options recognized:$ac_help"
259 fi
260 exit 0 ;;
261
262 -host | --host | --hos | --ho)
263 ac_prev=host ;;
264 -host=* | --host=* | --hos=* | --ho=*)
265 host="$ac_optarg" ;;
266
267 -includedir | --includedir | --includedi | --included | --include \
268 | --includ | --inclu | --incl | --inc)
269 ac_prev=includedir ;;
270 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
271 | --includ=* | --inclu=* | --incl=* | --inc=*)
272 includedir="$ac_optarg" ;;
273
274 -infodir | --infodir | --infodi | --infod | --info | --inf)
275 ac_prev=infodir ;;
276 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
277 infodir="$ac_optarg" ;;
278
279 -libdir | --libdir | --libdi | --libd)
280 ac_prev=libdir ;;
281 -libdir=* | --libdir=* | --libdi=* | --libd=*)
282 libdir="$ac_optarg" ;;
283
284 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
285 | --libexe | --libex | --libe)
286 ac_prev=libexecdir ;;
287 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
288 | --libexe=* | --libex=* | --libe=*)
289 libexecdir="$ac_optarg" ;;
290
291 -localstatedir | --localstatedir | --localstatedi | --localstated \
292 | --localstate | --localstat | --localsta | --localst \
293 | --locals | --local | --loca | --loc | --lo)
294 ac_prev=localstatedir ;;
295 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
296 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
297 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
298 localstatedir="$ac_optarg" ;;
299
300 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
301 ac_prev=mandir ;;
302 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
303 mandir="$ac_optarg" ;;
304
305 -nfp | --nfp | --nf)
306 # Obsolete; use --without-fp.
307 with_fp=no ;;
308
309 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
310 | --no-cr | --no-c)
311 no_create=yes ;;
312
313 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
314 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
315 no_recursion=yes ;;
316
317 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
318 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
319 | --oldin | --oldi | --old | --ol | --o)
320 ac_prev=oldincludedir ;;
321 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
322 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
323 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
324 oldincludedir="$ac_optarg" ;;
325
326 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
327 ac_prev=prefix ;;
328 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
329 prefix="$ac_optarg" ;;
330
331 -program-prefix | --program-prefix | --program-prefi | --program-pref \
332 | --program-pre | --program-pr | --program-p)
333 ac_prev=program_prefix ;;
334 -program-prefix=* | --program-prefix=* | --program-prefi=* \
335 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
336 program_prefix="$ac_optarg" ;;
337
338 -program-suffix | --program-suffix | --program-suffi | --program-suff \
339 | --program-suf | --program-su | --program-s)
340 ac_prev=program_suffix ;;
341 -program-suffix=* | --program-suffix=* | --program-suffi=* \
342 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
343 program_suffix="$ac_optarg" ;;
344
345 -program-transform-name | --program-transform-name \
346 | --program-transform-nam | --program-transform-na \
347 | --program-transform-n | --program-transform- \
348 | --program-transform | --program-transfor \
349 | --program-transfo | --program-transf \
350 | --program-trans | --program-tran \
351 | --progr-tra | --program-tr | --program-t)
352 ac_prev=program_transform_name ;;
353 -program-transform-name=* | --program-transform-name=* \
354 | --program-transform-nam=* | --program-transform-na=* \
355 | --program-transform-n=* | --program-transform-=* \
356 | --program-transform=* | --program-transfor=* \
357 | --program-transfo=* | --program-transf=* \
358 | --program-trans=* | --program-tran=* \
359 | --progr-tra=* | --program-tr=* | --program-t=*)
360 program_transform_name="$ac_optarg" ;;
361
362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
363 | -silent | --silent | --silen | --sile | --sil)
364 silent=yes ;;
365
366 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
367 ac_prev=sbindir ;;
368 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
369 | --sbi=* | --sb=*)
370 sbindir="$ac_optarg" ;;
371
372 -sharedstatedir | --sharedstatedir | --sharedstatedi \
373 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
374 | --sharedst | --shareds | --shared | --share | --shar \
375 | --sha | --sh)
376 ac_prev=sharedstatedir ;;
377 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
378 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
379 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
380 | --sha=* | --sh=*)
381 sharedstatedir="$ac_optarg" ;;
382
383 -site | --site | --sit)
384 ac_prev=site ;;
385 -site=* | --site=* | --sit=*)
386 site="$ac_optarg" ;;
387
388 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
389 ac_prev=srcdir ;;
390 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
391 srcdir="$ac_optarg" ;;
392
393 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
394 | --syscon | --sysco | --sysc | --sys | --sy)
395 ac_prev=sysconfdir ;;
396 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
397 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
398 sysconfdir="$ac_optarg" ;;
399
400 -target | --target | --targe | --targ | --tar | --ta | --t)
401 ac_prev=target ;;
402 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
403 target="$ac_optarg" ;;
404
405 -v | -verbose | --verbose | --verbos | --verbo | --verb)
406 verbose=yes ;;
407
408 -version | --version | --versio | --versi | --vers)
409 echo "configure generated by autoconf version 2.13"
410 exit 0 ;;
411
412 -with-* | --with-*)
413 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
417 fi
418 ac_package=`echo $ac_package| sed 's/-/_/g'`
419 case "$ac_option" in
420 *=*) ;;
421 *) ac_optarg=yes ;;
422 esac
423 eval "with_${ac_package}='$ac_optarg'" ;;
424
425 -without-* | --without-*)
426 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
427 # Reject names that are not valid shell variable names.
428 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
429 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
430 fi
431 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 eval "with_${ac_package}=no" ;;
433
434 --x)
435 # Obsolete; use --with-x.
436 with_x=yes ;;
437
438 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
439 | --x-incl | --x-inc | --x-in | --x-i)
440 ac_prev=x_includes ;;
441 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
442 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
443 x_includes="$ac_optarg" ;;
444
445 -x-libraries | --x-libraries | --x-librarie | --x-librari \
446 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
447 ac_prev=x_libraries ;;
448 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
449 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
450 x_libraries="$ac_optarg" ;;
451
452 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
453 ;;
454
455 *)
456 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
457 echo "configure: warning: $ac_option: invalid host type" 1>&2
458 fi
459 if test "x$nonopt" != xNONE; then
460 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
461 fi
462 nonopt="$ac_option"
463 ;;
464
465 esac
466done
467
468if test -n "$ac_prev"; then
469 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
470fi
471
472trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
473
474# File descriptor usage:
475# 0 standard input
476# 1 file creation
477# 2 errors and warnings
478# 3 some systems may open it to /dev/tty
479# 4 used on the Kubota Titan
480# 6 checking for... messages and results
481# 5 compiler messages saved in config.log
482if test "$silent" = yes; then
483 exec 6>/dev/null
484else
485 exec 6>&1
486fi
487exec 5>./config.log
488
489echo "\
490This file contains any messages produced by compilers while
491running configure, to aid debugging if configure makes a mistake.
492" 1>&5
493
494# Strip out --no-create and --no-recursion so they do not pile up.
495# Also quote any args containing shell metacharacters.
496ac_configure_args=
497for ac_arg
498do
499 case "$ac_arg" in
500 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
501 | --no-cr | --no-c) ;;
502 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
503 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
504 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
505 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
506 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
507 esac
508done
509
510# NLS nuisances.
511# Only set these to C if already set. These must not be set unconditionally
512# because not all systems understand e.g. LANG=C (notably SCO).
513# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
514# Non-C LC_CTYPE values break the ctype check.
515if test "${LANG+set}" = set; then LANG=C; export LANG; fi
516if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
517if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
518if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
519
520# confdefs.h avoids OS command line length limits that DEFS can exceed.
521rm -rf conftest* confdefs.h
522# AIX cpp loses on an empty file, so make sure it contains at least a newline.
523echo > confdefs.h
524
525# A filename unique to this package, relative to the directory that
526# configure is in, which we can look for to find out if srcdir is correct.
527ac_unique_file=ssh.c
528
529# Find the source files, if location was not specified.
530if test -z "$srcdir"; then
531 ac_srcdir_defaulted=yes
532 # Try the directory containing this script, then its parent.
533 ac_prog=$0
534 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
535 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
536 srcdir=$ac_confdir
537 if test ! -r $srcdir/$ac_unique_file; then
538 srcdir=..
539 fi
540else
541 ac_srcdir_defaulted=no
542fi
543if test ! -r $srcdir/$ac_unique_file; then
544 if test "$ac_srcdir_defaulted" = yes; then
545 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
546 else
547 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
548 fi
549fi
550srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
551
552# Prefer explicitly selected file to automatically selected ones.
553if test -z "$CONFIG_SITE"; then
554 if test "x$prefix" != xNONE; then
555 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
556 else
557 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
558 fi
559fi
560for ac_site_file in $CONFIG_SITE; do
561 if test -r "$ac_site_file"; then
562 echo "loading site script $ac_site_file"
563 . "$ac_site_file"
564 fi
565done
566
567if test -r "$cache_file"; then
568 echo "loading cache $cache_file"
569 . $cache_file
570else
571 echo "creating cache $cache_file"
572 > $cache_file
573fi
574
575ac_ext=c
576# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
577ac_cpp='$CPP $CPPFLAGS'
578ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
579ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
580cross_compiling=$ac_cv_prog_cc_cross
581
582ac_exeext=
583ac_objext=o
584if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
585 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
586 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
587 ac_n= ac_c='
588' ac_t=' '
589 else
590 ac_n=-n ac_c= ac_t=
591 fi
592else
593 ac_n= ac_c='\c' ac_t=
594fi
595
596
597
598
599# Extract the first word of "gcc", so it can be a program name with args.
600set dummy gcc; ac_word=$2
601echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
602echo "configure:603: checking for $ac_word" >&5
603if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
604 echo $ac_n "(cached) $ac_c" 1>&6
605else
606 if test -n "$CC"; then
607 ac_cv_prog_CC="$CC" # Let the user override the test.
608else
609 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
610 ac_dummy="$PATH"
611 for ac_dir in $ac_dummy; do
612 test -z "$ac_dir" && ac_dir=.
613 if test -f $ac_dir/$ac_word; then
614 ac_cv_prog_CC="gcc"
615 break
616 fi
617 done
618 IFS="$ac_save_ifs"
619fi
620fi
621CC="$ac_cv_prog_CC"
622if test -n "$CC"; then
623 echo "$ac_t""$CC" 1>&6
624else
625 echo "$ac_t""no" 1>&6
626fi
627
628if test -z "$CC"; then
629 # Extract the first word of "cc", so it can be a program name with args.
630set dummy cc; ac_word=$2
631echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
632echo "configure:633: checking for $ac_word" >&5
633if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
634 echo $ac_n "(cached) $ac_c" 1>&6
635else
636 if test -n "$CC"; then
637 ac_cv_prog_CC="$CC" # Let the user override the test.
638else
639 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
640 ac_prog_rejected=no
641 ac_dummy="$PATH"
642 for ac_dir in $ac_dummy; do
643 test -z "$ac_dir" && ac_dir=.
644 if test -f $ac_dir/$ac_word; then
645 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
646 ac_prog_rejected=yes
647 continue
648 fi
649 ac_cv_prog_CC="cc"
650 break
651 fi
652 done
653 IFS="$ac_save_ifs"
654if test $ac_prog_rejected = yes; then
655 # We found a bogon in the path, so make sure we never use it.
656 set dummy $ac_cv_prog_CC
657 shift
658 if test $# -gt 0; then
659 # We chose a different compiler from the bogus one.
660 # However, it has the same basename, so the bogon will be chosen
661 # first if we set CC to just the basename; use the full file name.
662 shift
663 set dummy "$ac_dir/$ac_word" "$@"
664 shift
665 ac_cv_prog_CC="$@"
666 fi
667fi
668fi
669fi
670CC="$ac_cv_prog_CC"
671if test -n "$CC"; then
672 echo "$ac_t""$CC" 1>&6
673else
674 echo "$ac_t""no" 1>&6
675fi
676
677 if test -z "$CC"; then
678 case "`uname -s`" in
679 *win32* | *WIN32*)
680 # Extract the first word of "cl", so it can be a program name with args.
681set dummy cl; ac_word=$2
682echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
683echo "configure:684: checking for $ac_word" >&5
684if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
685 echo $ac_n "(cached) $ac_c" 1>&6
686else
687 if test -n "$CC"; then
688 ac_cv_prog_CC="$CC" # Let the user override the test.
689else
690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
691 ac_dummy="$PATH"
692 for ac_dir in $ac_dummy; do
693 test -z "$ac_dir" && ac_dir=.
694 if test -f $ac_dir/$ac_word; then
695 ac_cv_prog_CC="cl"
696 break
697 fi
698 done
699 IFS="$ac_save_ifs"
700fi
701fi
702CC="$ac_cv_prog_CC"
703if test -n "$CC"; then
704 echo "$ac_t""$CC" 1>&6
705else
706 echo "$ac_t""no" 1>&6
707fi
708 ;;
709 esac
710 fi
711 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
712fi
713
714echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
715echo "configure:716: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
716
717ac_ext=c
718# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
719ac_cpp='$CPP $CPPFLAGS'
720ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
721ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
722cross_compiling=$ac_cv_prog_cc_cross
723
724cat > conftest.$ac_ext << EOF
725
726#line 727 "configure"
727#include "confdefs.h"
728
729main(){return(0);}
730EOF
731if { (eval echo configure:732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
732 ac_cv_prog_cc_works=yes
733 # If we can't run a trivial program, we are probably using a cross compiler.
734 if (./conftest; exit) 2>/dev/null; then
735 ac_cv_prog_cc_cross=no
736 else
737 ac_cv_prog_cc_cross=yes
738 fi
739else
740 echo "configure: failed program was:" >&5
741 cat conftest.$ac_ext >&5
742 ac_cv_prog_cc_works=no
743fi
744rm -fr conftest*
745ac_ext=c
746# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
747ac_cpp='$CPP $CPPFLAGS'
748ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
749ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
750cross_compiling=$ac_cv_prog_cc_cross
751
752echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
753if test $ac_cv_prog_cc_works = no; then
754 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
755fi
756echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
757echo "configure:758: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
758echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
759cross_compiling=$ac_cv_prog_cc_cross
760
761echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
762echo "configure:763: checking whether we are using GNU C" >&5
763if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
764 echo $ac_n "(cached) $ac_c" 1>&6
765else
766 cat > conftest.c <<EOF
767#ifdef __GNUC__
768 yes;
769#endif
770EOF
771if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
772 ac_cv_prog_gcc=yes
773else
774 ac_cv_prog_gcc=no
775fi
776fi
777
778echo "$ac_t""$ac_cv_prog_gcc" 1>&6
779
780if test $ac_cv_prog_gcc = yes; then
781 GCC=yes
782else
783 GCC=
784fi
785
786ac_test_CFLAGS="${CFLAGS+set}"
787ac_save_CFLAGS="$CFLAGS"
788CFLAGS=
789echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
790echo "configure:791: checking whether ${CC-cc} accepts -g" >&5
791if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
792 echo $ac_n "(cached) $ac_c" 1>&6
793else
794 echo 'void f(){}' > conftest.c
795if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
796 ac_cv_prog_cc_g=yes
797else
798 ac_cv_prog_cc_g=no
799fi
800rm -f conftest*
801
802fi
803
804echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
805if test "$ac_test_CFLAGS" = set; then
806 CFLAGS="$ac_save_CFLAGS"
807elif test $ac_cv_prog_cc_g = yes; then
808 if test "$GCC" = yes; then
809 CFLAGS="-g -O2"
810 else
811 CFLAGS="-g"
812 fi
813else
814 if test "$GCC" = yes; then
815 CFLAGS="-O2"
816 else
817 CFLAGS=
818 fi
819fi
820
821ac_aux_dir=
822for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
823 if test -f $ac_dir/install-sh; then
824 ac_aux_dir=$ac_dir
825 ac_install_sh="$ac_aux_dir/install-sh -c"
826 break
827 elif test -f $ac_dir/install.sh; then
828 ac_aux_dir=$ac_dir
829 ac_install_sh="$ac_aux_dir/install.sh -c"
830 break
831 fi
832done
833if test -z "$ac_aux_dir"; then
834 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
835fi
836ac_config_guess=$ac_aux_dir/config.guess
837ac_config_sub=$ac_aux_dir/config.sub
838ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
839
840
841# Make sure we can run config.sub.
842if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
843else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
844fi
845
846echo $ac_n "checking host system type""... $ac_c" 1>&6
847echo "configure:848: checking host system type" >&5
848
849host_alias=$host
850case "$host_alias" in
851NONE)
852 case $nonopt in
853 NONE)
854 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
855 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
856 fi ;;
857 *) host_alias=$nonopt ;;
858 esac ;;
859esac
860
861host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
862host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
863host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
864host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
865echo "$ac_t""$host" 1>&6
866
867echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
868echo "configure:869: checking whether byte ordering is bigendian" >&5
869if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
870 echo $ac_n "(cached) $ac_c" 1>&6
871else
872 ac_cv_c_bigendian=unknown
873# See if sys/param.h defines the BYTE_ORDER macro.
874cat > conftest.$ac_ext <<EOF
875#line 876 "configure"
876#include "confdefs.h"
877#include <sys/types.h>
878#include <sys/param.h>
879int main() {
880
881#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
882 bogus endian macros
883#endif
884; return 0; }
885EOF
886if { (eval echo configure:887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
887 rm -rf conftest*
888 # It does; now see whether it defined to BIG_ENDIAN or not.
889cat > conftest.$ac_ext <<EOF
890#line 891 "configure"
891#include "confdefs.h"
892#include <sys/types.h>
893#include <sys/param.h>
894int main() {
895
896#if BYTE_ORDER != BIG_ENDIAN
897 not big endian
898#endif
899; return 0; }
900EOF
901if { (eval echo configure:902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
902 rm -rf conftest*
903 ac_cv_c_bigendian=yes
904else
905 echo "configure: failed program was:" >&5
906 cat conftest.$ac_ext >&5
907 rm -rf conftest*
908 ac_cv_c_bigendian=no
909fi
910rm -f conftest*
911else
912 echo "configure: failed program was:" >&5
913 cat conftest.$ac_ext >&5
914fi
915rm -f conftest*
916if test $ac_cv_c_bigendian = unknown; then
917if test "$cross_compiling" = yes; then
918 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
919else
920 cat > conftest.$ac_ext <<EOF
921#line 922 "configure"
922#include "confdefs.h"
923main () {
924 /* Are we little or big endian? From Harbison&Steele. */
925 union
926 {
927 long l;
928 char c[sizeof (long)];
929 } u;
930 u.l = 1;
931 exit (u.c[sizeof (long) - 1] == 1);
932}
933EOF
934if { (eval echo configure:935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
935then
936 ac_cv_c_bigendian=no
937else
938 echo "configure: failed program was:" >&5
939 cat conftest.$ac_ext >&5
940 rm -fr conftest*
941 ac_cv_c_bigendian=yes
942fi
943rm -fr conftest*
944fi
945
946fi
947fi
948
949echo "$ac_t""$ac_cv_c_bigendian" 1>&6
950if test $ac_cv_c_bigendian = yes; then
951 cat >> confdefs.h <<\EOF
952#define WORDS_BIGENDIAN 1
953EOF
954
955fi
956
957
958# Checks for programs.
959echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
960echo "configure:961: checking how to run the C preprocessor" >&5
961# On Suns, sometimes $CPP names a directory.
962if test -n "$CPP" && test -d "$CPP"; then
963 CPP=
964fi
965if test -z "$CPP"; then
966if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
967 echo $ac_n "(cached) $ac_c" 1>&6
968else
969 # This must be in double quotes, not single quotes, because CPP may get
970 # substituted into the Makefile and "${CC-cc}" will confuse make.
971 CPP="${CC-cc} -E"
972 # On the NeXT, cc -E runs the code through the compiler's parser,
973 # not just through cpp.
974 cat > conftest.$ac_ext <<EOF
975#line 976 "configure"
976#include "confdefs.h"
977#include <assert.h>
978Syntax Error
979EOF
980ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
981{ (eval echo configure:982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
982ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
983if test -z "$ac_err"; then
984 :
985else
986 echo "$ac_err" >&5
987 echo "configure: failed program was:" >&5
988 cat conftest.$ac_ext >&5
989 rm -rf conftest*
990 CPP="${CC-cc} -E -traditional-cpp"
991 cat > conftest.$ac_ext <<EOF
992#line 993 "configure"
993#include "confdefs.h"
994#include <assert.h>
995Syntax Error
996EOF
997ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
998{ (eval echo configure:999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
999ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1000if test -z "$ac_err"; then
1001 :
1002else
1003 echo "$ac_err" >&5
1004 echo "configure: failed program was:" >&5
1005 cat conftest.$ac_ext >&5
1006 rm -rf conftest*
1007 CPP="${CC-cc} -nologo -E"
1008 cat > conftest.$ac_ext <<EOF
1009#line 1010 "configure"
1010#include "confdefs.h"
1011#include <assert.h>
1012Syntax Error
1013EOF
1014ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1015{ (eval echo configure:1016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1016ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1017if test -z "$ac_err"; then
1018 :
1019else
1020 echo "$ac_err" >&5
1021 echo "configure: failed program was:" >&5
1022 cat conftest.$ac_ext >&5
1023 rm -rf conftest*
1024 CPP=/lib/cpp
1025fi
1026rm -f conftest*
1027fi
1028rm -f conftest*
1029fi
1030rm -f conftest*
1031 ac_cv_prog_CPP="$CPP"
1032fi
1033 CPP="$ac_cv_prog_CPP"
1034else
1035 ac_cv_prog_CPP="$CPP"
1036fi
1037echo "$ac_t""$CPP" 1>&6
1038
1039# Extract the first word of "ranlib", so it can be a program name with args.
1040set dummy ranlib; ac_word=$2
1041echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1042echo "configure:1043: checking for $ac_word" >&5
1043if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1045else
1046 if test -n "$RANLIB"; then
1047 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1048else
1049 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1050 ac_dummy="$PATH"
1051 for ac_dir in $ac_dummy; do
1052 test -z "$ac_dir" && ac_dir=.
1053 if test -f $ac_dir/$ac_word; then
1054 ac_cv_prog_RANLIB="ranlib"
1055 break
1056 fi
1057 done
1058 IFS="$ac_save_ifs"
1059 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1060fi
1061fi
1062RANLIB="$ac_cv_prog_RANLIB"
1063if test -n "$RANLIB"; then
1064 echo "$ac_t""$RANLIB" 1>&6
1065else
1066 echo "$ac_t""no" 1>&6
1067fi
1068
1069# Find a good install program. We prefer a C program (faster),
1070# so one script is as good as another. But avoid the broken or
1071# incompatible versions:
1072# SysV /etc/install, /usr/sbin/install
1073# SunOS /usr/etc/install
1074# IRIX /sbin/install
1075# AIX /bin/install
1076# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1077# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1078# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1079# ./install, which can be erroneously created by make from ./install.sh.
1080echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1081echo "configure:1082: checking for a BSD compatible install" >&5
1082if test -z "$INSTALL"; then
1083if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1085else
1086 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1087 for ac_dir in $PATH; do
1088 # Account for people who put trailing slashes in PATH elements.
1089 case "$ac_dir/" in
1090 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1091 *)
1092 # OSF1 and SCO ODT 3.0 have their own names for install.
1093 # Don't use installbsd from OSF since it installs stuff as root
1094 # by default.
1095 for ac_prog in ginstall scoinst install; do
1096 if test -f $ac_dir/$ac_prog; then
1097 if test $ac_prog = install &&
1098 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1099 # AIX install. It has an incompatible calling convention.
1100 :
1101 else
1102 ac_cv_path_install="$ac_dir/$ac_prog -c"
1103 break 2
1104 fi
1105 fi
1106 done
1107 ;;
1108 esac
1109 done
1110 IFS="$ac_save_IFS"
1111
1112fi
1113 if test "${ac_cv_path_install+set}" = set; then
1114 INSTALL="$ac_cv_path_install"
1115 else
1116 # As a last resort, use the slow shell script. We don't cache a
1117 # path for INSTALL within a source directory, because that will
1118 # break other packages using the cache if that directory is
1119 # removed, or if the path is relative.
1120 INSTALL="$ac_install_sh"
1121 fi
1122fi
1123echo "$ac_t""$INSTALL" 1>&6
1124
1125# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1126# It thinks the first close brace ends the variable substitution.
1127test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1128
1129test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1130
1131test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1132
1133# Extract the first word of "ar", so it can be a program name with args.
1134set dummy ar; ac_word=$2
1135echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1136echo "configure:1137: checking for $ac_word" >&5
1137if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
1138 echo $ac_n "(cached) $ac_c" 1>&6
1139else
1140 case "$AR" in
1141 /*)
1142 ac_cv_path_AR="$AR" # Let the user override the test with a path.
1143 ;;
1144 ?:/*)
1145 ac_cv_path_AR="$AR" # Let the user override the test with a dos path.
1146 ;;
1147 *)
1148 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1149 ac_dummy="$PATH"
1150 for ac_dir in $ac_dummy; do
1151 test -z "$ac_dir" && ac_dir=.
1152 if test -f $ac_dir/$ac_word; then
1153 ac_cv_path_AR="$ac_dir/$ac_word"
1154 break
1155 fi
1156 done
1157 IFS="$ac_save_ifs"
1158 ;;
1159esac
1160fi
1161AR="$ac_cv_path_AR"
1162if test -n "$AR"; then
1163 echo "$ac_t""$AR" 1>&6
1164else
1165 echo "$ac_t""no" 1>&6
1166fi
1167
1168for ac_prog in perl5 perl
1169do
1170# Extract the first word of "$ac_prog", so it can be a program name with args.
1171set dummy $ac_prog; ac_word=$2
1172echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1173echo "configure:1174: checking for $ac_word" >&5
1174if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1176else
1177 case "$PERL" in
1178 /*)
1179 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1180 ;;
1181 ?:/*)
1182 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
1183 ;;
1184 *)
1185 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1186 ac_dummy="$PATH"
1187 for ac_dir in $ac_dummy; do
1188 test -z "$ac_dir" && ac_dir=.
1189 if test -f $ac_dir/$ac_word; then
1190 ac_cv_path_PERL="$ac_dir/$ac_word"
1191 break
1192 fi
1193 done
1194 IFS="$ac_save_ifs"
1195 ;;
1196esac
1197fi
1198PERL="$ac_cv_path_PERL"
1199if test -n "$PERL"; then
1200 echo "$ac_t""$PERL" 1>&6
1201else
1202 echo "$ac_t""no" 1>&6
1203fi
1204
1205test -n "$PERL" && break
1206done
1207
1208
1209# Extract the first word of "ent", so it can be a program name with args.
1210set dummy ent; ac_word=$2
1211echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1212echo "configure:1213: checking for $ac_word" >&5
1213if eval "test \"`echo '$''{'ac_cv_path_ENT'+set}'`\" = set"; then
1214 echo $ac_n "(cached) $ac_c" 1>&6
1215else
1216 case "$ENT" in
1217 /*)
1218 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
1219 ;;
1220 ?:/*)
1221 ac_cv_path_ENT="$ENT" # Let the user override the test with a dos path.
1222 ;;
1223 *)
1224 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1225 ac_dummy="$PATH"
1226 for ac_dir in $ac_dummy; do
1227 test -z "$ac_dir" && ac_dir=.
1228 if test -f $ac_dir/$ac_word; then
1229 ac_cv_path_ENT="$ac_dir/$ac_word"
1230 break
1231 fi
1232 done
1233 IFS="$ac_save_ifs"
1234 ;;
1235esac
1236fi
1237ENT="$ac_cv_path_ENT"
1238if test -n "$ENT"; then
1239 echo "$ac_t""$ENT" 1>&6
1240else
1241 echo "$ac_t""no" 1>&6
1242fi
1243
1244
1245for ac_prog in filepriv
1246do
1247# Extract the first word of "$ac_prog", so it can be a program name with args.
1248set dummy $ac_prog; ac_word=$2
1249echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1250echo "configure:1251: checking for $ac_word" >&5
1251if eval "test \"`echo '$''{'ac_cv_path_FILEPRIV'+set}'`\" = set"; then
1252 echo $ac_n "(cached) $ac_c" 1>&6
1253else
1254 case "$FILEPRIV" in
1255 /*)
1256 ac_cv_path_FILEPRIV="$FILEPRIV" # Let the user override the test with a path.
1257 ;;
1258 ?:/*)
1259 ac_cv_path_FILEPRIV="$FILEPRIV" # Let the user override the test with a dos path.
1260 ;;
1261 *)
1262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1263 ac_dummy="/sbin:/usr/sbin"
1264 for ac_dir in $ac_dummy; do
1265 test -z "$ac_dir" && ac_dir=.
1266 if test -f $ac_dir/$ac_word; then
1267 ac_cv_path_FILEPRIV="$ac_dir/$ac_word"
1268 break
1269 fi
1270 done
1271 IFS="$ac_save_ifs"
1272 ;;
1273esac
1274fi
1275FILEPRIV="$ac_cv_path_FILEPRIV"
1276if test -n "$FILEPRIV"; then
1277 echo "$ac_t""$FILEPRIV" 1>&6
1278else
1279 echo "$ac_t""no" 1>&6
1280fi
1281
1282test -n "$FILEPRIV" && break
1283done
1284test -n "$FILEPRIV" || FILEPRIV="true"
1285
1286# Extract the first word of "bash", so it can be a program name with args.
1287set dummy bash; ac_word=$2
1288echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1289echo "configure:1290: checking for $ac_word" >&5
1290if eval "test \"`echo '$''{'ac_cv_path_TEST_MINUS_S_SH'+set}'`\" = set"; then
1291 echo $ac_n "(cached) $ac_c" 1>&6
1292else
1293 case "$TEST_MINUS_S_SH" in
1294 /*)
1295 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
1296 ;;
1297 ?:/*)
1298 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a dos path.
1299 ;;
1300 *)
1301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1302 ac_dummy="$PATH"
1303 for ac_dir in $ac_dummy; do
1304 test -z "$ac_dir" && ac_dir=.
1305 if test -f $ac_dir/$ac_word; then
1306 ac_cv_path_TEST_MINUS_S_SH="$ac_dir/$ac_word"
1307 break
1308 fi
1309 done
1310 IFS="$ac_save_ifs"
1311 ;;
1312esac
1313fi
1314TEST_MINUS_S_SH="$ac_cv_path_TEST_MINUS_S_SH"
1315if test -n "$TEST_MINUS_S_SH"; then
1316 echo "$ac_t""$TEST_MINUS_S_SH" 1>&6
1317else
1318 echo "$ac_t""no" 1>&6
1319fi
1320
1321# Extract the first word of "ksh", so it can be a program name with args.
1322set dummy ksh; ac_word=$2
1323echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1324echo "configure:1325: checking for $ac_word" >&5
1325if eval "test \"`echo '$''{'ac_cv_path_TEST_MINUS_S_SH'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1327else
1328 case "$TEST_MINUS_S_SH" in
1329 /*)
1330 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
1331 ;;
1332 ?:/*)
1333 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a dos path.
1334 ;;
1335 *)
1336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1337 ac_dummy="$PATH"
1338 for ac_dir in $ac_dummy; do
1339 test -z "$ac_dir" && ac_dir=.
1340 if test -f $ac_dir/$ac_word; then
1341 ac_cv_path_TEST_MINUS_S_SH="$ac_dir/$ac_word"
1342 break
1343 fi
1344 done
1345 IFS="$ac_save_ifs"
1346 ;;
1347esac
1348fi
1349TEST_MINUS_S_SH="$ac_cv_path_TEST_MINUS_S_SH"
1350if test -n "$TEST_MINUS_S_SH"; then
1351 echo "$ac_t""$TEST_MINUS_S_SH" 1>&6
1352else
1353 echo "$ac_t""no" 1>&6
1354fi
1355
1356# Extract the first word of "sh", so it can be a program name with args.
1357set dummy sh; ac_word=$2
1358echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1359echo "configure:1360: checking for $ac_word" >&5
1360if eval "test \"`echo '$''{'ac_cv_path_TEST_MINUS_S_SH'+set}'`\" = set"; then
1361 echo $ac_n "(cached) $ac_c" 1>&6
1362else
1363 case "$TEST_MINUS_S_SH" in
1364 /*)
1365 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
1366 ;;
1367 ?:/*)
1368 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a dos path.
1369 ;;
1370 *)
1371 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1372 ac_dummy="$PATH"
1373 for ac_dir in $ac_dummy; do
1374 test -z "$ac_dir" && ac_dir=.
1375 if test -f $ac_dir/$ac_word; then
1376 ac_cv_path_TEST_MINUS_S_SH="$ac_dir/$ac_word"
1377 break
1378 fi
1379 done
1380 IFS="$ac_save_ifs"
1381 ;;
1382esac
1383fi
1384TEST_MINUS_S_SH="$ac_cv_path_TEST_MINUS_S_SH"
1385if test -n "$TEST_MINUS_S_SH"; then
1386 echo "$ac_t""$TEST_MINUS_S_SH" 1>&6
1387else
1388 echo "$ac_t""no" 1>&6
1389fi
1390
1391
1392if test -z "$AR" ; then
1393 { echo "configure: error: *** 'ar' missing, please install or fix your \$PATH ***" 1>&2; exit 1; }
1394fi
1395
1396# Use LOGIN_PROGRAM from environment if possible
1397if test ! -z "$LOGIN_PROGRAM" ; then
1398 cat >> confdefs.h <<EOF
1399#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
1400EOF
1401
1402else
1403 # Search for login
1404 # Extract the first word of "login", so it can be a program name with args.
1405set dummy login; ac_word=$2
1406echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1407echo "configure:1408: checking for $ac_word" >&5
1408if eval "test \"`echo '$''{'ac_cv_path_LOGIN_PROGRAM_FALLBACK'+set}'`\" = set"; then
1409 echo $ac_n "(cached) $ac_c" 1>&6
1410else
1411 case "$LOGIN_PROGRAM_FALLBACK" in
1412 /*)
1413 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
1414 ;;
1415 ?:/*)
1416 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a dos path.
1417 ;;
1418 *)
1419 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1420 ac_dummy="$PATH"
1421 for ac_dir in $ac_dummy; do
1422 test -z "$ac_dir" && ac_dir=.
1423 if test -f $ac_dir/$ac_word; then
1424 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$ac_dir/$ac_word"
1425 break
1426 fi
1427 done
1428 IFS="$ac_save_ifs"
1429 ;;
1430esac
1431fi
1432LOGIN_PROGRAM_FALLBACK="$ac_cv_path_LOGIN_PROGRAM_FALLBACK"
1433if test -n "$LOGIN_PROGRAM_FALLBACK"; then
1434 echo "$ac_t""$LOGIN_PROGRAM_FALLBACK" 1>&6
1435else
1436 echo "$ac_t""no" 1>&6
1437fi
1438
1439 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
1440 cat >> confdefs.h <<EOF
1441#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
1442EOF
1443
1444 fi
1445fi
1446
1447if test -z "$LD" ; then
1448 LD=$CC
1449fi
1450
1451
1452# C Compiler features
1453echo $ac_n "checking for inline""... $ac_c" 1>&6
1454echo "configure:1455: checking for inline" >&5
1455if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1456 echo $ac_n "(cached) $ac_c" 1>&6
1457else
1458 ac_cv_c_inline=no
1459for ac_kw in inline __inline__ __inline; do
1460 cat > conftest.$ac_ext <<EOF
1461#line 1462 "configure"
1462#include "confdefs.h"
1463
1464int main() {
1465} $ac_kw foo() {
1466; return 0; }
1467EOF
1468if { (eval echo configure:1469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1469 rm -rf conftest*
1470 ac_cv_c_inline=$ac_kw; break
1471else
1472 echo "configure: failed program was:" >&5
1473 cat conftest.$ac_ext >&5
1474fi
1475rm -f conftest*
1476done
1477
1478fi
1479
1480echo "$ac_t""$ac_cv_c_inline" 1>&6
1481case "$ac_cv_c_inline" in
1482 inline | yes) ;;
1483 no) cat >> confdefs.h <<\EOF
1484#define inline
1485EOF
1486 ;;
1487 *) cat >> confdefs.h <<EOF
1488#define inline $ac_cv_c_inline
1489EOF
1490 ;;
1491esac
1492
1493if test "$GCC" = "yes"; then
1494 CFLAGS="$CFLAGS -Wall"
1495fi
1496
1497# Check for some target-specific stuff
1498case "$host" in
1499*-*-aix*)
1500 AFS_LIBS="-lld"
1501 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
1502 LDFLAGS="$LDFLAGS -L/usr/local/lib"
1503 if (test "$LD" != "gcc" && test -z "$blibpath"); then
1504 blibpath="/usr/lib:/lib:/usr/local/lib"
1505 fi
1506 echo $ac_n "checking for authenticate""... $ac_c" 1>&6
1507echo "configure:1508: checking for authenticate" >&5
1508if eval "test \"`echo '$''{'ac_cv_func_authenticate'+set}'`\" = set"; then
1509 echo $ac_n "(cached) $ac_c" 1>&6
1510else
1511 cat > conftest.$ac_ext <<EOF
1512#line 1513 "configure"
1513#include "confdefs.h"
1514/* System header to define __stub macros and hopefully few prototypes,
1515 which can conflict with char authenticate(); below. */
1516#include <assert.h>
1517/* Override any gcc2 internal prototype to avoid an error. */
1518/* We use char because int might match the return type of a gcc2
1519 builtin and then its argument prototype would still apply. */
1520char authenticate();
1521
1522int main() {
1523
1524/* The GNU C library defines this for functions which it implements
1525 to always fail with ENOSYS. Some functions are actually named
1526 something starting with __ and the normal name is an alias. */
1527#if defined (__stub_authenticate) || defined (__stub___authenticate)
1528choke me
1529#else
1530authenticate();
1531#endif
1532
1533; return 0; }
1534EOF
1535if { (eval echo configure:1536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1536 rm -rf conftest*
1537 eval "ac_cv_func_authenticate=yes"
1538else
1539 echo "configure: failed program was:" >&5
1540 cat conftest.$ac_ext >&5
1541 rm -rf conftest*
1542 eval "ac_cv_func_authenticate=no"
1543fi
1544rm -f conftest*
1545fi
1546
1547if eval "test \"`echo '$ac_cv_func_'authenticate`\" = yes"; then
1548 echo "$ac_t""yes" 1>&6
1549 cat >> confdefs.h <<\EOF
1550#define WITH_AIXAUTHENTICATE 1
1551EOF
1552
1553else
1554 echo "$ac_t""no" 1>&6
1555fi
1556
1557 cat >> confdefs.h <<\EOF
1558#define BROKEN_GETADDRINFO 1
1559EOF
1560
1561 cat >> confdefs.h <<\EOF
1562#define DISABLE_LASTLOG 1
1563EOF
1564
1565 ;;
1566*-*-cygwin*)
1567 LIBS="$LIBS -lregex /usr/lib/textmode.o"
1568 cat >> confdefs.h <<\EOF
1569#define HAVE_CYGWIN 1
1570EOF
1571
1572 cat >> confdefs.h <<\EOF
1573#define DISABLE_SHADOW 1
1574EOF
1575
1576 cat >> confdefs.h <<\EOF
1577#define IPV4_DEFAULT 1
1578EOF
1579
1580 cat >> confdefs.h <<\EOF
1581#define IP_TOS_IS_BROKEN 1
1582EOF
1583
1584 cat >> confdefs.h <<\EOF
1585#define NO_X11_UNIX_SOCKETS 1
1586EOF
1587
1588 no_libsocket=1
1589 no_libnsl=1
1590 ;;
1591*-*-dgux*)
1592 cat >> confdefs.h <<\EOF
1593#define IP_TOS_IS_BROKEN 1
1594EOF
1595
1596 ;;
1597*-*-hpux10*)
1598 if test -z "$GCC"; then
1599 CFLAGS="$CFLAGS -Ae"
1600 fi
1601 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE"
1602 IPADDR_IN_DISPLAY=yes
1603 cat >> confdefs.h <<\EOF
1604#define USE_PIPES 1
1605EOF
1606
1607 cat >> confdefs.h <<\EOF
1608#define DISABLE_SHADOW 1
1609EOF
1610
1611 cat >> confdefs.h <<\EOF
1612#define DISABLE_UTMP 1
1613EOF
1614
1615 cat >> confdefs.h <<\EOF
1616#define SPT_TYPE SPT_PSTAT
1617EOF
1618
1619 LIBS="$LIBS -lsec"
1620 ;;
1621*-*-hpux11*)
1622 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE"
1623 IPADDR_IN_DISPLAY=yes
1624 cat >> confdefs.h <<\EOF
1625#define PAM_SUN_CODEBASE 1
1626EOF
1627
1628 cat >> confdefs.h <<\EOF
1629#define USE_PIPES 1
1630EOF
1631
1632 cat >> confdefs.h <<\EOF
1633#define DISABLE_SHADOW 1
1634EOF
1635
1636 cat >> confdefs.h <<\EOF
1637#define DISABLE_UTMP 1
1638EOF
1639
1640 cat >> confdefs.h <<\EOF
1641#define SPT_TYPE SPT_PSTAT
1642EOF
1643
1644 LIBS="$LIBS -lsec"
1645 ;;
1646*-*-irix5*)
1647 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
1648 LDFLAGS="$LDFLAGS"
1649 PATH="$PATH:/usr/etc"
1650 no_libsocket=1
1651 no_libnsl=1
1652 cat >> confdefs.h <<\EOF
1653#define BROKEN_INET_NTOA 1
1654EOF
1655
1656 ;;
1657*-*-irix6*)
1658 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
1659 LDFLAGS="$LDFLAGS"
1660 PATH="$PATH:/usr/etc"
1661 cat >> confdefs.h <<\EOF
1662#define WITH_IRIX_ARRAY 1
1663EOF
1664
1665 cat >> confdefs.h <<\EOF
1666#define WITH_IRIX_PROJECT 1
1667EOF
1668
1669 cat >> confdefs.h <<\EOF
1670#define WITH_IRIX_AUDIT 1
1671EOF
1672
1673 echo $ac_n "checking for jlimit_startjob""... $ac_c" 1>&6
1674echo "configure:1675: checking for jlimit_startjob" >&5
1675if eval "test \"`echo '$''{'ac_cv_func_jlimit_startjob'+set}'`\" = set"; then
1676 echo $ac_n "(cached) $ac_c" 1>&6
1677else
1678 cat > conftest.$ac_ext <<EOF
1679#line 1680 "configure"
1680#include "confdefs.h"
1681/* System header to define __stub macros and hopefully few prototypes,
1682 which can conflict with char jlimit_startjob(); below. */
1683#include <assert.h>
1684/* Override any gcc2 internal prototype to avoid an error. */
1685/* We use char because int might match the return type of a gcc2
1686 builtin and then its argument prototype would still apply. */
1687char jlimit_startjob();
1688
1689int main() {
1690
1691/* The GNU C library defines this for functions which it implements
1692 to always fail with ENOSYS. Some functions are actually named
1693 something starting with __ and the normal name is an alias. */
1694#if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob)
1695choke me
1696#else
1697jlimit_startjob();
1698#endif
1699
1700; return 0; }
1701EOF
1702if { (eval echo configure:1703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1703 rm -rf conftest*
1704 eval "ac_cv_func_jlimit_startjob=yes"
1705else
1706 echo "configure: failed program was:" >&5
1707 cat conftest.$ac_ext >&5
1708 rm -rf conftest*
1709 eval "ac_cv_func_jlimit_startjob=no"
1710fi
1711rm -f conftest*
1712fi
1713
1714if eval "test \"`echo '$ac_cv_func_'jlimit_startjob`\" = yes"; then
1715 echo "$ac_t""yes" 1>&6
1716 cat >> confdefs.h <<\EOF
1717#define WITH_IRIX_JOBS 1
1718EOF
1719
1720else
1721 echo "$ac_t""no" 1>&6
1722fi
1723
1724 no_libsocket=1
1725 no_libnsl=1
1726 cat >> confdefs.h <<\EOF
1727#define BROKEN_INET_NTOA 1
1728EOF
1729
1730 ;;
1731*-*-linux*)
1732 no_dev_ptmx=1
1733 check_for_libcrypt_later=1
1734 cat >> confdefs.h <<\EOF
1735#define DONT_TRY_OTHER_AF 1
1736EOF
1737
1738 cat >> confdefs.h <<\EOF
1739#define PAM_TTY_KLUDGE 1
1740EOF
1741
1742 inet6_default_4in6=yes
1743 ;;
1744mips-sony-bsd|mips-sony-newsos4)
1745 cat >> confdefs.h <<\EOF
1746#define HAVE_NEWS4 1
1747EOF
1748
1749 SONY=1
1750 echo $ac_n "checking for xatexit in -liberty""... $ac_c" 1>&6
1751echo "configure:1752: checking for xatexit in -liberty" >&5
1752ac_lib_var=`echo iberty'_'xatexit | sed 'y%./+-%__p_%'`
1753if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1754 echo $ac_n "(cached) $ac_c" 1>&6
1755else
1756 ac_save_LIBS="$LIBS"
1757LIBS="-liberty $LIBS"
1758cat > conftest.$ac_ext <<EOF
1759#line 1760 "configure"
1760#include "confdefs.h"
1761/* Override any gcc2 internal prototype to avoid an error. */
1762/* We use char because int might match the return type of a gcc2
1763 builtin and then its argument prototype would still apply. */
1764char xatexit();
1765
1766int main() {
1767xatexit()
1768; return 0; }
1769EOF
1770if { (eval echo configure:1771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1771 rm -rf conftest*
1772 eval "ac_cv_lib_$ac_lib_var=yes"
1773else
1774 echo "configure: failed program was:" >&5
1775 cat conftest.$ac_ext >&5
1776 rm -rf conftest*
1777 eval "ac_cv_lib_$ac_lib_var=no"
1778fi
1779rm -f conftest*
1780LIBS="$ac_save_LIBS"
1781
1782fi
1783if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1784 echo "$ac_t""yes" 1>&6
1785 cat >> confdefs.h <<\EOF
1786#define HAVE_XATEXIT 1
1787EOF
1788
1789else
1790 echo "$ac_t""no" 1>&6
1791{ echo "configure: error: *** libiberty missing - please install first or check config.log ***" 1>&2; exit 1; }
1792
1793fi
1794
1795 ;;
1796*-*-netbsd*)
1797 need_dash_r=1
1798 ;;
1799*-*-freebsd*)
1800 check_for_libcrypt_later=1
1801 ;;
1802*-next-*)
1803 conf_lastlog_location="/usr/adm/lastlog"
1804 conf_utmp_location=/etc/utmp
1805 conf_wtmp_location=/usr/adm/wtmp
1806 MAIL=/usr/spool/mail
1807 cat >> confdefs.h <<\EOF
1808#define HAVE_NEXT 1
1809EOF
1810
1811 cat >> confdefs.h <<\EOF
1812#define BROKEN_REALPATH 1
1813EOF
1814
1815 cat >> confdefs.h <<\EOF
1816#define USE_PIPES 1
1817EOF
1818
1819 cat >> confdefs.h <<\EOF
1820#define BROKEN_SAVED_UIDS 1
1821EOF
1822
1823 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
1824 CFLAGS="$CFLAGS"
1825 ;;
1826*-*-solaris*)
1827 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
1828 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib"
1829 need_dash_r=1
1830 cat >> confdefs.h <<\EOF
1831#define PAM_SUN_CODEBASE 1
1832EOF
1833
1834 # hardwire lastlog location (can't detect it on some versions)
1835 conf_lastlog_location="/var/adm/lastlog"
1836 echo $ac_n "checking for obsolete utmp and wtmp in solaris2.x""... $ac_c" 1>&6
1837echo "configure:1838: checking for obsolete utmp and wtmp in solaris2.x" >&5
1838 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
1839 if test "$sol2ver" -ge 8; then
1840 echo "$ac_t""yes" 1>&6
1841 cat >> confdefs.h <<\EOF
1842#define DISABLE_UTMP 1
1843EOF
1844
1845 cat >> confdefs.h <<\EOF
1846#define DISABLE_WTMP 1
1847EOF
1848
1849 else
1850 echo "$ac_t""no" 1>&6
1851 fi
1852 ;;
1853*-*-sunos4*)
1854 CPPFLAGS="$CPPFLAGS -DSUNOS4"
1855 for ac_func in getpwanam
1856do
1857echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1858echo "configure:1859: checking for $ac_func" >&5
1859if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1860 echo $ac_n "(cached) $ac_c" 1>&6
1861else
1862 cat > conftest.$ac_ext <<EOF
1863#line 1864 "configure"
1864#include "confdefs.h"
1865/* System header to define __stub macros and hopefully few prototypes,
1866 which can conflict with char $ac_func(); below. */
1867#include <assert.h>
1868/* Override any gcc2 internal prototype to avoid an error. */
1869/* We use char because int might match the return type of a gcc2
1870 builtin and then its argument prototype would still apply. */
1871char $ac_func();
1872
1873int main() {
1874
1875/* The GNU C library defines this for functions which it implements
1876 to always fail with ENOSYS. Some functions are actually named
1877 something starting with __ and the normal name is an alias. */
1878#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1879choke me
1880#else
1881$ac_func();
1882#endif
1883
1884; return 0; }
1885EOF
1886if { (eval echo configure:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1887 rm -rf conftest*
1888 eval "ac_cv_func_$ac_func=yes"
1889else
1890 echo "configure: failed program was:" >&5
1891 cat conftest.$ac_ext >&5
1892 rm -rf conftest*
1893 eval "ac_cv_func_$ac_func=no"
1894fi
1895rm -f conftest*
1896fi
1897
1898if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1899 echo "$ac_t""yes" 1>&6
1900 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1901 cat >> confdefs.h <<EOF
1902#define $ac_tr_func 1
1903EOF
1904
1905else
1906 echo "$ac_t""no" 1>&6
1907fi
1908done
1909
1910 cat >> confdefs.h <<\EOF
1911#define PAM_SUN_CODEBASE 1
1912EOF
1913
1914 cat >> confdefs.h <<\EOF
1915#define HAVE_BOGUS_SYS_QUEUE_H 1
1916EOF
1917
1918 conf_utmp_location=/etc/utmp
1919 conf_wtmp_location=/var/adm/wtmp
1920 conf_lastlog_location=/var/adm/lastlog
1921 cat >> confdefs.h <<\EOF
1922#define USE_PIPES 1
1923EOF
1924
1925 ;;
1926*-ncr-sysv*)
1927 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
1928 LDFLAGS="$LDFLAGS -L/usr/local/lib"
1929 LIBS="$LIBS -lc89 -lnsl -lgen -lsocket"
1930 cat >> confdefs.h <<\EOF
1931#define HAVE_BOGUS_SYS_QUEUE_H 1
1932EOF
1933
1934 ;;
1935*-sni-sysv*)
1936 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
1937 LDFLAGS="$LDFLAGS -L/usr/local/lib -L/usr/ucblib"
1938 IPADDR_IN_DISPLAY=yes
1939 cat >> confdefs.h <<\EOF
1940#define USE_PIPES 1
1941EOF
1942
1943 cat >> confdefs.h <<\EOF
1944#define IP_TOS_IS_BROKEN 1
1945EOF
1946
1947 cat >> confdefs.h <<\EOF
1948#define HAVE_BOGUS_SYS_QUEUE_H 1
1949EOF
1950
1951 LIBS="$LIBS -lgen -lnsl -lucb"
1952 ;;
1953*-*-sysv4.2*)
1954 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
1955 LDFLAGS="$LDFLAGS -L/usr/local/lib"
1956 enable_suid_ssh=no
1957 cat >> confdefs.h <<\EOF
1958#define USE_PIPES 1
1959EOF
1960
1961 ;;
1962*-*-sysv5*)
1963 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
1964 LDFLAGS="$LDFLAGS -L/usr/local/lib"
1965 enable_suid_ssh=no
1966 cat >> confdefs.h <<\EOF
1967#define USE_PIPES 1
1968EOF
1969
1970 ;;
1971*-*-sysv*)
1972 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
1973 LDFLAGS="$LDFLAGS -L/usr/local/lib"
1974 LIBS="$LIBS -lgen -lsocket"
1975 ;;
1976*-*-sco3.2v4*)
1977 CPPFLAGS="$CPPFLAGS -Dftruncate=chsize -I/usr/local/include"
1978 LDFLAGS="$LDFLAGS -L/usr/local/lib"
1979 LIBS="$LIBS -lgen -lsocket -los -lprot -lx -ltinfo -lm"
1980 rsh_path="/usr/bin/rcmd"
1981 RANLIB=true
1982 no_dev_ptmx=1
1983 cat >> confdefs.h <<\EOF
1984#define BROKEN_SYS_TERMIO_H 1
1985EOF
1986
1987 cat >> confdefs.h <<\EOF
1988#define USE_PIPES 1
1989EOF
1990
1991 cat >> confdefs.h <<\EOF
1992#define HAVE_SCO_PROTECTED_PW 1
1993EOF
1994
1995 cat >> confdefs.h <<\EOF
1996#define DISABLE_SHADOW 1
1997EOF
1998
1999 cat >> confdefs.h <<\EOF
2000#define HAVE_BOGUS_SYS_QUEUE_H 1
2001EOF
2002
2003 cat >> confdefs.h <<\EOF
2004#define BROKEN_SAVED_UIDS 1
2005EOF
2006
2007 for ac_func in getluid setluid
2008do
2009echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2010echo "configure:2011: checking for $ac_func" >&5
2011if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2012 echo $ac_n "(cached) $ac_c" 1>&6
2013else
2014 cat > conftest.$ac_ext <<EOF
2015#line 2016 "configure"
2016#include "confdefs.h"
2017/* System header to define __stub macros and hopefully few prototypes,
2018 which can conflict with char $ac_func(); below. */
2019#include <assert.h>
2020/* Override any gcc2 internal prototype to avoid an error. */
2021/* We use char because int might match the return type of a gcc2
2022 builtin and then its argument prototype would still apply. */
2023char $ac_func();
2024
2025int main() {
2026
2027/* The GNU C library defines this for functions which it implements
2028 to always fail with ENOSYS. Some functions are actually named
2029 something starting with __ and the normal name is an alias. */
2030#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2031choke me
2032#else
2033$ac_func();
2034#endif
2035
2036; return 0; }
2037EOF
2038if { (eval echo configure:2039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2039 rm -rf conftest*
2040 eval "ac_cv_func_$ac_func=yes"
2041else
2042 echo "configure: failed program was:" >&5
2043 cat conftest.$ac_ext >&5
2044 rm -rf conftest*
2045 eval "ac_cv_func_$ac_func=no"
2046fi
2047rm -f conftest*
2048fi
2049
2050if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2051 echo "$ac_t""yes" 1>&6
2052 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2053 cat >> confdefs.h <<EOF
2054#define $ac_tr_func 1
2055EOF
2056
2057else
2058 echo "$ac_t""no" 1>&6
2059fi
2060done
2061
2062 MANTYPE=man
2063 ;;
2064*-*-sco3.2v5*)
2065 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
2066 LDFLAGS="$LDFLAGS -L/usr/local/lib"
2067 LIBS="$LIBS -lprot -lx -ltinfo -lm"
2068 no_dev_ptmx=1
2069 rsh_path="/usr/bin/rcmd"
2070 cat >> confdefs.h <<\EOF
2071#define USE_PIPES 1
2072EOF
2073
2074 cat >> confdefs.h <<\EOF
2075#define HAVE_SCO_PROTECTED_PW 1
2076EOF
2077
2078 cat >> confdefs.h <<\EOF
2079#define DISABLE_SHADOW 1
2080EOF
2081
2082 cat >> confdefs.h <<\EOF
2083#define HAVE_BOGUS_SYS_QUEUE_H 1
2084EOF
2085
2086 for ac_func in getluid setluid
2087do
2088echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2089echo "configure:2090: checking for $ac_func" >&5
2090if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2091 echo $ac_n "(cached) $ac_c" 1>&6
2092else
2093 cat > conftest.$ac_ext <<EOF
2094#line 2095 "configure"
2095#include "confdefs.h"
2096/* System header to define __stub macros and hopefully few prototypes,
2097 which can conflict with char $ac_func(); below. */
2098#include <assert.h>
2099/* Override any gcc2 internal prototype to avoid an error. */
2100/* We use char because int might match the return type of a gcc2
2101 builtin and then its argument prototype would still apply. */
2102char $ac_func();
2103
2104int main() {
2105
2106/* The GNU C library defines this for functions which it implements
2107 to always fail with ENOSYS. Some functions are actually named
2108 something starting with __ and the normal name is an alias. */
2109#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2110choke me
2111#else
2112$ac_func();
2113#endif
2114
2115; return 0; }
2116EOF
2117if { (eval echo configure:2118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2118 rm -rf conftest*
2119 eval "ac_cv_func_$ac_func=yes"
2120else
2121 echo "configure: failed program was:" >&5
2122 cat conftest.$ac_ext >&5
2123 rm -rf conftest*
2124 eval "ac_cv_func_$ac_func=no"
2125fi
2126rm -f conftest*
2127fi
2128
2129if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2130 echo "$ac_t""yes" 1>&6
2131 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2132 cat >> confdefs.h <<EOF
2133#define $ac_tr_func 1
2134EOF
2135
2136else
2137 echo "$ac_t""no" 1>&6
2138fi
2139done
2140
2141 MANTYPE=man
2142 ;;
2143*-dec-osf*)
2144 if test ! -z "USE_SIA" ; then
2145 echo $ac_n "checking for Digital Unix Security Integration Architecture""... $ac_c" 1>&6
2146echo "configure:2147: checking for Digital Unix Security Integration Architecture" >&5
2147 if test -f /etc/sia/matrix.conf; then
2148 echo "$ac_t""yes" 1>&6
2149 cat >> confdefs.h <<\EOF
2150#define HAVE_OSF_SIA 1
2151EOF
2152
2153 cat >> confdefs.h <<\EOF
2154#define DISABLE_LOGIN 1
2155EOF
2156
2157 LIBS="$LIBS -lsecurity -ldb -lm -laud"
2158 else
2159 echo "$ac_t""no" 1>&6
2160 fi
2161 fi
2162 ;;
2163esac
2164
2165# Allow user to specify flags
2166# Check whether --with-cflags or --without-cflags was given.
2167if test "${with_cflags+set}" = set; then
2168 withval="$with_cflags"
2169
2170 if test "x$withval" != "xno" ; then
2171 CFLAGS="$CFLAGS $withval"
2172 fi
2173
2174
2175fi
2176
2177# Check whether --with-cppflags or --without-cppflags was given.
2178if test "${with_cppflags+set}" = set; then
2179 withval="$with_cppflags"
2180
2181 if test "x$withval" != "xno"; then
2182 CPPFLAGS="$CPPFLAGS $withval"
2183 fi
2184
2185
2186fi
2187
2188# Check whether --with-ldflags or --without-ldflags was given.
2189if test "${with_ldflags+set}" = set; then
2190 withval="$with_ldflags"
2191
2192 if test "x$withval" != "xno" ; then
2193 LDFLAGS="$LDFLAGS $withval"
2194 fi
2195
2196
2197fi
2198
2199# Check whether --with-libs or --without-libs was given.
2200if test "${with_libs+set}" = set; then
2201 withval="$with_libs"
2202
2203 if test "x$withval" != "xno" ; then
2204 LIBS="$LIBS $withval"
2205 fi
2206
2207
2208fi
2209
2210
2211# Check whether --with-pcre or --without-pcre was given.
2212if test "${with_pcre+set}" = set; then
2213 withval="$with_pcre"
2214
2215
2216 echo $ac_n "checking for pcre_info in -lpcre""... $ac_c" 1>&6
2217echo "configure:2218: checking for pcre_info in -lpcre" >&5
2218ac_lib_var=`echo pcre'_'pcre_info | sed 'y%./+-%__p_%'`
2219if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2220 echo $ac_n "(cached) $ac_c" 1>&6
2221else
2222 ac_save_LIBS="$LIBS"
2223LIBS="-lpcre $LIBS"
2224cat > conftest.$ac_ext <<EOF
2225#line 2226 "configure"
2226#include "confdefs.h"
2227/* Override any gcc2 internal prototype to avoid an error. */
2228/* We use char because int might match the return type of a gcc2
2229 builtin and then its argument prototype would still apply. */
2230char pcre_info();
2231
2232int main() {
2233pcre_info()
2234; return 0; }
2235EOF
2236if { (eval echo configure:2237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2237 rm -rf conftest*
2238 eval "ac_cv_lib_$ac_lib_var=yes"
2239else
2240 echo "configure: failed program was:" >&5
2241 cat conftest.$ac_ext >&5
2242 rm -rf conftest*
2243 eval "ac_cv_lib_$ac_lib_var=no"
2244fi
2245rm -f conftest*
2246LIBS="$ac_save_LIBS"
2247
2248fi
2249if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2250 echo "$ac_t""yes" 1>&6
2251
2252 cat >> confdefs.h <<\EOF
2253#define HAVE_LIBPCRE 1
2254EOF
2255
2256 LIBS="$LIBS -lpcreposix -lpcre"
2257 no_comp_check="yes"
2258
2259else
2260 echo "$ac_t""no" 1>&6
2261 { echo "configure: error: *** Can not locate pcre libraries." 1>&2; exit 1; }
2262
2263fi
2264
2265
2266
2267fi
2268
2269
2270# Checks for libraries.
2271if test -z "$no_libnsl" ; then
2272 echo $ac_n "checking for yp_match in -lnsl""... $ac_c" 1>&6
2273echo "configure:2274: checking for yp_match in -lnsl" >&5
2274ac_lib_var=`echo nsl'_'yp_match | sed 'y%./+-%__p_%'`
2275if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2276 echo $ac_n "(cached) $ac_c" 1>&6
2277else
2278 ac_save_LIBS="$LIBS"
2279LIBS="-lnsl $LIBS"
2280cat > conftest.$ac_ext <<EOF
2281#line 2282 "configure"
2282#include "confdefs.h"
2283/* Override any gcc2 internal prototype to avoid an error. */
2284/* We use char because int might match the return type of a gcc2
2285 builtin and then its argument prototype would still apply. */
2286char yp_match();
2287
2288int main() {
2289yp_match()
2290; return 0; }
2291EOF
2292if { (eval echo configure:2293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2293 rm -rf conftest*
2294 eval "ac_cv_lib_$ac_lib_var=yes"
2295else
2296 echo "configure: failed program was:" >&5
2297 cat conftest.$ac_ext >&5
2298 rm -rf conftest*
2299 eval "ac_cv_lib_$ac_lib_var=no"
2300fi
2301rm -f conftest*
2302LIBS="$ac_save_LIBS"
2303
2304fi
2305if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2306 echo "$ac_t""yes" 1>&6
2307 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2308 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2309 cat >> confdefs.h <<EOF
2310#define $ac_tr_lib 1
2311EOF
2312
2313 LIBS="-lnsl $LIBS"
2314
2315else
2316 echo "$ac_t""no" 1>&6
2317fi
2318
2319fi
2320if test -z "$no_libsocket" ; then
2321 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2322echo "configure:2323: checking for main in -lsocket" >&5
2323ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2324if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2325 echo $ac_n "(cached) $ac_c" 1>&6
2326else
2327 ac_save_LIBS="$LIBS"
2328LIBS="-lsocket $LIBS"
2329cat > conftest.$ac_ext <<EOF
2330#line 2331 "configure"
2331#include "confdefs.h"
2332
2333int main() {
2334main()
2335; return 0; }
2336EOF
2337if { (eval echo configure:2338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2338 rm -rf conftest*
2339 eval "ac_cv_lib_$ac_lib_var=yes"
2340else
2341 echo "configure: failed program was:" >&5
2342 cat conftest.$ac_ext >&5
2343 rm -rf conftest*
2344 eval "ac_cv_lib_$ac_lib_var=no"
2345fi
2346rm -f conftest*
2347LIBS="$ac_save_LIBS"
2348
2349fi
2350if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2351 echo "$ac_t""yes" 1>&6
2352 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2353 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2354 cat >> confdefs.h <<EOF
2355#define $ac_tr_lib 1
2356EOF
2357
2358 LIBS="-lsocket $LIBS"
2359
2360else
2361 echo "$ac_t""no" 1>&6
2362fi
2363
2364fi
2365
2366echo $ac_n "checking for innetgr in -lrpc""... $ac_c" 1>&6
2367echo "configure:2368: checking for innetgr in -lrpc" >&5
2368ac_lib_var=`echo rpc'_'innetgr | sed 'y%./+-%__p_%'`
2369if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2370 echo $ac_n "(cached) $ac_c" 1>&6
2371else
2372 ac_save_LIBS="$LIBS"
2373LIBS="-lrpc -lyp -lrpc $LIBS"
2374cat > conftest.$ac_ext <<EOF
2375#line 2376 "configure"
2376#include "confdefs.h"
2377/* Override any gcc2 internal prototype to avoid an error. */
2378/* We use char because int might match the return type of a gcc2
2379 builtin and then its argument prototype would still apply. */
2380char innetgr();
2381
2382int main() {
2383innetgr()
2384; return 0; }
2385EOF
2386if { (eval echo configure:2387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2387 rm -rf conftest*
2388 eval "ac_cv_lib_$ac_lib_var=yes"
2389else
2390 echo "configure: failed program was:" >&5
2391 cat conftest.$ac_ext >&5
2392 rm -rf conftest*
2393 eval "ac_cv_lib_$ac_lib_var=no"
2394fi
2395rm -f conftest*
2396LIBS="$ac_save_LIBS"
2397
2398fi
2399if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2400 echo "$ac_t""yes" 1>&6
2401 LIBS="-lrpc -lyp -lrpc $LIBS"
2402else
2403 echo "$ac_t""no" 1>&6
2404fi
2405
2406
2407echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
2408echo "configure:2409: checking for getspnam in -lgen" >&5
2409ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
2410if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2411 echo $ac_n "(cached) $ac_c" 1>&6
2412else
2413 ac_save_LIBS="$LIBS"
2414LIBS="-lgen $LIBS"
2415cat > conftest.$ac_ext <<EOF
2416#line 2417 "configure"
2417#include "confdefs.h"
2418/* Override any gcc2 internal prototype to avoid an error. */
2419/* We use char because int might match the return type of a gcc2
2420 builtin and then its argument prototype would still apply. */
2421char getspnam();
2422
2423int main() {
2424getspnam()
2425; return 0; }
2426EOF
2427if { (eval echo configure:2428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2428 rm -rf conftest*
2429 eval "ac_cv_lib_$ac_lib_var=yes"
2430else
2431 echo "configure: failed program was:" >&5
2432 cat conftest.$ac_ext >&5
2433 rm -rf conftest*
2434 eval "ac_cv_lib_$ac_lib_var=no"
2435fi
2436rm -f conftest*
2437LIBS="$ac_save_LIBS"
2438
2439fi
2440if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2441 echo "$ac_t""yes" 1>&6
2442 LIBS="$LIBS -lgen"
2443else
2444 echo "$ac_t""no" 1>&6
2445fi
2446
2447echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
2448echo "configure:2449: checking for deflate in -lz" >&5
2449ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
2450if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2451 echo $ac_n "(cached) $ac_c" 1>&6
2452else
2453 ac_save_LIBS="$LIBS"
2454LIBS="-lz $LIBS"
2455cat > conftest.$ac_ext <<EOF
2456#line 2457 "configure"
2457#include "confdefs.h"
2458/* Override any gcc2 internal prototype to avoid an error. */
2459/* We use char because int might match the return type of a gcc2
2460 builtin and then its argument prototype would still apply. */
2461char deflate();
2462
2463int main() {
2464deflate()
2465; return 0; }
2466EOF
2467if { (eval echo configure:2468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2468 rm -rf conftest*
2469 eval "ac_cv_lib_$ac_lib_var=yes"
2470else
2471 echo "configure: failed program was:" >&5
2472 cat conftest.$ac_ext >&5
2473 rm -rf conftest*
2474 eval "ac_cv_lib_$ac_lib_var=no"
2475fi
2476rm -f conftest*
2477LIBS="$ac_save_LIBS"
2478
2479fi
2480if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2481 echo "$ac_t""yes" 1>&6
2482 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2483 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2484 cat >> confdefs.h <<EOF
2485#define $ac_tr_lib 1
2486EOF
2487
2488 LIBS="-lz $LIBS"
2489
2490else
2491 echo "$ac_t""no" 1>&6
2492{ echo "configure: error: *** zlib missing - please install first or check config.log ***" 1>&2; exit 1; }
2493fi
2494
2495echo $ac_n "checking for login in -lutil""... $ac_c" 1>&6
2496echo "configure:2497: checking for login in -lutil" >&5
2497ac_lib_var=`echo util'_'login | sed 'y%./+-%__p_%'`
2498if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2499 echo $ac_n "(cached) $ac_c" 1>&6
2500else
2501 ac_save_LIBS="$LIBS"
2502LIBS="-lutil $LIBS"
2503cat > conftest.$ac_ext <<EOF
2504#line 2505 "configure"
2505#include "confdefs.h"
2506/* Override any gcc2 internal prototype to avoid an error. */
2507/* We use char because int might match the return type of a gcc2
2508 builtin and then its argument prototype would still apply. */
2509char login();
2510
2511int main() {
2512login()
2513; return 0; }
2514EOF
2515if { (eval echo configure:2516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2516 rm -rf conftest*
2517 eval "ac_cv_lib_$ac_lib_var=yes"
2518else
2519 echo "configure: failed program was:" >&5
2520 cat conftest.$ac_ext >&5
2521 rm -rf conftest*
2522 eval "ac_cv_lib_$ac_lib_var=no"
2523fi
2524rm -f conftest*
2525LIBS="$ac_save_LIBS"
2526
2527fi
2528if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2529 echo "$ac_t""yes" 1>&6
2530 cat >> confdefs.h <<\EOF
2531#define HAVE_LIBUTIL_LOGIN 1
2532EOF
2533 LIBS="$LIBS -lutil"
2534else
2535 echo "$ac_t""no" 1>&6
2536fi
2537
2538
2539# We don't want to check if we did an pcre override.
2540if test -z "$no_comp_check" ; then
2541 echo $ac_n "checking for regcomp""... $ac_c" 1>&6
2542echo "configure:2543: checking for regcomp" >&5
2543if eval "test \"`echo '$''{'ac_cv_func_regcomp'+set}'`\" = set"; then
2544 echo $ac_n "(cached) $ac_c" 1>&6
2545else
2546 cat > conftest.$ac_ext <<EOF
2547#line 2548 "configure"
2548#include "confdefs.h"
2549/* System header to define __stub macros and hopefully few prototypes,
2550 which can conflict with char regcomp(); below. */
2551#include <assert.h>
2552/* Override any gcc2 internal prototype to avoid an error. */
2553/* We use char because int might match the return type of a gcc2
2554 builtin and then its argument prototype would still apply. */
2555char regcomp();
2556
2557int main() {
2558
2559/* The GNU C library defines this for functions which it implements
2560 to always fail with ENOSYS. Some functions are actually named
2561 something starting with __ and the normal name is an alias. */
2562#if defined (__stub_regcomp) || defined (__stub___regcomp)
2563choke me
2564#else
2565regcomp();
2566#endif
2567
2568; return 0; }
2569EOF
2570if { (eval echo configure:2571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2571 rm -rf conftest*
2572 eval "ac_cv_func_regcomp=yes"
2573else
2574 echo "configure: failed program was:" >&5
2575 cat conftest.$ac_ext >&5
2576 rm -rf conftest*
2577 eval "ac_cv_func_regcomp=no"
2578fi
2579rm -f conftest*
2580fi
2581
2582if eval "test \"`echo '$ac_cv_func_'regcomp`\" = yes"; then
2583 echo "$ac_t""yes" 1>&6
2584 cat >> confdefs.h <<\EOF
2585#define HAVE_REGCOMP 1
2586EOF
2587
2588else
2589 echo "$ac_t""no" 1>&6
2590
2591 echo $ac_n "checking for pcre_info in -lpcre""... $ac_c" 1>&6
2592echo "configure:2593: checking for pcre_info in -lpcre" >&5
2593ac_lib_var=`echo pcre'_'pcre_info | sed 'y%./+-%__p_%'`
2594if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2595 echo $ac_n "(cached) $ac_c" 1>&6
2596else
2597 ac_save_LIBS="$LIBS"
2598LIBS="-lpcre $LIBS"
2599cat > conftest.$ac_ext <<EOF
2600#line 2601 "configure"
2601#include "confdefs.h"
2602/* Override any gcc2 internal prototype to avoid an error. */
2603/* We use char because int might match the return type of a gcc2
2604 builtin and then its argument prototype would still apply. */
2605char pcre_info();
2606
2607int main() {
2608pcre_info()
2609; return 0; }
2610EOF
2611if { (eval echo configure:2612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2612 rm -rf conftest*
2613 eval "ac_cv_lib_$ac_lib_var=yes"
2614else
2615 echo "configure: failed program was:" >&5
2616 cat conftest.$ac_ext >&5
2617 rm -rf conftest*
2618 eval "ac_cv_lib_$ac_lib_var=no"
2619fi
2620rm -f conftest*
2621LIBS="$ac_save_LIBS"
2622
2623fi
2624if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2625 echo "$ac_t""yes" 1>&6
2626
2627 cat >> confdefs.h <<\EOF
2628#define HAVE_LIBPCRE 1
2629EOF
2630
2631 LIBS="$LIBS -lpcreposix -lpcre"
2632
2633else
2634 echo "$ac_t""no" 1>&6
2635
2636 { echo "configure: error: *** No regex library found." 1>&2; exit 1; }
2637
2638fi
2639
2640
2641
2642fi
2643
2644fi
2645
2646echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
2647echo "configure:2648: checking for strcasecmp" >&5
2648if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
2649 echo $ac_n "(cached) $ac_c" 1>&6
2650else
2651 cat > conftest.$ac_ext <<EOF
2652#line 2653 "configure"
2653#include "confdefs.h"
2654/* System header to define __stub macros and hopefully few prototypes,
2655 which can conflict with char strcasecmp(); below. */
2656#include <assert.h>
2657/* Override any gcc2 internal prototype to avoid an error. */
2658/* We use char because int might match the return type of a gcc2
2659 builtin and then its argument prototype would still apply. */
2660char strcasecmp();
2661
2662int main() {
2663
2664/* The GNU C library defines this for functions which it implements
2665 to always fail with ENOSYS. Some functions are actually named
2666 something starting with __ and the normal name is an alias. */
2667#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
2668choke me
2669#else
2670strcasecmp();
2671#endif
2672
2673; return 0; }
2674EOF
2675if { (eval echo configure:2676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2676 rm -rf conftest*
2677 eval "ac_cv_func_strcasecmp=yes"
2678else
2679 echo "configure: failed program was:" >&5
2680 cat conftest.$ac_ext >&5
2681 rm -rf conftest*
2682 eval "ac_cv_func_strcasecmp=no"
2683fi
2684rm -f conftest*
2685fi
2686
2687if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
2688 echo "$ac_t""yes" 1>&6
2689 :
2690else
2691 echo "$ac_t""no" 1>&6
2692 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
2693echo "configure:2694: checking for strcasecmp in -lresolv" >&5
2694ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
2695if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2696 echo $ac_n "(cached) $ac_c" 1>&6
2697else
2698 ac_save_LIBS="$LIBS"
2699LIBS="-lresolv $LIBS"
2700cat > conftest.$ac_ext <<EOF
2701#line 2702 "configure"
2702#include "confdefs.h"
2703/* Override any gcc2 internal prototype to avoid an error. */
2704/* We use char because int might match the return type of a gcc2
2705 builtin and then its argument prototype would still apply. */
2706char strcasecmp();
2707
2708int main() {
2709strcasecmp()
2710; return 0; }
2711EOF
2712if { (eval echo configure:2713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2713 rm -rf conftest*
2714 eval "ac_cv_lib_$ac_lib_var=yes"
2715else
2716 echo "configure: failed program was:" >&5
2717 cat conftest.$ac_ext >&5
2718 rm -rf conftest*
2719 eval "ac_cv_lib_$ac_lib_var=no"
2720fi
2721rm -f conftest*
2722LIBS="$ac_save_LIBS"
2723
2724fi
2725if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2726 echo "$ac_t""yes" 1>&6
2727 LIBS="$LIBS -lresolv"
2728else
2729 echo "$ac_t""no" 1>&6
2730fi
2731
2732
2733fi
2734
2735echo $ac_n "checking for utimes""... $ac_c" 1>&6
2736echo "configure:2737: checking for utimes" >&5
2737if eval "test \"`echo '$''{'ac_cv_func_utimes'+set}'`\" = set"; then
2738 echo $ac_n "(cached) $ac_c" 1>&6
2739else
2740 cat > conftest.$ac_ext <<EOF
2741#line 2742 "configure"
2742#include "confdefs.h"
2743/* System header to define __stub macros and hopefully few prototypes,
2744 which can conflict with char utimes(); below. */
2745#include <assert.h>
2746/* Override any gcc2 internal prototype to avoid an error. */
2747/* We use char because int might match the return type of a gcc2
2748 builtin and then its argument prototype would still apply. */
2749char utimes();
2750
2751int main() {
2752
2753/* The GNU C library defines this for functions which it implements
2754 to always fail with ENOSYS. Some functions are actually named
2755 something starting with __ and the normal name is an alias. */
2756#if defined (__stub_utimes) || defined (__stub___utimes)
2757choke me
2758#else
2759utimes();
2760#endif
2761
2762; return 0; }
2763EOF
2764if { (eval echo configure:2765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2765 rm -rf conftest*
2766 eval "ac_cv_func_utimes=yes"
2767else
2768 echo "configure: failed program was:" >&5
2769 cat conftest.$ac_ext >&5
2770 rm -rf conftest*
2771 eval "ac_cv_func_utimes=no"
2772fi
2773rm -f conftest*
2774fi
2775
2776if eval "test \"`echo '$ac_cv_func_'utimes`\" = yes"; then
2777 echo "$ac_t""yes" 1>&6
2778 :
2779else
2780 echo "$ac_t""no" 1>&6
2781 echo $ac_n "checking for utimes in -lc89""... $ac_c" 1>&6
2782echo "configure:2783: checking for utimes in -lc89" >&5
2783ac_lib_var=`echo c89'_'utimes | sed 'y%./+-%__p_%'`
2784if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2785 echo $ac_n "(cached) $ac_c" 1>&6
2786else
2787 ac_save_LIBS="$LIBS"
2788LIBS="-lc89 $LIBS"
2789cat > conftest.$ac_ext <<EOF
2790#line 2791 "configure"
2791#include "confdefs.h"
2792/* Override any gcc2 internal prototype to avoid an error. */
2793/* We use char because int might match the return type of a gcc2
2794 builtin and then its argument prototype would still apply. */
2795char utimes();
2796
2797int main() {
2798utimes()
2799; return 0; }
2800EOF
2801if { (eval echo configure:2802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2802 rm -rf conftest*
2803 eval "ac_cv_lib_$ac_lib_var=yes"
2804else
2805 echo "configure: failed program was:" >&5
2806 cat conftest.$ac_ext >&5
2807 rm -rf conftest*
2808 eval "ac_cv_lib_$ac_lib_var=no"
2809fi
2810rm -f conftest*
2811LIBS="$ac_save_LIBS"
2812
2813fi
2814if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2815 echo "$ac_t""yes" 1>&6
2816 LIBS="$LIBS -lc89"
2817else
2818 echo "$ac_t""no" 1>&6
2819fi
2820
2821
2822fi
2823
2824
2825echo $ac_n "checking for strftime""... $ac_c" 1>&6
2826echo "configure:2827: checking for strftime" >&5
2827if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
2828 echo $ac_n "(cached) $ac_c" 1>&6
2829else
2830 cat > conftest.$ac_ext <<EOF
2831#line 2832 "configure"
2832#include "confdefs.h"
2833/* System header to define __stub macros and hopefully few prototypes,
2834 which can conflict with char strftime(); below. */
2835#include <assert.h>
2836/* Override any gcc2 internal prototype to avoid an error. */
2837/* We use char because int might match the return type of a gcc2
2838 builtin and then its argument prototype would still apply. */
2839char strftime();
2840
2841int main() {
2842
2843/* The GNU C library defines this for functions which it implements
2844 to always fail with ENOSYS. Some functions are actually named
2845 something starting with __ and the normal name is an alias. */
2846#if defined (__stub_strftime) || defined (__stub___strftime)
2847choke me
2848#else
2849strftime();
2850#endif
2851
2852; return 0; }
2853EOF
2854if { (eval echo configure:2855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2855 rm -rf conftest*
2856 eval "ac_cv_func_strftime=yes"
2857else
2858 echo "configure: failed program was:" >&5
2859 cat conftest.$ac_ext >&5
2860 rm -rf conftest*
2861 eval "ac_cv_func_strftime=no"
2862fi
2863rm -f conftest*
2864fi
2865
2866if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
2867 echo "$ac_t""yes" 1>&6
2868 cat >> confdefs.h <<\EOF
2869#define HAVE_STRFTIME 1
2870EOF
2871
2872else
2873 echo "$ac_t""no" 1>&6
2874# strftime is in -lintl on SCO UNIX.
2875echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
2876echo "configure:2877: checking for strftime in -lintl" >&5
2877ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
2878if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2879 echo $ac_n "(cached) $ac_c" 1>&6
2880else
2881 ac_save_LIBS="$LIBS"
2882LIBS="-lintl $LIBS"
2883cat > conftest.$ac_ext <<EOF
2884#line 2885 "configure"
2885#include "confdefs.h"
2886/* Override any gcc2 internal prototype to avoid an error. */
2887/* We use char because int might match the return type of a gcc2
2888 builtin and then its argument prototype would still apply. */
2889char strftime();
2890
2891int main() {
2892strftime()
2893; return 0; }
2894EOF
2895if { (eval echo configure:2896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2896 rm -rf conftest*
2897 eval "ac_cv_lib_$ac_lib_var=yes"
2898else
2899 echo "configure: failed program was:" >&5
2900 cat conftest.$ac_ext >&5
2901 rm -rf conftest*
2902 eval "ac_cv_lib_$ac_lib_var=no"
2903fi
2904rm -f conftest*
2905LIBS="$ac_save_LIBS"
2906
2907fi
2908if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2909 echo "$ac_t""yes" 1>&6
2910 cat >> confdefs.h <<\EOF
2911#define HAVE_STRFTIME 1
2912EOF
2913
2914LIBS="-lintl $LIBS"
2915else
2916 echo "$ac_t""no" 1>&6
2917fi
2918
2919fi
2920
2921
2922# Checks for header files.
2923for ac_hdr in bstring.h crypt.h endian.h floatingpoint.h getopt.h glob.h lastlog.h limits.h login.h login_cap.h maillock.h netdb.h netgroup.h netinet/in_systm.h paths.h poll.h pty.h regex.h shadow.h security/pam_appl.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h sys/poll.h sys/queue.h sys/select.h sys/stat.h sys/stropts.h sys/sysmacros.h sys/time.h sys/ttcompat.h sys/un.h stddef.h time.h ttyent.h usersec.h util.h utime.h utmp.h utmpx.h vis.h
2924do
2925ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2926echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2927echo "configure:2928: checking for $ac_hdr" >&5
2928if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2929 echo $ac_n "(cached) $ac_c" 1>&6
2930else
2931 cat > conftest.$ac_ext <<EOF
2932#line 2933 "configure"
2933#include "confdefs.h"
2934#include <$ac_hdr>
2935EOF
2936ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2937{ (eval echo configure:2938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2938ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2939if test -z "$ac_err"; then
2940 rm -rf conftest*
2941 eval "ac_cv_header_$ac_safe=yes"
2942else
2943 echo "$ac_err" >&5
2944 echo "configure: failed program was:" >&5
2945 cat conftest.$ac_ext >&5
2946 rm -rf conftest*
2947 eval "ac_cv_header_$ac_safe=no"
2948fi
2949rm -f conftest*
2950fi
2951if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2952 echo "$ac_t""yes" 1>&6
2953 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2954 cat >> confdefs.h <<EOF
2955#define $ac_tr_hdr 1
2956EOF
2957
2958else
2959 echo "$ac_t""no" 1>&6
2960fi
2961done
2962
2963
2964# Check for ALTDIRFUNC glob() extension
2965echo $ac_n "checking for GLOB_ALTDIRFUNC support""... $ac_c" 1>&6
2966echo "configure:2967: checking for GLOB_ALTDIRFUNC support" >&5
2967cat > conftest.$ac_ext <<EOF
2968#line 2969 "configure"
2969#include "confdefs.h"
2970
2971 #include <glob.h>
2972 #ifdef GLOB_ALTDIRFUNC
2973 FOUNDIT
2974 #endif
2975
2976EOF
2977if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2978 egrep "FOUNDIT" >/dev/null 2>&1; then
2979 rm -rf conftest*
2980
2981 cat >> confdefs.h <<\EOF
2982#define GLOB_HAS_ALTDIRFUNC 1
2983EOF
2984
2985 echo "$ac_t""yes" 1>&6
2986
2987else
2988 rm -rf conftest*
2989
2990 echo "$ac_t""no" 1>&6
2991
2992
2993fi
2994rm -f conftest*
2995
2996
2997# Check for g.gl_matchc glob() extension
2998echo $ac_n "checking for gl_matchc field in glob_t""... $ac_c" 1>&6
2999echo "configure:3000: checking for gl_matchc field in glob_t" >&5
3000cat > conftest.$ac_ext <<EOF
3001#line 3002 "configure"
3002#include "confdefs.h"
3003
3004 #include <glob.h>
3005 int main(void){glob_t g; g.gl_matchc = 1;}
3006
3007EOF
3008if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3009 egrep "FOUNDIT" >/dev/null 2>&1; then
3010 rm -rf conftest*
3011
3012 cat >> confdefs.h <<\EOF
3013#define GLOB_HAS_GL_MATCHC 1
3014EOF
3015
3016 echo "$ac_t""yes" 1>&6
3017
3018else
3019 rm -rf conftest*
3020
3021 echo "$ac_t""no" 1>&6
3022
3023
3024fi
3025rm -f conftest*
3026
3027
3028echo $ac_n "checking whether struct dirent allocates space for d_name""... $ac_c" 1>&6
3029echo "configure:3030: checking whether struct dirent allocates space for d_name" >&5
3030if test "$cross_compiling" = yes; then
3031 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3032else
3033 cat > conftest.$ac_ext <<EOF
3034#line 3035 "configure"
3035#include "confdefs.h"
3036
3037#include <sys/types.h>
3038#include <dirent.h>
3039int main(void){struct dirent d;return(sizeof(d.d_name)<=sizeof(char));}
3040
3041EOF
3042if { (eval echo configure:3043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3043then
3044 echo "$ac_t""yes" 1>&6
3045else
3046 echo "configure: failed program was:" >&5
3047 cat conftest.$ac_ext >&5
3048 rm -fr conftest*
3049
3050 echo "$ac_t""no" 1>&6
3051 cat >> confdefs.h <<\EOF
3052#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
3053EOF
3054
3055
3056
3057fi
3058rm -fr conftest*
3059fi
3060
3061
3062# Check whether user wants S/Key support
3063SKEY_MSG="no"
3064# Check whether --with-skey or --without-skey was given.
3065if test "${with_skey+set}" = set; then
3066 withval="$with_skey"
3067
3068 if test "x$withval" != "xno" ; then
3069
3070 if test "x$withval" != "xyes" ; then
3071 CPPFLAGS="$CPPFLAGS -I${withval}/include"
3072 LDFLAGS="$LDFLAGS -L${withval}/lib"
3073 fi
3074
3075 cat >> confdefs.h <<\EOF
3076#define SKEY 1
3077EOF
3078
3079 LIBS="-lskey $LIBS"
3080 SKEY_MSG="yes"
3081
3082 echo $ac_n "checking for skey_keyinfo""... $ac_c" 1>&6
3083echo "configure:3084: checking for skey_keyinfo" >&5
3084if eval "test \"`echo '$''{'ac_cv_func_skey_keyinfo'+set}'`\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6
3086else
3087 cat > conftest.$ac_ext <<EOF
3088#line 3089 "configure"
3089#include "confdefs.h"
3090/* System header to define __stub macros and hopefully few prototypes,
3091 which can conflict with char skey_keyinfo(); below. */
3092#include <assert.h>
3093/* Override any gcc2 internal prototype to avoid an error. */
3094/* We use char because int might match the return type of a gcc2
3095 builtin and then its argument prototype would still apply. */
3096char skey_keyinfo();
3097
3098int main() {
3099
3100/* The GNU C library defines this for functions which it implements
3101 to always fail with ENOSYS. Some functions are actually named
3102 something starting with __ and the normal name is an alias. */
3103#if defined (__stub_skey_keyinfo) || defined (__stub___skey_keyinfo)
3104choke me
3105#else
3106skey_keyinfo();
3107#endif
3108
3109; return 0; }
3110EOF
3111if { (eval echo configure:3112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3112 rm -rf conftest*
3113 eval "ac_cv_func_skey_keyinfo=yes"
3114else
3115 echo "configure: failed program was:" >&5
3116 cat conftest.$ac_ext >&5
3117 rm -rf conftest*
3118 eval "ac_cv_func_skey_keyinfo=no"
3119fi
3120rm -f conftest*
3121fi
3122
3123if eval "test \"`echo '$ac_cv_func_'skey_keyinfo`\" = yes"; then
3124 echo "$ac_t""yes" 1>&6
3125 :
3126else
3127 echo "$ac_t""no" 1>&6
3128
3129 { echo "configure: error: ** Incomplete or missing s/key libraries." 1>&2; exit 1; }
3130
3131fi
3132
3133 fi
3134
3135
3136fi
3137
3138
3139# Check whether user wants TCP wrappers support
3140TCPW_MSG="no"
3141# Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
3142if test "${with_tcp_wrappers+set}" = set; then
3143 withval="$with_tcp_wrappers"
3144
3145 if test "x$withval" != "xno" ; then
3146 saved_LIBS="$LIBS"
3147 LIBS="-lwrap $LIBS"
3148 echo $ac_n "checking for libwrap""... $ac_c" 1>&6
3149echo "configure:3150: checking for libwrap" >&5
3150 cat > conftest.$ac_ext <<EOF
3151#line 3152 "configure"
3152#include "confdefs.h"
3153
3154#include <tcpd.h>
3155 int deny_severity = 0, allow_severity = 0;
3156
3157int main() {
3158hosts_access(0);
3159; return 0; }
3160EOF
3161if { (eval echo configure:3162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3162 rm -rf conftest*
3163
3164 echo "$ac_t""yes" 1>&6
3165 cat >> confdefs.h <<\EOF
3166#define LIBWRAP 1
3167EOF
3168
3169 TCPW_MSG="yes"
3170
3171else
3172 echo "configure: failed program was:" >&5
3173 cat conftest.$ac_ext >&5
3174 rm -rf conftest*
3175
3176 { echo "configure: error: *** libwrap missing" 1>&2; exit 1; }
3177
3178
3179fi
3180rm -f conftest*
3181 fi
3182
3183
3184fi
3185
3186
3187for ac_func in arc4random atexit b64_ntop bcopy bindresvport_sa clock fchown fchmod freeaddrinfo futimes gai_strerror getcwd getaddrinfo getgrouplist getnameinfo getrlimit getrusage getttyent getusershell glob inet_aton inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove mkdtemp on_exit openpty realpath rresvport_af setdtablesize setenv setegid seteuid setlogin setproctitle setresgid setreuid setrlimit setsid sigaction sigvec snprintf strerror strlcat strlcpy strmode strsep strtok_r sysconf tcgetpgrp utimes vsnprintf vhangup vis waitpid _getpty __b64_ntop
3188do
3189echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3190echo "configure:3191: checking for $ac_func" >&5
3191if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3192 echo $ac_n "(cached) $ac_c" 1>&6
3193else
3194 cat > conftest.$ac_ext <<EOF
3195#line 3196 "configure"
3196#include "confdefs.h"
3197/* System header to define __stub macros and hopefully few prototypes,
3198 which can conflict with char $ac_func(); below. */
3199#include <assert.h>
3200/* Override any gcc2 internal prototype to avoid an error. */
3201/* We use char because int might match the return type of a gcc2
3202 builtin and then its argument prototype would still apply. */
3203char $ac_func();
3204
3205int main() {
3206
3207/* The GNU C library defines this for functions which it implements
3208 to always fail with ENOSYS. Some functions are actually named
3209 something starting with __ and the normal name is an alias. */
3210#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3211choke me
3212#else
3213$ac_func();
3214#endif
3215
3216; return 0; }
3217EOF
3218if { (eval echo configure:3219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3219 rm -rf conftest*
3220 eval "ac_cv_func_$ac_func=yes"
3221else
3222 echo "configure: failed program was:" >&5
3223 cat conftest.$ac_ext >&5
3224 rm -rf conftest*
3225 eval "ac_cv_func_$ac_func=no"
3226fi
3227rm -f conftest*
3228fi
3229
3230if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3231 echo "$ac_t""yes" 1>&6
3232 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3233 cat >> confdefs.h <<EOF
3234#define $ac_tr_func 1
3235EOF
3236
3237else
3238 echo "$ac_t""no" 1>&6
3239fi
3240done
3241
3242for ac_func in gettimeofday time
3243do
3244echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3245echo "configure:3246: checking for $ac_func" >&5
3246if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3247 echo $ac_n "(cached) $ac_c" 1>&6
3248else
3249 cat > conftest.$ac_ext <<EOF
3250#line 3251 "configure"
3251#include "confdefs.h"
3252/* System header to define __stub macros and hopefully few prototypes,
3253 which can conflict with char $ac_func(); below. */
3254#include <assert.h>
3255/* Override any gcc2 internal prototype to avoid an error. */
3256/* We use char because int might match the return type of a gcc2
3257 builtin and then its argument prototype would still apply. */
3258char $ac_func();
3259
3260int main() {
3261
3262/* The GNU C library defines this for functions which it implements
3263 to always fail with ENOSYS. Some functions are actually named
3264 something starting with __ and the normal name is an alias. */
3265#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3266choke me
3267#else
3268$ac_func();
3269#endif
3270
3271; return 0; }
3272EOF
3273if { (eval echo configure:3274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3274 rm -rf conftest*
3275 eval "ac_cv_func_$ac_func=yes"
3276else
3277 echo "configure: failed program was:" >&5
3278 cat conftest.$ac_ext >&5
3279 rm -rf conftest*
3280 eval "ac_cv_func_$ac_func=no"
3281fi
3282rm -f conftest*
3283fi
3284
3285if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3286 echo "$ac_t""yes" 1>&6
3287 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3288 cat >> confdefs.h <<EOF
3289#define $ac_tr_func 1
3290EOF
3291
3292else
3293 echo "$ac_t""no" 1>&6
3294fi
3295done
3296
3297for ac_hdr in libutil.h
3298do
3299ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3300echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3301echo "configure:3302: checking for $ac_hdr" >&5
3302if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3303 echo $ac_n "(cached) $ac_c" 1>&6
3304else
3305 cat > conftest.$ac_ext <<EOF
3306#line 3307 "configure"
3307#include "confdefs.h"
3308#include <$ac_hdr>
3309EOF
3310ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3311{ (eval echo configure:3312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3312ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3313if test -z "$ac_err"; then
3314 rm -rf conftest*
3315 eval "ac_cv_header_$ac_safe=yes"
3316else
3317 echo "$ac_err" >&5
3318 echo "configure: failed program was:" >&5
3319 cat conftest.$ac_ext >&5
3320 rm -rf conftest*
3321 eval "ac_cv_header_$ac_safe=no"
3322fi
3323rm -f conftest*
3324fi
3325if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3326 echo "$ac_t""yes" 1>&6
3327 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3328 cat >> confdefs.h <<EOF
3329#define $ac_tr_hdr 1
3330EOF
3331
3332else
3333 echo "$ac_t""no" 1>&6
3334fi
3335done
3336
3337for ac_func in login logout updwtmp logwtmp
3338do
3339echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3340echo "configure:3341: checking for $ac_func" >&5
3341if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3342 echo $ac_n "(cached) $ac_c" 1>&6
3343else
3344 cat > conftest.$ac_ext <<EOF
3345#line 3346 "configure"
3346#include "confdefs.h"
3347/* System header to define __stub macros and hopefully few prototypes,
3348 which can conflict with char $ac_func(); below. */
3349#include <assert.h>
3350/* Override any gcc2 internal prototype to avoid an error. */
3351/* We use char because int might match the return type of a gcc2
3352 builtin and then its argument prototype would still apply. */
3353char $ac_func();
3354
3355int main() {
3356
3357/* The GNU C library defines this for functions which it implements
3358 to always fail with ENOSYS. Some functions are actually named
3359 something starting with __ and the normal name is an alias. */
3360#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3361choke me
3362#else
3363$ac_func();
3364#endif
3365
3366; return 0; }
3367EOF
3368if { (eval echo configure:3369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3369 rm -rf conftest*
3370 eval "ac_cv_func_$ac_func=yes"
3371else
3372 echo "configure: failed program was:" >&5
3373 cat conftest.$ac_ext >&5
3374 rm -rf conftest*
3375 eval "ac_cv_func_$ac_func=no"
3376fi
3377rm -f conftest*
3378fi
3379
3380if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3381 echo "$ac_t""yes" 1>&6
3382 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3383 cat >> confdefs.h <<EOF
3384#define $ac_tr_func 1
3385EOF
3386
3387else
3388 echo "$ac_t""no" 1>&6
3389fi
3390done
3391
3392for ac_func in endutent getutent getutid getutline pututline setutent
3393do
3394echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3395echo "configure:3396: checking for $ac_func" >&5
3396if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3397 echo $ac_n "(cached) $ac_c" 1>&6
3398else
3399 cat > conftest.$ac_ext <<EOF
3400#line 3401 "configure"
3401#include "confdefs.h"
3402/* System header to define __stub macros and hopefully few prototypes,
3403 which can conflict with char $ac_func(); below. */
3404#include <assert.h>
3405/* Override any gcc2 internal prototype to avoid an error. */
3406/* We use char because int might match the return type of a gcc2
3407 builtin and then its argument prototype would still apply. */
3408char $ac_func();
3409
3410int main() {
3411
3412/* The GNU C library defines this for functions which it implements
3413 to always fail with ENOSYS. Some functions are actually named
3414 something starting with __ and the normal name is an alias. */
3415#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3416choke me
3417#else
3418$ac_func();
3419#endif
3420
3421; return 0; }
3422EOF
3423if { (eval echo configure:3424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3424 rm -rf conftest*
3425 eval "ac_cv_func_$ac_func=yes"
3426else
3427 echo "configure: failed program was:" >&5
3428 cat conftest.$ac_ext >&5
3429 rm -rf conftest*
3430 eval "ac_cv_func_$ac_func=no"
3431fi
3432rm -f conftest*
3433fi
3434
3435if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3436 echo "$ac_t""yes" 1>&6
3437 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3438 cat >> confdefs.h <<EOF
3439#define $ac_tr_func 1
3440EOF
3441
3442else
3443 echo "$ac_t""no" 1>&6
3444fi
3445done
3446
3447for ac_func in utmpname
3448do
3449echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3450echo "configure:3451: checking for $ac_func" >&5
3451if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3452 echo $ac_n "(cached) $ac_c" 1>&6
3453else
3454 cat > conftest.$ac_ext <<EOF
3455#line 3456 "configure"
3456#include "confdefs.h"
3457/* System header to define __stub macros and hopefully few prototypes,
3458 which can conflict with char $ac_func(); below. */
3459#include <assert.h>
3460/* Override any gcc2 internal prototype to avoid an error. */
3461/* We use char because int might match the return type of a gcc2
3462 builtin and then its argument prototype would still apply. */
3463char $ac_func();
3464
3465int main() {
3466
3467/* The GNU C library defines this for functions which it implements
3468 to always fail with ENOSYS. Some functions are actually named
3469 something starting with __ and the normal name is an alias. */
3470#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3471choke me
3472#else
3473$ac_func();
3474#endif
3475
3476; return 0; }
3477EOF
3478if { (eval echo configure:3479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3479 rm -rf conftest*
3480 eval "ac_cv_func_$ac_func=yes"
3481else
3482 echo "configure: failed program was:" >&5
3483 cat conftest.$ac_ext >&5
3484 rm -rf conftest*
3485 eval "ac_cv_func_$ac_func=no"
3486fi
3487rm -f conftest*
3488fi
3489
3490if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3491 echo "$ac_t""yes" 1>&6
3492 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3493 cat >> confdefs.h <<EOF
3494#define $ac_tr_func 1
3495EOF
3496
3497else
3498 echo "$ac_t""no" 1>&6
3499fi
3500done
3501
3502for ac_func in endutxent getutxent getutxid getutxline pututxline
3503do
3504echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3505echo "configure:3506: checking for $ac_func" >&5
3506if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3507 echo $ac_n "(cached) $ac_c" 1>&6
3508else
3509 cat > conftest.$ac_ext <<EOF
3510#line 3511 "configure"
3511#include "confdefs.h"
3512/* System header to define __stub macros and hopefully few prototypes,
3513 which can conflict with char $ac_func(); below. */
3514#include <assert.h>
3515/* Override any gcc2 internal prototype to avoid an error. */
3516/* We use char because int might match the return type of a gcc2
3517 builtin and then its argument prototype would still apply. */
3518char $ac_func();
3519
3520int main() {
3521
3522/* The GNU C library defines this for functions which it implements
3523 to always fail with ENOSYS. Some functions are actually named
3524 something starting with __ and the normal name is an alias. */
3525#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3526choke me
3527#else
3528$ac_func();
3529#endif
3530
3531; return 0; }
3532EOF
3533if { (eval echo configure:3534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3534 rm -rf conftest*
3535 eval "ac_cv_func_$ac_func=yes"
3536else
3537 echo "configure: failed program was:" >&5
3538 cat conftest.$ac_ext >&5
3539 rm -rf conftest*
3540 eval "ac_cv_func_$ac_func=no"
3541fi
3542rm -f conftest*
3543fi
3544
3545if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3546 echo "$ac_t""yes" 1>&6
3547 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3548 cat >> confdefs.h <<EOF
3549#define $ac_tr_func 1
3550EOF
3551
3552else
3553 echo "$ac_t""no" 1>&6
3554fi
3555done
3556
3557for ac_func in setutxent utmpxname
3558do
3559echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3560echo "configure:3561: checking for $ac_func" >&5
3561if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3562 echo $ac_n "(cached) $ac_c" 1>&6
3563else
3564 cat > conftest.$ac_ext <<EOF
3565#line 3566 "configure"
3566#include "confdefs.h"
3567/* System header to define __stub macros and hopefully few prototypes,
3568 which can conflict with char $ac_func(); below. */
3569#include <assert.h>
3570/* Override any gcc2 internal prototype to avoid an error. */
3571/* We use char because int might match the return type of a gcc2
3572 builtin and then its argument prototype would still apply. */
3573char $ac_func();
3574
3575int main() {
3576
3577/* The GNU C library defines this for functions which it implements
3578 to always fail with ENOSYS. Some functions are actually named
3579 something starting with __ and the normal name is an alias. */
3580#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3581choke me
3582#else
3583$ac_func();
3584#endif
3585
3586; return 0; }
3587EOF
3588if { (eval echo configure:3589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3589 rm -rf conftest*
3590 eval "ac_cv_func_$ac_func=yes"
3591else
3592 echo "configure: failed program was:" >&5
3593 cat conftest.$ac_ext >&5
3594 rm -rf conftest*
3595 eval "ac_cv_func_$ac_func=no"
3596fi
3597rm -f conftest*
3598fi
3599
3600if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3601 echo "$ac_t""yes" 1>&6
3602 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3603 cat >> confdefs.h <<EOF
3604#define $ac_tr_func 1
3605EOF
3606
3607else
3608 echo "$ac_t""no" 1>&6
3609fi
3610done
3611
3612
3613echo $ac_n "checking for getuserattr""... $ac_c" 1>&6
3614echo "configure:3615: checking for getuserattr" >&5
3615if eval "test \"`echo '$''{'ac_cv_func_getuserattr'+set}'`\" = set"; then
3616 echo $ac_n "(cached) $ac_c" 1>&6
3617else
3618 cat > conftest.$ac_ext <<EOF
3619#line 3620 "configure"
3620#include "confdefs.h"
3621/* System header to define __stub macros and hopefully few prototypes,
3622 which can conflict with char getuserattr(); below. */
3623#include <assert.h>
3624/* Override any gcc2 internal prototype to avoid an error. */
3625/* We use char because int might match the return type of a gcc2
3626 builtin and then its argument prototype would still apply. */
3627char getuserattr();
3628
3629int main() {
3630
3631/* The GNU C library defines this for functions which it implements
3632 to always fail with ENOSYS. Some functions are actually named
3633 something starting with __ and the normal name is an alias. */
3634#if defined (__stub_getuserattr) || defined (__stub___getuserattr)
3635choke me
3636#else
3637getuserattr();
3638#endif
3639
3640; return 0; }
3641EOF
3642if { (eval echo configure:3643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3643 rm -rf conftest*
3644 eval "ac_cv_func_getuserattr=yes"
3645else
3646 echo "configure: failed program was:" >&5
3647 cat conftest.$ac_ext >&5
3648 rm -rf conftest*
3649 eval "ac_cv_func_getuserattr=no"
3650fi
3651rm -f conftest*
3652fi
3653
3654if eval "test \"`echo '$ac_cv_func_'getuserattr`\" = yes"; then
3655 echo "$ac_t""yes" 1>&6
3656 cat >> confdefs.h <<\EOF
3657#define HAVE_GETUSERATTR 1
3658EOF
3659
3660else
3661 echo "$ac_t""no" 1>&6
3662echo $ac_n "checking for getuserattr in -ls""... $ac_c" 1>&6
3663echo "configure:3664: checking for getuserattr in -ls" >&5
3664ac_lib_var=`echo s'_'getuserattr | sed 'y%./+-%__p_%'`
3665if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3666 echo $ac_n "(cached) $ac_c" 1>&6
3667else
3668 ac_save_LIBS="$LIBS"
3669LIBS="-ls $LIBS"
3670cat > conftest.$ac_ext <<EOF
3671#line 3672 "configure"
3672#include "confdefs.h"
3673/* Override any gcc2 internal prototype to avoid an error. */
3674/* We use char because int might match the return type of a gcc2
3675 builtin and then its argument prototype would still apply. */
3676char getuserattr();
3677
3678int main() {
3679getuserattr()
3680; return 0; }
3681EOF
3682if { (eval echo configure:3683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3683 rm -rf conftest*
3684 eval "ac_cv_lib_$ac_lib_var=yes"
3685else
3686 echo "configure: failed program was:" >&5
3687 cat conftest.$ac_ext >&5
3688 rm -rf conftest*
3689 eval "ac_cv_lib_$ac_lib_var=no"
3690fi
3691rm -f conftest*
3692LIBS="$ac_save_LIBS"
3693
3694fi
3695if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3696 echo "$ac_t""yes" 1>&6
3697 LIBS="$LIBS -ls"; cat >> confdefs.h <<\EOF
3698#define HAVE_GETUSERATTR 1
3699EOF
3700
3701else
3702 echo "$ac_t""no" 1>&6
3703fi
3704
3705
3706fi
3707
3708
3709echo $ac_n "checking for login""... $ac_c" 1>&6
3710echo "configure:3711: checking for login" >&5
3711if eval "test \"`echo '$''{'ac_cv_func_login'+set}'`\" = set"; then
3712 echo $ac_n "(cached) $ac_c" 1>&6
3713else
3714 cat > conftest.$ac_ext <<EOF
3715#line 3716 "configure"
3716#include "confdefs.h"
3717/* System header to define __stub macros and hopefully few prototypes,
3718 which can conflict with char login(); below. */
3719#include <assert.h>
3720/* Override any gcc2 internal prototype to avoid an error. */
3721/* We use char because int might match the return type of a gcc2
3722 builtin and then its argument prototype would still apply. */
3723char login();
3724
3725int main() {
3726
3727/* The GNU C library defines this for functions which it implements
3728 to always fail with ENOSYS. Some functions are actually named
3729 something starting with __ and the normal name is an alias. */
3730#if defined (__stub_login) || defined (__stub___login)
3731choke me
3732#else
3733login();
3734#endif
3735
3736; return 0; }
3737EOF
3738if { (eval echo configure:3739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3739 rm -rf conftest*
3740 eval "ac_cv_func_login=yes"
3741else
3742 echo "configure: failed program was:" >&5
3743 cat conftest.$ac_ext >&5
3744 rm -rf conftest*
3745 eval "ac_cv_func_login=no"
3746fi
3747rm -f conftest*
3748fi
3749
3750if eval "test \"`echo '$ac_cv_func_'login`\" = yes"; then
3751 echo "$ac_t""yes" 1>&6
3752 cat >> confdefs.h <<\EOF
3753#define HAVE_LOGIN 1
3754EOF
3755
3756else
3757 echo "$ac_t""no" 1>&6
3758echo $ac_n "checking for login in -lbsd""... $ac_c" 1>&6
3759echo "configure:3760: checking for login in -lbsd" >&5
3760ac_lib_var=`echo bsd'_'login | sed 'y%./+-%__p_%'`
3761if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3762 echo $ac_n "(cached) $ac_c" 1>&6
3763else
3764 ac_save_LIBS="$LIBS"
3765LIBS="-lbsd $LIBS"
3766cat > conftest.$ac_ext <<EOF
3767#line 3768 "configure"
3768#include "confdefs.h"
3769/* Override any gcc2 internal prototype to avoid an error. */
3770/* We use char because int might match the return type of a gcc2
3771 builtin and then its argument prototype would still apply. */
3772char login();
3773
3774int main() {
3775login()
3776; return 0; }
3777EOF
3778if { (eval echo configure:3779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3779 rm -rf conftest*
3780 eval "ac_cv_lib_$ac_lib_var=yes"
3781else
3782 echo "configure: failed program was:" >&5
3783 cat conftest.$ac_ext >&5
3784 rm -rf conftest*
3785 eval "ac_cv_lib_$ac_lib_var=no"
3786fi
3787rm -f conftest*
3788LIBS="$ac_save_LIBS"
3789
3790fi
3791if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3792 echo "$ac_t""yes" 1>&6
3793 LIBS="$LIBS -lbsd"; cat >> confdefs.h <<\EOF
3794#define HAVE_LOGIN 1
3795EOF
3796
3797else
3798 echo "$ac_t""no" 1>&6
3799fi
3800
3801
3802fi
3803
3804
3805echo $ac_n "checking for daemon""... $ac_c" 1>&6
3806echo "configure:3807: checking for daemon" >&5
3807if eval "test \"`echo '$''{'ac_cv_func_daemon'+set}'`\" = set"; then
3808 echo $ac_n "(cached) $ac_c" 1>&6
3809else
3810 cat > conftest.$ac_ext <<EOF
3811#line 3812 "configure"
3812#include "confdefs.h"
3813/* System header to define __stub macros and hopefully few prototypes,
3814 which can conflict with char daemon(); below. */
3815#include <assert.h>
3816/* Override any gcc2 internal prototype to avoid an error. */
3817/* We use char because int might match the return type of a gcc2
3818 builtin and then its argument prototype would still apply. */
3819char daemon();
3820
3821int main() {
3822
3823/* The GNU C library defines this for functions which it implements
3824 to always fail with ENOSYS. Some functions are actually named
3825 something starting with __ and the normal name is an alias. */
3826#if defined (__stub_daemon) || defined (__stub___daemon)
3827choke me
3828#else
3829daemon();
3830#endif
3831
3832; return 0; }
3833EOF
3834if { (eval echo configure:3835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3835 rm -rf conftest*
3836 eval "ac_cv_func_daemon=yes"
3837else
3838 echo "configure: failed program was:" >&5
3839 cat conftest.$ac_ext >&5
3840 rm -rf conftest*
3841 eval "ac_cv_func_daemon=no"
3842fi
3843rm -f conftest*
3844fi
3845
3846if eval "test \"`echo '$ac_cv_func_'daemon`\" = yes"; then
3847 echo "$ac_t""yes" 1>&6
3848 cat >> confdefs.h <<\EOF
3849#define HAVE_DAEMON 1
3850EOF
3851
3852else
3853 echo "$ac_t""no" 1>&6
3854echo $ac_n "checking for daemon in -lbsd""... $ac_c" 1>&6
3855echo "configure:3856: checking for daemon in -lbsd" >&5
3856ac_lib_var=`echo bsd'_'daemon | sed 'y%./+-%__p_%'`
3857if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3858 echo $ac_n "(cached) $ac_c" 1>&6
3859else
3860 ac_save_LIBS="$LIBS"
3861LIBS="-lbsd $LIBS"
3862cat > conftest.$ac_ext <<EOF
3863#line 3864 "configure"
3864#include "confdefs.h"
3865/* Override any gcc2 internal prototype to avoid an error. */
3866/* We use char because int might match the return type of a gcc2
3867 builtin and then its argument prototype would still apply. */
3868char daemon();
3869
3870int main() {
3871daemon()
3872; return 0; }
3873EOF
3874if { (eval echo configure:3875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3875 rm -rf conftest*
3876 eval "ac_cv_lib_$ac_lib_var=yes"
3877else
3878 echo "configure: failed program was:" >&5
3879 cat conftest.$ac_ext >&5
3880 rm -rf conftest*
3881 eval "ac_cv_lib_$ac_lib_var=no"
3882fi
3883rm -f conftest*
3884LIBS="$ac_save_LIBS"
3885
3886fi
3887if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3888 echo "$ac_t""yes" 1>&6
3889 LIBS="$LIBS -lbsd"; cat >> confdefs.h <<\EOF
3890#define HAVE_DAEMON 1
3891EOF
3892
3893else
3894 echo "$ac_t""no" 1>&6
3895fi
3896
3897
3898fi
3899
3900
3901echo $ac_n "checking for getpagesize""... $ac_c" 1>&6
3902echo "configure:3903: checking for getpagesize" >&5
3903if eval "test \"`echo '$''{'ac_cv_func_getpagesize'+set}'`\" = set"; then
3904 echo $ac_n "(cached) $ac_c" 1>&6
3905else
3906 cat > conftest.$ac_ext <<EOF
3907#line 3908 "configure"
3908#include "confdefs.h"
3909/* System header to define __stub macros and hopefully few prototypes,
3910 which can conflict with char getpagesize(); below. */
3911#include <assert.h>
3912/* Override any gcc2 internal prototype to avoid an error. */
3913/* We use char because int might match the return type of a gcc2
3914 builtin and then its argument prototype would still apply. */
3915char getpagesize();
3916
3917int main() {
3918
3919/* The GNU C library defines this for functions which it implements
3920 to always fail with ENOSYS. Some functions are actually named
3921 something starting with __ and the normal name is an alias. */
3922#if defined (__stub_getpagesize) || defined (__stub___getpagesize)
3923choke me
3924#else
3925getpagesize();
3926#endif
3927
3928; return 0; }
3929EOF
3930if { (eval echo configure:3931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3931 rm -rf conftest*
3932 eval "ac_cv_func_getpagesize=yes"
3933else
3934 echo "configure: failed program was:" >&5
3935 cat conftest.$ac_ext >&5
3936 rm -rf conftest*
3937 eval "ac_cv_func_getpagesize=no"
3938fi
3939rm -f conftest*
3940fi
3941
3942if eval "test \"`echo '$ac_cv_func_'getpagesize`\" = yes"; then
3943 echo "$ac_t""yes" 1>&6
3944 cat >> confdefs.h <<\EOF
3945#define HAVE_GETPAGESIZE 1
3946EOF
3947
3948else
3949 echo "$ac_t""no" 1>&6
3950echo $ac_n "checking for getpagesize in -lucb""... $ac_c" 1>&6
3951echo "configure:3952: checking for getpagesize in -lucb" >&5
3952ac_lib_var=`echo ucb'_'getpagesize | sed 'y%./+-%__p_%'`
3953if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3954 echo $ac_n "(cached) $ac_c" 1>&6
3955else
3956 ac_save_LIBS="$LIBS"
3957LIBS="-lucb $LIBS"
3958cat > conftest.$ac_ext <<EOF
3959#line 3960 "configure"
3960#include "confdefs.h"
3961/* Override any gcc2 internal prototype to avoid an error. */
3962/* We use char because int might match the return type of a gcc2
3963 builtin and then its argument prototype would still apply. */
3964char getpagesize();
3965
3966int main() {
3967getpagesize()
3968; return 0; }
3969EOF
3970if { (eval echo configure:3971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3971 rm -rf conftest*
3972 eval "ac_cv_lib_$ac_lib_var=yes"
3973else
3974 echo "configure: failed program was:" >&5
3975 cat conftest.$ac_ext >&5
3976 rm -rf conftest*
3977 eval "ac_cv_lib_$ac_lib_var=no"
3978fi
3979rm -f conftest*
3980LIBS="$ac_save_LIBS"
3981
3982fi
3983if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3984 echo "$ac_t""yes" 1>&6
3985 LIBS="$LIBS -lucb"; cat >> confdefs.h <<\EOF
3986#define HAVE_GETPAGESIZE 1
3987EOF
3988
3989else
3990 echo "$ac_t""no" 1>&6
3991fi
3992
3993
3994fi
3995
3996
3997# Check for broken snprintf
3998if test "x$ac_cv_func_snprintf" = "xyes" ; then
3999 echo $ac_n "checking whether snprintf correctly terminates long strings""... $ac_c" 1>&6
4000echo "configure:4001: checking whether snprintf correctly terminates long strings" >&5
4001 if test "$cross_compiling" = yes; then
4002 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4003else
4004 cat > conftest.$ac_ext <<EOF
4005#line 4006 "configure"
4006#include "confdefs.h"
4007
4008#include <stdio.h>
4009int main(void){char b[5];snprintf(b,5,"123456789");return(b[4]!='\0');}
4010
4011EOF
4012if { (eval echo configure:4013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4013then
4014 echo "$ac_t""yes" 1>&6
4015else
4016 echo "configure: failed program was:" >&5
4017 cat conftest.$ac_ext >&5
4018 rm -fr conftest*
4019
4020 echo "$ac_t""no" 1>&6
4021 cat >> confdefs.h <<\EOF
4022#define BROKEN_SNPRINTF 1
4023EOF
4024
4025 echo "configure: warning: ****** Your snprintf() function is broken, complain to your vendor" 1>&2
4026
4027
4028fi
4029rm -fr conftest*
4030fi
4031
4032fi
4033
4034echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
4035echo "configure:4036: checking whether getpgrp takes no argument" >&5
4036if eval "test \"`echo '$''{'ac_cv_func_getpgrp_void'+set}'`\" = set"; then
4037 echo $ac_n "(cached) $ac_c" 1>&6
4038else
4039 if test "$cross_compiling" = yes; then
4040 { echo "configure: error: cannot check getpgrp if cross compiling" 1>&2; exit 1; }
4041else
4042 cat > conftest.$ac_ext <<EOF
4043#line 4044 "configure"
4044#include "confdefs.h"
4045
4046/*
4047 * If this system has a BSD-style getpgrp(),
4048 * which takes a pid argument, exit unsuccessfully.
4049 *
4050 * Snarfed from Chet Ramey's bash pgrp.c test program
4051 */
4052#include <stdio.h>
4053#include <sys/types.h>
4054
4055int pid;
4056int pg1, pg2, pg3, pg4;
4057int ng, np, s, child;
4058
4059main()
4060{
4061 pid = getpid();
4062 pg1 = getpgrp(0);
4063 pg2 = getpgrp();
4064 pg3 = getpgrp(pid);
4065 pg4 = getpgrp(1);
4066
4067 /*
4068 * If all of these values are the same, it's pretty sure that
4069 * we're on a system that ignores getpgrp's first argument.
4070 */
4071 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
4072 exit(0);
4073
4074 child = fork();
4075 if (child < 0)
4076 exit(1);
4077 else if (child == 0) {
4078 np = getpid();
4079 /*
4080 * If this is Sys V, this will not work; pgrp will be
4081 * set to np because setpgrp just changes a pgrp to be
4082 * the same as the pid.
4083 */
4084 setpgrp(np, pg1);
4085 ng = getpgrp(0); /* Same result for Sys V and BSD */
4086 if (ng == pg1) {
4087 exit(1);
4088 } else {
4089 exit(0);
4090 }
4091 } else {
4092 wait(&s);
4093 exit(s>>8);
4094 }
4095}
4096
4097EOF
4098if { (eval echo configure:4099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4099then
4100 ac_cv_func_getpgrp_void=yes
4101else
4102 echo "configure: failed program was:" >&5
4103 cat conftest.$ac_ext >&5
4104 rm -fr conftest*
4105 ac_cv_func_getpgrp_void=no
4106fi
4107rm -fr conftest*
4108fi
4109
4110
4111fi
4112
4113echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
4114if test $ac_cv_func_getpgrp_void = yes; then
4115 cat >> confdefs.h <<\EOF
4116#define GETPGRP_VOID 1
4117EOF
4118
4119fi
4120
4121
4122# Check for PAM libs
4123PAM_MSG="no"
4124# Check whether --with-pam or --without-pam was given.
4125if test "${with_pam+set}" = set; then
4126 withval="$with_pam"
4127
4128 if test "x$withval" != "xno" ; then
4129 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" ; then
4130 { echo "configure: error: PAM headers not found" 1>&2; exit 1; }
4131 fi
4132
4133 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4134echo "configure:4135: checking for dlopen in -ldl" >&5
4135ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4136if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4137 echo $ac_n "(cached) $ac_c" 1>&6
4138else
4139 ac_save_LIBS="$LIBS"
4140LIBS="-ldl $LIBS"
4141cat > conftest.$ac_ext <<EOF
4142#line 4143 "configure"
4143#include "confdefs.h"
4144/* Override any gcc2 internal prototype to avoid an error. */
4145/* We use char because int might match the return type of a gcc2
4146 builtin and then its argument prototype would still apply. */
4147char dlopen();
4148
4149int main() {
4150dlopen()
4151; return 0; }
4152EOF
4153if { (eval echo configure:4154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4154 rm -rf conftest*
4155 eval "ac_cv_lib_$ac_lib_var=yes"
4156else
4157 echo "configure: failed program was:" >&5
4158 cat conftest.$ac_ext >&5
4159 rm -rf conftest*
4160 eval "ac_cv_lib_$ac_lib_var=no"
4161fi
4162rm -f conftest*
4163LIBS="$ac_save_LIBS"
4164
4165fi
4166if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4167 echo "$ac_t""yes" 1>&6
4168 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4169 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4170 cat >> confdefs.h <<EOF
4171#define $ac_tr_lib 1
4172EOF
4173
4174 LIBS="-ldl $LIBS"
4175
4176else
4177 echo "$ac_t""no" 1>&6
4178fi
4179
4180 echo $ac_n "checking for pam_set_item in -lpam""... $ac_c" 1>&6
4181echo "configure:4182: checking for pam_set_item in -lpam" >&5
4182ac_lib_var=`echo pam'_'pam_set_item | sed 'y%./+-%__p_%'`
4183if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4184 echo $ac_n "(cached) $ac_c" 1>&6
4185else
4186 ac_save_LIBS="$LIBS"
4187LIBS="-lpam $LIBS"
4188cat > conftest.$ac_ext <<EOF
4189#line 4190 "configure"
4190#include "confdefs.h"
4191/* Override any gcc2 internal prototype to avoid an error. */
4192/* We use char because int might match the return type of a gcc2
4193 builtin and then its argument prototype would still apply. */
4194char pam_set_item();
4195
4196int main() {
4197pam_set_item()
4198; return 0; }
4199EOF
4200if { (eval echo configure:4201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4201 rm -rf conftest*
4202 eval "ac_cv_lib_$ac_lib_var=yes"
4203else
4204 echo "configure: failed program was:" >&5
4205 cat conftest.$ac_ext >&5
4206 rm -rf conftest*
4207 eval "ac_cv_lib_$ac_lib_var=no"
4208fi
4209rm -f conftest*
4210LIBS="$ac_save_LIBS"
4211
4212fi
4213if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4214 echo "$ac_t""yes" 1>&6
4215 ac_tr_lib=HAVE_LIB`echo pam | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4216 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4217 cat >> confdefs.h <<EOF
4218#define $ac_tr_lib 1
4219EOF
4220
4221 LIBS="-lpam $LIBS"
4222
4223else
4224 echo "$ac_t""no" 1>&6
4225{ echo "configure: error: *** libpam missing" 1>&2; exit 1; }
4226fi
4227
4228 for ac_func in pam_getenvlist
4229do
4230echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4231echo "configure:4232: checking for $ac_func" >&5
4232if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4233 echo $ac_n "(cached) $ac_c" 1>&6
4234else
4235 cat > conftest.$ac_ext <<EOF
4236#line 4237 "configure"
4237#include "confdefs.h"
4238/* System header to define __stub macros and hopefully few prototypes,
4239 which can conflict with char $ac_func(); below. */
4240#include <assert.h>
4241/* Override any gcc2 internal prototype to avoid an error. */
4242/* We use char because int might match the return type of a gcc2
4243 builtin and then its argument prototype would still apply. */
4244char $ac_func();
4245
4246int main() {
4247
4248/* The GNU C library defines this for functions which it implements
4249 to always fail with ENOSYS. Some functions are actually named
4250 something starting with __ and the normal name is an alias. */
4251#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4252choke me
4253#else
4254$ac_func();
4255#endif
4256
4257; return 0; }
4258EOF
4259if { (eval echo configure:4260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4260 rm -rf conftest*
4261 eval "ac_cv_func_$ac_func=yes"
4262else
4263 echo "configure: failed program was:" >&5
4264 cat conftest.$ac_ext >&5
4265 rm -rf conftest*
4266 eval "ac_cv_func_$ac_func=no"
4267fi
4268rm -f conftest*
4269fi
4270
4271if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4272 echo "$ac_t""yes" 1>&6
4273 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4274 cat >> confdefs.h <<EOF
4275#define $ac_tr_func 1
4276EOF
4277
4278else
4279 echo "$ac_t""no" 1>&6
4280fi
4281done
4282
4283
4284 disable_shadow=yes
4285 PAM_MSG="yes"
4286
4287 cat >> confdefs.h <<\EOF
4288#define USE_PAM 1
4289EOF
4290
4291 fi
4292
4293
4294fi
4295
4296
4297# Check for older PAM
4298if test "x$PAM_MSG" = "xyes" ; then
4299 # Check PAM strerror arguments (old PAM)
4300 echo $ac_n "checking whether pam_strerror takes only one argument""... $ac_c" 1>&6
4301echo "configure:4302: checking whether pam_strerror takes only one argument" >&5
4302 cat > conftest.$ac_ext <<EOF
4303#line 4304 "configure"
4304#include "confdefs.h"
4305
4306#include <stdlib.h>
4307#include <security/pam_appl.h>
4308
4309int main() {
4310(void)pam_strerror((pam_handle_t *)NULL, -1);
4311; return 0; }
4312EOF
4313if { (eval echo configure:4314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4314 rm -rf conftest*
4315 echo "$ac_t""no" 1>&6
4316else
4317 echo "configure: failed program was:" >&5
4318 cat conftest.$ac_ext >&5
4319 rm -rf conftest*
4320
4321 cat >> confdefs.h <<\EOF
4322#define HAVE_OLD_PAM 1
4323EOF
4324
4325 echo "$ac_t""yes" 1>&6
4326 PAM_MSG="yes (old library)"
4327
4328
4329fi
4330rm -f conftest*
4331fi
4332
4333# The big search for OpenSSL
4334# Check whether --with-ssl-dir or --without-ssl-dir was given.
4335if test "${with_ssl_dir+set}" = set; then
4336 withval="$with_ssl_dir"
4337
4338 if test "x$withval" != "xno" ; then
4339 tryssldir=$withval
4340 fi
4341
4342
4343fi
4344
4345
4346saved_LIBS="$LIBS"
4347saved_LDFLAGS="$LDFLAGS"
4348saved_CPPFLAGS="$CPPFLAGS"
4349if test "x$prefix" != "xNONE" ; then
4350 tryssldir="$tryssldir $prefix"
4351fi
4352echo $ac_n "checking for OpenSSL directory""... $ac_c" 1>&6
4353echo "configure:4354: checking for OpenSSL directory" >&5
4354if eval "test \"`echo '$''{'ac_cv_openssldir'+set}'`\" = set"; then
4355 echo $ac_n "(cached) $ac_c" 1>&6
4356else
4357
4358 for ssldir in $tryssldir "" /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl ; do
4359 CPPFLAGS="$saved_CPPFLAGS"
4360 LDFLAGS="$saved_LDFLAGS"
4361 LIBS="$saved_LIBS -lcrypto"
4362
4363 # Skip directories if they don't exist
4364 if test ! -z "$ssldir" -a ! -d "$ssldir" ; then
4365 continue;
4366 fi
4367 if test ! -z "$ssldir" -a "x$ssldir" != "x/usr"; then
4368 # Try to use $ssldir/lib if it exists, otherwise
4369 # $ssldir
4370 if test -d "$ssldir/lib" ; then
4371 LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
4372 if test ! -z "$need_dash_r" ; then
4373 LDFLAGS="-R$ssldir/lib $LDFLAGS"
4374 fi
4375 else
4376 LDFLAGS="-L$ssldir $saved_LDFLAGS"
4377 if test ! -z "$need_dash_r" ; then
4378 LDFLAGS="-R$ssldir $LDFLAGS"
4379 fi
4380 fi
4381 # Try to use $ssldir/include if it exists, otherwise
4382 # $ssldir
4383 if test -d "$ssldir/include" ; then
4384 CPPFLAGS="-I$ssldir/include $saved_CPPFLAGS"
4385 else
4386 CPPFLAGS="-I$ssldir $saved_CPPFLAGS"
4387 fi
4388 fi
4389
4390 # Basic test to check for compatible version and correct linking
4391 # *does not* test for RSA - that comes later.
4392 if test "$cross_compiling" = yes; then
4393 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4394else
4395 cat > conftest.$ac_ext <<EOF
4396#line 4397 "configure"
4397#include "confdefs.h"
4398
4399#include <string.h>
4400#include <openssl/rand.h>
4401int main(void)
4402{
4403 char a[2048];
4404 memset(a, 0, sizeof(a));
4405 RAND_add(a, sizeof(a), sizeof(a));
4406 return(RAND_status() <= 0);
4407}
4408
4409EOF
4410if { (eval echo configure:4411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4411then
4412
4413 found_crypto=1
4414 break;
4415
4416else
4417 echo "configure: failed program was:" >&5
4418 cat conftest.$ac_ext >&5
4419 rm -fr conftest*
4420
4421
4422fi
4423rm -fr conftest*
4424fi
4425
4426
4427 if test ! -z "$found_crypto" ; then
4428 break;
4429 fi
4430 done
4431
4432 if test -z "$found_crypto" ; then
4433 { echo "configure: error: Could not find working OpenSSL library, please install or check config.log" 1>&2; exit 1; }
4434 fi
4435 if test -z "$ssldir" ; then
4436 ssldir="(system)"
4437 fi
4438
4439 ac_cv_openssldir=$ssldir
4440
4441fi
4442
4443echo "$ac_t""$ac_cv_openssldir" 1>&6
4444
4445if (test ! -z "$ac_cv_openssldir" && test "x$ac_cv_openssldir" != "x(system)") ; then
4446 cat >> confdefs.h <<\EOF
4447#define HAVE_OPENSSL 1
4448EOF
4449
4450 ssldir=$ac_cv_openssldir
4451 if test ! -z "$ssldir" -a "x$ssldir" != "x/usr"; then
4452 # Try to use $ssldir/lib if it exists, otherwise
4453 # $ssldir
4454 if test -d "$ssldir/lib" ; then
4455 LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
4456 if test ! -z "$need_dash_r" ; then
4457 LDFLAGS="-R$ssldir/lib $LDFLAGS"
4458 fi
4459 else
4460 LDFLAGS="-L$ssldir $saved_LDFLAGS"
4461 if test ! -z "$need_dash_r" ; then
4462 LDFLAGS="-R$ssldir $LDFLAGS"
4463 fi
4464 fi
4465 # Try to use $ssldir/include if it exists, otherwise
4466 # $ssldir
4467 if test -d "$ssldir/include" ; then
4468 CPPFLAGS="-I$ssldir/include $saved_CPPFLAGS"
4469 else
4470 CPPFLAGS="-I$ssldir $saved_CPPFLAGS"
4471 fi
4472 fi
4473fi
4474LIBS="$saved_LIBS -lcrypto"
4475
4476# Now test RSA support
4477saved_LIBS="$LIBS"
4478echo $ac_n "checking for RSA support""... $ac_c" 1>&6
4479echo "configure:4480: checking for RSA support" >&5
4480for WANTS_RSAREF in "" 1 ; do
4481 if test -z "$WANTS_RSAREF" ; then
4482 LIBS="$saved_LIBS"
4483 else
4484 LIBS="$saved_LIBS -lRSAglue -lrsaref"
4485 fi
4486 if test "$cross_compiling" = yes; then
4487 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4488else
4489 cat > conftest.$ac_ext <<EOF
4490#line 4491 "configure"
4491#include "confdefs.h"
4492
4493#include <string.h>
4494#include <openssl/rand.h>
4495#include <openssl/rsa.h>
4496#include <openssl/bn.h>
4497#include <openssl/sha.h>
4498int main(void)
4499{
4500 int num; RSA *key; static unsigned char p_in[] = "blahblah";
4501 unsigned char c[256], p[256];
4502 memset(c, 0, sizeof(c)); RAND_add(c, sizeof(c), sizeof(c));
4503 if ((key=RSA_generate_key(512, 3, NULL, NULL))==NULL) return(1);
4504 num = RSA_public_encrypt(sizeof(p_in) - 1, p_in, c, key, RSA_PKCS1_PADDING);
4505 return(-1 == RSA_private_decrypt(num, c, p, key, RSA_PKCS1_PADDING));
4506}
4507
4508EOF
4509if { (eval echo configure:4510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4510then
4511
4512 rsa_works=1
4513 break;
4514
4515else
4516 echo "configure: failed program was:" >&5
4517 cat conftest.$ac_ext >&5
4518fi
4519rm -fr conftest*
4520fi
4521
4522done
4523
4524if test ! -z "$no_rsa" ; then
4525 echo "$ac_t""disabled" 1>&6
4526 RSA_MSG="disabled"
4527else
4528 if test -z "$rsa_works" ; then
4529 echo "configure: warning: *** No RSA support found *** " 1>&2
4530 RSA_MSG="no"
4531 else
4532 if test -z "$WANTS_RSAREF" ; then
4533 echo "$ac_t""yes" 1>&6
4534 RSA_MSG="yes"
4535 else
4536 RSA_MSG="yes (using RSAref)"
4537 echo "$ac_t""using RSAref" 1>&6
4538 LIBS="$saved_LIBS -lcrypto -lRSAglue -lrsaref"
4539 fi
4540 fi
4541fi
4542
4543# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
4544# version in OpenSSL. Skip this for PAM
4545if test "x$PAM_MSG" = "xno" -a "x$check_for_libcrypt_later" = "x1"; then
4546 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4547echo "configure:4548: checking for crypt in -lcrypt" >&5
4548ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4549if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4550 echo $ac_n "(cached) $ac_c" 1>&6
4551else
4552 ac_save_LIBS="$LIBS"
4553LIBS="-lcrypt $LIBS"
4554cat > conftest.$ac_ext <<EOF
4555#line 4556 "configure"
4556#include "confdefs.h"
4557/* Override any gcc2 internal prototype to avoid an error. */
4558/* We use char because int might match the return type of a gcc2
4559 builtin and then its argument prototype would still apply. */
4560char crypt();
4561
4562int main() {
4563crypt()
4564; return 0; }
4565EOF
4566if { (eval echo configure:4567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4567 rm -rf conftest*
4568 eval "ac_cv_lib_$ac_lib_var=yes"
4569else
4570 echo "configure: failed program was:" >&5
4571 cat conftest.$ac_ext >&5
4572 rm -rf conftest*
4573 eval "ac_cv_lib_$ac_lib_var=no"
4574fi
4575rm -f conftest*
4576LIBS="$ac_save_LIBS"
4577
4578fi
4579if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4580 echo "$ac_t""yes" 1>&6
4581 LIBS="$LIBS -lcrypt"
4582else
4583 echo "$ac_t""no" 1>&6
4584fi
4585
4586fi
4587
4588# Cheap hack to ensure NEWS-OS libraries are arranged right.
4589if test ! -z "$SONY" ; then
4590 LIBS="$LIBS -liberty";
4591fi
4592
4593# Checks for data types
4594echo $ac_n "checking size of char""... $ac_c" 1>&6
4595echo "configure:4596: checking size of char" >&5
4596if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
4597 echo $ac_n "(cached) $ac_c" 1>&6
4598else
4599 if test "$cross_compiling" = yes; then
4600 ac_cv_sizeof_char=1
4601else
4602 cat > conftest.$ac_ext <<EOF
4603#line 4604 "configure"
4604#include "confdefs.h"
4605#include <stdio.h>
4606main()
4607{
4608 FILE *f=fopen("conftestval", "w");
4609 if (!f) exit(1);
4610 fprintf(f, "%d\n", sizeof(char));
4611 exit(0);
4612}
4613EOF
4614if { (eval echo configure:4615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4615then
4616 ac_cv_sizeof_char=`cat conftestval`
4617else
4618 echo "configure: failed program was:" >&5
4619 cat conftest.$ac_ext >&5
4620 rm -fr conftest*
4621 ac_cv_sizeof_char=0
4622fi
4623rm -fr conftest*
4624fi
4625
4626fi
4627echo "$ac_t""$ac_cv_sizeof_char" 1>&6
4628cat >> confdefs.h <<EOF
4629#define SIZEOF_CHAR $ac_cv_sizeof_char
4630EOF
4631
4632
4633echo $ac_n "checking size of short int""... $ac_c" 1>&6
4634echo "configure:4635: checking size of short int" >&5
4635if eval "test \"`echo '$''{'ac_cv_sizeof_short_int'+set}'`\" = set"; then
4636 echo $ac_n "(cached) $ac_c" 1>&6
4637else
4638 if test "$cross_compiling" = yes; then
4639 ac_cv_sizeof_short_int=2
4640else
4641 cat > conftest.$ac_ext <<EOF
4642#line 4643 "configure"
4643#include "confdefs.h"
4644#include <stdio.h>
4645main()
4646{
4647 FILE *f=fopen("conftestval", "w");
4648 if (!f) exit(1);
4649 fprintf(f, "%d\n", sizeof(short int));
4650 exit(0);
4651}
4652EOF
4653if { (eval echo configure:4654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4654then
4655 ac_cv_sizeof_short_int=`cat conftestval`
4656else
4657 echo "configure: failed program was:" >&5
4658 cat conftest.$ac_ext >&5
4659 rm -fr conftest*
4660 ac_cv_sizeof_short_int=0
4661fi
4662rm -fr conftest*
4663fi
4664
4665fi
4666echo "$ac_t""$ac_cv_sizeof_short_int" 1>&6
4667cat >> confdefs.h <<EOF
4668#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
4669EOF
4670
4671
4672echo $ac_n "checking size of int""... $ac_c" 1>&6
4673echo "configure:4674: checking size of int" >&5
4674if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4675 echo $ac_n "(cached) $ac_c" 1>&6
4676else
4677 if test "$cross_compiling" = yes; then
4678 ac_cv_sizeof_int=4
4679else
4680 cat > conftest.$ac_ext <<EOF
4681#line 4682 "configure"
4682#include "confdefs.h"
4683#include <stdio.h>
4684main()
4685{
4686 FILE *f=fopen("conftestval", "w");
4687 if (!f) exit(1);
4688 fprintf(f, "%d\n", sizeof(int));
4689 exit(0);
4690}
4691EOF
4692if { (eval echo configure:4693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4693then
4694 ac_cv_sizeof_int=`cat conftestval`
4695else
4696 echo "configure: failed program was:" >&5
4697 cat conftest.$ac_ext >&5
4698 rm -fr conftest*
4699 ac_cv_sizeof_int=0
4700fi
4701rm -fr conftest*
4702fi
4703
4704fi
4705echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4706cat >> confdefs.h <<EOF
4707#define SIZEOF_INT $ac_cv_sizeof_int
4708EOF
4709
4710
4711echo $ac_n "checking size of long int""... $ac_c" 1>&6
4712echo "configure:4713: checking size of long int" >&5
4713if eval "test \"`echo '$''{'ac_cv_sizeof_long_int'+set}'`\" = set"; then
4714 echo $ac_n "(cached) $ac_c" 1>&6
4715else
4716 if test "$cross_compiling" = yes; then
4717 ac_cv_sizeof_long_int=4
4718else
4719 cat > conftest.$ac_ext <<EOF
4720#line 4721 "configure"
4721#include "confdefs.h"
4722#include <stdio.h>
4723main()
4724{
4725 FILE *f=fopen("conftestval", "w");
4726 if (!f) exit(1);
4727 fprintf(f, "%d\n", sizeof(long int));
4728 exit(0);
4729}
4730EOF
4731if { (eval echo configure:4732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4732then
4733 ac_cv_sizeof_long_int=`cat conftestval`
4734else
4735 echo "configure: failed program was:" >&5
4736 cat conftest.$ac_ext >&5
4737 rm -fr conftest*
4738 ac_cv_sizeof_long_int=0
4739fi
4740rm -fr conftest*
4741fi
4742
4743fi
4744echo "$ac_t""$ac_cv_sizeof_long_int" 1>&6
4745cat >> confdefs.h <<EOF
4746#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
4747EOF
4748
4749
4750echo $ac_n "checking size of long long int""... $ac_c" 1>&6
4751echo "configure:4752: checking size of long long int" >&5
4752if eval "test \"`echo '$''{'ac_cv_sizeof_long_long_int'+set}'`\" = set"; then
4753 echo $ac_n "(cached) $ac_c" 1>&6
4754else
4755 if test "$cross_compiling" = yes; then
4756 ac_cv_sizeof_long_long_int=8
4757else
4758 cat > conftest.$ac_ext <<EOF
4759#line 4760 "configure"
4760#include "confdefs.h"
4761#include <stdio.h>
4762main()
4763{
4764 FILE *f=fopen("conftestval", "w");
4765 if (!f) exit(1);
4766 fprintf(f, "%d\n", sizeof(long long int));
4767 exit(0);
4768}
4769EOF
4770if { (eval echo configure:4771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4771then
4772 ac_cv_sizeof_long_long_int=`cat conftestval`
4773else
4774 echo "configure: failed program was:" >&5
4775 cat conftest.$ac_ext >&5
4776 rm -fr conftest*
4777 ac_cv_sizeof_long_long_int=0
4778fi
4779rm -fr conftest*
4780fi
4781
4782fi
4783echo "$ac_t""$ac_cv_sizeof_long_long_int" 1>&6
4784cat >> confdefs.h <<EOF
4785#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
4786EOF
4787
4788
4789
4790# More checks for data types
4791echo $ac_n "checking for u_int type""... $ac_c" 1>&6
4792echo "configure:4793: checking for u_int type" >&5
4793if eval "test \"`echo '$''{'ac_cv_have_u_int'+set}'`\" = set"; then
4794 echo $ac_n "(cached) $ac_c" 1>&6
4795else
4796
4797 cat > conftest.$ac_ext <<EOF
4798#line 4799 "configure"
4799#include "confdefs.h"
4800 #include <sys/types.h>
4801int main() {
4802 u_int a; a = 1;
4803; return 0; }
4804EOF
4805if { (eval echo configure:4806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4806 rm -rf conftest*
4807 ac_cv_have_u_int="yes"
4808else
4809 echo "configure: failed program was:" >&5
4810 cat conftest.$ac_ext >&5
4811 rm -rf conftest*
4812 ac_cv_have_u_int="no"
4813
4814fi
4815rm -f conftest*
4816
4817fi
4818
4819echo "$ac_t""$ac_cv_have_u_int" 1>&6
4820if test "x$ac_cv_have_u_int" = "xyes" ; then
4821 cat >> confdefs.h <<\EOF
4822#define HAVE_U_INT 1
4823EOF
4824
4825 have_u_int=1
4826fi
4827
4828echo $ac_n "checking for intXX_t types""... $ac_c" 1>&6
4829echo "configure:4830: checking for intXX_t types" >&5
4830if eval "test \"`echo '$''{'ac_cv_have_intxx_t'+set}'`\" = set"; then
4831 echo $ac_n "(cached) $ac_c" 1>&6
4832else
4833
4834 cat > conftest.$ac_ext <<EOF
4835#line 4836 "configure"
4836#include "confdefs.h"
4837 #include <sys/types.h>
4838int main() {
4839 int8_t a; int16_t b; int32_t c; a = b = c = 1;
4840; return 0; }
4841EOF
4842if { (eval echo configure:4843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4843 rm -rf conftest*
4844 ac_cv_have_intxx_t="yes"
4845else
4846 echo "configure: failed program was:" >&5
4847 cat conftest.$ac_ext >&5
4848 rm -rf conftest*
4849 ac_cv_have_intxx_t="no"
4850
4851fi
4852rm -f conftest*
4853
4854fi
4855
4856echo "$ac_t""$ac_cv_have_intxx_t" 1>&6
4857if test "x$ac_cv_have_intxx_t" = "xyes" ; then
4858 cat >> confdefs.h <<\EOF
4859#define HAVE_INTXX_T 1
4860EOF
4861
4862 have_intxx_t=1
4863fi
4864
4865echo $ac_n "checking for int64_t type""... $ac_c" 1>&6
4866echo "configure:4867: checking for int64_t type" >&5
4867if eval "test \"`echo '$''{'ac_cv_have_int64_t'+set}'`\" = set"; then
4868 echo $ac_n "(cached) $ac_c" 1>&6
4869else
4870
4871 cat > conftest.$ac_ext <<EOF
4872#line 4873 "configure"
4873#include "confdefs.h"
4874 #include <sys/types.h>
4875int main() {
4876 int64_t a; a = 1;
4877; return 0; }
4878EOF
4879if { (eval echo configure:4880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4880 rm -rf conftest*
4881 ac_cv_have_int64_t="yes"
4882else
4883 echo "configure: failed program was:" >&5
4884 cat conftest.$ac_ext >&5
4885 rm -rf conftest*
4886 ac_cv_have_int64_t="no"
4887
4888fi
4889rm -f conftest*
4890
4891fi
4892
4893echo "$ac_t""$ac_cv_have_int64_t" 1>&6
4894if test "x$ac_cv_have_int64_t" = "xyes" ; then
4895 cat >> confdefs.h <<\EOF
4896#define HAVE_INT64_T 1
4897EOF
4898
4899 have_int64_t=1
4900fi
4901
4902echo $ac_n "checking for u_intXX_t types""... $ac_c" 1>&6
4903echo "configure:4904: checking for u_intXX_t types" >&5
4904if eval "test \"`echo '$''{'ac_cv_have_u_intxx_t'+set}'`\" = set"; then
4905 echo $ac_n "(cached) $ac_c" 1>&6
4906else
4907
4908 cat > conftest.$ac_ext <<EOF
4909#line 4910 "configure"
4910#include "confdefs.h"
4911 #include <sys/types.h>
4912int main() {
4913 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
4914; return 0; }
4915EOF
4916if { (eval echo configure:4917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4917 rm -rf conftest*
4918 ac_cv_have_u_intxx_t="yes"
4919else
4920 echo "configure: failed program was:" >&5
4921 cat conftest.$ac_ext >&5
4922 rm -rf conftest*
4923 ac_cv_have_u_intxx_t="no"
4924
4925fi
4926rm -f conftest*
4927
4928fi
4929
4930echo "$ac_t""$ac_cv_have_u_intxx_t" 1>&6
4931if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
4932 cat >> confdefs.h <<\EOF
4933#define HAVE_U_INTXX_T 1
4934EOF
4935
4936 have_u_intxx_t=1
4937fi
4938
4939echo $ac_n "checking for u_int64_t types""... $ac_c" 1>&6
4940echo "configure:4941: checking for u_int64_t types" >&5
4941if eval "test \"`echo '$''{'ac_cv_have_u_int64_t'+set}'`\" = set"; then
4942 echo $ac_n "(cached) $ac_c" 1>&6
4943else
4944
4945 cat > conftest.$ac_ext <<EOF
4946#line 4947 "configure"
4947#include "confdefs.h"
4948 #include <sys/types.h>
4949int main() {
4950 u_int64_t a; a = 1;
4951; return 0; }
4952EOF
4953if { (eval echo configure:4954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4954 rm -rf conftest*
4955 ac_cv_have_u_int64_t="yes"
4956else
4957 echo "configure: failed program was:" >&5
4958 cat conftest.$ac_ext >&5
4959 rm -rf conftest*
4960 ac_cv_have_u_int64_t="no"
4961
4962fi
4963rm -f conftest*
4964
4965fi
4966
4967echo "$ac_t""$ac_cv_have_u_int64_t" 1>&6
4968if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
4969 cat >> confdefs.h <<\EOF
4970#define HAVE_U_INT64_T 1
4971EOF
4972
4973 have_u_int64_t=1
4974fi
4975
4976if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
4977 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
4978then
4979 echo $ac_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h""... $ac_c" 1>&6
4980echo "configure:4981: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
4981 cat > conftest.$ac_ext <<EOF
4982#line 4983 "configure"
4983#include "confdefs.h"
4984
4985#include <sys/bitypes.h>
4986
4987int main() {
4988
4989 int8_t a; int16_t b; int32_t c;
4990 u_int8_t e; u_int16_t f; u_int32_t g;
4991 a = b = c = e = f = g = 1;
4992
4993; return 0; }
4994EOF
4995if { (eval echo configure:4996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4996 rm -rf conftest*
4997
4998 cat >> confdefs.h <<\EOF
4999#define HAVE_U_INTXX_T 1
5000EOF
5001
5002 cat >> confdefs.h <<\EOF
5003#define HAVE_INTXX_T 1
5004EOF
5005
5006 echo "$ac_t""yes" 1>&6
5007
5008else
5009 echo "configure: failed program was:" >&5
5010 cat conftest.$ac_ext >&5
5011 rm -rf conftest*
5012 echo "$ac_t""no" 1>&6
5013
5014fi
5015rm -f conftest*
5016fi
5017
5018if test -z "$have_u_intxx_t" ; then
5019 echo $ac_n "checking for uintXX_t types""... $ac_c" 1>&6
5020echo "configure:5021: checking for uintXX_t types" >&5
5021if eval "test \"`echo '$''{'ac_cv_have_uintxx_t'+set}'`\" = set"; then
5022 echo $ac_n "(cached) $ac_c" 1>&6
5023else
5024
5025 cat > conftest.$ac_ext <<EOF
5026#line 5027 "configure"
5027#include "confdefs.h"
5028
5029#include <sys/types.h>
5030
5031int main() {
5032 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
5033; return 0; }
5034EOF
5035if { (eval echo configure:5036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5036 rm -rf conftest*
5037 ac_cv_have_uintxx_t="yes"
5038else
5039 echo "configure: failed program was:" >&5
5040 cat conftest.$ac_ext >&5
5041 rm -rf conftest*
5042 ac_cv_have_uintxx_t="no"
5043
5044fi
5045rm -f conftest*
5046
5047fi
5048
5049echo "$ac_t""$ac_cv_have_uintxx_t" 1>&6
5050 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
5051 cat >> confdefs.h <<\EOF
5052#define HAVE_UINTXX_T 1
5053EOF
5054
5055 fi
5056fi
5057
5058echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
5059echo "configure:5060: checking for socklen_t" >&5
5060if eval "test \"`echo '$''{'ac_cv_have_socklen_t'+set}'`\" = set"; then
5061 echo $ac_n "(cached) $ac_c" 1>&6
5062else
5063
5064 cat > conftest.$ac_ext <<EOF
5065#line 5066 "configure"
5066#include "confdefs.h"
5067
5068#include <sys/types.h>
5069#include <sys/socket.h>
5070
5071int main() {
5072socklen_t foo; foo = 1235;
5073; return 0; }
5074EOF
5075if { (eval echo configure:5076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5076 rm -rf conftest*
5077 ac_cv_have_socklen_t="yes"
5078else
5079 echo "configure: failed program was:" >&5
5080 cat conftest.$ac_ext >&5
5081 rm -rf conftest*
5082 ac_cv_have_socklen_t="no"
5083
5084fi
5085rm -f conftest*
5086
5087fi
5088
5089echo "$ac_t""$ac_cv_have_socklen_t" 1>&6
5090if test "x$ac_cv_have_socklen_t" = "xyes" ; then
5091 cat >> confdefs.h <<\EOF
5092#define HAVE_SOCKLEN_T 1
5093EOF
5094
5095fi
5096
5097echo $ac_n "checking for size_t""... $ac_c" 1>&6
5098echo "configure:5099: checking for size_t" >&5
5099if eval "test \"`echo '$''{'ac_cv_have_size_t'+set}'`\" = set"; then
5100 echo $ac_n "(cached) $ac_c" 1>&6
5101else
5102
5103 cat > conftest.$ac_ext <<EOF
5104#line 5105 "configure"
5105#include "confdefs.h"
5106
5107#include <sys/types.h>
5108
5109int main() {
5110 size_t foo; foo = 1235;
5111; return 0; }
5112EOF
5113if { (eval echo configure:5114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5114 rm -rf conftest*
5115 ac_cv_have_size_t="yes"
5116else
5117 echo "configure: failed program was:" >&5
5118 cat conftest.$ac_ext >&5
5119 rm -rf conftest*
5120 ac_cv_have_size_t="no"
5121
5122fi
5123rm -f conftest*
5124
5125fi
5126
5127echo "$ac_t""$ac_cv_have_size_t" 1>&6
5128if test "x$ac_cv_have_size_t" = "xyes" ; then
5129 cat >> confdefs.h <<\EOF
5130#define HAVE_SIZE_T 1
5131EOF
5132
5133fi
5134
5135echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
5136echo "configure:5137: checking for ssize_t" >&5
5137if eval "test \"`echo '$''{'ac_cv_have_ssize_t'+set}'`\" = set"; then
5138 echo $ac_n "(cached) $ac_c" 1>&6
5139else
5140
5141 cat > conftest.$ac_ext <<EOF
5142#line 5143 "configure"
5143#include "confdefs.h"
5144
5145#include <sys/types.h>
5146
5147int main() {
5148 ssize_t foo; foo = 1235;
5149; return 0; }
5150EOF
5151if { (eval echo configure:5152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5152 rm -rf conftest*
5153 ac_cv_have_ssize_t="yes"
5154else
5155 echo "configure: failed program was:" >&5
5156 cat conftest.$ac_ext >&5
5157 rm -rf conftest*
5158 ac_cv_have_ssize_t="no"
5159
5160fi
5161rm -f conftest*
5162
5163fi
5164
5165echo "$ac_t""$ac_cv_have_ssize_t" 1>&6
5166if test "x$ac_cv_have_ssize_t" = "xyes" ; then
5167 cat >> confdefs.h <<\EOF
5168#define HAVE_SSIZE_T 1
5169EOF
5170
5171fi
5172
5173echo $ac_n "checking for clock_t""... $ac_c" 1>&6
5174echo "configure:5175: checking for clock_t" >&5
5175if eval "test \"`echo '$''{'ac_cv_have_clock_t'+set}'`\" = set"; then
5176 echo $ac_n "(cached) $ac_c" 1>&6
5177else
5178
5179 cat > conftest.$ac_ext <<EOF
5180#line 5181 "configure"
5181#include "confdefs.h"
5182
5183#include <time.h>
5184
5185int main() {
5186 clock_t foo; foo = 1235;
5187; return 0; }
5188EOF
5189if { (eval echo configure:5190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5190 rm -rf conftest*
5191 ac_cv_have_clock_t="yes"
5192else
5193 echo "configure: failed program was:" >&5
5194 cat conftest.$ac_ext >&5
5195 rm -rf conftest*
5196 ac_cv_have_clock_t="no"
5197
5198fi
5199rm -f conftest*
5200
5201fi
5202
5203echo "$ac_t""$ac_cv_have_clock_t" 1>&6
5204if test "x$ac_cv_have_clock_t" = "xyes" ; then
5205 cat >> confdefs.h <<\EOF
5206#define HAVE_CLOCK_T 1
5207EOF
5208
5209fi
5210
5211echo $ac_n "checking for sa_family_t""... $ac_c" 1>&6
5212echo "configure:5213: checking for sa_family_t" >&5
5213if eval "test \"`echo '$''{'ac_cv_have_sa_family_t'+set}'`\" = set"; then
5214 echo $ac_n "(cached) $ac_c" 1>&6
5215else
5216
5217 cat > conftest.$ac_ext <<EOF
5218#line 5219 "configure"
5219#include "confdefs.h"
5220
5221#include <sys/types.h>
5222#include <sys/socket.h>
5223
5224int main() {
5225 sa_family_t foo; foo = 1235;
5226; return 0; }
5227EOF
5228if { (eval echo configure:5229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5229 rm -rf conftest*
5230 ac_cv_have_sa_family_t="yes"
5231else
5232 echo "configure: failed program was:" >&5
5233 cat conftest.$ac_ext >&5
5234 rm -rf conftest*
5235 cat > conftest.$ac_ext <<EOF
5236#line 5237 "configure"
5237#include "confdefs.h"
5238
5239#include <sys/types.h>
5240#include <sys/socket.h>
5241#include <netinet/in.h>
5242
5243int main() {
5244 sa_family_t foo; foo = 1235;
5245; return 0; }
5246EOF
5247if { (eval echo configure:5248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5248 rm -rf conftest*
5249 ac_cv_have_sa_family_t="yes"
5250else
5251 echo "configure: failed program was:" >&5
5252 cat conftest.$ac_ext >&5
5253 rm -rf conftest*
5254 ac_cv_have_sa_family_t="no"
5255
5256fi
5257rm -f conftest*
5258
5259fi
5260rm -f conftest*
5261
5262fi
5263
5264echo "$ac_t""$ac_cv_have_sa_family_t" 1>&6
5265if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
5266 cat >> confdefs.h <<\EOF
5267#define HAVE_SA_FAMILY_T 1
5268EOF
5269
5270fi
5271
5272echo $ac_n "checking for pid_t""... $ac_c" 1>&6
5273echo "configure:5274: checking for pid_t" >&5
5274if eval "test \"`echo '$''{'ac_cv_have_pid_t'+set}'`\" = set"; then
5275 echo $ac_n "(cached) $ac_c" 1>&6
5276else
5277
5278 cat > conftest.$ac_ext <<EOF
5279#line 5280 "configure"
5280#include "confdefs.h"
5281
5282#include <sys/types.h>
5283
5284int main() {
5285 pid_t foo; foo = 1235;
5286; return 0; }
5287EOF
5288if { (eval echo configure:5289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5289 rm -rf conftest*
5290 ac_cv_have_pid_t="yes"
5291else
5292 echo "configure: failed program was:" >&5
5293 cat conftest.$ac_ext >&5
5294 rm -rf conftest*
5295 ac_cv_have_pid_t="no"
5296
5297fi
5298rm -f conftest*
5299
5300fi
5301
5302echo "$ac_t""$ac_cv_have_pid_t" 1>&6
5303if test "x$ac_cv_have_pid_t" = "xyes" ; then
5304 cat >> confdefs.h <<\EOF
5305#define HAVE_PID_T 1
5306EOF
5307
5308fi
5309
5310echo $ac_n "checking for mode_t""... $ac_c" 1>&6
5311echo "configure:5312: checking for mode_t" >&5
5312if eval "test \"`echo '$''{'ac_cv_have_mode_t'+set}'`\" = set"; then
5313 echo $ac_n "(cached) $ac_c" 1>&6
5314else
5315
5316 cat > conftest.$ac_ext <<EOF
5317#line 5318 "configure"
5318#include "confdefs.h"
5319
5320#include <sys/types.h>
5321
5322int main() {
5323 mode_t foo; foo = 1235;
5324; return 0; }
5325EOF
5326if { (eval echo configure:5327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5327 rm -rf conftest*
5328 ac_cv_have_mode_t="yes"
5329else
5330 echo "configure: failed program was:" >&5
5331 cat conftest.$ac_ext >&5
5332 rm -rf conftest*
5333 ac_cv_have_mode_t="no"
5334
5335fi
5336rm -f conftest*
5337
5338fi
5339
5340echo "$ac_t""$ac_cv_have_mode_t" 1>&6
5341if test "x$ac_cv_have_mode_t" = "xyes" ; then
5342 cat >> confdefs.h <<\EOF
5343#define HAVE_MODE_T 1
5344EOF
5345
5346fi
5347
5348
5349echo $ac_n "checking for struct sockaddr_storage""... $ac_c" 1>&6
5350echo "configure:5351: checking for struct sockaddr_storage" >&5
5351if eval "test \"`echo '$''{'ac_cv_have_struct_sockaddr_storage'+set}'`\" = set"; then
5352 echo $ac_n "(cached) $ac_c" 1>&6
5353else
5354
5355 cat > conftest.$ac_ext <<EOF
5356#line 5357 "configure"
5357#include "confdefs.h"
5358
5359#include <sys/types.h>
5360#include <sys/socket.h>
5361
5362int main() {
5363 struct sockaddr_storage s;
5364; return 0; }
5365EOF
5366if { (eval echo configure:5367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5367 rm -rf conftest*
5368 ac_cv_have_struct_sockaddr_storage="yes"
5369else
5370 echo "configure: failed program was:" >&5
5371 cat conftest.$ac_ext >&5
5372 rm -rf conftest*
5373 ac_cv_have_struct_sockaddr_storage="no"
5374
5375fi
5376rm -f conftest*
5377
5378fi
5379
5380echo "$ac_t""$ac_cv_have_struct_sockaddr_storage" 1>&6
5381if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
5382 cat >> confdefs.h <<\EOF
5383#define HAVE_STRUCT_SOCKADDR_STORAGE 1
5384EOF
5385
5386fi
5387
5388echo $ac_n "checking for struct sockaddr_in6""... $ac_c" 1>&6
5389echo "configure:5390: checking for struct sockaddr_in6" >&5
5390if eval "test \"`echo '$''{'ac_cv_have_struct_sockaddr_in6'+set}'`\" = set"; then
5391 echo $ac_n "(cached) $ac_c" 1>&6
5392else
5393
5394 cat > conftest.$ac_ext <<EOF
5395#line 5396 "configure"
5396#include "confdefs.h"
5397
5398#include <sys/types.h>
5399#include <netinet/in.h>
5400
5401int main() {
5402 struct sockaddr_in6 s; s.sin6_family = 0;
5403; return 0; }
5404EOF
5405if { (eval echo configure:5406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5406 rm -rf conftest*
5407 ac_cv_have_struct_sockaddr_in6="yes"
5408else
5409 echo "configure: failed program was:" >&5
5410 cat conftest.$ac_ext >&5
5411 rm -rf conftest*
5412 ac_cv_have_struct_sockaddr_in6="no"
5413
5414fi
5415rm -f conftest*
5416
5417fi
5418
5419echo "$ac_t""$ac_cv_have_struct_sockaddr_in6" 1>&6
5420if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
5421 cat >> confdefs.h <<\EOF
5422#define HAVE_STRUCT_SOCKADDR_IN6 1
5423EOF
5424
5425fi
5426
5427echo $ac_n "checking for struct in6_addr""... $ac_c" 1>&6
5428echo "configure:5429: checking for struct in6_addr" >&5
5429if eval "test \"`echo '$''{'ac_cv_have_struct_in6_addr'+set}'`\" = set"; then
5430 echo $ac_n "(cached) $ac_c" 1>&6
5431else
5432
5433 cat > conftest.$ac_ext <<EOF
5434#line 5435 "configure"
5435#include "confdefs.h"
5436
5437#include <sys/types.h>
5438#include <netinet/in.h>
5439
5440int main() {
5441 struct in6_addr s; s.s6_addr[0] = 0;
5442; return 0; }
5443EOF
5444if { (eval echo configure:5445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5445 rm -rf conftest*
5446 ac_cv_have_struct_in6_addr="yes"
5447else
5448 echo "configure: failed program was:" >&5
5449 cat conftest.$ac_ext >&5
5450 rm -rf conftest*
5451 ac_cv_have_struct_in6_addr="no"
5452
5453fi
5454rm -f conftest*
5455
5456fi
5457
5458echo "$ac_t""$ac_cv_have_struct_in6_addr" 1>&6
5459if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
5460 cat >> confdefs.h <<\EOF
5461#define HAVE_STRUCT_IN6_ADDR 1
5462EOF
5463
5464fi
5465
5466echo $ac_n "checking for struct addrinfo""... $ac_c" 1>&6
5467echo "configure:5468: checking for struct addrinfo" >&5
5468if eval "test \"`echo '$''{'ac_cv_have_struct_addrinfo'+set}'`\" = set"; then
5469 echo $ac_n "(cached) $ac_c" 1>&6
5470else
5471
5472 cat > conftest.$ac_ext <<EOF
5473#line 5474 "configure"
5474#include "confdefs.h"
5475
5476#include <sys/types.h>
5477#include <sys/socket.h>
5478#include <netdb.h>
5479
5480int main() {
5481 struct addrinfo s; s.ai_flags = AI_PASSIVE;
5482; return 0; }
5483EOF
5484if { (eval echo configure:5485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5485 rm -rf conftest*
5486 ac_cv_have_struct_addrinfo="yes"
5487else
5488 echo "configure: failed program was:" >&5
5489 cat conftest.$ac_ext >&5
5490 rm -rf conftest*
5491 ac_cv_have_struct_addrinfo="no"
5492
5493fi
5494rm -f conftest*
5495
5496fi
5497
5498echo "$ac_t""$ac_cv_have_struct_addrinfo" 1>&6
5499if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
5500 cat >> confdefs.h <<\EOF
5501#define HAVE_STRUCT_ADDRINFO 1
5502EOF
5503
5504fi
5505
5506echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
5507echo "configure:5508: checking for struct timeval" >&5
5508if eval "test \"`echo '$''{'ac_cv_have_struct_timeval'+set}'`\" = set"; then
5509 echo $ac_n "(cached) $ac_c" 1>&6
5510else
5511
5512 cat > conftest.$ac_ext <<EOF
5513#line 5514 "configure"
5514#include "confdefs.h"
5515 #include <sys/time.h>
5516int main() {
5517 struct timeval tv; tv.tv_sec = 1;
5518; return 0; }
5519EOF
5520if { (eval echo configure:5521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5521 rm -rf conftest*
5522 ac_cv_have_struct_timeval="yes"
5523else
5524 echo "configure: failed program was:" >&5
5525 cat conftest.$ac_ext >&5
5526 rm -rf conftest*
5527 ac_cv_have_struct_timeval="no"
5528
5529fi
5530rm -f conftest*
5531
5532fi
5533
5534echo "$ac_t""$ac_cv_have_struct_timeval" 1>&6
5535if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
5536 cat >> confdefs.h <<\EOF
5537#define HAVE_STRUCT_TIMEVAL 1
5538EOF
5539
5540 have_struct_timeval=1
5541fi
5542
5543# If we don't have int64_t then we can't compile sftp-server. So don't
5544# even attempt to do it.
5545if test "x$ac_cv_have_int64_t" = "xno" -a \
5546 "x$ac_cv_sizeof_long_int" != "x8" -a \
5547 "x$ac_cv_sizeof_long_long_int" = "x0" ; then
5548 NO_SFTP='#'
5549else
5550 if test "$cross_compiling" = yes; then
5551 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5552else
5553 cat > conftest.$ac_ext <<EOF
5554#line 5555 "configure"
5555#include "confdefs.h"
5556
5557#include <stdio.h>
5558#include <string.h>
5559#ifdef HAVE_SNPRINTF
5560main()
5561{
5562 char buf[50];
5563 char expected_out[50];
5564 int mazsize = 50 ;
5565#if (SIZEOF_LONG_INT == 8)
5566 long int num = 0x7fffffffffffffff;
5567#else
5568 long long num = 0x7fffffffffffffff;
5569#endif
5570 strcpy(expected_out, "9223372036854775807");
5571 snprintf(buf, mazsize, "%lld", num);
5572 if(strcmp(buf, expected_out) != 0)
5573 exit(1);
5574 exit(0);
5575}
5576#else
5577main() { exit(0); }
5578#endif
5579
5580EOF
5581if { (eval echo configure:5582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5582then
5583 true
5584else
5585 echo "configure: failed program was:" >&5
5586 cat conftest.$ac_ext >&5
5587 rm -fr conftest*
5588 cat >> confdefs.h <<\EOF
5589#define BROKEN_SNPRINTF 1
5590EOF
5591
5592
5593fi
5594rm -fr conftest*
5595fi
5596
5597fi
5598
5599
5600
5601# look for field 'ut_host' in header 'utmp.h'
5602 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
5603 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
5604 echo $ac_n "checking for ut_host field in utmp.h""... $ac_c" 1>&6
5605echo "configure:5606: checking for ut_host field in utmp.h" >&5
5606 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
5607 echo $ac_n "(cached) $ac_c" 1>&6
5608else
5609
5610 cat > conftest.$ac_ext <<EOF
5611#line 5612 "configure"
5612#include "confdefs.h"
5613#include <utmp.h>
5614EOF
5615if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5616 egrep "ut_host" >/dev/null 2>&1; then
5617 rm -rf conftest*
5618 eval "$ossh_varname=yes"
5619else
5620 rm -rf conftest*
5621 eval "$ossh_varname=no"
5622fi
5623rm -f conftest*
5624
5625fi
5626
5627 ossh_result=`eval 'echo $'"$ossh_varname"`
5628 if test -n "`echo $ossh_varname`"; then
5629 echo "$ac_t""$ossh_result" 1>&6
5630 if test "x$ossh_result" = "xyes"; then
5631 cat >> confdefs.h <<\EOF
5632#define HAVE_HOST_IN_UTMP 1
5633EOF
5634
5635 fi
5636 else
5637 echo "$ac_t""no" 1>&6
5638 fi
5639
5640
5641# look for field 'ut_host' in header 'utmpx.h'
5642 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
5643 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
5644 echo $ac_n "checking for ut_host field in utmpx.h""... $ac_c" 1>&6
5645echo "configure:5646: checking for ut_host field in utmpx.h" >&5
5646 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
5647 echo $ac_n "(cached) $ac_c" 1>&6
5648else
5649
5650 cat > conftest.$ac_ext <<EOF
5651#line 5652 "configure"
5652#include "confdefs.h"
5653#include <utmpx.h>
5654EOF
5655if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5656 egrep "ut_host" >/dev/null 2>&1; then
5657 rm -rf conftest*
5658 eval "$ossh_varname=yes"
5659else
5660 rm -rf conftest*
5661 eval "$ossh_varname=no"
5662fi
5663rm -f conftest*
5664
5665fi
5666
5667 ossh_result=`eval 'echo $'"$ossh_varname"`
5668 if test -n "`echo $ossh_varname`"; then
5669 echo "$ac_t""$ossh_result" 1>&6
5670 if test "x$ossh_result" = "xyes"; then
5671 cat >> confdefs.h <<\EOF
5672#define HAVE_HOST_IN_UTMPX 1
5673EOF
5674
5675 fi
5676 else
5677 echo "$ac_t""no" 1>&6
5678 fi
5679
5680
5681# look for field 'syslen' in header 'utmpx.h'
5682 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
5683 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
5684 echo $ac_n "checking for syslen field in utmpx.h""... $ac_c" 1>&6
5685echo "configure:5686: checking for syslen field in utmpx.h" >&5
5686 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
5687 echo $ac_n "(cached) $ac_c" 1>&6
5688else
5689
5690 cat > conftest.$ac_ext <<EOF
5691#line 5692 "configure"
5692#include "confdefs.h"
5693#include <utmpx.h>
5694EOF
5695if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5696 egrep "syslen" >/dev/null 2>&1; then
5697 rm -rf conftest*
5698 eval "$ossh_varname=yes"
5699else
5700 rm -rf conftest*
5701 eval "$ossh_varname=no"
5702fi
5703rm -f conftest*
5704
5705fi
5706
5707 ossh_result=`eval 'echo $'"$ossh_varname"`
5708 if test -n "`echo $ossh_varname`"; then
5709 echo "$ac_t""$ossh_result" 1>&6
5710 if test "x$ossh_result" = "xyes"; then
5711 cat >> confdefs.h <<\EOF
5712#define HAVE_SYSLEN_IN_UTMPX 1
5713EOF
5714
5715 fi
5716 else
5717 echo "$ac_t""no" 1>&6
5718 fi
5719
5720
5721# look for field 'ut_pid' in header 'utmp.h'
5722 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
5723 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
5724 echo $ac_n "checking for ut_pid field in utmp.h""... $ac_c" 1>&6
5725echo "configure:5726: checking for ut_pid field in utmp.h" >&5
5726 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
5727 echo $ac_n "(cached) $ac_c" 1>&6
5728else
5729
5730 cat > conftest.$ac_ext <<EOF
5731#line 5732 "configure"
5732#include "confdefs.h"
5733#include <utmp.h>
5734EOF
5735if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5736 egrep "ut_pid" >/dev/null 2>&1; then
5737 rm -rf conftest*
5738 eval "$ossh_varname=yes"
5739else
5740 rm -rf conftest*
5741 eval "$ossh_varname=no"
5742fi
5743rm -f conftest*
5744
5745fi
5746
5747 ossh_result=`eval 'echo $'"$ossh_varname"`
5748 if test -n "`echo $ossh_varname`"; then
5749 echo "$ac_t""$ossh_result" 1>&6
5750 if test "x$ossh_result" = "xyes"; then
5751 cat >> confdefs.h <<\EOF
5752#define HAVE_PID_IN_UTMP 1
5753EOF
5754
5755 fi
5756 else
5757 echo "$ac_t""no" 1>&6
5758 fi
5759
5760
5761# look for field 'ut_type' in header 'utmp.h'
5762 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
5763 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
5764 echo $ac_n "checking for ut_type field in utmp.h""... $ac_c" 1>&6
5765echo "configure:5766: checking for ut_type field in utmp.h" >&5
5766 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
5767 echo $ac_n "(cached) $ac_c" 1>&6
5768else
5769
5770 cat > conftest.$ac_ext <<EOF
5771#line 5772 "configure"
5772#include "confdefs.h"
5773#include <utmp.h>
5774EOF
5775if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5776 egrep "ut_type" >/dev/null 2>&1; then
5777 rm -rf conftest*
5778 eval "$ossh_varname=yes"
5779else
5780 rm -rf conftest*
5781 eval "$ossh_varname=no"
5782fi
5783rm -f conftest*
5784
5785fi
5786
5787 ossh_result=`eval 'echo $'"$ossh_varname"`
5788 if test -n "`echo $ossh_varname`"; then
5789 echo "$ac_t""$ossh_result" 1>&6
5790 if test "x$ossh_result" = "xyes"; then
5791 cat >> confdefs.h <<\EOF
5792#define HAVE_TYPE_IN_UTMP 1
5793EOF
5794
5795 fi
5796 else
5797 echo "$ac_t""no" 1>&6
5798 fi
5799
5800
5801# look for field 'ut_type' in header 'utmpx.h'
5802 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
5803 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
5804 echo $ac_n "checking for ut_type field in utmpx.h""... $ac_c" 1>&6
5805echo "configure:5806: checking for ut_type field in utmpx.h" >&5
5806 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
5807 echo $ac_n "(cached) $ac_c" 1>&6
5808else
5809
5810 cat > conftest.$ac_ext <<EOF
5811#line 5812 "configure"
5812#include "confdefs.h"
5813#include <utmpx.h>
5814EOF
5815if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5816 egrep "ut_type" >/dev/null 2>&1; then
5817 rm -rf conftest*
5818 eval "$ossh_varname=yes"
5819else
5820 rm -rf conftest*
5821 eval "$ossh_varname=no"
5822fi
5823rm -f conftest*
5824
5825fi
5826
5827 ossh_result=`eval 'echo $'"$ossh_varname"`
5828 if test -n "`echo $ossh_varname`"; then
5829 echo "$ac_t""$ossh_result" 1>&6
5830 if test "x$ossh_result" = "xyes"; then
5831 cat >> confdefs.h <<\EOF
5832#define HAVE_TYPE_IN_UTMPX 1
5833EOF
5834
5835 fi
5836 else
5837 echo "$ac_t""no" 1>&6
5838 fi
5839
5840
5841# look for field 'ut_tv' in header 'utmp.h'
5842 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
5843 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
5844 echo $ac_n "checking for ut_tv field in utmp.h""... $ac_c" 1>&6
5845echo "configure:5846: checking for ut_tv field in utmp.h" >&5
5846 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
5847 echo $ac_n "(cached) $ac_c" 1>&6
5848else
5849
5850 cat > conftest.$ac_ext <<EOF
5851#line 5852 "configure"
5852#include "confdefs.h"
5853#include <utmp.h>
5854EOF
5855if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5856 egrep "ut_tv" >/dev/null 2>&1; then
5857 rm -rf conftest*
5858 eval "$ossh_varname=yes"
5859else
5860 rm -rf conftest*
5861 eval "$ossh_varname=no"
5862fi
5863rm -f conftest*
5864
5865fi
5866
5867 ossh_result=`eval 'echo $'"$ossh_varname"`
5868 if test -n "`echo $ossh_varname`"; then
5869 echo "$ac_t""$ossh_result" 1>&6
5870 if test "x$ossh_result" = "xyes"; then
5871 cat >> confdefs.h <<\EOF
5872#define HAVE_TV_IN_UTMP 1
5873EOF
5874
5875 fi
5876 else
5877 echo "$ac_t""no" 1>&6
5878 fi
5879
5880
5881# look for field 'ut_id' in header 'utmp.h'
5882 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
5883 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
5884 echo $ac_n "checking for ut_id field in utmp.h""... $ac_c" 1>&6
5885echo "configure:5886: checking for ut_id field in utmp.h" >&5
5886 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
5887 echo $ac_n "(cached) $ac_c" 1>&6
5888else
5889
5890 cat > conftest.$ac_ext <<EOF
5891#line 5892 "configure"
5892#include "confdefs.h"
5893#include <utmp.h>
5894EOF
5895if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5896 egrep "ut_id" >/dev/null 2>&1; then
5897 rm -rf conftest*
5898 eval "$ossh_varname=yes"
5899else
5900 rm -rf conftest*
5901 eval "$ossh_varname=no"
5902fi
5903rm -f conftest*
5904
5905fi
5906
5907 ossh_result=`eval 'echo $'"$ossh_varname"`
5908 if test -n "`echo $ossh_varname`"; then
5909 echo "$ac_t""$ossh_result" 1>&6
5910 if test "x$ossh_result" = "xyes"; then
5911 cat >> confdefs.h <<\EOF
5912#define HAVE_ID_IN_UTMP 1
5913EOF
5914
5915 fi
5916 else
5917 echo "$ac_t""no" 1>&6
5918 fi
5919
5920
5921# look for field 'ut_id' in header 'utmpx.h'
5922 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
5923 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
5924 echo $ac_n "checking for ut_id field in utmpx.h""... $ac_c" 1>&6
5925echo "configure:5926: checking for ut_id field in utmpx.h" >&5
5926 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
5927 echo $ac_n "(cached) $ac_c" 1>&6
5928else
5929
5930 cat > conftest.$ac_ext <<EOF
5931#line 5932 "configure"
5932#include "confdefs.h"
5933#include <utmpx.h>
5934EOF
5935if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5936 egrep "ut_id" >/dev/null 2>&1; then
5937 rm -rf conftest*
5938 eval "$ossh_varname=yes"
5939else
5940 rm -rf conftest*
5941 eval "$ossh_varname=no"
5942fi
5943rm -f conftest*
5944
5945fi
5946
5947 ossh_result=`eval 'echo $'"$ossh_varname"`
5948 if test -n "`echo $ossh_varname`"; then
5949 echo "$ac_t""$ossh_result" 1>&6
5950 if test "x$ossh_result" = "xyes"; then
5951 cat >> confdefs.h <<\EOF
5952#define HAVE_ID_IN_UTMPX 1
5953EOF
5954
5955 fi
5956 else
5957 echo "$ac_t""no" 1>&6
5958 fi
5959
5960
5961# look for field 'ut_addr' in header 'utmp.h'
5962 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
5963 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
5964 echo $ac_n "checking for ut_addr field in utmp.h""... $ac_c" 1>&6
5965echo "configure:5966: checking for ut_addr field in utmp.h" >&5
5966 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
5967 echo $ac_n "(cached) $ac_c" 1>&6
5968else
5969
5970 cat > conftest.$ac_ext <<EOF
5971#line 5972 "configure"
5972#include "confdefs.h"
5973#include <utmp.h>
5974EOF
5975if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5976 egrep "ut_addr" >/dev/null 2>&1; then
5977 rm -rf conftest*
5978 eval "$ossh_varname=yes"
5979else
5980 rm -rf conftest*
5981 eval "$ossh_varname=no"
5982fi
5983rm -f conftest*
5984
5985fi
5986
5987 ossh_result=`eval 'echo $'"$ossh_varname"`
5988 if test -n "`echo $ossh_varname`"; then
5989 echo "$ac_t""$ossh_result" 1>&6
5990 if test "x$ossh_result" = "xyes"; then
5991 cat >> confdefs.h <<\EOF
5992#define HAVE_ADDR_IN_UTMP 1
5993EOF
5994
5995 fi
5996 else
5997 echo "$ac_t""no" 1>&6
5998 fi
5999
6000
6001# look for field 'ut_addr' in header 'utmpx.h'
6002 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
6003 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
6004 echo $ac_n "checking for ut_addr field in utmpx.h""... $ac_c" 1>&6
6005echo "configure:6006: checking for ut_addr field in utmpx.h" >&5
6006 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
6007 echo $ac_n "(cached) $ac_c" 1>&6
6008else
6009
6010 cat > conftest.$ac_ext <<EOF
6011#line 6012 "configure"
6012#include "confdefs.h"
6013#include <utmpx.h>
6014EOF
6015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6016 egrep "ut_addr" >/dev/null 2>&1; then
6017 rm -rf conftest*
6018 eval "$ossh_varname=yes"
6019else
6020 rm -rf conftest*
6021 eval "$ossh_varname=no"
6022fi
6023rm -f conftest*
6024
6025fi
6026
6027 ossh_result=`eval 'echo $'"$ossh_varname"`
6028 if test -n "`echo $ossh_varname`"; then
6029 echo "$ac_t""$ossh_result" 1>&6
6030 if test "x$ossh_result" = "xyes"; then
6031 cat >> confdefs.h <<\EOF
6032#define HAVE_ADDR_IN_UTMPX 1
6033EOF
6034
6035 fi
6036 else
6037 echo "$ac_t""no" 1>&6
6038 fi
6039
6040
6041# look for field 'ut_addr_v6' in header 'utmp.h'
6042 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
6043 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
6044 echo $ac_n "checking for ut_addr_v6 field in utmp.h""... $ac_c" 1>&6
6045echo "configure:6046: checking for ut_addr_v6 field in utmp.h" >&5
6046 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
6047 echo $ac_n "(cached) $ac_c" 1>&6
6048else
6049
6050 cat > conftest.$ac_ext <<EOF
6051#line 6052 "configure"
6052#include "confdefs.h"
6053#include <utmp.h>
6054EOF
6055if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6056 egrep "ut_addr_v6" >/dev/null 2>&1; then
6057 rm -rf conftest*
6058 eval "$ossh_varname=yes"
6059else
6060 rm -rf conftest*
6061 eval "$ossh_varname=no"
6062fi
6063rm -f conftest*
6064
6065fi
6066
6067 ossh_result=`eval 'echo $'"$ossh_varname"`
6068 if test -n "`echo $ossh_varname`"; then
6069 echo "$ac_t""$ossh_result" 1>&6
6070 if test "x$ossh_result" = "xyes"; then
6071 cat >> confdefs.h <<\EOF
6072#define HAVE_ADDR_V6_IN_UTMP 1
6073EOF
6074
6075 fi
6076 else
6077 echo "$ac_t""no" 1>&6
6078 fi
6079
6080
6081# look for field 'ut_addr_v6' in header 'utmpx.h'
6082 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
6083 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
6084 echo $ac_n "checking for ut_addr_v6 field in utmpx.h""... $ac_c" 1>&6
6085echo "configure:6086: checking for ut_addr_v6 field in utmpx.h" >&5
6086 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
6087 echo $ac_n "(cached) $ac_c" 1>&6
6088else
6089
6090 cat > conftest.$ac_ext <<EOF
6091#line 6092 "configure"
6092#include "confdefs.h"
6093#include <utmpx.h>
6094EOF
6095if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6096 egrep "ut_addr_v6" >/dev/null 2>&1; then
6097 rm -rf conftest*
6098 eval "$ossh_varname=yes"
6099else
6100 rm -rf conftest*
6101 eval "$ossh_varname=no"
6102fi
6103rm -f conftest*
6104
6105fi
6106
6107 ossh_result=`eval 'echo $'"$ossh_varname"`
6108 if test -n "`echo $ossh_varname`"; then
6109 echo "$ac_t""$ossh_result" 1>&6
6110 if test "x$ossh_result" = "xyes"; then
6111 cat >> confdefs.h <<\EOF
6112#define HAVE_ADDR_V6_IN_UTMPX 1
6113EOF
6114
6115 fi
6116 else
6117 echo "$ac_t""no" 1>&6
6118 fi
6119
6120
6121# look for field 'ut_exit' in header 'utmp.h'
6122 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
6123 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
6124 echo $ac_n "checking for ut_exit field in utmp.h""... $ac_c" 1>&6
6125echo "configure:6126: checking for ut_exit field in utmp.h" >&5
6126 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
6127 echo $ac_n "(cached) $ac_c" 1>&6
6128else
6129
6130 cat > conftest.$ac_ext <<EOF
6131#line 6132 "configure"
6132#include "confdefs.h"
6133#include <utmp.h>
6134EOF
6135if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6136 egrep "ut_exit" >/dev/null 2>&1; then
6137 rm -rf conftest*
6138 eval "$ossh_varname=yes"
6139else
6140 rm -rf conftest*
6141 eval "$ossh_varname=no"
6142fi
6143rm -f conftest*
6144
6145fi
6146
6147 ossh_result=`eval 'echo $'"$ossh_varname"`
6148 if test -n "`echo $ossh_varname`"; then
6149 echo "$ac_t""$ossh_result" 1>&6
6150 if test "x$ossh_result" = "xyes"; then
6151 cat >> confdefs.h <<\EOF
6152#define HAVE_EXIT_IN_UTMP 1
6153EOF
6154
6155 fi
6156 else
6157 echo "$ac_t""no" 1>&6
6158 fi
6159
6160
6161# look for field 'ut_time' in header 'utmp.h'
6162 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
6163 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
6164 echo $ac_n "checking for ut_time field in utmp.h""... $ac_c" 1>&6
6165echo "configure:6166: checking for ut_time field in utmp.h" >&5
6166 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
6167 echo $ac_n "(cached) $ac_c" 1>&6
6168else
6169
6170 cat > conftest.$ac_ext <<EOF
6171#line 6172 "configure"
6172#include "confdefs.h"
6173#include <utmp.h>
6174EOF
6175if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6176 egrep "ut_time" >/dev/null 2>&1; then
6177 rm -rf conftest*
6178 eval "$ossh_varname=yes"
6179else
6180 rm -rf conftest*
6181 eval "$ossh_varname=no"
6182fi
6183rm -f conftest*
6184
6185fi
6186
6187 ossh_result=`eval 'echo $'"$ossh_varname"`
6188 if test -n "`echo $ossh_varname`"; then
6189 echo "$ac_t""$ossh_result" 1>&6
6190 if test "x$ossh_result" = "xyes"; then
6191 cat >> confdefs.h <<\EOF
6192#define HAVE_TIME_IN_UTMP 1
6193EOF
6194
6195 fi
6196 else
6197 echo "$ac_t""no" 1>&6
6198 fi
6199
6200
6201# look for field 'ut_time' in header 'utmpx.h'
6202 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
6203 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
6204 echo $ac_n "checking for ut_time field in utmpx.h""... $ac_c" 1>&6
6205echo "configure:6206: checking for ut_time field in utmpx.h" >&5
6206 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
6207 echo $ac_n "(cached) $ac_c" 1>&6
6208else
6209
6210 cat > conftest.$ac_ext <<EOF
6211#line 6212 "configure"
6212#include "confdefs.h"
6213#include <utmpx.h>
6214EOF
6215if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6216 egrep "ut_time" >/dev/null 2>&1; then
6217 rm -rf conftest*
6218 eval "$ossh_varname=yes"
6219else
6220 rm -rf conftest*
6221 eval "$ossh_varname=no"
6222fi
6223rm -f conftest*
6224
6225fi
6226
6227 ossh_result=`eval 'echo $'"$ossh_varname"`
6228 if test -n "`echo $ossh_varname`"; then
6229 echo "$ac_t""$ossh_result" 1>&6
6230 if test "x$ossh_result" = "xyes"; then
6231 cat >> confdefs.h <<\EOF
6232#define HAVE_TIME_IN_UTMPX 1
6233EOF
6234
6235 fi
6236 else
6237 echo "$ac_t""no" 1>&6
6238 fi
6239
6240
6241# look for field 'ut_tv' in header 'utmpx.h'
6242 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
6243 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
6244 echo $ac_n "checking for ut_tv field in utmpx.h""... $ac_c" 1>&6
6245echo "configure:6246: checking for ut_tv field in utmpx.h" >&5
6246 if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then
6247 echo $ac_n "(cached) $ac_c" 1>&6
6248else
6249
6250 cat > conftest.$ac_ext <<EOF
6251#line 6252 "configure"
6252#include "confdefs.h"
6253#include <utmpx.h>
6254EOF
6255if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6256 egrep "ut_tv" >/dev/null 2>&1; then
6257 rm -rf conftest*
6258 eval "$ossh_varname=yes"
6259else
6260 rm -rf conftest*
6261 eval "$ossh_varname=no"
6262fi
6263rm -f conftest*
6264
6265fi
6266
6267 ossh_result=`eval 'echo $'"$ossh_varname"`
6268 if test -n "`echo $ossh_varname`"; then
6269 echo "$ac_t""$ossh_result" 1>&6
6270 if test "x$ossh_result" = "xyes"; then
6271 cat >> confdefs.h <<\EOF
6272#define HAVE_TV_IN_UTMPX 1
6273EOF
6274
6275 fi
6276 else
6277 echo "$ac_t""no" 1>&6
6278 fi
6279
6280echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
6281echo "configure:6282: checking for st_blksize in struct stat" >&5
6282if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
6283 echo $ac_n "(cached) $ac_c" 1>&6
6284else
6285 cat > conftest.$ac_ext <<EOF
6286#line 6287 "configure"
6287#include "confdefs.h"
6288#include <sys/types.h>
6289#include <sys/stat.h>
6290int main() {
6291struct stat s; s.st_blksize;
6292; return 0; }
6293EOF
6294if { (eval echo configure:6295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6295 rm -rf conftest*
6296 ac_cv_struct_st_blksize=yes
6297else
6298 echo "configure: failed program was:" >&5
6299 cat conftest.$ac_ext >&5
6300 rm -rf conftest*
6301 ac_cv_struct_st_blksize=no
6302fi
6303rm -f conftest*
6304fi
6305
6306echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
6307if test $ac_cv_struct_st_blksize = yes; then
6308 cat >> confdefs.h <<\EOF
6309#define HAVE_ST_BLKSIZE 1
6310EOF
6311
6312fi
6313
6314
6315echo $ac_n "checking for sun_len field in struct sockaddr_un""... $ac_c" 1>&6
6316echo "configure:6317: checking for sun_len field in struct sockaddr_un" >&5
6317if eval "test \"`echo '$''{'ac_cv_have_sun_len_in_struct_sockaddr_un'+set}'`\" = set"; then
6318 echo $ac_n "(cached) $ac_c" 1>&6
6319else
6320
6321 cat > conftest.$ac_ext <<EOF
6322#line 6323 "configure"
6323#include "confdefs.h"
6324
6325#include <sys/types.h>
6326#include <sys/socket.h>
6327
6328int main() {
6329 struct sockaddr_un s; s.sun_len = 1;
6330; return 0; }
6331EOF
6332if { (eval echo configure:6333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6333 rm -rf conftest*
6334 ac_cv_have_sun_len_in_struct_sockaddr_un="yes"
6335else
6336 echo "configure: failed program was:" >&5
6337 cat conftest.$ac_ext >&5
6338 rm -rf conftest*
6339 ac_cv_have_sun_len_in_struct_sockaddr_un="no"
6340fi
6341rm -f conftest*
6342
6343fi
6344
6345echo "$ac_t""$ac_cv_have_sun_len_in_struct_sockaddr_un" 1>&6
6346if test "x$ac_cv_have_sun_len_in_struct_sockaddr_un" = "xyes" ; then
6347 cat >> confdefs.h <<\EOF
6348#define HAVE_SUN_LEN_IN_SOCKADDR_UN 1
6349EOF
6350
6351fi
6352
6353echo $ac_n "checking for ss_family field in struct sockaddr_storage""... $ac_c" 1>&6
6354echo "configure:6355: checking for ss_family field in struct sockaddr_storage" >&5
6355if eval "test \"`echo '$''{'ac_cv_have_ss_family_in_struct_ss'+set}'`\" = set"; then
6356 echo $ac_n "(cached) $ac_c" 1>&6
6357else
6358
6359 cat > conftest.$ac_ext <<EOF
6360#line 6361 "configure"
6361#include "confdefs.h"
6362
6363#include <sys/types.h>
6364#include <sys/socket.h>
6365
6366int main() {
6367 struct sockaddr_storage s; s.ss_family = 1;
6368; return 0; }
6369EOF
6370if { (eval echo configure:6371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6371 rm -rf conftest*
6372 ac_cv_have_ss_family_in_struct_ss="yes"
6373else
6374 echo "configure: failed program was:" >&5
6375 cat conftest.$ac_ext >&5
6376 rm -rf conftest*
6377 ac_cv_have_ss_family_in_struct_ss="no"
6378fi
6379rm -f conftest*
6380
6381fi
6382
6383echo "$ac_t""$ac_cv_have_ss_family_in_struct_ss" 1>&6
6384if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
6385 cat >> confdefs.h <<\EOF
6386#define HAVE_SS_FAMILY_IN_SS 1
6387EOF
6388
6389fi
6390
6391echo $ac_n "checking for __ss_family field in struct sockaddr_storage""... $ac_c" 1>&6
6392echo "configure:6393: checking for __ss_family field in struct sockaddr_storage" >&5
6393if eval "test \"`echo '$''{'ac_cv_have___ss_family_in_struct_ss'+set}'`\" = set"; then
6394 echo $ac_n "(cached) $ac_c" 1>&6
6395else
6396
6397 cat > conftest.$ac_ext <<EOF
6398#line 6399 "configure"
6399#include "confdefs.h"
6400
6401#include <sys/types.h>
6402#include <sys/socket.h>
6403
6404int main() {
6405 struct sockaddr_storage s; s.__ss_family = 1;
6406; return 0; }
6407EOF
6408if { (eval echo configure:6409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6409 rm -rf conftest*
6410 ac_cv_have___ss_family_in_struct_ss="yes"
6411else
6412 echo "configure: failed program was:" >&5
6413 cat conftest.$ac_ext >&5
6414 rm -rf conftest*
6415 ac_cv_have___ss_family_in_struct_ss="no"
6416
6417fi
6418rm -f conftest*
6419
6420fi
6421
6422echo "$ac_t""$ac_cv_have___ss_family_in_struct_ss" 1>&6
6423if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
6424 cat >> confdefs.h <<\EOF
6425#define HAVE___SS_FAMILY_IN_SS 1
6426EOF
6427
6428fi
6429
6430echo $ac_n "checking for pw_class field in struct passwd""... $ac_c" 1>&6
6431echo "configure:6432: checking for pw_class field in struct passwd" >&5
6432if eval "test \"`echo '$''{'ac_cv_have_pw_class_in_struct_passwd'+set}'`\" = set"; then
6433 echo $ac_n "(cached) $ac_c" 1>&6
6434else
6435
6436 cat > conftest.$ac_ext <<EOF
6437#line 6438 "configure"
6438#include "confdefs.h"
6439
6440#include <pwd.h>
6441
6442int main() {
6443 struct passwd p; p.pw_class = 0;
6444; return 0; }
6445EOF
6446if { (eval echo configure:6447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6447 rm -rf conftest*
6448 ac_cv_have_pw_class_in_struct_passwd="yes"
6449else
6450 echo "configure: failed program was:" >&5
6451 cat conftest.$ac_ext >&5
6452 rm -rf conftest*
6453 ac_cv_have_pw_class_in_struct_passwd="no"
6454
6455fi
6456rm -f conftest*
6457
6458fi
6459
6460echo "$ac_t""$ac_cv_have_pw_class_in_struct_passwd" 1>&6
6461if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
6462 cat >> confdefs.h <<\EOF
6463#define HAVE_PW_CLASS_IN_PASSWD 1
6464EOF
6465
6466fi
6467
6468
6469echo $ac_n "checking if libc defines __progname""... $ac_c" 1>&6
6470echo "configure:6471: checking if libc defines __progname" >&5
6471if eval "test \"`echo '$''{'ac_cv_libc_defines___progname'+set}'`\" = set"; then
6472 echo $ac_n "(cached) $ac_c" 1>&6
6473else
6474
6475 cat > conftest.$ac_ext <<EOF
6476#line 6477 "configure"
6477#include "confdefs.h"
6478
6479int main() {
6480 extern char *__progname; printf("%s", __progname);
6481; return 0; }
6482EOF
6483if { (eval echo configure:6484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6484 rm -rf conftest*
6485 ac_cv_libc_defines___progname="yes"
6486else
6487 echo "configure: failed program was:" >&5
6488 cat conftest.$ac_ext >&5
6489 rm -rf conftest*
6490 ac_cv_libc_defines___progname="no"
6491
6492fi
6493rm -f conftest*
6494
6495fi
6496
6497echo "$ac_t""$ac_cv_libc_defines___progname" 1>&6
6498if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
6499 cat >> confdefs.h <<\EOF
6500#define HAVE___PROGNAME 1
6501EOF
6502
6503fi
6504
6505
6506echo $ac_n "checking if libc defines sys_errlist""... $ac_c" 1>&6
6507echo "configure:6508: checking if libc defines sys_errlist" >&5
6508if eval "test \"`echo '$''{'ac_cv_libc_defines_sys_errlist'+set}'`\" = set"; then
6509 echo $ac_n "(cached) $ac_c" 1>&6
6510else
6511
6512 cat > conftest.$ac_ext <<EOF
6513#line 6514 "configure"
6514#include "confdefs.h"
6515
6516int main() {
6517 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
6518; return 0; }
6519EOF
6520if { (eval echo configure:6521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6521 rm -rf conftest*
6522 ac_cv_libc_defines_sys_errlist="yes"
6523else
6524 echo "configure: failed program was:" >&5
6525 cat conftest.$ac_ext >&5
6526 rm -rf conftest*
6527 ac_cv_libc_defines_sys_errlist="no"
6528
6529fi
6530rm -f conftest*
6531
6532fi
6533
6534echo "$ac_t""$ac_cv_libc_defines_sys_errlist" 1>&6
6535if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
6536 cat >> confdefs.h <<\EOF
6537#define HAVE_SYS_ERRLIST 1
6538EOF
6539
6540fi
6541
6542
6543echo $ac_n "checking if libc defines sys_nerr""... $ac_c" 1>&6
6544echo "configure:6545: checking if libc defines sys_nerr" >&5
6545if eval "test \"`echo '$''{'ac_cv_libc_defines_sys_nerr'+set}'`\" = set"; then
6546 echo $ac_n "(cached) $ac_c" 1>&6
6547else
6548
6549 cat > conftest.$ac_ext <<EOF
6550#line 6551 "configure"
6551#include "confdefs.h"
6552
6553int main() {
6554 extern int sys_nerr; printf("%i", sys_nerr);
6555; return 0; }
6556EOF
6557if { (eval echo configure:6558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6558 rm -rf conftest*
6559 ac_cv_libc_defines_sys_nerr="yes"
6560else
6561 echo "configure: failed program was:" >&5
6562 cat conftest.$ac_ext >&5
6563 rm -rf conftest*
6564 ac_cv_libc_defines_sys_nerr="no"
6565
6566fi
6567rm -f conftest*
6568
6569fi
6570
6571echo "$ac_t""$ac_cv_libc_defines_sys_nerr" 1>&6
6572if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
6573 cat >> confdefs.h <<\EOF
6574#define HAVE_SYS_NERR 1
6575EOF
6576
6577fi
6578
6579
6580# Check whether user wants Kerberos support
6581KRB4_MSG="no"
6582# Check whether --with-kerberos4 or --without-kerberos4 was given.
6583if test "${with_kerberos4+set}" = set; then
6584 withval="$with_kerberos4"
6585
6586 if test "x$withval" != "xno" ; then
6587
6588 if test "x$withval" != "xyes" ; then
6589 CPPFLAGS="$CPPFLAGS -I${withval}/include"
6590 LDFLAGS="$LDFLAGS -L${withval}/lib"
6591 if test ! -z "$need_dash_r" ; then
6592 LDFLAGS="$LDFLAGS -R${withval}/lib"
6593 fi
6594 if test ! -z "$blibpath" ; then
6595 blibpath="$blibpath:${withval}/lib"
6596 fi
6597 else
6598 if test -d /usr/include/kerberosIV ; then
6599 CPPFLAGS="$CPPFLAGS -I/usr/include/kerberosIV"
6600 fi
6601 fi
6602
6603 for ac_hdr in krb.h
6604do
6605ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6606echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6607echo "configure:6608: checking for $ac_hdr" >&5
6608if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6609 echo $ac_n "(cached) $ac_c" 1>&6
6610else
6611 cat > conftest.$ac_ext <<EOF
6612#line 6613 "configure"
6613#include "confdefs.h"
6614#include <$ac_hdr>
6615EOF
6616ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6617{ (eval echo configure:6618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6618ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6619if test -z "$ac_err"; then
6620 rm -rf conftest*
6621 eval "ac_cv_header_$ac_safe=yes"
6622else
6623 echo "$ac_err" >&5
6624 echo "configure: failed program was:" >&5
6625 cat conftest.$ac_ext >&5
6626 rm -rf conftest*
6627 eval "ac_cv_header_$ac_safe=no"
6628fi
6629rm -f conftest*
6630fi
6631if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6632 echo "$ac_t""yes" 1>&6
6633 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6634 cat >> confdefs.h <<EOF
6635#define $ac_tr_hdr 1
6636EOF
6637
6638else
6639 echo "$ac_t""no" 1>&6
6640fi
6641done
6642
6643 if test "$ac_cv_header_krb_h" != yes; then
6644 echo "configure: warning: Cannot find krb.h, build may fail" 1>&2
6645 fi
6646 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6647echo "configure:6648: checking for main in -lkrb" >&5
6648ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
6649if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6650 echo $ac_n "(cached) $ac_c" 1>&6
6651else
6652 ac_save_LIBS="$LIBS"
6653LIBS="-lkrb $LIBS"
6654cat > conftest.$ac_ext <<EOF
6655#line 6656 "configure"
6656#include "confdefs.h"
6657
6658int main() {
6659main()
6660; return 0; }
6661EOF
6662if { (eval echo configure:6663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6663 rm -rf conftest*
6664 eval "ac_cv_lib_$ac_lib_var=yes"
6665else
6666 echo "configure: failed program was:" >&5
6667 cat conftest.$ac_ext >&5
6668 rm -rf conftest*
6669 eval "ac_cv_lib_$ac_lib_var=no"
6670fi
6671rm -f conftest*
6672LIBS="$ac_save_LIBS"
6673
6674fi
6675if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6676 echo "$ac_t""yes" 1>&6
6677 ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6678 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6679 cat >> confdefs.h <<EOF
6680#define $ac_tr_lib 1
6681EOF
6682
6683 LIBS="-lkrb $LIBS"
6684
6685else
6686 echo "$ac_t""no" 1>&6
6687fi
6688
6689 if test "$ac_cv_lib_krb_main" != yes; then
6690 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6691echo "configure:6692: checking for main in -lkrb4" >&5
6692ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
6693if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6694 echo $ac_n "(cached) $ac_c" 1>&6
6695else
6696 ac_save_LIBS="$LIBS"
6697LIBS="-lkrb4 $LIBS"
6698cat > conftest.$ac_ext <<EOF
6699#line 6700 "configure"
6700#include "confdefs.h"
6701
6702int main() {
6703main()
6704; return 0; }
6705EOF
6706if { (eval echo configure:6707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6707 rm -rf conftest*
6708 eval "ac_cv_lib_$ac_lib_var=yes"
6709else
6710 echo "configure: failed program was:" >&5
6711 cat conftest.$ac_ext >&5
6712 rm -rf conftest*
6713 eval "ac_cv_lib_$ac_lib_var=no"
6714fi
6715rm -f conftest*
6716LIBS="$ac_save_LIBS"
6717
6718fi
6719if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6720 echo "$ac_t""yes" 1>&6
6721 ac_tr_lib=HAVE_LIB`echo krb4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6722 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6723 cat >> confdefs.h <<EOF
6724#define $ac_tr_lib 1
6725EOF
6726
6727 LIBS="-lkrb4 $LIBS"
6728
6729else
6730 echo "$ac_t""no" 1>&6
6731fi
6732
6733 if test "$ac_cv_lib_krb4_main" != yes; then
6734 echo "configure: warning: Cannot find libkrb nor libkrb4, build may fail" 1>&2
6735 else
6736 KLIBS="-lkrb4"
6737 fi
6738 else
6739 KLIBS="-lkrb"
6740 fi
6741 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6
6742echo "configure:6743: checking for des_cbc_encrypt in -ldes" >&5
6743ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
6744if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6745 echo $ac_n "(cached) $ac_c" 1>&6
6746else
6747 ac_save_LIBS="$LIBS"
6748LIBS="-ldes $LIBS"
6749cat > conftest.$ac_ext <<EOF
6750#line 6751 "configure"
6751#include "confdefs.h"
6752/* Override any gcc2 internal prototype to avoid an error. */
6753/* We use char because int might match the return type of a gcc2
6754 builtin and then its argument prototype would still apply. */
6755char des_cbc_encrypt();
6756
6757int main() {
6758des_cbc_encrypt()
6759; return 0; }
6760EOF
6761if { (eval echo configure:6762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6762 rm -rf conftest*
6763 eval "ac_cv_lib_$ac_lib_var=yes"
6764else
6765 echo "configure: failed program was:" >&5
6766 cat conftest.$ac_ext >&5
6767 rm -rf conftest*
6768 eval "ac_cv_lib_$ac_lib_var=no"
6769fi
6770rm -f conftest*
6771LIBS="$ac_save_LIBS"
6772
6773fi
6774if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6775 echo "$ac_t""yes" 1>&6
6776 ac_tr_lib=HAVE_LIB`echo des | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6777 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6778 cat >> confdefs.h <<EOF
6779#define $ac_tr_lib 1
6780EOF
6781
6782 LIBS="-ldes $LIBS"
6783
6784else
6785 echo "$ac_t""no" 1>&6
6786fi
6787
6788 if test "$ac_cv_lib_des_des_cbc_encrypt" != yes; then
6789 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6
6790echo "configure:6791: checking for des_cbc_encrypt in -ldes425" >&5
6791ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
6792if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6793 echo $ac_n "(cached) $ac_c" 1>&6
6794else
6795 ac_save_LIBS="$LIBS"
6796LIBS="-ldes425 $LIBS"
6797cat > conftest.$ac_ext <<EOF
6798#line 6799 "configure"
6799#include "confdefs.h"
6800/* Override any gcc2 internal prototype to avoid an error. */
6801/* We use char because int might match the return type of a gcc2
6802 builtin and then its argument prototype would still apply. */
6803char des_cbc_encrypt();
6804
6805int main() {
6806des_cbc_encrypt()
6807; return 0; }
6808EOF
6809if { (eval echo configure:6810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6810 rm -rf conftest*
6811 eval "ac_cv_lib_$ac_lib_var=yes"
6812else
6813 echo "configure: failed program was:" >&5
6814 cat conftest.$ac_ext >&5
6815 rm -rf conftest*
6816 eval "ac_cv_lib_$ac_lib_var=no"
6817fi
6818rm -f conftest*
6819LIBS="$ac_save_LIBS"
6820
6821fi
6822if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6823 echo "$ac_t""yes" 1>&6
6824 ac_tr_lib=HAVE_LIB`echo des425 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6825 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6826 cat >> confdefs.h <<EOF
6827#define $ac_tr_lib 1
6828EOF
6829
6830 LIBS="-ldes425 $LIBS"
6831
6832else
6833 echo "$ac_t""no" 1>&6
6834fi
6835
6836 if test "$ac_cv_lib_des425_des_cbc_encrypt" != yes; then
6837 echo "configure: warning: Cannot find libdes nor libdes425, build may fail" 1>&2
6838 else
6839 KLIBS="-ldes425"
6840 fi
6841 else
6842 KLIBS="-ldes"
6843 fi
6844 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
6845echo "configure:6846: checking for dn_expand in -lresolv" >&5
6846ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
6847if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6848 echo $ac_n "(cached) $ac_c" 1>&6
6849else
6850 ac_save_LIBS="$LIBS"
6851LIBS="-lresolv $LIBS"
6852cat > conftest.$ac_ext <<EOF
6853#line 6854 "configure"
6854#include "confdefs.h"
6855/* Override any gcc2 internal prototype to avoid an error. */
6856/* We use char because int might match the return type of a gcc2
6857 builtin and then its argument prototype would still apply. */
6858char dn_expand();
6859
6860int main() {
6861dn_expand()
6862; return 0; }
6863EOF
6864if { (eval echo configure:6865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6865 rm -rf conftest*
6866 eval "ac_cv_lib_$ac_lib_var=yes"
6867else
6868 echo "configure: failed program was:" >&5
6869 cat conftest.$ac_ext >&5
6870 rm -rf conftest*
6871 eval "ac_cv_lib_$ac_lib_var=no"
6872fi
6873rm -f conftest*
6874LIBS="$ac_save_LIBS"
6875
6876fi
6877if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6878 echo "$ac_t""yes" 1>&6
6879 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6880 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6881 cat >> confdefs.h <<EOF
6882#define $ac_tr_lib 1
6883EOF
6884
6885 LIBS="-lresolv $LIBS"
6886
6887else
6888 echo "$ac_t""no" 1>&6
6889fi
6890
6891 KRB4=yes
6892 KRB4_MSG="yes"
6893 cat >> confdefs.h <<\EOF
6894#define KRB4 1
6895EOF
6896
6897 fi
6898
6899
6900fi
6901
6902
6903# Check whether user wants AFS support
6904AFS_MSG="no"
6905# Check whether --with-afs or --without-afs was given.
6906if test "${with_afs+set}" = set; then
6907 withval="$with_afs"
6908
6909 if test "x$withval" != "xno" ; then
6910
6911 if test "x$withval" != "xyes" ; then
6912 CPPFLAGS="$CPPFLAGS -I${withval}/include"
6913 LDFLAGS="$LDFLAGS -L${withval}/lib"
6914 fi
6915
6916 if test -z "$KRB4" ; then
6917 echo "configure: warning: AFS requires Kerberos IV support, build may fail" 1>&2
6918 fi
6919
6920 LIBS="-lkafs $LIBS"
6921 if test ! -z "$AFS_LIBS" ; then
6922 LIBS="$LIBS $AFS_LIBS"
6923 fi
6924 cat >> confdefs.h <<\EOF
6925#define AFS 1
6926EOF
6927
6928 AFS_MSG="yes"
6929 fi
6930
6931
6932fi
6933
6934LIBS="$LIBS $KLIBS"
6935
6936# Looking for programs, paths and files
6937# Check whether --with-rsh or --without-rsh was given.
6938if test "${with_rsh+set}" = set; then
6939 withval="$with_rsh"
6940
6941 if test "x$withval" != "$no" ; then
6942 rsh_path=$withval
6943 fi
6944
6945else
6946
6947 # Extract the first word of "rsh", so it can be a program name with args.
6948set dummy rsh; ac_word=$2
6949echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6950echo "configure:6951: checking for $ac_word" >&5
6951if eval "test \"`echo '$''{'ac_cv_path_rsh_path'+set}'`\" = set"; then
6952 echo $ac_n "(cached) $ac_c" 1>&6
6953else
6954 case "$rsh_path" in
6955 /*)
6956 ac_cv_path_rsh_path="$rsh_path" # Let the user override the test with a path.
6957 ;;
6958 ?:/*)
6959 ac_cv_path_rsh_path="$rsh_path" # Let the user override the test with a dos path.
6960 ;;
6961 *)
6962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6963 ac_dummy="$PATH"
6964 for ac_dir in $ac_dummy; do
6965 test -z "$ac_dir" && ac_dir=.
6966 if test -f $ac_dir/$ac_word; then
6967 ac_cv_path_rsh_path="$ac_dir/$ac_word"
6968 break
6969 fi
6970 done
6971 IFS="$ac_save_ifs"
6972 ;;
6973esac
6974fi
6975rsh_path="$ac_cv_path_rsh_path"
6976if test -n "$rsh_path"; then
6977 echo "$ac_t""$rsh_path" 1>&6
6978else
6979 echo "$ac_t""no" 1>&6
6980fi
6981
6982
6983
6984fi
6985
6986
6987# Check whether --with-xauth or --without-xauth was given.
6988if test "${with_xauth+set}" = set; then
6989 withval="$with_xauth"
6990
6991 if test "x$withval" != "xno" ; then
6992 xauth_path=$withval
6993 fi
6994
6995else
6996
6997 # Extract the first word of "xauth", so it can be a program name with args.
6998set dummy xauth; ac_word=$2
6999echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7000echo "configure:7001: checking for $ac_word" >&5
7001if eval "test \"`echo '$''{'ac_cv_path_xauth_path'+set}'`\" = set"; then
7002 echo $ac_n "(cached) $ac_c" 1>&6
7003else
7004 case "$xauth_path" in
7005 /*)
7006 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
7007 ;;
7008 ?:/*)
7009 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a dos path.
7010 ;;
7011 *)
7012 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7013 ac_dummy="$PATH:/usr/X/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/openwin/bin"
7014 for ac_dir in $ac_dummy; do
7015 test -z "$ac_dir" && ac_dir=.
7016 if test -f $ac_dir/$ac_word; then
7017 ac_cv_path_xauth_path="$ac_dir/$ac_word"
7018 break
7019 fi
7020 done
7021 IFS="$ac_save_ifs"
7022 ;;
7023esac
7024fi
7025xauth_path="$ac_cv_path_xauth_path"
7026if test -n "$xauth_path"; then
7027 echo "$ac_t""$xauth_path" 1>&6
7028else
7029 echo "$ac_t""no" 1>&6
7030fi
7031
7032 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
7033 xauth_path="/usr/openwin/bin/xauth"
7034 fi
7035
7036
7037fi
7038
7039
7040if test -z "$xauth_path" ; then
7041 XAUTH_PATH="undefined"
7042
7043else
7044 cat >> confdefs.h <<EOF
7045#define XAUTH_PATH "$xauth_path"
7046EOF
7047
7048 XAUTH_PATH=$xauth_path
7049
7050fi
7051if test ! -z "$rsh_path" ; then
7052 cat >> confdefs.h <<EOF
7053#define RSH_PATH "$rsh_path"
7054EOF
7055
7056fi
7057
7058# Check for mail directory (last resort if we cannot get it from headers)
7059if test ! -z "$MAIL" ; then
7060 maildir=`dirname $MAIL`
7061 cat >> confdefs.h <<EOF
7062#define MAIL_DIRECTORY "$maildir"
7063EOF
7064
7065fi
7066
7067if test -z "$no_dev_ptmx" ; then
7068
7069ac_safe=`echo ""/dev/ptmx"" | sed 'y%./+-%__p_%'`
7070echo $ac_n "checking for "/dev/ptmx"""... $ac_c" 1>&6
7071echo "configure:7072: checking for "/dev/ptmx"" >&5
7072if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
7073 echo $ac_n "(cached) $ac_c" 1>&6
7074else
7075 if test "$cross_compiling" = yes; then
7076 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
7077else
7078 if test -r "/dev/ptmx"; then
7079 eval "ac_cv_file_$ac_safe=yes"
7080 else
7081 eval "ac_cv_file_$ac_safe=no"
7082 fi
7083fi
7084fi
7085if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
7086 echo "$ac_t""yes" 1>&6
7087
7088 cat >> confdefs.h <<EOF
7089#define HAVE_DEV_PTMX 1
7090EOF
7091
7092 have_dev_ptmx=1
7093
7094
7095else
7096 echo "$ac_t""no" 1>&6
7097
7098fi
7099
7100fi
7101
7102ac_safe=`echo ""/dev/ptc"" | sed 'y%./+-%__p_%'`
7103echo $ac_n "checking for "/dev/ptc"""... $ac_c" 1>&6
7104echo "configure:7105: checking for "/dev/ptc"" >&5
7105if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
7106 echo $ac_n "(cached) $ac_c" 1>&6
7107else
7108 if test "$cross_compiling" = yes; then
7109 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
7110else
7111 if test -r "/dev/ptc"; then
7112 eval "ac_cv_file_$ac_safe=yes"
7113 else
7114 eval "ac_cv_file_$ac_safe=no"
7115 fi
7116fi
7117fi
7118if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
7119 echo "$ac_t""yes" 1>&6
7120
7121 cat >> confdefs.h <<EOF
7122#define HAVE_DEV_PTS_AND_PTC 1
7123EOF
7124
7125 have_dev_ptc=1
7126
7127
7128else
7129 echo "$ac_t""no" 1>&6
7130
7131fi
7132
7133
7134# Options from here on. Some of these are preset by platform above
7135
7136# Check for user-specified random device, otherwise check /dev/urandom
7137# Check whether --with-random or --without-random was given.
7138if test "${with_random+set}" = set; then
7139 withval="$with_random"
7140
7141 if test "x$withval" != "xno" ; then
7142 RANDOM_POOL="$withval";
7143 cat >> confdefs.h <<EOF
7144#define RANDOM_POOL "$RANDOM_POOL"
7145EOF
7146
7147 fi
7148
7149else
7150
7151 # Check for random device
7152
7153ac_safe=`echo ""/dev/urandom"" | sed 'y%./+-%__p_%'`
7154echo $ac_n "checking for "/dev/urandom"""... $ac_c" 1>&6
7155echo "configure:7156: checking for "/dev/urandom"" >&5
7156if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
7157 echo $ac_n "(cached) $ac_c" 1>&6
7158else
7159 if test "$cross_compiling" = yes; then
7160 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
7161else
7162 if test -r "/dev/urandom"; then
7163 eval "ac_cv_file_$ac_safe=yes"
7164 else
7165 eval "ac_cv_file_$ac_safe=no"
7166 fi
7167fi
7168fi
7169if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
7170 echo "$ac_t""yes" 1>&6
7171
7172 RANDOM_POOL="/dev/urandom";
7173
7174 cat >> confdefs.h <<EOF
7175#define RANDOM_POOL "$RANDOM_POOL"
7176EOF
7177
7178
7179
7180else
7181 echo "$ac_t""no" 1>&6
7182
7183fi
7184
7185
7186
7187fi
7188
7189
7190# Check for PRNGD/EGD pool file
7191# Check whether --with-prngd-port or --without-prngd-port was given.
7192if test "${with_prngd_port+set}" = set; then
7193 withval="$with_prngd_port"
7194
7195 if test ! -z "$withval" -a "x$withval" != "xno" ; then
7196 PRNGD_PORT="$withval"
7197 cat >> confdefs.h <<EOF
7198#define PRNGD_PORT $PRNGD_PORT
7199EOF
7200
7201 fi
7202
7203
7204fi
7205
7206
7207# Check for PRNGD/EGD pool file
7208# Check whether --with-prngd-socket or --without-prngd-socket was given.
7209if test "${with_prngd_socket+set}" = set; then
7210 withval="$with_prngd_socket"
7211
7212 if test "x$withval" != "xno" ; then
7213 PRNGD_SOCKET="$withval"
7214 cat >> confdefs.h <<EOF
7215#define PRNGD_SOCKET "$PRNGD_SOCKET"
7216EOF
7217
7218 fi
7219
7220else
7221
7222 # Check for existing socket only if we don't have a random device already
7223 if test -z "$RANDOM_POOL" ; then
7224 echo $ac_n "checking for PRNGD/EGD socket""... $ac_c" 1>&6
7225echo "configure:7226: checking for PRNGD/EGD socket" >&5
7226 # Insert other locations here
7227 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
7228 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
7229 PRNGD_SOCKET="$sock"
7230 cat >> confdefs.h <<EOF
7231#define PRNGD_SOCKET "$PRNGD_SOCKET"
7232EOF
7233
7234 break;
7235 fi
7236 done
7237 if test ! -z "$PRNGD_SOCKET" ; then
7238 echo "$ac_t""$PRNGD_SOCKET" 1>&6
7239 else
7240 echo "$ac_t""not found" 1>&6
7241 fi
7242 fi
7243
7244
7245fi
7246
7247
7248
7249# detect pathnames for entropy gathering commands, if we need them
7250INSTALL_SSH_PRNG_CMDS=""
7251rm -f prng_commands
7252if (test -z "$RANDOM_POOL" && test -z "$PRNGD") ; then
7253 # Use these commands to collect entropy
7254
7255 # Extract the first word of "ls", so it can be a program name with args.
7256set dummy ls; ac_word=$2
7257echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7258echo "configure:7259: checking for $ac_word" >&5
7259if eval "test \"`echo '$''{'ac_cv_path_PROG_LS'+set}'`\" = set"; then
7260 echo $ac_n "(cached) $ac_c" 1>&6
7261else
7262 case "$PROG_LS" in
7263 /*)
7264 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
7265 ;;
7266 ?:/*)
7267 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a dos path.
7268 ;;
7269 *)
7270 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7271 ac_dummy="$PATH"
7272 for ac_dir in $ac_dummy; do
7273 test -z "$ac_dir" && ac_dir=.
7274 if test -f $ac_dir/$ac_word; then
7275 ac_cv_path_PROG_LS="$ac_dir/$ac_word"
7276 break
7277 fi
7278 done
7279 IFS="$ac_save_ifs"
7280 ;;
7281esac
7282fi
7283PROG_LS="$ac_cv_path_PROG_LS"
7284if test -n "$PROG_LS"; then
7285 echo "$ac_t""$PROG_LS" 1>&6
7286else
7287 echo "$ac_t""no" 1>&6
7288fi
7289
7290 if test -z "$PROG_LS" ; then
7291 PROG_LS="undef"
7292 fi
7293
7294
7295
7296 # Extract the first word of "netstat", so it can be a program name with args.
7297set dummy netstat; ac_word=$2
7298echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7299echo "configure:7300: checking for $ac_word" >&5
7300if eval "test \"`echo '$''{'ac_cv_path_PROG_NETSTAT'+set}'`\" = set"; then
7301 echo $ac_n "(cached) $ac_c" 1>&6
7302else
7303 case "$PROG_NETSTAT" in
7304 /*)
7305 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
7306 ;;
7307 ?:/*)
7308 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a dos path.
7309 ;;
7310 *)
7311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7312 ac_dummy="$PATH"
7313 for ac_dir in $ac_dummy; do
7314 test -z "$ac_dir" && ac_dir=.
7315 if test -f $ac_dir/$ac_word; then
7316 ac_cv_path_PROG_NETSTAT="$ac_dir/$ac_word"
7317 break
7318 fi
7319 done
7320 IFS="$ac_save_ifs"
7321 ;;
7322esac
7323fi
7324PROG_NETSTAT="$ac_cv_path_PROG_NETSTAT"
7325if test -n "$PROG_NETSTAT"; then
7326 echo "$ac_t""$PROG_NETSTAT" 1>&6
7327else
7328 echo "$ac_t""no" 1>&6
7329fi
7330
7331 if test -z "$PROG_NETSTAT" ; then
7332 PROG_NETSTAT="undef"
7333 fi
7334
7335
7336
7337 # Extract the first word of "arp", so it can be a program name with args.
7338set dummy arp; ac_word=$2
7339echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7340echo "configure:7341: checking for $ac_word" >&5
7341if eval "test \"`echo '$''{'ac_cv_path_PROG_ARP'+set}'`\" = set"; then
7342 echo $ac_n "(cached) $ac_c" 1>&6
7343else
7344 case "$PROG_ARP" in
7345 /*)
7346 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
7347 ;;
7348 ?:/*)
7349 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a dos path.
7350 ;;
7351 *)
7352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7353 ac_dummy="$PATH"
7354 for ac_dir in $ac_dummy; do
7355 test -z "$ac_dir" && ac_dir=.
7356 if test -f $ac_dir/$ac_word; then
7357 ac_cv_path_PROG_ARP="$ac_dir/$ac_word"
7358 break
7359 fi
7360 done
7361 IFS="$ac_save_ifs"
7362 ;;
7363esac
7364fi
7365PROG_ARP="$ac_cv_path_PROG_ARP"
7366if test -n "$PROG_ARP"; then
7367 echo "$ac_t""$PROG_ARP" 1>&6
7368else
7369 echo "$ac_t""no" 1>&6
7370fi
7371
7372 if test -z "$PROG_ARP" ; then
7373 PROG_ARP="undef"
7374 fi
7375
7376
7377
7378 # Extract the first word of "ifconfig", so it can be a program name with args.
7379set dummy ifconfig; ac_word=$2
7380echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7381echo "configure:7382: checking for $ac_word" >&5
7382if eval "test \"`echo '$''{'ac_cv_path_PROG_IFCONFIG'+set}'`\" = set"; then
7383 echo $ac_n "(cached) $ac_c" 1>&6
7384else
7385 case "$PROG_IFCONFIG" in
7386 /*)
7387 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
7388 ;;
7389 ?:/*)
7390 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a dos path.
7391 ;;
7392 *)
7393 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7394 ac_dummy="$PATH"
7395 for ac_dir in $ac_dummy; do
7396 test -z "$ac_dir" && ac_dir=.
7397 if test -f $ac_dir/$ac_word; then
7398 ac_cv_path_PROG_IFCONFIG="$ac_dir/$ac_word"
7399 break
7400 fi
7401 done
7402 IFS="$ac_save_ifs"
7403 ;;
7404esac
7405fi
7406PROG_IFCONFIG="$ac_cv_path_PROG_IFCONFIG"
7407if test -n "$PROG_IFCONFIG"; then
7408 echo "$ac_t""$PROG_IFCONFIG" 1>&6
7409else
7410 echo "$ac_t""no" 1>&6
7411fi
7412
7413 if test -z "$PROG_IFCONFIG" ; then
7414 PROG_IFCONFIG="undef"
7415 fi
7416
7417
7418
7419 # Extract the first word of "ps", so it can be a program name with args.
7420set dummy ps; ac_word=$2
7421echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7422echo "configure:7423: checking for $ac_word" >&5
7423if eval "test \"`echo '$''{'ac_cv_path_PROG_PS'+set}'`\" = set"; then
7424 echo $ac_n "(cached) $ac_c" 1>&6
7425else
7426 case "$PROG_PS" in
7427 /*)
7428 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
7429 ;;
7430 ?:/*)
7431 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a dos path.
7432 ;;
7433 *)
7434 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7435 ac_dummy="$PATH"
7436 for ac_dir in $ac_dummy; do
7437 test -z "$ac_dir" && ac_dir=.
7438 if test -f $ac_dir/$ac_word; then
7439 ac_cv_path_PROG_PS="$ac_dir/$ac_word"
7440 break
7441 fi
7442 done
7443 IFS="$ac_save_ifs"
7444 ;;
7445esac
7446fi
7447PROG_PS="$ac_cv_path_PROG_PS"
7448if test -n "$PROG_PS"; then
7449 echo "$ac_t""$PROG_PS" 1>&6
7450else
7451 echo "$ac_t""no" 1>&6
7452fi
7453
7454 if test -z "$PROG_PS" ; then
7455 PROG_PS="undef"
7456 fi
7457
7458
7459
7460 # Extract the first word of "w", so it can be a program name with args.
7461set dummy w; ac_word=$2
7462echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7463echo "configure:7464: checking for $ac_word" >&5
7464if eval "test \"`echo '$''{'ac_cv_path_PROG_W'+set}'`\" = set"; then
7465 echo $ac_n "(cached) $ac_c" 1>&6
7466else
7467 case "$PROG_W" in
7468 /*)
7469 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
7470 ;;
7471 ?:/*)
7472 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a dos path.
7473 ;;
7474 *)
7475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7476 ac_dummy="$PATH"
7477 for ac_dir in $ac_dummy; do
7478 test -z "$ac_dir" && ac_dir=.
7479 if test -f $ac_dir/$ac_word; then
7480 ac_cv_path_PROG_W="$ac_dir/$ac_word"
7481 break
7482 fi
7483 done
7484 IFS="$ac_save_ifs"
7485 ;;
7486esac
7487fi
7488PROG_W="$ac_cv_path_PROG_W"
7489if test -n "$PROG_W"; then
7490 echo "$ac_t""$PROG_W" 1>&6
7491else
7492 echo "$ac_t""no" 1>&6
7493fi
7494
7495 if test -z "$PROG_W" ; then
7496 PROG_W="undef"
7497 fi
7498
7499
7500
7501 # Extract the first word of "who", so it can be a program name with args.
7502set dummy who; ac_word=$2
7503echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7504echo "configure:7505: checking for $ac_word" >&5
7505if eval "test \"`echo '$''{'ac_cv_path_PROG_WHO'+set}'`\" = set"; then
7506 echo $ac_n "(cached) $ac_c" 1>&6
7507else
7508 case "$PROG_WHO" in
7509 /*)
7510 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
7511 ;;
7512 ?:/*)
7513 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a dos path.
7514 ;;
7515 *)
7516 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7517 ac_dummy="$PATH"
7518 for ac_dir in $ac_dummy; do
7519 test -z "$ac_dir" && ac_dir=.
7520 if test -f $ac_dir/$ac_word; then
7521 ac_cv_path_PROG_WHO="$ac_dir/$ac_word"
7522 break
7523 fi
7524 done
7525 IFS="$ac_save_ifs"
7526 ;;
7527esac
7528fi
7529PROG_WHO="$ac_cv_path_PROG_WHO"
7530if test -n "$PROG_WHO"; then
7531 echo "$ac_t""$PROG_WHO" 1>&6
7532else
7533 echo "$ac_t""no" 1>&6
7534fi
7535
7536 if test -z "$PROG_WHO" ; then
7537 PROG_WHO="undef"
7538 fi
7539
7540
7541
7542 # Extract the first word of "last", so it can be a program name with args.
7543set dummy last; ac_word=$2
7544echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7545echo "configure:7546: checking for $ac_word" >&5
7546if eval "test \"`echo '$''{'ac_cv_path_PROG_LAST'+set}'`\" = set"; then
7547 echo $ac_n "(cached) $ac_c" 1>&6
7548else
7549 case "$PROG_LAST" in
7550 /*)
7551 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
7552 ;;
7553 ?:/*)
7554 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a dos path.
7555 ;;
7556 *)
7557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7558 ac_dummy="$PATH"
7559 for ac_dir in $ac_dummy; do
7560 test -z "$ac_dir" && ac_dir=.
7561 if test -f $ac_dir/$ac_word; then
7562 ac_cv_path_PROG_LAST="$ac_dir/$ac_word"
7563 break
7564 fi
7565 done
7566 IFS="$ac_save_ifs"
7567 ;;
7568esac
7569fi
7570PROG_LAST="$ac_cv_path_PROG_LAST"
7571if test -n "$PROG_LAST"; then
7572 echo "$ac_t""$PROG_LAST" 1>&6
7573else
7574 echo "$ac_t""no" 1>&6
7575fi
7576
7577 if test -z "$PROG_LAST" ; then
7578 PROG_LAST="undef"
7579 fi
7580
7581
7582
7583 # Extract the first word of "lastlog", so it can be a program name with args.
7584set dummy lastlog; ac_word=$2
7585echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7586echo "configure:7587: checking for $ac_word" >&5
7587if eval "test \"`echo '$''{'ac_cv_path_PROG_LASTLOG'+set}'`\" = set"; then
7588 echo $ac_n "(cached) $ac_c" 1>&6
7589else
7590 case "$PROG_LASTLOG" in
7591 /*)
7592 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
7593 ;;
7594 ?:/*)
7595 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a dos path.
7596 ;;
7597 *)
7598 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7599 ac_dummy="$PATH"
7600 for ac_dir in $ac_dummy; do
7601 test -z "$ac_dir" && ac_dir=.
7602 if test -f $ac_dir/$ac_word; then
7603 ac_cv_path_PROG_LASTLOG="$ac_dir/$ac_word"
7604 break
7605 fi
7606 done
7607 IFS="$ac_save_ifs"
7608 ;;
7609esac
7610fi
7611PROG_LASTLOG="$ac_cv_path_PROG_LASTLOG"
7612if test -n "$PROG_LASTLOG"; then
7613 echo "$ac_t""$PROG_LASTLOG" 1>&6
7614else
7615 echo "$ac_t""no" 1>&6
7616fi
7617
7618 if test -z "$PROG_LASTLOG" ; then
7619 PROG_LASTLOG="undef"
7620 fi
7621
7622
7623
7624 # Extract the first word of "df", so it can be a program name with args.
7625set dummy df; ac_word=$2
7626echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7627echo "configure:7628: checking for $ac_word" >&5
7628if eval "test \"`echo '$''{'ac_cv_path_PROG_DF'+set}'`\" = set"; then
7629 echo $ac_n "(cached) $ac_c" 1>&6
7630else
7631 case "$PROG_DF" in
7632 /*)
7633 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
7634 ;;
7635 ?:/*)
7636 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a dos path.
7637 ;;
7638 *)
7639 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7640 ac_dummy="$PATH"
7641 for ac_dir in $ac_dummy; do
7642 test -z "$ac_dir" && ac_dir=.
7643 if test -f $ac_dir/$ac_word; then
7644 ac_cv_path_PROG_DF="$ac_dir/$ac_word"
7645 break
7646 fi
7647 done
7648 IFS="$ac_save_ifs"
7649 ;;
7650esac
7651fi
7652PROG_DF="$ac_cv_path_PROG_DF"
7653if test -n "$PROG_DF"; then
7654 echo "$ac_t""$PROG_DF" 1>&6
7655else
7656 echo "$ac_t""no" 1>&6
7657fi
7658
7659 if test -z "$PROG_DF" ; then
7660 PROG_DF="undef"
7661 fi
7662
7663
7664
7665 # Extract the first word of "vmstat", so it can be a program name with args.
7666set dummy vmstat; ac_word=$2
7667echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7668echo "configure:7669: checking for $ac_word" >&5
7669if eval "test \"`echo '$''{'ac_cv_path_PROG_VMSTAT'+set}'`\" = set"; then
7670 echo $ac_n "(cached) $ac_c" 1>&6
7671else
7672 case "$PROG_VMSTAT" in
7673 /*)
7674 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
7675 ;;
7676 ?:/*)
7677 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a dos path.
7678 ;;
7679 *)
7680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7681 ac_dummy="$PATH"
7682 for ac_dir in $ac_dummy; do
7683 test -z "$ac_dir" && ac_dir=.
7684 if test -f $ac_dir/$ac_word; then
7685 ac_cv_path_PROG_VMSTAT="$ac_dir/$ac_word"
7686 break
7687 fi
7688 done
7689 IFS="$ac_save_ifs"
7690 ;;
7691esac
7692fi
7693PROG_VMSTAT="$ac_cv_path_PROG_VMSTAT"
7694if test -n "$PROG_VMSTAT"; then
7695 echo "$ac_t""$PROG_VMSTAT" 1>&6
7696else
7697 echo "$ac_t""no" 1>&6
7698fi
7699
7700 if test -z "$PROG_VMSTAT" ; then
7701 PROG_VMSTAT="undef"
7702 fi
7703
7704
7705
7706 # Extract the first word of "uptime", so it can be a program name with args.
7707set dummy uptime; ac_word=$2
7708echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7709echo "configure:7710: checking for $ac_word" >&5
7710if eval "test \"`echo '$''{'ac_cv_path_PROG_UPTIME'+set}'`\" = set"; then
7711 echo $ac_n "(cached) $ac_c" 1>&6
7712else
7713 case "$PROG_UPTIME" in
7714 /*)
7715 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
7716 ;;
7717 ?:/*)
7718 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a dos path.
7719 ;;
7720 *)
7721 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7722 ac_dummy="$PATH"
7723 for ac_dir in $ac_dummy; do
7724 test -z "$ac_dir" && ac_dir=.
7725 if test -f $ac_dir/$ac_word; then
7726 ac_cv_path_PROG_UPTIME="$ac_dir/$ac_word"
7727 break
7728 fi
7729 done
7730 IFS="$ac_save_ifs"
7731 ;;
7732esac
7733fi
7734PROG_UPTIME="$ac_cv_path_PROG_UPTIME"
7735if test -n "$PROG_UPTIME"; then
7736 echo "$ac_t""$PROG_UPTIME" 1>&6
7737else
7738 echo "$ac_t""no" 1>&6
7739fi
7740
7741 if test -z "$PROG_UPTIME" ; then
7742 PROG_UPTIME="undef"
7743 fi
7744
7745
7746
7747 # Extract the first word of "ipcs", so it can be a program name with args.
7748set dummy ipcs; ac_word=$2
7749echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7750echo "configure:7751: checking for $ac_word" >&5
7751if eval "test \"`echo '$''{'ac_cv_path_PROG_IPCS'+set}'`\" = set"; then
7752 echo $ac_n "(cached) $ac_c" 1>&6
7753else
7754 case "$PROG_IPCS" in
7755 /*)
7756 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
7757 ;;
7758 ?:/*)
7759 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a dos path.
7760 ;;
7761 *)
7762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7763 ac_dummy="$PATH"
7764 for ac_dir in $ac_dummy; do
7765 test -z "$ac_dir" && ac_dir=.
7766 if test -f $ac_dir/$ac_word; then
7767 ac_cv_path_PROG_IPCS="$ac_dir/$ac_word"
7768 break
7769 fi
7770 done
7771 IFS="$ac_save_ifs"
7772 ;;
7773esac
7774fi
7775PROG_IPCS="$ac_cv_path_PROG_IPCS"
7776if test -n "$PROG_IPCS"; then
7777 echo "$ac_t""$PROG_IPCS" 1>&6
7778else
7779 echo "$ac_t""no" 1>&6
7780fi
7781
7782 if test -z "$PROG_IPCS" ; then
7783 PROG_IPCS="undef"
7784 fi
7785
7786
7787
7788 # Extract the first word of "tail", so it can be a program name with args.
7789set dummy tail; ac_word=$2
7790echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7791echo "configure:7792: checking for $ac_word" >&5
7792if eval "test \"`echo '$''{'ac_cv_path_PROG_TAIL'+set}'`\" = set"; then
7793 echo $ac_n "(cached) $ac_c" 1>&6
7794else
7795 case "$PROG_TAIL" in
7796 /*)
7797 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
7798 ;;
7799 ?:/*)
7800 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a dos path.
7801 ;;
7802 *)
7803 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7804 ac_dummy="$PATH"
7805 for ac_dir in $ac_dummy; do
7806 test -z "$ac_dir" && ac_dir=.
7807 if test -f $ac_dir/$ac_word; then
7808 ac_cv_path_PROG_TAIL="$ac_dir/$ac_word"
7809 break
7810 fi
7811 done
7812 IFS="$ac_save_ifs"
7813 ;;
7814esac
7815fi
7816PROG_TAIL="$ac_cv_path_PROG_TAIL"
7817if test -n "$PROG_TAIL"; then
7818 echo "$ac_t""$PROG_TAIL" 1>&6
7819else
7820 echo "$ac_t""no" 1>&6
7821fi
7822
7823 if test -z "$PROG_TAIL" ; then
7824 PROG_TAIL="undef"
7825 fi
7826
7827
7828
7829 INSTALL_SSH_PRNG_CMDS="yes"
7830fi
7831
7832
7833
7834# Check whether --with-catman or --without-catman was given.
7835if test "${with_catman+set}" = set; then
7836 withval="$with_catman"
7837
7838 case "$withval" in
7839 man|cat|doc)
7840 MANTYPE=$withval
7841 ;;
7842 *)
7843 { echo "configure: error: invalid man type: $withval" 1>&2; exit 1; }
7844 ;;
7845 esac
7846
7847
7848fi
7849
7850if test -z "$MANTYPE"; then
7851 for ac_prog in nroff awf
7852do
7853# Extract the first word of "$ac_prog", so it can be a program name with args.
7854set dummy $ac_prog; ac_word=$2
7855echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7856echo "configure:7857: checking for $ac_word" >&5
7857if eval "test \"`echo '$''{'ac_cv_path_NROFF'+set}'`\" = set"; then
7858 echo $ac_n "(cached) $ac_c" 1>&6
7859else
7860 case "$NROFF" in
7861 /*)
7862 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
7863 ;;
7864 ?:/*)
7865 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a dos path.
7866 ;;
7867 *)
7868 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7869 ac_dummy="/usr/bin:/usr/ucb"
7870 for ac_dir in $ac_dummy; do
7871 test -z "$ac_dir" && ac_dir=.
7872 if test -f $ac_dir/$ac_word; then
7873 ac_cv_path_NROFF="$ac_dir/$ac_word"
7874 break
7875 fi
7876 done
7877 IFS="$ac_save_ifs"
7878 ;;
7879esac
7880fi
7881NROFF="$ac_cv_path_NROFF"
7882if test -n "$NROFF"; then
7883 echo "$ac_t""$NROFF" 1>&6
7884else
7885 echo "$ac_t""no" 1>&6
7886fi
7887
7888test -n "$NROFF" && break
7889done
7890test -n "$NROFF" || NROFF="/bin/false"
7891
7892 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
7893 MANTYPE=doc
7894 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
7895 MANTYPE=man
7896 else
7897 MANTYPE=cat
7898 fi
7899fi
7900
7901if test "$MANTYPE" = "doc"; then
7902 mansubdir=man;
7903else
7904 mansubdir=$MANTYPE;
7905fi
7906
7907
7908# Check whether to enable MD5 passwords
7909MD5_MSG="no"
7910# Check whether --with-md5-passwords or --without-md5-passwords was given.
7911if test "${with_md5_passwords+set}" = set; then
7912 withval="$with_md5_passwords"
7913
7914 if test "x$withval" != "xno" ; then
7915 cat >> confdefs.h <<\EOF
7916#define HAVE_MD5_PASSWORDS 1
7917EOF
7918
7919 MD5_MSG="yes"
7920 fi
7921
7922
7923fi
7924
7925
7926# Whether to disable shadow password support
7927# Check whether --with-shadow or --without-shadow was given.
7928if test "${with_shadow+set}" = set; then
7929 withval="$with_shadow"
7930
7931 if test "x$withval" = "xno" ; then
7932 cat >> confdefs.h <<\EOF
7933#define DISABLE_SHADOW 1
7934EOF
7935
7936 disable_shadow=yes
7937 fi
7938
7939
7940fi
7941
7942
7943if test -z "$disable_shadow" ; then
7944 echo $ac_n "checking if the systems has expire shadow information""... $ac_c" 1>&6
7945echo "configure:7946: checking if the systems has expire shadow information" >&5
7946 cat > conftest.$ac_ext <<EOF
7947#line 7948 "configure"
7948#include "confdefs.h"
7949
7950#include <sys/types.h>
7951#include <shadow.h>
7952 struct spwd sp;
7953
7954int main() {
7955 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
7956; return 0; }
7957EOF
7958if { (eval echo configure:7959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7959 rm -rf conftest*
7960 sp_expire_available=yes
7961else
7962 echo "configure: failed program was:" >&5
7963 cat conftest.$ac_ext >&5
7964 rm -rf conftest*
7965
7966
7967fi
7968rm -f conftest*
7969
7970 if test "x$sp_expire_available" = "xyes" ; then
7971 echo "$ac_t""yes" 1>&6
7972 cat >> confdefs.h <<\EOF
7973#define HAS_SHADOW_EXPIRE 1
7974EOF
7975
7976 else
7977 echo "$ac_t""no" 1>&6
7978 fi
7979fi
7980
7981# Use ip address instead of hostname in $DISPLAY
7982if test ! -z "$IPADDR_IN_DISPLAY" ; then
7983 DISPLAY_HACK_MSG="yes"
7984 cat >> confdefs.h <<\EOF
7985#define IPADDR_IN_DISPLAY 1
7986EOF
7987
7988else
7989 DISPLAY_HACK_MSG="no"
7990 # Check whether --with-ipaddr-display or --without-ipaddr-display was given.
7991if test "${with_ipaddr_display+set}" = set; then
7992 withval="$with_ipaddr_display"
7993
7994 if test "x$withval" != "xno" ; then
7995 cat >> confdefs.h <<\EOF
7996#define IPADDR_IN_DISPLAY 1
7997EOF
7998
7999 DISPLAY_HACK_MSG="yes"
8000 fi
8001
8002
8003fi
8004
8005fi
8006
8007# Whether to mess with the default path
8008SERVER_PATH_MSG="(default)"
8009# Check whether --with-default-path or --without-default-path was given.
8010if test "${with_default_path+set}" = set; then
8011 withval="$with_default_path"
8012
8013 if test "x$withval" != "xno" ; then
8014 user_path="$withval"
8015 SERVER_PATH_MSG="$withval"
8016 fi
8017
8018else
8019
8020 if test "$cross_compiling" = yes; then
8021 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
8022
8023else
8024 cat > conftest.$ac_ext <<EOF
8025#line 8026 "configure"
8026#include "confdefs.h"
8027
8028/* find out what STDPATH is */
8029#include <stdio.h>
8030#ifdef HAVE_PATHS_H
8031# include <paths.h>
8032#endif
8033#ifndef _PATH_STDPATH
8034# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
8035#endif
8036#include <sys/types.h>
8037#include <sys/stat.h>
8038#include <fcntl.h>
8039#define DATA "conftest.stdpath"
8040
8041main()
8042{
8043 FILE *fd;
8044 int rc;
8045
8046 fd = fopen(DATA,"w");
8047 if(fd == NULL)
8048 exit(1);
8049
8050 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
8051 exit(1);
8052
8053 exit(0);
8054}
8055
8056EOF
8057if { (eval echo configure:8058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8058then
8059 user_path=`cat conftest.stdpath`
8060else
8061 echo "configure: failed program was:" >&5
8062 cat conftest.$ac_ext >&5
8063 rm -fr conftest*
8064 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
8065fi
8066rm -fr conftest*
8067fi
8068
8069# make sure $bindir is in USER_PATH so scp will work
8070 t_bindir=`eval echo ${bindir}`
8071 case $t_bindir in
8072 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
8073 esac
8074 case $t_bindir in
8075 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
8076 esac
8077 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
8078 if test $? -ne 0 ; then
8079 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
8080 if test $? -ne 0 ; then
8081 user_path=$user_path:$t_bindir
8082 echo "$ac_t""Adding $t_bindir to USER_PATH so scp will work" 1>&6
8083 fi
8084 fi
8085
8086
8087fi
8088
8089cat >> confdefs.h <<EOF
8090#define USER_PATH "$user_path"
8091EOF
8092
8093
8094
8095# Whether to force IPv4 by default (needed on broken glibc Linux)
8096IPV4_HACK_MSG="no"
8097# Check whether --with-ipv4-default or --without-ipv4-default was given.
8098if test "${with_ipv4_default+set}" = set; then
8099 withval="$with_ipv4_default"
8100
8101 if test "x$withval" != "xno" ; then
8102 cat >> confdefs.h <<\EOF
8103#define IPV4_DEFAULT 1
8104EOF
8105
8106 IPV4_HACK_MSG="yes"
8107 fi
8108
8109
8110fi
8111
8112
8113echo $ac_n "checking if we need to convert IPv4 in IPv6-mapped addresses""... $ac_c" 1>&6
8114echo "configure:8115: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
8115IPV4_IN6_HACK_MSG="no"
8116# Check whether --with-4in6 or --without-4in6 was given.
8117if test "${with_4in6+set}" = set; then
8118 withval="$with_4in6"
8119
8120 if test "x$withval" != "xno" ; then
8121 echo "$ac_t""yes" 1>&6
8122 cat >> confdefs.h <<\EOF
8123#define IPV4_IN_IPV6 1
8124EOF
8125
8126 IPV4_IN6_HACK_MSG="yes"
8127 else
8128 echo "$ac_t""no" 1>&6
8129 fi
8130
8131else
8132
8133 if test "x$inet6_default_4in6" = "xyes"; then
8134 echo "$ac_t""yes (default)" 1>&6
8135 cat >> confdefs.h <<\EOF
8136#define IPV4_IN_IPV6 1
8137EOF
8138
8139 IPV4_IN6_HACK_MSG="yes"
8140 else
8141 echo "$ac_t""no (default)" 1>&6
8142 fi
8143
8144
8145fi
8146
8147
8148# Whether to enable BSD auth support
8149# Check whether --with-bsd-auth or --without-bsd-auth was given.
8150if test "${with_bsd_auth+set}" = set; then
8151 withval="$with_bsd_auth"
8152
8153 if test "x$withval" != "xno" ; then
8154 cat >> confdefs.h <<\EOF
8155#define BSD_AUTH 1
8156EOF
8157
8158 bsd_auth=yes
8159 fi
8160
8161
8162fi
8163
8164
8165echo $ac_n "checking whether to install ssh as suid root""... $ac_c" 1>&6
8166echo "configure:8167: checking whether to install ssh as suid root" >&5
8167# Check whether --enable-suid-ssh or --disable-suid-ssh was given.
8168if test "${enable_suid_ssh+set}" = set; then
8169 enableval="$enable_suid_ssh"
8170 case "$enableval" in
8171 no)
8172 echo "$ac_t""no" 1>&6
8173 SSHMODE=0711
8174 ;;
8175 *) echo "$ac_t""yes" 1>&6
8176 SSHMODE=04711
8177 ;;
8178 esac
8179else
8180 echo "$ac_t""yes" 1>&6
8181 SSHMODE=04711
8182
8183fi
8184
8185
8186
8187
8188# Where to place sshd.pid
8189piddir=/var/run
8190# Check whether --with-pid-dir or --without-pid-dir was given.
8191if test "${with_pid_dir+set}" = set; then
8192 withval="$with_pid_dir"
8193
8194 if test "x$withval" != "xno" ; then
8195 piddir=$withval
8196 fi
8197
8198
8199fi
8200
8201
8202# make sure the directory exists
8203if test ! -d $piddir ; then
8204 piddir=`eval echo ${sysconfdir}`
8205 case $piddir in
8206 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
8207 esac
8208fi
8209
8210cat >> confdefs.h <<EOF
8211#define _PATH_SSH_PIDDIR "$piddir"
8212EOF
8213
8214
8215
8216# Check whether --enable-lastlog or --disable-lastlog was given.
8217if test "${enable_lastlog+set}" = set; then
8218 enableval="$enable_lastlog"
8219 cat >> confdefs.h <<\EOF
8220#define DISABLE_LASTLOG 1
8221EOF
8222
8223
8224fi
8225
8226# Check whether --enable-utmp or --disable-utmp was given.
8227if test "${enable_utmp+set}" = set; then
8228 enableval="$enable_utmp"
8229 cat >> confdefs.h <<\EOF
8230#define DISABLE_UTMP 1
8231EOF
8232
8233
8234fi
8235
8236# Check whether --enable-utmpx or --disable-utmpx was given.
8237if test "${enable_utmpx+set}" = set; then
8238 enableval="$enable_utmpx"
8239 cat >> confdefs.h <<\EOF
8240#define DISABLE_UTMPX 1
8241EOF
8242
8243
8244fi
8245
8246# Check whether --enable-wtmp or --disable-wtmp was given.
8247if test "${enable_wtmp+set}" = set; then
8248 enableval="$enable_wtmp"
8249 cat >> confdefs.h <<\EOF
8250#define DISABLE_WTMP 1
8251EOF
8252
8253
8254fi
8255
8256# Check whether --enable-wtmpx or --disable-wtmpx was given.
8257if test "${enable_wtmpx+set}" = set; then
8258 enableval="$enable_wtmpx"
8259 cat >> confdefs.h <<\EOF
8260#define DISABLE_WTMPX 1
8261EOF
8262
8263
8264fi
8265
8266# Check whether --enable-libutil or --disable-libutil was given.
8267if test "${enable_libutil+set}" = set; then
8268 enableval="$enable_libutil"
8269 cat >> confdefs.h <<\EOF
8270#define DISABLE_LOGIN 1
8271EOF
8272
8273
8274fi
8275
8276# Check whether --enable-pututline or --disable-pututline was given.
8277if test "${enable_pututline+set}" = set; then
8278 enableval="$enable_pututline"
8279 cat >> confdefs.h <<\EOF
8280#define DISABLE_PUTUTLINE 1
8281EOF
8282
8283
8284fi
8285
8286# Check whether --enable-pututxline or --disable-pututxline was given.
8287if test "${enable_pututxline+set}" = set; then
8288 enableval="$enable_pututxline"
8289 cat >> confdefs.h <<\EOF
8290#define DISABLE_PUTUTXLINE 1
8291EOF
8292
8293
8294fi
8295
8296# Check whether --with-lastlog or --without-lastlog was given.
8297if test "${with_lastlog+set}" = set; then
8298 withval="$with_lastlog"
8299
8300 if test "x$withval" = "xno" ; then
8301 cat >> confdefs.h <<\EOF
8302#define DISABLE_LASTLOG 1
8303EOF
8304
8305 else
8306 conf_lastlog_location=$withval
8307 fi
8308
8309
8310fi
8311
8312
8313
8314echo $ac_n "checking if your system defines LASTLOG_FILE""... $ac_c" 1>&6
8315echo "configure:8316: checking if your system defines LASTLOG_FILE" >&5
8316cat > conftest.$ac_ext <<EOF
8317#line 8318 "configure"
8318#include "confdefs.h"
8319
8320#include <sys/types.h>
8321#include <utmp.h>
8322#ifdef HAVE_LASTLOG_H
8323# include <lastlog.h>
8324#endif
8325#ifdef HAVE_PATHS_H
8326# include <paths.h>
8327#endif
8328
8329int main() {
8330 char *lastlog = LASTLOG_FILE;
8331; return 0; }
8332EOF
8333if { (eval echo configure:8334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8334 rm -rf conftest*
8335 echo "$ac_t""yes" 1>&6
8336else
8337 echo "configure: failed program was:" >&5
8338 cat conftest.$ac_ext >&5
8339 rm -rf conftest*
8340
8341 echo "$ac_t""no" 1>&6
8342 echo $ac_n "checking if your system defines _PATH_LASTLOG""... $ac_c" 1>&6
8343echo "configure:8344: checking if your system defines _PATH_LASTLOG" >&5
8344 cat > conftest.$ac_ext <<EOF
8345#line 8346 "configure"
8346#include "confdefs.h"
8347
8348#include <sys/types.h>
8349#include <utmp.h>
8350#ifdef HAVE_LASTLOG_H
8351# include <lastlog.h>
8352#endif
8353#ifdef HAVE_PATHS_H
8354# include <paths.h>
8355#endif
8356
8357int main() {
8358 char *lastlog = _PATH_LASTLOG;
8359; return 0; }
8360EOF
8361if { (eval echo configure:8362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8362 rm -rf conftest*
8363 echo "$ac_t""yes" 1>&6
8364else
8365 echo "configure: failed program was:" >&5
8366 cat conftest.$ac_ext >&5
8367 rm -rf conftest*
8368
8369 echo "$ac_t""no" 1>&6
8370 system_lastlog_path=no
8371
8372fi
8373rm -f conftest*
8374
8375
8376fi
8377rm -f conftest*
8378
8379if test -z "$conf_lastlog_location"; then
8380 if test x"$system_lastlog_path" = x"no" ; then
8381 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
8382 if (test -d "$f" || test -f "$f") ; then
8383 conf_lastlog_location=$f
8384 fi
8385 done
8386 if test -z "$conf_lastlog_location"; then
8387 echo "configure: warning: ** Cannot find lastlog **" 1>&2
8388 fi
8389 fi
8390fi
8391
8392if test -n "$conf_lastlog_location"; then
8393 cat >> confdefs.h <<EOF
8394#define CONF_LASTLOG_FILE "$conf_lastlog_location"
8395EOF
8396
8397fi
8398
8399echo $ac_n "checking if your system defines UTMP_FILE""... $ac_c" 1>&6
8400echo "configure:8401: checking if your system defines UTMP_FILE" >&5
8401cat > conftest.$ac_ext <<EOF
8402#line 8403 "configure"
8403#include "confdefs.h"
8404
8405#include <sys/types.h>
8406#include <utmp.h>
8407#ifdef HAVE_PATHS_H
8408# include <paths.h>
8409#endif
8410
8411int main() {
8412 char *utmp = UTMP_FILE;
8413; return 0; }
8414EOF
8415if { (eval echo configure:8416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8416 rm -rf conftest*
8417 echo "$ac_t""yes" 1>&6
8418else
8419 echo "configure: failed program was:" >&5
8420 cat conftest.$ac_ext >&5
8421 rm -rf conftest*
8422 echo "$ac_t""no" 1>&6
8423 system_utmp_path=no
8424
8425fi
8426rm -f conftest*
8427if test -z "$conf_utmp_location"; then
8428 if test x"$system_utmp_path" = x"no" ; then
8429 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
8430 if test -f $f ; then
8431 conf_utmp_location=$f
8432 fi
8433 done
8434 if test -z "$conf_utmp_location"; then
8435 cat >> confdefs.h <<\EOF
8436#define DISABLE_UTMP 1
8437EOF
8438
8439 fi
8440 fi
8441fi
8442if test -n "$conf_utmp_location"; then
8443 cat >> confdefs.h <<EOF
8444#define CONF_UTMP_FILE "$conf_utmp_location"
8445EOF
8446
8447fi
8448
8449echo $ac_n "checking if your system defines WTMP_FILE""... $ac_c" 1>&6
8450echo "configure:8451: checking if your system defines WTMP_FILE" >&5
8451cat > conftest.$ac_ext <<EOF
8452#line 8453 "configure"
8453#include "confdefs.h"
8454
8455#include <sys/types.h>
8456#include <utmp.h>
8457#ifdef HAVE_PATHS_H
8458# include <paths.h>
8459#endif
8460
8461int main() {
8462 char *wtmp = WTMP_FILE;
8463; return 0; }
8464EOF
8465if { (eval echo configure:8466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8466 rm -rf conftest*
8467 echo "$ac_t""yes" 1>&6
8468else
8469 echo "configure: failed program was:" >&5
8470 cat conftest.$ac_ext >&5
8471 rm -rf conftest*
8472 echo "$ac_t""no" 1>&6
8473 system_wtmp_path=no
8474
8475fi
8476rm -f conftest*
8477if test -z "$conf_wtmp_location"; then
8478 if test x"$system_wtmp_path" = x"no" ; then
8479 for f in /usr/adm/wtmp /var/log/wtmp; do
8480 if test -f $f ; then
8481 conf_wtmp_location=$f
8482 fi
8483 done
8484 if test -z "$conf_wtmp_location"; then
8485 cat >> confdefs.h <<\EOF
8486#define DISABLE_WTMP 1
8487EOF
8488
8489 fi
8490 fi
8491fi
8492if test -n "$conf_wtmp_location"; then
8493 cat >> confdefs.h <<EOF
8494#define CONF_WTMP_FILE "$conf_wtmp_location"
8495EOF
8496
8497fi
8498
8499
8500echo $ac_n "checking if your system defines UTMPX_FILE""... $ac_c" 1>&6
8501echo "configure:8502: checking if your system defines UTMPX_FILE" >&5
8502cat > conftest.$ac_ext <<EOF
8503#line 8504 "configure"
8504#include "confdefs.h"
8505
8506#include <sys/types.h>
8507#include <utmp.h>
8508#ifdef HAVE_UTMPX_H
8509#include <utmpx.h>
8510#endif
8511#ifdef HAVE_PATHS_H
8512# include <paths.h>
8513#endif
8514
8515int main() {
8516 char *utmpx = UTMPX_FILE;
8517; return 0; }
8518EOF
8519if { (eval echo configure:8520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8520 rm -rf conftest*
8521 echo "$ac_t""yes" 1>&6
8522else
8523 echo "configure: failed program was:" >&5
8524 cat conftest.$ac_ext >&5
8525 rm -rf conftest*
8526 echo "$ac_t""no" 1>&6
8527 system_utmpx_path=no
8528
8529fi
8530rm -f conftest*
8531if test -z "$conf_utmpx_location"; then
8532 if test x"$system_utmpx_path" = x"no" ; then
8533 cat >> confdefs.h <<\EOF
8534#define DISABLE_UTMPX 1
8535EOF
8536
8537 fi
8538else
8539 cat >> confdefs.h <<EOF
8540#define CONF_UTMPX_FILE "$conf_utmpx_location"
8541EOF
8542
8543fi
8544
8545echo $ac_n "checking if your system defines WTMPX_FILE""... $ac_c" 1>&6
8546echo "configure:8547: checking if your system defines WTMPX_FILE" >&5
8547cat > conftest.$ac_ext <<EOF
8548#line 8549 "configure"
8549#include "confdefs.h"
8550
8551#include <sys/types.h>
8552#include <utmp.h>
8553#ifdef HAVE_UTMPX_H
8554#include <utmpx.h>
8555#endif
8556#ifdef HAVE_PATHS_H
8557# include <paths.h>
8558#endif
8559
8560int main() {
8561 char *wtmpx = WTMPX_FILE;
8562; return 0; }
8563EOF
8564if { (eval echo configure:8565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8565 rm -rf conftest*
8566 echo "$ac_t""yes" 1>&6
8567else
8568 echo "configure: failed program was:" >&5
8569 cat conftest.$ac_ext >&5
8570 rm -rf conftest*
8571 echo "$ac_t""no" 1>&6
8572 system_wtmpx_path=no
8573
8574fi
8575rm -f conftest*
8576if test -z "$conf_wtmpx_location"; then
8577 if test x"$system_wtmpx_path" = x"no" ; then
8578 cat >> confdefs.h <<\EOF
8579#define DISABLE_WTMPX 1
8580EOF
8581
8582 fi
8583else
8584 cat >> confdefs.h <<EOF
8585#define CONF_WTMPX_FILE "$conf_wtmpx_location"
8586EOF
8587
8588fi
8589
8590
8591# Change default command timeout for builtin PRNG
8592entropy_timeout=200
8593# Check whether --with-entropy-timeout or --without-entropy-timeout was given.
8594if test "${with_entropy_timeout+set}" = set; then
8595 withval="$with_entropy_timeout"
8596
8597 if test "x$withval" != "xno" ; then
8598 entropy_timeout=$withval
8599 fi
8600
8601
8602fi
8603
8604cat >> confdefs.h <<EOF
8605#define ENTROPY_TIMEOUT_MSEC $entropy_timeout
8606EOF
8607
8608
8609
8610if test ! -z "$blibpath" ; then
8611 LDFLAGS="$LDFLAGS -blibpath:$blibpath"
8612 echo "configure: warning: Please check and edit -blibpath in LDFLAGS in Makefile" 1>&2
8613fi
8614
8615echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
8616echo "configure:8617: checking for Cygwin environment" >&5
8617if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
8618 echo $ac_n "(cached) $ac_c" 1>&6
8619else
8620 cat > conftest.$ac_ext <<EOF
8621#line 8622 "configure"
8622#include "confdefs.h"
8623
8624int main() {
8625
8626#ifndef __CYGWIN__
8627#define __CYGWIN__ __CYGWIN32__
8628#endif
8629return __CYGWIN__;
8630; return 0; }
8631EOF
8632if { (eval echo configure:8633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8633 rm -rf conftest*
8634 ac_cv_cygwin=yes
8635else
8636 echo "configure: failed program was:" >&5
8637 cat conftest.$ac_ext >&5
8638 rm -rf conftest*
8639 ac_cv_cygwin=no
8640fi
8641rm -f conftest*
8642rm -f conftest*
8643fi
8644
8645echo "$ac_t""$ac_cv_cygwin" 1>&6
8646CYGWIN=
8647test "$ac_cv_cygwin" = yes && CYGWIN=yes
8648echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
8649echo "configure:8650: checking for mingw32 environment" >&5
8650if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
8651 echo $ac_n "(cached) $ac_c" 1>&6
8652else
8653 cat > conftest.$ac_ext <<EOF
8654#line 8655 "configure"
8655#include "confdefs.h"
8656
8657int main() {
8658return __MINGW32__;
8659; return 0; }
8660EOF
8661if { (eval echo configure:8662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8662 rm -rf conftest*
8663 ac_cv_mingw32=yes
8664else
8665 echo "configure: failed program was:" >&5
8666 cat conftest.$ac_ext >&5
8667 rm -rf conftest*
8668 ac_cv_mingw32=no
8669fi
8670rm -f conftest*
8671rm -f conftest*
8672fi
8673
8674echo "$ac_t""$ac_cv_mingw32" 1>&6
8675MINGW32=
8676test "$ac_cv_mingw32" = yes && MINGW32=yes
8677
8678
8679echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8680echo "configure:8681: checking for executable suffix" >&5
8681if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
8682 echo $ac_n "(cached) $ac_c" 1>&6
8683else
8684 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
8685 ac_cv_exeext=.exe
8686else
8687 rm -f conftest*
8688 echo 'int main () { return 0; }' > conftest.$ac_ext
8689 ac_cv_exeext=
8690 if { (eval echo configure:8691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8691 for file in conftest.*; do
8692 case $file in
8693 *.c | *.o | *.obj) ;;
8694 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
8695 esac
8696 done
8697 else
8698 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8699 fi
8700 rm -f conftest*
8701 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
8702fi
8703fi
8704
8705EXEEXT=""
8706test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8707echo "$ac_t""${ac_cv_exeext}" 1>&6
8708ac_exeext=$EXEEXT
8709
8710
8711trap '' 1 2 15
8712cat > confcache <<\EOF
8713# This file is a shell script that caches the results of configure
8714# tests run on this system so they can be shared between configure
8715# scripts and configure runs. It is not useful on other systems.
8716# If it contains results you don't want to keep, you may remove or edit it.
8717#
8718# By default, configure uses ./config.cache as the cache file,
8719# creating it if it does not exist already. You can give configure
8720# the --cache-file=FILE option to use a different cache file; that is
8721# what configure does when it calls configure scripts in
8722# subdirectories, so they share the cache.
8723# Giving --cache-file=/dev/null disables caching, for debugging configure.
8724# config.status only pays attention to the cache file if you give it the
8725# --recheck option to rerun configure.
8726#
8727EOF
8728# The following way of writing the cache mishandles newlines in values,
8729# but we know of no workaround that is simple, portable, and efficient.
8730# So, don't put newlines in cache variables' values.
8731# Ultrix sh set writes to stderr and can't be redirected directly,
8732# and sets the high bit in the cache file unless we assign to the vars.
8733(set) 2>&1 |
8734 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8735 *ac_space=\ *)
8736 # `set' does not quote correctly, so add quotes (double-quote substitution
8737 # turns \\\\ into \\, and sed turns \\ into \).
8738 sed -n \
8739 -e "s/'/'\\\\''/g" \
8740 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8741 ;;
8742 *)
8743 # `set' quotes correctly as required by POSIX, so do not add quotes.
8744 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8745 ;;
8746 esac >> confcache
8747if cmp -s $cache_file confcache; then
8748 :
8749else
8750 if test -w $cache_file; then
8751 echo "updating cache $cache_file"
8752 cat confcache > $cache_file
8753 else
8754 echo "not updating unwritable cache $cache_file"
8755 fi
8756fi
8757rm -f confcache
8758
8759trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8760
8761test "x$prefix" = xNONE && prefix=$ac_default_prefix
8762# Let make expand exec_prefix.
8763test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8764
8765# Any assignment to VPATH causes Sun make to only execute
8766# the first set of double-colon rules, so remove it if not needed.
8767# If there is a colon in the path, we need to keep it.
8768if test "x$srcdir" = x.; then
8769 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8770fi
8771
8772trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8773
8774DEFS=-DHAVE_CONFIG_H
8775
8776# Without the "./", some shells look in PATH for config.status.
8777: ${CONFIG_STATUS=./config.status}
8778
8779echo creating $CONFIG_STATUS
8780rm -f $CONFIG_STATUS
8781cat > $CONFIG_STATUS <<EOF
8782#! /bin/sh
8783# Generated automatically by configure.
8784# Run this file to recreate the current configuration.
8785# This directory was configured as follows,
8786# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8787#
8788# $0 $ac_configure_args
8789#
8790# Compiler output produced by configure, useful for debugging
8791# configure, is in ./config.log if it exists.
8792
8793ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8794for ac_option
8795do
8796 case "\$ac_option" in
8797 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8798 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8799 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8800 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8801 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8802 exit 0 ;;
8803 -help | --help | --hel | --he | --h)
8804 echo "\$ac_cs_usage"; exit 0 ;;
8805 *) echo "\$ac_cs_usage"; exit 1 ;;
8806 esac
8807done
8808
8809ac_given_srcdir=$srcdir
8810ac_given_INSTALL="$INSTALL"
8811
8812trap 'rm -fr `echo "Makefile openbsd-compat/Makefile ssh_prng_cmds config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8813EOF
8814cat >> $CONFIG_STATUS <<EOF
8815
8816# Protect against being on the right side of a sed subst in config.status.
8817sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8818 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8819$ac_vpsub
8820$extrasub
8821s%@SHELL@%$SHELL%g
8822s%@CFLAGS@%$CFLAGS%g
8823s%@CPPFLAGS@%$CPPFLAGS%g
8824s%@CXXFLAGS@%$CXXFLAGS%g
8825s%@FFLAGS@%$FFLAGS%g
8826s%@DEFS@%$DEFS%g
8827s%@LDFLAGS@%$LDFLAGS%g
8828s%@LIBS@%$LIBS%g
8829s%@exec_prefix@%$exec_prefix%g
8830s%@prefix@%$prefix%g
8831s%@program_transform_name@%$program_transform_name%g
8832s%@bindir@%$bindir%g
8833s%@sbindir@%$sbindir%g
8834s%@libexecdir@%$libexecdir%g
8835s%@datadir@%$datadir%g
8836s%@sysconfdir@%$sysconfdir%g
8837s%@sharedstatedir@%$sharedstatedir%g
8838s%@localstatedir@%$localstatedir%g
8839s%@libdir@%$libdir%g
8840s%@includedir@%$includedir%g
8841s%@oldincludedir@%$oldincludedir%g
8842s%@infodir@%$infodir%g
8843s%@mandir@%$mandir%g
8844s%@CC@%$CC%g
8845s%@host@%$host%g
8846s%@host_alias@%$host_alias%g
8847s%@host_cpu@%$host_cpu%g
8848s%@host_vendor@%$host_vendor%g
8849s%@host_os@%$host_os%g
8850s%@CPP@%$CPP%g
8851s%@RANLIB@%$RANLIB%g
8852s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8853s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8854s%@INSTALL_DATA@%$INSTALL_DATA%g
8855s%@AR@%$AR%g
8856s%@PERL@%$PERL%g
8857s%@ENT@%$ENT%g
8858s%@FILEPRIV@%$FILEPRIV%g
8859s%@TEST_MINUS_S_SH@%$TEST_MINUS_S_SH%g
8860s%@LOGIN_PROGRAM_FALLBACK@%$LOGIN_PROGRAM_FALLBACK%g
8861s%@LD@%$LD%g
8862s%@NO_SFTP@%$NO_SFTP%g
8863s%@rsh_path@%$rsh_path%g
8864s%@xauth_path@%$xauth_path%g
8865s%@XAUTH_PATH@%$XAUTH_PATH%g
8866s%@RANDOM_POOL@%$RANDOM_POOL%g
8867s%@PROG_LS@%$PROG_LS%g
8868s%@PROG_NETSTAT@%$PROG_NETSTAT%g
8869s%@PROG_ARP@%$PROG_ARP%g
8870s%@PROG_IFCONFIG@%$PROG_IFCONFIG%g
8871s%@PROG_PS@%$PROG_PS%g
8872s%@PROG_W@%$PROG_W%g
8873s%@PROG_WHO@%$PROG_WHO%g
8874s%@PROG_LAST@%$PROG_LAST%g
8875s%@PROG_LASTLOG@%$PROG_LASTLOG%g
8876s%@PROG_DF@%$PROG_DF%g
8877s%@PROG_VMSTAT@%$PROG_VMSTAT%g
8878s%@PROG_UPTIME@%$PROG_UPTIME%g
8879s%@PROG_IPCS@%$PROG_IPCS%g
8880s%@PROG_TAIL@%$PROG_TAIL%g
8881s%@INSTALL_SSH_PRNG_CMDS@%$INSTALL_SSH_PRNG_CMDS%g
8882s%@NROFF@%$NROFF%g
8883s%@MANTYPE@%$MANTYPE%g
8884s%@mansubdir@%$mansubdir%g
8885s%@user_path@%$user_path%g
8886s%@SSHMODE@%$SSHMODE%g
8887s%@piddir@%$piddir%g
8888s%@EXEEXT@%$EXEEXT%g
8889
8890CEOF
8891EOF
8892
8893cat >> $CONFIG_STATUS <<\EOF
8894
8895# Split the substitutions into bite-sized pieces for seds with
8896# small command number limits, like on Digital OSF/1 and HP-UX.
8897ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8898ac_file=1 # Number of current file.
8899ac_beg=1 # First line for current file.
8900ac_end=$ac_max_sed_cmds # Line after last line for current file.
8901ac_more_lines=:
8902ac_sed_cmds=""
8903while $ac_more_lines; do
8904 if test $ac_beg -gt 1; then
8905 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8906 else
8907 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8908 fi
8909 if test ! -s conftest.s$ac_file; then
8910 ac_more_lines=false
8911 rm -f conftest.s$ac_file
8912 else
8913 if test -z "$ac_sed_cmds"; then
8914 ac_sed_cmds="sed -f conftest.s$ac_file"
8915 else
8916 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8917 fi
8918 ac_file=`expr $ac_file + 1`
8919 ac_beg=$ac_end
8920 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8921 fi
8922done
8923if test -z "$ac_sed_cmds"; then
8924 ac_sed_cmds=cat
8925fi
8926EOF
8927
8928cat >> $CONFIG_STATUS <<EOF
8929
8930CONFIG_FILES=\${CONFIG_FILES-"Makefile openbsd-compat/Makefile ssh_prng_cmds"}
8931EOF
8932cat >> $CONFIG_STATUS <<\EOF
8933for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8934 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8935 case "$ac_file" in
8936 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8937 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8938 *) ac_file_in="${ac_file}.in" ;;
8939 esac
8940
8941 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8942
8943 # Remove last slash and all that follows it. Not all systems have dirname.
8944 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8945 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8946 # The file is in a subdirectory.
8947 test ! -d "$ac_dir" && mkdir "$ac_dir"
8948 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8949 # A "../" for each directory in $ac_dir_suffix.
8950 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8951 else
8952 ac_dir_suffix= ac_dots=
8953 fi
8954
8955 case "$ac_given_srcdir" in
8956 .) srcdir=.
8957 if test -z "$ac_dots"; then top_srcdir=.
8958 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8959 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8960 *) # Relative path.
8961 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8962 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8963 esac
8964
8965 case "$ac_given_INSTALL" in
8966 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8967 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8968 esac
8969
8970 echo creating "$ac_file"
8971 rm -f "$ac_file"
8972 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8973 case "$ac_file" in
8974 *Makefile*) ac_comsub="1i\\
8975# $configure_input" ;;
8976 *) ac_comsub= ;;
8977 esac
8978
8979 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8980 sed -e "$ac_comsub
8981s%@configure_input@%$configure_input%g
8982s%@srcdir@%$srcdir%g
8983s%@top_srcdir@%$top_srcdir%g
8984s%@INSTALL@%$INSTALL%g
8985" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8986fi; done
8987rm -f conftest.s*
8988
8989# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8990# NAME is the cpp macro being defined and VALUE is the value it is being given.
8991#
8992# ac_d sets the value in "#define NAME VALUE" lines.
8993ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8994ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8995ac_dC='\3'
8996ac_dD='%g'
8997# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8998ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8999ac_uB='\([ ]\)%\1#\2define\3'
9000ac_uC=' '
9001ac_uD='\4%g'
9002# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9003ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9004ac_eB='$%\1#\2define\3'
9005ac_eC=' '
9006ac_eD='%g'
9007
9008if test "${CONFIG_HEADERS+set}" != set; then
9009EOF
9010cat >> $CONFIG_STATUS <<EOF
9011 CONFIG_HEADERS="config.h"
9012EOF
9013cat >> $CONFIG_STATUS <<\EOF
9014fi
9015for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9016 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9017 case "$ac_file" in
9018 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9019 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9020 *) ac_file_in="${ac_file}.in" ;;
9021 esac
9022
9023 echo creating $ac_file
9024
9025 rm -f conftest.frag conftest.in conftest.out
9026 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9027 cat $ac_file_inputs > conftest.in
9028
9029EOF
9030
9031# Transform confdefs.h into a sed script conftest.vals that substitutes
9032# the proper values into config.h.in to produce config.h. And first:
9033# Protect against being on the right side of a sed subst in config.status.
9034# Protect against being in an unquoted here document in config.status.
9035rm -f conftest.vals
9036cat > conftest.hdr <<\EOF
9037s/[\\&%]/\\&/g
9038s%[\\$`]%\\&%g
9039s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9040s%ac_d%ac_u%gp
9041s%ac_u%ac_e%gp
9042EOF
9043sed -n -f conftest.hdr confdefs.h > conftest.vals
9044rm -f conftest.hdr
9045
9046# This sed command replaces #undef with comments. This is necessary, for
9047# example, in the case of _POSIX_SOURCE, which is predefined and required
9048# on some systems where configure will not decide to define it.
9049cat >> conftest.vals <<\EOF
9050s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9051EOF
9052
9053# Break up conftest.vals because some shells have a limit on
9054# the size of here documents, and old seds have small limits too.
9055
9056rm -f conftest.tail
9057while :
9058do
9059 ac_lines=`grep -c . conftest.vals`
9060 # grep -c gives empty output for an empty file on some AIX systems.
9061 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9062 # Write a limited-size here document to conftest.frag.
9063 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9064 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9065 echo 'CEOF
9066 sed -f conftest.frag conftest.in > conftest.out
9067 rm -f conftest.in
9068 mv conftest.out conftest.in
9069' >> $CONFIG_STATUS
9070 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9071 rm -f conftest.vals
9072 mv conftest.tail conftest.vals
9073done
9074rm -f conftest.vals
9075
9076cat >> $CONFIG_STATUS <<\EOF
9077 rm -f conftest.frag conftest.h
9078 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9079 cat conftest.in >> conftest.h
9080 rm -f conftest.in
9081 if cmp -s $ac_file conftest.h 2>/dev/null; then
9082 echo "$ac_file is unchanged"
9083 rm -f conftest.h
9084 else
9085 # Remove last slash and all that follows it. Not all systems have dirname.
9086 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9087 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9088 # The file is in a subdirectory.
9089 test ! -d "$ac_dir" && mkdir "$ac_dir"
9090 fi
9091 rm -f $ac_file
9092 mv conftest.h $ac_file
9093 fi
9094fi; done
9095
9096EOF
9097cat >> $CONFIG_STATUS <<EOF
9098
9099EOF
9100cat >> $CONFIG_STATUS <<\EOF
9101
9102exit 0
9103EOF
9104chmod +x $CONFIG_STATUS
9105rm -fr confdefs* $ac_clean_files
9106test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9107
9108
9109# Print summary of options
9110
9111if test ! -z "$RANDOM_POOL" ; then
9112 RAND_MSG="Device ($RANDOM_POOL)"
9113else
9114 if test ! -z "$PRNGD_PORT" ; then
9115 RAND_MSG="PRNGD/EGD (port localhost:$PRNGD_PORT)"
9116 elif test ! -z "$PRNGD_SOCKET" ; then
9117 RAND_MSG="PRNGD/EGD (socket $PRNGD_SOCKET)"
9118 else
9119 RAND_MSG="Builtin (timeout $entropy_timeout)"
9120 BUILTIN_RNG=1
9121 fi
9122fi
9123
9124# Someone please show me a better way :)
9125A=`eval echo ${prefix}` ; A=`eval echo ${A}`
9126B=`eval echo ${bindir}` ; B=`eval echo ${B}`
9127C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
9128D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
9129E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
9130F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
9131G=`eval echo ${piddir}` ; G=`eval echo ${G}`
9132H=`eval echo ${user_path}` ; H=`eval echo ${H}`
9133
9134echo ""
9135echo "OpenSSH has been configured with the following options:"
9136echo " User binaries: $B"
9137echo " System binaries: $C"
9138echo " Configuration files: $D"
9139echo " Askpass program: $E"
9140echo " Manual pages: $F"
9141echo " PID file: $G"
9142echo " sshd default user PATH: $H"
9143echo " Random number collection: $RAND_MSG"
9144echo " Manpage format: $MANTYPE"
9145echo " PAM support: ${PAM_MSG}"
9146echo " KerberosIV support: $KRB4_MSG"
9147echo " AFS support: $AFS_MSG"
9148echo " S/KEY support: $SKEY_MSG"
9149echo " TCP Wrappers support: $TCPW_MSG"
9150echo " MD5 password support: $MD5_MSG"
9151echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
9152echo " Use IPv4 by default hack: $IPV4_HACK_MSG"
9153echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
9154
9155if test ! -z "$bsd_auth"; then
9156 echo " BSD Auth support: yes"
9157fi
9158
9159echo ""
9160
9161echo " Host: ${host}"
9162echo " Compiler: ${CC}"
9163echo " Compiler flags: ${CFLAGS}"
9164echo "Preprocessor flags: ${CPPFLAGS}"
9165echo " Linker flags: ${LDFLAGS}"
9166echo " Libraries: ${LIBS}"
9167
9168echo ""
9169
9170if test "x$PAM_MSG" = "xyes" ; then
9171 echo "PAM is enabled. You may need to install a PAM control file for sshd,"
9172 echo "otherwise password authentication may fail. Example PAM control files"
9173 echo "can be found in the contrib/ subdirectory"
9174 echo ""
9175fi
9176
9177if test ! -z "$BUILTIN_RNG" ; then
9178 echo "WARNING: you are using the builtin random number collection service."
9179 echo "Please read WARNING.RNG and request that your OS vendor includes"
9180 echo "/dev/random in future versions of their OS."
9181 echo ""
9182fi
9183
9184if test ! -z "$NO_SFTP"; then
9185 echo "sftp-server will be disabled. Your compiler does not support"
9186 echo "64bit integers."
9187 echo ""
9188fi
9189