source: trunk/third/ssh/configure @ 12654

Revision 12654, 228.5 KB checked in by danw, 26 years ago (diff)
liblockerize
  • Property svn:executable set to *
Line 
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  --enable-deprecated-linux-pw-encrypt
16                          Enable using of deprecated linx pw_encrypt function."
17ac_help="$ac_help
18  --enable-warnings       Enable -Wall if using gcc."
19ac_help="$ac_help
20  --with-x                use the X Window System"
21ac_help="$ac_help
22  --with-idea             Use IDEA (default).
23  --without-idea          Don't use IDEA: avoids patent problems in commercial use"
24ac_help="$ac_help
25  --with-blowfish         Include blowfish (default).
26  --without-blowfish      Don't include blowfish"
27ac_help="$ac_help
28  --with-des              Include single-DES support.
29  --without-des           Don't allow single DES (default)"
30ac_help="$ac_help
31  --with-arcfour          Include arcfour (DO NOT ENABLE, unless you know the security implications of this settings. See README.CIPHERS for more info).
32  --without-arcfour       Don't include arcfour (default)"
33ac_help="$ac_help
34  --with-none             Include support for unencrypted connections
35  --without-none          Don't allow unencrypted connections (default)"
36ac_help="$ac_help
37  --with-login[=PATH]     Use login -f to finish login connections. "
38ac_help="$ac_help
39  --with-rsh=PATH         Specify where to find rsh.
40  --without-rsh           Do not use rsh under any conditions. "
41ac_help="$ac_help
42  --with-path=PATH        Default path passed to user shell by sshd."
43ac_help="$ac_help
44  --with-etcdir=PATH      Directory containing ssh system files (default /etc)."
45ac_help="$ac_help
46  --with-nologin-allow[=PATH]     If a nologin.allow override should be used (default /etc/nologin.allow). "
47ac_help="$ac_help
48  --with-securid[=PATH]   Enable support for Security Dynamics SecurID card."
49ac_help="$ac_help
50  --with-tis[=DIR]        Enable support for TIS authentication server."
51ac_help="$ac_help
52  --with-kerberos5=[KRB_PREFIX] Compile in Kerberos5 support."
53ac_help="$ac_help
54  --enable-kerberos-tgt-passing  Pass Kerberos ticket-granting-ticket."
55ac_help="$ac_help
56  --with-libwrap[=PATH]   Compile in libwrap (tcp_wrappers) support."
57ac_help="$ac_help
58  --with-socks            Compile with SOCKS firewall traversal support."
59ac_help="$ac_help
60  --with-socks5[=PATH]    Compile with SOCKS5 firewall traversal support."
61ac_help="$ac_help
62  --with-socks4[=PATH]    Compile with SOCKS4 firewall traversal support."
63ac_help="$ac_help
64  --with-rsaref[=PATH]    Use RSAREF (try to avoid patent problems in U.S.)
65  --without-rsaref        Use normal RSA routines (default). "
66ac_help="$ac_help
67  --enable-group-writeability   Allow group writeability in auth-rsa. "
68ac_help="$ac_help
69  --disable-server-port-forwardings
70                          Disable all port forwardings in server (except X11)"
71ac_help="$ac_help
72  --disable-client-port-forwardings
73                          Disable all port forwardings in client (except X11)"
74ac_help="$ac_help
75  --disable-server-x11-forwarding
76                          Disable X11 forwarding in server"
77ac_help="$ac_help
78  --disable-client-x11-forwarding
79                          Disable X11 forwarding in client"
80ac_help="$ac_help
81  --enable-suid-ssh       Install ssh as suid root (default)
82  --disable-suid-ssh      Install ssh without suid bit"
83ac_help="$ac_help
84  --disable-tcp-nodelay   Disable TCP_NODELAY socket option"
85ac_help="$ac_help
86  --enable-so-linger      Enable setting SO_LINGER socket option"
87ac_help="$ac_help
88  --without-scp-stats     Without scp statistics code"
89ac_help="$ac_help
90  --disable-scp-stats     Disable scp statistics display"
91ac_help="$ac_help
92  --disable-all-scp-stats Disable all files scp statistics display"
93ac_help="$ac_help
94  --disable-asm           Disable assembly language optimizations. "
95ac_help="$ac_help
96  --without-afs        don't have afs libraries to build against (default)
97  --with-afs=AFSDIR    use preinstalled AFS library tree"
98
99# Initialize some variables set by options.
100# The variables have the same names as the options, with
101# dashes changed to underlines.
102build=NONE
103cache_file=./config.cache
104exec_prefix=NONE
105host=NONE
106no_create=
107nonopt=NONE
108no_recursion=
109prefix=NONE
110program_prefix=NONE
111program_suffix=NONE
112program_transform_name=s,x,x,
113silent=
114site=
115srcdir=
116target=NONE
117verbose=
118x_includes=NONE
119x_libraries=NONE
120bindir='${exec_prefix}/bin'
121sbindir='${exec_prefix}/sbin'
122libexecdir='${exec_prefix}/libexec'
123datadir='${prefix}/share'
124sysconfdir='${prefix}/etc'
125sharedstatedir='${prefix}/com'
126localstatedir='${prefix}/var'
127libdir='${exec_prefix}/lib'
128includedir='${prefix}/include'
129oldincludedir='/usr/include'
130infodir='${prefix}/info'
131mandir='${prefix}/man'
132
133# Initialize some other variables.
134subdirs=
135MFLAGS= MAKEFLAGS=
136SHELL=${CONFIG_SHELL-/bin/sh}
137# Maximum number of lines to put in a shell here document.
138ac_max_here_lines=12
139
140ac_prev=
141for ac_option
142do
143
144  # If the previous option needs an argument, assign it.
145  if test -n "$ac_prev"; then
146    eval "$ac_prev=\$ac_option"
147    ac_prev=
148    continue
149  fi
150
151  case "$ac_option" in
152  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
153  *) ac_optarg= ;;
154  esac
155
156  # Accept the important Cygnus configure options, so we can diagnose typos.
157
158  case "$ac_option" in
159
160  -bindir | --bindir | --bindi | --bind | --bin | --bi)
161    ac_prev=bindir ;;
162  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
163    bindir="$ac_optarg" ;;
164
165  -build | --build | --buil | --bui | --bu)
166    ac_prev=build ;;
167  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
168    build="$ac_optarg" ;;
169
170  -cache-file | --cache-file | --cache-fil | --cache-fi \
171  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
172    ac_prev=cache_file ;;
173  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
174  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
175    cache_file="$ac_optarg" ;;
176
177  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
178    ac_prev=datadir ;;
179  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
180  | --da=*)
181    datadir="$ac_optarg" ;;
182
183  -disable-* | --disable-*)
184    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
185    # Reject names that are not valid shell variable names.
186    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
187      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
188    fi
189    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
190    eval "enable_${ac_feature}=no" ;;
191
192  -enable-* | --enable-*)
193    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
194    # Reject names that are not valid shell variable names.
195    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
196      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
197    fi
198    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
199    case "$ac_option" in
200      *=*) ;;
201      *) ac_optarg=yes ;;
202    esac
203    eval "enable_${ac_feature}='$ac_optarg'" ;;
204
205  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
206  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
207  | --exec | --exe | --ex)
208    ac_prev=exec_prefix ;;
209  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
210  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
211  | --exec=* | --exe=* | --ex=*)
212    exec_prefix="$ac_optarg" ;;
213
214  -gas | --gas | --ga | --g)
215    # Obsolete; use --with-gas.
216    with_gas=yes ;;
217
218  -help | --help | --hel | --he)
219    # Omit some internal or obsolete options to make the list less imposing.
220    # This message is too long to be a string in the A/UX 3.1 sh.
221    cat << EOF
222Usage: configure [options] [host]
223Options: [defaults in brackets after descriptions]
224Configuration:
225  --cache-file=FILE       cache test results in FILE
226  --help                  print this message
227  --no-create             do not create output files
228  --quiet, --silent       do not print \`checking...' messages
229  --version               print the version of autoconf that created configure
230Directory and file names:
231  --prefix=PREFIX         install architecture-independent files in PREFIX
232                          [$ac_default_prefix]
233  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
234                          [same as prefix]
235  --bindir=DIR            user executables in DIR [EPREFIX/bin]
236  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
237  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
238  --datadir=DIR           read-only architecture-independent data in DIR
239                          [PREFIX/share]
240  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
241  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
242                          [PREFIX/com]
243  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
244  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
245  --includedir=DIR        C header files in DIR [PREFIX/include]
246  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
247  --infodir=DIR           info documentation in DIR [PREFIX/info]
248  --mandir=DIR            man documentation in DIR [PREFIX/man]
249  --srcdir=DIR            find the sources in DIR [configure dir or ..]
250  --program-prefix=PREFIX prepend PREFIX to installed program names
251  --program-suffix=SUFFIX append SUFFIX to installed program names
252  --program-transform-name=PROGRAM
253                          run sed PROGRAM on installed program names
254EOF
255    cat << EOF
256Host type:
257  --build=BUILD           configure for building on BUILD [BUILD=HOST]
258  --host=HOST             configure for HOST [guessed]
259  --target=TARGET         configure for TARGET [TARGET=HOST]
260Features and packages:
261  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
262  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
263  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
264  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
265  --x-includes=DIR        X include files are in DIR
266  --x-libraries=DIR       X library files are in DIR
267EOF
268    if test -n "$ac_help"; then
269      echo "--enable and --with options recognized:$ac_help"
270    fi
271    exit 0 ;;
272
273  -host | --host | --hos | --ho)
274    ac_prev=host ;;
275  -host=* | --host=* | --hos=* | --ho=*)
276    host="$ac_optarg" ;;
277
278  -includedir | --includedir | --includedi | --included | --include \
279  | --includ | --inclu | --incl | --inc)
280    ac_prev=includedir ;;
281  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
282  | --includ=* | --inclu=* | --incl=* | --inc=*)
283    includedir="$ac_optarg" ;;
284
285  -infodir | --infodir | --infodi | --infod | --info | --inf)
286    ac_prev=infodir ;;
287  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
288    infodir="$ac_optarg" ;;
289
290  -libdir | --libdir | --libdi | --libd)
291    ac_prev=libdir ;;
292  -libdir=* | --libdir=* | --libdi=* | --libd=*)
293    libdir="$ac_optarg" ;;
294
295  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
296  | --libexe | --libex | --libe)
297    ac_prev=libexecdir ;;
298  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
299  | --libexe=* | --libex=* | --libe=*)
300    libexecdir="$ac_optarg" ;;
301
302  -localstatedir | --localstatedir | --localstatedi | --localstated \
303  | --localstate | --localstat | --localsta | --localst \
304  | --locals | --local | --loca | --loc | --lo)
305    ac_prev=localstatedir ;;
306  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
307  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
308  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
309    localstatedir="$ac_optarg" ;;
310
311  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
312    ac_prev=mandir ;;
313  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
314    mandir="$ac_optarg" ;;
315
316  -nfp | --nfp | --nf)
317    # Obsolete; use --without-fp.
318    with_fp=no ;;
319
320  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
321  | --no-cr | --no-c)
322    no_create=yes ;;
323
324  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
325  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
326    no_recursion=yes ;;
327
328  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
329  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
330  | --oldin | --oldi | --old | --ol | --o)
331    ac_prev=oldincludedir ;;
332  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
333  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
334  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
335    oldincludedir="$ac_optarg" ;;
336
337  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
338    ac_prev=prefix ;;
339  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
340    prefix="$ac_optarg" ;;
341
342  -program-prefix | --program-prefix | --program-prefi | --program-pref \
343  | --program-pre | --program-pr | --program-p)
344    ac_prev=program_prefix ;;
345  -program-prefix=* | --program-prefix=* | --program-prefi=* \
346  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
347    program_prefix="$ac_optarg" ;;
348
349  -program-suffix | --program-suffix | --program-suffi | --program-suff \
350  | --program-suf | --program-su | --program-s)
351    ac_prev=program_suffix ;;
352  -program-suffix=* | --program-suffix=* | --program-suffi=* \
353  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
354    program_suffix="$ac_optarg" ;;
355
356  -program-transform-name | --program-transform-name \
357  | --program-transform-nam | --program-transform-na \
358  | --program-transform-n | --program-transform- \
359  | --program-transform | --program-transfor \
360  | --program-transfo | --program-transf \
361  | --program-trans | --program-tran \
362  | --progr-tra | --program-tr | --program-t)
363    ac_prev=program_transform_name ;;
364  -program-transform-name=* | --program-transform-name=* \
365  | --program-transform-nam=* | --program-transform-na=* \
366  | --program-transform-n=* | --program-transform-=* \
367  | --program-transform=* | --program-transfor=* \
368  | --program-transfo=* | --program-transf=* \
369  | --program-trans=* | --program-tran=* \
370  | --progr-tra=* | --program-tr=* | --program-t=*)
371    program_transform_name="$ac_optarg" ;;
372
373  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
374  | -silent | --silent | --silen | --sile | --sil)
375    silent=yes ;;
376
377  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
378    ac_prev=sbindir ;;
379  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
380  | --sbi=* | --sb=*)
381    sbindir="$ac_optarg" ;;
382
383  -sharedstatedir | --sharedstatedir | --sharedstatedi \
384  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
385  | --sharedst | --shareds | --shared | --share | --shar \
386  | --sha | --sh)
387    ac_prev=sharedstatedir ;;
388  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
389  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
390  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
391  | --sha=* | --sh=*)
392    sharedstatedir="$ac_optarg" ;;
393
394  -site | --site | --sit)
395    ac_prev=site ;;
396  -site=* | --site=* | --sit=*)
397    site="$ac_optarg" ;;
398
399  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
400    ac_prev=srcdir ;;
401  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
402    srcdir="$ac_optarg" ;;
403
404  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
405  | --syscon | --sysco | --sysc | --sys | --sy)
406    ac_prev=sysconfdir ;;
407  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
408  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
409    sysconfdir="$ac_optarg" ;;
410
411  -target | --target | --targe | --targ | --tar | --ta | --t)
412    ac_prev=target ;;
413  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
414    target="$ac_optarg" ;;
415
416  -v | -verbose | --verbose | --verbos | --verbo | --verb)
417    verbose=yes ;;
418
419  -version | --version | --versio | --versi | --vers)
420    echo "configure generated by autoconf version 2.13"
421    exit 0 ;;
422
423  -with-* | --with-*)
424    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
425    # Reject names that are not valid shell variable names.
426    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
427      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
428    fi
429    ac_package=`echo $ac_package| sed 's/-/_/g'`
430    case "$ac_option" in
431      *=*) ;;
432      *) ac_optarg=yes ;;
433    esac
434    eval "with_${ac_package}='$ac_optarg'" ;;
435
436  -without-* | --without-*)
437    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
438    # Reject names that are not valid shell variable names.
439    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
440      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
441    fi
442    ac_package=`echo $ac_package| sed 's/-/_/g'`
443    eval "with_${ac_package}=no" ;;
444
445  --x)
446    # Obsolete; use --with-x.
447    with_x=yes ;;
448
449  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
450  | --x-incl | --x-inc | --x-in | --x-i)
451    ac_prev=x_includes ;;
452  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
453  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
454    x_includes="$ac_optarg" ;;
455
456  -x-libraries | --x-libraries | --x-librarie | --x-librari \
457  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
458    ac_prev=x_libraries ;;
459  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
460  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
461    x_libraries="$ac_optarg" ;;
462
463  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
464    ;;
465
466  *)
467    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
468      echo "configure: warning: $ac_option: invalid host type" 1>&2
469    fi
470    if test "x$nonopt" != xNONE; then
471      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
472    fi
473    nonopt="$ac_option"
474    ;;
475
476  esac
477done
478
479if test -n "$ac_prev"; then
480  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
481fi
482
483trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
484
485# File descriptor usage:
486# 0 standard input
487# 1 file creation
488# 2 errors and warnings
489# 3 some systems may open it to /dev/tty
490# 4 used on the Kubota Titan
491# 6 checking for... messages and results
492# 5 compiler messages saved in config.log
493if test "$silent" = yes; then
494  exec 6>/dev/null
495else
496  exec 6>&1
497fi
498exec 5>./config.log
499
500echo "\
501This file contains any messages produced by compilers while
502running configure, to aid debugging if configure makes a mistake.
503" 1>&5
504
505# Strip out --no-create and --no-recursion so they do not pile up.
506# Also quote any args containing shell metacharacters.
507ac_configure_args=
508for ac_arg
509do
510  case "$ac_arg" in
511  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
512  | --no-cr | --no-c) ;;
513  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
514  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
515  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
516  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
517  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
518  esac
519done
520
521# NLS nuisances.
522# Only set these to C if already set.  These must not be set unconditionally
523# because not all systems understand e.g. LANG=C (notably SCO).
524# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
525# Non-C LC_CTYPE values break the ctype check.
526if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
527if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
528if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
529if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
530
531# confdefs.h avoids OS command line length limits that DEFS can exceed.
532rm -rf conftest* confdefs.h
533# AIX cpp loses on an empty file, so make sure it contains at least a newline.
534echo > confdefs.h
535
536# A filename unique to this package, relative to the directory that
537# configure is in, which we can look for to find out if srcdir is correct.
538ac_unique_file=sshd.c
539
540# Find the source files, if location was not specified.
541if test -z "$srcdir"; then
542  ac_srcdir_defaulted=yes
543  # Try the directory containing this script, then its parent.
544  ac_prog=$0
545  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
546  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
547  srcdir=$ac_confdir
548  if test ! -r $srcdir/$ac_unique_file; then
549    srcdir=..
550  fi
551else
552  ac_srcdir_defaulted=no
553fi
554if test ! -r $srcdir/$ac_unique_file; then
555  if test "$ac_srcdir_defaulted" = yes; then
556    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
557  else
558    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
559  fi
560fi
561srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
562
563# Prefer explicitly selected file to automatically selected ones.
564if test -z "$CONFIG_SITE"; then
565  if test "x$prefix" != xNONE; then
566    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
567  else
568    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
569  fi
570fi
571for ac_site_file in $CONFIG_SITE; do
572  if test -r "$ac_site_file"; then
573    echo "loading site script $ac_site_file"
574    . "$ac_site_file"
575  fi
576done
577
578if test -r "$cache_file"; then
579  echo "loading cache $cache_file"
580  . $cache_file
581else
582  echo "creating cache $cache_file"
583  > $cache_file
584fi
585
586ac_ext=c
587# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
588ac_cpp='$CPP $CPPFLAGS'
589ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
590ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
591cross_compiling=$ac_cv_prog_cc_cross
592
593ac_exeext=
594ac_objext=o
595if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
596  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
597  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
598    ac_n= ac_c='
599' ac_t='        '
600  else
601    ac_n=-n ac_c= ac_t=
602  fi
603else
604  ac_n= ac_c='\c' ac_t=
605fi
606
607
608
609
610
611# So many systems seem to need this that it is better do it here automatically.
612LIBS="-L/usr/local/lib $LIBS"
613
614ac_aux_dir=
615for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
616  if test -f $ac_dir/install-sh; then
617    ac_aux_dir=$ac_dir
618    ac_install_sh="$ac_aux_dir/install-sh -c"
619    break
620  elif test -f $ac_dir/install.sh; then
621    ac_aux_dir=$ac_dir
622    ac_install_sh="$ac_aux_dir/install.sh -c"
623    break
624  fi
625done
626if test -z "$ac_aux_dir"; then
627  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
628fi
629ac_config_guess=$ac_aux_dir/config.guess
630ac_config_sub=$ac_aux_dir/config.sub
631ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
632
633
634# Make sure we can run config.sub.
635if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
636else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
637fi
638
639echo $ac_n "checking host system type""... $ac_c" 1>&6
640echo "configure:641: checking host system type" >&5
641
642host_alias=$host
643case "$host_alias" in
644NONE)
645  case $nonopt in
646  NONE)
647    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
648    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
649    fi ;;
650  *) host_alias=$nonopt ;;
651  esac ;;
652esac
653
654host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
655host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
656host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
657host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
658echo "$ac_t""$host" 1>&6
659
660echo $ac_n "checking cached information""... $ac_c" 1>&6
661echo "configure:662: checking cached information" >&5
662hostcheck="$host"
663if eval "test \"`echo '$''{'ac_cv_hostcheck'+set}'`\" = set"; then
664  echo $ac_n "(cached) $ac_c" 1>&6
665else
666   ac_cv_hostcheck="$hostcheck"
667fi
668
669if test "$ac_cv_hostcheck" != "$hostcheck"; then
670  echo "$ac_t""changed" 1>&6
671  echo "configure: warning: config.cache exists!" 1>&2
672  { echo "configure: error: you must do 'make distclean' first to compile for different host or different parameters." 1>&2; exit 1; }
673else
674  echo "$ac_t""ok" 1>&6
675fi
676
677# Extract the first word of "gcc", so it can be a program name with args.
678set dummy gcc; ac_word=$2
679echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
680echo "configure:681: checking for $ac_word" >&5
681if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
682  echo $ac_n "(cached) $ac_c" 1>&6
683else
684  if test -n "$CC"; then
685  ac_cv_prog_CC="$CC" # Let the user override the test.
686else
687  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
688  ac_dummy="$PATH"
689  for ac_dir in $ac_dummy; do
690    test -z "$ac_dir" && ac_dir=.
691    if test -f $ac_dir/$ac_word; then
692      ac_cv_prog_CC="gcc"
693      break
694    fi
695  done
696  IFS="$ac_save_ifs"
697fi
698fi
699CC="$ac_cv_prog_CC"
700if test -n "$CC"; then
701  echo "$ac_t""$CC" 1>&6
702else
703  echo "$ac_t""no" 1>&6
704fi
705
706if test -z "$CC"; then
707  # Extract the first word of "cc", so it can be a program name with args.
708set dummy cc; ac_word=$2
709echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
710echo "configure:711: checking for $ac_word" >&5
711if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
712  echo $ac_n "(cached) $ac_c" 1>&6
713else
714  if test -n "$CC"; then
715  ac_cv_prog_CC="$CC" # Let the user override the test.
716else
717  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
718  ac_prog_rejected=no
719  ac_dummy="$PATH"
720  for ac_dir in $ac_dummy; do
721    test -z "$ac_dir" && ac_dir=.
722    if test -f $ac_dir/$ac_word; then
723      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
724        ac_prog_rejected=yes
725        continue
726      fi
727      ac_cv_prog_CC="cc"
728      break
729    fi
730  done
731  IFS="$ac_save_ifs"
732if test $ac_prog_rejected = yes; then
733  # We found a bogon in the path, so make sure we never use it.
734  set dummy $ac_cv_prog_CC
735  shift
736  if test $# -gt 0; then
737    # We chose a different compiler from the bogus one.
738    # However, it has the same basename, so the bogon will be chosen
739    # first if we set CC to just the basename; use the full file name.
740    shift
741    set dummy "$ac_dir/$ac_word" "$@"
742    shift
743    ac_cv_prog_CC="$@"
744  fi
745fi
746fi
747fi
748CC="$ac_cv_prog_CC"
749if test -n "$CC"; then
750  echo "$ac_t""$CC" 1>&6
751else
752  echo "$ac_t""no" 1>&6
753fi
754
755  if test -z "$CC"; then
756    case "`uname -s`" in
757    *win32* | *WIN32*)
758      # Extract the first word of "cl", so it can be a program name with args.
759set dummy cl; ac_word=$2
760echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
761echo "configure:762: checking for $ac_word" >&5
762if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
763  echo $ac_n "(cached) $ac_c" 1>&6
764else
765  if test -n "$CC"; then
766  ac_cv_prog_CC="$CC" # Let the user override the test.
767else
768  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
769  ac_dummy="$PATH"
770  for ac_dir in $ac_dummy; do
771    test -z "$ac_dir" && ac_dir=.
772    if test -f $ac_dir/$ac_word; then
773      ac_cv_prog_CC="cl"
774      break
775    fi
776  done
777  IFS="$ac_save_ifs"
778fi
779fi
780CC="$ac_cv_prog_CC"
781if test -n "$CC"; then
782  echo "$ac_t""$CC" 1>&6
783else
784  echo "$ac_t""no" 1>&6
785fi
786 ;;
787    esac
788  fi
789  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
790fi
791
792echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
793echo "configure:794: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
794
795ac_ext=c
796# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
797ac_cpp='$CPP $CPPFLAGS'
798ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
799ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
800cross_compiling=$ac_cv_prog_cc_cross
801
802cat > conftest.$ac_ext << EOF
803
804#line 805 "configure"
805#include "confdefs.h"
806
807main(){return(0);}
808EOF
809if { (eval echo configure:810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
810  ac_cv_prog_cc_works=yes
811  # If we can't run a trivial program, we are probably using a cross compiler.
812  if (./conftest; exit) 2>/dev/null; then
813    ac_cv_prog_cc_cross=no
814  else
815    ac_cv_prog_cc_cross=yes
816  fi
817else
818  echo "configure: failed program was:" >&5
819  cat conftest.$ac_ext >&5
820  ac_cv_prog_cc_works=no
821fi
822rm -fr conftest*
823ac_ext=c
824# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
825ac_cpp='$CPP $CPPFLAGS'
826ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
827ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
828cross_compiling=$ac_cv_prog_cc_cross
829
830echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
831if test $ac_cv_prog_cc_works = no; then
832  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
833fi
834echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
835echo "configure:836: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
836echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
837cross_compiling=$ac_cv_prog_cc_cross
838
839echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
840echo "configure:841: checking whether we are using GNU C" >&5
841if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
842  echo $ac_n "(cached) $ac_c" 1>&6
843else
844  cat > conftest.c <<EOF
845#ifdef __GNUC__
846  yes;
847#endif
848EOF
849if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
850  ac_cv_prog_gcc=yes
851else
852  ac_cv_prog_gcc=no
853fi
854fi
855
856echo "$ac_t""$ac_cv_prog_gcc" 1>&6
857
858if test $ac_cv_prog_gcc = yes; then
859  GCC=yes
860else
861  GCC=
862fi
863
864ac_test_CFLAGS="${CFLAGS+set}"
865ac_save_CFLAGS="$CFLAGS"
866CFLAGS=
867echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
868echo "configure:869: checking whether ${CC-cc} accepts -g" >&5
869if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
870  echo $ac_n "(cached) $ac_c" 1>&6
871else
872  echo 'void f(){}' > conftest.c
873if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
874  ac_cv_prog_cc_g=yes
875else
876  ac_cv_prog_cc_g=no
877fi
878rm -f conftest*
879
880fi
881
882echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
883if test "$ac_test_CFLAGS" = set; then
884  CFLAGS="$ac_save_CFLAGS"
885elif test $ac_cv_prog_cc_g = yes; then
886  if test "$GCC" = yes; then
887    CFLAGS="-g -O2"
888  else
889    CFLAGS="-g"
890  fi
891else
892  if test "$GCC" = yes; then
893    CFLAGS="-O2"
894  else
895    CFLAGS=
896  fi
897fi
898
899echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
900echo "configure:901: checking for POSIXized ISC" >&5
901if test -d /etc/conf/kconfig.d &&
902  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
903then
904  echo "$ac_t""yes" 1>&6
905  ISC=yes # If later tests want to check for ISC.
906  cat >> confdefs.h <<\EOF
907#define _POSIX_SOURCE 1
908EOF
909
910  if test "$GCC" = yes; then
911    CC="$CC -posix"
912  else
913    CC="$CC -Xp"
914  fi
915else
916  echo "$ac_t""no" 1>&6
917  ISC=
918fi
919
920
921cat >> confdefs.h <<EOF
922#define HOSTTYPE "$host"
923EOF
924
925
926case "$host" in
927  *-*-sunos4.1.1*)
928    os_sunos=yes
929    # Tim Adam <tma@osa.com.au> says speed_t is defined in stdtypes.h
930    cat >> confdefs.h <<\EOF
931#define SPEED_T_IN_STDTYPES_H 1
932EOF
933
934    ;;
935  *-*-solaris*)
936    # solaris stuff. appro@fy.chalmers.se
937    # AC_DEFINE(SECURE_RPC)
938    cat >> confdefs.h <<\EOF
939#define SECURE_NFS 1
940EOF
941
942    # NIS+ is forced so that we don't have to recompile
943    # if we move to NIS+. appro@fy.chalmers.se
944    cat >> confdefs.h <<\EOF
945#define NIS_PLUS 1
946EOF
947
948    ;;
949  *-*-sunos*)
950    os_sunos=yes
951    ;;
952  *-sgi-irix5*)
953    # Irix stuff from snabb@niksula.hut.fi, tsurmacz@asic.ict.pwr.wroc.pl,
954    # C.Martin@sheffield.ac.uk, raistlin@uni-paderborn.de
955    no_libsocket=yes
956    no_libsun=yes
957    no_libnsl=yes
958    # force /etc/shadow support. they can run /sbin/pwconv at any time.
959    # if they do so, don't let sshd down:-) appro@fy.chalmers.se
960    cat >> confdefs.h <<\EOF
961#define HAVE_ETC_SHADOW 1
962EOF
963
964    no_shadows_password_checking=yes
965    ;;
966  *-sgi-irix6*)
967    # from d-champion@uchicago.edu
968    no_libsocket=yes
969    no_libnsl=yes
970    no_libsun=yes
971    if test -z "$GCC";then
972        if test "`uname -s`" = "IRIX64"; then
973            CFLAGS="-D_LONG_LONG_LIMB $CFLAGS"
974            LDFLAGS="$LDFLAGS"
975        else
976            CFLAGS="$CFLAGS"
977            LDFLAGS="$LDFLAGS"
978        fi
979    fi
980    # force /etc/shadow support. they can run /sbin/pwconv at any time.
981    # if they do so, don't let sshd down:-) appro@fy.chalmers.se
982    cat >> confdefs.h <<\EOF
983#define HAVE_ETC_SHADOW 1
984EOF
985
986    no_shadows_password_checking=yes
987    # We want support for <proj.h> eivind@ii.uib.no
988    cat > conftest.$ac_ext <<EOF
989#line 990 "configure"
990#include "confdefs.h"
991#include <proj.h>
992int main() {
993int foo = MAXPROJNAMELEN;
994; return 0; }
995EOF
996if { (eval echo configure:997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
997  rm -rf conftest*
998  cat >> confdefs.h <<\EOF
999#define HAVE_SGI_PROJ_H 1
1000EOF
1001
1002else
1003  echo "configure: failed program was:" >&5
1004  cat conftest.$ac_ext >&5
1005fi
1006rm -f conftest*
1007    ;;
1008  *-ibm-aix3.2|*-ibm-aix3.2.0|*-ibm-aix3.2.1|*-ibm-aix3.2.2|*-ibm-aix3.2.3|*-ibm-aix3.2.4)
1009    os_aix=yes
1010    echo $ac_n "checking for getuserattr in -ls""... $ac_c" 1>&6
1011echo "configure:1012: checking for getuserattr in -ls" >&5
1012ac_lib_var=`echo s'_'getuserattr | sed 'y%./+-%__p_%'`
1013if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1014  echo $ac_n "(cached) $ac_c" 1>&6
1015else
1016  ac_save_LIBS="$LIBS"
1017LIBS="-ls  $LIBS"
1018cat > conftest.$ac_ext <<EOF
1019#line 1020 "configure"
1020#include "confdefs.h"
1021/* Override any gcc2 internal prototype to avoid an error.  */
1022/* We use char because int might match the return type of a gcc2
1023    builtin and then its argument prototype would still apply.  */
1024char getuserattr();
1025
1026int main() {
1027getuserattr()
1028; return 0; }
1029EOF
1030if { (eval echo configure:1031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1031  rm -rf conftest*
1032  eval "ac_cv_lib_$ac_lib_var=yes"
1033else
1034  echo "configure: failed program was:" >&5
1035  cat conftest.$ac_ext >&5
1036  rm -rf conftest*
1037  eval "ac_cv_lib_$ac_lib_var=no"
1038fi
1039rm -f conftest*
1040LIBS="$ac_save_LIBS"
1041
1042fi
1043if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1044  echo "$ac_t""yes" 1>&6
1045    ac_tr_lib=HAVE_LIB`echo s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1046    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1047  cat >> confdefs.h <<EOF
1048#define $ac_tr_lib 1
1049EOF
1050
1051  LIBS="-ls $LIBS"
1052
1053else
1054  echo "$ac_t""no" 1>&6
1055fi
1056
1057    ;;
1058  *-ibm-aix4.2|*-ibm-aix4.2.*|*-ibm-aix4.3*|*-ibm-aix4.4*)
1059    no_utmpx=yes
1060    os_aix=yes
1061    echo $ac_n "checking for getuserattr in -ls""... $ac_c" 1>&6
1062echo "configure:1063: checking for getuserattr in -ls" >&5
1063ac_lib_var=`echo s'_'getuserattr | sed 'y%./+-%__p_%'`
1064if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1065  echo $ac_n "(cached) $ac_c" 1>&6
1066else
1067  ac_save_LIBS="$LIBS"
1068LIBS="-ls  $LIBS"
1069cat > conftest.$ac_ext <<EOF
1070#line 1071 "configure"
1071#include "confdefs.h"
1072/* Override any gcc2 internal prototype to avoid an error.  */
1073/* We use char because int might match the return type of a gcc2
1074    builtin and then its argument prototype would still apply.  */
1075char getuserattr();
1076
1077int main() {
1078getuserattr()
1079; return 0; }
1080EOF
1081if { (eval echo configure:1082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1082  rm -rf conftest*
1083  eval "ac_cv_lib_$ac_lib_var=yes"
1084else
1085  echo "configure: failed program was:" >&5
1086  cat conftest.$ac_ext >&5
1087  rm -rf conftest*
1088  eval "ac_cv_lib_$ac_lib_var=no"
1089fi
1090rm -f conftest*
1091LIBS="$ac_save_LIBS"
1092
1093fi
1094if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1095  echo "$ac_t""yes" 1>&6
1096    ac_tr_lib=HAVE_LIB`echo s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1097    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1098  cat >> confdefs.h <<EOF
1099#define $ac_tr_lib 1
1100EOF
1101
1102  LIBS="-ls $LIBS"
1103
1104else
1105  echo "$ac_t""no" 1>&6
1106fi
1107
1108    ;;
1109  *-ibm-aix*)
1110    os_aix=yes
1111    echo $ac_n "checking for getuserattr in -ls""... $ac_c" 1>&6
1112echo "configure:1113: checking for getuserattr in -ls" >&5
1113ac_lib_var=`echo s'_'getuserattr | sed 'y%./+-%__p_%'`
1114if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1115  echo $ac_n "(cached) $ac_c" 1>&6
1116else
1117  ac_save_LIBS="$LIBS"
1118LIBS="-ls  $LIBS"
1119cat > conftest.$ac_ext <<EOF
1120#line 1121 "configure"
1121#include "confdefs.h"
1122/* Override any gcc2 internal prototype to avoid an error.  */
1123/* We use char because int might match the return type of a gcc2
1124    builtin and then its argument prototype would still apply.  */
1125char getuserattr();
1126
1127int main() {
1128getuserattr()
1129; return 0; }
1130EOF
1131if { (eval echo configure:1132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1132  rm -rf conftest*
1133  eval "ac_cv_lib_$ac_lib_var=yes"
1134else
1135  echo "configure: failed program was:" >&5
1136  cat conftest.$ac_ext >&5
1137  rm -rf conftest*
1138  eval "ac_cv_lib_$ac_lib_var=no"
1139fi
1140rm -f conftest*
1141LIBS="$ac_save_LIBS"
1142
1143fi
1144if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1145  echo "$ac_t""yes" 1>&6
1146    ac_tr_lib=HAVE_LIB`echo s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1147    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1148  cat >> confdefs.h <<EOF
1149#define $ac_tr_lib 1
1150EOF
1151
1152  LIBS="-ls $LIBS"
1153
1154else
1155  echo "$ac_t""no" 1>&6
1156fi
1157
1158    ;;
1159  mips-dec-mach3*)
1160    # Mach3 stuff from kivinen@hut.fi
1161    no_vhangup=yes
1162    no_setsid=yes
1163    ;;
1164  *-dec-ultrix*)
1165    # Ultrix stuff from dmckilli@qc.bell.ca, jbotz@orixa.mtholyoke.edu,
1166    # corey@cac.washington.edu
1167    cat >> confdefs.h <<\EOF
1168#define O_NONBLOCK_BROKEN 1
1169EOF
1170
1171    cat >> confdefs.h <<\EOF
1172#define HAVE_ULTRIX_SHADOW_PASSWORDS 1
1173EOF
1174
1175    no_vhangup=yes
1176    no_utmpx=yes
1177    no_termios=yes
1178    # Ultrix shadow passwords implemented in auth-passwd.c.
1179    no_shadows_password_checking=yes
1180    echo $ac_n "checking for authenticate_user in -lauth""... $ac_c" 1>&6
1181echo "configure:1182: checking for authenticate_user in -lauth" >&5
1182ac_lib_var=`echo auth'_'authenticate_user | sed 'y%./+-%__p_%'`
1183if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1184  echo $ac_n "(cached) $ac_c" 1>&6
1185else
1186  ac_save_LIBS="$LIBS"
1187LIBS="-lauth  $LIBS"
1188cat > conftest.$ac_ext <<EOF
1189#line 1190 "configure"
1190#include "confdefs.h"
1191/* Override any gcc2 internal prototype to avoid an error.  */
1192/* We use char because int might match the return type of a gcc2
1193    builtin and then its argument prototype would still apply.  */
1194char authenticate_user();
1195
1196int main() {
1197authenticate_user()
1198; return 0; }
1199EOF
1200if { (eval echo configure:1201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1201  rm -rf conftest*
1202  eval "ac_cv_lib_$ac_lib_var=yes"
1203else
1204  echo "configure: failed program was:" >&5
1205  cat conftest.$ac_ext >&5
1206  rm -rf conftest*
1207  eval "ac_cv_lib_$ac_lib_var=no"
1208fi
1209rm -f conftest*
1210LIBS="$ac_save_LIBS"
1211
1212fi
1213if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1214  echo "$ac_t""yes" 1>&6
1215    ac_tr_lib=HAVE_LIB`echo auth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1216    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1217  cat >> confdefs.h <<EOF
1218#define $ac_tr_lib 1
1219EOF
1220
1221  LIBS="-lauth $LIBS"
1222
1223else
1224  echo "$ac_t""no" 1>&6
1225fi
1226
1227    cat > conftest.$ac_ext <<EOF
1228#line 1229 "configure"
1229#include "confdefs.h"
1230#include <syslog.h>
1231int main() {
1232int foo = LOG_DAEMON;
1233; return 0; }
1234EOF
1235if { (eval echo configure:1236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1236  :
1237else
1238  echo "configure: failed program was:" >&5
1239  cat conftest.$ac_ext >&5
1240  rm -rf conftest*
1241  cat >> confdefs.h <<\EOF
1242#define NEED_SYS_SYSLOG_H 1
1243EOF
1244
1245fi
1246rm -f conftest*
1247    ;;
1248  *-*-hpux7.*)
1249    # Kludge for ancient HPUX 7.x (from Nenad Babajic <saca@uis0.uis.kg.ac.yu>)
1250    cat >> confdefs.h <<\EOF
1251#define HPSUX7_KLUDGES 1
1252EOF
1253
1254    # HPUX flags from jgotts@engin.umich.edu
1255    if test -z "$GCC"; then
1256      CFLAGS="$CFLAGS -Aa -D_HPUX_SOURCE"
1257    fi
1258    cat >> confdefs.h <<\EOF
1259#define NONSTANDARD_IP_ADDRESS_X11_KLUDGE 1
1260EOF
1261
1262    cat >> confdefs.h <<\EOF
1263#define HPSUX_NONSTANDARD_X11_KLUDGE 1
1264EOF
1265
1266    ;;
1267  *-*-hpux*)
1268    # HPUX flags from jgotts@engin.umich.edu
1269    if test -z "$GCC"; then
1270      CFLAGS="$CFLAGS -Ae -D_HPUX_SOURCE"
1271    fi
1272    echo $ac_n "checking for HPUX tcb auth option""... $ac_c" 1>&6
1273echo "configure:1274: checking for HPUX tcb auth option" >&5
1274    if test -f /tcb/files/auth/system/pw_id_map; then
1275      echo "$ac_t""yes" 1>&6
1276      cat >> confdefs.h <<\EOF
1277#define HAVE_HPUX_TCB_AUTH 1
1278EOF
1279
1280      LIBS="$LIBS -lsec"
1281    else
1282      echo "$ac_t""no" 1>&6
1283    fi
1284    echo $ac_n "checking for keyserv""... $ac_c" 1>&6
1285echo "configure:1286: checking for keyserv" >&5
1286    if test -f /usr/sbin/keyserv; then
1287      echo "$ac_t""yes" 1>&6
1288      cat >> confdefs.h <<\EOF
1289#define SECURE_RPC 1
1290EOF
1291
1292      LIBS="$LIBS -lrpcsvc"
1293    else
1294      echo "$ac_t""no" 1>&6
1295    fi
1296    cat >> confdefs.h <<\EOF
1297#define NONSTANDARD_IP_ADDRESS_X11_KLUDGE 1
1298EOF
1299
1300    cat >> confdefs.h <<\EOF
1301#define HPSUX_NONSTANDARD_X11_KLUDGE 1
1302EOF
1303
1304    no_utmpx=yes
1305    ;;
1306  alpha-dec-osf*)
1307    cat >> confdefs.h <<\EOF
1308#define TTY_GROUP "terminal"
1309EOF
1310
1311    # The man page says that we need -lsecurity -ldb -laud -lm to quickstart
1312    # programs using enchanced security.
1313    echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
1314echo "configure:1315: checking for set_auth_parameters in -lsecurity" >&5
1315ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
1316if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1317  echo $ac_n "(cached) $ac_c" 1>&6
1318else
1319  ac_save_LIBS="$LIBS"
1320LIBS="-lsecurity  $LIBS"
1321cat > conftest.$ac_ext <<EOF
1322#line 1323 "configure"
1323#include "confdefs.h"
1324/* Override any gcc2 internal prototype to avoid an error.  */
1325/* We use char because int might match the return type of a gcc2
1326    builtin and then its argument prototype would still apply.  */
1327char set_auth_parameters();
1328
1329int main() {
1330set_auth_parameters()
1331; return 0; }
1332EOF
1333if { (eval echo configure:1334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1334  rm -rf conftest*
1335  eval "ac_cv_lib_$ac_lib_var=yes"
1336else
1337  echo "configure: failed program was:" >&5
1338  cat conftest.$ac_ext >&5
1339  rm -rf conftest*
1340  eval "ac_cv_lib_$ac_lib_var=no"
1341fi
1342rm -f conftest*
1343LIBS="$ac_save_LIBS"
1344
1345fi
1346if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1347  echo "$ac_t""yes" 1>&6
1348    ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1349    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1350  cat >> confdefs.h <<EOF
1351#define $ac_tr_lib 1
1352EOF
1353
1354  LIBS="-lsecurity $LIBS"
1355
1356else
1357  echo "$ac_t""no" 1>&6
1358fi
1359
1360    echo $ac_n "checking for audgen in -laud""... $ac_c" 1>&6
1361echo "configure:1362: checking for audgen in -laud" >&5
1362ac_lib_var=`echo aud'_'audgen | sed 'y%./+-%__p_%'`
1363if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1364  echo $ac_n "(cached) $ac_c" 1>&6
1365else
1366  ac_save_LIBS="$LIBS"
1367LIBS="-laud  $LIBS"
1368cat > conftest.$ac_ext <<EOF
1369#line 1370 "configure"
1370#include "confdefs.h"
1371/* Override any gcc2 internal prototype to avoid an error.  */
1372/* We use char because int might match the return type of a gcc2
1373    builtin and then its argument prototype would still apply.  */
1374char audgen();
1375
1376int main() {
1377audgen()
1378; return 0; }
1379EOF
1380if { (eval echo configure:1381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1381  rm -rf conftest*
1382  eval "ac_cv_lib_$ac_lib_var=yes"
1383else
1384  echo "configure: failed program was:" >&5
1385  cat conftest.$ac_ext >&5
1386  rm -rf conftest*
1387  eval "ac_cv_lib_$ac_lib_var=no"
1388fi
1389rm -f conftest*
1390LIBS="$ac_save_LIBS"
1391
1392fi
1393if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1394  echo "$ac_t""yes" 1>&6
1395    ac_tr_lib=HAVE_LIB`echo aud | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1396    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1397  cat >> confdefs.h <<EOF
1398#define $ac_tr_lib 1
1399EOF
1400
1401  LIBS="-laud $LIBS"
1402
1403else
1404  echo "$ac_t""no" 1>&6
1405fi
1406
1407    echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
1408echo "configure:1409: checking for dbopen in -ldb" >&5
1409ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
1410if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1411  echo $ac_n "(cached) $ac_c" 1>&6
1412else
1413  ac_save_LIBS="$LIBS"
1414LIBS="-ldb  $LIBS"
1415cat > conftest.$ac_ext <<EOF
1416#line 1417 "configure"
1417#include "confdefs.h"
1418/* Override any gcc2 internal prototype to avoid an error.  */
1419/* We use char because int might match the return type of a gcc2
1420    builtin and then its argument prototype would still apply.  */
1421char dbopen();
1422
1423int main() {
1424dbopen()
1425; return 0; }
1426EOF
1427if { (eval echo configure:1428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1428  rm -rf conftest*
1429  eval "ac_cv_lib_$ac_lib_var=yes"
1430else
1431  echo "configure: failed program was:" >&5
1432  cat conftest.$ac_ext >&5
1433  rm -rf conftest*
1434  eval "ac_cv_lib_$ac_lib_var=no"
1435fi
1436rm -f conftest*
1437LIBS="$ac_save_LIBS"
1438
1439fi
1440if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1441  echo "$ac_t""yes" 1>&6
1442    ac_tr_lib=HAVE_LIB`echo db | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1443    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1444  cat >> confdefs.h <<EOF
1445#define $ac_tr_lib 1
1446EOF
1447
1448  LIBS="-ldb $LIBS"
1449
1450else
1451  echo "$ac_t""no" 1>&6
1452fi
1453
1454    echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
1455echo "configure:1456: checking for sin in -lm" >&5
1456ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
1457if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1458  echo $ac_n "(cached) $ac_c" 1>&6
1459else
1460  ac_save_LIBS="$LIBS"
1461LIBS="-lm  $LIBS"
1462cat > conftest.$ac_ext <<EOF
1463#line 1464 "configure"
1464#include "confdefs.h"
1465/* Override any gcc2 internal prototype to avoid an error.  */
1466/* We use char because int might match the return type of a gcc2
1467    builtin and then its argument prototype would still apply.  */
1468char sin();
1469
1470int main() {
1471sin()
1472; return 0; }
1473EOF
1474if { (eval echo configure:1475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1475  rm -rf conftest*
1476  eval "ac_cv_lib_$ac_lib_var=yes"
1477else
1478  echo "configure: failed program was:" >&5
1479  cat conftest.$ac_ext >&5
1480  rm -rf conftest*
1481  eval "ac_cv_lib_$ac_lib_var=no"
1482fi
1483rm -f conftest*
1484LIBS="$ac_save_LIBS"
1485
1486fi
1487if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1488  echo "$ac_t""yes" 1>&6
1489    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1490    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1491  cat >> confdefs.h <<EOF
1492#define $ac_tr_lib 1
1493EOF
1494
1495  LIBS="-lm $LIBS"
1496
1497else
1498  echo "$ac_t""no" 1>&6
1499fi
1500
1501    for ac_func in setluid getespwnam locked_out_es time_lock
1502do
1503echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1504echo "configure:1505: checking for $ac_func" >&5
1505if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1506  echo $ac_n "(cached) $ac_c" 1>&6
1507else
1508  cat > conftest.$ac_ext <<EOF
1509#line 1510 "configure"
1510#include "confdefs.h"
1511/* System header to define __stub macros and hopefully few prototypes,
1512    which can conflict with char $ac_func(); below.  */
1513#include <assert.h>
1514/* Override any gcc2 internal prototype to avoid an error.  */
1515/* We use char because int might match the return type of a gcc2
1516    builtin and then its argument prototype would still apply.  */
1517char $ac_func();
1518
1519int main() {
1520
1521/* The GNU C library defines this for functions which it implements
1522    to always fail with ENOSYS.  Some functions are actually named
1523    something starting with __ and the normal name is an alias.  */
1524#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1525choke me
1526#else
1527$ac_func();
1528#endif
1529
1530; return 0; }
1531EOF
1532if { (eval echo configure:1533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1533  rm -rf conftest*
1534  eval "ac_cv_func_$ac_func=yes"
1535else
1536  echo "configure: failed program was:" >&5
1537  cat conftest.$ac_ext >&5
1538  rm -rf conftest*
1539  eval "ac_cv_func_$ac_func=no"
1540fi
1541rm -f conftest*
1542fi
1543
1544if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1545  echo "$ac_t""yes" 1>&6
1546    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1547  cat >> confdefs.h <<EOF
1548#define $ac_tr_func 1
1549EOF
1550 
1551else
1552  echo "$ac_t""no" 1>&6
1553fi
1554done
1555
1556    no_utmpx=yes
1557    echo $ac_n "checking for OSF/1 C2 security package""... $ac_c" 1>&6
1558echo "configure:1559: checking for OSF/1 C2 security package" >&5
1559    osfc2sec=`/usr/sbin/setld -i | grep '^OSFC2SEC' | grep 'installed'`
1560    if test -n "$osfc2sec"; then
1561      echo "$ac_t""yes" 1>&6
1562      cat >> confdefs.h <<\EOF
1563#define HAVE_OSF1_C2_SECURITY 1
1564EOF
1565
1566      SSHDCONFOBJS="$SSHDCONFOBJS osfc2.o"
1567      OLD_CFLAGS="$CFLAGS"
1568      CFLAGS="$CFLAGS -I."
1569      cat > conftest.$ac_ext <<EOF
1570#line 1571 "configure"
1571#include "confdefs.h"
1572#include <sys/types.h>
1573#include <sys/security.h>
1574#include <prot.h>
1575int main() {
1576
1577; return 0; }
1578EOF
1579if { (eval echo configure:1580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1580  :
1581else
1582  echo "configure: failed program was:" >&5
1583  cat conftest.$ac_ext >&5
1584  rm -rf conftest*
1585 
1586        echo "configure: warning: Could not include <prot.h> file.
1587The digital unix 4.0 prot.h tries to include <acl.h> instead of <sys/acl.h>.
1588Making a local copy of prot.h and patching it." 1>&2
1589        sed 's@<acl.h>@<sys/acl.h>@g' </usr/include/prot.h >prot.h
1590     
1591fi
1592rm -f conftest*
1593      CFLAGS="$OLD_CFLAGS"
1594    else
1595      echo "$ac_t""no" 1>&6
1596    fi
1597    ;;
1598  *-*-nextstep*)
1599    # Nextstep support from a person who wants to remain anonymous
1600    no_termios=yes
1601    if test -f /usr/include/bsd/sys/termios.h; then
1602      cat >> confdefs.h <<\EOF
1603#define SPEED_T_IN_STDTYPES_H 1
1604EOF
1605
1606    fi
1607    ;;
1608  *-*-linux*)
1609    echo $ac_n "checking for getspnam""... $ac_c" 1>&6
1610echo "configure:1611: checking for getspnam" >&5
1611if eval "test \"`echo '$''{'ac_cv_func_getspnam'+set}'`\" = set"; then
1612  echo $ac_n "(cached) $ac_c" 1>&6
1613else
1614  cat > conftest.$ac_ext <<EOF
1615#line 1616 "configure"
1616#include "confdefs.h"
1617/* System header to define __stub macros and hopefully few prototypes,
1618    which can conflict with char getspnam(); below.  */
1619#include <assert.h>
1620/* Override any gcc2 internal prototype to avoid an error.  */
1621/* We use char because int might match the return type of a gcc2
1622    builtin and then its argument prototype would still apply.  */
1623char getspnam();
1624
1625int main() {
1626
1627/* The GNU C library defines this for functions which it implements
1628    to always fail with ENOSYS.  Some functions are actually named
1629    something starting with __ and the normal name is an alias.  */
1630#if defined (__stub_getspnam) || defined (__stub___getspnam)
1631choke me
1632#else
1633getspnam();
1634#endif
1635
1636; return 0; }
1637EOF
1638if { (eval echo configure:1639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1639  rm -rf conftest*
1640  eval "ac_cv_func_getspnam=yes"
1641else
1642  echo "configure: failed program was:" >&5
1643  cat conftest.$ac_ext >&5
1644  rm -rf conftest*
1645  eval "ac_cv_func_getspnam=no"
1646fi
1647rm -f conftest*
1648fi
1649
1650if eval "test \"`echo '$ac_cv_func_'getspnam`\" = yes"; then
1651  echo "$ac_t""yes" 1>&6
1652  :
1653else
1654  echo "$ac_t""no" 1>&6
1655fi
1656
1657    if test $ac_cv_func_getspnam = no; then
1658       echo $ac_n "checking for getspnam in -lshadow""... $ac_c" 1>&6
1659echo "configure:1660: checking for getspnam in -lshadow" >&5
1660ac_lib_var=`echo shadow'_'getspnam | sed 'y%./+-%__p_%'`
1661if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1662  echo $ac_n "(cached) $ac_c" 1>&6
1663else
1664  ac_save_LIBS="$LIBS"
1665LIBS="-lshadow  $LIBS"
1666cat > conftest.$ac_ext <<EOF
1667#line 1668 "configure"
1668#include "confdefs.h"
1669/* Override any gcc2 internal prototype to avoid an error.  */
1670/* We use char because int might match the return type of a gcc2
1671    builtin and then its argument prototype would still apply.  */
1672char getspnam();
1673
1674int main() {
1675getspnam()
1676; return 0; }
1677EOF
1678if { (eval echo configure:1679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1679  rm -rf conftest*
1680  eval "ac_cv_lib_$ac_lib_var=yes"
1681else
1682  echo "configure: failed program was:" >&5
1683  cat conftest.$ac_ext >&5
1684  rm -rf conftest*
1685  eval "ac_cv_lib_$ac_lib_var=no"
1686fi
1687rm -f conftest*
1688LIBS="$ac_save_LIBS"
1689
1690fi
1691if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1692  echo "$ac_t""yes" 1>&6
1693    ac_tr_lib=HAVE_LIB`echo shadow | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1694    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1695  cat >> confdefs.h <<EOF
1696#define $ac_tr_lib 1
1697EOF
1698
1699  LIBS="-lshadow $LIBS"
1700
1701else
1702  echo "$ac_t""no" 1>&6
1703fi
1704
1705    fi
1706    if test $ac_cv_func_getspnam = yes; then
1707      cat >> confdefs.h <<\EOF
1708#define HAVE_ETC_SHADOW 1
1709EOF
1710
1711    fi
1712    no_shadows_password_checking=yes
1713    for ac_func in pw_encrypt
1714do
1715echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1716echo "configure:1717: checking for $ac_func" >&5
1717if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1718  echo $ac_n "(cached) $ac_c" 1>&6
1719else
1720  cat > conftest.$ac_ext <<EOF
1721#line 1722 "configure"
1722#include "confdefs.h"
1723/* System header to define __stub macros and hopefully few prototypes,
1724    which can conflict with char $ac_func(); below.  */
1725#include <assert.h>
1726/* Override any gcc2 internal prototype to avoid an error.  */
1727/* We use char because int might match the return type of a gcc2
1728    builtin and then its argument prototype would still apply.  */
1729char $ac_func();
1730
1731int main() {
1732
1733/* The GNU C library defines this for functions which it implements
1734    to always fail with ENOSYS.  Some functions are actually named
1735    something starting with __ and the normal name is an alias.  */
1736#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1737choke me
1738#else
1739$ac_func();
1740#endif
1741
1742; return 0; }
1743EOF
1744if { (eval echo configure:1745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1745  rm -rf conftest*
1746  eval "ac_cv_func_$ac_func=yes"
1747else
1748  echo "configure: failed program was:" >&5
1749  cat conftest.$ac_ext >&5
1750  rm -rf conftest*
1751  eval "ac_cv_func_$ac_func=no"
1752fi
1753rm -f conftest*
1754fi
1755
1756if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1757  echo "$ac_t""yes" 1>&6
1758    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1759  cat >> confdefs.h <<EOF
1760#define $ac_tr_func 1
1761EOF
1762 pwencrypt=yes
1763else
1764  echo "$ac_t""no" 1>&6
1765fi
1766done
1767
1768    if test $ac_cv_func_pw_encrypt = no; then
1769      echo $ac_n "checking for pw_encrypt in -lshadow""... $ac_c" 1>&6
1770echo "configure:1771: checking for pw_encrypt in -lshadow" >&5
1771ac_lib_var=`echo shadow'_'pw_encrypt | sed 'y%./+-%__p_%'`
1772if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1773  echo $ac_n "(cached) $ac_c" 1>&6
1774else
1775  ac_save_LIBS="$LIBS"
1776LIBS="-lshadow  $LIBS"
1777cat > conftest.$ac_ext <<EOF
1778#line 1779 "configure"
1779#include "confdefs.h"
1780/* Override any gcc2 internal prototype to avoid an error.  */
1781/* We use char because int might match the return type of a gcc2
1782    builtin and then its argument prototype would still apply.  */
1783char pw_encrypt();
1784
1785int main() {
1786pw_encrypt()
1787; return 0; }
1788EOF
1789if { (eval echo configure:1790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1790  rm -rf conftest*
1791  eval "ac_cv_lib_$ac_lib_var=yes"
1792else
1793  echo "configure: failed program was:" >&5
1794  cat conftest.$ac_ext >&5
1795  rm -rf conftest*
1796  eval "ac_cv_lib_$ac_lib_var=no"
1797fi
1798rm -f conftest*
1799LIBS="$ac_save_LIBS"
1800
1801fi
1802if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1803  echo "$ac_t""yes" 1>&6
1804 
1805        pwencrypt=yes
1806        pwencryptlib="-lshadow"
1807else
1808  echo "$ac_t""no" 1>&6
1809fi
1810
1811    fi
1812    echo $ac_n "checking whether to enable pw_encrypt""... $ac_c" 1>&6
1813echo "configure:1814: checking whether to enable pw_encrypt" >&5
1814    # Check whether --enable-deprecated-linux-pw-encrypt or --disable-deprecated-linux-pw-encrypt was given.
1815if test "${enable_deprecated_linux_pw_encrypt+set}" = set; then
1816  enableval="$enable_deprecated_linux_pw_encrypt"
1817       if test -z "$pwencrypt"; then
1818        echo "$ac_t""no" 1>&6
1819      else
1820        cat >> confdefs.h <<\EOF
1821#define crypt pw_encrypt
1822EOF
1823
1824        echo "$ac_t""no" 1>&6
1825        if test -n "$pwencryptlib"; then
1826          LIBS="$LIBS $pwencryptlib"
1827        fi
1828      fi
1829else
1830  echo "$ac_t""no" 1>&6
1831fi
1832
1833    ;;
1834  i*86-*-bsdi2.1*)
1835    no_pipe=yes
1836    X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1837    ;;
1838  i*86-*-bsdi*)
1839    no_pipe=yes
1840    ;;
1841  i*86-unknown-bsd*)
1842    # Assume 386BSD.  pgut01@cs.auckland.ac.nz reported this makes it compile.
1843    cat >> confdefs.h <<\EOF
1844#define __FreeBSD__ 1
1845EOF
1846
1847    ;;
1848  mips-sony-newsos6)
1849    cat >> confdefs.h <<\EOF
1850#define HAVE_NO_TZ_IN_GETTIMEOFDAY 1
1851EOF
1852
1853    ;;
1854  m68k-sony-newsos*)
1855    # From snabb@niksula.hut.fi
1856    no_vhangup=yes
1857    ;;
1858  mips-sony-bsd*)
1859    no_vhangup=yes
1860    ;;
1861  m68k-apple-aux*)
1862    # Macintosh A/UX tweaks - prune LIB = -L/usr/local/lib, exceeds ld capacity
1863    #   add -lposix to it, needed for termio stuff
1864    LIBS="$LIBS -lposix"
1865    cat >> confdefs.h <<\EOF
1866#define _POSIX_SOURCE 1
1867EOF
1868
1869    ;;
1870  m88k-dg-dgux*)
1871    cat >> confdefs.h <<\EOF
1872#define BROKEN_INET_ADDR 1
1873EOF
1874
1875    ;;
1876  t3e-*-*)
1877    CFLAGS="$CFLAGS -I."
1878    LIBS="$LIBS -lrsc"
1879    ;;
1880  *-cray-unicos*)
1881    CFLAGS="$CFLAGS -DCRAY_STACKSEG_END=_getb67"
1882    LIBS="$LIBS -lrsc"
1883    ;;
1884  i386-sni-sysv4*)
1885    cat >> confdefs.h <<\EOF
1886#define NONSTANDARD_IP_ADDRESS_X11_KLUDGE 1
1887EOF
1888
1889    echo $ac_n "checking for openlog in -lgen""... $ac_c" 1>&6
1890echo "configure:1891: checking for openlog in -lgen" >&5
1891ac_lib_var=`echo gen'_'openlog | sed 'y%./+-%__p_%'`
1892if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1893  echo $ac_n "(cached) $ac_c" 1>&6
1894else
1895  ac_save_LIBS="$LIBS"
1896LIBS="-lgen  $LIBS"
1897cat > conftest.$ac_ext <<EOF
1898#line 1899 "configure"
1899#include "confdefs.h"
1900/* Override any gcc2 internal prototype to avoid an error.  */
1901/* We use char because int might match the return type of a gcc2
1902    builtin and then its argument prototype would still apply.  */
1903char openlog();
1904
1905int main() {
1906openlog()
1907; return 0; }
1908EOF
1909if { (eval echo configure:1910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1910  rm -rf conftest*
1911  eval "ac_cv_lib_$ac_lib_var=yes"
1912else
1913  echo "configure: failed program was:" >&5
1914  cat conftest.$ac_ext >&5
1915  rm -rf conftest*
1916  eval "ac_cv_lib_$ac_lib_var=no"
1917fi
1918rm -f conftest*
1919LIBS="$ac_save_LIBS"
1920
1921fi
1922if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1923  echo "$ac_t""yes" 1>&6
1924    ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1925    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1926  cat >> confdefs.h <<EOF
1927#define $ac_tr_lib 1
1928EOF
1929
1930  LIBS="-lgen $LIBS"
1931
1932else
1933  echo "$ac_t""no" 1>&6
1934fi
1935
1936    ;;
1937  *-*-sysv4*)
1938    echo $ac_n "checking for openlog in -lgen""... $ac_c" 1>&6
1939echo "configure:1940: checking for openlog in -lgen" >&5
1940ac_lib_var=`echo gen'_'openlog | sed 'y%./+-%__p_%'`
1941if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1942  echo $ac_n "(cached) $ac_c" 1>&6
1943else
1944  ac_save_LIBS="$LIBS"
1945LIBS="-lgen  $LIBS"
1946cat > conftest.$ac_ext <<EOF
1947#line 1948 "configure"
1948#include "confdefs.h"
1949/* Override any gcc2 internal prototype to avoid an error.  */
1950/* We use char because int might match the return type of a gcc2
1951    builtin and then its argument prototype would still apply.  */
1952char openlog();
1953
1954int main() {
1955openlog()
1956; return 0; }
1957EOF
1958if { (eval echo configure:1959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1959  rm -rf conftest*
1960  eval "ac_cv_lib_$ac_lib_var=yes"
1961else
1962  echo "configure: failed program was:" >&5
1963  cat conftest.$ac_ext >&5
1964  rm -rf conftest*
1965  eval "ac_cv_lib_$ac_lib_var=no"
1966fi
1967rm -f conftest*
1968LIBS="$ac_save_LIBS"
1969
1970fi
1971if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1972  echo "$ac_t""yes" 1>&6
1973    ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1974    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1975  cat >> confdefs.h <<EOF
1976#define $ac_tr_lib 1
1977EOF
1978
1979  LIBS="-lgen $LIBS"
1980
1981else
1982  echo "$ac_t""no" 1>&6
1983fi
1984
1985    ;;
1986  *-*-machten*)
1987    cat >> confdefs.h <<\EOF
1988#define USE_STRLEN_FOR_AF_UNIX 1
1989EOF
1990
1991    no_vhangup=yes
1992    ;;
1993  i*86-unknown-sco3.2v4*)
1994    # From moi@dio.com
1995    cat >> confdefs.h <<\EOF
1996#define HAVE_SCO_ETC_SHADOW 1
1997EOF
1998
1999    cat >> confdefs.h <<\EOF
2000#define SCO 1
2001EOF
2002
2003    no_ranlib=yes
2004    LIBS="-L/usr/lib/libp -lprot -lx $LIBS"
2005    CFLAGS="$CFLAGS -UM_I86SM"
2006    ;;
2007  i*86-unknown-sco3.2v5*)
2008    # From brian@ilinx.com
2009    cat >> confdefs.h <<\EOF
2010#define HAVE_SCO_ETC_SHADOW 1
2011EOF
2012
2013    cat >> confdefs.h <<\EOF
2014#define SCO 1
2015EOF
2016
2017    cat >> confdefs.h <<\EOF
2018#define SCO5 1
2019EOF
2020
2021    no_ranlib=yes
2022    LIBS="-L/usr/lib/libp -lprot -lx $LIBS"
2023    CFLAGS="$CFLAGS -UM_I86SM"
2024    ;;
2025  *-convex-bsd*)
2026    # From mark.martinec@nsc.ijs.si
2027    # On Convex, getpwnam sets pw_passwd if running as root
2028    no_shadows_password_checking=yes
2029    ;;
2030  *-sequent-ptx*)
2031    # From geek+@cmu.edu
2032    test_libinet=yes
2033    ;;
2034  *-sequent-dynix*|*-sequent-ptx*)
2035    LIBS="-lseq -lsec $LIBS"
2036    X_EXTRA_LIBS="-lsocket -linet -lnsl $X_EXTRA_LIBS"
2037    ;;
2038  *-*-freebsd*)
2039    # From Ollivier Robert: FreeBSD and NetBSD use master.passwd, but set
2040    # pw_passwd automatically when running as root.
2041    no_shadow_password_checking=yes
2042    ;;
2043  *-*-netbsd*|*-*-openbsd*)
2044    # From Ollivier Robert: FreeBSD and NetBSD use master.passwd, but set
2045    # pw_passwd automatically when running as root.
2046    no_shadow_password_checking=yes
2047    ;;
2048  *)
2049    ;;
2050esac
2051
2052export CFLAGS CC
2053
2054# Socket pairs appear to be broken on several systems.  I don't know exactly
2055# where, so I'll use pipes everywhere for now.
2056cat >> confdefs.h <<\EOF
2057#define USE_PIPES 1
2058EOF
2059
2060
2061echo $ac_n "checking that the compiler works""... $ac_c" 1>&6
2062echo "configure:2063: checking that the compiler works" >&5
2063if test "$cross_compiling" = yes; then
2064  { echo "configure: error: Could not compile and run even a trivial ANSI C program - check CC." 1>&2; exit 1; }
2065else
2066  cat > conftest.$ac_ext <<EOF
2067#line 2068 "configure"
2068#include "confdefs.h"
2069 main(int ac, char **av) { return 0; }
2070EOF
2071if { (eval echo configure:2072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2072then
2073  echo "$ac_t""yes" 1>&6
2074else
2075  echo "configure: failed program was:" >&5
2076  cat conftest.$ac_ext >&5
2077  rm -fr conftest*
2078  echo "$ac_t""no" 1>&6
2079    { echo "configure: error: Could not compile and run even a trivial ANSI C program - check CC." 1>&2; exit 1; }
2080fi
2081rm -fr conftest*
2082fi
2083
2084
2085if test -z "$no_pipe"; then
2086if test -n "$GCC"; then
2087  echo $ac_n "checking if the compiler understands -pipe""... $ac_c" 1>&6
2088echo "configure:2089: checking if the compiler understands -pipe" >&5
2089  OLDCC="$CC"
2090  CC="$CC -pipe"
2091  cat > conftest.$ac_ext <<EOF
2092#line 2093 "configure"
2093#include "confdefs.h"
2094
2095int main() {
2096
2097; return 0; }
2098EOF
2099if { (eval echo configure:2100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2100  rm -rf conftest*
2101  echo "$ac_t""yes" 1>&6
2102else
2103  echo "configure: failed program was:" >&5
2104  cat conftest.$ac_ext >&5
2105  rm -rf conftest*
2106  CC="$OLDCC"
2107    echo "$ac_t""no" 1>&6
2108fi
2109rm -f conftest*
2110fi
2111fi
2112
2113echo $ac_n "checking whether to enable -Wall""... $ac_c" 1>&6
2114echo "configure:2115: checking whether to enable -Wall" >&5
2115# Check whether --enable-warnings or --disable-warnings was given.
2116if test "${enable_warnings+set}" = set; then
2117  enableval="$enable_warnings"
2118   if test -n "$GCC"; then
2119    echo "$ac_t""adding -Wall to CFLAGS." 1>&6
2120    CFLAGS="$CFLAGS -Wall"
2121  fi
2122else
2123  echo "$ac_t""no" 1>&6
2124fi
2125
2126
2127echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2128echo "configure:2129: checking return type of signal handlers" >&5
2129if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2130  echo $ac_n "(cached) $ac_c" 1>&6
2131else
2132  cat > conftest.$ac_ext <<EOF
2133#line 2134 "configure"
2134#include "confdefs.h"
2135#include <sys/types.h>
2136#include <signal.h>
2137#ifdef signal
2138#undef signal
2139#endif
2140#ifdef __cplusplus
2141extern "C" void (*signal (int, void (*)(int)))(int);
2142#else
2143void (*signal ()) ();
2144#endif
2145
2146int main() {
2147int i;
2148; return 0; }
2149EOF
2150if { (eval echo configure:2151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2151  rm -rf conftest*
2152  ac_cv_type_signal=void
2153else
2154  echo "configure: failed program was:" >&5
2155  cat conftest.$ac_ext >&5
2156  rm -rf conftest*
2157  ac_cv_type_signal=int
2158fi
2159rm -f conftest*
2160fi
2161
2162echo "$ac_t""$ac_cv_type_signal" 1>&6
2163cat >> confdefs.h <<EOF
2164#define RETSIGTYPE $ac_cv_type_signal
2165EOF
2166
2167
2168echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2169echo "configure:2170: checking how to run the C preprocessor" >&5
2170# On Suns, sometimes $CPP names a directory.
2171if test -n "$CPP" && test -d "$CPP"; then
2172  CPP=
2173fi
2174if test -z "$CPP"; then
2175if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2176  echo $ac_n "(cached) $ac_c" 1>&6
2177else
2178    # This must be in double quotes, not single quotes, because CPP may get
2179  # substituted into the Makefile and "${CC-cc}" will confuse make.
2180  CPP="${CC-cc} -E"
2181  # On the NeXT, cc -E runs the code through the compiler's parser,
2182  # not just through cpp.
2183  cat > conftest.$ac_ext <<EOF
2184#line 2185 "configure"
2185#include "confdefs.h"
2186#include <assert.h>
2187Syntax Error
2188EOF
2189ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2190{ (eval echo configure:2191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2191ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2192if test -z "$ac_err"; then
2193  :
2194else
2195  echo "$ac_err" >&5
2196  echo "configure: failed program was:" >&5
2197  cat conftest.$ac_ext >&5
2198  rm -rf conftest*
2199  CPP="${CC-cc} -E -traditional-cpp"
2200  cat > conftest.$ac_ext <<EOF
2201#line 2202 "configure"
2202#include "confdefs.h"
2203#include <assert.h>
2204Syntax Error
2205EOF
2206ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2207{ (eval echo configure:2208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2208ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2209if test -z "$ac_err"; then
2210  :
2211else
2212  echo "$ac_err" >&5
2213  echo "configure: failed program was:" >&5
2214  cat conftest.$ac_ext >&5
2215  rm -rf conftest*
2216  CPP="${CC-cc} -nologo -E"
2217  cat > conftest.$ac_ext <<EOF
2218#line 2219 "configure"
2219#include "confdefs.h"
2220#include <assert.h>
2221Syntax Error
2222EOF
2223ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2224{ (eval echo configure:2225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2225ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2226if test -z "$ac_err"; then
2227  :
2228else
2229  echo "$ac_err" >&5
2230  echo "configure: failed program was:" >&5
2231  cat conftest.$ac_ext >&5
2232  rm -rf conftest*
2233  CPP=/lib/cpp
2234fi
2235rm -f conftest*
2236fi
2237rm -f conftest*
2238fi
2239rm -f conftest*
2240  ac_cv_prog_CPP="$CPP"
2241fi
2242  CPP="$ac_cv_prog_CPP"
2243else
2244  ac_cv_prog_CPP="$CPP"
2245fi
2246echo "$ac_t""$CPP" 1>&6
2247
2248echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2249echo "configure:2250: checking for ANSI C header files" >&5
2250if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2251  echo $ac_n "(cached) $ac_c" 1>&6
2252else
2253  cat > conftest.$ac_ext <<EOF
2254#line 2255 "configure"
2255#include "confdefs.h"
2256#include <stdlib.h>
2257#include <stdarg.h>
2258#include <string.h>
2259#include <float.h>
2260EOF
2261ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2262{ (eval echo configure:2263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2263ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2264if test -z "$ac_err"; then
2265  rm -rf conftest*
2266  ac_cv_header_stdc=yes
2267else
2268  echo "$ac_err" >&5
2269  echo "configure: failed program was:" >&5
2270  cat conftest.$ac_ext >&5
2271  rm -rf conftest*
2272  ac_cv_header_stdc=no
2273fi
2274rm -f conftest*
2275
2276if test $ac_cv_header_stdc = yes; then
2277  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2278cat > conftest.$ac_ext <<EOF
2279#line 2280 "configure"
2280#include "confdefs.h"
2281#include <string.h>
2282EOF
2283if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2284  egrep "memchr" >/dev/null 2>&1; then
2285  :
2286else
2287  rm -rf conftest*
2288  ac_cv_header_stdc=no
2289fi
2290rm -f conftest*
2291
2292fi
2293
2294if test $ac_cv_header_stdc = yes; then
2295  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2296cat > conftest.$ac_ext <<EOF
2297#line 2298 "configure"
2298#include "confdefs.h"
2299#include <stdlib.h>
2300EOF
2301if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2302  egrep "free" >/dev/null 2>&1; then
2303  :
2304else
2305  rm -rf conftest*
2306  ac_cv_header_stdc=no
2307fi
2308rm -f conftest*
2309
2310fi
2311
2312if test $ac_cv_header_stdc = yes; then
2313  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2314if test "$cross_compiling" = yes; then
2315  :
2316else
2317  cat > conftest.$ac_ext <<EOF
2318#line 2319 "configure"
2319#include "confdefs.h"
2320#include <ctype.h>
2321#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2322#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2323#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2324int main () { int i; for (i = 0; i < 256; i++)
2325if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2326exit (0); }
2327
2328EOF
2329if { (eval echo configure:2330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2330then
2331  :
2332else
2333  echo "configure: failed program was:" >&5
2334  cat conftest.$ac_ext >&5
2335  rm -fr conftest*
2336  ac_cv_header_stdc=no
2337fi
2338rm -fr conftest*
2339fi
2340
2341fi
2342fi
2343
2344echo "$ac_t""$ac_cv_header_stdc" 1>&6
2345if test $ac_cv_header_stdc = yes; then
2346  cat >> confdefs.h <<\EOF
2347#define STDC_HEADERS 1
2348EOF
2349
2350fi
2351
2352echo $ac_n "checking for size_t""... $ac_c" 1>&6
2353echo "configure:2354: checking for size_t" >&5
2354if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2355  echo $ac_n "(cached) $ac_c" 1>&6
2356else
2357  cat > conftest.$ac_ext <<EOF
2358#line 2359 "configure"
2359#include "confdefs.h"
2360#include <sys/types.h>
2361#if STDC_HEADERS
2362#include <stdlib.h>
2363#include <stddef.h>
2364#endif
2365EOF
2366if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2367  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2368  rm -rf conftest*
2369  ac_cv_type_size_t=yes
2370else
2371  rm -rf conftest*
2372  ac_cv_type_size_t=no
2373fi
2374rm -f conftest*
2375
2376fi
2377echo "$ac_t""$ac_cv_type_size_t" 1>&6
2378if test $ac_cv_type_size_t = no; then
2379  cat >> confdefs.h <<\EOF
2380#define size_t unsigned
2381EOF
2382
2383fi
2384
2385echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2386echo "configure:2387: checking for uid_t in sys/types.h" >&5
2387if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2388  echo $ac_n "(cached) $ac_c" 1>&6
2389else
2390  cat > conftest.$ac_ext <<EOF
2391#line 2392 "configure"
2392#include "confdefs.h"
2393#include <sys/types.h>
2394EOF
2395if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2396  egrep "uid_t" >/dev/null 2>&1; then
2397  rm -rf conftest*
2398  ac_cv_type_uid_t=yes
2399else
2400  rm -rf conftest*
2401  ac_cv_type_uid_t=no
2402fi
2403rm -f conftest*
2404
2405fi
2406
2407echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2408if test $ac_cv_type_uid_t = no; then
2409  cat >> confdefs.h <<\EOF
2410#define uid_t int
2411EOF
2412
2413  cat >> confdefs.h <<\EOF
2414#define gid_t int
2415EOF
2416
2417fi
2418
2419echo $ac_n "checking for off_t""... $ac_c" 1>&6
2420echo "configure:2421: checking for off_t" >&5
2421if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2422  echo $ac_n "(cached) $ac_c" 1>&6
2423else
2424  cat > conftest.$ac_ext <<EOF
2425#line 2426 "configure"
2426#include "confdefs.h"
2427#include <sys/types.h>
2428#if STDC_HEADERS
2429#include <stdlib.h>
2430#include <stddef.h>
2431#endif
2432EOF
2433if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2434  egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2435  rm -rf conftest*
2436  ac_cv_type_off_t=yes
2437else
2438  rm -rf conftest*
2439  ac_cv_type_off_t=no
2440fi
2441rm -f conftest*
2442
2443fi
2444echo "$ac_t""$ac_cv_type_off_t" 1>&6
2445if test $ac_cv_type_off_t = no; then
2446  cat >> confdefs.h <<\EOF
2447#define off_t long
2448EOF
2449
2450fi
2451
2452echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2453echo "configure:2454: checking for mode_t" >&5
2454if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2455  echo $ac_n "(cached) $ac_c" 1>&6
2456else
2457  cat > conftest.$ac_ext <<EOF
2458#line 2459 "configure"
2459#include "confdefs.h"
2460#include <sys/types.h>
2461#if STDC_HEADERS
2462#include <stdlib.h>
2463#include <stddef.h>
2464#endif
2465EOF
2466if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2467  egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2468  rm -rf conftest*
2469  ac_cv_type_mode_t=yes
2470else
2471  rm -rf conftest*
2472  ac_cv_type_mode_t=no
2473fi
2474rm -f conftest*
2475
2476fi
2477echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2478if test $ac_cv_type_mode_t = no; then
2479  cat >> confdefs.h <<\EOF
2480#define mode_t int
2481EOF
2482
2483fi
2484
2485echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
2486echo "configure:2487: checking for st_blksize in struct stat" >&5
2487if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
2488  echo $ac_n "(cached) $ac_c" 1>&6
2489else
2490  cat > conftest.$ac_ext <<EOF
2491#line 2492 "configure"
2492#include "confdefs.h"
2493#include <sys/types.h>
2494#include <sys/stat.h>
2495int main() {
2496struct stat s; s.st_blksize;
2497; return 0; }
2498EOF
2499if { (eval echo configure:2500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2500  rm -rf conftest*
2501  ac_cv_struct_st_blksize=yes
2502else
2503  echo "configure: failed program was:" >&5
2504  cat conftest.$ac_ext >&5
2505  rm -rf conftest*
2506  ac_cv_struct_st_blksize=no
2507fi
2508rm -f conftest*
2509fi
2510
2511echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
2512if test $ac_cv_struct_st_blksize = yes; then
2513  cat >> confdefs.h <<\EOF
2514#define HAVE_ST_BLKSIZE 1
2515EOF
2516
2517fi
2518
2519
2520echo $ac_n "checking for working const""... $ac_c" 1>&6
2521echo "configure:2522: checking for working const" >&5
2522if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2523  echo $ac_n "(cached) $ac_c" 1>&6
2524else
2525  cat > conftest.$ac_ext <<EOF
2526#line 2527 "configure"
2527#include "confdefs.h"
2528
2529int main() {
2530
2531/* Ultrix mips cc rejects this.  */
2532typedef int charset[2]; const charset x;
2533/* SunOS 4.1.1 cc rejects this.  */
2534char const *const *ccp;
2535char **p;
2536/* NEC SVR4.0.2 mips cc rejects this.  */
2537struct point {int x, y;};
2538static struct point const zero = {0,0};
2539/* AIX XL C 1.02.0.0 rejects this.
2540   It does not let you subtract one const X* pointer from another in an arm
2541   of an if-expression whose if-part is not a constant expression */
2542const char *g = "string";
2543ccp = &g + (g ? g-g : 0);
2544/* HPUX 7.0 cc rejects these. */
2545++ccp;
2546p = (char**) ccp;
2547ccp = (char const *const *) p;
2548{ /* SCO 3.2v4 cc rejects this.  */
2549  char *t;
2550  char const *s = 0 ? (char *) 0 : (char const *) 0;
2551
2552  *t++ = 0;
2553}
2554{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2555  int x[] = {25, 17};
2556  const int *foo = &x[0];
2557  ++foo;
2558}
2559{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2560  typedef const int *iptr;
2561  iptr p = 0;
2562  ++p;
2563}
2564{ /* AIX XL C 1.02.0.0 rejects this saying
2565     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2566  struct s { int j; const int *ap[3]; };
2567  struct s *b; b->j = 5;
2568}
2569{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2570  const int foo = 10;
2571}
2572
2573; return 0; }
2574EOF
2575if { (eval echo configure:2576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2576  rm -rf conftest*
2577  ac_cv_c_const=yes
2578else
2579  echo "configure: failed program was:" >&5
2580  cat conftest.$ac_ext >&5
2581  rm -rf conftest*
2582  ac_cv_c_const=no
2583fi
2584rm -f conftest*
2585fi
2586
2587echo "$ac_t""$ac_cv_c_const" 1>&6
2588if test $ac_cv_c_const = no; then
2589  cat >> confdefs.h <<\EOF
2590#define const
2591EOF
2592
2593fi
2594
2595echo $ac_n "checking for inline""... $ac_c" 1>&6
2596echo "configure:2597: checking for inline" >&5
2597if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2598  echo $ac_n "(cached) $ac_c" 1>&6
2599else
2600  ac_cv_c_inline=no
2601for ac_kw in inline __inline__ __inline; do
2602  cat > conftest.$ac_ext <<EOF
2603#line 2604 "configure"
2604#include "confdefs.h"
2605
2606int main() {
2607} $ac_kw foo() {
2608; return 0; }
2609EOF
2610if { (eval echo configure:2611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2611  rm -rf conftest*
2612  ac_cv_c_inline=$ac_kw; break
2613else
2614  echo "configure: failed program was:" >&5
2615  cat conftest.$ac_ext >&5
2616fi
2617rm -f conftest*
2618done
2619
2620fi
2621
2622echo "$ac_t""$ac_cv_c_inline" 1>&6
2623case "$ac_cv_c_inline" in
2624  inline | yes) ;;
2625  no) cat >> confdefs.h <<\EOF
2626#define inline
2627EOF
2628 ;;
2629  *)  cat >> confdefs.h <<EOF
2630#define inline $ac_cv_c_inline
2631EOF
2632 ;;
2633esac
2634
2635echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2636echo "configure:2637: checking whether byte ordering is bigendian" >&5
2637if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2638  echo $ac_n "(cached) $ac_c" 1>&6
2639else
2640  ac_cv_c_bigendian=unknown
2641# See if sys/param.h defines the BYTE_ORDER macro.
2642cat > conftest.$ac_ext <<EOF
2643#line 2644 "configure"
2644#include "confdefs.h"
2645#include <sys/types.h>
2646#include <sys/param.h>
2647int main() {
2648
2649#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2650 bogus endian macros
2651#endif
2652; return 0; }
2653EOF
2654if { (eval echo configure:2655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2655  rm -rf conftest*
2656  # It does; now see whether it defined to BIG_ENDIAN or not.
2657cat > conftest.$ac_ext <<EOF
2658#line 2659 "configure"
2659#include "confdefs.h"
2660#include <sys/types.h>
2661#include <sys/param.h>
2662int main() {
2663
2664#if BYTE_ORDER != BIG_ENDIAN
2665 not big endian
2666#endif
2667; return 0; }
2668EOF
2669if { (eval echo configure:2670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2670  rm -rf conftest*
2671  ac_cv_c_bigendian=yes
2672else
2673  echo "configure: failed program was:" >&5
2674  cat conftest.$ac_ext >&5
2675  rm -rf conftest*
2676  ac_cv_c_bigendian=no
2677fi
2678rm -f conftest*
2679else
2680  echo "configure: failed program was:" >&5
2681  cat conftest.$ac_ext >&5
2682fi
2683rm -f conftest*
2684if test $ac_cv_c_bigendian = unknown; then
2685if test "$cross_compiling" = yes; then
2686    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2687else
2688  cat > conftest.$ac_ext <<EOF
2689#line 2690 "configure"
2690#include "confdefs.h"
2691main () {
2692  /* Are we little or big endian?  From Harbison&Steele.  */
2693  union
2694  {
2695    long l;
2696    char c[sizeof (long)];
2697  } u;
2698  u.l = 1;
2699  exit (u.c[sizeof (long) - 1] == 1);
2700}
2701EOF
2702if { (eval echo configure:2703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2703then
2704  ac_cv_c_bigendian=no
2705else
2706  echo "configure: failed program was:" >&5
2707  cat conftest.$ac_ext >&5
2708  rm -fr conftest*
2709  ac_cv_c_bigendian=yes
2710fi
2711rm -fr conftest*
2712fi
2713
2714fi
2715fi
2716
2717echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2718if test $ac_cv_c_bigendian = yes; then
2719  cat >> confdefs.h <<\EOF
2720#define WORDS_BIGENDIAN 1
2721EOF
2722
2723fi
2724
2725echo $ac_n "checking size of long""... $ac_c" 1>&6
2726echo "configure:2727: checking size of long" >&5
2727if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2728  echo $ac_n "(cached) $ac_c" 1>&6
2729else
2730  if test "$cross_compiling" = yes; then
2731  ac_cv_sizeof_long=4
2732else
2733  cat > conftest.$ac_ext <<EOF
2734#line 2735 "configure"
2735#include "confdefs.h"
2736#include <stdio.h>
2737main()
2738{
2739  FILE *f=fopen("conftestval", "w");
2740  if (!f) exit(1);
2741  fprintf(f, "%d\n", sizeof(long));
2742  exit(0);
2743}
2744EOF
2745if { (eval echo configure:2746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2746then
2747  ac_cv_sizeof_long=`cat conftestval`
2748else
2749  echo "configure: failed program was:" >&5
2750  cat conftest.$ac_ext >&5
2751  rm -fr conftest*
2752  ac_cv_sizeof_long=0
2753fi
2754rm -fr conftest*
2755fi
2756
2757fi
2758echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2759cat >> confdefs.h <<EOF
2760#define SIZEOF_LONG $ac_cv_sizeof_long
2761EOF
2762
2763
2764echo $ac_n "checking size of int""... $ac_c" 1>&6
2765echo "configure:2766: checking size of int" >&5
2766if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2767  echo $ac_n "(cached) $ac_c" 1>&6
2768else
2769  if test "$cross_compiling" = yes; then
2770  ac_cv_sizeof_int=4
2771else
2772  cat > conftest.$ac_ext <<EOF
2773#line 2774 "configure"
2774#include "confdefs.h"
2775#include <stdio.h>
2776main()
2777{
2778  FILE *f=fopen("conftestval", "w");
2779  if (!f) exit(1);
2780  fprintf(f, "%d\n", sizeof(int));
2781  exit(0);
2782}
2783EOF
2784if { (eval echo configure:2785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2785then
2786  ac_cv_sizeof_int=`cat conftestval`
2787else
2788  echo "configure: failed program was:" >&5
2789  cat conftest.$ac_ext >&5
2790  rm -fr conftest*
2791  ac_cv_sizeof_int=0
2792fi
2793rm -fr conftest*
2794fi
2795
2796fi
2797echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2798cat >> confdefs.h <<EOF
2799#define SIZEOF_INT $ac_cv_sizeof_int
2800EOF
2801
2802
2803echo $ac_n "checking size of short""... $ac_c" 1>&6
2804echo "configure:2805: checking size of short" >&5
2805if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2806  echo $ac_n "(cached) $ac_c" 1>&6
2807else
2808  if test "$cross_compiling" = yes; then
2809  ac_cv_sizeof_short=2
2810else
2811  cat > conftest.$ac_ext <<EOF
2812#line 2813 "configure"
2813#include "confdefs.h"
2814#include <stdio.h>
2815main()
2816{
2817  FILE *f=fopen("conftestval", "w");
2818  if (!f) exit(1);
2819  fprintf(f, "%d\n", sizeof(short));
2820  exit(0);
2821}
2822EOF
2823if { (eval echo configure:2824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2824then
2825  ac_cv_sizeof_short=`cat conftestval`
2826else
2827  echo "configure: failed program was:" >&5
2828  cat conftest.$ac_ext >&5
2829  rm -fr conftest*
2830  ac_cv_sizeof_short=0
2831fi
2832rm -fr conftest*
2833fi
2834
2835fi
2836echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2837cat >> confdefs.h <<EOF
2838#define SIZEOF_SHORT $ac_cv_sizeof_short
2839EOF
2840
2841
2842
2843if test -z "$no_termios"; then
2844  for ac_hdr in termios.h
2845do
2846ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2847echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2848echo "configure:2849: checking for $ac_hdr" >&5
2849if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2850  echo $ac_n "(cached) $ac_c" 1>&6
2851else
2852  cat > conftest.$ac_ext <<EOF
2853#line 2854 "configure"
2854#include "confdefs.h"
2855#include <$ac_hdr>
2856EOF
2857ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2858{ (eval echo configure:2859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2859ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2860if test -z "$ac_err"; then
2861  rm -rf conftest*
2862  eval "ac_cv_header_$ac_safe=yes"
2863else
2864  echo "$ac_err" >&5
2865  echo "configure: failed program was:" >&5
2866  cat conftest.$ac_ext >&5
2867  rm -rf conftest*
2868  eval "ac_cv_header_$ac_safe=no"
2869fi
2870rm -f conftest*
2871fi
2872if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2873  echo "$ac_t""yes" 1>&6
2874    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2875  cat >> confdefs.h <<EOF
2876#define $ac_tr_hdr 1
2877EOF
2878 
2879else
2880  echo "$ac_t""no" 1>&6
2881fi
2882done
2883
2884fi
2885
2886if test -z "$no_utmpx"; then
2887  for ac_hdr in utmpx.h
2888do
2889ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2890echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2891echo "configure:2892: checking for $ac_hdr" >&5
2892if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2893  echo $ac_n "(cached) $ac_c" 1>&6
2894else
2895  cat > conftest.$ac_ext <<EOF
2896#line 2897 "configure"
2897#include "confdefs.h"
2898#include <$ac_hdr>
2899EOF
2900ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2901{ (eval echo configure:2902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2902ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2903if test -z "$ac_err"; then
2904  rm -rf conftest*
2905  eval "ac_cv_header_$ac_safe=yes"
2906else
2907  echo "$ac_err" >&5
2908  echo "configure: failed program was:" >&5
2909  cat conftest.$ac_ext >&5
2910  rm -rf conftest*
2911  eval "ac_cv_header_$ac_safe=no"
2912fi
2913rm -f conftest*
2914fi
2915if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2916  echo "$ac_t""yes" 1>&6
2917    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2918  cat >> confdefs.h <<EOF
2919#define $ac_tr_hdr 1
2920EOF
2921 
2922else
2923  echo "$ac_t""no" 1>&6
2924fi
2925done
2926
2927  echo $ac_n "checking whether utmpx have ut_syslen field""... $ac_c" 1>&6
2928echo "configure:2929: checking whether utmpx have ut_syslen field" >&5
2929  cat > conftest.$ac_ext <<EOF
2930#line 2931 "configure"
2931#include "confdefs.h"
2932#include <utmpx.h>
2933EOF
2934if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2935  egrep "ut_syslen" >/dev/null 2>&1; then
2936  rm -rf conftest*
2937   cat >> confdefs.h <<\EOF
2938#define HAVE_SYSLEN_IN_UTMPX 1
2939EOF
2940
2941    echo "$ac_t""yes" 1>&6
2942else
2943  rm -rf conftest*
2944  echo "$ac_t""no" 1>&6
2945fi
2946rm -f conftest*
2947
2948fi
2949
2950echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2951echo "configure:2952: checking for ANSI C header files" >&5
2952if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2953  echo $ac_n "(cached) $ac_c" 1>&6
2954else
2955  cat > conftest.$ac_ext <<EOF
2956#line 2957 "configure"
2957#include "confdefs.h"
2958#include <stdlib.h>
2959#include <stdarg.h>
2960#include <string.h>
2961#include <float.h>
2962EOF
2963ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2964{ (eval echo configure:2965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2965ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2966if test -z "$ac_err"; then
2967  rm -rf conftest*
2968  ac_cv_header_stdc=yes
2969else
2970  echo "$ac_err" >&5
2971  echo "configure: failed program was:" >&5
2972  cat conftest.$ac_ext >&5
2973  rm -rf conftest*
2974  ac_cv_header_stdc=no
2975fi
2976rm -f conftest*
2977
2978if test $ac_cv_header_stdc = yes; then
2979  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2980cat > conftest.$ac_ext <<EOF
2981#line 2982 "configure"
2982#include "confdefs.h"
2983#include <string.h>
2984EOF
2985if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2986  egrep "memchr" >/dev/null 2>&1; then
2987  :
2988else
2989  rm -rf conftest*
2990  ac_cv_header_stdc=no
2991fi
2992rm -f conftest*
2993
2994fi
2995
2996if test $ac_cv_header_stdc = yes; then
2997  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2998cat > conftest.$ac_ext <<EOF
2999#line 3000 "configure"
3000#include "confdefs.h"
3001#include <stdlib.h>
3002EOF
3003if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3004  egrep "free" >/dev/null 2>&1; then
3005  :
3006else
3007  rm -rf conftest*
3008  ac_cv_header_stdc=no
3009fi
3010rm -f conftest*
3011
3012fi
3013
3014if test $ac_cv_header_stdc = yes; then
3015  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3016if test "$cross_compiling" = yes; then
3017  :
3018else
3019  cat > conftest.$ac_ext <<EOF
3020#line 3021 "configure"
3021#include "confdefs.h"
3022#include <ctype.h>
3023#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3024#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3025#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3026int main () { int i; for (i = 0; i < 256; i++)
3027if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3028exit (0); }
3029
3030EOF
3031if { (eval echo configure:3032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3032then
3033  :
3034else
3035  echo "configure: failed program was:" >&5
3036  cat conftest.$ac_ext >&5
3037  rm -fr conftest*
3038  ac_cv_header_stdc=no
3039fi
3040rm -fr conftest*
3041fi
3042
3043fi
3044fi
3045
3046echo "$ac_t""$ac_cv_header_stdc" 1>&6
3047if test $ac_cv_header_stdc = yes; then
3048  cat >> confdefs.h <<\EOF
3049#define STDC_HEADERS 1
3050EOF
3051
3052fi
3053
3054echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3055echo "configure:3056: checking for sys/wait.h that is POSIX.1 compatible" >&5
3056if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
3057  echo $ac_n "(cached) $ac_c" 1>&6
3058else
3059  cat > conftest.$ac_ext <<EOF
3060#line 3061 "configure"
3061#include "confdefs.h"
3062#include <sys/types.h>
3063#include <sys/wait.h>
3064#ifndef WEXITSTATUS
3065#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3066#endif
3067#ifndef WIFEXITED
3068#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3069#endif
3070int main() {
3071int s;
3072wait (&s);
3073s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3074; return 0; }
3075EOF
3076if { (eval echo configure:3077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3077  rm -rf conftest*
3078  ac_cv_header_sys_wait_h=yes
3079else
3080  echo "configure: failed program was:" >&5
3081  cat conftest.$ac_ext >&5
3082  rm -rf conftest*
3083  ac_cv_header_sys_wait_h=no
3084fi
3085rm -f conftest*
3086fi
3087
3088echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3089if test $ac_cv_header_sys_wait_h = yes; then
3090  cat >> confdefs.h <<\EOF
3091#define HAVE_SYS_WAIT_H 1
3092EOF
3093
3094fi
3095
3096for ac_hdr in unistd.h rusage.h sys/time.h lastlog.h utmp.h shadow.h
3097do
3098ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3099echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3100echo "configure:3101: checking for $ac_hdr" >&5
3101if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3102  echo $ac_n "(cached) $ac_c" 1>&6
3103else
3104  cat > conftest.$ac_ext <<EOF
3105#line 3106 "configure"
3106#include "confdefs.h"
3107#include <$ac_hdr>
3108EOF
3109ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3110{ (eval echo configure:3111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3111ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3112if test -z "$ac_err"; then
3113  rm -rf conftest*
3114  eval "ac_cv_header_$ac_safe=yes"
3115else
3116  echo "$ac_err" >&5
3117  echo "configure: failed program was:" >&5
3118  cat conftest.$ac_ext >&5
3119  rm -rf conftest*
3120  eval "ac_cv_header_$ac_safe=no"
3121fi
3122rm -f conftest*
3123fi
3124if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3125  echo "$ac_t""yes" 1>&6
3126    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3127  cat >> confdefs.h <<EOF
3128#define $ac_tr_hdr 1
3129EOF
3130 
3131else
3132  echo "$ac_t""no" 1>&6
3133fi
3134done
3135
3136for ac_hdr in sgtty.h sys/select.h sys/ioctl.h machine/endian.h
3137do
3138ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3139echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3140echo "configure:3141: checking for $ac_hdr" >&5
3141if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3142  echo $ac_n "(cached) $ac_c" 1>&6
3143else
3144  cat > conftest.$ac_ext <<EOF
3145#line 3146 "configure"
3146#include "confdefs.h"
3147#include <$ac_hdr>
3148EOF
3149ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3150{ (eval echo configure:3151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3151ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3152if test -z "$ac_err"; then
3153  rm -rf conftest*
3154  eval "ac_cv_header_$ac_safe=yes"
3155else
3156  echo "$ac_err" >&5
3157  echo "configure: failed program was:" >&5
3158  cat conftest.$ac_ext >&5
3159  rm -rf conftest*
3160  eval "ac_cv_header_$ac_safe=no"
3161fi
3162rm -f conftest*
3163fi
3164if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3165  echo "$ac_t""yes" 1>&6
3166    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3167  cat >> confdefs.h <<EOF
3168#define $ac_tr_hdr 1
3169EOF
3170 
3171else
3172  echo "$ac_t""no" 1>&6
3173fi
3174done
3175
3176for ac_hdr in paths.h usersec.h utime.h netinet/in_systm.h
3177do
3178ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3179echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3180echo "configure:3181: checking for $ac_hdr" >&5
3181if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3182  echo $ac_n "(cached) $ac_c" 1>&6
3183else
3184  cat > conftest.$ac_ext <<EOF
3185#line 3186 "configure"
3186#include "confdefs.h"
3187#include <$ac_hdr>
3188EOF
3189ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3190{ (eval echo configure:3191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3191ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3192if test -z "$ac_err"; then
3193  rm -rf conftest*
3194  eval "ac_cv_header_$ac_safe=yes"
3195else
3196  echo "$ac_err" >&5
3197  echo "configure: failed program was:" >&5
3198  cat conftest.$ac_ext >&5
3199  rm -rf conftest*
3200  eval "ac_cv_header_$ac_safe=no"
3201fi
3202rm -f conftest*
3203fi
3204if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3205  echo "$ac_t""yes" 1>&6
3206    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3207  cat >> confdefs.h <<EOF
3208#define $ac_tr_hdr 1
3209EOF
3210 
3211else
3212  echo "$ac_t""no" 1>&6
3213fi
3214done
3215
3216for ac_hdr in netinet/in_system.h netinet/ip.h netinet/tcp.h ulimit.h
3217do
3218ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3219echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3220echo "configure:3221: checking for $ac_hdr" >&5
3221if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3222  echo $ac_n "(cached) $ac_c" 1>&6
3223else
3224  cat > conftest.$ac_ext <<EOF
3225#line 3226 "configure"
3226#include "confdefs.h"
3227#include <$ac_hdr>
3228EOF
3229ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3230{ (eval echo configure:3231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3231ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3232if test -z "$ac_err"; then
3233  rm -rf conftest*
3234  eval "ac_cv_header_$ac_safe=yes"
3235else
3236  echo "$ac_err" >&5
3237  echo "configure: failed program was:" >&5
3238  cat conftest.$ac_ext >&5
3239  rm -rf conftest*
3240  eval "ac_cv_header_$ac_safe=no"
3241fi
3242rm -f conftest*
3243fi
3244if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3245  echo "$ac_t""yes" 1>&6
3246    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3247  cat >> confdefs.h <<EOF
3248#define $ac_tr_hdr 1
3249EOF
3250 
3251else
3252  echo "$ac_t""no" 1>&6
3253fi
3254done
3255
3256for ac_hdr in sys/resource.h login_cap.h
3257do
3258ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3259echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3260echo "configure:3261: checking for $ac_hdr" >&5
3261if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3262  echo $ac_n "(cached) $ac_c" 1>&6
3263else
3264  cat > conftest.$ac_ext <<EOF
3265#line 3266 "configure"
3266#include "confdefs.h"
3267#include <$ac_hdr>
3268EOF
3269ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3270{ (eval echo configure:3271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3271ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3272if test -z "$ac_err"; then
3273  rm -rf conftest*
3274  eval "ac_cv_header_$ac_safe=yes"
3275else
3276  echo "$ac_err" >&5
3277  echo "configure: failed program was:" >&5
3278  cat conftest.$ac_ext >&5
3279  rm -rf conftest*
3280  eval "ac_cv_header_$ac_safe=no"
3281fi
3282rm -f conftest*
3283fi
3284if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3285  echo "$ac_t""yes" 1>&6
3286    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3287  cat >> confdefs.h <<EOF
3288#define $ac_tr_hdr 1
3289EOF
3290 
3291else
3292  echo "$ac_t""no" 1>&6
3293fi
3294done
3295
3296echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3297echo "configure:3298: checking whether time.h and sys/time.h may both be included" >&5
3298if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3299  echo $ac_n "(cached) $ac_c" 1>&6
3300else
3301  cat > conftest.$ac_ext <<EOF
3302#line 3303 "configure"
3303#include "confdefs.h"
3304#include <sys/types.h>
3305#include <sys/time.h>
3306#include <time.h>
3307int main() {
3308struct tm *tp;
3309; return 0; }
3310EOF
3311if { (eval echo configure:3312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3312  rm -rf conftest*
3313  ac_cv_header_time=yes
3314else
3315  echo "configure: failed program was:" >&5
3316  cat conftest.$ac_ext >&5
3317  rm -rf conftest*
3318  ac_cv_header_time=no
3319fi
3320rm -f conftest*
3321fi
3322
3323echo "$ac_t""$ac_cv_header_time" 1>&6
3324if test $ac_cv_header_time = yes; then
3325  cat >> confdefs.h <<\EOF
3326#define TIME_WITH_SYS_TIME 1
3327EOF
3328
3329fi
3330
3331ac_header_dirent=no
3332for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
3333do
3334ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3335echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3336echo "configure:3337: checking for $ac_hdr that defines DIR" >&5
3337if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
3338  echo $ac_n "(cached) $ac_c" 1>&6
3339else
3340  cat > conftest.$ac_ext <<EOF
3341#line 3342 "configure"
3342#include "confdefs.h"
3343#include <sys/types.h>
3344#include <$ac_hdr>
3345int main() {
3346DIR *dirp = 0;
3347; return 0; }
3348EOF
3349if { (eval echo configure:3350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3350  rm -rf conftest*
3351  eval "ac_cv_header_dirent_$ac_safe=yes"
3352else
3353  echo "configure: failed program was:" >&5
3354  cat conftest.$ac_ext >&5
3355  rm -rf conftest*
3356  eval "ac_cv_header_dirent_$ac_safe=no"
3357fi
3358rm -f conftest*
3359fi
3360if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3361  echo "$ac_t""yes" 1>&6
3362    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3363  cat >> confdefs.h <<EOF
3364#define $ac_tr_hdr 1
3365EOF
3366 ac_header_dirent=$ac_hdr; break
3367else
3368  echo "$ac_t""no" 1>&6
3369fi
3370done
3371# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3372if test $ac_header_dirent = dirent.h; then
3373echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3374echo "configure:3375: checking for opendir in -ldir" >&5
3375ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
3376if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3377  echo $ac_n "(cached) $ac_c" 1>&6
3378else
3379  ac_save_LIBS="$LIBS"
3380LIBS="-ldir  $LIBS"
3381cat > conftest.$ac_ext <<EOF
3382#line 3383 "configure"
3383#include "confdefs.h"
3384/* Override any gcc2 internal prototype to avoid an error.  */
3385/* We use char because int might match the return type of a gcc2
3386    builtin and then its argument prototype would still apply.  */
3387char opendir();
3388
3389int main() {
3390opendir()
3391; return 0; }
3392EOF
3393if { (eval echo configure:3394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3394  rm -rf conftest*
3395  eval "ac_cv_lib_$ac_lib_var=yes"
3396else
3397  echo "configure: failed program was:" >&5
3398  cat conftest.$ac_ext >&5
3399  rm -rf conftest*
3400  eval "ac_cv_lib_$ac_lib_var=no"
3401fi
3402rm -f conftest*
3403LIBS="$ac_save_LIBS"
3404
3405fi
3406if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3407  echo "$ac_t""yes" 1>&6
3408  LIBS="$LIBS -ldir"
3409else
3410  echo "$ac_t""no" 1>&6
3411fi
3412
3413else
3414echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3415echo "configure:3416: checking for opendir in -lx" >&5
3416ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3417if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3418  echo $ac_n "(cached) $ac_c" 1>&6
3419else
3420  ac_save_LIBS="$LIBS"
3421LIBS="-lx  $LIBS"
3422cat > conftest.$ac_ext <<EOF
3423#line 3424 "configure"
3424#include "confdefs.h"
3425/* Override any gcc2 internal prototype to avoid an error.  */
3426/* We use char because int might match the return type of a gcc2
3427    builtin and then its argument prototype would still apply.  */
3428char opendir();
3429
3430int main() {
3431opendir()
3432; return 0; }
3433EOF
3434if { (eval echo configure:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3435  rm -rf conftest*
3436  eval "ac_cv_lib_$ac_lib_var=yes"
3437else
3438  echo "configure: failed program was:" >&5
3439  cat conftest.$ac_ext >&5
3440  rm -rf conftest*
3441  eval "ac_cv_lib_$ac_lib_var=no"
3442fi
3443rm -f conftest*
3444LIBS="$ac_save_LIBS"
3445
3446fi
3447if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3448  echo "$ac_t""yes" 1>&6
3449  LIBS="$LIBS -lx"
3450else
3451  echo "$ac_t""no" 1>&6
3452fi
3453
3454fi
3455
3456echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3457echo "configure:3458: checking whether stat file-mode macros are broken" >&5
3458if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3459  echo $ac_n "(cached) $ac_c" 1>&6
3460else
3461  cat > conftest.$ac_ext <<EOF
3462#line 3463 "configure"
3463#include "confdefs.h"
3464#include <sys/types.h>
3465#include <sys/stat.h>
3466
3467#if defined(S_ISBLK) && defined(S_IFDIR)
3468# if S_ISBLK (S_IFDIR)
3469You lose.
3470# endif
3471#endif
3472
3473#if defined(S_ISBLK) && defined(S_IFCHR)
3474# if S_ISBLK (S_IFCHR)
3475You lose.
3476# endif
3477#endif
3478
3479#if defined(S_ISLNK) && defined(S_IFREG)
3480# if S_ISLNK (S_IFREG)
3481You lose.
3482# endif
3483#endif
3484
3485#if defined(S_ISSOCK) && defined(S_IFREG)
3486# if S_ISSOCK (S_IFREG)
3487You lose.
3488# endif
3489#endif
3490
3491EOF
3492if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3493  egrep "You lose" >/dev/null 2>&1; then
3494  rm -rf conftest*
3495  ac_cv_header_stat_broken=yes
3496else
3497  rm -rf conftest*
3498  ac_cv_header_stat_broken=no
3499fi
3500rm -f conftest*
3501
3502fi
3503
3504echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3505if test $ac_cv_header_stat_broken = yes; then
3506  cat >> confdefs.h <<\EOF
3507#define STAT_MACROS_BROKEN 1
3508EOF
3509
3510fi
3511
3512echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6
3513echo "configure:3514: checking whether sys/types.h defines makedev" >&5
3514if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then
3515  echo $ac_n "(cached) $ac_c" 1>&6
3516else
3517  cat > conftest.$ac_ext <<EOF
3518#line 3519 "configure"
3519#include "confdefs.h"
3520#include <sys/types.h>
3521int main() {
3522return makedev(0, 0);
3523; return 0; }
3524EOF
3525if { (eval echo configure:3526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3526  rm -rf conftest*
3527  ac_cv_header_sys_types_h_makedev=yes
3528else
3529  echo "configure: failed program was:" >&5
3530  cat conftest.$ac_ext >&5
3531  rm -rf conftest*
3532  ac_cv_header_sys_types_h_makedev=no
3533fi
3534rm -f conftest*
3535
3536fi
3537
3538echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6
3539
3540if test $ac_cv_header_sys_types_h_makedev = no; then
3541ac_safe=`echo "sys/mkdev.h" | sed 'y%./+-%__p_%'`
3542echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6
3543echo "configure:3544: checking for sys/mkdev.h" >&5
3544if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3545  echo $ac_n "(cached) $ac_c" 1>&6
3546else
3547  cat > conftest.$ac_ext <<EOF
3548#line 3549 "configure"
3549#include "confdefs.h"
3550#include <sys/mkdev.h>
3551EOF
3552ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3553{ (eval echo configure:3554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3554ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3555if test -z "$ac_err"; then
3556  rm -rf conftest*
3557  eval "ac_cv_header_$ac_safe=yes"
3558else
3559  echo "$ac_err" >&5
3560  echo "configure: failed program was:" >&5
3561  cat conftest.$ac_ext >&5
3562  rm -rf conftest*
3563  eval "ac_cv_header_$ac_safe=no"
3564fi
3565rm -f conftest*
3566fi
3567if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3568  echo "$ac_t""yes" 1>&6
3569  cat >> confdefs.h <<\EOF
3570#define MAJOR_IN_MKDEV 1
3571EOF
3572
3573else
3574  echo "$ac_t""no" 1>&6
3575fi
3576
3577
3578  if test $ac_cv_header_sys_mkdev_h = no; then
3579ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'`
3580echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6
3581echo "configure:3582: checking for sys/sysmacros.h" >&5
3582if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3583  echo $ac_n "(cached) $ac_c" 1>&6
3584else
3585  cat > conftest.$ac_ext <<EOF
3586#line 3587 "configure"
3587#include "confdefs.h"
3588#include <sys/sysmacros.h>
3589EOF
3590ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3591{ (eval echo configure:3592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3592ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3593if test -z "$ac_err"; then
3594  rm -rf conftest*
3595  eval "ac_cv_header_$ac_safe=yes"
3596else
3597  echo "$ac_err" >&5
3598  echo "configure: failed program was:" >&5
3599  cat conftest.$ac_ext >&5
3600  rm -rf conftest*
3601  eval "ac_cv_header_$ac_safe=no"
3602fi
3603rm -f conftest*
3604fi
3605if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3606  echo "$ac_t""yes" 1>&6
3607  cat >> confdefs.h <<\EOF
3608#define MAJOR_IN_SYSMACROS 1
3609EOF
3610
3611else
3612  echo "$ac_t""no" 1>&6
3613fi
3614
3615  fi
3616fi
3617
3618echo $ac_n "checking whether utmp have ut_pid field""... $ac_c" 1>&6
3619echo "configure:3620: checking whether utmp have ut_pid field" >&5
3620cat > conftest.$ac_ext <<EOF
3621#line 3622 "configure"
3622#include "confdefs.h"
3623#include <utmp.h>
3624EOF
3625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3626  egrep "ut_pid" >/dev/null 2>&1; then
3627  rm -rf conftest*
3628   cat >> confdefs.h <<\EOF
3629#define HAVE_PID_IN_UTMP 1
3630EOF
3631
3632  echo "$ac_t""yes" 1>&6
3633else
3634  rm -rf conftest*
3635  echo "$ac_t""no" 1>&6
3636fi
3637rm -f conftest*
3638
3639echo $ac_n "checking whether utmp have ut_name field""... $ac_c" 1>&6
3640echo "configure:3641: checking whether utmp have ut_name field" >&5
3641cat > conftest.$ac_ext <<EOF
3642#line 3643 "configure"
3643#include "confdefs.h"
3644#include <utmp.h>
3645EOF
3646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3647  egrep "ut_name" >/dev/null 2>&1; then
3648  rm -rf conftest*
3649   cat >> confdefs.h <<\EOF
3650#define HAVE_NAME_IN_UTMP 1
3651EOF
3652
3653  echo "$ac_t""yes" 1>&6
3654else
3655  rm -rf conftest*
3656  echo "$ac_t""no" 1>&6
3657fi
3658rm -f conftest*
3659
3660echo $ac_n "checking whether utmp have ut_id field""... $ac_c" 1>&6
3661echo "configure:3662: checking whether utmp have ut_id field" >&5
3662cat > conftest.$ac_ext <<EOF
3663#line 3664 "configure"
3664#include "confdefs.h"
3665#include <utmp.h>
3666EOF
3667if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3668  egrep "ut_id" >/dev/null 2>&1; then
3669  rm -rf conftest*
3670   cat >> confdefs.h <<\EOF
3671#define HAVE_ID_IN_UTMP 1
3672EOF
3673
3674  echo "$ac_t""yes" 1>&6
3675else
3676  rm -rf conftest*
3677  echo "$ac_t""no" 1>&6
3678fi
3679rm -f conftest*
3680
3681echo $ac_n "checking whether utmp have ut_host field""... $ac_c" 1>&6
3682echo "configure:3683: checking whether utmp have ut_host field" >&5
3683cat > conftest.$ac_ext <<EOF
3684#line 3685 "configure"
3685#include "confdefs.h"
3686#include <utmp.h>
3687EOF
3688if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3689  egrep "ut_host" >/dev/null 2>&1; then
3690  rm -rf conftest*
3691   cat >> confdefs.h <<\EOF
3692#define HAVE_HOST_IN_UTMP 1
3693EOF
3694
3695  echo "$ac_t""yes" 1>&6
3696else
3697  rm -rf conftest*
3698  echo "$ac_t""no" 1>&6
3699fi
3700rm -f conftest*
3701
3702echo $ac_n "checking whether utmp have ut_addr field""... $ac_c" 1>&6
3703echo "configure:3704: checking whether utmp have ut_addr field" >&5
3704cat > conftest.$ac_ext <<EOF
3705#line 3706 "configure"
3706#include "confdefs.h"
3707#include <utmp.h>
3708EOF
3709if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3710  egrep "ut_addr" >/dev/null 2>&1; then
3711  rm -rf conftest*
3712   cat >> confdefs.h <<\EOF
3713#define HAVE_ADDR_IN_UTMP 1
3714EOF
3715
3716  echo "$ac_t""yes" 1>&6
3717else
3718  rm -rf conftest*
3719  echo "$ac_t""no" 1>&6
3720fi
3721rm -f conftest*
3722
3723echo $ac_n "checking whether you have incompatible SIGINFO macro""... $ac_c" 1>&6
3724echo "configure:3725: checking whether you have incompatible SIGINFO macro" >&5
3725cat > conftest.$ac_ext <<EOF
3726#line 3727 "configure"
3727#include "confdefs.h"
3728#include <sys/siginfo.h>
3729SIGINFO(p,1)
3730EOF
3731if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3732  egrep "p_siginfo" >/dev/null 2>&1; then
3733  rm -rf conftest*
3734   cat >> confdefs.h <<\EOF
3735#define HAVE_INCOMPATIBLE_SIGINFO 1
3736EOF
3737
3738  echo "$ac_t""yes" 1>&6
3739else
3740  rm -rf conftest*
3741  echo "$ac_t""no" 1>&6
3742fi
3743rm -f conftest*
3744
3745
3746echo $ac_n "checking for crypt in -lc""... $ac_c" 1>&6
3747echo "configure:3748: checking for crypt in -lc" >&5
3748ac_lib_var=`echo c'_'crypt | sed 'y%./+-%__p_%'`
3749if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3750  echo $ac_n "(cached) $ac_c" 1>&6
3751else
3752  ac_save_LIBS="$LIBS"
3753LIBS="-lc  $LIBS"
3754cat > conftest.$ac_ext <<EOF
3755#line 3756 "configure"
3756#include "confdefs.h"
3757/* Override any gcc2 internal prototype to avoid an error.  */
3758/* We use char because int might match the return type of a gcc2
3759    builtin and then its argument prototype would still apply.  */
3760char crypt();
3761
3762int main() {
3763crypt()
3764; return 0; }
3765EOF
3766if { (eval echo configure:3767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3767  rm -rf conftest*
3768  eval "ac_cv_lib_$ac_lib_var=yes"
3769else
3770  echo "configure: failed program was:" >&5
3771  cat conftest.$ac_ext >&5
3772  rm -rf conftest*
3773  eval "ac_cv_lib_$ac_lib_var=no"
3774fi
3775rm -f conftest*
3776LIBS="$ac_save_LIBS"
3777
3778fi
3779if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3780  echo "$ac_t""yes" 1>&6
3781  true
3782else
3783  echo "$ac_t""no" 1>&6
3784echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3785echo "configure:3786: checking for crypt in -lcrypt" >&5
3786ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3787if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3788  echo $ac_n "(cached) $ac_c" 1>&6
3789else
3790  ac_save_LIBS="$LIBS"
3791LIBS="-lcrypt  $LIBS"
3792cat > conftest.$ac_ext <<EOF
3793#line 3794 "configure"
3794#include "confdefs.h"
3795/* Override any gcc2 internal prototype to avoid an error.  */
3796/* We use char because int might match the return type of a gcc2
3797    builtin and then its argument prototype would still apply.  */
3798char crypt();
3799
3800int main() {
3801crypt()
3802; return 0; }
3803EOF
3804if { (eval echo configure:3805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3805  rm -rf conftest*
3806  eval "ac_cv_lib_$ac_lib_var=yes"
3807else
3808  echo "configure: failed program was:" >&5
3809  cat conftest.$ac_ext >&5
3810  rm -rf conftest*
3811  eval "ac_cv_lib_$ac_lib_var=no"
3812fi
3813rm -f conftest*
3814LIBS="$ac_save_LIBS"
3815
3816fi
3817if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3818  echo "$ac_t""yes" 1>&6
3819    ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/^a-zA-Z0-9_/_/g' \
3820    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3821  cat >> confdefs.h <<EOF
3822#define $ac_tr_lib 1
3823EOF
3824
3825  LIBS="-lcrypt $LIBS"
3826
3827else
3828  echo "$ac_t""no" 1>&6
3829fi
3830
3831fi
3832
3833echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
3834echo "configure:3835: checking for getspnam in -lsec" >&5
3835ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
3836if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3837  echo $ac_n "(cached) $ac_c" 1>&6
3838else
3839  ac_save_LIBS="$LIBS"
3840LIBS="-lsec  $LIBS"
3841cat > conftest.$ac_ext <<EOF
3842#line 3843 "configure"
3843#include "confdefs.h"
3844/* Override any gcc2 internal prototype to avoid an error.  */
3845/* We use char because int might match the return type of a gcc2
3846    builtin and then its argument prototype would still apply.  */
3847char getspnam();
3848
3849int main() {
3850getspnam()
3851; return 0; }
3852EOF
3853if { (eval echo configure:3854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3854  rm -rf conftest*
3855  eval "ac_cv_lib_$ac_lib_var=yes"
3856else
3857  echo "configure: failed program was:" >&5
3858  cat conftest.$ac_ext >&5
3859  rm -rf conftest*
3860  eval "ac_cv_lib_$ac_lib_var=no"
3861fi
3862rm -f conftest*
3863LIBS="$ac_save_LIBS"
3864
3865fi
3866if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3867  echo "$ac_t""yes" 1>&6
3868    ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3869    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3870  cat >> confdefs.h <<EOF
3871#define $ac_tr_lib 1
3872EOF
3873
3874  LIBS="-lsec $LIBS"
3875
3876else
3877  echo "$ac_t""no" 1>&6
3878fi
3879
3880echo $ac_n "checking for get_process_stats in -lseq""... $ac_c" 1>&6
3881echo "configure:3882: checking for get_process_stats in -lseq" >&5
3882ac_lib_var=`echo seq'_'get_process_stats | sed 'y%./+-%__p_%'`
3883if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3884  echo $ac_n "(cached) $ac_c" 1>&6
3885else
3886  ac_save_LIBS="$LIBS"
3887LIBS="-lseq  $LIBS"
3888cat > conftest.$ac_ext <<EOF
3889#line 3890 "configure"
3890#include "confdefs.h"
3891/* Override any gcc2 internal prototype to avoid an error.  */
3892/* We use char because int might match the return type of a gcc2
3893    builtin and then its argument prototype would still apply.  */
3894char get_process_stats();
3895
3896int main() {
3897get_process_stats()
3898; return 0; }
3899EOF
3900if { (eval echo configure:3901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3901  rm -rf conftest*
3902  eval "ac_cv_lib_$ac_lib_var=yes"
3903else
3904  echo "configure: failed program was:" >&5
3905  cat conftest.$ac_ext >&5
3906  rm -rf conftest*
3907  eval "ac_cv_lib_$ac_lib_var=no"
3908fi
3909rm -f conftest*
3910LIBS="$ac_save_LIBS"
3911
3912fi
3913if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3914  echo "$ac_t""yes" 1>&6
3915    ac_tr_lib=HAVE_LIB`echo seq | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3916    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3917  cat >> confdefs.h <<EOF
3918#define $ac_tr_lib 1
3919EOF
3920
3921  LIBS="-lseq $LIBS"
3922
3923else
3924  echo "$ac_t""no" 1>&6
3925fi
3926
3927echo $ac_n "checking for bcopy in -lbsd""... $ac_c" 1>&6
3928echo "configure:3929: checking for bcopy in -lbsd" >&5
3929ac_lib_var=`echo bsd'_'bcopy | sed 'y%./+-%__p_%'`
3930if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3931  echo $ac_n "(cached) $ac_c" 1>&6
3932else
3933  ac_save_LIBS="$LIBS"
3934LIBS="-lbsd  $LIBS"
3935cat > conftest.$ac_ext <<EOF
3936#line 3937 "configure"
3937#include "confdefs.h"
3938/* Override any gcc2 internal prototype to avoid an error.  */
3939/* We use char because int might match the return type of a gcc2
3940    builtin and then its argument prototype would still apply.  */
3941char bcopy();
3942
3943int main() {
3944bcopy()
3945; return 0; }
3946EOF
3947if { (eval echo configure:3948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3948  rm -rf conftest*
3949  eval "ac_cv_lib_$ac_lib_var=yes"
3950else
3951  echo "configure: failed program was:" >&5
3952  cat conftest.$ac_ext >&5
3953  rm -rf conftest*
3954  eval "ac_cv_lib_$ac_lib_var=no"
3955fi
3956rm -f conftest*
3957LIBS="$ac_save_LIBS"
3958
3959fi
3960if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3961  echo "$ac_t""yes" 1>&6
3962    ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3963    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3964  cat >> confdefs.h <<EOF
3965#define $ac_tr_lib 1
3966EOF
3967
3968  LIBS="-lbsd $LIBS"
3969
3970else
3971  echo "$ac_t""no" 1>&6
3972fi
3973
3974if test -z "$no_libnsl"; then
3975  echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3976echo "configure:3977: checking for main in -lnsl" >&5
3977ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3978if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3979  echo $ac_n "(cached) $ac_c" 1>&6
3980else
3981  ac_save_LIBS="$LIBS"
3982LIBS="-lnsl  $LIBS"
3983cat > conftest.$ac_ext <<EOF
3984#line 3985 "configure"
3985#include "confdefs.h"
3986
3987int main() {
3988main()
3989; return 0; }
3990EOF
3991if { (eval echo configure:3992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3992  rm -rf conftest*
3993  eval "ac_cv_lib_$ac_lib_var=yes"
3994else
3995  echo "configure: failed program was:" >&5
3996  cat conftest.$ac_ext >&5
3997  rm -rf conftest*
3998  eval "ac_cv_lib_$ac_lib_var=no"
3999fi
4000rm -f conftest*
4001LIBS="$ac_save_LIBS"
4002
4003fi
4004if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4005  echo "$ac_t""yes" 1>&6
4006    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4007    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4008  cat >> confdefs.h <<EOF
4009#define $ac_tr_lib 1
4010EOF
4011
4012  LIBS="-lnsl $LIBS"
4013
4014else
4015  echo "$ac_t""no" 1>&6
4016fi
4017
4018fi
4019if test -n "$test_libinet"; then
4020  echo $ac_n "checking for inet_network in -linet""... $ac_c" 1>&6
4021echo "configure:4022: checking for inet_network in -linet" >&5
4022ac_lib_var=`echo inet'_'inet_network | sed 'y%./+-%__p_%'`
4023if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4024  echo $ac_n "(cached) $ac_c" 1>&6
4025else
4026  ac_save_LIBS="$LIBS"
4027LIBS="-linet  $LIBS"
4028cat > conftest.$ac_ext <<EOF
4029#line 4030 "configure"
4030#include "confdefs.h"
4031/* Override any gcc2 internal prototype to avoid an error.  */
4032/* We use char because int might match the return type of a gcc2
4033    builtin and then its argument prototype would still apply.  */
4034char inet_network();
4035
4036int main() {
4037inet_network()
4038; return 0; }
4039EOF
4040if { (eval echo configure:4041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4041  rm -rf conftest*
4042  eval "ac_cv_lib_$ac_lib_var=yes"
4043else
4044  echo "configure: failed program was:" >&5
4045  cat conftest.$ac_ext >&5
4046  rm -rf conftest*
4047  eval "ac_cv_lib_$ac_lib_var=no"
4048fi
4049rm -f conftest*
4050LIBS="$ac_save_LIBS"
4051
4052fi
4053if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4054  echo "$ac_t""yes" 1>&6
4055    ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4056    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4057  cat >> confdefs.h <<EOF
4058#define $ac_tr_lib 1
4059EOF
4060
4061  LIBS="-linet $LIBS"
4062
4063else
4064  echo "$ac_t""no" 1>&6
4065fi
4066
4067fi
4068if test -z "$no_libsocket"; then
4069  echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
4070echo "configure:4071: checking for socket in -lsocket" >&5
4071ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
4072if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4073  echo $ac_n "(cached) $ac_c" 1>&6
4074else
4075  ac_save_LIBS="$LIBS"
4076LIBS="-lsocket  $LIBS"
4077cat > conftest.$ac_ext <<EOF
4078#line 4079 "configure"
4079#include "confdefs.h"
4080/* Override any gcc2 internal prototype to avoid an error.  */
4081/* We use char because int might match the return type of a gcc2
4082    builtin and then its argument prototype would still apply.  */
4083char socket();
4084
4085int main() {
4086socket()
4087; return 0; }
4088EOF
4089if { (eval echo configure:4090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4090  rm -rf conftest*
4091  eval "ac_cv_lib_$ac_lib_var=yes"
4092else
4093  echo "configure: failed program was:" >&5
4094  cat conftest.$ac_ext >&5
4095  rm -rf conftest*
4096  eval "ac_cv_lib_$ac_lib_var=no"
4097fi
4098rm -f conftest*
4099LIBS="$ac_save_LIBS"
4100
4101fi
4102if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4103  echo "$ac_t""yes" 1>&6
4104    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4105    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4106  cat >> confdefs.h <<EOF
4107#define $ac_tr_lib 1
4108EOF
4109
4110  LIBS="-lsocket $LIBS"
4111
4112else
4113  echo "$ac_t""no" 1>&6
4114fi
4115
4116fi
4117if test -z "$no_libsun"; then
4118  echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6
4119echo "configure:4120: checking for getpwnam in -lsun" >&5
4120ac_lib_var=`echo sun'_'getpwnam | sed 'y%./+-%__p_%'`
4121if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4122  echo $ac_n "(cached) $ac_c" 1>&6
4123else
4124  ac_save_LIBS="$LIBS"
4125LIBS="-lsun  $LIBS"
4126cat > conftest.$ac_ext <<EOF
4127#line 4128 "configure"
4128#include "confdefs.h"
4129/* Override any gcc2 internal prototype to avoid an error.  */
4130/* We use char because int might match the return type of a gcc2
4131    builtin and then its argument prototype would still apply.  */
4132char getpwnam();
4133
4134int main() {
4135getpwnam()
4136; return 0; }
4137EOF
4138if { (eval echo configure:4139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4139  rm -rf conftest*
4140  eval "ac_cv_lib_$ac_lib_var=yes"
4141else
4142  echo "configure: failed program was:" >&5
4143  cat conftest.$ac_ext >&5
4144  rm -rf conftest*
4145  eval "ac_cv_lib_$ac_lib_var=no"
4146fi
4147rm -f conftest*
4148LIBS="$ac_save_LIBS"
4149
4150fi
4151if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4152  echo "$ac_t""yes" 1>&6
4153    ac_tr_lib=HAVE_LIB`echo sun | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4154    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4155  cat >> confdefs.h <<EOF
4156#define $ac_tr_lib 1
4157EOF
4158
4159  LIBS="-lsun $LIBS"
4160
4161else
4162  echo "$ac_t""no" 1>&6
4163fi
4164
4165fi
4166if test -z "$no_libbsd"; then
4167  echo $ac_n "checking for openpty in -lbsd""... $ac_c" 1>&6
4168echo "configure:4169: checking for openpty in -lbsd" >&5
4169ac_lib_var=`echo bsd'_'openpty | sed 'y%./+-%__p_%'`
4170if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4171  echo $ac_n "(cached) $ac_c" 1>&6
4172else
4173  ac_save_LIBS="$LIBS"
4174LIBS="-lbsd  $LIBS"
4175cat > conftest.$ac_ext <<EOF
4176#line 4177 "configure"
4177#include "confdefs.h"
4178/* Override any gcc2 internal prototype to avoid an error.  */
4179/* We use char because int might match the return type of a gcc2
4180    builtin and then its argument prototype would still apply.  */
4181char openpty();
4182
4183int main() {
4184openpty()
4185; return 0; }
4186EOF
4187if { (eval echo configure:4188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4188  rm -rf conftest*
4189  eval "ac_cv_lib_$ac_lib_var=yes"
4190else
4191  echo "configure: failed program was:" >&5
4192  cat conftest.$ac_ext >&5
4193  rm -rf conftest*
4194  eval "ac_cv_lib_$ac_lib_var=no"
4195fi
4196rm -f conftest*
4197LIBS="$ac_save_LIBS"
4198
4199fi
4200if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4201  echo "$ac_t""yes" 1>&6
4202    ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4203    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4204  cat >> confdefs.h <<EOF
4205#define $ac_tr_lib 1
4206EOF
4207
4208  LIBS="-lbsd $LIBS"
4209
4210else
4211  echo "$ac_t""no" 1>&6
4212fi
4213
4214fi
4215echo $ac_n "checking for login in -lutil""... $ac_c" 1>&6
4216echo "configure:4217: checking for login in -lutil" >&5
4217ac_lib_var=`echo util'_'login | sed 'y%./+-%__p_%'`
4218if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4219  echo $ac_n "(cached) $ac_c" 1>&6
4220else
4221  ac_save_LIBS="$LIBS"
4222LIBS="-lutil  $LIBS"
4223cat > conftest.$ac_ext <<EOF
4224#line 4225 "configure"
4225#include "confdefs.h"
4226/* Override any gcc2 internal prototype to avoid an error.  */
4227/* We use char because int might match the return type of a gcc2
4228    builtin and then its argument prototype would still apply.  */
4229char login();
4230
4231int main() {
4232login()
4233; return 0; }
4234EOF
4235if { (eval echo configure:4236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4236  rm -rf conftest*
4237  eval "ac_cv_lib_$ac_lib_var=yes"
4238else
4239  echo "configure: failed program was:" >&5
4240  cat conftest.$ac_ext >&5
4241  rm -rf conftest*
4242  eval "ac_cv_lib_$ac_lib_var=no"
4243fi
4244rm -f conftest*
4245LIBS="$ac_save_LIBS"
4246
4247fi
4248if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4249  echo "$ac_t""yes" 1>&6
4250  cat >> confdefs.h <<\EOF
4251#define HAVE_LIBUTIL_LOGIN 1
4252EOF
4253
4254                          LIBS="$LIBS -lutil"
4255else
4256  echo "$ac_t""no" 1>&6
4257fi
4258
4259
4260if test -z "$no_vhangup"; then
4261  for ac_func in vhangup
4262do
4263echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4264echo "configure:4265: checking for $ac_func" >&5
4265if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4266  echo $ac_n "(cached) $ac_c" 1>&6
4267else
4268  cat > conftest.$ac_ext <<EOF
4269#line 4270 "configure"
4270#include "confdefs.h"
4271/* System header to define __stub macros and hopefully few prototypes,
4272    which can conflict with char $ac_func(); below.  */
4273#include <assert.h>
4274/* Override any gcc2 internal prototype to avoid an error.  */
4275/* We use char because int might match the return type of a gcc2
4276    builtin and then its argument prototype would still apply.  */
4277char $ac_func();
4278
4279int main() {
4280
4281/* The GNU C library defines this for functions which it implements
4282    to always fail with ENOSYS.  Some functions are actually named
4283    something starting with __ and the normal name is an alias.  */
4284#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4285choke me
4286#else
4287$ac_func();
4288#endif
4289
4290; return 0; }
4291EOF
4292if { (eval echo configure:4293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4293  rm -rf conftest*
4294  eval "ac_cv_func_$ac_func=yes"
4295else
4296  echo "configure: failed program was:" >&5
4297  cat conftest.$ac_ext >&5
4298  rm -rf conftest*
4299  eval "ac_cv_func_$ac_func=no"
4300fi
4301rm -f conftest*
4302fi
4303
4304if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4305  echo "$ac_t""yes" 1>&6
4306    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4307  cat >> confdefs.h <<EOF
4308#define $ac_tr_func 1
4309EOF
4310 
4311else
4312  echo "$ac_t""no" 1>&6
4313fi
4314done
4315
4316fi
4317
4318if test -z "$no_setsid"; then
4319  for ac_func in setsid
4320do
4321echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4322echo "configure:4323: checking for $ac_func" >&5
4323if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4324  echo $ac_n "(cached) $ac_c" 1>&6
4325else
4326  cat > conftest.$ac_ext <<EOF
4327#line 4328 "configure"
4328#include "confdefs.h"
4329/* System header to define __stub macros and hopefully few prototypes,
4330    which can conflict with char $ac_func(); below.  */
4331#include <assert.h>
4332/* Override any gcc2 internal prototype to avoid an error.  */
4333/* We use char because int might match the return type of a gcc2
4334    builtin and then its argument prototype would still apply.  */
4335char $ac_func();
4336
4337int main() {
4338
4339/* The GNU C library defines this for functions which it implements
4340    to always fail with ENOSYS.  Some functions are actually named
4341    something starting with __ and the normal name is an alias.  */
4342#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4343choke me
4344#else
4345$ac_func();
4346#endif
4347
4348; return 0; }
4349EOF
4350if { (eval echo configure:4351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4351  rm -rf conftest*
4352  eval "ac_cv_func_$ac_func=yes"
4353else
4354  echo "configure: failed program was:" >&5
4355  cat conftest.$ac_ext >&5
4356  rm -rf conftest*
4357  eval "ac_cv_func_$ac_func=no"
4358fi
4359rm -f conftest*
4360fi
4361
4362if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4363  echo "$ac_t""yes" 1>&6
4364    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4365  cat >> confdefs.h <<EOF
4366#define $ac_tr_func 1
4367EOF
4368 
4369else
4370  echo "$ac_t""no" 1>&6
4371fi
4372done
4373
4374fi
4375
4376for ac_func in gettimeofday times getrusage ftruncate revoke makeutx
4377do
4378echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4379echo "configure:4380: checking for $ac_func" >&5
4380if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4381  echo $ac_n "(cached) $ac_c" 1>&6
4382else
4383  cat > conftest.$ac_ext <<EOF
4384#line 4385 "configure"
4385#include "confdefs.h"
4386/* System header to define __stub macros and hopefully few prototypes,
4387    which can conflict with char $ac_func(); below.  */
4388#include <assert.h>
4389/* Override any gcc2 internal prototype to avoid an error.  */
4390/* We use char because int might match the return type of a gcc2
4391    builtin and then its argument prototype would still apply.  */
4392char $ac_func();
4393
4394int main() {
4395
4396/* The GNU C library defines this for functions which it implements
4397    to always fail with ENOSYS.  Some functions are actually named
4398    something starting with __ and the normal name is an alias.  */
4399#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4400choke me
4401#else
4402$ac_func();
4403#endif
4404
4405; return 0; }
4406EOF
4407if { (eval echo configure:4408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4408  rm -rf conftest*
4409  eval "ac_cv_func_$ac_func=yes"
4410else
4411  echo "configure: failed program was:" >&5
4412  cat conftest.$ac_ext >&5
4413  rm -rf conftest*
4414  eval "ac_cv_func_$ac_func=no"
4415fi
4416rm -f conftest*
4417fi
4418
4419if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4420  echo "$ac_t""yes" 1>&6
4421    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4422  cat >> confdefs.h <<EOF
4423#define $ac_tr_func 1
4424EOF
4425 
4426else
4427  echo "$ac_t""no" 1>&6
4428fi
4429done
4430
4431for ac_func in strchr memcpy setlogin openpty _getpty clock fchmod ulimit
4432do
4433echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4434echo "configure:4435: checking for $ac_func" >&5
4435if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4436  echo $ac_n "(cached) $ac_c" 1>&6
4437else
4438  cat > conftest.$ac_ext <<EOF
4439#line 4440 "configure"
4440#include "confdefs.h"
4441/* System header to define __stub macros and hopefully few prototypes,
4442    which can conflict with char $ac_func(); below.  */
4443#include <assert.h>
4444/* Override any gcc2 internal prototype to avoid an error.  */
4445/* We use char because int might match the return type of a gcc2
4446    builtin and then its argument prototype would still apply.  */
4447char $ac_func();
4448
4449int main() {
4450
4451/* The GNU C library defines this for functions which it implements
4452    to always fail with ENOSYS.  Some functions are actually named
4453    something starting with __ and the normal name is an alias.  */
4454#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4455choke me
4456#else
4457$ac_func();
4458#endif
4459
4460; return 0; }
4461EOF
4462if { (eval echo configure:4463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4463  rm -rf conftest*
4464  eval "ac_cv_func_$ac_func=yes"
4465else
4466  echo "configure: failed program was:" >&5
4467  cat conftest.$ac_ext >&5
4468  rm -rf conftest*
4469  eval "ac_cv_func_$ac_func=no"
4470fi
4471rm -f conftest*
4472fi
4473
4474if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4475  echo "$ac_t""yes" 1>&6
4476    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4477  cat >> confdefs.h <<EOF
4478#define $ac_tr_func 1
4479EOF
4480 
4481else
4482  echo "$ac_t""no" 1>&6
4483fi
4484done
4485
4486for ac_func in gethostname getdtablesize umask innetgr initgroups setpgrp
4487do
4488echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4489echo "configure:4490: checking for $ac_func" >&5
4490if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4491  echo $ac_n "(cached) $ac_c" 1>&6
4492else
4493  cat > conftest.$ac_ext <<EOF
4494#line 4495 "configure"
4495#include "confdefs.h"
4496/* System header to define __stub macros and hopefully few prototypes,
4497    which can conflict with char $ac_func(); below.  */
4498#include <assert.h>
4499/* Override any gcc2 internal prototype to avoid an error.  */
4500/* We use char because int might match the return type of a gcc2
4501    builtin and then its argument prototype would still apply.  */
4502char $ac_func();
4503
4504int main() {
4505
4506/* The GNU C library defines this for functions which it implements
4507    to always fail with ENOSYS.  Some functions are actually named
4508    something starting with __ and the normal name is an alias.  */
4509#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4510choke me
4511#else
4512$ac_func();
4513#endif
4514
4515; return 0; }
4516EOF
4517if { (eval echo configure:4518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4518  rm -rf conftest*
4519  eval "ac_cv_func_$ac_func=yes"
4520else
4521  echo "configure: failed program was:" >&5
4522  cat conftest.$ac_ext >&5
4523  rm -rf conftest*
4524  eval "ac_cv_func_$ac_func=no"
4525fi
4526rm -f conftest*
4527fi
4528
4529if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4530  echo "$ac_t""yes" 1>&6
4531    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4532  cat >> confdefs.h <<EOF
4533#define $ac_tr_func 1
4534EOF
4535 
4536else
4537  echo "$ac_t""no" 1>&6
4538fi
4539done
4540
4541for ac_func in setpgid daemon waitpid ttyslot authenticate
4542do
4543echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4544echo "configure:4545: checking for $ac_func" >&5
4545if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4546  echo $ac_n "(cached) $ac_c" 1>&6
4547else
4548  cat > conftest.$ac_ext <<EOF
4549#line 4550 "configure"
4550#include "confdefs.h"
4551/* System header to define __stub macros and hopefully few prototypes,
4552    which can conflict with char $ac_func(); below.  */
4553#include <assert.h>
4554/* Override any gcc2 internal prototype to avoid an error.  */
4555/* We use char because int might match the return type of a gcc2
4556    builtin and then its argument prototype would still apply.  */
4557char $ac_func();
4558
4559int main() {
4560
4561/* The GNU C library defines this for functions which it implements
4562    to always fail with ENOSYS.  Some functions are actually named
4563    something starting with __ and the normal name is an alias.  */
4564#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4565choke me
4566#else
4567$ac_func();
4568#endif
4569
4570; return 0; }
4571EOF
4572if { (eval echo configure:4573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4573  rm -rf conftest*
4574  eval "ac_cv_func_$ac_func=yes"
4575else
4576  echo "configure: failed program was:" >&5
4577  cat conftest.$ac_ext >&5
4578  rm -rf conftest*
4579  eval "ac_cv_func_$ac_func=no"
4580fi
4581rm -f conftest*
4582fi
4583
4584if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4585  echo "$ac_t""yes" 1>&6
4586    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4587  cat >> confdefs.h <<EOF
4588#define $ac_tr_func 1
4589EOF
4590 
4591else
4592  echo "$ac_t""no" 1>&6
4593fi
4594done
4595
4596
4597for ac_func in strerror memmove remove random putenv crypt socketpair
4598do
4599echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4600echo "configure:4601: checking for $ac_func" >&5
4601if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4602  echo $ac_n "(cached) $ac_c" 1>&6
4603else
4604  cat > conftest.$ac_ext <<EOF
4605#line 4606 "configure"
4606#include "confdefs.h"
4607/* System header to define __stub macros and hopefully few prototypes,
4608    which can conflict with char $ac_func(); below.  */
4609#include <assert.h>
4610/* Override any gcc2 internal prototype to avoid an error.  */
4611/* We use char because int might match the return type of a gcc2
4612    builtin and then its argument prototype would still apply.  */
4613char $ac_func();
4614
4615int main() {
4616
4617/* The GNU C library defines this for functions which it implements
4618    to always fail with ENOSYS.  Some functions are actually named
4619    something starting with __ and the normal name is an alias.  */
4620#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4621choke me
4622#else
4623$ac_func();
4624#endif
4625
4626; return 0; }
4627EOF
4628if { (eval echo configure:4629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4629  rm -rf conftest*
4630  eval "ac_cv_func_$ac_func=yes"
4631else
4632  echo "configure: failed program was:" >&5
4633  cat conftest.$ac_ext >&5
4634  rm -rf conftest*
4635  eval "ac_cv_func_$ac_func=no"
4636fi
4637rm -f conftest*
4638fi
4639
4640if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4641  echo "$ac_t""yes" 1>&6
4642    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4643  cat >> confdefs.h <<EOF
4644#define $ac_tr_func 1
4645EOF
4646 
4647else
4648  echo "$ac_t""no" 1>&6
4649LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
4650fi
4651done
4652
4653
4654
4655echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
4656echo "configure:4657: checking whether ln -s works" >&5
4657if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
4658  echo $ac_n "(cached) $ac_c" 1>&6
4659else
4660  rm -f conftestdata
4661if ln -s X conftestdata 2>/dev/null
4662then
4663  rm -f conftestdata
4664  ac_cv_prog_LN_S="ln -s"
4665else
4666  ac_cv_prog_LN_S=ln
4667fi
4668fi
4669LN_S="$ac_cv_prog_LN_S"
4670if test "$ac_cv_prog_LN_S" = "ln -s"; then
4671  echo "$ac_t""yes" 1>&6
4672else
4673  echo "$ac_t""no" 1>&6
4674fi
4675
4676# Find a good install program.  We prefer a C program (faster),
4677# so one script is as good as another.  But avoid the broken or
4678# incompatible versions:
4679# SysV /etc/install, /usr/sbin/install
4680# SunOS /usr/etc/install
4681# IRIX /sbin/install
4682# AIX /bin/install
4683# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4684# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4685# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4686# ./install, which can be erroneously created by make from ./install.sh.
4687echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4688echo "configure:4689: checking for a BSD compatible install" >&5
4689if test -z "$INSTALL"; then
4690if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4691  echo $ac_n "(cached) $ac_c" 1>&6
4692else
4693    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
4694  for ac_dir in $PATH; do
4695    # Account for people who put trailing slashes in PATH elements.
4696    case "$ac_dir/" in
4697    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4698    *)
4699      # OSF1 and SCO ODT 3.0 have their own names for install.
4700      # Don't use installbsd from OSF since it installs stuff as root
4701      # by default.
4702      for ac_prog in ginstall scoinst install; do
4703        if test -f $ac_dir/$ac_prog; then
4704          if test $ac_prog = install &&
4705            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4706            # AIX install.  It has an incompatible calling convention.
4707            :
4708          else
4709            ac_cv_path_install="$ac_dir/$ac_prog -c"
4710            break 2
4711          fi
4712        fi
4713      done
4714      ;;
4715    esac
4716  done
4717  IFS="$ac_save_IFS"
4718
4719fi
4720  if test "${ac_cv_path_install+set}" = set; then
4721    INSTALL="$ac_cv_path_install"
4722  else
4723    # As a last resort, use the slow shell script.  We don't cache a
4724    # path for INSTALL within a source directory, because that will
4725    # break other packages using the cache if that directory is
4726    # removed, or if the path is relative.
4727    INSTALL="$ac_install_sh"
4728  fi
4729fi
4730echo "$ac_t""$INSTALL" 1>&6
4731
4732# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4733# It thinks the first close brace ends the variable substitution.
4734test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4735
4736test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4737
4738test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4739
4740# Extract the first word of "ar", so it can be a program name with args.
4741set dummy ar; ac_word=$2
4742echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4743echo "configure:4744: checking for $ac_word" >&5
4744if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
4745  echo $ac_n "(cached) $ac_c" 1>&6
4746else
4747  if test -n "$AR"; then
4748  ac_cv_prog_AR="$AR" # Let the user override the test.
4749else
4750  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4751  ac_dummy="$PATH"
4752  for ac_dir in $ac_dummy; do
4753    test -z "$ac_dir" && ac_dir=.
4754    if test -f $ac_dir/$ac_word; then
4755      ac_cv_prog_AR="ar"
4756      break
4757    fi
4758  done
4759  IFS="$ac_save_ifs"
4760  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="echo"
4761fi
4762fi
4763AR="$ac_cv_prog_AR"
4764if test -n "$AR"; then
4765  echo "$ac_t""$AR" 1>&6
4766else
4767  echo "$ac_t""no" 1>&6
4768fi
4769
4770if test -z "$no_ranlib"; then
4771  # Extract the first word of "ranlib", so it can be a program name with args.
4772set dummy ranlib; ac_word=$2
4773echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4774echo "configure:4775: checking for $ac_word" >&5
4775if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4776  echo $ac_n "(cached) $ac_c" 1>&6
4777else
4778  if test -n "$RANLIB"; then
4779  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4780else
4781  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4782  ac_dummy="$PATH"
4783  for ac_dir in $ac_dummy; do
4784    test -z "$ac_dir" && ac_dir=.
4785    if test -f $ac_dir/$ac_word; then
4786      ac_cv_prog_RANLIB="ranlib"
4787      break
4788    fi
4789  done
4790  IFS="$ac_save_ifs"
4791  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4792fi
4793fi
4794RANLIB="$ac_cv_prog_RANLIB"
4795if test -n "$RANLIB"; then
4796  echo "$ac_t""$RANLIB" 1>&6
4797else
4798  echo "$ac_t""no" 1>&6
4799fi
4800
4801else
4802  RANLIB=":"
4803fi
4804for ac_prog in makedepend makedep
4805do
4806# Extract the first word of "$ac_prog", so it can be a program name with args.
4807set dummy $ac_prog; ac_word=$2
4808echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4809echo "configure:4810: checking for $ac_word" >&5
4810if eval "test \"`echo '$''{'ac_cv_prog_MAKEDEP'+set}'`\" = set"; then
4811  echo $ac_n "(cached) $ac_c" 1>&6
4812else
4813  if test -n "$MAKEDEP"; then
4814  ac_cv_prog_MAKEDEP="$MAKEDEP" # Let the user override the test.
4815else
4816  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4817  ac_dummy="$PATH"
4818  for ac_dir in $ac_dummy; do
4819    test -z "$ac_dir" && ac_dir=.
4820    if test -f $ac_dir/$ac_word; then
4821      ac_cv_prog_MAKEDEP="$ac_prog"
4822      break
4823    fi
4824  done
4825  IFS="$ac_save_ifs"
4826fi
4827fi
4828MAKEDEP="$ac_cv_prog_MAKEDEP"
4829if test -n "$MAKEDEP"; then
4830  echo "$ac_t""$MAKEDEP" 1>&6
4831else
4832  echo "$ac_t""no" 1>&6
4833fi
4834
4835test -n "$MAKEDEP" && break
4836done
4837test -n "$MAKEDEP" || MAKEDEP="makedepend"
4838
4839
4840# If we find X, set shell vars x_includes and x_libraries to the
4841# paths, otherwise set no_x=yes.
4842# Uses ac_ vars as temps to allow command line to override cache and checks.
4843# --without-x overrides everything else, but does not touch the cache.
4844echo $ac_n "checking for X""... $ac_c" 1>&6
4845echo "configure:4846: checking for X" >&5
4846
4847# Check whether --with-x or --without-x was given.
4848if test "${with_x+set}" = set; then
4849  withval="$with_x"
4850  :
4851fi
4852
4853# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4854if test "x$with_x" = xno; then
4855  # The user explicitly disabled X.
4856  have_x=disabled
4857else
4858  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4859    # Both variables are already set.
4860    have_x=yes
4861  else
4862if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
4863  echo $ac_n "(cached) $ac_c" 1>&6
4864else
4865  # One or both of the vars are not set, and there is no cached value.
4866ac_x_includes=NO ac_x_libraries=NO
4867rm -fr conftestdir
4868if mkdir conftestdir; then
4869  cd conftestdir
4870  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4871  cat > Imakefile <<'EOF'
4872acfindx:
4873        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4874EOF
4875  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4876    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4877    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4878    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4879    for ac_extension in a so sl; do
4880      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4881        test -f $ac_im_libdir/libX11.$ac_extension; then
4882        ac_im_usrlibdir=$ac_im_libdir; break
4883      fi
4884    done
4885    # Screen out bogus values from the imake configuration.  They are
4886    # bogus both because they are the default anyway, and because
4887    # using them would break gcc on systems where it needs fixed includes.
4888    case "$ac_im_incroot" in
4889        /usr/include) ;;
4890        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4891    esac
4892    case "$ac_im_usrlibdir" in
4893        /usr/lib | /lib) ;;
4894        *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4895    esac
4896  fi
4897  cd ..
4898  rm -fr conftestdir
4899fi
4900
4901if test "$ac_x_includes" = NO; then
4902  # Guess where to find include files, by looking for this one X11 .h file.
4903  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4904
4905  # First, try using that file with no special directory specified.
4906cat > conftest.$ac_ext <<EOF
4907#line 4908 "configure"
4908#include "confdefs.h"
4909#include <$x_direct_test_include>
4910EOF
4911ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4912{ (eval echo configure:4913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4913ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4914if test -z "$ac_err"; then
4915  rm -rf conftest*
4916  # We can compile using X headers with no special include directory.
4917ac_x_includes=
4918else
4919  echo "$ac_err" >&5
4920  echo "configure: failed program was:" >&5
4921  cat conftest.$ac_ext >&5
4922  rm -rf conftest*
4923  # Look for the header file in a standard set of common directories.
4924# Check X11 before X11Rn because it is often a symlink to the current release.
4925  for ac_dir in               \
4926    /usr/X11/include          \
4927    /usr/X11R6/include        \
4928    /usr/X11R5/include        \
4929    /usr/X11R4/include        \
4930                              \
4931    /usr/include/X11          \
4932    /usr/include/X11R6        \
4933    /usr/include/X11R5        \
4934    /usr/include/X11R4        \
4935                              \
4936    /usr/local/X11/include    \
4937    /usr/local/X11R6/include  \
4938    /usr/local/X11R5/include  \
4939    /usr/local/X11R4/include  \
4940                              \
4941    /usr/local/include/X11    \
4942    /usr/local/include/X11R6  \
4943    /usr/local/include/X11R5  \
4944    /usr/local/include/X11R4  \
4945                              \
4946    /usr/X386/include         \
4947    /usr/x386/include         \
4948    /usr/XFree86/include/X11  \
4949                              \
4950    /usr/include              \
4951    /usr/local/include        \
4952    /usr/unsupported/include  \
4953    /usr/athena/include       \
4954    /usr/local/x11r5/include  \
4955    /usr/lpp/Xamples/include  \
4956                              \
4957    /usr/openwin/include      \
4958    /usr/openwin/share/include \
4959    ; \
4960  do
4961    if test -r "$ac_dir/$x_direct_test_include"; then
4962      ac_x_includes=$ac_dir
4963      break
4964    fi
4965  done
4966fi
4967rm -f conftest*
4968fi # $ac_x_includes = NO
4969
4970if test "$ac_x_libraries" = NO; then
4971  # Check for the libraries.
4972
4973  test -z "$x_direct_test_library" && x_direct_test_library=Xt
4974  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4975
4976  # See if we find them without any special options.
4977  # Don't add to $LIBS permanently.
4978  ac_save_LIBS="$LIBS"
4979  LIBS="-l$x_direct_test_library $LIBS"
4980cat > conftest.$ac_ext <<EOF
4981#line 4982 "configure"
4982#include "confdefs.h"
4983
4984int main() {
4985${x_direct_test_function}()
4986; return 0; }
4987EOF
4988if { (eval echo configure:4989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4989  rm -rf conftest*
4990  LIBS="$ac_save_LIBS"
4991# We can link X programs with no special library path.
4992ac_x_libraries=
4993else
4994  echo "configure: failed program was:" >&5
4995  cat conftest.$ac_ext >&5
4996  rm -rf conftest*
4997  LIBS="$ac_save_LIBS"
4998# First see if replacing the include by lib works.
4999# Check X11 before X11Rn because it is often a symlink to the current release.
5000for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5001    /usr/X11/lib          \
5002    /usr/X11R6/lib        \
5003    /usr/X11R5/lib        \
5004    /usr/X11R4/lib        \
5005                          \
5006    /usr/lib/X11          \
5007    /usr/lib/X11R6        \
5008    /usr/lib/X11R5        \
5009    /usr/lib/X11R4        \
5010                          \
5011    /usr/local/X11/lib    \
5012    /usr/local/X11R6/lib  \
5013    /usr/local/X11R5/lib  \
5014    /usr/local/X11R4/lib  \
5015                          \
5016    /usr/local/lib/X11    \
5017    /usr/local/lib/X11R6  \
5018    /usr/local/lib/X11R5  \
5019    /usr/local/lib/X11R4  \
5020                          \
5021    /usr/X386/lib         \
5022    /usr/x386/lib         \
5023    /usr/XFree86/lib/X11  \
5024                          \
5025    /usr/lib              \
5026    /usr/local/lib        \
5027    /usr/unsupported/lib  \
5028    /usr/athena/lib       \
5029    /usr/local/x11r5/lib  \
5030    /usr/lpp/Xamples/lib  \
5031    /lib/usr/lib/X11      \
5032                          \
5033    /usr/openwin/lib      \
5034    /usr/openwin/share/lib \
5035    ; \
5036do
5037  for ac_extension in a so sl; do
5038    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5039      ac_x_libraries=$ac_dir
5040      break 2
5041    fi
5042  done
5043done
5044fi
5045rm -f conftest*
5046fi # $ac_x_libraries = NO
5047
5048if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5049  # Didn't find X anywhere.  Cache the known absence of X.
5050  ac_cv_have_x="have_x=no"
5051else
5052  # Record where we found X for the cache.
5053  ac_cv_have_x="have_x=yes \
5054                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5055fi
5056fi
5057  fi
5058  eval "$ac_cv_have_x"
5059fi # $with_x != no
5060
5061if test "$have_x" != yes; then
5062  echo "$ac_t""$have_x" 1>&6
5063  no_x=yes
5064else
5065  # If each of the values was on the command line, it overrides each guess.
5066  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5067  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5068  # Update the cache value to reflect the command line values.
5069  ac_cv_have_x="have_x=yes \
5070                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5071  echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5072fi
5073
5074if test "$no_x" = yes; then
5075  # Not all programs may use this symbol, but it does not hurt to define it.
5076  cat >> confdefs.h <<\EOF
5077#define X_DISPLAY_MISSING 1
5078EOF
5079
5080  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5081else
5082  if test -n "$x_includes"; then
5083    X_CFLAGS="$X_CFLAGS -I$x_includes"
5084  fi
5085
5086  # It would also be nice to do this for all -L options, not just this one.
5087  if test -n "$x_libraries"; then
5088    X_LIBS="$X_LIBS -L$x_libraries"
5089    # For Solaris; some versions of Sun CC require a space after -R and
5090    # others require no space.  Words are not sufficient . . . .
5091    case "`(uname -sr) 2>/dev/null`" in
5092    "SunOS 5"*)
5093      echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5094echo "configure:5095: checking whether -R must be followed by a space" >&5
5095      ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5096      cat > conftest.$ac_ext <<EOF
5097#line 5098 "configure"
5098#include "confdefs.h"
5099
5100int main() {
5101
5102; return 0; }
5103EOF
5104if { (eval echo configure:5105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5105  rm -rf conftest*
5106  ac_R_nospace=yes
5107else
5108  echo "configure: failed program was:" >&5
5109  cat conftest.$ac_ext >&5
5110  rm -rf conftest*
5111  ac_R_nospace=no
5112fi
5113rm -f conftest*
5114      if test $ac_R_nospace = yes; then
5115        echo "$ac_t""no" 1>&6
5116        X_LIBS="$X_LIBS -R$x_libraries"
5117      else
5118        LIBS="$ac_xsave_LIBS -R $x_libraries"
5119        cat > conftest.$ac_ext <<EOF
5120#line 5121 "configure"
5121#include "confdefs.h"
5122
5123int main() {
5124
5125; return 0; }
5126EOF
5127if { (eval echo configure:5128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5128  rm -rf conftest*
5129  ac_R_space=yes
5130else
5131  echo "configure: failed program was:" >&5
5132  cat conftest.$ac_ext >&5
5133  rm -rf conftest*
5134  ac_R_space=no
5135fi
5136rm -f conftest*
5137        if test $ac_R_space = yes; then
5138          echo "$ac_t""yes" 1>&6
5139          X_LIBS="$X_LIBS -R $x_libraries"
5140        else
5141          echo "$ac_t""neither works" 1>&6
5142        fi
5143      fi
5144      LIBS="$ac_xsave_LIBS"
5145    esac
5146  fi
5147
5148  # Check for system-dependent libraries X programs must link with.
5149  # Do this before checking for the system-independent R6 libraries
5150  # (-lICE), since we may need -lsocket or whatever for X linking.
5151
5152  if test "$ISC" = yes; then
5153    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5154  else
5155    # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
5156    # libraries were built with DECnet support.  And karl@cs.umb.edu says
5157    # the Alpha needs dnet_stub (dnet does not exist).
5158    echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5159echo "configure:5160: checking for dnet_ntoa in -ldnet" >&5
5160ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5161if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5162  echo $ac_n "(cached) $ac_c" 1>&6
5163else
5164  ac_save_LIBS="$LIBS"
5165LIBS="-ldnet  $LIBS"
5166cat > conftest.$ac_ext <<EOF
5167#line 5168 "configure"
5168#include "confdefs.h"
5169/* Override any gcc2 internal prototype to avoid an error.  */
5170/* We use char because int might match the return type of a gcc2
5171    builtin and then its argument prototype would still apply.  */
5172char dnet_ntoa();
5173
5174int main() {
5175dnet_ntoa()
5176; return 0; }
5177EOF
5178if { (eval echo configure:5179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5179  rm -rf conftest*
5180  eval "ac_cv_lib_$ac_lib_var=yes"
5181else
5182  echo "configure: failed program was:" >&5
5183  cat conftest.$ac_ext >&5
5184  rm -rf conftest*
5185  eval "ac_cv_lib_$ac_lib_var=no"
5186fi
5187rm -f conftest*
5188LIBS="$ac_save_LIBS"
5189
5190fi
5191if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5192  echo "$ac_t""yes" 1>&6
5193  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5194else
5195  echo "$ac_t""no" 1>&6
5196fi
5197
5198    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5199      echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5200echo "configure:5201: checking for dnet_ntoa in -ldnet_stub" >&5
5201ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5202if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5203  echo $ac_n "(cached) $ac_c" 1>&6
5204else
5205  ac_save_LIBS="$LIBS"
5206LIBS="-ldnet_stub  $LIBS"
5207cat > conftest.$ac_ext <<EOF
5208#line 5209 "configure"
5209#include "confdefs.h"
5210/* Override any gcc2 internal prototype to avoid an error.  */
5211/* We use char because int might match the return type of a gcc2
5212    builtin and then its argument prototype would still apply.  */
5213char dnet_ntoa();
5214
5215int main() {
5216dnet_ntoa()
5217; return 0; }
5218EOF
5219if { (eval echo configure:5220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5220  rm -rf conftest*
5221  eval "ac_cv_lib_$ac_lib_var=yes"
5222else
5223  echo "configure: failed program was:" >&5
5224  cat conftest.$ac_ext >&5
5225  rm -rf conftest*
5226  eval "ac_cv_lib_$ac_lib_var=no"
5227fi
5228rm -f conftest*
5229LIBS="$ac_save_LIBS"
5230
5231fi
5232if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5233  echo "$ac_t""yes" 1>&6
5234  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5235else
5236  echo "$ac_t""no" 1>&6
5237fi
5238
5239    fi
5240
5241    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5242    # to get the SysV transport functions.
5243    # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5244    # needs -lnsl.
5245    # The nsl library prevents programs from opening the X display
5246    # on Irix 5.2, according to dickey@clark.net.
5247    echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5248echo "configure:5249: checking for gethostbyname" >&5
5249if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
5250  echo $ac_n "(cached) $ac_c" 1>&6
5251else
5252  cat > conftest.$ac_ext <<EOF
5253#line 5254 "configure"
5254#include "confdefs.h"
5255/* System header to define __stub macros and hopefully few prototypes,
5256    which can conflict with char gethostbyname(); below.  */
5257#include <assert.h>
5258/* Override any gcc2 internal prototype to avoid an error.  */
5259/* We use char because int might match the return type of a gcc2
5260    builtin and then its argument prototype would still apply.  */
5261char gethostbyname();
5262
5263int main() {
5264
5265/* The GNU C library defines this for functions which it implements
5266    to always fail with ENOSYS.  Some functions are actually named
5267    something starting with __ and the normal name is an alias.  */
5268#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5269choke me
5270#else
5271gethostbyname();
5272#endif
5273
5274; return 0; }
5275EOF
5276if { (eval echo configure:5277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5277  rm -rf conftest*
5278  eval "ac_cv_func_gethostbyname=yes"
5279else
5280  echo "configure: failed program was:" >&5
5281  cat conftest.$ac_ext >&5
5282  rm -rf conftest*
5283  eval "ac_cv_func_gethostbyname=no"
5284fi
5285rm -f conftest*
5286fi
5287
5288if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5289  echo "$ac_t""yes" 1>&6
5290  :
5291else
5292  echo "$ac_t""no" 1>&6
5293fi
5294
5295    if test $ac_cv_func_gethostbyname = no; then
5296      echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5297echo "configure:5298: checking for gethostbyname in -lnsl" >&5
5298ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5299if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5300  echo $ac_n "(cached) $ac_c" 1>&6
5301else
5302  ac_save_LIBS="$LIBS"
5303LIBS="-lnsl  $LIBS"
5304cat > conftest.$ac_ext <<EOF
5305#line 5306 "configure"
5306#include "confdefs.h"
5307/* Override any gcc2 internal prototype to avoid an error.  */
5308/* We use char because int might match the return type of a gcc2
5309    builtin and then its argument prototype would still apply.  */
5310char gethostbyname();
5311
5312int main() {
5313gethostbyname()
5314; return 0; }
5315EOF
5316if { (eval echo configure:5317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5317  rm -rf conftest*
5318  eval "ac_cv_lib_$ac_lib_var=yes"
5319else
5320  echo "configure: failed program was:" >&5
5321  cat conftest.$ac_ext >&5
5322  rm -rf conftest*
5323  eval "ac_cv_lib_$ac_lib_var=no"
5324fi
5325rm -f conftest*
5326LIBS="$ac_save_LIBS"
5327
5328fi
5329if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5330  echo "$ac_t""yes" 1>&6
5331  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5332else
5333  echo "$ac_t""no" 1>&6
5334fi
5335
5336    fi
5337
5338    # lieder@skyler.mavd.honeywell.com says without -lsocket,
5339    # socket/setsockopt and other routines are undefined under SCO ODT
5340    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
5341    # on later versions), says simon@lia.di.epfl.ch: it contains
5342    # gethostby* variants that don't use the nameserver (or something).
5343    # -lsocket must be given before -lnsl if both are needed.
5344    # We assume that if connect needs -lnsl, so does gethostbyname.
5345    echo $ac_n "checking for connect""... $ac_c" 1>&6
5346echo "configure:5347: checking for connect" >&5
5347if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
5348  echo $ac_n "(cached) $ac_c" 1>&6
5349else
5350  cat > conftest.$ac_ext <<EOF
5351#line 5352 "configure"
5352#include "confdefs.h"
5353/* System header to define __stub macros and hopefully few prototypes,
5354    which can conflict with char connect(); below.  */
5355#include <assert.h>
5356/* Override any gcc2 internal prototype to avoid an error.  */
5357/* We use char because int might match the return type of a gcc2
5358    builtin and then its argument prototype would still apply.  */
5359char connect();
5360
5361int main() {
5362
5363/* The GNU C library defines this for functions which it implements
5364    to always fail with ENOSYS.  Some functions are actually named
5365    something starting with __ and the normal name is an alias.  */
5366#if defined (__stub_connect) || defined (__stub___connect)
5367choke me
5368#else
5369connect();
5370#endif
5371
5372; return 0; }
5373EOF
5374if { (eval echo configure:5375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5375  rm -rf conftest*
5376  eval "ac_cv_func_connect=yes"
5377else
5378  echo "configure: failed program was:" >&5
5379  cat conftest.$ac_ext >&5
5380  rm -rf conftest*
5381  eval "ac_cv_func_connect=no"
5382fi
5383rm -f conftest*
5384fi
5385
5386if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5387  echo "$ac_t""yes" 1>&6
5388  :
5389else
5390  echo "$ac_t""no" 1>&6
5391fi
5392
5393    if test $ac_cv_func_connect = no; then
5394      echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5395echo "configure:5396: checking for connect in -lsocket" >&5
5396ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5397if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5398  echo $ac_n "(cached) $ac_c" 1>&6
5399else
5400  ac_save_LIBS="$LIBS"
5401LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5402cat > conftest.$ac_ext <<EOF
5403#line 5404 "configure"
5404#include "confdefs.h"
5405/* Override any gcc2 internal prototype to avoid an error.  */
5406/* We use char because int might match the return type of a gcc2
5407    builtin and then its argument prototype would still apply.  */
5408char connect();
5409
5410int main() {
5411connect()
5412; return 0; }
5413EOF
5414if { (eval echo configure:5415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5415  rm -rf conftest*
5416  eval "ac_cv_lib_$ac_lib_var=yes"
5417else
5418  echo "configure: failed program was:" >&5
5419  cat conftest.$ac_ext >&5
5420  rm -rf conftest*
5421  eval "ac_cv_lib_$ac_lib_var=no"
5422fi
5423rm -f conftest*
5424LIBS="$ac_save_LIBS"
5425
5426fi
5427if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5428  echo "$ac_t""yes" 1>&6
5429  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5430else
5431  echo "$ac_t""no" 1>&6
5432fi
5433
5434    fi
5435
5436    # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5437    echo $ac_n "checking for remove""... $ac_c" 1>&6
5438echo "configure:5439: checking for remove" >&5
5439if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
5440  echo $ac_n "(cached) $ac_c" 1>&6
5441else
5442  cat > conftest.$ac_ext <<EOF
5443#line 5444 "configure"
5444#include "confdefs.h"
5445/* System header to define __stub macros and hopefully few prototypes,
5446    which can conflict with char remove(); below.  */
5447#include <assert.h>
5448/* Override any gcc2 internal prototype to avoid an error.  */
5449/* We use char because int might match the return type of a gcc2
5450    builtin and then its argument prototype would still apply.  */
5451char remove();
5452
5453int main() {
5454
5455/* The GNU C library defines this for functions which it implements
5456    to always fail with ENOSYS.  Some functions are actually named
5457    something starting with __ and the normal name is an alias.  */
5458#if defined (__stub_remove) || defined (__stub___remove)
5459choke me
5460#else
5461remove();
5462#endif
5463
5464; return 0; }
5465EOF
5466if { (eval echo configure:5467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5467  rm -rf conftest*
5468  eval "ac_cv_func_remove=yes"
5469else
5470  echo "configure: failed program was:" >&5
5471  cat conftest.$ac_ext >&5
5472  rm -rf conftest*
5473  eval "ac_cv_func_remove=no"
5474fi
5475rm -f conftest*
5476fi
5477
5478if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5479  echo "$ac_t""yes" 1>&6
5480  :
5481else
5482  echo "$ac_t""no" 1>&6
5483fi
5484
5485    if test $ac_cv_func_remove = no; then
5486      echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5487echo "configure:5488: checking for remove in -lposix" >&5
5488ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5489if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5490  echo $ac_n "(cached) $ac_c" 1>&6
5491else
5492  ac_save_LIBS="$LIBS"
5493LIBS="-lposix  $LIBS"
5494cat > conftest.$ac_ext <<EOF
5495#line 5496 "configure"
5496#include "confdefs.h"
5497/* Override any gcc2 internal prototype to avoid an error.  */
5498/* We use char because int might match the return type of a gcc2
5499    builtin and then its argument prototype would still apply.  */
5500char remove();
5501
5502int main() {
5503remove()
5504; return 0; }
5505EOF
5506if { (eval echo configure:5507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5507  rm -rf conftest*
5508  eval "ac_cv_lib_$ac_lib_var=yes"
5509else
5510  echo "configure: failed program was:" >&5
5511  cat conftest.$ac_ext >&5
5512  rm -rf conftest*
5513  eval "ac_cv_lib_$ac_lib_var=no"
5514fi
5515rm -f conftest*
5516LIBS="$ac_save_LIBS"
5517
5518fi
5519if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5520  echo "$ac_t""yes" 1>&6
5521  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5522else
5523  echo "$ac_t""no" 1>&6
5524fi
5525
5526    fi
5527
5528    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5529    echo $ac_n "checking for shmat""... $ac_c" 1>&6
5530echo "configure:5531: checking for shmat" >&5
5531if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
5532  echo $ac_n "(cached) $ac_c" 1>&6
5533else
5534  cat > conftest.$ac_ext <<EOF
5535#line 5536 "configure"
5536#include "confdefs.h"
5537/* System header to define __stub macros and hopefully few prototypes,
5538    which can conflict with char shmat(); below.  */
5539#include <assert.h>
5540/* Override any gcc2 internal prototype to avoid an error.  */
5541/* We use char because int might match the return type of a gcc2
5542    builtin and then its argument prototype would still apply.  */
5543char shmat();
5544
5545int main() {
5546
5547/* The GNU C library defines this for functions which it implements
5548    to always fail with ENOSYS.  Some functions are actually named
5549    something starting with __ and the normal name is an alias.  */
5550#if defined (__stub_shmat) || defined (__stub___shmat)
5551choke me
5552#else
5553shmat();
5554#endif
5555
5556; return 0; }
5557EOF
5558if { (eval echo configure:5559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5559  rm -rf conftest*
5560  eval "ac_cv_func_shmat=yes"
5561else
5562  echo "configure: failed program was:" >&5
5563  cat conftest.$ac_ext >&5
5564  rm -rf conftest*
5565  eval "ac_cv_func_shmat=no"
5566fi
5567rm -f conftest*
5568fi
5569
5570if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5571  echo "$ac_t""yes" 1>&6
5572  :
5573else
5574  echo "$ac_t""no" 1>&6
5575fi
5576
5577    if test $ac_cv_func_shmat = no; then
5578      echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5579echo "configure:5580: checking for shmat in -lipc" >&5
5580ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5581if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5582  echo $ac_n "(cached) $ac_c" 1>&6
5583else
5584  ac_save_LIBS="$LIBS"
5585LIBS="-lipc  $LIBS"
5586cat > conftest.$ac_ext <<EOF
5587#line 5588 "configure"
5588#include "confdefs.h"
5589/* Override any gcc2 internal prototype to avoid an error.  */
5590/* We use char because int might match the return type of a gcc2
5591    builtin and then its argument prototype would still apply.  */
5592char shmat();
5593
5594int main() {
5595shmat()
5596; return 0; }
5597EOF
5598if { (eval echo configure:5599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5599  rm -rf conftest*
5600  eval "ac_cv_lib_$ac_lib_var=yes"
5601else
5602  echo "configure: failed program was:" >&5
5603  cat conftest.$ac_ext >&5
5604  rm -rf conftest*
5605  eval "ac_cv_lib_$ac_lib_var=no"
5606fi
5607rm -f conftest*
5608LIBS="$ac_save_LIBS"
5609
5610fi
5611if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5612  echo "$ac_t""yes" 1>&6
5613  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5614else
5615  echo "$ac_t""no" 1>&6
5616fi
5617
5618    fi
5619  fi
5620
5621  # Check for libraries that X11R6 Xt/Xaw programs need.
5622  ac_save_LDFLAGS="$LDFLAGS"
5623  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5624  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5625  # check for ICE first), but we must link in the order -lSM -lICE or
5626  # we get undefined symbols.  So assume we have SM if we have ICE.
5627  # These have to be linked with before -lX11, unlike the other
5628  # libraries we check for below, so use a different variable.
5629  #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5630  echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
5631echo "configure:5632: checking for IceConnectionNumber in -lICE" >&5
5632ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5633if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5634  echo $ac_n "(cached) $ac_c" 1>&6
5635else
5636  ac_save_LIBS="$LIBS"
5637LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5638cat > conftest.$ac_ext <<EOF
5639#line 5640 "configure"
5640#include "confdefs.h"
5641/* Override any gcc2 internal prototype to avoid an error.  */
5642/* We use char because int might match the return type of a gcc2
5643    builtin and then its argument prototype would still apply.  */
5644char IceConnectionNumber();
5645
5646int main() {
5647IceConnectionNumber()
5648; return 0; }
5649EOF
5650if { (eval echo configure:5651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5651  rm -rf conftest*
5652  eval "ac_cv_lib_$ac_lib_var=yes"
5653else
5654  echo "configure: failed program was:" >&5
5655  cat conftest.$ac_ext >&5
5656  rm -rf conftest*
5657  eval "ac_cv_lib_$ac_lib_var=no"
5658fi
5659rm -f conftest*
5660LIBS="$ac_save_LIBS"
5661
5662fi
5663if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5664  echo "$ac_t""yes" 1>&6
5665  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5666else
5667  echo "$ac_t""no" 1>&6
5668fi
5669
5670  LDFLAGS="$ac_save_LDFLAGS"
5671
5672fi
5673
5674
5675# Extract the first word of "passwd", so it can be a program name with args.
5676set dummy passwd; ac_word=$2
5677echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5678echo "configure:5679: checking for $ac_word" >&5
5679if eval "test \"`echo '$''{'ac_cv_path_PASSWD_PATH'+set}'`\" = set"; then
5680  echo $ac_n "(cached) $ac_c" 1>&6
5681else
5682  case "$PASSWD_PATH" in
5683  /*)
5684  ac_cv_path_PASSWD_PATH="$PASSWD_PATH" # Let the user override the test with a path.
5685  ;;
5686  ?:/*)                 
5687  ac_cv_path_PASSWD_PATH="$PASSWD_PATH" # Let the user override the test with a dos path.
5688  ;;
5689  *)
5690  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5691  ac_dummy="$PATH"
5692  for ac_dir in $ac_dummy; do
5693    test -z "$ac_dir" && ac_dir=.
5694    if test -f $ac_dir/$ac_word; then
5695      ac_cv_path_PASSWD_PATH="$ac_dir/$ac_word"
5696      break
5697    fi
5698  done
5699  IFS="$ac_save_ifs"
5700  ;;
5701esac
5702fi
5703PASSWD_PATH="$ac_cv_path_PASSWD_PATH"
5704if test -n "$PASSWD_PATH"; then
5705  echo "$ac_t""$PASSWD_PATH" 1>&6
5706else
5707  echo "$ac_t""no" 1>&6
5708fi
5709
5710if test -n "$PASSWD_PATH"; then
5711  cat >> confdefs.h <<EOF
5712#define PASSWD_PATH "$PASSWD_PATH"
5713EOF
5714
5715fi
5716
5717# Extract the first word of "xauth", so it can be a program name with args.
5718set dummy xauth; ac_word=$2
5719echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5720echo "configure:5721: checking for $ac_word" >&5
5721if eval "test \"`echo '$''{'ac_cv_path_XAUTH_PATH'+set}'`\" = set"; then
5722  echo $ac_n "(cached) $ac_c" 1>&6
5723else
5724  case "$XAUTH_PATH" in
5725  /*)
5726  ac_cv_path_XAUTH_PATH="$XAUTH_PATH" # Let the user override the test with a path.
5727  ;;
5728  ?:/*)                 
5729  ac_cv_path_XAUTH_PATH="$XAUTH_PATH" # Let the user override the test with a dos path.
5730  ;;
5731  *)
5732  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5733  ac_dummy="$PATH"
5734  for ac_dir in $ac_dummy; do
5735    test -z "$ac_dir" && ac_dir=.
5736    if test -f $ac_dir/$ac_word; then
5737      ac_cv_path_XAUTH_PATH="$ac_dir/$ac_word"
5738      break
5739    fi
5740  done
5741  IFS="$ac_save_ifs"
5742  ;;
5743esac
5744fi
5745XAUTH_PATH="$ac_cv_path_XAUTH_PATH"
5746if test -n "$XAUTH_PATH"; then
5747  echo "$ac_t""$XAUTH_PATH" 1>&6
5748else
5749  echo "$ac_t""no" 1>&6
5750fi
5751
5752if test -n "$XAUTH_PATH"; then
5753  cat >> confdefs.h <<EOF
5754#define XAUTH_PATH "$XAUTH_PATH"
5755EOF
5756
5757fi
5758
5759if test "$no_x" = yes; then
5760  X_PROGRAMS=""
5761else
5762  if test "x$XAUTH_PATH" = "x"; then
5763    { echo "configure: error: configuring with X but xauth not found - aborting" 1>&2; exit 1; }
5764  fi
5765  X_PROGRAMS="ssh-askpass"
5766fi
5767echo $ac_n "checking for X11 unix domain socket directory""... $ac_c" 1>&6
5768echo "configure:5769: checking for X11 unix domain socket directory" >&5
5769
5770if test '!' -d /tmp/.X11-unix; then
5771  if test -d /var/X/.X11-unix; then
5772    cat >> confdefs.h <<\EOF
5773#define X11_DIR "/var/X/.X11-unix"
5774EOF
5775
5776    echo "$ac_t""/var/X/.X11-unix" 1>&6
5777  else
5778    if test -d /tmp/.X11-pipe; then
5779      cat >> confdefs.h <<\EOF
5780#define X11_DIR "/tmp/.X11-pipe"
5781EOF
5782
5783      echo "$ac_t""/tmp/.X11-pipe" 1>&6
5784    else
5785      echo "$ac_t""/tmp/.X11-unix" 1>&6
5786    fi
5787  fi
5788else
5789  echo "$ac_t""/tmp/.X11-unix" 1>&6
5790fi
5791
5792for ac_prog in perl5 perl
5793do
5794# Extract the first word of "$ac_prog", so it can be a program name with args.
5795set dummy $ac_prog; ac_word=$2
5796echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5797echo "configure:5798: checking for $ac_word" >&5
5798if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
5799  echo $ac_n "(cached) $ac_c" 1>&6
5800else
5801  case "$PERL" in
5802  /*)
5803  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5804  ;;
5805  ?:/*)                 
5806  ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
5807  ;;
5808  *)
5809  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5810  ac_dummy="$PATH"
5811  for ac_dir in $ac_dummy; do
5812    test -z "$ac_dir" && ac_dir=.
5813    if test -f $ac_dir/$ac_word; then
5814      ac_cv_path_PERL="$ac_dir/$ac_word"
5815      break
5816    fi
5817  done
5818  IFS="$ac_save_ifs"
5819  ;;
5820esac
5821fi
5822PERL="$ac_cv_path_PERL"
5823if test -n "$PERL"; then
5824  echo "$ac_t""$PERL" 1>&6
5825else
5826  echo "$ac_t""no" 1>&6
5827fi
5828
5829test -n "$PERL" && break
5830done
5831test -n "$PERL" || PERL="not found"
5832
5833if test "x$PERL" = "xnot found" || $PERL -e 'exit ($] >= 5)'; then
5834  unset ac_cv_path_PERL
5835  PERL="/usr/local/bin/perl"
5836  echo "configure: warning: perl version 5 not found - make-ssh-known-hosts will not work" 1>&2
5837fi
5838
5839for ac_func in getpseudotty
5840do
5841echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5842echo "configure:5843: checking for $ac_func" >&5
5843if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5844  echo $ac_n "(cached) $ac_c" 1>&6
5845else
5846  cat > conftest.$ac_ext <<EOF
5847#line 5848 "configure"
5848#include "confdefs.h"
5849/* System header to define __stub macros and hopefully few prototypes,
5850    which can conflict with char $ac_func(); below.  */
5851#include <assert.h>
5852/* Override any gcc2 internal prototype to avoid an error.  */
5853/* We use char because int might match the return type of a gcc2
5854    builtin and then its argument prototype would still apply.  */
5855char $ac_func();
5856
5857int main() {
5858
5859/* The GNU C library defines this for functions which it implements
5860    to always fail with ENOSYS.  Some functions are actually named
5861    something starting with __ and the normal name is an alias.  */
5862#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5863choke me
5864#else
5865$ac_func();
5866#endif
5867
5868; return 0; }
5869EOF
5870if { (eval echo configure:5871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5871  rm -rf conftest*
5872  eval "ac_cv_func_$ac_func=yes"
5873else
5874  echo "configure: failed program was:" >&5
5875  cat conftest.$ac_ext >&5
5876  rm -rf conftest*
5877  eval "ac_cv_func_$ac_func=no"
5878fi
5879rm -f conftest*
5880fi
5881
5882if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5883  echo "$ac_t""yes" 1>&6
5884    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5885  cat >> confdefs.h <<EOF
5886#define $ac_tr_func 1
5887EOF
5888 
5889else
5890  echo "$ac_t""no" 1>&6
5891fi
5892done
5893
5894echo $ac_n "checking for pseudo ttys""... $ac_c" 1>&6
5895echo "configure:5896: checking for pseudo ttys" >&5
5896if test -c /dev/getpty && test $ac_cv_func_getpseudotty = yes
5897then
5898  cat >> confdefs.h <<\EOF
5899#define HAVE_GETPSEUDOTTY 1
5900EOF
5901
5902  echo "$ac_t""getpseudotty" 1>&6
5903else
5904if test -c /dev/ptmx && test -c /dev/pts/0
5905then
5906  cat >> confdefs.h <<\EOF
5907#define HAVE_DEV_PTMX 1
5908EOF
5909
5910  echo "$ac_t""streams ptys" 1>&6
5911else
5912if test -c /dev/ptc && test -c /dev/pts || test -d /dev/pts
5913then
5914  cat >> confdefs.h <<\EOF
5915#define HAVE_DEV_PTS_AND_PTC 1
5916EOF
5917
5918  echo "$ac_t""/dev/pts and /dev/ptc" 1>&6
5919else
5920if test -c /dev/ptyp10
5921then
5922  cat >> confdefs.h <<\EOF
5923#define HAVE_DEV_PTYP10 1
5924EOF
5925
5926  echo "$ac_t""sco-style ptys" 1>&6
5927else
5928  echo "$ac_t""bsd-style ptys" 1>&6
5929fi
5930fi
5931fi
5932fi
5933
5934echo $ac_n "checking for /etc/default/login""... $ac_c" 1>&6
5935echo "configure:5936: checking for /etc/default/login" >&5
5936if test -f /etc/default/login; then
5937  cat >> confdefs.h <<\EOF
5938#define HAVE_ETC_DEFAULT_LOGIN 1
5939EOF
5940
5941  echo "$ac_t""yes" 1>&6
5942else
5943  echo "$ac_t""no" 1>&6
5944fi
5945
5946if test -z "$no_shadows_password_checking"; then
5947  echo $ac_n "checking for shadow passwords""... $ac_c" 1>&6
5948echo "configure:5949: checking for shadow passwords" >&5
5949  if test -f /etc/shadow; then
5950      # If we don't have shadow.h, this might be some nonstandard
5951      # kludging... So better check it out.
5952    if test "x$ac_cv_header_shadow_h" = "xyes"; then
5953      cat >> confdefs.h <<\EOF
5954#define HAVE_ETC_SHADOW 1
5955EOF
5956
5957      echo "$ac_t""/etc/shadow" 1>&6
5958      # SunOS C2 security uses this style of shadow passwords, but does not
5959      # have getspent in a system library.  However, a libshadow.a library
5960      # contaning these is publicly available.
5961      echo $ac_n "checking for getspent in -lshadow""... $ac_c" 1>&6
5962echo "configure:5963: checking for getspent in -lshadow" >&5
5963ac_lib_var=`echo shadow'_'getspent | sed 'y%./+-%__p_%'`
5964if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5965  echo $ac_n "(cached) $ac_c" 1>&6
5966else
5967  ac_save_LIBS="$LIBS"
5968LIBS="-lshadow  $LIBS"
5969cat > conftest.$ac_ext <<EOF
5970#line 5971 "configure"
5971#include "confdefs.h"
5972/* Override any gcc2 internal prototype to avoid an error.  */
5973/* We use char because int might match the return type of a gcc2
5974    builtin and then its argument prototype would still apply.  */
5975char getspent();
5976
5977int main() {
5978getspent()
5979; return 0; }
5980EOF
5981if { (eval echo configure:5982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5982  rm -rf conftest*
5983  eval "ac_cv_lib_$ac_lib_var=yes"
5984else
5985  echo "configure: failed program was:" >&5
5986  cat conftest.$ac_ext >&5
5987  rm -rf conftest*
5988  eval "ac_cv_lib_$ac_lib_var=no"
5989fi
5990rm -f conftest*
5991LIBS="$ac_save_LIBS"
5992
5993fi
5994if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5995  echo "$ac_t""yes" 1>&6
5996    ac_tr_lib=HAVE_LIB`echo shadow | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5997    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5998  cat >> confdefs.h <<EOF
5999#define $ac_tr_lib 1
6000EOF
6001
6002  LIBS="-lshadow $LIBS"
6003
6004else
6005  echo "$ac_t""no" 1>&6
6006fi
6007
6008      echo $ac_n "checking whether spwd have sp_expire field""... $ac_c" 1>&6
6009echo "configure:6010: checking whether spwd have sp_expire field" >&5
6010      cat > conftest.$ac_ext <<EOF
6011#line 6012 "configure"
6012#include "confdefs.h"
6013#include <shadow.h>
6014EOF
6015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6016  egrep "sp_expire" >/dev/null 2>&1; then
6017  rm -rf conftest*
6018   cat >> confdefs.h <<\EOF
6019#define HAVE_STRUCT_SPWD_EXPIRE 1
6020EOF
6021
6022        echo "$ac_t""yes" 1>&6
6023else
6024  rm -rf conftest*
6025  echo "$ac_t""no" 1>&6
6026fi
6027rm -f conftest*
6028
6029      echo $ac_n "checking whether spwd have sp_inact field""... $ac_c" 1>&6
6030echo "configure:6031: checking whether spwd have sp_inact field" >&5
6031      cat > conftest.$ac_ext <<EOF
6032#line 6033 "configure"
6033#include "confdefs.h"
6034#include <shadow.h>
6035EOF
6036if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6037  egrep "sp_inact" >/dev/null 2>&1; then
6038  rm -rf conftest*
6039   cat >> confdefs.h <<\EOF
6040#define HAVE_STRUCT_SPWD_INACT 1
6041EOF
6042
6043        echo "$ac_t""yes" 1>&6
6044else
6045  rm -rf conftest*
6046  echo "$ac_t""no" 1>&6
6047fi
6048rm -f conftest*
6049
6050    else
6051      echo "$ac_t""no" 1>&6
6052    fi
6053  elif test -n "$os_aix"; then
6054    cat >> confdefs.h <<\EOF
6055#define HAVE_ETC_SECURITY_PASSWD 1
6056EOF
6057
6058    echo "$ac_t""/etc/security/passwd" 1>&6
6059  elif test -n "$os_sunos"; then
6060    cat >> confdefs.h <<\EOF
6061#define HAVE_ETC_SECURITY_PASSWD_ADJUNCT 1
6062EOF
6063
6064    echo "$ac_t""/etc/security/passwd.adjunct" 1>&6
6065  else
6066    echo "$ac_t""no" 1>&6
6067  fi
6068fi
6069
6070echo $ac_n "checking location of mail spool files""... $ac_c" 1>&6
6071echo "configure:6072: checking location of mail spool files" >&5
6072for dir in /var/spool/mail /var/mail /usr/spool/mail /usr/mail FILE
6073do
6074  if test "$dir" = "FILE"; then
6075    if test -f $HOME/.MailBox; then
6076      echo "configure: warning: mail spool directory was not found: assuming you use \$HOME/.MailBox" 1>&2
6077      cat >> confdefs.h <<EOF
6078#define MAIL_SPOOL_FILE ".MailBox"
6079EOF
6080
6081      echo "$ac_t""\$HOME/.MailBox" 1>&6
6082    else
6083      if test -f $HOME/Mailbox; then
6084          echo "configure: warning: mail spool directory was not found: assuming you use \$HOME/Mailbox" 1>&2
6085          cat >> confdefs.h <<EOF
6086#define MAIL_SPOOL_FILE "Mailbox"
6087EOF
6088
6089          echo "$ac_t""\$HOME/Mailbox" 1>&6
6090      else
6091          echo "configure: warning: mail spool directory was not found: assuming you use \$HOME/newmail" 1>&2
6092          cat >> confdefs.h <<EOF
6093#define MAIL_SPOOL_FILE "newmail"
6094EOF
6095
6096          echo "$ac_t""\$HOME/newmail" 1>&6
6097      fi
6098    fi
6099  elif test -d $dir; then
6100    cat >> confdefs.h <<EOF
6101#define MAIL_SPOOL_DIRECTORY "$dir"
6102EOF
6103
6104    echo "$ac_t""$dir" 1>&6
6105    break
6106  fi
6107done
6108
6109echo $ac_n "checking location of utmp""... $ac_c" 1>&6
6110echo "configure:6111: checking location of utmp" >&5
6111if test -f /var/run/utmp; then
6112  cat >> confdefs.h <<\EOF
6113#define SSH_UTMP "/var/run/utmp"
6114EOF
6115
6116  echo "$ac_t""/var/run/utmp" 1>&6
6117elif test -f /var/log/utmp; then
6118  cat >> confdefs.h <<\EOF
6119#define SSH_UTMP "/var/log/utmp"
6120EOF
6121
6122  echo "$ac_t""/var/log/utmp" 1>&6
6123elif test -f /var/adm/utmp; then
6124  cat >> confdefs.h <<\EOF
6125#define SSH_UTMP "/var/adm/utmp"
6126EOF
6127
6128  echo "$ac_t""/var/adm/utmp" 1>&6
6129elif test -f /usr/adm/utmp; then
6130  cat >> confdefs.h <<\EOF
6131#define SSH_UTMP "/usr/adm/utmp"
6132EOF
6133
6134  echo "$ac_t""/usr/adm/utmp" 1>&6
6135elif test -f /etc/utmp; then
6136  cat >> confdefs.h <<\EOF
6137#define SSH_UTMP "/etc/utmp"
6138EOF
6139
6140  echo "$ac_t""/etc/utmp" 1>&6
6141else
6142  echo "$ac_t""not found" 1>&6
6143fi
6144
6145echo $ac_n "checking location of wtmp""... $ac_c" 1>&6
6146echo "configure:6147: checking location of wtmp" >&5
6147if test -f /var/log/wtmp; then
6148  cat >> confdefs.h <<\EOF
6149#define SSH_WTMP "/var/log/wtmp"
6150EOF
6151
6152  echo "$ac_t""/var/log/wtmp" 1>&6
6153elif test -f /var/adm/wtmp; then
6154  cat >> confdefs.h <<\EOF
6155#define SSH_WTMP "/var/adm/wtmp"
6156EOF
6157
6158  echo "$ac_t""/var/adm/wtmp" 1>&6
6159elif test -f /usr/adm/wtmp; then
6160  cat >> confdefs.h <<\EOF
6161#define SSH_WTMP "/usr/adm/wtmp"
6162EOF
6163
6164  echo "$ac_t""/usr/adm/wtmp" 1>&6
6165elif test -f /etc/wtmp; then
6166  cat >> confdefs.h <<\EOF
6167#define SSH_WTMP "/etc/wtmp"
6168EOF
6169
6170  echo "$ac_t""/etc/wtmp" 1>&6
6171else
6172  cat >> confdefs.h <<\EOF
6173#define SSH_WTMP "/var/adm/wtmp"
6174EOF
6175
6176  echo "$ac_t""not found" 1>&6
6177fi
6178
6179echo $ac_n "checking location of lastlog""... $ac_c" 1>&6
6180echo "configure:6181: checking location of lastlog" >&5
6181if test -f /var/log/lastlog || test -d /var/log/lastlog; then
6182  cat >> confdefs.h <<\EOF
6183#define SSH_LASTLOG "/var/log/lastlog"
6184EOF
6185
6186  cat >> confdefs.h <<\EOF
6187#define HAVE_LASTLOG 1
6188EOF
6189
6190  LASTLOG=/var/log/lastlog
6191  echo "$ac_t""/var/log/lastlog" 1>&6
6192elif test -f /var/adm/lastlog || test -d /var/adm/lastlog; then
6193  cat >> confdefs.h <<\EOF
6194#define SSH_LASTLOG "/var/adm/lastlog"
6195EOF
6196
6197  cat >> confdefs.h <<\EOF
6198#define HAVE_LASTLOG 1
6199EOF
6200
6201  LASTLOG=/var/adm/lastlog
6202  echo "$ac_t""/var/adm/lastlog" 1>&6
6203elif test -f /usr/adm/lastlog || test -d /usr/adm/lastlog; then
6204  cat >> confdefs.h <<\EOF
6205#define SSH_LASTLOG "/usr/adm/lastlog"
6206EOF
6207
6208  cat >> confdefs.h <<\EOF
6209#define HAVE_LASTLOG 1
6210EOF
6211
6212  LASTLOG=/usr/adm/lastlog
6213  echo "$ac_t""/usr/adm/lastlog" 1>&6
6214elif test -f /etc/lastlog || test -d /etc/lastlog; then
6215  cat >> confdefs.h <<\EOF
6216#define SSH_LASTLOG "/etc/lastlog"
6217EOF
6218
6219  cat >> confdefs.h <<\EOF
6220#define HAVE_LASTLOG 1
6221EOF
6222
6223  LASTLOG=/etc/lastlog
6224  echo "$ac_t""/etc/lastlog" 1>&6
6225else
6226  echo "$ac_t""not found" 1>&6
6227  cat >> confdefs.h <<\EOF
6228#define SSH_LASTLOG "/var/log/lastlog"
6229EOF
6230
6231  LASTLOG=/var/log/lastlog
6232fi
6233
6234echo $ac_n "checking whether $LASTLOG is a directory""... $ac_c" 1>&6
6235echo "configure:6236: checking whether $LASTLOG is a directory" >&5
6236if test -d $LASTLOG
6237then
6238  echo "$ac_t""yes" 1>&6
6239  cat >> confdefs.h <<\EOF
6240#define LASTLOG_IS_DIR 1
6241EOF
6242
6243else
6244  echo "$ac_t""no" 1>&6
6245fi
6246
6247echo $ac_n "checking whether to include the IDEA encryption algorithm""... $ac_c" 1>&6
6248echo "configure:6249: checking whether to include the IDEA encryption algorithm" >&5
6249# Check whether --with-idea or --without-idea was given.
6250if test "${with_idea+set}" = set; then
6251  withval="$with_idea"
6252   case "$withval" in
6253  no)
6254    echo "$ac_t""no" 1>&6
6255    ;;
6256  *)
6257    echo "$ac_t""yes" 1>&6
6258    cat >> confdefs.h <<\EOF
6259#define WITH_IDEA 1
6260EOF
6261
6262    CONFOBJS="$CONFOBJS idea.o"
6263    ;;
6264  esac
6265else
6266  #ifndef F_SECURE_COMMERCIAL
6267  echo "$ac_t""yes" 1>&6
6268  cat >> confdefs.h <<\EOF
6269#define WITH_IDEA 1
6270EOF
6271
6272  CONFOBJS="$CONFOBJS idea.o"
6273#endif F_SECURE_COMMERCIAL
6274#ifdef F_SECURE_COMMERCIAL
6275#
6276#endif F_SECURE_COMMERCIAL
6277
6278fi
6279
6280
6281echo $ac_n "checking whether to include the Blowfish encryption algorithm""... $ac_c" 1>&6
6282echo "configure:6283: checking whether to include the Blowfish encryption algorithm" >&5
6283# Check whether --with-blowfish or --without-blowfish was given.
6284if test "${with_blowfish+set}" = set; then
6285  withval="$with_blowfish"
6286   case "$withval" in
6287  no)
6288    echo "$ac_t""no" 1>&6
6289    ;;
6290  *)
6291    echo "$ac_t""yes" 1>&6
6292    cat >> confdefs.h <<\EOF
6293#define WITH_BLOWFISH 1
6294EOF
6295
6296    ;;
6297  esac
6298else
6299  echo "$ac_t""yes" 1>&6
6300  cat >> confdefs.h <<\EOF
6301#define WITH_BLOWFISH 1
6302EOF
6303
6304
6305fi
6306
6307
6308echo $ac_n "checking whether to include the DES encryption algorithm""... $ac_c" 1>&6
6309echo "configure:6310: checking whether to include the DES encryption algorithm" >&5
6310# Check whether --with-des or --without-des was given.
6311if test "${with_des+set}" = set; then
6312  withval="$with_des"
6313   case "$withval" in
6314  yes)
6315    echo "$ac_t""yes" 1>&6
6316    cat >> confdefs.h <<\EOF
6317#define WITH_DES 1
6318EOF
6319
6320    ;;
6321  *)
6322    echo "$ac_t""no" 1>&6
6323    ;;
6324  esac
6325else
6326  echo "$ac_t""no" 1>&6
6327
6328fi
6329
6330
6331echo $ac_n "checking whether to include the ARCFOUR encryption algorithm""... $ac_c" 1>&6
6332echo "configure:6333: checking whether to include the ARCFOUR encryption algorithm" >&5
6333# Check whether --with-arcfour or --without-arcfour was given.
6334if test "${with_arcfour+set}" = set; then
6335  withval="$with_arcfour"
6336   case "$withval" in
6337  yes)
6338    echo "$ac_t""yes" 1>&6
6339    cat >> confdefs.h <<\EOF
6340#define WITH_ARCFOUR 1
6341EOF
6342
6343    ;;
6344  *)
6345    echo "$ac_t""no" 1>&6
6346    ;;
6347  esac
6348else
6349  echo "$ac_t""no" 1>&6
6350
6351fi
6352
6353
6354echo $ac_n "checking whether to include the none encryption algorithm""... $ac_c" 1>&6
6355echo "configure:6356: checking whether to include the none encryption algorithm" >&5
6356# Check whether --with-none or --without-none was given.
6357if test "${with_none+set}" = set; then
6358  withval="$with_none"
6359   case "$withval" in
6360  yes)
6361    echo "$ac_t""yes" 1>&6
6362    cat >> confdefs.h <<\EOF
6363#define WITH_NONE 1
6364EOF
6365
6366    ;;
6367  *)
6368    echo "$ac_t""no" 1>&6
6369    ;;
6370  esac
6371else
6372  echo "$ac_t""no" 1>&6
6373
6374fi
6375
6376
6377echo $ac_n "checking whether to use login""... $ac_c" 1>&6
6378echo "configure:6379: checking whether to use login" >&5
6379# Check whether --with-login or --without-login was given.
6380if test "${with_login+set}" = set; then
6381  withval="$with_login"
6382   case "$withval" in
6383    no)
6384        echo "$ac_t""no" 1>&6
6385        ;;
6386    yes)
6387        echo "$ac_t""yes" 1>&6
6388        for ac_prog in login
6389do
6390# Extract the first word of "$ac_prog", so it can be a program name with args.
6391set dummy $ac_prog; ac_word=$2
6392echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6393echo "configure:6394: checking for $ac_word" >&5
6394if eval "test \"`echo '$''{'ac_cv_path_PATH_LOGIN'+set}'`\" = set"; then
6395  echo $ac_n "(cached) $ac_c" 1>&6
6396else
6397  case "$PATH_LOGIN" in
6398  /*)
6399  ac_cv_path_PATH_LOGIN="$PATH_LOGIN" # Let the user override the test with a path.
6400  ;;
6401  ?:/*)                 
6402  ac_cv_path_PATH_LOGIN="$PATH_LOGIN" # Let the user override the test with a dos path.
6403  ;;
6404  *)
6405  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6406  ac_dummy="$PATH"
6407  for ac_dir in $ac_dummy; do
6408    test -z "$ac_dir" && ac_dir=.
6409    if test -f $ac_dir/$ac_word; then
6410      ac_cv_path_PATH_LOGIN="$ac_dir/$ac_word"
6411      break
6412    fi
6413  done
6414  IFS="$ac_save_ifs"
6415  ;;
6416esac
6417fi
6418PATH_LOGIN="$ac_cv_path_PATH_LOGIN"
6419if test -n "$PATH_LOGIN"; then
6420  echo "$ac_t""$PATH_LOGIN" 1>&6
6421else
6422  echo "$ac_t""no" 1>&6
6423fi
6424
6425test -n "$PATH_LOGIN" && break
6426done
6427
6428        cat >> confdefs.h <<\EOF
6429#define USELOGIN 1
6430EOF
6431
6432        cat >> confdefs.h <<EOF
6433#define PATH_LOGIN "$PATH_LOGIN"
6434EOF
6435
6436        ;;
6437    *)
6438        echo "$ac_t""$withval" 1>&6
6439        cat >> confdefs.h <<\EOF
6440#define USELOGIN 1
6441EOF
6442
6443        cat >> confdefs.h <<EOF
6444#define PATH_LOGIN "$withval"
6445EOF
6446
6447        ;;
6448  esac
6449else
6450   echo "$ac_t""no" 1>&6
6451
6452fi
6453
6454
6455echo $ac_n "checking whether to use rsh""... $ac_c" 1>&6
6456echo "configure:6457: checking whether to use rsh" >&5
6457# Check whether --with-rsh or --without-rsh was given.
6458if test "${with_rsh+set}" = set; then
6459  withval="$with_rsh"
6460   case "$withval" in
6461    no)
6462        echo "$ac_t""no" 1>&6
6463        ;;
6464    yes)
6465         echo "$ac_t""yes" 1>&6
6466         for ac_prog in remsh resh rsh
6467do
6468# Extract the first word of "$ac_prog", so it can be a program name with args.
6469set dummy $ac_prog; ac_word=$2
6470echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6471echo "configure:6472: checking for $ac_word" >&5
6472if eval "test \"`echo '$''{'ac_cv_path_RSH_PATH'+set}'`\" = set"; then
6473  echo $ac_n "(cached) $ac_c" 1>&6
6474else
6475  case "$RSH_PATH" in
6476  /*)
6477  ac_cv_path_RSH_PATH="$RSH_PATH" # Let the user override the test with a path.
6478  ;;
6479  ?:/*)                 
6480  ac_cv_path_RSH_PATH="$RSH_PATH" # Let the user override the test with a dos path.
6481  ;;
6482  *)
6483  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6484  ac_dummy="$PATH"
6485  for ac_dir in $ac_dummy; do
6486    test -z "$ac_dir" && ac_dir=.
6487    if test -f $ac_dir/$ac_word; then
6488      ac_cv_path_RSH_PATH="$ac_dir/$ac_word"
6489      break
6490    fi
6491  done
6492  IFS="$ac_save_ifs"
6493  ;;
6494esac
6495fi
6496RSH_PATH="$ac_cv_path_RSH_PATH"
6497if test -n "$RSH_PATH"; then
6498  echo "$ac_t""$RSH_PATH" 1>&6
6499else
6500  echo "$ac_t""no" 1>&6
6501fi
6502
6503test -n "$RSH_PATH" && break
6504done
6505
6506         cat >> confdefs.h <<EOF
6507#define RSH_PATH "$RSH_PATH"
6508EOF
6509
6510        ;;
6511    *)
6512       echo "$ac_t""$withval" 1>&6
6513       cat >> confdefs.h <<EOF
6514#define RSH_PATH "$withval"
6515EOF
6516
6517       RSH_PATH="$withval"
6518       ;;
6519  esac
6520else
6521   echo "$ac_t""yes" 1>&6
6522    for ac_prog in remsh resh rsh
6523do
6524# Extract the first word of "$ac_prog", so it can be a program name with args.
6525set dummy $ac_prog; ac_word=$2
6526echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6527echo "configure:6528: checking for $ac_word" >&5
6528if eval "test \"`echo '$''{'ac_cv_path_RSH_PATH'+set}'`\" = set"; then
6529  echo $ac_n "(cached) $ac_c" 1>&6
6530else
6531  case "$RSH_PATH" in
6532  /*)
6533  ac_cv_path_RSH_PATH="$RSH_PATH" # Let the user override the test with a path.
6534  ;;
6535  ?:/*)                 
6536  ac_cv_path_RSH_PATH="$RSH_PATH" # Let the user override the test with a dos path.
6537  ;;
6538  *)
6539  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6540  ac_dummy="$PATH"
6541  for ac_dir in $ac_dummy; do
6542    test -z "$ac_dir" && ac_dir=.
6543    if test -f $ac_dir/$ac_word; then
6544      ac_cv_path_RSH_PATH="$ac_dir/$ac_word"
6545      break
6546    fi
6547  done
6548  IFS="$ac_save_ifs"
6549  ;;
6550esac
6551fi
6552RSH_PATH="$ac_cv_path_RSH_PATH"
6553if test -n "$RSH_PATH"; then
6554  echo "$ac_t""$RSH_PATH" 1>&6
6555else
6556  echo "$ac_t""no" 1>&6
6557fi
6558
6559test -n "$RSH_PATH" && break
6560done
6561
6562    cat >> confdefs.h <<EOF
6563#define RSH_PATH "$RSH_PATH"
6564EOF
6565 
6566
6567fi
6568
6569
6570# Check that we didn't accidentally get ssh as rsh.
6571if test -n "$RSH_PATH"; then
6572  if test -n "`$RSH_PATH </dev/null 2>&1 | grep listen-port:host:port`"; then
6573    echo "configure: warning: Found rsh in $RSH_PATH but it appears to actually be ssh." 1>&2
6574    { echo "configure: error: Probably forgot to specify --with-rsh=PATH-TO-REAL-RSH." 1>&2; exit 1; }
6575  fi
6576fi
6577
6578# Code to permit setting default path for users (alden@math.ohio-state.edu)
6579echo $ac_n "checking default path""... $ac_c" 1>&6
6580echo "configure:6581: checking default path" >&5
6581# Check whether --with-path or --without-path was given.
6582if test "${with_path+set}" = set; then
6583  withval="$with_path"
6584   case "$withval" in
6585  no)
6586    echo "$ac_t""use system default" 1>&6
6587    ;;
6588  *)
6589    echo "$ac_t""$withval" 1>&6
6590    cat >> confdefs.h <<EOF
6591#define DEFAULT_PATH "$withval"
6592EOF
6593
6594    ;;
6595  esac
6596else
6597  echo "$ac_t""use system default" 1>&6
6598
6599fi
6600
6601
6602echo $ac_n "checking etcdir""... $ac_c" 1>&6
6603echo "configure:6604: checking etcdir" >&5
6604# Check whether --with-etcdir or --without-etcdir was given.
6605if test "${with_etcdir+set}" = set; then
6606  withval="$with_etcdir"
6607   case "$withval" in
6608  no)
6609    { echo "configure: error: Need ETCDIR." 1>&2; exit 1; }
6610    ;;
6611  yes)
6612    ETCDIR="/etc"
6613    echo "$ac_t""/etc" 1>&6
6614    ;;
6615  *)
6616    ETCDIR="$withval"
6617    echo "$ac_t""$withval" 1>&6
6618    ;;
6619  esac
6620else
6621  ETCDIR="/etc"
6622  echo "$ac_t""/etc" 1>&6
6623
6624fi
6625
6626
6627echo $ac_n "checking whether to use nologin.allow file to override nologin""... $ac_c" 1>&6
6628echo "configure:6629: checking whether to use nologin.allow file to override nologin" >&5
6629# Check whether --with-nologin-allow or --without-nologin-allow was given.
6630if test "${with_nologin_allow+set}" = set; then
6631  withval="$with_nologin_allow"
6632   case "$withval" in
6633    no)
6634        echo "$ac_t""no" 1>&6
6635        ;;
6636    yes)
6637        echo "$ac_t""yes" 1>&6
6638        cat >> confdefs.h <<EOF
6639#define NOLOGIN_ALLOW "/etc/nologin.allow"
6640EOF
6641
6642        ;;
6643    *)
6644        echo "$ac_t""$withval" 1>&6
6645        cat >> confdefs.h <<EOF
6646#define NOLOGIN_ALLOW "$withval"
6647EOF
6648
6649        ;;
6650  esac
6651else
6652   echo "$ac_t""no" 1>&6
6653
6654fi
6655
6656
6657echo $ac_n "checking whether to support SecurID""... $ac_c" 1>&6
6658echo "configure:6659: checking whether to support SecurID" >&5
6659# Check whether --with-securid or --without-securid was given.
6660if test "${with_securid+set}" = set; then
6661  withval="$with_securid"
6662   case "$withval" in
6663  no)
6664    echo "$ac_t""no" 1>&6
6665    ;;
6666  yes)
6667    echo "$ac_t""yes" 1>&6
6668    if test '!' -f /usr/ace/sdiclient.a; then
6669      { echo "configure: error: SecurID sdiclient.a not found in /usr/ace: you must supply the path." 1>&2; exit 1; }
6670    fi
6671    echo "$ac_t""yes" 1>&6
6672    echo "$ac_t""Assuming SecurID headers and libraries are in /usr/ace." 1>&6
6673    cat >> confdefs.h <<\EOF
6674#define HAVE_SECURID 1
6675EOF
6676
6677    CFLAGS="$CFLAGS -I/usr/ace"
6678    LIBS="/usr/ace/sdiclient.a $LIBS"
6679    ;;
6680  *)
6681    echo "$ac_t""yes" 1>&6
6682    if test '!' -f $withval/sdiclient.a; then
6683      { echo "configure: error: SecurID sdiclient.a not found in $withval: please supply the correct path." 1>&2; exit 1; }
6684    fi
6685    echo "$ac_t""Assuming SecurID headers and libraries are in $withval." 1>&6
6686    cat >> confdefs.h <<\EOF
6687#define HAVE_SECURID 1
6688EOF
6689
6690    CFLAGS="$CFLAGS -I$withval"
6691    LIBS="$withval/sdiclient.a $LIBS"
6692    ;;
6693  esac
6694else
6695  echo "$ac_t""no" 1>&6
6696
6697fi
6698
6699
6700echo $ac_n "checking whether to support TIS authentication server""... $ac_c" 1>&6
6701echo "configure:6702: checking whether to support TIS authentication server" >&5
6702# Check whether --with-tis or --without-tis was given.
6703if test "${with_tis+set}" = set; then
6704  withval="$with_tis"
6705   case "$withval" in
6706  no)
6707    echo "$ac_t""no" 1>&6
6708    ;;
6709  *)
6710    echo "$ac_t""yes" 1>&6
6711    if test '!' -f $withval/libauth.a -a -f $withval/libfwall.a -a -f $withval/firewall.h; then
6712      { echo "configure: error: TIS libauth.a or libfwall.a or firewall.h not found in $withval: please supply the correct path." 1>&2; exit 1; }
6713    fi
6714    echo "$ac_t""Assuming TIS headers and libraries are in $withval." 1>&6
6715    cat >> confdefs.h <<\EOF
6716#define HAVE_TIS 1
6717EOF
6718
6719    CFLAGS="$CFLAGS -I$withval -DHAVE_TIS"
6720    LIBS="-L$withval -lauth -lfwall $LIBS"
6721    echo "configure: warning: Remember to read README.TIS. The connection between sshd and TIS authentication
6722server is clear text!" 1>&2
6723    ;;
6724  esac
6725else
6726  echo "$ac_t""no" 1>&6
6727
6728fi
6729
6730
6731echo $ac_n "checking whether to use Kerberos""... $ac_c" 1>&6
6732echo "configure:6733: checking whether to use Kerberos" >&5
6733# Check whether --with-kerberos5 or --without-kerberos5 was given.
6734if test "${with_kerberos5+set}" = set; then
6735  withval="$with_kerberos5"
6736   case "$withval" in
6737  yes)
6738    with_kerberos5=/usr/local
6739    ;;
6740  esac
6741else
6742   with_kerberos5=no
6743
6744fi
6745
6746case "$with_kerberos5" in
6747no)
6748  echo "$ac_t""no" 1>&6
6749  ;;
6750*)
6751  echo "$ac_t""yes" 1>&6
6752  cat >> confdefs.h <<\EOF
6753#define KERBEROS 1
6754EOF
6755
6756  cat >> confdefs.h <<\EOF
6757#define KRB5 1
6758EOF
6759
6760  KERBEROS_ROOT="$with_kerberos5"
6761  KERBEROS_INCS="-I${KERBEROS_ROOT}/include"
6762  KERBEROS_LIBS="-L${KERBEROS_ROOT}/lib -lkrb4 -ldes425 -lkrb524 -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
6763  echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
6764echo "configure:6765: checking for dbm_open in -lndbm" >&5
6765ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
6766if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6767  echo $ac_n "(cached) $ac_c" 1>&6
6768else
6769  ac_save_LIBS="$LIBS"
6770LIBS="-lndbm  $LIBS"
6771cat > conftest.$ac_ext <<EOF
6772#line 6773 "configure"
6773#include "confdefs.h"
6774/* Override any gcc2 internal prototype to avoid an error.  */
6775/* We use char because int might match the return type of a gcc2
6776    builtin and then its argument prototype would still apply.  */
6777char dbm_open();
6778
6779int main() {
6780dbm_open()
6781; return 0; }
6782EOF
6783if { (eval echo configure:6784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6784  rm -rf conftest*
6785  eval "ac_cv_lib_$ac_lib_var=yes"
6786else
6787  echo "configure: failed program was:" >&5
6788  cat conftest.$ac_ext >&5
6789  rm -rf conftest*
6790  eval "ac_cv_lib_$ac_lib_var=no"
6791fi
6792rm -f conftest*
6793LIBS="$ac_save_LIBS"
6794
6795fi
6796if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6797  echo "$ac_t""yes" 1>&6
6798  KERBEROS_LIBS="$KERBEROS_LIBS -lndbm"
6799else
6800  echo "$ac_t""no" 1>&6
6801fi
6802
6803  echo $ac_n "checking for compile in -lgen""... $ac_c" 1>&6
6804echo "configure:6805: checking for compile in -lgen" >&5
6805ac_lib_var=`echo gen'_'compile | sed 'y%./+-%__p_%'`
6806if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6807  echo $ac_n "(cached) $ac_c" 1>&6
6808else
6809  ac_save_LIBS="$LIBS"
6810LIBS="-lgen  $LIBS"
6811cat > conftest.$ac_ext <<EOF
6812#line 6813 "configure"
6813#include "confdefs.h"
6814/* Override any gcc2 internal prototype to avoid an error.  */
6815/* We use char because int might match the return type of a gcc2
6816    builtin and then its argument prototype would still apply.  */
6817char compile();
6818
6819int main() {
6820compile()
6821; return 0; }
6822EOF
6823if { (eval echo configure:6824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6824  rm -rf conftest*
6825  eval "ac_cv_lib_$ac_lib_var=yes"
6826else
6827  echo "configure: failed program was:" >&5
6828  cat conftest.$ac_ext >&5
6829  rm -rf conftest*
6830  eval "ac_cv_lib_$ac_lib_var=no"
6831fi
6832rm -f conftest*
6833LIBS="$ac_save_LIBS"
6834
6835fi
6836if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6837  echo "$ac_t""yes" 1>&6
6838  KERBEROS_LIBS="$KERBEROS_LIBS -lgen"
6839else
6840  echo "$ac_t""no" 1>&6
6841fi
6842
6843  KERBEROS_OBJS="auth-kerberos.o"
6844  ;;
6845esac
6846
6847
6848
6849
6850
6851echo $ac_n "checking whether to enable passing the Kerberos TGT""... $ac_c" 1>&6
6852echo "configure:6853: checking whether to enable passing the Kerberos TGT" >&5
6853# Check whether --enable-kerberos-tgt-passing or --disable-kerberos-tgt-passing was given.
6854if test "${enable_kerberos_tgt_passing+set}" = set; then
6855  enableval="$enable_kerberos_tgt_passing"
6856   case "$enableval" in
6857  no)
6858    echo "$ac_t""no" 1>&6
6859    ;;
6860  *)
6861    if test "$with_kerberos5" = no ; then
6862      echo "$ac_t""no" 1>&6
6863      echo "configure: warning: "Passing Kerberos TGT requires Kerberos5 support."" 1>&2
6864    else
6865      echo "$ac_t""yes" 1>&6
6866      cat >> confdefs.h <<\EOF
6867#define KERBEROS_TGT_PASSING 1
6868EOF
6869
6870    fi
6871    ;;
6872  esac
6873else
6874  echo "$ac_t""no" 1>&6
6875
6876fi
6877
6878
6879echo $ac_n "checking whether to use libwrap""... $ac_c" 1>&6
6880echo "configure:6881: checking whether to use libwrap" >&5
6881# Check whether --with-libwrap or --without-libwrap was given.
6882if test "${with_libwrap+set}" = set; then
6883  withval="$with_libwrap"
6884   case "$withval" in
6885  no)
6886    echo "$ac_t""no" 1>&6
6887    ;;
6888  yes)
6889    echo "$ac_t""yes" 1>&6
6890    echo $ac_n "checking for request_init in -lwrap""... $ac_c" 1>&6
6891echo "configure:6892: checking for request_init in -lwrap" >&5
6892ac_lib_var=`echo wrap'_'request_init | sed 'y%./+-%__p_%'`
6893if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6894  echo $ac_n "(cached) $ac_c" 1>&6
6895else
6896  ac_save_LIBS="$LIBS"
6897LIBS="-lwrap  $LIBS"
6898cat > conftest.$ac_ext <<EOF
6899#line 6900 "configure"
6900#include "confdefs.h"
6901/* Override any gcc2 internal prototype to avoid an error.  */
6902/* We use char because int might match the return type of a gcc2
6903    builtin and then its argument prototype would still apply.  */
6904char request_init();
6905
6906int main() {
6907request_init()
6908; return 0; }
6909EOF
6910if { (eval echo configure:6911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6911  rm -rf conftest*
6912  eval "ac_cv_lib_$ac_lib_var=yes"
6913else
6914  echo "configure: failed program was:" >&5
6915  cat conftest.$ac_ext >&5
6916  rm -rf conftest*
6917  eval "ac_cv_lib_$ac_lib_var=no"
6918fi
6919rm -f conftest*
6920LIBS="$ac_save_LIBS"
6921
6922fi
6923if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6924  echo "$ac_t""yes" 1>&6
6925 
6926        cat >> confdefs.h <<\EOF
6927#define LIBWRAP 1
6928EOF
6929
6930        WRAPLIBS="-lwrap"
6931        cat >> confdefs.h <<\EOF
6932#define HAVE_LIBWRAP 1
6933EOF
6934 
6935else
6936  echo "$ac_t""no" 1>&6
6937fi
6938
6939    ;;
6940  *)
6941    echo "$ac_t""yes" 1>&6
6942    cat >> confdefs.h <<\EOF
6943#define LIBWRAP 1
6944EOF
6945
6946    if test -d "$withval"; then
6947        WRAPLIBS="-L$withval -lwrap"
6948    else
6949        WRAPLIBS="$withval"
6950    fi
6951    OLDLIBS="$LIBS"
6952    LIBS="$WRAPLIBS $LIBS"
6953    cat > conftest.$ac_ext <<EOF
6954#line 6955 "configure"
6955#include "confdefs.h"
6956 int allow_severity; int deny_severity;
6957int main() {
6958 hosts_access();
6959; return 0; }
6960EOF
6961if { (eval echo configure:6962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6962  :
6963else
6964  echo "configure: failed program was:" >&5
6965  cat conftest.$ac_ext >&5
6966  rm -rf conftest*
6967   { echo "configure: error: Could not find the $withval library.  You must first install tcp_wrappers." 1>&2; exit 1; }
6968fi
6969rm -f conftest*
6970    LIBS="$OLDLIBS"
6971    ;;
6972  esac
6973else
6974  echo "$ac_t""no" 1>&6
6975
6976fi
6977
6978
6979
6980
6981echo $ac_n "checking whether to support SOCKS""... $ac_c" 1>&6
6982echo "configure:6983: checking whether to support SOCKS" >&5
6983# Check whether --with-socks or --without-socks was given.
6984if test "${with_socks+set}" = set; then
6985  withval="$with_socks"
6986   case "$withval" in
6987  no)
6988    echo "$ac_t""no" 1>&6
6989    ;;
6990  yes)
6991    echo "$ac_t""yes" 1>&6
6992    echo $ac_n "checking for SOCKSconnect in -lsocks5""... $ac_c" 1>&6
6993echo "configure:6994: checking for SOCKSconnect in -lsocks5" >&5
6994ac_lib_var=`echo socks5'_'SOCKSconnect | sed 'y%./+-%__p_%'`
6995if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6996  echo $ac_n "(cached) $ac_c" 1>&6
6997else
6998  ac_save_LIBS="$LIBS"
6999LIBS="-lsocks5  $LIBS"
7000cat > conftest.$ac_ext <<EOF
7001#line 7002 "configure"
7002#include "confdefs.h"
7003/* Override any gcc2 internal prototype to avoid an error.  */
7004/* We use char because int might match the return type of a gcc2
7005    builtin and then its argument prototype would still apply.  */
7006char SOCKSconnect();
7007
7008int main() {
7009SOCKSconnect()
7010; return 0; }
7011EOF
7012if { (eval echo configure:7013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7013  rm -rf conftest*
7014  eval "ac_cv_lib_$ac_lib_var=yes"
7015else
7016  echo "configure: failed program was:" >&5
7017  cat conftest.$ac_ext >&5
7018  rm -rf conftest*
7019  eval "ac_cv_lib_$ac_lib_var=no"
7020fi
7021rm -f conftest*
7022LIBS="$ac_save_LIBS"
7023
7024fi
7025if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7026  echo "$ac_t""yes" 1>&6
7027 
7028            socks=5
7029            LIBS="-lsocks5 $LIBS"
7030else
7031  echo "$ac_t""no" 1>&6
7032
7033        echo $ac_n "checking for Rconnect in -lsocks""... $ac_c" 1>&6
7034echo "configure:7035: checking for Rconnect in -lsocks" >&5
7035ac_lib_var=`echo socks'_'Rconnect | sed 'y%./+-%__p_%'`
7036if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7037  echo $ac_n "(cached) $ac_c" 1>&6
7038else
7039  ac_save_LIBS="$LIBS"
7040LIBS="-lsocks  $LIBS"
7041cat > conftest.$ac_ext <<EOF
7042#line 7043 "configure"
7043#include "confdefs.h"
7044/* Override any gcc2 internal prototype to avoid an error.  */
7045/* We use char because int might match the return type of a gcc2
7046    builtin and then its argument prototype would still apply.  */
7047char Rconnect();
7048
7049int main() {
7050Rconnect()
7051; return 0; }
7052EOF
7053if { (eval echo configure:7054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7054  rm -rf conftest*
7055  eval "ac_cv_lib_$ac_lib_var=yes"
7056else
7057  echo "configure: failed program was:" >&5
7058  cat conftest.$ac_ext >&5
7059  rm -rf conftest*
7060  eval "ac_cv_lib_$ac_lib_var=no"
7061fi
7062rm -f conftest*
7063LIBS="$ac_save_LIBS"
7064
7065fi
7066if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7067  echo "$ac_t""yes" 1>&6
7068 
7069            socks=4
7070            LIBS="-lsocks $LIBS"
7071else
7072  echo "$ac_t""no" 1>&6
7073
7074                { echo "configure: error: Could not find socks library.  You must first install socks." 1>&2; exit 1; } 
7075fi
7076 
7077fi
7078
7079    ;;
7080  esac
7081else
7082  echo "$ac_t""no" 1>&6
7083
7084fi
7085
7086
7087if test "x$socks" = "x"; then
7088        echo $ac_n "checking whether to support SOCKS5""... $ac_c" 1>&6
7089echo "configure:7090: checking whether to support SOCKS5" >&5
7090        # Check whether --with-socks5 or --without-socks5 was given.
7091if test "${with_socks5+set}" = set; then
7092  withval="$with_socks5"
7093   case "$withval" in
7094          no)
7095            echo "$ac_t""no" 1>&6
7096            ;;
7097          *)
7098            echo "$ac_t""yes" 1>&6
7099            socks=5
7100            if test "x$withval" = "xyes"; then
7101              withval="-lsocks5"
7102            else
7103              if test -d "$withval"; then
7104                if test -d "$withval/include"; then
7105                  CFLAGS="$CFLAGS -I$withval/include"
7106                else
7107                  CFLAGS="$CFLAGS -I$withval"
7108                fi
7109                if test -d "$withval/lib"; then
7110                  withval="-L$withval/lib -lsocks5"
7111                else
7112                  withval="-L$withval -lsocks5"
7113                fi
7114              fi
7115            fi
7116            LIBS="$withval $LIBS"
7117            # If Socks was compiled with Kerberos support, we will need
7118            # to link against kerberos libraries.  Temporarily append
7119            # to LIBS.  This is harmless if there is no kerberos support.
7120            TMPLIBS="$LIBS"
7121            LIBS="$LIBS $KERBEROS_LIBS"
7122            cat > conftest.$ac_ext <<EOF
7123#line 7124 "configure"
7124#include "confdefs.h"
7125
7126int main() {
7127 SOCKSconnect();
7128; return 0; }
7129EOF
7130if { (eval echo configure:7131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7131  :
7132else
7133  echo "configure: failed program was:" >&5
7134  cat conftest.$ac_ext >&5
7135  rm -rf conftest*
7136   { echo "configure: error: Could not find the $withval library.  You must first install socks5." 1>&2; exit 1; }
7137fi
7138rm -f conftest*
7139            LIBS="$TMPLIBS"
7140            ;;
7141          esac
7142else
7143  echo "$ac_t""no" 1>&6
7144       
7145fi
7146
7147fi
7148
7149if test "x$socks" = "x"; then
7150        echo $ac_n "checking whether to support SOCKS4""... $ac_c" 1>&6
7151echo "configure:7152: checking whether to support SOCKS4" >&5
7152        # Check whether --with-socks4 or --without-socks4 was given.
7153if test "${with_socks4+set}" = set; then
7154  withval="$with_socks4"
7155   case "$withval" in
7156          no)
7157            echo "$ac_t""no" 1>&6
7158            ;;
7159          *)
7160            echo "$ac_t""yes" 1>&6
7161            socks=4
7162            if test "x$withval" = "xyes"; then
7163              withval="-lsocks"
7164            else
7165              if test -d "$withval"; then
7166                withval="-L$withval -lsocks"
7167              fi
7168            fi
7169            LIBS="$withval $LIBS"
7170            cat > conftest.$ac_ext <<EOF
7171#line 7172 "configure"
7172#include "confdefs.h"
7173
7174int main() {
7175 Rconnect();
7176; return 0; }
7177EOF
7178if { (eval echo configure:7179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7179  :
7180else
7181  echo "configure: failed program was:" >&5
7182  cat conftest.$ac_ext >&5
7183  rm -rf conftest*
7184   { echo "configure: error: Could not find the $withval library.  You must first install socks." 1>&2; exit 1; }
7185fi
7186rm -f conftest*
7187            ;;
7188          esac
7189else
7190  echo "$ac_t""no" 1>&6
7191       
7192fi
7193
7194fi
7195
7196
7197
7198if test "x$socks" = "x4"; then
7199    cat >> confdefs.h <<\EOF
7200#define SOCKS 1
7201EOF
7202
7203    cat >> confdefs.h <<\EOF
7204#define SOCKS4 1
7205EOF
7206
7207fi
7208
7209if test "x$socks" = "x5"; then
7210    cat >> confdefs.h <<\EOF
7211#define SOCKS 1
7212EOF
7213
7214    cat >> confdefs.h <<\EOF
7215#define SOCKS5 1
7216EOF
7217
7218    for ac_hdr in socks.h
7219do
7220ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7221echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7222echo "configure:7223: checking for $ac_hdr" >&5
7223if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7224  echo $ac_n "(cached) $ac_c" 1>&6
7225else
7226  cat > conftest.$ac_ext <<EOF
7227#line 7228 "configure"
7228#include "confdefs.h"
7229#include <$ac_hdr>
7230EOF
7231ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7232{ (eval echo configure:7233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7233ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7234if test -z "$ac_err"; then
7235  rm -rf conftest*
7236  eval "ac_cv_header_$ac_safe=yes"
7237else
7238  echo "$ac_err" >&5
7239  echo "configure: failed program was:" >&5
7240  cat conftest.$ac_ext >&5
7241  rm -rf conftest*
7242  eval "ac_cv_header_$ac_safe=no"
7243fi
7244rm -f conftest*
7245fi
7246if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7247  echo "$ac_t""yes" 1>&6
7248    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7249  cat >> confdefs.h <<EOF
7250#define $ac_tr_hdr 1
7251EOF
7252 
7253else
7254  echo "$ac_t""no" 1>&6
7255fi
7256done
7257
7258    if test "x$ac_cv_header_socks_h" != "xyes"; then
7259      cat >> confdefs.h <<\EOF
7260#define Rconnect SOCKSconnect
7261EOF
7262
7263      cat >> confdefs.h <<\EOF
7264#define Rgetsockname SOCKSgetsockname
7265EOF
7266
7267      cat >> confdefs.h <<\EOF
7268#define Rgetpeername SOCKSgetpeername
7269EOF
7270
7271      cat >> confdefs.h <<\EOF
7272#define Rbind SOCKSbind
7273EOF
7274
7275      cat >> confdefs.h <<\EOF
7276#define Raccept SOCKSaccept
7277EOF
7278
7279      cat >> confdefs.h <<\EOF
7280#define Rlisten SOCKSlisten
7281EOF
7282
7283      cat >> confdefs.h <<\EOF
7284#define Rselect SOCKSselect
7285EOF
7286
7287      cat >> confdefs.h <<\EOF
7288#define Rrecvfrom SOCKSrecvfrom
7289EOF
7290
7291      cat >> confdefs.h <<\EOF
7292#define Rsendto SOCKSsendto
7293EOF
7294
7295      cat >> confdefs.h <<\EOF
7296#define Rrecv SOCKSrecv
7297EOF
7298
7299      cat >> confdefs.h <<\EOF
7300#define Rsend SOCKSsend
7301EOF
7302
7303      cat >> confdefs.h <<\EOF
7304#define Rread SOCKSread
7305EOF
7306
7307      cat >> confdefs.h <<\EOF
7308#define Rwrite SOCKSwrite
7309EOF
7310
7311      cat >> confdefs.h <<\EOF
7312#define Rrresvport SOCKSrresvport
7313EOF
7314
7315      cat >> confdefs.h <<\EOF
7316#define Rshutdown SOCKSshutdown
7317EOF
7318
7319      cat >> confdefs.h <<\EOF
7320#define Rlisten SOCKSlisten
7321EOF
7322
7323      cat >> confdefs.h <<\EOF
7324#define Rclose SOCKSclose
7325EOF
7326
7327      cat >> confdefs.h <<\EOF
7328#define Rdup SOCKSdup
7329EOF
7330
7331      cat >> confdefs.h <<\EOF
7332#define Rdup2 SOCKSdup2
7333EOF
7334
7335      cat >> confdefs.h <<\EOF
7336#define Rfclose SOCKSfclose
7337EOF
7338
7339      cat >> confdefs.h <<\EOF
7340#define Rgethostbyname SOCKSgethostbyname
7341EOF
7342
7343    fi
7344fi
7345
7346echo $ac_n "checking whether to use rsaref""... $ac_c" 1>&6
7347echo "configure:7348: checking whether to use rsaref" >&5
7348# Check whether --with-rsaref or --without-rsaref was given.
7349if test "${with_rsaref+set}" = set; then
7350  withval="$with_rsaref"
7351   case "$withval" in
7352  no)
7353       echo "$ac_t""no" 1>&6
7354       ;;
7355  *)
7356       echo "$ac_t""yes" 1>&6
7357       if test "x$withval" = "xyes"; then
7358          withval="-lrsaref"
7359          RSAREFDEP="rsaref2/source/librsaref.a"
7360          LDFLAGS="-Lrsaref2/source $LDFLAGS"
7361       else
7362          if test -d "$withval"; then
7363             withval="-L$withval -lrsaref"
7364          fi
7365       fi
7366       cat >> confdefs.h <<\EOF
7367#define RSAREF 1
7368EOF
7369
7370       LIBS="$withval $LIBS"
7371       ;;
7372  esac
7373else
7374  echo "$ac_t""no" 1>&6
7375
7376fi
7377
7378
7379# This allows group writeability in userfile_check_owner_permissions()
7380echo $ac_n "checking whether to allow group writeability""... $ac_c" 1>&6
7381echo "configure:7382: checking whether to allow group writeability" >&5
7382# Check whether --enable-group-writeability or --disable-group-writeability was given.
7383if test "${enable_group_writeability+set}" = set; then
7384  enableval="$enable_group_writeability"
7385   echo "$ac_t""yes" 1>&6
7386    cat >> confdefs.h <<\EOF
7387#define ALLOW_GROUP_WRITEABILITY 1
7388EOF
7389 
7390else
7391   echo "$ac_t""no" 1>&6
7392
7393fi
7394
7395
7396echo $ac_n "checking whether to disable forwardings in server""... $ac_c" 1>&6
7397echo "configure:7398: checking whether to disable forwardings in server" >&5
7398# Check whether --enable-server-port-forwardings or --disable-server-port-forwardings was given.
7399if test "${enable_server_port_forwardings+set}" = set; then
7400  enableval="$enable_server_port_forwardings"
7401   case "$enableval" in
7402  no)
7403       cat >> confdefs.h <<\EOF
7404#define SSHD_NO_PORT_FORWARDING 1
7405EOF
7406
7407       echo "$ac_t""yes" 1>&6
7408       ;;
7409  *)   echo "$ac_t""no" 1>&6
7410       ;;
7411  esac
7412else
7413  echo "$ac_t""no" 1>&6
7414
7415fi
7416
7417
7418echo $ac_n "checking whether to disable forwardings in client""... $ac_c" 1>&6
7419echo "configure:7420: checking whether to disable forwardings in client" >&5
7420# Check whether --enable-client-port-forwardings or --disable-client-port-forwardings was given.
7421if test "${enable_client_port_forwardings+set}" = set; then
7422  enableval="$enable_client_port_forwardings"
7423   case "$enableval" in
7424  no)
7425       cat >> confdefs.h <<\EOF
7426#define SSH_NO_PORT_FORWARDING 1
7427EOF
7428
7429       echo "$ac_t""yes" 1>&6
7430       ;;
7431  *)   echo "$ac_t""no" 1>&6
7432       ;;
7433  esac
7434else
7435  echo "$ac_t""no" 1>&6
7436
7437fi
7438
7439
7440echo $ac_n "checking whether to disable X11 forwarding in server""... $ac_c" 1>&6
7441echo "configure:7442: checking whether to disable X11 forwarding in server" >&5
7442# Check whether --enable-server-x11-forwarding or --disable-server-x11-forwarding was given.
7443if test "${enable_server_x11_forwarding+set}" = set; then
7444  enableval="$enable_server_x11_forwarding"
7445   case "$enableval" in
7446  no)
7447       cat >> confdefs.h <<\EOF
7448#define SSHD_NO_X11_FORWARDING 1
7449EOF
7450
7451       echo "$ac_t""yes" 1>&6
7452       ;;
7453  *)   echo "$ac_t""no" 1>&6
7454       ;;
7455  esac
7456else
7457  echo "$ac_t""no" 1>&6
7458
7459fi
7460
7461
7462echo $ac_n "checking whether to disable X11 forwarding in client""... $ac_c" 1>&6
7463echo "configure:7464: checking whether to disable X11 forwarding in client" >&5
7464# Check whether --enable-client-x11-forwarding or --disable-client-x11-forwarding was given.
7465if test "${enable_client_x11_forwarding+set}" = set; then
7466  enableval="$enable_client_x11_forwarding"
7467   case "$enableval" in
7468  no)
7469       cat >> confdefs.h <<\EOF
7470#define SSH_NO_X11_FORWARDING 1
7471EOF
7472
7473       echo "$ac_t""yes" 1>&6
7474       ;;
7475  *)   echo "$ac_t""no" 1>&6
7476       ;;
7477  esac
7478else
7479  echo "$ac_t""no" 1>&6
7480
7481fi
7482
7483
7484echo $ac_n "checking whether to install ssh as suid root""... $ac_c" 1>&6
7485echo "configure:7486: checking whether to install ssh as suid root" >&5
7486# Check whether --enable-suid-ssh or --disable-suid-ssh was given.
7487if test "${enable_suid_ssh+set}" = set; then
7488  enableval="$enable_suid_ssh"
7489   case "$enableval" in
7490  no)
7491       echo "$ac_t""no" 1>&6
7492       SSHINSTALLMODE=0755
7493       ;;
7494  *)   echo "$ac_t""yes" 1>&6
7495       SSHINSTALLMODE=04711
7496       ;;
7497  esac
7498else
7499  echo "$ac_t""yes" 1>&6
7500  SSHINSTALLMODE=04711
7501
7502fi
7503
7504
7505echo $ac_n "checking whether to enable TCP_NODELAY""... $ac_c" 1>&6
7506echo "configure:7507: checking whether to enable TCP_NODELAY" >&5
7507# Check whether --enable-tcp-nodelay or --disable-tcp-nodelay was given.
7508if test "${enable_tcp_nodelay+set}" = set; then
7509  enableval="$enable_tcp_nodelay"
7510   case "$enableval" in
7511  no)
7512       echo "$ac_t""no" 1>&6
7513       ;;
7514  *)
7515       cat >> confdefs.h <<\EOF
7516#define ENABLE_TCP_NODELAY 1
7517EOF
7518
7519       echo "$ac_t""yes" 1>&6
7520  esac
7521else
7522  echo "$ac_t""yes" 1>&6
7523  cat >> confdefs.h <<\EOF
7524#define ENABLE_TCP_NODELAY 1
7525EOF
7526
7527
7528fi
7529
7530
7531echo $ac_n "checking whether to enable SO_LINGER""... $ac_c" 1>&6
7532echo "configure:7533: checking whether to enable SO_LINGER" >&5
7533# Check whether --enable-so-linger or --disable-so-linger was given.
7534if test "${enable_so_linger+set}" = set; then
7535  enableval="$enable_so_linger"
7536   case "$enableval" in
7537  yes)
7538       echo "$ac_t""yes" 1>&6
7539       cat >> confdefs.h <<\EOF
7540#define ENABLE_SO_LINGER 1
7541EOF
7542
7543       ;;
7544  *)
7545       echo "$ac_t""no" 1>&6
7546  esac
7547else
7548  echo "$ac_t""no" 1>&6
7549
7550fi
7551
7552
7553echo $ac_n "checking whether to include scp statistics at all""... $ac_c" 1>&6
7554echo "configure:7555: checking whether to include scp statistics at all" >&5
7555# Check whether --with-scp-stats or --without-scp-stats was given.
7556if test "${with_scp_stats+set}" = set; then
7557  withval="$with_scp_stats"
7558   case "withvalval" in
7559  no)
7560       echo "$ac_t""no" 1>&6
7561       ;;
7562  *)
7563       cat >> confdefs.h <<\EOF
7564#define WITH_SCP_STATS 1
7565EOF
7566
7567       echo "$ac_t""yes" 1>&6
7568  esac
7569else
7570  echo "$ac_t""yes" 1>&6
7571  cat >> confdefs.h <<\EOF
7572#define WITH_SCP_STATS 1
7573EOF
7574
7575
7576fi
7577
7578
7579echo $ac_n "checking whether to enable scp statistics""... $ac_c" 1>&6
7580echo "configure:7581: checking whether to enable scp statistics" >&5
7581# Check whether --enable-scp-stats or --disable-scp-stats was given.
7582if test "${enable_scp_stats+set}" = set; then
7583  enableval="$enable_scp_stats"
7584   case "$enableval" in
7585  no)
7586       echo "$ac_t""no" 1>&6
7587       ;;
7588  *)
7589       cat >> confdefs.h <<\EOF
7590#define SCP_STATISTICS_ENABLED 1
7591EOF
7592
7593       echo "$ac_t""yes" 1>&6
7594  esac
7595else
7596  echo "$ac_t""yes" 1>&6
7597  cat >> confdefs.h <<\EOF
7598#define SCP_STATISTICS_ENABLED 1
7599EOF
7600
7601
7602fi
7603
7604
7605echo $ac_n "checking whether to enable scp statistics for all files""... $ac_c" 1>&6
7606echo "configure:7607: checking whether to enable scp statistics for all files" >&5
7607# Check whether --enable-all-scp-stats or --disable-all-scp-stats was given.
7608if test "${enable_all_scp_stats+set}" = set; then
7609  enableval="$enable_all_scp_stats"
7610   case "$enableval" in
7611  no)
7612       echo "$ac_t""no" 1>&6
7613       ;;
7614  *)
7615       cat >> confdefs.h <<\EOF
7616#define SCP_ALL_STATISTICS_ENABLED 1
7617EOF
7618
7619       echo "$ac_t""yes" 1>&6
7620  esac
7621else
7622  echo "$ac_t""yes" 1>&6
7623  cat >> confdefs.h <<\EOF
7624#define SCP_ALL_STATISTICS_ENABLED 1
7625EOF
7626
7627
7628fi
7629
7630
7631# We include this here only to make it visible in --help; this is only used
7632# in the gmp subdirectory.
7633# Check whether --enable-asm or --disable-asm was given.
7634if test "${enable_asm+set}" = set; then
7635  enableval="$enable_asm"
7636  :
7637fi
7638
7639
7640PIDDIR="/var/run"
7641echo $ac_n "checking where to put sshd.pid""... $ac_c" 1>&6
7642echo "configure:7643: checking where to put sshd.pid" >&5
7643if test '!' -d $PIDDIR; then
7644  PIDDIR="$ETCDIR"
7645fi
7646echo "$ac_t""$PIDDIR" 1>&6
7647
7648subdirs="gmp-2.0.2-ssh-2"
7649
7650
7651if test "$program_transform_name" = s,x,x,; then
7652  program_transform_name=
7653else
7654  # Double any \ or $.  echo might interpret backslashes.
7655  cat <<\EOF_SED > conftestsed
7656s,\\,\\\\,g; s,\$,$$,g
7657EOF_SED
7658  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
7659  rm -f conftestsed
7660fi
7661test "$program_prefix" != NONE &&
7662  program_transform_name="s,^,${program_prefix},; $program_transform_name"
7663# Use a double $ so make ignores it.
7664test "$program_suffix" != NONE &&
7665  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
7666
7667# sed with no file args requires a program.
7668test "$program_transform_name" = "" && program_transform_name="s,x,x,"
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679ATHENA_LIBS=
7680echo $ac_n "checking for res_send""... $ac_c" 1>&6
7681echo "configure:7682: checking for res_send" >&5
7682if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
7683  echo $ac_n "(cached) $ac_c" 1>&6
7684else
7685  cat > conftest.$ac_ext <<EOF
7686#line 7687 "configure"
7687#include "confdefs.h"
7688/* System header to define __stub macros and hopefully few prototypes,
7689    which can conflict with char res_send(); below.  */
7690#include <assert.h>
7691/* Override any gcc2 internal prototype to avoid an error.  */
7692/* We use char because int might match the return type of a gcc2
7693    builtin and then its argument prototype would still apply.  */
7694char res_send();
7695
7696int main() {
7697
7698/* The GNU C library defines this for functions which it implements
7699    to always fail with ENOSYS.  Some functions are actually named
7700    something starting with __ and the normal name is an alias.  */
7701#if defined (__stub_res_send) || defined (__stub___res_send)
7702choke me
7703#else
7704res_send();
7705#endif
7706
7707; return 0; }
7708EOF
7709if { (eval echo configure:7710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7710  rm -rf conftest*
7711  eval "ac_cv_func_res_send=yes"
7712else
7713  echo "configure: failed program was:" >&5
7714  cat conftest.$ac_ext >&5
7715  rm -rf conftest*
7716  eval "ac_cv_func_res_send=no"
7717fi
7718rm -f conftest*
7719fi
7720
7721if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
7722  echo "$ac_t""yes" 1>&6
7723  :
7724else
7725  echo "$ac_t""no" 1>&6
7726echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
7727echo "configure:7728: checking for res_send in -lresolv" >&5
7728ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
7729if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7730  echo $ac_n "(cached) $ac_c" 1>&6
7731else
7732  ac_save_LIBS="$LIBS"
7733LIBS="-lresolv  $LIBS"
7734cat > conftest.$ac_ext <<EOF
7735#line 7736 "configure"
7736#include "confdefs.h"
7737/* Override any gcc2 internal prototype to avoid an error.  */
7738/* We use char because int might match the return type of a gcc2
7739    builtin and then its argument prototype would still apply.  */
7740char res_send();
7741
7742int main() {
7743res_send()
7744; return 0; }
7745EOF
7746if { (eval echo configure:7747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7747  rm -rf conftest*
7748  eval "ac_cv_lib_$ac_lib_var=yes"
7749else
7750  echo "configure: failed program was:" >&5
7751  cat conftest.$ac_ext >&5
7752  rm -rf conftest*
7753  eval "ac_cv_lib_$ac_lib_var=no"
7754fi
7755rm -f conftest*
7756LIBS="$ac_save_LIBS"
7757
7758fi
7759if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7760  echo "$ac_t""yes" 1>&6
7761  ATHENA_LIBS=-lresolv
7762else
7763  echo "$ac_t""no" 1>&6
7764fi
7765
7766fi
7767
7768
7769# Check whether --with-afs or --without-afs was given.
7770if test "${with_afs+set}" = set; then
7771  withval="$with_afs"
7772  :
7773else
7774  with_afs=no
7775fi
7776if test $with_afs != no; then
7777        ATHENA_LIBS="$ATHENA_LIBS -L$with_afs/lib -L$with_afs/lib/afs -lprot -lauth -lrxkad -lubik $with_afs/lib/afs/util.a -laudit -lsys -lrx -llwp -lsys"
7778        echo $ac_n "checking for sigvec""... $ac_c" 1>&6
7779echo "configure:7780: checking for sigvec" >&5
7780if eval "test \"`echo '$''{'ac_cv_func_sigvec'+set}'`\" = set"; then
7781  echo $ac_n "(cached) $ac_c" 1>&6
7782else
7783  cat > conftest.$ac_ext <<EOF
7784#line 7785 "configure"
7785#include "confdefs.h"
7786/* System header to define __stub macros and hopefully few prototypes,
7787    which can conflict with char sigvec(); below.  */
7788#include <assert.h>
7789/* Override any gcc2 internal prototype to avoid an error.  */
7790/* We use char because int might match the return type of a gcc2
7791    builtin and then its argument prototype would still apply.  */
7792char sigvec();
7793
7794int main() {
7795
7796/* The GNU C library defines this for functions which it implements
7797    to always fail with ENOSYS.  Some functions are actually named
7798    something starting with __ and the normal name is an alias.  */
7799#if defined (__stub_sigvec) || defined (__stub___sigvec)
7800choke me
7801#else
7802sigvec();
7803#endif
7804
7805; return 0; }
7806EOF
7807if { (eval echo configure:7808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7808  rm -rf conftest*
7809  eval "ac_cv_func_sigvec=yes"
7810else
7811  echo "configure: failed program was:" >&5
7812  cat conftest.$ac_ext >&5
7813  rm -rf conftest*
7814  eval "ac_cv_func_sigvec=no"
7815fi
7816rm -f conftest*
7817fi
7818
7819if eval "test \"`echo '$ac_cv_func_'sigvec`\" = yes"; then
7820  echo "$ac_t""yes" 1>&6
7821  :
7822else
7823  echo "$ac_t""no" 1>&6
7824echo $ac_n "checking for sigvec in -lucb""... $ac_c" 1>&6
7825echo "configure:7826: checking for sigvec in -lucb" >&5
7826ac_lib_var=`echo ucb'_'sigvec | sed 'y%./+-%__p_%'`
7827if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7828  echo $ac_n "(cached) $ac_c" 1>&6
7829else
7830  ac_save_LIBS="$LIBS"
7831LIBS="-lucb -L/usr/ucblib $LIBS"
7832cat > conftest.$ac_ext <<EOF
7833#line 7834 "configure"
7834#include "confdefs.h"
7835/* Override any gcc2 internal prototype to avoid an error.  */
7836/* We use char because int might match the return type of a gcc2
7837    builtin and then its argument prototype would still apply.  */
7838char sigvec();
7839
7840int main() {
7841sigvec()
7842; return 0; }
7843EOF
7844if { (eval echo configure:7845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7845  rm -rf conftest*
7846  eval "ac_cv_lib_$ac_lib_var=yes"
7847else
7848  echo "configure: failed program was:" >&5
7849  cat conftest.$ac_ext >&5
7850  rm -rf conftest*
7851  eval "ac_cv_lib_$ac_lib_var=no"
7852fi
7853rm -f conftest*
7854LIBS="$ac_save_LIBS"
7855
7856fi
7857if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7858  echo "$ac_t""yes" 1>&6
7859  ATHENA_LIBS="$ATHENA_LIBS -L/usr/ucblib -R/usr/ucblib -lc -lucb"
7860else
7861  echo "$ac_t""no" 1>&6
7862:
7863fi
7864
7865fi
7866
7867        echo $ac_n "checking for insque""... $ac_c" 1>&6
7868echo "configure:7869: checking for insque" >&5
7869if eval "test \"`echo '$''{'ac_cv_func_insque'+set}'`\" = set"; then
7870  echo $ac_n "(cached) $ac_c" 1>&6
7871else
7872  cat > conftest.$ac_ext <<EOF
7873#line 7874 "configure"
7874#include "confdefs.h"
7875/* System header to define __stub macros and hopefully few prototypes,
7876    which can conflict with char insque(); below.  */
7877#include <assert.h>
7878/* Override any gcc2 internal prototype to avoid an error.  */
7879/* We use char because int might match the return type of a gcc2
7880    builtin and then its argument prototype would still apply.  */
7881char insque();
7882
7883int main() {
7884
7885/* The GNU C library defines this for functions which it implements
7886    to always fail with ENOSYS.  Some functions are actually named
7887    something starting with __ and the normal name is an alias.  */
7888#if defined (__stub_insque) || defined (__stub___insque)
7889choke me
7890#else
7891insque();
7892#endif
7893
7894; return 0; }
7895EOF
7896if { (eval echo configure:7897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7897  rm -rf conftest*
7898  eval "ac_cv_func_insque=yes"
7899else
7900  echo "configure: failed program was:" >&5
7901  cat conftest.$ac_ext >&5
7902  rm -rf conftest*
7903  eval "ac_cv_func_insque=no"
7904fi
7905rm -f conftest*
7906fi
7907
7908if eval "test \"`echo '$ac_cv_func_'insque`\" = yes"; then
7909  echo "$ac_t""yes" 1>&6
7910  :
7911else
7912  echo "$ac_t""no" 1>&6
7913echo $ac_n "checking for insque in -lcompat""... $ac_c" 1>&6
7914echo "configure:7915: checking for insque in -lcompat" >&5
7915ac_lib_var=`echo compat'_'insque | sed 'y%./+-%__p_%'`
7916if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7917  echo $ac_n "(cached) $ac_c" 1>&6
7918else
7919  ac_save_LIBS="$LIBS"
7920LIBS="-lcompat  $LIBS"
7921cat > conftest.$ac_ext <<EOF
7922#line 7923 "configure"
7923#include "confdefs.h"
7924/* Override any gcc2 internal prototype to avoid an error.  */
7925/* We use char because int might match the return type of a gcc2
7926    builtin and then its argument prototype would still apply.  */
7927char insque();
7928
7929int main() {
7930insque()
7931; return 0; }
7932EOF
7933if { (eval echo configure:7934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7934  rm -rf conftest*
7935  eval "ac_cv_lib_$ac_lib_var=yes"
7936else
7937  echo "configure: failed program was:" >&5
7938  cat conftest.$ac_ext >&5
7939  rm -rf conftest*
7940  eval "ac_cv_lib_$ac_lib_var=no"
7941fi
7942rm -f conftest*
7943LIBS="$ac_save_LIBS"
7944
7945fi
7946if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7947  echo "$ac_t""yes" 1>&6
7948  ATHENA_LIBS="$ATHENA_LIBS -lcompat"
7949else
7950  echo "$ac_t""no" 1>&6
7951fi
7952
7953fi
7954
7955fi
7956
7957
7958trap '' 1 2 15
7959cat > confcache <<\EOF
7960# This file is a shell script that caches the results of configure
7961# tests run on this system so they can be shared between configure
7962# scripts and configure runs.  It is not useful on other systems.
7963# If it contains results you don't want to keep, you may remove or edit it.
7964#
7965# By default, configure uses ./config.cache as the cache file,
7966# creating it if it does not exist already.  You can give configure
7967# the --cache-file=FILE option to use a different cache file; that is
7968# what configure does when it calls configure scripts in
7969# subdirectories, so they share the cache.
7970# Giving --cache-file=/dev/null disables caching, for debugging configure.
7971# config.status only pays attention to the cache file if you give it the
7972# --recheck option to rerun configure.
7973#
7974EOF
7975# The following way of writing the cache mishandles newlines in values,
7976# but we know of no workaround that is simple, portable, and efficient.
7977# So, don't put newlines in cache variables' values.
7978# Ultrix sh set writes to stderr and can't be redirected directly,
7979# and sets the high bit in the cache file unless we assign to the vars.
7980(set) 2>&1 |
7981  case `(ac_space=' '; set | grep ac_space) 2>&1` in
7982  *ac_space=\ *)
7983    # `set' does not quote correctly, so add quotes (double-quote substitution
7984    # turns \\\\ into \\, and sed turns \\ into \).
7985    sed -n \
7986      -e "s/'/'\\\\''/g" \
7987      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7988    ;;
7989  *)
7990    # `set' quotes correctly as required by POSIX, so do not add quotes.
7991    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7992    ;;
7993  esac >> confcache
7994if cmp -s $cache_file confcache; then
7995  :
7996else
7997  if test -w $cache_file; then
7998    echo "updating cache $cache_file"
7999    cat confcache > $cache_file
8000  else
8001    echo "not updating unwritable cache $cache_file"
8002  fi
8003fi
8004rm -f confcache
8005
8006trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8007
8008test "x$prefix" = xNONE && prefix=$ac_default_prefix
8009# Let make expand exec_prefix.
8010test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8011
8012# Any assignment to VPATH causes Sun make to only execute
8013# the first set of double-colon rules, so remove it if not needed.
8014# If there is a colon in the path, we need to keep it.
8015if test "x$srcdir" = x.; then
8016  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
8017fi
8018
8019trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8020
8021DEFS=-DHAVE_CONFIG_H
8022
8023# Without the "./", some shells look in PATH for config.status.
8024: ${CONFIG_STATUS=./config.status}
8025
8026echo creating $CONFIG_STATUS
8027rm -f $CONFIG_STATUS
8028cat > $CONFIG_STATUS <<EOF
8029#! /bin/sh
8030# Generated automatically by configure.
8031# Run this file to recreate the current configuration.
8032# This directory was configured as follows,
8033# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8034#
8035# $0 $ac_configure_args
8036#
8037# Compiler output produced by configure, useful for debugging
8038# configure, is in ./config.log if it exists.
8039
8040ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8041for ac_option
8042do
8043  case "\$ac_option" in
8044  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8045    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8046    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8047  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8048    echo "$CONFIG_STATUS generated by autoconf version 2.13"
8049    exit 0 ;;
8050  -help | --help | --hel | --he | --h)
8051    echo "\$ac_cs_usage"; exit 0 ;;
8052  *) echo "\$ac_cs_usage"; exit 1 ;;
8053  esac
8054done
8055
8056ac_given_srcdir=$srcdir
8057ac_given_INSTALL="$INSTALL"
8058
8059trap 'rm -fr `echo "Makefile sshd.8 ssh.1 make-ssh-known-hosts.1 zlib-1.0.4/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8060EOF
8061cat >> $CONFIG_STATUS <<EOF
8062
8063# Protect against being on the right side of a sed subst in config.status.
8064sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8065 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8066$ac_vpsub
8067$extrasub
8068s%@SHELL@%$SHELL%g
8069s%@CFLAGS@%$CFLAGS%g
8070s%@CPPFLAGS@%$CPPFLAGS%g
8071s%@CXXFLAGS@%$CXXFLAGS%g
8072s%@FFLAGS@%$FFLAGS%g
8073s%@DEFS@%$DEFS%g
8074s%@LDFLAGS@%$LDFLAGS%g
8075s%@LIBS@%$LIBS%g
8076s%@exec_prefix@%$exec_prefix%g
8077s%@prefix@%$prefix%g
8078s%@program_transform_name@%$program_transform_name%g
8079s%@bindir@%$bindir%g
8080s%@sbindir@%$sbindir%g
8081s%@libexecdir@%$libexecdir%g
8082s%@datadir@%$datadir%g
8083s%@sysconfdir@%$sysconfdir%g
8084s%@sharedstatedir@%$sharedstatedir%g
8085s%@localstatedir@%$localstatedir%g
8086s%@libdir@%$libdir%g
8087s%@includedir@%$includedir%g
8088s%@oldincludedir@%$oldincludedir%g
8089s%@infodir@%$infodir%g
8090s%@mandir@%$mandir%g
8091s%@host@%$host%g
8092s%@host_alias@%$host_alias%g
8093s%@host_cpu@%$host_cpu%g
8094s%@host_vendor@%$host_vendor%g
8095s%@host_os@%$host_os%g
8096s%@CC@%$CC%g
8097s%@CPP@%$CPP%g
8098s%@LIBOBJS@%$LIBOBJS%g
8099s%@LN_S@%$LN_S%g
8100s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8101s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8102s%@INSTALL_DATA@%$INSTALL_DATA%g
8103s%@AR@%$AR%g
8104s%@RANLIB@%$RANLIB%g
8105s%@MAKEDEP@%$MAKEDEP%g
8106s%@X_CFLAGS@%$X_CFLAGS%g
8107s%@X_PRE_LIBS@%$X_PRE_LIBS%g
8108s%@X_LIBS@%$X_LIBS%g
8109s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
8110s%@PASSWD_PATH@%$PASSWD_PATH%g
8111s%@XAUTH_PATH@%$XAUTH_PATH%g
8112s%@X_PROGRAMS@%$X_PROGRAMS%g
8113s%@PERL@%$PERL%g
8114s%@PATH_LOGIN@%$PATH_LOGIN%g
8115s%@RSH_PATH@%$RSH_PATH%g
8116s%@KERBEROS_ROOT@%$KERBEROS_ROOT%g
8117s%@KERBEROS_INCS@%$KERBEROS_INCS%g
8118s%@KERBEROS_LIBS@%$KERBEROS_LIBS%g
8119s%@KERBEROS_OBJS@%$KERBEROS_OBJS%g
8120s%@WRAPLIBS@%$WRAPLIBS%g
8121s%@subdirs@%$subdirs%g
8122s%@ETCDIR@%$ETCDIR%g
8123s%@PIDDIR@%$PIDDIR%g
8124s%@RSAREFDEP@%$RSAREFDEP%g
8125s%@CONFOBJS@%$CONFOBJS%g
8126s%@SSHCONFOBJS@%$SSHCONFOBJS%g
8127s%@SSHDCONFOBJS@%$SSHDCONFOBJS%g
8128s%@SSHINSTALLMODE@%$SSHINSTALLMODE%g
8129s%@ATHENA_LIBS@%$ATHENA_LIBS%g
8130
8131CEOF
8132EOF
8133
8134cat >> $CONFIG_STATUS <<\EOF
8135
8136# Split the substitutions into bite-sized pieces for seds with
8137# small command number limits, like on Digital OSF/1 and HP-UX.
8138ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8139ac_file=1 # Number of current file.
8140ac_beg=1 # First line for current file.
8141ac_end=$ac_max_sed_cmds # Line after last line for current file.
8142ac_more_lines=:
8143ac_sed_cmds=""
8144while $ac_more_lines; do
8145  if test $ac_beg -gt 1; then
8146    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8147  else
8148    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8149  fi
8150  if test ! -s conftest.s$ac_file; then
8151    ac_more_lines=false
8152    rm -f conftest.s$ac_file
8153  else
8154    if test -z "$ac_sed_cmds"; then
8155      ac_sed_cmds="sed -f conftest.s$ac_file"
8156    else
8157      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8158    fi
8159    ac_file=`expr $ac_file + 1`
8160    ac_beg=$ac_end
8161    ac_end=`expr $ac_end + $ac_max_sed_cmds`
8162  fi
8163done
8164if test -z "$ac_sed_cmds"; then
8165  ac_sed_cmds=cat
8166fi
8167EOF
8168
8169cat >> $CONFIG_STATUS <<EOF
8170
8171CONFIG_FILES=\${CONFIG_FILES-"Makefile sshd.8 ssh.1 make-ssh-known-hosts.1 zlib-1.0.4/Makefile"}
8172EOF
8173cat >> $CONFIG_STATUS <<\EOF
8174for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8175  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8176  case "$ac_file" in
8177  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8178       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8179  *) ac_file_in="${ac_file}.in" ;;
8180  esac
8181
8182  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8183
8184  # Remove last slash and all that follows it.  Not all systems have dirname.
8185  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8186  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8187    # The file is in a subdirectory.
8188    test ! -d "$ac_dir" && mkdir "$ac_dir"
8189    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8190    # A "../" for each directory in $ac_dir_suffix.
8191    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8192  else
8193    ac_dir_suffix= ac_dots=
8194  fi
8195
8196  case "$ac_given_srcdir" in
8197  .)  srcdir=.
8198      if test -z "$ac_dots"; then top_srcdir=.
8199      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8200  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8201  *) # Relative path.
8202    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8203    top_srcdir="$ac_dots$ac_given_srcdir" ;;
8204  esac
8205
8206  case "$ac_given_INSTALL" in
8207  [/$]*) INSTALL="$ac_given_INSTALL" ;;
8208  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8209  esac
8210
8211  echo creating "$ac_file"
8212  rm -f "$ac_file"
8213  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8214  case "$ac_file" in
8215  *Makefile*) ac_comsub="1i\\
8216# $configure_input" ;;
8217  *) ac_comsub= ;;
8218  esac
8219
8220  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8221  sed -e "$ac_comsub
8222s%@configure_input@%$configure_input%g
8223s%@srcdir@%$srcdir%g
8224s%@top_srcdir@%$top_srcdir%g
8225s%@INSTALL@%$INSTALL%g
8226" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8227fi; done
8228rm -f conftest.s*
8229
8230# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8231# NAME is the cpp macro being defined and VALUE is the value it is being given.
8232#
8233# ac_d sets the value in "#define NAME VALUE" lines.
8234ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
8235ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
8236ac_dC='\3'
8237ac_dD='%g'
8238# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8239ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8240ac_uB='\([      ]\)%\1#\2define\3'
8241ac_uC=' '
8242ac_uD='\4%g'
8243# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8244ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8245ac_eB='$%\1#\2define\3'
8246ac_eC=' '
8247ac_eD='%g'
8248
8249if test "${CONFIG_HEADERS+set}" != set; then
8250EOF
8251cat >> $CONFIG_STATUS <<EOF
8252  CONFIG_HEADERS="config.h"
8253EOF
8254cat >> $CONFIG_STATUS <<\EOF
8255fi
8256for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8257  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8258  case "$ac_file" in
8259  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8260       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8261  *) ac_file_in="${ac_file}.in" ;;
8262  esac
8263
8264  echo creating $ac_file
8265
8266  rm -f conftest.frag conftest.in conftest.out
8267  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8268  cat $ac_file_inputs > conftest.in
8269
8270EOF
8271
8272# Transform confdefs.h into a sed script conftest.vals that substitutes
8273# the proper values into config.h.in to produce config.h.  And first:
8274# Protect against being on the right side of a sed subst in config.status.
8275# Protect against being in an unquoted here document in config.status.
8276rm -f conftest.vals
8277cat > conftest.hdr <<\EOF
8278s/[\\&%]/\\&/g
8279s%[\\$`]%\\&%g
8280s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8281s%ac_d%ac_u%gp
8282s%ac_u%ac_e%gp
8283EOF
8284sed -n -f conftest.hdr confdefs.h > conftest.vals
8285rm -f conftest.hdr
8286
8287# This sed command replaces #undef with comments.  This is necessary, for
8288# example, in the case of _POSIX_SOURCE, which is predefined and required
8289# on some systems where configure will not decide to define it.
8290cat >> conftest.vals <<\EOF
8291s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8292EOF
8293
8294# Break up conftest.vals because some shells have a limit on
8295# the size of here documents, and old seds have small limits too.
8296
8297rm -f conftest.tail
8298while :
8299do
8300  ac_lines=`grep -c . conftest.vals`
8301  # grep -c gives empty output for an empty file on some AIX systems.
8302  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8303  # Write a limited-size here document to conftest.frag.
8304  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8305  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8306  echo 'CEOF
8307  sed -f conftest.frag conftest.in > conftest.out
8308  rm -f conftest.in
8309  mv conftest.out conftest.in
8310' >> $CONFIG_STATUS
8311  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8312  rm -f conftest.vals
8313  mv conftest.tail conftest.vals
8314done
8315rm -f conftest.vals
8316
8317cat >> $CONFIG_STATUS <<\EOF
8318  rm -f conftest.frag conftest.h
8319  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
8320  cat conftest.in >> conftest.h
8321  rm -f conftest.in
8322  if cmp -s $ac_file conftest.h 2>/dev/null; then
8323    echo "$ac_file is unchanged"
8324    rm -f conftest.h
8325  else
8326    # Remove last slash and all that follows it.  Not all systems have dirname.
8327      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8328      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8329      # The file is in a subdirectory.
8330      test ! -d "$ac_dir" && mkdir "$ac_dir"
8331    fi
8332    rm -f $ac_file
8333    mv conftest.h $ac_file
8334  fi
8335fi; done
8336
8337EOF
8338cat >> $CONFIG_STATUS <<EOF
8339
8340EOF
8341cat >> $CONFIG_STATUS <<\EOF
8342
8343exit 0
8344EOF
8345chmod +x $CONFIG_STATUS
8346rm -fr confdefs* $ac_clean_files
8347test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8348
8349if test "$no_recursion" != yes; then
8350
8351  # Remove --cache-file and --srcdir arguments so they do not pile up.
8352  ac_sub_configure_args=
8353  ac_prev=
8354  for ac_arg in $ac_configure_args; do
8355    if test -n "$ac_prev"; then
8356      ac_prev=
8357      continue
8358    fi
8359    case "$ac_arg" in
8360    -cache-file | --cache-file | --cache-fil | --cache-fi \
8361    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8362      ac_prev=cache_file ;;
8363    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8364    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8365      ;;
8366    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8367      ac_prev=srcdir ;;
8368    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8369      ;;
8370    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8371    esac
8372  done
8373
8374  for ac_config_dir in gmp-2.0.2-ssh-2; do
8375
8376    # Do not complain, so a configure script can configure whichever
8377    # parts of a large source tree are present.
8378    if test ! -d $srcdir/$ac_config_dir; then
8379      continue
8380    fi
8381
8382    echo configuring in $ac_config_dir
8383
8384    case "$srcdir" in
8385    .) ;;
8386    *)
8387      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
8388      else
8389        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
8390      fi
8391      ;;
8392    esac
8393
8394    ac_popdir=`pwd`
8395    cd $ac_config_dir
8396
8397      # A "../" for each directory in /$ac_config_dir.
8398      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
8399
8400    case "$srcdir" in
8401    .) # No --srcdir option.  We are building in place.
8402      ac_sub_srcdir=$srcdir ;;
8403    /*) # Absolute path.
8404      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
8405    *) # Relative path.
8406      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
8407    esac
8408
8409    # Check for guested configure; otherwise get Cygnus style configure.
8410    if test -f $ac_sub_srcdir/configure; then
8411      ac_sub_configure=$ac_sub_srcdir/configure
8412    elif test -f $ac_sub_srcdir/configure.in; then
8413      ac_sub_configure=$ac_configure
8414    else
8415      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
8416      ac_sub_configure=
8417    fi
8418
8419    # The recursion is here.
8420    if test -n "$ac_sub_configure"; then
8421
8422      # Make the cache file name correct relative to the subdirectory.
8423      case "$cache_file" in
8424      /*) ac_sub_cache_file=$cache_file ;;
8425      *) # Relative path.
8426        ac_sub_cache_file="$ac_dots$cache_file" ;;
8427      esac
8428  case "$ac_given_INSTALL" in
8429        [/$]*) INSTALL="$ac_given_INSTALL" ;;
8430        *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8431        esac
8432
8433      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
8434      # The eval makes quoting arguments work.
8435      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
8436      then :
8437      else
8438        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
8439      fi
8440    fi
8441
8442    cd $ac_popdir
8443  done
8444fi
8445
Note: See TracBrowser for help on using the repository browser.