]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - crypto/heimdal/configure
import of heimdal 0.3f
[FreeBSD/FreeBSD.git] / crypto / heimdal / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.278 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.49b for heimdal 0.3f.
5 #
6 # Report bugs to <heimdal-bugs@pdc.kth.se>.
7 #
8 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000
9 # Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18   set -o posix
19 fi
20
21 if expr a : '\(a\)' >/dev/null 2>&1; then
22   as_expr=expr
23 else
24   as_expr=false
25 fi
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33 # NLS nuisances.
34 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
35 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
36 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
37 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
38 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
39 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
40 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
41 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
42
43 # IFS
44 # We need space, tab and new line, in precisely that order.
45 ac_nl='
46 '
47 IFS="   $ac_nl"
48
49 # CDPATH.
50 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
51
52 cat >config.log << EOF
53 This file contains any messages produced by compilers while
54 running configure, to aid debugging if configure makes a mistake.
55
56 It was created by $as_me (heimdal 0.3f) 2.49b, executed with
57  > $0 $@
58
59 on `(hostname || uname -n) 2>/dev/null | sed 1q`:
60
61 uname -m = `(uname -m) 2>/dev/null || echo unknown`
62 uname -r = `(uname -r) 2>/dev/null || echo unknown`
63 uname -s = `(uname -s) 2>/dev/null || echo unknown`
64 uname -v = `(uname -v) 2>/dev/null || echo unknown`
65
66 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
67 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null`
68
69 /bin/arch              = `(/bin/arch) 2>/dev/null`
70 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null`
71 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
72 hostinfo               = `(hostinfo) 2>/dev/null`
73 /bin/machine           = `(/bin/machine) 2>/dev/null`
74 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null`
75 /bin/universe          = `(/bin/universe) 2>/dev/null`
76
77 PATH = $PATH
78 EOF
79
80 # File descriptor usage:
81 # 0 standard input
82 # 1 file creation
83 # 2 errors and warnings
84 # 3 some systems may open it to /dev/tty
85 # 4 used on the Kubota Titan
86 # 6 checking for... messages and results
87 # 5 compiler messages saved in config.log
88 if test "$silent" = yes; then
89   exec 6>/dev/null
90 else
91   exec 6>&1
92 fi
93 exec 5>>config.log
94
95 #
96 # Initializations.
97 #
98 ac_default_prefix=/usr/local
99 cross_compiling=no
100 subdirs=
101 MFLAGS= MAKEFLAGS=
102 SHELL=${CONFIG_SHELL-/bin/sh}
103
104 # Maximum number of lines to put in a shell here document.
105 # This variable seems obsolete.  It should probably be removed, and
106 # only ac_max_sed_lines should be used.
107 : ${ac_max_here_lines=38}
108
109 # Name of the host.
110 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
111 # so uname gets run too.
112 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
113
114 # Name of the executable.
115 as_me=`echo "$0" | sed 's,.*/,,'`
116
117 # Avoid depending upon Character Ranges.
118 ac_cr_az='abcdefghijklmnopqrstuvwxyz'
119 ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
120 ac_cr_09='0123456789'
121 ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
122
123 # Sed expression to map a string onto a valid sh and CPP variable names.
124 ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
125 ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
126
127 # By default always use an empty string as the executable extension.
128 # Only change it if the script calls AC_EXEEXT.
129 ac_exeext=
130 # By default assume that objects files use an extension of .o.  Only
131 # change it if the script calls AC_OBJEXT.
132 ac_objext=o
133 # Factoring default headers for most tests.
134 ac_includes_default="\
135 #include <stdio.h>
136 #include <sys/types.h>
137 #include <sys/stat.h>
138 #if STDC_HEADERS
139 # include <stdlib.h>
140 # include <stddef.h>
141 #else
142 # if HAVE_STDLIB_H
143 #  include <stdlib.h>
144 # endif
145 #endif
146 #if HAVE_STRING_H
147 # if !STDC_HEADERS && HAVE_MEMORY_H
148 #  include <memory.h>
149 # endif
150 # include <string.h>
151 #else
152 # if HAVE_STRINGS_H
153 #  include <strings.h>
154 # endif
155 #endif
156 #if HAVE_INTTYPES_H
157 # include <inttypes.h>
158 #endif
159 #if HAVE_UNISTD_H
160 # include <unistd.h>
161 #endif"
162 ac_default_prefix=/usr/heimdal
163
164 # Initialize some variables set by options.
165 ac_init_help=
166 ac_init_version=false
167 # The variables have the same names as the options, with
168 # dashes changed to underlines.
169 cache_file=/dev/null
170 exec_prefix=NONE
171 no_create=
172 no_recursion=
173 prefix=NONE
174 program_prefix=NONE
175 program_suffix=NONE
176 program_transform_name=s,x,x,
177 silent=
178 site=
179 srcdir=
180 verbose=
181 x_includes=NONE
182 x_libraries=NONE
183 bindir='${exec_prefix}/bin'
184 sbindir='${exec_prefix}/sbin'
185 libexecdir='${exec_prefix}/libexec'
186 datadir='${prefix}/share'
187 sysconfdir='${prefix}/etc'
188 sharedstatedir='${prefix}/com'
189 localstatedir='${prefix}/var'
190 libdir='${exec_prefix}/lib'
191 includedir='${prefix}/include'
192 oldincludedir='/usr/include'
193 infodir='${prefix}/info'
194 mandir='${prefix}/man'
195
196 ac_prev=
197 for ac_option
198 do
199   # If the previous option needs an argument, assign it.
200   if test -n "$ac_prev"; then
201     eval "$ac_prev=\$ac_option"
202     ac_prev=
203     continue
204   fi
205
206   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
207
208   # Accept the important Cygnus configure options, so we can diagnose typos.
209
210   case $ac_option in
211
212   -bindir | --bindir | --bindi | --bind | --bin | --bi)
213     ac_prev=bindir ;;
214   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
215     bindir=$ac_optarg ;;
216
217   -build | --build | --buil | --bui | --bu)
218     ac_prev=build_alias ;;
219   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
220     build_alias=$ac_optarg ;;
221
222   -cache-file | --cache-file | --cache-fil | --cache-fi \
223   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
224     ac_prev=cache_file ;;
225   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
226   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
227     cache_file=$ac_optarg ;;
228
229   --config-cache | -C)
230     cache_file=config.cache ;;
231
232   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
233     ac_prev=datadir ;;
234   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
235   | --da=*)
236     datadir=$ac_optarg ;;
237
238   -disable-* | --disable-*)
239     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
240     # Reject names that are not valid shell variable names.
241     expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
242       {  echo "$as_me: error: invalid feature name: $ac_feature" >&2
243   { (exit 1); exit; }; }
244     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
245     eval "enable_$ac_feature=no" ;;
246
247   -enable-* | --enable-*)
248     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
249     # Reject names that are not valid shell variable names.
250     expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
251       {  echo "$as_me: error: invalid feature name: $ac_feature" >&2
252   { (exit 1); exit; }; }
253     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
254     case $ac_option in
255       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
256       *) ac_optarg=yes ;;
257     esac
258     eval "enable_$ac_feature='$ac_optarg'" ;;
259
260   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
261   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
262   | --exec | --exe | --ex)
263     ac_prev=exec_prefix ;;
264   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
265   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
266   | --exec=* | --exe=* | --ex=*)
267     exec_prefix=$ac_optarg ;;
268
269   -gas | --gas | --ga | --g)
270     # Obsolete; use --with-gas.
271     with_gas=yes ;;
272
273   -help | --help | --hel | --he | -h)
274     ac_init_help=long ;;
275   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
276     ac_init_help=recursive ;;
277   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
278     ac_init_help=short ;;
279
280   -host | --host | --hos | --ho)
281     ac_prev=host_alias ;;
282   -host=* | --host=* | --hos=* | --ho=*)
283     host_alias=$ac_optarg ;;
284
285   -includedir | --includedir | --includedi | --included | --include \
286   | --includ | --inclu | --incl | --inc)
287     ac_prev=includedir ;;
288   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
289   | --includ=* | --inclu=* | --incl=* | --inc=*)
290     includedir=$ac_optarg ;;
291
292   -infodir | --infodir | --infodi | --infod | --info | --inf)
293     ac_prev=infodir ;;
294   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
295     infodir=$ac_optarg ;;
296
297   -libdir | --libdir | --libdi | --libd)
298     ac_prev=libdir ;;
299   -libdir=* | --libdir=* | --libdi=* | --libd=*)
300     libdir=$ac_optarg ;;
301
302   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
303   | --libexe | --libex | --libe)
304     ac_prev=libexecdir ;;
305   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
306   | --libexe=* | --libex=* | --libe=*)
307     libexecdir=$ac_optarg ;;
308
309   -localstatedir | --localstatedir | --localstatedi | --localstated \
310   | --localstate | --localstat | --localsta | --localst \
311   | --locals | --local | --loca | --loc | --lo)
312     ac_prev=localstatedir ;;
313   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
314   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
315   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
316     localstatedir=$ac_optarg ;;
317
318   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
319     ac_prev=mandir ;;
320   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
321     mandir=$ac_optarg ;;
322
323   -nfp | --nfp | --nf)
324     # Obsolete; use --without-fp.
325     with_fp=no ;;
326
327   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
328   | --no-cr | --no-c)
329     no_create=yes ;;
330
331   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
332   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
333     no_recursion=yes ;;
334
335   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
336   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
337   | --oldin | --oldi | --old | --ol | --o)
338     ac_prev=oldincludedir ;;
339   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
340   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
341   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
342     oldincludedir=$ac_optarg ;;
343
344   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
345     ac_prev=prefix ;;
346   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
347     prefix=$ac_optarg ;;
348
349   -program-prefix | --program-prefix | --program-prefi | --program-pref \
350   | --program-pre | --program-pr | --program-p)
351     ac_prev=program_prefix ;;
352   -program-prefix=* | --program-prefix=* | --program-prefi=* \
353   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
354     program_prefix=$ac_optarg ;;
355
356   -program-suffix | --program-suffix | --program-suffi | --program-suff \
357   | --program-suf | --program-su | --program-s)
358     ac_prev=program_suffix ;;
359   -program-suffix=* | --program-suffix=* | --program-suffi=* \
360   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
361     program_suffix=$ac_optarg ;;
362
363   -program-transform-name | --program-transform-name \
364   | --program-transform-nam | --program-transform-na \
365   | --program-transform-n | --program-transform- \
366   | --program-transform | --program-transfor \
367   | --program-transfo | --program-transf \
368   | --program-trans | --program-tran \
369   | --progr-tra | --program-tr | --program-t)
370     ac_prev=program_transform_name ;;
371   -program-transform-name=* | --program-transform-name=* \
372   | --program-transform-nam=* | --program-transform-na=* \
373   | --program-transform-n=* | --program-transform-=* \
374   | --program-transform=* | --program-transfor=* \
375   | --program-transfo=* | --program-transf=* \
376   | --program-trans=* | --program-tran=* \
377   | --progr-tra=* | --program-tr=* | --program-t=*)
378     program_transform_name=$ac_optarg ;;
379
380   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
381   | -silent | --silent | --silen | --sile | --sil)
382     silent=yes ;;
383
384   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
385     ac_prev=sbindir ;;
386   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
387   | --sbi=* | --sb=*)
388     sbindir=$ac_optarg ;;
389
390   -sharedstatedir | --sharedstatedir | --sharedstatedi \
391   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
392   | --sharedst | --shareds | --shared | --share | --shar \
393   | --sha | --sh)
394     ac_prev=sharedstatedir ;;
395   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
396   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
397   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
398   | --sha=* | --sh=*)
399     sharedstatedir=$ac_optarg ;;
400
401   -site | --site | --sit)
402     ac_prev=site ;;
403   -site=* | --site=* | --sit=*)
404     site=$ac_optarg ;;
405
406   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
407     ac_prev=srcdir ;;
408   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
409     srcdir=$ac_optarg ;;
410
411   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
412   | --syscon | --sysco | --sysc | --sys | --sy)
413     ac_prev=sysconfdir ;;
414   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
415   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
416     sysconfdir=$ac_optarg ;;
417
418   -target | --target | --targe | --targ | --tar | --ta | --t)
419     ac_prev=target_alias ;;
420   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
421     target_alias=$ac_optarg ;;
422
423   -v | -verbose | --verbose | --verbos | --verbo | --verb)
424     verbose=yes ;;
425
426   -version | --version | --versio | --versi | --vers | -V)
427     ac_init_version=: ;;
428
429   -with-* | --with-*)
430     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
431     # Reject names that are not valid shell variable names.
432     expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
433       {  echo "$as_me: error: invalid package name: $ac_package" >&2
434   { (exit 1); exit; }; }
435     ac_package=`echo $ac_package| sed 's/-/_/g'`
436     case $ac_option in
437       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
438       *) ac_optarg=yes ;;
439     esac
440     eval "with_$ac_package='$ac_optarg'" ;;
441
442   -without-* | --without-*)
443     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
444     # Reject names that are not valid shell variable names.
445     expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
446       {  echo "$as_me: error: invalid package name: $ac_package" >&2
447   { (exit 1); exit; }; }
448     ac_package=`echo $ac_package | sed 's/-/_/g'`
449     eval "with_$ac_package=no" ;;
450
451   --x)
452     # Obsolete; use --with-x.
453     with_x=yes ;;
454
455   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
456   | --x-incl | --x-inc | --x-in | --x-i)
457     ac_prev=x_includes ;;
458   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
459   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
460     x_includes=$ac_optarg ;;
461
462   -x-libraries | --x-libraries | --x-librarie | --x-librari \
463   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
464     ac_prev=x_libraries ;;
465   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
466   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
467     x_libraries=$ac_optarg ;;
468
469   -*) {  echo "$as_me: error: unrecognized option: $ac_option
470 Try \`$0 --help' for more information." >&2
471   { (exit 1); exit; }; }
472     ;;
473
474   *=*)
475     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
476     # Reject names that are not valid shell variable names.
477     expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
478       {  echo "$as_me: error: invalid variable name: $ac_envvar" >&2
479   { (exit 1); exit; }; }
480     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
481     eval "$ac_envvar='$ac_optarg'"
482     export $ac_envvar ;;
483
484   *)
485     # FIXME: should be removed in autoconf 3.0.
486     { echo "$as_me:486: WARNING: you should use --build, --host, --target" >&5
487 echo "$as_me: warning: you should use --build, --host, --target" >&2; }
488     expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
489       { echo "$as_me:489: WARNING: invalid host type: $ac_option" >&5
490 echo "$as_me: warning: invalid host type: $ac_option" >&2; }
491     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
492     ;;
493
494   esac
495 done
496
497 if test -n "$ac_prev"; then
498   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
499   {  echo "$as_me: error: missing argument to $ac_option" >&2
500   { (exit 1); exit; }; }
501 fi
502
503 # Be sure to have absolute paths.
504 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
505               localstatedir libdir includedir oldincludedir infodir mandir \
506               exec_prefix prefix
507 do
508   eval ac_val=$`echo $ac_var`
509   case $ac_val in
510     [\\/$]* | ?:[\\/]* ) ;;
511     NONE ) ;;
512     *)  {  echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
513   { (exit 1); exit; }; };;
514   esac
515 done
516
517 # There might be people who depend on the old broken behavior: `$host'
518 # used to hold the argument of --host etc.
519 build=$build_alias
520 host=$host_alias
521 target=$target_alias
522
523 # FIXME: should be removed in autoconf 3.0.
524 if test "x$host_alias" != x; then
525   if test "x$build_alias" = x; then
526     cross_compiling=maybe
527     { echo "$as_me:527: WARNING: If you wanted to set the --build type, don't use --host.
528     If a cross compiler is detected then cross compile mode will be used." >&5
529 echo "$as_me: warning: If you wanted to set the --build type, don't use --host.
530     If a cross compiler is detected then cross compile mode will be used." >&2; }
531   elif test "x$build_alias" != "x$host_alias"; then
532     cross_compiling=yes
533   fi
534 fi
535
536 ac_tool_prefix=
537 test -n "$host_alias" && ac_tool_prefix=$host_alias-
538
539 # Find the source files, if location was not specified.
540 if test -z "$srcdir"; then
541   ac_srcdir_defaulted=yes
542   # Try the directory containing this script, then its parent.
543   ac_prog=$0
544   ac_confdir=`echo "$ac_prog" | sed 's%/[^/][^/]*$%%'`
545   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
546   srcdir=$ac_confdir
547   if test ! -r $srcdir/$ac_unique_file; then
548     srcdir=..
549   fi
550 else
551   ac_srcdir_defaulted=no
552 fi
553 if test ! -r $srcdir/$ac_unique_file; then
554   if test "$ac_srcdir_defaulted" = yes; then
555     {  echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
556   { (exit 1); exit; }; }
557   else
558     {  echo "$as_me: error: cannot find sources in $srcdir" >&2
559   { (exit 1); exit; }; }
560   fi
561 fi
562 srcdir=`echo "$srcdir" | sed 's%\([^/]\)/*$%\1%'`
563 ac_env_build_alias_set=${build_alias+set}
564 ac_env_build_alias_value=$build_alias
565 ac_cv_env_build_alias_set=${build_alias+set}
566 ac_cv_env_build_alias_value=$build_alias
567 ac_env_host_alias_set=${host_alias+set}
568 ac_env_host_alias_value=$host_alias
569 ac_cv_env_host_alias_set=${host_alias+set}
570 ac_cv_env_host_alias_value=$host_alias
571 ac_env_target_alias_set=${target_alias+set}
572 ac_env_target_alias_value=$target_alias
573 ac_cv_env_target_alias_set=${target_alias+set}
574 ac_cv_env_target_alias_value=$target_alias
575 ac_env_CC_set=${CC+set}
576 ac_env_CC_value=$CC
577 ac_cv_env_CC_set=${CC+set}
578 ac_cv_env_CC_value=$CC
579 ac_env_CFLAGS_set=${CFLAGS+set}
580 ac_env_CFLAGS_value=$CFLAGS
581 ac_cv_env_CFLAGS_set=${CFLAGS+set}
582 ac_cv_env_CFLAGS_value=$CFLAGS
583 ac_env_LDFLAGS_set=${LDFLAGS+set}
584 ac_env_LDFLAGS_value=$LDFLAGS
585 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
586 ac_cv_env_LDFLAGS_value=$LDFLAGS
587 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
588 ac_env_CPPFLAGS_value=$CPPFLAGS
589 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
590 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
591
592 #
593 # Report the --help message.
594 #
595 if test "$ac_init_help" = "long"; then
596   # Omit some internal or obsolete options to make the list less imposing.
597   # This message is too long to be a string in the A/UX 3.1 sh.
598   cat <<EOF
599 \`configure' configures heimdal 0.3f to adapt to many kinds of systems.
600
601 Usage: $0 [OPTION]... [VAR=VALUE]...
602
603 To assign environment variables (e.g., CC, CFLAGS...), specify them as
604 VAR=VALUE.  See below for descriptions of some of the useful variables.
605
606 Defaults for the options are specified in brackets.
607
608 Configuration:
609   -h, --help              display this help and exit
610       --help=short        display options specific to this package
611       --help=recursive    display the short help of all the included packages
612   -V, --version           display version information and exit
613   -q, --quiet, --silent   do not print \`checking...' messages
614       --cache-file=FILE   cache test results in FILE [disabled]
615   -C, --config-cache      alias for \`--cache-file=config.cache'
616   -n, --no-create         do not create output files
617       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
618
619 EOF
620
621   cat <<EOF
622 Installation directories:
623   --prefix=PREFIX         install architecture-independent files in PREFIX
624                           [$ac_default_prefix]
625   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
626                           [PREFIX]
627
628 By default, \`make install' will install all the files in
629 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
630 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
631 for instance \`--prefix=\$HOME'.
632
633 For better control, use the options below.
634
635 Fine tuning of the installation directories:
636   --bindir=DIR           user executables [EPREFIX/bin]
637   --sbindir=DIR          system admin executables [EPREFIX/sbin]
638   --libexecdir=DIR       program executables [EPREFIX/libexec]
639   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
640   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
641   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
642   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
643   --libdir=DIR           object code libraries [EPREFIX/lib]
644   --includedir=DIR       C header files [PREFIX/include]
645   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
646   --infodir=DIR          info documentation [PREFIX/info]
647   --mandir=DIR           man documentation [PREFIX/man]
648 EOF
649
650   cat <<\EOF
651
652 Program names:
653   --program-prefix=PREFIX            prepend PREFIX to installed program names
654   --program-suffix=SUFFIX            append SUFFIX to installed program names
655   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
656
657 X features:
658   --x-includes=DIR    X include files are in DIR
659   --x-libraries=DIR   X library files are in DIR
660
661 System types:
662   --build=BUILD     configure for building on BUILD [guessed]
663   --host=HOST       build programs to run on HOST [BUILD]
664 EOF
665 fi
666
667 if test -n "$ac_init_help"; then
668   case $ac_init_help in
669      short | recursive ) echo "Configuration of heimdal 0.3f:";;
670    esac
671   cat <<\EOF
672
673 Optional Features:
674   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
675   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
676   --disable-dependency-tracking Speeds up one-time builds
677   --enable-dependency-tracking  Do not reject slow dependency extractors
678   --enable-shared=PKGS  build shared libraries default=no
679   --enable-static=PKGS  build static libraries default=yes
680   --enable-fast-install=PKGS  optimize for fast installation default=yes
681   --disable-libtool-lock  avoid locking (might break parallel builds)
682   --enable-dce  if you want support for DCE/DFS PAG's.
683   --enable-kaserver       if you want the KDC to try to emulate a kaserver
684   --enable-kaserver-db    if you want support for reading kaserver databases in hprop
685   --disable-otp          if you don't want OTP support
686   --enable-osfc2          enable some OSF C2 support
687   --enable-bigendian    the target is big endian
688   --enable-littleendian the target is little endian
689   --enable-netinfo      enable netinfo for configuration lookup
690
691 Optional Packages:
692   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
693   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
694   --with-mips-abi=abi     ABI to use for IRIX (32, n32, or 64)
695   --with-gnu-ld           assume the C compiler uses GNU ld default=no
696   --with-pic              try to use only PIC/non-PIC objects default=use both
697   --without-berkeley-db   if you don't want berkeley db
698   --without-ipv6        do not enable IPv6 support
699   --with-openldap=dir                use openldap in dir
700   --with-openldap-lib=dir            use openldap libraries in dir
701   --with-openldap-include=dir        use openldap headers in dir
702   --with-krb4=dir                use krb4 in dir
703   --with-krb4-lib=dir            use krb4 libraries in dir
704   --with-krb4-include=dir        use krb4 headers in dir
705   --with-readline=dir                use readline in dir
706   --with-readline-lib=dir            use readline libraries in dir
707   --with-readline-include=dir        use readline headers in dir
708   --with-hesiod=dir                use hesiod in dir
709   --with-hesiod-lib=dir            use hesiod libraries in dir
710   --with-hesiod-include=dir        use hesiod headers in dir
711   --with-x                use the X Window System
712
713 Some influential environment variables:
714   CC          C compiler command
715   CFLAGS      C compiler flags
716   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
717               nonstandard directory <lib dir>
718   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
719               headers in a nonstandard directory <include dir>
720
721 Use these variables to override the choices made by `configure' or to help
722 it to find libraries and programs with nonstandard names/locations.
723
724 Report bugs to <heimdal-bugs@pdc.kth.se>.
725 EOF
726 fi
727
728 if test "$ac_init_help" = "recursive"; then
729   # If there are subdirs, report their specific --help.
730   ac_popdir=`pwd`
731   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
732     cd $ac_subdir
733     # A "../" for each directory in /$ac_subdir.
734     ac_dots=`echo $ac_subdir |
735              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
736
737     case $srcdir in
738     .) # No --srcdir option.  We are building in place.
739       ac_sub_srcdir=$srcdir ;;
740     [\\/]* | ?:[\\/]* ) # Absolute path.
741       ac_sub_srcdir=$srcdir/$ac_subdir ;;
742     *) # Relative path.
743       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
744     esac
745
746     # Check for guested configure; otherwise get Cygnus style configure.
747     if test -f $ac_sub_srcdir/configure.gnu; then
748       echo
749       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
750     elif test -f $ac_sub_srcdir/configure; then
751       echo
752       $SHELL $ac_sub_srcdir/configure  --help=recursive
753     elif test -f $ac_sub_srcdir/configure.in; then
754       echo
755       $ac_configure --help
756     else
757       { echo "$as_me:757: WARNING: no configuration information is in $ac_subdir" >&5
758 echo "$as_me: warning: no configuration information is in $ac_subdir" >&2; }
759     fi
760     cd $ac_popdir
761   done
762 fi
763
764 test -n "$ac_init_help" && exit 0
765 if $ac_init_version; then
766   cat <<\EOF
767 configure (heimdal 0.3f) 2.49b
768
769 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000
770 Free Software Foundation, Inc.
771 This configure script is free software; the Free Software Foundation
772 gives unlimited permission to copy, distribute and modify it.
773 EOF
774   exit 0
775 fi
776
777 # Keep a trace of the command line.
778 # Strip out --no-create and --no-recursion so they do not pile up.
779 # Also quote any args containing shell meta-characters.
780 ac_configure_args=
781 ac_sep=
782 for ac_arg
783 do
784   case $ac_arg in
785   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
786   | --no-cr | --no-c) ;;
787   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
788   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
789   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
790     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
791     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
792     ac_sep=" " ;;
793   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
794      ac_sep=" " ;;
795   esac
796   # Get rid of the leading space.
797 done
798
799 # When interrupted or exit'd, cleanup temporary files, and complete
800 # config.log.
801 trap 'exit_status=$?
802   test "$ac_signal" != 0 &&
803     echo "$as_me: caught signal $ac_signal" >&5
804   echo "$as_me: exit $exit_status" >&5
805   rm -rf conftest* confdefs* core core.* *.core $ac_clean_files &&
806     exit $exit_status
807      ' 0
808 for ac_signal in 1 2 13 15; do
809   trap 'ac_status=$?; ac_signal='$ac_signal'; exit $ac_status' $ac_signal
810 done
811 ac_signal=0
812
813 # confdefs.h avoids OS command line length limits that DEFS can exceed.
814 rm -rf conftest* confdefs.h
815 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
816 echo >confdefs.h
817
818 # Let the site file select an alternate cache file if it wants to.
819 # Prefer explicitly selected file to automatically selected ones.
820 if test -z "$CONFIG_SITE"; then
821   if test "x$prefix" != xNONE; then
822     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
823   else
824     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
825   fi
826 fi
827 for ac_site_file in $CONFIG_SITE; do
828   if test -r "$ac_site_file"; then
829     echo "loading site script $ac_site_file"
830     . "$ac_site_file"
831   fi
832 done
833
834 if test -r "$cache_file"; then
835   # Some versions of bash will fail to source /dev/null (special
836   # files actually), so we avoid doing that.
837   if test -f "$cache_file"; then
838     { echo "$as_me:838: loading cache $cache_file" >&5
839 echo "loading cache $cache_file" >&6;}
840     case $cache_file in
841       [\\/]* | ?:[\\/]* ) . $cache_file;;
842       *)                      . ./$cache_file;;
843     esac
844   fi
845 else
846   { echo "$as_me:846: creating cache $cache_file" >&5
847 echo "creating cache $cache_file" >&6;}
848   >$cache_file
849 fi
850
851 # Check that the precious variables saved in the cache have kept the same
852 # value.
853 ac_suggest_removing_cache=false
854 for ac_var in `(set) 2>&1 |
855                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
856   eval ac_old_set=\$ac_cv_env_${ac_var}_set
857   eval ac_new_set=\$ac_env_${ac_var}_set
858   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
859   eval ac_new_val="\$ac_env_${ac_var}_value"
860   case $ac_old_set,$ac_new_set in
861     set,)
862       { echo "$as_me:862: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
863 echo "$as_me: warning: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2; }
864       ac_suggest_removing_cache=: ;;
865     ,set)
866       { echo "$as_me:866: WARNING: \`$ac_var' was not set in the previous run" >&5
867 echo "$as_me: warning: \`$ac_var' was not set in the previous run" >&2; }
868       ac_suggest_removing_cache=: ;;
869     ,);;
870     *)
871       if test "x$ac_old_val" != "x$ac_new_val"; then
872         { echo "$as_me:872: WARNING: \`$ac_var' has changed since the previous run:" >&5
873 echo "$as_me: warning: \`$ac_var' has changed since the previous run:" >&2; }
874         { echo "$as_me:874: WARNING:   former value:  $ac_old_val" >&5
875 echo "$as_me: warning:   former value:  $ac_old_val" >&2; }
876         { echo "$as_me:876: WARNING:   current value: $ac_new_val" >&5
877 echo "$as_me: warning:   current value: $ac_new_val" >&2; }
878         ac_suggest_removing_cache=:
879       fi;;
880   esac
881 done
882 if $ac_suggest_removing_cache; then
883   { echo "$as_me:883: WARNING: changes in the environment can compromise the build" >&5
884 echo "$as_me: warning: changes in the environment can compromise the build" >&2; }
885   { echo "$as_me:885: WARNING: consider removing $cache_file and starting over" >&5
886 echo "$as_me: warning: consider removing $cache_file and starting over" >&2; }
887 fi
888
889 ac_ext=c
890 ac_cpp='$CPP $CPPFLAGS'
891 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
892 ac_link='${CC-cc} -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
894
895 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
896   *c*,-n*) ECHO_N= ECHO_C='
897 ' ECHO_T='      ' ;;
898   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
899   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
900 esac
901
902 ac_config_headers="$ac_config_headers include/config.h"
903
904   ac_config_commands="$ac_config_commands default-1"
905
906 ac_ext=c
907 ac_cpp='$CPP $CPPFLAGS'
908 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
909 ac_link='${CC-cc} -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
911
912 if test -n "$ac_tool_prefix"; then
913   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
914 set dummy ${ac_tool_prefix}gcc; ac_word=$2
915 echo "$as_me:915: checking for $ac_word" >&5
916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
917 if test "${ac_cv_prog_CC+set}" = set; then
918   echo $ECHO_N "(cached) $ECHO_C" >&6
919 else
920   if test -n "$CC"; then
921   ac_cv_prog_CC="$CC" # Let the user override the test.
922 else
923   ac_save_IFS=$IFS; IFS=':'
924 ac_dummy="$PATH"
925 for ac_dir in $ac_dummy; do
926   IFS=$ac_save_IFS
927   test -z "$ac_dir" && ac_dir=.
928   test -f "$ac_dir/$ac_word" || continue
929 ac_cv_prog_CC="${ac_tool_prefix}gcc"
930 break
931 done
932
933 fi
934 fi
935 CC=$ac_cv_prog_CC
936 if test -n "$CC"; then
937   echo "$as_me:937: result: $CC" >&5
938 echo "${ECHO_T}$CC" >&6
939 else
940   echo "$as_me:940: result: no" >&5
941 echo "${ECHO_T}no" >&6
942 fi
943
944 fi
945 if test -z "$ac_cv_prog_CC"; then
946   ac_ct_CC=$CC
947   # Extract the first word of "gcc", so it can be a program name with args.
948 set dummy gcc; ac_word=$2
949 echo "$as_me:949: checking for $ac_word" >&5
950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
951 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
952   echo $ECHO_N "(cached) $ECHO_C" >&6
953 else
954   if test -n "$ac_ct_CC"; then
955   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
956 else
957   ac_save_IFS=$IFS; IFS=':'
958 ac_dummy="$PATH"
959 for ac_dir in $ac_dummy; do
960   IFS=$ac_save_IFS
961   test -z "$ac_dir" && ac_dir=.
962   test -f "$ac_dir/$ac_word" || continue
963 ac_cv_prog_ac_ct_CC="gcc"
964 break
965 done
966
967 fi
968 fi
969 ac_ct_CC=$ac_cv_prog_ac_ct_CC
970 if test -n "$ac_ct_CC"; then
971   echo "$as_me:971: result: $ac_ct_CC" >&5
972 echo "${ECHO_T}$ac_ct_CC" >&6
973 else
974   echo "$as_me:974: result: no" >&5
975 echo "${ECHO_T}no" >&6
976 fi
977
978   CC=$ac_ct_CC
979 else
980   CC="$ac_cv_prog_CC"
981 fi
982
983 if test -z "$CC"; then
984   if test -n "$ac_tool_prefix"; then
985   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
986 set dummy ${ac_tool_prefix}cc; ac_word=$2
987 echo "$as_me:987: checking for $ac_word" >&5
988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
989 if test "${ac_cv_prog_CC+set}" = set; then
990   echo $ECHO_N "(cached) $ECHO_C" >&6
991 else
992   if test -n "$CC"; then
993   ac_cv_prog_CC="$CC" # Let the user override the test.
994 else
995   ac_save_IFS=$IFS; IFS=':'
996 ac_dummy="$PATH"
997 for ac_dir in $ac_dummy; do
998   IFS=$ac_save_IFS
999   test -z "$ac_dir" && ac_dir=.
1000   test -f "$ac_dir/$ac_word" || continue
1001 ac_cv_prog_CC="${ac_tool_prefix}cc"
1002 break
1003 done
1004
1005 fi
1006 fi
1007 CC=$ac_cv_prog_CC
1008 if test -n "$CC"; then
1009   echo "$as_me:1009: result: $CC" >&5
1010 echo "${ECHO_T}$CC" >&6
1011 else
1012   echo "$as_me:1012: result: no" >&5
1013 echo "${ECHO_T}no" >&6
1014 fi
1015
1016 fi
1017 if test -z "$ac_cv_prog_CC"; then
1018   ac_ct_CC=$CC
1019   # Extract the first word of "cc", so it can be a program name with args.
1020 set dummy cc; ac_word=$2
1021 echo "$as_me:1021: checking for $ac_word" >&5
1022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1023 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1024   echo $ECHO_N "(cached) $ECHO_C" >&6
1025 else
1026   if test -n "$ac_ct_CC"; then
1027   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1028 else
1029   ac_save_IFS=$IFS; IFS=':'
1030 ac_dummy="$PATH"
1031 for ac_dir in $ac_dummy; do
1032   IFS=$ac_save_IFS
1033   test -z "$ac_dir" && ac_dir=.
1034   test -f "$ac_dir/$ac_word" || continue
1035 ac_cv_prog_ac_ct_CC="cc"
1036 break
1037 done
1038
1039 fi
1040 fi
1041 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1042 if test -n "$ac_ct_CC"; then
1043   echo "$as_me:1043: result: $ac_ct_CC" >&5
1044 echo "${ECHO_T}$ac_ct_CC" >&6
1045 else
1046   echo "$as_me:1046: result: no" >&5
1047 echo "${ECHO_T}no" >&6
1048 fi
1049
1050   CC=$ac_ct_CC
1051 else
1052   CC="$ac_cv_prog_CC"
1053 fi
1054
1055 fi
1056 if test -z "$CC"; then
1057   # Extract the first word of "cc", so it can be a program name with args.
1058 set dummy cc; ac_word=$2
1059 echo "$as_me:1059: checking for $ac_word" >&5
1060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1061 if test "${ac_cv_prog_CC+set}" = set; then
1062   echo $ECHO_N "(cached) $ECHO_C" >&6
1063 else
1064   if test -n "$CC"; then
1065   ac_cv_prog_CC="$CC" # Let the user override the test.
1066 else
1067   ac_prog_rejected=no
1068   ac_save_IFS=$IFS; IFS=':'
1069 ac_dummy="$PATH"
1070 for ac_dir in $ac_dummy; do
1071   IFS=$ac_save_IFS
1072   test -z "$ac_dir" && ac_dir=.
1073   test -f "$ac_dir/$ac_word" || continue
1074 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1075   ac_prog_rejected=yes
1076   continue
1077 fi
1078 ac_cv_prog_CC="cc"
1079 break
1080 done
1081
1082 if test $ac_prog_rejected = yes; then
1083   # We found a bogon in the path, so make sure we never use it.
1084   set dummy $ac_cv_prog_CC
1085   shift
1086   if test $# != 0; then
1087     # We chose a different compiler from the bogus one.
1088     # However, it has the same basename, so the bogon will be chosen
1089     # first if we set CC to just the basename; use the full file name.
1090     shift
1091     set dummy "$ac_dir/$ac_word" ${1+"$@"}
1092     shift
1093     ac_cv_prog_CC="$@"
1094   fi
1095 fi
1096 fi
1097 fi
1098 CC=$ac_cv_prog_CC
1099 if test -n "$CC"; then
1100   echo "$as_me:1100: result: $CC" >&5
1101 echo "${ECHO_T}$CC" >&6
1102 else
1103   echo "$as_me:1103: result: no" >&5
1104 echo "${ECHO_T}no" >&6
1105 fi
1106
1107 fi
1108 if test -z "$CC"; then
1109   if test -n "$ac_tool_prefix"; then
1110   for ac_prog in cl
1111   do
1112     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1113 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1114 echo "$as_me:1114: checking for $ac_word" >&5
1115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1116 if test "${ac_cv_prog_CC+set}" = set; then
1117   echo $ECHO_N "(cached) $ECHO_C" >&6
1118 else
1119   if test -n "$CC"; then
1120   ac_cv_prog_CC="$CC" # Let the user override the test.
1121 else
1122   ac_save_IFS=$IFS; IFS=':'
1123 ac_dummy="$PATH"
1124 for ac_dir in $ac_dummy; do
1125   IFS=$ac_save_IFS
1126   test -z "$ac_dir" && ac_dir=.
1127   test -f "$ac_dir/$ac_word" || continue
1128 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1129 break
1130 done
1131
1132 fi
1133 fi
1134 CC=$ac_cv_prog_CC
1135 if test -n "$CC"; then
1136   echo "$as_me:1136: result: $CC" >&5
1137 echo "${ECHO_T}$CC" >&6
1138 else
1139   echo "$as_me:1139: result: no" >&5
1140 echo "${ECHO_T}no" >&6
1141 fi
1142
1143     test -n "$CC" && break
1144   done
1145 fi
1146 if test -z "$CC"; then
1147   ac_ct_CC=$CC
1148   for ac_prog in cl
1149 do
1150   # Extract the first word of "$ac_prog", so it can be a program name with args.
1151 set dummy $ac_prog; ac_word=$2
1152 echo "$as_me:1152: checking for $ac_word" >&5
1153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1154 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1155   echo $ECHO_N "(cached) $ECHO_C" >&6
1156 else
1157   if test -n "$ac_ct_CC"; then
1158   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1159 else
1160   ac_save_IFS=$IFS; IFS=':'
1161 ac_dummy="$PATH"
1162 for ac_dir in $ac_dummy; do
1163   IFS=$ac_save_IFS
1164   test -z "$ac_dir" && ac_dir=.
1165   test -f "$ac_dir/$ac_word" || continue
1166 ac_cv_prog_ac_ct_CC="$ac_prog"
1167 break
1168 done
1169
1170 fi
1171 fi
1172 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1173 if test -n "$ac_ct_CC"; then
1174   echo "$as_me:1174: result: $ac_ct_CC" >&5
1175 echo "${ECHO_T}$ac_ct_CC" >&6
1176 else
1177   echo "$as_me:1177: result: no" >&5
1178 echo "${ECHO_T}no" >&6
1179 fi
1180
1181   test -n "$ac_ct_CC" && break
1182 done
1183
1184   CC=$ac_ct_CC
1185 fi
1186
1187 fi
1188
1189 test -z "$CC" && {  echo "$as_me: error: no acceptable cc found in \$PATH" >&2
1190   { (exit 1); exit; }; }
1191
1192 echo "$as_me:1192: checking whether the C compiler works" >&5
1193 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1194 cat >conftest.$ac_ext <<_ACEOF
1195 #line 1195 "configure"
1196 #include "confdefs.h"
1197
1198 int
1199 main ()
1200 {
1201
1202   ;
1203   return 0;
1204 }
1205 _ACEOF
1206 rm -f conftest.$ac_objext conftest$ac_exeext
1207 if { (eval echo $as_me:1207: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
1208   # FIXME: these cross compiler hacks should be removed for autoconf 3.0
1209 # If not cross compiling, check that we can run a simple program.
1210 if test "$cross_compiling" != yes; then
1211   if { ac_try='./conftest$ac_exeext'; { (eval echo $as_me:1211: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; }; then
1212     cross_compiling=no
1213   else
1214     if test "$cross_compiling" = maybe; then
1215       cross_compiling=yes
1216     else
1217       {  echo "$as_me: error: cannot run C compiled programs.
1218 To enable cross compilation, use \`--host'." >&2
1219   { (exit 1); exit; }; }
1220     fi
1221   fi
1222 fi
1223 echo "$as_me:1223: result: yes" >&5
1224 echo "${ECHO_T}yes" >&6
1225 else
1226   echo "$as_me: failed program was:" >&5
1227   cat conftest.$ac_ext >&5
1228   echo "$as_me:1228: result: no" >&5
1229 echo "${ECHO_T}no" >&6
1230 {  echo "$as_me: error: C compiler cannot create executables" >&2
1231   { (exit 77); exit; }; }
1232 fi
1233 rm -f conftest$ac_exeext conftest.$ac_ext
1234 echo "$as_me:1234: checking whether we are cross compiling" >&5
1235 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1236 echo "$as_me:1236: result: $cross_compiling" >&5
1237 echo "${ECHO_T}$cross_compiling" >&6
1238
1239 echo "$as_me:1239: checking whether we are using the GNU C compiler" >&5
1240 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1241 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1242   echo $ECHO_N "(cached) $ECHO_C" >&6
1243 else
1244   cat >conftest.$ac_ext <<_ACEOF
1245 #line 1245 "configure"
1246 #include "confdefs.h"
1247
1248 int
1249 main ()
1250 {
1251 #ifndef __GNUC__
1252   choke me
1253 #endif
1254
1255   ;
1256   return 0;
1257 }
1258 _ACEOF
1259 rm -f conftest.$ac_objext
1260 if { (eval echo $as_me:1260: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
1261   ac_compiler_gnu=yes
1262 else
1263   echo "$as_me: failed program was:" >&5
1264   cat conftest.$ac_ext >&5
1265   ac_compiler_gnu=no
1266 fi
1267 rm -f conftest.$ac_objext conftest.$ac_ext
1268 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1269
1270 fi
1271 echo "$as_me:1271: result: $ac_cv_c_compiler_gnu" >&5
1272 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1273 GCC=`test $ac_compiler_gnu = yes && echo yes`
1274 echo "$as_me:1274: checking for object suffix" >&5
1275 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1276 if test "${ac_cv_objext+set}" = set; then
1277   echo $ECHO_N "(cached) $ECHO_C" >&6
1278 else
1279   cat >conftest.$ac_ext <<_ACEOF
1280 #line 1280 "configure"
1281 #include "confdefs.h"
1282
1283 int
1284 main ()
1285 {
1286
1287   ;
1288   return 0;
1289 }
1290 _ACEOF
1291 if { (eval echo $as_me:1291: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
1292   for ac_file in `ls conftest.o conftest.obj conftest.* 2>/dev/null`; do
1293     case $ac_file in
1294       *.$ac_ext | *.tds | *.d ) ;;
1295       *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1296          break;;
1297     esac
1298   done
1299   rm -f conftest.$ac_objext conftest.$ac_ext
1300 else
1301   {  echo "$as_me: error: cannot compile" >&2
1302   { (exit 1); exit; }; }
1303 fi
1304 fi
1305 echo "$as_me:1305: result: $ac_cv_objext" >&5
1306 echo "${ECHO_T}$ac_cv_objext" >&6
1307 OBJEXT=$ac_cv_objext
1308 ac_objext=$ac_cv_objext
1309
1310 echo "$as_me:1310: checking for executable suffix" >&5
1311 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1312 if test "${ac_cv_exeext+set}" = set; then
1313   echo $ECHO_N "(cached) $ECHO_C" >&6
1314 else
1315   case "$CYGWIN $MINGW32 $EMXOS2" in
1316   *yes*) ac_cv_exeext=.exe ;;
1317   *)
1318     cat >conftest.$ac_ext <<_ACEOF
1319 #line 1319 "configure"
1320 #include "confdefs.h"
1321
1322 int
1323 main ()
1324 {
1325
1326   ;
1327   return 0;
1328 }
1329 _ACEOF
1330     if { (eval echo $as_me:1330: \"$ac_link\") >&5; (eval $ac_link) 2>&5; }; then
1331       # If both `conftest.exe' and `conftest' are `present' (well, observable)
1332       # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1333       # work properly (i.e., refer to `conftest.exe'), while it won't with
1334       # `rm'.
1335       for ac_file in `ls conftest.exe conftest conftest.* 2>/dev/null`; do
1336         case $ac_file in
1337           *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d) ;;
1338           *) ac_cv_exeext=`expr "$ac_file" : 'conftest\(.*\)'`
1339              break;;
1340         esac
1341       done
1342       rm -f conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1343     else
1344       {  echo "$as_me: error: cannot compile and link" >&2
1345   { (exit 1); exit; }; }
1346     fi
1347     ;;
1348 esac
1349 fi
1350 echo "$as_me:1350: result: $ac_cv_exeext" >&5
1351 echo "${ECHO_T}$ac_cv_exeext" >&6
1352 EXEEXT=$ac_cv_exeext
1353 ac_exeext=$EXEEXT
1354
1355 ac_test_CFLAGS=${CFLAGS+set}
1356 ac_save_CFLAGS=$CFLAGS
1357 CFLAGS="-g"
1358 echo "$as_me:1358: checking whether ${CC-cc} accepts -g" >&5
1359 echo $ECHO_N "checking whether ${CC-cc} accepts -g... $ECHO_C" >&6
1360 if test "${ac_cv_prog_cc_g+set}" = set; then
1361   echo $ECHO_N "(cached) $ECHO_C" >&6
1362 else
1363   cat >conftest.$ac_ext <<_ACEOF
1364 #line 1364 "configure"
1365 #include "confdefs.h"
1366
1367 int
1368 main ()
1369 {
1370
1371   ;
1372   return 0;
1373 }
1374 _ACEOF
1375 rm -f conftest.$ac_objext
1376 if { (eval echo $as_me:1376: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
1377   ac_cv_prog_cc_g=yes
1378 else
1379   echo "$as_me: failed program was:" >&5
1380   cat conftest.$ac_ext >&5
1381   ac_cv_prog_cc_g=no
1382 fi
1383 rm -f conftest.$ac_objext conftest.$ac_ext
1384 fi
1385 echo "$as_me:1385: result: $ac_cv_prog_cc_g" >&5
1386 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1387 if test "$ac_test_CFLAGS" = set; then
1388   CFLAGS=$ac_save_CFLAGS
1389 elif test $ac_cv_prog_cc_g = yes; then
1390   if test "$GCC" = yes; then
1391     CFLAGS="-g -O2"
1392   else
1393     CFLAGS="-g"
1394   fi
1395 else
1396   if test "$GCC" = yes; then
1397     CFLAGS="-O2"
1398   else
1399     CFLAGS=
1400   fi
1401 fi
1402
1403 echo "$as_me:1403: checking how to run the C preprocessor" >&5
1404 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1405 # On Suns, sometimes $CPP names a directory.
1406 if test -n "$CPP" && test -d "$CPP"; then
1407   CPP=
1408 fi
1409 if test -z "$CPP"; then
1410   if test "${ac_cv_prog_CPP+set}" = set; then
1411   echo $ECHO_N "(cached) $ECHO_C" >&6
1412 else
1413       # Double quotes because CPP needs to be expanded
1414     for CPP in "${CC-cc} -E" "${CC-cc} -E -traditional-cpp" "/lib/cpp"
1415     do
1416       # Use a header file that comes with gcc, so configuring glibc
1417 # with a fresh cross-compiler works.
1418 # On the NeXT, cc -E runs the code through the compiler's parser,
1419 # not just through cpp. "Syntax error" is here to catch this case.
1420 cat >conftest.$ac_ext <<_ACEOF
1421 #line 1421 "configure"
1422 #include "confdefs.h"
1423 #include <assert.h>
1424 Syntax error
1425 _ACEOF
1426 ac_c_preproc_warn_flag=maybe
1427 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
1428 if { (eval echo $as_me:1428: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
1429   if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
1430     ac_cpp_err=$ac_c_preproc_warn_flag
1431   else
1432     ac_cpp_err=
1433   fi
1434 else
1435   ac_cpp_err=yes
1436 fi
1437
1438 # Now check whether non-existent headers can be detected and how
1439 # Skip if ac_cpp_err is not empty - ac_cpp is broken
1440 if test -z "$ac_cpp_err"; then
1441   cat >conftest.$ac_ext <<_ACEOF
1442 #line 1442 "configure"
1443 #include "confdefs.h"
1444 #include <ac_nonexistent.h>
1445 _ACEOF
1446   ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
1447 if { (eval echo $as_me:1447: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
1448   if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
1449     ac_cpp_err=$ac_c_preproc_warn_flag
1450   else
1451     ac_cpp_err=
1452   fi
1453 else
1454   ac_cpp_err=yes
1455 fi
1456
1457   if test -z "$ac_cpp_err"; then
1458     # cannot detect missing includes at all
1459     ac_cpp_err=yes
1460   else
1461     if test "x$ac_cpp_err" = xmaybe; then
1462       ac_c_preproc_warn_flag=yes
1463     else
1464       ac_c_preproc_warn_flag=
1465     fi
1466     ac_cpp_err=
1467   fi
1468 fi
1469 rm -f conftest*
1470
1471       if test -z "$ac_cpp_err"; then
1472         break
1473       fi
1474     done
1475     ac_cv_prog_CPP=$CPP
1476
1477 fi
1478   CPP=$ac_cv_prog_CPP
1479 else
1480   # Use a header file that comes with gcc, so configuring glibc
1481 # with a fresh cross-compiler works.
1482 # On the NeXT, cc -E runs the code through the compiler's parser,
1483 # not just through cpp. "Syntax error" is here to catch this case.
1484 cat >conftest.$ac_ext <<_ACEOF
1485 #line 1485 "configure"
1486 #include "confdefs.h"
1487 #include <assert.h>
1488 Syntax error
1489 _ACEOF
1490 ac_c_preproc_warn_flag=maybe
1491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
1492 if { (eval echo $as_me:1492: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
1493   if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
1494     ac_cpp_err=$ac_c_preproc_warn_flag
1495   else
1496     ac_cpp_err=
1497   fi
1498 else
1499   ac_cpp_err=yes
1500 fi
1501
1502 # Now check whether non-existent headers can be detected and how
1503 # Skip if ac_cpp_err is not empty - ac_cpp is broken
1504 if test -z "$ac_cpp_err"; then
1505   cat >conftest.$ac_ext <<_ACEOF
1506 #line 1506 "configure"
1507 #include "confdefs.h"
1508 #include <ac_nonexistent.h>
1509 _ACEOF
1510   ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
1511 if { (eval echo $as_me:1511: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
1512   if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
1513     ac_cpp_err=$ac_c_preproc_warn_flag
1514   else
1515     ac_cpp_err=
1516   fi
1517 else
1518   ac_cpp_err=yes
1519 fi
1520
1521   if test -z "$ac_cpp_err"; then
1522     # cannot detect missing includes at all
1523     ac_cpp_err=yes
1524   else
1525     if test "x$ac_cpp_err" = xmaybe; then
1526       ac_c_preproc_warn_flag=yes
1527     else
1528       ac_c_preproc_warn_flag=
1529     fi
1530     ac_cpp_err=
1531   fi
1532 fi
1533 rm -f conftest*
1534
1535   ac_cv_prog_CPP=$CPP
1536 fi
1537 echo "$as_me:1537: result: $CPP" >&5
1538 echo "${ECHO_T}$CPP" >&6
1539 if test -n "$ac_cpp_err"; then
1540   {  echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2
1541   { (exit 1); exit; }; }
1542 fi
1543
1544 echo "$as_me:1544: checking for ${CC-cc} option to accept ANSI C" >&5
1545 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
1546 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1547   echo $ECHO_N "(cached) $ECHO_C" >&6
1548 else
1549   ac_cv_prog_cc_stdc=no
1550 ac_save_CC=$CC
1551 cat >conftest.$ac_ext <<_ACEOF
1552 #line 1552 "configure"
1553 #include "confdefs.h"
1554 #include <stdarg.h>
1555 #include <stdio.h>
1556 #include <sys/types.h>
1557 #include <sys/stat.h>
1558 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1559 struct buf { int x; };
1560 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1561 static char *e (p, i)
1562      char **p;
1563      int i;
1564 {
1565   return p[i];
1566 }
1567 static char *f (char * (*g) (char **, int), char **p, ...)
1568 {
1569   char *s;
1570   va_list v;
1571   va_start (v,p);
1572   s = g (p, va_arg (v,int));
1573   va_end (v);
1574   return s;
1575 }
1576 int test (int i, double x);
1577 struct s1 {int (*f) (int a);};
1578 struct s2 {int (*f) (double a);};
1579 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1580 int argc;
1581 char **argv;
1582 int
1583 main ()
1584 {
1585 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1586   ;
1587   return 0;
1588 }
1589 _ACEOF
1590 # Don't try gcc -ansi; that turns off useful extensions and
1591 # breaks some systems' header files.
1592 # AIX                   -qlanglvl=ansi
1593 # Ultrix and OSF/1      -std1
1594 # HP-UX 10.20 and later -Ae
1595 # HP-UX older versions  -Aa -D_HPUX_SOURCE
1596 # SVR4                  -Xc -D__EXTENSIONS__
1597 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1598 do
1599   CC="$ac_save_CC $ac_arg"
1600   rm -f conftest.$ac_objext
1601 if { (eval echo $as_me:1601: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
1602   ac_cv_prog_cc_stdc=$ac_arg
1603 rm -f conftest.$ac_ext conftest.$ac_objext
1604 break
1605 else
1606   echo "$as_me: failed program was:" >&5
1607   cat conftest.$ac_ext >&5
1608 fi
1609 rm -f conftest.$ac_objext
1610 done
1611 CC=$ac_save_CC
1612
1613 fi
1614
1615 case "x$ac_cv_prog_cc_stdc" in
1616   x|xno)
1617     echo "$as_me:1617: result: none needed" >&5
1618 echo "${ECHO_T}none needed" >&6 ;;
1619   *)
1620     echo "$as_me:1620: result: $ac_cv_prog_cc_stdc" >&5
1621 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1622     CC="$CC $ac_cv_prog_cc_stdc" ;;
1623 esac
1624
1625 ac_aux_dir=
1626 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1627   if test -f $ac_dir/install-sh; then
1628     ac_aux_dir=$ac_dir
1629     ac_install_sh="$ac_aux_dir/install-sh -c"
1630     break
1631   elif test -f $ac_dir/install.sh; then
1632     ac_aux_dir=$ac_dir
1633     ac_install_sh="$ac_aux_dir/install.sh -c"
1634     break
1635   elif test -f $ac_dir/shtool; then
1636     ac_aux_dir=$ac_dir
1637     ac_install_sh="$ac_aux_dir/shtool install -c"
1638     break
1639   fi
1640 done
1641 if test -z "$ac_aux_dir"; then
1642   {  echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2
1643   { (exit 1); exit; }; }
1644 fi
1645 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1646 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1647 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1648
1649 # Find a good install program.  We prefer a C program (faster),
1650 # so one script is as good as another.  But avoid the broken or
1651 # incompatible versions:
1652 # SysV /etc/install, /usr/sbin/install
1653 # SunOS /usr/etc/install
1654 # IRIX /sbin/install
1655 # AIX /bin/install
1656 # AmigaOS /C/install, which installs bootblocks on floppy discs
1657 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1658 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1659 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1660 # ./install, which can be erroneously created by make from ./install.sh.
1661 echo "$as_me:1661: checking for a BSD compatible install" >&5
1662 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1663 if test -z "$INSTALL"; then
1664 if test "${ac_cv_path_install+set}" = set; then
1665   echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667     ac_save_IFS=$IFS; IFS=':'
1668   for ac_dir in $PATH; do
1669     # Account for people who put trailing slashes in PATH elements.
1670     case $ac_dir/ in
1671     / | ./ | .// | /cC/* \
1672     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1673     | /usr/ucb/* ) ;;
1674     *)
1675       # OSF1 and SCO ODT 3.0 have their own names for install.
1676       # Don't use installbsd from OSF since it installs stuff as root
1677       # by default.
1678       for ac_prog in ginstall scoinst install; do
1679         if test -f "$ac_dir/$ac_prog"; then
1680           if test $ac_prog = install &&
1681             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1682             # AIX install.  It has an incompatible calling convention.
1683             :
1684           elif test $ac_prog = install &&
1685             grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1686             # program-specific install script used by HP pwplus--don't use.
1687             :
1688           else
1689             ac_cv_path_install="$ac_dir/$ac_prog -c"
1690             break 2
1691           fi
1692         fi
1693       done
1694       ;;
1695     esac
1696   done
1697   IFS=$ac_save_IFS
1698
1699 fi
1700   if test "${ac_cv_path_install+set}" = set; then
1701     INSTALL=$ac_cv_path_install
1702   else
1703     # As a last resort, use the slow shell script.  We don't cache a
1704     # path for INSTALL within a source directory, because that will
1705     # break other packages using the cache if that directory is
1706     # removed, or if the path is relative.
1707     INSTALL=$ac_install_sh
1708   fi
1709 fi
1710 echo "$as_me:1710: result: $INSTALL" >&5
1711 echo "${ECHO_T}$INSTALL" >&6
1712
1713 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1714 # It thinks the first close brace ends the variable substitution.
1715 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1716
1717 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1718
1719 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1720
1721 echo "$as_me:1721: checking whether build environment is sane" >&5
1722 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1723 # Just in case
1724 sleep 1
1725 echo timestamp > conftestfile
1726 # Do `set' in a subshell so we don't clobber the current shell's
1727 # arguments.  Must try -L first in case configure is actually a
1728 # symlink; some systems play weird games with the mod time of symlinks
1729 # (eg FreeBSD returns the mod time of the symlink's containing
1730 # directory).
1731 if (
1732    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1733    if test "$*" = "X"; then
1734       # -L didn't work.
1735       set X `ls -t $srcdir/configure conftestfile`
1736    fi
1737    if test "$*" != "X $srcdir/configure conftestfile" \
1738       && test "$*" != "X conftestfile $srcdir/configure"; then
1739
1740       # If neither matched, then we have a broken ls.  This can happen
1741       # if, for instance, CONFIG_SHELL is bash and it inherits a
1742       # broken ls alias from the environment.  This has actually
1743       # happened.  Such a system could not be considered "sane".
1744       {  echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1745 alias in your environment" >&2
1746   { (exit 1); exit; }; }
1747    fi
1748
1749    test "$2" = conftestfile
1750    )
1751 then
1752    # Ok.
1753    :
1754 else
1755    {  echo "$as_me: error: newly created file is older than distributed files!
1756 Check your system clock" >&2
1757   { (exit 1); exit; }; }
1758 fi
1759 rm -f conftest*
1760 echo "$as_me:1760: result: yes" >&5
1761 echo "${ECHO_T}yes" >&6
1762 if test "$program_transform_name" = s,x,x,; then
1763   program_transform_name=
1764 else
1765   # Double any \ or $.  echo might interpret backslashes.
1766   cat <<\EOF >conftestsed
1767 s,\\,\\\\,g; s,\$,$$,g
1768 EOF
1769   program_transform_name=`echo $program_transform_name | sed -f conftestsed`
1770   rm -f conftestsed
1771 fi
1772 test "$program_prefix" != NONE &&
1773   program_transform_name="s,^,${program_prefix},;$program_transform_name"
1774 # Use a double $ so make ignores it.
1775 test "$program_suffix" != NONE &&
1776   program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1777
1778 # sed with no file args requires a program.
1779 test -z "$program_transform_name" && program_transform_name="s,x,x,"
1780
1781 test x"${MISSING+set}" = xset || \
1782   MISSING="\${SHELL} `CDPATH=:; cd $ac_aux_dir && pwd`/missing"
1783 # Use eval to expand $SHELL
1784 if eval "$MISSING --run :"; then
1785   am_missing_run="$MISSING --run "
1786 else
1787   am_missing_run=
1788   am_backtick='`'
1789   { echo "$as_me:1789: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1790 echo "$as_me: warning: ${am_backtick}missing' script is too old or missing" >&2; }
1791 fi
1792
1793 for ac_prog in mawk gawk nawk awk
1794 do
1795   # Extract the first word of "$ac_prog", so it can be a program name with args.
1796 set dummy $ac_prog; ac_word=$2
1797 echo "$as_me:1797: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_AWK+set}" = set; then
1800   echo $ECHO_N "(cached) $ECHO_C" >&6
1801 else
1802   if test -n "$AWK"; then
1803   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1804 else
1805   ac_save_IFS=$IFS; IFS=':'
1806 ac_dummy="$PATH"
1807 for ac_dir in $ac_dummy; do
1808   IFS=$ac_save_IFS
1809   test -z "$ac_dir" && ac_dir=.
1810   test -f "$ac_dir/$ac_word" || continue
1811 ac_cv_prog_AWK="$ac_prog"
1812 break
1813 done
1814
1815 fi
1816 fi
1817 AWK=$ac_cv_prog_AWK
1818 if test -n "$AWK"; then
1819   echo "$as_me:1819: result: $AWK" >&5
1820 echo "${ECHO_T}$AWK" >&6
1821 else
1822   echo "$as_me:1822: result: no" >&5
1823 echo "${ECHO_T}no" >&6
1824 fi
1825
1826   test -n "$AWK" && break
1827 done
1828
1829 echo "$as_me:1829: checking whether ${MAKE-make} sets \${MAKE}" >&5
1830 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1831 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1832 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1833   echo $ECHO_N "(cached) $ECHO_C" >&6
1834 else
1835   cat >conftestmake <<\EOF
1836 all:
1837         @echo 'ac_maketemp="${MAKE}"'
1838 EOF
1839 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1840 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1841 if test -n "$ac_maketemp"; then
1842   eval ac_cv_prog_make_${ac_make}_set=yes
1843 else
1844   eval ac_cv_prog_make_${ac_make}_set=no
1845 fi
1846 rm -f conftestmake
1847 fi
1848 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1849   echo "$as_me:1849: result: yes" >&5
1850 echo "${ECHO_T}yes" >&6
1851   SET_MAKE=
1852 else
1853   echo "$as_me:1853: result: no" >&5
1854 echo "${ECHO_T}no" >&6
1855   SET_MAKE="MAKE=${MAKE-make}"
1856 fi
1857
1858 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1859 if test "${enable_dependency_tracking+set}" = set; then
1860   enableval="$enable_dependency_tracking"
1861
1862 fi;
1863 if test "x$enable_dependency_tracking" = xno; then
1864   AMDEP="#"
1865 else
1866   am_depcomp="$ac_aux_dir/depcomp"
1867   if test ! -f "$am_depcomp"; then
1868     AMDEP="#"
1869   else
1870     AMDEP=
1871   fi
1872 fi
1873
1874 if test -z "$AMDEP"; then
1875   AMDEPBACKSLASH='\'
1876 else
1877   AMDEPBACKSLASH=
1878 fi
1879
1880 if test -d .deps || mkdir .deps 2> /dev/null || test -d .deps; then
1881   DEPDIR=.deps
1882   # We redirect because .deps might already exist and be populated.
1883   # In this situation we don't want to see an error.
1884   rmdir .deps > /dev/null 2>&1
1885 else
1886   DEPDIR=_deps
1887 fi
1888
1889 ac_config_commands="$ac_config_commands default-2"
1890
1891 # test to see if srcdir already configured
1892 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1893    test -f $srcdir/config.status; then
1894   {  echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2
1895   { (exit 1); exit; }; }
1896 fi
1897
1898 # Define the identity of the package.
1899 PACKAGE=heimdal
1900 VERSION=0.3f
1901
1902 cat >>confdefs.h <<EOF
1903 #define PACKAGE "$PACKAGE"
1904 EOF
1905
1906 cat >>confdefs.h <<EOF
1907 #define VERSION "$VERSION"
1908 EOF
1909
1910 # Some tools Automake needs.
1911
1912 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1913
1914 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1915
1916 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1917
1918 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1919
1920 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1921
1922 AMTAR=${AMTAR-"${am_missing_run}tar"}
1923
1924 if test -z "$install_sh"; then
1925    install_sh="$ac_aux_dir/install-sh"
1926    test -f "$install_sh" || install_sh="$ac_aux_dir/install.sh"
1927    test -f "$install_sh" || install_sh="${am_missing_run}${ac_auxdir}/install-sh"
1928          install_sh="`echo $install_sh | sed -e 's/\${SHELL}//'`"
1929 fi
1930
1931 # We need awk for the "check" target.  The system "awk" is bad on
1932 # some platforms.
1933
1934 depcc="$CC"
1935 depcpp="$CPP"
1936 echo "$as_me:1936: checking dependency style of $depcc" >&5
1937 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
1938 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
1939   echo $ECHO_N "(cached) $ECHO_C" >&6
1940 else
1941
1942 if test -z "$AMDEP"; then
1943   echo '#include "conftest.h"' > conftest.c
1944   echo 'int i;' > conftest.h
1945
1946   am_cv_CC_dependencies_compiler_type=none
1947   for depmode in `sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < "$am_depcomp"`; do
1948     case "$depmode" in
1949     nosideeffect)
1950       # after this tag, mechanisms are not by side-effect, so they'll
1951       # only be used when explicitly requested
1952       if test "x$enable_dependency_tracking" = xyes; then
1953         continue
1954       else
1955         break
1956       fi
1957       ;;
1958     none) break ;;
1959     esac
1960     # We check with `-c' and `-o' for the sake of the "dashmstdout"
1961     # mode.  It turns out that the SunPro C++ compiler does not properly
1962     # handle `-M -o', and we need to detect this.
1963     if depmode="$depmode" \
1964        source=conftest.c object=conftest.o \
1965        depfile=conftest.Po tmpdepfile=conftest.TPo \
1966        $SHELL $am_depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
1967        grep conftest.h conftest.Po > /dev/null 2>&1; then
1968       am_cv_CC_dependencies_compiler_type="$depmode"
1969       break
1970     fi
1971   done
1972
1973   rm -f conftest.*
1974 else
1975   am_cv_CC_dependencies_compiler_type=none
1976 fi
1977
1978 fi
1979
1980 echo "$as_me:1980: result: $am_cv_CC_dependencies_compiler_type" >&5
1981 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
1982 CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
1983
1984 # Make sure we can run config.sub.
1985 $ac_config_sub sun4 >/dev/null 2>&1 ||
1986   {  echo "$as_me: error: cannot run $ac_config_sub" >&2
1987   { (exit 1); exit; }; }
1988
1989 echo "$as_me:1989: checking build system type" >&5
1990 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1991 if test "${ac_cv_build+set}" = set; then
1992   echo $ECHO_N "(cached) $ECHO_C" >&6
1993 else
1994   ac_cv_build_alias=$build_alias
1995 test -z "$ac_cv_build_alias" &&
1996   ac_cv_build_alias=`$ac_config_guess`
1997 test -z "$ac_cv_build_alias" &&
1998   {  echo "$as_me: error: cannot guess build type; you must specify one" >&2
1999   { (exit 1); exit; }; }
2000 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2001   {  echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2
2002   { (exit 1); exit; }; }
2003
2004 fi
2005 echo "$as_me:2005: result: $ac_cv_build" >&5
2006 echo "${ECHO_T}$ac_cv_build" >&6
2007 build=$ac_cv_build
2008 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2009 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2010 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2011
2012 echo "$as_me:2012: checking host system type" >&5
2013 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2014 if test "${ac_cv_host+set}" = set; then
2015   echo $ECHO_N "(cached) $ECHO_C" >&6
2016 else
2017   ac_cv_host_alias=$host_alias
2018 test -z "$ac_cv_host_alias" &&
2019   ac_cv_host_alias=$ac_cv_build_alias
2020 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2021   {  echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2
2022   { (exit 1); exit; }; }
2023
2024 fi
2025 echo "$as_me:2025: result: $ac_cv_host" >&5
2026 echo "${ECHO_T}$ac_cv_host" >&6
2027 host=$ac_cv_host
2028 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2029 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2030 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2031
2032 CANONICAL_HOST=$host
2033
2034 sunos=no
2035 case "$host" in
2036 *-*-sunos4*)
2037         sunos=40
2038         ;;
2039 *-*-solaris2.7)
2040         sunos=57
2041         ;;
2042 *-*-solaris2.8)
2043         sunos=58
2044         ;;
2045 *-*-solaris2*)
2046         sunos=50
2047         ;;
2048 esac
2049 if test "$sunos" != no; then
2050
2051 cat >>confdefs.h <<EOF
2052 #define SunOS $sunos
2053 EOF
2054
2055 fi
2056
2057 aix=no
2058 case "$host" in
2059 *-*-aix3*)
2060         aix=3
2061         ;;
2062 *-*-aix4*)
2063         aix=4
2064         ;;
2065 esac
2066
2067 #test -z "$CFLAGS" && CFLAGS="-g"
2068
2069 for ac_prog in 'bison -y' byacc
2070 do
2071   # Extract the first word of "$ac_prog", so it can be a program name with args.
2072 set dummy $ac_prog; ac_word=$2
2073 echo "$as_me:2073: checking for $ac_word" >&5
2074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2075 if test "${ac_cv_prog_YACC+set}" = set; then
2076   echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078   if test -n "$YACC"; then
2079   ac_cv_prog_YACC="$YACC" # Let the user override the test.
2080 else
2081   ac_save_IFS=$IFS; IFS=':'
2082 ac_dummy="$PATH"
2083 for ac_dir in $ac_dummy; do
2084   IFS=$ac_save_IFS
2085   test -z "$ac_dir" && ac_dir=.
2086   test -f "$ac_dir/$ac_word" || continue
2087 ac_cv_prog_YACC="$ac_prog"
2088 break
2089 done
2090
2091 fi
2092 fi
2093 YACC=$ac_cv_prog_YACC
2094 if test -n "$YACC"; then
2095   echo "$as_me:2095: result: $YACC" >&5
2096 echo "${ECHO_T}$YACC" >&6
2097 else
2098   echo "$as_me:2098: result: no" >&5
2099 echo "${ECHO_T}no" >&6
2100 fi
2101
2102   test -n "$YACC" && break
2103 done
2104 test -n "$YACC" || YACC="yacc"
2105
2106 for ac_prog in flex lex
2107 do
2108   # Extract the first word of "$ac_prog", so it can be a program name with args.
2109 set dummy $ac_prog; ac_word=$2
2110 echo "$as_me:2110: checking for $ac_word" >&5
2111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2112 if test "${ac_cv_prog_LEX+set}" = set; then
2113   echo $ECHO_N "(cached) $ECHO_C" >&6
2114 else
2115   if test -n "$LEX"; then
2116   ac_cv_prog_LEX="$LEX" # Let the user override the test.
2117 else
2118   ac_save_IFS=$IFS; IFS=':'
2119 ac_dummy="$PATH"
2120 for ac_dir in $ac_dummy; do
2121   IFS=$ac_save_IFS
2122   test -z "$ac_dir" && ac_dir=.
2123   test -f "$ac_dir/$ac_word" || continue
2124 ac_cv_prog_LEX="$ac_prog"
2125 break
2126 done
2127
2128 fi
2129 fi
2130 LEX=$ac_cv_prog_LEX
2131 if test -n "$LEX"; then
2132   echo "$as_me:2132: result: $LEX" >&5
2133 echo "${ECHO_T}$LEX" >&6
2134 else
2135   echo "$as_me:2135: result: no" >&5
2136 echo "${ECHO_T}no" >&6
2137 fi
2138
2139   test -n "$LEX" && break
2140 done
2141 test -n "$LEX" || LEX="${am_missing_run}flex"
2142
2143 for ac_prog in flex lex
2144 do
2145   # Extract the first word of "$ac_prog", so it can be a program name with args.
2146 set dummy $ac_prog; ac_word=$2
2147 echo "$as_me:2147: checking for $ac_word" >&5
2148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2149 if test "${ac_cv_prog_LEX+set}" = set; then
2150   echo $ECHO_N "(cached) $ECHO_C" >&6
2151 else
2152   if test -n "$LEX"; then
2153   ac_cv_prog_LEX="$LEX" # Let the user override the test.
2154 else
2155   ac_save_IFS=$IFS; IFS=':'
2156 ac_dummy="$PATH"
2157 for ac_dir in $ac_dummy; do
2158   IFS=$ac_save_IFS
2159   test -z "$ac_dir" && ac_dir=.
2160   test -f "$ac_dir/$ac_word" || continue
2161 ac_cv_prog_LEX="$ac_prog"
2162 break
2163 done
2164
2165 fi
2166 fi
2167 LEX=$ac_cv_prog_LEX
2168 if test -n "$LEX"; then
2169   echo "$as_me:2169: result: $LEX" >&5
2170 echo "${ECHO_T}$LEX" >&6
2171 else
2172   echo "$as_me:2172: result: no" >&5
2173 echo "${ECHO_T}no" >&6
2174 fi
2175
2176   test -n "$LEX" && break
2177 done
2178 test -n "$LEX" || LEX=":"
2179
2180 if test -z "$LEXLIB"
2181 then
2182
2183 echo "$as_me:2183: checking for yywrap in -lfl" >&5
2184 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2185 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2186   echo $ECHO_N "(cached) $ECHO_C" >&6
2187 else
2188   ac_check_lib_save_LIBS=$LIBS
2189 LIBS="-lfl  $LIBS"
2190 cat >conftest.$ac_ext <<_ACEOF
2191 #line 2191 "configure"
2192 #include "confdefs.h"
2193
2194 /* Override any gcc2 internal prototype to avoid an error.  */
2195 #ifdef __cplusplus
2196 extern "C"
2197 #endif
2198 /* We use char because int might match the return type of a gcc2
2199    builtin and then its argument prototype would still apply.  */
2200 char yywrap ();
2201 int
2202 main ()
2203 {
2204 yywrap ();
2205   ;
2206   return 0;
2207 }
2208 _ACEOF
2209 rm -f conftest.$ac_objext conftest$ac_exeext
2210 if { (eval echo $as_me:2210: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
2211   ac_cv_lib_fl_yywrap=yes
2212 else
2213   echo "$as_me: failed program was:" >&5
2214   cat conftest.$ac_ext >&5
2215   ac_cv_lib_fl_yywrap=no
2216 fi
2217 rm -f conftest$ac_exeext conftest.$ac_ext
2218 LIBS=$ac_check_lib_save_LIBS
2219 fi
2220 echo "$as_me:2220: result: $ac_cv_lib_fl_yywrap" >&5
2221 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2222 if test $ac_cv_lib_fl_yywrap = yes; then
2223   LEXLIB="-lfl"
2224 else
2225
2226 echo "$as_me:2226: checking for yywrap in -ll" >&5
2227 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2228 if test "${ac_cv_lib_l_yywrap+set}" = set; then
2229   echo $ECHO_N "(cached) $ECHO_C" >&6
2230 else
2231   ac_check_lib_save_LIBS=$LIBS
2232 LIBS="-ll  $LIBS"
2233 cat >conftest.$ac_ext <<_ACEOF
2234 #line 2234 "configure"
2235 #include "confdefs.h"
2236
2237 /* Override any gcc2 internal prototype to avoid an error.  */
2238 #ifdef __cplusplus
2239 extern "C"
2240 #endif
2241 /* We use char because int might match the return type of a gcc2
2242    builtin and then its argument prototype would still apply.  */
2243 char yywrap ();
2244 int
2245 main ()
2246 {
2247 yywrap ();
2248   ;
2249   return 0;
2250 }
2251 _ACEOF
2252 rm -f conftest.$ac_objext conftest$ac_exeext
2253 if { (eval echo $as_me:2253: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
2254   ac_cv_lib_l_yywrap=yes
2255 else
2256   echo "$as_me: failed program was:" >&5
2257   cat conftest.$ac_ext >&5
2258   ac_cv_lib_l_yywrap=no
2259 fi
2260 rm -f conftest$ac_exeext conftest.$ac_ext
2261 LIBS=$ac_check_lib_save_LIBS
2262 fi
2263 echo "$as_me:2263: result: $ac_cv_lib_l_yywrap" >&5
2264 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2265 if test $ac_cv_lib_l_yywrap = yes; then
2266   LEXLIB="-ll"
2267 fi
2268
2269 fi
2270
2271 fi
2272
2273 if test "x$LEX" != "x:"; then
2274   echo "$as_me:2274: checking lex output file root" >&5
2275 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
2276 if test "${ac_cv_prog_lex_root+set}" = set; then
2277   echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279   # The minimal lex program is just a single line: %%.  But some broken lexes
2280 # (Solaris, I think it was) want two %% lines, so accommodate them.
2281 echo '%%
2282 %%' | $LEX
2283 if test -f lex.yy.c; then
2284   ac_cv_prog_lex_root=lex.yy
2285 elif test -f lexyy.c; then
2286   ac_cv_prog_lex_root=lexyy
2287 else
2288   {  echo "$as_me: error: cannot find output from $LEX; giving up" >&2
2289   { (exit 1); exit; }; }
2290 fi
2291 fi
2292 echo "$as_me:2292: result: $ac_cv_prog_lex_root" >&5
2293 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
2294 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2295
2296 echo "$as_me:2296: checking whether yytext is a pointer" >&5
2297 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
2298 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2299   echo $ECHO_N "(cached) $ECHO_C" >&6
2300 else
2301   # POSIX says lex can declare yytext either as a pointer or an array; the
2302 # default is implementation-dependent. Figure out which it is, since
2303 # not all implementations provide the %pointer and %array declarations.
2304 ac_cv_prog_lex_yytext_pointer=no
2305 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2306 ac_save_LIBS=$LIBS
2307 LIBS="$LIBS $LEXLIB"
2308 cat >conftest.$ac_ext <<_ACEOF
2309 `cat $LEX_OUTPUT_ROOT.c`
2310 _ACEOF
2311 rm -f conftest.$ac_objext conftest$ac_exeext
2312 if { (eval echo $as_me:2312: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
2313   ac_cv_prog_lex_yytext_pointer=yes
2314 else
2315   echo "$as_me: failed program was:" >&5
2316   cat conftest.$ac_ext >&5
2317 fi
2318 rm -f conftest$ac_exeext conftest.$ac_ext
2319 LIBS=$ac_save_LIBS
2320 rm -f "${LEX_OUTPUT_ROOT}.c"
2321
2322 fi
2323 echo "$as_me:2323: result: $ac_cv_prog_lex_yytext_pointer" >&5
2324 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
2325 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2326
2327 cat >>confdefs.h <<\EOF
2328 #define YYTEXT_POINTER 1
2329 EOF
2330
2331 fi
2332
2333 fi
2334
2335 if test -n "$ac_tool_prefix"; then
2336   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2337 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2338 echo "$as_me:2338: checking for $ac_word" >&5
2339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2340 if test "${ac_cv_prog_RANLIB+set}" = set; then
2341   echo $ECHO_N "(cached) $ECHO_C" >&6
2342 else
2343   if test -n "$RANLIB"; then
2344   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2345 else
2346   ac_save_IFS=$IFS; IFS=':'
2347 ac_dummy="$PATH"
2348 for ac_dir in $ac_dummy; do
2349   IFS=$ac_save_IFS
2350   test -z "$ac_dir" && ac_dir=.
2351   test -f "$ac_dir/$ac_word" || continue
2352 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2353 break
2354 done
2355
2356 fi
2357 fi
2358 RANLIB=$ac_cv_prog_RANLIB
2359 if test -n "$RANLIB"; then
2360   echo "$as_me:2360: result: $RANLIB" >&5
2361 echo "${ECHO_T}$RANLIB" >&6
2362 else
2363   echo "$as_me:2363: result: no" >&5
2364 echo "${ECHO_T}no" >&6
2365 fi
2366
2367 fi
2368 if test -z "$ac_cv_prog_RANLIB"; then
2369   ac_ct_RANLIB=$RANLIB
2370   # Extract the first word of "ranlib", so it can be a program name with args.
2371 set dummy ranlib; ac_word=$2
2372 echo "$as_me:2372: checking for $ac_word" >&5
2373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2374 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2375   echo $ECHO_N "(cached) $ECHO_C" >&6
2376 else
2377   if test -n "$ac_ct_RANLIB"; then
2378   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2379 else
2380   ac_save_IFS=$IFS; IFS=':'
2381 ac_dummy="$PATH"
2382 for ac_dir in $ac_dummy; do
2383   IFS=$ac_save_IFS
2384   test -z "$ac_dir" && ac_dir=.
2385   test -f "$ac_dir/$ac_word" || continue
2386 ac_cv_prog_ac_ct_RANLIB="ranlib"
2387 break
2388 done
2389
2390   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2391 fi
2392 fi
2393 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2394 if test -n "$ac_ct_RANLIB"; then
2395   echo "$as_me:2395: result: $ac_ct_RANLIB" >&5
2396 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2397 else
2398   echo "$as_me:2398: result: no" >&5
2399 echo "${ECHO_T}no" >&6
2400 fi
2401
2402   RANLIB=$ac_ct_RANLIB
2403 else
2404   RANLIB="$ac_cv_prog_RANLIB"
2405 fi
2406
2407 for ac_prog in mawk gawk nawk awk
2408 do
2409   # Extract the first word of "$ac_prog", so it can be a program name with args.
2410 set dummy $ac_prog; ac_word=$2
2411 echo "$as_me:2411: checking for $ac_word" >&5
2412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2413 if test "${ac_cv_prog_AWK+set}" = set; then
2414   echo $ECHO_N "(cached) $ECHO_C" >&6
2415 else
2416   if test -n "$AWK"; then
2417   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2418 else
2419   ac_save_IFS=$IFS; IFS=':'
2420 ac_dummy="$PATH"
2421 for ac_dir in $ac_dummy; do
2422   IFS=$ac_save_IFS
2423   test -z "$ac_dir" && ac_dir=.
2424   test -f "$ac_dir/$ac_word" || continue
2425 ac_cv_prog_AWK="$ac_prog"
2426 break
2427 done
2428
2429 fi
2430 fi
2431 AWK=$ac_cv_prog_AWK
2432 if test -n "$AWK"; then
2433   echo "$as_me:2433: result: $AWK" >&5
2434 echo "${ECHO_T}$AWK" >&6
2435 else
2436   echo "$as_me:2436: result: no" >&5
2437 echo "${ECHO_T}no" >&6
2438 fi
2439
2440   test -n "$AWK" && break
2441 done
2442
2443 echo "$as_me:2443: checking for ln -s or something else" >&5
2444 echo $ECHO_N "checking for ln -s or something else... $ECHO_C" >&6
2445 if test "${ac_cv_prog_LN_S+set}" = set; then
2446   echo $ECHO_N "(cached) $ECHO_C" >&6
2447 else
2448   rm -f conftestdata
2449 if ln -s X conftestdata 2>/dev/null
2450 then
2451   rm -f conftestdata
2452   ac_cv_prog_LN_S="ln -s"
2453 else
2454   touch conftestdata1
2455   if ln conftestdata1 conftestdata2; then
2456     rm -f conftestdata*
2457     ac_cv_prog_LN_S=ln
2458   else
2459     ac_cv_prog_LN_S=cp
2460   fi
2461 fi
2462 fi
2463 LN_S="$ac_cv_prog_LN_S"
2464 echo "$as_me:2464: result: $ac_cv_prog_LN_S" >&5
2465 echo "${ECHO_T}$ac_cv_prog_LN_S" >&6
2466
2467 # Check whether --with-mips_abi or --without-mips_abi was given.
2468 if test "${with_mips_abi+set}" = set; then
2469   withval="$with_mips_abi"
2470
2471 fi;
2472
2473 case "$host_os" in
2474 irix*)
2475 with_mips_abi="${with_mips_abi:-yes}"
2476 if test -n "$GCC"; then
2477
2478 # GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select
2479 # which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs.
2480 #
2481 # Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old
2482 # GCC and revert back to O32. The same goes if O32 is asked for - old
2483 # GCCs doesn't like the -mabi option, and new GCCs can't output O32.
2484 #
2485 # Don't you just love *all* the different SGI ABIs?
2486
2487 case "${with_mips_abi}" in
2488         32|o32) abi='-mabi=32';  abilibdirext=''     ;;
2489        n32|yes) abi='-mabi=n32'; abilibdirext='32'  ;;
2490         64) abi='-mabi=64';  abilibdirext='64'   ;;
2491         no) abi=''; abilibdirext='';;
2492          *) {  echo "$as_me: error: \"Invalid ABI specified\"" >&2
2493   { (exit 1); exit; }; } ;;
2494 esac
2495 if test -n "$abi" ; then
2496 ac_foo=krb_cv_gcc_`echo $abi | tr =- __`
2497 echo "$as_me:2497: checking if $CC supports the $abi option" >&5
2498 echo $ECHO_N "checking if $CC supports the $abi option... $ECHO_C" >&6
2499 if eval "test \"\${$ac_foo+set}\" = set"; then
2500   echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502
2503 save_CFLAGS="$CFLAGS"
2504 CFLAGS="$CFLAGS $abi"
2505 cat >conftest.$ac_ext <<_ACEOF
2506 #line 2506 "configure"
2507 #include "confdefs.h"
2508
2509 int
2510 main ()
2511 {
2512 int x;
2513   ;
2514   return 0;
2515 }
2516 _ACEOF
2517 rm -f conftest.$ac_objext
2518 if { (eval echo $as_me:2518: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
2519   eval $ac_foo=yes
2520 else
2521   echo "$as_me: failed program was:" >&5
2522   cat conftest.$ac_ext >&5
2523   eval $ac_foo=no
2524 fi
2525 rm -f conftest.$ac_objext conftest.$ac_ext
2526 CFLAGS="$save_CFLAGS"
2527
2528 fi
2529
2530 ac_res=`eval echo \\\$$ac_foo`
2531 echo "$as_me:2531: result: $ac_res" >&5
2532 echo "${ECHO_T}$ac_res" >&6
2533 if test $ac_res = no; then
2534 # Try to figure out why that failed...
2535 case $abi in
2536         -mabi=32)
2537         save_CFLAGS="$CFLAGS"
2538         CFLAGS="$CFLAGS -mabi=n32"
2539         cat >conftest.$ac_ext <<_ACEOF
2540 #line 2540 "configure"
2541 #include "confdefs.h"
2542
2543 int
2544 main ()
2545 {
2546 int x;
2547   ;
2548   return 0;
2549 }
2550 _ACEOF
2551 rm -f conftest.$ac_objext
2552 if { (eval echo $as_me:2552: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
2553   ac_res=yes
2554 else
2555   echo "$as_me: failed program was:" >&5
2556   cat conftest.$ac_ext >&5
2557   ac_res=no
2558 fi
2559 rm -f conftest.$ac_objext conftest.$ac_ext
2560         CLAGS="$save_CFLAGS"
2561         if test $ac_res = yes; then
2562                 # New GCC
2563                 {  echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2
2564   { (exit 1); exit; }; }
2565         fi
2566         # Old GCC
2567         abi=''
2568         abilibdirext=''
2569         ;;
2570         -mabi=n32|-mabi=64)
2571                 if test $with_mips_abi = yes; then
2572                         # Old GCC, default to O32
2573                         abi=''
2574                         abilibdirext=''
2575                 else
2576                         # Some broken GCC
2577                         {  echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2
2578   { (exit 1); exit; }; }
2579                 fi
2580         ;;
2581 esac
2582 fi #if test $ac_res = no; then
2583 fi #if test -n "$abi" ; then
2584 else
2585 case "${with_mips_abi}" in
2586         32|o32) abi='-32'; abilibdirext=''     ;;
2587        n32|yes) abi='-n32'; abilibdirext='32'  ;;
2588         64) abi='-64'; abilibdirext='64'   ;;
2589         no) abi=''; abilibdirext='';;
2590          *) {  echo "$as_me: error: \"Invalid ABI specified\"" >&2
2591   { (exit 1); exit; }; } ;;
2592 esac
2593 fi #if test -n "$GCC"; then
2594 ;;
2595 esac
2596
2597 CC="$CC $abi"
2598 libdir="$libdir$abilibdirext"
2599
2600 echo "$as_me:2600: checking for __attribute__" >&5
2601 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2602 if test "${ac_cv___attribute__+set}" = set; then
2603   echo $ECHO_N "(cached) $ECHO_C" >&6
2604 else
2605
2606 cat >conftest.$ac_ext <<_ACEOF
2607 #line 2607 "configure"
2608 #include "confdefs.h"
2609
2610 #include <stdlib.h>
2611
2612 int
2613 main ()
2614 {
2615
2616 static void foo(void) __attribute__ ((noreturn));
2617
2618 static void
2619 foo(void)
2620 {
2621   exit(1);
2622 }
2623
2624   ;
2625   return 0;
2626 }
2627 _ACEOF
2628 rm -f conftest.$ac_objext
2629 if { (eval echo $as_me:2629: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
2630   ac_cv___attribute__=yes
2631 else
2632   echo "$as_me: failed program was:" >&5
2633   cat conftest.$ac_ext >&5
2634   ac_cv___attribute__=no
2635 fi
2636 rm -f conftest.$ac_objext conftest.$ac_ext
2637 fi
2638
2639 if test "$ac_cv___attribute__" = "yes"; then
2640
2641 cat >>confdefs.h <<\EOF
2642 #define HAVE___ATTRIBUTE__ 1
2643 EOF
2644
2645 fi
2646 echo "$as_me:2646: result: $ac_cv___attribute__" >&5
2647 echo "${ECHO_T}$ac_cv___attribute__" >&6
2648
2649 # Check whether --enable-shared or --disable-shared was given.
2650 if test "${enable_shared+set}" = set; then
2651   enableval="$enable_shared"
2652   p=${PACKAGE-default}
2653 case "$enableval" in
2654 yes) enable_shared=yes ;;
2655 no) enable_shared=no ;;
2656 *)
2657   enable_shared=no
2658   # Look at the argument we got.  We use all the common list separators.
2659   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2660   for pkg in $enableval; do
2661     if test "X$pkg" = "X$p"; then
2662       enable_shared=yes
2663     fi
2664   done
2665   IFS="$ac_save_ifs"
2666   ;;
2667 esac
2668 else
2669   enable_shared=no
2670 fi;
2671 # Check whether --enable-static or --disable-static was given.
2672 if test "${enable_static+set}" = set; then
2673   enableval="$enable_static"
2674   p=${PACKAGE-default}
2675 case "$enableval" in
2676 yes) enable_static=yes ;;
2677 no) enable_static=no ;;
2678 *)
2679   enable_static=no
2680   # Look at the argument we got.  We use all the common list separators.
2681   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2682   for pkg in $enableval; do
2683     if test "X$pkg" = "X$p"; then
2684       enable_static=yes
2685     fi
2686   done
2687   IFS="$ac_save_ifs"
2688   ;;
2689 esac
2690 else
2691   enable_static=yes
2692 fi;
2693 # Check whether --enable-fast-install or --disable-fast-install was given.
2694 if test "${enable_fast_install+set}" = set; then
2695   enableval="$enable_fast_install"
2696   p=${PACKAGE-default}
2697 case "$enableval" in
2698 yes) enable_fast_install=yes ;;
2699 no) enable_fast_install=no ;;
2700 *)
2701   enable_fast_install=no
2702   # Look at the argument we got.  We use all the common list separators.
2703   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2704   for pkg in $enableval; do
2705     if test "X$pkg" = "X$p"; then
2706       enable_fast_install=yes
2707     fi
2708   done
2709   IFS="$ac_save_ifs"
2710   ;;
2711 esac
2712 else
2713   enable_fast_install=yes
2714 fi;
2715
2716 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2717 if test "${with_gnu_ld+set}" = set; then
2718   withval="$with_gnu_ld"
2719   test "$withval" = no || with_gnu_ld=yes
2720 else
2721   with_gnu_ld=no
2722 fi;
2723 ac_prog=ld
2724 if test "$ac_cv_c_compiler_gnu" = yes; then
2725   # Check if gcc -print-prog-name=ld gives a path.
2726   echo "$as_me:2726: checking for ld used by GCC" >&5
2727 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2728   case $host in
2729   *-*-mingw*)
2730     # gcc leaves a trailing carriage return which upsets mingw
2731     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2732   *)
2733     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2734   esac
2735   case "$ac_prog" in
2736     # Accept absolute paths.
2737     [\\/]* | [A-Za-z]:[\\/]*)
2738       re_direlt='/[^/][^/]*/\.\./'
2739       # Canonicalize the path of ld
2740       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2741       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2742         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2743       done
2744       test -z "$LD" && LD="$ac_prog"
2745       ;;
2746   "")
2747     # If it fails, then pretend we aren't using GCC.
2748     ac_prog=ld
2749     ;;
2750   *)
2751     # If it is relative, then search for the first ld in PATH.
2752     with_gnu_ld=unknown
2753     ;;
2754   esac
2755 elif test "$with_gnu_ld" = yes; then
2756   echo "$as_me:2756: checking for GNU ld" >&5
2757 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2758 else
2759   echo "$as_me:2759: checking for non-GNU ld" >&5
2760 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2761 fi
2762 if test "${ac_cv_path_LD+set}" = set; then
2763   echo $ECHO_N "(cached) $ECHO_C" >&6
2764 else
2765   if test -z "$LD"; then
2766   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2767   for ac_dir in $PATH; do
2768     test -z "$ac_dir" && ac_dir=.
2769     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2770       ac_cv_path_LD="$ac_dir/$ac_prog"
2771       # Check to see if the program is GNU ld.  I'd rather use --version,
2772       # but apparently some GNU ld's only accept -v.
2773       # Break only if it was the GNU/non-GNU ld that we prefer.
2774       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2775         test "$with_gnu_ld" != no && break
2776       else
2777         test "$with_gnu_ld" != yes && break
2778       fi
2779     fi
2780   done
2781   IFS="$ac_save_ifs"
2782 else
2783   ac_cv_path_LD="$LD" # Let the user override the test with a path.
2784 fi
2785 fi
2786
2787 LD="$ac_cv_path_LD"
2788 if test -n "$LD"; then
2789   echo "$as_me:2789: result: $LD" >&5
2790 echo "${ECHO_T}$LD" >&6
2791 else
2792   echo "$as_me:2792: result: no" >&5
2793 echo "${ECHO_T}no" >&6
2794 fi
2795 test -z "$LD" && {  echo "$as_me: error: no acceptable ld found in \$PATH" >&2
2796   { (exit 1); exit; }; }
2797 echo "$as_me:2797: checking if the linker ($LD) is GNU ld" >&5
2798 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2799 if test "${ac_cv_prog_gnu_ld+set}" = set; then
2800   echo $ECHO_N "(cached) $ECHO_C" >&6
2801 else
2802   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2803 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2804   ac_cv_prog_gnu_ld=yes
2805 else
2806   ac_cv_prog_gnu_ld=no
2807 fi
2808 fi
2809 echo "$as_me:2809: result: $ac_cv_prog_gnu_ld" >&5
2810 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
2811 with_gnu_ld=$ac_cv_prog_gnu_ld
2812
2813 echo "$as_me:2813: checking for $LD option to reload object files" >&5
2814 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2815 if test "${lt_cv_ld_reload_flag+set}" = set; then
2816   echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818   lt_cv_ld_reload_flag='-r'
2819 fi
2820 echo "$as_me:2820: result: $lt_cv_ld_reload_flag" >&5
2821 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2822 reload_flag=$lt_cv_ld_reload_flag
2823 test -n "$reload_flag" && reload_flag=" $reload_flag"
2824
2825 echo "$as_me:2825: checking for BSD-compatible nm" >&5
2826 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2827 if test "${ac_cv_path_NM+set}" = set; then
2828   echo $ECHO_N "(cached) $ECHO_C" >&6
2829 else
2830   if test -n "$NM"; then
2831   # Let the user override the test.
2832   ac_cv_path_NM="$NM"
2833 else
2834   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2835   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2836     test -z "$ac_dir" && ac_dir=.
2837     tmp_nm=$ac_dir/${ac_tool_prefix}nm
2838     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2839       # Check to see if the nm accepts a BSD-compat flag.
2840       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2841       #   nm: unknown option "B" ignored
2842       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2843         ac_cv_path_NM="$tmp_nm -B"
2844         break
2845       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2846         ac_cv_path_NM="$tmp_nm -p"
2847         break
2848       else
2849         ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
2850         continue # so that we can try to find one that supports BSD flags
2851       fi
2852     fi
2853   done
2854   IFS="$ac_save_ifs"
2855   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2856 fi
2857 fi
2858
2859 NM="$ac_cv_path_NM"
2860 echo "$as_me:2860: result: $NM" >&5
2861 echo "${ECHO_T}$NM" >&6
2862
2863 echo "$as_me:2863: checking whether ln -s works" >&5
2864 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2865 if test "${ac_cv_prog_LN_S+set}" = set; then
2866   echo $ECHO_N "(cached) $ECHO_C" >&6
2867 else
2868   rm -f conftest.sym conftest.file
2869 echo >conftest.file
2870 if ln -s conftest.file conftest.sym 2>/dev/null; then
2871   ac_cv_prog_LN_S="ln -s"
2872 elif ln conftest.file conftest.sym 2>/dev/null; then
2873   ac_cv_prog_LN_S=ln
2874 else
2875   ac_cv_prog_LN_S=cp
2876 fi
2877 rm -f conftest.sym conftest.file
2878 fi
2879 LN_S=$ac_cv_prog_LN_S
2880
2881 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2882   echo "$as_me:2882: result: yes" >&5
2883 echo "${ECHO_T}yes" >&6
2884 else
2885   echo "$as_me:2885: result: no, using $LN_S" >&5
2886 echo "${ECHO_T}no, using $LN_S" >&6
2887 fi
2888
2889 echo "$as_me:2889: checking how to recognise dependant libraries" >&5
2890 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2891 if test "${lt_cv_deplibs_check_method+set}" = set; then
2892   echo $ECHO_N "(cached) $ECHO_C" >&6
2893 else
2894   lt_cv_file_magic_cmd='${MAGIC}'
2895 lt_cv_file_magic_test_file=
2896 lt_cv_deplibs_check_method='unknown'
2897 # Need to set the preceding variable on all platforms that support
2898 # interlibrary dependencies.
2899 # 'none' -- dependencies not supported.
2900 # `unknown' -- same as none, but documents that we really don't know.
2901 # 'pass_all' -- all dependencies passed with no checks.
2902 # 'test_compile' -- check by making test program.
2903 # 'file_magic [regex]' -- check by looking for files in library path
2904 # which responds to the $file_magic_cmd with a given egrep regex.
2905 # If you have `file' or equivalent on your system and you're not sure
2906 # whether `pass_all' will *always* work, you probably want this one.
2907
2908 case "$host_os" in
2909 aix4*)
2910   lt_cv_deplibs_check_method=pass_all
2911   ;;
2912
2913 beos*)
2914   lt_cv_deplibs_check_method=pass_all
2915   ;;
2916
2917 bsdi4*)
2918     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2919     lt_cv_file_magic_cmd='/usr/bin/file -L'
2920   lt_cv_file_magic_test_file=/shlib/libc.so
2921   ;;
2922
2923 cygwin* | mingw*)
2924   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2925   lt_cv_file_magic_cmd='${OBJDUMP} -f'
2926   ;;
2927
2928 freebsd*)
2929   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2930     case "$host_cpu" in
2931     i*86 )
2932             lt_cv_deplibs_check_method=='file_magic OpenBSD/i[3-9]86 demand paged shared library'
2933             lt_cv_file_magic_cmd=/usr/bin/file
2934       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2935       ;;
2936     esac
2937   else
2938     lt_cv_deplibs_check_method=pass_all
2939   fi
2940   ;;
2941
2942 gnu*)
2943   lt_cv_deplibs_check_method=pass_all
2944   ;;
2945
2946 hpux10.20*)
2947   # TODO:  Does this work for hpux-11 too?
2948   lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
2949   lt_cv_file_magic_cmd=/usr/bin/file
2950   lt_cv_file_magic_test_file=/usr/lib/libc.sl
2951   ;;
2952
2953 irix5* | irix6*)
2954   case "$host_os" in
2955   irix5*)
2956     # this will be overridden with pass_all, but let us keep it just in case
2957     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2958     ;;
2959   *)
2960     case "$LD" in
2961     *-32|*"-32 ") libmagic=32-bit;;
2962     *-n32|*"-n32 ") libmagic=N32;;
2963     *-64|*"-64 ") libmagic=64-bit;;
2964     *) libmagic=never-match;;
2965     esac
2966     # this will be overridden with pass_all, but let us keep it just in case
2967         lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2968         ;;
2969   esac
2970   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2971   lt_cv_deplibs_check_method=pass_all
2972   ;;
2973
2974 # This must be Linux ELF.
2975 linux-gnu*)
2976   case "$host_cpu" in
2977   alpha* | i*86 | powerpc* | sparc* | ia64* )
2978     lt_cv_deplibs_check_method=pass_all ;;
2979   *)
2980     # glibc up to 2.1.1 does not perform some relocations on ARM
2981         lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2982       esac
2983   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2984   ;;
2985
2986 netbsd*)
2987   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
2988   else
2989         lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2990         lt_cv_file_magic_cmd='/usr/bin/file -L'
2991     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2992   fi
2993   ;;
2994
2995 osf3* | osf4* | osf5*)
2996   # this will be overridden with pass_all, but let us keep it just in case
2997   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2998   lt_cv_file_magic_test_file=/shlib/libc.so
2999   lt_cv_deplibs_check_method=pass_all
3000   ;;
3001
3002 sco3.2v5*)
3003   lt_cv_deplibs_check_method=pass_all
3004   ;;
3005
3006 solaris*)
3007   lt_cv_deplibs_check_method=pass_all
3008   lt_cv_file_magic_test_file=/lib/libc.so
3009   ;;
3010
3011 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3012   case "$host_vendor" in
3013   ncr)
3014     lt_cv_deplibs_check_method=pass_all
3015     ;;
3016   motorola)
3017         lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3018         lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3019     ;;
3020   esac
3021   ;;
3022 esac
3023
3024 fi
3025 echo "$as_me:3025: result: $lt_cv_deplibs_check_method" >&5
3026 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3027 file_magic_cmd=$lt_cv_file_magic_cmd
3028 deplibs_check_method=$lt_cv_deplibs_check_method
3029
3030 # Only perform the check for file, if the check method requires it
3031 case "$deplibs_check_method" in
3032 file_magic*)
3033   if test "$file_magic_cmd" = '${MAGIC}'; then
3034     echo "$as_me:3034: checking for ${ac_tool_prefix}file" >&5
3035 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3036 if test "${lt_cv_path_MAGIC+set}" = set; then
3037   echo $ECHO_N "(cached) $ECHO_C" >&6
3038 else
3039   case "$MAGIC" in
3040   /*)
3041   lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
3042   ;;
3043   ?:/*)
3044   ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path.
3045   ;;
3046   *)
3047   ac_save_MAGIC="$MAGIC"
3048   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3049   ac_dummy="/usr/bin:$PATH"
3050   for ac_dir in $ac_dummy; do
3051     test -z "$ac_dir" && ac_dir=.
3052     if test -f $ac_dir/${ac_tool_prefix}file; then
3053       lt_cv_path_MAGIC="$ac_dir/${ac_tool_prefix}file"
3054       if test -n "$file_magic_test_file"; then
3055         case "$deplibs_check_method" in
3056         "file_magic "*)
3057           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3058           MAGIC="$lt_cv_path_MAGIC"
3059           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3060             egrep "$file_magic_regex" > /dev/null; then
3061             :
3062           else
3063             cat <<EOF 1>&2
3064
3065 *** Warning: the command libtool uses to detect shared libraries,
3066 *** $file_magic_cmd, produces output that libtool cannot recognize.
3067 *** The result is that libtool may fail to recognize shared libraries
3068 *** as such.  This will affect the creation of libtool libraries that
3069 *** depend on shared libraries, but programs linked with such libtool
3070 *** libraries will work regardless of this problem.  Nevertheless, you
3071 *** may want to report the problem to your system manager and/or to
3072 *** bug-libtool@gnu.org
3073
3074 EOF
3075           fi ;;
3076         esac
3077       fi
3078       break
3079     fi
3080   done
3081   IFS="$ac_save_ifs"
3082   MAGIC="$ac_save_MAGIC"
3083   ;;
3084 esac
3085 fi
3086
3087 MAGIC="$lt_cv_path_MAGIC"
3088 if test -n "$MAGIC"; then
3089   echo "$as_me:3089: result: $MAGIC" >&5
3090 echo "${ECHO_T}$MAGIC" >&6
3091 else
3092   echo "$as_me:3092: result: no" >&5
3093 echo "${ECHO_T}no" >&6
3094 fi
3095
3096 if test -z "$lt_cv_path_MAGIC"; then
3097   if test -n "$ac_tool_prefix"; then
3098     echo "$as_me:3098: checking for file" >&5
3099 echo $ECHO_N "checking for file... $ECHO_C" >&6
3100 if test "${lt_cv_path_MAGIC+set}" = set; then
3101   echo $ECHO_N "(cached) $ECHO_C" >&6
3102 else
3103   case "$MAGIC" in
3104   /*)
3105   lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
3106   ;;
3107   ?:/*)
3108   ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path.
3109   ;;
3110   *)
3111   ac_save_MAGIC="$MAGIC"
3112   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3113   ac_dummy="/usr/bin:$PATH"
3114   for ac_dir in $ac_dummy; do
3115     test -z "$ac_dir" && ac_dir=.
3116     if test -f $ac_dir/file; then
3117       lt_cv_path_MAGIC="$ac_dir/file"
3118       if test -n "$file_magic_test_file"; then
3119         case "$deplibs_check_method" in
3120         "file_magic "*)
3121           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3122           MAGIC="$lt_cv_path_MAGIC"
3123           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3124             egrep "$file_magic_regex" > /dev/null; then
3125             :
3126           else
3127             cat <<EOF 1>&2
3128
3129 *** Warning: the command libtool uses to detect shared libraries,
3130 *** $file_magic_cmd, produces output that libtool cannot recognize.
3131 *** The result is that libtool may fail to recognize shared libraries
3132 *** as such.  This will affect the creation of libtool libraries that
3133 *** depend on shared libraries, but programs linked with such libtool
3134 *** libraries will work regardless of this problem.  Nevertheless, you
3135 *** may want to report the problem to your system manager and/or to
3136 *** bug-libtool@gnu.org
3137
3138 EOF
3139           fi ;;
3140         esac
3141       fi
3142       break
3143     fi
3144   done
3145   IFS="$ac_save_ifs"
3146   MAGIC="$ac_save_MAGIC"
3147   ;;
3148 esac
3149 fi
3150
3151 MAGIC="$lt_cv_path_MAGIC"
3152 if test -n "$MAGIC"; then
3153   echo "$as_me:3153: result: $MAGIC" >&5
3154 echo "${ECHO_T}$MAGIC" >&6
3155 else
3156   echo "$as_me:3156: result: no" >&5
3157 echo "${ECHO_T}no" >&6
3158 fi
3159
3160   else
3161     MAGIC=:
3162   fi
3163 fi
3164
3165   fi
3166   ;;
3167 esac
3168
3169 if test -n "$ac_tool_prefix"; then
3170   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3171 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3172 echo "$as_me:3172: checking for $ac_word" >&5
3173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3174 if test "${ac_cv_prog_RANLIB+set}" = set; then
3175   echo $ECHO_N "(cached) $ECHO_C" >&6
3176 else
3177   if test -n "$RANLIB"; then
3178   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3179 else
3180   ac_save_IFS=$IFS; IFS=':'
3181 ac_dummy="$PATH"
3182 for ac_dir in $ac_dummy; do
3183   IFS=$ac_save_IFS
3184   test -z "$ac_dir" && ac_dir=.
3185   test -f "$ac_dir/$ac_word" || continue
3186 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3187 break
3188 done
3189
3190 fi
3191 fi
3192 RANLIB=$ac_cv_prog_RANLIB
3193 if test -n "$RANLIB"; then
3194   echo "$as_me:3194: result: $RANLIB" >&5
3195 echo "${ECHO_T}$RANLIB" >&6
3196 else
3197   echo "$as_me:3197: result: no" >&5
3198 echo "${ECHO_T}no" >&6
3199 fi
3200
3201 fi
3202 if test -z "$ac_cv_prog_RANLIB"; then
3203   ac_ct_RANLIB=$RANLIB
3204   # Extract the first word of "ranlib", so it can be a program name with args.
3205 set dummy ranlib; ac_word=$2
3206 echo "$as_me:3206: checking for $ac_word" >&5
3207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3208 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3209   echo $ECHO_N "(cached) $ECHO_C" >&6
3210 else
3211   if test -n "$ac_ct_RANLIB"; then
3212   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3213 else
3214   ac_save_IFS=$IFS; IFS=':'
3215 ac_dummy="$PATH"
3216 for ac_dir in $ac_dummy; do
3217   IFS=$ac_save_IFS
3218   test -z "$ac_dir" && ac_dir=.
3219   test -f "$ac_dir/$ac_word" || continue
3220 ac_cv_prog_ac_ct_RANLIB="ranlib"
3221 break
3222 done
3223
3224   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3225 fi
3226 fi
3227 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3228 if test -n "$ac_ct_RANLIB"; then
3229   echo "$as_me:3229: result: $ac_ct_RANLIB" >&5
3230 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3231 else
3232   echo "$as_me:3232: result: no" >&5
3233 echo "${ECHO_T}no" >&6
3234 fi
3235
3236   RANLIB=$ac_ct_RANLIB
3237 else
3238   RANLIB="$ac_cv_prog_RANLIB"
3239 fi
3240
3241 if test -n "$ac_tool_prefix"; then
3242   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3243 set dummy ${ac_tool_prefix}strip; ac_word=$2
3244 echo "$as_me:3244: checking for $ac_word" >&5
3245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3246 if test "${ac_cv_prog_STRIP+set}" = set; then
3247   echo $ECHO_N "(cached) $ECHO_C" >&6
3248 else
3249   if test -n "$STRIP"; then
3250   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3251 else
3252   ac_save_IFS=$IFS; IFS=':'
3253 ac_dummy="$PATH"
3254 for ac_dir in $ac_dummy; do
3255   IFS=$ac_save_IFS
3256   test -z "$ac_dir" && ac_dir=.
3257   test -f "$ac_dir/$ac_word" || continue
3258 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3259 break
3260 done
3261
3262 fi
3263 fi
3264 STRIP=$ac_cv_prog_STRIP
3265 if test -n "$STRIP"; then
3266   echo "$as_me:3266: result: $STRIP" >&5
3267 echo "${ECHO_T}$STRIP" >&6
3268 else
3269   echo "$as_me:3269: result: no" >&5
3270 echo "${ECHO_T}no" >&6
3271 fi
3272
3273 fi
3274 if test -z "$ac_cv_prog_STRIP"; then
3275   ac_ct_STRIP=$STRIP
3276   # Extract the first word of "strip", so it can be a program name with args.
3277 set dummy strip; ac_word=$2
3278 echo "$as_me:3278: checking for $ac_word" >&5
3279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3280 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3281   echo $ECHO_N "(cached) $ECHO_C" >&6
3282 else
3283   if test -n "$ac_ct_STRIP"; then
3284   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3285 else
3286   ac_save_IFS=$IFS; IFS=':'
3287 ac_dummy="$PATH"
3288 for ac_dir in $ac_dummy; do
3289   IFS=$ac_save_IFS
3290   test -z "$ac_dir" && ac_dir=.
3291   test -f "$ac_dir/$ac_word" || continue
3292 ac_cv_prog_ac_ct_STRIP="strip"
3293 break
3294 done
3295
3296   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3297 fi
3298 fi
3299 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3300 if test -n "$ac_ct_STRIP"; then
3301   echo "$as_me:3301: result: $ac_ct_STRIP" >&5
3302 echo "${ECHO_T}$ac_ct_STRIP" >&6
3303 else
3304   echo "$as_me:3304: result: no" >&5
3305 echo "${ECHO_T}no" >&6
3306 fi
3307
3308   STRIP=$ac_ct_STRIP
3309 else
3310   STRIP="$ac_cv_prog_STRIP"
3311 fi
3312
3313 # Check for any special flags to pass to ltconfig.
3314 libtool_flags="--cache-file=$cache_file"
3315 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3316 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3317 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3318 test "$ac_cv_c_compiler_gnu" = yes && libtool_flags="$libtool_flags --with-gcc"
3319 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3320
3321 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3322 if test "${enable_libtool_lock+set}" = set; then
3323   enableval="$enable_libtool_lock"
3324
3325 fi;
3326 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3327 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3328
3329 # Check whether --with-pic or --without-pic was given.
3330 if test "${with_pic+set}" = set; then
3331   withval="$with_pic"
3332   pic_mode="$withval"
3333 else
3334   pic_mode=default
3335 fi;
3336 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3337 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3338
3339 # Some flags need to be propagated to the compiler or linker for good
3340 # libtool support.
3341 case "$host" in
3342 *-*-irix6*)
3343   # Find out which ABI we are using.
3344   echo '#line 3344 "configure"' > conftest.$ac_ext
3345   if { (eval echo $as_me:3345: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
3346     case "`/usr/bin/file conftest.o`" in
3347     *32-bit*)
3348       LD="${LD-ld} -32"
3349       ;;
3350     *N32*)
3351       LD="${LD-ld} -n32"
3352       ;;
3353     *64-bit*)
3354       LD="${LD-ld} -64"
3355       ;;
3356     esac
3357   fi
3358   rm -rf conftest*
3359   ;;
3360
3361 *-*-sco3.2v5*)
3362   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3363   SAVE_CFLAGS="$CFLAGS"
3364   CFLAGS="$CFLAGS -belf"
3365   echo "$as_me:3365: checking whether the C compiler needs -belf" >&5
3366 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3367 if test "${lt_cv_cc_needs_belf+set}" = set; then
3368   echo $ECHO_N "(cached) $ECHO_C" >&6
3369 else
3370
3371      cat >conftest.$ac_ext <<_ACEOF
3372 #line 3372 "configure"
3373 #include "confdefs.h"
3374
3375 int
3376 main ()
3377 {
3378
3379   ;
3380   return 0;
3381 }
3382 _ACEOF
3383 rm -f conftest.$ac_objext conftest$ac_exeext
3384 if { (eval echo $as_me:3384: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
3385   lt_cv_cc_needs_belf=yes
3386 else
3387   echo "$as_me: failed program was:" >&5
3388   cat conftest.$ac_ext >&5
3389   lt_cv_cc_needs_belf=no
3390 fi
3391 rm -f conftest$ac_exeext conftest.$ac_ext
3392
3393 fi
3394 echo "$as_me:3394: result: $lt_cv_cc_needs_belf" >&5
3395 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3396   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3397     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3398     CFLAGS="$SAVE_CFLAGS"
3399   fi
3400   ;;
3401
3402 esac
3403
3404 # Save cache, so that ltconfig can load it
3405 cat >confcache <<\_ACEOF
3406 # This file is a shell script that caches the results of configure
3407 # tests run on this system so they can be shared between configure
3408 # scripts and configure runs, see configure's option --config-cache.
3409 # It is not useful on other systems.  If it contains results you don't
3410 # want to keep, you may remove or edit it.
3411 #
3412 # config.status only pays attention to the cache file if you give it
3413 # the --recheck option to rerun configure.
3414 #
3415 # `ac_cv_env_foo' variables (set or unset) will be overriden when
3416 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3417 # following values.
3418
3419 _ACEOF
3420
3421 # The following way of writing the cache mishandles newlines in values,
3422 # but we know of no workaround that is simple, portable, and efficient.
3423 # So, don't put newlines in cache variables' values.
3424 # Ultrix sh set writes to stderr and can't be redirected directly,
3425 # and sets the high bit in the cache file unless we assign to the vars.
3426 {
3427   (set) 2>&1 |
3428     case `(ac_space=' '; set | grep ac_space) 2>&1` in
3429     *ac_space=\ *)
3430       # `set' does not quote correctly, so add quotes (double-quote
3431       # substitution turns \\\\ into \\, and sed turns \\ into \).
3432       sed -n \
3433         "s/'/'\\\\''/g;
3434           s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3435       ;;
3436     *)
3437       # `set' quotes correctly as required by POSIX, so do not add quotes.
3438       sed -n \
3439         "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3440       ;;
3441     esac;
3442 } |
3443   sed '
3444      t clear
3445      : clear
3446      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3447      t end
3448      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3449      : end' >>confcache
3450 if cmp -s $cache_file confcache; then :; else
3451   if test -w $cache_file; then
3452     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3453     cat confcache >$cache_file
3454   else
3455     echo "not updating unwritable cache $cache_file"
3456   fi
3457 fi
3458 rm -f confcache
3459
3460 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
3461 AR="$AR" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3462 MAGIC="$MAGIC" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3463 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3464 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3465 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3466 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
3467 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3468 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
3469 || {  echo "$as_me: error: libtool configure failed" >&2
3470   { (exit 1); exit; }; }
3471
3472 # Reload cache, that may have been modified by ltconfig
3473 if test -r "$cache_file"; then
3474   # Some versions of bash will fail to source /dev/null (special
3475   # files actually), so we avoid doing that.
3476   if test -f "$cache_file"; then
3477     { echo "$as_me:3477: loading cache $cache_file" >&5
3478 echo "loading cache $cache_file" >&6;}
3479     case $cache_file in
3480       [\\/]* | ?:[\\/]* ) . $cache_file;;
3481       *)                      . ./$cache_file;;
3482     esac
3483   fi
3484 else
3485   { echo "$as_me:3485: creating cache $cache_file" >&5
3486 echo "creating cache $cache_file" >&6;}
3487   >$cache_file
3488 fi
3489
3490 # This can be used to rebuild libtool when needed
3491 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3492
3493 # Always use our own libtool.
3494 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3495
3496 # Redirect the config.log output again, so that the ltconfig log is not
3497 # clobbered by the next message.
3498 exec 5>>./config.log
3499
3500 WFLAGS_NOUNUSED=""
3501 WFLAGS_NOIMPLICITINT=""
3502 if test -z "$WFLAGS" -a "$GCC" = "yes"; then
3503   # -Wno-implicit-int for broken X11 headers
3504   # leave these out for now:
3505   #   -Wcast-align doesn't work well on alpha osf/1
3506   #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
3507   #   -Wmissing-declarations -Wnested-externs
3508   WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
3509   WFLAGS_NOUNUSED="-Wno-unused"
3510   WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
3511 fi
3512
3513 berkeley_db=db
3514
3515 # Check whether --with-berkeley-db or --without-berkeley-db was given.
3516 if test "${with_berkeley_db+set}" = set; then
3517   withval="$with_berkeley_db"
3518
3519 if test "$withval" = no; then
3520         berkeley_db=""
3521 fi
3522
3523 fi;
3524 if test "$berkeley_db"; then
3525
3526 for ac_header in                                \
3527         db.h                                    \
3528         db_185.h                                \
3529
3530 do
3531 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
3532
3533 echo "$as_me:3533: checking for $ac_header" >&5
3534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3535 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
3536   echo $ECHO_N "(cached) $ECHO_C" >&6
3537 else
3538   cat >conftest.$ac_ext <<_ACEOF
3539 #line 3539 "configure"
3540 #include "confdefs.h"
3541 #include <$ac_header>
3542
3543 _ACEOF
3544 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
3545 if { (eval echo $as_me:3545: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
3546   if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
3547     ac_cpp_err=$ac_c_preproc_warn_flag
3548   else
3549     ac_cpp_err=
3550   fi
3551 else
3552   ac_cpp_err=yes
3553 fi
3554
3555 if test -z "$ac_cpp_err"; then
3556   eval "$ac_ac_Header=yes"
3557 else
3558   cat conftest.err >&5
3559   echo "$as_me: failed program was:" >&5
3560   cat conftest.$ac_ext >&5
3561   eval "$ac_ac_Header=no"
3562 fi
3563 rm -f conftest*
3564
3565 fi
3566 echo "$as_me:3566: result: `eval echo '${'$ac_ac_Header'}'`" >&5
3567 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
3568 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
3569   cat >>confdefs.h <<EOF
3570 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
3571 EOF
3572
3573 fi
3574 done
3575
3576 fi
3577
3578 echo "$as_me:3578: checking for dbopen" >&5
3579 echo $ECHO_N "checking for dbopen... $ECHO_C" >&6
3580 if test "${ac_cv_funclib_dbopen+set}" = set; then
3581   echo $ECHO_N "(cached) $ECHO_C" >&6
3582 else
3583
3584 if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then
3585         ac_save_LIBS="$LIBS"
3586         for ac_lib in $berkeley_db; do
3587                 if test -n "$ac_lib"; then
3588                         ac_lib="-l$ac_lib"
3589                 else
3590                         ac_lib=""
3591                 fi
3592                 LIBS=" $ac_lib  $ac_save_LIBS"
3593                 cat >conftest.$ac_ext <<_ACEOF
3594 #line 3594 "configure"
3595 #include "confdefs.h"
3596
3597 #include <stdio.h>
3598 #if defined(HAVE_DB_185_H)
3599 #include <db_185.h>
3600 #elif defined(HAVE_DB_H)
3601 #include <db.h>
3602 #endif
3603
3604 int
3605 main ()
3606 {
3607 dbopen(NULL, 0, 0, 0, NULL)
3608   ;
3609   return 0;
3610 }
3611 _ACEOF
3612 rm -f conftest.$ac_objext conftest$ac_exeext
3613 if { (eval echo $as_me:3613: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
3614   eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break
3615 else
3616   echo "$as_me: failed program was:" >&5
3617   cat conftest.$ac_ext >&5
3618 fi
3619 rm -f conftest$ac_exeext conftest.$ac_ext
3620         done
3621         eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}"
3622         LIBS="$ac_save_LIBS"
3623 fi
3624
3625 fi
3626
3627 eval "ac_res=\$ac_cv_funclib_dbopen"
3628
3629 if false; then
3630
3631 for ac_func in dbopen
3632 do
3633 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
3634 echo "$as_me:3634: checking for $ac_func" >&5
3635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3636 if eval "test \"\${$ac_ac_var+set}\" = set"; then
3637   echo $ECHO_N "(cached) $ECHO_C" >&6
3638 else
3639   cat >conftest.$ac_ext <<_ACEOF
3640 #line 3640 "configure"
3641 #include "confdefs.h"
3642 /* System header to define __stub macros and hopefully few prototypes,
3643     which can conflict with char $ac_func (); below.  */
3644 #include <assert.h>
3645 /* Override any gcc2 internal prototype to avoid an error.  */
3646 #ifdef __cplusplus
3647 extern "C"
3648 #endif
3649 /* We use char because int might match the return type of a gcc2
3650    builtin and then its argument prototype would still apply.  */
3651 char $ac_func ();
3652 char (*f) ();
3653
3654 int
3655 main ()
3656 {
3657 /* The GNU C library defines this for functions which it implements
3658     to always fail with ENOSYS.  Some functions are actually named
3659     something starting with __ and the normal name is an alias.  */
3660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3661 choke me
3662 #else
3663 f = $ac_func;
3664 #endif
3665
3666   ;
3667   return 0;
3668 }
3669 _ACEOF
3670 rm -f conftest.$ac_objext conftest$ac_exeext
3671 if { (eval echo $as_me:3671: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
3672   eval "$ac_ac_var=yes"
3673 else
3674   echo "$as_me: failed program was:" >&5
3675   cat conftest.$ac_ext >&5
3676   eval "$ac_ac_var=no"
3677 fi
3678 rm -f conftest$ac_exeext conftest.$ac_ext
3679 fi
3680 echo "$as_me:3680: result: `eval echo '${'$ac_ac_var'}'`" >&5
3681 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
3682 if test `eval echo '${'$ac_ac_var'}'` = yes; then
3683   cat >>confdefs.h <<EOF
3684 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
3685 EOF
3686
3687 fi
3688 done
3689
3690 fi
3691 # dbopen
3692 eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
3693 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
3694 eval "LIB_dbopen=$ac_res"
3695
3696 case "$ac_res" in
3697         yes)
3698         eval "ac_cv_func_dbopen=yes"
3699         eval "LIB_dbopen="
3700         cat >>confdefs.h <<EOF
3701 #define $ac_tr_func 1
3702 EOF
3703
3704         echo "$as_me:3704: result: yes" >&5
3705 echo "${ECHO_T}yes" >&6
3706         ;;
3707         no)
3708         eval "ac_cv_func_dbopen=no"
3709         eval "LIB_dbopen="
3710         echo "$as_me:3710: result: no" >&5
3711 echo "${ECHO_T}no" >&6
3712         ;;
3713         *)
3714         eval "ac_cv_func_dbopen=yes"
3715         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
3716         cat >>confdefs.h <<EOF
3717 #define $ac_tr_func 1
3718 EOF
3719
3720         cat >>confdefs.h <<EOF
3721 #define $ac_tr_lib 1
3722 EOF
3723
3724         echo "$as_me:3724: result: yes, in $ac_res" >&5
3725 echo "${ECHO_T}yes, in $ac_res" >&6
3726         ;;
3727 esac
3728
3729 echo "$as_me:3729: checking for dbm_firstkey" >&5
3730 echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
3731 if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
3732   echo $ECHO_N "(cached) $ECHO_C" >&6
3733 else
3734
3735 if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
3736         ac_save_LIBS="$LIBS"
3737         for ac_lib in "" $berkeley_db gdbm ndbm; do
3738                 if test -n "$ac_lib"; then
3739                         ac_lib="-l$ac_lib"
3740                 else
3741                         ac_lib=""
3742                 fi
3743                 LIBS=" $ac_lib  $ac_save_LIBS"
3744                 cat >conftest.$ac_ext <<_ACEOF
3745 #line 3745 "configure"
3746 #include "confdefs.h"
3747
3748 int
3749 main ()
3750 {
3751 dbm_firstkey()
3752   ;
3753   return 0;
3754 }
3755 _ACEOF
3756 rm -f conftest.$ac_objext conftest$ac_exeext
3757 if { (eval echo $as_me:3757: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
3758   eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
3759 else
3760   echo "$as_me: failed program was:" >&5
3761   cat conftest.$ac_ext >&5
3762 fi
3763 rm -f conftest$ac_exeext conftest.$ac_ext
3764         done
3765         eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
3766         LIBS="$ac_save_LIBS"
3767 fi
3768
3769 fi
3770
3771 eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
3772
3773 if false; then
3774
3775 for ac_func in dbm_firstkey
3776 do
3777 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
3778 echo "$as_me:3778: checking for $ac_func" >&5
3779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3780 if eval "test \"\${$ac_ac_var+set}\" = set"; then
3781   echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783   cat >conftest.$ac_ext <<_ACEOF
3784 #line 3784 "configure"
3785 #include "confdefs.h"
3786 /* System header to define __stub macros and hopefully few prototypes,
3787     which can conflict with char $ac_func (); below.  */
3788 #include <assert.h>
3789 /* Override any gcc2 internal prototype to avoid an error.  */
3790 #ifdef __cplusplus
3791 extern "C"
3792 #endif
3793 /* We use char because int might match the return type of a gcc2
3794    builtin and then its argument prototype would still apply.  */
3795 char $ac_func ();
3796 char (*f) ();
3797
3798 int
3799 main ()
3800 {
3801 /* The GNU C library defines this for functions which it implements
3802     to always fail with ENOSYS.  Some functions are actually named
3803     something starting with __ and the normal name is an alias.  */
3804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3805 choke me
3806 #else
3807 f = $ac_func;
3808 #endif
3809
3810   ;
3811   return 0;
3812 }
3813 _ACEOF
3814 rm -f conftest.$ac_objext conftest$ac_exeext
3815 if { (eval echo $as_me:3815: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
3816   eval "$ac_ac_var=yes"
3817 else
3818   echo "$as_me: failed program was:" >&5
3819   cat conftest.$ac_ext >&5
3820   eval "$ac_ac_var=no"
3821 fi
3822 rm -f conftest$ac_exeext conftest.$ac_ext
3823 fi
3824 echo "$as_me:3824: result: `eval echo '${'$ac_ac_var'}'`" >&5
3825 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
3826 if test `eval echo '${'$ac_ac_var'}'` = yes; then
3827   cat >>confdefs.h <<EOF
3828 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
3829 EOF
3830
3831 fi
3832 done
3833
3834 fi
3835 # dbm_firstkey
3836 eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
3837 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
3838 eval "LIB_dbm_firstkey=$ac_res"
3839
3840 case "$ac_res" in
3841         yes)
3842         eval "ac_cv_func_dbm_firstkey=yes"
3843         eval "LIB_dbm_firstkey="
3844         cat >>confdefs.h <<EOF
3845 #define $ac_tr_func 1
3846 EOF
3847
3848         echo "$as_me:3848: result: yes" >&5
3849 echo "${ECHO_T}yes" >&6
3850         ;;
3851         no)
3852         eval "ac_cv_func_dbm_firstkey=no"
3853         eval "LIB_dbm_firstkey="
3854         echo "$as_me:3854: result: no" >&5
3855 echo "${ECHO_T}no" >&6
3856         ;;
3857         *)
3858         eval "ac_cv_func_dbm_firstkey=yes"
3859         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
3860         cat >>confdefs.h <<EOF
3861 #define $ac_tr_func 1
3862 EOF
3863
3864         cat >>confdefs.h <<EOF
3865 #define $ac_tr_lib 1
3866 EOF
3867
3868         echo "$as_me:3868: result: yes, in $ac_res" >&5
3869 echo "${ECHO_T}yes, in $ac_res" >&6
3870         ;;
3871 esac
3872
3873 echo "$as_me:3873: checking for db_create" >&5
3874 echo $ECHO_N "checking for db_create... $ECHO_C" >&6
3875 if test "${ac_cv_funclib_db_create+set}" = set; then
3876   echo $ECHO_N "(cached) $ECHO_C" >&6
3877 else
3878
3879 if eval "test \"\$ac_cv_func_db_create\" != yes" ; then
3880         ac_save_LIBS="$LIBS"
3881         for ac_lib in "" $berkeley_db; do
3882                 if test -n "$ac_lib"; then
3883                         ac_lib="-l$ac_lib"
3884                 else
3885                         ac_lib=""
3886                 fi
3887                 LIBS=" $ac_lib  $ac_save_LIBS"
3888                 cat >conftest.$ac_ext <<_ACEOF
3889 #line 3889 "configure"
3890 #include "confdefs.h"
3891
3892 int
3893 main ()
3894 {
3895 db_create()
3896   ;
3897   return 0;
3898 }
3899 _ACEOF
3900 rm -f conftest.$ac_objext conftest$ac_exeext
3901 if { (eval echo $as_me:3901: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
3902   eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break
3903 else
3904   echo "$as_me: failed program was:" >&5
3905   cat conftest.$ac_ext >&5
3906 fi
3907 rm -f conftest$ac_exeext conftest.$ac_ext
3908         done
3909         eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}"
3910         LIBS="$ac_save_LIBS"
3911 fi
3912
3913 fi
3914
3915 eval "ac_res=\$ac_cv_funclib_db_create"
3916
3917 if false; then
3918
3919 for ac_func in db_create
3920 do
3921 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
3922 echo "$as_me:3922: checking for $ac_func" >&5
3923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3924 if eval "test \"\${$ac_ac_var+set}\" = set"; then
3925   echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927   cat >conftest.$ac_ext <<_ACEOF
3928 #line 3928 "configure"
3929 #include "confdefs.h"
3930 /* System header to define __stub macros and hopefully few prototypes,
3931     which can conflict with char $ac_func (); below.  */
3932 #include <assert.h>
3933 /* Override any gcc2 internal prototype to avoid an error.  */
3934 #ifdef __cplusplus
3935 extern "C"
3936 #endif
3937 /* We use char because int might match the return type of a gcc2
3938    builtin and then its argument prototype would still apply.  */
3939 char $ac_func ();
3940 char (*f) ();
3941
3942 int
3943 main ()
3944 {
3945 /* The GNU C library defines this for functions which it implements
3946     to always fail with ENOSYS.  Some functions are actually named
3947     something starting with __ and the normal name is an alias.  */
3948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3949 choke me
3950 #else
3951 f = $ac_func;
3952 #endif
3953
3954   ;
3955   return 0;
3956 }
3957 _ACEOF
3958 rm -f conftest.$ac_objext conftest$ac_exeext
3959 if { (eval echo $as_me:3959: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
3960   eval "$ac_ac_var=yes"
3961 else
3962   echo "$as_me: failed program was:" >&5
3963   cat conftest.$ac_ext >&5
3964   eval "$ac_ac_var=no"
3965 fi
3966 rm -f conftest$ac_exeext conftest.$ac_ext
3967 fi
3968 echo "$as_me:3968: result: `eval echo '${'$ac_ac_var'}'`" >&5
3969 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
3970 if test `eval echo '${'$ac_ac_var'}'` = yes; then
3971   cat >>confdefs.h <<EOF
3972 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
3973 EOF
3974
3975 fi
3976 done
3977
3978 fi
3979 # db_create
3980 eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
3981 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
3982 eval "LIB_db_create=$ac_res"
3983
3984 case "$ac_res" in
3985         yes)
3986         eval "ac_cv_func_db_create=yes"
3987         eval "LIB_db_create="
3988         cat >>confdefs.h <<EOF
3989 #define $ac_tr_func 1
3990 EOF
3991
3992         echo "$as_me:3992: result: yes" >&5
3993 echo "${ECHO_T}yes" >&6
3994         ;;
3995         no)
3996         eval "ac_cv_func_db_create=no"
3997         eval "LIB_db_create="
3998         echo "$as_me:3998: result: no" >&5
3999 echo "${ECHO_T}no" >&6
4000         ;;
4001         *)
4002         eval "ac_cv_func_db_create=yes"
4003         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
4004         cat >>confdefs.h <<EOF
4005 #define $ac_tr_func 1
4006 EOF
4007
4008         cat >>confdefs.h <<EOF
4009 #define $ac_tr_lib 1
4010 EOF
4011
4012         echo "$as_me:4012: result: yes, in $ac_res" >&5
4013 echo "${ECHO_T}yes, in $ac_res" >&6
4014         ;;
4015 esac
4016
4017 DBLIB="$LIB_dbopen"
4018 if test "$LIB_dbopen" != "$LIB_db_create"; then
4019         DBLIB="$DBLIB $LIB_db_create"
4020 fi
4021 if test "$LIB_dbopen" != "$LIB_dbm_firstkey"; then
4022         DBLIB="$DBLIB $LIB_dbm_firstkey"
4023 fi
4024
4025 echo "$as_me:4025: checking for inline" >&5
4026 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4027 if test "${ac_cv_c_inline+set}" = set; then
4028   echo $ECHO_N "(cached) $ECHO_C" >&6
4029 else
4030   ac_cv_c_inline=no
4031 for ac_kw in inline __inline__ __inline; do
4032   cat >conftest.$ac_ext <<_ACEOF
4033 #line 4033 "configure"
4034 #include "confdefs.h"
4035 #ifndef __cplusplus
4036 $ac_kw int foo () {return 0; }
4037 #endif
4038
4039 _ACEOF
4040 rm -f conftest.$ac_objext
4041 if { (eval echo $as_me:4041: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
4042   ac_cv_c_inline=$ac_kw; break
4043 else
4044   echo "$as_me: failed program was:" >&5
4045   cat conftest.$ac_ext >&5
4046 fi
4047 rm -f conftest.$ac_objext conftest.$ac_ext
4048 done
4049
4050 fi
4051 echo "$as_me:4051: result: $ac_cv_c_inline" >&5
4052 echo "${ECHO_T}$ac_cv_c_inline" >&6
4053 case $ac_cv_c_inline in
4054   inline | yes) ;;
4055   no)
4056 cat >>confdefs.h <<\EOF
4057 #define inline
4058 EOF
4059  ;;
4060   *)  cat >>confdefs.h <<EOF
4061 #define inline $ac_cv_c_inline
4062 EOF
4063  ;;
4064 esac
4065
4066 echo "$as_me:4066: checking for an ANSI C-conforming const" >&5
4067 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4068 if test "${ac_cv_c_const+set}" = set; then
4069   echo $ECHO_N "(cached) $ECHO_C" >&6
4070 else
4071   cat >conftest.$ac_ext <<_ACEOF
4072 #line 4072 "configure"
4073 #include "confdefs.h"
4074
4075 int
4076 main ()
4077 {
4078 /* FIXME: Include the comments suggested by Paul. */
4079 #ifndef __cplusplus
4080   /* Ultrix mips cc rejects this.  */
4081   typedef int charset[2];
4082   const charset x;
4083   /* SunOS 4.1.1 cc rejects this.  */
4084   char const *const *ccp;
4085   char **p;
4086   /* NEC SVR4.0.2 mips cc rejects this.  */
4087   struct point {int x, y;};
4088   static struct point const zero = {0,0};
4089   /* AIX XL C 1.02.0.0 rejects this.
4090      It does not let you subtract one const X* pointer from another in
4091      an arm of an if-expression whose if-part is not a constant
4092      expression */
4093   const char *g = "string";
4094   ccp = &g + (g ? g-g : 0);
4095   /* HPUX 7.0 cc rejects these. */
4096   ++ccp;
4097   p = (char**) ccp;
4098   ccp = (char const *const *) p;
4099   { /* SCO 3.2v4 cc rejects this.  */
4100     char *t;
4101     char const *s = 0 ? (char *) 0 : (char const *) 0;
4102
4103     *t++ = 0;
4104   }
4105   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4106     int x[] = {25, 17};
4107     const int *foo = &x[0];
4108     ++foo;
4109   }
4110   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4111     typedef const int *iptr;
4112     iptr p = 0;
4113     ++p;
4114   }
4115   { /* AIX XL C 1.02.0.0 rejects this saying
4116        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4117     struct s { int j; const int *ap[3]; };
4118     struct s *b; b->j = 5;
4119   }
4120   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4121     const int foo = 10;
4122   }
4123 #endif
4124
4125   ;
4126   return 0;
4127 }
4128 _ACEOF
4129 rm -f conftest.$ac_objext
4130 if { (eval echo $as_me:4130: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
4131   ac_cv_c_const=yes
4132 else
4133   echo "$as_me: failed program was:" >&5
4134   cat conftest.$ac_ext >&5
4135   ac_cv_c_const=no
4136 fi
4137 rm -f conftest.$ac_objext conftest.$ac_ext
4138 fi
4139 echo "$as_me:4139: result: $ac_cv_c_const" >&5
4140 echo "${ECHO_T}$ac_cv_c_const" >&6
4141 if test $ac_cv_c_const = no; then
4142
4143 cat >>confdefs.h <<\EOF
4144 #define const
4145 EOF
4146
4147 fi
4148
4149 echo "$as_me:4149: checking for ANSI C header files" >&5
4150 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4151 if test "${ac_cv_header_stdc+set}" = set; then
4152   echo $ECHO_N "(cached) $ECHO_C" >&6
4153 else
4154   cat >conftest.$ac_ext <<_ACEOF
4155 #line 4155 "configure"
4156 #include "confdefs.h"
4157 #include <stdlib.h>
4158 #include <stdarg.h>
4159 #include <string.h>
4160 #include <float.h>
4161
4162 _ACEOF
4163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
4164 if { (eval echo $as_me:4164: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
4165   if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
4166     ac_cpp_err=$ac_c_preproc_warn_flag
4167   else
4168     ac_cpp_err=
4169   fi
4170 else
4171   ac_cpp_err=yes
4172 fi
4173
4174 if test -z "$ac_cpp_err"; then
4175   ac_cv_header_stdc=yes
4176 else
4177   cat conftest.err >&5
4178   echo "$as_me: failed program was:" >&5
4179   cat conftest.$ac_ext >&5
4180   ac_cv_header_stdc=no
4181 fi
4182 rm -f conftest*
4183
4184 if test $ac_cv_header_stdc = yes; then
4185   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4186   cat >conftest.$ac_ext <<_ACEOF
4187 #line 4187 "configure"
4188 #include "confdefs.h"
4189 #include <string.h>
4190
4191 _ACEOF
4192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4193   egrep "memchr" >/dev/null 2>&1; then
4194   :
4195 else
4196   ac_cv_header_stdc=no
4197 fi
4198 rm -f conftest*
4199
4200 fi
4201
4202 if test $ac_cv_header_stdc = yes; then
4203   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4204   cat >conftest.$ac_ext <<_ACEOF
4205 #line 4205 "configure"
4206 #include "confdefs.h"
4207 #include <stdlib.h>
4208
4209 _ACEOF
4210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4211   egrep "free" >/dev/null 2>&1; then
4212   :
4213 else
4214   ac_cv_header_stdc=no
4215 fi
4216 rm -f conftest*
4217
4218 fi
4219
4220 if test $ac_cv_header_stdc = yes; then
4221   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4222   if test "$cross_compiling" = yes; then
4223   :
4224 else
4225   cat >conftest.$ac_ext <<_ACEOF
4226 #line 4226 "configure"
4227 #include "confdefs.h"
4228 #include <ctype.h>
4229 #if ((' ' & 0x0FF) == 0x020)
4230 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4231 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4232 #else
4233 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4234                      || ('j' <= (c) && (c) <= 'r') \
4235                      || ('s' <= (c) && (c) <= 'z'))
4236 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4237 #endif
4238
4239 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4240 int
4241 main ()
4242 {
4243   int i;
4244   for (i = 0; i < 256; i++)
4245     if (XOR (islower (i), ISLOWER (i))
4246         || toupper (i) != TOUPPER (i))
4247       exit(2);
4248   exit (0);
4249 }
4250 _ACEOF
4251 rm -f conftest$ac_exeext
4252 { (eval echo $as_me:4252: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
4253   (./conftest$ac_exeext) >&5 2>&1;
4254 ac_status=$?
4255 if test $ac_status = 0; then
4256   :
4257 else
4258   echo "$as_me: program exited with status $ac_status" >&5
4259 echo "$as_me: failed program was:" >&5
4260 cat conftest.$ac_ext >&5
4261 ac_cv_header_stdc=no
4262 fi
4263
4264 rm -f conftest$ac_exeext conftest.$ac_ext
4265 fi
4266
4267 fi
4268 fi
4269 echo "$as_me:4269: result: $ac_cv_header_stdc" >&5
4270 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4271 if test $ac_cv_header_stdc = yes; then
4272
4273 cat >>confdefs.h <<\EOF
4274 #define STDC_HEADERS 1
4275 EOF
4276
4277 fi
4278
4279 echo "$as_me:4279: checking for size_t" >&5
4280 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4281 if test "${ac_cv_type_size_t+set}" = set; then
4282   echo $ECHO_N "(cached) $ECHO_C" >&6
4283 else
4284   cat >conftest.$ac_ext <<_ACEOF
4285 #line 4285 "configure"
4286 #include "confdefs.h"
4287 $ac_includes_default
4288 int
4289 main ()
4290 {
4291 if ((size_t *) 0)
4292   return 0;
4293 if (sizeof (size_t))
4294   return 0;
4295   ;
4296   return 0;
4297 }
4298 _ACEOF
4299 rm -f conftest.$ac_objext
4300 if { (eval echo $as_me:4300: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
4301   ac_cv_type_size_t=yes
4302 else
4303   echo "$as_me: failed program was:" >&5
4304   cat conftest.$ac_ext >&5
4305   ac_cv_type_size_t=no
4306 fi
4307 rm -f conftest.$ac_objext conftest.$ac_ext
4308 fi
4309 echo "$as_me:4309: result: $ac_cv_type_size_t" >&5
4310 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4311 if test $ac_cv_type_size_t = yes; then
4312   :
4313 else
4314
4315 cat >>confdefs.h <<EOF
4316 #define size_t unsigned
4317 EOF
4318
4319 fi
4320
4321 echo "$as_me:4321: checking for pid_t" >&5
4322 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4323 if test "${ac_cv_type_pid_t+set}" = set; then
4324   echo $ECHO_N "(cached) $ECHO_C" >&6
4325 else
4326   cat >conftest.$ac_ext <<_ACEOF
4327 #line 4327 "configure"
4328 #include "confdefs.h"
4329 $ac_includes_default
4330 int
4331 main ()
4332 {
4333 if ((pid_t *) 0)
4334   return 0;
4335 if (sizeof (pid_t))
4336   return 0;
4337   ;
4338   return 0;
4339 }
4340 _ACEOF
4341 rm -f conftest.$ac_objext
4342 if { (eval echo $as_me:4342: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
4343   ac_cv_type_pid_t=yes
4344 else
4345   echo "$as_me: failed program was:" >&5
4346   cat conftest.$ac_ext >&5
4347   ac_cv_type_pid_t=no
4348 fi
4349 rm -f conftest.$ac_objext conftest.$ac_ext
4350 fi
4351 echo "$as_me:4351: result: $ac_cv_type_pid_t" >&5
4352 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4353 if test $ac_cv_type_pid_t = yes; then
4354   :
4355 else
4356
4357 cat >>confdefs.h <<EOF
4358 #define pid_t int
4359 EOF
4360
4361 fi
4362
4363 echo "$as_me:4363: checking for uid_t in sys/types.h" >&5
4364 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4365 if test "${ac_cv_type_uid_t+set}" = set; then
4366   echo $ECHO_N "(cached) $ECHO_C" >&6
4367 else
4368   cat >conftest.$ac_ext <<_ACEOF
4369 #line 4369 "configure"
4370 #include "confdefs.h"
4371 #include <sys/types.h>
4372
4373 _ACEOF
4374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4375   egrep "uid_t" >/dev/null 2>&1; then
4376   ac_cv_type_uid_t=yes
4377 else
4378   ac_cv_type_uid_t=no
4379 fi
4380 rm -f conftest*
4381
4382 fi
4383 echo "$as_me:4383: result: $ac_cv_type_uid_t" >&5
4384 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4385 if test $ac_cv_type_uid_t = no; then
4386
4387 cat >>confdefs.h <<\EOF
4388 #define uid_t int
4389 EOF
4390
4391 cat >>confdefs.h <<\EOF
4392 #define gid_t int
4393 EOF
4394
4395 fi
4396
4397 echo "$as_me:4397: checking return type of signal handlers" >&5
4398 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4399 if test "${ac_cv_type_signal+set}" = set; then
4400   echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402   cat >conftest.$ac_ext <<_ACEOF
4403 #line 4403 "configure"
4404 #include "confdefs.h"
4405 #include <sys/types.h>
4406 #include <signal.h>
4407 #ifdef signal
4408 # undef signal
4409 #endif
4410 #ifdef __cplusplus
4411 extern "C" void (*signal (int, void (*)(int)))(int);
4412 #else
4413 void (*signal ()) ();
4414 #endif
4415
4416 int
4417 main ()
4418 {
4419 int i;
4420   ;
4421   return 0;
4422 }
4423 _ACEOF
4424 rm -f conftest.$ac_objext
4425 if { (eval echo $as_me:4425: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
4426   ac_cv_type_signal=void
4427 else
4428   echo "$as_me: failed program was:" >&5
4429   cat conftest.$ac_ext >&5
4430   ac_cv_type_signal=int
4431 fi
4432 rm -f conftest.$ac_objext conftest.$ac_ext
4433 fi
4434 echo "$as_me:4434: result: $ac_cv_type_signal" >&5
4435 echo "${ECHO_T}$ac_cv_type_signal" >&6
4436
4437 cat >>confdefs.h <<EOF
4438 #define RETSIGTYPE $ac_cv_type_signal
4439 EOF
4440
4441 if test "$ac_cv_type_signal" = "void" ; then
4442
4443 cat >>confdefs.h <<\EOF
4444 #define VOID_RETSIGTYPE 1
4445 EOF
4446
4447 fi
4448
4449 echo "$as_me:4449: checking whether time.h and sys/time.h may both be included" >&5
4450 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4451 if test "${ac_cv_header_time+set}" = set; then
4452   echo $ECHO_N "(cached) $ECHO_C" >&6
4453 else
4454   cat >conftest.$ac_ext <<_ACEOF
4455 #line 4455 "configure"
4456 #include "confdefs.h"
4457 #include <sys/types.h>
4458 #include <sys/time.h>
4459 #include <time.h>
4460
4461 int
4462 main ()
4463 {
4464 struct tm *tp;
4465   ;
4466   return 0;
4467 }
4468 _ACEOF
4469 rm -f conftest.$ac_objext
4470 if { (eval echo $as_me:4470: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
4471   ac_cv_header_time=yes
4472 else
4473   echo "$as_me: failed program was:" >&5
4474   cat conftest.$ac_ext >&5
4475   ac_cv_header_time=no
4476 fi
4477 rm -f conftest.$ac_objext conftest.$ac_ext
4478 fi
4479 echo "$as_me:4479: result: $ac_cv_header_time" >&5
4480 echo "${ECHO_T}$ac_cv_header_time" >&6
4481 if test $ac_cv_header_time = yes; then
4482
4483 cat >>confdefs.h <<\EOF
4484 #define TIME_WITH_SYS_TIME 1
4485 EOF
4486
4487 fi
4488
4489 for ac_header in standards.h
4490 do
4491 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4492
4493 echo "$as_me:4493: checking for $ac_header" >&5
4494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4495 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4496   echo $ECHO_N "(cached) $ECHO_C" >&6
4497 else
4498   cat >conftest.$ac_ext <<_ACEOF
4499 #line 4499 "configure"
4500 #include "confdefs.h"
4501 #include <$ac_header>
4502
4503 _ACEOF
4504 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
4505 if { (eval echo $as_me:4505: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
4506   if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
4507     ac_cpp_err=$ac_c_preproc_warn_flag
4508   else
4509     ac_cpp_err=
4510   fi
4511 else
4512   ac_cpp_err=yes
4513 fi
4514
4515 if test -z "$ac_cpp_err"; then
4516   eval "$ac_ac_Header=yes"
4517 else
4518   cat conftest.err >&5
4519   echo "$as_me: failed program was:" >&5
4520   cat conftest.$ac_ext >&5
4521   eval "$ac_ac_Header=no"
4522 fi
4523 rm -f conftest*
4524
4525 fi
4526 echo "$as_me:4526: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4527 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4528 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4529   cat >>confdefs.h <<EOF
4530 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4531 EOF
4532
4533 fi
4534 done
4535
4536 for i in netinet/ip.h netinet/tcp.h; do
4537
4538 cv=`echo "$i" | sed 'y%./+-%__p_%'`
4539
4540 echo "$as_me:4540: checking for $i" >&5
4541 echo $ECHO_N "checking for $i... $ECHO_C" >&6
4542 if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then
4543   echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545   cat >conftest.$ac_ext <<_ACEOF
4546 #line 4546 "configure"
4547 #include "confdefs.h"
4548 \
4549 #ifdef HAVE_STANDARDS_H
4550 #include <standards.h>
4551 #endif
4552 #include <$i>
4553
4554 _ACEOF
4555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
4556 if { (eval echo $as_me:4556: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
4557   if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
4558     ac_cpp_err=$ac_c_preproc_warn_flag
4559   else
4560     ac_cpp_err=
4561   fi
4562 else
4563   ac_cpp_err=yes
4564 fi
4565
4566 if test -z "$ac_cpp_err"; then
4567   eval "ac_cv_header_$cv=yes"
4568 else
4569   cat conftest.err >&5
4570   echo "$as_me: failed program was:" >&5
4571   cat conftest.$ac_ext >&5
4572   eval "ac_cv_header_$cv=no"
4573 fi
4574 rm -f conftest*
4575
4576 fi
4577 echo "$as_me:4577: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5
4578 echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6
4579 ac_res=`eval echo \\$ac_cv_header_$cv`
4580 if test "$ac_res" = yes; then
4581         ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4582         cat >>confdefs.h <<EOF
4583 #define $ac_tr_hdr 1
4584 EOF
4585
4586 fi
4587 done
4588 if false;then
4589
4590 for ac_header in netinet/ip.h netinet/tcp.h
4591 do
4592 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4593
4594 echo "$as_me:4594: checking for $ac_header" >&5
4595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4596 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4597   echo $ECHO_N "(cached) $ECHO_C" >&6
4598 else
4599   cat >conftest.$ac_ext <<_ACEOF
4600 #line 4600 "configure"
4601 #include "confdefs.h"
4602 #include <$ac_header>
4603
4604 _ACEOF
4605 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
4606 if { (eval echo $as_me:4606: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
4607   if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
4608     ac_cpp_err=$ac_c_preproc_warn_flag
4609   else
4610     ac_cpp_err=
4611   fi
4612 else
4613   ac_cpp_err=yes
4614 fi
4615
4616 if test -z "$ac_cpp_err"; then
4617   eval "$ac_ac_Header=yes"
4618 else
4619   cat conftest.err >&5
4620   echo "$as_me: failed program was:" >&5
4621   cat conftest.$ac_ext >&5
4622   eval "$ac_ac_Header=no"
4623 fi
4624 rm -f conftest*
4625
4626 fi
4627 echo "$as_me:4627: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4628 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4629 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4630   cat >>confdefs.h <<EOF
4631 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4632 EOF
4633
4634 fi
4635 done
4636
4637 fi
4638
4639 for ac_func in getlogin setlogin
4640 do
4641 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
4642 echo "$as_me:4642: checking for $ac_func" >&5
4643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4644 if eval "test \"\${$ac_ac_var+set}\" = set"; then
4645   echo $ECHO_N "(cached) $ECHO_C" >&6
4646 else
4647   cat >conftest.$ac_ext <<_ACEOF
4648 #line 4648 "configure"
4649 #include "confdefs.h"
4650 /* System header to define __stub macros and hopefully few prototypes,
4651     which can conflict with char $ac_func (); below.  */
4652 #include <assert.h>
4653 /* Override any gcc2 internal prototype to avoid an error.  */
4654 #ifdef __cplusplus
4655 extern "C"
4656 #endif
4657 /* We use char because int might match the return type of a gcc2
4658    builtin and then its argument prototype would still apply.  */
4659 char $ac_func ();
4660 char (*f) ();
4661
4662 int
4663 main ()
4664 {
4665 /* The GNU C library defines this for functions which it implements
4666     to always fail with ENOSYS.  Some functions are actually named
4667     something starting with __ and the normal name is an alias.  */
4668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4669 choke me
4670 #else
4671 f = $ac_func;
4672 #endif
4673
4674   ;
4675   return 0;
4676 }
4677 _ACEOF
4678 rm -f conftest.$ac_objext conftest$ac_exeext
4679 if { (eval echo $as_me:4679: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
4680   eval "$ac_ac_var=yes"
4681 else
4682   echo "$as_me: failed program was:" >&5
4683   cat conftest.$ac_ext >&5
4684   eval "$ac_ac_var=no"
4685 fi
4686 rm -f conftest$ac_exeext conftest.$ac_ext
4687 fi
4688 echo "$as_me:4688: result: `eval echo '${'$ac_ac_var'}'`" >&5
4689 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
4690 if test `eval echo '${'$ac_ac_var'}'` = yes; then
4691   cat >>confdefs.h <<EOF
4692 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
4693 EOF
4694
4695 fi
4696 done
4697
4698 if test "$ac_cv_func_getlogin" = yes; then
4699 echo "$as_me:4699: checking if getlogin is posix" >&5
4700 echo $ECHO_N "checking if getlogin is posix... $ECHO_C" >&6
4701 if test "${ac_cv_func_getlogin_posix+set}" = set; then
4702   echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704
4705 if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
4706         ac_cv_func_getlogin_posix=no
4707 else
4708         ac_cv_func_getlogin_posix=yes
4709 fi
4710
4711 fi
4712 echo "$as_me:4712: result: $ac_cv_func_getlogin_posix" >&5
4713 echo "${ECHO_T}$ac_cv_func_getlogin_posix" >&6
4714 if test "$ac_cv_func_getlogin_posix" = yes; then
4715
4716 cat >>confdefs.h <<\EOF
4717 #define POSIX_GETLOGIN 1
4718 EOF
4719
4720 fi
4721 fi
4722
4723 echo "$as_me:4723: checking if realloc if broken" >&5
4724 echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6
4725 if test "${ac_cv_func_realloc_broken+set}" = set; then
4726   echo $ECHO_N "(cached) $ECHO_C" >&6
4727 else
4728
4729 ac_cv_func_realloc_broken=no
4730 if test "$cross_compiling" = yes; then
4731   :
4732 else
4733   cat >conftest.$ac_ext <<_ACEOF
4734 #line 4734 "configure"
4735 #include "confdefs.h"
4736
4737 #include <stddef.h>
4738 #include <stdlib.h>
4739
4740 int main()
4741 {
4742         return realloc(NULL, 17) == NULL;
4743 }
4744
4745 _ACEOF
4746 rm -f conftest$ac_exeext
4747 { (eval echo $as_me:4747: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
4748   (./conftest$ac_exeext) >&5 2>&1;
4749 ac_status=$?
4750 if test $ac_status = 0; then
4751   :
4752 else
4753   echo "$as_me: program exited with status $ac_status" >&5
4754 echo "$as_me: failed program was:" >&5
4755 cat conftest.$ac_ext >&5
4756 ac_cv_func_realloc_broken=yes
4757 fi
4758
4759 rm -f conftest$ac_exeext conftest.$ac_ext
4760 fi
4761
4762 fi
4763 echo "$as_me:4763: result: $ac_cv_func_realloc_broken" >&5
4764 echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6
4765 if test "$ac_cv_func_realloc_broken" = yes ; then
4766
4767 cat >>confdefs.h <<\EOF
4768 #define BROKEN_REALLOC 1
4769 EOF
4770
4771 fi
4772
4773 DIR_roken=roken
4774 LIB_roken='$(top_builddir)/lib/roken/libroken.la'
4775 INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken'
4776
4777 WFLAGS_NOUNUSED=""
4778 WFLAGS_NOIMPLICITINT=""
4779 if test -z "$WFLAGS" -a "$GCC" = "yes"; then
4780   # -Wno-implicit-int for broken X11 headers
4781   # leave these out for now:
4782   #   -Wcast-align doesn't work well on alpha osf/1
4783   #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
4784   #   -Wmissing-declarations -Wnested-externs
4785   WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
4786   WFLAGS_NOUNUSED="-Wno-unused"
4787   WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
4788 fi
4789
4790 echo "$as_me:4790: checking for ssize_t" >&5
4791 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
4792 if test "${ac_cv_type_ssize_t+set}" = set; then
4793   echo $ECHO_N "(cached) $ECHO_C" >&6
4794 else
4795   cat >conftest.$ac_ext <<_ACEOF
4796 #line 4796 "configure"
4797 #include "confdefs.h"
4798 #include <sys/types.h>
4799 #if STDC_HEADERS
4800 #include <stdlib.h>
4801 #include <stddef.h>
4802 #endif
4803 #include <unistd.h>
4804 _ACEOF
4805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4806   egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4807   ac_cv_type_ssize_t=yes
4808 else
4809   ac_cv_type_ssize_t=no
4810 fi
4811 rm -f conftest*
4812
4813 fi
4814 echo "$as_me:4814: result: $ac_cv_type_ssize_t" >&5
4815 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
4816 if test $ac_cv_type_ssize_t = no; then
4817
4818 cat >>confdefs.h <<\EOF
4819 #define ssize_t int
4820 EOF
4821
4822 fi
4823
4824 cv=`echo "long long" | sed 'y%./+- %__p__%'`
4825 echo "$as_me:4825: checking for long long" >&5
4826 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4827 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
4828   echo $ECHO_N "(cached) $ECHO_C" >&6
4829 else
4830   cat >conftest.$ac_ext <<_ACEOF
4831 #line 4831 "configure"
4832 #include "confdefs.h"
4833 #include <sys/types.h>
4834 #if STDC_HEADERS
4835 #include <stdlib.h>
4836 #include <stddef.h>
4837 #endif
4838
4839 int
4840 main ()
4841 {
4842 long long foo;
4843   ;
4844   return 0;
4845 }
4846 _ACEOF
4847 rm -f conftest.$ac_objext
4848 if { (eval echo $as_me:4848: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
4849   eval "ac_cv_type_$cv=yes"
4850 else
4851   echo "$as_me: failed program was:" >&5
4852   cat conftest.$ac_ext >&5
4853   eval "ac_cv_type_$cv=no"
4854 fi
4855 rm -f conftest.$ac_objext conftest.$ac_ext
4856 fi
4857 ac_foo=`eval echo \\$ac_cv_type_$cv`
4858 echo "$as_me:4858: result: $ac_foo" >&5
4859 echo "${ECHO_T}$ac_foo" >&6
4860 if test "$ac_foo" = yes; then
4861   ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
4862 if false; then
4863         echo "$as_me:4863: checking for long long" >&5
4864 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4865 if test "${ac_cv_type_long_long+set}" = set; then
4866   echo $ECHO_N "(cached) $ECHO_C" >&6
4867 else
4868   cat >conftest.$ac_ext <<_ACEOF
4869 #line 4869 "configure"
4870 #include "confdefs.h"
4871 $ac_includes_default
4872 int
4873 main ()
4874 {
4875 if ((long long *) 0)
4876   return 0;
4877 if (sizeof (long long))
4878   return 0;
4879   ;
4880   return 0;
4881 }
4882 _ACEOF
4883 rm -f conftest.$ac_objext
4884 if { (eval echo $as_me:4884: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
4885   ac_cv_type_long_long=yes
4886 else
4887   echo "$as_me: failed program was:" >&5
4888   cat conftest.$ac_ext >&5
4889   ac_cv_type_long_long=no
4890 fi
4891 rm -f conftest.$ac_objext conftest.$ac_ext
4892 fi
4893 echo "$as_me:4893: result: $ac_cv_type_long_long" >&5
4894 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4895 if test $ac_cv_type_long_long = yes; then
4896
4897 cat >>confdefs.h <<EOF
4898 #define HAVE_LONG_LONG 1
4899 EOF
4900
4901 fi
4902
4903 fi
4904
4905 cat >>confdefs.h <<EOF
4906 #define $ac_tr_hdr 1
4907 EOF
4908
4909 fi
4910
4911 for ac_header in \
4912         arpa/inet.h                             \
4913         arpa/nameser.h                          \
4914         config.h                                \
4915         crypt.h                                 \
4916         dbm.h                                   \
4917         db.h                                    \
4918         dirent.h                                \
4919         errno.h                                 \
4920         err.h                                   \
4921         fcntl.h                                 \
4922         gdbm/ndbm.h                             \
4923         grp.h                                   \
4924         ifaddrs.h                               \
4925         ndbm.h                                  \
4926         net/if.h                                \
4927         netdb.h                                 \
4928         netinet/in.h                            \
4929         netinet/in6.h                           \
4930         netinet/in_systm.h                      \
4931         netinet6/in6.h                          \
4932         netinet6/in6_var.h                      \
4933         paths.h                                 \
4934         pwd.h                                   \
4935         resolv.h                                \
4936         rpcsvc/dbm.h                            \
4937         rpcsvc/ypclnt.h                         \
4938         shadow.h                                \
4939         sys/bswap.h                             \
4940         sys/ioctl.h                             \
4941         sys/param.h                             \
4942         sys/proc.h                              \
4943         sys/resource.h                          \
4944         sys/socket.h                            \
4945         sys/sockio.h                            \
4946         sys/stat.h                              \
4947         sys/sysctl.h                            \
4948         sys/time.h                              \
4949         sys/tty.h                               \
4950         sys/types.h                             \
4951         sys/uio.h                               \
4952         sys/utsname.h                           \
4953         sys/wait.h                              \
4954         syslog.h                                \
4955         termios.h                               \
4956         unistd.h                                \
4957         userconf.h                              \
4958         usersec.h                               \
4959         util.h                                  \
4960         vis.h                                   \
4961         winsock.h                               \
4962
4963 do
4964 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4965
4966 echo "$as_me:4966: checking for $ac_header" >&5
4967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4968 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4969   echo $ECHO_N "(cached) $ECHO_C" >&6
4970 else
4971   cat >conftest.$ac_ext <<_ACEOF
4972 #line 4972 "configure"
4973 #include "confdefs.h"
4974 #include <$ac_header>
4975
4976 _ACEOF
4977 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
4978 if { (eval echo $as_me:4978: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
4979   if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
4980     ac_cpp_err=$ac_c_preproc_warn_flag
4981   else
4982     ac_cpp_err=
4983   fi
4984 else
4985   ac_cpp_err=yes
4986 fi
4987
4988 if test -z "$ac_cpp_err"; then
4989   eval "$ac_ac_Header=yes"
4990 else
4991   cat conftest.err >&5
4992   echo "$as_me: failed program was:" >&5
4993   cat conftest.$ac_ext >&5
4994   eval "$ac_ac_Header=no"
4995 fi
4996 rm -f conftest*
4997
4998 fi
4999 echo "$as_me:4999: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5000 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5001 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5002   cat >>confdefs.h <<EOF
5003 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5004 EOF
5005
5006 fi
5007 done
5008
5009 if test "$ac_cv_header_err_h" = yes; then
5010   have_err_h_TRUE=
5011   have_err_h_FALSE='#'
5012 else
5013   have_err_h_TRUE='#'
5014   have_err_h_FALSE=
5015 fi
5016
5017 if test "$ac_cv_header_fnmatch_h" = yes; then
5018   have_fnmatch_h_TRUE=
5019   have_fnmatch_h_FALSE='#'
5020 else
5021   have_fnmatch_h_TRUE='#'
5022   have_fnmatch_h_FALSE=
5023 fi
5024
5025 if test "$ac_cv_header_ifaddrs_h" = yes; then
5026   have_ifaddrs_h_TRUE=
5027   have_ifaddrs_h_FALSE='#'
5028 else
5029   have_ifaddrs_h_TRUE='#'
5030   have_ifaddrs_h_FALSE=
5031 fi
5032
5033 if test "$ac_cv_header_vis_h" = yes; then
5034   have_vis_h_TRUE=
5035   have_vis_h_FALSE='#'
5036 else
5037   have_vis_h_TRUE='#'
5038   have_vis_h_FALSE=
5039 fi
5040
5041 # Check whether --with-ipv6 or --without-ipv6 was given.
5042 if test "${with_ipv6+set}" = set; then
5043   withval="$with_ipv6"
5044
5045 if test "$withval" = "no"; then
5046         ac_cv_lib_ipv6=no
5047 fi
5048 fi;
5049 save_CFLAGS="${CFLAGS}"
5050 if test "${ac_cv_lib_ipv6+set}" = set; then
5051   echo $ECHO_N "(cached) $ECHO_C" >&6
5052 else
5053   v6type=unknown
5054 v6lib=none
5055
5056 echo "$as_me:5056: checking ipv6 stack type" >&5
5057 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
5058 for i in v6d toshiba kame inria zeta linux; do
5059         case $i in
5060         v6d)
5061                 cat >conftest.$ac_ext <<_ACEOF
5062 #line 5062 "configure"
5063 #include "confdefs.h"
5064
5065 #include </usr/local/v6/include/sys/types.h>
5066 #ifdef __V6D__
5067 yes
5068 #endif
5069 _ACEOF
5070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5071   egrep "yes" >/dev/null 2>&1; then
5072   v6type=$i; v6lib=v6;
5073                         v6libdir=/usr/local/v6/lib;
5074                         CFLAGS="-I/usr/local/v6/include $CFLAGS"
5075 fi
5076 rm -f conftest*
5077
5078                 ;;
5079         toshiba)
5080                 cat >conftest.$ac_ext <<_ACEOF
5081 #line 5081 "configure"
5082 #include "confdefs.h"
5083
5084 #include <sys/param.h>
5085 #ifdef _TOSHIBA_INET6
5086 yes
5087 #endif
5088 _ACEOF
5089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5090   egrep "yes" >/dev/null 2>&1; then
5091   v6type=$i; v6lib=inet6;
5092                         v6libdir=/usr/local/v6/lib;
5093                         CFLAGS="-DINET6 $CFLAGS"
5094 fi
5095 rm -f conftest*
5096
5097                 ;;
5098         kame)
5099                 cat >conftest.$ac_ext <<_ACEOF
5100 #line 5100 "configure"
5101 #include "confdefs.h"
5102
5103 #include <netinet/in.h>
5104 #ifdef __KAME__
5105 yes
5106 #endif
5107 _ACEOF
5108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5109   egrep "yes" >/dev/null 2>&1; then
5110   v6type=$i; v6lib=inet6;
5111                         v6libdir=/usr/local/v6/lib;
5112                         CFLAGS="-DINET6 $CFLAGS"
5113 fi
5114 rm -f conftest*
5115
5116                 ;;
5117         inria)
5118                 cat >conftest.$ac_ext <<_ACEOF
5119 #line 5119 "configure"
5120 #include "confdefs.h"
5121
5122 #include <netinet/in.h>
5123 #ifdef IPV6_INRIA_VERSION
5124 yes
5125 #endif
5126 _ACEOF
5127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5128   egrep "yes" >/dev/null 2>&1; then
5129   v6type=$i; CFLAGS="-DINET6 $CFLAGS"
5130 fi
5131 rm -f conftest*
5132
5133                 ;;
5134         zeta)
5135                 cat >conftest.$ac_ext <<_ACEOF
5136 #line 5136 "configure"
5137 #include "confdefs.h"
5138
5139 #include <sys/param.h>
5140 #ifdef _ZETA_MINAMI_INET6
5141 yes
5142 #endif
5143 _ACEOF
5144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5145   egrep "yes" >/dev/null 2>&1; then
5146   v6type=$i; v6lib=inet6;
5147                         v6libdir=/usr/local/v6/lib;
5148                         CFLAGS="-DINET6 $CFLAGS"
5149 fi
5150 rm -f conftest*
5151
5152                 ;;
5153         linux)
5154                 if test -d /usr/inet6; then
5155                         v6type=$i
5156                         v6lib=inet6
5157                         v6libdir=/usr/inet6
5158                         CFLAGS="-DINET6 $CFLAGS"
5159                 fi
5160                 ;;
5161         esac
5162         if test "$v6type" != "unknown"; then
5163                 break
5164         fi
5165 done
5166 echo "$as_me:5166: result: $v6type" >&5
5167 echo "${ECHO_T}$v6type" >&6
5168
5169 if test "$v6lib" != "none"; then
5170         for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
5171                 if test -d $dir -a -f $dir/lib$v6lib.a; then
5172                         LIBS="-L$dir -l$v6lib $LIBS"
5173                         break
5174                 fi
5175         done
5176 fi
5177 cat >conftest.$ac_ext <<_ACEOF
5178 #line 5178 "configure"
5179 #include "confdefs.h"
5180
5181 #ifdef HAVE_SYS_TYPES_H
5182 #include <sys/types.h>
5183 #endif
5184 #ifdef HAVE_SYS_SOCKET_H
5185 #include <sys/socket.h>
5186 #endif
5187 #ifdef HAVE_NETINET_IN_H
5188 #include <netinet/in.h>
5189 #endif
5190 #ifdef HAVE_NETINET_IN6_H
5191 #include <netinet/in6.h>
5192 #endif
5193
5194 int
5195 main ()
5196 {
5197
5198  struct sockaddr_in6 sin6;
5199  int s;
5200
5201  s = socket(AF_INET6, SOCK_DGRAM, 0);
5202
5203  sin6.sin6_family = AF_INET6;
5204  sin6.sin6_port = htons(17);
5205  sin6.sin6_addr = in6addr_any;
5206  bind(s, (struct sockaddr *)&sin6, sizeof(sin6));
5207
5208   ;
5209   return 0;
5210 }
5211 _ACEOF
5212 rm -f conftest.$ac_objext conftest$ac_exeext
5213 if { (eval echo $as_me:5213: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
5214   ac_cv_lib_ipv6=yes
5215 else
5216   echo "$as_me: failed program was:" >&5
5217   cat conftest.$ac_ext >&5
5218   ac_cv_lib_ipv6=no
5219 fi
5220 rm -f conftest$ac_exeext conftest.$ac_ext
5221 fi
5222
5223 echo "$as_me:5223: checking for IPv6" >&5
5224 echo $ECHO_N "checking for IPv6... $ECHO_C" >&6
5225 echo "$as_me:5225: result: $ac_cv_lib_ipv6" >&5
5226 echo "${ECHO_T}$ac_cv_lib_ipv6" >&6
5227 if test "$ac_cv_lib_ipv6" = yes; then
5228
5229 cat >>confdefs.h <<\EOF
5230 #define HAVE_IPV6 1
5231 EOF
5232
5233 else
5234   CFLAGS="${save_CFLAGS}"
5235 fi
5236
5237 echo "$as_me:5237: checking for socket" >&5
5238 echo $ECHO_N "checking for socket... $ECHO_C" >&6
5239 if test "${ac_cv_funclib_socket+set}" = set; then
5240   echo $ECHO_N "(cached) $ECHO_C" >&6
5241 else
5242
5243 if eval "test \"\$ac_cv_func_socket\" != yes" ; then
5244         ac_save_LIBS="$LIBS"
5245         for ac_lib in "" socket; do
5246                 if test -n "$ac_lib"; then
5247                         ac_lib="-l$ac_lib"
5248                 else
5249                         ac_lib=""
5250                 fi
5251                 LIBS=" $ac_lib  $ac_save_LIBS"
5252                 cat >conftest.$ac_ext <<_ACEOF
5253 #line 5253 "configure"
5254 #include "confdefs.h"
5255
5256 int
5257 main ()
5258 {
5259 socket()
5260   ;
5261   return 0;
5262 }
5263 _ACEOF
5264 rm -f conftest.$ac_objext conftest$ac_exeext
5265 if { (eval echo $as_me:5265: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
5266   eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
5267 else
5268   echo "$as_me: failed program was:" >&5
5269   cat conftest.$ac_ext >&5
5270 fi
5271 rm -f conftest$ac_exeext conftest.$ac_ext
5272         done
5273         eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
5274         LIBS="$ac_save_LIBS"
5275 fi
5276
5277 fi
5278
5279 eval "ac_res=\$ac_cv_funclib_socket"
5280
5281 if false; then
5282
5283 for ac_func in socket
5284 do
5285 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
5286 echo "$as_me:5286: checking for $ac_func" >&5
5287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5288 if eval "test \"\${$ac_ac_var+set}\" = set"; then
5289   echo $ECHO_N "(cached) $ECHO_C" >&6
5290 else
5291   cat >conftest.$ac_ext <<_ACEOF
5292 #line 5292 "configure"
5293 #include "confdefs.h"
5294 /* System header to define __stub macros and hopefully few prototypes,
5295     which can conflict with char $ac_func (); below.  */
5296 #include <assert.h>
5297 /* Override any gcc2 internal prototype to avoid an error.  */
5298 #ifdef __cplusplus
5299 extern "C"
5300 #endif
5301 /* We use char because int might match the return type of a gcc2
5302    builtin and then its argument prototype would still apply.  */
5303 char $ac_func ();
5304 char (*f) ();
5305
5306 int
5307 main ()
5308 {
5309 /* The GNU C library defines this for functions which it implements
5310     to always fail with ENOSYS.  Some functions are actually named
5311     something starting with __ and the normal name is an alias.  */
5312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5313 choke me
5314 #else
5315 f = $ac_func;
5316 #endif
5317
5318   ;
5319   return 0;
5320 }
5321 _ACEOF
5322 rm -f conftest.$ac_objext conftest$ac_exeext
5323 if { (eval echo $as_me:5323: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
5324   eval "$ac_ac_var=yes"
5325 else
5326   echo "$as_me: failed program was:" >&5
5327   cat conftest.$ac_ext >&5
5328   eval "$ac_ac_var=no"
5329 fi
5330 rm -f conftest$ac_exeext conftest.$ac_ext
5331 fi
5332 echo "$as_me:5332: result: `eval echo '${'$ac_ac_var'}'`" >&5
5333 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
5334 if test `eval echo '${'$ac_ac_var'}'` = yes; then
5335   cat >>confdefs.h <<EOF
5336 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
5337 EOF
5338
5339 fi
5340 done
5341
5342 fi
5343 # socket
5344 eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
5345 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
5346 eval "LIB_socket=$ac_res"
5347
5348 case "$ac_res" in
5349         yes)
5350         eval "ac_cv_func_socket=yes"
5351         eval "LIB_socket="
5352         cat >>confdefs.h <<EOF
5353 #define $ac_tr_func 1
5354 EOF
5355
5356         echo "$as_me:5356: result: yes" >&5
5357 echo "${ECHO_T}yes" >&6
5358         ;;
5359         no)
5360         eval "ac_cv_func_socket=no"
5361         eval "LIB_socket="
5362         echo "$as_me:5362: result: no" >&5
5363 echo "${ECHO_T}no" >&6
5364         ;;
5365         *)
5366         eval "ac_cv_func_socket=yes"
5367         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
5368         cat >>confdefs.h <<EOF
5369 #define $ac_tr_func 1
5370 EOF
5371
5372         cat >>confdefs.h <<EOF
5373 #define $ac_tr_lib 1
5374 EOF
5375
5376         echo "$as_me:5376: result: yes, in $ac_res" >&5
5377 echo "${ECHO_T}yes, in $ac_res" >&6
5378         ;;
5379 esac
5380
5381 if test -n "$LIB_socket"; then
5382         LIBS="$LIB_socket $LIBS"
5383 fi
5384
5385 echo "$as_me:5385: checking for gethostbyname" >&5
5386 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5387 if test "${ac_cv_funclib_gethostbyname+set}" = set; then
5388   echo $ECHO_N "(cached) $ECHO_C" >&6
5389 else
5390
5391 if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
5392         ac_save_LIBS="$LIBS"
5393         for ac_lib in "" nsl; do
5394                 if test -n "$ac_lib"; then
5395                         ac_lib="-l$ac_lib"
5396                 else
5397                         ac_lib=""
5398                 fi
5399                 LIBS=" $ac_lib  $ac_save_LIBS"
5400                 cat >conftest.$ac_ext <<_ACEOF
5401 #line 5401 "configure"
5402 #include "confdefs.h"
5403
5404 int
5405 main ()
5406 {
5407 gethostbyname()
5408   ;
5409   return 0;
5410 }
5411 _ACEOF
5412 rm -f conftest.$ac_objext conftest$ac_exeext
5413 if { (eval echo $as_me:5413: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
5414   eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
5415 else
5416   echo "$as_me: failed program was:" >&5
5417   cat conftest.$ac_ext >&5
5418 fi
5419 rm -f conftest$ac_exeext conftest.$ac_ext
5420         done
5421         eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
5422         LIBS="$ac_save_LIBS"
5423 fi
5424
5425 fi
5426
5427 eval "ac_res=\$ac_cv_funclib_gethostbyname"
5428
5429 if false; then
5430
5431 for ac_func in gethostbyname
5432 do
5433 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
5434 echo "$as_me:5434: checking for $ac_func" >&5
5435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5436 if eval "test \"\${$ac_ac_var+set}\" = set"; then
5437   echo $ECHO_N "(cached) $ECHO_C" >&6
5438 else
5439   cat >conftest.$ac_ext <<_ACEOF
5440 #line 5440 "configure"
5441 #include "confdefs.h"
5442 /* System header to define __stub macros and hopefully few prototypes,
5443     which can conflict with char $ac_func (); below.  */
5444 #include <assert.h>
5445 /* Override any gcc2 internal prototype to avoid an error.  */
5446 #ifdef __cplusplus
5447 extern "C"
5448 #endif
5449 /* We use char because int might match the return type of a gcc2
5450    builtin and then its argument prototype would still apply.  */
5451 char $ac_func ();
5452 char (*f) ();
5453
5454 int
5455 main ()
5456 {
5457 /* The GNU C library defines this for functions which it implements
5458     to always fail with ENOSYS.  Some functions are actually named
5459     something starting with __ and the normal name is an alias.  */
5460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5461 choke me
5462 #else
5463 f = $ac_func;
5464 #endif
5465
5466   ;
5467   return 0;
5468 }
5469 _ACEOF
5470 rm -f conftest.$ac_objext conftest$ac_exeext
5471 if { (eval echo $as_me:5471: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
5472   eval "$ac_ac_var=yes"
5473 else
5474   echo "$as_me: failed program was:" >&5
5475   cat conftest.$ac_ext >&5
5476   eval "$ac_ac_var=no"
5477 fi
5478 rm -f conftest$ac_exeext conftest.$ac_ext
5479 fi
5480 echo "$as_me:5480: result: `eval echo '${'$ac_ac_var'}'`" >&5
5481 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
5482 if test `eval echo '${'$ac_ac_var'}'` = yes; then
5483   cat >>confdefs.h <<EOF
5484 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
5485 EOF
5486
5487 fi
5488 done
5489
5490 fi
5491 # gethostbyname
5492 eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
5493 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
5494 eval "LIB_gethostbyname=$ac_res"
5495
5496 case "$ac_res" in
5497         yes)
5498         eval "ac_cv_func_gethostbyname=yes"
5499         eval "LIB_gethostbyname="
5500         cat >>confdefs.h <<EOF
5501 #define $ac_tr_func 1
5502 EOF
5503
5504         echo "$as_me:5504: result: yes" >&5
5505 echo "${ECHO_T}yes" >&6
5506         ;;
5507         no)
5508         eval "ac_cv_func_gethostbyname=no"
5509         eval "LIB_gethostbyname="
5510         echo "$as_me:5510: result: no" >&5
5511 echo "${ECHO_T}no" >&6
5512         ;;
5513         *)
5514         eval "ac_cv_func_gethostbyname=yes"
5515         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
5516         cat >>confdefs.h <<EOF
5517 #define $ac_tr_func 1
5518 EOF
5519
5520         cat >>confdefs.h <<EOF
5521 #define $ac_tr_lib 1
5522 EOF
5523
5524         echo "$as_me:5524: result: yes, in $ac_res" >&5
5525 echo "${ECHO_T}yes, in $ac_res" >&6
5526         ;;
5527 esac
5528
5529 if test -n "$LIB_gethostbyname"; then
5530         LIBS="$LIB_gethostbyname $LIBS"
5531 fi
5532
5533 echo "$as_me:5533: checking for syslog" >&5
5534 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
5535 if test "${ac_cv_funclib_syslog+set}" = set; then
5536   echo $ECHO_N "(cached) $ECHO_C" >&6
5537 else
5538
5539 if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
5540         ac_save_LIBS="$LIBS"
5541         for ac_lib in "" syslog; do
5542                 if test -n "$ac_lib"; then
5543                         ac_lib="-l$ac_lib"
5544                 else
5545                         ac_lib=""
5546                 fi
5547                 LIBS=" $ac_lib  $ac_save_LIBS"
5548                 cat >conftest.$ac_ext <<_ACEOF
5549 #line 5549 "configure"
5550 #include "confdefs.h"
5551
5552 int
5553 main ()
5554 {
5555 syslog()
5556   ;
5557   return 0;
5558 }
5559 _ACEOF
5560 rm -f conftest.$ac_objext conftest$ac_exeext
5561 if { (eval echo $as_me:5561: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
5562   eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
5563 else
5564   echo "$as_me: failed program was:" >&5
5565   cat conftest.$ac_ext >&5
5566 fi
5567 rm -f conftest$ac_exeext conftest.$ac_ext
5568         done
5569         eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
5570         LIBS="$ac_save_LIBS"
5571 fi
5572
5573 fi
5574
5575 eval "ac_res=\$ac_cv_funclib_syslog"
5576
5577 if false; then
5578
5579 for ac_func in syslog
5580 do
5581 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
5582 echo "$as_me:5582: checking for $ac_func" >&5
5583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5584 if eval "test \"\${$ac_ac_var+set}\" = set"; then
5585   echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587   cat >conftest.$ac_ext <<_ACEOF
5588 #line 5588 "configure"
5589 #include "confdefs.h"
5590 /* System header to define __stub macros and hopefully few prototypes,
5591     which can conflict with char $ac_func (); below.  */
5592 #include <assert.h>
5593 /* Override any gcc2 internal prototype to avoid an error.  */
5594 #ifdef __cplusplus
5595 extern "C"
5596 #endif
5597 /* We use char because int might match the return type of a gcc2
5598    builtin and then its argument prototype would still apply.  */
5599 char $ac_func ();
5600 char (*f) ();
5601
5602 int
5603 main ()
5604 {
5605 /* The GNU C library defines this for functions which it implements
5606     to always fail with ENOSYS.  Some functions are actually named
5607     something starting with __ and the normal name is an alias.  */
5608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5609 choke me
5610 #else
5611 f = $ac_func;
5612 #endif
5613
5614   ;
5615   return 0;
5616 }
5617 _ACEOF
5618 rm -f conftest.$ac_objext conftest$ac_exeext
5619 if { (eval echo $as_me:5619: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
5620   eval "$ac_ac_var=yes"
5621 else
5622   echo "$as_me: failed program was:" >&5
5623   cat conftest.$ac_ext >&5
5624   eval "$ac_ac_var=no"
5625 fi
5626 rm -f conftest$ac_exeext conftest.$ac_ext
5627 fi
5628 echo "$as_me:5628: result: `eval echo '${'$ac_ac_var'}'`" >&5
5629 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
5630 if test `eval echo '${'$ac_ac_var'}'` = yes; then
5631   cat >>confdefs.h <<EOF
5632 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
5633 EOF
5634
5635 fi
5636 done
5637
5638 fi
5639 # syslog
5640 eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
5641 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
5642 eval "LIB_syslog=$ac_res"
5643
5644 case "$ac_res" in
5645         yes)
5646         eval "ac_cv_func_syslog=yes"
5647         eval "LIB_syslog="
5648         cat >>confdefs.h <<EOF
5649 #define $ac_tr_func 1
5650 EOF
5651
5652         echo "$as_me:5652: result: yes" >&5
5653 echo "${ECHO_T}yes" >&6
5654         ;;
5655         no)
5656         eval "ac_cv_func_syslog=no"
5657         eval "LIB_syslog="
5658         echo "$as_me:5658: result: no" >&5
5659 echo "${ECHO_T}no" >&6
5660         ;;
5661         *)
5662         eval "ac_cv_func_syslog=yes"
5663         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
5664         cat >>confdefs.h <<EOF
5665 #define $ac_tr_func 1
5666 EOF
5667
5668         cat >>confdefs.h <<EOF
5669 #define $ac_tr_lib 1
5670 EOF
5671
5672         echo "$as_me:5672: result: yes, in $ac_res" >&5
5673 echo "${ECHO_T}yes, in $ac_res" >&6
5674         ;;
5675 esac
5676
5677 if test -n "$LIB_syslog"; then
5678         LIBS="$LIB_syslog $LIBS"
5679 fi
5680
5681 echo "$as_me:5681: checking for gethostbyname2" >&5
5682 echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6
5683 if test "${ac_cv_funclib_gethostbyname2+set}" = set; then
5684   echo $ECHO_N "(cached) $ECHO_C" >&6
5685 else
5686
5687 if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
5688         ac_save_LIBS="$LIBS"
5689         for ac_lib in "" inet6 ip6; do
5690                 if test -n "$ac_lib"; then
5691                         ac_lib="-l$ac_lib"
5692                 else
5693                         ac_lib=""
5694                 fi
5695                 LIBS=" $ac_lib  $ac_save_LIBS"
5696                 cat >conftest.$ac_ext <<_ACEOF
5697 #line 5697 "configure"
5698 #include "confdefs.h"
5699
5700 int
5701 main ()
5702 {
5703 gethostbyname2()
5704   ;
5705   return 0;
5706 }
5707 _ACEOF
5708 rm -f conftest.$ac_objext conftest$ac_exeext
5709 if { (eval echo $as_me:5709: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
5710   eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
5711 else
5712   echo "$as_me: failed program was:" >&5
5713   cat conftest.$ac_ext >&5
5714 fi
5715 rm -f conftest$ac_exeext conftest.$ac_ext
5716         done
5717         eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
5718         LIBS="$ac_save_LIBS"
5719 fi
5720
5721 fi
5722
5723 eval "ac_res=\$ac_cv_funclib_gethostbyname2"
5724
5725 if false; then
5726
5727 for ac_func in gethostbyname2
5728 do
5729 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
5730 echo "$as_me:5730: checking for $ac_func" >&5
5731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5732 if eval "test \"\${$ac_ac_var+set}\" = set"; then
5733   echo $ECHO_N "(cached) $ECHO_C" >&6
5734 else
5735   cat >conftest.$ac_ext <<_ACEOF
5736 #line 5736 "configure"
5737 #include "confdefs.h"
5738 /* System header to define __stub macros and hopefully few prototypes,
5739     which can conflict with char $ac_func (); below.  */
5740 #include <assert.h>
5741 /* Override any gcc2 internal prototype to avoid an error.  */
5742 #ifdef __cplusplus
5743 extern "C"
5744 #endif
5745 /* We use char because int might match the return type of a gcc2
5746    builtin and then its argument prototype would still apply.  */
5747 char $ac_func ();
5748 char (*f) ();
5749
5750 int
5751 main ()
5752 {
5753 /* The GNU C library defines this for functions which it implements
5754     to always fail with ENOSYS.  Some functions are actually named
5755     something starting with __ and the normal name is an alias.  */
5756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5757 choke me
5758 #else
5759 f = $ac_func;
5760 #endif
5761
5762   ;
5763   return 0;
5764 }
5765 _ACEOF
5766 rm -f conftest.$ac_objext conftest$ac_exeext
5767 if { (eval echo $as_me:5767: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
5768   eval "$ac_ac_var=yes"
5769 else
5770   echo "$as_me: failed program was:" >&5
5771   cat conftest.$ac_ext >&5
5772   eval "$ac_ac_var=no"
5773 fi
5774 rm -f conftest$ac_exeext conftest.$ac_ext
5775 fi
5776 echo "$as_me:5776: result: `eval echo '${'$ac_ac_var'}'`" >&5
5777 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
5778 if test `eval echo '${'$ac_ac_var'}'` = yes; then
5779   cat >>confdefs.h <<EOF
5780 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
5781 EOF
5782
5783 fi
5784 done
5785
5786 fi
5787 # gethostbyname2
5788 eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
5789 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
5790 eval "LIB_gethostbyname2=$ac_res"
5791
5792 case "$ac_res" in
5793         yes)
5794         eval "ac_cv_func_gethostbyname2=yes"
5795         eval "LIB_gethostbyname2="
5796         cat >>confdefs.h <<EOF
5797 #define $ac_tr_func 1
5798 EOF
5799
5800         echo "$as_me:5800: result: yes" >&5
5801 echo "${ECHO_T}yes" >&6
5802         ;;
5803         no)
5804         eval "ac_cv_func_gethostbyname2=no"
5805         eval "LIB_gethostbyname2="
5806         echo "$as_me:5806: result: no" >&5
5807 echo "${ECHO_T}no" >&6
5808         ;;
5809         *)
5810         eval "ac_cv_func_gethostbyname2=yes"
5811         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
5812         cat >>confdefs.h <<EOF
5813 #define $ac_tr_func 1
5814 EOF
5815
5816         cat >>confdefs.h <<EOF
5817 #define $ac_tr_lib 1
5818 EOF
5819
5820         echo "$as_me:5820: result: yes, in $ac_res" >&5
5821 echo "${ECHO_T}yes, in $ac_res" >&6
5822         ;;
5823 esac
5824
5825 if test -n "$LIB_gethostbyname2"; then
5826         LIBS="$LIB_gethostbyname2 $LIBS"
5827 fi
5828
5829 echo "$as_me:5829: checking for res_search" >&5
5830 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
5831 if test "${ac_cv_funclib_res_search+set}" = set; then
5832   echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834
5835 if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
5836         ac_save_LIBS="$LIBS"
5837         for ac_lib in "" resolv; do
5838                 if test -n "$ac_lib"; then
5839                         ac_lib="-l$ac_lib"
5840                 else
5841                         ac_lib=""
5842                 fi
5843                 LIBS=" $ac_lib  $ac_save_LIBS"
5844                 cat >conftest.$ac_ext <<_ACEOF
5845 #line 5845 "configure"
5846 #include "confdefs.h"
5847
5848 #include <stdio.h>
5849 #ifdef HAVE_SYS_TYPES_H
5850 #include <sys/types.h>
5851 #endif
5852 #ifdef HAVE_NETINET_IN_H
5853 #include <netinet/in.h>
5854 #endif
5855 #ifdef HAVE_ARPA_NAMESER_H
5856 #include <arpa/nameser.h>
5857 #endif
5858 #ifdef HAVE_RESOLV_H
5859 #include <resolv.h>
5860 #endif
5861
5862 int
5863 main ()
5864 {
5865 res_search(0,0,0,0,0)
5866   ;
5867   return 0;
5868 }
5869 _ACEOF
5870 rm -f conftest.$ac_objext conftest$ac_exeext
5871 if { (eval echo $as_me:5871: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
5872   eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
5873 else
5874   echo "$as_me: failed program was:" >&5
5875   cat conftest.$ac_ext >&5
5876 fi
5877 rm -f conftest$ac_exeext conftest.$ac_ext
5878         done
5879         eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
5880         LIBS="$ac_save_LIBS"
5881 fi
5882
5883 fi
5884
5885 eval "ac_res=\$ac_cv_funclib_res_search"
5886
5887 if false; then
5888
5889 for ac_func in res_search
5890 do
5891 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
5892 echo "$as_me:5892: checking for $ac_func" >&5
5893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5894 if eval "test \"\${$ac_ac_var+set}\" = set"; then
5895   echo $ECHO_N "(cached) $ECHO_C" >&6
5896 else
5897   cat >conftest.$ac_ext <<_ACEOF
5898 #line 5898 "configure"
5899 #include "confdefs.h"
5900 /* System header to define __stub macros and hopefully few prototypes,
5901     which can conflict with char $ac_func (); below.  */
5902 #include <assert.h>
5903 /* Override any gcc2 internal prototype to avoid an error.  */
5904 #ifdef __cplusplus
5905 extern "C"
5906 #endif
5907 /* We use char because int might match the return type of a gcc2
5908    builtin and then its argument prototype would still apply.  */
5909 char $ac_func ();
5910 char (*f) ();
5911
5912 int
5913 main ()
5914 {
5915 /* The GNU C library defines this for functions which it implements
5916     to always fail with ENOSYS.  Some functions are actually named
5917     something starting with __ and the normal name is an alias.  */
5918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5919 choke me
5920 #else
5921 f = $ac_func;
5922 #endif
5923
5924   ;
5925   return 0;
5926 }
5927 _ACEOF
5928 rm -f conftest.$ac_objext conftest$ac_exeext
5929 if { (eval echo $as_me:5929: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
5930   eval "$ac_ac_var=yes"
5931 else
5932   echo "$as_me: failed program was:" >&5
5933   cat conftest.$ac_ext >&5
5934   eval "$ac_ac_var=no"
5935 fi
5936 rm -f conftest$ac_exeext conftest.$ac_ext
5937 fi
5938 echo "$as_me:5938: result: `eval echo '${'$ac_ac_var'}'`" >&5
5939 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
5940 if test `eval echo '${'$ac_ac_var'}'` = yes; then
5941   cat >>confdefs.h <<EOF
5942 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
5943 EOF
5944
5945 fi
5946 done
5947
5948 fi
5949 # res_search
5950 eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
5951 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
5952 eval "LIB_res_search=$ac_res"
5953
5954 case "$ac_res" in
5955         yes)
5956         eval "ac_cv_func_res_search=yes"
5957         eval "LIB_res_search="
5958         cat >>confdefs.h <<EOF
5959 #define $ac_tr_func 1
5960 EOF
5961
5962         echo "$as_me:5962: result: yes" >&5
5963 echo "${ECHO_T}yes" >&6
5964         ;;
5965         no)
5966         eval "ac_cv_func_res_search=no"
5967         eval "LIB_res_search="
5968         echo "$as_me:5968: result: no" >&5
5969 echo "${ECHO_T}no" >&6
5970         ;;
5971         *)
5972         eval "ac_cv_func_res_search=yes"
5973         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
5974         cat >>confdefs.h <<EOF
5975 #define $ac_tr_func 1
5976 EOF
5977
5978         cat >>confdefs.h <<EOF
5979 #define $ac_tr_lib 1
5980 EOF
5981
5982         echo "$as_me:5982: result: yes, in $ac_res" >&5
5983 echo "${ECHO_T}yes, in $ac_res" >&6
5984         ;;
5985 esac
5986
5987 if test -n "$LIB_res_search"; then
5988         LIBS="$LIB_res_search $LIBS"
5989 fi
5990
5991 echo "$as_me:5991: checking for dn_expand" >&5
5992 echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6
5993 if test "${ac_cv_funclib_dn_expand+set}" = set; then
5994   echo $ECHO_N "(cached) $ECHO_C" >&6
5995 else
5996
5997 if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
5998         ac_save_LIBS="$LIBS"
5999         for ac_lib in "" resolv; do
6000                 if test -n "$ac_lib"; then
6001                         ac_lib="-l$ac_lib"
6002                 else
6003                         ac_lib=""
6004                 fi
6005                 LIBS=" $ac_lib  $ac_save_LIBS"
6006                 cat >conftest.$ac_ext <<_ACEOF
6007 #line 6007 "configure"
6008 #include "confdefs.h"
6009
6010 #include <stdio.h>
6011 #ifdef HAVE_SYS_TYPES_H
6012 #include <sys/types.h>
6013 #endif
6014 #ifdef HAVE_NETINET_IN_H
6015 #include <netinet/in.h>
6016 #endif
6017 #ifdef HAVE_ARPA_NAMESER_H
6018 #include <arpa/nameser.h>
6019 #endif
6020 #ifdef HAVE_RESOLV_H
6021 #include <resolv.h>
6022 #endif
6023
6024 int
6025 main ()
6026 {
6027 dn_expand(0,0,0,0,0)
6028   ;
6029   return 0;
6030 }
6031 _ACEOF
6032 rm -f conftest.$ac_objext conftest$ac_exeext
6033 if { (eval echo $as_me:6033: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
6034   eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
6035 else
6036   echo "$as_me: failed program was:" >&5
6037   cat conftest.$ac_ext >&5
6038 fi
6039 rm -f conftest$ac_exeext conftest.$ac_ext
6040         done
6041         eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
6042         LIBS="$ac_save_LIBS"
6043 fi
6044
6045 fi
6046
6047 eval "ac_res=\$ac_cv_funclib_dn_expand"
6048
6049 if false; then
6050
6051 for ac_func in dn_expand
6052 do
6053 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6054 echo "$as_me:6054: checking for $ac_func" >&5
6055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6056 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6057   echo $ECHO_N "(cached) $ECHO_C" >&6
6058 else
6059   cat >conftest.$ac_ext <<_ACEOF
6060 #line 6060 "configure"
6061 #include "confdefs.h"
6062 /* System header to define __stub macros and hopefully few prototypes,
6063     which can conflict with char $ac_func (); below.  */
6064 #include <assert.h>
6065 /* Override any gcc2 internal prototype to avoid an error.  */
6066 #ifdef __cplusplus
6067 extern "C"
6068 #endif
6069 /* We use char because int might match the return type of a gcc2
6070    builtin and then its argument prototype would still apply.  */
6071 char $ac_func ();
6072 char (*f) ();
6073
6074 int
6075 main ()
6076 {
6077 /* The GNU C library defines this for functions which it implements
6078     to always fail with ENOSYS.  Some functions are actually named
6079     something starting with __ and the normal name is an alias.  */
6080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6081 choke me
6082 #else
6083 f = $ac_func;
6084 #endif
6085
6086   ;
6087   return 0;
6088 }
6089 _ACEOF
6090 rm -f conftest.$ac_objext conftest$ac_exeext
6091 if { (eval echo $as_me:6091: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
6092   eval "$ac_ac_var=yes"
6093 else
6094   echo "$as_me: failed program was:" >&5
6095   cat conftest.$ac_ext >&5
6096   eval "$ac_ac_var=no"
6097 fi
6098 rm -f conftest$ac_exeext conftest.$ac_ext
6099 fi
6100 echo "$as_me:6100: result: `eval echo '${'$ac_ac_var'}'`" >&5
6101 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
6102 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6103   cat >>confdefs.h <<EOF
6104 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6105 EOF
6106
6107 fi
6108 done
6109
6110 fi
6111 # dn_expand
6112 eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6113 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6114 eval "LIB_dn_expand=$ac_res"
6115
6116 case "$ac_res" in
6117         yes)
6118         eval "ac_cv_func_dn_expand=yes"
6119         eval "LIB_dn_expand="
6120         cat >>confdefs.h <<EOF
6121 #define $ac_tr_func 1
6122 EOF
6123
6124         echo "$as_me:6124: result: yes" >&5
6125 echo "${ECHO_T}yes" >&6
6126         ;;
6127         no)
6128         eval "ac_cv_func_dn_expand=no"
6129         eval "LIB_dn_expand="
6130         echo "$as_me:6130: result: no" >&5
6131 echo "${ECHO_T}no" >&6
6132         ;;
6133         *)
6134         eval "ac_cv_func_dn_expand=yes"
6135         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
6136         cat >>confdefs.h <<EOF
6137 #define $ac_tr_func 1
6138 EOF
6139
6140         cat >>confdefs.h <<EOF
6141 #define $ac_tr_lib 1
6142 EOF
6143
6144         echo "$as_me:6144: result: yes, in $ac_res" >&5
6145 echo "${ECHO_T}yes, in $ac_res" >&6
6146         ;;
6147 esac
6148
6149 if test -n "$LIB_dn_expand"; then
6150         LIBS="$LIB_dn_expand $LIBS"
6151 fi
6152
6153 echo "$as_me:6153: checking for working snprintf" >&5
6154 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
6155 if test "${ac_cv_func_snprintf_working+set}" = set; then
6156   echo $ECHO_N "(cached) $ECHO_C" >&6
6157 else
6158   ac_cv_func_snprintf_working=yes
6159 if test "$cross_compiling" = yes; then
6160   :
6161 else
6162   cat >conftest.$ac_ext <<_ACEOF
6163 #line 6163 "configure"
6164 #include "confdefs.h"
6165
6166 #include <stdio.h>
6167 #include <string.h>
6168 int main()
6169 {
6170         char foo[3];
6171         snprintf(foo, 2, "12");
6172         return strcmp(foo, "1");
6173 }
6174 _ACEOF
6175 rm -f conftest$ac_exeext
6176 { (eval echo $as_me:6176: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
6177   (./conftest$ac_exeext) >&5 2>&1;
6178 ac_status=$?
6179 if test $ac_status = 0; then
6180   :
6181 else
6182   echo "$as_me: program exited with status $ac_status" >&5
6183 echo "$as_me: failed program was:" >&5
6184 cat conftest.$ac_ext >&5
6185 ac_cv_func_snprintf_working=no
6186 fi
6187
6188 rm -f conftest$ac_exeext conftest.$ac_ext
6189 fi
6190
6191 fi
6192 echo "$as_me:6192: result: $ac_cv_func_snprintf_working" >&5
6193 echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6
6194
6195 if test "$ac_cv_func_snprintf_working" = yes; then
6196
6197 cat >>confdefs.h <<EOF
6198 #define HAVE_SNPRINTF 1
6199 EOF
6200
6201 fi
6202 if test "$ac_cv_func_snprintf_working" = yes; then
6203
6204 if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
6205 echo "$as_me:6205: checking if snprintf needs a prototype" >&5
6206 echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6
6207 if test "${ac_cv_func_snprintf_noproto+set}" = set; then
6208   echo $ECHO_N "(cached) $ECHO_C" >&6
6209 else
6210   cat >conftest.$ac_ext <<_ACEOF
6211 #line 6211 "configure"
6212 #include "confdefs.h"
6213 #include <stdio.h>
6214 int
6215 main ()
6216 {
6217 struct foo { int foo; } xx;
6218 extern int snprintf (struct foo*);
6219 snprintf(&xx);
6220
6221   ;
6222   return 0;
6223 }
6224 _ACEOF
6225 rm -f conftest.$ac_objext
6226 if { (eval echo $as_me:6226: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
6227   eval "ac_cv_func_snprintf_noproto=yes"
6228 else
6229   echo "$as_me: failed program was:" >&5
6230   cat conftest.$ac_ext >&5
6231   eval "ac_cv_func_snprintf_noproto=no"
6232 fi
6233 rm -f conftest.$ac_objext conftest.$ac_ext
6234 fi
6235 echo "$as_me:6235: result: $ac_cv_func_snprintf_noproto" >&5
6236 echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6
6237
6238 if test "$ac_cv_func_snprintf_noproto" = yes; then
6239
6240 cat >>confdefs.h <<\EOF
6241 #define NEED_SNPRINTF_PROTO 1
6242 EOF
6243
6244 fi
6245
6246 fi
6247
6248 fi
6249
6250 echo "$as_me:6250: checking for working vsnprintf" >&5
6251 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
6252 if test "${ac_cv_func_vsnprintf_working+set}" = set; then
6253   echo $ECHO_N "(cached) $ECHO_C" >&6
6254 else
6255   ac_cv_func_vsnprintf_working=yes
6256 if test "$cross_compiling" = yes; then
6257   :
6258 else
6259   cat >conftest.$ac_ext <<_ACEOF
6260 #line 6260 "configure"
6261 #include "confdefs.h"
6262
6263 #include <stdio.h>
6264 #include <string.h>
6265 #include <stdarg.h>
6266
6267 int foo(int num, ...)
6268 {
6269         char bar[3];
6270         va_list arg;
6271         va_start(arg, num);
6272         vsnprintf(bar, 2, "%s", arg);
6273         va_end(arg);
6274         return strcmp(bar, "1");
6275 }
6276
6277 int main()
6278 {
6279         return foo(0, "12");
6280 }
6281 _ACEOF
6282 rm -f conftest$ac_exeext
6283 { (eval echo $as_me:6283: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
6284   (./conftest$ac_exeext) >&5 2>&1;
6285 ac_status=$?
6286 if test $ac_status = 0; then
6287   :
6288 else
6289   echo "$as_me: program exited with status $ac_status" >&5
6290 echo "$as_me: failed program was:" >&5
6291 cat conftest.$ac_ext >&5
6292 ac_cv_func_vsnprintf_working=no
6293 fi
6294
6295 rm -f conftest$ac_exeext conftest.$ac_ext
6296 fi
6297
6298 fi
6299 echo "$as_me:6299: result: $ac_cv_func_vsnprintf_working" >&5
6300 echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6
6301
6302 if test "$ac_cv_func_vsnprintf_working" = yes; then
6303
6304 cat >>confdefs.h <<EOF
6305 #define HAVE_VSNPRINTF 1
6306 EOF
6307
6308 fi
6309 if test "$ac_cv_func_vsnprintf_working" = yes; then
6310
6311 if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
6312 echo "$as_me:6312: checking if vsnprintf needs a prototype" >&5
6313 echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6
6314 if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then
6315   echo $ECHO_N "(cached) $ECHO_C" >&6
6316 else
6317   cat >conftest.$ac_ext <<_ACEOF
6318 #line 6318 "configure"
6319 #include "confdefs.h"
6320 #include <stdio.h>
6321 int
6322 main ()
6323 {
6324 struct foo { int foo; } xx;
6325 extern int vsnprintf (struct foo*);
6326 vsnprintf(&xx);
6327
6328   ;
6329   return 0;
6330 }
6331 _ACEOF
6332 rm -f conftest.$ac_objext
6333 if { (eval echo $as_me:6333: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
6334   eval "ac_cv_func_vsnprintf_noproto=yes"
6335 else
6336   echo "$as_me: failed program was:" >&5
6337   cat conftest.$ac_ext >&5
6338   eval "ac_cv_func_vsnprintf_noproto=no"
6339 fi
6340 rm -f conftest.$ac_objext conftest.$ac_ext
6341 fi
6342 echo "$as_me:6342: result: $ac_cv_func_vsnprintf_noproto" >&5
6343 echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6
6344
6345 if test "$ac_cv_func_vsnprintf_noproto" = yes; then
6346
6347 cat >>confdefs.h <<\EOF
6348 #define NEED_VSNPRINTF_PROTO 1
6349 EOF
6350
6351 fi
6352
6353 fi
6354
6355 fi
6356
6357 echo "$as_me:6357: checking for working glob" >&5
6358 echo $ECHO_N "checking for working glob... $ECHO_C" >&6
6359 if test "${ac_cv_func_glob_working+set}" = set; then
6360   echo $ECHO_N "(cached) $ECHO_C" >&6
6361 else
6362   ac_cv_func_glob_working=yes
6363 cat >conftest.$ac_ext <<_ACEOF
6364 #line 6364 "configure"
6365 #include "confdefs.h"
6366
6367 #include <stdio.h>
6368 #include <glob.h>
6369 int
6370 main ()
6371 {
6372
6373 glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|GLOB_LIMIT,
6374 NULL, NULL);
6375
6376   ;
6377   return 0;
6378 }
6379 _ACEOF
6380 rm -f conftest.$ac_objext conftest$ac_exeext
6381 if { (eval echo $as_me:6381: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
6382   :
6383 else
6384   echo "$as_me: failed program was:" >&5
6385   cat conftest.$ac_ext >&5
6386   ac_cv_func_glob_working=no
6387 fi
6388 rm -f conftest$ac_exeext conftest.$ac_ext
6389 fi
6390 echo "$as_me:6390: result: $ac_cv_func_glob_working" >&5
6391 echo "${ECHO_T}$ac_cv_func_glob_working" >&6
6392
6393 if test "$ac_cv_func_glob_working" = yes; then
6394
6395 cat >>confdefs.h <<\EOF
6396 #define HAVE_GLOB 1
6397 EOF
6398
6399 fi
6400 if test "$ac_cv_func_glob_working" = yes; then
6401
6402 if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then
6403 echo "$as_me:6403: checking if glob needs a prototype" >&5
6404 echo $ECHO_N "checking if glob needs a prototype... $ECHO_C" >&6
6405 if test "${ac_cv_func_glob_noproto+set}" = set; then
6406   echo $ECHO_N "(cached) $ECHO_C" >&6
6407 else
6408   cat >conftest.$ac_ext <<_ACEOF
6409 #line 6409 "configure"
6410 #include "confdefs.h"
6411 #include <stdio.h>
6412 #include <glob.h>
6413 int
6414 main ()
6415 {
6416 struct foo { int foo; } xx;
6417 extern int glob (struct foo*);
6418 glob(&xx);
6419
6420   ;
6421   return 0;
6422 }
6423 _ACEOF
6424 rm -f conftest.$ac_objext
6425 if { (eval echo $as_me:6425: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
6426   eval "ac_cv_func_glob_noproto=yes"
6427 else
6428   echo "$as_me: failed program was:" >&5
6429   cat conftest.$ac_ext >&5
6430   eval "ac_cv_func_glob_noproto=no"
6431 fi
6432 rm -f conftest.$ac_objext conftest.$ac_ext
6433 fi
6434 echo "$as_me:6434: result: $ac_cv_func_glob_noproto" >&5
6435 echo "${ECHO_T}$ac_cv_func_glob_noproto" >&6
6436
6437 if test "$ac_cv_func_glob_noproto" = yes; then
6438
6439 cat >>confdefs.h <<\EOF
6440 #define NEED_GLOB_PROTO 1
6441 EOF
6442
6443 fi
6444
6445 fi
6446
6447 fi
6448
6449 if test "$ac_cv_func_glob_working" != yes; then
6450         LIBOBJS="$LIBOBJS glob.o"
6451 fi
6452
6453 if test "$ac_cv_func_glob_working" = yes; then
6454   have_glob_h_TRUE=
6455   have_glob_h_FALSE='#'
6456 else
6457   have_glob_h_TRUE='#'
6458   have_glob_h_FALSE=
6459 fi
6460
6461 for ac_func in                          \
6462         asnprintf                               \
6463         asprintf                                \
6464         cgetent                                 \
6465         getconfattr                             \
6466         getprogname                             \
6467         getrlimit                               \
6468         getspnam                                \
6469         setprogname                             \
6470         strsvis                                 \
6471         strunvis                                \
6472         strvis                                  \
6473         strvisx                                 \
6474         svis                                    \
6475         sysconf                                 \
6476         sysctl                                  \
6477         uname                                   \
6478         unvis                                   \
6479         vasnprintf                              \
6480         vasprintf                               \
6481         vis                                     \
6482
6483 do
6484 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6485 echo "$as_me:6485: checking for $ac_func" >&5
6486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6487 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6488   echo $ECHO_N "(cached) $ECHO_C" >&6
6489 else
6490   cat >conftest.$ac_ext <<_ACEOF
6491 #line 6491 "configure"
6492 #include "confdefs.h"
6493 /* System header to define __stub macros and hopefully few prototypes,
6494     which can conflict with char $ac_func (); below.  */
6495 #include <assert.h>
6496 /* Override any gcc2 internal prototype to avoid an error.  */
6497 #ifdef __cplusplus
6498 extern "C"
6499 #endif
6500 /* We use char because int might match the return type of a gcc2
6501    builtin and then its argument prototype would still apply.  */
6502 char $ac_func ();
6503 char (*f) ();
6504
6505 int
6506 main ()
6507 {
6508 /* The GNU C library defines this for functions which it implements
6509     to always fail with ENOSYS.  Some functions are actually named
6510     something starting with __ and the normal name is an alias.  */
6511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6512 choke me
6513 #else
6514 f = $ac_func;
6515 #endif
6516
6517   ;
6518   return 0;
6519 }
6520 _ACEOF
6521 rm -f conftest.$ac_objext conftest$ac_exeext
6522 if { (eval echo $as_me:6522: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
6523   eval "$ac_ac_var=yes"
6524 else
6525   echo "$as_me: failed program was:" >&5
6526   cat conftest.$ac_ext >&5
6527   eval "$ac_ac_var=no"
6528 fi
6529 rm -f conftest$ac_exeext conftest.$ac_ext
6530 fi
6531 echo "$as_me:6531: result: `eval echo '${'$ac_ac_var'}'`" >&5
6532 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
6533 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6534   cat >>confdefs.h <<EOF
6535 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6536 EOF
6537
6538 fi
6539 done
6540
6541 if test "$ac_cv_func_cgetent" = no; then
6542         LIBOBJS="$LIBOBJS getcap.o"
6543 fi
6544
6545 echo "$as_me:6545: checking for getsockopt" >&5
6546 echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6
6547 if test "${ac_cv_funclib_getsockopt+set}" = set; then
6548   echo $ECHO_N "(cached) $ECHO_C" >&6
6549 else
6550
6551 if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
6552         ac_save_LIBS="$LIBS"
6553         for ac_lib in "" ; do
6554                 if test -n "$ac_lib"; then
6555                         ac_lib="-l$ac_lib"
6556                 else
6557                         ac_lib=""
6558                 fi
6559                 LIBS=" $ac_lib  $ac_save_LIBS"
6560                 cat >conftest.$ac_ext <<_ACEOF
6561 #line 6561 "configure"
6562 #include "confdefs.h"
6563 #ifdef HAVE_SYS_TYPES_H
6564 #include <sys/types.h>
6565 #endif
6566 #ifdef HAVE_SYS_SOCKET_H
6567 #include <sys/socket.h>
6568 #endif
6569 int
6570 main ()
6571 {
6572 getsockopt(0,0,0,0,0)
6573   ;
6574   return 0;
6575 }
6576 _ACEOF
6577 rm -f conftest.$ac_objext conftest$ac_exeext
6578 if { (eval echo $as_me:6578: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
6579   eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
6580 else
6581   echo "$as_me: failed program was:" >&5
6582   cat conftest.$ac_ext >&5
6583 fi
6584 rm -f conftest$ac_exeext conftest.$ac_ext
6585         done
6586         eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
6587         LIBS="$ac_save_LIBS"
6588 fi
6589
6590 fi
6591
6592 eval "ac_res=\$ac_cv_funclib_getsockopt"
6593
6594 if false; then
6595
6596 for ac_func in getsockopt
6597 do
6598 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6599 echo "$as_me:6599: checking for $ac_func" >&5
6600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6601 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6602   echo $ECHO_N "(cached) $ECHO_C" >&6
6603 else
6604   cat >conftest.$ac_ext <<_ACEOF
6605 #line 6605 "configure"
6606 #include "confdefs.h"
6607 /* System header to define __stub macros and hopefully few prototypes,
6608     which can conflict with char $ac_func (); below.  */
6609 #include <assert.h>
6610 /* Override any gcc2 internal prototype to avoid an error.  */
6611 #ifdef __cplusplus
6612 extern "C"
6613 #endif
6614 /* We use char because int might match the return type of a gcc2
6615    builtin and then its argument prototype would still apply.  */
6616 char $ac_func ();
6617 char (*f) ();
6618
6619 int
6620 main ()
6621 {
6622 /* The GNU C library defines this for functions which it implements
6623     to always fail with ENOSYS.  Some functions are actually named
6624     something starting with __ and the normal name is an alias.  */
6625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6626 choke me
6627 #else
6628 f = $ac_func;
6629 #endif
6630
6631   ;
6632   return 0;
6633 }
6634 _ACEOF
6635 rm -f conftest.$ac_objext conftest$ac_exeext
6636 if { (eval echo $as_me:6636: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
6637   eval "$ac_ac_var=yes"
6638 else
6639   echo "$as_me: failed program was:" >&5
6640   cat conftest.$ac_ext >&5
6641   eval "$ac_ac_var=no"
6642 fi
6643 rm -f conftest$ac_exeext conftest.$ac_ext
6644 fi
6645 echo "$as_me:6645: result: `eval echo '${'$ac_ac_var'}'`" >&5
6646 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
6647 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6648   cat >>confdefs.h <<EOF
6649 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6650 EOF
6651
6652 fi
6653 done
6654
6655 fi
6656 # getsockopt
6657 eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6658 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6659 eval "LIB_getsockopt=$ac_res"
6660
6661 case "$ac_res" in
6662         yes)
6663         eval "ac_cv_func_getsockopt=yes"
6664         eval "LIB_getsockopt="
6665         cat >>confdefs.h <<EOF
6666 #define $ac_tr_func 1
6667 EOF
6668
6669         echo "$as_me:6669: result: yes" >&5
6670 echo "${ECHO_T}yes" >&6
6671         ;;
6672         no)
6673         eval "ac_cv_func_getsockopt=no"
6674         eval "LIB_getsockopt="
6675         echo "$as_me:6675: result: no" >&5
6676 echo "${ECHO_T}no" >&6
6677         ;;
6678         *)
6679         eval "ac_cv_func_getsockopt=yes"
6680         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
6681         cat >>confdefs.h <<EOF
6682 #define $ac_tr_func 1
6683 EOF
6684
6685         cat >>confdefs.h <<EOF
6686 #define $ac_tr_lib 1
6687 EOF
6688
6689         echo "$as_me:6689: result: yes, in $ac_res" >&5
6690 echo "${ECHO_T}yes, in $ac_res" >&6
6691         ;;
6692 esac
6693
6694 echo "$as_me:6694: checking for setsockopt" >&5
6695 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
6696 if test "${ac_cv_funclib_setsockopt+set}" = set; then
6697   echo $ECHO_N "(cached) $ECHO_C" >&6
6698 else
6699
6700 if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
6701         ac_save_LIBS="$LIBS"
6702         for ac_lib in "" ; do
6703                 if test -n "$ac_lib"; then
6704                         ac_lib="-l$ac_lib"
6705                 else
6706                         ac_lib=""
6707                 fi
6708                 LIBS=" $ac_lib  $ac_save_LIBS"
6709                 cat >conftest.$ac_ext <<_ACEOF
6710 #line 6710 "configure"
6711 #include "confdefs.h"
6712 #ifdef HAVE_SYS_TYPES_H
6713 #include <sys/types.h>
6714 #endif
6715 #ifdef HAVE_SYS_SOCKET_H
6716 #include <sys/socket.h>
6717 #endif
6718 int
6719 main ()
6720 {
6721 setsockopt(0,0,0,0,0)
6722   ;
6723   return 0;
6724 }
6725 _ACEOF
6726 rm -f conftest.$ac_objext conftest$ac_exeext
6727 if { (eval echo $as_me:6727: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
6728   eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
6729 else
6730   echo "$as_me: failed program was:" >&5
6731   cat conftest.$ac_ext >&5
6732 fi
6733 rm -f conftest$ac_exeext conftest.$ac_ext
6734         done
6735         eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
6736         LIBS="$ac_save_LIBS"
6737 fi
6738
6739 fi
6740
6741 eval "ac_res=\$ac_cv_funclib_setsockopt"
6742
6743 if false; then
6744
6745 for ac_func in setsockopt
6746 do
6747 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6748 echo "$as_me:6748: checking for $ac_func" >&5
6749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6750 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6751   echo $ECHO_N "(cached) $ECHO_C" >&6
6752 else
6753   cat >conftest.$ac_ext <<_ACEOF
6754 #line 6754 "configure"
6755 #include "confdefs.h"
6756 /* System header to define __stub macros and hopefully few prototypes,
6757     which can conflict with char $ac_func (); below.  */
6758 #include <assert.h>
6759 /* Override any gcc2 internal prototype to avoid an error.  */
6760 #ifdef __cplusplus
6761 extern "C"
6762 #endif
6763 /* We use char because int might match the return type of a gcc2
6764    builtin and then its argument prototype would still apply.  */
6765 char $ac_func ();
6766 char (*f) ();
6767
6768 int
6769 main ()
6770 {
6771 /* The GNU C library defines this for functions which it implements
6772     to always fail with ENOSYS.  Some functions are actually named
6773     something starting with __ and the normal name is an alias.  */
6774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6775 choke me
6776 #else
6777 f = $ac_func;
6778 #endif
6779
6780   ;
6781   return 0;
6782 }
6783 _ACEOF
6784 rm -f conftest.$ac_objext conftest$ac_exeext
6785 if { (eval echo $as_me:6785: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
6786   eval "$ac_ac_var=yes"
6787 else
6788   echo "$as_me: failed program was:" >&5
6789   cat conftest.$ac_ext >&5
6790   eval "$ac_ac_var=no"
6791 fi
6792 rm -f conftest$ac_exeext conftest.$ac_ext
6793 fi
6794 echo "$as_me:6794: result: `eval echo '${'$ac_ac_var'}'`" >&5
6795 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
6796 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6797   cat >>confdefs.h <<EOF
6798 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6799 EOF
6800
6801 fi
6802 done
6803
6804 fi
6805 # setsockopt
6806 eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6807 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6808 eval "LIB_setsockopt=$ac_res"
6809
6810 case "$ac_res" in
6811         yes)
6812         eval "ac_cv_func_setsockopt=yes"
6813         eval "LIB_setsockopt="
6814         cat >>confdefs.h <<EOF
6815 #define $ac_tr_func 1
6816 EOF
6817
6818         echo "$as_me:6818: result: yes" >&5
6819 echo "${ECHO_T}yes" >&6
6820         ;;
6821         no)
6822         eval "ac_cv_func_setsockopt=no"
6823         eval "LIB_setsockopt="
6824         echo "$as_me:6824: result: no" >&5
6825 echo "${ECHO_T}no" >&6
6826         ;;
6827         *)
6828         eval "ac_cv_func_setsockopt=yes"
6829         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
6830         cat >>confdefs.h <<EOF
6831 #define $ac_tr_func 1
6832 EOF
6833
6834         cat >>confdefs.h <<EOF
6835 #define $ac_tr_lib 1
6836 EOF
6837
6838         echo "$as_me:6838: result: yes, in $ac_res" >&5
6839 echo "${ECHO_T}yes, in $ac_res" >&6
6840         ;;
6841 esac
6842
6843 echo "$as_me:6843: checking for hstrerror" >&5
6844 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
6845 if test "${ac_cv_funclib_hstrerror+set}" = set; then
6846   echo $ECHO_N "(cached) $ECHO_C" >&6
6847 else
6848
6849 if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
6850         ac_save_LIBS="$LIBS"
6851         for ac_lib in "" resolv; do
6852                 if test -n "$ac_lib"; then
6853                         ac_lib="-l$ac_lib"
6854                 else
6855                         ac_lib=""
6856                 fi
6857                 LIBS=" $ac_lib  $ac_save_LIBS"
6858                 cat >conftest.$ac_ext <<_ACEOF
6859 #line 6859 "configure"
6860 #include "confdefs.h"
6861 #ifdef HAVE_NETDB_H
6862 #include <netdb.h>
6863 #endif
6864 int
6865 main ()
6866 {
6867 hstrerror(17)
6868   ;
6869   return 0;
6870 }
6871 _ACEOF
6872 rm -f conftest.$ac_objext conftest$ac_exeext
6873 if { (eval echo $as_me:6873: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
6874   eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
6875 else
6876   echo "$as_me: failed program was:" >&5
6877   cat conftest.$ac_ext >&5
6878 fi
6879 rm -f conftest$ac_exeext conftest.$ac_ext
6880         done
6881         eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
6882         LIBS="$ac_save_LIBS"
6883 fi
6884
6885 fi
6886
6887 eval "ac_res=\$ac_cv_funclib_hstrerror"
6888
6889 if false; then
6890
6891 for ac_func in hstrerror
6892 do
6893 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6894 echo "$as_me:6894: checking for $ac_func" >&5
6895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6896 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6897   echo $ECHO_N "(cached) $ECHO_C" >&6
6898 else
6899   cat >conftest.$ac_ext <<_ACEOF
6900 #line 6900 "configure"
6901 #include "confdefs.h"
6902 /* System header to define __stub macros and hopefully few prototypes,
6903     which can conflict with char $ac_func (); below.  */
6904 #include <assert.h>
6905 /* Override any gcc2 internal prototype to avoid an error.  */
6906 #ifdef __cplusplus
6907 extern "C"
6908 #endif
6909 /* We use char because int might match the return type of a gcc2
6910    builtin and then its argument prototype would still apply.  */
6911 char $ac_func ();
6912 char (*f) ();
6913
6914 int
6915 main ()
6916 {
6917 /* The GNU C library defines this for functions which it implements
6918     to always fail with ENOSYS.  Some functions are actually named
6919     something starting with __ and the normal name is an alias.  */
6920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6921 choke me
6922 #else
6923 f = $ac_func;
6924 #endif
6925
6926   ;
6927   return 0;
6928 }
6929 _ACEOF
6930 rm -f conftest.$ac_objext conftest$ac_exeext
6931 if { (eval echo $as_me:6931: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
6932   eval "$ac_ac_var=yes"
6933 else
6934   echo "$as_me: failed program was:" >&5
6935   cat conftest.$ac_ext >&5
6936   eval "$ac_ac_var=no"
6937 fi
6938 rm -f conftest$ac_exeext conftest.$ac_ext
6939 fi
6940 echo "$as_me:6940: result: `eval echo '${'$ac_ac_var'}'`" >&5
6941 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
6942 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6943   cat >>confdefs.h <<EOF
6944 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6945 EOF
6946
6947 fi
6948 done
6949
6950 fi
6951 # hstrerror
6952 eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6953 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6954 eval "LIB_hstrerror=$ac_res"
6955
6956 case "$ac_res" in
6957         yes)
6958         eval "ac_cv_func_hstrerror=yes"
6959         eval "LIB_hstrerror="
6960         cat >>confdefs.h <<EOF
6961 #define $ac_tr_func 1
6962 EOF
6963
6964         echo "$as_me:6964: result: yes" >&5
6965 echo "${ECHO_T}yes" >&6
6966         ;;
6967         no)
6968         eval "ac_cv_func_hstrerror=no"
6969         eval "LIB_hstrerror="
6970         echo "$as_me:6970: result: no" >&5
6971 echo "${ECHO_T}no" >&6
6972         ;;
6973         *)
6974         eval "ac_cv_func_hstrerror=yes"
6975         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
6976         cat >>confdefs.h <<EOF
6977 #define $ac_tr_func 1
6978 EOF
6979
6980         cat >>confdefs.h <<EOF
6981 #define $ac_tr_lib 1
6982 EOF
6983
6984         echo "$as_me:6984: result: yes, in $ac_res" >&5
6985 echo "${ECHO_T}yes, in $ac_res" >&6
6986         ;;
6987 esac
6988
6989 if test -n "$LIB_hstrerror"; then
6990         LIBS="$LIB_hstrerror $LIBS"
6991 fi
6992
6993 if eval "test \"$ac_cv_func_hstrerror\" != yes"; then
6994 LIBOBJS="$LIBOBJS hstrerror.o"
6995 fi
6996
6997 if test "$ac_cv_func_hstrerror" = yes; then
6998
6999 if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then
7000 echo "$as_me:7000: checking if hstrerror needs a prototype" >&5
7001 echo $ECHO_N "checking if hstrerror needs a prototype... $ECHO_C" >&6
7002 if test "${ac_cv_func_hstrerror_noproto+set}" = set; then
7003   echo $ECHO_N "(cached) $ECHO_C" >&6
7004 else
7005   cat >conftest.$ac_ext <<_ACEOF
7006 #line 7006 "configure"
7007 #include "confdefs.h"
7008
7009 #ifdef HAVE_NETDB_H
7010 #include <netdb.h>
7011 #endif
7012 int
7013 main ()
7014 {
7015 struct foo { int foo; } xx;
7016 extern int hstrerror (struct foo*);
7017 hstrerror(&xx);
7018
7019   ;
7020   return 0;
7021 }
7022 _ACEOF
7023 rm -f conftest.$ac_objext
7024 if { (eval echo $as_me:7024: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
7025   eval "ac_cv_func_hstrerror_noproto=yes"
7026 else
7027   echo "$as_me: failed program was:" >&5
7028   cat conftest.$ac_ext >&5
7029   eval "ac_cv_func_hstrerror_noproto=no"
7030 fi
7031 rm -f conftest.$ac_objext conftest.$ac_ext
7032 fi
7033 echo "$as_me:7033: result: $ac_cv_func_hstrerror_noproto" >&5
7034 echo "${ECHO_T}$ac_cv_func_hstrerror_noproto" >&6
7035
7036 if test "$ac_cv_func_hstrerror_noproto" = yes; then
7037
7038 cat >>confdefs.h <<\EOF
7039 #define NEED_HSTRERROR_PROTO 1
7040 EOF
7041
7042 fi
7043
7044 fi
7045
7046 fi
7047
7048 if test "$ac_cv_func_asprintf" = yes; then
7049
7050 if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then
7051 echo "$as_me:7051: checking if asprintf needs a prototype" >&5
7052 echo $ECHO_N "checking if asprintf needs a prototype... $ECHO_C" >&6
7053 if test "${ac_cv_func_asprintf_noproto+set}" = set; then
7054   echo $ECHO_N "(cached) $ECHO_C" >&6
7055 else
7056   cat >conftest.$ac_ext <<_ACEOF
7057 #line 7057 "configure"
7058 #include "confdefs.h"
7059
7060 #include <stdio.h>
7061 #include <string.h>
7062 int
7063 main ()
7064 {
7065 struct foo { int foo; } xx;
7066 extern int asprintf (struct foo*);
7067 asprintf(&xx);
7068
7069   ;
7070   return 0;
7071 }
7072 _ACEOF
7073 rm -f conftest.$ac_objext
7074 if { (eval echo $as_me:7074: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
7075   eval "ac_cv_func_asprintf_noproto=yes"
7076 else
7077   echo "$as_me: failed program was:" >&5
7078   cat conftest.$ac_ext >&5
7079   eval "ac_cv_func_asprintf_noproto=no"
7080 fi
7081 rm -f conftest.$ac_objext conftest.$ac_ext
7082 fi
7083 echo "$as_me:7083: result: $ac_cv_func_asprintf_noproto" >&5
7084 echo "${ECHO_T}$ac_cv_func_asprintf_noproto" >&6
7085
7086 if test "$ac_cv_func_asprintf_noproto" = yes; then
7087
7088 cat >>confdefs.h <<\EOF
7089 #define NEED_ASPRINTF_PROTO 1
7090 EOF
7091
7092 fi
7093
7094 fi
7095 fi
7096 if test "$ac_cv_func_vasprintf" = yes; then
7097
7098 if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then
7099 echo "$as_me:7099: checking if vasprintf needs a prototype" >&5
7100 echo $ECHO_N "checking if vasprintf needs a prototype... $ECHO_C" >&6
7101 if test "${ac_cv_func_vasprintf_noproto+set}" = set; then
7102   echo $ECHO_N "(cached) $ECHO_C" >&6
7103 else
7104   cat >conftest.$ac_ext <<_ACEOF
7105 #line 7105 "configure"
7106 #include "confdefs.h"
7107
7108 #include <stdio.h>
7109 #include <string.h>
7110 int
7111 main ()
7112 {
7113 struct foo { int foo; } xx;
7114 extern int vasprintf (struct foo*);
7115 vasprintf(&xx);
7116
7117   ;
7118   return 0;
7119 }
7120 _ACEOF
7121 rm -f conftest.$ac_objext
7122 if { (eval echo $as_me:7122: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
7123   eval "ac_cv_func_vasprintf_noproto=yes"
7124 else
7125   echo "$as_me: failed program was:" >&5
7126   cat conftest.$ac_ext >&5
7127   eval "ac_cv_func_vasprintf_noproto=no"
7128 fi
7129 rm -f conftest.$ac_objext conftest.$ac_ext
7130 fi
7131 echo "$as_me:7131: result: $ac_cv_func_vasprintf_noproto" >&5
7132 echo "${ECHO_T}$ac_cv_func_vasprintf_noproto" >&6
7133
7134 if test "$ac_cv_func_vasprintf_noproto" = yes; then
7135
7136 cat >>confdefs.h <<\EOF
7137 #define NEED_VASPRINTF_PROTO 1
7138 EOF
7139
7140 fi
7141
7142 fi
7143 fi
7144 if test "$ac_cv_func_asnprintf" = yes; then
7145
7146 if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then
7147 echo "$as_me:7147: checking if asnprintf needs a prototype" >&5
7148 echo $ECHO_N "checking if asnprintf needs a prototype... $ECHO_C" >&6
7149 if test "${ac_cv_func_asnprintf_noproto+set}" = set; then
7150   echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152   cat >conftest.$ac_ext <<_ACEOF
7153 #line 7153 "configure"
7154 #include "confdefs.h"
7155
7156 #include <stdio.h>
7157 #include <string.h>
7158 int
7159 main ()
7160 {
7161 struct foo { int foo; } xx;
7162 extern int asnprintf (struct foo*);
7163 asnprintf(&xx);
7164
7165   ;
7166   return 0;
7167 }
7168 _ACEOF
7169 rm -f conftest.$ac_objext
7170 if { (eval echo $as_me:7170: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
7171   eval "ac_cv_func_asnprintf_noproto=yes"
7172 else
7173   echo "$as_me: failed program was:" >&5
7174   cat conftest.$ac_ext >&5
7175   eval "ac_cv_func_asnprintf_noproto=no"
7176 fi
7177 rm -f conftest.$ac_objext conftest.$ac_ext
7178 fi
7179 echo "$as_me:7179: result: $ac_cv_func_asnprintf_noproto" >&5
7180 echo "${ECHO_T}$ac_cv_func_asnprintf_noproto" >&6
7181
7182 if test "$ac_cv_func_asnprintf_noproto" = yes; then
7183
7184 cat >>confdefs.h <<\EOF
7185 #define NEED_ASNPRINTF_PROTO 1
7186 EOF
7187
7188 fi
7189
7190 fi
7191 fi
7192 if test "$ac_cv_func_vasnprintf" = yes; then
7193
7194 if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then
7195 echo "$as_me:7195: checking if vasnprintf needs a prototype" >&5
7196 echo $ECHO_N "checking if vasnprintf needs a prototype... $ECHO_C" >&6
7197 if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then
7198   echo $ECHO_N "(cached) $ECHO_C" >&6
7199 else
7200   cat >conftest.$ac_ext <<_ACEOF
7201 #line 7201 "configure"
7202 #include "confdefs.h"
7203
7204 #include <stdio.h>
7205 #include <string.h>
7206 int
7207 main ()
7208 {
7209 struct foo { int foo; } xx;
7210 extern int vasnprintf (struct foo*);
7211 vasnprintf(&xx);
7212
7213   ;
7214   return 0;
7215 }
7216 _ACEOF
7217 rm -f conftest.$ac_objext
7218 if { (eval echo $as_me:7218: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
7219   eval "ac_cv_func_vasnprintf_noproto=yes"
7220 else
7221   echo "$as_me: failed program was:" >&5
7222   cat conftest.$ac_ext >&5
7223   eval "ac_cv_func_vasnprintf_noproto=no"
7224 fi
7225 rm -f conftest.$ac_objext conftest.$ac_ext
7226 fi
7227 echo "$as_me:7227: result: $ac_cv_func_vasnprintf_noproto" >&5
7228 echo "${ECHO_T}$ac_cv_func_vasnprintf_noproto" >&6
7229
7230 if test "$ac_cv_func_vasnprintf_noproto" = yes; then
7231
7232 cat >>confdefs.h <<\EOF
7233 #define NEED_VASNPRINTF_PROTO 1
7234 EOF
7235
7236 fi
7237
7238 fi
7239 fi
7240
7241 echo "$as_me:7241: checking for bswap16" >&5
7242 echo $ECHO_N "checking for bswap16... $ECHO_C" >&6
7243 if test "${ac_cv_funclib_bswap16+set}" = set; then
7244   echo $ECHO_N "(cached) $ECHO_C" >&6
7245 else
7246
7247 if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then
7248         ac_save_LIBS="$LIBS"
7249         for ac_lib in "" ; do
7250                 if test -n "$ac_lib"; then
7251                         ac_lib="-l$ac_lib"
7252                 else
7253                         ac_lib=""
7254                 fi
7255                 LIBS=" $ac_lib  $ac_save_LIBS"
7256                 cat >conftest.$ac_ext <<_ACEOF
7257 #line 7257 "configure"
7258 #include "confdefs.h"
7259 #ifdef HAVE_SYS_BSWAP_H
7260 #include <sys/bswap.h>
7261 #endif
7262 int
7263 main ()
7264 {
7265 bswap16(0)
7266   ;
7267   return 0;
7268 }
7269 _ACEOF
7270 rm -f conftest.$ac_objext conftest$ac_exeext
7271 if { (eval echo $as_me:7271: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
7272   eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break
7273 else
7274   echo "$as_me: failed program was:" >&5
7275   cat conftest.$ac_ext >&5
7276 fi
7277 rm -f conftest$ac_exeext conftest.$ac_ext
7278         done
7279         eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}"
7280         LIBS="$ac_save_LIBS"
7281 fi
7282
7283 fi
7284
7285 eval "ac_res=\$ac_cv_funclib_bswap16"
7286
7287 if false; then
7288
7289 for ac_func in bswap16
7290 do
7291 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
7292 echo "$as_me:7292: checking for $ac_func" >&5
7293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7294 if eval "test \"\${$ac_ac_var+set}\" = set"; then
7295   echo $ECHO_N "(cached) $ECHO_C" >&6
7296 else
7297   cat >conftest.$ac_ext <<_ACEOF
7298 #line 7298 "configure"
7299 #include "confdefs.h"
7300 /* System header to define __stub macros and hopefully few prototypes,
7301     which can conflict with char $ac_func (); below.  */
7302 #include <assert.h>
7303 /* Override any gcc2 internal prototype to avoid an error.  */
7304 #ifdef __cplusplus
7305 extern "C"
7306 #endif
7307 /* We use char because int might match the return type of a gcc2
7308    builtin and then its argument prototype would still apply.  */
7309 char $ac_func ();
7310 char (*f) ();
7311
7312 int
7313 main ()
7314 {
7315 /* The GNU C library defines this for functions which it implements
7316     to always fail with ENOSYS.  Some functions are actually named
7317     something starting with __ and the normal name is an alias.  */
7318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7319 choke me
7320 #else
7321 f = $ac_func;
7322 #endif
7323
7324   ;
7325   return 0;
7326 }
7327 _ACEOF
7328 rm -f conftest.$ac_objext conftest$ac_exeext
7329 if { (eval echo $as_me:7329: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
7330   eval "$ac_ac_var=yes"
7331 else
7332   echo "$as_me: failed program was:" >&5
7333   cat conftest.$ac_ext >&5
7334   eval "$ac_ac_var=no"
7335 fi
7336 rm -f conftest$ac_exeext conftest.$ac_ext
7337 fi
7338 echo "$as_me:7338: result: `eval echo '${'$ac_ac_var'}'`" >&5
7339 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
7340 if test `eval echo '${'$ac_ac_var'}'` = yes; then
7341   cat >>confdefs.h <<EOF
7342 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
7343 EOF
7344
7345 fi
7346 done
7347
7348 fi
7349 # bswap16
7350 eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
7351 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
7352 eval "LIB_bswap16=$ac_res"
7353
7354 case "$ac_res" in
7355         yes)
7356         eval "ac_cv_func_bswap16=yes"
7357         eval "LIB_bswap16="
7358         cat >>confdefs.h <<EOF
7359 #define $ac_tr_func 1
7360 EOF
7361
7362         echo "$as_me:7362: result: yes" >&5
7363 echo "${ECHO_T}yes" >&6
7364         ;;
7365         no)
7366         eval "ac_cv_func_bswap16=no"
7367         eval "LIB_bswap16="
7368         echo "$as_me:7368: result: no" >&5
7369 echo "${ECHO_T}no" >&6
7370         ;;
7371         *)
7372         eval "ac_cv_func_bswap16=yes"
7373         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
7374         cat >>confdefs.h <<EOF
7375 #define $ac_tr_func 1
7376 EOF
7377
7378         cat >>confdefs.h <<EOF
7379 #define $ac_tr_lib 1
7380 EOF
7381
7382         echo "$as_me:7382: result: yes, in $ac_res" >&5
7383 echo "${ECHO_T}yes, in $ac_res" >&6
7384         ;;
7385 esac
7386
7387 echo "$as_me:7387: checking for bswap32" >&5
7388 echo $ECHO_N "checking for bswap32... $ECHO_C" >&6
7389 if test "${ac_cv_funclib_bswap32+set}" = set; then
7390   echo $ECHO_N "(cached) $ECHO_C" >&6
7391 else
7392
7393 if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then
7394         ac_save_LIBS="$LIBS"
7395         for ac_lib in "" ; do
7396                 if test -n "$ac_lib"; then
7397                         ac_lib="-l$ac_lib"
7398                 else
7399                         ac_lib=""
7400                 fi
7401                 LIBS=" $ac_lib  $ac_save_LIBS"
7402                 cat >conftest.$ac_ext <<_ACEOF
7403 #line 7403 "configure"
7404 #include "confdefs.h"
7405 #ifdef HAVE_SYS_BSWAP_H
7406 #include <sys/bswap.h>
7407 #endif
7408 int
7409 main ()
7410 {
7411 bswap32(0)
7412   ;
7413   return 0;
7414 }
7415 _ACEOF
7416 rm -f conftest.$ac_objext conftest$ac_exeext
7417 if { (eval echo $as_me:7417: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
7418   eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break
7419 else
7420   echo "$as_me: failed program was:" >&5
7421   cat conftest.$ac_ext >&5
7422 fi
7423 rm -f conftest$ac_exeext conftest.$ac_ext
7424         done
7425         eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}"
7426         LIBS="$ac_save_LIBS"
7427 fi
7428
7429 fi
7430
7431 eval "ac_res=\$ac_cv_funclib_bswap32"
7432
7433 if false; then
7434
7435 for ac_func in bswap32
7436 do
7437 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
7438 echo "$as_me:7438: checking for $ac_func" >&5
7439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7440 if eval "test \"\${$ac_ac_var+set}\" = set"; then
7441   echo $ECHO_N "(cached) $ECHO_C" >&6
7442 else
7443   cat >conftest.$ac_ext <<_ACEOF
7444 #line 7444 "configure"
7445 #include "confdefs.h"
7446 /* System header to define __stub macros and hopefully few prototypes,
7447     which can conflict with char $ac_func (); below.  */
7448 #include <assert.h>
7449 /* Override any gcc2 internal prototype to avoid an error.  */
7450 #ifdef __cplusplus
7451 extern "C"
7452 #endif
7453 /* We use char because int might match the return type of a gcc2
7454    builtin and then its argument prototype would still apply.  */
7455 char $ac_func ();
7456 char (*f) ();
7457
7458 int
7459 main ()
7460 {
7461 /* The GNU C library defines this for functions which it implements
7462     to always fail with ENOSYS.  Some functions are actually named
7463     something starting with __ and the normal name is an alias.  */
7464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7465 choke me
7466 #else
7467 f = $ac_func;
7468 #endif
7469
7470   ;
7471   return 0;
7472 }
7473 _ACEOF
7474 rm -f conftest.$ac_objext conftest$ac_exeext
7475 if { (eval echo $as_me:7475: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
7476   eval "$ac_ac_var=yes"
7477 else
7478   echo "$as_me: failed program was:" >&5
7479   cat conftest.$ac_ext >&5
7480   eval "$ac_ac_var=no"
7481 fi
7482 rm -f conftest$ac_exeext conftest.$ac_ext
7483 fi
7484 echo "$as_me:7484: result: `eval echo '${'$ac_ac_var'}'`" >&5
7485 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
7486 if test `eval echo '${'$ac_ac_var'}'` = yes; then
7487   cat >>confdefs.h <<EOF
7488 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
7489 EOF
7490
7491 fi
7492 done
7493
7494 fi
7495 # bswap32
7496 eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
7497 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
7498 eval "LIB_bswap32=$ac_res"
7499
7500 case "$ac_res" in
7501         yes)
7502         eval "ac_cv_func_bswap32=yes"
7503         eval "LIB_bswap32="
7504         cat >>confdefs.h <<EOF
7505 #define $ac_tr_func 1
7506 EOF
7507
7508         echo "$as_me:7508: result: yes" >&5
7509 echo "${ECHO_T}yes" >&6
7510         ;;
7511         no)
7512         eval "ac_cv_func_bswap32=no"
7513         eval "LIB_bswap32="
7514         echo "$as_me:7514: result: no" >&5
7515 echo "${ECHO_T}no" >&6
7516         ;;
7517         *)
7518         eval "ac_cv_func_bswap32=yes"
7519         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
7520         cat >>confdefs.h <<EOF
7521 #define $ac_tr_func 1
7522 EOF
7523
7524         cat >>confdefs.h <<EOF
7525 #define $ac_tr_lib 1
7526 EOF
7527
7528         echo "$as_me:7528: result: yes, in $ac_res" >&5
7529 echo "${ECHO_T}yes, in $ac_res" >&6
7530         ;;
7531 esac
7532
7533 echo "$as_me:7533: checking for pidfile" >&5
7534 echo $ECHO_N "checking for pidfile... $ECHO_C" >&6
7535 if test "${ac_cv_funclib_pidfile+set}" = set; then
7536   echo $ECHO_N "(cached) $ECHO_C" >&6
7537 else
7538
7539 if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then
7540         ac_save_LIBS="$LIBS"
7541         for ac_lib in "" util; do
7542                 if test -n "$ac_lib"; then
7543                         ac_lib="-l$ac_lib"
7544                 else
7545                         ac_lib=""
7546                 fi
7547                 LIBS=" $ac_lib  $ac_save_LIBS"
7548                 cat >conftest.$ac_ext <<_ACEOF
7549 #line 7549 "configure"
7550 #include "confdefs.h"
7551 #ifdef HAVE_UTIL_H
7552 #include <util.h>
7553 #endif
7554 int
7555 main ()
7556 {
7557 pidfile(0)
7558   ;
7559   return 0;
7560 }
7561 _ACEOF
7562 rm -f conftest.$ac_objext conftest$ac_exeext
7563 if { (eval echo $as_me:7563: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
7564   eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break
7565 else
7566   echo "$as_me: failed program was:" >&5
7567   cat conftest.$ac_ext >&5
7568 fi
7569 rm -f conftest$ac_exeext conftest.$ac_ext
7570         done
7571         eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}"
7572         LIBS="$ac_save_LIBS"
7573 fi
7574
7575 fi
7576
7577 eval "ac_res=\$ac_cv_funclib_pidfile"
7578
7579 if false; then
7580
7581 for ac_func in pidfile
7582 do
7583 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
7584 echo "$as_me:7584: checking for $ac_func" >&5
7585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7586 if eval "test \"\${$ac_ac_var+set}\" = set"; then
7587   echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589   cat >conftest.$ac_ext <<_ACEOF
7590 #line 7590 "configure"
7591 #include "confdefs.h"
7592 /* System header to define __stub macros and hopefully few prototypes,
7593     which can conflict with char $ac_func (); below.  */
7594 #include <assert.h>
7595 /* Override any gcc2 internal prototype to avoid an error.  */
7596 #ifdef __cplusplus
7597 extern "C"
7598 #endif
7599 /* We use char because int might match the return type of a gcc2
7600    builtin and then its argument prototype would still apply.  */
7601 char $ac_func ();
7602 char (*f) ();
7603
7604 int
7605 main ()
7606 {
7607 /* The GNU C library defines this for functions which it implements
7608     to always fail with ENOSYS.  Some functions are actually named
7609     something starting with __ and the normal name is an alias.  */
7610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7611 choke me
7612 #else
7613 f = $ac_func;
7614 #endif
7615
7616   ;
7617   return 0;
7618 }
7619 _ACEOF
7620 rm -f conftest.$ac_objext conftest$ac_exeext
7621 if { (eval echo $as_me:7621: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
7622   eval "$ac_ac_var=yes"
7623 else
7624   echo "$as_me: failed program was:" >&5
7625   cat conftest.$ac_ext >&5
7626   eval "$ac_ac_var=no"
7627 fi
7628 rm -f conftest$ac_exeext conftest.$ac_ext
7629 fi
7630 echo "$as_me:7630: result: `eval echo '${'$ac_ac_var'}'`" >&5
7631 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
7632 if test `eval echo '${'$ac_ac_var'}'` = yes; then
7633   cat >>confdefs.h <<EOF
7634 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
7635 EOF
7636
7637 fi
7638 done
7639
7640 fi
7641 # pidfile
7642 eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
7643 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
7644 eval "LIB_pidfile=$ac_res"
7645
7646 case "$ac_res" in
7647         yes)
7648         eval "ac_cv_func_pidfile=yes"
7649         eval "LIB_pidfile="
7650         cat >>confdefs.h <<EOF
7651 #define $ac_tr_func 1
7652 EOF
7653
7654         echo "$as_me:7654: result: yes" >&5
7655 echo "${ECHO_T}yes" >&6
7656         ;;
7657         no)
7658         eval "ac_cv_func_pidfile=no"
7659         eval "LIB_pidfile="
7660         echo "$as_me:7660: result: no" >&5
7661 echo "${ECHO_T}no" >&6
7662         ;;
7663         *)
7664         eval "ac_cv_func_pidfile=yes"
7665         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
7666         cat >>confdefs.h <<EOF
7667 #define $ac_tr_func 1
7668 EOF
7669
7670         cat >>confdefs.h <<EOF
7671 #define $ac_tr_lib 1
7672 EOF
7673
7674         echo "$as_me:7674: result: yes, in $ac_res" >&5
7675 echo "${ECHO_T}yes, in $ac_res" >&6
7676         ;;
7677 esac
7678
7679 for ac_func in                                  \
7680         chown                                   \
7681         copyhostent                             \
7682         daemon                                  \
7683         err                                     \
7684         errx                                    \
7685         fchown                                  \
7686         flock                                   \
7687         fnmatch                                 \
7688         freeaddrinfo                            \
7689         freehostent                             \
7690         gai_strerror                            \
7691         getaddrinfo                             \
7692         getcwd                                  \
7693         getdtablesize                           \
7694         getegid                                 \
7695         geteuid                                 \
7696         getgid                                  \
7697         gethostname                             \
7698         getifaddrs                              \
7699         getipnodebyaddr                         \
7700         getipnodebyname                         \
7701         getnameinfo                             \
7702         getopt                                  \
7703         gettimeofday                            \
7704         getuid                                  \
7705         getusershell                            \
7706         initgroups                              \
7707         innetgr                                 \
7708         iruserok                                \
7709         lstat                                   \
7710         memmove                                 \
7711         mkstemp                                 \
7712         putenv                                  \
7713         rcmd                                    \
7714         readv                                   \
7715         recvmsg                                 \
7716         sendmsg                                 \
7717         setegid                                 \
7718         setenv                                  \
7719         seteuid                                 \
7720         strcasecmp                              \
7721         strdup                                  \
7722         strerror                                \
7723         strftime                                \
7724         strlcat                                 \
7725         strlcpy                                 \
7726         strlwr                                  \
7727         strncasecmp                             \
7728         strndup                                 \
7729         strnlen                                 \
7730         strptime                                \
7731         strsep                                  \
7732         strsep_copy                             \
7733         strtok_r                                \
7734         strupr                                  \
7735         swab                                    \
7736         unsetenv                                \
7737         verr                                    \
7738         verrx                                   \
7739         vsyslog                                 \
7740         vwarn                                   \
7741         vwarnx                                  \
7742         warn                                    \
7743         warnx                                   \
7744         writev                                  \
7745
7746 do
7747 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
7748 echo "$as_me:7748: checking for $ac_func" >&5
7749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7750 if eval "test \"\${$ac_ac_var+set}\" = set"; then
7751   echo $ECHO_N "(cached) $ECHO_C" >&6
7752 else
7753   cat >conftest.$ac_ext <<_ACEOF
7754 #line 7754 "configure"
7755 #include "confdefs.h"
7756 /* System header to define __stub macros and hopefully few prototypes,
7757     which can conflict with char $ac_func (); below.  */
7758 #include <assert.h>
7759 /* Override any gcc2 internal prototype to avoid an error.  */
7760 #ifdef __cplusplus
7761 extern "C"
7762 #endif
7763 /* We use char because int might match the return type of a gcc2
7764    builtin and then its argument prototype would still apply.  */
7765 char $ac_func ();
7766 char (*f) ();
7767
7768 int
7769 main ()
7770 {
7771 /* The GNU C library defines this for functions which it implements
7772     to always fail with ENOSYS.  Some functions are actually named
7773     something starting with __ and the normal name is an alias.  */
7774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7775 choke me
7776 #else
7777 f = $ac_func;
7778 #endif
7779
7780   ;
7781   return 0;
7782 }
7783 _ACEOF
7784 rm -f conftest.$ac_objext conftest$ac_exeext
7785 if { (eval echo $as_me:7785: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
7786   eval "$ac_ac_var=yes"
7787 else
7788   echo "$as_me: failed program was:" >&5
7789   cat conftest.$ac_ext >&5
7790   eval "$ac_ac_var=no"
7791 fi
7792 rm -f conftest$ac_exeext conftest.$ac_ext
7793 fi
7794 echo "$as_me:7794: result: `eval echo '${'$ac_ac_var'}'`" >&5
7795 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
7796 if test `eval echo '${'$ac_ac_var'}'` = yes; then
7797
7798 ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
7799 cat >>confdefs.h <<EOF
7800 #define $ac_tr_func 1
7801 EOF
7802
7803 else
7804   LIBOBJS="$LIBOBJS ${ac_func}.o"
7805 fi
7806
7807 if false; then
7808
7809 for ac_func in \
7810         chown                                   \
7811         copyhostent                             \
7812         daemon                                  \
7813         err                                     \
7814         errx                                    \
7815         fchown                                  \
7816         flock                                   \
7817         fnmatch                                 \
7818         freeaddrinfo                            \
7819         freehostent                             \
7820         gai_strerror                            \
7821         getaddrinfo                             \
7822         getcwd                                  \
7823         getdtablesize                           \
7824         getegid                                 \
7825         geteuid                                 \
7826         getgid                                  \
7827         gethostname                             \
7828         getifaddrs                              \
7829         getipnodebyaddr                         \
7830         getipnodebyname                         \
7831         getnameinfo                             \
7832         getopt                                  \
7833         gettimeofday                            \
7834         getuid                                  \
7835         getusershell                            \
7836         initgroups                              \
7837         innetgr                                 \
7838         iruserok                                \
7839         lstat                                   \
7840         memmove                                 \
7841         mkstemp                                 \
7842         putenv                                  \
7843         rcmd                                    \
7844         readv                                   \
7845         recvmsg                                 \
7846         sendmsg                                 \
7847         setegid                                 \
7848         setenv                                  \
7849         seteuid                                 \
7850         strcasecmp                              \
7851         strdup                                  \
7852         strerror                                \
7853         strftime                                \
7854         strlcat                                 \
7855         strlcpy                                 \
7856         strlwr                                  \
7857         strncasecmp                             \
7858         strndup                                 \
7859         strnlen                                 \
7860         strptime                                \
7861         strsep                                  \
7862         strsep_copy                             \
7863         strtok_r                                \
7864         strupr                                  \
7865         swab                                    \
7866         unsetenv                                \
7867         verr                                    \
7868         verrx                                   \
7869         vsyslog                                 \
7870         vwarn                                   \
7871         vwarnx                                  \
7872         warn                                    \
7873         warnx                                   \
7874         writev                                  \
7875
7876 do
7877 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
7878 echo "$as_me:7878: checking for $ac_func" >&5
7879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7880 if eval "test \"\${$ac_ac_var+set}\" = set"; then
7881   echo $ECHO_N "(cached) $ECHO_C" >&6
7882 else
7883   cat >conftest.$ac_ext <<_ACEOF
7884 #line 7884 "configure"
7885 #include "confdefs.h"
7886 /* System header to define __stub macros and hopefully few prototypes,
7887     which can conflict with char $ac_func (); below.  */
7888 #include <assert.h>
7889 /* Override any gcc2 internal prototype to avoid an error.  */
7890 #ifdef __cplusplus
7891 extern "C"
7892 #endif
7893 /* We use char because int might match the return type of a gcc2
7894    builtin and then its argument prototype would still apply.  */
7895 char $ac_func ();
7896 char (*f) ();
7897
7898 int
7899 main ()
7900 {
7901 /* The GNU C library defines this for functions which it implements
7902     to always fail with ENOSYS.  Some functions are actually named
7903     something starting with __ and the normal name is an alias.  */
7904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7905 choke me
7906 #else
7907 f = $ac_func;
7908 #endif
7909
7910   ;
7911   return 0;
7912 }
7913 _ACEOF
7914 rm -f conftest.$ac_objext conftest$ac_exeext
7915 if { (eval echo $as_me:7915: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
7916   eval "$ac_ac_var=yes"
7917 else
7918   echo "$as_me: failed program was:" >&5
7919   cat conftest.$ac_ext >&5
7920   eval "$ac_ac_var=no"
7921 fi
7922 rm -f conftest$ac_exeext conftest.$ac_ext
7923 fi
7924 echo "$as_me:7924: result: `eval echo '${'$ac_ac_var'}'`" >&5
7925 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
7926 if test `eval echo '${'$ac_ac_var'}'` = yes; then
7927   cat >>confdefs.h <<EOF
7928 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
7929 EOF
7930
7931 fi
7932 done
7933
7934 fi
7935 done
7936
7937 for ac_func in inet_aton
7938 do
7939 echo "$as_me:7939: checking for $ac_func" >&5
7940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7941 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7942   echo $ECHO_N "(cached) $ECHO_C" >&6
7943 else
7944   cat >conftest.$ac_ext <<_ACEOF
7945 #line 7945 "configure"
7946 #include "confdefs.h"
7947 #ifdef HAVE_SYS_TYPES_H
7948 #include <sys/types.h>
7949 #endif
7950 #ifdef HAVE_SYS_SOCKET_H
7951 #include <sys/socket.h>
7952 #endif
7953 #ifdef HAVE_NETINET_IN_H
7954 #include <netinet/in.h>
7955 #endif
7956 #ifdef HAVE_ARPA_INET_H
7957 #include <arpa/inet.h>
7958 #endif
7959 int
7960 main ()
7961 {
7962
7963 /* The GNU C library defines this for functions which it implements
7964     to always fail with ENOSYS.  Some functions are actually named
7965     something starting with __ and the normal name is an alias.  */
7966 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
7967 choke me
7968 #else
7969 $ac_func(0,0)
7970 #endif
7971
7972   ;
7973   return 0;
7974 }
7975 _ACEOF
7976 rm -f conftest.$ac_objext conftest$ac_exeext
7977 if { (eval echo $as_me:7977: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
7978   eval "ac_cv_func_$ac_func=yes"
7979 else
7980   echo "$as_me: failed program was:" >&5
7981   cat conftest.$ac_ext >&5
7982   eval "ac_cv_func_$ac_func=no"
7983 fi
7984 rm -f conftest$ac_exeext conftest.$ac_ext
7985 fi
7986
7987 if eval "test \"\${ac_cv_func_$ac_func}\" = yes"; then
7988   ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
7989   cat >>confdefs.h <<EOF
7990 #define $ac_tr_func 1
7991 EOF
7992
7993   echo "$as_me:7993: result: yes" >&5
7994 echo "${ECHO_T}yes" >&6
7995 else
7996   echo "$as_me:7996: result: no" >&5
7997 echo "${ECHO_T}no" >&6
7998   LIBOBJS="$LIBOBJS ${ac_func}.o"
7999 fi
8000 done
8001 if false; then
8002
8003 for ac_func in inet_aton
8004 do
8005 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8006 echo "$as_me:8006: checking for $ac_func" >&5
8007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8008 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8009   echo $ECHO_N "(cached) $ECHO_C" >&6
8010 else
8011   cat >conftest.$ac_ext <<_ACEOF
8012 #line 8012 "configure"
8013 #include "confdefs.h"
8014 /* System header to define __stub macros and hopefully few prototypes,
8015     which can conflict with char $ac_func (); below.  */
8016 #include <assert.h>
8017 /* Override any gcc2 internal prototype to avoid an error.  */
8018 #ifdef __cplusplus
8019 extern "C"
8020 #endif
8021 /* We use char because int might match the return type of a gcc2
8022    builtin and then its argument prototype would still apply.  */
8023 char $ac_func ();
8024 char (*f) ();
8025
8026 int
8027 main ()
8028 {
8029 /* The GNU C library defines this for functions which it implements
8030     to always fail with ENOSYS.  Some functions are actually named
8031     something starting with __ and the normal name is an alias.  */
8032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8033 choke me
8034 #else
8035 f = $ac_func;
8036 #endif
8037
8038   ;
8039   return 0;
8040 }
8041 _ACEOF
8042 rm -f conftest.$ac_objext conftest$ac_exeext
8043 if { (eval echo $as_me:8043: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
8044   eval "$ac_ac_var=yes"
8045 else
8046   echo "$as_me: failed program was:" >&5
8047   cat conftest.$ac_ext >&5
8048   eval "$ac_ac_var=no"
8049 fi
8050 rm -f conftest$ac_exeext conftest.$ac_ext
8051 fi
8052 echo "$as_me:8052: result: `eval echo '${'$ac_ac_var'}'`" >&5
8053 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8054 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8055   cat >>confdefs.h <<EOF
8056 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8057 EOF
8058
8059 fi
8060 done
8061
8062 fi
8063
8064 for ac_func in inet_ntop
8065 do
8066 echo "$as_me:8066: checking for $ac_func" >&5
8067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8068 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8069   echo $ECHO_N "(cached) $ECHO_C" >&6
8070 else
8071   cat >conftest.$ac_ext <<_ACEOF
8072 #line 8072 "configure"
8073 #include "confdefs.h"
8074 #ifdef HAVE_SYS_TYPES_H
8075 #include <sys/types.h>
8076 #endif
8077 #ifdef HAVE_SYS_SOCKET_H
8078 #include <sys/socket.h>
8079 #endif
8080 #ifdef HAVE_NETINET_IN_H
8081 #include <netinet/in.h>
8082 #endif
8083 #ifdef HAVE_ARPA_INET_H
8084 #include <arpa/inet.h>
8085 #endif
8086 int
8087 main ()
8088 {
8089
8090 /* The GNU C library defines this for functions which it implements
8091     to always fail with ENOSYS.  Some functions are actually named
8092     something starting with __ and the normal name is an alias.  */
8093 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
8094 choke me
8095 #else
8096 $ac_func(0, 0, 0, 0)
8097 #endif
8098
8099   ;
8100   return 0;
8101 }
8102 _ACEOF
8103 rm -f conftest.$ac_objext conftest$ac_exeext
8104 if { (eval echo $as_me:8104: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
8105   eval "ac_cv_func_$ac_func=yes"
8106 else
8107   echo "$as_me: failed program was:" >&5
8108   cat conftest.$ac_ext >&5
8109   eval "ac_cv_func_$ac_func=no"
8110 fi
8111 rm -f conftest$ac_exeext conftest.$ac_ext
8112 fi
8113
8114 if eval "test \"\${ac_cv_func_$ac_func}\" = yes"; then
8115   ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
8116   cat >>confdefs.h <<EOF
8117 #define $ac_tr_func 1
8118 EOF
8119
8120   echo "$as_me:8120: result: yes" >&5
8121 echo "${ECHO_T}yes" >&6
8122 else
8123   echo "$as_me:8123: result: no" >&5
8124 echo "${ECHO_T}no" >&6
8125   LIBOBJS="$LIBOBJS ${ac_func}.o"
8126 fi
8127 done
8128 if false; then
8129
8130 for ac_func in inet_ntop
8131 do
8132 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8133 echo "$as_me:8133: checking for $ac_func" >&5
8134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8135 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8136   echo $ECHO_N "(cached) $ECHO_C" >&6
8137 else
8138   cat >conftest.$ac_ext <<_ACEOF
8139 #line 8139 "configure"
8140 #include "confdefs.h"
8141 /* System header to define __stub macros and hopefully few prototypes,
8142     which can conflict with char $ac_func (); below.  */
8143 #include <assert.h>
8144 /* Override any gcc2 internal prototype to avoid an error.  */
8145 #ifdef __cplusplus
8146 extern "C"
8147 #endif
8148 /* We use char because int might match the return type of a gcc2
8149    builtin and then its argument prototype would still apply.  */
8150 char $ac_func ();
8151 char (*f) ();
8152
8153 int
8154 main ()
8155 {
8156 /* The GNU C library defines this for functions which it implements
8157     to always fail with ENOSYS.  Some functions are actually named
8158     something starting with __ and the normal name is an alias.  */
8159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8160 choke me
8161 #else
8162 f = $ac_func;
8163 #endif
8164
8165   ;
8166   return 0;
8167 }
8168 _ACEOF
8169 rm -f conftest.$ac_objext conftest$ac_exeext
8170 if { (eval echo $as_me:8170: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
8171   eval "$ac_ac_var=yes"
8172 else
8173   echo "$as_me: failed program was:" >&5
8174   cat conftest.$ac_ext >&5
8175   eval "$ac_ac_var=no"
8176 fi
8177 rm -f conftest$ac_exeext conftest.$ac_ext
8178 fi
8179 echo "$as_me:8179: result: `eval echo '${'$ac_ac_var'}'`" >&5
8180 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8181 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8182   cat >>confdefs.h <<EOF
8183 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8184 EOF
8185
8186 fi
8187 done
8188
8189 fi
8190
8191 for ac_func in inet_pton
8192 do
8193 echo "$as_me:8193: checking for $ac_func" >&5
8194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8195 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8196   echo $ECHO_N "(cached) $ECHO_C" >&6
8197 else
8198   cat >conftest.$ac_ext <<_ACEOF
8199 #line 8199 "configure"
8200 #include "confdefs.h"
8201 #ifdef HAVE_SYS_TYPES_H
8202 #include <sys/types.h>
8203 #endif
8204 #ifdef HAVE_SYS_SOCKET_H
8205 #include <sys/socket.h>
8206 #endif
8207 #ifdef HAVE_NETINET_IN_H
8208 #include <netinet/in.h>
8209 #endif
8210 #ifdef HAVE_ARPA_INET_H
8211 #include <arpa/inet.h>
8212 #endif
8213 int
8214 main ()
8215 {
8216
8217 /* The GNU C library defines this for functions which it implements
8218     to always fail with ENOSYS.  Some functions are actually named
8219     something starting with __ and the normal name is an alias.  */
8220 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
8221 choke me
8222 #else
8223 $ac_func(0,0,0)
8224 #endif
8225
8226   ;
8227   return 0;
8228 }
8229 _ACEOF
8230 rm -f conftest.$ac_objext conftest$ac_exeext
8231 if { (eval echo $as_me:8231: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
8232   eval "ac_cv_func_$ac_func=yes"
8233 else
8234   echo "$as_me: failed program was:" >&5
8235   cat conftest.$ac_ext >&5
8236   eval "ac_cv_func_$ac_func=no"
8237 fi
8238 rm -f conftest$ac_exeext conftest.$ac_ext
8239 fi
8240
8241 if eval "test \"\${ac_cv_func_$ac_func}\" = yes"; then
8242   ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
8243   cat >>confdefs.h <<EOF
8244 #define $ac_tr_func 1
8245 EOF
8246
8247   echo "$as_me:8247: result: yes" >&5
8248 echo "${ECHO_T}yes" >&6
8249 else
8250   echo "$as_me:8250: result: no" >&5
8251 echo "${ECHO_T}no" >&6
8252   LIBOBJS="$LIBOBJS ${ac_func}.o"
8253 fi
8254 done
8255 if false; then
8256
8257 for ac_func in inet_pton
8258 do
8259 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8260 echo "$as_me:8260: checking for $ac_func" >&5
8261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8262 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8263   echo $ECHO_N "(cached) $ECHO_C" >&6
8264 else
8265   cat >conftest.$ac_ext <<_ACEOF
8266 #line 8266 "configure"
8267 #include "confdefs.h"
8268 /* System header to define __stub macros and hopefully few prototypes,
8269     which can conflict with char $ac_func (); below.  */
8270 #include <assert.h>
8271 /* Override any gcc2 internal prototype to avoid an error.  */
8272 #ifdef __cplusplus
8273 extern "C"
8274 #endif
8275 /* We use char because int might match the return type of a gcc2
8276    builtin and then its argument prototype would still apply.  */
8277 char $ac_func ();
8278 char (*f) ();
8279
8280 int
8281 main ()
8282 {
8283 /* The GNU C library defines this for functions which it implements
8284     to always fail with ENOSYS.  Some functions are actually named
8285     something starting with __ and the normal name is an alias.  */
8286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8287 choke me
8288 #else
8289 f = $ac_func;
8290 #endif
8291
8292   ;
8293   return 0;
8294 }
8295 _ACEOF
8296 rm -f conftest.$ac_objext conftest$ac_exeext
8297 if { (eval echo $as_me:8297: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
8298   eval "$ac_ac_var=yes"
8299 else
8300   echo "$as_me: failed program was:" >&5
8301   cat conftest.$ac_ext >&5
8302   eval "$ac_ac_var=no"
8303 fi
8304 rm -f conftest$ac_exeext conftest.$ac_ext
8305 fi
8306 echo "$as_me:8306: result: `eval echo '${'$ac_ac_var'}'`" >&5
8307 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8308 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8309   cat >>confdefs.h <<EOF
8310 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8311 EOF
8312
8313 fi
8314 done
8315
8316 fi
8317
8318 echo "$as_me:8318: checking for sa_len in struct sockaddr" >&5
8319 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
8320 if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then
8321   echo $ECHO_N "(cached) $ECHO_C" >&6
8322 else
8323
8324 cat >conftest.$ac_ext <<_ACEOF
8325 #line 8325 "configure"
8326 #include "confdefs.h"
8327 #include <sys/types.h>
8328 #include <sys/socket.h>
8329 int
8330 main ()
8331 {
8332 struct sockaddr x; x.sa_len;
8333   ;
8334   return 0;
8335 }
8336 _ACEOF
8337 rm -f conftest.$ac_objext
8338 if { (eval echo $as_me:8338: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
8339   ac_cv_type_struct_sockaddr_sa_len=yes
8340 else
8341   echo "$as_me: failed program was:" >&5
8342   cat conftest.$ac_ext >&5
8343   ac_cv_type_struct_sockaddr_sa_len=no
8344 fi
8345 rm -f conftest.$ac_objext conftest.$ac_ext
8346 fi
8347 echo "$as_me:8347: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
8348 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6
8349 if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
8350
8351 cat >>confdefs.h <<\EOF
8352 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
8353 EOF
8354
8355 fi
8356
8357 if test "$ac_cv_func_getnameinfo" = "yes"; then
8358
8359 echo "$as_me:8359: checking if getnameinfo is broken" >&5
8360 echo $ECHO_N "checking if getnameinfo is broken... $ECHO_C" >&6
8361 if test "${ac_cv_func_getnameinfo_broken+set}" = set; then
8362   echo $ECHO_N "(cached) $ECHO_C" >&6
8363 else
8364   if test "$cross_compiling" = yes; then
8365   {  echo "$as_me: error: cannot run test program while cross compiling" >&2
8366   { (exit 1); exit; }; }
8367 else
8368   cat >conftest.$ac_ext <<_ACEOF
8369 #line 8369 "configure"
8370 #include "confdefs.h"
8371 #include <stdio.h>
8372 #include <sys/types.h>
8373 #include <sys/socket.h>
8374 #include <netinet/in.h>
8375 #include <netdb.h>
8376
8377 int
8378 main(int argc, char **argv)
8379 {
8380   struct sockaddr_in sin;
8381   char host[256];
8382   memset(&sin, 0, sizeof(sin));
8383 #ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
8384   sin.sin_len = sizeof(sin);
8385 #endif
8386   sin.sin_family = AF_INET;
8387   sin.sin_addr.s_addr = 0xffffffff;
8388   sin.sin_port = 0;
8389   return getnameinfo((struct sockaddr*)&sin, sizeof(sin), host, sizeof(host),
8390               NULL, 0, 0);
8391 }
8392
8393 _ACEOF
8394 rm -f conftest$ac_exeext
8395 { (eval echo $as_me:8395: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
8396   (./conftest$ac_exeext) >&5 2>&1;
8397 ac_status=$?
8398 if test $ac_status = 0; then
8399   ac_cv_func_getnameinfo_broken=no
8400 else
8401   echo "$as_me: program exited with status $ac_status" >&5
8402 echo "$as_me: failed program was:" >&5
8403 cat conftest.$ac_ext >&5
8404 ac_cv_func_getnameinfo_broken=yes
8405 fi
8406
8407 rm -f conftest$ac_exeext conftest.$ac_ext
8408 fi
8409
8410 fi
8411 echo "$as_me:8411: result: $ac_cv_func_getnameinfo_broken" >&5
8412 echo "${ECHO_T}$ac_cv_func_getnameinfo_broken" >&6
8413   if test "$ac_cv_func_getnameinfo_broken" = yes; then
8414     LIBOBJS="$LIBOBJS getnameinfo.o"
8415   fi
8416 fi
8417
8418 if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then
8419 echo "$as_me:8419: checking if setenv needs a prototype" >&5
8420 echo $ECHO_N "checking if setenv needs a prototype... $ECHO_C" >&6
8421 if test "${ac_cv_func_setenv_noproto+set}" = set; then
8422   echo $ECHO_N "(cached) $ECHO_C" >&6
8423 else
8424   cat >conftest.$ac_ext <<_ACEOF
8425 #line 8425 "configure"
8426 #include "confdefs.h"
8427 #include <stdlib.h>
8428 int
8429 main ()
8430 {
8431 struct foo { int foo; } xx;
8432 extern int setenv (struct foo*);
8433 setenv(&xx);
8434
8435   ;
8436   return 0;
8437 }
8438 _ACEOF
8439 rm -f conftest.$ac_objext
8440 if { (eval echo $as_me:8440: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
8441   eval "ac_cv_func_setenv_noproto=yes"
8442 else
8443   echo "$as_me: failed program was:" >&5
8444   cat conftest.$ac_ext >&5
8445   eval "ac_cv_func_setenv_noproto=no"
8446 fi
8447 rm -f conftest.$ac_objext conftest.$ac_ext
8448 fi
8449 echo "$as_me:8449: result: $ac_cv_func_setenv_noproto" >&5
8450 echo "${ECHO_T}$ac_cv_func_setenv_noproto" >&6
8451
8452 if test "$ac_cv_func_setenv_noproto" = yes; then
8453
8454 cat >>confdefs.h <<\EOF
8455 #define NEED_SETENV_PROTO 1
8456 EOF
8457
8458 fi
8459
8460 fi
8461
8462 if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then
8463 echo "$as_me:8463: checking if unsetenv needs a prototype" >&5
8464 echo $ECHO_N "checking if unsetenv needs a prototype... $ECHO_C" >&6
8465 if test "${ac_cv_func_unsetenv_noproto+set}" = set; then
8466   echo $ECHO_N "(cached) $ECHO_C" >&6
8467 else
8468   cat >conftest.$ac_ext <<_ACEOF
8469 #line 8469 "configure"
8470 #include "confdefs.h"
8471 #include <stdlib.h>
8472 int
8473 main ()
8474 {
8475 struct foo { int foo; } xx;
8476 extern int unsetenv (struct foo*);
8477 unsetenv(&xx);
8478
8479   ;
8480   return 0;
8481 }
8482 _ACEOF
8483 rm -f conftest.$ac_objext
8484 if { (eval echo $as_me:8484: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
8485   eval "ac_cv_func_unsetenv_noproto=yes"
8486 else
8487   echo "$as_me: failed program was:" >&5
8488   cat conftest.$ac_ext >&5
8489   eval "ac_cv_func_unsetenv_noproto=no"
8490 fi
8491 rm -f conftest.$ac_objext conftest.$ac_ext
8492 fi
8493 echo "$as_me:8493: result: $ac_cv_func_unsetenv_noproto" >&5
8494 echo "${ECHO_T}$ac_cv_func_unsetenv_noproto" >&6
8495
8496 if test "$ac_cv_func_unsetenv_noproto" = yes; then
8497
8498 cat >>confdefs.h <<\EOF
8499 #define NEED_UNSETENV_PROTO 1
8500 EOF
8501
8502 fi
8503
8504 fi
8505
8506 if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then
8507 echo "$as_me:8507: checking if gethostname needs a prototype" >&5
8508 echo $ECHO_N "checking if gethostname needs a prototype... $ECHO_C" >&6
8509 if test "${ac_cv_func_gethostname_noproto+set}" = set; then
8510   echo $ECHO_N "(cached) $ECHO_C" >&6
8511 else
8512   cat >conftest.$ac_ext <<_ACEOF
8513 #line 8513 "configure"
8514 #include "confdefs.h"
8515 #include <unistd.h>
8516 int
8517 main ()
8518 {
8519 struct foo { int foo; } xx;
8520 extern int gethostname (struct foo*);
8521 gethostname(&xx);
8522
8523   ;
8524   return 0;
8525 }
8526 _ACEOF
8527 rm -f conftest.$ac_objext
8528 if { (eval echo $as_me:8528: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
8529   eval "ac_cv_func_gethostname_noproto=yes"
8530 else
8531   echo "$as_me: failed program was:" >&5
8532   cat conftest.$ac_ext >&5
8533   eval "ac_cv_func_gethostname_noproto=no"
8534 fi
8535 rm -f conftest.$ac_objext conftest.$ac_ext
8536 fi
8537 echo "$as_me:8537: result: $ac_cv_func_gethostname_noproto" >&5
8538 echo "${ECHO_T}$ac_cv_func_gethostname_noproto" >&6
8539
8540 if test "$ac_cv_func_gethostname_noproto" = yes; then
8541
8542 cat >>confdefs.h <<\EOF
8543 #define NEED_GETHOSTNAME_PROTO 1
8544 EOF
8545
8546 fi
8547
8548 fi
8549
8550 if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then
8551 echo "$as_me:8551: checking if mkstemp needs a prototype" >&5
8552 echo $ECHO_N "checking if mkstemp needs a prototype... $ECHO_C" >&6
8553 if test "${ac_cv_func_mkstemp_noproto+set}" = set; then
8554   echo $ECHO_N "(cached) $ECHO_C" >&6
8555 else
8556   cat >conftest.$ac_ext <<_ACEOF
8557 #line 8557 "configure"
8558 #include "confdefs.h"
8559 #include <unistd.h>
8560 int
8561 main ()
8562 {
8563 struct foo { int foo; } xx;
8564 extern int mkstemp (struct foo*);
8565 mkstemp(&xx);
8566
8567   ;
8568   return 0;
8569 }
8570 _ACEOF
8571 rm -f conftest.$ac_objext
8572 if { (eval echo $as_me:8572: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
8573   eval "ac_cv_func_mkstemp_noproto=yes"
8574 else
8575   echo "$as_me: failed program was:" >&5
8576   cat conftest.$ac_ext >&5
8577   eval "ac_cv_func_mkstemp_noproto=no"
8578 fi
8579 rm -f conftest.$ac_objext conftest.$ac_ext
8580 fi
8581 echo "$as_me:8581: result: $ac_cv_func_mkstemp_noproto" >&5
8582 echo "${ECHO_T}$ac_cv_func_mkstemp_noproto" >&6
8583
8584 if test "$ac_cv_func_mkstemp_noproto" = yes; then
8585
8586 cat >>confdefs.h <<\EOF
8587 #define NEED_MKSTEMP_PROTO 1
8588 EOF
8589
8590 fi
8591
8592 fi
8593
8594 if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then
8595 echo "$as_me:8595: checking if getusershell needs a prototype" >&5
8596 echo $ECHO_N "checking if getusershell needs a prototype... $ECHO_C" >&6
8597 if test "${ac_cv_func_getusershell_noproto+set}" = set; then
8598   echo $ECHO_N "(cached) $ECHO_C" >&6
8599 else
8600   cat >conftest.$ac_ext <<_ACEOF
8601 #line 8601 "configure"
8602 #include "confdefs.h"
8603 #include <unistd.h>
8604 int
8605 main ()
8606 {
8607 struct foo { int foo; } xx;
8608 extern int getusershell (struct foo*);
8609 getusershell(&xx);
8610
8611   ;
8612   return 0;
8613 }
8614 _ACEOF
8615 rm -f conftest.$ac_objext
8616 if { (eval echo $as_me:8616: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
8617   eval "ac_cv_func_getusershell_noproto=yes"
8618 else
8619   echo "$as_me: failed program was:" >&5
8620   cat conftest.$ac_ext >&5
8621   eval "ac_cv_func_getusershell_noproto=no"
8622 fi
8623 rm -f conftest.$ac_objext conftest.$ac_ext
8624 fi
8625 echo "$as_me:8625: result: $ac_cv_func_getusershell_noproto" >&5
8626 echo "${ECHO_T}$ac_cv_func_getusershell_noproto" >&6
8627
8628 if test "$ac_cv_func_getusershell_noproto" = yes; then
8629
8630 cat >>confdefs.h <<\EOF
8631 #define NEED_GETUSERSHELL_PROTO 1
8632 EOF
8633
8634 fi
8635
8636 fi
8637
8638 if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then
8639 echo "$as_me:8639: checking if inet_aton needs a prototype" >&5
8640 echo $ECHO_N "checking if inet_aton needs a prototype... $ECHO_C" >&6
8641 if test "${ac_cv_func_inet_aton_noproto+set}" = set; then
8642   echo $ECHO_N "(cached) $ECHO_C" >&6
8643 else
8644   cat >conftest.$ac_ext <<_ACEOF
8645 #line 8645 "configure"
8646 #include "confdefs.h"
8647
8648 #ifdef HAVE_SYS_TYPES_H
8649 #include <sys/types.h>
8650 #endif
8651 #ifdef HAVE_SYS_SOCKET_H
8652 #include <sys/socket.h>
8653 #endif
8654 #ifdef HAVE_NETINET_IN_H
8655 #include <netinet/in.h>
8656 #endif
8657 #ifdef HAVE_ARPA_INET_H
8658 #include <arpa/inet.h>
8659 #endif
8660 int
8661 main ()
8662 {
8663 struct foo { int foo; } xx;
8664 extern int inet_aton (struct foo*);
8665 inet_aton(&xx);
8666
8667   ;
8668   return 0;
8669 }
8670 _ACEOF
8671 rm -f conftest.$ac_objext
8672 if { (eval echo $as_me:8672: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
8673   eval "ac_cv_func_inet_aton_noproto=yes"
8674 else
8675   echo "$as_me: failed program was:" >&5
8676   cat conftest.$ac_ext >&5
8677   eval "ac_cv_func_inet_aton_noproto=no"
8678 fi
8679 rm -f conftest.$ac_objext conftest.$ac_ext
8680 fi
8681 echo "$as_me:8681: result: $ac_cv_func_inet_aton_noproto" >&5
8682 echo "${ECHO_T}$ac_cv_func_inet_aton_noproto" >&6
8683
8684 if test "$ac_cv_func_inet_aton_noproto" = yes; then
8685
8686 cat >>confdefs.h <<\EOF
8687 #define NEED_INET_ATON_PROTO 1
8688 EOF
8689
8690 fi
8691
8692 fi
8693
8694 echo "$as_me:8694: checking for crypt" >&5
8695 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8696 if test "${ac_cv_funclib_crypt+set}" = set; then
8697   echo $ECHO_N "(cached) $ECHO_C" >&6
8698 else
8699
8700 if eval "test \"\$ac_cv_func_crypt\" != yes" ; then
8701         ac_save_LIBS="$LIBS"
8702         for ac_lib in "" crypt; do
8703                 if test -n "$ac_lib"; then
8704                         ac_lib="-l$ac_lib"
8705                 else
8706                         ac_lib=""
8707                 fi
8708                 LIBS=" $ac_lib  $ac_save_LIBS"
8709                 cat >conftest.$ac_ext <<_ACEOF
8710 #line 8710 "configure"
8711 #include "confdefs.h"
8712
8713 int
8714 main ()
8715 {
8716 crypt()
8717   ;
8718   return 0;
8719 }
8720 _ACEOF
8721 rm -f conftest.$ac_objext conftest$ac_exeext
8722 if { (eval echo $as_me:8722: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
8723   eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
8724 else
8725   echo "$as_me: failed program was:" >&5
8726   cat conftest.$ac_ext >&5
8727 fi
8728 rm -f conftest$ac_exeext conftest.$ac_ext
8729         done
8730         eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
8731         LIBS="$ac_save_LIBS"
8732 fi
8733
8734 fi
8735
8736 eval "ac_res=\$ac_cv_funclib_crypt"
8737
8738 if false; then
8739
8740 for ac_func in crypt
8741 do
8742 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8743 echo "$as_me:8743: checking for $ac_func" >&5
8744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8745 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8746   echo $ECHO_N "(cached) $ECHO_C" >&6
8747 else
8748   cat >conftest.$ac_ext <<_ACEOF
8749 #line 8749 "configure"
8750 #include "confdefs.h"
8751 /* System header to define __stub macros and hopefully few prototypes,
8752     which can conflict with char $ac_func (); below.  */
8753 #include <assert.h>
8754 /* Override any gcc2 internal prototype to avoid an error.  */
8755 #ifdef __cplusplus
8756 extern "C"
8757 #endif
8758 /* We use char because int might match the return type of a gcc2
8759    builtin and then its argument prototype would still apply.  */
8760 char $ac_func ();
8761 char (*f) ();
8762
8763 int
8764 main ()
8765 {
8766 /* The GNU C library defines this for functions which it implements
8767     to always fail with ENOSYS.  Some functions are actually named
8768     something starting with __ and the normal name is an alias.  */
8769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8770 choke me
8771 #else
8772 f = $ac_func;
8773 #endif
8774
8775   ;
8776   return 0;
8777 }
8778 _ACEOF
8779 rm -f conftest.$ac_objext conftest$ac_exeext
8780 if { (eval echo $as_me:8780: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
8781   eval "$ac_ac_var=yes"
8782 else
8783   echo "$as_me: failed program was:" >&5
8784   cat conftest.$ac_ext >&5
8785   eval "$ac_ac_var=no"
8786 fi
8787 rm -f conftest$ac_exeext conftest.$ac_ext
8788 fi
8789 echo "$as_me:8789: result: `eval echo '${'$ac_ac_var'}'`" >&5
8790 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8791 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8792   cat >>confdefs.h <<EOF
8793 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8794 EOF
8795
8796 fi
8797 done
8798
8799 fi
8800 # crypt
8801 eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
8802 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
8803 eval "LIB_crypt=$ac_res"
8804
8805 case "$ac_res" in
8806         yes)
8807         eval "ac_cv_func_crypt=yes"
8808         eval "LIB_crypt="
8809         cat >>confdefs.h <<EOF
8810 #define $ac_tr_func 1
8811 EOF
8812
8813         echo "$as_me:8813: result: yes" >&5
8814 echo "${ECHO_T}yes" >&6
8815         ;;
8816         no)
8817         eval "ac_cv_func_crypt=no"
8818         eval "LIB_crypt="
8819         echo "$as_me:8819: result: no" >&5
8820 echo "${ECHO_T}no" >&6
8821         ;;
8822         *)
8823         eval "ac_cv_func_crypt=yes"
8824         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
8825         cat >>confdefs.h <<EOF
8826 #define $ac_tr_func 1
8827 EOF
8828
8829         cat >>confdefs.h <<EOF
8830 #define $ac_tr_lib 1
8831 EOF
8832
8833         echo "$as_me:8833: result: yes, in $ac_res" >&5
8834 echo "${ECHO_T}yes, in $ac_res" >&6
8835         ;;
8836 esac
8837
8838 echo "$as_me:8838: checking if gethostbyname is compatible with system prototype" >&5
8839 echo $ECHO_N "checking if gethostbyname is compatible with system prototype... $ECHO_C" >&6
8840 if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then
8841   echo $ECHO_N "(cached) $ECHO_C" >&6
8842 else
8843   cat >conftest.$ac_ext <<_ACEOF
8844 #line 8844 "configure"
8845 #include "confdefs.h"
8846
8847 #ifdef HAVE_SYS_TYPES_H
8848 #include <sys/types.h>
8849 #endif
8850 #ifdef HAVE_SYS_SOCKET_H
8851 #include <sys/socket.h>
8852 #endif
8853 #ifdef HAVE_NETINET_IN_H
8854 #include <netinet/in.h>
8855 #endif
8856 #ifdef HAVE_ARPA_INET_H
8857 #include <arpa/inet.h>
8858 #endif
8859 #ifdef HAVE_NETDB_H
8860 #include <netdb.h>
8861 #endif
8862
8863 int
8864 main ()
8865 {
8866 struct hostent *gethostbyname(const char *);
8867   ;
8868   return 0;
8869 }
8870 _ACEOF
8871 rm -f conftest.$ac_objext
8872 if { (eval echo $as_me:8872: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
8873   eval "ac_cv_func_gethostbyname_proto_compat=yes"
8874 else
8875   echo "$as_me: failed program was:" >&5
8876   cat conftest.$ac_ext >&5
8877   eval "ac_cv_func_gethostbyname_proto_compat=no"
8878 fi
8879 rm -f conftest.$ac_objext conftest.$ac_ext
8880 fi
8881 echo "$as_me:8881: result: $ac_cv_func_gethostbyname_proto_compat" >&5
8882 echo "${ECHO_T}$ac_cv_func_gethostbyname_proto_compat" >&6
8883
8884 if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then
8885
8886 cat >>confdefs.h <<\EOF
8887 #define GETHOSTBYNAME_PROTO_COMPATIBLE 1
8888 EOF
8889
8890 fi
8891
8892 echo "$as_me:8892: checking if gethostbyaddr is compatible with system prototype" >&5
8893 echo $ECHO_N "checking if gethostbyaddr is compatible with system prototype... $ECHO_C" >&6
8894 if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then
8895   echo $ECHO_N "(cached) $ECHO_C" >&6
8896 else
8897   cat >conftest.$ac_ext <<_ACEOF
8898 #line 8898 "configure"
8899 #include "confdefs.h"
8900
8901 #ifdef HAVE_SYS_TYPES_H
8902 #include <sys/types.h>
8903 #endif
8904 #ifdef HAVE_SYS_SOCKET_H
8905 #include <sys/socket.h>
8906 #endif
8907 #ifdef HAVE_NETINET_IN_H
8908 #include <netinet/in.h>
8909 #endif
8910 #ifdef HAVE_ARPA_INET_H
8911 #include <arpa/inet.h>
8912 #endif
8913 #ifdef HAVE_NETDB_H
8914 #include <netdb.h>
8915 #endif
8916
8917 int
8918 main ()
8919 {
8920 struct hostent *gethostbyaddr(const void *, size_t, int);
8921   ;
8922   return 0;
8923 }
8924 _ACEOF
8925 rm -f conftest.$ac_objext
8926 if { (eval echo $as_me:8926: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
8927   eval "ac_cv_func_gethostbyaddr_proto_compat=yes"
8928 else
8929   echo "$as_me: failed program was:" >&5
8930   cat conftest.$ac_ext >&5
8931   eval "ac_cv_func_gethostbyaddr_proto_compat=no"
8932 fi
8933 rm -f conftest.$ac_objext conftest.$ac_ext
8934 fi
8935 echo "$as_me:8935: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5
8936 echo "${ECHO_T}$ac_cv_func_gethostbyaddr_proto_compat" >&6
8937
8938 if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then
8939
8940 cat >>confdefs.h <<\EOF
8941 #define GETHOSTBYADDR_PROTO_COMPATIBLE 1
8942 EOF
8943
8944 fi
8945
8946 echo "$as_me:8946: checking if getservbyname is compatible with system prototype" >&5
8947 echo $ECHO_N "checking if getservbyname is compatible with system prototype... $ECHO_C" >&6
8948 if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then
8949   echo $ECHO_N "(cached) $ECHO_C" >&6
8950 else
8951   cat >conftest.$ac_ext <<_ACEOF
8952 #line 8952 "configure"
8953 #include "confdefs.h"
8954
8955 #ifdef HAVE_SYS_TYPES_H
8956 #include <sys/types.h>
8957 #endif
8958 #ifdef HAVE_SYS_SOCKET_H
8959 #include <sys/socket.h>
8960 #endif
8961 #ifdef HAVE_NETINET_IN_H
8962 #include <netinet/in.h>
8963 #endif
8964 #ifdef HAVE_ARPA_INET_H
8965 #include <arpa/inet.h>
8966 #endif
8967 #ifdef HAVE_NETDB_H
8968 #include <netdb.h>
8969 #endif
8970
8971 int
8972 main ()
8973 {
8974 struct servent *getservbyname(const char *, const char *);
8975   ;
8976   return 0;
8977 }
8978 _ACEOF
8979 rm -f conftest.$ac_objext
8980 if { (eval echo $as_me:8980: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
8981   eval "ac_cv_func_getservbyname_proto_compat=yes"
8982 else
8983   echo "$as_me: failed program was:" >&5
8984   cat conftest.$ac_ext >&5
8985   eval "ac_cv_func_getservbyname_proto_compat=no"
8986 fi
8987 rm -f conftest.$ac_objext conftest.$ac_ext
8988 fi
8989 echo "$as_me:8989: result: $ac_cv_func_getservbyname_proto_compat" >&5
8990 echo "${ECHO_T}$ac_cv_func_getservbyname_proto_compat" >&6
8991
8992 if test "$ac_cv_func_getservbyname_proto_compat" = yes; then
8993
8994 cat >>confdefs.h <<\EOF
8995 #define GETSERVBYNAME_PROTO_COMPATIBLE 1
8996 EOF
8997
8998 fi
8999
9000 echo "$as_me:9000: checking if getsockname is compatible with system prototype" >&5
9001 echo $ECHO_N "checking if getsockname is compatible with system prototype... $ECHO_C" >&6
9002 if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then
9003   echo $ECHO_N "(cached) $ECHO_C" >&6
9004 else
9005   cat >conftest.$ac_ext <<_ACEOF
9006 #line 9006 "configure"
9007 #include "confdefs.h"
9008
9009 #ifdef HAVE_SYS_TYPES_H
9010 #include <sys/types.h>
9011 #endif
9012 #ifdef HAVE_SYS_SOCKET_H
9013 #include <sys/socket.h>
9014 #endif
9015
9016 int
9017 main ()
9018 {
9019 int getsockname(int, struct sockaddr*, socklen_t*);
9020   ;
9021   return 0;
9022 }
9023 _ACEOF
9024 rm -f conftest.$ac_objext
9025 if { (eval echo $as_me:9025: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9026   eval "ac_cv_func_getsockname_proto_compat=yes"
9027 else
9028   echo "$as_me: failed program was:" >&5
9029   cat conftest.$ac_ext >&5
9030   eval "ac_cv_func_getsockname_proto_compat=no"
9031 fi
9032 rm -f conftest.$ac_objext conftest.$ac_ext
9033 fi
9034 echo "$as_me:9034: result: $ac_cv_func_getsockname_proto_compat" >&5
9035 echo "${ECHO_T}$ac_cv_func_getsockname_proto_compat" >&6
9036
9037 if test "$ac_cv_func_getsockname_proto_compat" = yes; then
9038
9039 cat >>confdefs.h <<\EOF
9040 #define GETSOCKNAME_PROTO_COMPATIBLE 1
9041 EOF
9042
9043 fi
9044
9045 echo "$as_me:9045: checking if openlog is compatible with system prototype" >&5
9046 echo $ECHO_N "checking if openlog is compatible with system prototype... $ECHO_C" >&6
9047 if test "${ac_cv_func_openlog_proto_compat+set}" = set; then
9048   echo $ECHO_N "(cached) $ECHO_C" >&6
9049 else
9050   cat >conftest.$ac_ext <<_ACEOF
9051 #line 9051 "configure"
9052 #include "confdefs.h"
9053
9054 #ifdef HAVE_SYSLOG_H
9055 #include <syslog.h>
9056 #endif
9057
9058 int
9059 main ()
9060 {
9061 void openlog(const char *, int, int);
9062   ;
9063   return 0;
9064 }
9065 _ACEOF
9066 rm -f conftest.$ac_objext
9067 if { (eval echo $as_me:9067: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9068   eval "ac_cv_func_openlog_proto_compat=yes"
9069 else
9070   echo "$as_me: failed program was:" >&5
9071   cat conftest.$ac_ext >&5
9072   eval "ac_cv_func_openlog_proto_compat=no"
9073 fi
9074 rm -f conftest.$ac_objext conftest.$ac_ext
9075 fi
9076 echo "$as_me:9076: result: $ac_cv_func_openlog_proto_compat" >&5
9077 echo "${ECHO_T}$ac_cv_func_openlog_proto_compat" >&6
9078
9079 if test "$ac_cv_func_openlog_proto_compat" = yes; then
9080
9081 cat >>confdefs.h <<\EOF
9082 #define OPENLOG_PROTO_COMPATIBLE 1
9083 EOF
9084
9085 fi
9086
9087 if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then
9088 echo "$as_me:9088: checking if crypt needs a prototype" >&5
9089 echo $ECHO_N "checking if crypt needs a prototype... $ECHO_C" >&6
9090 if test "${ac_cv_func_crypt_noproto+set}" = set; then
9091   echo $ECHO_N "(cached) $ECHO_C" >&6
9092 else
9093   cat >conftest.$ac_ext <<_ACEOF
9094 #line 9094 "configure"
9095 #include "confdefs.h"
9096
9097 #ifdef HAVE_CRYPT_H
9098 #include <crypt.h>
9099 #endif
9100 #ifdef HAVE_UNISTD_H
9101 #include <unistd.h>
9102 #endif
9103
9104 int
9105 main ()
9106 {
9107 struct foo { int foo; } xx;
9108 extern int crypt (struct foo*);
9109 crypt(&xx);
9110
9111   ;
9112   return 0;
9113 }
9114 _ACEOF
9115 rm -f conftest.$ac_objext
9116 if { (eval echo $as_me:9116: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9117   eval "ac_cv_func_crypt_noproto=yes"
9118 else
9119   echo "$as_me: failed program was:" >&5
9120   cat conftest.$ac_ext >&5
9121   eval "ac_cv_func_crypt_noproto=no"
9122 fi
9123 rm -f conftest.$ac_objext conftest.$ac_ext
9124 fi
9125 echo "$as_me:9125: result: $ac_cv_func_crypt_noproto" >&5
9126 echo "${ECHO_T}$ac_cv_func_crypt_noproto" >&6
9127
9128 if test "$ac_cv_func_crypt_noproto" = yes; then
9129
9130 cat >>confdefs.h <<\EOF
9131 #define NEED_CRYPT_PROTO 1
9132 EOF
9133
9134 fi
9135
9136 fi
9137
9138 if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then
9139 echo "$as_me:9139: checking if strtok_r needs a prototype" >&5
9140 echo $ECHO_N "checking if strtok_r needs a prototype... $ECHO_C" >&6
9141 if test "${ac_cv_func_strtok_r_noproto+set}" = set; then
9142   echo $ECHO_N "(cached) $ECHO_C" >&6
9143 else
9144   cat >conftest.$ac_ext <<_ACEOF
9145 #line 9145 "configure"
9146 #include "confdefs.h"
9147
9148 #include <string.h>
9149
9150 int
9151 main ()
9152 {
9153 struct foo { int foo; } xx;
9154 extern int strtok_r (struct foo*);
9155 strtok_r(&xx);
9156
9157   ;
9158   return 0;
9159 }
9160 _ACEOF
9161 rm -f conftest.$ac_objext
9162 if { (eval echo $as_me:9162: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9163   eval "ac_cv_func_strtok_r_noproto=yes"
9164 else
9165   echo "$as_me: failed program was:" >&5
9166   cat conftest.$ac_ext >&5
9167   eval "ac_cv_func_strtok_r_noproto=no"
9168 fi
9169 rm -f conftest.$ac_objext conftest.$ac_ext
9170 fi
9171 echo "$as_me:9171: result: $ac_cv_func_strtok_r_noproto" >&5
9172 echo "${ECHO_T}$ac_cv_func_strtok_r_noproto" >&6
9173
9174 if test "$ac_cv_func_strtok_r_noproto" = yes; then
9175
9176 cat >>confdefs.h <<\EOF
9177 #define NEED_STRTOK_R_PROTO 1
9178 EOF
9179
9180 fi
9181
9182 fi
9183
9184 if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then
9185 echo "$as_me:9185: checking if strsep needs a prototype" >&5
9186 echo $ECHO_N "checking if strsep needs a prototype... $ECHO_C" >&6
9187 if test "${ac_cv_func_strsep_noproto+set}" = set; then
9188   echo $ECHO_N "(cached) $ECHO_C" >&6
9189 else
9190   cat >conftest.$ac_ext <<_ACEOF
9191 #line 9191 "configure"
9192 #include "confdefs.h"
9193
9194 #include <string.h>
9195
9196 int
9197 main ()
9198 {
9199 struct foo { int foo; } xx;
9200 extern int strsep (struct foo*);
9201 strsep(&xx);
9202
9203   ;
9204   return 0;
9205 }
9206 _ACEOF
9207 rm -f conftest.$ac_objext
9208 if { (eval echo $as_me:9208: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9209   eval "ac_cv_func_strsep_noproto=yes"
9210 else
9211   echo "$as_me: failed program was:" >&5
9212   cat conftest.$ac_ext >&5
9213   eval "ac_cv_func_strsep_noproto=no"
9214 fi
9215 rm -f conftest.$ac_objext conftest.$ac_ext
9216 fi
9217 echo "$as_me:9217: result: $ac_cv_func_strsep_noproto" >&5
9218 echo "${ECHO_T}$ac_cv_func_strsep_noproto" >&6
9219
9220 if test "$ac_cv_func_strsep_noproto" = yes; then
9221
9222 cat >>confdefs.h <<\EOF
9223 #define NEED_STRSEP_PROTO 1
9224 EOF
9225
9226 fi
9227
9228 fi
9229
9230 echo "$as_me:9230: checking for h_errno" >&5
9231 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
9232 if test "${ac_cv_var_h_errno+set}" = set; then
9233   echo $ECHO_N "(cached) $ECHO_C" >&6
9234 else
9235
9236 cat >conftest.$ac_ext <<_ACEOF
9237 #line 9237 "configure"
9238 #include "confdefs.h"
9239 extern int h_errno;
9240 int foo() { return h_errno; }
9241 int
9242 main ()
9243 {
9244 foo()
9245   ;
9246   return 0;
9247 }
9248 _ACEOF
9249 rm -f conftest.$ac_objext conftest$ac_exeext
9250 if { (eval echo $as_me:9250: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
9251   ac_cv_var_h_errno=yes
9252 else
9253   echo "$as_me: failed program was:" >&5
9254   cat conftest.$ac_ext >&5
9255   ac_cv_var_h_errno=no
9256 fi
9257 rm -f conftest$ac_exeext conftest.$ac_ext
9258
9259 fi
9260
9261 ac_foo=`eval echo \\$ac_cv_var_h_errno`
9262 echo "$as_me:9262: result: $ac_foo" >&5
9263 echo "${ECHO_T}$ac_foo" >&6
9264 if test "$ac_foo" = yes; then
9265
9266 cat >>confdefs.h <<EOF
9267 #define HAVE_H_ERRNO 1
9268 EOF
9269
9270 echo "$as_me:9270: checking if h_errno is properly declared" >&5
9271 echo $ECHO_N "checking if h_errno is properly declared... $ECHO_C" >&6
9272 if test "${ac_cv_var_h_errno_declaration+set}" = set; then
9273   echo $ECHO_N "(cached) $ECHO_C" >&6
9274 else
9275
9276 cat >conftest.$ac_ext <<_ACEOF
9277 #line 9277 "configure"
9278 #include "confdefs.h"
9279 #ifdef HAVE_SYS_TYPES_H
9280 #include <sys/types.h>
9281 #endif
9282 #ifdef HAVE_NETDB_H
9283 #include <netdb.h>
9284 #endif
9285 extern struct { int foo; } h_errno;
9286 int
9287 main ()
9288 {
9289 h_errno.foo = 1;
9290   ;
9291   return 0;
9292 }
9293 _ACEOF
9294 rm -f conftest.$ac_objext
9295 if { (eval echo $as_me:9295: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9296   eval "ac_cv_var_h_errno_declaration=no"
9297 else
9298   echo "$as_me: failed program was:" >&5
9299   cat conftest.$ac_ext >&5
9300   eval "ac_cv_var_h_errno_declaration=yes"
9301 fi
9302 rm -f conftest.$ac_objext conftest.$ac_ext
9303
9304 fi
9305
9306 echo "$as_me:9306: result: $ac_cv_var_h_errno_declaration" >&5
9307 echo "${ECHO_T}$ac_cv_var_h_errno_declaration" >&6
9308 if eval "test \"\$ac_cv_var_h_errno_declaration\" = yes"; then
9309
9310 cat >>confdefs.h <<\EOF
9311 #define HAVE_H_ERRNO_DECLARATION 1
9312 EOF
9313
9314 fi
9315
9316 fi
9317
9318 echo "$as_me:9318: checking for h_errlist" >&5
9319 echo $ECHO_N "checking for h_errlist... $ECHO_C" >&6
9320 if test "${ac_cv_var_h_errlist+set}" = set; then
9321   echo $ECHO_N "(cached) $ECHO_C" >&6
9322 else
9323
9324 cat >conftest.$ac_ext <<_ACEOF
9325 #line 9325 "configure"
9326 #include "confdefs.h"
9327 extern int h_errlist;
9328 int foo() { return h_errlist; }
9329 int
9330 main ()
9331 {
9332 foo()
9333   ;
9334   return 0;
9335 }
9336 _ACEOF
9337 rm -f conftest.$ac_objext conftest$ac_exeext
9338 if { (eval echo $as_me:9338: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
9339   ac_cv_var_h_errlist=yes
9340 else
9341   echo "$as_me: failed program was:" >&5
9342   cat conftest.$ac_ext >&5
9343   ac_cv_var_h_errlist=no
9344 fi
9345 rm -f conftest$ac_exeext conftest.$ac_ext
9346
9347 fi
9348
9349 ac_foo=`eval echo \\$ac_cv_var_h_errlist`
9350 echo "$as_me:9350: result: $ac_foo" >&5
9351 echo "${ECHO_T}$ac_foo" >&6
9352 if test "$ac_foo" = yes; then
9353
9354 cat >>confdefs.h <<EOF
9355 #define HAVE_H_ERRLIST 1
9356 EOF
9357
9358 echo "$as_me:9358: checking if h_errlist is properly declared" >&5
9359 echo $ECHO_N "checking if h_errlist is properly declared... $ECHO_C" >&6
9360 if test "${ac_cv_var_h_errlist_declaration+set}" = set; then
9361   echo $ECHO_N "(cached) $ECHO_C" >&6
9362 else
9363
9364 cat >conftest.$ac_ext <<_ACEOF
9365 #line 9365 "configure"
9366 #include "confdefs.h"
9367 #ifdef HAVE_NETDB_H
9368 #include <netdb.h>
9369 #endif
9370 extern struct { int foo; } h_errlist;
9371 int
9372 main ()
9373 {
9374 h_errlist.foo = 1;
9375   ;
9376   return 0;
9377 }
9378 _ACEOF
9379 rm -f conftest.$ac_objext
9380 if { (eval echo $as_me:9380: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9381   eval "ac_cv_var_h_errlist_declaration=no"
9382 else
9383   echo "$as_me: failed program was:" >&5
9384   cat conftest.$ac_ext >&5
9385   eval "ac_cv_var_h_errlist_declaration=yes"
9386 fi
9387 rm -f conftest.$ac_objext conftest.$ac_ext
9388
9389 fi
9390
9391 echo "$as_me:9391: result: $ac_cv_var_h_errlist_declaration" >&5
9392 echo "${ECHO_T}$ac_cv_var_h_errlist_declaration" >&6
9393 if eval "test \"\$ac_cv_var_h_errlist_declaration\" = yes"; then
9394
9395 cat >>confdefs.h <<\EOF
9396 #define HAVE_H_ERRLIST_DECLARATION 1
9397 EOF
9398
9399 fi
9400
9401 fi
9402
9403 echo "$as_me:9403: checking for h_nerr" >&5
9404 echo $ECHO_N "checking for h_nerr... $ECHO_C" >&6
9405 if test "${ac_cv_var_h_nerr+set}" = set; then
9406   echo $ECHO_N "(cached) $ECHO_C" >&6
9407 else
9408
9409 cat >conftest.$ac_ext <<_ACEOF
9410 #line 9410 "configure"
9411 #include "confdefs.h"
9412 extern int h_nerr;
9413 int foo() { return h_nerr; }
9414 int
9415 main ()
9416 {
9417 foo()
9418   ;
9419   return 0;
9420 }
9421 _ACEOF
9422 rm -f conftest.$ac_objext conftest$ac_exeext
9423 if { (eval echo $as_me:9423: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
9424   ac_cv_var_h_nerr=yes
9425 else
9426   echo "$as_me: failed program was:" >&5
9427   cat conftest.$ac_ext >&5
9428   ac_cv_var_h_nerr=no
9429 fi
9430 rm -f conftest$ac_exeext conftest.$ac_ext
9431
9432 fi
9433
9434 ac_foo=`eval echo \\$ac_cv_var_h_nerr`
9435 echo "$as_me:9435: result: $ac_foo" >&5
9436 echo "${ECHO_T}$ac_foo" >&6
9437 if test "$ac_foo" = yes; then
9438
9439 cat >>confdefs.h <<EOF
9440 #define HAVE_H_NERR 1
9441 EOF
9442
9443 echo "$as_me:9443: checking if h_nerr is properly declared" >&5
9444 echo $ECHO_N "checking if h_nerr is properly declared... $ECHO_C" >&6
9445 if test "${ac_cv_var_h_nerr_declaration+set}" = set; then
9446   echo $ECHO_N "(cached) $ECHO_C" >&6
9447 else
9448
9449 cat >conftest.$ac_ext <<_ACEOF
9450 #line 9450 "configure"
9451 #include "confdefs.h"
9452 #ifdef HAVE_NETDB_H
9453 #include <netdb.h>
9454 #endif
9455 extern struct { int foo; } h_nerr;
9456 int
9457 main ()
9458 {
9459 h_nerr.foo = 1;
9460   ;
9461   return 0;
9462 }
9463 _ACEOF
9464 rm -f conftest.$ac_objext
9465 if { (eval echo $as_me:9465: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9466   eval "ac_cv_var_h_nerr_declaration=no"
9467 else
9468   echo "$as_me: failed program was:" >&5
9469   cat conftest.$ac_ext >&5
9470   eval "ac_cv_var_h_nerr_declaration=yes"
9471 fi
9472 rm -f conftest.$ac_objext conftest.$ac_ext
9473
9474 fi
9475
9476 echo "$as_me:9476: result: $ac_cv_var_h_nerr_declaration" >&5
9477 echo "${ECHO_T}$ac_cv_var_h_nerr_declaration" >&6
9478 if eval "test \"\$ac_cv_var_h_nerr_declaration\" = yes"; then
9479
9480 cat >>confdefs.h <<\EOF
9481 #define HAVE_H_NERR_DECLARATION 1
9482 EOF
9483
9484 fi
9485
9486 fi
9487
9488 echo "$as_me:9488: checking for __progname" >&5
9489 echo $ECHO_N "checking for __progname... $ECHO_C" >&6
9490 if test "${ac_cv_var___progname+set}" = set; then
9491   echo $ECHO_N "(cached) $ECHO_C" >&6
9492 else
9493
9494 cat >conftest.$ac_ext <<_ACEOF
9495 #line 9495 "configure"
9496 #include "confdefs.h"
9497 extern int __progname;
9498 int foo() { return __progname; }
9499 int
9500 main ()
9501 {
9502 foo()
9503   ;
9504   return 0;
9505 }
9506 _ACEOF
9507 rm -f conftest.$ac_objext conftest$ac_exeext
9508 if { (eval echo $as_me:9508: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
9509   ac_cv_var___progname=yes
9510 else
9511   echo "$as_me: failed program was:" >&5
9512   cat conftest.$ac_ext >&5
9513   ac_cv_var___progname=no
9514 fi
9515 rm -f conftest$ac_exeext conftest.$ac_ext
9516
9517 fi
9518
9519 ac_foo=`eval echo \\$ac_cv_var___progname`
9520 echo "$as_me:9520: result: $ac_foo" >&5
9521 echo "${ECHO_T}$ac_foo" >&6
9522 if test "$ac_foo" = yes; then
9523
9524 cat >>confdefs.h <<EOF
9525 #define HAVE___PROGNAME 1
9526 EOF
9527
9528 echo "$as_me:9528: checking if __progname is properly declared" >&5
9529 echo $ECHO_N "checking if __progname is properly declared... $ECHO_C" >&6
9530 if test "${ac_cv_var___progname_declaration+set}" = set; then
9531   echo $ECHO_N "(cached) $ECHO_C" >&6
9532 else
9533
9534 cat >conftest.$ac_ext <<_ACEOF
9535 #line 9535 "configure"
9536 #include "confdefs.h"
9537 #ifdef HAVE_ERR_H
9538 #include <err.h>
9539 #endif
9540 extern struct { int foo; } __progname;
9541 int
9542 main ()
9543 {
9544 __progname.foo = 1;
9545   ;
9546   return 0;
9547 }
9548 _ACEOF
9549 rm -f conftest.$ac_objext
9550 if { (eval echo $as_me:9550: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9551   eval "ac_cv_var___progname_declaration=no"
9552 else
9553   echo "$as_me: failed program was:" >&5
9554   cat conftest.$ac_ext >&5
9555   eval "ac_cv_var___progname_declaration=yes"
9556 fi
9557 rm -f conftest.$ac_objext conftest.$ac_ext
9558
9559 fi
9560
9561 echo "$as_me:9561: result: $ac_cv_var___progname_declaration" >&5
9562 echo "${ECHO_T}$ac_cv_var___progname_declaration" >&6
9563 if eval "test \"\$ac_cv_var___progname_declaration\" = yes"; then
9564
9565 cat >>confdefs.h <<\EOF
9566 #define HAVE___PROGNAME_DECLARATION 1
9567 EOF
9568
9569 fi
9570
9571 fi
9572
9573 echo "$as_me:9573: checking if optarg is properly declared" >&5
9574 echo $ECHO_N "checking if optarg is properly declared... $ECHO_C" >&6
9575 if test "${ac_cv_var_optarg_declaration+set}" = set; then
9576   echo $ECHO_N "(cached) $ECHO_C" >&6
9577 else
9578
9579 cat >conftest.$ac_ext <<_ACEOF
9580 #line 9580 "configure"
9581 #include "confdefs.h"
9582 #include <stdlib.h>
9583 #ifdef HAVE_UNISTD_H
9584 #include <unistd.h>
9585 #endif
9586 extern struct { int foo; } optarg;
9587 int
9588 main ()
9589 {
9590 optarg.foo = 1;
9591   ;
9592   return 0;
9593 }
9594 _ACEOF
9595 rm -f conftest.$ac_objext
9596 if { (eval echo $as_me:9596: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9597   eval "ac_cv_var_optarg_declaration=no"
9598 else
9599   echo "$as_me: failed program was:" >&5
9600   cat conftest.$ac_ext >&5
9601   eval "ac_cv_var_optarg_declaration=yes"
9602 fi
9603 rm -f conftest.$ac_objext conftest.$ac_ext
9604
9605 fi
9606
9607 echo "$as_me:9607: result: $ac_cv_var_optarg_declaration" >&5
9608 echo "${ECHO_T}$ac_cv_var_optarg_declaration" >&6
9609 if eval "test \"\$ac_cv_var_optarg_declaration\" = yes"; then
9610
9611 cat >>confdefs.h <<\EOF
9612 #define HAVE_OPTARG_DECLARATION 1
9613 EOF
9614
9615 fi
9616
9617 echo "$as_me:9617: checking if optind is properly declared" >&5
9618 echo $ECHO_N "checking if optind is properly declared... $ECHO_C" >&6
9619 if test "${ac_cv_var_optind_declaration+set}" = set; then
9620   echo $ECHO_N "(cached) $ECHO_C" >&6
9621 else
9622
9623 cat >conftest.$ac_ext <<_ACEOF
9624 #line 9624 "configure"
9625 #include "confdefs.h"
9626 #include <stdlib.h>
9627 #ifdef HAVE_UNISTD_H
9628 #include <unistd.h>
9629 #endif
9630 extern struct { int foo; } optind;
9631 int
9632 main ()
9633 {
9634 optind.foo = 1;
9635   ;
9636   return 0;
9637 }
9638 _ACEOF
9639 rm -f conftest.$ac_objext
9640 if { (eval echo $as_me:9640: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9641   eval "ac_cv_var_optind_declaration=no"
9642 else
9643   echo "$as_me: failed program was:" >&5
9644   cat conftest.$ac_ext >&5
9645   eval "ac_cv_var_optind_declaration=yes"
9646 fi
9647 rm -f conftest.$ac_objext conftest.$ac_ext
9648
9649 fi
9650
9651 echo "$as_me:9651: result: $ac_cv_var_optind_declaration" >&5
9652 echo "${ECHO_T}$ac_cv_var_optind_declaration" >&6
9653 if eval "test \"\$ac_cv_var_optind_declaration\" = yes"; then
9654
9655 cat >>confdefs.h <<\EOF
9656 #define HAVE_OPTIND_DECLARATION 1
9657 EOF
9658
9659 fi
9660
9661 echo "$as_me:9661: checking if opterr is properly declared" >&5
9662 echo $ECHO_N "checking if opterr is properly declared... $ECHO_C" >&6
9663 if test "${ac_cv_var_opterr_declaration+set}" = set; then
9664   echo $ECHO_N "(cached) $ECHO_C" >&6
9665 else
9666
9667 cat >conftest.$ac_ext <<_ACEOF
9668 #line 9668 "configure"
9669 #include "confdefs.h"
9670 #include <stdlib.h>
9671 #ifdef HAVE_UNISTD_H
9672 #include <unistd.h>
9673 #endif
9674 extern struct { int foo; } opterr;
9675 int
9676 main ()
9677 {
9678 opterr.foo = 1;
9679   ;
9680   return 0;
9681 }
9682 _ACEOF
9683 rm -f conftest.$ac_objext
9684 if { (eval echo $as_me:9684: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9685   eval "ac_cv_var_opterr_declaration=no"
9686 else
9687   echo "$as_me: failed program was:" >&5
9688   cat conftest.$ac_ext >&5
9689   eval "ac_cv_var_opterr_declaration=yes"
9690 fi
9691 rm -f conftest.$ac_objext conftest.$ac_ext
9692
9693 fi
9694
9695 echo "$as_me:9695: result: $ac_cv_var_opterr_declaration" >&5
9696 echo "${ECHO_T}$ac_cv_var_opterr_declaration" >&6
9697 if eval "test \"\$ac_cv_var_opterr_declaration\" = yes"; then
9698
9699 cat >>confdefs.h <<\EOF
9700 #define HAVE_OPTERR_DECLARATION 1
9701 EOF
9702
9703 fi
9704
9705 echo "$as_me:9705: checking if optopt is properly declared" >&5
9706 echo $ECHO_N "checking if optopt is properly declared... $ECHO_C" >&6
9707 if test "${ac_cv_var_optopt_declaration+set}" = set; then
9708   echo $ECHO_N "(cached) $ECHO_C" >&6
9709 else
9710
9711 cat >conftest.$ac_ext <<_ACEOF
9712 #line 9712 "configure"
9713 #include "confdefs.h"
9714 #include <stdlib.h>
9715 #ifdef HAVE_UNISTD_H
9716 #include <unistd.h>
9717 #endif
9718 extern struct { int foo; } optopt;
9719 int
9720 main ()
9721 {
9722 optopt.foo = 1;
9723   ;
9724   return 0;
9725 }
9726 _ACEOF
9727 rm -f conftest.$ac_objext
9728 if { (eval echo $as_me:9728: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9729   eval "ac_cv_var_optopt_declaration=no"
9730 else
9731   echo "$as_me: failed program was:" >&5
9732   cat conftest.$ac_ext >&5
9733   eval "ac_cv_var_optopt_declaration=yes"
9734 fi
9735 rm -f conftest.$ac_objext conftest.$ac_ext
9736
9737 fi
9738
9739 echo "$as_me:9739: result: $ac_cv_var_optopt_declaration" >&5
9740 echo "${ECHO_T}$ac_cv_var_optopt_declaration" >&6
9741 if eval "test \"\$ac_cv_var_optopt_declaration\" = yes"; then
9742
9743 cat >>confdefs.h <<\EOF
9744 #define HAVE_OPTOPT_DECLARATION 1
9745 EOF
9746
9747 fi
9748
9749 echo "$as_me:9749: checking if environ is properly declared" >&5
9750 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
9751 if test "${ac_cv_var_environ_declaration+set}" = set; then
9752   echo $ECHO_N "(cached) $ECHO_C" >&6
9753 else
9754
9755 cat >conftest.$ac_ext <<_ACEOF
9756 #line 9756 "configure"
9757 #include "confdefs.h"
9758 #include <stdlib.h>
9759 extern struct { int foo; } environ;
9760 int
9761 main ()
9762 {
9763 environ.foo = 1;
9764   ;
9765   return 0;
9766 }
9767 _ACEOF
9768 rm -f conftest.$ac_objext
9769 if { (eval echo $as_me:9769: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9770   eval "ac_cv_var_environ_declaration=no"
9771 else
9772   echo "$as_me: failed program was:" >&5
9773   cat conftest.$ac_ext >&5
9774   eval "ac_cv_var_environ_declaration=yes"
9775 fi
9776 rm -f conftest.$ac_objext conftest.$ac_ext
9777
9778 fi
9779
9780 echo "$as_me:9780: result: $ac_cv_var_environ_declaration" >&5
9781 echo "${ECHO_T}$ac_cv_var_environ_declaration" >&6
9782 if eval "test \"\$ac_cv_var_environ_declaration\" = yes"; then
9783
9784 cat >>confdefs.h <<\EOF
9785 #define HAVE_ENVIRON_DECLARATION 1
9786 EOF
9787
9788 fi
9789
9790 echo "$as_me:9790: checking for tm_gmtoff in struct tm" >&5
9791 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
9792 if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then
9793   echo $ECHO_N "(cached) $ECHO_C" >&6
9794 else
9795
9796 cat >conftest.$ac_ext <<_ACEOF
9797 #line 9797 "configure"
9798 #include "confdefs.h"
9799 #include <time.h>
9800 int
9801 main ()
9802 {
9803 struct tm x; x.tm_gmtoff;
9804   ;
9805   return 0;
9806 }
9807 _ACEOF
9808 rm -f conftest.$ac_objext
9809 if { (eval echo $as_me:9809: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9810   ac_cv_type_struct_tm_tm_gmtoff=yes
9811 else
9812   echo "$as_me: failed program was:" >&5
9813   cat conftest.$ac_ext >&5
9814   ac_cv_type_struct_tm_tm_gmtoff=no
9815 fi
9816 rm -f conftest.$ac_objext conftest.$ac_ext
9817 fi
9818 echo "$as_me:9818: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
9819 echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6
9820 if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then
9821
9822 cat >>confdefs.h <<\EOF
9823 #define HAVE_STRUCT_TM_TM_GMTOFF 1
9824 EOF
9825
9826 fi
9827
9828 echo "$as_me:9828: checking for tm_zone in struct tm" >&5
9829 echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6
9830 if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then
9831   echo $ECHO_N "(cached) $ECHO_C" >&6
9832 else
9833
9834 cat >conftest.$ac_ext <<_ACEOF
9835 #line 9835 "configure"
9836 #include "confdefs.h"
9837 #include <time.h>
9838 int
9839 main ()
9840 {
9841 struct tm x; x.tm_zone;
9842   ;
9843   return 0;
9844 }
9845 _ACEOF
9846 rm -f conftest.$ac_objext
9847 if { (eval echo $as_me:9847: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9848   ac_cv_type_struct_tm_tm_zone=yes
9849 else
9850   echo "$as_me: failed program was:" >&5
9851   cat conftest.$ac_ext >&5
9852   ac_cv_type_struct_tm_tm_zone=no
9853 fi
9854 rm -f conftest.$ac_objext conftest.$ac_ext
9855 fi
9856 echo "$as_me:9856: result: $ac_cv_type_struct_tm_tm_zone" >&5
9857 echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6
9858 if test "$ac_cv_type_struct_tm_tm_zone" = yes; then
9859
9860 cat >>confdefs.h <<\EOF
9861 #define HAVE_STRUCT_TM_TM_ZONE 1
9862 EOF
9863
9864 fi
9865
9866 echo "$as_me:9866: checking for timezone" >&5
9867 echo $ECHO_N "checking for timezone... $ECHO_C" >&6
9868 if test "${ac_cv_var_timezone+set}" = set; then
9869   echo $ECHO_N "(cached) $ECHO_C" >&6
9870 else
9871
9872 cat >conftest.$ac_ext <<_ACEOF
9873 #line 9873 "configure"
9874 #include "confdefs.h"
9875 extern int timezone;
9876 int foo() { return timezone; }
9877 int
9878 main ()
9879 {
9880 foo()
9881   ;
9882   return 0;
9883 }
9884 _ACEOF
9885 rm -f conftest.$ac_objext conftest$ac_exeext
9886 if { (eval echo $as_me:9886: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
9887   ac_cv_var_timezone=yes
9888 else
9889   echo "$as_me: failed program was:" >&5
9890   cat conftest.$ac_ext >&5
9891   ac_cv_var_timezone=no
9892 fi
9893 rm -f conftest$ac_exeext conftest.$ac_ext
9894
9895 fi
9896
9897 ac_foo=`eval echo \\$ac_cv_var_timezone`
9898 echo "$as_me:9898: result: $ac_foo" >&5
9899 echo "${ECHO_T}$ac_foo" >&6
9900 if test "$ac_foo" = yes; then
9901
9902 cat >>confdefs.h <<EOF
9903 #define HAVE_TIMEZONE 1
9904 EOF
9905
9906 echo "$as_me:9906: checking if timezone is properly declared" >&5
9907 echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6
9908 if test "${ac_cv_var_timezone_declaration+set}" = set; then
9909   echo $ECHO_N "(cached) $ECHO_C" >&6
9910 else
9911
9912 cat >conftest.$ac_ext <<_ACEOF
9913 #line 9913 "configure"
9914 #include "confdefs.h"
9915 #include <time.h>
9916 extern struct { int foo; } timezone;
9917 int
9918 main ()
9919 {
9920 timezone.foo = 1;
9921   ;
9922   return 0;
9923 }
9924 _ACEOF
9925 rm -f conftest.$ac_objext
9926 if { (eval echo $as_me:9926: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9927   eval "ac_cv_var_timezone_declaration=no"
9928 else
9929   echo "$as_me: failed program was:" >&5
9930   cat conftest.$ac_ext >&5
9931   eval "ac_cv_var_timezone_declaration=yes"
9932 fi
9933 rm -f conftest.$ac_objext conftest.$ac_ext
9934
9935 fi
9936
9937 echo "$as_me:9937: result: $ac_cv_var_timezone_declaration" >&5
9938 echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6
9939 if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then
9940
9941 cat >>confdefs.h <<\EOF
9942 #define HAVE_TIMEZONE_DECLARATION 1
9943 EOF
9944
9945 fi
9946
9947 fi
9948
9949 cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
9950 echo "$as_me:9950: checking for sa_family_t" >&5
9951 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
9952 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
9953   echo $ECHO_N "(cached) $ECHO_C" >&6
9954 else
9955   cat >conftest.$ac_ext <<_ACEOF
9956 #line 9956 "configure"
9957 #include "confdefs.h"
9958 #include <sys/types.h>
9959 #if STDC_HEADERS
9960 #include <stdlib.h>
9961 #include <stddef.h>
9962 #endif
9963 #include <sys/socket.h>
9964 int
9965 main ()
9966 {
9967 sa_family_t foo;
9968   ;
9969   return 0;
9970 }
9971 _ACEOF
9972 rm -f conftest.$ac_objext
9973 if { (eval echo $as_me:9973: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9974   eval "ac_cv_type_$cv=yes"
9975 else
9976   echo "$as_me: failed program was:" >&5
9977   cat conftest.$ac_ext >&5
9978   eval "ac_cv_type_$cv=no"
9979 fi
9980 rm -f conftest.$ac_objext conftest.$ac_ext
9981 fi
9982 ac_foo=`eval echo \\$ac_cv_type_$cv`
9983 echo "$as_me:9983: result: $ac_foo" >&5
9984 echo "${ECHO_T}$ac_foo" >&6
9985 if test "$ac_foo" = yes; then
9986   ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
9987 if false; then
9988         echo "$as_me:9988: checking for sa_family_t" >&5
9989 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
9990 if test "${ac_cv_type_sa_family_t+set}" = set; then
9991   echo $ECHO_N "(cached) $ECHO_C" >&6
9992 else
9993   cat >conftest.$ac_ext <<_ACEOF
9994 #line 9994 "configure"
9995 #include "confdefs.h"
9996 $ac_includes_default
9997 int
9998 main ()
9999 {
10000 if ((sa_family_t *) 0)
10001   return 0;
10002 if (sizeof (sa_family_t))
10003   return 0;
10004   ;
10005   return 0;
10006 }
10007 _ACEOF
10008 rm -f conftest.$ac_objext
10009 if { (eval echo $as_me:10009: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10010   ac_cv_type_sa_family_t=yes
10011 else
10012   echo "$as_me: failed program was:" >&5
10013   cat conftest.$ac_ext >&5
10014   ac_cv_type_sa_family_t=no
10015 fi
10016 rm -f conftest.$ac_objext conftest.$ac_ext
10017 fi
10018 echo "$as_me:10018: result: $ac_cv_type_sa_family_t" >&5
10019 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
10020 if test $ac_cv_type_sa_family_t = yes; then
10021
10022 cat >>confdefs.h <<EOF
10023 #define HAVE_SA_FAMILY_T 1
10024 EOF
10025
10026 fi
10027
10028 fi
10029
10030 cat >>confdefs.h <<EOF
10031 #define $ac_tr_hdr 1
10032 EOF
10033
10034 fi
10035
10036 cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
10037 echo "$as_me:10037: checking for socklen_t" >&5
10038 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10039 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
10040   echo $ECHO_N "(cached) $ECHO_C" >&6
10041 else
10042   cat >conftest.$ac_ext <<_ACEOF
10043 #line 10043 "configure"
10044 #include "confdefs.h"
10045 #include <sys/types.h>
10046 #if STDC_HEADERS
10047 #include <stdlib.h>
10048 #include <stddef.h>
10049 #endif
10050 #include <sys/socket.h>
10051 int
10052 main ()
10053 {
10054 socklen_t foo;
10055   ;
10056   return 0;
10057 }
10058 _ACEOF
10059 rm -f conftest.$ac_objext
10060 if { (eval echo $as_me:10060: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10061   eval "ac_cv_type_$cv=yes"
10062 else
10063   echo "$as_me: failed program was:" >&5
10064   cat conftest.$ac_ext >&5
10065   eval "ac_cv_type_$cv=no"
10066 fi
10067 rm -f conftest.$ac_objext conftest.$ac_ext
10068 fi
10069 ac_foo=`eval echo \\$ac_cv_type_$cv`
10070 echo "$as_me:10070: result: $ac_foo" >&5
10071 echo "${ECHO_T}$ac_foo" >&6
10072 if test "$ac_foo" = yes; then
10073   ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
10074 if false; then
10075         echo "$as_me:10075: checking for socklen_t" >&5
10076 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10077 if test "${ac_cv_type_socklen_t+set}" = set; then
10078   echo $ECHO_N "(cached) $ECHO_C" >&6
10079 else
10080   cat >conftest.$ac_ext <<_ACEOF
10081 #line 10081 "configure"
10082 #include "confdefs.h"
10083 $ac_includes_default
10084 int
10085 main ()
10086 {
10087 if ((socklen_t *) 0)
10088   return 0;
10089 if (sizeof (socklen_t))
10090   return 0;
10091   ;
10092   return 0;
10093 }
10094 _ACEOF
10095 rm -f conftest.$ac_objext
10096 if { (eval echo $as_me:10096: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10097   ac_cv_type_socklen_t=yes
10098 else
10099   echo "$as_me: failed program was:" >&5
10100   cat conftest.$ac_ext >&5
10101   ac_cv_type_socklen_t=no
10102 fi
10103 rm -f conftest.$ac_objext conftest.$ac_ext
10104 fi
10105 echo "$as_me:10105: result: $ac_cv_type_socklen_t" >&5
10106 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
10107 if test $ac_cv_type_socklen_t = yes; then
10108
10109 cat >>confdefs.h <<EOF
10110 #define HAVE_SOCKLEN_T 1
10111 EOF
10112
10113 fi
10114
10115 fi
10116
10117 cat >>confdefs.h <<EOF
10118 #define $ac_tr_hdr 1
10119 EOF
10120
10121 fi
10122
10123 cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
10124 echo "$as_me:10124: checking for struct sockaddr" >&5
10125 echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
10126 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
10127   echo $ECHO_N "(cached) $ECHO_C" >&6
10128 else
10129   cat >conftest.$ac_ext <<_ACEOF
10130 #line 10130 "configure"
10131 #include "confdefs.h"
10132 #include <sys/types.h>
10133 #if STDC_HEADERS
10134 #include <stdlib.h>
10135 #include <stddef.h>
10136 #endif
10137 #include <sys/socket.h>
10138 int
10139 main ()
10140 {
10141 struct sockaddr foo;
10142   ;
10143   return 0;
10144 }
10145 _ACEOF
10146 rm -f conftest.$ac_objext
10147 if { (eval echo $as_me:10147: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10148   eval "ac_cv_type_$cv=yes"
10149 else
10150   echo "$as_me: failed program was:" >&5
10151   cat conftest.$ac_ext >&5
10152   eval "ac_cv_type_$cv=no"
10153 fi
10154 rm -f conftest.$ac_objext conftest.$ac_ext
10155 fi
10156 ac_foo=`eval echo \\$ac_cv_type_$cv`
10157 echo "$as_me:10157: result: $ac_foo" >&5
10158 echo "${ECHO_T}$ac_foo" >&6
10159 if test "$ac_foo" = yes; then
10160   ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
10161 if false; then
10162         echo "$as_me:10162: checking for struct sockaddr" >&5
10163 echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
10164 if test "${ac_cv_type_struct_sockaddr+set}" = set; then
10165   echo $ECHO_N "(cached) $ECHO_C" >&6
10166 else
10167   cat >conftest.$ac_ext <<_ACEOF
10168 #line 10168 "configure"
10169 #include "confdefs.h"
10170 $ac_includes_default
10171 int
10172 main ()
10173 {
10174 if ((struct sockaddr *) 0)
10175   return 0;
10176 if (sizeof (struct sockaddr))
10177   return 0;
10178   ;
10179   return 0;
10180 }
10181 _ACEOF
10182 rm -f conftest.$ac_objext
10183 if { (eval echo $as_me:10183: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10184   ac_cv_type_struct_sockaddr=yes
10185 else
10186   echo "$as_me: failed program was:" >&5
10187   cat conftest.$ac_ext >&5
10188   ac_cv_type_struct_sockaddr=no
10189 fi
10190 rm -f conftest.$ac_objext conftest.$ac_ext
10191 fi
10192 echo "$as_me:10192: result: $ac_cv_type_struct_sockaddr" >&5
10193 echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6
10194 if test $ac_cv_type_struct_sockaddr = yes; then
10195
10196 cat >>confdefs.h <<EOF
10197 #define HAVE_STRUCT_SOCKADDR 1
10198 EOF
10199
10200 fi
10201
10202 fi
10203
10204 cat >>confdefs.h <<EOF
10205 #define $ac_tr_hdr 1
10206 EOF
10207
10208 fi
10209
10210 cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
10211 echo "$as_me:10211: checking for struct sockaddr_storage" >&5
10212 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
10213 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
10214   echo $ECHO_N "(cached) $ECHO_C" >&6
10215 else
10216   cat >conftest.$ac_ext <<_ACEOF
10217 #line 10217 "configure"
10218 #include "confdefs.h"
10219 #include <sys/types.h>
10220 #if STDC_HEADERS
10221 #include <stdlib.h>
10222 #include <stddef.h>
10223 #endif
10224 #include <sys/socket.h>
10225 int
10226 main ()
10227 {
10228 struct sockaddr_storage foo;
10229   ;
10230   return 0;
10231 }
10232 _ACEOF
10233 rm -f conftest.$ac_objext
10234 if { (eval echo $as_me:10234: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10235   eval "ac_cv_type_$cv=yes"
10236 else
10237   echo "$as_me: failed program was:" >&5
10238   cat conftest.$ac_ext >&5
10239   eval "ac_cv_type_$cv=no"
10240 fi
10241 rm -f conftest.$ac_objext conftest.$ac_ext
10242 fi
10243 ac_foo=`eval echo \\$ac_cv_type_$cv`
10244 echo "$as_me:10244: result: $ac_foo" >&5
10245 echo "${ECHO_T}$ac_foo" >&6
10246 if test "$ac_foo" = yes; then
10247   ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
10248 if false; then
10249         echo "$as_me:10249: checking for struct sockaddr_storage" >&5
10250 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
10251 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
10252   echo $ECHO_N "(cached) $ECHO_C" >&6
10253 else
10254   cat >conftest.$ac_ext <<_ACEOF
10255 #line 10255 "configure"
10256 #include "confdefs.h"
10257 $ac_includes_default
10258 int
10259 main ()
10260 {
10261 if ((struct sockaddr_storage *) 0)
10262   return 0;
10263 if (sizeof (struct sockaddr_storage))
10264   return 0;
10265   ;
10266   return 0;
10267 }
10268 _ACEOF
10269 rm -f conftest.$ac_objext
10270 if { (eval echo $as_me:10270: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10271   ac_cv_type_struct_sockaddr_storage=yes
10272 else
10273   echo "$as_me: failed program was:" >&5
10274   cat conftest.$ac_ext >&5
10275   ac_cv_type_struct_sockaddr_storage=no
10276 fi
10277 rm -f conftest.$ac_objext conftest.$ac_ext
10278 fi
10279 echo "$as_me:10279: result: $ac_cv_type_struct_sockaddr_storage" >&5
10280 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
10281 if test $ac_cv_type_struct_sockaddr_storage = yes; then
10282
10283 cat >>confdefs.h <<EOF
10284 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10285 EOF
10286
10287 fi
10288
10289 fi
10290
10291 cat >>confdefs.h <<EOF
10292 #define $ac_tr_hdr 1
10293 EOF
10294
10295 fi
10296
10297 cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
10298 echo "$as_me:10298: checking for struct addrinfo" >&5
10299 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10300 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
10301   echo $ECHO_N "(cached) $ECHO_C" >&6
10302 else
10303   cat >conftest.$ac_ext <<_ACEOF
10304 #line 10304 "configure"
10305 #include "confdefs.h"
10306 #include <sys/types.h>
10307 #if STDC_HEADERS
10308 #include <stdlib.h>
10309 #include <stddef.h>
10310 #endif
10311 #include <netdb.h>
10312 int
10313 main ()
10314 {
10315 struct addrinfo foo;
10316   ;
10317   return 0;
10318 }
10319 _ACEOF
10320 rm -f conftest.$ac_objext
10321 if { (eval echo $as_me:10321: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10322   eval "ac_cv_type_$cv=yes"
10323 else
10324   echo "$as_me: failed program was:" >&5
10325   cat conftest.$ac_ext >&5
10326   eval "ac_cv_type_$cv=no"
10327 fi
10328 rm -f conftest.$ac_objext conftest.$ac_ext
10329 fi
10330 ac_foo=`eval echo \\$ac_cv_type_$cv`
10331 echo "$as_me:10331: result: $ac_foo" >&5
10332 echo "${ECHO_T}$ac_foo" >&6
10333 if test "$ac_foo" = yes; then
10334   ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
10335 if false; then
10336         echo "$as_me:10336: checking for struct addrinfo" >&5
10337 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10338 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10339   echo $ECHO_N "(cached) $ECHO_C" >&6
10340 else
10341   cat >conftest.$ac_ext <<_ACEOF
10342 #line 10342 "configure"
10343 #include "confdefs.h"
10344 $ac_includes_default
10345 int
10346 main ()
10347 {
10348 if ((struct addrinfo *) 0)
10349   return 0;
10350 if (sizeof (struct addrinfo))
10351   return 0;
10352   ;
10353   return 0;
10354 }
10355 _ACEOF
10356 rm -f conftest.$ac_objext
10357 if { (eval echo $as_me:10357: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10358   ac_cv_type_struct_addrinfo=yes
10359 else
10360   echo "$as_me: failed program was:" >&5
10361   cat conftest.$ac_ext >&5
10362   ac_cv_type_struct_addrinfo=no
10363 fi
10364 rm -f conftest.$ac_objext conftest.$ac_ext
10365 fi
10366 echo "$as_me:10366: result: $ac_cv_type_struct_addrinfo" >&5
10367 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10368 if test $ac_cv_type_struct_addrinfo = yes; then
10369
10370 cat >>confdefs.h <<EOF
10371 #define HAVE_STRUCT_ADDRINFO 1
10372 EOF
10373
10374 fi
10375
10376 fi
10377
10378 cat >>confdefs.h <<EOF
10379 #define $ac_tr_hdr 1
10380 EOF
10381
10382 fi
10383
10384 cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'`
10385 echo "$as_me:10385: checking for struct ifaddrs" >&5
10386 echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
10387 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
10388   echo $ECHO_N "(cached) $ECHO_C" >&6
10389 else
10390   cat >conftest.$ac_ext <<_ACEOF
10391 #line 10391 "configure"
10392 #include "confdefs.h"
10393 #include <sys/types.h>
10394 #if STDC_HEADERS
10395 #include <stdlib.h>
10396 #include <stddef.h>
10397 #endif
10398 #include <ifaddrs.h>
10399 int
10400 main ()
10401 {
10402 struct ifaddrs foo;
10403   ;
10404   return 0;
10405 }
10406 _ACEOF
10407 rm -f conftest.$ac_objext
10408 if { (eval echo $as_me:10408: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10409   eval "ac_cv_type_$cv=yes"
10410 else
10411   echo "$as_me: failed program was:" >&5
10412   cat conftest.$ac_ext >&5
10413   eval "ac_cv_type_$cv=no"
10414 fi
10415 rm -f conftest.$ac_objext conftest.$ac_ext
10416 fi
10417 ac_foo=`eval echo \\$ac_cv_type_$cv`
10418 echo "$as_me:10418: result: $ac_foo" >&5
10419 echo "${ECHO_T}$ac_foo" >&6
10420 if test "$ac_foo" = yes; then
10421   ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
10422 if false; then
10423         echo "$as_me:10423: checking for struct ifaddrs" >&5
10424 echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
10425 if test "${ac_cv_type_struct_ifaddrs+set}" = set; then
10426   echo $ECHO_N "(cached) $ECHO_C" >&6
10427 else
10428   cat >conftest.$ac_ext <<_ACEOF
10429 #line 10429 "configure"
10430 #include "confdefs.h"
10431 $ac_includes_default
10432 int
10433 main ()
10434 {
10435 if ((struct ifaddrs *) 0)
10436   return 0;
10437 if (sizeof (struct ifaddrs))
10438   return 0;
10439   ;
10440   return 0;
10441 }
10442 _ACEOF
10443 rm -f conftest.$ac_objext
10444 if { (eval echo $as_me:10444: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10445   ac_cv_type_struct_ifaddrs=yes
10446 else
10447   echo "$as_me: failed program was:" >&5
10448   cat conftest.$ac_ext >&5
10449   ac_cv_type_struct_ifaddrs=no
10450 fi
10451 rm -f conftest.$ac_objext conftest.$ac_ext
10452 fi
10453 echo "$as_me:10453: result: $ac_cv_type_struct_ifaddrs" >&5
10454 echo "${ECHO_T}$ac_cv_type_struct_ifaddrs" >&6
10455 if test $ac_cv_type_struct_ifaddrs = yes; then
10456
10457 cat >>confdefs.h <<EOF
10458 #define HAVE_STRUCT_IFADDRS 1
10459 EOF
10460
10461 fi
10462
10463 fi
10464
10465 cat >>confdefs.h <<EOF
10466 #define $ac_tr_hdr 1
10467 EOF
10468
10469 fi
10470
10471 echo "$as_me:10471: checking for struct winsize" >&5
10472 echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6
10473 if test "${ac_cv_struct_winsize+set}" = set; then
10474   echo $ECHO_N "(cached) $ECHO_C" >&6
10475 else
10476
10477 ac_cv_struct_winsize=no
10478 for i in sys/termios.h sys/ioctl.h; do
10479 cat >conftest.$ac_ext <<_ACEOF
10480 #line 10480 "configure"
10481 #include "confdefs.h"
10482 #include <$i>
10483
10484 _ACEOF
10485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10486   egrep "struct[        ]*winsize" >/dev/null 2>&1; then
10487   ac_cv_struct_winsize=yes; break
10488 fi
10489 rm -f conftest*
10490 done
10491
10492 fi
10493
10494 if test "$ac_cv_struct_winsize" = "yes"; then
10495
10496 cat >>confdefs.h <<\EOF
10497 #define HAVE_STRUCT_WINSIZE 1
10498 EOF
10499
10500 fi
10501 echo "$as_me:10501: result: $ac_cv_struct_winsize" >&5
10502 echo "${ECHO_T}$ac_cv_struct_winsize" >&6
10503 cat >conftest.$ac_ext <<_ACEOF
10504 #line 10504 "configure"
10505 #include "confdefs.h"
10506 #include <termios.h>
10507
10508 _ACEOF
10509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10510   egrep "ws_xpixel" >/dev/null 2>&1; then
10511
10512 cat >>confdefs.h <<\EOF
10513 #define HAVE_WS_XPIXEL 1
10514 EOF
10515
10516 fi
10517 rm -f conftest*
10518
10519 cat >conftest.$ac_ext <<_ACEOF
10520 #line 10520 "configure"
10521 #include "confdefs.h"
10522 #include <termios.h>
10523
10524 _ACEOF
10525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10526   egrep "ws_ypixel" >/dev/null 2>&1; then
10527
10528 cat >>confdefs.h <<\EOF
10529 #define HAVE_WS_YPIXEL 1
10530 EOF
10531
10532 fi
10533 rm -f conftest*
10534
10535 echo "$as_me:10535: checking for struct spwd" >&5
10536 echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6
10537 if test "${ac_cv_struct_spwd+set}" = set; then
10538   echo $ECHO_N "(cached) $ECHO_C" >&6
10539 else
10540
10541 cat >conftest.$ac_ext <<_ACEOF
10542 #line 10542 "configure"
10543 #include "confdefs.h"
10544 #include <pwd.h>
10545 #ifdef HAVE_SHADOW_H
10546 #include <shadow.h>
10547 #endif
10548 int
10549 main ()
10550 {
10551 struct spwd foo;
10552   ;
10553   return 0;
10554 }
10555 _ACEOF
10556 rm -f conftest.$ac_objext
10557 if { (eval echo $as_me:10557: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10558   ac_cv_struct_spwd=yes
10559 else
10560   echo "$as_me: failed program was:" >&5
10561   cat conftest.$ac_ext >&5
10562   ac_cv_struct_spwd=no
10563 fi
10564 rm -f conftest.$ac_objext conftest.$ac_ext
10565
10566 fi
10567
10568 echo "$as_me:10568: result: $ac_cv_struct_spwd" >&5
10569 echo "${ECHO_T}$ac_cv_struct_spwd" >&6
10570
10571 if test "$ac_cv_struct_spwd" = "yes"; then
10572
10573 cat >>confdefs.h <<\EOF
10574 #define HAVE_STRUCT_SPWD 1
10575 EOF
10576
10577 fi
10578
10579 LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"
10580
10581 LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken"
10582
10583 # Check whether --with-openldap or --without-openldap was given.
10584 if test "${with_openldap+set}" = set; then
10585   withval="$with_openldap"
10586
10587 fi;
10588
10589 # Check whether --with-openldap-lib or --without-openldap-lib was given.
10590 if test "${with_openldap_lib+set}" = set; then
10591   withval="$with_openldap_lib"
10592   if test "$withval" = "yes" -o "$withval" = "no"; then
10593   {  echo "$as_me: error: No argument for --with-openldap-lib" >&2
10594   { (exit 1); exit; }; }
10595 elif test "X$with_openldap" = "X"; then
10596   with_openldap=yes
10597 fi
10598 fi;
10599
10600 # Check whether --with-openldap-include or --without-openldap-include was given.
10601 if test "${with_openldap_include+set}" = set; then
10602   withval="$with_openldap_include"
10603   if test "$withval" = "yes" -o "$withval" = "no"; then
10604   {  echo "$as_me: error: No argument for --with-openldap-include" >&2
10605   { (exit 1); exit; }; }
10606 elif test "X$with_openldap" = "X"; then
10607   with_openldap=yes
10608 fi
10609 fi;
10610
10611 echo "$as_me:10611: checking for openldap" >&5
10612 echo $ECHO_N "checking for openldap... $ECHO_C" >&6
10613
10614 case "$with_openldap" in
10615 yes)    ;;
10616 no)     ;;
10617 "")     ;;
10618 *)      if test "$with_openldap_include" = ""; then
10619                 with_openldap_include="$with_openldap/include"
10620         fi
10621         if test "$with_openldap_lib" = ""; then
10622                 with_openldap_lib="$with_openldap/lib$abilibdirext"
10623         fi
10624         ;;
10625 esac
10626 header_dirs=
10627 lib_dirs=
10628 d=''
10629 for i in $d; do
10630         header_dirs="$header_dirs $i/include"
10631         lib_dirs="$lib_dirs $i/lib$abilibdirext"
10632 done
10633
10634 case "$with_openldap_include" in
10635 yes) ;;
10636 no)  ;;
10637 *)   header_dirs="$with_openldap_include $header_dirs";;
10638 esac
10639 case "$with_openldap_lib" in
10640 yes) ;;
10641 no)  ;;
10642 *)   lib_dirs="$with_openldap_lib $lib_dirs";;
10643 esac
10644
10645 save_CFLAGS="$CFLAGS"
10646 save_LIBS="$LIBS"
10647 ires= lres=
10648 for i in $header_dirs; do
10649         CFLAGS="-I$i $save_CFLAGS"
10650         cat >conftest.$ac_ext <<_ACEOF
10651 #line 10651 "configure"
10652 #include "confdefs.h"
10653 #include <lber.h>
10654 #include <ldap.h>
10655 int
10656 main ()
10657 {
10658
10659   ;
10660   return 0;
10661 }
10662 _ACEOF
10663 rm -f conftest.$ac_objext
10664 if { (eval echo $as_me:10664: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10665   ires=$i;break
10666 else
10667   echo "$as_me: failed program was:" >&5
10668   cat conftest.$ac_ext >&5
10669 fi
10670 rm -f conftest.$ac_objext conftest.$ac_ext
10671 done
10672 for i in $lib_dirs; do
10673         LIBS="-L$i -lldap -llber  $save_LIBS"
10674         cat >conftest.$ac_ext <<_ACEOF
10675 #line 10675 "configure"
10676 #include "confdefs.h"
10677 #include <lber.h>
10678 #include <ldap.h>
10679 int
10680 main ()
10681 {
10682
10683   ;
10684   return 0;
10685 }
10686 _ACEOF
10687 rm -f conftest.$ac_objext conftest$ac_exeext
10688 if { (eval echo $as_me:10688: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
10689   lres=$i;break
10690 else
10691   echo "$as_me: failed program was:" >&5
10692   cat conftest.$ac_ext >&5
10693 fi
10694 rm -f conftest$ac_exeext conftest.$ac_ext
10695 done
10696 CFLAGS="$save_CFLAGS"
10697 LIBS="$save_LIBS"
10698
10699 if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then
10700         openldap_includedir="$ires"
10701         openldap_libdir="$lres"
10702         INCLUDE_openldap="-I$openldap_includedir"
10703         LIB_openldap="-L$openldap_libdir -lldap -llber"
10704
10705 cat >>confdefs.h <<EOF
10706 #define OPENLDAP 1
10707 EOF
10708
10709         with_openldap=yes
10710         echo "$as_me:10710: result: headers $ires, libraries $lres" >&5
10711 echo "${ECHO_T}headers $ires, libraries $lres" >&6
10712 else
10713         INCLUDE_openldap=
10714         LIB_openldap=
10715         with_openldap=no
10716         echo "$as_me:10716: result: $with_openldap" >&5
10717 echo "${ECHO_T}$with_openldap" >&6
10718 fi
10719
10720 if test "$openldap_libdir"; then
10721         LIB_openldap="-R $openldap_libdir $LIB_openldap"
10722 fi
10723
10724 # Check whether --with-krb4 or --without-krb4 was given.
10725 if test "${with_krb4+set}" = set; then
10726   withval="$with_krb4"
10727
10728 fi;
10729
10730 # Check whether --with-krb4-lib or --without-krb4-lib was given.
10731 if test "${with_krb4_lib+set}" = set; then
10732   withval="$with_krb4_lib"
10733   if test "$withval" = "yes" -o "$withval" = "no"; then
10734   {  echo "$as_me: error: No argument for --with-krb4-lib" >&2
10735   { (exit 1); exit; }; }
10736 elif test "X$with_krb4" = "X"; then
10737   with_krb4=yes
10738 fi
10739 fi;
10740
10741 # Check whether --with-krb4-include or --without-krb4-include was given.
10742 if test "${with_krb4_include+set}" = set; then
10743   withval="$with_krb4_include"
10744   if test "$withval" = "yes" -o "$withval" = "no"; then
10745   {  echo "$as_me: error: No argument for --with-krb4-include" >&2
10746   { (exit 1); exit; }; }
10747 elif test "X$with_krb4" = "X"; then
10748   with_krb4=yes
10749 fi
10750 fi;
10751
10752 echo "$as_me:10752: checking for krb4" >&5
10753 echo $ECHO_N "checking for krb4... $ECHO_C" >&6
10754
10755 case "$with_krb4" in
10756 yes)    ;;
10757 no)     ;;
10758 "")     ;;
10759 *)      if test "$with_krb4_include" = ""; then
10760                 with_krb4_include="$with_krb4/include"
10761         fi
10762         if test "$with_krb4_lib" = ""; then
10763                 with_krb4_lib="$with_krb4/lib$abilibdirext"
10764         fi
10765         ;;
10766 esac
10767 header_dirs=
10768 lib_dirs=
10769 d='/usr/athena'
10770 for i in $d; do
10771         header_dirs="$header_dirs $i/include"
10772         lib_dirs="$lib_dirs $i/lib$abilibdirext"
10773 done
10774
10775 case "$with_krb4_include" in
10776 yes) ;;
10777 no)  ;;
10778 *)   header_dirs="$with_krb4_include $header_dirs";;
10779 esac
10780 case "$with_krb4_lib" in
10781 yes) ;;
10782 no)  ;;
10783 *)   lib_dirs="$with_krb4_lib $lib_dirs";;
10784 esac
10785
10786 save_CFLAGS="$CFLAGS"
10787 save_LIBS="$LIBS"
10788 ires= lres=
10789 for i in $header_dirs; do
10790         CFLAGS="-I$i $save_CFLAGS"
10791         cat >conftest.$ac_ext <<_ACEOF
10792 #line 10792 "configure"
10793 #include "confdefs.h"
10794 #include <krb.h>
10795 int
10796 main ()
10797 {
10798
10799   ;
10800   return 0;
10801 }
10802 _ACEOF
10803 rm -f conftest.$ac_objext
10804 if { (eval echo $as_me:10804: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10805   ires=$i;break
10806 else
10807   echo "$as_me: failed program was:" >&5
10808   cat conftest.$ac_ext >&5
10809 fi
10810 rm -f conftest.$ac_objext conftest.$ac_ext
10811 done
10812 for i in $lib_dirs; do
10813         LIBS="-L$i -lkrb -ldes $save_LIBS"
10814         cat >conftest.$ac_ext <<_ACEOF
10815 #line 10815 "configure"
10816 #include "confdefs.h"
10817 #include <krb.h>
10818 int
10819 main ()
10820 {
10821
10822   ;
10823   return 0;
10824 }
10825 _ACEOF
10826 rm -f conftest.$ac_objext conftest$ac_exeext
10827 if { (eval echo $as_me:10827: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
10828   lres=$i;break
10829 else
10830   echo "$as_me: failed program was:" >&5
10831   cat conftest.$ac_ext >&5
10832 fi
10833 rm -f conftest$ac_exeext conftest.$ac_ext
10834 done
10835 CFLAGS="$save_CFLAGS"
10836 LIBS="$save_LIBS"
10837
10838 if test "$ires" -a "$lres" -a "$with_krb4" != "no"; then
10839         krb4_includedir="$ires"
10840         krb4_libdir="$lres"
10841         INCLUDE_krb4="-I$krb4_includedir"
10842         LIB_krb4="-L$krb4_libdir -lkrb"
10843
10844 cat >>confdefs.h <<EOF
10845 #define KRB4 1
10846 EOF
10847
10848         with_krb4=yes
10849         echo "$as_me:10849: result: headers $ires, libraries $lres" >&5
10850 echo "${ECHO_T}headers $ires, libraries $lres" >&6
10851 else
10852         INCLUDE_krb4=
10853         LIB_krb4=
10854         with_krb4=no
10855         echo "$as_me:10855: result: $with_krb4" >&5
10856 echo "${ECHO_T}$with_krb4" >&6
10857 fi
10858
10859 LIB_kdb=
10860 if test "$with_krb4" != "no"; then
10861         save_CFLAGS="$CFLAGS"
10862         CFLAGS="$CFLAGS $INCLUDE_krb4"
10863         save_LIBS="$LIBS"
10864         LIBS="$LIB_krb4 -ldes $LIBS"
10865         EXTRA_LIB45=lib45.a
10866
10867         echo "$as_me:10867: checking for four valued krb_put_int" >&5
10868 echo $ECHO_N "checking for four valued krb_put_int... $ECHO_C" >&6
10869 if test "${ac_cv_func_krb_put_int_four+set}" = set; then
10870   echo $ECHO_N "(cached) $ECHO_C" >&6
10871 else
10872   cat >conftest.$ac_ext <<_ACEOF
10873 #line 10873 "configure"
10874 #include "confdefs.h"
10875 #include <krb.h>
10876 int
10877 main ()
10878 {
10879
10880                 char tmp[4];
10881                 krb_put_int(17, tmp, 4, sizeof(tmp));
10882   ;
10883   return 0;
10884 }
10885 _ACEOF
10886 rm -f conftest.$ac_objext
10887 if { (eval echo $as_me:10887: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10888   ac_cv_func_krb_put_int_four=yes
10889 else
10890   echo "$as_me: failed program was:" >&5
10891   cat conftest.$ac_ext >&5
10892   ac_cv_func_krb_put_int_four=no
10893 fi
10894 rm -f conftest.$ac_objext conftest.$ac_ext
10895
10896 fi
10897 echo "$as_me:10897: result: $ac_cv_func_krb_put_int_four" >&5
10898 echo "${ECHO_T}$ac_cv_func_krb_put_int_four" >&6
10899         if test "$ac_cv_func_krb_put_int_four" = yes; then
10900
10901 cat >>confdefs.h <<\EOF
10902 #define HAVE_FOUR_VALUED_KRB_PUT_INT 1
10903 EOF
10904
10905         fi
10906
10907         echo "$as_me:10907: checking for KRB_VERIFY_SECURE" >&5
10908 echo $ECHO_N "checking for KRB_VERIFY_SECURE... $ECHO_C" >&6
10909 if test "${ac_cv_func_krb_verify_secure+set}" = set; then
10910   echo $ECHO_N "(cached) $ECHO_C" >&6
10911 else
10912   cat >conftest.$ac_ext <<_ACEOF
10913 #line 10913 "configure"
10914 #include "confdefs.h"
10915 #include <krb.h>
10916 int
10917 main ()
10918 {
10919
10920                 int x = KRB_VERIFY_SECURE
10921   ;
10922   return 0;
10923 }
10924 _ACEOF
10925 rm -f conftest.$ac_objext
10926 if { (eval echo $as_me:10926: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10927   ac_cv_func_krb_verify_secure=yes
10928 else
10929   echo "$as_me: failed program was:" >&5
10930   cat conftest.$ac_ext >&5
10931   ac_cv_func_krb_verify_secure=no
10932 fi
10933 rm -f conftest.$ac_objext conftest.$ac_ext
10934
10935 fi
10936 echo "$as_me:10936: result: $ac_cv_func_krb_verify_secure" >&5
10937 echo "${ECHO_T}$ac_cv_func_krb_verify_secure" >&6
10938         if test "$ac_cv_func_krb_verify_secure" != yes; then
10939
10940 cat >>confdefs.h <<\EOF
10941 #define KRB_VERIFY_SECURE 1
10942 EOF
10943
10944 cat >>confdefs.h <<\EOF
10945 #define KRB_VERIFY_SECURE_FAIL 2
10946 EOF
10947
10948         fi
10949         echo "$as_me:10949: checking for KRB_VERIFY_NOT_SECURE" >&5
10950 echo $ECHO_N "checking for KRB_VERIFY_NOT_SECURE... $ECHO_C" >&6
10951 if test "${ac_cv_func_krb_verify_not_secure+set}" = set; then
10952   echo $ECHO_N "(cached) $ECHO_C" >&6
10953 else
10954   cat >conftest.$ac_ext <<_ACEOF
10955 #line 10955 "configure"
10956 #include "confdefs.h"
10957 #include <krb.h>
10958 int
10959 main ()
10960 {
10961
10962                 int x = KRB_VERIFY_NOT_SECURE
10963   ;
10964   return 0;
10965 }
10966 _ACEOF
10967 rm -f conftest.$ac_objext
10968 if { (eval echo $as_me:10968: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10969   ac_cv_func_krb_verify_not_secure=yes
10970 else
10971   echo "$as_me: failed program was:" >&5
10972   cat conftest.$ac_ext >&5
10973   ac_cv_func_krb_verify_not_secure=no
10974 fi
10975 rm -f conftest.$ac_objext conftest.$ac_ext
10976
10977 fi
10978 echo "$as_me:10978: result: $ac_cv_func_krb_verify_not_secure" >&5
10979 echo "${ECHO_T}$ac_cv_func_krb_verify_not_secure" >&6
10980         if test "$ac_cv_func_krb_verify_not_secure" != yes; then
10981
10982 cat >>confdefs.h <<\EOF
10983 #define KRB_VERIFY_NOT_SECURE 0
10984 EOF
10985
10986         fi
10987
10988 echo "$as_me:10988: checking for krb_enable_debug" >&5
10989 echo $ECHO_N "checking for krb_enable_debug... $ECHO_C" >&6
10990 if test "${ac_cv_funclib_krb_enable_debug+set}" = set; then
10991   echo $ECHO_N "(cached) $ECHO_C" >&6
10992 else
10993
10994 if eval "test \"\$ac_cv_func_krb_enable_debug\" != yes" ; then
10995         ac_save_LIBS="$LIBS"
10996         for ac_lib in "" ; do
10997                 if test -n "$ac_lib"; then
10998                         ac_lib="-l$ac_lib"
10999                 else
11000                         ac_lib=""
11001                 fi
11002                 LIBS=" $ac_lib  $ac_save_LIBS"
11003                 cat >conftest.$ac_ext <<_ACEOF
11004 #line 11004 "configure"
11005 #include "confdefs.h"
11006
11007 int
11008 main ()
11009 {
11010 krb_enable_debug()
11011   ;
11012   return 0;
11013 }
11014 _ACEOF
11015 rm -f conftest.$ac_objext conftest$ac_exeext
11016 if { (eval echo $as_me:11016: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
11017   eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_enable_debug=$ac_lib; else ac_cv_funclib_krb_enable_debug=yes; fi";break
11018 else
11019   echo "$as_me: failed program was:" >&5
11020   cat conftest.$ac_ext >&5
11021 fi
11022 rm -f conftest$ac_exeext conftest.$ac_ext
11023         done
11024         eval "ac_cv_funclib_krb_enable_debug=\${ac_cv_funclib_krb_enable_debug-no}"
11025         LIBS="$ac_save_LIBS"
11026 fi
11027
11028 fi
11029
11030 eval "ac_res=\$ac_cv_funclib_krb_enable_debug"
11031
11032 if false; then
11033
11034 for ac_func in krb_enable_debug
11035 do
11036 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11037 echo "$as_me:11037: checking for $ac_func" >&5
11038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11039 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11040   echo $ECHO_N "(cached) $ECHO_C" >&6
11041 else
11042   cat >conftest.$ac_ext <<_ACEOF
11043 #line 11043 "configure"
11044 #include "confdefs.h"
11045 /* System header to define __stub macros and hopefully few prototypes,
11046     which can conflict with char $ac_func (); below.  */
11047 #include <assert.h>
11048 /* Override any gcc2 internal prototype to avoid an error.  */
11049 #ifdef __cplusplus
11050 extern "C"
11051 #endif
11052 /* We use char because int might match the return type of a gcc2
11053    builtin and then its argument prototype would still apply.  */
11054 char $ac_func ();
11055 char (*f) ();
11056
11057 int
11058 main ()
11059 {
11060 /* The GNU C library defines this for functions which it implements
11061     to always fail with ENOSYS.  Some functions are actually named
11062     something starting with __ and the normal name is an alias.  */
11063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11064 choke me
11065 #else
11066 f = $ac_func;
11067 #endif
11068
11069   ;
11070   return 0;
11071 }
11072 _ACEOF
11073 rm -f conftest.$ac_objext conftest$ac_exeext
11074 if { (eval echo $as_me:11074: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
11075   eval "$ac_ac_var=yes"
11076 else
11077   echo "$as_me: failed program was:" >&5
11078   cat conftest.$ac_ext >&5
11079   eval "$ac_ac_var=no"
11080 fi
11081 rm -f conftest$ac_exeext conftest.$ac_ext
11082 fi
11083 echo "$as_me:11083: result: `eval echo '${'$ac_ac_var'}'`" >&5
11084 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
11085 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11086   cat >>confdefs.h <<EOF
11087 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11088 EOF
11089
11090 fi
11091 done
11092
11093 fi
11094 # krb_enable_debug
11095 eval "ac_tr_func=HAVE_`echo krb_enable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11096 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11097 eval "LIB_krb_enable_debug=$ac_res"
11098
11099 case "$ac_res" in
11100         yes)
11101         eval "ac_cv_func_krb_enable_debug=yes"
11102         eval "LIB_krb_enable_debug="
11103         cat >>confdefs.h <<EOF
11104 #define $ac_tr_func 1
11105 EOF
11106
11107         echo "$as_me:11107: result: yes" >&5
11108 echo "${ECHO_T}yes" >&6
11109         ;;
11110         no)
11111         eval "ac_cv_func_krb_enable_debug=no"
11112         eval "LIB_krb_enable_debug="
11113         echo "$as_me:11113: result: no" >&5
11114 echo "${ECHO_T}no" >&6
11115         ;;
11116         *)
11117         eval "ac_cv_func_krb_enable_debug=yes"
11118         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11119         cat >>confdefs.h <<EOF
11120 #define $ac_tr_func 1
11121 EOF
11122
11123         cat >>confdefs.h <<EOF
11124 #define $ac_tr_lib 1
11125 EOF
11126
11127         echo "$as_me:11127: result: yes, in $ac_res" >&5
11128 echo "${ECHO_T}yes, in $ac_res" >&6
11129         ;;
11130 esac
11131
11132 if test -n "$LIB_krb_enable_debug"; then
11133         LIBS="$LIB_krb_enable_debug $LIBS"
11134 fi
11135
11136 echo "$as_me:11136: checking for krb_disable_debug" >&5
11137 echo $ECHO_N "checking for krb_disable_debug... $ECHO_C" >&6
11138 if test "${ac_cv_funclib_krb_disable_debug+set}" = set; then
11139   echo $ECHO_N "(cached) $ECHO_C" >&6
11140 else
11141
11142 if eval "test \"\$ac_cv_func_krb_disable_debug\" != yes" ; then
11143         ac_save_LIBS="$LIBS"
11144         for ac_lib in "" ; do
11145                 if test -n "$ac_lib"; then
11146                         ac_lib="-l$ac_lib"
11147                 else
11148                         ac_lib=""
11149                 fi
11150                 LIBS=" $ac_lib  $ac_save_LIBS"
11151                 cat >conftest.$ac_ext <<_ACEOF
11152 #line 11152 "configure"
11153 #include "confdefs.h"
11154
11155 int
11156 main ()
11157 {
11158 krb_disable_debug()
11159   ;
11160   return 0;
11161 }
11162 _ACEOF
11163 rm -f conftest.$ac_objext conftest$ac_exeext
11164 if { (eval echo $as_me:11164: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
11165   eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_disable_debug=$ac_lib; else ac_cv_funclib_krb_disable_debug=yes; fi";break
11166 else
11167   echo "$as_me: failed program was:" >&5
11168   cat conftest.$ac_ext >&5
11169 fi
11170 rm -f conftest$ac_exeext conftest.$ac_ext
11171         done
11172         eval "ac_cv_funclib_krb_disable_debug=\${ac_cv_funclib_krb_disable_debug-no}"
11173         LIBS="$ac_save_LIBS"
11174 fi
11175
11176 fi
11177
11178 eval "ac_res=\$ac_cv_funclib_krb_disable_debug"
11179
11180 if false; then
11181
11182 for ac_func in krb_disable_debug
11183 do
11184 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11185 echo "$as_me:11185: checking for $ac_func" >&5
11186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11187 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11188   echo $ECHO_N "(cached) $ECHO_C" >&6
11189 else
11190   cat >conftest.$ac_ext <<_ACEOF
11191 #line 11191 "configure"
11192 #include "confdefs.h"
11193 /* System header to define __stub macros and hopefully few prototypes,
11194     which can conflict with char $ac_func (); below.  */
11195 #include <assert.h>
11196 /* Override any gcc2 internal prototype to avoid an error.  */
11197 #ifdef __cplusplus
11198 extern "C"
11199 #endif
11200 /* We use char because int might match the return type of a gcc2
11201    builtin and then its argument prototype would still apply.  */
11202 char $ac_func ();
11203 char (*f) ();
11204
11205 int
11206 main ()
11207 {
11208 /* The GNU C library defines this for functions which it implements
11209     to always fail with ENOSYS.  Some functions are actually named
11210     something starting with __ and the normal name is an alias.  */
11211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11212 choke me
11213 #else
11214 f = $ac_func;
11215 #endif
11216
11217   ;
11218   return 0;
11219 }
11220 _ACEOF
11221 rm -f conftest.$ac_objext conftest$ac_exeext
11222 if { (eval echo $as_me:11222: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
11223   eval "$ac_ac_var=yes"
11224 else
11225   echo "$as_me: failed program was:" >&5
11226   cat conftest.$ac_ext >&5
11227   eval "$ac_ac_var=no"
11228 fi
11229 rm -f conftest$ac_exeext conftest.$ac_ext
11230 fi
11231 echo "$as_me:11231: result: `eval echo '${'$ac_ac_var'}'`" >&5
11232 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
11233 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11234   cat >>confdefs.h <<EOF
11235 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11236 EOF
11237
11238 fi
11239 done
11240
11241 fi
11242 # krb_disable_debug
11243 eval "ac_tr_func=HAVE_`echo krb_disable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11244 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11245 eval "LIB_krb_disable_debug=$ac_res"
11246
11247 case "$ac_res" in
11248         yes)
11249         eval "ac_cv_func_krb_disable_debug=yes"
11250         eval "LIB_krb_disable_debug="
11251         cat >>confdefs.h <<EOF
11252 #define $ac_tr_func 1
11253 EOF
11254
11255         echo "$as_me:11255: result: yes" >&5
11256 echo "${ECHO_T}yes" >&6
11257         ;;
11258         no)
11259         eval "ac_cv_func_krb_disable_debug=no"
11260         eval "LIB_krb_disable_debug="
11261         echo "$as_me:11261: result: no" >&5
11262 echo "${ECHO_T}no" >&6
11263         ;;
11264         *)
11265         eval "ac_cv_func_krb_disable_debug=yes"
11266         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11267         cat >>confdefs.h <<EOF
11268 #define $ac_tr_func 1
11269 EOF
11270
11271         cat >>confdefs.h <<EOF
11272 #define $ac_tr_lib 1
11273 EOF
11274
11275         echo "$as_me:11275: result: yes, in $ac_res" >&5
11276 echo "${ECHO_T}yes, in $ac_res" >&6
11277         ;;
11278 esac
11279
11280 if test -n "$LIB_krb_disable_debug"; then
11281         LIBS="$LIB_krb_disable_debug $LIBS"
11282 fi
11283
11284 echo "$as_me:11284: checking for krb_get_our_ip_for_realm" >&5
11285 echo $ECHO_N "checking for krb_get_our_ip_for_realm... $ECHO_C" >&6
11286 if test "${ac_cv_funclib_krb_get_our_ip_for_realm+set}" = set; then
11287   echo $ECHO_N "(cached) $ECHO_C" >&6
11288 else
11289
11290 if eval "test \"\$ac_cv_func_krb_get_our_ip_for_realm\" != yes" ; then
11291         ac_save_LIBS="$LIBS"
11292         for ac_lib in "" ; do
11293                 if test -n "$ac_lib"; then
11294                         ac_lib="-l$ac_lib"
11295                 else
11296                         ac_lib=""
11297                 fi
11298                 LIBS=" $ac_lib  $ac_save_LIBS"
11299                 cat >conftest.$ac_ext <<_ACEOF
11300 #line 11300 "configure"
11301 #include "confdefs.h"
11302
11303 int
11304 main ()
11305 {
11306 krb_get_our_ip_for_realm()
11307   ;
11308   return 0;
11309 }
11310 _ACEOF
11311 rm -f conftest.$ac_objext conftest$ac_exeext
11312 if { (eval echo $as_me:11312: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
11313   eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_get_our_ip_for_realm=$ac_lib; else ac_cv_funclib_krb_get_our_ip_for_realm=yes; fi";break
11314 else
11315   echo "$as_me: failed program was:" >&5
11316   cat conftest.$ac_ext >&5
11317 fi
11318 rm -f conftest$ac_exeext conftest.$ac_ext
11319         done
11320         eval "ac_cv_funclib_krb_get_our_ip_for_realm=\${ac_cv_funclib_krb_get_our_ip_for_realm-no}"
11321         LIBS="$ac_save_LIBS"
11322 fi
11323
11324 fi
11325
11326 eval "ac_res=\$ac_cv_funclib_krb_get_our_ip_for_realm"
11327
11328 if false; then
11329
11330 for ac_func in krb_get_our_ip_for_realm
11331 do
11332 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11333 echo "$as_me:11333: checking for $ac_func" >&5
11334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11335 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11336   echo $ECHO_N "(cached) $ECHO_C" >&6
11337 else
11338   cat >conftest.$ac_ext <<_ACEOF
11339 #line 11339 "configure"
11340 #include "confdefs.h"
11341 /* System header to define __stub macros and hopefully few prototypes,
11342     which can conflict with char $ac_func (); below.  */
11343 #include <assert.h>
11344 /* Override any gcc2 internal prototype to avoid an error.  */
11345 #ifdef __cplusplus
11346 extern "C"
11347 #endif
11348 /* We use char because int might match the return type of a gcc2
11349    builtin and then its argument prototype would still apply.  */
11350 char $ac_func ();
11351 char (*f) ();
11352
11353 int
11354 main ()
11355 {
11356 /* The GNU C library defines this for functions which it implements
11357     to always fail with ENOSYS.  Some functions are actually named
11358     something starting with __ and the normal name is an alias.  */
11359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11360 choke me
11361 #else
11362 f = $ac_func;
11363 #endif
11364
11365   ;
11366   return 0;
11367 }
11368 _ACEOF
11369 rm -f conftest.$ac_objext conftest$ac_exeext
11370 if { (eval echo $as_me:11370: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
11371   eval "$ac_ac_var=yes"
11372 else
11373   echo "$as_me: failed program was:" >&5
11374   cat conftest.$ac_ext >&5
11375   eval "$ac_ac_var=no"
11376 fi
11377 rm -f conftest$ac_exeext conftest.$ac_ext
11378 fi
11379 echo "$as_me:11379: result: `eval echo '${'$ac_ac_var'}'`" >&5
11380 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
11381 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11382   cat >>confdefs.h <<EOF
11383 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11384 EOF
11385
11386 fi
11387 done
11388
11389 fi
11390 # krb_get_our_ip_for_realm
11391 eval "ac_tr_func=HAVE_`echo krb_get_our_ip_for_realm | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11392 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11393 eval "LIB_krb_get_our_ip_for_realm=$ac_res"
11394
11395 case "$ac_res" in
11396         yes)
11397         eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
11398         eval "LIB_krb_get_our_ip_for_realm="
11399         cat >>confdefs.h <<EOF
11400 #define $ac_tr_func 1
11401 EOF
11402
11403         echo "$as_me:11403: result: yes" >&5
11404 echo "${ECHO_T}yes" >&6
11405         ;;
11406         no)
11407         eval "ac_cv_func_krb_get_our_ip_for_realm=no"
11408         eval "LIB_krb_get_our_ip_for_realm="
11409         echo "$as_me:11409: result: no" >&5
11410 echo "${ECHO_T}no" >&6
11411         ;;
11412         *)
11413         eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
11414         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11415         cat >>confdefs.h <<EOF
11416 #define $ac_tr_func 1
11417 EOF
11418
11419         cat >>confdefs.h <<EOF
11420 #define $ac_tr_lib 1
11421 EOF
11422
11423         echo "$as_me:11423: result: yes, in $ac_res" >&5
11424 echo "${ECHO_T}yes, in $ac_res" >&6
11425         ;;
11426 esac
11427
11428 if test -n "$LIB_krb_get_our_ip_for_realm"; then
11429         LIBS="$LIB_krb_get_our_ip_for_realm $LIBS"
11430 fi
11431
11432         echo "$as_me:11432: checking for krb_mk_req with const arguments" >&5
11433 echo $ECHO_N "checking for krb_mk_req with const arguments... $ECHO_C" >&6
11434 if test "${ac_cv_func_krb_mk_req_const+set}" = set; then
11435   echo $ECHO_N "(cached) $ECHO_C" >&6
11436 else
11437   cat >conftest.$ac_ext <<_ACEOF
11438 #line 11438 "configure"
11439 #include "confdefs.h"
11440 #include <krb.h>
11441                 int krb_mk_req(KTEXT a, const char *s, const char *i,
11442                                const char *r, int32_t checksum)
11443                 { return 17; }
11444 int
11445 main ()
11446 {
11447
11448   ;
11449   return 0;
11450 }
11451 _ACEOF
11452 rm -f conftest.$ac_objext
11453 if { (eval echo $as_me:11453: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
11454   ac_cv_func_krb_mk_req_const=yes
11455 else
11456   echo "$as_me: failed program was:" >&5
11457   cat conftest.$ac_ext >&5
11458   ac_cv_func_krb_mk_req_const=no
11459 fi
11460 rm -f conftest.$ac_objext conftest.$ac_ext
11461
11462 fi
11463 echo "$as_me:11463: result: $ac_cv_func_krb_mk_req_const" >&5
11464 echo "${ECHO_T}$ac_cv_func_krb_mk_req_const" >&6
11465         if test "$ac_cv_func_krb_mk_req_const" = "yes"; then
11466
11467 cat >>confdefs.h <<\EOF
11468 #define KRB_MK_REQ_CONST 1
11469 EOF
11470
11471         fi
11472
11473         LIBS="$save_LIBS"
11474         CFLAGS="$save_CFLAGS"
11475         LIB_kdb="-lkdb -lkrb"
11476         test_LIB_krb4="$LIB_krb4"
11477         if test "$krb4_libdir"; then
11478                 LIB_krb4="-R $krb4_libdir $LIB_krb4"
11479                 LIB_kdb="-R $krb4_libdir -L$krb4_libdir $LIB_kdb"
11480         fi
11481 fi
11482
11483 if test "$with_krb4" != "no"; then
11484   KRB4_TRUE=
11485   KRB4_FALSE='#'
11486 else
11487   KRB4_TRUE='#'
11488   KRB4_FALSE=
11489 fi
11490
11491 if true; then
11492   KRB5_TRUE=
11493   KRB5_FALSE='#'
11494 else
11495   KRB5_TRUE='#'
11496   KRB5_FALSE=
11497 fi
11498
11499 if true; then
11500   do_roken_rename_TRUE=
11501   do_roken_rename_FALSE='#'
11502 else
11503   do_roken_rename_TRUE='#'
11504   do_roken_rename_FALSE=
11505 fi
11506
11507 cat >>confdefs.h <<\EOF
11508 #define KRB5 1
11509 EOF
11510
11511 # Check whether --enable-dce or --disable-dce was given.
11512 if test "${enable_dce+set}" = set; then
11513   enableval="$enable_dce"
11514
11515 fi;
11516 if test "$enable_dce" = yes; then
11517
11518 cat >>confdefs.h <<\EOF
11519 #define DCE 1
11520 EOF
11521
11522 fi
11523
11524 if test "$enable_dce" = yes; then
11525   DCE_TRUE=
11526   DCE_FALSE='#'
11527 else
11528   DCE_TRUE='#'
11529   DCE_FALSE=
11530 fi
11531
11532 ## XXX quite horrible:
11533 if test -f /etc/ibmcxx.cfg; then
11534         dpagaix_LDADD=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'`
11535         dpagaix_CFLAGS=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'`
11536 else
11537         dpagaix_CFLAGS="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce"
11538         dpagaix_LDADD="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r"
11539         dpagaix_LDFLAGS="-Wl,-bI:dfspag.exp"
11540 fi
11541
11542 # Check whether --enable-kaserver or --disable-kaserver was given.
11543 if test "${enable_kaserver+set}" = set; then
11544   enableval="$enable_kaserver"
11545
11546 fi;
11547 if test "$enable_kaserver" = yes; then
11548
11549 cat >>confdefs.h <<\EOF
11550 #define KASERVER 1
11551 EOF
11552
11553         if test "$with_krb4" = "no"; then
11554                 {  echo "$as_me: error: kaserver requires krb4" >&2
11555   { (exit 1); exit; }; }
11556                 exit 1
11557         fi
11558 fi
11559
11560 # Check whether --enable-kaserver-db or --disable-kaserver-db was given.
11561 if test "${enable_kaserver_db+set}" = set; then
11562   enableval="$enable_kaserver_db"
11563
11564 fi;
11565 if test "$enable_kaserver_db" = yes; then
11566
11567 cat >>confdefs.h <<\EOF
11568 #define KASERVER_DB 1
11569 EOF
11570
11571         if test "$with_krb4" = "no"; then
11572                 {  echo "$as_me: error: kaserver-db requires krb4" >&2
11573   { (exit 1); exit; }; }
11574                 exit 1
11575         fi
11576 fi
11577
11578 otp=yes
11579 # Check whether --enable-otp or --disable-otp was given.
11580 if test "${enable_otp+set}" = set; then
11581   enableval="$enable_otp"
11582
11583 if test "$enableval" = "no"; then
11584         otp=no
11585 fi
11586
11587 fi;
11588 if test "$otp" = "yes"; then
11589
11590 cat >>confdefs.h <<\EOF
11591 #define OTP 1
11592 EOF
11593
11594         LIB_otp='$(top_builddir)/lib/otp/libotp.la'
11595 fi
11596
11597 if test "$otp" = yes; then
11598   OTP_TRUE=
11599   OTP_FALSE='#'
11600 else
11601   OTP_TRUE='#'
11602   OTP_FALSE=
11603 fi
11604
11605 # Check whether --enable-osfc2 or --disable-osfc2 was given.
11606 if test "${enable_osfc2+set}" = set; then
11607   enableval="$enable_osfc2"
11608
11609 fi;
11610 LIB_security=
11611 if test "$enable_osfc2" = yes; then
11612
11613 cat >>confdefs.h <<\EOF
11614 #define HAVE_OSFC2 1
11615 EOF
11616
11617         LIB_security=-lsecurity
11618 fi
11619
11620 # Extract the first word of "nroff", so it can be a program name with args.
11621 set dummy nroff; ac_word=$2
11622 echo "$as_me:11622: checking for $ac_word" >&5
11623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11624 if test "${ac_cv_path_NROFF+set}" = set; then
11625   echo $ECHO_N "(cached) $ECHO_C" >&6
11626 else
11627   case $NROFF in
11628   [\\/]* | ?:[\\/]*)
11629   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
11630   ;;
11631   *)
11632   ac_save_IFS=$IFS; IFS=':'
11633 ac_dummy="$PATH"
11634 for ac_dir in $ac_dummy; do
11635   IFS=$ac_save_IFS
11636   test -z "$ac_dir" && ac_dir=.
11637   if test -f "$ac_dir/$ac_word"; then
11638    ac_cv_path_NROFF="$ac_dir/$ac_word"
11639    break
11640 fi
11641 done
11642
11643   ;;
11644 esac
11645 fi
11646 NROFF=$ac_cv_path_NROFF
11647
11648 if test -n "$NROFF"; then
11649   echo "$as_me:11649: result: $NROFF" >&5
11650 echo "${ECHO_T}$NROFF" >&6
11651 else
11652   echo "$as_me:11652: result: no" >&5
11653 echo "${ECHO_T}no" >&6
11654 fi
11655
11656 # Extract the first word of "groff", so it can be a program name with args.
11657 set dummy groff; ac_word=$2
11658 echo "$as_me:11658: checking for $ac_word" >&5
11659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11660 if test "${ac_cv_path_GROFF+set}" = set; then
11661   echo $ECHO_N "(cached) $ECHO_C" >&6
11662 else
11663   case $GROFF in
11664   [\\/]* | ?:[\\/]*)
11665   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
11666   ;;
11667   *)
11668   ac_save_IFS=$IFS; IFS=':'
11669 ac_dummy="$PATH"
11670 for ac_dir in $ac_dummy; do
11671   IFS=$ac_save_IFS
11672   test -z "$ac_dir" && ac_dir=.
11673   if test -f "$ac_dir/$ac_word"; then
11674    ac_cv_path_GROFF="$ac_dir/$ac_word"
11675    break
11676 fi
11677 done
11678
11679   ;;
11680 esac
11681 fi
11682 GROFF=$ac_cv_path_GROFF
11683
11684 if test -n "$GROFF"; then
11685   echo "$as_me:11685: result: $GROFF" >&5
11686 echo "${ECHO_T}$GROFF" >&6
11687 else
11688   echo "$as_me:11688: result: no" >&5
11689 echo "${ECHO_T}no" >&6
11690 fi
11691
11692 echo "$as_me:11692: checking how to format man pages" >&5
11693 echo $ECHO_N "checking how to format man pages... $ECHO_C" >&6
11694 if test "${ac_cv_sys_man_format+set}" = set; then
11695   echo $ECHO_N "(cached) $ECHO_C" >&6
11696 else
11697   cat > conftest.1 << END
11698 .Dd January 1, 1970
11699 .Dt CONFTEST 1
11700 .Sh NAME
11701 .Nm conftest
11702 .Nd
11703 foobar
11704 END
11705
11706 if test "$NROFF" ; then
11707         for i in "-mdoc" "-mandoc"; do
11708                 if "$NROFF" $i conftest.1 2> /dev/null | \
11709                         grep Jan > /dev/null 2>&1 ; then
11710                         ac_cv_sys_man_format="$NROFF $i"
11711                         break
11712                 fi
11713         done
11714 fi
11715 if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then
11716         for i in "-mdoc" "-mandoc"; do
11717                 if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \
11718                         grep Jan > /dev/null 2>&1 ; then
11719                         ac_cv_sys_man_format="$GROFF -Tascii $i"
11720                         break
11721                 fi
11722         done
11723 fi
11724 if test "$ac_cv_sys_man_format"; then
11725         ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@"
11726 fi
11727
11728 fi
11729 echo "$as_me:11729: result: $ac_cv_sys_man_format" >&5
11730 echo "${ECHO_T}$ac_cv_sys_man_format" >&6
11731 if test "$ac_cv_sys_man_format"; then
11732         CATMAN="$ac_cv_sys_man_format"
11733
11734 fi
11735
11736 if test "$CATMAN"; then
11737   CATMAN_TRUE=
11738   CATMAN_FALSE='#'
11739 else
11740   CATMAN_TRUE='#'
11741   CATMAN_FALSE=
11742 fi
11743 echo "$as_me:11743: checking extension of pre-formatted manual pages" >&5
11744 echo $ECHO_N "checking extension of pre-formatted manual pages... $ECHO_C" >&6
11745 if test "${ac_cv_sys_catman_ext+set}" = set; then
11746   echo $ECHO_N "(cached) $ECHO_C" >&6
11747 else
11748   if grep _suffix /etc/man.conf > /dev/null 2>&1; then
11749         ac_cv_sys_catman_ext=0
11750 else
11751         ac_cv_sys_catman_ext=number
11752 fi
11753
11754 fi
11755 echo "$as_me:11755: result: $ac_cv_sys_catman_ext" >&5
11756 echo "${ECHO_T}$ac_cv_sys_catman_ext" >&6
11757 if test "$ac_cv_sys_catman_ext" = number; then
11758         CATMANEXT='$$section'
11759 else
11760         CATMANEXT=0
11761 fi
11762
11763 # Check whether --with-readline or --without-readline was given.
11764 if test "${with_readline+set}" = set; then
11765   withval="$with_readline"
11766
11767 fi;
11768
11769 # Check whether --with-readline-lib or --without-readline-lib was given.
11770 if test "${with_readline_lib+set}" = set; then
11771   withval="$with_readline_lib"
11772   if test "$withval" = "yes" -o "$withval" = "no"; then
11773   {  echo "$as_me: error: No argument for --with-readline-lib" >&2
11774   { (exit 1); exit; }; }
11775 elif test "X$with_readline" = "X"; then
11776   with_readline=yes
11777 fi
11778 fi;
11779
11780 # Check whether --with-readline-include or --without-readline-include was given.
11781 if test "${with_readline_include+set}" = set; then
11782   withval="$with_readline_include"
11783   if test "$withval" = "yes" -o "$withval" = "no"; then
11784   {  echo "$as_me: error: No argument for --with-readline-include" >&2
11785   { (exit 1); exit; }; }
11786 elif test "X$with_readline" = "X"; then
11787   with_readline=yes
11788 fi
11789 fi;
11790
11791 echo "$as_me:11791: checking for readline" >&5
11792 echo $ECHO_N "checking for readline... $ECHO_C" >&6
11793
11794 case "$with_readline" in
11795 yes)    ;;
11796 no)     ;;
11797 "")     ;;
11798 *)      if test "$with_readline_include" = ""; then
11799                 with_readline_include="$with_readline/include"
11800         fi
11801         if test "$with_readline_lib" = ""; then
11802                 with_readline_lib="$with_readline/lib$abilibdirext"
11803         fi
11804         ;;
11805 esac
11806 header_dirs=
11807 lib_dirs=
11808 d=''
11809 for i in $d; do
11810         header_dirs="$header_dirs $i/include"
11811         lib_dirs="$lib_dirs $i/lib$abilibdirext"
11812 done
11813
11814 case "$with_readline_include" in
11815 yes) ;;
11816 no)  ;;
11817 *)   header_dirs="$with_readline_include $header_dirs";;
11818 esac
11819 case "$with_readline_lib" in
11820 yes) ;;
11821 no)  ;;
11822 *)   lib_dirs="$with_readline_lib $lib_dirs";;
11823 esac
11824
11825 save_CFLAGS="$CFLAGS"
11826 save_LIBS="$LIBS"
11827 ires= lres=
11828 for i in $header_dirs; do
11829         CFLAGS="-I$i $save_CFLAGS"
11830         cat >conftest.$ac_ext <<_ACEOF
11831 #line 11831 "configure"
11832 #include "confdefs.h"
11833 #include <stdio.h>
11834  #include <readline.h>
11835 int
11836 main ()
11837 {
11838
11839   ;
11840   return 0;
11841 }
11842 _ACEOF
11843 rm -f conftest.$ac_objext
11844 if { (eval echo $as_me:11844: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
11845   ires=$i;break
11846 else
11847   echo "$as_me: failed program was:" >&5
11848   cat conftest.$ac_ext >&5
11849 fi
11850 rm -f conftest.$ac_objext conftest.$ac_ext
11851 done
11852 for i in $lib_dirs; do
11853         LIBS="-L$i -lreadline  $save_LIBS"
11854         cat >conftest.$ac_ext <<_ACEOF
11855 #line 11855 "configure"
11856 #include "confdefs.h"
11857 #include <stdio.h>
11858  #include <readline.h>
11859 int
11860 main ()
11861 {
11862
11863   ;
11864   return 0;
11865 }
11866 _ACEOF
11867 rm -f conftest.$ac_objext conftest$ac_exeext
11868 if { (eval echo $as_me:11868: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
11869   lres=$i;break
11870 else
11871   echo "$as_me: failed program was:" >&5
11872   cat conftest.$ac_ext >&5
11873 fi
11874 rm -f conftest$ac_exeext conftest.$ac_ext
11875 done
11876 CFLAGS="$save_CFLAGS"
11877 LIBS="$save_LIBS"
11878
11879 if test "$ires" -a "$lres" -a "$with_readline" != "no"; then
11880         readline_includedir="$ires"
11881         readline_libdir="$lres"
11882         INCLUDE_readline="-I$readline_includedir"
11883         LIB_readline="-L$readline_libdir -lreadline"
11884
11885 cat >>confdefs.h <<EOF
11886 #define READLINE 1
11887 EOF
11888
11889         with_readline=yes
11890         echo "$as_me:11890: result: headers $ires, libraries $lres" >&5
11891 echo "${ECHO_T}headers $ires, libraries $lres" >&6
11892 else
11893         INCLUDE_readline=
11894         LIB_readline=
11895         with_readline=no
11896         echo "$as_me:11896: result: $with_readline" >&5
11897 echo "${ECHO_T}$with_readline" >&6
11898 fi
11899
11900 # Check whether --with-hesiod or --without-hesiod was given.
11901 if test "${with_hesiod+set}" = set; then
11902   withval="$with_hesiod"
11903
11904 fi;
11905
11906 # Check whether --with-hesiod-lib or --without-hesiod-lib was given.
11907 if test "${with_hesiod_lib+set}" = set; then
11908   withval="$with_hesiod_lib"
11909   if test "$withval" = "yes" -o "$withval" = "no"; then
11910   {  echo "$as_me: error: No argument for --with-hesiod-lib" >&2
11911   { (exit 1); exit; }; }
11912 elif test "X$with_hesiod" = "X"; then
11913   with_hesiod=yes
11914 fi
11915 fi;
11916
11917 # Check whether --with-hesiod-include or --without-hesiod-include was given.
11918 if test "${with_hesiod_include+set}" = set; then
11919   withval="$with_hesiod_include"
11920   if test "$withval" = "yes" -o "$withval" = "no"; then
11921   {  echo "$as_me: error: No argument for --with-hesiod-include" >&2
11922   { (exit 1); exit; }; }
11923 elif test "X$with_hesiod" = "X"; then
11924   with_hesiod=yes
11925 fi
11926 fi;
11927
11928 echo "$as_me:11928: checking for hesiod" >&5
11929 echo $ECHO_N "checking for hesiod... $ECHO_C" >&6
11930
11931 case "$with_hesiod" in
11932 yes)    ;;
11933 no)     ;;
11934 "")     ;;
11935 *)      if test "$with_hesiod_include" = ""; then
11936                 with_hesiod_include="$with_hesiod/include"
11937         fi
11938         if test "$with_hesiod_lib" = ""; then
11939                 with_hesiod_lib="$with_hesiod/lib$abilibdirext"
11940         fi
11941         ;;
11942 esac
11943 header_dirs=
11944 lib_dirs=
11945 d=''
11946 for i in $d; do
11947         header_dirs="$header_dirs $i/include"
11948         lib_dirs="$lib_dirs $i/lib$abilibdirext"
11949 done
11950
11951 case "$with_hesiod_include" in
11952 yes) ;;
11953 no)  ;;
11954 *)   header_dirs="$with_hesiod_include $header_dirs";;
11955 esac
11956 case "$with_hesiod_lib" in
11957 yes) ;;
11958 no)  ;;
11959 *)   lib_dirs="$with_hesiod_lib $lib_dirs";;
11960 esac
11961
11962 save_CFLAGS="$CFLAGS"
11963 save_LIBS="$LIBS"
11964 ires= lres=
11965 for i in $header_dirs; do
11966         CFLAGS="-I$i $save_CFLAGS"
11967         cat >conftest.$ac_ext <<_ACEOF
11968 #line 11968 "configure"
11969 #include "confdefs.h"
11970 #include <hesiod.h>
11971 int
11972 main ()
11973 {
11974
11975   ;
11976   return 0;
11977 }
11978 _ACEOF
11979 rm -f conftest.$ac_objext
11980 if { (eval echo $as_me:11980: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
11981   ires=$i;break
11982 else
11983   echo "$as_me: failed program was:" >&5
11984   cat conftest.$ac_ext >&5
11985 fi
11986 rm -f conftest.$ac_objext conftest.$ac_ext
11987 done
11988 for i in $lib_dirs; do
11989         LIBS="-L$i -lhesiod  $save_LIBS"
11990         cat >conftest.$ac_ext <<_ACEOF
11991 #line 11991 "configure"
11992 #include "confdefs.h"
11993 #include <hesiod.h>
11994 int
11995 main ()
11996 {
11997
11998   ;
11999   return 0;
12000 }
12001 _ACEOF
12002 rm -f conftest.$ac_objext conftest$ac_exeext
12003 if { (eval echo $as_me:12003: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
12004   lres=$i;break
12005 else
12006   echo "$as_me: failed program was:" >&5
12007   cat conftest.$ac_ext >&5
12008 fi
12009 rm -f conftest$ac_exeext conftest.$ac_ext
12010 done
12011 CFLAGS="$save_CFLAGS"
12012 LIBS="$save_LIBS"
12013
12014 if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then
12015         hesiod_includedir="$ires"
12016         hesiod_libdir="$lres"
12017         INCLUDE_hesiod="-I$hesiod_includedir"
12018         LIB_hesiod="-L$hesiod_libdir -lhesiod"
12019
12020 cat >>confdefs.h <<EOF
12021 #define HESIOD 1
12022 EOF
12023
12024         with_hesiod=yes
12025         echo "$as_me:12025: result: headers $ires, libraries $lres" >&5
12026 echo "${ECHO_T}headers $ires, libraries $lres" >&6
12027 else
12028         INCLUDE_hesiod=
12029         LIB_hesiod=
12030         with_hesiod=no
12031         echo "$as_me:12031: result: $with_hesiod" >&5
12032 echo "${ECHO_T}$with_hesiod" >&6
12033 fi
12034
12035 # Check whether --enable-bigendian or --disable-bigendian was given.
12036 if test "${enable_bigendian+set}" = set; then
12037   enableval="$enable_bigendian"
12038   krb_cv_c_bigendian=yes
12039 fi;
12040 # Check whether --enable-littleendian or --disable-littleendian was given.
12041 if test "${enable_littleendian+set}" = set; then
12042   enableval="$enable_littleendian"
12043   krb_cv_c_bigendian=no
12044 fi;
12045 echo "$as_me:12045: checking whether byte order is known at compile time" >&5
12046 echo $ECHO_N "checking whether byte order is known at compile time... $ECHO_C" >&6
12047 if test "${krb_cv_c_bigendian_compile+set}" = set; then
12048   echo $ECHO_N "(cached) $ECHO_C" >&6
12049 else
12050   cat >conftest.$ac_ext <<_ACEOF
12051 #line 12051 "configure"
12052 #include "confdefs.h"
12053
12054 #include <sys/types.h>
12055 #include <sys/param.h>
12056 int
12057 main ()
12058 {
12059
12060 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12061  bogus endian macros
12062 #endif
12063   ;
12064   return 0;
12065 }
12066 _ACEOF
12067 rm -f conftest.$ac_objext
12068 if { (eval echo $as_me:12068: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
12069   krb_cv_c_bigendian_compile=yes
12070 else
12071   echo "$as_me: failed program was:" >&5
12072   cat conftest.$ac_ext >&5
12073   krb_cv_c_bigendian_compile=no
12074 fi
12075 rm -f conftest.$ac_objext conftest.$ac_ext
12076 fi
12077 echo "$as_me:12077: result: $krb_cv_c_bigendian_compile" >&5
12078 echo "${ECHO_T}$krb_cv_c_bigendian_compile" >&6
12079 echo "$as_me:12079: checking whether byte ordering is bigendian" >&5
12080 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
12081 if test "${krb_cv_c_bigendian+set}" = set; then
12082   echo $ECHO_N "(cached) $ECHO_C" >&6
12083 else
12084
12085   if test "$krb_cv_c_bigendian_compile" = "yes"; then
12086     cat >conftest.$ac_ext <<_ACEOF
12087 #line 12087 "configure"
12088 #include "confdefs.h"
12089
12090 #include <sys/types.h>
12091 #include <sys/param.h>
12092 int
12093 main ()
12094 {
12095
12096 #if BYTE_ORDER != BIG_ENDIAN
12097   not big endian
12098 #endif
12099   ;
12100   return 0;
12101 }
12102 _ACEOF
12103 rm -f conftest.$ac_objext
12104 if { (eval echo $as_me:12104: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
12105   krb_cv_c_bigendian=yes
12106 else
12107   echo "$as_me: failed program was:" >&5
12108   cat conftest.$ac_ext >&5
12109   krb_cv_c_bigendian=no
12110 fi
12111 rm -f conftest.$ac_objext conftest.$ac_ext
12112   else
12113     if test "$cross_compiling" = yes; then
12114   {  echo "$as_me: error: specify either --enable-bigendian or --enable-littleendian" >&2
12115   { (exit 1); exit; }; }
12116 else
12117   cat >conftest.$ac_ext <<_ACEOF
12118 #line 12118 "configure"
12119 #include "confdefs.h"
12120 main () {
12121       /* Are we little or big endian?  From Harbison&Steele.  */
12122       union
12123       {
12124         long l;
12125         char c[sizeof (long)];
12126     } u;
12127     u.l = 1;
12128     exit (u.c[sizeof (long) - 1] == 1);
12129   }
12130 _ACEOF
12131 rm -f conftest$ac_exeext
12132 { (eval echo $as_me:12132: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
12133   (./conftest$ac_exeext) >&5 2>&1;
12134 ac_status=$?
12135 if test $ac_status = 0; then
12136   krb_cv_c_bigendian=no
12137 else
12138   echo "$as_me: program exited with status $ac_status" >&5
12139 echo "$as_me: failed program was:" >&5
12140 cat conftest.$ac_ext >&5
12141 krb_cv_c_bigendian=yes
12142 fi
12143
12144 rm -f conftest$ac_exeext conftest.$ac_ext
12145 fi
12146
12147   fi
12148
12149 fi
12150 echo "$as_me:12150: result: $krb_cv_c_bigendian" >&5
12151 echo "${ECHO_T}$krb_cv_c_bigendian" >&6
12152 if test "$krb_cv_c_bigendian" = "yes"; then
12153
12154 cat >>confdefs.h <<\EOF
12155 #define WORDS_BIGENDIAN 1
12156 EOF
12157 fi
12158 if test "$krb_cv_c_bigendian_compile" = "yes"; then
12159
12160 cat >>confdefs.h <<\EOF
12161 #define ENDIANESS_IN_SYS_PARAM_H 1
12162 EOF
12163 fi
12164
12165 echo "$as_me:12165: checking for inline" >&5
12166 echo $ECHO_N "checking for inline... $ECHO_C" >&6
12167 if test "${ac_cv_c_inline+set}" = set; then
12168   echo $ECHO_N "(cached) $ECHO_C" >&6
12169 else
12170   ac_cv_c_inline=no
12171 for ac_kw in inline __inline__ __inline; do
12172   cat >conftest.$ac_ext <<_ACEOF
12173 #line 12173 "configure"
12174 #include "confdefs.h"
12175 #ifndef __cplusplus
12176 $ac_kw int foo () {return 0; }
12177 #endif
12178
12179 _ACEOF
12180 rm -f conftest.$ac_objext
12181 if { (eval echo $as_me:12181: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
12182   ac_cv_c_inline=$ac_kw; break
12183 else
12184   echo "$as_me: failed program was:" >&5
12185   cat conftest.$ac_ext >&5
12186 fi
12187 rm -f conftest.$ac_objext conftest.$ac_ext
12188 done
12189
12190 fi
12191 echo "$as_me:12191: result: $ac_cv_c_inline" >&5
12192 echo "${ECHO_T}$ac_cv_c_inline" >&6
12193 case $ac_cv_c_inline in
12194   inline | yes) ;;
12195   no)
12196 cat >>confdefs.h <<\EOF
12197 #define inline
12198 EOF
12199  ;;
12200   *)  cat >>confdefs.h <<EOF
12201 #define inline $ac_cv_c_inline
12202 EOF
12203  ;;
12204 esac
12205
12206 aix=no
12207 case "$host" in
12208 *-*-aix3*)
12209         aix=3
12210         ;;
12211 *-*-aix4*)
12212         aix=4
12213         ;;
12214 esac
12215
12216 if test "$aix" != no; then
12217   AIX_TRUE=
12218   AIX_FALSE='#'
12219 else
12220   AIX_TRUE='#'
12221   AIX_FALSE=
12222 fi
12223
12224 if test "$aix" = 4; then
12225   AIX4_TRUE=
12226   AIX4_FALSE='#'
12227 else
12228   AIX4_TRUE='#'
12229   AIX4_FALSE=
12230 fi
12231 aix_dynamic_afs=yes
12232
12233 if test "$aix_dynamic_afs" = yes; then
12234   AIX_DYNAMIC_AFS_TRUE=
12235   AIX_DYNAMIC_AFS_FALSE='#'
12236 else
12237   AIX_DYNAMIC_AFS_TRUE='#'
12238   AIX_DYNAMIC_AFS_FALSE=
12239 fi
12240
12241 echo "$as_me:12241: checking for dlopen" >&5
12242 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12243 if test "${ac_cv_funclib_dlopen+set}" = set; then
12244   echo $ECHO_N "(cached) $ECHO_C" >&6
12245 else
12246
12247 if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then
12248         ac_save_LIBS="$LIBS"
12249         for ac_lib in "" dl; do
12250                 if test -n "$ac_lib"; then
12251                         ac_lib="-l$ac_lib"
12252                 else
12253                         ac_lib=""
12254                 fi
12255                 LIBS=" $ac_lib  $ac_save_LIBS"
12256                 cat >conftest.$ac_ext <<_ACEOF
12257 #line 12257 "configure"
12258 #include "confdefs.h"
12259
12260 int
12261 main ()
12262 {
12263 dlopen()
12264   ;
12265   return 0;
12266 }
12267 _ACEOF
12268 rm -f conftest.$ac_objext conftest$ac_exeext
12269 if { (eval echo $as_me:12269: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
12270   eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break
12271 else
12272   echo "$as_me: failed program was:" >&5
12273   cat conftest.$ac_ext >&5
12274 fi
12275 rm -f conftest$ac_exeext conftest.$ac_ext
12276         done
12277         eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}"
12278         LIBS="$ac_save_LIBS"
12279 fi
12280
12281 fi
12282
12283 eval "ac_res=\$ac_cv_funclib_dlopen"
12284
12285 if false; then
12286
12287 for ac_func in dlopen
12288 do
12289 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
12290 echo "$as_me:12290: checking for $ac_func" >&5
12291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12292 if eval "test \"\${$ac_ac_var+set}\" = set"; then
12293   echo $ECHO_N "(cached) $ECHO_C" >&6
12294 else
12295   cat >conftest.$ac_ext <<_ACEOF
12296 #line 12296 "configure"
12297 #include "confdefs.h"
12298 /* System header to define __stub macros and hopefully few prototypes,
12299     which can conflict with char $ac_func (); below.  */
12300 #include <assert.h>
12301 /* Override any gcc2 internal prototype to avoid an error.  */
12302 #ifdef __cplusplus
12303 extern "C"
12304 #endif
12305 /* We use char because int might match the return type of a gcc2
12306    builtin and then its argument prototype would still apply.  */
12307 char $ac_func ();
12308 char (*f) ();
12309
12310 int
12311 main ()
12312 {
12313 /* The GNU C library defines this for functions which it implements
12314     to always fail with ENOSYS.  Some functions are actually named
12315     something starting with __ and the normal name is an alias.  */
12316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12317 choke me
12318 #else
12319 f = $ac_func;
12320 #endif
12321
12322   ;
12323   return 0;
12324 }
12325 _ACEOF
12326 rm -f conftest.$ac_objext conftest$ac_exeext
12327 if { (eval echo $as_me:12327: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
12328   eval "$ac_ac_var=yes"
12329 else
12330   echo "$as_me: failed program was:" >&5
12331   cat conftest.$ac_ext >&5
12332   eval "$ac_ac_var=no"
12333 fi
12334 rm -f conftest$ac_exeext conftest.$ac_ext
12335 fi
12336 echo "$as_me:12336: result: `eval echo '${'$ac_ac_var'}'`" >&5
12337 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
12338 if test `eval echo '${'$ac_ac_var'}'` = yes; then
12339   cat >>confdefs.h <<EOF
12340 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
12341 EOF
12342
12343 fi
12344 done
12345
12346 fi
12347 # dlopen
12348 eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12349 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12350 eval "LIB_dlopen=$ac_res"
12351
12352 case "$ac_res" in
12353         yes)
12354         eval "ac_cv_func_dlopen=yes"
12355         eval "LIB_dlopen="
12356         cat >>confdefs.h <<EOF
12357 #define $ac_tr_func 1
12358 EOF
12359
12360         echo "$as_me:12360: result: yes" >&5
12361 echo "${ECHO_T}yes" >&6
12362         ;;
12363         no)
12364         eval "ac_cv_func_dlopen=no"
12365         eval "LIB_dlopen="
12366         echo "$as_me:12366: result: no" >&5
12367 echo "${ECHO_T}no" >&6
12368         ;;
12369         *)
12370         eval "ac_cv_func_dlopen=yes"
12371         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
12372         cat >>confdefs.h <<EOF
12373 #define $ac_tr_func 1
12374 EOF
12375
12376         cat >>confdefs.h <<EOF
12377 #define $ac_tr_lib 1
12378 EOF
12379
12380         echo "$as_me:12380: result: yes, in $ac_res" >&5
12381 echo "${ECHO_T}yes, in $ac_res" >&6
12382         ;;
12383 esac
12384
12385 if test "$aix" != no; then
12386         if test "$aix_dynamic_afs" = yes; then
12387                 if test "$ac_cv_funclib_dlopen" = yes; then
12388                         AIX_EXTRA_KAFS=
12389                 elif test "$ac_cv_funclib_dlopen" != no; then
12390                         AIX_EXTRA_KAFS="$ac_cv_funclib_dlopen"
12391                 else
12392                         AIX_EXTRA_KAFS=-lld
12393                 fi
12394         else
12395                 AIX_EXTRA_KAFS=
12396         fi
12397 fi
12398
12399 if test "$ac_cv_funclib_dlopen" != no; then
12400   HAVE_DLOPEN_TRUE=
12401   HAVE_DLOPEN_FALSE='#'
12402 else
12403   HAVE_DLOPEN_TRUE='#'
12404   HAVE_DLOPEN_FALSE=
12405 fi
12406
12407 irix=no
12408 case "$host_os" in
12409 irix*) irix=yes ;;
12410 esac
12411
12412 if test "$irix" != no; then
12413   IRIX_TRUE=
12414   IRIX_FALSE='#'
12415 else
12416   IRIX_TRUE='#'
12417   IRIX_FALSE=
12418 fi
12419
12420 echo "$as_me:12420: checking for X" >&5
12421 echo $ECHO_N "checking for X... $ECHO_C" >&6
12422
12423 # Check whether --with-x or --without-x was given.
12424 if test "${with_x+set}" = set; then
12425   withval="$with_x"
12426
12427 fi;
12428 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12429 if test "x$with_x" = xno; then
12430   # The user explicitly disabled X.
12431   have_x=disabled
12432 else
12433   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
12434     # Both variables are already set.
12435     have_x=yes
12436   else
12437 if test "${ac_cv_have_x+set}" = set; then
12438   echo $ECHO_N "(cached) $ECHO_C" >&6
12439 else
12440   # One or both of the vars are not set, and there is no cached value.
12441 ac_x_includes=no ac_x_libraries=no
12442 rm -fr conftestdir
12443 if mkdir conftestdir; then
12444   cd conftestdir
12445   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
12446   cat >Imakefile <<'EOF'
12447 acfindx:
12448         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
12449 EOF
12450   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
12451     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12452     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
12453     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12454     for ac_extension in a so sl; do
12455       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
12456          test -f $ac_im_libdir/libX11.$ac_extension; then
12457         ac_im_usrlibdir=$ac_im_libdir; break
12458       fi
12459     done
12460     # Screen out bogus values from the imake configuration.  They are
12461     # bogus both because they are the default anyway, and because
12462     # using them would break gcc on systems where it needs fixed includes.
12463     case $ac_im_incroot in
12464         /usr/include) ;;
12465         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
12466     esac
12467     case $ac_im_usrlibdir in
12468         /usr/lib | /lib) ;;
12469         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
12470     esac
12471   fi
12472   cd ..
12473   rm -fr conftestdir
12474 fi
12475
12476 # Standard set of common directories for X headers.
12477 # Check X11 before X11Rn because it is often a symlink to the current release.
12478 ac_x_header_dirs='
12479 /usr/X11/include
12480 /usr/X11R6/include
12481 /usr/X11R5/include
12482 /usr/X11R4/include
12483
12484 /usr/include/X11
12485 /usr/include/X11R6
12486 /usr/include/X11R5
12487 /usr/include/X11R4
12488
12489 /usr/local/X11/include
12490 /usr/local/X11R6/include
12491 /usr/local/X11R5/include
12492 /usr/local/X11R4/include
12493
12494 /usr/local/include/X11
12495 /usr/local/include/X11R6
12496 /usr/local/include/X11R5
12497 /usr/local/include/X11R4
12498
12499 /usr/X386/include
12500 /usr/x386/include
12501 /usr/XFree86/include/X11
12502
12503 /usr/include
12504 /usr/local/include
12505 /usr/unsupported/include
12506 /usr/athena/include
12507 /usr/local/x11r5/include
12508 /usr/lpp/Xamples/include
12509
12510 /usr/openwin/include
12511 /usr/openwin/share/include'
12512
12513 if test "$ac_x_includes" = no; then
12514   # Guess where to find include files, by looking for Intrinsic.h.
12515   # First, try using that file with no special directory specified.
12516   cat >conftest.$ac_ext <<_ACEOF
12517 #line 12517 "configure"
12518 #include "confdefs.h"
12519 #include <X11/Intrinsic.h>
12520 _ACEOF
12521 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
12522 if { (eval echo $as_me:12522: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
12523   if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
12524     ac_cpp_err=$ac_c_preproc_warn_flag
12525   else
12526     ac_cpp_err=
12527   fi
12528 else
12529   ac_cpp_err=yes
12530 fi
12531
12532 if test -z "$ac_cpp_err"; then
12533   # We can compile using X headers with no special include directory.
12534 ac_x_includes=
12535 else
12536   cat conftest.err >&5
12537   echo "$as_me: failed program was:" >&5
12538   cat conftest.$ac_ext >&5
12539   for ac_dir in $ac_x_header_dirs; do
12540   if test -r "$ac_dir/X11/Intrinsic.h"; then
12541     ac_x_includes=$ac_dir
12542     break
12543   fi
12544 done
12545 fi
12546 rm -f conftest*
12547
12548 fi # $ac_x_includes = no
12549
12550 if test "$ac_x_libraries" = no; then
12551   # Check for the libraries.
12552   # See if we find them without any special options.
12553   # Don't add to $LIBS permanently.
12554   ac_save_LIBS=$LIBS
12555   LIBS="-lXt $LIBS"
12556   cat >conftest.$ac_ext <<_ACEOF
12557 #line 12557 "configure"
12558 #include "confdefs.h"
12559 #include <X11/Intrinsic.h>
12560 int
12561 main ()
12562 {
12563 XtMalloc (0)
12564   ;
12565   return 0;
12566 }
12567 _ACEOF
12568 rm -f conftest.$ac_objext conftest$ac_exeext
12569 if { (eval echo $as_me:12569: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
12570   LIBS=$ac_save_LIBS
12571 # We can link X programs with no special library path.
12572 ac_x_libraries=
12573 else
12574   echo "$as_me: failed program was:" >&5
12575   cat conftest.$ac_ext >&5
12576   LIBS=$ac_save_LIBS
12577 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
12578 do
12579   # Don't even attempt the hair of trying to link an X program!
12580   for ac_extension in a so sl; do
12581     if test -r $ac_dir/libXt.$ac_extension; then
12582       ac_x_libraries=$ac_dir
12583       break 2
12584     fi
12585   done
12586 done
12587 fi
12588 rm -f conftest$ac_exeext conftest.$ac_ext
12589 fi # $ac_x_libraries = no
12590
12591 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
12592   # Didn't find X anywhere.  Cache the known absence of X.
12593   ac_cv_have_x="have_x=no"
12594 else
12595   # Record where we found X for the cache.
12596   ac_cv_have_x="have_x=yes \
12597                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
12598 fi
12599 fi
12600   fi
12601   eval "$ac_cv_have_x"
12602 fi # $with_x != no
12603
12604 if test "$have_x" != yes; then
12605   echo "$as_me:12605: result: $have_x" >&5
12606 echo "${ECHO_T}$have_x" >&6
12607   no_x=yes
12608 else
12609   # If each of the values was on the command line, it overrides each guess.
12610   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12611   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12612   # Update the cache value to reflect the command line values.
12613   ac_cv_have_x="have_x=yes \
12614                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
12615   echo "$as_me:12615: result: libraries $x_libraries, headers $x_includes" >&5
12616 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
12617 fi
12618
12619 if test "$no_x" = yes; then
12620   # Not all programs may use this symbol, but it does not hurt to define it.
12621
12622 cat >>confdefs.h <<\EOF
12623 #define X_DISPLAY_MISSING 1
12624 EOF
12625
12626   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12627 else
12628   if test -n "$x_includes"; then
12629     X_CFLAGS="$X_CFLAGS -I$x_includes"
12630   fi
12631
12632   # It would also be nice to do this for all -L options, not just this one.
12633   if test -n "$x_libraries"; then
12634     X_LIBS="$X_LIBS -L$x_libraries"
12635     # For Solaris; some versions of Sun CC require a space after -R and
12636     # others require no space.  Words are not sufficient . . . .
12637     case `(uname -sr) 2>/dev/null` in
12638     "SunOS 5"*)
12639       echo "$as_me:12639: checking whether -R must be followed by a space" >&5
12640 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
12641       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
12642       cat >conftest.$ac_ext <<_ACEOF
12643 #line 12643 "configure"
12644 #include "confdefs.h"
12645
12646 int
12647 main ()
12648 {
12649
12650   ;
12651   return 0;
12652 }
12653 _ACEOF
12654 rm -f conftest.$ac_objext conftest$ac_exeext
12655 if { (eval echo $as_me:12655: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
12656   ac_R_nospace=yes
12657 else
12658   echo "$as_me: failed program was:" >&5
12659   cat conftest.$ac_ext >&5
12660   ac_R_nospace=no
12661 fi
12662 rm -f conftest$ac_exeext conftest.$ac_ext
12663       if test $ac_R_nospace = yes; then
12664         echo "$as_me:12664: result: no" >&5
12665 echo "${ECHO_T}no" >&6
12666         X_LIBS="$X_LIBS -R$x_libraries"
12667       else
12668         LIBS="$ac_xsave_LIBS -R $x_libraries"
12669         cat >conftest.$ac_ext <<_ACEOF
12670 #line 12670 "configure"
12671 #include "confdefs.h"
12672
12673 int
12674 main ()
12675 {
12676
12677   ;
12678   return 0;
12679 }
12680 _ACEOF
12681 rm -f conftest.$ac_objext conftest$ac_exeext
12682 if { (eval echo $as_me:12682: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
12683   ac_R_space=yes
12684 else
12685   echo "$as_me: failed program was:" >&5
12686   cat conftest.$ac_ext >&5
12687   ac_R_space=no
12688 fi
12689 rm -f conftest$ac_exeext conftest.$ac_ext
12690         if test $ac_R_space = yes; then
12691           echo "$as_me:12691: result: yes" >&5
12692 echo "${ECHO_T}yes" >&6
12693           X_LIBS="$X_LIBS -R $x_libraries"
12694         else
12695           echo "$as_me:12695: result: neither works" >&5
12696 echo "${ECHO_T}neither works" >&6
12697         fi
12698       fi
12699       LIBS=$ac_xsave_LIBS
12700     esac
12701   fi
12702
12703   # Check for system-dependent libraries X programs must link with.
12704   # Do this before checking for the system-independent R6 libraries
12705   # (-lICE), since we may need -lsocket or whatever for X linking.
12706
12707   if test "$ISC" = yes; then
12708     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
12709   else
12710     # Martyn Johnson says this is needed for Ultrix, if the X
12711     # libraries were built with DECnet support.  And Karl Berry says
12712     # the Alpha needs dnet_stub (dnet does not exist).
12713
12714 echo "$as_me:12714: checking for dnet_ntoa in -ldnet" >&5
12715 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
12716 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
12717   echo $ECHO_N "(cached) $ECHO_C" >&6
12718 else
12719   ac_check_lib_save_LIBS=$LIBS
12720 LIBS="-ldnet  $LIBS"
12721 cat >conftest.$ac_ext <<_ACEOF
12722 #line 12722 "configure"
12723 #include "confdefs.h"
12724
12725 /* Override any gcc2 internal prototype to avoid an error.  */
12726 #ifdef __cplusplus
12727 extern "C"
12728 #endif
12729 /* We use char because int might match the return type of a gcc2
12730    builtin and then its argument prototype would still apply.  */
12731 char dnet_ntoa ();
12732 int
12733 main ()
12734 {
12735 dnet_ntoa ();
12736   ;
12737   return 0;
12738 }
12739 _ACEOF
12740 rm -f conftest.$ac_objext conftest$ac_exeext
12741 if { (eval echo $as_me:12741: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
12742   ac_cv_lib_dnet_dnet_ntoa=yes
12743 else
12744   echo "$as_me: failed program was:" >&5
12745   cat conftest.$ac_ext >&5
12746   ac_cv_lib_dnet_dnet_ntoa=no
12747 fi
12748 rm -f conftest$ac_exeext conftest.$ac_ext
12749 LIBS=$ac_check_lib_save_LIBS
12750 fi
12751 echo "$as_me:12751: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
12752 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
12753 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
12754   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
12755 fi
12756
12757     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
12758
12759 echo "$as_me:12759: checking for dnet_ntoa in -ldnet_stub" >&5
12760 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
12761 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
12762   echo $ECHO_N "(cached) $ECHO_C" >&6
12763 else
12764   ac_check_lib_save_LIBS=$LIBS
12765 LIBS="-ldnet_stub  $LIBS"
12766 cat >conftest.$ac_ext <<_ACEOF
12767 #line 12767 "configure"
12768 #include "confdefs.h"
12769
12770 /* Override any gcc2 internal prototype to avoid an error.  */
12771 #ifdef __cplusplus
12772 extern "C"
12773 #endif
12774 /* We use char because int might match the return type of a gcc2
12775    builtin and then its argument prototype would still apply.  */
12776 char dnet_ntoa ();
12777 int
12778 main ()
12779 {
12780 dnet_ntoa ();
12781   ;
12782   return 0;
12783 }
12784 _ACEOF
12785 rm -f conftest.$ac_objext conftest$ac_exeext
12786 if { (eval echo $as_me:12786: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
12787   ac_cv_lib_dnet_stub_dnet_ntoa=yes
12788 else
12789   echo "$as_me: failed program was:" >&5
12790   cat conftest.$ac_ext >&5
12791   ac_cv_lib_dnet_stub_dnet_ntoa=no
12792 fi
12793 rm -f conftest$ac_exeext conftest.$ac_ext
12794 LIBS=$ac_check_lib_save_LIBS
12795 fi
12796 echo "$as_me:12796: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
12797 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
12798 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
12799   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12800 fi
12801
12802     fi
12803
12804     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12805     # to get the SysV transport functions.
12806     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
12807     # needs -lnsl.
12808     # The nsl library prevents programs from opening the X display
12809     # on Irix 5.2, according to T.E. Dickey.
12810     # The functions gethostbyname, getservbyname, and inet_addr are
12811     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
12812     echo "$as_me:12812: checking for gethostbyname" >&5
12813 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12814 if test "${ac_cv_func_gethostbyname+set}" = set; then
12815   echo $ECHO_N "(cached) $ECHO_C" >&6
12816 else
12817   cat >conftest.$ac_ext <<_ACEOF
12818 #line 12818 "configure"
12819 #include "confdefs.h"
12820 /* System header to define __stub macros and hopefully few prototypes,
12821     which can conflict with char gethostbyname (); below.  */
12822 #include <assert.h>
12823 /* Override any gcc2 internal prototype to avoid an error.  */
12824 #ifdef __cplusplus
12825 extern "C"
12826 #endif
12827 /* We use char because int might match the return type of a gcc2
12828    builtin and then its argument prototype would still apply.  */
12829 char gethostbyname ();
12830 char (*f) ();
12831
12832 int
12833 main ()
12834 {
12835 /* The GNU C library defines this for functions which it implements
12836     to always fail with ENOSYS.  Some functions are actually named
12837     something starting with __ and the normal name is an alias.  */
12838 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12839 choke me
12840 #else
12841 f = gethostbyname;
12842 #endif
12843
12844   ;
12845   return 0;
12846 }
12847 _ACEOF
12848 rm -f conftest.$ac_objext conftest$ac_exeext
12849 if { (eval echo $as_me:12849: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
12850   ac_cv_func_gethostbyname=yes
12851 else
12852   echo "$as_me: failed program was:" >&5
12853   cat conftest.$ac_ext >&5
12854   ac_cv_func_gethostbyname=no
12855 fi
12856 rm -f conftest$ac_exeext conftest.$ac_ext
12857 fi
12858 echo "$as_me:12858: result: $ac_cv_func_gethostbyname" >&5
12859 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12860
12861     if test $ac_cv_func_gethostbyname = no; then
12862
12863 echo "$as_me:12863: checking for gethostbyname in -lnsl" >&5
12864 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
12865 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
12866   echo $ECHO_N "(cached) $ECHO_C" >&6
12867 else
12868   ac_check_lib_save_LIBS=$LIBS
12869 LIBS="-lnsl  $LIBS"
12870 cat >conftest.$ac_ext <<_ACEOF
12871 #line 12871 "configure"
12872 #include "confdefs.h"
12873
12874 /* Override any gcc2 internal prototype to avoid an error.  */
12875 #ifdef __cplusplus
12876 extern "C"
12877 #endif
12878 /* We use char because int might match the return type of a gcc2
12879    builtin and then its argument prototype would still apply.  */
12880 char gethostbyname ();
12881 int
12882 main ()
12883 {
12884 gethostbyname ();
12885   ;
12886   return 0;
12887 }
12888 _ACEOF
12889 rm -f conftest.$ac_objext conftest$ac_exeext
12890 if { (eval echo $as_me:12890: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
12891   ac_cv_lib_nsl_gethostbyname=yes
12892 else
12893   echo "$as_me: failed program was:" >&5
12894   cat conftest.$ac_ext >&5
12895   ac_cv_lib_nsl_gethostbyname=no
12896 fi
12897 rm -f conftest$ac_exeext conftest.$ac_ext
12898 LIBS=$ac_check_lib_save_LIBS
12899 fi
12900 echo "$as_me:12900: result: $ac_cv_lib_nsl_gethostbyname" >&5
12901 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
12902 if test $ac_cv_lib_nsl_gethostbyname = yes; then
12903   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12904 fi
12905
12906       if test $ac_cv_lib_nsl_gethostbyname = no; then
12907
12908 echo "$as_me:12908: checking for gethostbyname in -lbsd" >&5
12909 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
12910 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
12911   echo $ECHO_N "(cached) $ECHO_C" >&6
12912 else
12913   ac_check_lib_save_LIBS=$LIBS
12914 LIBS="-lbsd  $LIBS"
12915 cat >conftest.$ac_ext <<_ACEOF
12916 #line 12916 "configure"
12917 #include "confdefs.h"
12918
12919 /* Override any gcc2 internal prototype to avoid an error.  */
12920 #ifdef __cplusplus
12921 extern "C"
12922 #endif
12923 /* We use char because int might match the return type of a gcc2
12924    builtin and then its argument prototype would still apply.  */
12925 char gethostbyname ();
12926 int
12927 main ()
12928 {
12929 gethostbyname ();
12930   ;
12931   return 0;
12932 }
12933 _ACEOF
12934 rm -f conftest.$ac_objext conftest$ac_exeext
12935 if { (eval echo $as_me:12935: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
12936   ac_cv_lib_bsd_gethostbyname=yes
12937 else
12938   echo "$as_me: failed program was:" >&5
12939   cat conftest.$ac_ext >&5
12940   ac_cv_lib_bsd_gethostbyname=no
12941 fi
12942 rm -f conftest$ac_exeext conftest.$ac_ext
12943 LIBS=$ac_check_lib_save_LIBS
12944 fi
12945 echo "$as_me:12945: result: $ac_cv_lib_bsd_gethostbyname" >&5
12946 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
12947 if test $ac_cv_lib_bsd_gethostbyname = yes; then
12948   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
12949 fi
12950
12951       fi
12952     fi
12953
12954     # lieder@skyler.mavd.honeywell.com says without -lsocket,
12955     # socket/setsockopt and other routines are undefined under SCO ODT
12956     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
12957     # on later versions), says Simon Leinen: it contains gethostby*
12958     # variants that don't use the nameserver (or something).  -lsocket
12959     # must be given before -lnsl if both are needed.  We assume that
12960     # if connect needs -lnsl, so does gethostbyname.
12961     echo "$as_me:12961: checking for connect" >&5
12962 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12963 if test "${ac_cv_func_connect+set}" = set; then
12964   echo $ECHO_N "(cached) $ECHO_C" >&6
12965 else
12966   cat >conftest.$ac_ext <<_ACEOF
12967 #line 12967 "configure"
12968 #include "confdefs.h"
12969 /* System header to define __stub macros and hopefully few prototypes,
12970     which can conflict with char connect (); below.  */
12971 #include <assert.h>
12972 /* Override any gcc2 internal prototype to avoid an error.  */
12973 #ifdef __cplusplus
12974 extern "C"
12975 #endif
12976 /* We use char because int might match the return type of a gcc2
12977    builtin and then its argument prototype would still apply.  */
12978 char connect ();
12979 char (*f) ();
12980
12981 int
12982 main ()
12983 {
12984 /* The GNU C library defines this for functions which it implements
12985     to always fail with ENOSYS.  Some functions are actually named
12986     something starting with __ and the normal name is an alias.  */
12987 #if defined (__stub_connect) || defined (__stub___connect)
12988 choke me
12989 #else
12990 f = connect;
12991 #endif
12992
12993   ;
12994   return 0;
12995 }
12996 _ACEOF
12997 rm -f conftest.$ac_objext conftest$ac_exeext
12998 if { (eval echo $as_me:12998: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
12999   ac_cv_func_connect=yes
13000 else
13001   echo "$as_me: failed program was:" >&5
13002   cat conftest.$ac_ext >&5
13003   ac_cv_func_connect=no
13004 fi
13005 rm -f conftest$ac_exeext conftest.$ac_ext
13006 fi
13007 echo "$as_me:13007: result: $ac_cv_func_connect" >&5
13008 echo "${ECHO_T}$ac_cv_func_connect" >&6
13009
13010     if test $ac_cv_func_connect = no; then
13011
13012 echo "$as_me:13012: checking for connect in -lsocket" >&5
13013 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
13014 if test "${ac_cv_lib_socket_connect+set}" = set; then
13015   echo $ECHO_N "(cached) $ECHO_C" >&6
13016 else
13017   ac_check_lib_save_LIBS=$LIBS
13018 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13019 cat >conftest.$ac_ext <<_ACEOF
13020 #line 13020 "configure"
13021 #include "confdefs.h"
13022
13023 /* Override any gcc2 internal prototype to avoid an error.  */
13024 #ifdef __cplusplus
13025 extern "C"
13026 #endif
13027 /* We use char because int might match the return type of a gcc2
13028    builtin and then its argument prototype would still apply.  */
13029 char connect ();
13030 int
13031 main ()
13032 {
13033 connect ();
13034   ;
13035   return 0;
13036 }
13037 _ACEOF
13038 rm -f conftest.$ac_objext conftest$ac_exeext
13039 if { (eval echo $as_me:13039: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
13040   ac_cv_lib_socket_connect=yes
13041 else
13042   echo "$as_me: failed program was:" >&5
13043   cat conftest.$ac_ext >&5
13044   ac_cv_lib_socket_connect=no
13045 fi
13046 rm -f conftest$ac_exeext conftest.$ac_ext
13047 LIBS=$ac_check_lib_save_LIBS
13048 fi
13049 echo "$as_me:13049: result: $ac_cv_lib_socket_connect" >&5
13050 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
13051 if test $ac_cv_lib_socket_connect = yes; then
13052   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13053 fi
13054
13055     fi
13056
13057     # Guillermo Gomez says -lposix is necessary on A/UX.
13058     echo "$as_me:13058: checking for remove" >&5
13059 echo $ECHO_N "checking for remove... $ECHO_C" >&6
13060 if test "${ac_cv_func_remove+set}" = set; then
13061   echo $ECHO_N "(cached) $ECHO_C" >&6
13062 else
13063   cat >conftest.$ac_ext <<_ACEOF
13064 #line 13064 "configure"
13065 #include "confdefs.h"
13066 /* System header to define __stub macros and hopefully few prototypes,
13067     which can conflict with char remove (); below.  */
13068 #include <assert.h>
13069 /* Override any gcc2 internal prototype to avoid an error.  */
13070 #ifdef __cplusplus
13071 extern "C"
13072 #endif
13073 /* We use char because int might match the return type of a gcc2
13074    builtin and then its argument prototype would still apply.  */
13075 char remove ();
13076 char (*f) ();
13077
13078 int
13079 main ()
13080 {
13081 /* The GNU C library defines this for functions which it implements
13082     to always fail with ENOSYS.  Some functions are actually named
13083     something starting with __ and the normal name is an alias.  */
13084 #if defined (__stub_remove) || defined (__stub___remove)
13085 choke me
13086 #else
13087 f = remove;
13088 #endif
13089
13090   ;
13091   return 0;
13092 }
13093 _ACEOF
13094 rm -f conftest.$ac_objext conftest$ac_exeext
13095 if { (eval echo $as_me:13095: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
13096   ac_cv_func_remove=yes
13097 else
13098   echo "$as_me: failed program was:" >&5
13099   cat conftest.$ac_ext >&5
13100   ac_cv_func_remove=no
13101 fi
13102 rm -f conftest$ac_exeext conftest.$ac_ext
13103 fi
13104 echo "$as_me:13104: result: $ac_cv_func_remove" >&5
13105 echo "${ECHO_T}$ac_cv_func_remove" >&6
13106
13107     if test $ac_cv_func_remove = no; then
13108
13109 echo "$as_me:13109: checking for remove in -lposix" >&5
13110 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
13111 if test "${ac_cv_lib_posix_remove+set}" = set; then
13112   echo $ECHO_N "(cached) $ECHO_C" >&6
13113 else
13114   ac_check_lib_save_LIBS=$LIBS
13115 LIBS="-lposix  $LIBS"
13116 cat >conftest.$ac_ext <<_ACEOF
13117 #line 13117 "configure"
13118 #include "confdefs.h"
13119
13120 /* Override any gcc2 internal prototype to avoid an error.  */
13121 #ifdef __cplusplus
13122 extern "C"
13123 #endif
13124 /* We use char because int might match the return type of a gcc2
13125    builtin and then its argument prototype would still apply.  */
13126 char remove ();
13127 int
13128 main ()
13129 {
13130 remove ();
13131   ;
13132   return 0;
13133 }
13134 _ACEOF
13135 rm -f conftest.$ac_objext conftest$ac_exeext
13136 if { (eval echo $as_me:13136: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
13137   ac_cv_lib_posix_remove=yes
13138 else
13139   echo "$as_me: failed program was:" >&5
13140   cat conftest.$ac_ext >&5
13141   ac_cv_lib_posix_remove=no
13142 fi
13143 rm -f conftest$ac_exeext conftest.$ac_ext
13144 LIBS=$ac_check_lib_save_LIBS
13145 fi
13146 echo "$as_me:13146: result: $ac_cv_lib_posix_remove" >&5
13147 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
13148 if test $ac_cv_lib_posix_remove = yes; then
13149   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13150 fi
13151
13152     fi
13153
13154     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13155     echo "$as_me:13155: checking for shmat" >&5
13156 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
13157 if test "${ac_cv_func_shmat+set}" = set; then
13158   echo $ECHO_N "(cached) $ECHO_C" >&6
13159 else
13160   cat >conftest.$ac_ext <<_ACEOF
13161 #line 13161 "configure"
13162 #include "confdefs.h"
13163 /* System header to define __stub macros and hopefully few prototypes,
13164     which can conflict with char shmat (); below.  */
13165 #include <assert.h>
13166 /* Override any gcc2 internal prototype to avoid an error.  */
13167 #ifdef __cplusplus
13168 extern "C"
13169 #endif
13170 /* We use char because int might match the return type of a gcc2
13171    builtin and then its argument prototype would still apply.  */
13172 char shmat ();
13173 char (*f) ();
13174
13175 int
13176 main ()
13177 {
13178 /* The GNU C library defines this for functions which it implements
13179     to always fail with ENOSYS.  Some functions are actually named
13180     something starting with __ and the normal name is an alias.  */
13181 #if defined (__stub_shmat) || defined (__stub___shmat)
13182 choke me
13183 #else
13184 f = shmat;
13185 #endif
13186
13187   ;
13188   return 0;
13189 }
13190 _ACEOF
13191 rm -f conftest.$ac_objext conftest$ac_exeext
13192 if { (eval echo $as_me:13192: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
13193   ac_cv_func_shmat=yes
13194 else
13195   echo "$as_me: failed program was:" >&5
13196   cat conftest.$ac_ext >&5
13197   ac_cv_func_shmat=no
13198 fi
13199 rm -f conftest$ac_exeext conftest.$ac_ext
13200 fi
13201 echo "$as_me:13201: result: $ac_cv_func_shmat" >&5
13202 echo "${ECHO_T}$ac_cv_func_shmat" >&6
13203
13204     if test $ac_cv_func_shmat = no; then
13205
13206 echo "$as_me:13206: checking for shmat in -lipc" >&5
13207 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
13208 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
13209   echo $ECHO_N "(cached) $ECHO_C" >&6
13210 else
13211   ac_check_lib_save_LIBS=$LIBS
13212 LIBS="-lipc  $LIBS"
13213 cat >conftest.$ac_ext <<_ACEOF
13214 #line 13214 "configure"
13215 #include "confdefs.h"
13216
13217 /* Override any gcc2 internal prototype to avoid an error.  */
13218 #ifdef __cplusplus
13219 extern "C"
13220 #endif
13221 /* We use char because int might match the return type of a gcc2
13222    builtin and then its argument prototype would still apply.  */
13223 char shmat ();
13224 int
13225 main ()
13226 {
13227 shmat ();
13228   ;
13229   return 0;
13230 }
13231 _ACEOF
13232 rm -f conftest.$ac_objext conftest$ac_exeext
13233 if { (eval echo $as_me:13233: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
13234   ac_cv_lib_ipc_shmat=yes
13235 else
13236   echo "$as_me: failed program was:" >&5
13237   cat conftest.$ac_ext >&5
13238   ac_cv_lib_ipc_shmat=no
13239 fi
13240 rm -f conftest$ac_exeext conftest.$ac_ext
13241 LIBS=$ac_check_lib_save_LIBS
13242 fi
13243 echo "$as_me:13243: result: $ac_cv_lib_ipc_shmat" >&5
13244 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
13245 if test $ac_cv_lib_ipc_shmat = yes; then
13246   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
13247 fi
13248
13249     fi
13250   fi
13251
13252   # Check for libraries that X11R6 Xt/Xaw programs need.
13253   ac_save_LDFLAGS=$LDFLAGS
13254   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13255   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13256   # check for ICE first), but we must link in the order -lSM -lICE or
13257   # we get undefined symbols.  So assume we have SM if we have ICE.
13258   # These have to be linked with before -lX11, unlike the other
13259   # libraries we check for below, so use a different variable.
13260   # John Interrante, Karl Berry
13261
13262 echo "$as_me:13262: checking for IceConnectionNumber in -lICE" >&5
13263 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
13264 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
13265   echo $ECHO_N "(cached) $ECHO_C" >&6
13266 else
13267   ac_check_lib_save_LIBS=$LIBS
13268 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
13269 cat >conftest.$ac_ext <<_ACEOF
13270 #line 13270 "configure"
13271 #include "confdefs.h"
13272
13273 /* Override any gcc2 internal prototype to avoid an error.  */
13274 #ifdef __cplusplus
13275 extern "C"
13276 #endif
13277 /* We use char because int might match the return type of a gcc2
13278    builtin and then its argument prototype would still apply.  */
13279 char IceConnectionNumber ();
13280 int
13281 main ()
13282 {
13283 IceConnectionNumber ();
13284   ;
13285   return 0;
13286 }
13287 _ACEOF
13288 rm -f conftest.$ac_objext conftest$ac_exeext
13289 if { (eval echo $as_me:13289: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
13290   ac_cv_lib_ICE_IceConnectionNumber=yes
13291 else
13292   echo "$as_me: failed program was:" >&5
13293   cat conftest.$ac_ext >&5
13294   ac_cv_lib_ICE_IceConnectionNumber=no
13295 fi
13296 rm -f conftest$ac_exeext conftest.$ac_ext
13297 LIBS=$ac_check_lib_save_LIBS
13298 fi
13299 echo "$as_me:13299: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
13300 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
13301 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
13302   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
13303 fi
13304
13305   LDFLAGS=$ac_save_LDFLAGS
13306
13307 fi
13308
13309 # try to figure out if we need any additional ld flags, like -R
13310 # and yes, the autoconf X test is utterly broken
13311 if test "$no_x" != yes; then
13312         echo "$as_me:13312: checking for special X linker flags" >&5
13313 echo $ECHO_N "checking for special X linker flags... $ECHO_C" >&6
13314 if test "${krb_cv_sys_x_libs_rpath+set}" = set; then
13315   echo $ECHO_N "(cached) $ECHO_C" >&6
13316 else
13317
13318         ac_save_libs="$LIBS"
13319         ac_save_cflags="$CFLAGS"
13320         CFLAGS="$CFLAGS $X_CFLAGS"
13321         krb_cv_sys_x_libs_rpath=""
13322         krb_cv_sys_x_libs=""
13323         for rflag in "" "-R" "-R " "-rpath "; do
13324                 if test "$rflag" = ""; then
13325                         foo="$X_LIBS"
13326                 else
13327                         foo=""
13328                         for flag in $X_LIBS; do
13329                         case $flag in
13330                         -L*)
13331                                 foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`"
13332                                 ;;
13333                         *)
13334                                 foo="$foo $flag"
13335                                 ;;
13336                         esac
13337                         done
13338                 fi
13339                 LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
13340                 if test "$cross_compiling" = yes; then
13341   {  echo "$as_me: error: cannot run test program while cross compiling" >&2
13342   { (exit 1); exit; }; }
13343 else
13344   cat >conftest.$ac_ext <<_ACEOF
13345 #line 13345 "configure"
13346 #include "confdefs.h"
13347
13348                 #include <X11/Xlib.h>
13349                 foo()
13350                 {
13351                 XOpenDisplay(NULL);
13352                 }
13353                 main()
13354                 {
13355                 return 0;
13356                 }
13357
13358 _ACEOF
13359 rm -f conftest$ac_exeext
13360 { (eval echo $as_me:13360: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
13361   (./conftest$ac_exeext) >&5 2>&1;
13362 ac_status=$?
13363 if test $ac_status = 0; then
13364   krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break
13365 else
13366   echo "$as_me: program exited with status $ac_status" >&5
13367 echo "$as_me: failed program was:" >&5
13368 cat conftest.$ac_ext >&5
13369 :
13370 fi
13371
13372 rm -f conftest$ac_exeext conftest.$ac_ext
13373 fi
13374
13375         done
13376         LIBS="$ac_save_libs"
13377         CFLAGS="$ac_save_cflags"
13378
13379 fi
13380 echo "$as_me:13380: result: $krb_cv_sys_x_libs_rpath" >&5
13381 echo "${ECHO_T}$krb_cv_sys_x_libs_rpath" >&6
13382         X_LIBS="$krb_cv_sys_x_libs"
13383 fi
13384
13385 if test "$no_x" != yes; then
13386   HAVE_X_TRUE=
13387   HAVE_X_FALSE='#'
13388 else
13389   HAVE_X_TRUE='#'
13390   HAVE_X_FALSE=
13391 fi
13392
13393 save_CFLAGS="$CFLAGS"
13394 CFLAGS="$X_CFLAGS $CFLAGS"
13395 save_LIBS="$LIBS"
13396 LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS"
13397 save_LDFLAGS="$LDFLAGS"
13398 LDFLAGS="$LDFLAGS $X_LIBS"
13399
13400 echo "$as_me:13400: checking for XauWriteAuth" >&5
13401 echo $ECHO_N "checking for XauWriteAuth... $ECHO_C" >&6
13402 if test "${ac_cv_funclib_XauWriteAuth+set}" = set; then
13403   echo $ECHO_N "(cached) $ECHO_C" >&6
13404 else
13405
13406 if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then
13407         ac_save_LIBS="$LIBS"
13408         for ac_lib in "" X11 Xau; do
13409                 if test -n "$ac_lib"; then
13410                         ac_lib="-l$ac_lib"
13411                 else
13412                         ac_lib=""
13413                 fi
13414                 LIBS=" $ac_lib  $ac_save_LIBS"
13415                 cat >conftest.$ac_ext <<_ACEOF
13416 #line 13416 "configure"
13417 #include "confdefs.h"
13418
13419 int
13420 main ()
13421 {
13422 XauWriteAuth()
13423   ;
13424   return 0;
13425 }
13426 _ACEOF
13427 rm -f conftest.$ac_objext conftest$ac_exeext
13428 if { (eval echo $as_me:13428: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
13429   eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break
13430 else
13431   echo "$as_me: failed program was:" >&5
13432   cat conftest.$ac_ext >&5
13433 fi
13434 rm -f conftest$ac_exeext conftest.$ac_ext
13435         done
13436         eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}"
13437         LIBS="$ac_save_LIBS"
13438 fi
13439
13440 fi
13441
13442 eval "ac_res=\$ac_cv_funclib_XauWriteAuth"
13443
13444 if false; then
13445
13446 for ac_func in XauWriteAuth
13447 do
13448 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
13449 echo "$as_me:13449: checking for $ac_func" >&5
13450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13451 if eval "test \"\${$ac_ac_var+set}\" = set"; then
13452   echo $ECHO_N "(cached) $ECHO_C" >&6
13453 else
13454   cat >conftest.$ac_ext <<_ACEOF
13455 #line 13455 "configure"
13456 #include "confdefs.h"
13457 /* System header to define __stub macros and hopefully few prototypes,
13458     which can conflict with char $ac_func (); below.  */
13459 #include <assert.h>
13460 /* Override any gcc2 internal prototype to avoid an error.  */
13461 #ifdef __cplusplus
13462 extern "C"
13463 #endif
13464 /* We use char because int might match the return type of a gcc2
13465    builtin and then its argument prototype would still apply.  */
13466 char $ac_func ();
13467 char (*f) ();
13468
13469 int
13470 main ()
13471 {
13472 /* The GNU C library defines this for functions which it implements
13473     to always fail with ENOSYS.  Some functions are actually named
13474     something starting with __ and the normal name is an alias.  */
13475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13476 choke me
13477 #else
13478 f = $ac_func;
13479 #endif
13480
13481   ;
13482   return 0;
13483 }
13484 _ACEOF
13485 rm -f conftest.$ac_objext conftest$ac_exeext
13486 if { (eval echo $as_me:13486: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
13487   eval "$ac_ac_var=yes"
13488 else
13489   echo "$as_me: failed program was:" >&5
13490   cat conftest.$ac_ext >&5
13491   eval "$ac_ac_var=no"
13492 fi
13493 rm -f conftest$ac_exeext conftest.$ac_ext
13494 fi
13495 echo "$as_me:13495: result: `eval echo '${'$ac_ac_var'}'`" >&5
13496 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
13497 if test `eval echo '${'$ac_ac_var'}'` = yes; then
13498   cat >>confdefs.h <<EOF
13499 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
13500 EOF
13501
13502 fi
13503 done
13504
13505 fi
13506 # XauWriteAuth
13507 eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13508 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13509 eval "LIB_XauWriteAuth=$ac_res"
13510
13511 case "$ac_res" in
13512         yes)
13513         eval "ac_cv_func_XauWriteAuth=yes"
13514         eval "LIB_XauWriteAuth="
13515         cat >>confdefs.h <<EOF
13516 #define $ac_tr_func 1
13517 EOF
13518
13519         echo "$as_me:13519: result: yes" >&5
13520 echo "${ECHO_T}yes" >&6
13521         ;;
13522         no)
13523         eval "ac_cv_func_XauWriteAuth=no"
13524         eval "LIB_XauWriteAuth="
13525         echo "$as_me:13525: result: no" >&5
13526 echo "${ECHO_T}no" >&6
13527         ;;
13528         *)
13529         eval "ac_cv_func_XauWriteAuth=yes"
13530         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
13531         cat >>confdefs.h <<EOF
13532 #define $ac_tr_func 1
13533 EOF
13534
13535         cat >>confdefs.h <<EOF
13536 #define $ac_tr_lib 1
13537 EOF
13538
13539         echo "$as_me:13539: result: yes, in $ac_res" >&5
13540 echo "${ECHO_T}yes, in $ac_res" >&6
13541         ;;
13542 esac
13543
13544 ac_xxx="$LIBS"
13545 LIBS="$LIB_XauWriteAuth $LIBS"
13546
13547 echo "$as_me:13547: checking for XauReadAuth" >&5
13548 echo $ECHO_N "checking for XauReadAuth... $ECHO_C" >&6
13549 if test "${ac_cv_funclib_XauReadAuth+set}" = set; then
13550   echo $ECHO_N "(cached) $ECHO_C" >&6
13551 else
13552
13553 if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then
13554         ac_save_LIBS="$LIBS"
13555         for ac_lib in "" X11 Xau; do
13556                 if test -n "$ac_lib"; then
13557                         ac_lib="-l$ac_lib"
13558                 else
13559                         ac_lib=""
13560                 fi
13561                 LIBS=" $ac_lib  $ac_save_LIBS"
13562                 cat >conftest.$ac_ext <<_ACEOF
13563 #line 13563 "configure"
13564 #include "confdefs.h"
13565
13566 int
13567 main ()
13568 {
13569 XauReadAuth()
13570   ;
13571   return 0;
13572 }
13573 _ACEOF
13574 rm -f conftest.$ac_objext conftest$ac_exeext
13575 if { (eval echo $as_me:13575: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
13576   eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break
13577 else
13578   echo "$as_me: failed program was:" >&5
13579   cat conftest.$ac_ext >&5
13580 fi
13581 rm -f conftest$ac_exeext conftest.$ac_ext
13582         done
13583         eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}"
13584         LIBS="$ac_save_LIBS"
13585 fi
13586
13587 fi
13588
13589 eval "ac_res=\$ac_cv_funclib_XauReadAuth"
13590
13591 if false; then
13592
13593 for ac_func in XauReadAuth
13594 do
13595 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
13596 echo "$as_me:13596: checking for $ac_func" >&5
13597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13598 if eval "test \"\${$ac_ac_var+set}\" = set"; then
13599   echo $ECHO_N "(cached) $ECHO_C" >&6
13600 else
13601   cat >conftest.$ac_ext <<_ACEOF
13602 #line 13602 "configure"
13603 #include "confdefs.h"
13604 /* System header to define __stub macros and hopefully few prototypes,
13605     which can conflict with char $ac_func (); below.  */
13606 #include <assert.h>
13607 /* Override any gcc2 internal prototype to avoid an error.  */
13608 #ifdef __cplusplus
13609 extern "C"
13610 #endif
13611 /* We use char because int might match the return type of a gcc2
13612    builtin and then its argument prototype would still apply.  */
13613 char $ac_func ();
13614 char (*f) ();
13615
13616 int
13617 main ()
13618 {
13619 /* The GNU C library defines this for functions which it implements
13620     to always fail with ENOSYS.  Some functions are actually named
13621     something starting with __ and the normal name is an alias.  */
13622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13623 choke me
13624 #else
13625 f = $ac_func;
13626 #endif
13627
13628   ;
13629   return 0;
13630 }
13631 _ACEOF
13632 rm -f conftest.$ac_objext conftest$ac_exeext
13633 if { (eval echo $as_me:13633: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
13634   eval "$ac_ac_var=yes"
13635 else
13636   echo "$as_me: failed program was:" >&5
13637   cat conftest.$ac_ext >&5
13638   eval "$ac_ac_var=no"
13639 fi
13640 rm -f conftest$ac_exeext conftest.$ac_ext
13641 fi
13642 echo "$as_me:13642: result: `eval echo '${'$ac_ac_var'}'`" >&5
13643 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
13644 if test `eval echo '${'$ac_ac_var'}'` = yes; then
13645   cat >>confdefs.h <<EOF
13646 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
13647 EOF
13648
13649 fi
13650 done
13651
13652 fi
13653 # XauReadAuth
13654 eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13655 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13656 eval "LIB_XauReadAuth=$ac_res"
13657
13658 case "$ac_res" in
13659         yes)
13660         eval "ac_cv_func_XauReadAuth=yes"
13661         eval "LIB_XauReadAuth="
13662         cat >>confdefs.h <<EOF
13663 #define $ac_tr_func 1
13664 EOF
13665
13666         echo "$as_me:13666: result: yes" >&5
13667 echo "${ECHO_T}yes" >&6
13668         ;;
13669         no)
13670         eval "ac_cv_func_XauReadAuth=no"
13671         eval "LIB_XauReadAuth="
13672         echo "$as_me:13672: result: no" >&5
13673 echo "${ECHO_T}no" >&6
13674         ;;
13675         *)
13676         eval "ac_cv_func_XauReadAuth=yes"
13677         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
13678         cat >>confdefs.h <<EOF
13679 #define $ac_tr_func 1
13680 EOF
13681
13682         cat >>confdefs.h <<EOF
13683 #define $ac_tr_lib 1
13684 EOF
13685
13686         echo "$as_me:13686: result: yes, in $ac_res" >&5
13687 echo "${ECHO_T}yes, in $ac_res" >&6
13688         ;;
13689 esac
13690
13691 LIBS="$LIB_XauReadAauth $LIBS"
13692
13693 echo "$as_me:13693: checking for XauFileName" >&5
13694 echo $ECHO_N "checking for XauFileName... $ECHO_C" >&6
13695 if test "${ac_cv_funclib_XauFileName+set}" = set; then
13696   echo $ECHO_N "(cached) $ECHO_C" >&6
13697 else
13698
13699 if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then
13700         ac_save_LIBS="$LIBS"
13701         for ac_lib in "" X11 Xau; do
13702                 if test -n "$ac_lib"; then
13703                         ac_lib="-l$ac_lib"
13704                 else
13705                         ac_lib=""
13706                 fi
13707                 LIBS=" $ac_lib  $ac_save_LIBS"
13708                 cat >conftest.$ac_ext <<_ACEOF
13709 #line 13709 "configure"
13710 #include "confdefs.h"
13711
13712 int
13713 main ()
13714 {
13715 XauFileName()
13716   ;
13717   return 0;
13718 }
13719 _ACEOF
13720 rm -f conftest.$ac_objext conftest$ac_exeext
13721 if { (eval echo $as_me:13721: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
13722   eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break
13723 else
13724   echo "$as_me: failed program was:" >&5
13725   cat conftest.$ac_ext >&5
13726 fi
13727 rm -f conftest$ac_exeext conftest.$ac_ext
13728         done
13729         eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}"
13730         LIBS="$ac_save_LIBS"
13731 fi
13732
13733 fi
13734
13735 eval "ac_res=\$ac_cv_funclib_XauFileName"
13736
13737 if false; then
13738
13739 for ac_func in XauFileName
13740 do
13741 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
13742 echo "$as_me:13742: checking for $ac_func" >&5
13743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13744 if eval "test \"\${$ac_ac_var+set}\" = set"; then
13745   echo $ECHO_N "(cached) $ECHO_C" >&6
13746 else
13747   cat >conftest.$ac_ext <<_ACEOF
13748 #line 13748 "configure"
13749 #include "confdefs.h"
13750 /* System header to define __stub macros and hopefully few prototypes,
13751     which can conflict with char $ac_func (); below.  */
13752 #include <assert.h>
13753 /* Override any gcc2 internal prototype to avoid an error.  */
13754 #ifdef __cplusplus
13755 extern "C"
13756 #endif
13757 /* We use char because int might match the return type of a gcc2
13758    builtin and then its argument prototype would still apply.  */
13759 char $ac_func ();
13760 char (*f) ();
13761
13762 int
13763 main ()
13764 {
13765 /* The GNU C library defines this for functions which it implements
13766     to always fail with ENOSYS.  Some functions are actually named
13767     something starting with __ and the normal name is an alias.  */
13768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13769 choke me
13770 #else
13771 f = $ac_func;
13772 #endif
13773
13774   ;
13775   return 0;
13776 }
13777 _ACEOF
13778 rm -f conftest.$ac_objext conftest$ac_exeext
13779 if { (eval echo $as_me:13779: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
13780   eval "$ac_ac_var=yes"
13781 else
13782   echo "$as_me: failed program was:" >&5
13783   cat conftest.$ac_ext >&5
13784   eval "$ac_ac_var=no"
13785 fi
13786 rm -f conftest$ac_exeext conftest.$ac_ext
13787 fi
13788 echo "$as_me:13788: result: `eval echo '${'$ac_ac_var'}'`" >&5
13789 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
13790 if test `eval echo '${'$ac_ac_var'}'` = yes; then
13791   cat >>confdefs.h <<EOF
13792 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
13793 EOF
13794
13795 fi
13796 done
13797
13798 fi
13799 # XauFileName
13800 eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13801 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13802 eval "LIB_XauFileName=$ac_res"
13803
13804 case "$ac_res" in
13805         yes)
13806         eval "ac_cv_func_XauFileName=yes"
13807         eval "LIB_XauFileName="
13808         cat >>confdefs.h <<EOF
13809 #define $ac_tr_func 1
13810 EOF
13811
13812         echo "$as_me:13812: result: yes" >&5
13813 echo "${ECHO_T}yes" >&6
13814         ;;
13815         no)
13816         eval "ac_cv_func_XauFileName=no"
13817         eval "LIB_XauFileName="
13818         echo "$as_me:13818: result: no" >&5
13819 echo "${ECHO_T}no" >&6
13820         ;;
13821         *)
13822         eval "ac_cv_func_XauFileName=yes"
13823         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
13824         cat >>confdefs.h <<EOF
13825 #define $ac_tr_func 1
13826 EOF
13827
13828         cat >>confdefs.h <<EOF
13829 #define $ac_tr_lib 1
13830 EOF
13831
13832         echo "$as_me:13832: result: yes, in $ac_res" >&5
13833 echo "${ECHO_T}yes, in $ac_res" >&6
13834         ;;
13835 esac
13836
13837 LIBS="$ac_xxx"
13838
13839 case "$ac_cv_funclib_XauWriteAuth" in
13840 yes)    ;;
13841 no)     ;;
13842 *)      if test "$ac_cv_funclib_XauReadAuth" = yes; then
13843                 if test "$ac_cv_funclib_XauFileName" = yes; then
13844                         LIB_XauReadAuth="$LIB_XauWriteAuth"
13845                 else
13846                         LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName"
13847                 fi
13848         else
13849                 if test "$ac_cv_funclib_XauFileName" = yes; then
13850                         LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth"
13851                 else
13852                         LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName"
13853                 fi
13854         fi
13855         ;;
13856 esac
13857
13858 if test "$AUTOMAKE" != ""; then
13859
13860 if test "$ac_cv_func_XauWriteAuth" != "yes"; then
13861   NEED_WRITEAUTH_TRUE=
13862   NEED_WRITEAUTH_FALSE='#'
13863 else
13864   NEED_WRITEAUTH_TRUE='#'
13865   NEED_WRITEAUTH_FALSE=
13866 fi
13867 else
13868
13869         if test "$ac_cv_func_XauWriteAuth" != "yes"; then
13870                 NEED_WRITEAUTH_TRUE=
13871                 NEED_WRITEAUTH_FALSE='#'
13872         else
13873                 NEED_WRITEAUTH_TRUE='#'
13874                 NEED_WRITEAUTH_FALSE=
13875         fi
13876 fi
13877 CFLAGS=$save_CFLAGS
13878 LIBS=$save_LIBS
13879 LDFLAGS=$save_LDFLAGS
13880
13881 echo "$as_me:13881: checking for an ANSI C-conforming const" >&5
13882 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13883 if test "${ac_cv_c_const+set}" = set; then
13884   echo $ECHO_N "(cached) $ECHO_C" >&6
13885 else
13886   cat >conftest.$ac_ext <<_ACEOF
13887 #line 13887 "configure"
13888 #include "confdefs.h"
13889
13890 int
13891 main ()
13892 {
13893 /* FIXME: Include the comments suggested by Paul. */
13894 #ifndef __cplusplus
13895   /* Ultrix mips cc rejects this.  */
13896   typedef int charset[2];
13897   const charset x;
13898   /* SunOS 4.1.1 cc rejects this.  */
13899   char const *const *ccp;
13900   char **p;
13901   /* NEC SVR4.0.2 mips cc rejects this.  */
13902   struct point {int x, y;};
13903   static struct point const zero = {0,0};
13904   /* AIX XL C 1.02.0.0 rejects this.
13905      It does not let you subtract one const X* pointer from another in
13906      an arm of an if-expression whose if-part is not a constant
13907      expression */
13908   const char *g = "string";
13909   ccp = &g + (g ? g-g : 0);
13910   /* HPUX 7.0 cc rejects these. */
13911   ++ccp;
13912   p = (char**) ccp;
13913   ccp = (char const *const *) p;
13914   { /* SCO 3.2v4 cc rejects this.  */
13915     char *t;
13916     char const *s = 0 ? (char *) 0 : (char const *) 0;
13917
13918     *t++ = 0;
13919   }
13920   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13921     int x[] = {25, 17};
13922     const int *foo = &x[0];
13923     ++foo;
13924   }
13925   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13926     typedef const int *iptr;
13927     iptr p = 0;
13928     ++p;
13929   }
13930   { /* AIX XL C 1.02.0.0 rejects this saying
13931        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13932     struct s { int j; const int *ap[3]; };
13933     struct s *b; b->j = 5;
13934   }
13935   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13936     const int foo = 10;
13937   }
13938 #endif
13939
13940   ;
13941   return 0;
13942 }
13943 _ACEOF
13944 rm -f conftest.$ac_objext
13945 if { (eval echo $as_me:13945: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
13946   ac_cv_c_const=yes
13947 else
13948   echo "$as_me: failed program was:" >&5
13949   cat conftest.$ac_ext >&5
13950   ac_cv_c_const=no
13951 fi
13952 rm -f conftest.$ac_objext conftest.$ac_ext
13953 fi
13954 echo "$as_me:13954: result: $ac_cv_c_const" >&5
13955 echo "${ECHO_T}$ac_cv_c_const" >&6
13956 if test $ac_cv_c_const = no; then
13957
13958 cat >>confdefs.h <<\EOF
13959 #define const
13960 EOF
13961
13962 fi
13963
13964 echo "$as_me:13964: checking for off_t" >&5
13965 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13966 if test "${ac_cv_type_off_t+set}" = set; then
13967   echo $ECHO_N "(cached) $ECHO_C" >&6
13968 else
13969   cat >conftest.$ac_ext <<_ACEOF
13970 #line 13970 "configure"
13971 #include "confdefs.h"
13972 $ac_includes_default
13973 int
13974 main ()
13975 {
13976 if ((off_t *) 0)
13977   return 0;
13978 if (sizeof (off_t))
13979   return 0;
13980   ;
13981   return 0;
13982 }
13983 _ACEOF
13984 rm -f conftest.$ac_objext
13985 if { (eval echo $as_me:13985: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
13986   ac_cv_type_off_t=yes
13987 else
13988   echo "$as_me: failed program was:" >&5
13989   cat conftest.$ac_ext >&5
13990   ac_cv_type_off_t=no
13991 fi
13992 rm -f conftest.$ac_objext conftest.$ac_ext
13993 fi
13994 echo "$as_me:13994: result: $ac_cv_type_off_t" >&5
13995 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13996 if test $ac_cv_type_off_t = yes; then
13997   :
13998 else
13999
14000 cat >>confdefs.h <<EOF
14001 #define off_t long
14002 EOF
14003
14004 fi
14005
14006 echo "$as_me:14006: checking for size_t" >&5
14007 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
14008 if test "${ac_cv_type_size_t+set}" = set; then
14009   echo $ECHO_N "(cached) $ECHO_C" >&6
14010 else
14011   cat >conftest.$ac_ext <<_ACEOF
14012 #line 14012 "configure"
14013 #include "confdefs.h"
14014 $ac_includes_default
14015 int
14016 main ()
14017 {
14018 if ((size_t *) 0)
14019   return 0;
14020 if (sizeof (size_t))
14021   return 0;
14022   ;
14023   return 0;
14024 }
14025 _ACEOF
14026 rm -f conftest.$ac_objext
14027 if { (eval echo $as_me:14027: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
14028   ac_cv_type_size_t=yes
14029 else
14030   echo "$as_me: failed program was:" >&5
14031   cat conftest.$ac_ext >&5
14032   ac_cv_type_size_t=no
14033 fi
14034 rm -f conftest.$ac_objext conftest.$ac_ext
14035 fi
14036 echo "$as_me:14036: result: $ac_cv_type_size_t" >&5
14037 echo "${ECHO_T}$ac_cv_type_size_t" >&6
14038 if test $ac_cv_type_size_t = yes; then
14039   :
14040 else
14041
14042 cat >>confdefs.h <<EOF
14043 #define size_t unsigned
14044 EOF
14045
14046 fi
14047
14048 echo "$as_me:14048: checking for ssize_t" >&5
14049 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14050 if test "${ac_cv_type_ssize_t+set}" = set; then
14051   echo $ECHO_N "(cached) $ECHO_C" >&6
14052 else
14053   cat >conftest.$ac_ext <<_ACEOF
14054 #line 14054 "configure"
14055 #include "confdefs.h"
14056 #include <sys/types.h>
14057 #if STDC_HEADERS
14058 #include <stdlib.h>
14059 #include <stddef.h>
14060 #endif
14061 #include <unistd.h>
14062 _ACEOF
14063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14064   egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14065   ac_cv_type_ssize_t=yes
14066 else
14067   ac_cv_type_ssize_t=no
14068 fi
14069 rm -f conftest*
14070
14071 fi
14072 echo "$as_me:14072: result: $ac_cv_type_ssize_t" >&5
14073 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14074 if test $ac_cv_type_ssize_t = no; then
14075
14076 cat >>confdefs.h <<\EOF
14077 #define ssize_t int
14078 EOF
14079
14080 fi
14081
14082 echo "$as_me:14082: checking for pid_t" >&5
14083 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14084 if test "${ac_cv_type_pid_t+set}" = set; then
14085   echo $ECHO_N "(cached) $ECHO_C" >&6
14086 else
14087   cat >conftest.$ac_ext <<_ACEOF
14088 #line 14088 "configure"
14089 #include "confdefs.h"
14090 $ac_includes_default
14091 int
14092 main ()
14093 {
14094 if ((pid_t *) 0)
14095   return 0;
14096 if (sizeof (pid_t))
14097   return 0;
14098   ;
14099   return 0;
14100 }
14101 _ACEOF
14102 rm -f conftest.$ac_objext
14103 if { (eval echo $as_me:14103: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
14104   ac_cv_type_pid_t=yes
14105 else
14106   echo "$as_me: failed program was:" >&5
14107   cat conftest.$ac_ext >&5
14108   ac_cv_type_pid_t=no
14109 fi
14110 rm -f conftest.$ac_objext conftest.$ac_ext
14111 fi
14112 echo "$as_me:14112: result: $ac_cv_type_pid_t" >&5
14113 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14114 if test $ac_cv_type_pid_t = yes; then
14115   :
14116 else
14117
14118 cat >>confdefs.h <<EOF
14119 #define pid_t int
14120 EOF
14121
14122 fi
14123
14124 echo "$as_me:14124: checking for uid_t in sys/types.h" >&5
14125 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
14126 if test "${ac_cv_type_uid_t+set}" = set; then
14127   echo $ECHO_N "(cached) $ECHO_C" >&6
14128 else
14129   cat >conftest.$ac_ext <<_ACEOF
14130 #line 14130 "configure"
14131 #include "confdefs.h"
14132 #include <sys/types.h>
14133
14134 _ACEOF
14135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14136   egrep "uid_t" >/dev/null 2>&1; then
14137   ac_cv_type_uid_t=yes
14138 else
14139   ac_cv_type_uid_t=no
14140 fi
14141 rm -f conftest*
14142
14143 fi
14144 echo "$as_me:14144: result: $ac_cv_type_uid_t" >&5
14145 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
14146 if test $ac_cv_type_uid_t = no; then
14147
14148 cat >>confdefs.h <<\EOF
14149 #define uid_t int
14150 EOF
14151
14152 cat >>confdefs.h <<\EOF
14153 #define gid_t int
14154 EOF
14155
14156 fi
14157
14158 echo "$as_me:14158: checking for mode_t" >&5
14159 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
14160 if test "${ac_cv_type_mode_t+set}" = set; then
14161   echo $ECHO_N "(cached) $ECHO_C" >&6
14162 else
14163   cat >conftest.$ac_ext <<_ACEOF
14164 #line 14164 "configure"
14165 #include "confdefs.h"
14166 #include <sys/types.h>
14167 #if STDC_HEADERS
14168 #include <stdlib.h>
14169 #include <stddef.h>
14170 #endif
14171
14172 _ACEOF
14173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14174   egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14175   ac_cv_type_mode_t=yes
14176 else
14177   ac_cv_type_mode_t=no
14178 fi
14179 rm -f conftest*
14180
14181 fi
14182 echo "$as_me:14182: result: $ac_cv_type_mode_t" >&5
14183 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
14184 if test $ac_cv_type_mode_t = no; then
14185
14186 cat >>confdefs.h <<\EOF
14187 #define mode_t unsigned short
14188 EOF
14189
14190 fi
14191
14192 echo "$as_me:14192: checking for sig_atomic_t" >&5
14193 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
14194 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
14195   echo $ECHO_N "(cached) $ECHO_C" >&6
14196 else
14197   cat >conftest.$ac_ext <<_ACEOF
14198 #line 14198 "configure"
14199 #include "confdefs.h"
14200 #include <sys/types.h>
14201 #if STDC_HEADERS
14202 #include <stdlib.h>
14203 #include <stddef.h>
14204 #endif
14205 #include <signal.h>
14206 _ACEOF
14207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14208   egrep "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14209   ac_cv_type_sig_atomic_t=yes
14210 else
14211   ac_cv_type_sig_atomic_t=no
14212 fi
14213 rm -f conftest*
14214
14215 fi
14216 echo "$as_me:14216: result: $ac_cv_type_sig_atomic_t" >&5
14217 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
14218 if test $ac_cv_type_sig_atomic_t = no; then
14219
14220 cat >>confdefs.h <<\EOF
14221 #define sig_atomic_t int
14222 EOF
14223
14224 fi
14225
14226 cv=`echo "long long" | sed 'y%./+- %__p__%'`
14227 echo "$as_me:14227: checking for long long" >&5
14228 echo $ECHO_N "checking for long long... $ECHO_C" >&6
14229 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
14230   echo $ECHO_N "(cached) $ECHO_C" >&6
14231 else
14232   cat >conftest.$ac_ext <<_ACEOF
14233 #line 14233 "configure"
14234 #include "confdefs.h"
14235 #include <sys/types.h>
14236 #if STDC_HEADERS
14237 #include <stdlib.h>
14238 #include <stddef.h>
14239 #endif
14240
14241 int
14242 main ()
14243 {
14244 long long foo;
14245   ;
14246   return 0;
14247 }
14248 _ACEOF
14249 rm -f conftest.$ac_objext
14250 if { (eval echo $as_me:14250: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
14251   eval "ac_cv_type_$cv=yes"
14252 else
14253   echo "$as_me: failed program was:" >&5
14254   cat conftest.$ac_ext >&5
14255   eval "ac_cv_type_$cv=no"
14256 fi
14257 rm -f conftest.$ac_objext conftest.$ac_ext
14258 fi
14259 ac_foo=`eval echo \\$ac_cv_type_$cv`
14260 echo "$as_me:14260: result: $ac_foo" >&5
14261 echo "${ECHO_T}$ac_foo" >&6
14262 if test "$ac_foo" = yes; then
14263   ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
14264 if false; then
14265         echo "$as_me:14265: checking for long long" >&5
14266 echo $ECHO_N "checking for long long... $ECHO_C" >&6
14267 if test "${ac_cv_type_long_long+set}" = set; then
14268   echo $ECHO_N "(cached) $ECHO_C" >&6
14269 else
14270   cat >conftest.$ac_ext <<_ACEOF
14271 #line 14271 "configure"
14272 #include "confdefs.h"
14273 $ac_includes_default
14274 int
14275 main ()
14276 {
14277 if ((long long *) 0)
14278   return 0;
14279 if (sizeof (long long))
14280   return 0;
14281   ;
14282   return 0;
14283 }
14284 _ACEOF
14285 rm -f conftest.$ac_objext
14286 if { (eval echo $as_me:14286: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
14287   ac_cv_type_long_long=yes
14288 else
14289   echo "$as_me: failed program was:" >&5
14290   cat conftest.$ac_ext >&5
14291   ac_cv_type_long_long=no
14292 fi
14293 rm -f conftest.$ac_objext conftest.$ac_ext
14294 fi
14295 echo "$as_me:14295: result: $ac_cv_type_long_long" >&5
14296 echo "${ECHO_T}$ac_cv_type_long_long" >&6
14297 if test $ac_cv_type_long_long = yes; then
14298
14299 cat >>confdefs.h <<EOF
14300 #define HAVE_LONG_LONG 1
14301 EOF
14302
14303 fi
14304
14305 fi
14306
14307 cat >>confdefs.h <<EOF
14308 #define $ac_tr_hdr 1
14309 EOF
14310
14311 fi
14312
14313 echo "$as_me:14313: checking whether time.h and sys/time.h may both be included" >&5
14314 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
14315 if test "${ac_cv_header_time+set}" = set; then
14316   echo $ECHO_N "(cached) $ECHO_C" >&6
14317 else
14318   cat >conftest.$ac_ext <<_ACEOF
14319 #line 14319 "configure"
14320 #include "confdefs.h"
14321 #include <sys/types.h>
14322 #include <sys/time.h>
14323 #include <time.h>
14324
14325 int
14326 main ()
14327 {
14328 struct tm *tp;
14329   ;
14330   return 0;
14331 }
14332 _ACEOF
14333 rm -f conftest.$ac_objext
14334 if { (eval echo $as_me:14334: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
14335   ac_cv_header_time=yes
14336 else
14337   echo "$as_me: failed program was:" >&5
14338   cat conftest.$ac_ext >&5
14339   ac_cv_header_time=no
14340 fi
14341 rm -f conftest.$ac_objext conftest.$ac_ext
14342 fi
14343 echo "$as_me:14343: result: $ac_cv_header_time" >&5
14344 echo "${ECHO_T}$ac_cv_header_time" >&6
14345 if test $ac_cv_header_time = yes; then
14346
14347 cat >>confdefs.h <<\EOF
14348 #define TIME_WITH_SYS_TIME 1
14349 EOF
14350
14351 fi
14352
14353 echo "$as_me:14353: checking whether struct tm is in sys/time.h or time.h" >&5
14354 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14355 if test "${ac_cv_struct_tm+set}" = set; then
14356   echo $ECHO_N "(cached) $ECHO_C" >&6
14357 else
14358   cat >conftest.$ac_ext <<_ACEOF
14359 #line 14359 "configure"
14360 #include "confdefs.h"
14361 #include <sys/types.h>
14362 #include <time.h>
14363
14364 int
14365 main ()
14366 {
14367 struct tm *tp; tp->tm_sec;
14368   ;
14369   return 0;
14370 }
14371 _ACEOF
14372 rm -f conftest.$ac_objext
14373 if { (eval echo $as_me:14373: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
14374   ac_cv_struct_tm=time.h
14375 else
14376   echo "$as_me: failed program was:" >&5
14377   cat conftest.$ac_ext >&5
14378   ac_cv_struct_tm=sys/time.h
14379 fi
14380 rm -f conftest.$ac_objext conftest.$ac_ext
14381 fi
14382 echo "$as_me:14382: result: $ac_cv_struct_tm" >&5
14383 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14384 if test $ac_cv_struct_tm = sys/time.h; then
14385
14386 cat >>confdefs.h <<\EOF
14387 #define TM_IN_SYS_TIME 1
14388 EOF
14389
14390 fi
14391
14392 echo "$as_me:14392: checking for ANSI C header files" >&5
14393 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14394 if test "${ac_cv_header_stdc+set}" = set; then
14395   echo $ECHO_N "(cached) $ECHO_C" >&6
14396 else
14397   cat >conftest.$ac_ext <<_ACEOF
14398 #line 14398 "configure"
14399 #include "confdefs.h"
14400 #include <stdlib.h>
14401 #include <stdarg.h>
14402 #include <string.h>
14403 #include <float.h>
14404
14405 _ACEOF
14406 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
14407 if { (eval echo $as_me:14407: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
14408   if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
14409     ac_cpp_err=$ac_c_preproc_warn_flag
14410   else
14411     ac_cpp_err=
14412   fi
14413 else
14414   ac_cpp_err=yes
14415 fi
14416
14417 if test -z "$ac_cpp_err"; then
14418   ac_cv_header_stdc=yes
14419 else
14420   cat conftest.err >&5
14421   echo "$as_me: failed program was:" >&5
14422   cat conftest.$ac_ext >&5
14423   ac_cv_header_stdc=no
14424 fi
14425 rm -f conftest*
14426
14427 if test $ac_cv_header_stdc = yes; then
14428   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14429   cat >conftest.$ac_ext <<_ACEOF
14430 #line 14430 "configure"
14431 #include "confdefs.h"
14432 #include <string.h>
14433
14434 _ACEOF
14435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14436   egrep "memchr" >/dev/null 2>&1; then
14437   :
14438 else
14439   ac_cv_header_stdc=no
14440 fi
14441 rm -f conftest*
14442
14443 fi
14444
14445 if test $ac_cv_header_stdc = yes; then
14446   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14447   cat >conftest.$ac_ext <<_ACEOF
14448 #line 14448 "configure"
14449 #include "confdefs.h"
14450 #include <stdlib.h>
14451
14452 _ACEOF
14453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14454   egrep "free" >/dev/null 2>&1; then
14455   :
14456 else
14457   ac_cv_header_stdc=no
14458 fi
14459 rm -f conftest*
14460
14461 fi
14462
14463 if test $ac_cv_header_stdc = yes; then
14464   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14465   if test "$cross_compiling" = yes; then
14466   :
14467 else
14468   cat >conftest.$ac_ext <<_ACEOF
14469 #line 14469 "configure"
14470 #include "confdefs.h"
14471 #include <ctype.h>
14472 #if ((' ' & 0x0FF) == 0x020)
14473 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14474 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14475 #else
14476 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14477                      || ('j' <= (c) && (c) <= 'r') \
14478                      || ('s' <= (c) && (c) <= 'z'))
14479 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14480 #endif
14481
14482 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14483 int
14484 main ()
14485 {
14486   int i;
14487   for (i = 0; i < 256; i++)
14488     if (XOR (islower (i), ISLOWER (i))
14489         || toupper (i) != TOUPPER (i))
14490       exit(2);
14491   exit (0);
14492 }
14493 _ACEOF
14494 rm -f conftest$ac_exeext
14495 { (eval echo $as_me:14495: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
14496   (./conftest$ac_exeext) >&5 2>&1;
14497 ac_status=$?
14498 if test $ac_status = 0; then
14499   :
14500 else
14501   echo "$as_me: program exited with status $ac_status" >&5
14502 echo "$as_me: failed program was:" >&5
14503 cat conftest.$ac_ext >&5
14504 ac_cv_header_stdc=no
14505 fi
14506
14507 rm -f conftest$ac_exeext conftest.$ac_ext
14508 fi
14509
14510 fi
14511 fi
14512 echo "$as_me:14512: result: $ac_cv_header_stdc" >&5
14513 echo "${ECHO_T}$ac_cv_header_stdc" >&6
14514 if test $ac_cv_header_stdc = yes; then
14515
14516 cat >>confdefs.h <<\EOF
14517 #define STDC_HEADERS 1
14518 EOF
14519
14520 fi
14521
14522 for ac_header in \
14523         arpa/ftp.h                              \
14524         arpa/inet.h                             \
14525         arpa/nameser.h                          \
14526         arpa/telnet.h                           \
14527         bind/bitypes.h                          \
14528         bsdsetjmp.h                             \
14529         crypt.h                                 \
14530         curses.h                                \
14531         dbm.h                                   \
14532         dirent.h                                \
14533         dlfcn.h                                 \
14534         err.h                                   \
14535         errno.h                                 \
14536         fcntl.h                                 \
14537         fnmatch.h                               \
14538         gdbm/ndbm.h                             \
14539         grp.h                                   \
14540         inttypes.h                              \
14541         io.h                                    \
14542         limits.h                                \
14543         maillock.h                              \
14544         ndbm.h                                  \
14545         net/if.h                                \
14546         netdb.h                                 \
14547         netinet/in.h                            \
14548         netinet/in6.h                           \
14549         netinet/in6_machtypes.h                 \
14550         netinet/in6_var.h                       \
14551         netinet/in_systm.h                      \
14552         netinet6/in6.h                          \
14553         netinfo/ni.h                            \
14554         paths.h                                 \
14555         pthread.h                               \
14556         pty.h                                   \
14557         pwd.h                                   \
14558         resolv.h                                \
14559         rpcsvc/dbm.h                            \
14560         sac.h                                   \
14561         security/pam_modules.h                  \
14562         sgtty.h                                 \
14563         shadow.h                                \
14564         siad.h                                  \
14565         signal.h                                \
14566         stropts.h                               \
14567         sys/bitypes.h                           \
14568         sys/category.h                          \
14569         sys/file.h                              \
14570         sys/filio.h                             \
14571         sys/ioccom.h                            \
14572         sys/ioctl.h                             \
14573         sys/param.h                             \
14574         sys/proc.h                              \
14575         sys/pty.h                               \
14576         sys/ptyio.h                             \
14577         sys/ptyvar.h                            \
14578         sys/resource.h                          \
14579         sys/select.h                            \
14580         sys/socket.h                            \
14581         sys/sockio.h                            \
14582         sys/stat.h                              \
14583         sys/str_tty.h                           \
14584         sys/stream.h                            \
14585         sys/stropts.h                           \
14586         sys/strtty.h                            \
14587         sys/syscall.h                           \
14588         sys/sysctl.h                            \
14589         sys/termio.h                            \
14590         sys/time.h                              \
14591         sys/timeb.h                             \
14592         sys/times.h                             \
14593         sys/tty.h                               \
14594         sys/types.h                             \
14595         sys/uio.h                               \
14596         sys/un.h                                \
14597         sys/utsname.h                           \
14598         sys/wait.h                              \
14599         syslog.h                                \
14600         term.h                                  \
14601         termio.h                                \
14602         termios.h                               \
14603         time.h                                  \
14604         tmpdir.h                                \
14605         udb.h                                   \
14606         unistd.h                                \
14607         userconf.h                              \
14608         usersec.h                               \
14609         util.h                                  \
14610         utmp.h                                  \
14611         utmpx.h                                 \
14612
14613 do
14614 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
14615
14616 echo "$as_me:14616: checking for $ac_header" >&5
14617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14618 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
14619   echo $ECHO_N "(cached) $ECHO_C" >&6
14620 else
14621   cat >conftest.$ac_ext <<_ACEOF
14622 #line 14622 "configure"
14623 #include "confdefs.h"
14624 #include <$ac_header>
14625
14626 _ACEOF
14627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
14628 if { (eval echo $as_me:14628: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
14629   if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
14630     ac_cpp_err=$ac_c_preproc_warn_flag
14631   else
14632     ac_cpp_err=
14633   fi
14634 else
14635   ac_cpp_err=yes
14636 fi
14637
14638 if test -z "$ac_cpp_err"; then
14639   eval "$ac_ac_Header=yes"
14640 else
14641   cat conftest.err >&5
14642   echo "$as_me: failed program was:" >&5
14643   cat conftest.$ac_ext >&5
14644   eval "$ac_ac_Header=no"
14645 fi
14646 rm -f conftest*
14647
14648 fi
14649 echo "$as_me:14649: result: `eval echo '${'$ac_ac_Header'}'`" >&5
14650 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
14651 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
14652   cat >>confdefs.h <<EOF
14653 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
14654 EOF
14655
14656 fi
14657 done
14658
14659 for ac_header in standards.h
14660 do
14661 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
14662
14663 echo "$as_me:14663: checking for $ac_header" >&5
14664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14665 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
14666   echo $ECHO_N "(cached) $ECHO_C" >&6
14667 else
14668   cat >conftest.$ac_ext <<_ACEOF
14669 #line 14669 "configure"
14670 #include "confdefs.h"
14671 #include <$ac_header>
14672
14673 _ACEOF
14674 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
14675 if { (eval echo $as_me:14675: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
14676   if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
14677     ac_cpp_err=$ac_c_preproc_warn_flag
14678   else
14679     ac_cpp_err=
14680   fi
14681 else
14682   ac_cpp_err=yes
14683 fi
14684
14685 if test -z "$ac_cpp_err"; then
14686   eval "$ac_ac_Header=yes"
14687 else
14688   cat conftest.err >&5
14689   echo "$as_me: failed program was:" >&5
14690   cat conftest.$ac_ext >&5
14691   eval "$ac_ac_Header=no"
14692 fi
14693 rm -f conftest*
14694
14695 fi
14696 echo "$as_me:14696: result: `eval echo '${'$ac_ac_Header'}'`" >&5
14697 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
14698 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
14699   cat >>confdefs.h <<EOF
14700 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
14701 EOF
14702
14703 fi
14704 done
14705
14706 for i in netinet/ip.h netinet/tcp.h; do
14707
14708 cv=`echo "$i" | sed 'y%./+-%__p_%'`
14709
14710 echo "$as_me:14710: checking for $i" >&5
14711 echo $ECHO_N "checking for $i... $ECHO_C" >&6
14712 if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then
14713   echo $ECHO_N "(cached) $ECHO_C" >&6
14714 else
14715   cat >conftest.$ac_ext <<_ACEOF
14716 #line 14716 "configure"
14717 #include "confdefs.h"
14718 \
14719 #ifdef HAVE_STANDARDS_H
14720 #include <standards.h>
14721 #endif
14722 #include <$i>
14723
14724 _ACEOF
14725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
14726 if { (eval echo $as_me:14726: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
14727   if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
14728     ac_cpp_err=$ac_c_preproc_warn_flag
14729   else
14730     ac_cpp_err=
14731   fi
14732 else
14733   ac_cpp_err=yes
14734 fi
14735
14736 if test -z "$ac_cpp_err"; then
14737   eval "ac_cv_header_$cv=yes"
14738 else
14739   cat conftest.err >&5
14740   echo "$as_me: failed program was:" >&5
14741   cat conftest.$ac_ext >&5
14742   eval "ac_cv_header_$cv=no"
14743 fi
14744 rm -f conftest*
14745
14746 fi
14747 echo "$as_me:14747: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5
14748 echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6
14749 ac_res=`eval echo \\$ac_cv_header_$cv`
14750 if test "$ac_res" = yes; then
14751         ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14752         cat >>confdefs.h <<EOF
14753 #define $ac_tr_hdr 1
14754 EOF
14755
14756 fi
14757 done
14758 if false;then
14759
14760 for ac_header in netinet/ip.h netinet/tcp.h
14761 do
14762 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
14763
14764 echo "$as_me:14764: checking for $ac_header" >&5
14765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14766 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
14767   echo $ECHO_N "(cached) $ECHO_C" >&6
14768 else
14769   cat >conftest.$ac_ext <<_ACEOF
14770 #line 14770 "configure"
14771 #include "confdefs.h"
14772 #include <$ac_header>
14773
14774 _ACEOF
14775 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
14776 if { (eval echo $as_me:14776: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
14777   if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
14778     ac_cpp_err=$ac_c_preproc_warn_flag
14779   else
14780     ac_cpp_err=
14781   fi
14782 else
14783   ac_cpp_err=yes
14784 fi
14785
14786 if test -z "$ac_cpp_err"; then
14787   eval "$ac_ac_Header=yes"
14788 else
14789   cat conftest.err >&5
14790   echo "$as_me: failed program was:" >&5
14791   cat conftest.$ac_ext >&5
14792   eval "$ac_ac_Header=no"
14793 fi
14794 rm -f conftest*
14795
14796 fi
14797 echo "$as_me:14797: result: `eval echo '${'$ac_ac_Header'}'`" >&5
14798 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
14799 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
14800   cat >>confdefs.h <<EOF
14801 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
14802 EOF
14803
14804 fi
14805 done
14806
14807 fi
14808
14809 # Check whether --enable-netinfo or --disable-netinfo was given.
14810 if test "${enable_netinfo+set}" = set; then
14811   enableval="$enable_netinfo"
14812
14813 fi;
14814
14815 if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then
14816
14817 cat >>confdefs.h <<\EOF
14818 #define HAVE_NETINFO 1
14819 EOF
14820
14821 fi
14822
14823 if test "$ac_cv_header_err_h" = yes; then
14824   have_err_h_TRUE=
14825   have_err_h_FALSE='#'
14826 else
14827   have_err_h_TRUE='#'
14828   have_err_h_FALSE=
14829 fi
14830
14831 if test "$ac_cv_header_fnmatch_h" = yes; then
14832   have_fnmatch_h_TRUE=
14833   have_fnmatch_h_FALSE='#'
14834 else
14835   have_fnmatch_h_TRUE='#'
14836   have_fnmatch_h_FALSE=
14837 fi
14838
14839 # Check whether --with-ipv6 or --without-ipv6 was given.
14840 if test "${with_ipv6+set}" = set; then
14841   withval="$with_ipv6"
14842
14843 if test "$withval" = "no"; then
14844         ac_cv_lib_ipv6=no
14845 fi
14846 fi;
14847 save_CFLAGS="${CFLAGS}"
14848 if test "${ac_cv_lib_ipv6+set}" = set; then
14849   echo $ECHO_N "(cached) $ECHO_C" >&6
14850 else
14851   v6type=unknown
14852 v6lib=none
14853
14854 echo "$as_me:14854: checking ipv6 stack type" >&5
14855 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
14856 for i in v6d toshiba kame inria zeta linux; do
14857         case $i in
14858         v6d)
14859                 cat >conftest.$ac_ext <<_ACEOF
14860 #line 14860 "configure"
14861 #include "confdefs.h"
14862
14863 #include </usr/local/v6/include/sys/types.h>
14864 #ifdef __V6D__
14865 yes
14866 #endif
14867 _ACEOF
14868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14869   egrep "yes" >/dev/null 2>&1; then
14870   v6type=$i; v6lib=v6;
14871                         v6libdir=/usr/local/v6/lib;
14872                         CFLAGS="-I/usr/local/v6/include $CFLAGS"
14873 fi
14874 rm -f conftest*
14875
14876                 ;;
14877         toshiba)
14878                 cat >conftest.$ac_ext <<_ACEOF
14879 #line 14879 "configure"
14880 #include "confdefs.h"
14881
14882 #include <sys/param.h>
14883 #ifdef _TOSHIBA_INET6
14884 yes
14885 #endif
14886 _ACEOF
14887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14888   egrep "yes" >/dev/null 2>&1; then
14889   v6type=$i; v6lib=inet6;
14890                         v6libdir=/usr/local/v6/lib;
14891                         CFLAGS="-DINET6 $CFLAGS"
14892 fi
14893 rm -f conftest*
14894
14895                 ;;
14896         kame)
14897                 cat >conftest.$ac_ext <<_ACEOF
14898 #line 14898 "configure"
14899 #include "confdefs.h"
14900
14901 #include <netinet/in.h>
14902 #ifdef __KAME__
14903 yes
14904 #endif
14905 _ACEOF
14906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14907   egrep "yes" >/dev/null 2>&1; then
14908   v6type=$i; v6lib=inet6;
14909                         v6libdir=/usr/local/v6/lib;
14910                         CFLAGS="-DINET6 $CFLAGS"
14911 fi
14912 rm -f conftest*
14913
14914                 ;;
14915         inria)
14916                 cat >conftest.$ac_ext <<_ACEOF
14917 #line 14917 "configure"
14918 #include "confdefs.h"
14919
14920 #include <netinet/in.h>
14921 #ifdef IPV6_INRIA_VERSION
14922 yes
14923 #endif
14924 _ACEOF
14925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14926   egrep "yes" >/dev/null 2>&1; then
14927   v6type=$i; CFLAGS="-DINET6 $CFLAGS"
14928 fi
14929 rm -f conftest*
14930
14931                 ;;
14932         zeta)
14933                 cat >conftest.$ac_ext <<_ACEOF
14934 #line 14934 "configure"
14935 #include "confdefs.h"
14936
14937 #include <sys/param.h>
14938 #ifdef _ZETA_MINAMI_INET6
14939 yes
14940 #endif
14941 _ACEOF
14942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14943   egrep "yes" >/dev/null 2>&1; then
14944   v6type=$i; v6lib=inet6;
14945                         v6libdir=/usr/local/v6/lib;
14946                         CFLAGS="-DINET6 $CFLAGS"
14947 fi
14948 rm -f conftest*
14949
14950                 ;;
14951         linux)
14952                 if test -d /usr/inet6; then
14953                         v6type=$i
14954                         v6lib=inet6
14955                         v6libdir=/usr/inet6
14956                         CFLAGS="-DINET6 $CFLAGS"
14957                 fi
14958                 ;;
14959         esac
14960         if test "$v6type" != "unknown"; then
14961                 break
14962         fi
14963 done
14964 echo "$as_me:14964: result: $v6type" >&5
14965 echo "${ECHO_T}$v6type" >&6
14966
14967 if test "$v6lib" != "none"; then
14968         for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
14969                 if test -d $dir -a -f $dir/lib$v6lib.a; then
14970                         LIBS="-L$dir -l$v6lib $LIBS"
14971                         break
14972                 fi
14973         done
14974 fi
14975 cat >conftest.$ac_ext <<_ACEOF
14976 #line 14976 "configure"
14977 #include "confdefs.h"
14978
14979 #ifdef HAVE_SYS_TYPES_H
14980 #include <sys/types.h>
14981 #endif
14982 #ifdef HAVE_SYS_SOCKET_H
14983 #include <sys/socket.h>
14984 #endif
14985 #ifdef HAVE_NETINET_IN_H
14986 #include <netinet/in.h>
14987 #endif
14988 #ifdef HAVE_NETINET_IN6_H
14989 #include <netinet/in6.h>
14990 #endif
14991
14992 int
14993 main ()
14994 {
14995
14996  struct sockaddr_in6 sin6;
14997  int s;
14998
14999  s = socket(AF_INET6, SOCK_DGRAM, 0);
15000
15001  sin6.sin6_family = AF_INET6;
15002  sin6.sin6_port = htons(17);
15003  sin6.sin6_addr = in6addr_any;
15004  bind(s, (struct sockaddr *)&sin6, sizeof(sin6));
15005
15006   ;
15007   return 0;
15008 }
15009 _ACEOF
15010 rm -f conftest.$ac_objext conftest$ac_exeext
15011 if { (eval echo $as_me:15011: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
15012   ac_cv_lib_ipv6=yes
15013 else
15014   echo "$as_me: failed program was:" >&5
15015   cat conftest.$ac_ext >&5
15016   ac_cv_lib_ipv6=no
15017 fi
15018 rm -f conftest$ac_exeext conftest.$ac_ext
15019 fi
15020
15021 echo "$as_me:15021: checking for IPv6" >&5
15022 echo $ECHO_N "checking for IPv6... $ECHO_C" >&6
15023 echo "$as_me:15023: result: $ac_cv_lib_ipv6" >&5
15024 echo "${ECHO_T}$ac_cv_lib_ipv6" >&6
15025 if test "$ac_cv_lib_ipv6" = yes; then
15026
15027 cat >>confdefs.h <<\EOF
15028 #define HAVE_IPV6 1
15029 EOF
15030
15031 else
15032   CFLAGS="${save_CFLAGS}"
15033 fi
15034
15035 echo "$as_me:15035: checking for socket" >&5
15036 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15037 if test "${ac_cv_funclib_socket+set}" = set; then
15038   echo $ECHO_N "(cached) $ECHO_C" >&6
15039 else
15040
15041 if eval "test \"\$ac_cv_func_socket\" != yes" ; then
15042         ac_save_LIBS="$LIBS"
15043         for ac_lib in "" socket; do
15044                 if test -n "$ac_lib"; then
15045                         ac_lib="-l$ac_lib"
15046                 else
15047                         ac_lib=""
15048                 fi
15049                 LIBS=" $ac_lib  $ac_save_LIBS"
15050                 cat >conftest.$ac_ext <<_ACEOF
15051 #line 15051 "configure"
15052 #include "confdefs.h"
15053
15054 int
15055 main ()
15056 {
15057 socket()
15058   ;
15059   return 0;
15060 }
15061 _ACEOF
15062 rm -f conftest.$ac_objext conftest$ac_exeext
15063 if { (eval echo $as_me:15063: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
15064   eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
15065 else
15066   echo "$as_me: failed program was:" >&5
15067   cat conftest.$ac_ext >&5
15068 fi
15069 rm -f conftest$ac_exeext conftest.$ac_ext
15070         done
15071         eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
15072         LIBS="$ac_save_LIBS"
15073 fi
15074
15075 fi
15076
15077 eval "ac_res=\$ac_cv_funclib_socket"
15078
15079 if false; then
15080
15081 for ac_func in socket
15082 do
15083 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15084 echo "$as_me:15084: checking for $ac_func" >&5
15085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15086 if eval "test \"\${$ac_ac_var+set}\" = set"; then
15087   echo $ECHO_N "(cached) $ECHO_C" >&6
15088 else
15089   cat >conftest.$ac_ext <<_ACEOF
15090 #line 15090 "configure"
15091 #include "confdefs.h"
15092 /* System header to define __stub macros and hopefully few prototypes,
15093     which can conflict with char $ac_func (); below.  */
15094 #include <assert.h>
15095 /* Override any gcc2 internal prototype to avoid an error.  */
15096 #ifdef __cplusplus
15097 extern "C"
15098 #endif
15099 /* We use char because int might match the return type of a gcc2
15100    builtin and then its argument prototype would still apply.  */
15101 char $ac_func ();
15102 char (*f) ();
15103
15104 int
15105 main ()
15106 {
15107 /* The GNU C library defines this for functions which it implements
15108     to always fail with ENOSYS.  Some functions are actually named
15109     something starting with __ and the normal name is an alias.  */
15110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15111 choke me
15112 #else
15113 f = $ac_func;
15114 #endif
15115
15116   ;
15117   return 0;
15118 }
15119 _ACEOF
15120 rm -f conftest.$ac_objext conftest$ac_exeext
15121 if { (eval echo $as_me:15121: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
15122   eval "$ac_ac_var=yes"
15123 else
15124   echo "$as_me: failed program was:" >&5
15125   cat conftest.$ac_ext >&5
15126   eval "$ac_ac_var=no"
15127 fi
15128 rm -f conftest$ac_exeext conftest.$ac_ext
15129 fi
15130 echo "$as_me:15130: result: `eval echo '${'$ac_ac_var'}'`" >&5
15131 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15132 if test `eval echo '${'$ac_ac_var'}'` = yes; then
15133   cat >>confdefs.h <<EOF
15134 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
15135 EOF
15136
15137 fi
15138 done
15139
15140 fi
15141 # socket
15142 eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15143 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15144 eval "LIB_socket=$ac_res"
15145
15146 case "$ac_res" in
15147         yes)
15148         eval "ac_cv_func_socket=yes"
15149         eval "LIB_socket="
15150         cat >>confdefs.h <<EOF
15151 #define $ac_tr_func 1
15152 EOF
15153
15154         echo "$as_me:15154: result: yes" >&5
15155 echo "${ECHO_T}yes" >&6
15156         ;;
15157         no)
15158         eval "ac_cv_func_socket=no"
15159         eval "LIB_socket="
15160         echo "$as_me:15160: result: no" >&5
15161 echo "${ECHO_T}no" >&6
15162         ;;
15163         *)
15164         eval "ac_cv_func_socket=yes"
15165         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15166         cat >>confdefs.h <<EOF
15167 #define $ac_tr_func 1
15168 EOF
15169
15170         cat >>confdefs.h <<EOF
15171 #define $ac_tr_lib 1
15172 EOF
15173
15174         echo "$as_me:15174: result: yes, in $ac_res" >&5
15175 echo "${ECHO_T}yes, in $ac_res" >&6
15176         ;;
15177 esac
15178
15179 if test -n "$LIB_socket"; then
15180         LIBS="$LIB_socket $LIBS"
15181 fi
15182
15183 echo "$as_me:15183: checking for gethostbyname" >&5
15184 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
15185 if test "${ac_cv_funclib_gethostbyname+set}" = set; then
15186   echo $ECHO_N "(cached) $ECHO_C" >&6
15187 else
15188
15189 if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
15190         ac_save_LIBS="$LIBS"
15191         for ac_lib in "" nsl; do
15192                 if test -n "$ac_lib"; then
15193                         ac_lib="-l$ac_lib"
15194                 else
15195                         ac_lib=""
15196                 fi
15197                 LIBS=" $ac_lib  $ac_save_LIBS"
15198                 cat >conftest.$ac_ext <<_ACEOF
15199 #line 15199 "configure"
15200 #include "confdefs.h"
15201
15202 int
15203 main ()
15204 {
15205 gethostbyname()
15206   ;
15207   return 0;
15208 }
15209 _ACEOF
15210 rm -f conftest.$ac_objext conftest$ac_exeext
15211 if { (eval echo $as_me:15211: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
15212   eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
15213 else
15214   echo "$as_me: failed program was:" >&5
15215   cat conftest.$ac_ext >&5
15216 fi
15217 rm -f conftest$ac_exeext conftest.$ac_ext
15218         done
15219         eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
15220         LIBS="$ac_save_LIBS"
15221 fi
15222
15223 fi
15224
15225 eval "ac_res=\$ac_cv_funclib_gethostbyname"
15226
15227 if false; then
15228
15229 for ac_func in gethostbyname
15230 do
15231 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15232 echo "$as_me:15232: checking for $ac_func" >&5
15233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15234 if eval "test \"\${$ac_ac_var+set}\" = set"; then
15235   echo $ECHO_N "(cached) $ECHO_C" >&6
15236 else
15237   cat >conftest.$ac_ext <<_ACEOF
15238 #line 15238 "configure"
15239 #include "confdefs.h"
15240 /* System header to define __stub macros and hopefully few prototypes,
15241     which can conflict with char $ac_func (); below.  */
15242 #include <assert.h>
15243 /* Override any gcc2 internal prototype to avoid an error.  */
15244 #ifdef __cplusplus
15245 extern "C"
15246 #endif
15247 /* We use char because int might match the return type of a gcc2
15248    builtin and then its argument prototype would still apply.  */
15249 char $ac_func ();
15250 char (*f) ();
15251
15252 int
15253 main ()
15254 {
15255 /* The GNU C library defines this for functions which it implements
15256     to always fail with ENOSYS.  Some functions are actually named
15257     something starting with __ and the normal name is an alias.  */
15258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15259 choke me
15260 #else
15261 f = $ac_func;
15262 #endif
15263
15264   ;
15265   return 0;
15266 }
15267 _ACEOF
15268 rm -f conftest.$ac_objext conftest$ac_exeext
15269 if { (eval echo $as_me:15269: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
15270   eval "$ac_ac_var=yes"
15271 else
15272   echo "$as_me: failed program was:" >&5
15273   cat conftest.$ac_ext >&5
15274   eval "$ac_ac_var=no"
15275 fi
15276 rm -f conftest$ac_exeext conftest.$ac_ext
15277 fi
15278 echo "$as_me:15278: result: `eval echo '${'$ac_ac_var'}'`" >&5
15279 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15280 if test `eval echo '${'$ac_ac_var'}'` = yes; then
15281   cat >>confdefs.h <<EOF
15282 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
15283 EOF
15284
15285 fi
15286 done
15287
15288 fi
15289 # gethostbyname
15290 eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15291 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15292 eval "LIB_gethostbyname=$ac_res"
15293
15294 case "$ac_res" in
15295         yes)
15296         eval "ac_cv_func_gethostbyname=yes"
15297         eval "LIB_gethostbyname="
15298         cat >>confdefs.h <<EOF
15299 #define $ac_tr_func 1
15300 EOF
15301
15302         echo "$as_me:15302: result: yes" >&5
15303 echo "${ECHO_T}yes" >&6
15304         ;;
15305         no)
15306         eval "ac_cv_func_gethostbyname=no"
15307         eval "LIB_gethostbyname="
15308         echo "$as_me:15308: result: no" >&5
15309 echo "${ECHO_T}no" >&6
15310         ;;
15311         *)
15312         eval "ac_cv_func_gethostbyname=yes"
15313         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15314         cat >>confdefs.h <<EOF
15315 #define $ac_tr_func 1
15316 EOF
15317
15318         cat >>confdefs.h <<EOF
15319 #define $ac_tr_lib 1
15320 EOF
15321
15322         echo "$as_me:15322: result: yes, in $ac_res" >&5
15323 echo "${ECHO_T}yes, in $ac_res" >&6
15324         ;;
15325 esac
15326
15327 if test -n "$LIB_gethostbyname"; then
15328         LIBS="$LIB_gethostbyname $LIBS"
15329 fi
15330
15331 echo "$as_me:15331: checking for syslog" >&5
15332 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
15333 if test "${ac_cv_funclib_syslog+set}" = set; then
15334   echo $ECHO_N "(cached) $ECHO_C" >&6
15335 else
15336
15337 if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
15338         ac_save_LIBS="$LIBS"
15339         for ac_lib in "" syslog; do
15340                 if test -n "$ac_lib"; then
15341                         ac_lib="-l$ac_lib"
15342                 else
15343                         ac_lib=""
15344                 fi
15345                 LIBS=" $ac_lib  $ac_save_LIBS"
15346                 cat >conftest.$ac_ext <<_ACEOF
15347 #line 15347 "configure"
15348 #include "confdefs.h"
15349
15350 int
15351 main ()
15352 {
15353 syslog()
15354   ;
15355   return 0;
15356 }
15357 _ACEOF
15358 rm -f conftest.$ac_objext conftest$ac_exeext
15359 if { (eval echo $as_me:15359: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
15360   eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
15361 else
15362   echo "$as_me: failed program was:" >&5
15363   cat conftest.$ac_ext >&5
15364 fi
15365 rm -f conftest$ac_exeext conftest.$ac_ext
15366         done
15367         eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
15368         LIBS="$ac_save_LIBS"
15369 fi
15370
15371 fi
15372
15373 eval "ac_res=\$ac_cv_funclib_syslog"
15374
15375 if false; then
15376
15377 for ac_func in syslog
15378 do
15379 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15380 echo "$as_me:15380: checking for $ac_func" >&5
15381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15382 if eval "test \"\${$ac_ac_var+set}\" = set"; then
15383   echo $ECHO_N "(cached) $ECHO_C" >&6
15384 else
15385   cat >conftest.$ac_ext <<_ACEOF
15386 #line 15386 "configure"
15387 #include "confdefs.h"
15388 /* System header to define __stub macros and hopefully few prototypes,
15389     which can conflict with char $ac_func (); below.  */
15390 #include <assert.h>
15391 /* Override any gcc2 internal prototype to avoid an error.  */
15392 #ifdef __cplusplus
15393 extern "C"
15394 #endif
15395 /* We use char because int might match the return type of a gcc2
15396    builtin and then its argument prototype would still apply.  */
15397 char $ac_func ();
15398 char (*f) ();
15399
15400 int
15401 main ()
15402 {
15403 /* The GNU C library defines this for functions which it implements
15404     to always fail with ENOSYS.  Some functions are actually named
15405     something starting with __ and the normal name is an alias.  */
15406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15407 choke me
15408 #else
15409 f = $ac_func;
15410 #endif
15411
15412   ;
15413   return 0;
15414 }
15415 _ACEOF
15416 rm -f conftest.$ac_objext conftest$ac_exeext
15417 if { (eval echo $as_me:15417: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
15418   eval "$ac_ac_var=yes"
15419 else
15420   echo "$as_me: failed program was:" >&5
15421   cat conftest.$ac_ext >&5
15422   eval "$ac_ac_var=no"
15423 fi
15424 rm -f conftest$ac_exeext conftest.$ac_ext
15425 fi
15426 echo "$as_me:15426: result: `eval echo '${'$ac_ac_var'}'`" >&5
15427 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15428 if test `eval echo '${'$ac_ac_var'}'` = yes; then
15429   cat >>confdefs.h <<EOF
15430 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
15431 EOF
15432
15433 fi
15434 done
15435
15436 fi
15437 # syslog
15438 eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15439 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15440 eval "LIB_syslog=$ac_res"
15441
15442 case "$ac_res" in
15443         yes)
15444         eval "ac_cv_func_syslog=yes"
15445         eval "LIB_syslog="
15446         cat >>confdefs.h <<EOF
15447 #define $ac_tr_func 1
15448 EOF
15449
15450         echo "$as_me:15450: result: yes" >&5
15451 echo "${ECHO_T}yes" >&6
15452         ;;
15453         no)
15454         eval "ac_cv_func_syslog=no"
15455         eval "LIB_syslog="
15456         echo "$as_me:15456: result: no" >&5
15457 echo "${ECHO_T}no" >&6
15458         ;;
15459         *)
15460         eval "ac_cv_func_syslog=yes"
15461         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15462         cat >>confdefs.h <<EOF
15463 #define $ac_tr_func 1
15464 EOF
15465
15466         cat >>confdefs.h <<EOF
15467 #define $ac_tr_lib 1
15468 EOF
15469
15470         echo "$as_me:15470: result: yes, in $ac_res" >&5
15471 echo "${ECHO_T}yes, in $ac_res" >&6
15472         ;;
15473 esac
15474
15475 if test -n "$LIB_syslog"; then
15476         LIBS="$LIB_syslog $LIBS"
15477 fi
15478
15479 echo "$as_me:15479: checking for logwtmp" >&5
15480 echo $ECHO_N "checking for logwtmp... $ECHO_C" >&6
15481 if test "${ac_cv_funclib_logwtmp+set}" = set; then
15482   echo $ECHO_N "(cached) $ECHO_C" >&6
15483 else
15484
15485 if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then
15486         ac_save_LIBS="$LIBS"
15487         for ac_lib in "" util; do
15488                 if test -n "$ac_lib"; then
15489                         ac_lib="-l$ac_lib"
15490                 else
15491                         ac_lib=""
15492                 fi
15493                 LIBS=" $ac_lib  $ac_save_LIBS"
15494                 cat >conftest.$ac_ext <<_ACEOF
15495 #line 15495 "configure"
15496 #include "confdefs.h"
15497
15498 int
15499 main ()
15500 {
15501 logwtmp()
15502   ;
15503   return 0;
15504 }
15505 _ACEOF
15506 rm -f conftest.$ac_objext conftest$ac_exeext
15507 if { (eval echo $as_me:15507: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
15508   eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break
15509 else
15510   echo "$as_me: failed program was:" >&5
15511   cat conftest.$ac_ext >&5
15512 fi
15513 rm -f conftest$ac_exeext conftest.$ac_ext
15514         done
15515         eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}"
15516         LIBS="$ac_save_LIBS"
15517 fi
15518
15519 fi
15520
15521 eval "ac_res=\$ac_cv_funclib_logwtmp"
15522
15523 if false; then
15524
15525 for ac_func in logwtmp
15526 do
15527 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15528 echo "$as_me:15528: checking for $ac_func" >&5
15529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15530 if eval "test \"\${$ac_ac_var+set}\" = set"; then
15531   echo $ECHO_N "(cached) $ECHO_C" >&6
15532 else
15533   cat >conftest.$ac_ext <<_ACEOF
15534 #line 15534 "configure"
15535 #include "confdefs.h"
15536 /* System header to define __stub macros and hopefully few prototypes,
15537     which can conflict with char $ac_func (); below.  */
15538 #include <assert.h>
15539 /* Override any gcc2 internal prototype to avoid an error.  */
15540 #ifdef __cplusplus
15541 extern "C"
15542 #endif
15543 /* We use char because int might match the return type of a gcc2
15544    builtin and then its argument prototype would still apply.  */
15545 char $ac_func ();
15546 char (*f) ();
15547
15548 int
15549 main ()
15550 {
15551 /* The GNU C library defines this for functions which it implements
15552     to always fail with ENOSYS.  Some functions are actually named
15553     something starting with __ and the normal name is an alias.  */
15554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15555 choke me
15556 #else
15557 f = $ac_func;
15558 #endif
15559
15560   ;
15561   return 0;
15562 }
15563 _ACEOF
15564 rm -f conftest.$ac_objext conftest$ac_exeext
15565 if { (eval echo $as_me:15565: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
15566   eval "$ac_ac_var=yes"
15567 else
15568   echo "$as_me: failed program was:" >&5
15569   cat conftest.$ac_ext >&5
15570   eval "$ac_ac_var=no"
15571 fi
15572 rm -f conftest$ac_exeext conftest.$ac_ext
15573 fi
15574 echo "$as_me:15574: result: `eval echo '${'$ac_ac_var'}'`" >&5
15575 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15576 if test `eval echo '${'$ac_ac_var'}'` = yes; then
15577   cat >>confdefs.h <<EOF
15578 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
15579 EOF
15580
15581 fi
15582 done
15583
15584 fi
15585 # logwtmp
15586 eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15587 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15588 eval "LIB_logwtmp=$ac_res"
15589
15590 case "$ac_res" in
15591         yes)
15592         eval "ac_cv_func_logwtmp=yes"
15593         eval "LIB_logwtmp="
15594         cat >>confdefs.h <<EOF
15595 #define $ac_tr_func 1
15596 EOF
15597
15598         echo "$as_me:15598: result: yes" >&5
15599 echo "${ECHO_T}yes" >&6
15600         ;;
15601         no)
15602         eval "ac_cv_func_logwtmp=no"
15603         eval "LIB_logwtmp="
15604         echo "$as_me:15604: result: no" >&5
15605 echo "${ECHO_T}no" >&6
15606         ;;
15607         *)
15608         eval "ac_cv_func_logwtmp=yes"
15609         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15610         cat >>confdefs.h <<EOF
15611 #define $ac_tr_func 1
15612 EOF
15613
15614         cat >>confdefs.h <<EOF
15615 #define $ac_tr_lib 1
15616 EOF
15617
15618         echo "$as_me:15618: result: yes, in $ac_res" >&5
15619 echo "${ECHO_T}yes, in $ac_res" >&6
15620         ;;
15621 esac
15622
15623 echo "$as_me:15623: checking for tgetent" >&5
15624 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
15625 if test "${ac_cv_funclib_tgetent+set}" = set; then
15626   echo $ECHO_N "(cached) $ECHO_C" >&6
15627 else
15628
15629 if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then
15630         ac_save_LIBS="$LIBS"
15631         for ac_lib in "" termcap ncurses curses; do
15632                 if test -n "$ac_lib"; then
15633                         ac_lib="-l$ac_lib"
15634                 else
15635                         ac_lib=""
15636                 fi
15637                 LIBS=" $ac_lib  $ac_save_LIBS"
15638                 cat >conftest.$ac_ext <<_ACEOF
15639 #line 15639 "configure"
15640 #include "confdefs.h"
15641
15642 int
15643 main ()
15644 {
15645 tgetent()
15646   ;
15647   return 0;
15648 }
15649 _ACEOF
15650 rm -f conftest.$ac_objext conftest$ac_exeext
15651 if { (eval echo $as_me:15651: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
15652   eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break
15653 else
15654   echo "$as_me: failed program was:" >&5
15655   cat conftest.$ac_ext >&5
15656 fi
15657 rm -f conftest$ac_exeext conftest.$ac_ext
15658         done
15659         eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}"
15660         LIBS="$ac_save_LIBS"
15661 fi
15662
15663 fi
15664
15665 eval "ac_res=\$ac_cv_funclib_tgetent"
15666
15667 if false; then
15668
15669 for ac_func in tgetent
15670 do
15671 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15672 echo "$as_me:15672: checking for $ac_func" >&5
15673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15674 if eval "test \"\${$ac_ac_var+set}\" = set"; then
15675   echo $ECHO_N "(cached) $ECHO_C" >&6
15676 else
15677   cat >conftest.$ac_ext <<_ACEOF
15678 #line 15678 "configure"
15679 #include "confdefs.h"
15680 /* System header to define __stub macros and hopefully few prototypes,
15681     which can conflict with char $ac_func (); below.  */
15682 #include <assert.h>
15683 /* Override any gcc2 internal prototype to avoid an error.  */
15684 #ifdef __cplusplus
15685 extern "C"
15686 #endif
15687 /* We use char because int might match the return type of a gcc2
15688    builtin and then its argument prototype would still apply.  */
15689 char $ac_func ();
15690 char (*f) ();
15691
15692 int
15693 main ()
15694 {
15695 /* The GNU C library defines this for functions which it implements
15696     to always fail with ENOSYS.  Some functions are actually named
15697     something starting with __ and the normal name is an alias.  */
15698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15699 choke me
15700 #else
15701 f = $ac_func;
15702 #endif
15703
15704   ;
15705   return 0;
15706 }
15707 _ACEOF
15708 rm -f conftest.$ac_objext conftest$ac_exeext
15709 if { (eval echo $as_me:15709: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
15710   eval "$ac_ac_var=yes"
15711 else
15712   echo "$as_me: failed program was:" >&5
15713   cat conftest.$ac_ext >&5
15714   eval "$ac_ac_var=no"
15715 fi
15716 rm -f conftest$ac_exeext conftest.$ac_ext
15717 fi
15718 echo "$as_me:15718: result: `eval echo '${'$ac_ac_var'}'`" >&5
15719 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15720 if test `eval echo '${'$ac_ac_var'}'` = yes; then
15721   cat >>confdefs.h <<EOF
15722 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
15723 EOF
15724
15725 fi
15726 done
15727
15728 fi
15729 # tgetent
15730 eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15731 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15732 eval "LIB_tgetent=$ac_res"
15733
15734 case "$ac_res" in
15735         yes)
15736         eval "ac_cv_func_tgetent=yes"
15737         eval "LIB_tgetent="
15738         cat >>confdefs.h <<EOF
15739 #define $ac_tr_func 1
15740 EOF
15741
15742         echo "$as_me:15742: result: yes" >&5
15743 echo "${ECHO_T}yes" >&6
15744         ;;
15745         no)
15746         eval "ac_cv_func_tgetent=no"
15747         eval "LIB_tgetent="
15748         echo "$as_me:15748: result: no" >&5
15749 echo "${ECHO_T}no" >&6
15750         ;;
15751         *)
15752         eval "ac_cv_func_tgetent=yes"
15753         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15754         cat >>confdefs.h <<EOF
15755 #define $ac_tr_func 1
15756 EOF
15757
15758         cat >>confdefs.h <<EOF
15759 #define $ac_tr_lib 1
15760 EOF
15761
15762         echo "$as_me:15762: result: yes, in $ac_res" >&5
15763 echo "${ECHO_T}yes, in $ac_res" >&6
15764         ;;
15765 esac
15766
15767 echo "$as_me:15767: checking for gethostbyname2" >&5
15768 echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6
15769 if test "${ac_cv_funclib_gethostbyname2+set}" = set; then
15770   echo $ECHO_N "(cached) $ECHO_C" >&6
15771 else
15772
15773 if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
15774         ac_save_LIBS="$LIBS"
15775         for ac_lib in "" inet6 ip6; do
15776                 if test -n "$ac_lib"; then
15777                         ac_lib="-l$ac_lib"
15778                 else
15779                         ac_lib=""
15780                 fi
15781                 LIBS=" $ac_lib  $ac_save_LIBS"
15782                 cat >conftest.$ac_ext <<_ACEOF
15783 #line 15783 "configure"
15784 #include "confdefs.h"
15785
15786 int
15787 main ()
15788 {
15789 gethostbyname2()
15790   ;
15791   return 0;
15792 }
15793 _ACEOF
15794 rm -f conftest.$ac_objext conftest$ac_exeext
15795 if { (eval echo $as_me:15795: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
15796   eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
15797 else
15798   echo "$as_me: failed program was:" >&5
15799   cat conftest.$ac_ext >&5
15800 fi
15801 rm -f conftest$ac_exeext conftest.$ac_ext
15802         done
15803         eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
15804         LIBS="$ac_save_LIBS"
15805 fi
15806
15807 fi
15808
15809 eval "ac_res=\$ac_cv_funclib_gethostbyname2"
15810
15811 if false; then
15812
15813 for ac_func in gethostbyname2
15814 do
15815 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15816 echo "$as_me:15816: checking for $ac_func" >&5
15817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15818 if eval "test \"\${$ac_ac_var+set}\" = set"; then
15819   echo $ECHO_N "(cached) $ECHO_C" >&6
15820 else
15821   cat >conftest.$ac_ext <<_ACEOF
15822 #line 15822 "configure"
15823 #include "confdefs.h"
15824 /* System header to define __stub macros and hopefully few prototypes,
15825     which can conflict with char $ac_func (); below.  */
15826 #include <assert.h>
15827 /* Override any gcc2 internal prototype to avoid an error.  */
15828 #ifdef __cplusplus
15829 extern "C"
15830 #endif
15831 /* We use char because int might match the return type of a gcc2
15832    builtin and then its argument prototype would still apply.  */
15833 char $ac_func ();
15834 char (*f) ();
15835
15836 int
15837 main ()
15838 {
15839 /* The GNU C library defines this for functions which it implements
15840     to always fail with ENOSYS.  Some functions are actually named
15841     something starting with __ and the normal name is an alias.  */
15842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15843 choke me
15844 #else
15845 f = $ac_func;
15846 #endif
15847
15848   ;
15849   return 0;
15850 }
15851 _ACEOF
15852 rm -f conftest.$ac_objext conftest$ac_exeext
15853 if { (eval echo $as_me:15853: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
15854   eval "$ac_ac_var=yes"
15855 else
15856   echo "$as_me: failed program was:" >&5
15857   cat conftest.$ac_ext >&5
15858   eval "$ac_ac_var=no"
15859 fi
15860 rm -f conftest$ac_exeext conftest.$ac_ext
15861 fi
15862 echo "$as_me:15862: result: `eval echo '${'$ac_ac_var'}'`" >&5
15863 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15864 if test `eval echo '${'$ac_ac_var'}'` = yes; then
15865   cat >>confdefs.h <<EOF
15866 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
15867 EOF
15868
15869 fi
15870 done
15871
15872 fi
15873 # gethostbyname2
15874 eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15875 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15876 eval "LIB_gethostbyname2=$ac_res"
15877
15878 case "$ac_res" in
15879         yes)
15880         eval "ac_cv_func_gethostbyname2=yes"
15881         eval "LIB_gethostbyname2="
15882         cat >>confdefs.h <<EOF
15883 #define $ac_tr_func 1
15884 EOF
15885
15886         echo "$as_me:15886: result: yes" >&5
15887 echo "${ECHO_T}yes" >&6
15888         ;;
15889         no)
15890         eval "ac_cv_func_gethostbyname2=no"
15891         eval "LIB_gethostbyname2="
15892         echo "$as_me:15892: result: no" >&5
15893 echo "${ECHO_T}no" >&6
15894         ;;
15895         *)
15896         eval "ac_cv_func_gethostbyname2=yes"
15897         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15898         cat >>confdefs.h <<EOF
15899 #define $ac_tr_func 1
15900 EOF
15901
15902         cat >>confdefs.h <<EOF
15903 #define $ac_tr_lib 1
15904 EOF
15905
15906         echo "$as_me:15906: result: yes, in $ac_res" >&5
15907 echo "${ECHO_T}yes, in $ac_res" >&6
15908         ;;
15909 esac
15910
15911 if test -n "$LIB_gethostbyname2"; then
15912         LIBS="$LIB_gethostbyname2 $LIBS"
15913 fi
15914
15915 echo "$as_me:15915: checking for res_search" >&5
15916 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
15917 if test "${ac_cv_funclib_res_search+set}" = set; then
15918   echo $ECHO_N "(cached) $ECHO_C" >&6
15919 else
15920
15921 if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
15922         ac_save_LIBS="$LIBS"
15923         for ac_lib in "" resolv; do
15924                 if test -n "$ac_lib"; then
15925                         ac_lib="-l$ac_lib"
15926                 else
15927                         ac_lib=""
15928                 fi
15929                 LIBS=" $ac_lib  $ac_save_LIBS"
15930                 cat >conftest.$ac_ext <<_ACEOF
15931 #line 15931 "configure"
15932 #include "confdefs.h"
15933
15934 #include <stdio.h>
15935 #ifdef HAVE_SYS_TYPES_H
15936 #include <sys/types.h>
15937 #endif
15938 #ifdef HAVE_NETINET_IN_H
15939 #include <netinet/in.h>
15940 #endif
15941 #ifdef HAVE_ARPA_NAMESER_H
15942 #include <arpa/nameser.h>
15943 #endif
15944 #ifdef HAVE_RESOLV_H
15945 #include <resolv.h>
15946 #endif
15947
15948 int
15949 main ()
15950 {
15951 res_search(0,0,0,0,0)
15952   ;
15953   return 0;
15954 }
15955 _ACEOF
15956 rm -f conftest.$ac_objext conftest$ac_exeext
15957 if { (eval echo $as_me:15957: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
15958   eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
15959 else
15960   echo "$as_me: failed program was:" >&5
15961   cat conftest.$ac_ext >&5
15962 fi
15963 rm -f conftest$ac_exeext conftest.$ac_ext
15964         done
15965         eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
15966         LIBS="$ac_save_LIBS"
15967 fi
15968
15969 fi
15970
15971 eval "ac_res=\$ac_cv_funclib_res_search"
15972
15973 if false; then
15974
15975 for ac_func in res_search
15976 do
15977 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15978 echo "$as_me:15978: checking for $ac_func" >&5
15979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15980 if eval "test \"\${$ac_ac_var+set}\" = set"; then
15981   echo $ECHO_N "(cached) $ECHO_C" >&6
15982 else
15983   cat >conftest.$ac_ext <<_ACEOF
15984 #line 15984 "configure"
15985 #include "confdefs.h"
15986 /* System header to define __stub macros and hopefully few prototypes,
15987     which can conflict with char $ac_func (); below.  */
15988 #include <assert.h>
15989 /* Override any gcc2 internal prototype to avoid an error.  */
15990 #ifdef __cplusplus
15991 extern "C"
15992 #endif
15993 /* We use char because int might match the return type of a gcc2
15994    builtin and then its argument prototype would still apply.  */
15995 char $ac_func ();
15996 char (*f) ();
15997
15998 int
15999 main ()
16000 {
16001 /* The GNU C library defines this for functions which it implements
16002     to always fail with ENOSYS.  Some functions are actually named
16003     something starting with __ and the normal name is an alias.  */
16004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16005 choke me
16006 #else
16007 f = $ac_func;
16008 #endif
16009
16010   ;
16011   return 0;
16012 }
16013 _ACEOF
16014 rm -f conftest.$ac_objext conftest$ac_exeext
16015 if { (eval echo $as_me:16015: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
16016   eval "$ac_ac_var=yes"
16017 else
16018   echo "$as_me: failed program was:" >&5
16019   cat conftest.$ac_ext >&5
16020   eval "$ac_ac_var=no"
16021 fi
16022 rm -f conftest$ac_exeext conftest.$ac_ext
16023 fi
16024 echo "$as_me:16024: result: `eval echo '${'$ac_ac_var'}'`" >&5
16025 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
16026 if test `eval echo '${'$ac_ac_var'}'` = yes; then
16027   cat >>confdefs.h <<EOF
16028 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
16029 EOF
16030
16031 fi
16032 done
16033
16034 fi
16035 # res_search
16036 eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16037 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16038 eval "LIB_res_search=$ac_res"
16039
16040 case "$ac_res" in
16041         yes)
16042         eval "ac_cv_func_res_search=yes"
16043         eval "LIB_res_search="
16044         cat >>confdefs.h <<EOF
16045 #define $ac_tr_func 1
16046 EOF
16047
16048         echo "$as_me:16048: result: yes" >&5
16049 echo "${ECHO_T}yes" >&6
16050         ;;
16051         no)
16052         eval "ac_cv_func_res_search=no"
16053         eval "LIB_res_search="
16054         echo "$as_me:16054: result: no" >&5
16055 echo "${ECHO_T}no" >&6
16056         ;;
16057         *)
16058         eval "ac_cv_func_res_search=yes"
16059         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
16060         cat >>confdefs.h <<EOF
16061 #define $ac_tr_func 1
16062 EOF
16063
16064         cat >>confdefs.h <<EOF
16065 #define $ac_tr_lib 1
16066 EOF
16067
16068         echo "$as_me:16068: result: yes, in $ac_res" >&5
16069 echo "${ECHO_T}yes, in $ac_res" >&6
16070         ;;
16071 esac
16072
16073 if test -n "$LIB_res_search"; then
16074         LIBS="$LIB_res_search $LIBS"
16075 fi
16076
16077 echo "$as_me:16077: checking for dn_expand" >&5
16078 echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6
16079 if test "${ac_cv_funclib_dn_expand+set}" = set; then
16080   echo $ECHO_N "(cached) $ECHO_C" >&6
16081 else
16082
16083 if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
16084         ac_save_LIBS="$LIBS"
16085         for ac_lib in "" resolv; do
16086                 if test -n "$ac_lib"; then
16087                         ac_lib="-l$ac_lib"
16088                 else
16089                         ac_lib=""
16090                 fi
16091                 LIBS=" $ac_lib  $ac_save_LIBS"
16092                 cat >conftest.$ac_ext <<_ACEOF
16093 #line 16093 "configure"
16094 #include "confdefs.h"
16095
16096 #include <stdio.h>
16097 #ifdef HAVE_SYS_TYPES_H
16098 #include <sys/types.h>
16099 #endif
16100 #ifdef HAVE_NETINET_IN_H
16101 #include <netinet/in.h>
16102 #endif
16103 #ifdef HAVE_ARPA_NAMESER_H
16104 #include <arpa/nameser.h>
16105 #endif
16106 #ifdef HAVE_RESOLV_H
16107 #include <resolv.h>
16108 #endif
16109
16110 int
16111 main ()
16112 {
16113 dn_expand(0,0,0,0,0)
16114   ;
16115   return 0;
16116 }
16117 _ACEOF
16118 rm -f conftest.$ac_objext conftest$ac_exeext
16119 if { (eval echo $as_me:16119: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
16120   eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
16121 else
16122   echo "$as_me: failed program was:" >&5
16123   cat conftest.$ac_ext >&5
16124 fi
16125 rm -f conftest$ac_exeext conftest.$ac_ext
16126         done
16127         eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
16128         LIBS="$ac_save_LIBS"
16129 fi
16130
16131 fi
16132
16133 eval "ac_res=\$ac_cv_funclib_dn_expand"
16134
16135 if false; then
16136
16137 for ac_func in dn_expand
16138 do
16139 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
16140 echo "$as_me:16140: checking for $ac_func" >&5
16141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16142 if eval "test \"\${$ac_ac_var+set}\" = set"; then
16143   echo $ECHO_N "(cached) $ECHO_C" >&6
16144 else
16145   cat >conftest.$ac_ext <<_ACEOF
16146 #line 16146 "configure"
16147 #include "confdefs.h"
16148 /* System header to define __stub macros and hopefully few prototypes,
16149     which can conflict with char $ac_func (); below.  */
16150 #include <assert.h>
16151 /* Override any gcc2 internal prototype to avoid an error.  */
16152 #ifdef __cplusplus
16153 extern "C"
16154 #endif
16155 /* We use char because int might match the return type of a gcc2
16156    builtin and then its argument prototype would still apply.  */
16157 char $ac_func ();
16158 char (*f) ();
16159
16160 int
16161 main ()
16162 {
16163 /* The GNU C library defines this for functions which it implements
16164     to always fail with ENOSYS.  Some functions are actually named
16165     something starting with __ and the normal name is an alias.  */
16166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16167 choke me
16168 #else
16169 f = $ac_func;
16170 #endif
16171
16172   ;
16173   return 0;
16174 }
16175 _ACEOF
16176 rm -f conftest.$ac_objext conftest$ac_exeext
16177 if { (eval echo $as_me:16177: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
16178   eval "$ac_ac_var=yes"
16179 else
16180   echo "$as_me: failed program was:" >&5
16181   cat conftest.$ac_ext >&5
16182   eval "$ac_ac_var=no"
16183 fi
16184 rm -f conftest$ac_exeext conftest.$ac_ext
16185 fi
16186 echo "$as_me:16186: result: `eval echo '${'$ac_ac_var'}'`" >&5
16187 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
16188 if test `eval echo '${'$ac_ac_var'}'` = yes; then
16189   cat >>confdefs.h <<EOF
16190 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
16191 EOF
16192
16193 fi
16194 done
16195
16196 fi
16197 # dn_expand
16198 eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16199 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16200 eval "LIB_dn_expand=$ac_res"
16201
16202 case "$ac_res" in
16203         yes)
16204         eval "ac_cv_func_dn_expand=yes"
16205         eval "LIB_dn_expand="
16206         cat >>confdefs.h <<EOF
16207 #define $ac_tr_func 1
16208 EOF
16209
16210         echo "$as_me:16210: result: yes" >&5
16211 echo "${ECHO_T}yes" >&6
16212         ;;
16213         no)
16214         eval "ac_cv_func_dn_expand=no"
16215         eval "LIB_dn_expand="
16216         echo "$as_me:16216: result: no" >&5
16217 echo "${ECHO_T}no" >&6
16218         ;;
16219         *)
16220         eval "ac_cv_func_dn_expand=yes"
16221         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
16222         cat >>confdefs.h <<EOF
16223 #define $ac_tr_func 1
16224 EOF
16225
16226         cat >>confdefs.h <<EOF
16227 #define $ac_tr_lib 1
16228 EOF
16229
16230         echo "$as_me:16230: result: yes, in $ac_res" >&5
16231 echo "${ECHO_T}yes, in $ac_res" >&6
16232         ;;
16233 esac
16234
16235 if test -n "$LIB_dn_expand"; then
16236         LIBS="$LIB_dn_expand $LIBS"
16237 fi
16238
16239 echo "$as_me:16239: checking for working snprintf" >&5
16240 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
16241 if test "${ac_cv_func_snprintf_working+set}" = set; then
16242   echo $ECHO_N "(cached) $ECHO_C" >&6
16243 else
16244   ac_cv_func_snprintf_working=yes
16245 if test "$cross_compiling" = yes; then
16246   :
16247 else
16248   cat >conftest.$ac_ext <<_ACEOF
16249 #line 16249 "configure"
16250 #include "confdefs.h"
16251
16252 #include <stdio.h>
16253 #include <string.h>
16254 int main()
16255 {
16256         char foo[3];
16257         snprintf(foo, 2, "12");
16258         return strcmp(foo, "1");
16259 }
16260 _ACEOF
16261 rm -f conftest$ac_exeext
16262 { (eval echo $as_me:16262: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
16263   (./conftest$ac_exeext) >&5 2>&1;
16264 ac_status=$?
16265 if test $ac_status = 0; then
16266   :
16267 else
16268   echo "$as_me: program exited with status $ac_status" >&5
16269 echo "$as_me: failed program was:" >&5
16270 cat conftest.$ac_ext >&5
16271 ac_cv_func_snprintf_working=no
16272 fi
16273
16274 rm -f conftest$ac_exeext conftest.$ac_ext
16275 fi
16276
16277 fi
16278 echo "$as_me:16278: result: $ac_cv_func_snprintf_working" >&5
16279 echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6
16280
16281 if test "$ac_cv_func_snprintf_working" = yes; then
16282
16283 cat >>confdefs.h <<EOF
16284 #define HAVE_SNPRINTF 1
16285 EOF
16286
16287 fi
16288 if test "$ac_cv_func_snprintf_working" = yes; then
16289
16290 if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
16291 echo "$as_me:16291: checking if snprintf needs a prototype" >&5
16292 echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6
16293 if test "${ac_cv_func_snprintf_noproto+set}" = set; then
16294   echo $ECHO_N "(cached) $ECHO_C" >&6
16295 else
16296   cat >conftest.$ac_ext <<_ACEOF
16297 #line 16297 "configure"
16298 #include "confdefs.h"
16299 #include <stdio.h>
16300 int
16301 main ()
16302 {
16303 struct foo { int foo; } xx;
16304 extern int snprintf (struct foo*);
16305 snprintf(&xx);
16306
16307   ;
16308   return 0;
16309 }
16310 _ACEOF
16311 rm -f conftest.$ac_objext
16312 if { (eval echo $as_me:16312: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
16313   eval "ac_cv_func_snprintf_noproto=yes"
16314 else
16315   echo "$as_me: failed program was:" >&5
16316   cat conftest.$ac_ext >&5
16317   eval "ac_cv_func_snprintf_noproto=no"
16318 fi
16319 rm -f conftest.$ac_objext conftest.$ac_ext
16320 fi
16321 echo "$as_me:16321: result: $ac_cv_func_snprintf_noproto" >&5
16322 echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6
16323
16324 if test "$ac_cv_func_snprintf_noproto" = yes; then
16325
16326 cat >>confdefs.h <<\EOF
16327 #define NEED_SNPRINTF_PROTO 1
16328 EOF
16329
16330 fi
16331
16332 fi
16333
16334 fi
16335
16336 echo "$as_me:16336: checking for working vsnprintf" >&5
16337 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
16338 if test "${ac_cv_func_vsnprintf_working+set}" = set; then
16339   echo $ECHO_N "(cached) $ECHO_C" >&6
16340 else
16341   ac_cv_func_vsnprintf_working=yes
16342 if test "$cross_compiling" = yes; then
16343   :
16344 else
16345   cat >conftest.$ac_ext <<_ACEOF
16346 #line 16346 "configure"
16347 #include "confdefs.h"
16348
16349 #include <stdio.h>
16350 #include <string.h>
16351 #include <stdarg.h>
16352
16353 int foo(int num, ...)
16354 {
16355         char bar[3];
16356         va_list arg;
16357         va_start(arg, num);
16358         vsnprintf(bar, 2, "%s", arg);
16359         va_end(arg);
16360         return strcmp(bar, "1");
16361 }
16362
16363 int main()
16364 {
16365         return foo(0, "12");
16366 }
16367 _ACEOF
16368 rm -f conftest$ac_exeext
16369 { (eval echo $as_me:16369: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
16370   (./conftest$ac_exeext) >&5 2>&1;
16371 ac_status=$?
16372 if test $ac_status = 0; then
16373   :
16374 else
16375   echo "$as_me: program exited with status $ac_status" >&5
16376 echo "$as_me: failed program was:" >&5
16377 cat conftest.$ac_ext >&5
16378 ac_cv_func_vsnprintf_working=no
16379 fi
16380
16381 rm -f conftest$ac_exeext conftest.$ac_ext
16382 fi
16383
16384 fi
16385 echo "$as_me:16385: result: $ac_cv_func_vsnprintf_working" >&5
16386 echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6
16387
16388 if test "$ac_cv_func_vsnprintf_working" = yes; then
16389
16390 cat >>confdefs.h <<EOF
16391 #define HAVE_VSNPRINTF 1
16392 EOF
16393
16394 fi
16395 if test "$ac_cv_func_vsnprintf_working" = yes; then
16396
16397 if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
16398 echo "$as_me:16398: checking if vsnprintf needs a prototype" >&5
16399 echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6
16400 if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then
16401   echo $ECHO_N "(cached) $ECHO_C" >&6
16402 else
16403   cat >conftest.$ac_ext <<_ACEOF
16404 #line 16404 "configure"
16405 #include "confdefs.h"
16406 #include <stdio.h>
16407 int
16408 main ()
16409 {
16410 struct foo { int foo; } xx;
16411 extern int vsnprintf (struct foo*);
16412 vsnprintf(&xx);
16413
16414   ;
16415   return 0;
16416 }
16417 _ACEOF
16418 rm -f conftest.$ac_objext
16419 if { (eval echo $as_me:16419: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
16420   eval "ac_cv_func_vsnprintf_noproto=yes"
16421 else
16422   echo "$as_me: failed program was:" >&5
16423   cat conftest.$ac_ext >&5
16424   eval "ac_cv_func_vsnprintf_noproto=no"
16425 fi
16426 rm -f conftest.$ac_objext conftest.$ac_ext
16427 fi
16428 echo "$as_me:16428: result: $ac_cv_func_vsnprintf_noproto" >&5
16429 echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6
16430
16431 if test "$ac_cv_func_vsnprintf_noproto" = yes; then
16432
16433 cat >>confdefs.h <<\EOF
16434 #define NEED_VSNPRINTF_PROTO 1
16435 EOF
16436
16437 fi
16438
16439 fi
16440
16441 fi
16442
16443 for ac_func in                          \
16444         _getpty                                 \
16445         _scrsize                                \
16446         fcntl                                   \
16447         gettimeofday                            \
16448         getuid                                  \
16449         grantpt                                 \
16450         mktime                                  \
16451         ptsname                                 \
16452         rand                                    \
16453         random                                  \
16454         revoke                                  \
16455         select                                  \
16456         setitimer                               \
16457         setpcred                                \
16458         setpgid                                 \
16459         setproctitle                            \
16460         setregid                                \
16461         setresgid                               \
16462         setresuid                               \
16463         setreuid                                \
16464         setsid                                  \
16465         setutent                                \
16466         sigaction                               \
16467         strstr                                  \
16468         timegm                                  \
16469         ttyname                                 \
16470         ttyslot                                 \
16471         umask                                   \
16472         unlockpt                                \
16473         vhangup                                 \
16474         yp_get_default_domain                   \
16475
16476 do
16477 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
16478 echo "$as_me:16478: checking for $ac_func" >&5
16479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16480 if eval "test \"\${$ac_ac_var+set}\" = set"; then
16481   echo $ECHO_N "(cached) $ECHO_C" >&6
16482 else
16483   cat >conftest.$ac_ext <<_ACEOF
16484 #line 16484 "configure"
16485 #include "confdefs.h"
16486 /* System header to define __stub macros and hopefully few prototypes,
16487     which can conflict with char $ac_func (); below.  */
16488 #include <assert.h>
16489 /* Override any gcc2 internal prototype to avoid an error.  */
16490 #ifdef __cplusplus
16491 extern "C"
16492 #endif
16493 /* We use char because int might match the return type of a gcc2
16494    builtin and then its argument prototype would still apply.  */
16495 char $ac_func ();
16496 char (*f) ();
16497
16498 int
16499 main ()
16500 {
16501 /* The GNU C library defines this for functions which it implements
16502     to always fail with ENOSYS.  Some functions are actually named
16503     something starting with __ and the normal name is an alias.  */
16504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16505 choke me
16506 #else
16507 f = $ac_func;
16508 #endif
16509
16510   ;
16511   return 0;
16512 }
16513 _ACEOF
16514 rm -f conftest.$ac_objext conftest$ac_exeext
16515 if { (eval echo $as_me:16515: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
16516   eval "$ac_ac_var=yes"
16517 else
16518   echo "$as_me: failed program was:" >&5
16519   cat conftest.$ac_ext >&5
16520   eval "$ac_ac_var=no"
16521 fi
16522 rm -f conftest$ac_exeext conftest.$ac_ext
16523 fi
16524 echo "$as_me:16524: result: `eval echo '${'$ac_ac_var'}'`" >&5
16525 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
16526 if test `eval echo '${'$ac_ac_var'}'` = yes; then
16527   cat >>confdefs.h <<EOF
16528 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
16529 EOF
16530
16531 fi
16532 done
16533
16534 for ac_header in capability.h sys/capability.h
16535 do
16536 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
16537
16538 echo "$as_me:16538: checking for $ac_header" >&5
16539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16540 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
16541   echo $ECHO_N "(cached) $ECHO_C" >&6
16542 else
16543   cat >conftest.$ac_ext <<_ACEOF
16544 #line 16544 "configure"
16545 #include "confdefs.h"
16546 #include <$ac_header>
16547
16548 _ACEOF
16549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
16550 if { (eval echo $as_me:16550: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
16551   if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
16552     ac_cpp_err=$ac_c_preproc_warn_flag
16553   else
16554     ac_cpp_err=
16555   fi
16556 else
16557   ac_cpp_err=yes
16558 fi
16559
16560 if test -z "$ac_cpp_err"; then
16561   eval "$ac_ac_Header=yes"
16562 else
16563   cat conftest.err >&5
16564   echo "$as_me: failed program was:" >&5
16565   cat conftest.$ac_ext >&5
16566   eval "$ac_ac_Header=no"
16567 fi
16568 rm -f conftest*
16569
16570 fi
16571 echo "$as_me:16571: result: `eval echo '${'$ac_ac_Header'}'`" >&5
16572 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
16573 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
16574   cat >>confdefs.h <<EOF
16575 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
16576 EOF
16577
16578 fi
16579 done
16580
16581 for ac_func in sgi_getcapabilitybyname cap_set_proc
16582 do
16583 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
16584 echo "$as_me:16584: checking for $ac_func" >&5
16585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16586 if eval "test \"\${$ac_ac_var+set}\" = set"; then
16587   echo $ECHO_N "(cached) $ECHO_C" >&6
16588 else
16589   cat >conftest.$ac_ext <<_ACEOF
16590 #line 16590 "configure"
16591 #include "confdefs.h"
16592 /* System header to define __stub macros and hopefully few prototypes,
16593     which can conflict with char $ac_func (); below.  */
16594 #include <assert.h>
16595 /* Override any gcc2 internal prototype to avoid an error.  */
16596 #ifdef __cplusplus
16597 extern "C"
16598 #endif
16599 /* We use char because int might match the return type of a gcc2
16600    builtin and then its argument prototype would still apply.  */
16601 char $ac_func ();
16602 char (*f) ();
16603
16604 int
16605 main ()
16606 {
16607 /* The GNU C library defines this for functions which it implements
16608     to always fail with ENOSYS.  Some functions are actually named
16609     something starting with __ and the normal name is an alias.  */
16610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16611 choke me
16612 #else
16613 f = $ac_func;
16614 #endif
16615
16616   ;
16617   return 0;
16618 }
16619 _ACEOF
16620 rm -f conftest.$ac_objext conftest$ac_exeext
16621 if { (eval echo $as_me:16621: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
16622   eval "$ac_ac_var=yes"
16623 else
16624   echo "$as_me: failed program was:" >&5
16625   cat conftest.$ac_ext >&5
16626   eval "$ac_ac_var=no"
16627 fi
16628 rm -f conftest$ac_exeext conftest.$ac_ext
16629 fi
16630 echo "$as_me:16630: result: `eval echo '${'$ac_ac_var'}'`" >&5
16631 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
16632 if test `eval echo '${'$ac_ac_var'}'` = yes; then
16633   cat >>confdefs.h <<EOF
16634 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
16635 EOF
16636
16637 fi
16638 done
16639
16640 echo "$as_me:16640: checking for getpwnam_r" >&5
16641 echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6
16642 if test "${ac_cv_funclib_getpwnam_r+set}" = set; then
16643   echo $ECHO_N "(cached) $ECHO_C" >&6
16644 else
16645
16646 if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then
16647         ac_save_LIBS="$LIBS"
16648         for ac_lib in "" c_r; do
16649                 if test -n "$ac_lib"; then
16650                         ac_lib="-l$ac_lib"
16651                 else
16652                         ac_lib=""
16653                 fi
16654                 LIBS=" $ac_lib  $ac_save_LIBS"
16655                 cat >conftest.$ac_ext <<_ACEOF
16656 #line 16656 "configure"
16657 #include "confdefs.h"
16658
16659 int
16660 main ()
16661 {
16662 getpwnam_r()
16663   ;
16664   return 0;
16665 }
16666 _ACEOF
16667 rm -f conftest.$ac_objext conftest$ac_exeext
16668 if { (eval echo $as_me:16668: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
16669   eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break
16670 else
16671   echo "$as_me: failed program was:" >&5
16672   cat conftest.$ac_ext >&5
16673 fi
16674 rm -f conftest$ac_exeext conftest.$ac_ext
16675         done
16676         eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}"
16677         LIBS="$ac_save_LIBS"
16678 fi
16679
16680 fi
16681
16682 eval "ac_res=\$ac_cv_funclib_getpwnam_r"
16683
16684 if false; then
16685
16686 for ac_func in getpwnam_r
16687 do
16688 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
16689 echo "$as_me:16689: checking for $ac_func" >&5
16690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16691 if eval "test \"\${$ac_ac_var+set}\" = set"; then
16692   echo $ECHO_N "(cached) $ECHO_C" >&6
16693 else
16694   cat >conftest.$ac_ext <<_ACEOF
16695 #line 16695 "configure"
16696 #include "confdefs.h"
16697 /* System header to define __stub macros and hopefully few prototypes,
16698     which can conflict with char $ac_func (); below.  */
16699 #include <assert.h>
16700 /* Override any gcc2 internal prototype to avoid an error.  */
16701 #ifdef __cplusplus
16702 extern "C"
16703 #endif
16704 /* We use char because int might match the return type of a gcc2
16705    builtin and then its argument prototype would still apply.  */
16706 char $ac_func ();
16707 char (*f) ();
16708
16709 int
16710 main ()
16711 {
16712 /* The GNU C library defines this for functions which it implements
16713     to always fail with ENOSYS.  Some functions are actually named
16714     something starting with __ and the normal name is an alias.  */
16715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16716 choke me
16717 #else
16718 f = $ac_func;
16719 #endif
16720
16721   ;
16722   return 0;
16723 }
16724 _ACEOF
16725 rm -f conftest.$ac_objext conftest$ac_exeext
16726 if { (eval echo $as_me:16726: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
16727   eval "$ac_ac_var=yes"
16728 else
16729   echo "$as_me: failed program was:" >&5
16730   cat conftest.$ac_ext >&5
16731   eval "$ac_ac_var=no"
16732 fi
16733 rm -f conftest$ac_exeext conftest.$ac_ext
16734 fi
16735 echo "$as_me:16735: result: `eval echo '${'$ac_ac_var'}'`" >&5
16736 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
16737 if test `eval echo '${'$ac_ac_var'}'` = yes; then
16738   cat >>confdefs.h <<EOF
16739 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
16740 EOF
16741
16742 fi
16743 done
16744
16745 fi
16746 # getpwnam_r
16747 eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16748 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16749 eval "LIB_getpwnam_r=$ac_res"
16750
16751 case "$ac_res" in
16752         yes)
16753         eval "ac_cv_func_getpwnam_r=yes"
16754         eval "LIB_getpwnam_r="
16755         cat >>confdefs.h <<EOF
16756 #define $ac_tr_func 1
16757 EOF
16758
16759         echo "$as_me:16759: result: yes" >&5
16760 echo "${ECHO_T}yes" >&6
16761         ;;
16762         no)
16763         eval "ac_cv_func_getpwnam_r=no"
16764         eval "LIB_getpwnam_r="
16765         echo "$as_me:16765: result: no" >&5
16766 echo "${ECHO_T}no" >&6
16767         ;;
16768         *)
16769         eval "ac_cv_func_getpwnam_r=yes"
16770         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
16771         cat >>confdefs.h <<EOF
16772 #define $ac_tr_func 1
16773 EOF
16774
16775         cat >>confdefs.h <<EOF
16776 #define $ac_tr_lib 1
16777 EOF
16778
16779         echo "$as_me:16779: result: yes, in $ac_res" >&5
16780 echo "${ECHO_T}yes, in $ac_res" >&6
16781         ;;
16782 esac
16783
16784 if test "$ac_cv_func_getpwnam_r" = yes; then
16785         echo "$as_me:16785: checking if getpwnam_r is posix" >&5
16786 echo $ECHO_N "checking if getpwnam_r is posix... $ECHO_C" >&6
16787 if test "${ac_cv_func_getpwnam_r_posix+set}" = set; then
16788   echo $ECHO_N "(cached) $ECHO_C" >&6
16789 else
16790   ac_libs="$LIBS"
16791         LIBS="$LIBS $LIB_getpwnam_r"
16792         if test "$cross_compiling" = yes; then
16793   :
16794 else
16795   cat >conftest.$ac_ext <<_ACEOF
16796 #line 16796 "configure"
16797 #include "confdefs.h"
16798
16799 #include <pwd.h>
16800 int main()
16801 {
16802         struct passwd pw, *pwd;
16803         return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;
16804 }
16805
16806 _ACEOF
16807 rm -f conftest$ac_exeext
16808 { (eval echo $as_me:16808: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
16809   (./conftest$ac_exeext) >&5 2>&1;
16810 ac_status=$?
16811 if test $ac_status = 0; then
16812   ac_cv_func_getpwnam_r_posix=yes
16813 else
16814   echo "$as_me: program exited with status $ac_status" >&5
16815 echo "$as_me: failed program was:" >&5
16816 cat conftest.$ac_ext >&5
16817 ac_cv_func_getpwnam_r_posix=no
16818 fi
16819
16820 rm -f conftest$ac_exeext conftest.$ac_ext
16821 fi
16822
16823 LIBS="$ac_libs"
16824 fi
16825 echo "$as_me:16825: result: $ac_cv_func_getpwnam_r_posix" >&5
16826 echo "${ECHO_T}$ac_cv_func_getpwnam_r_posix" >&6
16827 if test "$ac_cv_func_getpwnam_r_posix" = yes; then
16828
16829 cat >>confdefs.h <<\EOF
16830 #define POSIX_GETPWNAM_R 1
16831 EOF
16832
16833 fi
16834 fi
16835
16836 echo "$as_me:16836: checking for getsockopt" >&5
16837 echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6
16838 if test "${ac_cv_funclib_getsockopt+set}" = set; then
16839   echo $ECHO_N "(cached) $ECHO_C" >&6
16840 else
16841
16842 if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
16843         ac_save_LIBS="$LIBS"
16844         for ac_lib in "" ; do
16845                 if test -n "$ac_lib"; then
16846                         ac_lib="-l$ac_lib"
16847                 else
16848                         ac_lib=""
16849                 fi
16850                 LIBS=" $ac_lib  $ac_save_LIBS"
16851                 cat >conftest.$ac_ext <<_ACEOF
16852 #line 16852 "configure"
16853 #include "confdefs.h"
16854 #ifdef HAVE_SYS_TYPES_H
16855 #include <sys/types.h>
16856 #endif
16857 #ifdef HAVE_SYS_SOCKET_H
16858 #include <sys/socket.h>
16859 #endif
16860 int
16861 main ()
16862 {
16863 getsockopt(0,0,0,0,0)
16864   ;
16865   return 0;
16866 }
16867 _ACEOF
16868 rm -f conftest.$ac_objext conftest$ac_exeext
16869 if { (eval echo $as_me:16869: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
16870   eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
16871 else
16872   echo "$as_me: failed program was:" >&5
16873   cat conftest.$ac_ext >&5
16874 fi
16875 rm -f conftest$ac_exeext conftest.$ac_ext
16876         done
16877         eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
16878         LIBS="$ac_save_LIBS"
16879 fi
16880
16881 fi
16882
16883 eval "ac_res=\$ac_cv_funclib_getsockopt"
16884
16885 if false; then
16886
16887 for ac_func in getsockopt
16888 do
16889 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
16890 echo "$as_me:16890: checking for $ac_func" >&5
16891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16892 if eval "test \"\${$ac_ac_var+set}\" = set"; then
16893   echo $ECHO_N "(cached) $ECHO_C" >&6
16894 else
16895   cat >conftest.$ac_ext <<_ACEOF
16896 #line 16896 "configure"
16897 #include "confdefs.h"
16898 /* System header to define __stub macros and hopefully few prototypes,
16899     which can conflict with char $ac_func (); below.  */
16900 #include <assert.h>
16901 /* Override any gcc2 internal prototype to avoid an error.  */
16902 #ifdef __cplusplus
16903 extern "C"
16904 #endif
16905 /* We use char because int might match the return type of a gcc2
16906    builtin and then its argument prototype would still apply.  */
16907 char $ac_func ();
16908 char (*f) ();
16909
16910 int
16911 main ()
16912 {
16913 /* The GNU C library defines this for functions which it implements
16914     to always fail with ENOSYS.  Some functions are actually named
16915     something starting with __ and the normal name is an alias.  */
16916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16917 choke me
16918 #else
16919 f = $ac_func;
16920 #endif
16921
16922   ;
16923   return 0;
16924 }
16925 _ACEOF
16926 rm -f conftest.$ac_objext conftest$ac_exeext
16927 if { (eval echo $as_me:16927: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
16928   eval "$ac_ac_var=yes"
16929 else
16930   echo "$as_me: failed program was:" >&5
16931   cat conftest.$ac_ext >&5
16932   eval "$ac_ac_var=no"
16933 fi
16934 rm -f conftest$ac_exeext conftest.$ac_ext
16935 fi
16936 echo "$as_me:16936: result: `eval echo '${'$ac_ac_var'}'`" >&5
16937 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
16938 if test `eval echo '${'$ac_ac_var'}'` = yes; then
16939   cat >>confdefs.h <<EOF
16940 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
16941 EOF
16942
16943 fi
16944 done
16945
16946 fi
16947 # getsockopt
16948 eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16949 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16950 eval "LIB_getsockopt=$ac_res"
16951
16952 case "$ac_res" in
16953         yes)
16954         eval "ac_cv_func_getsockopt=yes"
16955         eval "LIB_getsockopt="
16956         cat >>confdefs.h <<EOF
16957 #define $ac_tr_func 1
16958 EOF
16959
16960         echo "$as_me:16960: result: yes" >&5
16961 echo "${ECHO_T}yes" >&6
16962         ;;
16963         no)
16964         eval "ac_cv_func_getsockopt=no"
16965         eval "LIB_getsockopt="
16966         echo "$as_me:16966: result: no" >&5
16967 echo "${ECHO_T}no" >&6
16968         ;;
16969         *)
16970         eval "ac_cv_func_getsockopt=yes"
16971         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
16972         cat >>confdefs.h <<EOF
16973 #define $ac_tr_func 1
16974 EOF
16975
16976         cat >>confdefs.h <<EOF
16977 #define $ac_tr_lib 1
16978 EOF
16979
16980         echo "$as_me:16980: result: yes, in $ac_res" >&5
16981 echo "${ECHO_T}yes, in $ac_res" >&6
16982         ;;
16983 esac
16984
16985 echo "$as_me:16985: checking for setsockopt" >&5
16986 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
16987 if test "${ac_cv_funclib_setsockopt+set}" = set; then
16988   echo $ECHO_N "(cached) $ECHO_C" >&6
16989 else
16990
16991 if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
16992         ac_save_LIBS="$LIBS"
16993         for ac_lib in "" ; do
16994                 if test -n "$ac_lib"; then
16995                         ac_lib="-l$ac_lib"
16996                 else
16997                         ac_lib=""
16998                 fi
16999                 LIBS=" $ac_lib  $ac_save_LIBS"
17000                 cat >conftest.$ac_ext <<_ACEOF
17001 #line 17001 "configure"
17002 #include "confdefs.h"
17003 #ifdef HAVE_SYS_TYPES_H
17004 #include <sys/types.h>
17005 #endif
17006 #ifdef HAVE_SYS_SOCKET_H
17007 #include <sys/socket.h>
17008 #endif
17009 int
17010 main ()
17011 {
17012 setsockopt(0,0,0,0,0)
17013   ;
17014   return 0;
17015 }
17016 _ACEOF
17017 rm -f conftest.$ac_objext conftest$ac_exeext
17018 if { (eval echo $as_me:17018: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
17019   eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
17020 else
17021   echo "$as_me: failed program was:" >&5
17022   cat conftest.$ac_ext >&5
17023 fi
17024 rm -f conftest$ac_exeext conftest.$ac_ext
17025         done
17026         eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
17027         LIBS="$ac_save_LIBS"
17028 fi
17029
17030 fi
17031
17032 eval "ac_res=\$ac_cv_funclib_setsockopt"
17033
17034 if false; then
17035
17036 for ac_func in setsockopt
17037 do
17038 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
17039 echo "$as_me:17039: checking for $ac_func" >&5
17040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17041 if eval "test \"\${$ac_ac_var+set}\" = set"; then
17042   echo $ECHO_N "(cached) $ECHO_C" >&6
17043 else
17044   cat >conftest.$ac_ext <<_ACEOF
17045 #line 17045 "configure"
17046 #include "confdefs.h"
17047 /* System header to define __stub macros and hopefully few prototypes,
17048     which can conflict with char $ac_func (); below.  */
17049 #include <assert.h>
17050 /* Override any gcc2 internal prototype to avoid an error.  */
17051 #ifdef __cplusplus
17052 extern "C"
17053 #endif
17054 /* We use char because int might match the return type of a gcc2
17055    builtin and then its argument prototype would still apply.  */
17056 char $ac_func ();
17057 char (*f) ();
17058
17059 int
17060 main ()
17061 {
17062 /* The GNU C library defines this for functions which it implements
17063     to always fail with ENOSYS.  Some functions are actually named
17064     something starting with __ and the normal name is an alias.  */
17065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17066 choke me
17067 #else
17068 f = $ac_func;
17069 #endif
17070
17071   ;
17072   return 0;
17073 }
17074 _ACEOF
17075 rm -f conftest.$ac_objext conftest$ac_exeext
17076 if { (eval echo $as_me:17076: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
17077   eval "$ac_ac_var=yes"
17078 else
17079   echo "$as_me: failed program was:" >&5
17080   cat conftest.$ac_ext >&5
17081   eval "$ac_ac_var=no"
17082 fi
17083 rm -f conftest$ac_exeext conftest.$ac_ext
17084 fi
17085 echo "$as_me:17085: result: `eval echo '${'$ac_ac_var'}'`" >&5
17086 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
17087 if test `eval echo '${'$ac_ac_var'}'` = yes; then
17088   cat >>confdefs.h <<EOF
17089 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
17090 EOF
17091
17092 fi
17093 done
17094
17095 fi
17096 # setsockopt
17097 eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17098 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17099 eval "LIB_setsockopt=$ac_res"
17100
17101 case "$ac_res" in
17102         yes)
17103         eval "ac_cv_func_setsockopt=yes"
17104         eval "LIB_setsockopt="
17105         cat >>confdefs.h <<EOF
17106 #define $ac_tr_func 1
17107 EOF
17108
17109         echo "$as_me:17109: result: yes" >&5
17110 echo "${ECHO_T}yes" >&6
17111         ;;
17112         no)
17113         eval "ac_cv_func_setsockopt=no"
17114         eval "LIB_setsockopt="
17115         echo "$as_me:17115: result: no" >&5
17116 echo "${ECHO_T}no" >&6
17117         ;;
17118         *)
17119         eval "ac_cv_func_setsockopt=yes"
17120         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
17121         cat >>confdefs.h <<EOF
17122 #define $ac_tr_func 1
17123 EOF
17124
17125         cat >>confdefs.h <<EOF
17126 #define $ac_tr_lib 1
17127 EOF
17128
17129         echo "$as_me:17129: result: yes, in $ac_res" >&5
17130 echo "${ECHO_T}yes, in $ac_res" >&6
17131         ;;
17132 esac
17133
17134 for ac_func in getudbnam setlim
17135 do
17136 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
17137 echo "$as_me:17137: checking for $ac_func" >&5
17138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17139 if eval "test \"\${$ac_ac_var+set}\" = set"; then
17140   echo $ECHO_N "(cached) $ECHO_C" >&6
17141 else
17142   cat >conftest.$ac_ext <<_ACEOF
17143 #line 17143 "configure"
17144 #include "confdefs.h"
17145 /* System header to define __stub macros and hopefully few prototypes,
17146     which can conflict with char $ac_func (); below.  */
17147 #include <assert.h>
17148 /* Override any gcc2 internal prototype to avoid an error.  */
17149 #ifdef __cplusplus
17150 extern "C"
17151 #endif
17152 /* We use char because int might match the return type of a gcc2
17153    builtin and then its argument prototype would still apply.  */
17154 char $ac_func ();
17155 char (*f) ();
17156
17157 int
17158 main ()
17159 {
17160 /* The GNU C library defines this for functions which it implements
17161     to always fail with ENOSYS.  Some functions are actually named
17162     something starting with __ and the normal name is an alias.  */
17163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17164 choke me
17165 #else
17166 f = $ac_func;
17167 #endif
17168
17169   ;
17170   return 0;
17171 }
17172 _ACEOF
17173 rm -f conftest.$ac_objext conftest$ac_exeext
17174 if { (eval echo $as_me:17174: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
17175   eval "$ac_ac_var=yes"
17176 else
17177   echo "$as_me: failed program was:" >&5
17178   cat conftest.$ac_ext >&5
17179   eval "$ac_ac_var=no"
17180 fi
17181 rm -f conftest$ac_exeext conftest.$ac_ext
17182 fi
17183 echo "$as_me:17183: result: `eval echo '${'$ac_ac_var'}'`" >&5
17184 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
17185 if test `eval echo '${'$ac_ac_var'}'` = yes; then
17186   cat >>confdefs.h <<EOF
17187 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
17188 EOF
17189
17190 fi
17191 done
17192
17193 echo "$as_me:17193: checking return type of signal handlers" >&5
17194 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
17195 if test "${ac_cv_type_signal+set}" = set; then
17196   echo $ECHO_N "(cached) $ECHO_C" >&6
17197 else
17198   cat >conftest.$ac_ext <<_ACEOF
17199 #line 17199 "configure"
17200 #include "confdefs.h"
17201 #include <sys/types.h>
17202 #include <signal.h>
17203 #ifdef signal
17204 # undef signal
17205 #endif
17206 #ifdef __cplusplus
17207 extern "C" void (*signal (int, void (*)(int)))(int);
17208 #else
17209 void (*signal ()) ();
17210 #endif
17211
17212 int
17213 main ()
17214 {
17215 int i;
17216   ;
17217   return 0;
17218 }
17219 _ACEOF
17220 rm -f conftest.$ac_objext
17221 if { (eval echo $as_me:17221: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17222   ac_cv_type_signal=void
17223 else
17224   echo "$as_me: failed program was:" >&5
17225   cat conftest.$ac_ext >&5
17226   ac_cv_type_signal=int
17227 fi
17228 rm -f conftest.$ac_objext conftest.$ac_ext
17229 fi
17230 echo "$as_me:17230: result: $ac_cv_type_signal" >&5
17231 echo "${ECHO_T}$ac_cv_type_signal" >&6
17232
17233 cat >>confdefs.h <<EOF
17234 #define RETSIGTYPE $ac_cv_type_signal
17235 EOF
17236
17237 if test "$ac_cv_type_signal" = "void" ; then
17238
17239 cat >>confdefs.h <<\EOF
17240 #define VOID_RETSIGTYPE 1
17241 EOF
17242
17243 fi
17244
17245 echo "$as_me:17245: checking if realloc if broken" >&5
17246 echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6
17247 if test "${ac_cv_func_realloc_broken+set}" = set; then
17248   echo $ECHO_N "(cached) $ECHO_C" >&6
17249 else
17250
17251 ac_cv_func_realloc_broken=no
17252 if test "$cross_compiling" = yes; then
17253   :
17254 else
17255   cat >conftest.$ac_ext <<_ACEOF
17256 #line 17256 "configure"
17257 #include "confdefs.h"
17258
17259 #include <stddef.h>
17260 #include <stdlib.h>
17261
17262 int main()
17263 {
17264         return realloc(NULL, 17) == NULL;
17265 }
17266
17267 _ACEOF
17268 rm -f conftest$ac_exeext
17269 { (eval echo $as_me:17269: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
17270   (./conftest$ac_exeext) >&5 2>&1;
17271 ac_status=$?
17272 if test $ac_status = 0; then
17273   :
17274 else
17275   echo "$as_me: program exited with status $ac_status" >&5
17276 echo "$as_me: failed program was:" >&5
17277 cat conftest.$ac_ext >&5
17278 ac_cv_func_realloc_broken=yes
17279 fi
17280
17281 rm -f conftest$ac_exeext conftest.$ac_ext
17282 fi
17283
17284 fi
17285 echo "$as_me:17285: result: $ac_cv_func_realloc_broken" >&5
17286 echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6
17287 if test "$ac_cv_func_realloc_broken" = yes ; then
17288
17289 cat >>confdefs.h <<\EOF
17290 #define BROKEN_REALLOC 1
17291 EOF
17292
17293 fi
17294
17295 echo "$as_me:17295: checking for ut_addr in struct utmp" >&5
17296 echo $ECHO_N "checking for ut_addr in struct utmp... $ECHO_C" >&6
17297 if test "${ac_cv_type_struct_utmp_ut_addr+set}" = set; then
17298   echo $ECHO_N "(cached) $ECHO_C" >&6
17299 else
17300
17301 cat >conftest.$ac_ext <<_ACEOF
17302 #line 17302 "configure"
17303 #include "confdefs.h"
17304 #include <utmp.h>
17305 int
17306 main ()
17307 {
17308 struct utmp x; x.ut_addr;
17309   ;
17310   return 0;
17311 }
17312 _ACEOF
17313 rm -f conftest.$ac_objext
17314 if { (eval echo $as_me:17314: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17315   ac_cv_type_struct_utmp_ut_addr=yes
17316 else
17317   echo "$as_me: failed program was:" >&5
17318   cat conftest.$ac_ext >&5
17319   ac_cv_type_struct_utmp_ut_addr=no
17320 fi
17321 rm -f conftest.$ac_objext conftest.$ac_ext
17322 fi
17323 echo "$as_me:17323: result: $ac_cv_type_struct_utmp_ut_addr" >&5
17324 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_addr" >&6
17325 if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then
17326
17327 cat >>confdefs.h <<\EOF
17328 #define HAVE_STRUCT_UTMP_UT_ADDR 1
17329 EOF
17330
17331 fi
17332
17333 echo "$as_me:17333: checking for ut_host in struct utmp" >&5
17334 echo $ECHO_N "checking for ut_host in struct utmp... $ECHO_C" >&6
17335 if test "${ac_cv_type_struct_utmp_ut_host+set}" = set; then
17336   echo $ECHO_N "(cached) $ECHO_C" >&6
17337 else
17338
17339 cat >conftest.$ac_ext <<_ACEOF
17340 #line 17340 "configure"
17341 #include "confdefs.h"
17342 #include <utmp.h>
17343 int
17344 main ()
17345 {
17346 struct utmp x; x.ut_host;
17347   ;
17348   return 0;
17349 }
17350 _ACEOF
17351 rm -f conftest.$ac_objext
17352 if { (eval echo $as_me:17352: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17353   ac_cv_type_struct_utmp_ut_host=yes
17354 else
17355   echo "$as_me: failed program was:" >&5
17356   cat conftest.$ac_ext >&5
17357   ac_cv_type_struct_utmp_ut_host=no
17358 fi
17359 rm -f conftest.$ac_objext conftest.$ac_ext
17360 fi
17361 echo "$as_me:17361: result: $ac_cv_type_struct_utmp_ut_host" >&5
17362 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_host" >&6
17363 if test "$ac_cv_type_struct_utmp_ut_host" = yes; then
17364
17365 cat >>confdefs.h <<\EOF
17366 #define HAVE_STRUCT_UTMP_UT_HOST 1
17367 EOF
17368
17369 fi
17370
17371 echo "$as_me:17371: checking for ut_id in struct utmp" >&5
17372 echo $ECHO_N "checking for ut_id in struct utmp... $ECHO_C" >&6
17373 if test "${ac_cv_type_struct_utmp_ut_id+set}" = set; then
17374   echo $ECHO_N "(cached) $ECHO_C" >&6
17375 else
17376
17377 cat >conftest.$ac_ext <<_ACEOF
17378 #line 17378 "configure"
17379 #include "confdefs.h"
17380 #include <utmp.h>
17381 int
17382 main ()
17383 {
17384 struct utmp x; x.ut_id;
17385   ;
17386   return 0;
17387 }
17388 _ACEOF
17389 rm -f conftest.$ac_objext
17390 if { (eval echo $as_me:17390: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17391   ac_cv_type_struct_utmp_ut_id=yes
17392 else
17393   echo "$as_me: failed program was:" >&5
17394   cat conftest.$ac_ext >&5
17395   ac_cv_type_struct_utmp_ut_id=no
17396 fi
17397 rm -f conftest.$ac_objext conftest.$ac_ext
17398 fi
17399 echo "$as_me:17399: result: $ac_cv_type_struct_utmp_ut_id" >&5
17400 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_id" >&6
17401 if test "$ac_cv_type_struct_utmp_ut_id" = yes; then
17402
17403 cat >>confdefs.h <<\EOF
17404 #define HAVE_STRUCT_UTMP_UT_ID 1
17405 EOF
17406
17407 fi
17408
17409 echo "$as_me:17409: checking for ut_pid in struct utmp" >&5
17410 echo $ECHO_N "checking for ut_pid in struct utmp... $ECHO_C" >&6
17411 if test "${ac_cv_type_struct_utmp_ut_pid+set}" = set; then
17412   echo $ECHO_N "(cached) $ECHO_C" >&6
17413 else
17414
17415 cat >conftest.$ac_ext <<_ACEOF
17416 #line 17416 "configure"
17417 #include "confdefs.h"
17418 #include <utmp.h>
17419 int
17420 main ()
17421 {
17422 struct utmp x; x.ut_pid;
17423   ;
17424   return 0;
17425 }
17426 _ACEOF
17427 rm -f conftest.$ac_objext
17428 if { (eval echo $as_me:17428: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17429   ac_cv_type_struct_utmp_ut_pid=yes
17430 else
17431   echo "$as_me: failed program was:" >&5
17432   cat conftest.$ac_ext >&5
17433   ac_cv_type_struct_utmp_ut_pid=no
17434 fi
17435 rm -f conftest.$ac_objext conftest.$ac_ext
17436 fi
17437 echo "$as_me:17437: result: $ac_cv_type_struct_utmp_ut_pid" >&5
17438 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_pid" >&6
17439 if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then
17440
17441 cat >>confdefs.h <<\EOF
17442 #define HAVE_STRUCT_UTMP_UT_PID 1
17443 EOF
17444
17445 fi
17446
17447 echo "$as_me:17447: checking for ut_type in struct utmp" >&5
17448 echo $ECHO_N "checking for ut_type in struct utmp... $ECHO_C" >&6
17449 if test "${ac_cv_type_struct_utmp_ut_type+set}" = set; then
17450   echo $ECHO_N "(cached) $ECHO_C" >&6
17451 else
17452
17453 cat >conftest.$ac_ext <<_ACEOF
17454 #line 17454 "configure"
17455 #include "confdefs.h"
17456 #include <utmp.h>
17457 int
17458 main ()
17459 {
17460 struct utmp x; x.ut_type;
17461   ;
17462   return 0;
17463 }
17464 _ACEOF
17465 rm -f conftest.$ac_objext
17466 if { (eval echo $as_me:17466: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17467   ac_cv_type_struct_utmp_ut_type=yes
17468 else
17469   echo "$as_me: failed program was:" >&5
17470   cat conftest.$ac_ext >&5
17471   ac_cv_type_struct_utmp_ut_type=no
17472 fi
17473 rm -f conftest.$ac_objext conftest.$ac_ext
17474 fi
17475 echo "$as_me:17475: result: $ac_cv_type_struct_utmp_ut_type" >&5
17476 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_type" >&6
17477 if test "$ac_cv_type_struct_utmp_ut_type" = yes; then
17478
17479 cat >>confdefs.h <<\EOF
17480 #define HAVE_STRUCT_UTMP_UT_TYPE 1
17481 EOF
17482
17483 fi
17484
17485 echo "$as_me:17485: checking for ut_user in struct utmp" >&5
17486 echo $ECHO_N "checking for ut_user in struct utmp... $ECHO_C" >&6
17487 if test "${ac_cv_type_struct_utmp_ut_user+set}" = set; then
17488   echo $ECHO_N "(cached) $ECHO_C" >&6
17489 else
17490
17491 cat >conftest.$ac_ext <<_ACEOF
17492 #line 17492 "configure"
17493 #include "confdefs.h"
17494 #include <utmp.h>
17495 int
17496 main ()
17497 {
17498 struct utmp x; x.ut_user;
17499   ;
17500   return 0;
17501 }
17502 _ACEOF
17503 rm -f conftest.$ac_objext
17504 if { (eval echo $as_me:17504: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17505   ac_cv_type_struct_utmp_ut_user=yes
17506 else
17507   echo "$as_me: failed program was:" >&5
17508   cat conftest.$ac_ext >&5
17509   ac_cv_type_struct_utmp_ut_user=no
17510 fi
17511 rm -f conftest.$ac_objext conftest.$ac_ext
17512 fi
17513 echo "$as_me:17513: result: $ac_cv_type_struct_utmp_ut_user" >&5
17514 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_user" >&6
17515 if test "$ac_cv_type_struct_utmp_ut_user" = yes; then
17516
17517 cat >>confdefs.h <<\EOF
17518 #define HAVE_STRUCT_UTMP_UT_USER 1
17519 EOF
17520
17521 fi
17522
17523 echo "$as_me:17523: checking for ut_exit in struct utmpx" >&5
17524 echo $ECHO_N "checking for ut_exit in struct utmpx... $ECHO_C" >&6
17525 if test "${ac_cv_type_struct_utmpx_ut_exit+set}" = set; then
17526   echo $ECHO_N "(cached) $ECHO_C" >&6
17527 else
17528
17529 cat >conftest.$ac_ext <<_ACEOF
17530 #line 17530 "configure"
17531 #include "confdefs.h"
17532 #include <utmpx.h>
17533 int
17534 main ()
17535 {
17536 struct utmpx x; x.ut_exit;
17537   ;
17538   return 0;
17539 }
17540 _ACEOF
17541 rm -f conftest.$ac_objext
17542 if { (eval echo $as_me:17542: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17543   ac_cv_type_struct_utmpx_ut_exit=yes
17544 else
17545   echo "$as_me: failed program was:" >&5
17546   cat conftest.$ac_ext >&5
17547   ac_cv_type_struct_utmpx_ut_exit=no
17548 fi
17549 rm -f conftest.$ac_objext conftest.$ac_ext
17550 fi
17551 echo "$as_me:17551: result: $ac_cv_type_struct_utmpx_ut_exit" >&5
17552 echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_exit" >&6
17553 if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then
17554
17555 cat >>confdefs.h <<\EOF
17556 #define HAVE_STRUCT_UTMPX_UT_EXIT 1
17557 EOF
17558
17559 fi
17560
17561 echo "$as_me:17561: checking for ut_syslen in struct utmpx" >&5
17562 echo $ECHO_N "checking for ut_syslen in struct utmpx... $ECHO_C" >&6
17563 if test "${ac_cv_type_struct_utmpx_ut_syslen+set}" = set; then
17564   echo $ECHO_N "(cached) $ECHO_C" >&6
17565 else
17566
17567 cat >conftest.$ac_ext <<_ACEOF
17568 #line 17568 "configure"
17569 #include "confdefs.h"
17570 #include <utmpx.h>
17571 int
17572 main ()
17573 {
17574 struct utmpx x; x.ut_syslen;
17575   ;
17576   return 0;
17577 }
17578 _ACEOF
17579 rm -f conftest.$ac_objext
17580 if { (eval echo $as_me:17580: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17581   ac_cv_type_struct_utmpx_ut_syslen=yes
17582 else
17583   echo "$as_me: failed program was:" >&5
17584   cat conftest.$ac_ext >&5
17585   ac_cv_type_struct_utmpx_ut_syslen=no
17586 fi
17587 rm -f conftest.$ac_objext conftest.$ac_ext
17588 fi
17589 echo "$as_me:17589: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5
17590 echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_syslen" >&6
17591 if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then
17592
17593 cat >>confdefs.h <<\EOF
17594 #define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
17595 EOF
17596
17597 fi
17598
17599 echo "$as_me:17599: checking for tm_gmtoff in struct tm" >&5
17600 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
17601 if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then
17602   echo $ECHO_N "(cached) $ECHO_C" >&6
17603 else
17604
17605 cat >conftest.$ac_ext <<_ACEOF
17606 #line 17606 "configure"
17607 #include "confdefs.h"
17608 #include <time.h>
17609 int
17610 main ()
17611 {
17612 struct tm x; x.tm_gmtoff;
17613   ;
17614   return 0;
17615 }
17616 _ACEOF
17617 rm -f conftest.$ac_objext
17618 if { (eval echo $as_me:17618: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17619   ac_cv_type_struct_tm_tm_gmtoff=yes
17620 else
17621   echo "$as_me: failed program was:" >&5
17622   cat conftest.$ac_ext >&5
17623   ac_cv_type_struct_tm_tm_gmtoff=no
17624 fi
17625 rm -f conftest.$ac_objext conftest.$ac_ext
17626 fi
17627 echo "$as_me:17627: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
17628 echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6
17629 if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then
17630
17631 cat >>confdefs.h <<\EOF
17632 #define HAVE_STRUCT_TM_TM_GMTOFF 1
17633 EOF
17634
17635 fi
17636
17637 echo "$as_me:17637: checking for tm_zone in struct tm" >&5
17638 echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6
17639 if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then
17640   echo $ECHO_N "(cached) $ECHO_C" >&6
17641 else
17642
17643 cat >conftest.$ac_ext <<_ACEOF
17644 #line 17644 "configure"
17645 #include "confdefs.h"
17646 #include <time.h>
17647 int
17648 main ()
17649 {
17650 struct tm x; x.tm_zone;
17651   ;
17652   return 0;
17653 }
17654 _ACEOF
17655 rm -f conftest.$ac_objext
17656 if { (eval echo $as_me:17656: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17657   ac_cv_type_struct_tm_tm_zone=yes
17658 else
17659   echo "$as_me: failed program was:" >&5
17660   cat conftest.$ac_ext >&5
17661   ac_cv_type_struct_tm_tm_zone=no
17662 fi
17663 rm -f conftest.$ac_objext conftest.$ac_ext
17664 fi
17665 echo "$as_me:17665: result: $ac_cv_type_struct_tm_tm_zone" >&5
17666 echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6
17667 if test "$ac_cv_type_struct_tm_tm_zone" = yes; then
17668
17669 cat >>confdefs.h <<\EOF
17670 #define HAVE_STRUCT_TM_TM_ZONE 1
17671 EOF
17672
17673 fi
17674
17675 echo "$as_me:17675: checking for timezone" >&5
17676 echo $ECHO_N "checking for timezone... $ECHO_C" >&6
17677 if test "${ac_cv_var_timezone+set}" = set; then
17678   echo $ECHO_N "(cached) $ECHO_C" >&6
17679 else
17680
17681 cat >conftest.$ac_ext <<_ACEOF
17682 #line 17682 "configure"
17683 #include "confdefs.h"
17684 extern int timezone;
17685 int foo() { return timezone; }
17686 int
17687 main ()
17688 {
17689 foo()
17690   ;
17691   return 0;
17692 }
17693 _ACEOF
17694 rm -f conftest.$ac_objext conftest$ac_exeext
17695 if { (eval echo $as_me:17695: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
17696   ac_cv_var_timezone=yes
17697 else
17698   echo "$as_me: failed program was:" >&5
17699   cat conftest.$ac_ext >&5
17700   ac_cv_var_timezone=no
17701 fi
17702 rm -f conftest$ac_exeext conftest.$ac_ext
17703
17704 fi
17705
17706 ac_foo=`eval echo \\$ac_cv_var_timezone`
17707 echo "$as_me:17707: result: $ac_foo" >&5
17708 echo "${ECHO_T}$ac_foo" >&6
17709 if test "$ac_foo" = yes; then
17710
17711 cat >>confdefs.h <<EOF
17712 #define HAVE_TIMEZONE 1
17713 EOF
17714
17715 echo "$as_me:17715: checking if timezone is properly declared" >&5
17716 echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6
17717 if test "${ac_cv_var_timezone_declaration+set}" = set; then
17718   echo $ECHO_N "(cached) $ECHO_C" >&6
17719 else
17720
17721 cat >conftest.$ac_ext <<_ACEOF
17722 #line 17722 "configure"
17723 #include "confdefs.h"
17724 #include <time.h>
17725 extern struct { int foo; } timezone;
17726 int
17727 main ()
17728 {
17729 timezone.foo = 1;
17730   ;
17731   return 0;
17732 }
17733 _ACEOF
17734 rm -f conftest.$ac_objext
17735 if { (eval echo $as_me:17735: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17736   eval "ac_cv_var_timezone_declaration=no"
17737 else
17738   echo "$as_me: failed program was:" >&5
17739   cat conftest.$ac_ext >&5
17740   eval "ac_cv_var_timezone_declaration=yes"
17741 fi
17742 rm -f conftest.$ac_objext conftest.$ac_ext
17743
17744 fi
17745
17746 echo "$as_me:17746: result: $ac_cv_var_timezone_declaration" >&5
17747 echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6
17748 if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then
17749
17750 cat >>confdefs.h <<\EOF
17751 #define HAVE_TIMEZONE_DECLARATION 1
17752 EOF
17753
17754 fi
17755
17756 fi
17757
17758 cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
17759 echo "$as_me:17759: checking for sa_family_t" >&5
17760 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
17761 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
17762   echo $ECHO_N "(cached) $ECHO_C" >&6
17763 else
17764   cat >conftest.$ac_ext <<_ACEOF
17765 #line 17765 "configure"
17766 #include "confdefs.h"
17767 #include <sys/types.h>
17768 #if STDC_HEADERS
17769 #include <stdlib.h>
17770 #include <stddef.h>
17771 #endif
17772 #include <sys/socket.h>
17773 int
17774 main ()
17775 {
17776 sa_family_t foo;
17777   ;
17778   return 0;
17779 }
17780 _ACEOF
17781 rm -f conftest.$ac_objext
17782 if { (eval echo $as_me:17782: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17783   eval "ac_cv_type_$cv=yes"
17784 else
17785   echo "$as_me: failed program was:" >&5
17786   cat conftest.$ac_ext >&5
17787   eval "ac_cv_type_$cv=no"
17788 fi
17789 rm -f conftest.$ac_objext conftest.$ac_ext
17790 fi
17791 ac_foo=`eval echo \\$ac_cv_type_$cv`
17792 echo "$as_me:17792: result: $ac_foo" >&5
17793 echo "${ECHO_T}$ac_foo" >&6
17794 if test "$ac_foo" = yes; then
17795   ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
17796 if false; then
17797         echo "$as_me:17797: checking for sa_family_t" >&5
17798 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
17799 if test "${ac_cv_type_sa_family_t+set}" = set; then
17800   echo $ECHO_N "(cached) $ECHO_C" >&6
17801 else
17802   cat >conftest.$ac_ext <<_ACEOF
17803 #line 17803 "configure"
17804 #include "confdefs.h"
17805 $ac_includes_default
17806 int
17807 main ()
17808 {
17809 if ((sa_family_t *) 0)
17810   return 0;
17811 if (sizeof (sa_family_t))
17812   return 0;
17813   ;
17814   return 0;
17815 }
17816 _ACEOF
17817 rm -f conftest.$ac_objext
17818 if { (eval echo $as_me:17818: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17819   ac_cv_type_sa_family_t=yes
17820 else
17821   echo "$as_me: failed program was:" >&5
17822   cat conftest.$ac_ext >&5
17823   ac_cv_type_sa_family_t=no
17824 fi
17825 rm -f conftest.$ac_objext conftest.$ac_ext
17826 fi
17827 echo "$as_me:17827: result: $ac_cv_type_sa_family_t" >&5
17828 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
17829 if test $ac_cv_type_sa_family_t = yes; then
17830
17831 cat >>confdefs.h <<EOF
17832 #define HAVE_SA_FAMILY_T 1
17833 EOF
17834
17835 fi
17836
17837 fi
17838
17839 cat >>confdefs.h <<EOF
17840 #define $ac_tr_hdr 1
17841 EOF
17842
17843 fi
17844
17845 cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
17846 echo "$as_me:17846: checking for socklen_t" >&5
17847 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
17848 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
17849   echo $ECHO_N "(cached) $ECHO_C" >&6
17850 else
17851   cat >conftest.$ac_ext <<_ACEOF
17852 #line 17852 "configure"
17853 #include "confdefs.h"
17854 #include <sys/types.h>
17855 #if STDC_HEADERS
17856 #include <stdlib.h>
17857 #include <stddef.h>
17858 #endif
17859 #include <sys/socket.h>
17860 int
17861 main ()
17862 {
17863 socklen_t foo;
17864   ;
17865   return 0;
17866 }
17867 _ACEOF
17868 rm -f conftest.$ac_objext
17869 if { (eval echo $as_me:17869: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17870   eval "ac_cv_type_$cv=yes"
17871 else
17872   echo "$as_me: failed program was:" >&5
17873   cat conftest.$ac_ext >&5
17874   eval "ac_cv_type_$cv=no"
17875 fi
17876 rm -f conftest.$ac_objext conftest.$ac_ext
17877 fi
17878 ac_foo=`eval echo \\$ac_cv_type_$cv`
17879 echo "$as_me:17879: result: $ac_foo" >&5
17880 echo "${ECHO_T}$ac_foo" >&6
17881 if test "$ac_foo" = yes; then
17882   ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
17883 if false; then
17884         echo "$as_me:17884: checking for socklen_t" >&5
17885 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
17886 if test "${ac_cv_type_socklen_t+set}" = set; then
17887   echo $ECHO_N "(cached) $ECHO_C" >&6
17888 else
17889   cat >conftest.$ac_ext <<_ACEOF
17890 #line 17890 "configure"
17891 #include "confdefs.h"
17892 $ac_includes_default
17893 int
17894 main ()
17895 {
17896 if ((socklen_t *) 0)
17897   return 0;
17898 if (sizeof (socklen_t))
17899   return 0;
17900   ;
17901   return 0;
17902 }
17903 _ACEOF
17904 rm -f conftest.$ac_objext
17905 if { (eval echo $as_me:17905: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17906   ac_cv_type_socklen_t=yes
17907 else
17908   echo "$as_me: failed program was:" >&5
17909   cat conftest.$ac_ext >&5
17910   ac_cv_type_socklen_t=no
17911 fi
17912 rm -f conftest.$ac_objext conftest.$ac_ext
17913 fi
17914 echo "$as_me:17914: result: $ac_cv_type_socklen_t" >&5
17915 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
17916 if test $ac_cv_type_socklen_t = yes; then
17917
17918 cat >>confdefs.h <<EOF
17919 #define HAVE_SOCKLEN_T 1
17920 EOF
17921
17922 fi
17923
17924 fi
17925
17926 cat >>confdefs.h <<EOF
17927 #define $ac_tr_hdr 1
17928 EOF
17929
17930 fi
17931
17932 cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
17933 echo "$as_me:17933: checking for struct sockaddr" >&5
17934 echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
17935 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
17936   echo $ECHO_N "(cached) $ECHO_C" >&6
17937 else
17938   cat >conftest.$ac_ext <<_ACEOF
17939 #line 17939 "configure"
17940 #include "confdefs.h"
17941 #include <sys/types.h>
17942 #if STDC_HEADERS
17943 #include <stdlib.h>
17944 #include <stddef.h>
17945 #endif
17946 #include <sys/socket.h>
17947 int
17948 main ()
17949 {
17950 struct sockaddr foo;
17951   ;
17952   return 0;
17953 }
17954 _ACEOF
17955 rm -f conftest.$ac_objext
17956 if { (eval echo $as_me:17956: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17957   eval "ac_cv_type_$cv=yes"
17958 else
17959   echo "$as_me: failed program was:" >&5
17960   cat conftest.$ac_ext >&5
17961   eval "ac_cv_type_$cv=no"
17962 fi
17963 rm -f conftest.$ac_objext conftest.$ac_ext
17964 fi
17965 ac_foo=`eval echo \\$ac_cv_type_$cv`
17966 echo "$as_me:17966: result: $ac_foo" >&5
17967 echo "${ECHO_T}$ac_foo" >&6
17968 if test "$ac_foo" = yes; then
17969   ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
17970 if false; then
17971         echo "$as_me:17971: checking for struct sockaddr" >&5
17972 echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
17973 if test "${ac_cv_type_struct_sockaddr+set}" = set; then
17974   echo $ECHO_N "(cached) $ECHO_C" >&6
17975 else
17976   cat >conftest.$ac_ext <<_ACEOF
17977 #line 17977 "configure"
17978 #include "confdefs.h"
17979 $ac_includes_default
17980 int
17981 main ()
17982 {
17983 if ((struct sockaddr *) 0)
17984   return 0;
17985 if (sizeof (struct sockaddr))
17986   return 0;
17987   ;
17988   return 0;
17989 }
17990 _ACEOF
17991 rm -f conftest.$ac_objext
17992 if { (eval echo $as_me:17992: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17993   ac_cv_type_struct_sockaddr=yes
17994 else
17995   echo "$as_me: failed program was:" >&5
17996   cat conftest.$ac_ext >&5
17997   ac_cv_type_struct_sockaddr=no
17998 fi
17999 rm -f conftest.$ac_objext conftest.$ac_ext
18000 fi
18001 echo "$as_me:18001: result: $ac_cv_type_struct_sockaddr" >&5
18002 echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6
18003 if test $ac_cv_type_struct_sockaddr = yes; then
18004
18005 cat >>confdefs.h <<EOF
18006 #define HAVE_STRUCT_SOCKADDR 1
18007 EOF
18008
18009 fi
18010
18011 fi
18012
18013 cat >>confdefs.h <<EOF
18014 #define $ac_tr_hdr 1
18015 EOF
18016
18017 fi
18018
18019 cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
18020 echo "$as_me:18020: checking for struct sockaddr_storage" >&5
18021 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
18022 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
18023   echo $ECHO_N "(cached) $ECHO_C" >&6
18024 else
18025   cat >conftest.$ac_ext <<_ACEOF
18026 #line 18026 "configure"
18027 #include "confdefs.h"
18028 #include <sys/types.h>
18029 #if STDC_HEADERS
18030 #include <stdlib.h>
18031 #include <stddef.h>
18032 #endif
18033 #include <sys/socket.h>
18034 int
18035 main ()
18036 {
18037 struct sockaddr_storage foo;
18038   ;
18039   return 0;
18040 }
18041 _ACEOF
18042 rm -f conftest.$ac_objext
18043 if { (eval echo $as_me:18043: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
18044   eval "ac_cv_type_$cv=yes"
18045 else
18046   echo "$as_me: failed program was:" >&5
18047   cat conftest.$ac_ext >&5
18048   eval "ac_cv_type_$cv=no"
18049 fi
18050 rm -f conftest.$ac_objext conftest.$ac_ext
18051 fi
18052 ac_foo=`eval echo \\$ac_cv_type_$cv`
18053 echo "$as_me:18053: result: $ac_foo" >&5
18054 echo "${ECHO_T}$ac_foo" >&6
18055 if test "$ac_foo" = yes; then
18056   ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
18057 if false; then
18058         echo "$as_me:18058: checking for struct sockaddr_storage" >&5
18059 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
18060 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
18061   echo $ECHO_N "(cached) $ECHO_C" >&6
18062 else
18063   cat >conftest.$ac_ext <<_ACEOF
18064 #line 18064 "configure"
18065 #include "confdefs.h"
18066 $ac_includes_default
18067 int
18068 main ()
18069 {
18070 if ((struct sockaddr_storage *) 0)
18071   return 0;
18072 if (sizeof (struct sockaddr_storage))
18073   return 0;
18074   ;
18075   return 0;
18076 }
18077 _ACEOF
18078 rm -f conftest.$ac_objext
18079 if { (eval echo $as_me:18079: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
18080   ac_cv_type_struct_sockaddr_storage=yes
18081 else
18082   echo "$as_me: failed program was:" >&5
18083   cat conftest.$ac_ext >&5
18084   ac_cv_type_struct_sockaddr_storage=no
18085 fi
18086 rm -f conftest.$ac_objext conftest.$ac_ext
18087 fi
18088 echo "$as_me:18088: result: $ac_cv_type_struct_sockaddr_storage" >&5
18089 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
18090 if test $ac_cv_type_struct_sockaddr_storage = yes; then
18091
18092 cat >>confdefs.h <<EOF
18093 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
18094 EOF
18095
18096 fi
18097
18098 fi
18099
18100 cat >>confdefs.h <<EOF
18101 #define $ac_tr_hdr 1
18102 EOF
18103
18104 fi
18105
18106 cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
18107 echo "$as_me:18107: checking for struct addrinfo" >&5
18108 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
18109 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
18110   echo $ECHO_N "(cached) $ECHO_C" >&6
18111 else
18112   cat >conftest.$ac_ext <<_ACEOF
18113 #line 18113 "configure"
18114 #include "confdefs.h"
18115 #include <sys/types.h>
18116 #if STDC_HEADERS
18117 #include <stdlib.h>
18118 #include <stddef.h>
18119 #endif
18120 #include <netdb.h>
18121 int
18122 main ()
18123 {
18124 struct addrinfo foo;
18125   ;
18126   return 0;
18127 }
18128 _ACEOF
18129 rm -f conftest.$ac_objext
18130 if { (eval echo $as_me:18130: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
18131   eval "ac_cv_type_$cv=yes"
18132 else
18133   echo "$as_me: failed program was:" >&5
18134   cat conftest.$ac_ext >&5
18135   eval "ac_cv_type_$cv=no"
18136 fi
18137 rm -f conftest.$ac_objext conftest.$ac_ext
18138 fi
18139 ac_foo=`eval echo \\$ac_cv_type_$cv`
18140 echo "$as_me:18140: result: $ac_foo" >&5
18141 echo "${ECHO_T}$ac_foo" >&6
18142 if test "$ac_foo" = yes; then
18143   ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
18144 if false; then
18145         echo "$as_me:18145: checking for struct addrinfo" >&5
18146 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
18147 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
18148   echo $ECHO_N "(cached) $ECHO_C" >&6
18149 else
18150   cat >conftest.$ac_ext <<_ACEOF
18151 #line 18151 "configure"
18152 #include "confdefs.h"
18153 $ac_includes_default
18154 int
18155 main ()
18156 {
18157 if ((struct addrinfo *) 0)
18158   return 0;
18159 if (sizeof (struct addrinfo))
18160   return 0;
18161   ;
18162   return 0;
18163 }
18164 _ACEOF
18165 rm -f conftest.$ac_objext
18166 if { (eval echo $as_me:18166: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
18167   ac_cv_type_struct_addrinfo=yes
18168 else
18169   echo "$as_me: failed program was:" >&5
18170   cat conftest.$ac_ext >&5
18171   ac_cv_type_struct_addrinfo=no
18172 fi
18173 rm -f conftest.$ac_objext conftest.$ac_ext
18174 fi
18175 echo "$as_me:18175: result: $ac_cv_type_struct_addrinfo" >&5
18176 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
18177 if test $ac_cv_type_struct_addrinfo = yes; then
18178
18179 cat >>confdefs.h <<EOF
18180 #define HAVE_STRUCT_ADDRINFO 1
18181 EOF
18182
18183 fi
18184
18185 fi
18186
18187 cat >>confdefs.h <<EOF
18188 #define $ac_tr_hdr 1
18189 EOF
18190
18191 fi
18192
18193 echo "$as_me:18193: checking for struct winsize" >&5
18194 echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6
18195 if test "${ac_cv_struct_winsize+set}" = set; then
18196   echo $ECHO_N "(cached) $ECHO_C" >&6
18197 else
18198
18199 ac_cv_struct_winsize=no
18200 for i in sys/termios.h sys/ioctl.h; do
18201 cat >conftest.$ac_ext <<_ACEOF
18202 #line 18202 "configure"
18203 #include "confdefs.h"
18204 #include <$i>
18205
18206 _ACEOF
18207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18208   egrep "struct[        ]*winsize" >/dev/null 2>&1; then
18209   ac_cv_struct_winsize=yes; break
18210 fi
18211 rm -f conftest*
18212 done
18213
18214 fi
18215
18216 if test "$ac_cv_struct_winsize" = "yes"; then
18217
18218 cat >>confdefs.h <<\EOF
18219 #define HAVE_STRUCT_WINSIZE 1
18220 EOF
18221
18222 fi
18223 echo "$as_me:18223: result: $ac_cv_struct_winsize" >&5
18224 echo "${ECHO_T}$ac_cv_struct_winsize" >&6
18225 cat >conftest.$ac_ext <<_ACEOF
18226 #line 18226 "configure"
18227 #include "confdefs.h"
18228 #include <termios.h>
18229
18230 _ACEOF
18231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18232   egrep "ws_xpixel" >/dev/null 2>&1; then
18233
18234 cat >>confdefs.h <<\EOF
18235 #define HAVE_WS_XPIXEL 1
18236 EOF
18237
18238 fi
18239 rm -f conftest*
18240
18241 cat >conftest.$ac_ext <<_ACEOF
18242 #line 18242 "configure"
18243 #include "confdefs.h"
18244 #include <termios.h>
18245
18246 _ACEOF
18247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18248   egrep "ws_ypixel" >/dev/null 2>&1; then
18249
18250 cat >>confdefs.h <<\EOF
18251 #define HAVE_WS_YPIXEL 1
18252 EOF
18253
18254 fi
18255 rm -f conftest*
18256
18257 echo "$as_me:18257: checking for struct spwd" >&5
18258 echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6
18259 if test "${ac_cv_struct_spwd+set}" = set; then
18260   echo $ECHO_N "(cached) $ECHO_C" >&6
18261 else
18262
18263 cat >conftest.$ac_ext <<_ACEOF
18264 #line 18264 "configure"
18265 #include "confdefs.h"
18266 #include <pwd.h>
18267 #ifdef HAVE_SHADOW_H
18268 #include <shadow.h>
18269 #endif
18270 int
18271 main ()
18272 {
18273 struct spwd foo;
18274   ;
18275   return 0;
18276 }
18277 _ACEOF
18278 rm -f conftest.$ac_objext
18279 if { (eval echo $as_me:18279: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
18280   ac_cv_struct_spwd=yes
18281 else
18282   echo "$as_me: failed program was:" >&5
18283   cat conftest.$ac_ext >&5
18284   ac_cv_struct_spwd=no
18285 fi
18286 rm -f conftest.$ac_objext conftest.$ac_ext
18287
18288 fi
18289
18290 echo "$as_me:18290: result: $ac_cv_struct_spwd" >&5
18291 echo "${ECHO_T}$ac_cv_struct_spwd" >&6
18292
18293 if test "$ac_cv_struct_spwd" = "yes"; then
18294
18295 cat >>confdefs.h <<\EOF
18296 #define HAVE_STRUCT_SPWD 1
18297 EOF
18298
18299 fi
18300
18301 echo "$as_me:18301: checking for sa_len in struct sockaddr" >&5
18302 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
18303 if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then
18304   echo $ECHO_N "(cached) $ECHO_C" >&6
18305 else
18306
18307 cat >conftest.$ac_ext <<_ACEOF
18308 #line 18308 "configure"
18309 #include "confdefs.h"
18310 #include <sys/types.h>
18311 #include <sys/socket.h>
18312 int
18313 main ()
18314 {
18315 struct sockaddr x; x.sa_len;
18316   ;
18317   return 0;
18318 }
18319 _ACEOF
18320 rm -f conftest.$ac_objext
18321 if { (eval echo $as_me:18321: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
18322   ac_cv_type_struct_sockaddr_sa_len=yes
18323 else
18324   echo "$as_me: failed program was:" >&5
18325   cat conftest.$ac_ext >&5
18326   ac_cv_type_struct_sockaddr_sa_len=no
18327 fi
18328 rm -f conftest.$ac_objext conftest.$ac_ext
18329 fi
18330 echo "$as_me:18330: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
18331 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6
18332 if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
18333
18334 cat >>confdefs.h <<\EOF
18335 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
18336 EOF
18337
18338 fi
18339
18340 for i in int8_t int16_t int32_t int64_t \
18341         u_int8_t u_int16_t u_int32_t u_int64_t \
18342         uint8_t uint16_t uint32_t uint64_t; do
18343         echo "$as_me:18343: checking for $i" >&5
18344 echo $ECHO_N "checking for $i... $ECHO_C" >&6
18345
18346 if eval "test \"\${ac_cv_type_$i+set}\" = set"; then
18347   echo $ECHO_N "(cached) $ECHO_C" >&6
18348 else
18349   cat >conftest.$ac_ext <<_ACEOF
18350 #line 18350 "configure"
18351 #include "confdefs.h"
18352
18353 #ifdef HAVE_INTTYPES_H
18354 #include <inttypes.h>
18355 #endif
18356 #ifdef HAVE_SYS_TYPES_H
18357 #include <sys/types.h>
18358 #endif
18359 #ifdef HAVE_SYS_BITYPES_H
18360 #include <sys/bitypes.h>
18361 #endif
18362 #ifdef HAVE_BIND_BITYPES_H
18363 #include <bind/bitypes.h>
18364 #endif
18365 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
18366 #include <netinet/in6_machtypes.h>
18367 #endif
18368
18369 int
18370 main ()
18371 {
18372 $i x;
18373
18374   ;
18375   return 0;
18376 }
18377 _ACEOF
18378 rm -f conftest.$ac_objext
18379 if { (eval echo $as_me:18379: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
18380   eval ac_cv_type_$i=yes
18381 else
18382   echo "$as_me: failed program was:" >&5
18383   cat conftest.$ac_ext >&5
18384   eval ac_cv_type_$i=no
18385 fi
18386 rm -f conftest.$ac_objext conftest.$ac_ext
18387 fi
18388
18389         eval ac_res=\$ac_cv_type_$i
18390         if test "$ac_res" = yes; then
18391                 type=HAVE_`echo $i | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
18392                 cat >>confdefs.h <<EOF
18393 #define $type 1
18394 EOF
18395
18396         fi
18397         echo "$as_me:18397: result: $ac_res" >&5
18398 echo "${ECHO_T}$ac_res" >&6
18399 done
18400
18401 for ac_header in                                \
18402         openssl/md4.h                           \
18403         openssl/md5.h                           \
18404         openssl/sha.h                           \
18405         openssl/des.h                           \
18406         openssl/rc4.h                           \
18407
18408 do
18409 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
18410
18411 echo "$as_me:18411: checking for $ac_header" >&5
18412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18413 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
18414   echo $ECHO_N "(cached) $ECHO_C" >&6
18415 else
18416   cat >conftest.$ac_ext <<_ACEOF
18417 #line 18417 "configure"
18418 #include "confdefs.h"
18419 #include <$ac_header>
18420
18421 _ACEOF
18422 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
18423 if { (eval echo $as_me:18423: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
18424   if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
18425     ac_cpp_err=$ac_c_preproc_warn_flag
18426   else
18427     ac_cpp_err=
18428   fi
18429 else
18430   ac_cpp_err=yes
18431 fi
18432
18433 if test -z "$ac_cpp_err"; then
18434   eval "$ac_ac_Header=yes"
18435 else
18436   cat conftest.err >&5
18437   echo "$as_me: failed program was:" >&5
18438   cat conftest.$ac_ext >&5
18439   eval "$ac_ac_Header=no"
18440 fi
18441 rm -f conftest*
18442
18443 fi
18444 echo "$as_me:18444: result: `eval echo '${'$ac_ac_Header'}'`" >&5
18445 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
18446 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
18447   cat >>confdefs.h <<EOF
18448 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
18449 EOF
18450
18451 fi
18452 done
18453
18454 echo "$as_me:18454: checking for MD4_Init" >&5
18455 echo $ECHO_N "checking for MD4_Init... $ECHO_C" >&6
18456 if test "${ac_cv_funclib_MD4_Init+set}" = set; then
18457   echo $ECHO_N "(cached) $ECHO_C" >&6
18458 else
18459
18460 if eval "test \"\$ac_cv_func_MD4_Init\" != yes" ; then
18461         ac_save_LIBS="$LIBS"
18462         for ac_lib in crypto des; do
18463                 if test -n "$ac_lib"; then
18464                         ac_lib="-l$ac_lib"
18465                 else
18466                         ac_lib=""
18467                 fi
18468                 LIBS="$test_LIB_krb4 $ac_lib  $ac_save_LIBS"
18469                 cat >conftest.$ac_ext <<_ACEOF
18470 #line 18470 "configure"
18471 #include "confdefs.h"
18472
18473 int
18474 main ()
18475 {
18476 MD4_Init()
18477   ;
18478   return 0;
18479 }
18480 _ACEOF
18481 rm -f conftest.$ac_objext conftest$ac_exeext
18482 if { (eval echo $as_me:18482: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
18483   eval "if test -n \"$ac_lib\";then ac_cv_funclib_MD4_Init=$ac_lib; else ac_cv_funclib_MD4_Init=yes; fi";break
18484 else
18485   echo "$as_me: failed program was:" >&5
18486   cat conftest.$ac_ext >&5
18487 fi
18488 rm -f conftest$ac_exeext conftest.$ac_ext
18489         done
18490         eval "ac_cv_funclib_MD4_Init=\${ac_cv_funclib_MD4_Init-no}"
18491         LIBS="$ac_save_LIBS"
18492 fi
18493
18494 fi
18495
18496 eval "ac_res=\$ac_cv_funclib_MD4_Init"
18497
18498 if false; then
18499
18500 for ac_func in MD4_Init
18501 do
18502 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
18503 echo "$as_me:18503: checking for $ac_func" >&5
18504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18505 if eval "test \"\${$ac_ac_var+set}\" = set"; then
18506   echo $ECHO_N "(cached) $ECHO_C" >&6
18507 else
18508   cat >conftest.$ac_ext <<_ACEOF
18509 #line 18509 "configure"
18510 #include "confdefs.h"
18511 /* System header to define __stub macros and hopefully few prototypes,
18512     which can conflict with char $ac_func (); below.  */
18513 #include <assert.h>
18514 /* Override any gcc2 internal prototype to avoid an error.  */
18515 #ifdef __cplusplus
18516 extern "C"
18517 #endif
18518 /* We use char because int might match the return type of a gcc2
18519    builtin and then its argument prototype would still apply.  */
18520 char $ac_func ();
18521 char (*f) ();
18522
18523 int
18524 main ()
18525 {
18526 /* The GNU C library defines this for functions which it implements
18527     to always fail with ENOSYS.  Some functions are actually named
18528     something starting with __ and the normal name is an alias.  */
18529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18530 choke me
18531 #else
18532 f = $ac_func;
18533 #endif
18534
18535   ;
18536   return 0;
18537 }
18538 _ACEOF
18539 rm -f conftest.$ac_objext conftest$ac_exeext
18540 if { (eval echo $as_me:18540: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
18541   eval "$ac_ac_var=yes"
18542 else
18543   echo "$as_me: failed program was:" >&5
18544   cat conftest.$ac_ext >&5
18545   eval "$ac_ac_var=no"
18546 fi
18547 rm -f conftest$ac_exeext conftest.$ac_ext
18548 fi
18549 echo "$as_me:18549: result: `eval echo '${'$ac_ac_var'}'`" >&5
18550 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
18551 if test `eval echo '${'$ac_ac_var'}'` = yes; then
18552   cat >>confdefs.h <<EOF
18553 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
18554 EOF
18555
18556 fi
18557 done
18558
18559 fi
18560 # MD4_Init
18561 eval "ac_tr_func=HAVE_`echo MD4_Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18562 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18563 eval "LIB_MD4_Init=$ac_res"
18564
18565 case "$ac_res" in
18566         yes)
18567         eval "ac_cv_func_MD4_Init=yes"
18568         eval "LIB_MD4_Init="
18569         cat >>confdefs.h <<EOF
18570 #define $ac_tr_func 1
18571 EOF
18572
18573         echo "$as_me:18573: result: yes" >&5
18574 echo "${ECHO_T}yes" >&6
18575         ;;
18576         no)
18577         eval "ac_cv_func_MD4_Init=no"
18578         eval "LIB_MD4_Init="
18579         echo "$as_me:18579: result: no" >&5
18580 echo "${ECHO_T}no" >&6
18581         ;;
18582         *)
18583         eval "ac_cv_func_MD4_Init=yes"
18584         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
18585         cat >>confdefs.h <<EOF
18586 #define $ac_tr_func 1
18587 EOF
18588
18589         cat >>confdefs.h <<EOF
18590 #define $ac_tr_lib 1
18591 EOF
18592
18593         echo "$as_me:18593: result: yes, in $ac_res" >&5
18594 echo "${ECHO_T}yes, in $ac_res" >&6
18595         ;;
18596 esac
18597
18598 echo "$as_me:18598: checking for MD5_Init" >&5
18599 echo $ECHO_N "checking for MD5_Init... $ECHO_C" >&6
18600 if test "${ac_cv_funclib_MD5_Init+set}" = set; then
18601   echo $ECHO_N "(cached) $ECHO_C" >&6
18602 else
18603
18604 if eval "test \"\$ac_cv_func_MD5_Init\" != yes" ; then
18605         ac_save_LIBS="$LIBS"
18606         for ac_lib in crypto des; do
18607                 if test -n "$ac_lib"; then
18608                         ac_lib="-l$ac_lib"
18609                 else
18610                         ac_lib=""
18611                 fi
18612                 LIBS="$test_LIB_krb4 $ac_lib  $ac_save_LIBS"
18613                 cat >conftest.$ac_ext <<_ACEOF
18614 #line 18614 "configure"
18615 #include "confdefs.h"
18616
18617 int
18618 main ()
18619 {
18620 MD5_Init()
18621   ;
18622   return 0;
18623 }
18624 _ACEOF
18625 rm -f conftest.$ac_objext conftest$ac_exeext
18626 if { (eval echo $as_me:18626: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
18627   eval "if test -n \"$ac_lib\";then ac_cv_funclib_MD5_Init=$ac_lib; else ac_cv_funclib_MD5_Init=yes; fi";break
18628 else
18629   echo "$as_me: failed program was:" >&5
18630   cat conftest.$ac_ext >&5
18631 fi
18632 rm -f conftest$ac_exeext conftest.$ac_ext
18633         done
18634         eval "ac_cv_funclib_MD5_Init=\${ac_cv_funclib_MD5_Init-no}"
18635         LIBS="$ac_save_LIBS"
18636 fi
18637
18638 fi
18639
18640 eval "ac_res=\$ac_cv_funclib_MD5_Init"
18641
18642 if false; then
18643
18644 for ac_func in MD5_Init
18645 do
18646 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
18647 echo "$as_me:18647: checking for $ac_func" >&5
18648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18649 if eval "test \"\${$ac_ac_var+set}\" = set"; then
18650   echo $ECHO_N "(cached) $ECHO_C" >&6
18651 else
18652   cat >conftest.$ac_ext <<_ACEOF
18653 #line 18653 "configure"
18654 #include "confdefs.h"
18655 /* System header to define __stub macros and hopefully few prototypes,
18656     which can conflict with char $ac_func (); below.  */
18657 #include <assert.h>
18658 /* Override any gcc2 internal prototype to avoid an error.  */
18659 #ifdef __cplusplus
18660 extern "C"
18661 #endif
18662 /* We use char because int might match the return type of a gcc2
18663    builtin and then its argument prototype would still apply.  */
18664 char $ac_func ();
18665 char (*f) ();
18666
18667 int
18668 main ()
18669 {
18670 /* The GNU C library defines this for functions which it implements
18671     to always fail with ENOSYS.  Some functions are actually named
18672     something starting with __ and the normal name is an alias.  */
18673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18674 choke me
18675 #else
18676 f = $ac_func;
18677 #endif
18678
18679   ;
18680   return 0;
18681 }
18682 _ACEOF
18683 rm -f conftest.$ac_objext conftest$ac_exeext
18684 if { (eval echo $as_me:18684: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
18685   eval "$ac_ac_var=yes"
18686 else
18687   echo "$as_me: failed program was:" >&5
18688   cat conftest.$ac_ext >&5
18689   eval "$ac_ac_var=no"
18690 fi
18691 rm -f conftest$ac_exeext conftest.$ac_ext
18692 fi
18693 echo "$as_me:18693: result: `eval echo '${'$ac_ac_var'}'`" >&5
18694 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
18695 if test `eval echo '${'$ac_ac_var'}'` = yes; then
18696   cat >>confdefs.h <<EOF
18697 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
18698 EOF
18699
18700 fi
18701 done
18702
18703 fi
18704 # MD5_Init
18705 eval "ac_tr_func=HAVE_`echo MD5_Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18706 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18707 eval "LIB_MD5_Init=$ac_res"
18708
18709 case "$ac_res" in
18710         yes)
18711         eval "ac_cv_func_MD5_Init=yes"
18712         eval "LIB_MD5_Init="
18713         cat >>confdefs.h <<EOF
18714 #define $ac_tr_func 1
18715 EOF
18716
18717         echo "$as_me:18717: result: yes" >&5
18718 echo "${ECHO_T}yes" >&6
18719         ;;
18720         no)
18721         eval "ac_cv_func_MD5_Init=no"
18722         eval "LIB_MD5_Init="
18723         echo "$as_me:18723: result: no" >&5
18724 echo "${ECHO_T}no" >&6
18725         ;;
18726         *)
18727         eval "ac_cv_func_MD5_Init=yes"
18728         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
18729         cat >>confdefs.h <<EOF
18730 #define $ac_tr_func 1
18731 EOF
18732
18733         cat >>confdefs.h <<EOF
18734 #define $ac_tr_lib 1
18735 EOF
18736
18737         echo "$as_me:18737: result: yes, in $ac_res" >&5
18738 echo "${ECHO_T}yes, in $ac_res" >&6
18739         ;;
18740 esac
18741
18742 echo "$as_me:18742: checking for SHA1_Init" >&5
18743 echo $ECHO_N "checking for SHA1_Init... $ECHO_C" >&6
18744 if test "${ac_cv_funclib_SHA1_Init+set}" = set; then
18745   echo $ECHO_N "(cached) $ECHO_C" >&6
18746 else
18747
18748 if eval "test \"\$ac_cv_func_SHA1_Init\" != yes" ; then
18749         ac_save_LIBS="$LIBS"
18750         for ac_lib in crypto des; do
18751                 if test -n "$ac_lib"; then
18752                         ac_lib="-l$ac_lib"
18753                 else
18754                         ac_lib=""
18755                 fi
18756                 LIBS="$test_LIB_krb4 $ac_lib  $ac_save_LIBS"
18757                 cat >conftest.$ac_ext <<_ACEOF
18758 #line 18758 "configure"
18759 #include "confdefs.h"
18760
18761 int
18762 main ()
18763 {
18764 SHA1_Init()
18765   ;
18766   return 0;
18767 }
18768 _ACEOF
18769 rm -f conftest.$ac_objext conftest$ac_exeext
18770 if { (eval echo $as_me:18770: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
18771   eval "if test -n \"$ac_lib\";then ac_cv_funclib_SHA1_Init=$ac_lib; else ac_cv_funclib_SHA1_Init=yes; fi";break
18772 else
18773   echo "$as_me: failed program was:" >&5
18774   cat conftest.$ac_ext >&5
18775 fi
18776 rm -f conftest$ac_exeext conftest.$ac_ext
18777         done
18778         eval "ac_cv_funclib_SHA1_Init=\${ac_cv_funclib_SHA1_Init-no}"
18779         LIBS="$ac_save_LIBS"
18780 fi
18781
18782 fi
18783
18784 eval "ac_res=\$ac_cv_funclib_SHA1_Init"
18785
18786 if false; then
18787
18788 for ac_func in SHA1_Init
18789 do
18790 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
18791 echo "$as_me:18791: checking for $ac_func" >&5
18792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18793 if eval "test \"\${$ac_ac_var+set}\" = set"; then
18794   echo $ECHO_N "(cached) $ECHO_C" >&6
18795 else
18796   cat >conftest.$ac_ext <<_ACEOF
18797 #line 18797 "configure"
18798 #include "confdefs.h"
18799 /* System header to define __stub macros and hopefully few prototypes,
18800     which can conflict with char $ac_func (); below.  */
18801 #include <assert.h>
18802 /* Override any gcc2 internal prototype to avoid an error.  */
18803 #ifdef __cplusplus
18804 extern "C"
18805 #endif
18806 /* We use char because int might match the return type of a gcc2
18807    builtin and then its argument prototype would still apply.  */
18808 char $ac_func ();
18809 char (*f) ();
18810
18811 int
18812 main ()
18813 {
18814 /* The GNU C library defines this for functions which it implements
18815     to always fail with ENOSYS.  Some functions are actually named
18816     something starting with __ and the normal name is an alias.  */
18817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18818 choke me
18819 #else
18820 f = $ac_func;
18821 #endif
18822
18823   ;
18824   return 0;
18825 }
18826 _ACEOF
18827 rm -f conftest.$ac_objext conftest$ac_exeext
18828 if { (eval echo $as_me:18828: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
18829   eval "$ac_ac_var=yes"
18830 else
18831   echo "$as_me: failed program was:" >&5
18832   cat conftest.$ac_ext >&5
18833   eval "$ac_ac_var=no"
18834 fi
18835 rm -f conftest$ac_exeext conftest.$ac_ext
18836 fi
18837 echo "$as_me:18837: result: `eval echo '${'$ac_ac_var'}'`" >&5
18838 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
18839 if test `eval echo '${'$ac_ac_var'}'` = yes; then
18840   cat >>confdefs.h <<EOF
18841 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
18842 EOF
18843
18844 fi
18845 done
18846
18847 fi
18848 # SHA1_Init
18849 eval "ac_tr_func=HAVE_`echo SHA1_Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18850 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18851 eval "LIB_SHA1_Init=$ac_res"
18852
18853 case "$ac_res" in
18854         yes)
18855         eval "ac_cv_func_SHA1_Init=yes"
18856         eval "LIB_SHA1_Init="
18857         cat >>confdefs.h <<EOF
18858 #define $ac_tr_func 1
18859 EOF
18860
18861         echo "$as_me:18861: result: yes" >&5
18862 echo "${ECHO_T}yes" >&6
18863         ;;
18864         no)
18865         eval "ac_cv_func_SHA1_Init=no"
18866         eval "LIB_SHA1_Init="
18867         echo "$as_me:18867: result: no" >&5
18868 echo "${ECHO_T}no" >&6
18869         ;;
18870         *)
18871         eval "ac_cv_func_SHA1_Init=yes"
18872         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
18873         cat >>confdefs.h <<EOF
18874 #define $ac_tr_func 1
18875 EOF
18876
18877         cat >>confdefs.h <<EOF
18878 #define $ac_tr_lib 1
18879 EOF
18880
18881         echo "$as_me:18881: result: yes, in $ac_res" >&5
18882 echo "${ECHO_T}yes, in $ac_res" >&6
18883         ;;
18884 esac
18885
18886 echo "$as_me:18886: checking for des_cbc_encrypt" >&5
18887 echo $ECHO_N "checking for des_cbc_encrypt... $ECHO_C" >&6
18888 if test "${ac_cv_funclib_des_cbc_encrypt+set}" = set; then
18889   echo $ECHO_N "(cached) $ECHO_C" >&6
18890 else
18891
18892 if eval "test \"\$ac_cv_func_des_cbc_encrypt\" != yes" ; then
18893         ac_save_LIBS="$LIBS"
18894         for ac_lib in crypto des; do
18895                 if test -n "$ac_lib"; then
18896                         ac_lib="-l$ac_lib"
18897                 else
18898                         ac_lib=""
18899                 fi
18900                 LIBS="$test_LIB_krb4 $ac_lib  $ac_save_LIBS"
18901                 cat >conftest.$ac_ext <<_ACEOF
18902 #line 18902 "configure"
18903 #include "confdefs.h"
18904
18905 int
18906 main ()
18907 {
18908 des_cbc_encrypt()
18909   ;
18910   return 0;
18911 }
18912 _ACEOF
18913 rm -f conftest.$ac_objext conftest$ac_exeext
18914 if { (eval echo $as_me:18914: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
18915   eval "if test -n \"$ac_lib\";then ac_cv_funclib_des_cbc_encrypt=$ac_lib; else ac_cv_funclib_des_cbc_encrypt=yes; fi";break
18916 else
18917   echo "$as_me: failed program was:" >&5
18918   cat conftest.$ac_ext >&5
18919 fi
18920 rm -f conftest$ac_exeext conftest.$ac_ext
18921         done
18922         eval "ac_cv_funclib_des_cbc_encrypt=\${ac_cv_funclib_des_cbc_encrypt-no}"
18923         LIBS="$ac_save_LIBS"
18924 fi
18925
18926 fi
18927
18928 eval "ac_res=\$ac_cv_funclib_des_cbc_encrypt"
18929
18930 if false; then
18931
18932 for ac_func in des_cbc_encrypt
18933 do
18934 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
18935 echo "$as_me:18935: checking for $ac_func" >&5
18936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18937 if eval "test \"\${$ac_ac_var+set}\" = set"; then
18938   echo $ECHO_N "(cached) $ECHO_C" >&6
18939 else
18940   cat >conftest.$ac_ext <<_ACEOF
18941 #line 18941 "configure"
18942 #include "confdefs.h"
18943 /* System header to define __stub macros and hopefully few prototypes,
18944     which can conflict with char $ac_func (); below.  */
18945 #include <assert.h>
18946 /* Override any gcc2 internal prototype to avoid an error.  */
18947 #ifdef __cplusplus
18948 extern "C"
18949 #endif
18950 /* We use char because int might match the return type of a gcc2
18951    builtin and then its argument prototype would still apply.  */
18952 char $ac_func ();
18953 char (*f) ();
18954
18955 int
18956 main ()
18957 {
18958 /* The GNU C library defines this for functions which it implements
18959     to always fail with ENOSYS.  Some functions are actually named
18960     something starting with __ and the normal name is an alias.  */
18961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18962 choke me
18963 #else
18964 f = $ac_func;
18965 #endif
18966
18967   ;
18968   return 0;
18969 }
18970 _ACEOF
18971 rm -f conftest.$ac_objext conftest$ac_exeext
18972 if { (eval echo $as_me:18972: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
18973   eval "$ac_ac_var=yes"
18974 else
18975   echo "$as_me: failed program was:" >&5
18976   cat conftest.$ac_ext >&5
18977   eval "$ac_ac_var=no"
18978 fi
18979 rm -f conftest$ac_exeext conftest.$ac_ext
18980 fi
18981 echo "$as_me:18981: result: `eval echo '${'$ac_ac_var'}'`" >&5
18982 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
18983 if test `eval echo '${'$ac_ac_var'}'` = yes; then
18984   cat >>confdefs.h <<EOF
18985 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
18986 EOF
18987
18988 fi
18989 done
18990
18991 fi
18992 # des_cbc_encrypt
18993 eval "ac_tr_func=HAVE_`echo des_cbc_encrypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18994 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18995 eval "LIB_des_cbc_encrypt=$ac_res"
18996
18997 case "$ac_res" in
18998         yes)
18999         eval "ac_cv_func_des_cbc_encrypt=yes"
19000         eval "LIB_des_cbc_encrypt="
19001         cat >>confdefs.h <<EOF
19002 #define $ac_tr_func 1
19003 EOF
19004
19005         echo "$as_me:19005: result: yes" >&5
19006 echo "${ECHO_T}yes" >&6
19007         ;;
19008         no)
19009         eval "ac_cv_func_des_cbc_encrypt=no"
19010         eval "LIB_des_cbc_encrypt="
19011         echo "$as_me:19011: result: no" >&5
19012 echo "${ECHO_T}no" >&6
19013         ;;
19014         *)
19015         eval "ac_cv_func_des_cbc_encrypt=yes"
19016         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
19017         cat >>confdefs.h <<EOF
19018 #define $ac_tr_func 1
19019 EOF
19020
19021         cat >>confdefs.h <<EOF
19022 #define $ac_tr_lib 1
19023 EOF
19024
19025         echo "$as_me:19025: result: yes, in $ac_res" >&5
19026 echo "${ECHO_T}yes, in $ac_res" >&6
19027         ;;
19028 esac
19029
19030 echo "$as_me:19030: checking for RC4" >&5
19031 echo $ECHO_N "checking for RC4... $ECHO_C" >&6
19032 if test "${ac_cv_funclib_RC4+set}" = set; then
19033   echo $ECHO_N "(cached) $ECHO_C" >&6
19034 else
19035
19036 if eval "test \"\$ac_cv_func_RC4\" != yes" ; then
19037         ac_save_LIBS="$LIBS"
19038         for ac_lib in crypto des; do
19039                 if test -n "$ac_lib"; then
19040                         ac_lib="-l$ac_lib"
19041                 else
19042                         ac_lib=""
19043                 fi
19044                 LIBS="$test_LIB_krb4 $ac_lib  $ac_save_LIBS"
19045                 cat >conftest.$ac_ext <<_ACEOF
19046 #line 19046 "configure"
19047 #include "confdefs.h"
19048
19049 int
19050 main ()
19051 {
19052 RC4()
19053   ;
19054   return 0;
19055 }
19056 _ACEOF
19057 rm -f conftest.$ac_objext conftest$ac_exeext
19058 if { (eval echo $as_me:19058: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
19059   eval "if test -n \"$ac_lib\";then ac_cv_funclib_RC4=$ac_lib; else ac_cv_funclib_RC4=yes; fi";break
19060 else
19061   echo "$as_me: failed program was:" >&5
19062   cat conftest.$ac_ext >&5
19063 fi
19064 rm -f conftest$ac_exeext conftest.$ac_ext
19065         done
19066         eval "ac_cv_funclib_RC4=\${ac_cv_funclib_RC4-no}"
19067         LIBS="$ac_save_LIBS"
19068 fi
19069
19070 fi
19071
19072 eval "ac_res=\$ac_cv_funclib_RC4"
19073
19074 if false; then
19075
19076 for ac_func in RC4
19077 do
19078 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
19079 echo "$as_me:19079: checking for $ac_func" >&5
19080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19081 if eval "test \"\${$ac_ac_var+set}\" = set"; then
19082   echo $ECHO_N "(cached) $ECHO_C" >&6
19083 else
19084   cat >conftest.$ac_ext <<_ACEOF
19085 #line 19085 "configure"
19086 #include "confdefs.h"
19087 /* System header to define __stub macros and hopefully few prototypes,
19088     which can conflict with char $ac_func (); below.  */
19089 #include <assert.h>
19090 /* Override any gcc2 internal prototype to avoid an error.  */
19091 #ifdef __cplusplus
19092 extern "C"
19093 #endif
19094 /* We use char because int might match the return type of a gcc2
19095    builtin and then its argument prototype would still apply.  */
19096 char $ac_func ();
19097 char (*f) ();
19098
19099 int
19100 main ()
19101 {
19102 /* The GNU C library defines this for functions which it implements
19103     to always fail with ENOSYS.  Some functions are actually named
19104     something starting with __ and the normal name is an alias.  */
19105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19106 choke me
19107 #else
19108 f = $ac_func;
19109 #endif
19110
19111   ;
19112   return 0;
19113 }
19114 _ACEOF
19115 rm -f conftest.$ac_objext conftest$ac_exeext
19116 if { (eval echo $as_me:19116: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
19117   eval "$ac_ac_var=yes"
19118 else
19119   echo "$as_me: failed program was:" >&5
19120   cat conftest.$ac_ext >&5
19121   eval "$ac_ac_var=no"
19122 fi
19123 rm -f conftest$ac_exeext conftest.$ac_ext
19124 fi
19125 echo "$as_me:19125: result: `eval echo '${'$ac_ac_var'}'`" >&5
19126 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
19127 if test `eval echo '${'$ac_ac_var'}'` = yes; then
19128   cat >>confdefs.h <<EOF
19129 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
19130 EOF
19131
19132 fi
19133 done
19134
19135 fi
19136 # RC4
19137 eval "ac_tr_func=HAVE_`echo RC4 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
19138 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
19139 eval "LIB_RC4=$ac_res"
19140
19141 case "$ac_res" in
19142         yes)
19143         eval "ac_cv_func_RC4=yes"
19144         eval "LIB_RC4="
19145         cat >>confdefs.h <<EOF
19146 #define $ac_tr_func 1
19147 EOF
19148
19149         echo "$as_me:19149: result: yes" >&5
19150 echo "${ECHO_T}yes" >&6
19151         ;;
19152         no)
19153         eval "ac_cv_func_RC4=no"
19154         eval "LIB_RC4="
19155         echo "$as_me:19155: result: no" >&5
19156 echo "${ECHO_T}no" >&6
19157         ;;
19158         *)
19159         eval "ac_cv_func_RC4=yes"
19160         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
19161         cat >>confdefs.h <<EOF
19162 #define $ac_tr_func 1
19163 EOF
19164
19165         cat >>confdefs.h <<EOF
19166 #define $ac_tr_lib 1
19167 EOF
19168
19169         echo "$as_me:19169: result: yes, in $ac_res" >&5
19170 echo "${ECHO_T}yes, in $ac_res" >&6
19171         ;;
19172 esac
19173
19174 if test "$ac_cv_func_des_cbc_encrypt" = "yes" -a \
19175 "$ac_cv_func_MD4_Init"  = "yes" -a \
19176 "$ac_cv_func_MD5_Init"  = "yes" -a \
19177 "$ac_cv_func_SHA1_Init" = "yes" -a \
19178 "$ac_cv_func_RC4" = "yes"; then
19179   DIR_des=''
19180   LIB_des=''
19181   if test "$krb4_libdir" != ""; then
19182     LIB_des="-R $krb4_libdir -L$krb4_libdir"
19183   fi
19184   LIB_des="$LIB_des $ac_cv_funclib_MD4_Init"
19185   LIB_des_appl="$LIB_des"
19186 else
19187   DIR_des='des'
19188   LIB_des='$(top_builddir)/lib/des/libdes.la'
19189   LIB_des_appl="-ldes"
19190 fi
19191
19192 echo "$as_me:19192: checking for el_init" >&5
19193 echo $ECHO_N "checking for el_init... $ECHO_C" >&6
19194 if test "${ac_cv_funclib_el_init+set}" = set; then
19195   echo $ECHO_N "(cached) $ECHO_C" >&6
19196 else
19197
19198 if eval "test \"\$ac_cv_func_el_init\" != yes" ; then
19199         ac_save_LIBS="$LIBS"
19200         for ac_lib in "" edit; do
19201                 if test -n "$ac_lib"; then
19202                         ac_lib="-l$ac_lib"
19203                 else
19204                         ac_lib=""
19205                 fi
19206                 LIBS=" $ac_lib $LIB_tgetent $ac_save_LIBS"
19207                 cat >conftest.$ac_ext <<_ACEOF
19208 #line 19208 "configure"
19209 #include "confdefs.h"
19210
19211 int
19212 main ()
19213 {
19214 el_init()
19215   ;
19216   return 0;
19217 }
19218 _ACEOF
19219 rm -f conftest.$ac_objext conftest$ac_exeext
19220 if { (eval echo $as_me:19220: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
19221   eval "if test -n \"$ac_lib\";then ac_cv_funclib_el_init=$ac_lib; else ac_cv_funclib_el_init=yes; fi";break
19222 else
19223   echo "$as_me: failed program was:" >&5
19224   cat conftest.$ac_ext >&5
19225 fi
19226 rm -f conftest$ac_exeext conftest.$ac_ext
19227         done
19228         eval "ac_cv_funclib_el_init=\${ac_cv_funclib_el_init-no}"
19229         LIBS="$ac_save_LIBS"
19230 fi
19231
19232 fi
19233
19234 eval "ac_res=\$ac_cv_funclib_el_init"
19235
19236 if false; then
19237
19238 for ac_func in el_init
19239 do
19240 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
19241 echo "$as_me:19241: checking for $ac_func" >&5
19242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19243 if eval "test \"\${$ac_ac_var+set}\" = set"; then
19244   echo $ECHO_N "(cached) $ECHO_C" >&6
19245 else
19246   cat >conftest.$ac_ext <<_ACEOF
19247 #line 19247 "configure"
19248 #include "confdefs.h"
19249 /* System header to define __stub macros and hopefully few prototypes,
19250     which can conflict with char $ac_func (); below.  */
19251 #include <assert.h>
19252 /* Override any gcc2 internal prototype to avoid an error.  */
19253 #ifdef __cplusplus
19254 extern "C"
19255 #endif
19256 /* We use char because int might match the return type of a gcc2
19257    builtin and then its argument prototype would still apply.  */
19258 char $ac_func ();
19259 char (*f) ();
19260
19261 int
19262 main ()
19263 {
19264 /* The GNU C library defines this for functions which it implements
19265     to always fail with ENOSYS.  Some functions are actually named
19266     something starting with __ and the normal name is an alias.  */
19267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19268 choke me
19269 #else
19270 f = $ac_func;
19271 #endif
19272
19273   ;
19274   return 0;
19275 }
19276 _ACEOF
19277 rm -f conftest.$ac_objext conftest$ac_exeext
19278 if { (eval echo $as_me:19278: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
19279   eval "$ac_ac_var=yes"
19280 else
19281   echo "$as_me: failed program was:" >&5
19282   cat conftest.$ac_ext >&5
19283   eval "$ac_ac_var=no"
19284 fi
19285 rm -f conftest$ac_exeext conftest.$ac_ext
19286 fi
19287 echo "$as_me:19287: result: `eval echo '${'$ac_ac_var'}'`" >&5
19288 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
19289 if test `eval echo '${'$ac_ac_var'}'` = yes; then
19290   cat >>confdefs.h <<EOF
19291 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
19292 EOF
19293
19294 fi
19295 done
19296
19297 fi
19298 # el_init
19299 eval "ac_tr_func=HAVE_`echo el_init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
19300 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
19301 eval "LIB_el_init=$ac_res"
19302
19303 case "$ac_res" in
19304         yes)
19305         eval "ac_cv_func_el_init=yes"
19306         eval "LIB_el_init="
19307         cat >>confdefs.h <<EOF
19308 #define $ac_tr_func 1
19309 EOF
19310
19311         echo "$as_me:19311: result: yes" >&5
19312 echo "${ECHO_T}yes" >&6
19313         ;;
19314         no)
19315         eval "ac_cv_func_el_init=no"
19316         eval "LIB_el_init="
19317         echo "$as_me:19317: result: no" >&5
19318 echo "${ECHO_T}no" >&6
19319         ;;
19320         *)
19321         eval "ac_cv_func_el_init=yes"
19322         eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
19323         cat >>confdefs.h <<EOF
19324 #define $ac_tr_func 1
19325 EOF
19326
19327         cat >>confdefs.h <<EOF
19328 #define $ac_tr_lib 1
19329 EOF
19330
19331         echo "$as_me:19331: result: yes, in $ac_res" >&5
19332 echo "${ECHO_T}yes, in $ac_res" >&6
19333         ;;
19334 esac
19335
19336 if test "$ac_cv_func_el_init" = yes ; then
19337         echo "$as_me:19337: checking for four argument el_init" >&5
19338 echo $ECHO_N "checking for four argument el_init... $ECHO_C" >&6
19339 if test "${ac_cv_func_el_init_four+set}" = set; then
19340   echo $ECHO_N "(cached) $ECHO_C" >&6
19341 else
19342
19343                 cat >conftest.$ac_ext <<_ACEOF
19344 #line 19344 "configure"
19345 #include "confdefs.h"
19346 #include <stdio.h>
19347                         #include <histedit.h>
19348 int
19349 main ()
19350 {
19351 el_init("", NULL, NULL, NULL);
19352   ;
19353   return 0;
19354 }
19355 _ACEOF
19356 rm -f conftest.$ac_objext
19357 if { (eval echo $as_me:19357: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
19358   ac_cv_func_el_init_four=yes
19359 else
19360   echo "$as_me: failed program was:" >&5
19361   cat conftest.$ac_ext >&5
19362   ac_cv_func_el_init_four=no
19363 fi
19364 rm -f conftest.$ac_objext conftest.$ac_ext
19365 fi
19366 echo "$as_me:19366: result: $ac_cv_func_el_init_four" >&5
19367 echo "${ECHO_T}$ac_cv_func_el_init_four" >&6
19368         if test "$ac_cv_func_el_init_four" = yes; then
19369
19370 cat >>confdefs.h <<\EOF
19371 #define HAVE_FOUR_VALUED_EL_INIT 1
19372 EOF
19373
19374         fi
19375 fi
19376
19377 ac_foo=no
19378 if test "$with_readline" = yes; then
19379         :
19380 elif test "$ac_cv_func_readline" = yes; then
19381         :
19382 elif test "$ac_cv_func_el_init" = yes; then
19383         ac_foo=yes
19384         LIB_readline="\$(top_builddir)/lib/editline/libel_compat.la $LIB_el_init"
19385 else
19386         LIB_readline='$(top_builddir)/lib/editline/libeditline.la'
19387 fi
19388
19389 if test "$ac_foo" = yes; then
19390   el_compat_TRUE=
19391   el_compat_FALSE='#'
19392 else
19393   el_compat_TRUE='#'
19394   el_compat_FALSE=
19395 fi
19396 if test "$readline_libdir"; then
19397         LIB_readline="-rpath $readline_libdir $LIB_readline"
19398 fi
19399 LIB_readline="$LIB_readline \$(LIB_tgetent)"
19400
19401 cat >>confdefs.h <<\EOF
19402 #define HAVE_READLINE 1
19403 EOF
19404
19405 cat >>confdefs.h <<\EOF
19406 #define AUTHENTICATION 1
19407 EOF
19408
19409 cat >>confdefs.h <<\EOF
19410 #define ENCRYPTION 1
19411 EOF
19412
19413 cat >>confdefs.h <<\EOF
19414 #define DES_ENCRYPTION 1
19415 EOF
19416
19417 cat >>confdefs.h <<\EOF
19418 #define DIAGNOSTICS 1
19419 EOF
19420
19421 cat >>confdefs.h <<\EOF
19422 #define OLD_ENVIRON 1
19423 EOF
19424 if false; then
19425
19426 cat >>confdefs.h <<\EOF
19427 #define ENV_HACK 1
19428 EOF
19429
19430 fi
19431
19432 # Simple test for streamspty, based on the existance of getmsg(), alas
19433 # this breaks on SunOS4 which have streams but BSD-like ptys
19434 #
19435 # And also something wierd has happend with dec-osf1, fallback to bsd-ptys
19436
19437 echo "$as_me:19437: checking for getmsg" >&5
19438 echo $ECHO_N "checking for getmsg... $ECHO_C" >&6
19439 if test "${ac_cv_func_getmsg+set}" = set; then
19440   echo $ECHO_N "(cached) $ECHO_C" >&6
19441 else
19442   cat >conftest.$ac_ext <<_ACEOF
19443 #line 19443 "configure"
19444 #include "confdefs.h"
19445 /* System header to define __stub macros and hopefully few prototypes,
19446     which can conflict with char getmsg (); below.  */
19447 #include <assert.h>
19448 /* Override any gcc2 internal prototype to avoid an error.  */
19449 #ifdef __cplusplus
19450 extern "C"
19451 #endif
19452 /* We use char because int might match the return type of a gcc2
19453    builtin and then its argument prototype would still apply.  */
19454 char getmsg ();
19455 char (*f) ();
19456
19457 int
19458 main ()
19459 {
19460 /* The GNU C library defines this for functions which it implements
19461     to always fail with ENOSYS.  Some functions are actually named
19462     something starting with __ and the normal name is an alias.  */
19463 #if defined (__stub_getmsg) || defined (__stub___getmsg)
19464 choke me
19465 #else
19466 f = getmsg;
19467 #endif
19468
19469   ;
19470   return 0;
19471 }
19472 _ACEOF
19473 rm -f conftest.$ac_objext conftest$ac_exeext
19474 if { (eval echo $as_me:19474: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
19475   ac_cv_func_getmsg=yes
19476 else
19477   echo "$as_me: failed program was:" >&5
19478   cat conftest.$ac_ext >&5
19479   ac_cv_func_getmsg=no
19480 fi
19481 rm -f conftest$ac_exeext conftest.$ac_ext
19482 fi
19483 echo "$as_me:19483: result: $ac_cv_func_getmsg" >&5
19484 echo "${ECHO_T}$ac_cv_func_getmsg" >&6
19485
19486 if test "$ac_cv_func_getmsg" = "yes"; then
19487
19488 echo "$as_me:19488: checking for working getmsg" >&5
19489 echo $ECHO_N "checking for working getmsg... $ECHO_C" >&6
19490 if test "${ac_cv_func_getmsg_work+set}" = set; then
19491   echo $ECHO_N "(cached) $ECHO_C" >&6
19492 else
19493   if test "$cross_compiling" = yes; then
19494   ac_cv_func_getmsg_work=no
19495 else
19496   cat >conftest.$ac_ext <<_ACEOF
19497 #line 19497 "configure"
19498 #include "confdefs.h"
19499
19500 #include <stdio.h>
19501 #include <errno.h>
19502
19503 int main()
19504 {
19505   int ret;
19506   ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL);
19507   if(ret < 0 && errno == ENOSYS)
19508     return 1;
19509   return 0;
19510 }
19511
19512 _ACEOF
19513 rm -f conftest$ac_exeext
19514 { (eval echo $as_me:19514: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
19515   (./conftest$ac_exeext) >&5 2>&1;
19516 ac_status=$?
19517 if test $ac_status = 0; then
19518   ac_cv_func_getmsg_work=yes
19519 else
19520   echo "$as_me: program exited with status $ac_status" >&5
19521 echo "$as_me: failed program was:" >&5
19522 cat conftest.$ac_ext >&5
19523 ac_cv_func_getmsg_work=no
19524 fi
19525
19526 rm -f conftest$ac_exeext conftest.$ac_ext
19527 fi
19528
19529 fi
19530 echo "$as_me:19530: result: $ac_cv_func_getmsg_work" >&5
19531 echo "${ECHO_T}$ac_cv_func_getmsg_work" >&6
19532 test "$ac_cv_func_getmsg_work" = "yes" &&
19533
19534 cat >>confdefs.h <<\EOF
19535 #define HAVE_GETMSG 1
19536 EOF
19537
19538 fi
19539
19540 if test "$ac_cv_func_getmsg_work" = yes; then
19541 echo "$as_me:19541: checking for streamspty" >&5
19542 echo $ECHO_N "checking for streamspty... $ECHO_C" >&6
19543 case "$host" in
19544 *-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*)
19545         krb_cv_sys_streamspty=no
19546         ;;
19547 *)
19548         krb_cv_sys_streamspty=yes
19549         ;;
19550 esac
19551 echo "$as_me:19551: result: $krb_cv_sys_streamspty" >&5
19552 echo "${ECHO_T}$krb_cv_sys_streamspty" >&6
19553 fi
19554 if test "$krb_cv_sys_streamspty" = yes; then
19555
19556 cat >>confdefs.h <<\EOF
19557 #define STREAMSPTY 1
19558 EOF
19559
19560 fi
19561
19562 echo "$as_me:19562: checking which authentication modules should be built" >&5
19563 echo $ECHO_N "checking which authentication modules should be built... $ECHO_C" >&6
19564
19565 LIB_AUTH_SUBDIRS=
19566
19567 if test "$ac_cv_header_siad_h" = yes; then
19568         LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
19569 fi
19570
19571 if test "$ac_cv_header_security_pam_modules_h" = yes -a "$enable_shared" = yes; then
19572         LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
19573 fi
19574
19575 case "${host}" in
19576 *-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
19577 esac
19578
19579 echo "$as_me:19579: result: $LIB_AUTH_SUBDIRS" >&5
19580 echo "${ECHO_T}$LIB_AUTH_SUBDIRS" >&6
19581
19582 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19583 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19584
19585 for i in bin lib libexec sbin; do
19586         i=${i}dir
19587         foo=`echo $i | tr 'xindiscernible' 'XINDISCERNIBLE'`
19588         x="\$${i}"
19589         eval y="$x"
19590         while test "x$y" != "x$x"; do
19591                 x="$y"
19592                 eval y="$x"
19593         done
19594         cat >>confdefs.h <<EOF
19595 #define $foo "$x"
19596 EOF
19597
19598 done
19599
19600 if false; then
19601         # hack to shut up automake
19602         LIBOBJS="$LIBOBJS make-print-version.o"
19603 fi
19604 LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/\.lo/g'`
19605
19606 ac_config_files="$ac_config_files Makefile              \
19607         include/Makefile                \
19608         include/kadm5/Makefile          \
19609         lib/Makefile                    \
19610         lib/45/Makefile                 \
19611         lib/auth/Makefile               \
19612         lib/auth/afskauthlib/Makefile   \
19613         lib/auth/pam/Makefile           \
19614         lib/auth/sia/Makefile           \
19615         lib/asn1/Makefile               \
19616         lib/com_err/Makefile            \
19617         lib/des/Makefile                \
19618         lib/editline/Makefile           \
19619         lib/gssapi/Makefile             \
19620         lib/hdb/Makefile                \
19621         lib/kadm5/Makefile              \
19622         lib/kafs/Makefile               \
19623         lib/kdfs/Makefile               \
19624         lib/krb5/Makefile               \
19625         lib/otp/Makefile                \
19626         lib/roken/Makefile              \
19627         lib/sl/Makefile                 \
19628         lib/vers/Makefile               \
19629         kuser/Makefile                  \
19630         kpasswd/Makefile                \
19631         kadmin/Makefile                 \
19632         admin/Makefile                  \
19633         kdc/Makefile                    \
19634         appl/Makefile                   \
19635         appl/afsutil/Makefile           \
19636         appl/ftp/Makefile               \
19637         appl/ftp/common/Makefile        \
19638         appl/ftp/ftp/Makefile           \
19639         appl/ftp/ftpd/Makefile          \
19640         appl/kx/Makefile                \
19641         appl/login/Makefile             \
19642         appl/otp/Makefile               \
19643         appl/popper/Makefile            \
19644         appl/push/Makefile              \
19645         appl/rsh/Makefile               \
19646         appl/rcp/Makefile               \
19647         appl/su/Makefile                \
19648         appl/xnlock/Makefile            \
19649         appl/telnet/Makefile            \
19650         appl/telnet/libtelnet/Makefile  \
19651         appl/telnet/telnet/Makefile     \
19652         appl/telnet/telnetd/Makefile    \
19653         appl/test/Makefile              \
19654         appl/kf/Makefile                \
19655         appl/dceutils/Makefile          \
19656         doc/Makefile                    \
19657         tools/Makefile                  \
19658 "
19659
19660 cat >confcache <<\_ACEOF
19661 # This file is a shell script that caches the results of configure
19662 # tests run on this system so they can be shared between configure
19663 # scripts and configure runs, see configure's option --config-cache.
19664 # It is not useful on other systems.  If it contains results you don't
19665 # want to keep, you may remove or edit it.
19666 #
19667 # config.status only pays attention to the cache file if you give it
19668 # the --recheck option to rerun configure.
19669 #
19670 # `ac_cv_env_foo' variables (set or unset) will be overriden when
19671 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19672 # following values.
19673
19674 _ACEOF
19675
19676 # The following way of writing the cache mishandles newlines in values,
19677 # but we know of no workaround that is simple, portable, and efficient.
19678 # So, don't put newlines in cache variables' values.
19679 # Ultrix sh set writes to stderr and can't be redirected directly,
19680 # and sets the high bit in the cache file unless we assign to the vars.
19681 {
19682   (set) 2>&1 |
19683     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19684     *ac_space=\ *)
19685       # `set' does not quote correctly, so add quotes (double-quote
19686       # substitution turns \\\\ into \\, and sed turns \\ into \).
19687       sed -n \
19688         "s/'/'\\\\''/g;
19689           s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19690       ;;
19691     *)
19692       # `set' quotes correctly as required by POSIX, so do not add quotes.
19693       sed -n \
19694         "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19695       ;;
19696     esac;
19697 } |
19698   sed '
19699      t clear
19700      : clear
19701      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19702      t end
19703      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19704      : end' >>confcache
19705 if cmp -s $cache_file confcache; then :; else
19706   if test -w $cache_file; then
19707     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19708     cat confcache >$cache_file
19709   else
19710     echo "not updating unwritable cache $cache_file"
19711   fi
19712 fi
19713 rm -f confcache
19714
19715 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19716 # Let make expand exec_prefix.
19717 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19718
19719 # Any assignment to VPATH causes Sun make to only execute
19720 # the first set of double-colon rules, so remove it if not needed.
19721 # If there is a colon in the path, we need to keep it.
19722 if test "x$srcdir" = x.; then
19723   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
19724 fi
19725
19726 DEFS=-DHAVE_CONFIG_H
19727
19728 # Save into config.log some information that might help in debugging.
19729 echo >&5
19730 echo "Cache variables:" >&5
19731 # The following way of writing the cache mishandles newlines in values,
19732 # but we know of no workaround that is simple, portable, and efficient.
19733 # So, don't put newlines in cache variables' values.
19734 # Ultrix sh set writes to stderr and can't be redirected directly,
19735 # and sets the high bit in the cache file unless we assign to the vars.
19736 {
19737   (set) 2>&1 |
19738     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19739     *ac_space=\ *)
19740       # `set' does not quote correctly, so add quotes (double-quote
19741       # substitution turns \\\\ into \\, and sed turns \\ into \).
19742       sed -n \
19743         "s/'/'\\\\''/g;
19744           s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19745       ;;
19746     *)
19747       # `set' quotes correctly as required by POSIX, so do not add quotes.
19748       sed -n \
19749         "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19750       ;;
19751     esac;
19752 } | sed 's/^/| /' >&5
19753 echo >&5
19754 echo "confdefs.h:" >&5
19755 sed '/^$/d;s/^/| /' confdefs.h >&5
19756
19757 : ${CONFIG_STATUS=./config.status}
19758 ac_clean_files_save=$ac_clean_files
19759 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19760 { echo "$as_me:19760: creating $CONFIG_STATUS" >&5
19761 echo "creating $CONFIG_STATUS" >&6;}
19762 cat >$CONFIG_STATUS <<\_ACEOF
19763 #! /bin/sh
19764 # Generated automatically by configure.
19765 # Run this file to recreate the current configuration.
19766 # Compiler output produced by configure, useful for debugging
19767 # configure, is in config.log if it exists.
19768
19769 debug=false
19770 as_me=`echo "$0" | sed 's,.*/,,'`
19771 SHELL=${CONFIG_SHELL-/bin/sh}
19772
19773 # Be Bourne compatible
19774 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19775   emulate sh
19776   NULLCMD=:
19777 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19778   set -o posix
19779 fi
19780
19781 if expr a : '\(a\)' >/dev/null 2>&1; then
19782   as_expr=expr
19783 else
19784   as_expr=false
19785 fi
19786 # Support unset when possible.
19787 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19788   as_unset=unset
19789 else
19790   as_unset=false
19791 fi
19792
19793 # NLS nuisances.
19794 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
19795 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
19796 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
19797 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
19798 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
19799 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
19800 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
19801 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
19802
19803 # IFS
19804 # We need space, tab and new line, in precisely that order.
19805 ac_nl='
19806 '
19807 IFS="   $ac_nl"
19808
19809 # CDPATH.
19810 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
19811
19812 # File descriptor usage:
19813 # 0 standard input
19814 # 1 file creation
19815 # 2 errors and warnings
19816 # 3 some systems may open it to /dev/tty
19817 # 4 used on the Kubota Titan
19818 # 6 checking for... messages and results
19819 # 5 compiler messages saved in config.log
19820 if test "$silent" = yes; then
19821   exec 6>/dev/null
19822 else
19823   exec 6>&1
19824 fi
19825 exec 5>>config.log
19826
19827 cat >&5 << EOF
19828
19829 ----------------------------------------------------------------------
19830
19831 This file was extended by $as_me (heimdal 0.3f) 2.49b, executed with
19832  > $0 $@
19833 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19834
19835 EOF
19836
19837 _ACEOF
19838
19839 # Files that config.status was made for.
19840 if test -n "$ac_config_files"; then
19841   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19842 fi
19843
19844 if test -n "$ac_config_headers"; then
19845   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19846 fi
19847
19848 if test -n "$ac_config_links"; then
19849   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19850 fi
19851
19852 if test -n "$ac_config_commands"; then
19853   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19854 fi
19855
19856 cat >>$CONFIG_STATUS <<\EOF
19857
19858 ac_cs_usage="\
19859 \`$as_me' instantiates files from templates according to the
19860 current configuration.
19861
19862 Usage: $0 [OPTIONS] [FILE]...
19863
19864   -h, --help       print this help, then exit
19865   -V, --version    print version number, then exit
19866   -d, --debug      don't remove temporary files
19867       --recheck    update $as_me by reconfiguring in the same conditions
19868   --file=FILE[:TEMPLATE]
19869                    instantiate the configuration file FILE
19870   --header=FILE[:TEMPLATE]
19871                    instantiate the configuration header FILE
19872
19873 Configuration files:
19874 $config_files
19875
19876 Configuration headers:
19877 $config_headers
19878
19879 Configuration commands:
19880 $config_commands
19881
19882 Report bugs to <bug-autoconf@gnu.org>."
19883 EOF
19884
19885 cat >>$CONFIG_STATUS <<EOF
19886 ac_cs_version="\\
19887 $CONFIG_STATUS generated by $as_me (Autoconf 2.49b).
19888 Configured on host $ac_hostname by
19889   `echo "$0 $ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`"
19890
19891 ac_given_srcdir=$srcdir
19892 ac_given_INSTALL="$INSTALL"
19893 EOF
19894
19895 cat >>$CONFIG_STATUS <<\EOF
19896 # If no file are specified by the user, then we need to provide default
19897 # value.  By we need to know if files were specified by the user.
19898 ac_need_defaults=:
19899 while test $# != 0
19900 do
19901   case $1 in
19902   --*=*)
19903     ac_option=`expr "x$1" : 'x\([^=]*\)='`
19904     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19905     shift
19906     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
19907     shift
19908     ;;
19909   -*);;
19910   *) # This is not an option, so the user has probably given explicit
19911      # arguments.
19912      ac_need_defaults=false;;
19913   esac
19914
19915   case $1 in
19916   # Handling of the options.
19917 EOF
19918 cat >>$CONFIG_STATUS <<EOF
19919   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19920     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
19921     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
19922 EOF
19923 cat >>$CONFIG_STATUS <<\EOF
19924   --version | --vers* | -V )
19925     echo "$ac_cs_version"; exit 0 ;;
19926   --he | --h)
19927     # Conflict between --help and --header
19928     {  echo "$as_me: error: ambiguous option: $1
19929 Try \`$0 --help' for more information." >&2
19930   { (exit 1); exit; }; };;
19931   --help | --hel | -h )
19932     echo "$ac_cs_usage"; exit 0 ;;
19933   --debug | --d* | -d )
19934     debug=: ;;
19935   --file | --fil | --fi | --f )
19936     shift
19937     CONFIG_FILES="$CONFIG_FILES $1"
19938     ac_need_defaults=false;;
19939   --header | --heade | --head | --hea )
19940     shift
19941     CONFIG_HEADERS="$CONFIG_HEADERS $1"
19942     ac_need_defaults=false;;
19943
19944   # Handling of arguments.
19945   'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19946   'include/Makefile' ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19947   'include/kadm5/Makefile' ) CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;;
19948   'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19949   'lib/45/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/45/Makefile" ;;
19950   'lib/auth/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;;
19951   'lib/auth/afskauthlib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/auth/afskauthlib/Makefile" ;;
19952   'lib/auth/pam/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/auth/pam/Makefile" ;;
19953   'lib/auth/sia/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/auth/sia/Makefile" ;;
19954   'lib/asn1/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;;
19955   'lib/com_err/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;;
19956   'lib/des/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/des/Makefile" ;;
19957   'lib/editline/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/editline/Makefile" ;;
19958   'lib/gssapi/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;;
19959   'lib/hdb/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;;
19960   'lib/kadm5/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;;
19961   'lib/kafs/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;;
19962   'lib/kdfs/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;;
19963   'lib/krb5/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;;
19964   'lib/otp/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;;
19965   'lib/roken/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;;
19966   'lib/sl/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;;
19967   'lib/vers/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;;
19968   'kuser/Makefile' ) CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;;
19969   'kpasswd/Makefile' ) CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;;
19970   'kadmin/Makefile' ) CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;;
19971   'admin/Makefile' ) CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;;
19972   'kdc/Makefile' ) CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;;
19973   'appl/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;;
19974   'appl/afsutil/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;;
19975   'appl/ftp/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/ftp/Makefile" ;;
19976   'appl/ftp/common/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/ftp/common/Makefile" ;;
19977   'appl/ftp/ftp/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftp/Makefile" ;;
19978   'appl/ftp/ftpd/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftpd/Makefile" ;;
19979   'appl/kx/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/kx/Makefile" ;;
19980   'appl/login/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/login/Makefile" ;;
19981   'appl/otp/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;;
19982   'appl/popper/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/popper/Makefile" ;;
19983   'appl/push/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/push/Makefile" ;;
19984   'appl/rsh/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/rsh/Makefile" ;;
19985   'appl/rcp/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/rcp/Makefile" ;;
19986   'appl/su/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;;
19987   'appl/xnlock/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/xnlock/Makefile" ;;
19988   'appl/telnet/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/telnet/Makefile" ;;
19989   'appl/telnet/libtelnet/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/telnet/libtelnet/Makefile" ;;
19990   'appl/telnet/telnet/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnet/Makefile" ;;
19991   'appl/telnet/telnetd/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnetd/Makefile" ;;
19992   'appl/test/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;;
19993   'appl/kf/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;;
19994   'appl/dceutils/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;;
19995   'doc/Makefile' ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19996   'tools/Makefile' ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
19997   'default-1' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19998   'default-2' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
19999   'include/config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20000
20001   # This is an error.
20002   -*) {  echo "$as_me: error: unrecognized option: $1
20003 Try \`$0 --help' for more information." >&2
20004   { (exit 1); exit; }; } ;;
20005   *) {  echo "$as_me: error: invalid argument: $1" >&2
20006   { (exit 1); exit; }; };;
20007   esac
20008   shift
20009 done
20010
20011 EOF
20012
20013 cat >>$CONFIG_STATUS <<\EOF
20014 # If the user did not use the arguments to specify the items to instantiate,
20015 # then the envvar interface is used.  Set only those that are not.
20016 if $ac_need_defaults; then
20017   CONFIG_FILES=${CONFIG_FILES="$config_files"}
20018   CONFIG_HEADERS=${CONFIG_HEADERS="$config_headers"}
20019   CONFIG_COMMANDS=${CONFIG_COMMANDS="$config_commands"}
20020 fi
20021
20022 # Create a temporary directory, and hook for its removal unless debugging.
20023 $debug ||
20024 {
20025   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20026   trap '{ (exit $?); exit; }' 1 2 13 15
20027 }
20028
20029 # Create a (secure) tmp directory for tmp files.
20030 : ${TMPDIR=/tmp}
20031 {
20032   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
20033   test -n "$tmp" && test -d "$tmp"
20034 }  ||
20035 {
20036   tmp=$TMPDIR/cs$$-$RANDOM
20037   (umask 077 && mkdir $tmp)
20038 } ||
20039 {
20040    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
20041    { (exit 1); exit; }
20042 }
20043
20044 EOF
20045
20046 cat >>$CONFIG_STATUS <<EOF
20047 #
20048 # INIT-COMMANDS section.
20049 #
20050
20051 am_indx=1
20052   for am_file in include/config.h; do
20053     case " $CONFIG_HEADERS " in
20054     *" $am_file "*)
20055       echo timestamp > `echo $am_file | sed 's%:.*%%;s%[^/]*$%%'`stamp-h$am_indx
20056       ;;
20057     esac
20058     am_indx=\`expr \$am_indx + 1\`
20059   done
20060 AMDEP="$AMDEP"
20061 ac_aux_dir="$ac_aux_dir"
20062
20063 EOF
20064
20065 cat >>$CONFIG_STATUS <<EOF
20066
20067 #
20068 # CONFIG_FILES section.
20069 #
20070
20071 # No need to generate the scripts if there are no CONFIG_FILES.
20072 # This happens for instance when ./config.status config.h
20073 if test -n "\$CONFIG_FILES"; then
20074   # Protect against being on the right side of a sed subst in config.status.
20075   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20076    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20077 s,@SHELL@,$SHELL,;t t
20078 s,@exec_prefix@,$exec_prefix,;t t
20079 s,@prefix@,$prefix,;t t
20080 s,@program_transform_name@,$program_transform_name,;t t
20081 s,@bindir@,$bindir,;t t
20082 s,@sbindir@,$sbindir,;t t
20083 s,@libexecdir@,$libexecdir,;t t
20084 s,@datadir@,$datadir,;t t
20085 s,@sysconfdir@,$sysconfdir,;t t
20086 s,@sharedstatedir@,$sharedstatedir,;t t
20087 s,@localstatedir@,$localstatedir,;t t
20088 s,@libdir@,$libdir,;t t
20089 s,@includedir@,$includedir,;t t
20090 s,@oldincludedir@,$oldincludedir,;t t
20091 s,@infodir@,$infodir,;t t
20092 s,@mandir@,$mandir,;t t
20093 s,@ECHO_C@,$ECHO_C,;t t
20094 s,@ECHO_N@,$ECHO_N,;t t
20095 s,@ECHO_T@,$ECHO_T,;t t
20096 s,@CFLAGS@,$CFLAGS,;t t
20097 s,@CPPFLAGS@,$CPPFLAGS,;t t
20098 s,@CXXFLAGS@,$CXXFLAGS,;t t
20099 s,@FFLAGS@,$FFLAGS,;t t
20100 s,@DEFS@,$DEFS,;t t
20101 s,@LDFLAGS@,$LDFLAGS,;t t
20102 s,@LIBS@,$LIBS,;t t
20103 s,@CC@,$CC,;t t
20104 s,@ac_ct_CC@,$ac_ct_CC,;t t
20105 s,@OBJEXT@,$OBJEXT,;t t
20106 s,@EXEEXT@,$EXEEXT,;t t
20107 s,@CPP@,$CPP,;t t
20108 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20109 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20110 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20111 s,@PACKAGE@,$PACKAGE,;t t
20112 s,@VERSION@,$VERSION,;t t
20113 s,@ACLOCAL@,$ACLOCAL,;t t
20114 s,@AUTOCONF@,$AUTOCONF,;t t
20115 s,@AUTOMAKE@,$AUTOMAKE,;t t
20116 s,@AUTOHEADER@,$AUTOHEADER,;t t
20117 s,@MAKEINFO@,$MAKEINFO,;t t
20118 s,@AMTAR@,$AMTAR,;t t
20119 s,@install_sh@,$install_sh,;t t
20120 s,@AWK@,$AWK,;t t
20121 s,@SET_MAKE@,$SET_MAKE,;t t
20122 s,@AMDEP@,$AMDEP,;t t
20123 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20124 s,@DEPDIR@,$DEPDIR,;t t
20125 s,@CCDEPMODE@,$CCDEPMODE,;t t
20126 s,@build@,$build,;t t
20127 s,@build_cpu@,$build_cpu,;t t
20128 s,@build_vendor@,$build_vendor,;t t
20129 s,@build_os@,$build_os,;t t
20130 s,@host@,$host,;t t
20131 s,@host_cpu@,$host_cpu,;t t
20132 s,@host_vendor@,$host_vendor,;t t
20133 s,@host_os@,$host_os,;t t
20134 s,@CANONICAL_HOST@,$CANONICAL_HOST,;t t
20135 s,@YACC@,$YACC,;t t
20136 s,@LEX@,$LEX,;t t
20137 s,@LEXLIB@,$LEXLIB,;t t
20138 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20139 s,@RANLIB@,$RANLIB,;t t
20140 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20141 s,@LN_S@,$LN_S,;t t
20142 s,@STRIP@,$STRIP,;t t
20143 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20144 s,@LIBTOOL@,$LIBTOOL,;t t
20145 s,@WFLAGS@,$WFLAGS,;t t
20146 s,@WFLAGS_NOUNUSED@,$WFLAGS_NOUNUSED,;t t
20147 s,@WFLAGS_NOIMPLICITINT@,$WFLAGS_NOIMPLICITINT,;t t
20148 s,@LIB_dbopen@,$LIB_dbopen,;t t
20149 s,@LIB_dbm_firstkey@,$LIB_dbm_firstkey,;t t
20150 s,@LIB_db_create@,$LIB_db_create,;t t
20151 s,@DBLIB@,$DBLIB,;t t
20152 s,@VOID_RETSIGTYPE@,$VOID_RETSIGTYPE,;t t
20153 s,@have_err_h_TRUE@,$have_err_h_TRUE,;t t
20154 s,@have_err_h_FALSE@,$have_err_h_FALSE,;t t
20155 s,@have_fnmatch_h_TRUE@,$have_fnmatch_h_TRUE,;t t
20156 s,@have_fnmatch_h_FALSE@,$have_fnmatch_h_FALSE,;t t
20157 s,@have_ifaddrs_h_TRUE@,$have_ifaddrs_h_TRUE,;t t
20158 s,@have_ifaddrs_h_FALSE@,$have_ifaddrs_h_FALSE,;t t
20159 s,@have_vis_h_TRUE@,$have_vis_h_TRUE,;t t
20160 s,@have_vis_h_FALSE@,$have_vis_h_FALSE,;t t
20161 s,@LIB_socket@,$LIB_socket,;t t
20162 s,@LIB_gethostbyname@,$LIB_gethostbyname,;t t
20163 s,@LIB_syslog@,$LIB_syslog,;t t
20164 s,@LIB_gethostbyname2@,$LIB_gethostbyname2,;t t
20165 s,@LIB_res_search@,$LIB_res_search,;t t
20166 s,@LIB_dn_expand@,$LIB_dn_expand,;t t
20167 s,@have_glob_h_TRUE@,$have_glob_h_TRUE,;t t
20168 s,@have_glob_h_FALSE@,$have_glob_h_FALSE,;t t
20169 s,@LIB_getsockopt@,$LIB_getsockopt,;t t
20170 s,@LIB_setsockopt@,$LIB_setsockopt,;t t
20171 s,@LIB_hstrerror@,$LIB_hstrerror,;t t
20172 s,@LIBOBJS@,$LIBOBJS,;t t
20173 s,@LIB_bswap16@,$LIB_bswap16,;t t
20174 s,@LIB_bswap32@,$LIB_bswap32,;t t
20175 s,@LIB_pidfile@,$LIB_pidfile,;t t
20176 s,@LIB_crypt@,$LIB_crypt,;t t
20177 s,@DIR_roken@,$DIR_roken,;t t
20178 s,@LIB_roken@,$LIB_roken,;t t
20179 s,@INCLUDES_roken@,$INCLUDES_roken,;t t
20180 s,@INCLUDE_openldap@,$INCLUDE_openldap,;t t
20181 s,@LIB_openldap@,$LIB_openldap,;t t
20182 s,@INCLUDE_krb4@,$INCLUDE_krb4,;t t
20183 s,@LIB_krb4@,$LIB_krb4,;t t
20184 s,@EXTRA_LIB45@,$EXTRA_LIB45,;t t
20185 s,@LIB_krb_enable_debug@,$LIB_krb_enable_debug,;t t
20186 s,@LIB_krb_disable_debug@,$LIB_krb_disable_debug,;t t
20187 s,@LIB_krb_get_our_ip_for_realm@,$LIB_krb_get_our_ip_for_realm,;t t
20188 s,@KRB4_TRUE@,$KRB4_TRUE,;t t
20189 s,@KRB4_FALSE@,$KRB4_FALSE,;t t
20190 s,@KRB5_TRUE@,$KRB5_TRUE,;t t
20191 s,@KRB5_FALSE@,$KRB5_FALSE,;t t
20192 s,@do_roken_rename_TRUE@,$do_roken_rename_TRUE,;t t
20193 s,@do_roken_rename_FALSE@,$do_roken_rename_FALSE,;t t
20194 s,@LIB_kdb@,$LIB_kdb,;t t
20195 s,@DCE_TRUE@,$DCE_TRUE,;t t
20196 s,@DCE_FALSE@,$DCE_FALSE,;t t
20197 s,@dpagaix_CFLAGS@,$dpagaix_CFLAGS,;t t
20198 s,@dpagaix_LDADD@,$dpagaix_LDADD,;t t
20199 s,@LIB_otp@,$LIB_otp,;t t
20200 s,@OTP_TRUE@,$OTP_TRUE,;t t
20201 s,@OTP_FALSE@,$OTP_FALSE,;t t
20202 s,@LIB_security@,$LIB_security,;t t
20203 s,@NROFF@,$NROFF,;t t
20204 s,@GROFF@,$GROFF,;t t
20205 s,@CATMAN@,$CATMAN,;t t
20206 s,@CATMAN_TRUE@,$CATMAN_TRUE,;t t
20207 s,@CATMAN_FALSE@,$CATMAN_FALSE,;t t
20208 s,@CATMANEXT@,$CATMANEXT,;t t
20209 s,@INCLUDE_readline@,$INCLUDE_readline,;t t
20210 s,@LIB_readline@,$LIB_readline,;t t
20211 s,@INCLUDE_hesiod@,$INCLUDE_hesiod,;t t
20212 s,@LIB_hesiod@,$LIB_hesiod,;t t
20213 s,@AIX_TRUE@,$AIX_TRUE,;t t
20214 s,@AIX_FALSE@,$AIX_FALSE,;t t
20215 s,@AIX4_TRUE@,$AIX4_TRUE,;t t
20216 s,@AIX4_FALSE@,$AIX4_FALSE,;t t
20217 s,@AIX_DYNAMIC_AFS_TRUE@,$AIX_DYNAMIC_AFS_TRUE,;t t
20218 s,@AIX_DYNAMIC_AFS_FALSE@,$AIX_DYNAMIC_AFS_FALSE,;t t
20219 s,@LIB_dlopen@,$LIB_dlopen,;t t
20220 s,@HAVE_DLOPEN_TRUE@,$HAVE_DLOPEN_TRUE,;t t
20221 s,@HAVE_DLOPEN_FALSE@,$HAVE_DLOPEN_FALSE,;t t
20222 s,@AIX_EXTRA_KAFS@,$AIX_EXTRA_KAFS,;t t
20223 s,@IRIX_TRUE@,$IRIX_TRUE,;t t
20224 s,@IRIX_FALSE@,$IRIX_FALSE,;t t
20225 s,@X_CFLAGS@,$X_CFLAGS,;t t
20226 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20227 s,@X_LIBS@,$X_LIBS,;t t
20228 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20229 s,@HAVE_X_TRUE@,$HAVE_X_TRUE,;t t
20230 s,@HAVE_X_FALSE@,$HAVE_X_FALSE,;t t
20231 s,@LIB_XauWriteAuth@,$LIB_XauWriteAuth,;t t
20232 s,@LIB_XauReadAuth@,$LIB_XauReadAuth,;t t
20233 s,@LIB_XauFileName@,$LIB_XauFileName,;t t
20234 s,@NEED_WRITEAUTH_TRUE@,$NEED_WRITEAUTH_TRUE,;t t
20235 s,@NEED_WRITEAUTH_FALSE@,$NEED_WRITEAUTH_FALSE,;t t
20236 s,@LIB_logwtmp@,$LIB_logwtmp,;t t
20237 s,@LIB_tgetent@,$LIB_tgetent,;t t
20238 s,@LIB_getpwnam_r@,$LIB_getpwnam_r,;t t
20239 s,@LIB_MD4_Init@,$LIB_MD4_Init,;t t
20240 s,@LIB_MD5_Init@,$LIB_MD5_Init,;t t
20241 s,@LIB_SHA1_Init@,$LIB_SHA1_Init,;t t
20242 s,@LIB_des_cbc_encrypt@,$LIB_des_cbc_encrypt,;t t
20243 s,@LIB_RC4@,$LIB_RC4,;t t
20244 s,@DIR_des@,$DIR_des,;t t
20245 s,@LIB_des@,$LIB_des,;t t
20246 s,@LIB_des_appl@,$LIB_des_appl,;t t
20247 s,@LIB_el_init@,$LIB_el_init,;t t
20248 s,@el_compat_TRUE@,$el_compat_TRUE,;t t
20249 s,@el_compat_FALSE@,$el_compat_FALSE,;t t
20250 s,@LIB_AUTH_SUBDIRS@,$LIB_AUTH_SUBDIRS,;t t
20251 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20252 CEOF
20253
20254 EOF
20255
20256   cat >>$CONFIG_STATUS <<\EOF
20257   # Split the substitutions into bite-sized pieces for seds with
20258   # small command number limits, like on Digital OSF/1 and HP-UX.
20259   ac_max_sed_lines=48
20260   ac_sed_frag=1 # Number of current file.
20261   ac_beg=1 # First line for current file.
20262   ac_end=$ac_max_sed_lines # Line after last line for current file.
20263   ac_more_lines=:
20264   ac_sed_cmds=
20265   while $ac_more_lines; do
20266     if test $ac_beg -gt 1; then
20267       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20268     else
20269       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20270     fi
20271     if test ! -s $tmp/subs.frag; then
20272       ac_more_lines=false
20273     else
20274       # The purpose of the label and of the branching condition is to
20275       # speed up the sed processing (if there are no `@' at all, there
20276       # is no need to browse any of the substitutions).
20277       # These are the two extra sed commands mentioned above.
20278       (echo ':t
20279   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20280       if test -z "$ac_sed_cmds"; then
20281         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20282       else
20283         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20284       fi
20285       ac_sed_frag=`expr $ac_sed_frag + 1`
20286       ac_beg=$ac_end
20287       ac_end=`expr $ac_end + $ac_max_sed_lines`
20288     fi
20289   done
20290   if test -z "$ac_sed_cmds"; then
20291     ac_sed_cmds=cat
20292   fi
20293 fi # test -n "$CONFIG_FILES"
20294
20295 EOF
20296 cat >>$CONFIG_STATUS <<\EOF
20297 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20298   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20299   case $ac_file in
20300   - | *:- | *:-:* ) # input from stdin
20301         cat >$tmp/stdin
20302         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20303         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20304   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20305         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20306   * )   ac_file_in=$ac_file.in ;;
20307   esac
20308
20309   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
20310   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20311          X"$ac_file" : 'X\(//\)[^/]' \| \
20312          X"$ac_file" : 'X\(//\)$' \| \
20313          X"$ac_file" : 'X\(/\)' \| \
20314          .     : '\(.\)' 2>/dev/null ||
20315 echo X"$ac_file" |
20316     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20317           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20318           /^X\(\/\/\)$/{ s//\1/; q; }
20319           /^X\(\/\).*/{ s//\1/; q; }
20320           s/.*/./; q'`
20321   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20322     { case "$ac_dir" in
20323   [\\/]* | ?:[\\/]* ) ac_incr_dir=;;
20324   *)                      ac_incr_dir=.;;
20325 esac
20326 ac_dummy="$ac_dir"
20327 for ac_mkdir_dir in `IFS=/; set X $ac_dummy; shift; echo "$@"`; do
20328   ac_incr_dir=$ac_incr_dir/$ac_mkdir_dir
20329   test -d $ac_incr_dir || mkdir $ac_incr_dir
20330 done; }
20331
20332     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
20333     # A "../" for each directory in $ac_dir_suffix.
20334     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
20335   else
20336     ac_dir_suffix= ac_dots=
20337   fi
20338
20339   case $ac_given_srcdir in
20340   .)  srcdir=.
20341       if test -z "$ac_dots"; then top_srcdir=.
20342       else top_srcdir=`echo $ac_dots | sed 's,/$,,'`; fi ;;
20343   [\\/]* | ?:[\\/]* )
20344       srcdir=$ac_given_srcdir$ac_dir_suffix;
20345       top_srcdir=$ac_given_srcdir ;;
20346   *) # Relative path.
20347     srcdir=$ac_dots$ac_given_srcdir$ac_dir_suffix
20348     top_srcdir=$ac_dots$ac_given_srcdir ;;
20349   esac
20350
20351   case $ac_given_INSTALL in
20352   [\\/$]* | ?:[\\/]* ) INSTALL=$ac_given_INSTALL ;;
20353   *) INSTALL=$ac_dots$ac_given_INSTALL ;;
20354   esac
20355
20356   if test x"$ac_file" != x-; then
20357     { echo "$as_me:20357: creating $ac_file" >&5
20358 echo "creating $ac_file" >&6;}
20359     rm -f "$ac_file"
20360   fi
20361   # Let's still pretend it is `configure' which instantiates (i.e., don't
20362   # use $as_me), people would be surprised to read:
20363   #    /* config.h.  Generated automatically by config.status.  */
20364   configure_input="Generated automatically from `echo $ac_file_in |
20365                                                  sed 's,.*/,,'` by configure."
20366
20367   # Don't redirect the output to AC_FILE directly: use `mv' so that
20368   # updating is atomic, and doesn't need trapping.
20369
20370   # First look for the input files in the build tree, otherwise in the
20371   # src tree.
20372   ac_file_inputs=`IFS=:
20373     for f in $ac_file_in; do
20374       case $f in
20375       -) echo $tmp/stdin ;;
20376       [\\/$]* | ?:[\\/]*)
20377          # Absolute
20378          test -f "$f" || {  echo "$as_me: error: cannot find input file: $f" >&2
20379   { (exit 1); exit; }; }
20380          echo $f;;
20381       *) # Relative
20382          if test -f "$f"; then
20383            # Build tree
20384            echo $f
20385          elif test -f "$ac_given_srcdir/$f"; then
20386            # Source tree
20387            echo $ac_given_srcdir/$f
20388          else
20389            # /dev/null tree
20390            {  echo "$as_me: error: cannot find input file: $f" >&2
20391   { (exit 1); exit; }; }
20392          fi;;
20393       esac
20394     done` || { (exit 1); exit; }
20395 EOF
20396 cat >>$CONFIG_STATUS <<EOF
20397   sed "$ac_vpsub
20398 $extrasub
20399 EOF
20400 cat >>$CONFIG_STATUS <<\EOF
20401 :t
20402 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20403 s,@configure_input@,$configure_input,;t t
20404 s,@srcdir@,$srcdir,;t t
20405 s,@top_srcdir@,$top_srcdir,;t t
20406 s,@INSTALL@,$INSTALL,;t t
20407 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20408   rm -f $tmp/stdin
20409   if test x"$ac_file" != x-; then
20410     mv $tmp/out $ac_file
20411   else
20412     cat $tmp/out
20413     rm -f $tmp/out
20414   fi
20415
20416 done
20417 EOF
20418 cat >>$CONFIG_STATUS <<\EOF
20419
20420 #
20421 # CONFIG_HEADER section.
20422 #
20423
20424 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20425 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20426 #
20427 # ac_d sets the value in "#define NAME VALUE" lines.
20428 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
20429 ac_dB='[        ].*$,\1#\2'
20430 ac_dC=' '
20431 ac_dD=',;t'
20432 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20433 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20434 ac_uB='$,\1#\2define\3'
20435 ac_uC=' '
20436 ac_uD=',;t'
20437
20438 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20439   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20440   case $ac_file in
20441   - | *:- | *:-:* ) # input from stdin
20442         cat >$tmp/stdin
20443         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20444         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20445   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20446         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20447   * )   ac_file_in=$ac_file.in ;;
20448   esac
20449
20450   test x"$ac_file" != x- && { echo "$as_me:20450: creating $ac_file" >&5
20451 echo "creating $ac_file" >&6;}
20452
20453   # First look for the input files in the build tree, otherwise in the
20454   # src tree.
20455   ac_file_inputs=`IFS=:
20456     for f in $ac_file_in; do
20457       case $f in
20458       -) echo $tmp/stdin ;;
20459       [\\/$]* | ?:[\\/]*)
20460          # Absolute
20461          test -f "$f" || {  echo "$as_me: error: cannot find input file: $f" >&2
20462   { (exit 1); exit; }; }
20463          echo $f;;
20464       *) # Relative
20465          if test -f "$f"; then
20466            # Build tree
20467            echo $f
20468          elif test -f "$ac_given_srcdir/$f"; then
20469            # Source tree
20470            echo $ac_given_srcdir/$f
20471          else
20472            # /dev/null tree
20473            {  echo "$as_me: error: cannot find input file: $f" >&2
20474   { (exit 1); exit; }; }
20475          fi;;
20476       esac
20477     done` || { (exit 1); exit; }
20478   # Remove the trailing spaces.
20479   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
20480
20481 EOF
20482
20483 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20484 # `conftest.undefs', that substitutes the proper values into
20485 # config.h.in to produce config.h.  The first handles `#define'
20486 # templates, and the second `#undef' templates.
20487 # And first: Protect against being on the right side of a sed subst in
20488 # config.status.  Protect against being in an unquoted here document
20489 # in config.status.
20490 rm -f conftest.defines conftest.undefs
20491 # Using a here document instead of a string reduces the quoting nightmare.
20492 # Putting comments in sed scripts is not portable.
20493 #
20494 # `end' is used to avoid that the second main sed command (meant for
20495 # 0-ary CPP macros) applies to n-ary macro definitions.
20496 # See the Autoconf documentation for `clear'.
20497 cat >confdef2sed.sed <<\EOF
20498 s/[\\&,]/\\&/g
20499 s,[\\$`],\\&,g
20500 t clear
20501 : clear
20502 s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
20503 t end
20504 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20505 : end
20506 EOF
20507 # If some macros were called several times there might be several times
20508 # the same #defines, which is useless.  Nevertheless, we may not want to
20509 # sort them, since we want the *last* AC_DEFINE to be honored.
20510 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20511 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20512 rm -f confdef2sed.sed
20513
20514 # This sed command replaces #undef with comments.  This is necessary, for
20515 # example, in the case of _POSIX_SOURCE, which is predefined and required
20516 # on some systems where configure will not decide to define it.
20517 cat >>conftest.undefs <<\EOF
20518 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20519 EOF
20520
20521 # Break up conftest.defines because some shells have a limit on the size
20522 # of here documents, and old seds have small limits too (100 cmds).
20523 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20524 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20525 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20526 echo '  :' >>$CONFIG_STATUS
20527 rm -f conftest.tail
20528 while grep . conftest.defines >/dev/null
20529 do
20530   # Write a limited-size here document to $tmp/defines.sed.
20531   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20532   # Speed up: don't consider the non `#define' lines.
20533   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
20534   # Work around the forget-to-reset-the-flag bug.
20535   echo 't clr' >>$CONFIG_STATUS
20536   echo ': clr' >>$CONFIG_STATUS
20537   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20538   echo 'CEOF
20539   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20540   rm -f $tmp/in
20541   mv $tmp/out $tmp/in
20542 ' >>$CONFIG_STATUS
20543   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20544   rm -f conftest.defines
20545   mv conftest.tail conftest.defines
20546 done
20547 rm -f conftest.defines
20548 echo '  fi # egrep' >>$CONFIG_STATUS
20549 echo >>$CONFIG_STATUS
20550
20551 # Break up conftest.undefs because some shells have a limit on the size
20552 # of here documents, and old seds have small limits too (100 cmds).
20553 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20554 rm -f conftest.tail
20555 while grep . conftest.undefs >/dev/null
20556 do
20557   # Write a limited-size here document to $tmp/undefs.sed.
20558   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20559   # Speed up: don't consider the non `#undef'
20560   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20561   # Work around the forget-to-reset-the-flag bug.
20562   echo 't clr' >>$CONFIG_STATUS
20563   echo ': clr' >>$CONFIG_STATUS
20564   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20565   echo 'CEOF
20566   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20567   rm -f $tmp/in
20568   mv $tmp/out $tmp/in
20569 ' >>$CONFIG_STATUS
20570   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20571   rm -f conftest.undefs
20572   mv conftest.tail conftest.undefs
20573 done
20574 rm -f conftest.undefs
20575
20576 cat >>$CONFIG_STATUS <<\EOF
20577   # Let's still pretend it is `configure' which instantiates (i.e., don't
20578   # use $as_me), people would be surprised to read:
20579   #    /* config.h.  Generated automatically by config.status.  */
20580   if test x"$ac_file" = x-; then
20581     echo "/* Generated automatically by configure.  */" >$tmp/config.h
20582   else
20583     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
20584   fi
20585   cat $tmp/in >>$tmp/config.h
20586   rm -f $tmp/in
20587   if test x"$ac_file" != x-; then
20588     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
20589       { echo "$as_me:20589: $ac_file is unchanged" >&5
20590 echo "$ac_file is unchanged" >&6;}
20591     else
20592       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20593          X"$ac_file" : 'X\(//\)[^/]' \| \
20594          X"$ac_file" : 'X\(//\)$' \| \
20595          X"$ac_file" : 'X\(/\)' \| \
20596          .     : '\(.\)' 2>/dev/null ||
20597 echo X"$ac_file" |
20598     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20599           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20600           /^X\(\/\/\)$/{ s//\1/; q; }
20601           /^X\(\/\).*/{ s//\1/; q; }
20602           s/.*/./; q'`
20603       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20604         { case "$ac_dir" in
20605   [\\/]* | ?:[\\/]* ) ac_incr_dir=;;
20606   *)                      ac_incr_dir=.;;
20607 esac
20608 ac_dummy="$ac_dir"
20609 for ac_mkdir_dir in `IFS=/; set X $ac_dummy; shift; echo "$@"`; do
20610   ac_incr_dir=$ac_incr_dir/$ac_mkdir_dir
20611   test -d $ac_incr_dir || mkdir $ac_incr_dir
20612 done; }
20613
20614       fi
20615       rm -f $ac_file
20616       mv $tmp/config.h $ac_file
20617     fi
20618   else
20619     cat $tmp/config.h
20620     rm -f $tmp/config.h
20621   fi
20622 done
20623 EOF
20624 cat >>$CONFIG_STATUS <<\EOF
20625
20626 #
20627 # CONFIG_COMMANDS section.
20628 #
20629 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20630   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20631   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20632
20633   case $ac_dest in
20634     default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp >      include/stamp-h ;;
20635     default-2 )
20636 test x"$AMDEP" != x"" ||
20637 for mf in $CONFIG_FILES; do
20638   case "$mf" in
20639   Makefile) dirpart=.;;
20640   */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
20641   *) continue;;
20642   esac
20643   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
20644   # Extract the definition of DEP_FILES from the Makefile without
20645   # running `make'.
20646   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
20647   test -z "$DEPDIR" && continue
20648   # When using ansi2knr, U may be empty or an underscore; expand it
20649   U=`sed -n -e '/^U = / s///p' < "$mf"`
20650   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
20651   # We invoke sed twice because it is the simplest approach to
20652   # changing $(DEPDIR) to its actual value in the expansion.
20653   for file in `sed -n -e '
20654     /^DEP_FILES = .*\\\\$/ {
20655       s/^DEP_FILES = //
20656       :loop
20657         s/\\\\$//
20658         p
20659         n
20660         /\\\\$/ b loop
20661       p
20662     }
20663     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
20664        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20665     # Make sure the directory exists.
20666     test -f "$dirpart/$file" && continue
20667     fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
20668     $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
20669     # echo "creating $dirpart/$file"
20670     echo '# dummy' > "$dirpart/$file"
20671   done
20672 done
20673  ;;
20674   esac
20675 done
20676 EOF
20677
20678 cat >>$CONFIG_STATUS <<\EOF
20679
20680 exit 0
20681 EOF
20682 chmod +x $CONFIG_STATUS
20683 ac_clean_files=$ac_clean_files_save
20684
20685 test "$no_create" = yes || $SHELL $CONFIG_STATUS || { (exit 1); exit; }
20686
20687 HEIMDALVERSION="$PACKAGE-$VERSION"
20688
20689 cat > include/newversion.h.in <<EOF
20690 const char *heimdal_long_version = "@(#)\$Version: $HEIMDALVERSION by @USER@ on @HOST@ ($host) @DATE@ \$";
20691 const char *heimdal_version = "$HEIMDALVERSION";
20692 EOF
20693
20694 if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then
20695         echo "include/version.h is unchanged"
20696         rm -f include/newversion.h.in
20697 else
20698         echo "creating include/version.h"
20699         User=${USER-${LOGNAME}}
20700         Host=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q`
20701         Date=`date`
20702         mv -f include/newversion.h.in include/version.h.in
20703         sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h
20704 fi