configure revision 57416
1229997Sken#! /bin/sh
2229997Sken
3229997Sken# From configure.in Revision: 1.216 
4232604Strasz
5288348Smav
6229997Sken
7229997Sken
8232604Strasz
9232604Strasz# Like AC_CONFIG_HEADER, but automatically create stamp file.
10232604Strasz
11229997Sken
12229997Sken
13229997Sken# Do all the work for Automake.  This macro actually does too much --
14229997Sken# some checks are only needed if your package does certain things.
15229997Sken# But this isn't really a big deal.
16229997Sken
17229997Sken# serial 1
18229997Sken
19229997Sken
20229997Sken
21229997Sken
22229997Sken#
23229997Sken# Check to make sure that the build environment is sane.
24229997Sken#
25229997Sken
26229997Sken
27229997Sken
28229997Sken
29229997Sken
30229997Sken
31229997Sken
32229997Sken
33229997Sken
34229997Sken
35229997Sken
36229997Sken
37229997Sken
38229997Sken
39229997Sken
40229997Sken
41229997Sken
42229997Sken
43229997Sken
44229997Sken
45229997Sken
46229997Sken# serial 25 AM_PROG_LIBTOOL
47229997Sken
48229997Sken
49229997Sken# AM_ENABLE_SHARED - implement the --enable-shared flag
50229997Sken# Usage: AM_ENABLE_SHARED[(DEFAULT)]
51229997Sken#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
52229997Sken#   `yes'.
53264274Smav
54229997Sken
55229997Sken# AM_DISABLE_SHARED - set the default shared flag to --disable-shared
56229997Sken
57229997Sken
58229997Sken# AM_DISABLE_STATIC - set the default static flag to --disable-static
59229997Sken
60229997Sken
61229997Sken# AM_ENABLE_STATIC - implement the --enable-static flag
62229997Sken# Usage: AM_ENABLE_STATIC[(DEFAULT)]
63229997Sken#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
64229997Sken#   `yes'.
65229997Sken
66229997Sken
67229997Sken
68229997Sken# AM_PROG_LD - find the path to the GNU or non-GNU linker
69229997Sken
70229997Sken
71229997Sken
72275474Smav
73229997Sken# AM_PROG_NM - find the path to a BSD-compatible name lister
74229997Sken
75229997Sken
76229997Sken
77229997Sken
78229997Sken
79229997Sken
80229997Sken
81229997Sken
82229997Sken
83229997Sken
84229997Sken
85229997Sken
86229997Sken
87229997Sken
88229997Sken
89287621Smav
90229997Sken
91287621Smav
92229997Sken# Define a conditional.
93229997Sken
94229997Sken
95264886Smav
96264886Smav
97229997Sken
98267537Smav
99267537Smav
100264886Smav
101267537Smav
102267537Smav
103229997Sken
104229997Sken
105229997Sken
106229997Sken
107229997Sken
108229997Sken
109229997Sken
110229997Sken
111267519Smav
112267519Smav
113267537Smav
114267537Smav
115267519Smav
116229997Sken
117229997Sken
118229997Sken
119229997Sken
120229997Sken
121229997Sken
122229997Sken
123229997Sken
124229997Sken
125229997Sken
126229997Sken
127229997Sken
128229997Sken
129229997Sken
130229997Sken
131229997Sken
132229997Sken
133229997Sken
134229997Sken
135229997Sken
136229997Sken
137229997Sken
138229997Sken
139229997Sken
140229997Sken
141229997Sken
142229997Sken
143274154Smav
144274154Smav
145229997Sken
146229997Sken
147229997Sken
148229997Sken
149229997Sken
150229997Sken
151272911Smav
152229997Sken
153229997Sken
154229997Sken
155229997Sken
156229997Sken
157229997Sken
158229997Sken
159264274Smav
160275474Smav
161274154Smav
162229997Sken
163229997Sken
164229997Sken
165229997Sken
166229997Sken
167229997Sken
168229997Sken
169287499Smav
170229997Sken
171229997Sken
172229997Sken# Guess values for system-dependent variables and create Makefiles.
173229997Sken# Generated automatically using autoconf version 2.13 
174275474Smav# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
175229997Sken#
176229997Sken# This configure script is free software; the Free Software Foundation
177267877Smav# gives unlimited permission to copy, distribute and modify it.
178267877Smav
179229997Sken# Defaults:
180229997Skenac_help=
181229997Skenac_default_prefix=/usr/local
182229997Sken# Any additions from configure.in:
183229997Skenac_default_prefix=/usr/heimdal
184229997Skenac_help="$ac_help
185229997Sken  --with-mips-abi=abi     ABI to use for IRIX (32, n32, or 64)"
186313368Smavac_help="$ac_help
187229997Sken  --enable-shared[=PKGS]  build shared libraries [default=no]"
188229997Skenac_help="$ac_help
189229997Sken  --enable-static[=PKGS]  build static libraries [default=yes]"
190229997Skenac_help="$ac_help
191229997Sken  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
192229997Skenac_help="$ac_help
193229997Sken  --without-berkeley-db   if you don't want berkeley db"
194229997Skenac_help="$ac_help
195229997Sken  --with-krb4=dir                use krb4 in dir"
196229997Skenac_help="$ac_help
197229997Sken  --with-krb4-lib=dir            use krb4 libraries in dir"
198229997Skenac_help="$ac_help
199229997Sken  --with-krb4-include=dir        use krb4 headers in dir"
200229997Skenac_help="$ac_help
201229997Sken  --enable-kaserver	  if you want the KDC to try to emulate a kaserver"
202229997Skenac_help="$ac_help
203229997Sken  --enable-kaserver-db	  if you want support for reading kaserver databases in hprop"
204229997Skenac_help="$ac_help
205311418Smav  --disable-otp          if you don't want OTP support"
206311418Smavac_help="$ac_help
207229997Sken  --enable-osfc2          enable some OSF C2 support"
208229997Skenac_help="$ac_help
209229997Sken  --with-readline=dir                use readline in dir"
210229997Skenac_help="$ac_help
211229997Sken  --with-readline-lib=dir            use readline libraries in dir"
212286353Smavac_help="$ac_help
213229997Sken  --with-readline-include=dir        use readline headers in dir"
214229997Skenac_help="$ac_help
215264274Smav  --with-hesiod=dir                use hesiod in dir"
216229997Skenac_help="$ac_help
217229997Sken  --with-hesiod-lib=dir            use hesiod libraries in dir"
218287621Smavac_help="$ac_help
219287621Smav  --with-hesiod-include=dir        use hesiod headers in dir"
220229997Skenac_help="$ac_help
221229997Sken  --enable-bigendian	the target is big endian"
222229997Skenac_help="$ac_help
223267992Shselasky  --enable-littleendian	the target is little endian"
224229997Skenac_help="$ac_help
225229997Sken  --with-x                use the X Window System"
226229997Skenac_help="$ac_help
227229997Sken  --enable-netinfo      enable netinfo for configuration lookup"
228229997Skenac_help="$ac_help
229229997Sken  --without-ipv6	do not enable IPv6 support"
230229997Sken
231229997Sken# Initialize some variables set by options.
232229997Sken# The variables have the same names as the options, with
233229997Sken# dashes changed to underlines.
234229997Skenbuild=NONE
235275474Smavcache_file=./config.cache
236275474Smavexec_prefix=NONE
237275481Smavhost=NONE
238275481Smavno_create=
239229997Skennonopt=NONE
240229997Skenno_recursion=
241264274Smavprefix=NONE
242264274Smavprogram_prefix=NONE
243229997Skenprogram_suffix=NONE
244229997Skenprogram_transform_name=s,x,x,
245274154Smavsilent=
246274154Smavsite=
247275474Smavsrcdir=
248275474Smavtarget=NONE
249229997Skenverbose=
250229997Skenx_includes=NONE
251229997Skenx_libraries=NONE
252229997Skenbindir='${exec_prefix}/bin'
253229997Skensbindir='${exec_prefix}/sbin'
254229997Skenlibexecdir='${exec_prefix}/libexec'
255229997Skendatadir='${prefix}/share'
256229997Skensysconfdir='${prefix}/etc'
257229997Skensharedstatedir='${prefix}/com'
258229997Skenlocalstatedir='${prefix}/var'
259229997Skenlibdir='${exec_prefix}/lib'
260229997Skenincludedir='${prefix}/include'
261229997Skenoldincludedir='/usr/include'
262288348Smavinfodir='${prefix}/info'
263229997Skenmandir='${prefix}/man'
264229997Sken
265229997Sken# Initialize some other variables.
266229997Skensubdirs=
267229997SkenMFLAGS= MAKEFLAGS=
268232604StraszSHELL=${CONFIG_SHELL-/bin/sh}
269232604Strasz# Maximum number of lines to put in a shell here document.
270229997Skenac_max_here_lines=12
271229997Sken
272229997Skenac_prev=
273229997Skenfor ac_option
274229997Skendo
275229997Sken
276274154Smav  # If the previous option needs an argument, assign it.
277313368Smav  if test -n "$ac_prev"; then
278313368Smav    eval "$ac_prev=\$ac_option"
279229997Sken    ac_prev=
280229997Sken    continue
281229997Sken  fi
282230334Sken
283230334Sken  case "$ac_option" in
284230334Sken  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
285313368Smav  *) ac_optarg= ;;
286230334Sken  esac
287230334Sken
288230334Sken  # Accept the important Cygnus configure options, so we can diagnose typos.
289230334Sken
290230334Sken  case "$ac_option" in
291274154Smav
292274154Smav  -bindir | --bindir | --bindi | --bind | --bin | --bi)
293229997Sken    ac_prev=bindir ;;
294229997Sken  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
295229997Sken    bindir="$ac_optarg" ;;
296229997Sken
297229997Sken  -build | --build | --buil | --bui | --bu)
298229997Sken    ac_prev=build ;;
299229997Sken  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
300229997Sken    build="$ac_optarg" ;;
301229997Sken
302229997Sken  -cache-file | --cache-file | --cache-fil | --cache-fi \
303313368Smav  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
304264020Strasz    ac_prev=cache_file ;;
305229997Sken  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
306229997Sken  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
307229997Sken    cache_file="$ac_optarg" ;;
308229997Sken
309229997Sken  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
310229997Sken    ac_prev=datadir ;;
311229997Sken  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
312229997Sken  | --da=*)
313229997Sken    datadir="$ac_optarg" ;;
314229997Sken
315229997Sken  -disable-* | --disable-*)
316229997Sken    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
317229997Sken    # Reject names that are not valid shell variable names.
318229997Sken    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
319229997Sken      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
320229997Sken    fi
321229997Sken    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
322267537Smav    eval "enable_${ac_feature}=no" ;;
323267537Smav
324267537Smav  -enable-* | --enable-*)
325267537Smav    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
326267537Smav    # Reject names that are not valid shell variable names.
327267537Smav    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
328267537Smav      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
329229997Sken    fi
330229997Sken    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
331229997Sken    case "$ac_option" in
332229997Sken      *=*) ;;
333229997Sken      *) ac_optarg=yes ;;
334229997Sken    esac
335229997Sken    eval "enable_${ac_feature}='$ac_optarg'" ;;
336313368Smav
337229997Sken  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
338229997Sken  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
339229997Sken  | --exec | --exe | --ex)
340229997Sken    ac_prev=exec_prefix ;;
341229997Sken  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
342267877Smav  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
343229997Sken  | --exec=* | --exe=* | --ex=*)
344264274Smav    exec_prefix="$ac_optarg" ;;
345264274Smav
346264274Smav  -gas | --gas | --ga | --g)
347264274Smav    # Obsolete; use --with-gas.
348267537Smav    with_gas=yes ;;
349264274Smav
350229997Sken  -help | --help | --hel | --he)
351229997Sken    # Omit some internal or obsolete options to make the list less imposing.
352287868Smav    # This message is too long to be a string in the A/UX 3.1 sh.
353287868Smav    cat << EOF
354287868SmavUsage: configure [options] [host]
355287868SmavOptions: [defaults in brackets after descriptions]
356287868SmavConfiguration:
357287868Smav  --cache-file=FILE       cache test results in FILE
358287868Smav  --help                  print this message
359287868Smav  --no-create             do not create output files
360287868Smav  --quiet, --silent       do not print \`checking...' messages
361287868Smav  --version               print the version of autoconf that created configure
362287868SmavDirectory and file names:
363287868Smav  --prefix=PREFIX         install architecture-independent files in PREFIX
364287868Smav                          [$ac_default_prefix]
365287868Smav  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
366287868Smav                          [same as prefix]
367287868Smav  --bindir=DIR            user executables in DIR [EPREFIX/bin]
368287868Smav  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
369287868Smav  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
370287868Smav  --datadir=DIR           read-only architecture-independent data in DIR
371287868Smav                          [PREFIX/share]
372287868Smav  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
373287868Smav  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
374287868Smav                          [PREFIX/com]
375287868Smav  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
376287868Smav  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
377287868Smav  --includedir=DIR        C header files in DIR [PREFIX/include]
378287868Smav  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
379287868Smav  --infodir=DIR           info documentation in DIR [PREFIX/info]
380287868Smav  --mandir=DIR            man documentation in DIR [PREFIX/man]
381287868Smav  --srcdir=DIR            find the sources in DIR [configure dir or ..]
382287868Smav  --program-prefix=PREFIX prepend PREFIX to installed program names
383287868Smav  --program-suffix=SUFFIX append SUFFIX to installed program names
384287868Smav  --program-transform-name=PROGRAM
385287868Smav                          run sed PROGRAM on installed program names
386287868SmavEOF
387287868Smav    cat << EOF
388287868SmavHost type:
389287868Smav  --build=BUILD           configure for building on BUILD [BUILD=HOST]
390287868Smav  --host=HOST             configure for HOST [guessed]
391287868Smav  --target=TARGET         configure for TARGET [TARGET=HOST]
392287868SmavFeatures and packages:
393287868Smav  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
394229997Sken  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
395229997Sken  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
396229997Sken  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
397229997Sken  --x-includes=DIR        X include files are in DIR
398229997Sken  --x-libraries=DIR       X library files are in DIR
399267537SmavEOF
400229997Sken    if test -n "$ac_help"; then
401229997Sken      echo "--enable and --with options recognized:$ac_help"
402267537Smav    fi
403229997Sken    exit 0 ;;
404267519Smav
405229997Sken  -host | --host | --hos | --ho)
406229997Sken    ac_prev=host ;;
407229997Sken  -host=* | --host=* | --hos=* | --ho=*)
408229997Sken    host="$ac_optarg" ;;
409229997Sken
410288215Smav  -includedir | --includedir | --includedi | --included | --include \
411229997Sken  | --includ | --inclu | --incl | --inc)
412229997Sken    ac_prev=includedir ;;
413288215Smav  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
414229997Sken  | --includ=* | --inclu=* | --incl=* | --inc=*)
415267537Smav    includedir="$ac_optarg" ;;
416229997Sken
417229997Sken  -infodir | --infodir | --infodi | --infod | --info | --inf)
418229997Sken    ac_prev=infodir ;;
419229997Sken  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
420229997Sken    infodir="$ac_optarg" ;;
421275058Smav
422275058Smav  -libdir | --libdir | --libdi | --libd)
423313364Smav    ac_prev=libdir ;;
424313364Smav  -libdir=* | --libdir=* | --libdi=* | --libd=*)
425313364Smav    libdir="$ac_optarg" ;;
426313364Smav
427313364Smav  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
428313364Smav  | --libexe | --libex | --libe)
429313364Smav    ac_prev=libexecdir ;;
430313364Smav  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
431313364Smav  | --libexe=* | --libex=* | --libe=*)
432313364Smav    libexecdir="$ac_optarg" ;;
433275058Smav
434267537Smav  -localstatedir | --localstatedir | --localstatedi | --localstated \
435267537Smav  | --localstate | --localstat | --localsta | --localst \
436267537Smav  | --locals | --local | --loca | --loc | --lo)
437267537Smav    ac_prev=localstatedir ;;
438267537Smav  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
439267537Smav  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
440287868Smav  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
441267537Smav    localstatedir="$ac_optarg" ;;
442229997Sken
443229997Sken  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
444229997Sken    ac_prev=mandir ;;
445229997Sken  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
446229997Sken    mandir="$ac_optarg" ;;
447229997Sken
448229997Sken  -nfp | --nfp | --nf)
449229997Sken    # Obsolete; use --without-fp.
450229997Sken    with_fp=no ;;
451229997Sken
452229997Sken  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
453229997Sken  | --no-cr | --no-c)
454229997Sken    no_create=yes ;;
455229997Sken
456229997Sken  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
457229997Sken  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
458229997Sken    no_recursion=yes ;;
459229997Sken
460229997Sken  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
461229997Sken  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
462267877Smav  | --oldin | --oldi | --old | --ol | --o)
463229997Sken    ac_prev=oldincludedir ;;
464267877Smav  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
465229997Sken  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
466229997Sken  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
467229997Sken    oldincludedir="$ac_optarg" ;;
468229997Sken
469229997Sken  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
470229997Sken    ac_prev=prefix ;;
471229997Sken  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
472229997Sken    prefix="$ac_optarg" ;;
473229997Sken
474229997Sken  -program-prefix | --program-prefix | --program-prefi | --program-pref \
475229997Sken  | --program-pre | --program-pr | --program-p)
476261538Smav    ac_prev=program_prefix ;;
477229997Sken  -program-prefix=* | --program-prefix=* | --program-prefi=* \
478229997Sken  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
479229997Sken    program_prefix="$ac_optarg" ;;
480229997Sken
481229997Sken  -program-suffix | --program-suffix | --program-suffi | --program-suff \
482229997Sken  | --program-suf | --program-su | --program-s)
483229997Sken    ac_prev=program_suffix ;;
484261538Smav  -program-suffix=* | --program-suffix=* | --program-suffi=* \
485267877Smav  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
486311418Smav    program_suffix="$ac_optarg" ;;
487311418Smav
488311418Smav  -program-transform-name | --program-transform-name \
489311418Smav  | --program-transform-nam | --program-transform-na \
490311418Smav  | --program-transform-n | --program-transform- \
491311418Smav  | --program-transform | --program-transfor \
492229997Sken  | --program-transfo | --program-transf \
493229997Sken  | --program-trans | --program-tran \
494229997Sken  | --progr-tra | --program-tr | --program-t)
495229997Sken    ac_prev=program_transform_name ;;
496229997Sken  -program-transform-name=* | --program-transform-name=* \
497229997Sken  | --program-transform-nam=* | --program-transform-na=* \
498229997Sken  | --program-transform-n=* | --program-transform-=* \
499229997Sken  | --program-transform=* | --program-transfor=* \
500229997Sken  | --program-transfo=* | --program-transf=* \
501229997Sken  | --program-trans=* | --program-tran=* \
502229997Sken  | --progr-tra=* | --program-tr=* | --program-t=*)
503229997Sken    program_transform_name="$ac_optarg" ;;
504229997Sken
505229997Sken  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
506229997Sken  | -silent | --silent | --silen | --sile | --sil)
507267877Smav    silent=yes ;;
508229997Sken
509229997Sken  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
510229997Sken    ac_prev=sbindir ;;
511229997Sken  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
512229997Sken  | --sbi=* | --sb=*)
513229997Sken    sbindir="$ac_optarg" ;;
514229997Sken
515267877Smav  -sharedstatedir | --sharedstatedir | --sharedstatedi \
516267877Smav  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
517267877Smav  | --sharedst | --shareds | --shared | --share | --shar \
518267877Smav  | --sha | --sh)
519229997Sken    ac_prev=sharedstatedir ;;
520229997Sken  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
521229997Sken  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
522229997Sken  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
523229997Sken  | --sha=* | --sh=*)
524311418Smav    sharedstatedir="$ac_optarg" ;;
525311418Smav
526261538Smav  -site | --site | --sit)
527261538Smav    ac_prev=site ;;
528282565Smav  -site=* | --site=* | --sit=*)
529273809Smav    site="$ac_optarg" ;;
530287760Smav
531287760Smav  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
532261538Smav    ac_prev=srcdir ;;
533229997Sken  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
534229997Sken    srcdir="$ac_optarg" ;;
535229997Sken
536229997Sken  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
537287912Smav  | --syscon | --sysco | --sysc | --sys | --sy)
538287912Smav    ac_prev=sysconfdir ;;
539287912Smav  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
540287912Smav  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
541229997Sken    sysconfdir="$ac_optarg" ;;
542229997Sken
543229997Sken  -target | --target | --targe | --targ | --tar | --ta | --t)
544229997Sken    ac_prev=target ;;
545229997Sken  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
546267537Smav    target="$ac_optarg" ;;
547229997Sken
548229997Sken  -v | -verbose | --verbose | --verbos | --verbo | --verb)
549229997Sken    verbose=yes ;;
550264274Smav
551267537Smav  -version | --version | --versio | --versi | --vers)
552267537Smav    echo "configure generated by autoconf version 2.13"
553229997Sken    exit 0 ;;
554229997Sken
555229997Sken  -with-* | --with-*)
556275058Smav    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
557287967Smav    # Reject names that are not valid shell variable names.
558275058Smav    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
559287967Smav      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
560287967Smav    fi
561229997Sken    ac_package=`echo $ac_package| sed 's/-/_/g'`
562288215Smav    case "$ac_option" in
563288215Smav      *=*) ;;
564229997Sken      *) ac_optarg=yes ;;
565229997Sken    esac
566229997Sken    eval "with_${ac_package}='$ac_optarg'" ;;
567229997Sken
568229997Sken  -without-* | --without-*)
569229997Sken    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
570229997Sken    # Reject names that are not valid shell variable names.
571229997Sken    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
572267877Smav      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
573229997Sken    fi
574241896Skib    ac_package=`echo $ac_package| sed 's/-/_/g'`
575229997Sken    eval "with_${ac_package}=no" ;;
576229997Sken
577229997Sken  --x)
578267877Smav    # Obsolete; use --with-x.
579267877Smav    with_x=yes ;;
580267877Smav
581267877Smav  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
582229997Sken  | --x-incl | --x-inc | --x-in | --x-i)
583267877Smav    ac_prev=x_includes ;;
584229997Sken  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
585288220Smav  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
586288220Smav    x_includes="$ac_optarg" ;;
587229997Sken
588229997Sken  -x-libraries | --x-libraries | --x-librarie | --x-librari \
589229997Sken  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
590229997Sken    ac_prev=x_libraries ;;
591286353Smav  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
592286353Smav  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
593229997Sken    x_libraries="$ac_optarg" ;;
594229997Sken
595229997Sken  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
596229997Sken    ;;
597267877Smav
598267877Smav  *)
599267877Smav    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
600267877Smav      echo "configure: warning: $ac_option: invalid host type" 1>&2
601267877Smav    fi
602267877Smav    if test "x$nonopt" != xNONE; then
603229997Sken      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
604229997Sken    fi
605229997Sken    nonopt="$ac_option"
606229997Sken    ;;
607229997Sken
608229997Sken  esac
609229997Skendone
610229997Sken
611229997Skenif test -n "$ac_prev"; then
612229997Sken  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
613229997Skenfi
614229997Sken
615292384Smarkjtrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
616292384Smarkj
617292384Smarkj# File descriptor usage:
618292384Smarkj# 0 standard input
619229997Sken# 1 file creation
620229997Sken# 2 errors and warnings
621229997Sken# 3 some systems may open it to /dev/tty
622229997Sken# 4 used on the Kubota Titan
623229997Sken# 6 checking for... messages and results
624229997Sken# 5 compiler messages saved in config.log
625229997Skenif test "$silent" = yes; then
626229997Sken  exec 6>/dev/null
627229997Skenelse
628287875Smav  exec 6>&1
629287875Smavfi
630229997Skenexec 5>./config.log
631229997Sken
632229997Skenecho "\
633229997SkenThis file contains any messages produced by compilers while
634229997Skenrunning configure, to aid debugging if configure makes a mistake.
635271309Smav" 1>&5
636271309Smav
637271309Smav# Strip out --no-create and --no-recursion so they do not pile up.
638271309Smav# Also quote any args containing shell metacharacters.
639271309Smavac_configure_args=
640229997Skenfor ac_arg
641267537Smavdo
642229997Sken  case "$ac_arg" in
643292384Smarkj  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
644267537Smav  | --no-cr | --no-c) ;;
645229997Sken  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646292384Smarkj  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
647267537Smav  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
648229997Sken  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
649229997Sken  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
650229997Sken  esac
651229997Skendone
652229997Sken
653229997Sken# NLS nuisances.
654229997Sken# Only set these to C if already set.  These must not be set unconditionally
655229997Sken# because not all systems understand e.g. LANG=C (notably SCO).
656229997Sken# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
657229997Sken# Non-C LC_CTYPE values break the ctype check.
658229997Skenif test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
659229997Skenif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
660229997Skenif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
661267877Smavif test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
662267877Smav
663267877Smav# confdefs.h avoids OS command line length limits that DEFS can exceed.
664267877Smavrm -rf conftest* confdefs.h
665267877Smav# AIX cpp loses on an empty file, so make sure it contains at least a newline.
666229997Skenecho > confdefs.h
667229997Sken
668229997Sken# A filename unique to this package, relative to the directory that
669229997Sken# configure is in, which we can look for to find out if srcdir is correct.
670229997Skenac_unique_file=lib/krb5/send_to_kdc.c
671229997Sken
672229997Sken# Find the source files, if location was not specified.
673229997Skenif test -z "$srcdir"; then
674229997Sken  ac_srcdir_defaulted=yes
675229997Sken  # Try the directory containing this script, then its parent.
676229997Sken  ac_prog=$0
677229997Sken  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
678229997Sken  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
679229997Sken  srcdir=$ac_confdir
680229997Sken  if test ! -r $srcdir/$ac_unique_file; then
681229997Sken    srcdir=..
682229997Sken  fi
683229997Skenelse
684229997Sken  ac_srcdir_defaulted=no
685229997Skenfi
686271309Smavif test ! -r $srcdir/$ac_unique_file; then
687229997Sken  if test "$ac_srcdir_defaulted" = yes; then
688229997Sken    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
689292384Smarkj  else
690287875Smav    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
691287875Smav  fi
692287875Smavfi
693287875Smavsrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
694287875Smav
695287875Smav# Prefer explicitly selected file to automatically selected ones.
696287875Smavif test -z "$CONFIG_SITE"; then
697287875Smav  if test "x$prefix" != xNONE; then
698287875Smav    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
699287875Smav  else
700287875Smav    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
701287875Smav  fi
702287875Smavfi
703287875Smavfor ac_site_file in $CONFIG_SITE; do
704287875Smav  if test -r "$ac_site_file"; then
705287875Smav    echo "loading site script $ac_site_file"
706229997Sken    . "$ac_site_file"
707229997Sken  fi
708229997Skendone
709229997Sken
710229997Skenif test -r "$cache_file"; then
711229997Sken  echo "loading cache $cache_file"
712288220Smav  . $cache_file
713229997Skenelse
714229997Sken  echo "creating cache $cache_file"
715229997Sken  > $cache_file
716229997Skenfi
717229997Sken
718229997Skenac_ext=c
719229997Sken# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
720229997Skenac_cpp='$CPP $CPPFLAGS'
721229997Skenac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
722229997Skenac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
723229997Skencross_compiling=$ac_cv_prog_cc_cross
724229997Sken
725229997Skenac_exeext=
726229997Skenac_objext=o
727229997Skenif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
728229997Sken  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
729229997Sken  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
730229997Sken    ac_n= ac_c='
731229997Sken' ac_t='	'
732229997Sken  else
733229997Sken    ac_n=-n ac_c= ac_t=
734271309Smav  fi
735229997Skenelse
736229997Sken  ac_n= ac_c='\c' ac_t=
737229997Skenfi
738292384Smarkj
739229997Sken
740229997Sken
741267877Smav
742267877Smav
743267877Smav
744267877Smavac_aux_dir=
745267877Smavfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
746267877Smav  if test -f $ac_dir/install-sh; then
747229997Sken    ac_aux_dir=$ac_dir
748229997Sken    ac_install_sh="$ac_aux_dir/install-sh -c"
749229997Sken    break
750229997Sken  elif test -f $ac_dir/install.sh; then
751229997Sken    ac_aux_dir=$ac_dir
752282565Smav    ac_install_sh="$ac_aux_dir/install.sh -c"
753273809Smav    break
754287760Smav  fi
755287760Smavdone
756287912Smavif test -z "$ac_aux_dir"; then
757287912Smav  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
758287912Smavfi
759287912Smavac_config_guess=$ac_aux_dir/config.guess
760229997Skenac_config_sub=$ac_aux_dir/config.sub
761229997Skenac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
762229997Sken
763229997Sken# Find a good install program.  We prefer a C program (faster),
764229997Sken# so one script is as good as another.  But avoid the broken or
765269122Smav# incompatible versions:
766229997Sken# SysV /etc/install, /usr/sbin/install
767229997Sken# SunOS /usr/etc/install
768269122Smav# IRIX /sbin/install
769269122Smav# AIX /bin/install
770229997Sken# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
771229997Sken# AFS /usr/afsws/bin/install, which mishandles nonexistent args
772229997Sken# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
773275058Smav# ./install, which can be erroneously created by make from ./install.sh.
774287967Smavecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
775275058Smavecho "configure:776: checking for a BSD compatible install" >&5
776287967Smavif test -z "$INSTALL"; then
777287967Smavif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
778229997Sken  echo $ac_n "(cached) $ac_c" 1>&6
779288215Smavelse
780288215Smav    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
781229997Sken  for ac_dir in $PATH; do
782229997Sken    # Account for people who put trailing slashes in PATH elements.
783229997Sken    case "$ac_dir/" in
784229997Sken    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
785229997Sken    *)
786275474Smav      # OSF1 and SCO ODT 3.0 have their own names for install.
787275474Smav      # Don't use installbsd from OSF since it installs stuff as root
788275474Smav      # by default.
789275474Smav      for ac_prog in ginstall scoinst install; do
790275474Smav        if test -f $ac_dir/$ac_prog; then
791275474Smav	  if test $ac_prog = install &&
792275474Smav            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
793275474Smav	    # AIX install.  It has an incompatible calling convention.
794275474Smav	    :
795275474Smav	  else
796275474Smav	    ac_cv_path_install="$ac_dir/$ac_prog -c"
797287499Smav	    break 2
798275474Smav	  fi
799275474Smav	fi
800275474Smav      done
801275474Smav      ;;
802275474Smav    esac
803275474Smav  done
804275474Smav  IFS="$ac_save_IFS"
805275474Smav
806275474Smavfi
807275474Smav  if test "${ac_cv_path_install+set}" = set; then
808275474Smav    INSTALL="$ac_cv_path_install"
809275474Smav  else
810275474Smav    # As a last resort, use the slow shell script.  We don't cache a
811275474Smav    # path for INSTALL within a source directory, because that will
812275474Smav    # break other packages using the cache if that directory is
813275474Smav    # removed, or if the path is relative.
814275474Smav    INSTALL="$ac_install_sh"
815275474Smav  fi
816275474Smavfi
817287499Smavecho "$ac_t""$INSTALL" 1>&6
818287499Smav
819275474Smav# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
820275474Smav# It thinks the first close brace ends the variable substitution.
821275474Smavtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
822275474Smav
823275474Smavtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
824275481Smav
825275481Smavtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
826275481Smav
827275481Smavecho $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
828275481Smavecho "configure:829: checking whether build environment is sane" >&5
829285030Smav# Just in case
830275481Smavsleep 1
831275481Smavecho timestamp > conftestfile
832285030Smav# Do `set' in a subshell so we don't clobber the current shell's
833275481Smav# arguments.  Must try -L first in case configure is actually a
834285030Smav# symlink; some systems play weird games with the mod time of symlinks
835285030Smav# (eg FreeBSD returns the mod time of the symlink's containing
836275481Smav# directory).
837275481Smavif (
838285030Smav   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
839287499Smav   if test "$*" = "X"; then
840275481Smav      # -L didn't work.
841285030Smav      set X `ls -t $srcdir/configure conftestfile`
842285030Smav   fi
843275481Smav   if test "$*" != "X $srcdir/configure conftestfile" \
844285030Smav      && test "$*" != "X conftestfile $srcdir/configure"; then
845286811Smav
846287499Smav      # If neither matched, then we have a broken ls.  This can happen
847275481Smav      # if, for instance, CONFIG_SHELL is bash and it inherits a
848285030Smav      # broken ls alias from the environment.  This has actually
849285030Smav      # happened.  Such a system could not be considered "sane".
850275481Smav      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
851275481Smavalias in your environment" 1>&2; exit 1; }
852275474Smav   fi
853269123Smav
854269123Smav   test "$2" = conftestfile
855269123Smav   )
856269123Smavthen
857287664Smav   # Ok.
858287664Smav   :
859269123Smavelse
860269123Smav   { echo "configure: error: newly created file is older than distributed files!
861287664SmavCheck your system clock" 1>&2; exit 1; }
862269123Smavfi
863269123Smavrm -f conftest*
864269123Smavecho "$ac_t""yes" 1>&6
865269123Smavif test "$program_transform_name" = s,x,x,; then
866271309Smav  program_transform_name=
867271309Smavelse
868271309Smav  # Double any \ or $.  echo might interpret backslashes.
869271309Smav  cat <<\EOF_SED > conftestsed
870271309Smavs,\\,\\\\,g; s,\$,$$,g
871269123SmavEOF_SED
872269123Smav  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
873269123Smav  rm -f conftestsed
874292384Smarkjfi
875269123Smavtest "$program_prefix" != NONE &&
876269123Smav  program_transform_name="s,^,${program_prefix},; $program_transform_name"
877292384Smarkj# Use a double $ so make ignores it.
878269123Smavtest "$program_suffix" != NONE &&
879269123Smav  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
880269123Smav
881269123Smav# sed with no file args requires a program.
882269123Smavtest "$program_transform_name" = "" && program_transform_name="s,x,x,"
883269123Smav
884269123Smavecho $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
885269123Smavecho "configure:886: checking whether ${MAKE-make} sets \${MAKE}" >&5
886269123Smavset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
887269123Smavif eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
888269123Smav  echo $ac_n "(cached) $ac_c" 1>&6
889269123Smavelse
890269123Smav  cat > conftestmake <<\EOF
891269123Smavall:
892269123Smav	@echo 'ac_maketemp="${MAKE}"'
893269123SmavEOF
894269123Smav# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
895269123Smaveval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
896269123Smavif test -n "$ac_maketemp"; then
897287664Smav  eval ac_cv_prog_make_${ac_make}_set=yes
898287664Smavelse
899287664Smav  eval ac_cv_prog_make_${ac_make}_set=no
900287664Smavfi
901287664Smavrm -f conftestmake
902287664Smavfi
903287664Smavif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
904287664Smav  echo "$ac_t""yes" 1>&6
905287664Smav  SET_MAKE=
906287664Smavelse
907287664Smav  echo "$ac_t""no" 1>&6
908292384Smarkj  SET_MAKE="MAKE=${MAKE-make}"
909287664Smavfi
910292384Smarkj
911269123Smav
912269123SmavPACKAGE=heimdal
913269123Smav
914269123SmavVERSION=0.2n
915269123Smav
916269123Smavif test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
917269123Smav  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
918269123Smavfi
919269123Smavcat >> confdefs.h <<EOF
920269123Smav#define PACKAGE "$PACKAGE"
921269123SmavEOF
922269123Smav
923282565Smavcat >> confdefs.h <<EOF
924273809Smav#define VERSION "$VERSION"
925287760SmavEOF
926287760Smav
927287912Smav
928287912Smav
929287912Smavmissing_dir=`cd $ac_aux_dir && pwd`
930287912Smavecho $ac_n "checking for working aclocal""... $ac_c" 1>&6
931269123Smavecho "configure:932: checking for working aclocal" >&5
932269123Smav# Run test in a subshell; some versions of sh will print an error if
933269123Smav# an executable is not found, even if stderr is redirected.
934269123Smav# Redirect stdin to placate older versions of autoconf.  Sigh.
935269123Smavif (aclocal --version) < /dev/null > /dev/null 2>&1; then
936269123Smav   ACLOCAL=aclocal
937269123Smav   echo "$ac_t""found" 1>&6
938269123Smavelse
939269123Smav   ACLOCAL="$missing_dir/missing aclocal"
940269123Smav   echo "$ac_t""missing" 1>&6
941269123Smavfi
942269123Smav
943269123Smavecho $ac_n "checking for working autoconf""... $ac_c" 1>&6
944275058Smavecho "configure:945: checking for working autoconf" >&5
945287967Smav# Run test in a subshell; some versions of sh will print an error if
946275058Smav# an executable is not found, even if stderr is redirected.
947287967Smav# Redirect stdin to placate older versions of autoconf.  Sigh.
948287967Smavif (autoconf --version) < /dev/null > /dev/null 2>&1; then
949269123Smav   AUTOCONF=autoconf
950288215Smav   echo "$ac_t""found" 1>&6
951288215Smavelse
952269123Smav   AUTOCONF="$missing_dir/missing autoconf"
953269123Smav   echo "$ac_t""missing" 1>&6
954269123Smavfi
955269123Smav
956269123Smavecho $ac_n "checking for working automake""... $ac_c" 1>&6
957275474Smavecho "configure:958: checking for working automake" >&5
958275474Smav# Run test in a subshell; some versions of sh will print an error if
959275474Smav# an executable is not found, even if stderr is redirected.
960275474Smav# Redirect stdin to placate older versions of autoconf.  Sigh.
961287664Smavif (automake --version) < /dev/null > /dev/null 2>&1; then
962287664Smav   AUTOMAKE=automake
963275474Smav   echo "$ac_t""found" 1>&6
964275474Smavelse
965275474Smav   AUTOMAKE="$missing_dir/missing automake"
966287664Smav   echo "$ac_t""missing" 1>&6
967275474Smavfi
968275474Smav
969275474Smavecho $ac_n "checking for working autoheader""... $ac_c" 1>&6
970287664Smavecho "configure:971: checking for working autoheader" >&5
971287664Smav# Run test in a subshell; some versions of sh will print an error if
972287664Smav# an executable is not found, even if stderr is redirected.
973287664Smav# Redirect stdin to placate older versions of autoconf.  Sigh.
974287664Smavif (autoheader --version) < /dev/null > /dev/null 2>&1; then
975287664Smav   AUTOHEADER=autoheader
976287499Smav   echo "$ac_t""found" 1>&6
977287664Smavelse
978287664Smav   AUTOHEADER="$missing_dir/missing autoheader"
979275474Smav   echo "$ac_t""missing" 1>&6
980275474Smavfi
981275474Smav
982287664Smavecho $ac_n "checking for working makeinfo""... $ac_c" 1>&6
983287664Smavecho "configure:984: checking for working makeinfo" >&5
984275474Smav# Run test in a subshell; some versions of sh will print an error if
985275474Smav# an executable is not found, even if stderr is redirected.
986275474Smav# Redirect stdin to placate older versions of autoconf.  Sigh.
987275474Smavif (makeinfo --version) < /dev/null > /dev/null 2>&1; then
988275474Smav   MAKEINFO=makeinfo
989275474Smav   echo "$ac_t""found" 1>&6
990275474Smavelse
991287664Smav   MAKEINFO="$missing_dir/missing makeinfo"
992275474Smav   echo "$ac_t""missing" 1>&6
993287664Smavfi
994275474Smav
995275474Smav
996287499Smav
997287499Smav
998275474Smav
999275474Smav
1000275474Smav# Make sure we can run config.sub.
1001275474Smavif ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1002275474Smavelse { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1003275474Smavfi
1004229997Sken
1005229997Skenecho $ac_n "checking host system type""... $ac_c" 1>&6
1006229997Skenecho "configure:1007: checking host system type" >&5
1007229997Sken
1008287664Smavhost_alias=$host
1009287664Smavcase "$host_alias" in
1010287664SmavNONE)
1011229997Sken  case $nonopt in
1012229997Sken  NONE)
1013229997Sken    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1014229997Sken    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1015229997Sken    fi ;;
1016229997Sken  *) host_alias=$nonopt ;;
1017229997Sken  esac ;;
1018229997Skenesac
1019229997Sken
1020229997Skenhost=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1021229997Skenhost_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1022229997Skenhost_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1023229997Skenhost_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1024229997Skenecho "$ac_t""$host" 1>&6
1025229997Sken
1026229997SkenCANONICAL_HOST=$host
1027229997Sken
1028229997Sken
1029229997Skensunos=no
1030229997Skencase "$host" in 
1031229997Sken*-*-sunos4*)
1032229997Sken	sunos=40
1033267877Smav	;;
1034229997Sken*-*-solaris2.7)
1035267877Smav	sunos=57
1036229997Sken	;;
1037287664Smav*-*-solaris2*)
1038287664Smav	sunos=50
1039287664Smav	;;
1040287664Smavesac
1041287664Smavif test "$sunos" != no; then
1042287664Smav	cat >> confdefs.h <<EOF
1043287664Smav#define SunOS $sunos
1044287664SmavEOF
1045287664Smav
1046229997Skenfi
1047229997Sken
1048229997Skenaix=no
1049264274Smavcase "$host" in 
1050264274Smav*-*-aix3*)
1051264274Smav	aix=3
1052264274Smav	;;
1053264274Smav*-*-aix4*)
1054264296Smav	aix=4
1055287664Smav	;;
1056287664Smavesac
1057287664Smav
1058264274Smav#test -z "$CFLAGS" && CFLAGS="-g"
1059287664Smav
1060287499Smav# Extract the first word of "gcc", so it can be a program name with args.
1061264274Smavset dummy gcc; ac_word=$2
1062264274Smavecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
1063264274Smavecho "configure:1064: checking for $ac_word" >&5
1064287664Smavif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1065264274Smav  echo $ac_n "(cached) $ac_c" 1>&6
1066264296Smavelse
1067264274Smav  if test -n "$CC"; then
1068264274Smav  ac_cv_prog_CC="$CC" # Let the user override the test.
1069264274Smavelse
1070287499Smav  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1071264274Smav  ac_dummy="$PATH"
1072264274Smav  for ac_dir in $ac_dummy; do
1073264274Smav    test -z "$ac_dir" && ac_dir=.
1074264274Smav    if test -f $ac_dir/$ac_word; then
1075267877Smav      ac_cv_prog_CC="gcc"
1076264274Smav      break
1077264274Smav    fi
1078264274Smav  done
1079267877Smav  IFS="$ac_save_ifs"
1080264274Smavfi
1081287664Smavfi
1082287664SmavCC="$ac_cv_prog_CC"
1083287664Smavif test -n "$CC"; then
1084287664Smav  echo "$ac_t""$CC" 1>&6
1085287664Smavelse
1086287664Smav  echo "$ac_t""no" 1>&6
1087264274Smavfi
1088287664Smav
1089287664Smavif test -z "$CC"; then
1090264274Smav  # Extract the first word of "cc", so it can be a program name with args.
1091264274Smavset dummy cc; ac_word=$2
1092264274Smavecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
1093264274Smavecho "configure:1094: checking for $ac_word" >&5
1094264274Smavif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1095264274Smav  echo $ac_n "(cached) $ac_c" 1>&6
1096264274Smavelse
1097267515Smav  if test -n "$CC"; then
1098264274Smav  ac_cv_prog_CC="$CC" # Let the user override the test.
1099264274Smavelse
1100264274Smav  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1101264274Smav  ac_prog_rejected=no
1102264274Smav  ac_dummy="$PATH"
1103264274Smav  for ac_dir in $ac_dummy; do
1104264274Smav    test -z "$ac_dir" && ac_dir=.
1105264274Smav    if test -f $ac_dir/$ac_word; then
1106267877Smav      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1107264274Smav        ac_prog_rejected=yes
1108267877Smav	continue
1109264274Smav      fi
1110264274Smav      ac_cv_prog_CC="cc"
1111264274Smav      break
1112267515Smav    fi
1113267515Smav  done
1114267515Smav  IFS="$ac_save_ifs"
1115264274Smavif test $ac_prog_rejected = yes; then
1116264274Smav  # We found a bogon in the path, so make sure we never use it.
1117287499Smav  set dummy $ac_cv_prog_CC
1118264274Smav  shift
1119264274Smav  if test $# -gt 0; then
1120287499Smav    # We chose a different compiler from the bogus one.
1121287499Smav    # However, it has the same basename, so the bogon will be chosen
1122264274Smav    # first if we set CC to just the basename; use the full file name.
1123264274Smav    shift
1124264274Smav    set dummy "$ac_dir/$ac_word" "$@"
1125264274Smav    shift
1126264274Smav    ac_cv_prog_CC="$@"
1127264274Smav  fi
1128264274Smavfi
1129229997Skenfi
1130229997Skenfi
1131229997SkenCC="$ac_cv_prog_CC"
1132267877Smavif test -n "$CC"; then
1133229997Sken  echo "$ac_t""$CC" 1>&6
1134287664Smavelse
1135287664Smav  echo "$ac_t""no" 1>&6
1136229997Skenfi
1137287664Smav
1138229997Sken  if test -z "$CC"; then
1139229997Sken    case "`uname -s`" in
1140287664Smav    *win32* | *WIN32*)
1141229997Sken      # Extract the first word of "cl", so it can be a program name with args.
1142229997Skenset dummy cl; ac_word=$2
1143229997Skenecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
1144229997Skenecho "configure:1145: checking for $ac_word" >&5
1145229997Skenif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1146229997Sken  echo $ac_n "(cached) $ac_c" 1>&6
1147287664Smavelse
1148287664Smav  if test -n "$CC"; then
1149287664Smav  ac_cv_prog_CC="$CC" # Let the user override the test.
1150287664Smavelse
1151287664Smav  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1152229997Sken  ac_dummy="$PATH"
1153229997Sken  for ac_dir in $ac_dummy; do
1154229997Sken    test -z "$ac_dir" && ac_dir=.
1155229997Sken    if test -f $ac_dir/$ac_word; then
1156229997Sken      ac_cv_prog_CC="cl"
1157229997Sken      break
1158229997Sken    fi
1159229997Sken  done
1160229997Sken  IFS="$ac_save_ifs"
1161229997Skenfi
1162229997Skenfi
1163229997SkenCC="$ac_cv_prog_CC"
1164229997Skenif test -n "$CC"; then
1165229997Sken  echo "$ac_t""$CC" 1>&6
1166229997Skenelse
1167229997Sken  echo "$ac_t""no" 1>&6
1168229997Skenfi
1169287664Smav ;;
1170229997Sken    esac
1171229997Sken  fi
1172229997Sken  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1173229997Skenfi
1174229997Sken
1175287499Smavecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1176229997Skenecho "configure:1177: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1177229997Sken
1178229997Skenac_ext=c
1179229997Sken# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1180229997Skenac_cpp='$CPP $CPPFLAGS'
1181267877Smavac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1182229997Skenac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1183229997Skencross_compiling=$ac_cv_prog_cc_cross
1184229997Sken
1185267877Smavcat > conftest.$ac_ext << EOF
1186267877Smav
1187267877Smav#line 1188 "configure"
1188267877Smav#include "confdefs.h"
1189267877Smav
1190267877Smavmain(){return(0);}
1191267877SmavEOF
1192267877Smavif { (eval echo configure:1193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1193267877Smav  ac_cv_prog_cc_works=yes
1194267877Smav  # If we can't run a trivial program, we are probably using a cross compiler.
1195267877Smav  if (./conftest; exit) 2>/dev/null; then
1196287664Smav    ac_cv_prog_cc_cross=no
1197287664Smav  else
1198287664Smav    ac_cv_prog_cc_cross=yes
1199287664Smav  fi
1200287664Smavelse
1201287664Smav  echo "configure: failed program was:" >&5
1202267877Smav  cat conftest.$ac_ext >&5
1203287664Smav  ac_cv_prog_cc_works=no
1204287664Smavfi
1205229997Skenrm -fr conftest*
1206229997Skenac_ext=c
1207274154Smav# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1208274154Smavac_cpp='$CPP $CPPFLAGS'
1209274154Smavac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1210274154Smavac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1211287664Smavcross_compiling=$ac_cv_prog_cc_cross
1212287664Smav
1213287664Smavecho "$ac_t""$ac_cv_prog_cc_works" 1>&6
1214274154Smavif test $ac_cv_prog_cc_works = no; then
1215287664Smav  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1216287664Smavfi
1217274154Smavecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1218274154Smavecho "configure:1219: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1219274154Smavecho "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1220287664Smavcross_compiling=$ac_cv_prog_cc_cross
1221287664Smav
1222287664Smavecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1223287664Smavecho "configure:1224: checking whether we are using GNU C" >&5
1224287664Smavif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1225287664Smav  echo $ac_n "(cached) $ac_c" 1>&6
1226274154Smavelse
1227274154Smav  cat > conftest.c <<EOF
1228274154Smav#ifdef __GNUC__
1229274154Smav  yes;
1230274154Smav#endif
1231229997SkenEOF
1232286353Smavif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1233286353Smav  ac_cv_prog_gcc=yes
1234286353Smavelse
1235287499Smav  ac_cv_prog_gcc=no
1236286353Smavfi
1237286353Smavfi
1238286353Smav
1239286353Smavecho "$ac_t""$ac_cv_prog_gcc" 1>&6
1240286353Smav
1241286353Smavif test $ac_cv_prog_gcc = yes; then
1242286353Smav  GCC=yes
1243287499Smavelse
1244287499Smav  GCC=
1245286353Smavfi
1246286353Smav
1247286353Smavac_test_CFLAGS="${CFLAGS+set}"
1248286353Smavac_save_CFLAGS="$CFLAGS"
1249286353SmavCFLAGS=
1250286353Smavecho $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1251286353Smavecho "configure:1252: checking whether ${CC-cc} accepts -g" >&5
1252286353Smavif eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1253264274Smav  echo $ac_n "(cached) $ac_c" 1>&6
1254264274Smavelse
1255264274Smav  echo 'void f(){}' > conftest.c
1256264274Smavif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1257264274Smav  ac_cv_prog_cc_g=yes
1258264274Smavelse
1259267641Smav  ac_cv_prog_cc_g=no
1260267641Smavfi
1261267641Smavrm -f conftest*
1262264274Smav
1263264274Smavfi
1264264274Smav
1265264274Smavecho "$ac_t""$ac_cv_prog_cc_g" 1>&6
1266264274Smavif test "$ac_test_CFLAGS" = set; then
1267264274Smav  CFLAGS="$ac_save_CFLAGS"
1268264274Smavelif test $ac_cv_prog_cc_g = yes; then
1269264274Smav  if test "$GCC" = yes; then
1270264274Smav    CFLAGS="-g -O2"
1271264274Smav  else
1272264274Smav    CFLAGS="-g"
1273287499Smav  fi
1274264274Smavelse
1275267515Smav  if test "$GCC" = yes; then
1276278625Smav    CFLAGS="-O2"
1277278625Smav  else
1278264274Smav    CFLAGS=
1279264274Smav  fi
1280264274Smavfi
1281264274Smav
1282264274Smav
1283267519Smavecho $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1284267537Smavecho "configure:1285: checking for Cygwin environment" >&5
1285264274Smavif eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1286271839Smav  echo $ac_n "(cached) $ac_c" 1>&6
1287269622Smavelse
1288264274Smav  cat > conftest.$ac_ext <<EOF
1289264274Smav#line 1290 "configure"
1290264274Smav#include "confdefs.h"
1291264274Smav
1292264274Smavint main() {
1293264274Smav
1294264274Smav#ifndef __CYGWIN__
1295264274Smav#define __CYGWIN__ __CYGWIN32__
1296264274Smav#endif
1297264274Smavreturn __CYGWIN__;
1298264274Smav; return 0; }
1299269622SmavEOF
1300287499Smavif { (eval echo configure:1301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1301287499Smav  rm -rf conftest*
1302264274Smav  ac_cv_cygwin=yes
1303264274Smavelse
1304264274Smav  echo "configure: failed program was:" >&5
1305264274Smav  cat conftest.$ac_ext >&5
1306264274Smav  rm -rf conftest*
1307264274Smav  ac_cv_cygwin=no
1308264274Smavfi
1309264274Smavrm -f conftest*
1310264274Smavrm -f conftest*
1311264274Smavfi
1312264274Smav
1313267515Smavecho "$ac_t""$ac_cv_cygwin" 1>&6
1314264274SmavCYGWIN=
1315287499Smavtest "$ac_cv_cygwin" = yes && CYGWIN=yes
1316287499Smavecho $ac_n "checking for object suffix""... $ac_c" 1>&6
1317287499Smavecho "configure:1318: checking for object suffix" >&5
1318278625Smavif eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1319278625Smav  echo $ac_n "(cached) $ac_c" 1>&6
1320287499Smavelse
1321264274Smav  rm -f conftest*
1322264274Smavecho 'int i = 1;' > conftest.$ac_ext
1323264274Smavif { (eval echo configure:1324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1324264274Smav  for ac_file in conftest.*; do
1325264274Smav    case $ac_file in
1326264886Smav    *.c) ;;
1327287499Smav    *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1328287499Smav    esac
1329278619Smav  done
1330278619Smavelse
1331278619Smav  { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1332278619Smavfi
1333287499Smavrm -f conftest*
1334278619Smavfi
1335287499Smav
1336264274Smavecho "$ac_t""$ac_cv_objext" 1>&6
1337264274SmavOBJEXT=$ac_cv_objext
1338264274Smavac_objext=$ac_cv_objext
1339264274Smav
1340264274Smavecho $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1341264274Smavecho "configure:1342: checking for mingw32 environment" >&5
1342264274Smavif eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1343264274Smav  echo $ac_n "(cached) $ac_c" 1>&6
1344264274Smavelse
1345264274Smav  cat > conftest.$ac_ext <<EOF
1346264274Smav#line 1347 "configure"
1347287499Smav#include "confdefs.h"
1348288175Smav
1349288175Smavint main() {
1350288175Smavreturn __MINGW32__;
1351288175Smav; return 0; }
1352288175SmavEOF
1353288175Smavif { (eval echo configure:1354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1354267515Smav  rm -rf conftest*
1355267515Smav  ac_cv_mingw32=yes
1356264274Smavelse
1357264274Smav  echo "configure: failed program was:" >&5
1358264274Smav  cat conftest.$ac_ext >&5
1359264274Smav  rm -rf conftest*
1360287499Smav  ac_cv_mingw32=no
1361287499Smavfi
1362264274Smavrm -f conftest*
1363264274Smavrm -f conftest*
1364264274Smavfi
1365267515Smav
1366267515Smavecho "$ac_t""$ac_cv_mingw32" 1>&6
1367264274SmavMINGW32=
1368264274Smavtest "$ac_cv_mingw32" = yes && MINGW32=yes
1369264274Smav
1370264274Smav
1371264274Smavecho $ac_n "checking for executable suffix""... $ac_c" 1>&6
1372264274Smavecho "configure:1373: checking for executable suffix" >&5
1373264274Smavif eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1374264274Smav  echo $ac_n "(cached) $ac_c" 1>&6
1375264274Smavelse
1376264274Smav  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1377264274Smav  ac_cv_exeext=.exe
1378267515Smavelse
1379264274Smav  rm -f conftest*
1380264274Smav  echo 'int main () { return 0; }' > conftest.$ac_ext
1381264274Smav  ac_cv_exeext=
1382267519Smav  if { (eval echo configure:1383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1383267515Smav    for file in conftest.*; do
1384264274Smav      case $file in
1385269622Smav      *.c | *.o | *.obj) ;;
1386264274Smav      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1387264274Smav      esac
1388264274Smav    done
1389264274Smav  else
1390264274Smav    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1391264274Smav  fi
1392264274Smav  rm -f conftest*
1393264274Smav  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1394264274Smavfi
1395264274Smavfi
1396264274Smav
1397264274SmavEXEEXT=""
1398264274Smavtest x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1399264274Smavecho "$ac_t""${ac_cv_exeext}" 1>&6
1400264274Smavac_exeext=$EXEEXT
1401267515Smav
1402264274Smav
1403264274Smavfor ac_prog in 'bison -y' byacc
1404264274Smavdo
1405264274Smav# Extract the first word of "$ac_prog", so it can be a program name with args.
1406275474Smavset dummy $ac_prog; ac_word=$2
1407275474Smavecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
1408275474Smavecho "configure:1409: checking for $ac_word" >&5
1409275474Smavif eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1410275474Smav  echo $ac_n "(cached) $ac_c" 1>&6
1411275474Smavelse
1412275474Smav  if test -n "$YACC"; then
1413275474Smav  ac_cv_prog_YACC="$YACC" # Let the user override the test.
1414275474Smavelse
1415275474Smav  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1416275474Smav  ac_dummy="$PATH"
1417275474Smav  for ac_dir in $ac_dummy; do
1418275474Smav    test -z "$ac_dir" && ac_dir=.
1419275474Smav    if test -f $ac_dir/$ac_word; then
1420275474Smav      ac_cv_prog_YACC="$ac_prog"
1421275474Smav      break
1422275474Smav    fi
1423275474Smav  done
1424275474Smav  IFS="$ac_save_ifs"
1425275474Smavfi
1426275474Smavfi
1427275474SmavYACC="$ac_cv_prog_YACC"
1428275474Smavif test -n "$YACC"; then
1429275474Smav  echo "$ac_t""$YACC" 1>&6
1430275474Smavelse
1431275474Smav  echo "$ac_t""no" 1>&6
1432275474Smavfi
1433275474Smav
1434275474Smavtest -n "$YACC" && break
1435275474Smavdone
1436275474Smavtest -n "$YACC" || YACC="yacc"
1437275474Smav
1438275474Smavecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1439275474Smavecho "configure:1440: checking how to run the C preprocessor" >&5
1440275474Smav# On Suns, sometimes $CPP names a directory.
1441275474Smavif test -n "$CPP" && test -d "$CPP"; then
1442275474Smav  CPP=
1443275474Smavfi
1444275474Smavif test -z "$CPP"; then
1445275474Smavif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1446275474Smav  echo $ac_n "(cached) $ac_c" 1>&6
1447275474Smavelse
1448275474Smav    # This must be in double quotes, not single quotes, because CPP may get
1449264274Smav  # substituted into the Makefile and "${CC-cc}" will confuse make.
1450264274Smav  CPP="${CC-cc} -E"
1451264274Smav  # On the NeXT, cc -E runs the code through the compiler's parser,
1452264274Smav  # not just through cpp.
1453264274Smav  cat > conftest.$ac_ext <<EOF
1454264274Smav#line 1455 "configure"
1455264274Smav#include "confdefs.h"
1456264274Smav#include <assert.h>
1457264274SmavSyntax Error
1458264274SmavEOF
1459229997Skenac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1460229997Sken{ (eval echo configure:1461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1461229997Skenac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1462229997Skenif test -z "$ac_err"; then
1463229997Sken  :
1464229997Skenelse
1465229997Sken  echo "$ac_err" >&5
1466229997Sken  echo "configure: failed program was:" >&5
1467229997Sken  cat conftest.$ac_ext >&5
1468229997Sken  rm -rf conftest*
1469229997Sken  CPP="${CC-cc} -E -traditional-cpp"
1470229997Sken  cat > conftest.$ac_ext <<EOF
1471264274Smav#line 1472 "configure"
1472286353Smav#include "confdefs.h"
1473286353Smav#include <assert.h>
1474286353SmavSyntax Error
1475286353SmavEOF
1476286353Smavac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1477286353Smav{ (eval echo configure:1478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1478286353Smavac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1479286353Smavif test -z "$ac_err"; then
1480286353Smav  :
1481286353Smavelse
1482286353Smav  echo "$ac_err" >&5
1483286353Smav  echo "configure: failed program was:" >&5
1484286353Smav  cat conftest.$ac_ext >&5
1485286353Smav  rm -rf conftest*
1486267519Smav  CPP="${CC-cc} -nologo -E"
1487229997Sken  cat > conftest.$ac_ext <<EOF
1488229997Sken#line 1489 "configure"
1489229997Sken#include "confdefs.h"
1490229997Sken#include <assert.h>
1491286353SmavSyntax Error
1492229997SkenEOF
1493264274Smavac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1494264274Smav{ (eval echo configure:1495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1495264274Smavac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1496264274Smavif test -z "$ac_err"; then
1497264274Smav  :
1498264274Smavelse
1499264274Smav  echo "$ac_err" >&5
1500229997Sken  echo "configure: failed program was:" >&5
1501229997Sken  cat conftest.$ac_ext >&5
1502229997Sken  rm -rf conftest*
1503229997Sken  CPP=/lib/cpp
1504229997Skenfi
1505229997Skenrm -f conftest*
1506292384Smarkjfi
1507292384Smarkjrm -f conftest*
1508292384Smarkjfi
1509292384Smarkjrm -f conftest*
1510229997Sken  ac_cv_prog_CPP="$CPP"
1511229997Skenfi
1512264886Smav  CPP="$ac_cv_prog_CPP"
1513264886Smavelse
1514264886Smav  ac_cv_prog_CPP="$CPP"
1515264886Smavfi
1516264886Smavecho "$ac_t""$CPP" 1>&6
1517264886Smav
1518264886Smavmissing_dir=`cd $ac_aux_dir && pwd`
1519264886Smavfor ac_prog in flex lex
1520267641Smavdo
1521267641Smav# Extract the first word of "$ac_prog", so it can be a program name with args.
1522267641Smavset dummy $ac_prog; ac_word=$2
1523267537Smavecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
1524264886Smavecho "configure:1525: checking for $ac_word" >&5
1525264886Smavif eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1526264886Smav  echo $ac_n "(cached) $ac_c" 1>&6
1527264886Smavelse
1528264886Smav  if test -n "$LEX"; then
1529264886Smav  ac_cv_prog_LEX="$LEX" # Let the user override the test.
1530267877Smavelse
1531264886Smav  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1532267877Smav  ac_dummy="$PATH"
1533264886Smav  for ac_dir in $ac_dummy; do
1534264886Smav    test -z "$ac_dir" && ac_dir=.
1535264886Smav    if test -f $ac_dir/$ac_word; then
1536264886Smav      ac_cv_prog_LEX="$ac_prog"
1537229997Sken      break
1538229997Sken    fi
1539229997Sken  done
1540287499Smav  IFS="$ac_save_ifs"
1541229997Skenfi
1542229997Skenfi
1543267537SmavLEX="$ac_cv_prog_LEX"
1544267519Smavif test -n "$LEX"; then
1545267519Smav  echo "$ac_t""$LEX" 1>&6
1546229997Skenelse
1547229997Sken  echo "$ac_t""no" 1>&6
1548229997Skenfi
1549229997Sken
1550229997Skentest -n "$LEX" && break
1551229997Skendone
1552267537Smavtest -n "$LEX" || LEX=""$missing_dir/missing flex""
1553267537Smav
1554292384Smarkj# Extract the first word of "flex", so it can be a program name with args.
1555267537Smavset dummy flex; ac_word=$2
1556292384Smarkjecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
1557229997Skenecho "configure:1558: checking for $ac_word" >&5
1558229997Skenif eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1559229997Sken  echo $ac_n "(cached) $ac_c" 1>&6
1560229997Skenelse
1561229997Sken  if test -n "$LEX"; then
1562267519Smav  ac_cv_prog_LEX="$LEX" # Let the user override the test.
1563267519Smavelse
1564229997Sken  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1565229997Sken  ac_dummy="$PATH"
1566229997Sken  for ac_dir in $ac_dummy; do
1567229997Sken    test -z "$ac_dir" && ac_dir=.
1568229997Sken    if test -f $ac_dir/$ac_word; then
1569229997Sken      ac_cv_prog_LEX="flex"
1570229997Sken      break
1571229997Sken    fi
1572229997Sken  done
1573229997Sken  IFS="$ac_save_ifs"
1574229997Sken  test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1575229997Skenfi
1576229997Skenfi
1577229997SkenLEX="$ac_cv_prog_LEX"
1578229997Skenif test -n "$LEX"; then
1579229997Sken  echo "$ac_t""$LEX" 1>&6
1580267537Smavelse
1581267537Smav  echo "$ac_t""no" 1>&6
1582267537Smavfi
1583267537Smav
1584229997Skenif test -z "$LEXLIB"
1585229997Skenthen
1586229997Sken  case "$LEX" in
1587229997Sken  flex*) ac_lib=fl ;;
1588264886Smav  *) ac_lib=l ;;
1589229997Sken  esac
1590267519Smav  echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1591267537Smavecho "configure:1592: checking for yywrap in -l$ac_lib" >&5
1592267537Smavac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1593267537Smavif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1594267537Smav  echo $ac_n "(cached) $ac_c" 1>&6
1595287499Smavelse
1596287499Smav  ac_save_LIBS="$LIBS"
1597287499SmavLIBS="-l$ac_lib  $LIBS"
1598267519Smavcat > conftest.$ac_ext <<EOF
1599229997Sken#line 1600 "configure"
1600264886Smav#include "confdefs.h"
1601264886Smav/* Override any gcc2 internal prototype to avoid an error.  */
1602264886Smav/* We use char because int might match the return type of a gcc2
1603229997Sken    builtin and then its argument prototype would still apply.  */
1604229997Skenchar yywrap();
1605229997Sken
1606229997Skenint main() {
1607264886Smavyywrap()
1608229997Sken; return 0; }
1609229997SkenEOF
1610229997Skenif { (eval echo configure:1611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1611229997Sken  rm -rf conftest*
1612229997Sken  eval "ac_cv_lib_$ac_lib_var=yes"
1613267537Smavelse
1614267537Smav  echo "configure: failed program was:" >&5
1615267537Smav  cat conftest.$ac_ext >&5
1616267537Smav  rm -rf conftest*
1617267537Smav  eval "ac_cv_lib_$ac_lib_var=no"
1618267537Smavfi
1619267537Smavrm -f conftest*
1620267537SmavLIBS="$ac_save_LIBS"
1621229997Sken
1622229997Skenfi
1623229997Skenif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1624267519Smav  echo "$ac_t""yes" 1>&6
1625264886Smav  LEXLIB="-l$ac_lib"
1626264886Smavelse
1627267537Smav  echo "$ac_t""no" 1>&6
1628267537Smavfi
1629267537Smav
1630267537Smavfi
1631267537Smav
1632264886Smavecho $ac_n "checking lex output file root""... $ac_c" 1>&6
1633264886Smavecho "configure:1634: checking lex output file root" >&5
1634288020Smavif eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1635229997Sken  echo $ac_n "(cached) $ac_c" 1>&6
1636229997Skenelse
1637229997Sken  # The minimal lex program is just a single line: %%.  But some broken lexes
1638229997Sken# (Solaris, I think it was) want two %% lines, so accommodate them.
1639229997Skenecho '%%
1640229997Sken%%' | $LEX
1641229997Skenif test -f lex.yy.c; then
1642292384Smarkj  ac_cv_prog_lex_root=lex.yy
1643229997Skenelif test -f lexyy.c; then
1644229997Sken  ac_cv_prog_lex_root=lexyy
1645292384Smarkjelse
1646229997Sken  { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1647288215Smavfi
1648288215Smavfi
1649229997Sken
1650229997Skenecho "$ac_t""$ac_cv_prog_lex_root" 1>&6
1651229997SkenLEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
1652229997Sken
1653229997Skenecho $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1654229997Skenecho "configure:1655: checking whether yytext is a pointer" >&5
1655229997Skenif eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1656287670Smav  echo $ac_n "(cached) $ac_c" 1>&6
1657287670Smavelse
1658229997Sken  # POSIX says lex can declare yytext either as a pointer or an array; the
1659287670Smav# default is implementation-dependent. Figure out which it is, since
1660229997Sken# not all implementations provide the %pointer and %array declarations.
1661229997Skenac_cv_prog_lex_yytext_pointer=no
1662287670Smavecho 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1663287670Smavac_save_LIBS="$LIBS"
1664288348SmavLIBS="$LIBS $LEXLIB"
1665287670Smavcat > conftest.$ac_ext <<EOF
1666287670Smav#line 1667 "configure"
1667229997Sken#include "confdefs.h"
1668287670Smav`cat $LEX_OUTPUT_ROOT.c`
1669229997Skenint main() {
1670229997Sken
1671229997Sken; return 0; }
1672229997SkenEOF
1673229997Skenif { (eval echo configure:1674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1674267877Smav  rm -rf conftest*
1675267519Smav  ac_cv_prog_lex_yytext_pointer=yes
1676288348Smavelse
1677287670Smav  echo "configure: failed program was:" >&5
1678287670Smav  cat conftest.$ac_ext >&5
1679287670Smavfi
1680287670Smavrm -f conftest*
1681229997SkenLIBS="$ac_save_LIBS"
1682229997Skenrm -f "${LEX_OUTPUT_ROOT}.c"
1683229997Sken
1684229997Skenfi
1685229997Sken
1686229997Skenecho "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
1687229997Skenif test $ac_cv_prog_lex_yytext_pointer = yes; then
1688229997Sken  cat >> confdefs.h <<\EOF
1689267877Smav#define YYTEXT_POINTER 1
1690288348SmavEOF
1691287670Smav
1692287670Smavfi
1693287670Smav
1694287670Smav# Extract the first word of "ranlib", so it can be a program name with args.
1695229997Skenset dummy ranlib; ac_word=$2
1696229997Skenecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
1697229997Skenecho "configure:1698: checking for $ac_word" >&5
1698275474Smavif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1699275474Smav  echo $ac_n "(cached) $ac_c" 1>&6
1700275474Smavelse
1701275474Smav  if test -n "$RANLIB"; then
1702275474Smav  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1703275474Smavelse
1704288348Smav  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1705287670Smav  ac_dummy="$PATH"
1706287670Smav  for ac_dir in $ac_dummy; do
1707287670Smav    test -z "$ac_dir" && ac_dir=.
1708287670Smav    if test -f $ac_dir/$ac_word; then
1709275474Smav      ac_cv_prog_RANLIB="ranlib"
1710275474Smav      break
1711275474Smav    fi
1712229997Sken  done
1713229997Sken  IFS="$ac_save_ifs"
1714229997Sken  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1715229997Skenfi
1716229997Skenfi
1717267877SmavRANLIB="$ac_cv_prog_RANLIB"
1718288348Smavif test -n "$RANLIB"; then
1719287670Smav  echo "$ac_t""$RANLIB" 1>&6
1720287670Smavelse
1721287670Smav  echo "$ac_t""no" 1>&6
1722287670Smavfi
1723229997Sken
1724229997Skenfor ac_prog in mawk gawk nawk awk
1725229997Skendo
1726229997Sken# Extract the first word of "$ac_prog", so it can be a program name with args.
1727229997Skenset dummy $ac_prog; ac_word=$2
1728229997Skenecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
1729229997Skenecho "configure:1730: checking for $ac_word" >&5
1730229997Skenif eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1731287670Smav  echo $ac_n "(cached) $ac_c" 1>&6
1732229997Skenelse
1733229997Sken  if test -n "$AWK"; then
1734229997Sken  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1735229997Skenelse
1736229997Sken  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1737229997Sken  ac_dummy="$PATH"
1738229997Sken  for ac_dir in $ac_dummy; do
1739229997Sken    test -z "$ac_dir" && ac_dir=.
1740229997Sken    if test -f $ac_dir/$ac_word; then
1741229997Sken      ac_cv_prog_AWK="$ac_prog"
1742229997Sken      break
1743229997Sken    fi
1744229997Sken  done
1745287499Smav  IFS="$ac_save_ifs"
1746229997Skenfi
1747229997Skenfi
1748229997SkenAWK="$ac_cv_prog_AWK"
1749312834Smavif test -n "$AWK"; then
1750287499Smav  echo "$ac_t""$AWK" 1>&6
1751229997Skenelse
1752229997Sken  echo "$ac_t""no" 1>&6
1753229997Skenfi
1754229997Sken
1755229997Skentest -n "$AWK" && break
1756229997Skendone
1757229997Sken
1758267519Smavecho $ac_n "checking for ln -s or something else""... $ac_c" 1>&6
1759267519Smavecho "configure:1760: checking for ln -s or something else" >&5
1760267877Smavif eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1761229997Sken  echo $ac_n "(cached) $ac_c" 1>&6
1762267877Smavelse
1763229997Sken  rm -f conftestdata
1764229997Skenif ln -s X conftestdata 2>/dev/null
1765267514Smavthen
1766229997Sken  rm -f conftestdata
1767229997Sken  ac_cv_prog_LN_S="ln -s"
1768229997Skenelse
1769229997Sken  touch conftestdata1
1770229997Sken  if ln conftestdata1 conftestdata2; then
1771229997Sken    rm -f conftestdata*
1772229997Sken    ac_cv_prog_LN_S=ln
1773229997Sken  else
1774229997Sken    ac_cv_prog_LN_S=cp
1775229997Sken  fi
1776229997Skenfi
1777229997Skenfi
1778229997SkenLN_S="$ac_cv_prog_LN_S"
1779229997Skenecho "$ac_t""$ac_cv_prog_LN_S" 1>&6
1780229997Sken
1781229997Sken
1782229997Sken
1783229997Sken# Check whether --with-mips_abi or --without-mips_abi was given.
1784229997Skenif test "${with_mips_abi+set}" = set; then
1785229997Sken  withval="$with_mips_abi"
1786229997Sken  :
1787229997Skenfi
1788229997Sken
1789229997Sken
1790229997Skencase "$host_os" in
1791229997Skenirix*)
1792232604Straszwith_mips_abi="${with_mips_abi:-yes}"
1793232604Straszif test -n "$GCC"; then
1794232604Strasz
1795229997Sken# GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select
1796229997Sken# which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs.
1797229997Sken#
1798272911Smav# Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old
1799229997Sken# GCC and revert back to O32. The same goes if O32 is asked for - old
1800229997Sken# GCCs doesn't like the -mabi option, and new GCCs can't output O32.
1801229997Sken#
1802229997Sken# Don't you just love *all* the different SGI ABIs?
1803229997Sken
1804229997Skencase "${with_mips_abi}" in 
1805229997Sken        32|o32) abi='-mabi=32';  abilibdirext=''     ;;
1806229997Sken       n32|yes) abi='-mabi=n32'; abilibdirext='32'  ;;
1807229997Sken        64) abi='-mabi=64';  abilibdirext='64'   ;;
1808229997Sken	no) abi=''; abilibdirext='';;
1809229997Sken         *) { echo "configure: error: "Invalid ABI specified"" 1>&2; exit 1; } ;;
1810229997Skenesac
1811229997Skenif test -n "$abi" ; then
1812229997Skenac_foo=krb_cv_gcc_`echo $abi | tr =- __`
1813229997Skenecho $ac_n "checking if $CC supports the $abi option""... $ac_c" 1>&6
1814229997Skenecho "configure:1815: checking if $CC supports the $abi option" >&5
1815287499Smavif eval "test \"`echo '$''{'$ac_foo'+set}'`\" = set"; then
1816229997Sken  echo $ac_n "(cached) $ac_c" 1>&6
1817229997Skenelse
1818275865Smav  
1819229997Skensave_CFLAGS="$CFLAGS"
1820275865SmavCFLAGS="$CFLAGS $abi"
1821229997Skencat > conftest.$ac_ext <<EOF
1822229997Sken#line 1823 "configure"
1823287499Smav#include "confdefs.h"
1824229997Sken
1825272911Smavint main() {
1826229997Skenint x;
1827229997Sken; return 0; }
1828229997SkenEOF
1829229997Skenif { (eval echo configure:1830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1830275474Smav  rm -rf conftest*
1831275481Smav  eval $ac_foo=yes
1832287499Smavelse
1833287499Smav  echo "configure: failed program was:" >&5
1834229997Sken  cat conftest.$ac_ext >&5
1835229997Sken  rm -rf conftest*
1836229997Sken  eval $ac_foo=no
1837229997Skenfi
1838229997Skenrm -f conftest*
1839229997SkenCFLAGS="$save_CFLAGS"
1840229997Sken
1841229997Skenfi
1842229997Sken
1843229997Skenac_res=`eval echo \\\$$ac_foo`
1844232604Straszecho "$ac_t""$ac_res" 1>&6
1845232604Straszif test $ac_res = no; then
1846232604Strasz# Try to figure out why that failed...
1847232604Straszcase $abi in
1848229997Sken	-mabi=32) 
1849229997Sken	save_CFLAGS="$CFLAGS"
1850273029Smav	CFLAGS="$CFLAGS -mabi=n32"
1851273029Smav	cat > conftest.$ac_ext <<EOF
1852273029Smav#line 1853 "configure"
1853273029Smav#include "confdefs.h"
1854229997Sken
1855229997Skenint main() {
1856287499Smavint x;
1857288310Smav; return 0; }
1858288310SmavEOF
1859229997Skenif { (eval echo configure:1860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1860287499Smav  rm -rf conftest*
1861287499Smav  ac_res=yes
1862287499Smavelse
1863287499Smav  echo "configure: failed program was:" >&5
1864275865Smav  cat conftest.$ac_ext >&5
1865275865Smav  rm -rf conftest*
1866275865Smav  ac_res=no
1867275865Smavfi
1868287499Smavrm -f conftest*
1869275865Smav	CLAGS="$save_CFLAGS"
1870275865Smav	if test $ac_res = yes; then
1871287499Smav		# New GCC
1872275865Smav		{ echo "configure: error: $CC does not support the $with_mips_abi ABI" 1>&2; exit 1; }
1873275865Smav	fi
1874287499Smav	# Old GCC
1875287499Smav	abi=''
1876287499Smav	abilibdirext=''
1877287499Smav	;;
1878287499Smav	-mabi=n32|-mabi=64)
1879287499Smav		if test $with_mips_abi = yes; then
1880273029Smav			# Old GCC, default to O32
1881229997Sken			abi=''
1882287499Smav			abilibdirext=''
1883275865Smav		else
1884275865Smav			# Some broken GCC
1885287499Smav			{ echo "configure: error: $CC does not support the $with_mips_abi ABI" 1>&2; exit 1; }
1886275865Smav		fi
1887275865Smav	;;
1888287499Smavesac
1889287499Smavfi #if test $ac_res = no; then
1890287499Smavfi #if test -n "$abi" ; then
1891287499Smavelse
1892287499Smavcase "${with_mips_abi}" in
1893287499Smav        32|o32) abi='-32'; abilibdirext=''     ;;
1894275865Smav       n32|yes) abi='-n32'; abilibdirext='32'  ;;
1895275865Smav        64) abi='-64'; abilibdirext='64'   ;;
1896229997Sken	no) abi=''; abilibdirext='';;
1897229997Sken         *) { echo "configure: error: "Invalid ABI specified"" 1>&2; exit 1; } ;;
1898229997Skenesac
1899229997Skenfi #if test -n "$GCC"; then
1900287499Smav;;
1901229997Skenesac
1902229997Sken
1903229997SkenCC="$CC $abi"
1904287499Smavlibdir="$libdir$abilibdirext"
1905229997Sken
1906275920Smav
1907287499Smavecho $ac_n "checking for __attribute__""... $ac_c" 1>&6
1908229997Skenecho "configure:1909: checking for __attribute__" >&5
1909229997Skenif eval "test \"`echo '$''{'ac_cv___attribute__'+set}'`\" = set"; then
1910229997Sken  echo $ac_n "(cached) $ac_c" 1>&6
1911229997Skenelse
1912229997Sken  
1913229997Skencat > conftest.$ac_ext <<EOF
1914287499Smav#line 1915 "configure"
1915229997Sken#include "confdefs.h"
1916287664Smav
1917229997Sken#include <stdlib.h>
1918275865Smav
1919287664Smavint main() {
1920287221Smav
1921229997Skenstatic void foo(void) __attribute__ ((noreturn));
1922272911Smav
1923229997Skenstatic void
1924229997Skenfoo(void)
1925287664Smav{
1926287664Smav  exit(1);
1927287664Smav}
1928287664Smav
1929269123Smav; return 0; }
1930275474SmavEOF
1931275920Smavif { (eval echo configure:1932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1932275920Smav  rm -rf conftest*
1933269123Smav  ac_cv___attribute__=yes
1934287499Smavelse
1935275920Smav  echo "configure: failed program was:" >&5
1936287664Smav  cat conftest.$ac_ext >&5
1937275920Smav  rm -rf conftest*
1938275920Smav  ac_cv___attribute__=no
1939275920Smavfi
1940275920Smavrm -f conftest*
1941275920Smavfi
1942269123Smav
1943274154Smavif test "$ac_cv___attribute__" = "yes"; then
1944287499Smav  cat >> confdefs.h <<\EOF
1945229997Sken#define HAVE___ATTRIBUTE__ 1
1946287664SmavEOF
1947287664Smav
1948229997Skenfi
1949287664Smavecho "$ac_t""$ac_cv___attribute__" 1>&6
1950229997Sken
1951229997Sken
1952229997Sken# Check whether --enable-shared or --disable-shared was given.
1953287664Smavif test "${enable_shared+set}" = set; then
1954229997Sken  enableval="$enable_shared"
1955229997Sken  p=${PACKAGE-default}
1956287664Smavcase "$enableval" in
1957229997Skenyes) enable_shared=yes ;;
1958272911Smavno) enable_shared=no ;;
1959272911Smav*)
1960229997Sken  enable_shared=no
1961229997Sken  # Look at the argument we got.  We use all the common list separators.
1962229997Sken  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1963229997Sken  for pkg in $enableval; do
1964229997Sken    if test "X$pkg" = "X$p"; then
1965229997Sken      enable_shared=yes
1966229997Sken    fi
1967229997Sken  done
1968229997Sken  IFS="$ac_save_ifs"
1969286811Smav  ;;
1970286811Smavesac
1971286811Smavelse
1972287499Smav  enable_shared=no
1973229997Skenfi
1974287664Smav
1975229997Sken# Check whether --enable-static or --disable-static was given.
1976272911Smavif test "${enable_static+set}" = set; then
1977229997Sken  enableval="$enable_static"
1978287221Smav  p=${PACKAGE-default}
1979229997Skencase "$enableval" in
1980229997Skenyes) enable_static=yes ;;
1981286811Smavno) enable_static=no ;;
1982287664Smav*)
1983229997Sken  enable_static=no
1984272911Smav  # Look at the argument we got.  We use all the common list separators.
1985287221Smav  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1986229997Sken  for pkg in $enableval; do
1987288310Smav    if test "X$pkg" = "X$p"; then
1988288310Smav      enable_static=yes
1989288310Smav    fi
1990287499Smav  done
1991229997Sken  IFS="$ac_save_ifs"
1992287664Smav  ;;
1993287664Smavesac
1994229997Skenelse
1995287664Smav  enable_static=yes
1996229997Skenfi
1997272911Smav
1998272911Smav# Check whether --with-gnu-ld or --without-gnu-ld was given.
1999232604Straszif test "${with_gnu_ld+set}" = set; then
2000229997Sken  withval="$with_gnu_ld"
2001229997Sken  test "$withval" = no || with_gnu_ld=yes
2002229997Skenelse
2003232604Strasz  with_gnu_ld=no
2004287221Smavfi
2005287664Smav
2006232604Strasz
2007272911Smavac_prog=ld
2008272911Smavif test "$ac_cv_prog_gcc" = yes; then
2009232604Strasz  # Check if gcc -print-prog-name=ld gives a path.
2010287221Smav  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2011232604Straszecho "configure:2012: checking for ld used by GCC" >&5
2012232604Strasz  ac_prog=`($CC -print-prog-name=ld) 2>&5`
2013232604Strasz  case "$ac_prog" in
2014232604Strasz  # Accept absolute paths.
2015286811Smav  /* | [A-Za-z]:\\*)
2016287221Smav    test -z "$LD" && LD="$ac_prog"
2017287499Smav    ;;
2018287499Smav  "")
2019287499Smav    # If it fails, then pretend we aren't using GCC.
2020232604Strasz    ac_prog=ld
2021287664Smav    ;;
2022287664Smav  *)
2023264191Smav    # If it is relative, then search for the first ld in PATH.
2024264191Smav    with_gnu_ld=unknown
2025264191Smav    ;;
2026287664Smav  esac
2027287664Smavelif test "$with_gnu_ld" = yes; then
2028264191Smav  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2029264191Smavecho "configure:2030: checking for GNU ld" >&5
2030264191Smavelse
2031275865Smav  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2032275865Smavecho "configure:2033: checking for non-GNU ld" >&5
2033275865Smavfi
2034287499Smavif eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2035275865Smav  echo $ac_n "(cached) $ac_c" 1>&6
2036275865Smavelse
2037287499Smav  if test -z "$LD"; then
2038275865Smav  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2039275865Smav  for ac_dir in $PATH; do
2040287499Smav    test -z "$ac_dir" && ac_dir=.
2041287499Smav    if test -f "$ac_dir/$ac_prog"; then
2042287499Smav      ac_cv_path_LD="$ac_dir/$ac_prog"
2043287499Smav      # Check to see if the program is GNU ld.  I'd rather use --version,
2044287499Smav      # but apparently some GNU ld's only accept -v.
2045287499Smav      # Break only if it was the GNU/non-GNU ld that we prefer.
2046264191Smav      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2047264191Smav	test "$with_gnu_ld" != no && break
2048287499Smav      else
2049275865Smav        test "$with_gnu_ld" != yes && break
2050275865Smav      fi
2051287499Smav    fi
2052275865Smav  done
2053275865Smav  IFS="$ac_save_ifs"
2054287499Smavelse
2055287499Smav  ac_cv_path_LD="$LD" # Let the user override the test with a path.
2056287499Smavfi
2057287499Smavfi
2058287499Smav
2059287499SmavLD="$ac_cv_path_LD"
2060275865Smavif test -n "$LD"; then
2061275865Smav  echo "$ac_t""$LD" 1>&6
2062287499Smavelse
2063287499Smav  echo "$ac_t""no" 1>&6
2064278672Smavfi
2065278672Smavtest -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2066278672Smav
2067278672Smavecho $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2068278672Smavecho "configure:2069: checking if the linker ($LD) is GNU ld" >&5
2069278672Smavif eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2070278672Smav  echo $ac_n "(cached) $ac_c" 1>&6
2071278672Smavelse
2072287664Smav  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2073287664Smavif $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2074278672Smav  ac_cv_prog_gnu_ld=yes
2075278672Smavelse
2076287499Smav  ac_cv_prog_gnu_ld=no
2077278672Smavfi
2078278672Smavfi
2079278672Smav
2080287499Smavecho "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2081287499Smav
2082287499Smav
2083278672Smavecho $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2084287664Smavecho "configure:2085: checking for BSD-compatible nm" >&5
2085229997Skenif eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2086229997Sken  echo $ac_n "(cached) $ac_c" 1>&6
2087229997Skenelse
2088229997Sken  if test -n "$NM"; then
2089229997Sken  # Let the user override the test.
2090229997Sken  ac_cv_path_NM="$NM"
2091287499Smavelse
2092287499Smav  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2093287499Smav  for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
2094229997Sken    test -z "$ac_dir" && ac_dir=.
2095287499Smav    if test -f $ac_dir/nm; then
2096287499Smav      # Check to see if the nm accepts a BSD-compat flag.
2097287499Smav      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2098229997Sken      #   nm: unknown option "B" ignored
2099229997Sken      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2100229997Sken        ac_cv_path_NM="$ac_dir/nm -B"
2101229997Sken      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2102229997Sken        ac_cv_path_NM="$ac_dir/nm -p"
2103229997Sken      else
2104229997Sken        ac_cv_path_NM="$ac_dir/nm"
2105229997Sken      fi
2106229997Sken      break
2107229997Sken    fi
2108229997Sken  done
2109229997Sken  IFS="$ac_save_ifs"
2110229997Sken  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2111258871Straszfi
2112229997Skenfi
2113289702Smav
2114229997SkenNM="$ac_cv_path_NM"
2115229997Skenecho "$ac_t""$NM" 1>&6
2116272911Smav
2117229997Sken
2118229997Skenecho $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2119229997Skenecho "configure:2120: checking whether ln -s works" >&5
2120229997Skenif eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2121229997Sken  echo $ac_n "(cached) $ac_c" 1>&6
2122288348Smavelse
2123229997Sken  rm -f conftestdata
2124287499Smavif ln -s X conftestdata 2>/dev/null
2125229997Skenthen
2126287499Smav  rm -f conftestdata
2127287499Smav  ac_cv_prog_LN_S="ln -s"
2128229997Skenelse
2129229997Sken  ac_cv_prog_LN_S=ln
2130229997Skenfi
2131229997Skenfi
2132272911SmavLN_S="$ac_cv_prog_LN_S"
2133229997Skenif test "$ac_cv_prog_LN_S" = "ln -s"; then
2134229997Sken  echo "$ac_t""yes" 1>&6
2135285391Smjgelse
2136229997Sken  echo "$ac_t""no" 1>&6
2137287499Smavfi
2138287499Smav
2139287499Smav# Always use our own libtool.
2140287499SmavLIBTOOL='$(top_builddir)/libtool'
2141287499Smav
2142287499Smav# Check for any special flags to pass to ltconfig.
2143287499Smavlibtool_flags=
2144287499Smavtest "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2145287499Smavtest "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2146287499Smavtest "$silent" = yes && libtool_flags="$libtool_flags --silent"
2147287499Smavtest "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2148288310Smavtest "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2149288310Smav
2150288310Smav# Some flags need to be propagated to the compiler or linker for good
2151288310Smav# libtool support.
2152287499Smavcase "$host" in
2153287499Smav*-*-irix6*)
2154287499Smav  # Find out which ABI we are using.
2155229997Sken  echo '#line 2156 "configure"' > conftest.$ac_ext
2156229997Sken  if { (eval echo configure:2157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2157287499Smav    case "`/usr/bin/file conftest.o`" in
2158287499Smav    *32-bit*)
2159287499Smav      LD="${LD-ld} -32"
2160287499Smav      ;;
2161229997Sken    *N32*)
2162229997Sken      LD="${LD-ld} -n32"
2163229997Sken      ;;
2164229997Sken    *64-bit*)
2165229997Sken      LD="${LD-ld} -64"
2166229997Sken      ;;
2167229997Sken    esac
2168229997Sken  fi
2169229997Sken  rm -rf conftest*
2170229997Sken  ;;
2171287499Smav
2172287499Smav*-*-sco3.2v5*)
2173287499Smav  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2174287499Smav  CFLAGS="$CFLAGS -belf"
2175287499Smav  ;;
2176229997Skenesac
2177229997Sken
2178272911Smav# Actually configure libtool.  ac_aux_dir is where install-sh is found.
2179229997SkenCC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2180229997SkenLD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2181287499Smav${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2182287499Smav$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2183287499Smav|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2184287499Smav
2185229997Sken# Redirect the config.log output again, so that the ltconfig log is not
2186229997Sken# clobbered by the next message.
2187229997Skenexec 5>>./config.log
2188229997Sken
2189229997Sken
2190229997Sken
2191229997SkenWFLAGS_NOUNUSED=""
2192229997SkenWFLAGS_NOIMPLICITINT=""
2193229997Skenif test -z "$WFLAGS" -a "$GCC" = "yes"; then
2194229997Sken  # -Wno-implicit-int for broken X11 headers
2195229997Sken  # leave these out for now:
2196229997Sken  #   -Wcast-align doesn't work well on alpha osf/1
2197258871Strasz  #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
2198229997Sken  #   -Wmissing-declarations -Wnested-externs
2199229997Sken  WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
2200229997Sken  WFLAGS_NOUNUSED="-Wno-unused"
2201286811Smav  WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
2202229997Skenfi
2203287499Smav
2204287499Smav
2205287499Smavberkeley_db=db
2206287499Smav# Check whether --with-berkeley-db or --without-berkeley-db was given.
2207287499Smavif test "${with_berkeley_db+set}" = set; then
2208287499Smav  withval="$with_berkeley_db"
2209287499Smav  
2210287499Smavif test "$withval" = no; then
2211287499Smav	berkeley_db=""
2212287499Smavfi
2213229997Sken
2214229997Skenfi
2215229997Sken
2216229997Sken
2217229997Sken
2218229997Sken# Check whether --with-krb4 or --without-krb4 was given.
2219287499Smavif test "${with_krb4+set}" = set; then
2220229997Sken  withval="$with_krb4"
2221229997Sken  :
2222267481Smavfi
2223229997Sken
2224267481Smav# Check whether --with-krb4-lib or --without-krb4-lib was given.
2225278672Smavif test "${with_krb4_lib+set}" = set; then
2226267481Smav  withval="$with_krb4_lib"
2227229997Sken  if test "$withval" = "yes" -o "$withval" = "no"; then
2228229997Sken  { echo "configure: error: No argument for --with-krb4-lib" 1>&2; exit 1; }
2229229997Skenelif test "X$with_krb4" = "X"; then
2230272911Smav  with_krb4=yes
2231229997Skenfi
2232229997Skenfi
2233287499Smav
2234287499Smav# Check whether --with-krb4-include or --without-krb4-include was given.
2235272911Smavif test "${with_krb4_include+set}" = set; then
2236229997Sken  withval="$with_krb4_include"
2237229997Sken  if test "$withval" = "yes" -o "$withval" = "no"; then
2238275474Smav  { echo "configure: error: No argument for --with-krb4-include" 1>&2; exit 1; }
2239229997Skenelif test "X$with_krb4" = "X"; then
2240229997Sken  with_krb4=yes
2241229997Skenfi
2242267877Smavfi
2243267877Smav
2244287499Smav
2245268280Smavecho $ac_n "checking for krb4""... $ac_c" 1>&6
2246264886Smavecho "configure:2247: checking for krb4" >&5
2247256995Smav
2248229997Skencase "$with_krb4" in
2249229997Skenyes)	;;
2250272911Smavno)	;;
2251229997Sken"")	;;
2252229997Sken*)	if test "$with_krb4_include" = ""; then
2253229997Sken		with_krb4_include="$with_krb4/include"
2254229997Sken	fi
2255287499Smav	if test "$with_krb4_lib" = ""; then
2256229997Sken		with_krb4_lib="$with_krb4/lib$abilibdirext"
2257287499Smav	fi
2258287499Smav	;;
2259287621Smavesac
2260287621Smavheader_dirs=
2261287621Smavlib_dirs=
2262287621Smavd='/usr/athena'
2263287621Smavfor i in $d; do
2264287621Smav	header_dirs="$header_dirs $i/include"
2265287621Smav	lib_dirs="$lib_dirs $i/lib$abilibdirext"
2266229997Skendone
2267288310Smav
2268288310Smavcase "$with_krb4_include" in
2269286811Smavyes) ;;
2270286811Smavno)  ;;
2271287499Smav*)   header_dirs="$with_krb4_include $header_dirs";;
2272288310Smavesac
2273288310Smavcase "$with_krb4_lib" in
2274286811Smavyes) ;;
2275287499Smavno)  ;;
2276287499Smav*)   lib_dirs="$with_krb4_lib $lib_dirs";;
2277287499Smavesac
2278287499Smav
2279229997Skensave_CFLAGS="$CFLAGS"
2280287621Smavsave_LIBS="$LIBS"
2281287621Smavires= lres=
2282288348Smavfor i in $header_dirs; do
2283287621Smav	CFLAGS="-I$i $save_CFLAGS"
2284287621Smav	cat > conftest.$ac_ext <<EOF
2285287621Smav#line 2286 "configure"
2286287621Smav#include "confdefs.h"
2287229997Sken#include <krb.h>
2288287499Smavint main() {
2289229997Sken
2290229997Sken; return 0; }
2291229997SkenEOF
2292229997Skenif { (eval echo configure:2293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2293287499Smav  rm -rf conftest*
2294267481Smav  ires=$i;break
2295267481Smavelse
2296229997Sken  echo "configure: failed program was:" >&5
2297267481Smav  cat conftest.$ac_ext >&5
2298267481Smavfi
2299267481Smavrm -f conftest*
2300267481Smavdone
2301267481Smavfor i in $lib_dirs; do
2302267481Smav	LIBS="-L$i -lkrb -ldes $save_LIBS"
2303267481Smav	cat > conftest.$ac_ext <<EOF
2304272911Smav#line 2305 "configure"
2305272911Smav#include "confdefs.h"
2306267481Smav#include <krb.h>
2307229997Skenint main() {
2308267481Smav
2309229997Sken; return 0; }
2310229997SkenEOF
2311272911Smavif { (eval echo configure:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2312288348Smav  rm -rf conftest*
2313229997Sken  lres=$i;break
2314272911Smavelse
2315287499Smav  echo "configure: failed program was:" >&5
2316229997Sken  cat conftest.$ac_ext >&5
2317287499Smavfi
2318287499Smavrm -f conftest*
2319229997Skendone
2320287499SmavCFLAGS="$save_CFLAGS"
2321229997SkenLIBS="$save_LIBS"
2322287499Smav
2323287499Smavif test "$ires" -a "$lres" -a "$with_krb4" != "no"; then
2324287499Smav	krb4_includedir="$ires"
2325229997Sken	krb4_libdir="$lres"
2326229997Sken	INCLUDE_krb4="-I$krb4_includedir"
2327229997Sken	LIB_krb4="-L$krb4_libdir -lkrb"
2328229997Sken	cat >> confdefs.h <<EOF
2329287499Smav#define `echo krb4 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1
2330287499SmavEOF
2331229997Sken
2332229997Sken	with_krb4=yes
2333229997Sken	echo "$ac_t""headers $ires, libraries $lres" 1>&6
2334275953Smavelse
2335229997Sken	INCLUDE_krb4=
2336287499Smav	LIB_krb4=
2337287499Smav	with_krb4=no
2338229997Sken	echo "$ac_t""$with_krb4" 1>&6
2339229997Skenfi
2340229997Sken
2341229997Sken
2342287499Smav
2343287499Smav
2344229997SkenLIB_kdb=
2345229997Skenif test "$with_krb4" != "no"; then
2346229997Sken	save_CFLAGS="$CFLAGS"
2347275953Smav	CFLAGS="$CFLAGS $INCLUDE_krb4"
2348229997Sken	save_LIBS="$LIBS"
2349287499Smav	LIBS="$LIB_krb4 -ldes $LIBS"
2350287499Smav	EXTRA_LIB45=lib45.a
2351275953Smav	
2352229997Sken	echo $ac_n "checking for four valued krb_put_int""... $ac_c" 1>&6
2353229997Skenecho "configure:2354: checking for four valued krb_put_int" >&5
2354229997Skenif eval "test \"`echo '$''{'ac_cv_func_krb_put_int_four'+set}'`\" = set"; then
2355229997Sken  echo $ac_n "(cached) $ac_c" 1>&6
2356229997Skenelse
2357229997Sken  cat > conftest.$ac_ext <<EOF
2358229997Sken#line 2359 "configure"
2359229997Sken#include "confdefs.h"
2360229997Sken#include <krb.h>
2361272911Smavint main() {
2362229997Sken
2363229997Sken		char tmp[4];
2364229997Sken		krb_put_int(17, tmp, 4, sizeof(tmp));
2365229997Sken; return 0; }
2366229997SkenEOF
2367229997Skenif { (eval echo configure:2368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2368229997Sken  rm -rf conftest*
2369229997Sken  ac_cv_func_krb_put_int_four=yes
2370229997Skenelse
2371229997Sken  echo "configure: failed program was:" >&5
2372229997Sken  cat conftest.$ac_ext >&5
2373229997Sken  rm -rf conftest*
2374229997Sken  ac_cv_func_krb_put_int_four=no
2375229997Skenfi
2376229997Skenrm -f conftest*
2377229997Sken	
2378229997Skenfi
2379229997Sken
2380229997Skenecho "$ac_t""$ac_cv_func_krb_put_int_four" 1>&6
2381345007Smav	if test "$ac_cv_func_krb_put_int_four" = yes; then
2382229997Sken		cat >> confdefs.h <<\EOF
2383229997Sken#define HAVE_FOUR_VALUED_KRB_PUT_INT 1
2384229997SkenEOF
2385229997Sken
2386229997Sken	fi
2387229997Sken	echo $ac_n "checking for KRB_VERIFY_SECURE""... $ac_c" 1>&6
2388229997Skenecho "configure:2389: checking for KRB_VERIFY_SECURE" >&5
2389229997Skenif eval "test \"`echo '$''{'ac_cv_func_krb_verify_secure'+set}'`\" = set"; then
2390229997Sken  echo $ac_n "(cached) $ac_c" 1>&6
2391229997Skenelse
2392229997Sken  cat > conftest.$ac_ext <<EOF
2393229997Sken#line 2394 "configure"
2394229997Sken#include "confdefs.h"
2395229997Sken#include <krb.h>
2396287499Smavint main() {
2397229997Sken
2398229997Sken		int x = KRB_VERIFY_SECURE
2399229997Sken; return 0; }
2400229997SkenEOF
2401229997Skenif { (eval echo configure:2402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2402229997Sken  rm -rf conftest*
2403229997Sken  ac_cv_func_krb_verify_secure=yes
2404272911Smavelse
2405272911Smav  echo "configure: failed program was:" >&5
2406229997Sken  cat conftest.$ac_ext >&5
2407229997Sken  rm -rf conftest*
2408229997Sken  ac_cv_func_krb_verify_secure=no
2409229997Skenfi
2410229997Skenrm -f conftest*
2411229997Sken	
2412229997Skenfi
2413229997Sken
2414229997Skenecho "$ac_t""$ac_cv_func_krb_verify_secure" 1>&6
2415229997Sken	if test "$ac_cv_func_krb_verify_secure" != yes; then
2416229997Sken		cat >> confdefs.h <<\EOF
2417229997Sken#define KRB_VERIFY_SECURE 1
2418229997SkenEOF
2419229997Sken
2420229997Sken		cat >> confdefs.h <<\EOF
2421229997Sken#define KRB_VERIFY_SECURE_FAIL 2
2422229997SkenEOF
2423229997Sken
2424229997Sken	fi
2425229997Sken	echo $ac_n "checking for KRB_VERIFY_NOT_SECURE""... $ac_c" 1>&6
2426229997Skenecho "configure:2427: checking for KRB_VERIFY_NOT_SECURE" >&5
2427272911Smavif eval "test \"`echo '$''{'ac_cv_func_krb_verify_not_secure'+set}'`\" = set"; then
2428229997Sken  echo $ac_n "(cached) $ac_c" 1>&6
2429229997Skenelse
2430229997Sken  cat > conftest.$ac_ext <<EOF
2431229997Sken#line 2432 "configure"
2432229997Sken#include "confdefs.h"
2433229997Sken#include <krb.h>
2434287499Smavint main() {
2435229997Sken
2436229997Sken		int x = KRB_VERIFY_NOT_SECURE
2437229997Sken; return 0; }
2438229997SkenEOF
2439229997Skenif { (eval echo configure:2440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2440287499Smav  rm -rf conftest*
2441229997Sken  ac_cv_func_krb_verify_not_secure=yes
2442287499Smavelse
2443229997Sken  echo "configure: failed program was:" >&5
2444229997Sken  cat conftest.$ac_ext >&5
2445229997Sken  rm -rf conftest*
2446229997Sken  ac_cv_func_krb_verify_not_secure=no
2447229997Skenfi
2448229997Skenrm -f conftest*
2449229997Sken	
2450229997Skenfi
2451267429Smav
2452267429Smavecho "$ac_t""$ac_cv_func_krb_verify_not_secure" 1>&6
2453229997Sken	if test "$ac_cv_func_krb_verify_not_secure" != yes; then
2454267429Smav		cat >> confdefs.h <<\EOF
2455267429Smav#define KRB_VERIFY_NOT_SECURE 0
2456267429SmavEOF
2457267429Smav
2458287499Smav	fi
2459267877Smav	
2460267877Smav
2461229997Sken
2462229997Sken
2463229997Skenecho $ac_n "checking for krb_enable_debug""... $ac_c" 1>&6
2464229997Skenecho "configure:2465: checking for krb_enable_debug" >&5
2465229997Skenif eval "test \"`echo '$''{'ac_cv_funclib_krb_enable_debug'+set}'`\" = set"; then
2466229997Sken  echo $ac_n "(cached) $ac_c" 1>&6
2467229997Skenelse
2468229997Sken  
2469229997Skenif eval "test \"\$ac_cv_func_krb_enable_debug\" != yes" ; then
2470229997Sken	ac_save_LIBS="$LIBS"
2471287670Smav	for ac_lib in "" ; do
2472229997Sken		if test -n "$ac_lib"; then 
2473229997Sken			ac_lib="-l$ac_lib"
2474229997Sken		else
2475229997Sken			ac_lib=""
2476229997Sken		fi
2477229997Sken		LIBS=" $ac_lib  $ac_save_LIBS"
2478287499Smav		cat > conftest.$ac_ext <<EOF
2479229997Sken#line 2480 "configure"
2480229997Sken#include "confdefs.h"
2481229997Sken
2482229997Skenint main() {
2483229997Skenkrb_enable_debug()
2484272911Smav; return 0; }
2485272911SmavEOF
2486229997Skenif { (eval echo configure:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2487229997Sken  rm -rf conftest*
2488287670Smav  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
2489229997Skenelse
2490287670Smav  echo "configure: failed program was:" >&5
2491229997Sken  cat conftest.$ac_ext >&5
2492229997Skenfi
2493272911Smavrm -f conftest*
2494272911Smav	done
2495229997Sken	eval "ac_cv_funclib_krb_enable_debug=\${ac_cv_funclib_krb_enable_debug-no}"
2496287670Smav	LIBS="$ac_save_LIBS"
2497229997Skenfi
2498287670Smav
2499288348Smavfi
2500288348Smav
2501287670Smav
2502287670Smaveval "ac_res=\$ac_cv_funclib_krb_enable_debug"
2503229997Sken
2504229997Sken: << END
2505287670Smav@@@funcs="$funcs krb_enable_debug"@@@
2506229997Sken@@@libs="$libs "" "@@@
2507229997SkenEND
2508272911Smav
2509272911Smav# krb_enable_debug
2510229997Skeneval "ac_tr_func=HAVE_`echo krb_enable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
2511229997Skeneval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
2512229997Skeneval "LIB_krb_enable_debug=$ac_res"
2513229997Sken
2514229997Skencase "$ac_res" in
2515229997Sken	yes)
2516229997Sken	eval "ac_cv_func_krb_enable_debug=yes"
2517229997Sken	eval "LIB_krb_enable_debug="
2518229997Sken	cat >> confdefs.h <<EOF
2519229997Sken#define $ac_tr_func 1
2520229997SkenEOF
2521229997Sken
2522229997Sken	echo "$ac_t""yes" 1>&6
2523229997Sken	;;
2524272911Smav	no)
2525229997Sken	eval "ac_cv_func_krb_enable_debug=no"
2526229997Sken	eval "LIB_krb_enable_debug="
2527229997Sken	echo "$ac_t""no" 1>&6
2528229997Sken	;;
2529229997Sken	*)
2530229997Sken	eval "ac_cv_func_krb_enable_debug=yes"
2531229997Sken	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
2532229997Sken	cat >> confdefs.h <<EOF
2533229997Sken#define $ac_tr_func 1
2534287670SmavEOF
2535229997Sken
2536229997Sken	cat >> confdefs.h <<EOF
2537229997Sken#define $ac_tr_lib 1
2538229997SkenEOF
2539229997Sken
2540229997Sken	echo "$ac_t""yes, in $ac_res" 1>&6
2541229997Sken	;;
2542287670Smavesac
2543229997Sken
2544267877Smav
2545267877Smavif test -n "$LIB_krb_enable_debug"; then
2546229997Sken	LIBS="$LIB_krb_enable_debug $LIBS"
2547229997Skenfi
2548229997Sken
2549229997Sken	
2550229997Sken
2551229997Sken
2552229997Sken
2553229997Skenecho $ac_n "checking for krb_disable_debug""... $ac_c" 1>&6
2554229997Skenecho "configure:2555: checking for krb_disable_debug" >&5
2555229997Skenif eval "test \"`echo '$''{'ac_cv_funclib_krb_disable_debug'+set}'`\" = set"; then
2556232604Strasz  echo $ac_n "(cached) $ac_c" 1>&6
2557232604Straszelse
2558232604Strasz  
2559232604Straszif eval "test \"\$ac_cv_func_krb_disable_debug\" != yes" ; then
2560232604Strasz	ac_save_LIBS="$LIBS"
2561287500Smav	for ac_lib in "" ; do
2562287621Smav		if test -n "$ac_lib"; then 
2563271794Smav			ac_lib="-l$ac_lib"
2564287621Smav		else
2565232604Strasz			ac_lib=""
2566232604Strasz		fi
2567232604Strasz		LIBS=" $ac_lib  $ac_save_LIBS"
2568232604Strasz		cat > conftest.$ac_ext <<EOF
2569232604Strasz#line 2570 "configure"
2570287499Smav#include "confdefs.h"
2571232604Strasz
2572232604Straszint main() {
2573232604Straszkrb_disable_debug()
2574232604Strasz; return 0; }
2575232604StraszEOF
2576272911Smavif { (eval echo configure:2577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2577272911Smav  rm -rf conftest*
2578232604Strasz  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
2579232604Straszelse
2580287500Smav  echo "configure: failed program was:" >&5
2581232604Strasz  cat conftest.$ac_ext >&5
2582287500Smavfi
2583287500Smavrm -f conftest*
2584287500Smav	done
2585232604Strasz	eval "ac_cv_funclib_krb_disable_debug=\${ac_cv_funclib_krb_disable_debug-no}"
2586287621Smav	LIBS="$ac_save_LIBS"
2587287621Smavfi
2588287621Smav
2589287621Smavfi
2590287621Smav
2591287621Smav
2592287621Smaveval "ac_res=\$ac_cv_funclib_krb_disable_debug"
2593287621Smav
2594287621Smav: << END
2595232604Strasz@@@funcs="$funcs krb_disable_debug"@@@
2596287621Smav@@@libs="$libs "" "@@@
2597287621SmavEND
2598287621Smav
2599287621Smav# krb_disable_debug
2600287621Smaveval "ac_tr_func=HAVE_`echo krb_disable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
2601287621Smaveval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
2602287621Smaveval "LIB_krb_disable_debug=$ac_res"
2603232604Strasz
2604287621Smavcase "$ac_res" in
2605287621Smav	yes)
2606287621Smav	eval "ac_cv_func_krb_disable_debug=yes"
2607287621Smav	eval "LIB_krb_disable_debug="
2608288348Smav	cat >> confdefs.h <<EOF
2609287621Smav#define $ac_tr_func 1
2610288104SmavEOF
2611289017Smav
2612289017Smav	echo "$ac_t""yes" 1>&6
2613288104Smav	;;
2614289017Smav	no)
2615289017Smav	eval "ac_cv_func_krb_disable_debug=no"
2616287621Smav	eval "LIB_krb_disable_debug="
2617288348Smav	echo "$ac_t""no" 1>&6
2618287621Smav	;;
2619288348Smav	*)
2620288348Smav	eval "ac_cv_func_krb_disable_debug=yes"
2621288348Smav	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
2622288348Smav	cat >> confdefs.h <<EOF
2623288348Smav#define $ac_tr_func 1
2624288348SmavEOF
2625287621Smav
2626288348Smav	cat >> confdefs.h <<EOF
2627287621Smav#define $ac_tr_lib 1
2628287621SmavEOF
2629288348Smav
2630288348Smav	echo "$ac_t""yes, in $ac_res" 1>&6
2631287670Smav	;;
2632287621Smavesac
2633287621Smav
2634287621Smav
2635287621Smavif test -n "$LIB_krb_disable_debug"; then
2636287499Smav	LIBS="$LIB_krb_disable_debug $LIBS"
2637287500Smavfi
2638232604Strasz
2639232604Strasz	
2640232604Strasz
2641232604Strasz
2642272911Smav
2643232604Straszecho $ac_n "checking for krb_get_our_ip_for_realm""... $ac_c" 1>&6
2644232604Straszecho "configure:2645: checking for krb_get_our_ip_for_realm" >&5
2645232604Straszif eval "test \"`echo '$''{'ac_cv_funclib_krb_get_our_ip_for_realm'+set}'`\" = set"; then
2646232604Strasz  echo $ac_n "(cached) $ac_c" 1>&6
2647232604Straszelse
2648232604Strasz  
2649232604Straszif eval "test \"\$ac_cv_func_krb_get_our_ip_for_realm\" != yes" ; then
2650229997Sken	ac_save_LIBS="$LIBS"
2651229997Sken	for ac_lib in "" ; do
2652229997Sken		if test -n "$ac_lib"; then 
2653317987Smav			ac_lib="-l$ac_lib"
2654317987Smav		else
2655229997Sken			ac_lib=""
2656229997Sken		fi
2657229997Sken		LIBS=" $ac_lib  $ac_save_LIBS"
2658229997Sken		cat > conftest.$ac_ext <<EOF
2659229997Sken#line 2660 "configure"
2660229997Sken#include "confdefs.h"
2661229997Sken
2662229997Skenint main() {
2663229997Skenkrb_get_our_ip_for_realm()
2664229997Sken; return 0; }
2665229997SkenEOF
2666229997Skenif { (eval echo configure:2667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2667229997Sken  rm -rf conftest*
2668229997Sken  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
2669229997Skenelse
2670229997Sken  echo "configure: failed program was:" >&5
2671229997Sken  cat conftest.$ac_ext >&5
2672229997Skenfi
2673229997Skenrm -f conftest*
2674229997Sken	done
2675229997Sken	eval "ac_cv_funclib_krb_get_our_ip_for_realm=\${ac_cv_funclib_krb_get_our_ip_for_realm-no}"
2676229997Sken	LIBS="$ac_save_LIBS"
2677229997Skenfi
2678229997Sken
2679229997Skenfi
2680229997Sken
2681229997Sken
2682287499Smaveval "ac_res=\$ac_cv_funclib_krb_get_our_ip_for_realm"
2683229997Sken
2684287499Smav: << END
2685229997Sken@@@funcs="$funcs krb_get_our_ip_for_realm"@@@
2686229997Sken@@@libs="$libs "" "@@@
2687229997SkenEND
2688229997Sken
2689229997Sken# krb_get_our_ip_for_realm
2690229997Skeneval "ac_tr_func=HAVE_`echo krb_get_our_ip_for_realm | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
2691229997Skeneval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
2692229997Skeneval "LIB_krb_get_our_ip_for_realm=$ac_res"
2693229997Sken
2694229997Skencase "$ac_res" in
2695229997Sken	yes)
2696229997Sken	eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
2697229997Sken	eval "LIB_krb_get_our_ip_for_realm="
2698229997Sken	cat >> confdefs.h <<EOF
2699229997Sken#define $ac_tr_func 1
2700229997SkenEOF
2701229997Sken
2702229997Sken	echo "$ac_t""yes" 1>&6
2703229997Sken	;;
2704229997Sken	no)
2705229997Sken	eval "ac_cv_func_krb_get_our_ip_for_realm=no"
2706287499Smav	eval "LIB_krb_get_our_ip_for_realm="
2707229997Sken	echo "$ac_t""no" 1>&6
2708229997Sken	;;
2709229997Sken	*)
2710229997Sken	eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
2711312834Smav	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
2712287499Smav	cat >> confdefs.h <<EOF
2713229997Sken#define $ac_tr_func 1
2714288220SmavEOF
2715229997Sken
2716229997Sken	cat >> confdefs.h <<EOF
2717229997Sken#define $ac_tr_lib 1
2718264274SmavEOF
2719264274Smav
2720264274Smav	echo "$ac_t""yes, in $ac_res" 1>&6
2721229997Sken	;;
2722229997Skenesac
2723229997Sken
2724229997Sken
2725229997Skenif test -n "$LIB_krb_get_our_ip_for_realm"; then
2726229997Sken	LIBS="$LIB_krb_get_our_ip_for_realm $LIBS"
2727229997Skenfi
2728229997Sken
2729267877Smav	LIBS="$save_LIBS"
2730229997Sken	CFLAGS="$save_CFLAGS"
2731229997Sken	LIB_kdb="-lkdb -lkrb"
2732267877Smav	if test "$krb4_libdir"; then
2733229997Sken		LIB_krb4="-rpath $krb4_libdir $LIB_krb4"
2734229997Sken		LIB_kdb="-rpath $krb4_libdir -L$krb4_libdir $LIB_kdb"
2735229997Sken	fi
2736229997Skenfi
2737288348Smav
2738229997Sken
2739229997Skenif test "$with_krb4" != "no"; then
2740288369Smav  KRB4_TRUE=
2741288369Smav  KRB4_FALSE='#'
2742288369Smavelse
2743288369Smav  KRB4_TRUE='#'
2744288369Smav  KRB4_FALSE=
2745288348Smavfi
2746288348Smav
2747288348Smav
2748288348Smavif true; then
2749288348Smav  KRB5_TRUE=
2750288348Smav  KRB5_FALSE='#'
2751288348Smavelse
2752288348Smav  KRB5_TRUE='#'
2753288348Smav  KRB5_FALSE=
2754288348Smavfi
2755288348Smavcat >> confdefs.h <<\EOF
2756288348Smav#define KRB5 1
2757288348SmavEOF
2758229997Sken
2759288348Smav
2760288348Smavif test "$aix" != no; then
2761288348Smav  AIX_TRUE=
2762288348Smav  AIX_FALSE='#'
2763288348Smavelse
2764288348Smav  AIX_TRUE='#'
2765288348Smav  AIX_FALSE=
2766288348Smavfi
2767229997Sken
2768288348Smavif test "$aix" = 4; then
2769288348Smav  AIX4_TRUE=
2770229997Sken  AIX4_FALSE='#'
2771229997Skenelse
2772229997Sken  AIX4_TRUE='#'
2773288310Smav  AIX4_FALSE=
2774288310Smavfi
2775288310Smavaix_dynamic_afs=yes
2776288310Smav
2777229997Sken
2778229997Skenif test "$aix_dynamic_afs" = yes; then
2779229997Sken  AIX_DYNAMIC_AFS_TRUE=
2780229997Sken  AIX_DYNAMIC_AFS_FALSE='#'
2781229997Skenelse
2782229997Sken  AIX_DYNAMIC_AFS_TRUE='#'
2783229997Sken  AIX_DYNAMIC_AFS_FALSE=
2784229997Skenfi
2785229997Sken
2786229997Sken
2787229997Sken
2788229997Skenecho $ac_n "checking for dlopen""... $ac_c" 1>&6
2789229997Skenecho "configure:2790: checking for dlopen" >&5
2790275474Smavif eval "test \"`echo '$''{'ac_cv_funclib_dlopen'+set}'`\" = set"; then
2791287499Smav  echo $ac_n "(cached) $ac_c" 1>&6
2792275474Smavelse
2793275474Smav  
2794275474Smavif eval "test \"\$ac_cv_func_dlopen\" != yes" ; then
2795275474Smav	ac_save_LIBS="$LIBS"
2796312834Smav	for ac_lib in "" dl; do
2797287499Smav		if test -n "$ac_lib"; then 
2798275474Smav			ac_lib="-l$ac_lib"
2799275474Smav		else
2800275474Smav			ac_lib=""
2801275474Smav		fi
2802275474Smav		LIBS=" $ac_lib  $ac_save_LIBS"
2803275474Smav		cat > conftest.$ac_ext <<EOF
2804275474Smav#line 2805 "configure"
2805275474Smav#include "confdefs.h"
2806275474Smav
2807275474Smavint main() {
2808275474Smavdlopen()
2809275474Smav; return 0; }
2810275474SmavEOF
2811275474Smavif { (eval echo configure:2812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2812275474Smav  rm -rf conftest*
2813275474Smav  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break
2814275474Smavelse
2815275474Smav  echo "configure: failed program was:" >&5
2816275474Smav  cat conftest.$ac_ext >&5
2817275474Smavfi
2818275474Smavrm -f conftest*
2819275474Smav	done
2820275474Smav	eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}"
2821275474Smav	LIBS="$ac_save_LIBS"
2822275474Smavfi
2823275474Smav
2824275474Smavfi
2825275474Smav
2826275474Smav
2827275474Smaveval "ac_res=\$ac_cv_funclib_dlopen"
2828229997Sken
2829229997Sken: << END
2830229997Sken@@@funcs="$funcs dlopen"@@@
2831229997Sken@@@libs="$libs "" dl"@@@
2832229997SkenEND
2833229997Sken
2834229997Sken# dlopen
2835229997Skeneval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
2836229997Skeneval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
2837229997Skeneval "LIB_dlopen=$ac_res"
2838268283Smav
2839229997Skencase "$ac_res" in
2840229997Sken	yes)
2841229997Sken	eval "ac_cv_func_dlopen=yes"
2842229997Sken	eval "LIB_dlopen="
2843229997Sken	cat >> confdefs.h <<EOF
2844268283Smav#define $ac_tr_func 1
2845229997SkenEOF
2846229997Sken
2847229997Sken	echo "$ac_t""yes" 1>&6
2848229997Sken	;;
2849229997Sken	no)
2850274154Smav	eval "ac_cv_func_dlopen=no"
2851274154Smav	eval "LIB_dlopen="
2852274154Smav	echo "$ac_t""no" 1>&6
2853274154Smav	;;
2854274154Smav	*)
2855274154Smav	eval "ac_cv_func_dlopen=yes"
2856274154Smav	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
2857274154Smav	cat >> confdefs.h <<EOF
2858274154Smav#define $ac_tr_func 1
2859274154SmavEOF
2860313368Smav
2861229997Sken	cat >> confdefs.h <<EOF
2862229997Sken#define $ac_tr_lib 1
2863313368SmavEOF
2864229997Sken
2865267877Smav	echo "$ac_t""yes, in $ac_res" 1>&6
2866313368Smav	;;
2867264020Straszesac
2868229997Sken
2869313368Smav
2870313368Smav
2871229997Skenif test "$aix" != no; then
2872313368Smav	if test "$aix_dynamic_afs" = yes; then
2873313368Smav		if test "$ac_cv_funclib_dlopen" = yes; then
2874313368Smav			AIX_EXTRA_KAFS=
2875313368Smav		elif test "$ac_cv_funclib_dlopen" != no; then
2876313368Smav			AIX_EXTRA_KAFS="$ac_cv_funclib_dlopen"
2877313368Smav		else
2878313368Smav			AIX_EXTRA_KAFS=-lld
2879313368Smav		fi
2880313368Smav	else
2881313368Smav		AIX_EXTRA_KAFS=
2882313368Smav	fi
2883313368Smavfi
2884313368Smav
2885313368Smav
2886313368Smav
2887313368Smavif test "$ac_cv_funclib_dlopen" != no; then
2888313368Smav  HAVE_DLOPEN_TRUE=
2889313368Smav  HAVE_DLOPEN_FALSE='#'
2890313368Smavelse
2891313368Smav  HAVE_DLOPEN_TRUE='#'
2892313368Smav  HAVE_DLOPEN_FALSE=
2893313368Smavfi
2894313368Smav# Check whether --enable-kaserver or --disable-kaserver was given.
2895313368Smavif test "${enable_kaserver+set}" = set; then
2896229997Sken  enableval="$enable_kaserver"
2897  :
2898fi
2899
2900if test "$enable_kaserver" = yes; then
2901	cat >> confdefs.h <<\EOF
2902#define KASERVER 1
2903EOF
2904
2905	if test "$with_krb4" = "no"; then
2906		{ echo "configure: error: kaserver requires krb4" 1>&2; exit 1; }
2907		exit 1
2908	fi
2909fi
2910
2911# Check whether --enable-kaserver-db or --disable-kaserver-db was given.
2912if test "${enable_kaserver_db+set}" = set; then
2913  enableval="$enable_kaserver_db"
2914  :
2915fi
2916
2917if test "$enable_kaserver_db" = yes; then
2918	cat >> confdefs.h <<\EOF
2919#define KASERVER_DB 1
2920EOF
2921
2922	if test "$with_krb4" = "no"; then
2923		{ echo "configure: error: kaserver-db requires krb4" 1>&2; exit 1; }
2924		exit 1
2925	fi
2926fi
2927
2928otp=yes
2929# Check whether --enable-otp or --disable-otp was given.
2930if test "${enable_otp+set}" = set; then
2931  enableval="$enable_otp"
2932  
2933if test "$enableval" = "no"; then
2934	otp=no
2935fi
2936
2937fi
2938
2939if test "$otp" = "yes"; then
2940	cat >> confdefs.h <<\EOF
2941#define OTP 1
2942EOF
2943
2944	LIB_otp='$(top_builddir)/lib/otp/libotp.la'
2945fi
2946
2947
2948
2949if test "$otp" = yes; then
2950  OTP_TRUE=
2951  OTP_FALSE='#'
2952else
2953  OTP_TRUE='#'
2954  OTP_FALSE=
2955fi
2956
2957# Check whether --enable-osfc2 or --disable-osfc2 was given.
2958if test "${enable_osfc2+set}" = set; then
2959  enableval="$enable_osfc2"
2960  :
2961fi
2962
2963LIB_security=
2964if test "$enable_osfc2" = yes; then
2965	cat >> confdefs.h <<\EOF
2966#define HAVE_OSFC2 1
2967EOF
2968
2969	LIB_security=-lsecurity
2970fi
2971
2972
2973
2974# Extract the first word of "nroff", so it can be a program name with args.
2975set dummy nroff; ac_word=$2
2976echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2977echo "configure:2978: checking for $ac_word" >&5
2978if eval "test \"`echo '$''{'ac_cv_path_NROFF'+set}'`\" = set"; then
2979  echo $ac_n "(cached) $ac_c" 1>&6
2980else
2981  case "$NROFF" in
2982  /*)
2983  ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
2984  ;;
2985  ?:/*)			 
2986  ac_cv_path_NROFF="$NROFF" # Let the user override the test with a dos path.
2987  ;;
2988  *)
2989  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2990  ac_dummy="$PATH"
2991  for ac_dir in $ac_dummy; do 
2992    test -z "$ac_dir" && ac_dir=.
2993    if test -f $ac_dir/$ac_word; then
2994      ac_cv_path_NROFF="$ac_dir/$ac_word"
2995      break
2996    fi
2997  done
2998  IFS="$ac_save_ifs"
2999  ;;
3000esac
3001fi
3002NROFF="$ac_cv_path_NROFF"
3003if test -n "$NROFF"; then
3004  echo "$ac_t""$NROFF" 1>&6
3005else
3006  echo "$ac_t""no" 1>&6
3007fi
3008
3009# Extract the first word of "groff", so it can be a program name with args.
3010set dummy groff; ac_word=$2
3011echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3012echo "configure:3013: checking for $ac_word" >&5
3013if eval "test \"`echo '$''{'ac_cv_path_GROFF'+set}'`\" = set"; then
3014  echo $ac_n "(cached) $ac_c" 1>&6
3015else
3016  case "$GROFF" in
3017  /*)
3018  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
3019  ;;
3020  ?:/*)			 
3021  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a dos path.
3022  ;;
3023  *)
3024  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
3025  ac_dummy="$PATH"
3026  for ac_dir in $ac_dummy; do 
3027    test -z "$ac_dir" && ac_dir=.
3028    if test -f $ac_dir/$ac_word; then
3029      ac_cv_path_GROFF="$ac_dir/$ac_word"
3030      break
3031    fi
3032  done
3033  IFS="$ac_save_ifs"
3034  ;;
3035esac
3036fi
3037GROFF="$ac_cv_path_GROFF"
3038if test -n "$GROFF"; then
3039  echo "$ac_t""$GROFF" 1>&6
3040else
3041  echo "$ac_t""no" 1>&6
3042fi
3043
3044echo $ac_n "checking how to format man pages""... $ac_c" 1>&6
3045echo "configure:3046: checking how to format man pages" >&5
3046if eval "test \"`echo '$''{'ac_cv_sys_man_format'+set}'`\" = set"; then
3047  echo $ac_n "(cached) $ac_c" 1>&6
3048else
3049  cat > conftest.1 << END
3050.Dd January 1, 1970
3051.Dt CONFTEST 1
3052.Sh NAME
3053.Nm conftest
3054.Nd
3055foobar
3056END
3057
3058if test "$NROFF" ; then
3059	for i in "-mdoc" "-mandoc"; do
3060		if "$NROFF" $i conftest.1 2> /dev/null | \
3061			grep Jan > /dev/null 2>&1 ; then
3062			ac_cv_sys_man_format="$NROFF $i"
3063			break
3064		fi
3065	done
3066fi
3067if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then
3068	for i in "-mdoc" "-mandoc"; do
3069		if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \
3070			grep Jan > /dev/null 2>&1 ; then
3071			ac_cv_sys_man_format="$GROFF -Tascii $i"
3072			break
3073		fi
3074	done
3075fi
3076if test "$ac_cv_sys_man_format"; then
3077	ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@"
3078fi
3079
3080fi
3081
3082echo "$ac_t""$ac_cv_sys_man_format" 1>&6
3083if test "$ac_cv_sys_man_format"; then
3084	CATMAN="$ac_cv_sys_man_format"
3085	
3086fi
3087
3088
3089if test "$CATMAN"; then
3090  CATMAN_TRUE=
3091  CATMAN_FALSE='#'
3092else
3093  CATMAN_TRUE='#'
3094  CATMAN_FALSE=
3095fi
3096echo $ac_n "checking extension of pre-formatted manual pages""... $ac_c" 1>&6
3097echo "configure:3098: checking extension of pre-formatted manual pages" >&5
3098if eval "test \"`echo '$''{'ac_cv_sys_catman_ext'+set}'`\" = set"; then
3099  echo $ac_n "(cached) $ac_c" 1>&6
3100else
3101  if grep _suffix /etc/man.conf > /dev/null 2>&1; then
3102	ac_cv_sys_catman_ext=0
3103else
3104	ac_cv_sys_catman_ext=number
3105fi
3106
3107fi
3108
3109echo "$ac_t""$ac_cv_sys_catman_ext" 1>&6
3110if test "$ac_cv_sys_catman_ext" = number; then
3111	CATMANEXT='$$ext'
3112else
3113	CATMANEXT=0
3114fi
3115
3116
3117
3118
3119
3120# Check whether --with-readline or --without-readline was given.
3121if test "${with_readline+set}" = set; then
3122  withval="$with_readline"
3123  :
3124fi
3125
3126# Check whether --with-readline-lib or --without-readline-lib was given.
3127if test "${with_readline_lib+set}" = set; then
3128  withval="$with_readline_lib"
3129  if test "$withval" = "yes" -o "$withval" = "no"; then
3130  { echo "configure: error: No argument for --with-readline-lib" 1>&2; exit 1; }
3131elif test "X$with_readline" = "X"; then
3132  with_readline=yes
3133fi
3134fi
3135
3136# Check whether --with-readline-include or --without-readline-include was given.
3137if test "${with_readline_include+set}" = set; then
3138  withval="$with_readline_include"
3139  if test "$withval" = "yes" -o "$withval" = "no"; then
3140  { echo "configure: error: No argument for --with-readline-include" 1>&2; exit 1; }
3141elif test "X$with_readline" = "X"; then
3142  with_readline=yes
3143fi
3144fi
3145
3146
3147echo $ac_n "checking for readline""... $ac_c" 1>&6
3148echo "configure:3149: checking for readline" >&5
3149
3150case "$with_readline" in
3151yes)	;;
3152no)	;;
3153"")	;;
3154*)	if test "$with_readline_include" = ""; then
3155		with_readline_include="$with_readline/include"
3156	fi
3157	if test "$with_readline_lib" = ""; then
3158		with_readline_lib="$with_readline/lib$abilibdirext"
3159	fi
3160	;;
3161esac
3162header_dirs=
3163lib_dirs=
3164d=''
3165for i in $d; do
3166	header_dirs="$header_dirs $i/include"
3167	lib_dirs="$lib_dirs $i/lib$abilibdirext"
3168done
3169
3170case "$with_readline_include" in
3171yes) ;;
3172no)  ;;
3173*)   header_dirs="$with_readline_include $header_dirs";;
3174esac
3175case "$with_readline_lib" in
3176yes) ;;
3177no)  ;;
3178*)   lib_dirs="$with_readline_lib $lib_dirs";;
3179esac
3180
3181save_CFLAGS="$CFLAGS"
3182save_LIBS="$LIBS"
3183ires= lres=
3184for i in $header_dirs; do
3185	CFLAGS="-I$i $save_CFLAGS"
3186	cat > conftest.$ac_ext <<EOF
3187#line 3188 "configure"
3188#include "confdefs.h"
3189#include <stdio.h>
3190 #include <readline.h>
3191int main() {
3192
3193; return 0; }
3194EOF
3195if { (eval echo configure:3196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3196  rm -rf conftest*
3197  ires=$i;break
3198else
3199  echo "configure: failed program was:" >&5
3200  cat conftest.$ac_ext >&5
3201fi
3202rm -f conftest*
3203done
3204for i in $lib_dirs; do
3205	LIBS="-L$i -lreadline  $save_LIBS"
3206	cat > conftest.$ac_ext <<EOF
3207#line 3208 "configure"
3208#include "confdefs.h"
3209#include <stdio.h>
3210 #include <readline.h>
3211int main() {
3212
3213; return 0; }
3214EOF
3215if { (eval echo configure:3216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3216  rm -rf conftest*
3217  lres=$i;break
3218else
3219  echo "configure: failed program was:" >&5
3220  cat conftest.$ac_ext >&5
3221fi
3222rm -f conftest*
3223done
3224CFLAGS="$save_CFLAGS"
3225LIBS="$save_LIBS"
3226
3227if test "$ires" -a "$lres" -a "$with_readline" != "no"; then
3228	readline_includedir="$ires"
3229	readline_libdir="$lres"
3230	INCLUDE_readline="-I$readline_includedir"
3231	LIB_readline="-L$readline_libdir -lreadline"
3232	cat >> confdefs.h <<EOF
3233#define `echo readline | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1
3234EOF
3235
3236	with_readline=yes
3237	echo "$ac_t""headers $ires, libraries $lres" 1>&6
3238else
3239	INCLUDE_readline=
3240	LIB_readline=
3241	with_readline=no
3242	echo "$ac_t""$with_readline" 1>&6
3243fi
3244
3245
3246
3247
3248
3249# Check whether --with-hesiod or --without-hesiod was given.
3250if test "${with_hesiod+set}" = set; then
3251  withval="$with_hesiod"
3252  :
3253fi
3254
3255# Check whether --with-hesiod-lib or --without-hesiod-lib was given.
3256if test "${with_hesiod_lib+set}" = set; then
3257  withval="$with_hesiod_lib"
3258  if test "$withval" = "yes" -o "$withval" = "no"; then
3259  { echo "configure: error: No argument for --with-hesiod-lib" 1>&2; exit 1; }
3260elif test "X$with_hesiod" = "X"; then
3261  with_hesiod=yes
3262fi
3263fi
3264
3265# Check whether --with-hesiod-include or --without-hesiod-include was given.
3266if test "${with_hesiod_include+set}" = set; then
3267  withval="$with_hesiod_include"
3268  if test "$withval" = "yes" -o "$withval" = "no"; then
3269  { echo "configure: error: No argument for --with-hesiod-include" 1>&2; exit 1; }
3270elif test "X$with_hesiod" = "X"; then
3271  with_hesiod=yes
3272fi
3273fi
3274
3275
3276echo $ac_n "checking for hesiod""... $ac_c" 1>&6
3277echo "configure:3278: checking for hesiod" >&5
3278
3279case "$with_hesiod" in
3280yes)	;;
3281no)	;;
3282"")	;;
3283*)	if test "$with_hesiod_include" = ""; then
3284		with_hesiod_include="$with_hesiod/include"
3285	fi
3286	if test "$with_hesiod_lib" = ""; then
3287		with_hesiod_lib="$with_hesiod/lib$abilibdirext"
3288	fi
3289	;;
3290esac
3291header_dirs=
3292lib_dirs=
3293d=''
3294for i in $d; do
3295	header_dirs="$header_dirs $i/include"
3296	lib_dirs="$lib_dirs $i/lib$abilibdirext"
3297done
3298
3299case "$with_hesiod_include" in
3300yes) ;;
3301no)  ;;
3302*)   header_dirs="$with_hesiod_include $header_dirs";;
3303esac
3304case "$with_hesiod_lib" in
3305yes) ;;
3306no)  ;;
3307*)   lib_dirs="$with_hesiod_lib $lib_dirs";;
3308esac
3309
3310save_CFLAGS="$CFLAGS"
3311save_LIBS="$LIBS"
3312ires= lres=
3313for i in $header_dirs; do
3314	CFLAGS="-I$i $save_CFLAGS"
3315	cat > conftest.$ac_ext <<EOF
3316#line 3317 "configure"
3317#include "confdefs.h"
3318#include <hesiod.h>
3319int main() {
3320
3321; return 0; }
3322EOF
3323if { (eval echo configure:3324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3324  rm -rf conftest*
3325  ires=$i;break
3326else
3327  echo "configure: failed program was:" >&5
3328  cat conftest.$ac_ext >&5
3329fi
3330rm -f conftest*
3331done
3332for i in $lib_dirs; do
3333	LIBS="-L$i -lhesiod  $save_LIBS"
3334	cat > conftest.$ac_ext <<EOF
3335#line 3336 "configure"
3336#include "confdefs.h"
3337#include <hesiod.h>
3338int main() {
3339
3340; return 0; }
3341EOF
3342if { (eval echo configure:3343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3343  rm -rf conftest*
3344  lres=$i;break
3345else
3346  echo "configure: failed program was:" >&5
3347  cat conftest.$ac_ext >&5
3348fi
3349rm -f conftest*
3350done
3351CFLAGS="$save_CFLAGS"
3352LIBS="$save_LIBS"
3353
3354if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then
3355	hesiod_includedir="$ires"
3356	hesiod_libdir="$lres"
3357	INCLUDE_hesiod="-I$hesiod_includedir"
3358	LIB_hesiod="-L$hesiod_libdir -lhesiod"
3359	cat >> confdefs.h <<EOF
3360#define `echo hesiod | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1
3361EOF
3362
3363	with_hesiod=yes
3364	echo "$ac_t""headers $ires, libraries $lres" 1>&6
3365else
3366	INCLUDE_hesiod=
3367	LIB_hesiod=
3368	with_hesiod=no
3369	echo "$ac_t""$with_hesiod" 1>&6
3370fi
3371
3372
3373
3374
3375
3376# Check whether --enable-bigendian or --disable-bigendian was given.
3377if test "${enable_bigendian+set}" = set; then
3378  enableval="$enable_bigendian"
3379  krb_cv_c_bigendian=yes
3380fi
3381
3382# Check whether --enable-littleendian or --disable-littleendian was given.
3383if test "${enable_littleendian+set}" = set; then
3384  enableval="$enable_littleendian"
3385  krb_cv_c_bigendian=no
3386fi
3387
3388echo $ac_n "checking whether byte order is known at compile time""... $ac_c" 1>&6
3389echo "configure:3390: checking whether byte order is known at compile time" >&5
3390if eval "test \"`echo '$''{'krb_cv_c_bigendian_compile'+set}'`\" = set"; then
3391  echo $ac_n "(cached) $ac_c" 1>&6
3392else
3393  cat > conftest.$ac_ext <<EOF
3394#line 3395 "configure"
3395#include "confdefs.h"
3396
3397#include <sys/types.h>
3398#include <sys/param.h>
3399int main() {
3400
3401#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3402 bogus endian macros
3403#endif
3404; return 0; }
3405EOF
3406if { (eval echo configure:3407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3407  rm -rf conftest*
3408  krb_cv_c_bigendian_compile=yes
3409else
3410  echo "configure: failed program was:" >&5
3411  cat conftest.$ac_ext >&5
3412  rm -rf conftest*
3413  krb_cv_c_bigendian_compile=no
3414fi
3415rm -f conftest*
3416fi
3417
3418echo "$ac_t""$krb_cv_c_bigendian_compile" 1>&6
3419if test "$krb_cv_c_bigendian_compile" = "no"; then
3420  echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3421echo "configure:3422: checking whether byte ordering is bigendian" >&5
3422if eval "test \"`echo '$''{'krb_cv_c_bigendian'+set}'`\" = set"; then
3423  echo $ac_n "(cached) $ac_c" 1>&6
3424else
3425  
3426  if test "$krb_cv_c_bigendian" = ""; then
3427    krb_cv_c_bigendian=unknown
3428  fi
3429  cat > conftest.$ac_ext <<EOF
3430#line 3431 "configure"
3431#include "confdefs.h"
3432
3433#include <sys/types.h>
3434#include <sys/param.h>
3435int main() {
3436
3437#if BYTE_ORDER != BIG_ENDIAN
3438  not big endian
3439#endif
3440; return 0; }
3441EOF
3442if { (eval echo configure:3443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3443  rm -rf conftest*
3444  krb_cv_c_bigendian=yes
3445else
3446  echo "configure: failed program was:" >&5
3447  cat conftest.$ac_ext >&5
3448  rm -rf conftest*
3449  krb_cv_c_bigendian=no
3450fi
3451rm -f conftest*
3452  if test "$krb_cv_c_bigendian" = "unknown"; then
3453    if test "$cross_compiling" = yes; then
3454  { echo "configure: error: specify either --enable-bigendian or --enable-littleendian" 1>&2; exit 1; }
3455else
3456  cat > conftest.$ac_ext <<EOF
3457#line 3458 "configure"
3458#include "confdefs.h"
3459main () {
3460      /* Are we little or big endian?  From Harbison&Steele.  */
3461      union
3462      {
3463	long l;
3464	char c[sizeof (long)];
3465      } u;
3466      u.l = 1;
3467      exit (u.c[sizeof (long) - 1] == 1);
3468    }
3469EOF
3470if { (eval echo configure:3471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3471then
3472  krb_cv_c_bigendian=no
3473else
3474  echo "configure: failed program was:" >&5
3475  cat conftest.$ac_ext >&5
3476  rm -fr conftest*
3477  krb_cv_c_bigendian=yes
3478fi
3479rm -fr conftest*
3480fi
3481
3482  fi
3483  
3484fi
3485
3486echo "$ac_t""$krb_cv_c_bigendian" 1>&6
3487  if test "$krb_cv_c_bigendian" = "yes"; then
3488    cat >> confdefs.h <<\EOF
3489#define WORDS_BIGENDIAN 1
3490EOF
3491  fi
3492fi
3493if test "$krb_cv_c_bigendian_compile" = "yes"; then
3494  cat >> confdefs.h <<\EOF
3495#define ENDIANESS_IN_SYS_PARAM_H 1
3496EOF
3497fi
3498
3499echo $ac_n "checking for inline""... $ac_c" 1>&6
3500echo "configure:3501: checking for inline" >&5
3501if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3502  echo $ac_n "(cached) $ac_c" 1>&6
3503else
3504  ac_cv_c_inline=no
3505for ac_kw in inline __inline__ __inline; do
3506  cat > conftest.$ac_ext <<EOF
3507#line 3508 "configure"
3508#include "confdefs.h"
3509
3510int main() {
3511} $ac_kw foo() {
3512; return 0; }
3513EOF
3514if { (eval echo configure:3515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3515  rm -rf conftest*
3516  ac_cv_c_inline=$ac_kw; break
3517else
3518  echo "configure: failed program was:" >&5
3519  cat conftest.$ac_ext >&5
3520fi
3521rm -f conftest*
3522done
3523
3524fi
3525
3526echo "$ac_t""$ac_cv_c_inline" 1>&6
3527case "$ac_cv_c_inline" in
3528  inline | yes) ;;
3529  no) cat >> confdefs.h <<\EOF
3530#define inline 
3531EOF
3532 ;;
3533  *)  cat >> confdefs.h <<EOF
3534#define inline $ac_cv_c_inline
3535EOF
3536 ;;
3537esac
3538
3539
3540# If we find X, set shell vars x_includes and x_libraries to the
3541# paths, otherwise set no_x=yes.
3542# Uses ac_ vars as temps to allow command line to override cache and checks.
3543# --without-x overrides everything else, but does not touch the cache.
3544echo $ac_n "checking for X""... $ac_c" 1>&6
3545echo "configure:3546: checking for X" >&5
3546
3547# Check whether --with-x or --without-x was given.
3548if test "${with_x+set}" = set; then
3549  withval="$with_x"
3550  :
3551fi
3552
3553# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3554if test "x$with_x" = xno; then
3555  # The user explicitly disabled X.
3556  have_x=disabled
3557else
3558  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3559    # Both variables are already set.
3560    have_x=yes
3561  else
3562if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3563  echo $ac_n "(cached) $ac_c" 1>&6
3564else
3565  # One or both of the vars are not set, and there is no cached value.
3566ac_x_includes=NO ac_x_libraries=NO
3567rm -fr conftestdir
3568if mkdir conftestdir; then
3569  cd conftestdir
3570  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3571  cat > Imakefile <<'EOF'
3572acfindx:
3573	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3574EOF
3575  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3576    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3577    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3578    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3579    for ac_extension in a so sl; do
3580      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3581        test -f $ac_im_libdir/libX11.$ac_extension; then
3582        ac_im_usrlibdir=$ac_im_libdir; break
3583      fi
3584    done
3585    # Screen out bogus values from the imake configuration.  They are
3586    # bogus both because they are the default anyway, and because
3587    # using them would break gcc on systems where it needs fixed includes.
3588    case "$ac_im_incroot" in
3589	/usr/include) ;;
3590	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
3591    esac
3592    case "$ac_im_usrlibdir" in
3593	/usr/lib | /lib) ;;
3594	*) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3595    esac
3596  fi
3597  cd ..
3598  rm -fr conftestdir
3599fi
3600
3601if test "$ac_x_includes" = NO; then
3602  # Guess where to find include files, by looking for this one X11 .h file.
3603  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3604
3605  # First, try using that file with no special directory specified.
3606cat > conftest.$ac_ext <<EOF
3607#line 3608 "configure"
3608#include "confdefs.h"
3609#include <$x_direct_test_include>
3610EOF
3611ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3612{ (eval echo configure:3613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3613ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3614if test -z "$ac_err"; then
3615  rm -rf conftest*
3616  # We can compile using X headers with no special include directory.
3617ac_x_includes=
3618else
3619  echo "$ac_err" >&5
3620  echo "configure: failed program was:" >&5
3621  cat conftest.$ac_ext >&5
3622  rm -rf conftest*
3623  # Look for the header file in a standard set of common directories.
3624# Check X11 before X11Rn because it is often a symlink to the current release.
3625  for ac_dir in               \
3626    /usr/X11/include          \
3627    /usr/X11R6/include        \
3628    /usr/X11R5/include        \
3629    /usr/X11R4/include        \
3630                              \
3631    /usr/include/X11          \
3632    /usr/include/X11R6        \
3633    /usr/include/X11R5        \
3634    /usr/include/X11R4        \
3635                              \
3636    /usr/local/X11/include    \
3637    /usr/local/X11R6/include  \
3638    /usr/local/X11R5/include  \
3639    /usr/local/X11R4/include  \
3640                              \
3641    /usr/local/include/X11    \
3642    /usr/local/include/X11R6  \
3643    /usr/local/include/X11R5  \
3644    /usr/local/include/X11R4  \
3645                              \
3646    /usr/X386/include         \
3647    /usr/x386/include         \
3648    /usr/XFree86/include/X11  \
3649                              \
3650    /usr/include              \
3651    /usr/local/include        \
3652    /usr/unsupported/include  \
3653    /usr/athena/include       \
3654    /usr/local/x11r5/include  \
3655    /usr/lpp/Xamples/include  \
3656                              \
3657    /usr/openwin/include      \
3658    /usr/openwin/share/include \
3659    ; \
3660  do
3661    if test -r "$ac_dir/$x_direct_test_include"; then
3662      ac_x_includes=$ac_dir
3663      break
3664    fi
3665  done
3666fi
3667rm -f conftest*
3668fi # $ac_x_includes = NO
3669
3670if test "$ac_x_libraries" = NO; then
3671  # Check for the libraries.
3672
3673  test -z "$x_direct_test_library" && x_direct_test_library=Xt
3674  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3675
3676  # See if we find them without any special options.
3677  # Don't add to $LIBS permanently.
3678  ac_save_LIBS="$LIBS"
3679  LIBS="-l$x_direct_test_library $LIBS"
3680cat > conftest.$ac_ext <<EOF
3681#line 3682 "configure"
3682#include "confdefs.h"
3683
3684int main() {
3685${x_direct_test_function}()
3686; return 0; }
3687EOF
3688if { (eval echo configure:3689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3689  rm -rf conftest*
3690  LIBS="$ac_save_LIBS"
3691# We can link X programs with no special library path.
3692ac_x_libraries=
3693else
3694  echo "configure: failed program was:" >&5
3695  cat conftest.$ac_ext >&5
3696  rm -rf conftest*
3697  LIBS="$ac_save_LIBS"
3698# First see if replacing the include by lib works.
3699# Check X11 before X11Rn because it is often a symlink to the current release.
3700for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3701    /usr/X11/lib          \
3702    /usr/X11R6/lib        \
3703    /usr/X11R5/lib        \
3704    /usr/X11R4/lib        \
3705                          \
3706    /usr/lib/X11          \
3707    /usr/lib/X11R6        \
3708    /usr/lib/X11R5        \
3709    /usr/lib/X11R4        \
3710                          \
3711    /usr/local/X11/lib    \
3712    /usr/local/X11R6/lib  \
3713    /usr/local/X11R5/lib  \
3714    /usr/local/X11R4/lib  \
3715                          \
3716    /usr/local/lib/X11    \
3717    /usr/local/lib/X11R6  \
3718    /usr/local/lib/X11R5  \
3719    /usr/local/lib/X11R4  \
3720                          \
3721    /usr/X386/lib         \
3722    /usr/x386/lib         \
3723    /usr/XFree86/lib/X11  \
3724                          \
3725    /usr/lib              \
3726    /usr/local/lib        \
3727    /usr/unsupported/lib  \
3728    /usr/athena/lib       \
3729    /usr/local/x11r5/lib  \
3730    /usr/lpp/Xamples/lib  \
3731    /lib/usr/lib/X11	  \
3732                          \
3733    /usr/openwin/lib      \
3734    /usr/openwin/share/lib \
3735    ; \
3736do
3737  for ac_extension in a so sl; do
3738    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3739      ac_x_libraries=$ac_dir
3740      break 2
3741    fi
3742  done
3743done
3744fi
3745rm -f conftest*
3746fi # $ac_x_libraries = NO
3747
3748if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3749  # Didn't find X anywhere.  Cache the known absence of X.
3750  ac_cv_have_x="have_x=no"
3751else
3752  # Record where we found X for the cache.
3753  ac_cv_have_x="have_x=yes \
3754	        ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3755fi
3756fi
3757  fi
3758  eval "$ac_cv_have_x"
3759fi # $with_x != no
3760
3761if test "$have_x" != yes; then
3762  echo "$ac_t""$have_x" 1>&6
3763  no_x=yes
3764else
3765  # If each of the values was on the command line, it overrides each guess.
3766  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3767  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3768  # Update the cache value to reflect the command line values.
3769  ac_cv_have_x="have_x=yes \
3770		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3771  echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3772fi
3773
3774
3775if test "$no_x" = yes; then
3776  # Not all programs may use this symbol, but it does not hurt to define it.
3777  cat >> confdefs.h <<\EOF
3778#define X_DISPLAY_MISSING 1
3779EOF
3780
3781  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3782else
3783  if test -n "$x_includes"; then
3784    X_CFLAGS="$X_CFLAGS -I$x_includes"
3785  fi
3786
3787  # It would also be nice to do this for all -L options, not just this one.
3788  if test -n "$x_libraries"; then
3789    X_LIBS="$X_LIBS -L$x_libraries"
3790    # For Solaris; some versions of Sun CC require a space after -R and
3791    # others require no space.  Words are not sufficient . . . .
3792    case "`(uname -sr) 2>/dev/null`" in
3793    "SunOS 5"*)
3794      echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3795echo "configure:3796: checking whether -R must be followed by a space" >&5
3796      ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3797      cat > conftest.$ac_ext <<EOF
3798#line 3799 "configure"
3799#include "confdefs.h"
3800
3801int main() {
3802
3803; return 0; }
3804EOF
3805if { (eval echo configure:3806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3806  rm -rf conftest*
3807  ac_R_nospace=yes
3808else
3809  echo "configure: failed program was:" >&5
3810  cat conftest.$ac_ext >&5
3811  rm -rf conftest*
3812  ac_R_nospace=no
3813fi
3814rm -f conftest*
3815      if test $ac_R_nospace = yes; then
3816	echo "$ac_t""no" 1>&6
3817	X_LIBS="$X_LIBS -R$x_libraries"
3818      else
3819	LIBS="$ac_xsave_LIBS -R $x_libraries"
3820	cat > conftest.$ac_ext <<EOF
3821#line 3822 "configure"
3822#include "confdefs.h"
3823
3824int main() {
3825
3826; return 0; }
3827EOF
3828if { (eval echo configure:3829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3829  rm -rf conftest*
3830  ac_R_space=yes
3831else
3832  echo "configure: failed program was:" >&5
3833  cat conftest.$ac_ext >&5
3834  rm -rf conftest*
3835  ac_R_space=no
3836fi
3837rm -f conftest*
3838	if test $ac_R_space = yes; then
3839	  echo "$ac_t""yes" 1>&6
3840	  X_LIBS="$X_LIBS -R $x_libraries"
3841	else
3842	  echo "$ac_t""neither works" 1>&6
3843	fi
3844      fi
3845      LIBS="$ac_xsave_LIBS"
3846    esac
3847  fi
3848
3849  # Check for system-dependent libraries X programs must link with.
3850  # Do this before checking for the system-independent R6 libraries
3851  # (-lICE), since we may need -lsocket or whatever for X linking.
3852
3853  if test "$ISC" = yes; then
3854    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3855  else
3856    # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3857    # libraries were built with DECnet support.  And karl@cs.umb.edu says
3858    # the Alpha needs dnet_stub (dnet does not exist).
3859    echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3860echo "configure:3861: checking for dnet_ntoa in -ldnet" >&5
3861ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3862if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3863  echo $ac_n "(cached) $ac_c" 1>&6
3864else
3865  ac_save_LIBS="$LIBS"
3866LIBS="-ldnet  $LIBS"
3867cat > conftest.$ac_ext <<EOF
3868#line 3869 "configure"
3869#include "confdefs.h"
3870/* Override any gcc2 internal prototype to avoid an error.  */
3871/* We use char because int might match the return type of a gcc2
3872    builtin and then its argument prototype would still apply.  */
3873char dnet_ntoa();
3874
3875int main() {
3876dnet_ntoa()
3877; return 0; }
3878EOF
3879if { (eval echo configure:3880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3880  rm -rf conftest*
3881  eval "ac_cv_lib_$ac_lib_var=yes"
3882else
3883  echo "configure: failed program was:" >&5
3884  cat conftest.$ac_ext >&5
3885  rm -rf conftest*
3886  eval "ac_cv_lib_$ac_lib_var=no"
3887fi
3888rm -f conftest*
3889LIBS="$ac_save_LIBS"
3890
3891fi
3892if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3893  echo "$ac_t""yes" 1>&6
3894  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3895else
3896  echo "$ac_t""no" 1>&6
3897fi
3898
3899    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3900      echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3901echo "configure:3902: checking for dnet_ntoa in -ldnet_stub" >&5
3902ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3903if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3904  echo $ac_n "(cached) $ac_c" 1>&6
3905else
3906  ac_save_LIBS="$LIBS"
3907LIBS="-ldnet_stub  $LIBS"
3908cat > conftest.$ac_ext <<EOF
3909#line 3910 "configure"
3910#include "confdefs.h"
3911/* Override any gcc2 internal prototype to avoid an error.  */
3912/* We use char because int might match the return type of a gcc2
3913    builtin and then its argument prototype would still apply.  */
3914char dnet_ntoa();
3915
3916int main() {
3917dnet_ntoa()
3918; return 0; }
3919EOF
3920if { (eval echo configure:3921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3921  rm -rf conftest*
3922  eval "ac_cv_lib_$ac_lib_var=yes"
3923else
3924  echo "configure: failed program was:" >&5
3925  cat conftest.$ac_ext >&5
3926  rm -rf conftest*
3927  eval "ac_cv_lib_$ac_lib_var=no"
3928fi
3929rm -f conftest*
3930LIBS="$ac_save_LIBS"
3931
3932fi
3933if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3934  echo "$ac_t""yes" 1>&6
3935  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3936else
3937  echo "$ac_t""no" 1>&6
3938fi
3939
3940    fi
3941
3942    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3943    # to get the SysV transport functions.
3944    # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3945    # needs -lnsl.
3946    # The nsl library prevents programs from opening the X display
3947    # on Irix 5.2, according to dickey@clark.net.
3948    echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3949echo "configure:3950: checking for gethostbyname" >&5
3950if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3951  echo $ac_n "(cached) $ac_c" 1>&6
3952else
3953  cat > conftest.$ac_ext <<EOF
3954#line 3955 "configure"
3955#include "confdefs.h"
3956/* System header to define __stub macros and hopefully few prototypes,
3957    which can conflict with char gethostbyname(); below.  */
3958#include <assert.h>
3959/* Override any gcc2 internal prototype to avoid an error.  */
3960/* We use char because int might match the return type of a gcc2
3961    builtin and then its argument prototype would still apply.  */
3962char gethostbyname();
3963
3964int main() {
3965
3966/* The GNU C library defines this for functions which it implements
3967    to always fail with ENOSYS.  Some functions are actually named
3968    something starting with __ and the normal name is an alias.  */
3969#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3970choke me
3971#else
3972gethostbyname();
3973#endif
3974
3975; return 0; }
3976EOF
3977if { (eval echo configure:3978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3978  rm -rf conftest*
3979  eval "ac_cv_func_gethostbyname=yes"
3980else
3981  echo "configure: failed program was:" >&5
3982  cat conftest.$ac_ext >&5
3983  rm -rf conftest*
3984  eval "ac_cv_func_gethostbyname=no"
3985fi
3986rm -f conftest*
3987fi
3988
3989if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3990  echo "$ac_t""yes" 1>&6
3991  :
3992else
3993  echo "$ac_t""no" 1>&6
3994fi
3995
3996    if test $ac_cv_func_gethostbyname = no; then
3997      echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3998echo "configure:3999: checking for gethostbyname in -lnsl" >&5
3999ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4000if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4001  echo $ac_n "(cached) $ac_c" 1>&6
4002else
4003  ac_save_LIBS="$LIBS"
4004LIBS="-lnsl  $LIBS"
4005cat > conftest.$ac_ext <<EOF
4006#line 4007 "configure"
4007#include "confdefs.h"
4008/* Override any gcc2 internal prototype to avoid an error.  */
4009/* We use char because int might match the return type of a gcc2
4010    builtin and then its argument prototype would still apply.  */
4011char gethostbyname();
4012
4013int main() {
4014gethostbyname()
4015; return 0; }
4016EOF
4017if { (eval echo configure:4018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4018  rm -rf conftest*
4019  eval "ac_cv_lib_$ac_lib_var=yes"
4020else
4021  echo "configure: failed program was:" >&5
4022  cat conftest.$ac_ext >&5
4023  rm -rf conftest*
4024  eval "ac_cv_lib_$ac_lib_var=no"
4025fi
4026rm -f conftest*
4027LIBS="$ac_save_LIBS"
4028
4029fi
4030if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4031  echo "$ac_t""yes" 1>&6
4032  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4033else
4034  echo "$ac_t""no" 1>&6
4035fi
4036
4037    fi
4038
4039    # lieder@skyler.mavd.honeywell.com says without -lsocket,
4040    # socket/setsockopt and other routines are undefined under SCO ODT
4041    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
4042    # on later versions), says simon@lia.di.epfl.ch: it contains
4043    # gethostby* variants that don't use the nameserver (or something).
4044    # -lsocket must be given before -lnsl if both are needed.
4045    # We assume that if connect needs -lnsl, so does gethostbyname.
4046    echo $ac_n "checking for connect""... $ac_c" 1>&6
4047echo "configure:4048: checking for connect" >&5
4048if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4049  echo $ac_n "(cached) $ac_c" 1>&6
4050else
4051  cat > conftest.$ac_ext <<EOF
4052#line 4053 "configure"
4053#include "confdefs.h"
4054/* System header to define __stub macros and hopefully few prototypes,
4055    which can conflict with char connect(); below.  */
4056#include <assert.h>
4057/* Override any gcc2 internal prototype to avoid an error.  */
4058/* We use char because int might match the return type of a gcc2
4059    builtin and then its argument prototype would still apply.  */
4060char connect();
4061
4062int main() {
4063
4064/* The GNU C library defines this for functions which it implements
4065    to always fail with ENOSYS.  Some functions are actually named
4066    something starting with __ and the normal name is an alias.  */
4067#if defined (__stub_connect) || defined (__stub___connect)
4068choke me
4069#else
4070connect();
4071#endif
4072
4073; return 0; }
4074EOF
4075if { (eval echo configure:4076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4076  rm -rf conftest*
4077  eval "ac_cv_func_connect=yes"
4078else
4079  echo "configure: failed program was:" >&5
4080  cat conftest.$ac_ext >&5
4081  rm -rf conftest*
4082  eval "ac_cv_func_connect=no"
4083fi
4084rm -f conftest*
4085fi
4086
4087if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4088  echo "$ac_t""yes" 1>&6
4089  :
4090else
4091  echo "$ac_t""no" 1>&6
4092fi
4093
4094    if test $ac_cv_func_connect = no; then
4095      echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4096echo "configure:4097: checking for connect in -lsocket" >&5
4097ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4098if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4099  echo $ac_n "(cached) $ac_c" 1>&6
4100else
4101  ac_save_LIBS="$LIBS"
4102LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4103cat > conftest.$ac_ext <<EOF
4104#line 4105 "configure"
4105#include "confdefs.h"
4106/* Override any gcc2 internal prototype to avoid an error.  */
4107/* We use char because int might match the return type of a gcc2
4108    builtin and then its argument prototype would still apply.  */
4109char connect();
4110
4111int main() {
4112connect()
4113; return 0; }
4114EOF
4115if { (eval echo configure:4116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4116  rm -rf conftest*
4117  eval "ac_cv_lib_$ac_lib_var=yes"
4118else
4119  echo "configure: failed program was:" >&5
4120  cat conftest.$ac_ext >&5
4121  rm -rf conftest*
4122  eval "ac_cv_lib_$ac_lib_var=no"
4123fi
4124rm -f conftest*
4125LIBS="$ac_save_LIBS"
4126
4127fi
4128if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4129  echo "$ac_t""yes" 1>&6
4130  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4131else
4132  echo "$ac_t""no" 1>&6
4133fi
4134
4135    fi
4136
4137    # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4138    echo $ac_n "checking for remove""... $ac_c" 1>&6
4139echo "configure:4140: checking for remove" >&5
4140if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
4141  echo $ac_n "(cached) $ac_c" 1>&6
4142else
4143  cat > conftest.$ac_ext <<EOF
4144#line 4145 "configure"
4145#include "confdefs.h"
4146/* System header to define __stub macros and hopefully few prototypes,
4147    which can conflict with char remove(); below.  */
4148#include <assert.h>
4149/* Override any gcc2 internal prototype to avoid an error.  */
4150/* We use char because int might match the return type of a gcc2
4151    builtin and then its argument prototype would still apply.  */
4152char remove();
4153
4154int main() {
4155
4156/* The GNU C library defines this for functions which it implements
4157    to always fail with ENOSYS.  Some functions are actually named
4158    something starting with __ and the normal name is an alias.  */
4159#if defined (__stub_remove) || defined (__stub___remove)
4160choke me
4161#else
4162remove();
4163#endif
4164
4165; return 0; }
4166EOF
4167if { (eval echo configure:4168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4168  rm -rf conftest*
4169  eval "ac_cv_func_remove=yes"
4170else
4171  echo "configure: failed program was:" >&5
4172  cat conftest.$ac_ext >&5
4173  rm -rf conftest*
4174  eval "ac_cv_func_remove=no"
4175fi
4176rm -f conftest*
4177fi
4178
4179if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
4180  echo "$ac_t""yes" 1>&6
4181  :
4182else
4183  echo "$ac_t""no" 1>&6
4184fi
4185
4186    if test $ac_cv_func_remove = no; then
4187      echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4188echo "configure:4189: checking for remove in -lposix" >&5
4189ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4190if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4191  echo $ac_n "(cached) $ac_c" 1>&6
4192else
4193  ac_save_LIBS="$LIBS"
4194LIBS="-lposix  $LIBS"
4195cat > conftest.$ac_ext <<EOF
4196#line 4197 "configure"
4197#include "confdefs.h"
4198/* Override any gcc2 internal prototype to avoid an error.  */
4199/* We use char because int might match the return type of a gcc2
4200    builtin and then its argument prototype would still apply.  */
4201char remove();
4202
4203int main() {
4204remove()
4205; return 0; }
4206EOF
4207if { (eval echo configure:4208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4208  rm -rf conftest*
4209  eval "ac_cv_lib_$ac_lib_var=yes"
4210else
4211  echo "configure: failed program was:" >&5
4212  cat conftest.$ac_ext >&5
4213  rm -rf conftest*
4214  eval "ac_cv_lib_$ac_lib_var=no"
4215fi
4216rm -f conftest*
4217LIBS="$ac_save_LIBS"
4218
4219fi
4220if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4221  echo "$ac_t""yes" 1>&6
4222  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4223else
4224  echo "$ac_t""no" 1>&6
4225fi
4226
4227    fi
4228
4229    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4230    echo $ac_n "checking for shmat""... $ac_c" 1>&6
4231echo "configure:4232: checking for shmat" >&5
4232if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
4233  echo $ac_n "(cached) $ac_c" 1>&6
4234else
4235  cat > conftest.$ac_ext <<EOF
4236#line 4237 "configure"
4237#include "confdefs.h"
4238/* System header to define __stub macros and hopefully few prototypes,
4239    which can conflict with char shmat(); below.  */
4240#include <assert.h>
4241/* Override any gcc2 internal prototype to avoid an error.  */
4242/* We use char because int might match the return type of a gcc2
4243    builtin and then its argument prototype would still apply.  */
4244char shmat();
4245
4246int main() {
4247
4248/* The GNU C library defines this for functions which it implements
4249    to always fail with ENOSYS.  Some functions are actually named
4250    something starting with __ and the normal name is an alias.  */
4251#if defined (__stub_shmat) || defined (__stub___shmat)
4252choke me
4253#else
4254shmat();
4255#endif
4256
4257; return 0; }
4258EOF
4259if { (eval echo configure:4260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4260  rm -rf conftest*
4261  eval "ac_cv_func_shmat=yes"
4262else
4263  echo "configure: failed program was:" >&5
4264  cat conftest.$ac_ext >&5
4265  rm -rf conftest*
4266  eval "ac_cv_func_shmat=no"
4267fi
4268rm -f conftest*
4269fi
4270
4271if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4272  echo "$ac_t""yes" 1>&6
4273  :
4274else
4275  echo "$ac_t""no" 1>&6
4276fi
4277
4278    if test $ac_cv_func_shmat = no; then
4279      echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4280echo "configure:4281: checking for shmat in -lipc" >&5
4281ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4282if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4283  echo $ac_n "(cached) $ac_c" 1>&6
4284else
4285  ac_save_LIBS="$LIBS"
4286LIBS="-lipc  $LIBS"
4287cat > conftest.$ac_ext <<EOF
4288#line 4289 "configure"
4289#include "confdefs.h"
4290/* Override any gcc2 internal prototype to avoid an error.  */
4291/* We use char because int might match the return type of a gcc2
4292    builtin and then its argument prototype would still apply.  */
4293char shmat();
4294
4295int main() {
4296shmat()
4297; return 0; }
4298EOF
4299if { (eval echo configure:4300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4300  rm -rf conftest*
4301  eval "ac_cv_lib_$ac_lib_var=yes"
4302else
4303  echo "configure: failed program was:" >&5
4304  cat conftest.$ac_ext >&5
4305  rm -rf conftest*
4306  eval "ac_cv_lib_$ac_lib_var=no"
4307fi
4308rm -f conftest*
4309LIBS="$ac_save_LIBS"
4310
4311fi
4312if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4313  echo "$ac_t""yes" 1>&6
4314  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4315else
4316  echo "$ac_t""no" 1>&6
4317fi
4318
4319    fi
4320  fi
4321
4322  # Check for libraries that X11R6 Xt/Xaw programs need.
4323  ac_save_LDFLAGS="$LDFLAGS"
4324  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4325  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4326  # check for ICE first), but we must link in the order -lSM -lICE or
4327  # we get undefined symbols.  So assume we have SM if we have ICE.
4328  # These have to be linked with before -lX11, unlike the other
4329  # libraries we check for below, so use a different variable.
4330  #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4331  echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4332echo "configure:4333: checking for IceConnectionNumber in -lICE" >&5
4333ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4334if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4335  echo $ac_n "(cached) $ac_c" 1>&6
4336else
4337  ac_save_LIBS="$LIBS"
4338LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4339cat > conftest.$ac_ext <<EOF
4340#line 4341 "configure"
4341#include "confdefs.h"
4342/* Override any gcc2 internal prototype to avoid an error.  */
4343/* We use char because int might match the return type of a gcc2
4344    builtin and then its argument prototype would still apply.  */
4345char IceConnectionNumber();
4346
4347int main() {
4348IceConnectionNumber()
4349; return 0; }
4350EOF
4351if { (eval echo configure:4352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4352  rm -rf conftest*
4353  eval "ac_cv_lib_$ac_lib_var=yes"
4354else
4355  echo "configure: failed program was:" >&5
4356  cat conftest.$ac_ext >&5
4357  rm -rf conftest*
4358  eval "ac_cv_lib_$ac_lib_var=no"
4359fi
4360rm -f conftest*
4361LIBS="$ac_save_LIBS"
4362
4363fi
4364if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4365  echo "$ac_t""yes" 1>&6
4366  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4367else
4368  echo "$ac_t""no" 1>&6
4369fi
4370
4371  LDFLAGS="$ac_save_LDFLAGS"
4372
4373fi
4374
4375
4376# try to figure out if we need any additional ld flags, like -R
4377# and yes, the autoconf X test is utterly broken
4378if test "$no_x" != yes; then
4379	echo $ac_n "checking for special X linker flags""... $ac_c" 1>&6
4380echo "configure:4381: checking for special X linker flags" >&5
4381if eval "test \"`echo '$''{'krb_cv_sys_x_libs_rpath'+set}'`\" = set"; then
4382  echo $ac_n "(cached) $ac_c" 1>&6
4383else
4384  
4385	ac_save_libs="$LIBS"
4386	ac_save_cflags="$CFLAGS"
4387	CFLAGS="$CFLAGS $X_CFLAGS"
4388	krb_cv_sys_x_libs_rpath=""
4389	krb_cv_sys_x_libs=""
4390	for rflag in "" "-R" "-R " "-rpath "; do
4391		if test "$rflag" = ""; then
4392			foo="$X_LIBS"
4393		else
4394			foo=""
4395			for flag in $X_LIBS; do
4396			case $flag in
4397			-L*)
4398				foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`"
4399				;;
4400			*)
4401				foo="$foo $flag"
4402				;;
4403			esac
4404			done
4405		fi
4406		LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
4407		if test "$cross_compiling" = yes; then
4408    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4409else
4410  cat > conftest.$ac_ext <<EOF
4411#line 4412 "configure"
4412#include "confdefs.h"
4413
4414		#include <X11/Xlib.h>
4415		foo()
4416		{
4417		XOpenDisplay(NULL);
4418		}
4419		main()
4420		{
4421		return 0;
4422		}
4423		
4424EOF
4425if { (eval echo configure:4426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4426then
4427  krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break
4428else
4429  echo "configure: failed program was:" >&5
4430  cat conftest.$ac_ext >&5
4431  rm -fr conftest*
4432  :
4433fi
4434rm -fr conftest*
4435fi
4436
4437	done
4438	LIBS="$ac_save_libs"
4439	CFLAGS="$ac_save_cflags"
4440	
4441fi
4442
4443echo "$ac_t""$krb_cv_sys_x_libs_rpath" 1>&6
4444	X_LIBS="$krb_cv_sys_x_libs"
4445fi
4446
4447
4448if test "$no_x" = "yes" ; then
4449	MAKE_X_PROGS_BIN_PROGS=""
4450	MAKE_X_PROGS_BIN_SCRPTS=""
4451	MAKE_X_PROGS_LIBEXEC_PROGS=""
4452else
4453	MAKE_X_PROGS_BIN_PROGS='$(X_PROGS_BIN_PROGS)'
4454	MAKE_X_PROGS_BIN_SCRPTS='$(X_PROGS_BIN_SCRPTS)'
4455	MAKE_X_PROGS_LIBEXEC_PROGS='$(X_PROGS_LIBEXEC_PROGS)'
4456fi
4457
4458
4459save_CFLAGS="$CFLAGS"
4460CFLAGS="$X_CFLAGS $CFLAGS"
4461save_LIBS="$LIBS"
4462LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS"
4463save_LDFLAGS="$LDFLAGS"
4464LDFLAGS="$LDFLAGS $X_LIBS"
4465
4466
4467
4468
4469
4470echo $ac_n "checking for XauWriteAuth""... $ac_c" 1>&6
4471echo "configure:4472: checking for XauWriteAuth" >&5
4472if eval "test \"`echo '$''{'ac_cv_funclib_XauWriteAuth'+set}'`\" = set"; then
4473  echo $ac_n "(cached) $ac_c" 1>&6
4474else
4475  
4476if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then
4477	ac_save_LIBS="$LIBS"
4478	for ac_lib in "" X11 Xau; do
4479		if test -n "$ac_lib"; then 
4480			ac_lib="-l$ac_lib"
4481		else
4482			ac_lib=""
4483		fi
4484		LIBS=" $ac_lib  $ac_save_LIBS"
4485		cat > conftest.$ac_ext <<EOF
4486#line 4487 "configure"
4487#include "confdefs.h"
4488
4489int main() {
4490XauWriteAuth()
4491; return 0; }
4492EOF
4493if { (eval echo configure:4494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4494  rm -rf conftest*
4495  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break
4496else
4497  echo "configure: failed program was:" >&5
4498  cat conftest.$ac_ext >&5
4499fi
4500rm -f conftest*
4501	done
4502	eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}"
4503	LIBS="$ac_save_LIBS"
4504fi
4505
4506fi
4507
4508
4509eval "ac_res=\$ac_cv_funclib_XauWriteAuth"
4510
4511: << END
4512@@@funcs="$funcs XauWriteAuth"@@@
4513@@@libs="$libs "" X11 Xau"@@@
4514END
4515
4516# XauWriteAuth
4517eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
4518eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
4519eval "LIB_XauWriteAuth=$ac_res"
4520
4521case "$ac_res" in
4522	yes)
4523	eval "ac_cv_func_XauWriteAuth=yes"
4524	eval "LIB_XauWriteAuth="
4525	cat >> confdefs.h <<EOF
4526#define $ac_tr_func 1
4527EOF
4528
4529	echo "$ac_t""yes" 1>&6
4530	;;
4531	no)
4532	eval "ac_cv_func_XauWriteAuth=no"
4533	eval "LIB_XauWriteAuth="
4534	echo "$ac_t""no" 1>&6
4535	;;
4536	*)
4537	eval "ac_cv_func_XauWriteAuth=yes"
4538	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
4539	cat >> confdefs.h <<EOF
4540#define $ac_tr_func 1
4541EOF
4542
4543	cat >> confdefs.h <<EOF
4544#define $ac_tr_lib 1
4545EOF
4546
4547	echo "$ac_t""yes, in $ac_res" 1>&6
4548	;;
4549esac
4550
4551
4552ac_xxx="$LIBS"
4553LIBS="$LIB_XauWriteAuth $LIBS"
4554
4555
4556
4557echo $ac_n "checking for XauReadAuth""... $ac_c" 1>&6
4558echo "configure:4559: checking for XauReadAuth" >&5
4559if eval "test \"`echo '$''{'ac_cv_funclib_XauReadAuth'+set}'`\" = set"; then
4560  echo $ac_n "(cached) $ac_c" 1>&6
4561else
4562  
4563if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then
4564	ac_save_LIBS="$LIBS"
4565	for ac_lib in "" X11 Xau; do
4566		if test -n "$ac_lib"; then 
4567			ac_lib="-l$ac_lib"
4568		else
4569			ac_lib=""
4570		fi
4571		LIBS=" $ac_lib  $ac_save_LIBS"
4572		cat > conftest.$ac_ext <<EOF
4573#line 4574 "configure"
4574#include "confdefs.h"
4575
4576int main() {
4577XauReadAuth()
4578; return 0; }
4579EOF
4580if { (eval echo configure:4581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4581  rm -rf conftest*
4582  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break
4583else
4584  echo "configure: failed program was:" >&5
4585  cat conftest.$ac_ext >&5
4586fi
4587rm -f conftest*
4588	done
4589	eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}"
4590	LIBS="$ac_save_LIBS"
4591fi
4592
4593fi
4594
4595
4596eval "ac_res=\$ac_cv_funclib_XauReadAuth"
4597
4598: << END
4599@@@funcs="$funcs XauReadAuth"@@@
4600@@@libs="$libs "" X11 Xau"@@@
4601END
4602
4603# XauReadAuth
4604eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
4605eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
4606eval "LIB_XauReadAuth=$ac_res"
4607
4608case "$ac_res" in
4609	yes)
4610	eval "ac_cv_func_XauReadAuth=yes"
4611	eval "LIB_XauReadAuth="
4612	cat >> confdefs.h <<EOF
4613#define $ac_tr_func 1
4614EOF
4615
4616	echo "$ac_t""yes" 1>&6
4617	;;
4618	no)
4619	eval "ac_cv_func_XauReadAuth=no"
4620	eval "LIB_XauReadAuth="
4621	echo "$ac_t""no" 1>&6
4622	;;
4623	*)
4624	eval "ac_cv_func_XauReadAuth=yes"
4625	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
4626	cat >> confdefs.h <<EOF
4627#define $ac_tr_func 1
4628EOF
4629
4630	cat >> confdefs.h <<EOF
4631#define $ac_tr_lib 1
4632EOF
4633
4634	echo "$ac_t""yes, in $ac_res" 1>&6
4635	;;
4636esac
4637
4638
4639LIBS="$LIB_XauReadAauth $LIBS"
4640
4641
4642
4643echo $ac_n "checking for XauFileName""... $ac_c" 1>&6
4644echo "configure:4645: checking for XauFileName" >&5
4645if eval "test \"`echo '$''{'ac_cv_funclib_XauFileName'+set}'`\" = set"; then
4646  echo $ac_n "(cached) $ac_c" 1>&6
4647else
4648  
4649if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then
4650	ac_save_LIBS="$LIBS"
4651	for ac_lib in "" X11 Xau; do
4652		if test -n "$ac_lib"; then 
4653			ac_lib="-l$ac_lib"
4654		else
4655			ac_lib=""
4656		fi
4657		LIBS=" $ac_lib  $ac_save_LIBS"
4658		cat > conftest.$ac_ext <<EOF
4659#line 4660 "configure"
4660#include "confdefs.h"
4661
4662int main() {
4663XauFileName()
4664; return 0; }
4665EOF
4666if { (eval echo configure:4667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4667  rm -rf conftest*
4668  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break
4669else
4670  echo "configure: failed program was:" >&5
4671  cat conftest.$ac_ext >&5
4672fi
4673rm -f conftest*
4674	done
4675	eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}"
4676	LIBS="$ac_save_LIBS"
4677fi
4678
4679fi
4680
4681
4682eval "ac_res=\$ac_cv_funclib_XauFileName"
4683
4684: << END
4685@@@funcs="$funcs XauFileName"@@@
4686@@@libs="$libs "" X11 Xau"@@@
4687END
4688
4689# XauFileName
4690eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
4691eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
4692eval "LIB_XauFileName=$ac_res"
4693
4694case "$ac_res" in
4695	yes)
4696	eval "ac_cv_func_XauFileName=yes"
4697	eval "LIB_XauFileName="
4698	cat >> confdefs.h <<EOF
4699#define $ac_tr_func 1
4700EOF
4701
4702	echo "$ac_t""yes" 1>&6
4703	;;
4704	no)
4705	eval "ac_cv_func_XauFileName=no"
4706	eval "LIB_XauFileName="
4707	echo "$ac_t""no" 1>&6
4708	;;
4709	*)
4710	eval "ac_cv_func_XauFileName=yes"
4711	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
4712	cat >> confdefs.h <<EOF
4713#define $ac_tr_func 1
4714EOF
4715
4716	cat >> confdefs.h <<EOF
4717#define $ac_tr_lib 1
4718EOF
4719
4720	echo "$ac_t""yes, in $ac_res" 1>&6
4721	;;
4722esac
4723
4724
4725LIBS="$ac_xxx"
4726
4727case "$ac_cv_funclib_XauWriteAuth" in
4728yes)	;;
4729no)	;;
4730*)	if test "$ac_cv_funclib_XauReadAuth" = yes; then
4731		if test "$ac_cv_funclib_XauFileName" = yes; then
4732			LIB_XauReadAuth="$LIB_XauWriteAuth"
4733		else
4734			LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName"
4735		fi
4736	else
4737		if test "$ac_cv_funclib_XauFileName" = yes; then
4738			LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth"
4739		else
4740			LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName"
4741		fi
4742	fi
4743	;;
4744esac
4745
4746if test "$AUTOMAKE" != ""; then
4747	
4748
4749if test "$ac_cv_func_XauWriteAuth" != "yes"; then
4750  NEED_WRITEAUTH_TRUE=
4751  NEED_WRITEAUTH_FALSE='#'
4752else
4753  NEED_WRITEAUTH_TRUE='#'
4754  NEED_WRITEAUTH_FALSE=
4755fi
4756else
4757	
4758	
4759	if test "$ac_cv_func_XauWriteAuth" != "yes"; then
4760		NEED_WRITEAUTH_TRUE=
4761		NEED_WRITEAUTH_FALSE='#'
4762	else
4763		NEED_WRITEAUTH_TRUE='#'
4764		NEED_WRITEAUTH_FALSE=
4765	fi
4766fi
4767CFLAGS=$save_CFLAGS
4768LIBS=$save_LIBS
4769LDFLAGS=$save_LDFLAGS
4770
4771
4772
4773echo $ac_n "checking for working const""... $ac_c" 1>&6
4774echo "configure:4775: checking for working const" >&5
4775if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4776  echo $ac_n "(cached) $ac_c" 1>&6
4777else
4778  cat > conftest.$ac_ext <<EOF
4779#line 4780 "configure"
4780#include "confdefs.h"
4781
4782int main() {
4783
4784/* Ultrix mips cc rejects this.  */
4785typedef int charset[2]; const charset x;
4786/* SunOS 4.1.1 cc rejects this.  */
4787char const *const *ccp;
4788char **p;
4789/* NEC SVR4.0.2 mips cc rejects this.  */
4790struct point {int x, y;};
4791static struct point const zero = {0,0};
4792/* AIX XL C 1.02.0.0 rejects this.
4793   It does not let you subtract one const X* pointer from another in an arm
4794   of an if-expression whose if-part is not a constant expression */
4795const char *g = "string";
4796ccp = &g + (g ? g-g : 0);
4797/* HPUX 7.0 cc rejects these. */
4798++ccp;
4799p = (char**) ccp;
4800ccp = (char const *const *) p;
4801{ /* SCO 3.2v4 cc rejects this.  */
4802  char *t;
4803  char const *s = 0 ? (char *) 0 : (char const *) 0;
4804
4805  *t++ = 0;
4806}
4807{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4808  int x[] = {25, 17};
4809  const int *foo = &x[0];
4810  ++foo;
4811}
4812{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4813  typedef const int *iptr;
4814  iptr p = 0;
4815  ++p;
4816}
4817{ /* AIX XL C 1.02.0.0 rejects this saying
4818     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4819  struct s { int j; const int *ap[3]; };
4820  struct s *b; b->j = 5;
4821}
4822{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4823  const int foo = 10;
4824}
4825
4826; return 0; }
4827EOF
4828if { (eval echo configure:4829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4829  rm -rf conftest*
4830  ac_cv_c_const=yes
4831else
4832  echo "configure: failed program was:" >&5
4833  cat conftest.$ac_ext >&5
4834  rm -rf conftest*
4835  ac_cv_c_const=no
4836fi
4837rm -f conftest*
4838fi
4839
4840echo "$ac_t""$ac_cv_c_const" 1>&6
4841if test $ac_cv_c_const = no; then
4842  cat >> confdefs.h <<\EOF
4843#define const 
4844EOF
4845
4846fi
4847
4848echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4849echo "configure:4850: checking for ANSI C header files" >&5
4850if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4851  echo $ac_n "(cached) $ac_c" 1>&6
4852else
4853  cat > conftest.$ac_ext <<EOF
4854#line 4855 "configure"
4855#include "confdefs.h"
4856#include <stdlib.h>
4857#include <stdarg.h>
4858#include <string.h>
4859#include <float.h>
4860EOF
4861ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4862{ (eval echo configure:4863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4863ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4864if test -z "$ac_err"; then
4865  rm -rf conftest*
4866  ac_cv_header_stdc=yes
4867else
4868  echo "$ac_err" >&5
4869  echo "configure: failed program was:" >&5
4870  cat conftest.$ac_ext >&5
4871  rm -rf conftest*
4872  ac_cv_header_stdc=no
4873fi
4874rm -f conftest*
4875
4876if test $ac_cv_header_stdc = yes; then
4877  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4878cat > conftest.$ac_ext <<EOF
4879#line 4880 "configure"
4880#include "confdefs.h"
4881#include <string.h>
4882EOF
4883if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4884  egrep "memchr" >/dev/null 2>&1; then
4885  :
4886else
4887  rm -rf conftest*
4888  ac_cv_header_stdc=no
4889fi
4890rm -f conftest*
4891
4892fi
4893
4894if test $ac_cv_header_stdc = yes; then
4895  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4896cat > conftest.$ac_ext <<EOF
4897#line 4898 "configure"
4898#include "confdefs.h"
4899#include <stdlib.h>
4900EOF
4901if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4902  egrep "free" >/dev/null 2>&1; then
4903  :
4904else
4905  rm -rf conftest*
4906  ac_cv_header_stdc=no
4907fi
4908rm -f conftest*
4909
4910fi
4911
4912if test $ac_cv_header_stdc = yes; then
4913  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4914if test "$cross_compiling" = yes; then
4915  :
4916else
4917  cat > conftest.$ac_ext <<EOF
4918#line 4919 "configure"
4919#include "confdefs.h"
4920#include <ctype.h>
4921#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4922#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4923#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4924int main () { int i; for (i = 0; i < 256; i++)
4925if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4926exit (0); }
4927
4928EOF
4929if { (eval echo configure:4930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4930then
4931  :
4932else
4933  echo "configure: failed program was:" >&5
4934  cat conftest.$ac_ext >&5
4935  rm -fr conftest*
4936  ac_cv_header_stdc=no
4937fi
4938rm -fr conftest*
4939fi
4940
4941fi
4942fi
4943
4944echo "$ac_t""$ac_cv_header_stdc" 1>&6
4945if test $ac_cv_header_stdc = yes; then
4946  cat >> confdefs.h <<\EOF
4947#define STDC_HEADERS 1
4948EOF
4949
4950fi
4951
4952echo $ac_n "checking for off_t""... $ac_c" 1>&6
4953echo "configure:4954: checking for off_t" >&5
4954if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
4955  echo $ac_n "(cached) $ac_c" 1>&6
4956else
4957  cat > conftest.$ac_ext <<EOF
4958#line 4959 "configure"
4959#include "confdefs.h"
4960#include <sys/types.h>
4961#if STDC_HEADERS
4962#include <stdlib.h>
4963#include <stddef.h>
4964#endif
4965EOF
4966if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4967  egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4968  rm -rf conftest*
4969  ac_cv_type_off_t=yes
4970else
4971  rm -rf conftest*
4972  ac_cv_type_off_t=no
4973fi
4974rm -f conftest*
4975
4976fi
4977echo "$ac_t""$ac_cv_type_off_t" 1>&6
4978if test $ac_cv_type_off_t = no; then
4979  cat >> confdefs.h <<\EOF
4980#define off_t long
4981EOF
4982
4983fi
4984
4985echo $ac_n "checking for size_t""... $ac_c" 1>&6
4986echo "configure:4987: checking for size_t" >&5
4987if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4988  echo $ac_n "(cached) $ac_c" 1>&6
4989else
4990  cat > conftest.$ac_ext <<EOF
4991#line 4992 "configure"
4992#include "confdefs.h"
4993#include <sys/types.h>
4994#if STDC_HEADERS
4995#include <stdlib.h>
4996#include <stddef.h>
4997#endif
4998EOF
4999if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5000  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5001  rm -rf conftest*
5002  ac_cv_type_size_t=yes
5003else
5004  rm -rf conftest*
5005  ac_cv_type_size_t=no
5006fi
5007rm -f conftest*
5008
5009fi
5010echo "$ac_t""$ac_cv_type_size_t" 1>&6
5011if test $ac_cv_type_size_t = no; then
5012  cat >> confdefs.h <<\EOF
5013#define size_t unsigned
5014EOF
5015
5016fi
5017
5018echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
5019echo "configure:5020: checking for ssize_t" >&5
5020if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5021  echo $ac_n "(cached) $ac_c" 1>&6
5022else
5023  cat > conftest.$ac_ext <<EOF
5024#line 5025 "configure"
5025#include "confdefs.h"
5026#include <sys/types.h>
5027#if STDC_HEADERS
5028#include <stdlib.h>
5029#include <stddef.h>
5030#endif
5031#include <unistd.h>
5032EOF
5033if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5034  egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5035  rm -rf conftest*
5036  ac_cv_type_ssize_t=yes
5037else
5038  rm -rf conftest*
5039  ac_cv_type_ssize_t=no
5040fi
5041rm -f conftest*
5042
5043fi
5044echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
5045if test $ac_cv_type_ssize_t = no; then
5046  cat >> confdefs.h <<\EOF
5047#define ssize_t int
5048EOF
5049
5050fi
5051
5052echo $ac_n "checking for pid_t""... $ac_c" 1>&6
5053echo "configure:5054: checking for pid_t" >&5
5054if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
5055  echo $ac_n "(cached) $ac_c" 1>&6
5056else
5057  cat > conftest.$ac_ext <<EOF
5058#line 5059 "configure"
5059#include "confdefs.h"
5060#include <sys/types.h>
5061#if STDC_HEADERS
5062#include <stdlib.h>
5063#include <stddef.h>
5064#endif
5065EOF
5066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5067  egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5068  rm -rf conftest*
5069  ac_cv_type_pid_t=yes
5070else
5071  rm -rf conftest*
5072  ac_cv_type_pid_t=no
5073fi
5074rm -f conftest*
5075
5076fi
5077echo "$ac_t""$ac_cv_type_pid_t" 1>&6
5078if test $ac_cv_type_pid_t = no; then
5079  cat >> confdefs.h <<\EOF
5080#define pid_t int
5081EOF
5082
5083fi
5084
5085echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
5086echo "configure:5087: checking for uid_t in sys/types.h" >&5
5087if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
5088  echo $ac_n "(cached) $ac_c" 1>&6
5089else
5090  cat > conftest.$ac_ext <<EOF
5091#line 5092 "configure"
5092#include "confdefs.h"
5093#include <sys/types.h>
5094EOF
5095if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5096  egrep "uid_t" >/dev/null 2>&1; then
5097  rm -rf conftest*
5098  ac_cv_type_uid_t=yes
5099else
5100  rm -rf conftest*
5101  ac_cv_type_uid_t=no
5102fi
5103rm -f conftest*
5104
5105fi
5106
5107echo "$ac_t""$ac_cv_type_uid_t" 1>&6
5108if test $ac_cv_type_uid_t = no; then
5109  cat >> confdefs.h <<\EOF
5110#define uid_t int
5111EOF
5112
5113  cat >> confdefs.h <<\EOF
5114#define gid_t int
5115EOF
5116
5117fi
5118
5119echo $ac_n "checking for mode_t""... $ac_c" 1>&6
5120echo "configure:5121: checking for mode_t" >&5
5121if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
5122  echo $ac_n "(cached) $ac_c" 1>&6
5123else
5124  cat > conftest.$ac_ext <<EOF
5125#line 5126 "configure"
5126#include "confdefs.h"
5127#include <sys/types.h>
5128#if STDC_HEADERS
5129#include <stdlib.h>
5130#include <stddef.h>
5131#endif
5132
5133EOF
5134if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5135  egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5136  rm -rf conftest*
5137  ac_cv_type_mode_t=yes
5138else
5139  rm -rf conftest*
5140  ac_cv_type_mode_t=no
5141fi
5142rm -f conftest*
5143
5144fi
5145echo "$ac_t""$ac_cv_type_mode_t" 1>&6
5146if test $ac_cv_type_mode_t = no; then
5147  cat >> confdefs.h <<\EOF
5148#define mode_t unsigned short
5149EOF
5150
5151fi
5152
5153echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
5154echo "configure:5155: checking for sig_atomic_t" >&5
5155if eval "test \"`echo '$''{'ac_cv_type_sig_atomic_t'+set}'`\" = set"; then
5156  echo $ac_n "(cached) $ac_c" 1>&6
5157else
5158  cat > conftest.$ac_ext <<EOF
5159#line 5160 "configure"
5160#include "confdefs.h"
5161#include <sys/types.h>
5162#if STDC_HEADERS
5163#include <stdlib.h>
5164#include <stddef.h>
5165#endif
5166#include <signal.h>
5167EOF
5168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5169  egrep "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5170  rm -rf conftest*
5171  ac_cv_type_sig_atomic_t=yes
5172else
5173  rm -rf conftest*
5174  ac_cv_type_sig_atomic_t=no
5175fi
5176rm -f conftest*
5177
5178fi
5179echo "$ac_t""$ac_cv_type_sig_atomic_t" 1>&6
5180if test $ac_cv_type_sig_atomic_t = no; then
5181  cat >> confdefs.h <<\EOF
5182#define sig_atomic_t int
5183EOF
5184
5185fi
5186
5187
5188
5189cv=`echo "long long" | sed 'y%./+- %__p__%'`
5190echo $ac_n "checking for long long""... $ac_c" 1>&6
5191echo "configure:5192: checking for long long" >&5
5192if eval "test \"`echo '$''{'ac_cv_type_$cv'+set}'`\" = set"; then
5193  echo $ac_n "(cached) $ac_c" 1>&6
5194else
5195  cat > conftest.$ac_ext <<EOF
5196#line 5197 "configure"
5197#include "confdefs.h"
5198#include <sys/types.h>
5199#if STDC_HEADERS
5200#include <stdlib.h>
5201#include <stddef.h>
5202#endif
5203
5204int main() {
5205long long foo;
5206; return 0; }
5207EOF
5208if { (eval echo configure:5209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5209  rm -rf conftest*
5210  eval "ac_cv_type_$cv=yes"
5211else
5212  echo "configure: failed program was:" >&5
5213  cat conftest.$ac_ext >&5
5214  rm -rf conftest*
5215  eval "ac_cv_type_$cv=no"
5216fi
5217rm -f conftest*
5218fi
5219echo "$ac_t""`eval echo \\$ac_cv_type_$cv`" 1>&6
5220if test `eval echo \\$ac_cv_type_$cv` = yes; then
5221  ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
5222
5223: << END
5224@@@funcs="$funcs long_long"@@@
5225END
5226
5227  cat >> confdefs.h <<EOF
5228#define $ac_tr_hdr 1
5229EOF
5230
5231fi
5232
5233echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
5234echo "configure:5235: checking whether time.h and sys/time.h may both be included" >&5
5235if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
5236  echo $ac_n "(cached) $ac_c" 1>&6
5237else
5238  cat > conftest.$ac_ext <<EOF
5239#line 5240 "configure"
5240#include "confdefs.h"
5241#include <sys/types.h>
5242#include <sys/time.h>
5243#include <time.h>
5244int main() {
5245struct tm *tp;
5246; return 0; }
5247EOF
5248if { (eval echo configure:5249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5249  rm -rf conftest*
5250  ac_cv_header_time=yes
5251else
5252  echo "configure: failed program was:" >&5
5253  cat conftest.$ac_ext >&5
5254  rm -rf conftest*
5255  ac_cv_header_time=no
5256fi
5257rm -f conftest*
5258fi
5259
5260echo "$ac_t""$ac_cv_header_time" 1>&6
5261if test $ac_cv_header_time = yes; then
5262  cat >> confdefs.h <<\EOF
5263#define TIME_WITH_SYS_TIME 1
5264EOF
5265
5266fi
5267
5268echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5269echo "configure:5270: checking whether struct tm is in sys/time.h or time.h" >&5
5270if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5271  echo $ac_n "(cached) $ac_c" 1>&6
5272else
5273  cat > conftest.$ac_ext <<EOF
5274#line 5275 "configure"
5275#include "confdefs.h"
5276#include <sys/types.h>
5277#include <time.h>
5278int main() {
5279struct tm *tp; tp->tm_sec;
5280; return 0; }
5281EOF
5282if { (eval echo configure:5283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5283  rm -rf conftest*
5284  ac_cv_struct_tm=time.h
5285else
5286  echo "configure: failed program was:" >&5
5287  cat conftest.$ac_ext >&5
5288  rm -rf conftest*
5289  ac_cv_struct_tm=sys/time.h
5290fi
5291rm -f conftest*
5292fi
5293
5294echo "$ac_t""$ac_cv_struct_tm" 1>&6
5295if test $ac_cv_struct_tm = sys/time.h; then
5296  cat >> confdefs.h <<\EOF
5297#define TM_IN_SYS_TIME 1
5298EOF
5299
5300fi
5301
5302
5303echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5304echo "configure:5305: checking for ANSI C header files" >&5
5305if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5306  echo $ac_n "(cached) $ac_c" 1>&6
5307else
5308  cat > conftest.$ac_ext <<EOF
5309#line 5310 "configure"
5310#include "confdefs.h"
5311#include <stdlib.h>
5312#include <stdarg.h>
5313#include <string.h>
5314#include <float.h>
5315EOF
5316ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5317{ (eval echo configure:5318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5318ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5319if test -z "$ac_err"; then
5320  rm -rf conftest*
5321  ac_cv_header_stdc=yes
5322else
5323  echo "$ac_err" >&5
5324  echo "configure: failed program was:" >&5
5325  cat conftest.$ac_ext >&5
5326  rm -rf conftest*
5327  ac_cv_header_stdc=no
5328fi
5329rm -f conftest*
5330
5331if test $ac_cv_header_stdc = yes; then
5332  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5333cat > conftest.$ac_ext <<EOF
5334#line 5335 "configure"
5335#include "confdefs.h"
5336#include <string.h>
5337EOF
5338if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5339  egrep "memchr" >/dev/null 2>&1; then
5340  :
5341else
5342  rm -rf conftest*
5343  ac_cv_header_stdc=no
5344fi
5345rm -f conftest*
5346
5347fi
5348
5349if test $ac_cv_header_stdc = yes; then
5350  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5351cat > conftest.$ac_ext <<EOF
5352#line 5353 "configure"
5353#include "confdefs.h"
5354#include <stdlib.h>
5355EOF
5356if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5357  egrep "free" >/dev/null 2>&1; then
5358  :
5359else
5360  rm -rf conftest*
5361  ac_cv_header_stdc=no
5362fi
5363rm -f conftest*
5364
5365fi
5366
5367if test $ac_cv_header_stdc = yes; then
5368  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5369if test "$cross_compiling" = yes; then
5370  :
5371else
5372  cat > conftest.$ac_ext <<EOF
5373#line 5374 "configure"
5374#include "confdefs.h"
5375#include <ctype.h>
5376#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5377#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5378#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5379int main () { int i; for (i = 0; i < 256; i++)
5380if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5381exit (0); }
5382
5383EOF
5384if { (eval echo configure:5385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5385then
5386  :
5387else
5388  echo "configure: failed program was:" >&5
5389  cat conftest.$ac_ext >&5
5390  rm -fr conftest*
5391  ac_cv_header_stdc=no
5392fi
5393rm -fr conftest*
5394fi
5395
5396fi
5397fi
5398
5399echo "$ac_t""$ac_cv_header_stdc" 1>&6
5400if test $ac_cv_header_stdc = yes; then
5401  cat >> confdefs.h <<\EOF
5402#define STDC_HEADERS 1
5403EOF
5404
5405fi
5406
5407
5408if test "$berkeley_db"; then
5409  for ac_hdr in 				\
5410	db.h					\
5411	db_185.h				\
5412  
5413do
5414ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5415echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5416echo "configure:5417: checking for $ac_hdr" >&5
5417if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5418  echo $ac_n "(cached) $ac_c" 1>&6
5419else
5420  cat > conftest.$ac_ext <<EOF
5421#line 5422 "configure"
5422#include "confdefs.h"
5423#include <$ac_hdr>
5424EOF
5425ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5426{ (eval echo configure:5427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5427ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5428if test -z "$ac_err"; then
5429  rm -rf conftest*
5430  eval "ac_cv_header_$ac_safe=yes"
5431else
5432  echo "$ac_err" >&5
5433  echo "configure: failed program was:" >&5
5434  cat conftest.$ac_ext >&5
5435  rm -rf conftest*
5436  eval "ac_cv_header_$ac_safe=no"
5437fi
5438rm -f conftest*
5439fi
5440if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5441  echo "$ac_t""yes" 1>&6
5442    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5443  cat >> confdefs.h <<EOF
5444#define $ac_tr_hdr 1
5445EOF
5446 
5447else
5448  echo "$ac_t""no" 1>&6
5449fi
5450done
5451
5452fi
5453
5454for ac_hdr in \
5455	arpa/ftp.h				\
5456	arpa/inet.h				\
5457	arpa/nameser.h				\
5458	arpa/telnet.h				\
5459	bind/bitypes.h				\
5460	bsdsetjmp.h				\
5461	crypt.h					\
5462	curses.h				\
5463	dbm.h					\
5464	dirent.h				\
5465	dlfcn.h					\
5466	err.h					\
5467	errno.h					\
5468	fcntl.h					\
5469	fnmatch.h				\
5470	grp.h					\
5471	inttypes.h				\
5472	io.h					\
5473	limits.h				\
5474	maillock.h				\
5475	ndbm.h					\
5476	net/if.h				\
5477	netdb.h					\
5478	netinet/in.h				\
5479	netinet/in6.h				\
5480	netinet/in6_machtypes.h			\
5481	netinet/in6_var.h			\
5482	netinet/in_systm.h			\
5483	netinet6/in6.h				\
5484	netinfo/ni.h				\
5485	paths.h					\
5486	pthread.h				\
5487	pty.h					\
5488	pwd.h					\
5489	resolv.h				\
5490	rpcsvc/dbm.h				\
5491	sac.h					\
5492	security/pam_modules.h			\
5493	sgtty.h					\
5494	shadow.h				\
5495	siad.h					\
5496	signal.h				\
5497	stropts.h				\
5498	sys/bitypes.h				\
5499	sys/category.h				\
5500	sys/file.h				\
5501	sys/filio.h				\
5502	sys/ioccom.h				\
5503	sys/ioctl.h				\
5504	sys/param.h				\
5505	sys/proc.h				\
5506	sys/pty.h				\
5507	sys/ptyio.h				\
5508	sys/ptyvar.h				\
5509	sys/resource.h				\
5510	sys/select.h				\
5511	sys/socket.h				\
5512	sys/sockio.h				\
5513	sys/stat.h				\
5514	sys/str_tty.h				\
5515	sys/stream.h				\
5516	sys/stropts.h				\
5517	sys/strtty.h				\
5518	sys/syscall.h				\
5519	sys/sysctl.h				\
5520	sys/termio.h				\
5521	sys/time.h				\
5522	sys/timeb.h				\
5523	sys/times.h				\
5524	sys/tty.h				\
5525	sys/types.h				\
5526	sys/uio.h				\
5527	sys/un.h				\
5528	sys/utsname.h				\
5529	sys/wait.h				\
5530	syslog.h				\
5531	term.h					\
5532	termio.h				\
5533	termios.h				\
5534	time.h					\
5535	tmpdir.h				\
5536	udb.h					\
5537	unistd.h				\
5538	util.h					\
5539	utmp.h					\
5540	utmpx.h					\
5541
5542do
5543ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5544echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5545echo "configure:5546: checking for $ac_hdr" >&5
5546if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5547  echo $ac_n "(cached) $ac_c" 1>&6
5548else
5549  cat > conftest.$ac_ext <<EOF
5550#line 5551 "configure"
5551#include "confdefs.h"
5552#include <$ac_hdr>
5553EOF
5554ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5555{ (eval echo configure:5556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5556ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5557if test -z "$ac_err"; then
5558  rm -rf conftest*
5559  eval "ac_cv_header_$ac_safe=yes"
5560else
5561  echo "$ac_err" >&5
5562  echo "configure: failed program was:" >&5
5563  cat conftest.$ac_ext >&5
5564  rm -rf conftest*
5565  eval "ac_cv_header_$ac_safe=no"
5566fi
5567rm -f conftest*
5568fi
5569if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5570  echo "$ac_t""yes" 1>&6
5571    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5572  cat >> confdefs.h <<EOF
5573#define $ac_tr_hdr 1
5574EOF
5575 
5576else
5577  echo "$ac_t""no" 1>&6
5578fi
5579done
5580
5581
5582
5583for ac_hdr in standards.h
5584do
5585ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5586echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5587echo "configure:5588: checking for $ac_hdr" >&5
5588if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5589  echo $ac_n "(cached) $ac_c" 1>&6
5590else
5591  cat > conftest.$ac_ext <<EOF
5592#line 5593 "configure"
5593#include "confdefs.h"
5594#include <$ac_hdr>
5595EOF
5596ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5597{ (eval echo configure:5598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5598ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5599if test -z "$ac_err"; then
5600  rm -rf conftest*
5601  eval "ac_cv_header_$ac_safe=yes"
5602else
5603  echo "$ac_err" >&5
5604  echo "configure: failed program was:" >&5
5605  cat conftest.$ac_ext >&5
5606  rm -rf conftest*
5607  eval "ac_cv_header_$ac_safe=no"
5608fi
5609rm -f conftest*
5610fi
5611if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5612  echo "$ac_t""yes" 1>&6
5613    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5614  cat >> confdefs.h <<EOF
5615#define $ac_tr_hdr 1
5616EOF
5617 
5618else
5619  echo "$ac_t""no" 1>&6
5620fi
5621done
5622
5623for i in netinet/ip.h netinet/tcp.h; do
5624
5625cv=`echo "$i" | sed 'y%./+-%__p_%'`
5626
5627echo $ac_n "checking for $i""... $ac_c" 1>&6
5628echo "configure:5629: checking for $i" >&5
5629if eval "test \"`echo '$''{'ac_cv_header_$cv'+set}'`\" = set"; then
5630  echo $ac_n "(cached) $ac_c" 1>&6
5631else
5632  cat > conftest.$ac_ext <<EOF
5633#line 5634 "configure"
5634#include "confdefs.h"
5635\
5636#ifdef HAVE_STANDARDS_H
5637#include <standards.h>
5638#endif
5639#include <$i>
5640
5641EOF
5642ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5643{ (eval echo configure:5644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5644ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5645if test -z "$ac_err"; then
5646  rm -rf conftest*
5647  eval "ac_cv_header_$cv=yes"
5648else
5649  echo "$ac_err" >&5
5650  echo "configure: failed program was:" >&5
5651  cat conftest.$ac_ext >&5
5652  rm -rf conftest*
5653  eval "ac_cv_header_$cv=no"
5654fi
5655rm -f conftest*
5656fi
5657
5658echo "$ac_t""`eval echo \\$ac_cv_header_$cv`" 1>&6
5659if test `eval echo \\$ac_cv_header_$cv` = yes; then
5660  ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5661  cat >> confdefs.h <<EOF
5662#define $ac_tr_hdr 1
5663EOF
5664
5665fi
5666done
5667: << END
5668@@@headers="$headers netinet/ip.h netinet/tcp.h"@@@
5669END
5670
5671
5672
5673
5674# Check whether --enable-netinfo or --disable-netinfo was given.
5675if test "${enable_netinfo+set}" = set; then
5676  enableval="$enable_netinfo"
5677  :
5678fi
5679
5680
5681if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then
5682       cat >> confdefs.h <<\EOF
5683#define HAVE_NETINFO 1
5684EOF
5685
5686fi
5687
5688
5689
5690if test "$ac_cv_header_err_h" = yes; then
5691  have_err_h_TRUE=
5692  have_err_h_FALSE='#'
5693else
5694  have_err_h_TRUE='#'
5695  have_err_h_FALSE=
5696fi
5697
5698
5699if test "$ac_cv_header_fnmatch_h" = yes; then
5700  have_fnmatch_h_TRUE=
5701  have_fnmatch_h_FALSE='#'
5702else
5703  have_fnmatch_h_TRUE='#'
5704  have_fnmatch_h_FALSE=
5705fi
5706
5707
5708# Check whether --with-ipv6 or --without-ipv6 was given.
5709if test "${with_ipv6+set}" = set; then
5710  withval="$with_ipv6"
5711  
5712if test "$withval" = "no"; then
5713	ac_cv_lib_ipv6=no
5714fi
5715fi
5716
5717if eval "test \"`echo '$''{'ac_cv_lib_ipv6'+set}'`\" = set"; then
5718  echo $ac_n "(cached) $ac_c" 1>&6
5719else
5720  v6type=unknown
5721v6lib=none
5722
5723echo $ac_n "checking ipv6 stack type""... $ac_c" 1>&6
5724echo "configure:5725: checking ipv6 stack type" >&5
5725for i in v6d toshiba kame inria zeta linux; do
5726	case $i in
5727	v6d)
5728		cat > conftest.$ac_ext <<EOF
5729#line 5730 "configure"
5730#include "confdefs.h"
5731dnl
5732#include </usr/local/v6/include/sys/types.h>
5733#ifdef __V6D__
5734yes
5735#endif
5736EOF
5737if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5738  egrep "yes" >/dev/null 2>&1; then
5739  rm -rf conftest*
5740  v6type=$i; v6lib=v6;
5741			v6libdir=/usr/local/v6/lib;
5742			CFLAGS="-I/usr/local/v6/include $CFLAGS"
5743fi
5744rm -f conftest*
5745
5746		;;
5747	toshiba)
5748		cat > conftest.$ac_ext <<EOF
5749#line 5750 "configure"
5750#include "confdefs.h"
5751dnl
5752#include <sys/param.h>
5753#ifdef _TOSHIBA_INET6
5754yes
5755#endif
5756EOF
5757if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5758  egrep "yes" >/dev/null 2>&1; then
5759  rm -rf conftest*
5760  v6type=$i; v6lib=inet6;
5761			v6libdir=/usr/local/v6/lib;
5762			CFLAGS="-DINET6 $CFLAGS"
5763fi
5764rm -f conftest*
5765
5766		;;
5767	kame)
5768		cat > conftest.$ac_ext <<EOF
5769#line 5770 "configure"
5770#include "confdefs.h"
5771dnl
5772#include <netinet/in.h>
5773#ifdef __KAME__
5774yes
5775#endif
5776EOF
5777if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5778  egrep "yes" >/dev/null 2>&1; then
5779  rm -rf conftest*
5780  v6type=$i; v6lib=inet6;
5781			v6libdir=/usr/local/v6/lib;
5782			CFLAGS="-DINET6 $CFLAGS"
5783fi
5784rm -f conftest*
5785
5786		;;
5787	inria)
5788		cat > conftest.$ac_ext <<EOF
5789#line 5790 "configure"
5790#include "confdefs.h"
5791dnl
5792#include <netinet/in.h>
5793#ifdef IPV6_INRIA_VERSION
5794yes
5795#endif
5796EOF
5797if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5798  egrep "yes" >/dev/null 2>&1; then
5799  rm -rf conftest*
5800  v6type=$i; CFLAGS="-DINET6 $CFLAGS"
5801fi
5802rm -f conftest*
5803
5804		;;
5805	zeta)
5806		cat > conftest.$ac_ext <<EOF
5807#line 5808 "configure"
5808#include "confdefs.h"
5809dnl
5810#include <sys/param.h>
5811#ifdef _ZETA_MINAMI_INET6
5812yes
5813#endif
5814EOF
5815if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5816  egrep "yes" >/dev/null 2>&1; then
5817  rm -rf conftest*
5818  v6type=$i; v6lib=inet6;
5819			v6libdir=/usr/local/v6/lib;
5820			CFLAGS="-DINET6 $CFLAGS"
5821fi
5822rm -f conftest*
5823
5824		;;
5825	linux)
5826		if test -d /usr/inet6; then
5827			v6type=$i
5828			v6lib=inet6
5829			v6libdir=/usr/inet6
5830			CFLAGS="-DINET6 $CFLAGS"
5831		fi
5832		;;
5833	esac
5834	if test "$v6type" != "unknown"; then
5835		break
5836	fi
5837done
5838echo "$ac_t""$v6type" 1>&6
5839
5840if test "$v6lib" != "none"; then
5841	for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
5842		if test -d $dir -a -f $dir/lib$v6lib.a; then
5843			LIBS="-L$dir -l$v6lib $LIBS"
5844			break
5845		fi
5846	done
5847fi
5848cat > conftest.$ac_ext <<EOF
5849#line 5850 "configure"
5850#include "confdefs.h"
5851
5852#ifdef HAVE_SYS_TYPES_H
5853#include <sys/types.h>
5854#endif
5855#ifdef HAVE_SYS_SOCKET_H
5856#include <sys/socket.h>
5857#endif
5858#ifdef HAVE_NETINET_IN_H
5859#include <netinet/in.h>
5860#endif
5861#ifdef HAVE_NETINET_IN6_H
5862#include <netinet/in6.h>
5863#endif
5864
5865int main() {
5866
5867 struct sockaddr_in6 sin6;
5868 int s;
5869
5870 s = socket(AF_INET6, SOCK_DGRAM, 0);
5871
5872 sin6.sin6_family = AF_INET6;
5873 sin6.sin6_port = htons(17);
5874 sin6.sin6_addr = in6addr_any;
5875 bind(s, (struct sockaddr *)&sin6, sizeof(sin6));
5876
5877; return 0; }
5878EOF
5879if { (eval echo configure:5880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5880  rm -rf conftest*
5881  ac_cv_lib_ipv6=yes
5882else
5883  echo "configure: failed program was:" >&5
5884  cat conftest.$ac_ext >&5
5885  rm -rf conftest*
5886  ac_cv_lib_ipv6=no
5887fi
5888rm -f conftest*
5889fi
5890
5891echo $ac_n "checking for IPv6""... $ac_c" 1>&6
5892echo "configure:5893: checking for IPv6" >&5
5893echo "$ac_t""$ac_cv_lib_ipv6" 1>&6
5894if test "$ac_cv_lib_ipv6" = yes; then
5895  cat >> confdefs.h <<\EOF
5896#define HAVE_IPV6 1
5897EOF
5898
5899fi
5900
5901
5902
5903
5904
5905
5906
5907echo $ac_n "checking for socket""... $ac_c" 1>&6
5908echo "configure:5909: checking for socket" >&5
5909if eval "test \"`echo '$''{'ac_cv_funclib_socket'+set}'`\" = set"; then
5910  echo $ac_n "(cached) $ac_c" 1>&6
5911else
5912  
5913if eval "test \"\$ac_cv_func_socket\" != yes" ; then
5914	ac_save_LIBS="$LIBS"
5915	for ac_lib in "" socket; do
5916		if test -n "$ac_lib"; then 
5917			ac_lib="-l$ac_lib"
5918		else
5919			ac_lib=""
5920		fi
5921		LIBS=" $ac_lib  $ac_save_LIBS"
5922		cat > conftest.$ac_ext <<EOF
5923#line 5924 "configure"
5924#include "confdefs.h"
5925
5926int main() {
5927socket()
5928; return 0; }
5929EOF
5930if { (eval echo configure:5931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5931  rm -rf conftest*
5932  eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
5933else
5934  echo "configure: failed program was:" >&5
5935  cat conftest.$ac_ext >&5
5936fi
5937rm -f conftest*
5938	done
5939	eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
5940	LIBS="$ac_save_LIBS"
5941fi
5942
5943fi
5944
5945
5946eval "ac_res=\$ac_cv_funclib_socket"
5947
5948: << END
5949@@@funcs="$funcs socket"@@@
5950@@@libs="$libs "" socket"@@@
5951END
5952
5953# socket
5954eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
5955eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
5956eval "LIB_socket=$ac_res"
5957
5958case "$ac_res" in
5959	yes)
5960	eval "ac_cv_func_socket=yes"
5961	eval "LIB_socket="
5962	cat >> confdefs.h <<EOF
5963#define $ac_tr_func 1
5964EOF
5965
5966	echo "$ac_t""yes" 1>&6
5967	;;
5968	no)
5969	eval "ac_cv_func_socket=no"
5970	eval "LIB_socket="
5971	echo "$ac_t""no" 1>&6
5972	;;
5973	*)
5974	eval "ac_cv_func_socket=yes"
5975	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
5976	cat >> confdefs.h <<EOF
5977#define $ac_tr_func 1
5978EOF
5979
5980	cat >> confdefs.h <<EOF
5981#define $ac_tr_lib 1
5982EOF
5983
5984	echo "$ac_t""yes, in $ac_res" 1>&6
5985	;;
5986esac
5987
5988
5989if test -n "$LIB_socket"; then
5990	LIBS="$LIB_socket $LIBS"
5991fi
5992
5993
5994
5995
5996
5997echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5998echo "configure:5999: checking for gethostbyname" >&5
5999if eval "test \"`echo '$''{'ac_cv_funclib_gethostbyname'+set}'`\" = set"; then
6000  echo $ac_n "(cached) $ac_c" 1>&6
6001else
6002  
6003if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
6004	ac_save_LIBS="$LIBS"
6005	for ac_lib in "" nsl; do
6006		if test -n "$ac_lib"; then 
6007			ac_lib="-l$ac_lib"
6008		else
6009			ac_lib=""
6010		fi
6011		LIBS=" $ac_lib  $ac_save_LIBS"
6012		cat > conftest.$ac_ext <<EOF
6013#line 6014 "configure"
6014#include "confdefs.h"
6015
6016int main() {
6017gethostbyname()
6018; return 0; }
6019EOF
6020if { (eval echo configure:6021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6021  rm -rf conftest*
6022  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
6023else
6024  echo "configure: failed program was:" >&5
6025  cat conftest.$ac_ext >&5
6026fi
6027rm -f conftest*
6028	done
6029	eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
6030	LIBS="$ac_save_LIBS"
6031fi
6032
6033fi
6034
6035
6036eval "ac_res=\$ac_cv_funclib_gethostbyname"
6037
6038: << END
6039@@@funcs="$funcs gethostbyname"@@@
6040@@@libs="$libs "" nsl"@@@
6041END
6042
6043# gethostbyname
6044eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6045eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6046eval "LIB_gethostbyname=$ac_res"
6047
6048case "$ac_res" in
6049	yes)
6050	eval "ac_cv_func_gethostbyname=yes"
6051	eval "LIB_gethostbyname="
6052	cat >> confdefs.h <<EOF
6053#define $ac_tr_func 1
6054EOF
6055
6056	echo "$ac_t""yes" 1>&6
6057	;;
6058	no)
6059	eval "ac_cv_func_gethostbyname=no"
6060	eval "LIB_gethostbyname="
6061	echo "$ac_t""no" 1>&6
6062	;;
6063	*)
6064	eval "ac_cv_func_gethostbyname=yes"
6065	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
6066	cat >> confdefs.h <<EOF
6067#define $ac_tr_func 1
6068EOF
6069
6070	cat >> confdefs.h <<EOF
6071#define $ac_tr_lib 1
6072EOF
6073
6074	echo "$ac_t""yes, in $ac_res" 1>&6
6075	;;
6076esac
6077
6078
6079if test -n "$LIB_gethostbyname"; then
6080	LIBS="$LIB_gethostbyname $LIBS"
6081fi
6082
6083
6084
6085
6086
6087echo $ac_n "checking for syslog""... $ac_c" 1>&6
6088echo "configure:6089: checking for syslog" >&5
6089if eval "test \"`echo '$''{'ac_cv_funclib_syslog'+set}'`\" = set"; then
6090  echo $ac_n "(cached) $ac_c" 1>&6
6091else
6092  
6093if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
6094	ac_save_LIBS="$LIBS"
6095	for ac_lib in "" syslog; do
6096		if test -n "$ac_lib"; then 
6097			ac_lib="-l$ac_lib"
6098		else
6099			ac_lib=""
6100		fi
6101		LIBS=" $ac_lib  $ac_save_LIBS"
6102		cat > conftest.$ac_ext <<EOF
6103#line 6104 "configure"
6104#include "confdefs.h"
6105
6106int main() {
6107syslog()
6108; return 0; }
6109EOF
6110if { (eval echo configure:6111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6111  rm -rf conftest*
6112  eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
6113else
6114  echo "configure: failed program was:" >&5
6115  cat conftest.$ac_ext >&5
6116fi
6117rm -f conftest*
6118	done
6119	eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
6120	LIBS="$ac_save_LIBS"
6121fi
6122
6123fi
6124
6125
6126eval "ac_res=\$ac_cv_funclib_syslog"
6127
6128: << END
6129@@@funcs="$funcs syslog"@@@
6130@@@libs="$libs "" syslog"@@@
6131END
6132
6133# syslog
6134eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6135eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6136eval "LIB_syslog=$ac_res"
6137
6138case "$ac_res" in
6139	yes)
6140	eval "ac_cv_func_syslog=yes"
6141	eval "LIB_syslog="
6142	cat >> confdefs.h <<EOF
6143#define $ac_tr_func 1
6144EOF
6145
6146	echo "$ac_t""yes" 1>&6
6147	;;
6148	no)
6149	eval "ac_cv_func_syslog=no"
6150	eval "LIB_syslog="
6151	echo "$ac_t""no" 1>&6
6152	;;
6153	*)
6154	eval "ac_cv_func_syslog=yes"
6155	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
6156	cat >> confdefs.h <<EOF
6157#define $ac_tr_func 1
6158EOF
6159
6160	cat >> confdefs.h <<EOF
6161#define $ac_tr_lib 1
6162EOF
6163
6164	echo "$ac_t""yes, in $ac_res" 1>&6
6165	;;
6166esac
6167
6168
6169if test -n "$LIB_syslog"; then
6170	LIBS="$LIB_syslog $LIBS"
6171fi
6172
6173
6174
6175
6176
6177echo $ac_n "checking for logwtmp""... $ac_c" 1>&6
6178echo "configure:6179: checking for logwtmp" >&5
6179if eval "test \"`echo '$''{'ac_cv_funclib_logwtmp'+set}'`\" = set"; then
6180  echo $ac_n "(cached) $ac_c" 1>&6
6181else
6182  
6183if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then
6184	ac_save_LIBS="$LIBS"
6185	for ac_lib in "" util; do
6186		if test -n "$ac_lib"; then 
6187			ac_lib="-l$ac_lib"
6188		else
6189			ac_lib=""
6190		fi
6191		LIBS=" $ac_lib  $ac_save_LIBS"
6192		cat > conftest.$ac_ext <<EOF
6193#line 6194 "configure"
6194#include "confdefs.h"
6195
6196int main() {
6197logwtmp()
6198; return 0; }
6199EOF
6200if { (eval echo configure:6201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6201  rm -rf conftest*
6202  eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break
6203else
6204  echo "configure: failed program was:" >&5
6205  cat conftest.$ac_ext >&5
6206fi
6207rm -f conftest*
6208	done
6209	eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}"
6210	LIBS="$ac_save_LIBS"
6211fi
6212
6213fi
6214
6215
6216eval "ac_res=\$ac_cv_funclib_logwtmp"
6217
6218: << END
6219@@@funcs="$funcs logwtmp"@@@
6220@@@libs="$libs "" util"@@@
6221END
6222
6223# logwtmp
6224eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6225eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6226eval "LIB_logwtmp=$ac_res"
6227
6228case "$ac_res" in
6229	yes)
6230	eval "ac_cv_func_logwtmp=yes"
6231	eval "LIB_logwtmp="
6232	cat >> confdefs.h <<EOF
6233#define $ac_tr_func 1
6234EOF
6235
6236	echo "$ac_t""yes" 1>&6
6237	;;
6238	no)
6239	eval "ac_cv_func_logwtmp=no"
6240	eval "LIB_logwtmp="
6241	echo "$ac_t""no" 1>&6
6242	;;
6243	*)
6244	eval "ac_cv_func_logwtmp=yes"
6245	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
6246	cat >> confdefs.h <<EOF
6247#define $ac_tr_func 1
6248EOF
6249
6250	cat >> confdefs.h <<EOF
6251#define $ac_tr_lib 1
6252EOF
6253
6254	echo "$ac_t""yes, in $ac_res" 1>&6
6255	;;
6256esac
6257
6258
6259
6260
6261
6262echo $ac_n "checking for tgetent""... $ac_c" 1>&6
6263echo "configure:6264: checking for tgetent" >&5
6264if eval "test \"`echo '$''{'ac_cv_funclib_tgetent'+set}'`\" = set"; then
6265  echo $ac_n "(cached) $ac_c" 1>&6
6266else
6267  
6268if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then
6269	ac_save_LIBS="$LIBS"
6270	for ac_lib in "" termcap ncurses curses; do
6271		if test -n "$ac_lib"; then 
6272			ac_lib="-l$ac_lib"
6273		else
6274			ac_lib=""
6275		fi
6276		LIBS=" $ac_lib  $ac_save_LIBS"
6277		cat > conftest.$ac_ext <<EOF
6278#line 6279 "configure"
6279#include "confdefs.h"
6280
6281int main() {
6282tgetent()
6283; return 0; }
6284EOF
6285if { (eval echo configure:6286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6286  rm -rf conftest*
6287  eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break
6288else
6289  echo "configure: failed program was:" >&5
6290  cat conftest.$ac_ext >&5
6291fi
6292rm -f conftest*
6293	done
6294	eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}"
6295	LIBS="$ac_save_LIBS"
6296fi
6297
6298fi
6299
6300
6301eval "ac_res=\$ac_cv_funclib_tgetent"
6302
6303: << END
6304@@@funcs="$funcs tgetent"@@@
6305@@@libs="$libs "" termcap ncurses curses"@@@
6306END
6307
6308# tgetent
6309eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6310eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6311eval "LIB_tgetent=$ac_res"
6312
6313case "$ac_res" in
6314	yes)
6315	eval "ac_cv_func_tgetent=yes"
6316	eval "LIB_tgetent="
6317	cat >> confdefs.h <<EOF
6318#define $ac_tr_func 1
6319EOF
6320
6321	echo "$ac_t""yes" 1>&6
6322	;;
6323	no)
6324	eval "ac_cv_func_tgetent=no"
6325	eval "LIB_tgetent="
6326	echo "$ac_t""no" 1>&6
6327	;;
6328	*)
6329	eval "ac_cv_func_tgetent=yes"
6330	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
6331	cat >> confdefs.h <<EOF
6332#define $ac_tr_func 1
6333EOF
6334
6335	cat >> confdefs.h <<EOF
6336#define $ac_tr_lib 1
6337EOF
6338
6339	echo "$ac_t""yes, in $ac_res" 1>&6
6340	;;
6341esac
6342
6343
6344
6345
6346
6347
6348echo $ac_n "checking for gethostbyname2""... $ac_c" 1>&6
6349echo "configure:6350: checking for gethostbyname2" >&5
6350if eval "test \"`echo '$''{'ac_cv_funclib_gethostbyname2'+set}'`\" = set"; then
6351  echo $ac_n "(cached) $ac_c" 1>&6
6352else
6353  
6354if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
6355	ac_save_LIBS="$LIBS"
6356	for ac_lib in "" inet6 ip6; do
6357		if test -n "$ac_lib"; then 
6358			ac_lib="-l$ac_lib"
6359		else
6360			ac_lib=""
6361		fi
6362		LIBS=" $ac_lib  $ac_save_LIBS"
6363		cat > conftest.$ac_ext <<EOF
6364#line 6365 "configure"
6365#include "confdefs.h"
6366
6367int main() {
6368gethostbyname2()
6369; return 0; }
6370EOF
6371if { (eval echo configure:6372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6372  rm -rf conftest*
6373  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
6374else
6375  echo "configure: failed program was:" >&5
6376  cat conftest.$ac_ext >&5
6377fi
6378rm -f conftest*
6379	done
6380	eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
6381	LIBS="$ac_save_LIBS"
6382fi
6383
6384fi
6385
6386
6387eval "ac_res=\$ac_cv_funclib_gethostbyname2"
6388
6389: << END
6390@@@funcs="$funcs gethostbyname2"@@@
6391@@@libs="$libs "" inet6 ip6"@@@
6392END
6393
6394# gethostbyname2
6395eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6396eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6397eval "LIB_gethostbyname2=$ac_res"
6398
6399case "$ac_res" in
6400	yes)
6401	eval "ac_cv_func_gethostbyname2=yes"
6402	eval "LIB_gethostbyname2="
6403	cat >> confdefs.h <<EOF
6404#define $ac_tr_func 1
6405EOF
6406
6407	echo "$ac_t""yes" 1>&6
6408	;;
6409	no)
6410	eval "ac_cv_func_gethostbyname2=no"
6411	eval "LIB_gethostbyname2="
6412	echo "$ac_t""no" 1>&6
6413	;;
6414	*)
6415	eval "ac_cv_func_gethostbyname2=yes"
6416	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
6417	cat >> confdefs.h <<EOF
6418#define $ac_tr_func 1
6419EOF
6420
6421	cat >> confdefs.h <<EOF
6422#define $ac_tr_lib 1
6423EOF
6424
6425	echo "$ac_t""yes, in $ac_res" 1>&6
6426	;;
6427esac
6428
6429
6430if test -n "$LIB_gethostbyname2"; then
6431	LIBS="$LIB_gethostbyname2 $LIBS"
6432fi
6433
6434
6435
6436
6437
6438
6439echo $ac_n "checking for res_search""... $ac_c" 1>&6
6440echo "configure:6441: checking for res_search" >&5
6441if eval "test \"`echo '$''{'ac_cv_funclib_res_search'+set}'`\" = set"; then
6442  echo $ac_n "(cached) $ac_c" 1>&6
6443else
6444  
6445if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
6446	ac_save_LIBS="$LIBS"
6447	for ac_lib in "" resolv; do
6448		if test -n "$ac_lib"; then 
6449			ac_lib="-l$ac_lib"
6450		else
6451			ac_lib=""
6452		fi
6453		LIBS=" $ac_lib  $ac_save_LIBS"
6454		cat > conftest.$ac_ext <<EOF
6455#line 6456 "configure"
6456#include "confdefs.h"
6457
6458#include <stdio.h>
6459#ifdef HAVE_SYS_TYPES_H
6460#include <sys/types.h>
6461#endif
6462#ifdef HAVE_NETINET_IN_H
6463#include <netinet/in.h>
6464#endif
6465#ifdef HAVE_ARPA_NAMESER_H
6466#include <arpa/nameser.h>
6467#endif
6468#ifdef HAVE_RESOLV_H
6469#include <resolv.h>
6470#endif
6471
6472int main() {
6473res_search(0,0,0,0,0)
6474; return 0; }
6475EOF
6476if { (eval echo configure:6477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6477  rm -rf conftest*
6478  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
6479else
6480  echo "configure: failed program was:" >&5
6481  cat conftest.$ac_ext >&5
6482fi
6483rm -f conftest*
6484	done
6485	eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
6486	LIBS="$ac_save_LIBS"
6487fi
6488
6489fi
6490
6491
6492eval "ac_res=\$ac_cv_funclib_res_search"
6493
6494: << END
6495@@@funcs="$funcs res_search"@@@
6496@@@libs="$libs "" resolv"@@@
6497END
6498
6499# res_search
6500eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6501eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6502eval "LIB_res_search=$ac_res"
6503
6504case "$ac_res" in
6505	yes)
6506	eval "ac_cv_func_res_search=yes"
6507	eval "LIB_res_search="
6508	cat >> confdefs.h <<EOF
6509#define $ac_tr_func 1
6510EOF
6511
6512	echo "$ac_t""yes" 1>&6
6513	;;
6514	no)
6515	eval "ac_cv_func_res_search=no"
6516	eval "LIB_res_search="
6517	echo "$ac_t""no" 1>&6
6518	;;
6519	*)
6520	eval "ac_cv_func_res_search=yes"
6521	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
6522	cat >> confdefs.h <<EOF
6523#define $ac_tr_func 1
6524EOF
6525
6526	cat >> confdefs.h <<EOF
6527#define $ac_tr_lib 1
6528EOF
6529
6530	echo "$ac_t""yes, in $ac_res" 1>&6
6531	;;
6532esac
6533
6534
6535if test -n "$LIB_res_search"; then
6536	LIBS="$LIB_res_search $LIBS"
6537fi
6538
6539
6540
6541
6542
6543
6544echo $ac_n "checking for dn_expand""... $ac_c" 1>&6
6545echo "configure:6546: checking for dn_expand" >&5
6546if eval "test \"`echo '$''{'ac_cv_funclib_dn_expand'+set}'`\" = set"; then
6547  echo $ac_n "(cached) $ac_c" 1>&6
6548else
6549  
6550if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
6551	ac_save_LIBS="$LIBS"
6552	for ac_lib in "" resolv; do
6553		if test -n "$ac_lib"; then 
6554			ac_lib="-l$ac_lib"
6555		else
6556			ac_lib=""
6557		fi
6558		LIBS=" $ac_lib  $ac_save_LIBS"
6559		cat > conftest.$ac_ext <<EOF
6560#line 6561 "configure"
6561#include "confdefs.h"
6562
6563#include <stdio.h>
6564#ifdef HAVE_SYS_TYPES_H
6565#include <sys/types.h>
6566#endif
6567#ifdef HAVE_NETINET_IN_H
6568#include <netinet/in.h>
6569#endif
6570#ifdef HAVE_ARPA_NAMESER_H
6571#include <arpa/nameser.h>
6572#endif
6573#ifdef HAVE_RESOLV_H
6574#include <resolv.h>
6575#endif
6576
6577int main() {
6578dn_expand(0,0,0,0,0)
6579; return 0; }
6580EOF
6581if { (eval echo configure:6582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6582  rm -rf conftest*
6583  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
6584else
6585  echo "configure: failed program was:" >&5
6586  cat conftest.$ac_ext >&5
6587fi
6588rm -f conftest*
6589	done
6590	eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
6591	LIBS="$ac_save_LIBS"
6592fi
6593
6594fi
6595
6596
6597eval "ac_res=\$ac_cv_funclib_dn_expand"
6598
6599: << END
6600@@@funcs="$funcs dn_expand"@@@
6601@@@libs="$libs "" resolv"@@@
6602END
6603
6604# dn_expand
6605eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6606eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6607eval "LIB_dn_expand=$ac_res"
6608
6609case "$ac_res" in
6610	yes)
6611	eval "ac_cv_func_dn_expand=yes"
6612	eval "LIB_dn_expand="
6613	cat >> confdefs.h <<EOF
6614#define $ac_tr_func 1
6615EOF
6616
6617	echo "$ac_t""yes" 1>&6
6618	;;
6619	no)
6620	eval "ac_cv_func_dn_expand=no"
6621	eval "LIB_dn_expand="
6622	echo "$ac_t""no" 1>&6
6623	;;
6624	*)
6625	eval "ac_cv_func_dn_expand=yes"
6626	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
6627	cat >> confdefs.h <<EOF
6628#define $ac_tr_func 1
6629EOF
6630
6631	cat >> confdefs.h <<EOF
6632#define $ac_tr_lib 1
6633EOF
6634
6635	echo "$ac_t""yes, in $ac_res" 1>&6
6636	;;
6637esac
6638
6639
6640if test -n "$LIB_dn_expand"; then
6641	LIBS="$LIB_dn_expand $LIBS"
6642fi
6643
6644
6645
6646
6647echo $ac_n "checking for working snprintf""... $ac_c" 1>&6
6648echo "configure:6649: checking for working snprintf" >&5
6649if eval "test \"`echo '$''{'ac_cv_func_snprintf_working'+set}'`\" = set"; then
6650  echo $ac_n "(cached) $ac_c" 1>&6
6651else
6652  ac_cv_func_snprintf_working=yes
6653if test "$cross_compiling" = yes; then
6654  :
6655else
6656  cat > conftest.$ac_ext <<EOF
6657#line 6658 "configure"
6658#include "confdefs.h"
6659
6660#include <stdio.h>
6661#include <string.h>
6662int main()
6663{
6664	char foo[3];
6665	snprintf(foo, 2, "12");
6666	return strcmp(foo, "1");
6667}
6668EOF
6669if { (eval echo configure:6670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6670then
6671  :
6672else
6673  echo "configure: failed program was:" >&5
6674  cat conftest.$ac_ext >&5
6675  rm -fr conftest*
6676  ac_cv_func_snprintf_working=no
6677fi
6678rm -fr conftest*
6679fi
6680
6681fi
6682
6683echo "$ac_t""$ac_cv_func_snprintf_working" 1>&6
6684
6685if test "$ac_cv_func_snprintf_working" = yes; then
6686	cat >> confdefs.h <<EOF
6687#define HAVE_SNPRINTF 1
6688EOF
6689
6690fi
6691if test "$ac_cv_func_snprintf_working" = yes; then
6692
6693if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
6694echo $ac_n "checking if snprintf needs a prototype""... $ac_c" 1>&6
6695echo "configure:6696: checking if snprintf needs a prototype" >&5
6696if eval "test \"`echo '$''{'ac_cv_func_snprintf_noproto'+set}'`\" = set"; then
6697  echo $ac_n "(cached) $ac_c" 1>&6
6698else
6699  cat > conftest.$ac_ext <<EOF
6700#line 6701 "configure"
6701#include "confdefs.h"
6702#include <stdio.h>
6703int main() {
6704struct foo { int foo; } xx;
6705extern int snprintf (struct foo*);
6706snprintf(&xx);
6707
6708; return 0; }
6709EOF
6710if { (eval echo configure:6711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6711  rm -rf conftest*
6712  eval "ac_cv_func_snprintf_noproto=yes"
6713else
6714  echo "configure: failed program was:" >&5
6715  cat conftest.$ac_ext >&5
6716  rm -rf conftest*
6717  eval "ac_cv_func_snprintf_noproto=no"
6718fi
6719rm -f conftest*
6720fi
6721
6722echo "$ac_t""$ac_cv_func_snprintf_noproto" 1>&6
6723
6724if test "$ac_cv_func_snprintf_noproto" = yes; then
6725	cat >> confdefs.h <<\EOF
6726#define NEED_SNPRINTF_PROTO 1
6727EOF
6728
6729fi
6730
6731fi
6732
6733fi
6734
6735
6736echo $ac_n "checking for working vsnprintf""... $ac_c" 1>&6
6737echo "configure:6738: checking for working vsnprintf" >&5
6738if eval "test \"`echo '$''{'ac_cv_func_vsnprintf_working'+set}'`\" = set"; then
6739  echo $ac_n "(cached) $ac_c" 1>&6
6740else
6741  ac_cv_func_vsnprintf_working=yes
6742if test "$cross_compiling" = yes; then
6743  :
6744else
6745  cat > conftest.$ac_ext <<EOF
6746#line 6747 "configure"
6747#include "confdefs.h"
6748
6749#include <stdio.h>
6750#include <string.h>
6751#include <stdarg.h>
6752
6753int foo(int num, ...)
6754{
6755	char bar[3];
6756	va_list arg;
6757	va_start(arg, num);
6758	vsnprintf(bar, 2, "%s", arg);
6759	va_end(arg);
6760	return strcmp(bar, "1");
6761}
6762
6763
6764int main()
6765{
6766	return foo(0, "12");
6767}
6768EOF
6769if { (eval echo configure:6770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6770then
6771  :
6772else
6773  echo "configure: failed program was:" >&5
6774  cat conftest.$ac_ext >&5
6775  rm -fr conftest*
6776  ac_cv_func_vsnprintf_working=no
6777fi
6778rm -fr conftest*
6779fi
6780
6781fi
6782
6783echo "$ac_t""$ac_cv_func_vsnprintf_working" 1>&6
6784
6785if test "$ac_cv_func_vsnprintf_working" = yes; then
6786	cat >> confdefs.h <<EOF
6787#define HAVE_VSNPRINTF 1
6788EOF
6789
6790fi
6791if test "$ac_cv_func_vsnprintf_working" = yes; then
6792
6793if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
6794echo $ac_n "checking if vsnprintf needs a prototype""... $ac_c" 1>&6
6795echo "configure:6796: checking if vsnprintf needs a prototype" >&5
6796if eval "test \"`echo '$''{'ac_cv_func_vsnprintf_noproto'+set}'`\" = set"; then
6797  echo $ac_n "(cached) $ac_c" 1>&6
6798else
6799  cat > conftest.$ac_ext <<EOF
6800#line 6801 "configure"
6801#include "confdefs.h"
6802#include <stdio.h>
6803int main() {
6804struct foo { int foo; } xx;
6805extern int vsnprintf (struct foo*);
6806vsnprintf(&xx);
6807
6808; return 0; }
6809EOF
6810if { (eval echo configure:6811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6811  rm -rf conftest*
6812  eval "ac_cv_func_vsnprintf_noproto=yes"
6813else
6814  echo "configure: failed program was:" >&5
6815  cat conftest.$ac_ext >&5
6816  rm -rf conftest*
6817  eval "ac_cv_func_vsnprintf_noproto=no"
6818fi
6819rm -f conftest*
6820fi
6821
6822echo "$ac_t""$ac_cv_func_vsnprintf_noproto" 1>&6
6823
6824if test "$ac_cv_func_vsnprintf_noproto" = yes; then
6825	cat >> confdefs.h <<\EOF
6826#define NEED_VSNPRINTF_PROTO 1
6827EOF
6828
6829fi
6830
6831fi
6832
6833fi
6834
6835
6836
6837echo $ac_n "checking for working glob""... $ac_c" 1>&6
6838echo "configure:6839: checking for working glob" >&5
6839if eval "test \"`echo '$''{'ac_cv_func_glob_working'+set}'`\" = set"; then
6840  echo $ac_n "(cached) $ac_c" 1>&6
6841else
6842  ac_cv_func_glob_working=yes
6843cat > conftest.$ac_ext <<EOF
6844#line 6845 "configure"
6845#include "confdefs.h"
6846
6847#include <stdio.h>
6848#include <glob.h>
6849int main() {
6850
6851glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE, NULL, NULL);
6852
6853; return 0; }
6854EOF
6855if { (eval echo configure:6856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6856  rm -rf conftest*
6857  :
6858else
6859  echo "configure: failed program was:" >&5
6860  cat conftest.$ac_ext >&5
6861  rm -rf conftest*
6862  ac_cv_func_glob_working=no
6863fi
6864rm -f conftest*
6865fi
6866
6867echo "$ac_t""$ac_cv_func_glob_working" 1>&6
6868
6869if test "$ac_cv_func_glob_working" = yes; then
6870	cat >> confdefs.h <<\EOF
6871#define HAVE_GLOB 1
6872EOF
6873
6874fi
6875if test "$ac_cv_func_glob_working" = yes; then
6876
6877if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then
6878echo $ac_n "checking if glob needs a prototype""... $ac_c" 1>&6
6879echo "configure:6880: checking if glob needs a prototype" >&5
6880if eval "test \"`echo '$''{'ac_cv_func_glob_noproto'+set}'`\" = set"; then
6881  echo $ac_n "(cached) $ac_c" 1>&6
6882else
6883  cat > conftest.$ac_ext <<EOF
6884#line 6885 "configure"
6885#include "confdefs.h"
6886#include <stdio.h>
6887#include <glob.h>
6888int main() {
6889struct foo { int foo; } xx;
6890extern int glob (struct foo*);
6891glob(&xx);
6892
6893; return 0; }
6894EOF
6895if { (eval echo configure:6896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6896  rm -rf conftest*
6897  eval "ac_cv_func_glob_noproto=yes"
6898else
6899  echo "configure: failed program was:" >&5
6900  cat conftest.$ac_ext >&5
6901  rm -rf conftest*
6902  eval "ac_cv_func_glob_noproto=no"
6903fi
6904rm -f conftest*
6905fi
6906
6907echo "$ac_t""$ac_cv_func_glob_noproto" 1>&6
6908
6909if test "$ac_cv_func_glob_noproto" = yes; then
6910	cat >> confdefs.h <<\EOF
6911#define NEED_GLOB_PROTO 1
6912EOF
6913
6914fi
6915
6916fi
6917
6918fi
6919
6920
6921if test "$ac_cv_func_glob_working" != yes; then
6922	LIBOBJS="$LIBOBJS glob.o"
6923fi
6924
6925
6926if test "$ac_cv_func_glob_working" = yes; then
6927  have_glob_h_TRUE=
6928  have_glob_h_FALSE='#'
6929else
6930  have_glob_h_TRUE='#'
6931  have_glob_h_FALSE=
6932fi
6933
6934
6935
6936
6937
6938echo $ac_n "checking for dbopen""... $ac_c" 1>&6
6939echo "configure:6940: checking for dbopen" >&5
6940if eval "test \"`echo '$''{'ac_cv_funclib_dbopen'+set}'`\" = set"; then
6941  echo $ac_n "(cached) $ac_c" 1>&6
6942else
6943  
6944if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then
6945	ac_save_LIBS="$LIBS"
6946	for ac_lib in "" $berkeley_db; do
6947		if test -n "$ac_lib"; then 
6948			ac_lib="-l$ac_lib"
6949		else
6950			ac_lib=""
6951		fi
6952		LIBS=" $ac_lib  $ac_save_LIBS"
6953		cat > conftest.$ac_ext <<EOF
6954#line 6955 "configure"
6955#include "confdefs.h"
6956
6957int main() {
6958dbopen()
6959; return 0; }
6960EOF
6961if { (eval echo configure:6962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6962  rm -rf conftest*
6963  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break
6964else
6965  echo "configure: failed program was:" >&5
6966  cat conftest.$ac_ext >&5
6967fi
6968rm -f conftest*
6969	done
6970	eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}"
6971	LIBS="$ac_save_LIBS"
6972fi
6973
6974fi
6975
6976
6977eval "ac_res=\$ac_cv_funclib_dbopen"
6978
6979: << END
6980@@@funcs="$funcs dbopen"@@@
6981@@@libs="$libs "" $berkeley_db"@@@
6982END
6983
6984# dbopen
6985eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6986eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6987eval "LIB_dbopen=$ac_res"
6988
6989case "$ac_res" in
6990	yes)
6991	eval "ac_cv_func_dbopen=yes"
6992	eval "LIB_dbopen="
6993	cat >> confdefs.h <<EOF
6994#define $ac_tr_func 1
6995EOF
6996
6997	echo "$ac_t""yes" 1>&6
6998	;;
6999	no)
7000	eval "ac_cv_func_dbopen=no"
7001	eval "LIB_dbopen="
7002	echo "$ac_t""no" 1>&6
7003	;;
7004	*)
7005	eval "ac_cv_func_dbopen=yes"
7006	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
7007	cat >> confdefs.h <<EOF
7008#define $ac_tr_func 1
7009EOF
7010
7011	cat >> confdefs.h <<EOF
7012#define $ac_tr_lib 1
7013EOF
7014
7015	echo "$ac_t""yes, in $ac_res" 1>&6
7016	;;
7017esac
7018
7019
7020
7021
7022
7023echo $ac_n "checking for dbm_firstkey""... $ac_c" 1>&6
7024echo "configure:7025: checking for dbm_firstkey" >&5
7025if eval "test \"`echo '$''{'ac_cv_funclib_dbm_firstkey'+set}'`\" = set"; then
7026  echo $ac_n "(cached) $ac_c" 1>&6
7027else
7028  
7029if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
7030	ac_save_LIBS="$LIBS"
7031	for ac_lib in "" $berkeley_db gdbm ndbm; do
7032		if test -n "$ac_lib"; then 
7033			ac_lib="-l$ac_lib"
7034		else
7035			ac_lib=""
7036		fi
7037		LIBS=" $ac_lib  $ac_save_LIBS"
7038		cat > conftest.$ac_ext <<EOF
7039#line 7040 "configure"
7040#include "confdefs.h"
7041
7042int main() {
7043dbm_firstkey()
7044; return 0; }
7045EOF
7046if { (eval echo configure:7047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7047  rm -rf conftest*
7048  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
7049else
7050  echo "configure: failed program was:" >&5
7051  cat conftest.$ac_ext >&5
7052fi
7053rm -f conftest*
7054	done
7055	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
7056	LIBS="$ac_save_LIBS"
7057fi
7058
7059fi
7060
7061
7062eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
7063
7064: << END
7065@@@funcs="$funcs dbm_firstkey"@@@
7066@@@libs="$libs "" $berkeley_db gdbm ndbm"@@@
7067END
7068
7069# dbm_firstkey
7070eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
7071eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
7072eval "LIB_dbm_firstkey=$ac_res"
7073
7074case "$ac_res" in
7075	yes)
7076	eval "ac_cv_func_dbm_firstkey=yes"
7077	eval "LIB_dbm_firstkey="
7078	cat >> confdefs.h <<EOF
7079#define $ac_tr_func 1
7080EOF
7081
7082	echo "$ac_t""yes" 1>&6
7083	;;
7084	no)
7085	eval "ac_cv_func_dbm_firstkey=no"
7086	eval "LIB_dbm_firstkey="
7087	echo "$ac_t""no" 1>&6
7088	;;
7089	*)
7090	eval "ac_cv_func_dbm_firstkey=yes"
7091	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
7092	cat >> confdefs.h <<EOF
7093#define $ac_tr_func 1
7094EOF
7095
7096	cat >> confdefs.h <<EOF
7097#define $ac_tr_lib 1
7098EOF
7099
7100	echo "$ac_t""yes, in $ac_res" 1>&6
7101	;;
7102esac
7103
7104
7105
7106DBLIB="$LIB_dbopen"
7107if test "$LIB_dbopen" != "$LIB_dbm_firstkey"; then
7108	DBLIB="$DBLIB $LIB_dbm_firstkey"
7109fi
7110
7111for ac_func in _getpty _scrsize asnprintf asprintf cgetent fcntl
7112do
7113echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7114echo "configure:7115: checking for $ac_func" >&5
7115if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7116  echo $ac_n "(cached) $ac_c" 1>&6
7117else
7118  cat > conftest.$ac_ext <<EOF
7119#line 7120 "configure"
7120#include "confdefs.h"
7121/* System header to define __stub macros and hopefully few prototypes,
7122    which can conflict with char $ac_func(); below.  */
7123#include <assert.h>
7124/* Override any gcc2 internal prototype to avoid an error.  */
7125/* We use char because int might match the return type of a gcc2
7126    builtin and then its argument prototype would still apply.  */
7127char $ac_func();
7128
7129int main() {
7130
7131/* The GNU C library defines this for functions which it implements
7132    to always fail with ENOSYS.  Some functions are actually named
7133    something starting with __ and the normal name is an alias.  */
7134#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7135choke me
7136#else
7137$ac_func();
7138#endif
7139
7140; return 0; }
7141EOF
7142if { (eval echo configure:7143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7143  rm -rf conftest*
7144  eval "ac_cv_func_$ac_func=yes"
7145else
7146  echo "configure: failed program was:" >&5
7147  cat conftest.$ac_ext >&5
7148  rm -rf conftest*
7149  eval "ac_cv_func_$ac_func=no"
7150fi
7151rm -f conftest*
7152fi
7153
7154if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7155  echo "$ac_t""yes" 1>&6
7156    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7157  cat >> confdefs.h <<EOF
7158#define $ac_tr_func 1
7159EOF
7160 
7161else
7162  echo "$ac_t""no" 1>&6
7163fi
7164done
7165
7166for ac_func in getmsg getrlimit getspnam gettimeofday getuid
7167do
7168echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7169echo "configure:7170: checking for $ac_func" >&5
7170if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7171  echo $ac_n "(cached) $ac_c" 1>&6
7172else
7173  cat > conftest.$ac_ext <<EOF
7174#line 7175 "configure"
7175#include "confdefs.h"
7176/* System header to define __stub macros and hopefully few prototypes,
7177    which can conflict with char $ac_func(); below.  */
7178#include <assert.h>
7179/* Override any gcc2 internal prototype to avoid an error.  */
7180/* We use char because int might match the return type of a gcc2
7181    builtin and then its argument prototype would still apply.  */
7182char $ac_func();
7183
7184int main() {
7185
7186/* The GNU C library defines this for functions which it implements
7187    to always fail with ENOSYS.  Some functions are actually named
7188    something starting with __ and the normal name is an alias.  */
7189#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7190choke me
7191#else
7192$ac_func();
7193#endif
7194
7195; return 0; }
7196EOF
7197if { (eval echo configure:7198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7198  rm -rf conftest*
7199  eval "ac_cv_func_$ac_func=yes"
7200else
7201  echo "configure: failed program was:" >&5
7202  cat conftest.$ac_ext >&5
7203  rm -rf conftest*
7204  eval "ac_cv_func_$ac_func=no"
7205fi
7206rm -f conftest*
7207fi
7208
7209if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7210  echo "$ac_t""yes" 1>&6
7211    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7212  cat >> confdefs.h <<EOF
7213#define $ac_tr_func 1
7214EOF
7215 
7216else
7217  echo "$ac_t""no" 1>&6
7218fi
7219done
7220
7221for ac_func in grantpt mktime ptsname rand random setproctitle
7222do
7223echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7224echo "configure:7225: checking for $ac_func" >&5
7225if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7226  echo $ac_n "(cached) $ac_c" 1>&6
7227else
7228  cat > conftest.$ac_ext <<EOF
7229#line 7230 "configure"
7230#include "confdefs.h"
7231/* System header to define __stub macros and hopefully few prototypes,
7232    which can conflict with char $ac_func(); below.  */
7233#include <assert.h>
7234/* Override any gcc2 internal prototype to avoid an error.  */
7235/* We use char because int might match the return type of a gcc2
7236    builtin and then its argument prototype would still apply.  */
7237char $ac_func();
7238
7239int main() {
7240
7241/* The GNU C library defines this for functions which it implements
7242    to always fail with ENOSYS.  Some functions are actually named
7243    something starting with __ and the normal name is an alias.  */
7244#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7245choke me
7246#else
7247$ac_func();
7248#endif
7249
7250; return 0; }
7251EOF
7252if { (eval echo configure:7253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7253  rm -rf conftest*
7254  eval "ac_cv_func_$ac_func=yes"
7255else
7256  echo "configure: failed program was:" >&5
7257  cat conftest.$ac_ext >&5
7258  rm -rf conftest*
7259  eval "ac_cv_func_$ac_func=no"
7260fi
7261rm -f conftest*
7262fi
7263
7264if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7265  echo "$ac_t""yes" 1>&6
7266    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7267  cat >> confdefs.h <<EOF
7268#define $ac_tr_func 1
7269EOF
7270 
7271else
7272  echo "$ac_t""no" 1>&6
7273fi
7274done
7275
7276for ac_func in revoke select setitimer setpcred setpgid
7277do
7278echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7279echo "configure:7280: checking for $ac_func" >&5
7280if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7281  echo $ac_n "(cached) $ac_c" 1>&6
7282else
7283  cat > conftest.$ac_ext <<EOF
7284#line 7285 "configure"
7285#include "confdefs.h"
7286/* System header to define __stub macros and hopefully few prototypes,
7287    which can conflict with char $ac_func(); below.  */
7288#include <assert.h>
7289/* Override any gcc2 internal prototype to avoid an error.  */
7290/* We use char because int might match the return type of a gcc2
7291    builtin and then its argument prototype would still apply.  */
7292char $ac_func();
7293
7294int main() {
7295
7296/* The GNU C library defines this for functions which it implements
7297    to always fail with ENOSYS.  Some functions are actually named
7298    something starting with __ and the normal name is an alias.  */
7299#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7300choke me
7301#else
7302$ac_func();
7303#endif
7304
7305; return 0; }
7306EOF
7307if { (eval echo configure:7308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7308  rm -rf conftest*
7309  eval "ac_cv_func_$ac_func=yes"
7310else
7311  echo "configure: failed program was:" >&5
7312  cat conftest.$ac_ext >&5
7313  rm -rf conftest*
7314  eval "ac_cv_func_$ac_func=no"
7315fi
7316rm -f conftest*
7317fi
7318
7319if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7320  echo "$ac_t""yes" 1>&6
7321    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7322  cat >> confdefs.h <<EOF
7323#define $ac_tr_func 1
7324EOF
7325 
7326else
7327  echo "$ac_t""no" 1>&6
7328fi
7329done
7330
7331for ac_func in setregid setresgid setresuid setreuid setutent
7332do
7333echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7334echo "configure:7335: checking for $ac_func" >&5
7335if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7336  echo $ac_n "(cached) $ac_c" 1>&6
7337else
7338  cat > conftest.$ac_ext <<EOF
7339#line 7340 "configure"
7340#include "confdefs.h"
7341/* System header to define __stub macros and hopefully few prototypes,
7342    which can conflict with char $ac_func(); below.  */
7343#include <assert.h>
7344/* Override any gcc2 internal prototype to avoid an error.  */
7345/* We use char because int might match the return type of a gcc2
7346    builtin and then its argument prototype would still apply.  */
7347char $ac_func();
7348
7349int main() {
7350
7351/* The GNU C library defines this for functions which it implements
7352    to always fail with ENOSYS.  Some functions are actually named
7353    something starting with __ and the normal name is an alias.  */
7354#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7355choke me
7356#else
7357$ac_func();
7358#endif
7359
7360; return 0; }
7361EOF
7362if { (eval echo configure:7363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7363  rm -rf conftest*
7364  eval "ac_cv_func_$ac_func=yes"
7365else
7366  echo "configure: failed program was:" >&5
7367  cat conftest.$ac_ext >&5
7368  rm -rf conftest*
7369  eval "ac_cv_func_$ac_func=no"
7370fi
7371rm -f conftest*
7372fi
7373
7374if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7375  echo "$ac_t""yes" 1>&6
7376    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7377  cat >> confdefs.h <<EOF
7378#define $ac_tr_func 1
7379EOF
7380 
7381else
7382  echo "$ac_t""no" 1>&6
7383fi
7384done
7385
7386for ac_func in setsid sigaction strstr
7387do
7388echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7389echo "configure:7390: checking for $ac_func" >&5
7390if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7391  echo $ac_n "(cached) $ac_c" 1>&6
7392else
7393  cat > conftest.$ac_ext <<EOF
7394#line 7395 "configure"
7395#include "confdefs.h"
7396/* System header to define __stub macros and hopefully few prototypes,
7397    which can conflict with char $ac_func(); below.  */
7398#include <assert.h>
7399/* Override any gcc2 internal prototype to avoid an error.  */
7400/* We use char because int might match the return type of a gcc2
7401    builtin and then its argument prototype would still apply.  */
7402char $ac_func();
7403
7404int main() {
7405
7406/* The GNU C library defines this for functions which it implements
7407    to always fail with ENOSYS.  Some functions are actually named
7408    something starting with __ and the normal name is an alias.  */
7409#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7410choke me
7411#else
7412$ac_func();
7413#endif
7414
7415; return 0; }
7416EOF
7417if { (eval echo configure:7418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7418  rm -rf conftest*
7419  eval "ac_cv_func_$ac_func=yes"
7420else
7421  echo "configure: failed program was:" >&5
7422  cat conftest.$ac_ext >&5
7423  rm -rf conftest*
7424  eval "ac_cv_func_$ac_func=no"
7425fi
7426rm -f conftest*
7427fi
7428
7429if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7430  echo "$ac_t""yes" 1>&6
7431    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7432  cat >> confdefs.h <<EOF
7433#define $ac_tr_func 1
7434EOF
7435 
7436else
7437  echo "$ac_t""no" 1>&6
7438fi
7439done
7440
7441for ac_func in sysconf sysctl timegm ttyname ttyslot umask uname
7442do
7443echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7444echo "configure:7445: checking for $ac_func" >&5
7445if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7446  echo $ac_n "(cached) $ac_c" 1>&6
7447else
7448  cat > conftest.$ac_ext <<EOF
7449#line 7450 "configure"
7450#include "confdefs.h"
7451/* System header to define __stub macros and hopefully few prototypes,
7452    which can conflict with char $ac_func(); below.  */
7453#include <assert.h>
7454/* Override any gcc2 internal prototype to avoid an error.  */
7455/* We use char because int might match the return type of a gcc2
7456    builtin and then its argument prototype would still apply.  */
7457char $ac_func();
7458
7459int 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)
7465choke me
7466#else
7467$ac_func();
7468#endif
7469
7470; return 0; }
7471EOF
7472if { (eval echo configure:7473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7473  rm -rf conftest*
7474  eval "ac_cv_func_$ac_func=yes"
7475else
7476  echo "configure: failed program was:" >&5
7477  cat conftest.$ac_ext >&5
7478  rm -rf conftest*
7479  eval "ac_cv_func_$ac_func=no"
7480fi
7481rm -f conftest*
7482fi
7483
7484if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7485  echo "$ac_t""yes" 1>&6
7486    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7487  cat >> confdefs.h <<EOF
7488#define $ac_tr_func 1
7489EOF
7490 
7491else
7492  echo "$ac_t""no" 1>&6
7493fi
7494done
7495
7496for ac_func in unlockpt vasnprintf vasprintf vhangup
7497do
7498echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7499echo "configure:7500: checking for $ac_func" >&5
7500if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7501  echo $ac_n "(cached) $ac_c" 1>&6
7502else
7503  cat > conftest.$ac_ext <<EOF
7504#line 7505 "configure"
7505#include "confdefs.h"
7506/* System header to define __stub macros and hopefully few prototypes,
7507    which can conflict with char $ac_func(); below.  */
7508#include <assert.h>
7509/* Override any gcc2 internal prototype to avoid an error.  */
7510/* We use char because int might match the return type of a gcc2
7511    builtin and then its argument prototype would still apply.  */
7512char $ac_func();
7513
7514int main() {
7515
7516/* The GNU C library defines this for functions which it implements
7517    to always fail with ENOSYS.  Some functions are actually named
7518    something starting with __ and the normal name is an alias.  */
7519#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7520choke me
7521#else
7522$ac_func();
7523#endif
7524
7525; return 0; }
7526EOF
7527if { (eval echo configure:7528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7528  rm -rf conftest*
7529  eval "ac_cv_func_$ac_func=yes"
7530else
7531  echo "configure: failed program was:" >&5
7532  cat conftest.$ac_ext >&5
7533  rm -rf conftest*
7534  eval "ac_cv_func_$ac_func=no"
7535fi
7536rm -f conftest*
7537fi
7538
7539if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7540  echo "$ac_t""yes" 1>&6
7541    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7542  cat >> confdefs.h <<EOF
7543#define $ac_tr_func 1
7544EOF
7545 
7546else
7547  echo "$ac_t""no" 1>&6
7548fi
7549done
7550
7551for ac_func in yp_get_default_domain
7552do
7553echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7554echo "configure:7555: checking for $ac_func" >&5
7555if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7556  echo $ac_n "(cached) $ac_c" 1>&6
7557else
7558  cat > conftest.$ac_ext <<EOF
7559#line 7560 "configure"
7560#include "confdefs.h"
7561/* System header to define __stub macros and hopefully few prototypes,
7562    which can conflict with char $ac_func(); below.  */
7563#include <assert.h>
7564/* Override any gcc2 internal prototype to avoid an error.  */
7565/* We use char because int might match the return type of a gcc2
7566    builtin and then its argument prototype would still apply.  */
7567char $ac_func();
7568
7569int main() {
7570
7571/* The GNU C library defines this for functions which it implements
7572    to always fail with ENOSYS.  Some functions are actually named
7573    something starting with __ and the normal name is an alias.  */
7574#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7575choke me
7576#else
7577$ac_func();
7578#endif
7579
7580; return 0; }
7581EOF
7582if { (eval echo configure:7583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7583  rm -rf conftest*
7584  eval "ac_cv_func_$ac_func=yes"
7585else
7586  echo "configure: failed program was:" >&5
7587  cat conftest.$ac_ext >&5
7588  rm -rf conftest*
7589  eval "ac_cv_func_$ac_func=no"
7590fi
7591rm -f conftest*
7592fi
7593
7594if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7595  echo "$ac_t""yes" 1>&6
7596    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7597  cat >> confdefs.h <<EOF
7598#define $ac_tr_func 1
7599EOF
7600 
7601else
7602  echo "$ac_t""no" 1>&6
7603fi
7604done
7605
7606
7607if test "$ac_cv_func_cgetent" = no; then
7608	LIBOBJS="$LIBOBJS getcap.o"
7609fi
7610
7611
7612for ac_func in getlogin setlogin
7613do
7614echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7615echo "configure:7616: checking for $ac_func" >&5
7616if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7617  echo $ac_n "(cached) $ac_c" 1>&6
7618else
7619  cat > conftest.$ac_ext <<EOF
7620#line 7621 "configure"
7621#include "confdefs.h"
7622/* System header to define __stub macros and hopefully few prototypes,
7623    which can conflict with char $ac_func(); below.  */
7624#include <assert.h>
7625/* Override any gcc2 internal prototype to avoid an error.  */
7626/* We use char because int might match the return type of a gcc2
7627    builtin and then its argument prototype would still apply.  */
7628char $ac_func();
7629
7630int main() {
7631
7632/* The GNU C library defines this for functions which it implements
7633    to always fail with ENOSYS.  Some functions are actually named
7634    something starting with __ and the normal name is an alias.  */
7635#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7636choke me
7637#else
7638$ac_func();
7639#endif
7640
7641; return 0; }
7642EOF
7643if { (eval echo configure:7644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7644  rm -rf conftest*
7645  eval "ac_cv_func_$ac_func=yes"
7646else
7647  echo "configure: failed program was:" >&5
7648  cat conftest.$ac_ext >&5
7649  rm -rf conftest*
7650  eval "ac_cv_func_$ac_func=no"
7651fi
7652rm -f conftest*
7653fi
7654
7655if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7656  echo "$ac_t""yes" 1>&6
7657    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7658  cat >> confdefs.h <<EOF
7659#define $ac_tr_func 1
7660EOF
7661 
7662else
7663  echo "$ac_t""no" 1>&6
7664fi
7665done
7666
7667if test "$ac_cv_func_getlogin" = yes; then
7668echo $ac_n "checking if getlogin is posix""... $ac_c" 1>&6
7669echo "configure:7670: checking if getlogin is posix" >&5
7670if eval "test \"`echo '$''{'ac_cv_func_getlogin_posix'+set}'`\" = set"; then
7671  echo $ac_n "(cached) $ac_c" 1>&6
7672else
7673  
7674if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
7675	ac_cv_func_getlogin_posix=no
7676else
7677	ac_cv_func_getlogin_posix=yes
7678fi
7679
7680fi
7681
7682echo "$ac_t""$ac_cv_func_getlogin_posix" 1>&6
7683if test "$ac_cv_func_getlogin_posix" = yes; then
7684	cat >> confdefs.h <<\EOF
7685#define POSIX_GETLOGIN 1
7686EOF
7687
7688fi
7689fi
7690
7691
7692
7693
7694for ac_hdr in capability.h sys/capability.h
7695do
7696ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7697echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7698echo "configure:7699: checking for $ac_hdr" >&5
7699if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7700  echo $ac_n "(cached) $ac_c" 1>&6
7701else
7702  cat > conftest.$ac_ext <<EOF
7703#line 7704 "configure"
7704#include "confdefs.h"
7705#include <$ac_hdr>
7706EOF
7707ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7708{ (eval echo configure:7709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7709ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7710if test -z "$ac_err"; then
7711  rm -rf conftest*
7712  eval "ac_cv_header_$ac_safe=yes"
7713else
7714  echo "$ac_err" >&5
7715  echo "configure: failed program was:" >&5
7716  cat conftest.$ac_ext >&5
7717  rm -rf conftest*
7718  eval "ac_cv_header_$ac_safe=no"
7719fi
7720rm -f conftest*
7721fi
7722if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7723  echo "$ac_t""yes" 1>&6
7724    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7725  cat >> confdefs.h <<EOF
7726#define $ac_tr_hdr 1
7727EOF
7728 
7729else
7730  echo "$ac_t""no" 1>&6
7731fi
7732done
7733
7734
7735for ac_func in sgi_getcapabilitybyname cap_set_proc
7736do
7737echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7738echo "configure:7739: checking for $ac_func" >&5
7739if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7740  echo $ac_n "(cached) $ac_c" 1>&6
7741else
7742  cat > conftest.$ac_ext <<EOF
7743#line 7744 "configure"
7744#include "confdefs.h"
7745/* System header to define __stub macros and hopefully few prototypes,
7746    which can conflict with char $ac_func(); below.  */
7747#include <assert.h>
7748/* Override any gcc2 internal prototype to avoid an error.  */
7749/* We use char because int might match the return type of a gcc2
7750    builtin and then its argument prototype would still apply.  */
7751char $ac_func();
7752
7753int main() {
7754
7755/* The GNU C library defines this for functions which it implements
7756    to always fail with ENOSYS.  Some functions are actually named
7757    something starting with __ and the normal name is an alias.  */
7758#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7759choke me
7760#else
7761$ac_func();
7762#endif
7763
7764; return 0; }
7765EOF
7766if { (eval echo configure:7767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7767  rm -rf conftest*
7768  eval "ac_cv_func_$ac_func=yes"
7769else
7770  echo "configure: failed program was:" >&5
7771  cat conftest.$ac_ext >&5
7772  rm -rf conftest*
7773  eval "ac_cv_func_$ac_func=no"
7774fi
7775rm -f conftest*
7776fi
7777
7778if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7779  echo "$ac_t""yes" 1>&6
7780    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7781  cat >> confdefs.h <<EOF
7782#define $ac_tr_func 1
7783EOF
7784 
7785else
7786  echo "$ac_t""no" 1>&6
7787fi
7788done
7789
7790
7791
7792
7793
7794
7795
7796echo $ac_n "checking for getpwnam_r""... $ac_c" 1>&6
7797echo "configure:7798: checking for getpwnam_r" >&5
7798if eval "test \"`echo '$''{'ac_cv_funclib_getpwnam_r'+set}'`\" = set"; then
7799  echo $ac_n "(cached) $ac_c" 1>&6
7800else
7801  
7802if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then
7803	ac_save_LIBS="$LIBS"
7804	for ac_lib in "" c_r; do
7805		if test -n "$ac_lib"; then 
7806			ac_lib="-l$ac_lib"
7807		else
7808			ac_lib=""
7809		fi
7810		LIBS=" $ac_lib  $ac_save_LIBS"
7811		cat > conftest.$ac_ext <<EOF
7812#line 7813 "configure"
7813#include "confdefs.h"
7814
7815int main() {
7816getpwnam_r()
7817; return 0; }
7818EOF
7819if { (eval echo configure:7820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7820  rm -rf conftest*
7821  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break
7822else
7823  echo "configure: failed program was:" >&5
7824  cat conftest.$ac_ext >&5
7825fi
7826rm -f conftest*
7827	done
7828	eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}"
7829	LIBS="$ac_save_LIBS"
7830fi
7831
7832fi
7833
7834
7835eval "ac_res=\$ac_cv_funclib_getpwnam_r"
7836
7837: << END
7838@@@funcs="$funcs getpwnam_r"@@@
7839@@@libs="$libs "" c_r"@@@
7840END
7841
7842# getpwnam_r
7843eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
7844eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
7845eval "LIB_getpwnam_r=$ac_res"
7846
7847case "$ac_res" in
7848	yes)
7849	eval "ac_cv_func_getpwnam_r=yes"
7850	eval "LIB_getpwnam_r="
7851	cat >> confdefs.h <<EOF
7852#define $ac_tr_func 1
7853EOF
7854
7855	echo "$ac_t""yes" 1>&6
7856	;;
7857	no)
7858	eval "ac_cv_func_getpwnam_r=no"
7859	eval "LIB_getpwnam_r="
7860	echo "$ac_t""no" 1>&6
7861	;;
7862	*)
7863	eval "ac_cv_func_getpwnam_r=yes"
7864	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
7865	cat >> confdefs.h <<EOF
7866#define $ac_tr_func 1
7867EOF
7868
7869	cat >> confdefs.h <<EOF
7870#define $ac_tr_lib 1
7871EOF
7872
7873	echo "$ac_t""yes, in $ac_res" 1>&6
7874	;;
7875esac
7876
7877
7878if test "$ac_cv_func_getpwnam_r" = yes; then
7879	echo $ac_n "checking if getpwnam_r is posix""... $ac_c" 1>&6
7880echo "configure:7881: checking if getpwnam_r is posix" >&5
7881if eval "test \"`echo '$''{'ac_cv_func_getpwnam_r_posix'+set}'`\" = set"; then
7882  echo $ac_n "(cached) $ac_c" 1>&6
7883else
7884  ac_libs="$LIBS"
7885	LIBS="$LIBS $LIB_getpwnam_r"
7886	if test "$cross_compiling" = yes; then
7887  :
7888else
7889  cat > conftest.$ac_ext <<EOF
7890#line 7891 "configure"
7891#include "confdefs.h"
7892
7893#include <pwd.h>
7894int main()
7895{
7896	struct passwd pw, *pwd;
7897	return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;
7898}
7899
7900EOF
7901if { (eval echo configure:7902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7902then
7903  ac_cv_func_getpwnam_r_posix=yes
7904else
7905  echo "configure: failed program was:" >&5
7906  cat conftest.$ac_ext >&5
7907  rm -fr conftest*
7908  ac_cv_func_getpwnam_r_posix=no
7909fi
7910rm -fr conftest*
7911fi
7912
7913LIBS="$ac_libs"
7914fi
7915
7916echo "$ac_t""$ac_cv_func_getpwnam_r_posix" 1>&6
7917if test "$ac_cv_func_getpwnam_r_posix" = yes; then
7918	cat >> confdefs.h <<\EOF
7919#define POSIX_GETPWNAM_R 1
7920EOF
7921
7922fi
7923fi
7924
7925
7926
7927
7928
7929echo $ac_n "checking for getsockopt""... $ac_c" 1>&6
7930echo "configure:7931: checking for getsockopt" >&5
7931if eval "test \"`echo '$''{'ac_cv_funclib_getsockopt'+set}'`\" = set"; then
7932  echo $ac_n "(cached) $ac_c" 1>&6
7933else
7934  
7935if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
7936	ac_save_LIBS="$LIBS"
7937	for ac_lib in "" ; do
7938		if test -n "$ac_lib"; then 
7939			ac_lib="-l$ac_lib"
7940		else
7941			ac_lib=""
7942		fi
7943		LIBS=" $ac_lib  $ac_save_LIBS"
7944		cat > conftest.$ac_ext <<EOF
7945#line 7946 "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
7953int main() {
7954getsockopt(0,0,0,0,0)
7955; return 0; }
7956EOF
7957if { (eval echo configure:7958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7958  rm -rf conftest*
7959  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
7960else
7961  echo "configure: failed program was:" >&5
7962  cat conftest.$ac_ext >&5
7963fi
7964rm -f conftest*
7965	done
7966	eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
7967	LIBS="$ac_save_LIBS"
7968fi
7969
7970fi
7971
7972
7973eval "ac_res=\$ac_cv_funclib_getsockopt"
7974
7975: << END
7976@@@funcs="$funcs getsockopt"@@@
7977@@@libs="$libs "" "@@@
7978END
7979
7980# getsockopt
7981eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
7982eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
7983eval "LIB_getsockopt=$ac_res"
7984
7985case "$ac_res" in
7986	yes)
7987	eval "ac_cv_func_getsockopt=yes"
7988	eval "LIB_getsockopt="
7989	cat >> confdefs.h <<EOF
7990#define $ac_tr_func 1
7991EOF
7992
7993	echo "$ac_t""yes" 1>&6
7994	;;
7995	no)
7996	eval "ac_cv_func_getsockopt=no"
7997	eval "LIB_getsockopt="
7998	echo "$ac_t""no" 1>&6
7999	;;
8000	*)
8001	eval "ac_cv_func_getsockopt=yes"
8002	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
8003	cat >> confdefs.h <<EOF
8004#define $ac_tr_func 1
8005EOF
8006
8007	cat >> confdefs.h <<EOF
8008#define $ac_tr_lib 1
8009EOF
8010
8011	echo "$ac_t""yes, in $ac_res" 1>&6
8012	;;
8013esac
8014
8015
8016
8017
8018
8019echo $ac_n "checking for setsockopt""... $ac_c" 1>&6
8020echo "configure:8021: checking for setsockopt" >&5
8021if eval "test \"`echo '$''{'ac_cv_funclib_setsockopt'+set}'`\" = set"; then
8022  echo $ac_n "(cached) $ac_c" 1>&6
8023else
8024  
8025if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
8026	ac_save_LIBS="$LIBS"
8027	for ac_lib in "" ; do
8028		if test -n "$ac_lib"; then 
8029			ac_lib="-l$ac_lib"
8030		else
8031			ac_lib=""
8032		fi
8033		LIBS=" $ac_lib  $ac_save_LIBS"
8034		cat > conftest.$ac_ext <<EOF
8035#line 8036 "configure"
8036#include "confdefs.h"
8037#ifdef HAVE_SYS_TYPES_H
8038#include <sys/types.h>
8039#endif
8040#ifdef HAVE_SYS_SOCKET_H
8041#include <sys/socket.h>
8042#endif
8043int main() {
8044setsockopt(0,0,0,0,0)
8045; return 0; }
8046EOF
8047if { (eval echo configure:8048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8048  rm -rf conftest*
8049  eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
8050else
8051  echo "configure: failed program was:" >&5
8052  cat conftest.$ac_ext >&5
8053fi
8054rm -f conftest*
8055	done
8056	eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
8057	LIBS="$ac_save_LIBS"
8058fi
8059
8060fi
8061
8062
8063eval "ac_res=\$ac_cv_funclib_setsockopt"
8064
8065: << END
8066@@@funcs="$funcs setsockopt"@@@
8067@@@libs="$libs "" "@@@
8068END
8069
8070# setsockopt
8071eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
8072eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
8073eval "LIB_setsockopt=$ac_res"
8074
8075case "$ac_res" in
8076	yes)
8077	eval "ac_cv_func_setsockopt=yes"
8078	eval "LIB_setsockopt="
8079	cat >> confdefs.h <<EOF
8080#define $ac_tr_func 1
8081EOF
8082
8083	echo "$ac_t""yes" 1>&6
8084	;;
8085	no)
8086	eval "ac_cv_func_setsockopt=no"
8087	eval "LIB_setsockopt="
8088	echo "$ac_t""no" 1>&6
8089	;;
8090	*)
8091	eval "ac_cv_func_setsockopt=yes"
8092	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
8093	cat >> confdefs.h <<EOF
8094#define $ac_tr_func 1
8095EOF
8096
8097	cat >> confdefs.h <<EOF
8098#define $ac_tr_lib 1
8099EOF
8100
8101	echo "$ac_t""yes, in $ac_res" 1>&6
8102	;;
8103esac
8104
8105
8106
8107for ac_func in getudbnam setlim
8108do
8109echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8110echo "configure:8111: checking for $ac_func" >&5
8111if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8112  echo $ac_n "(cached) $ac_c" 1>&6
8113else
8114  cat > conftest.$ac_ext <<EOF
8115#line 8116 "configure"
8116#include "confdefs.h"
8117/* System header to define __stub macros and hopefully few prototypes,
8118    which can conflict with char $ac_func(); below.  */
8119#include <assert.h>
8120/* Override any gcc2 internal prototype to avoid an error.  */
8121/* We use char because int might match the return type of a gcc2
8122    builtin and then its argument prototype would still apply.  */
8123char $ac_func();
8124
8125int main() {
8126
8127/* The GNU C library defines this for functions which it implements
8128    to always fail with ENOSYS.  Some functions are actually named
8129    something starting with __ and the normal name is an alias.  */
8130#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8131choke me
8132#else
8133$ac_func();
8134#endif
8135
8136; return 0; }
8137EOF
8138if { (eval echo configure:8139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8139  rm -rf conftest*
8140  eval "ac_cv_func_$ac_func=yes"
8141else
8142  echo "configure: failed program was:" >&5
8143  cat conftest.$ac_ext >&5
8144  rm -rf conftest*
8145  eval "ac_cv_func_$ac_func=no"
8146fi
8147rm -f conftest*
8148fi
8149
8150if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8151  echo "$ac_t""yes" 1>&6
8152    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8153  cat >> confdefs.h <<EOF
8154#define $ac_tr_func 1
8155EOF
8156 
8157else
8158  echo "$ac_t""no" 1>&6
8159fi
8160done
8161
8162
8163echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
8164echo "configure:8165: checking return type of signal handlers" >&5
8165if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
8166  echo $ac_n "(cached) $ac_c" 1>&6
8167else
8168  cat > conftest.$ac_ext <<EOF
8169#line 8170 "configure"
8170#include "confdefs.h"
8171#include <sys/types.h>
8172#include <signal.h>
8173#ifdef signal
8174#undef signal
8175#endif
8176#ifdef __cplusplus
8177extern "C" void (*signal (int, void (*)(int)))(int);
8178#else
8179void (*signal ()) ();
8180#endif
8181
8182int main() {
8183int i;
8184; return 0; }
8185EOF
8186if { (eval echo configure:8187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8187  rm -rf conftest*
8188  ac_cv_type_signal=void
8189else
8190  echo "configure: failed program was:" >&5
8191  cat conftest.$ac_ext >&5
8192  rm -rf conftest*
8193  ac_cv_type_signal=int
8194fi
8195rm -f conftest*
8196fi
8197
8198echo "$ac_t""$ac_cv_type_signal" 1>&6
8199cat >> confdefs.h <<EOF
8200#define RETSIGTYPE $ac_cv_type_signal
8201EOF
8202
8203
8204if test "$ac_cv_type_signal" = "void" ; then
8205	cat >> confdefs.h <<\EOF
8206#define VOID_RETSIGTYPE 1
8207EOF
8208
8209fi
8210
8211
8212
8213
8214
8215
8216echo $ac_n "checking for hstrerror""... $ac_c" 1>&6
8217echo "configure:8218: checking for hstrerror" >&5
8218if eval "test \"`echo '$''{'ac_cv_funclib_hstrerror'+set}'`\" = set"; then
8219  echo $ac_n "(cached) $ac_c" 1>&6
8220else
8221  
8222if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
8223	ac_save_LIBS="$LIBS"
8224	for ac_lib in "" resolv; do
8225		if test -n "$ac_lib"; then 
8226			ac_lib="-l$ac_lib"
8227		else
8228			ac_lib=""
8229		fi
8230		LIBS=" $ac_lib  $ac_save_LIBS"
8231		cat > conftest.$ac_ext <<EOF
8232#line 8233 "configure"
8233#include "confdefs.h"
8234#ifdef HAVE_NETDB_H
8235#include <netdb.h>
8236#endif
8237int main() {
8238hstrerror(17)
8239; return 0; }
8240EOF
8241if { (eval echo configure:8242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8242  rm -rf conftest*
8243  eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
8244else
8245  echo "configure: failed program was:" >&5
8246  cat conftest.$ac_ext >&5
8247fi
8248rm -f conftest*
8249	done
8250	eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
8251	LIBS="$ac_save_LIBS"
8252fi
8253
8254fi
8255
8256
8257eval "ac_res=\$ac_cv_funclib_hstrerror"
8258
8259: << END
8260@@@funcs="$funcs hstrerror"@@@
8261@@@libs="$libs "" resolv"@@@
8262END
8263
8264# hstrerror
8265eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
8266eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
8267eval "LIB_hstrerror=$ac_res"
8268
8269case "$ac_res" in
8270	yes)
8271	eval "ac_cv_func_hstrerror=yes"
8272	eval "LIB_hstrerror="
8273	cat >> confdefs.h <<EOF
8274#define $ac_tr_func 1
8275EOF
8276
8277	echo "$ac_t""yes" 1>&6
8278	;;
8279	no)
8280	eval "ac_cv_func_hstrerror=no"
8281	eval "LIB_hstrerror="
8282	echo "$ac_t""no" 1>&6
8283	;;
8284	*)
8285	eval "ac_cv_func_hstrerror=yes"
8286	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
8287	cat >> confdefs.h <<EOF
8288#define $ac_tr_func 1
8289EOF
8290
8291	cat >> confdefs.h <<EOF
8292#define $ac_tr_lib 1
8293EOF
8294
8295	echo "$ac_t""yes, in $ac_res" 1>&6
8296	;;
8297esac
8298
8299
8300if test -n "$LIB_hstrerror"; then
8301	LIBS="$LIB_hstrerror $LIBS"
8302fi
8303
8304if eval "test \"$ac_cv_func_hstrerror\" != yes"; then
8305LIBOBJS="$LIBOBJS hstrerror.o"
8306fi
8307
8308if test "$ac_cv_func_hstrerror" = yes; then
8309
8310if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then
8311echo $ac_n "checking if hstrerror needs a prototype""... $ac_c" 1>&6
8312echo "configure:8313: checking if hstrerror needs a prototype" >&5
8313if eval "test \"`echo '$''{'ac_cv_func_hstrerror_noproto'+set}'`\" = set"; then
8314  echo $ac_n "(cached) $ac_c" 1>&6
8315else
8316  cat > conftest.$ac_ext <<EOF
8317#line 8318 "configure"
8318#include "confdefs.h"
8319
8320#ifdef HAVE_NETDB_H
8321#include <netdb.h>
8322#endif
8323int main() {
8324struct foo { int foo; } xx;
8325extern int hstrerror (struct foo*);
8326hstrerror(&xx);
8327
8328; return 0; }
8329EOF
8330if { (eval echo configure:8331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8331  rm -rf conftest*
8332  eval "ac_cv_func_hstrerror_noproto=yes"
8333else
8334  echo "configure: failed program was:" >&5
8335  cat conftest.$ac_ext >&5
8336  rm -rf conftest*
8337  eval "ac_cv_func_hstrerror_noproto=no"
8338fi
8339rm -f conftest*
8340fi
8341
8342echo "$ac_t""$ac_cv_func_hstrerror_noproto" 1>&6
8343
8344if test "$ac_cv_func_hstrerror_noproto" = yes; then
8345	cat >> confdefs.h <<\EOF
8346#define NEED_HSTRERROR_PROTO 1
8347EOF
8348
8349fi
8350
8351fi
8352
8353fi
8354
8355if test "$ac_cv_func_asprintf" = yes; then
8356
8357if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then
8358echo $ac_n "checking if asprintf needs a prototype""... $ac_c" 1>&6
8359echo "configure:8360: checking if asprintf needs a prototype" >&5
8360if eval "test \"`echo '$''{'ac_cv_func_asprintf_noproto'+set}'`\" = set"; then
8361  echo $ac_n "(cached) $ac_c" 1>&6
8362else
8363  cat > conftest.$ac_ext <<EOF
8364#line 8365 "configure"
8365#include "confdefs.h"
8366
8367#include <stdio.h>
8368#include <string.h>
8369int main() {
8370struct foo { int foo; } xx;
8371extern int asprintf (struct foo*);
8372asprintf(&xx);
8373
8374; return 0; }
8375EOF
8376if { (eval echo configure:8377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8377  rm -rf conftest*
8378  eval "ac_cv_func_asprintf_noproto=yes"
8379else
8380  echo "configure: failed program was:" >&5
8381  cat conftest.$ac_ext >&5
8382  rm -rf conftest*
8383  eval "ac_cv_func_asprintf_noproto=no"
8384fi
8385rm -f conftest*
8386fi
8387
8388echo "$ac_t""$ac_cv_func_asprintf_noproto" 1>&6
8389
8390if test "$ac_cv_func_asprintf_noproto" = yes; then
8391	cat >> confdefs.h <<\EOF
8392#define NEED_ASPRINTF_PROTO 1
8393EOF
8394
8395fi
8396
8397fi
8398fi
8399if test "$ac_cv_func_vasprintf" = yes; then
8400
8401if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then
8402echo $ac_n "checking if vasprintf needs a prototype""... $ac_c" 1>&6
8403echo "configure:8404: checking if vasprintf needs a prototype" >&5
8404if eval "test \"`echo '$''{'ac_cv_func_vasprintf_noproto'+set}'`\" = set"; then
8405  echo $ac_n "(cached) $ac_c" 1>&6
8406else
8407  cat > conftest.$ac_ext <<EOF
8408#line 8409 "configure"
8409#include "confdefs.h"
8410
8411#include <stdio.h>
8412#include <string.h>
8413int main() {
8414struct foo { int foo; } xx;
8415extern int vasprintf (struct foo*);
8416vasprintf(&xx);
8417
8418; return 0; }
8419EOF
8420if { (eval echo configure:8421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8421  rm -rf conftest*
8422  eval "ac_cv_func_vasprintf_noproto=yes"
8423else
8424  echo "configure: failed program was:" >&5
8425  cat conftest.$ac_ext >&5
8426  rm -rf conftest*
8427  eval "ac_cv_func_vasprintf_noproto=no"
8428fi
8429rm -f conftest*
8430fi
8431
8432echo "$ac_t""$ac_cv_func_vasprintf_noproto" 1>&6
8433
8434if test "$ac_cv_func_vasprintf_noproto" = yes; then
8435	cat >> confdefs.h <<\EOF
8436#define NEED_VASPRINTF_PROTO 1
8437EOF
8438
8439fi
8440
8441fi
8442fi
8443if test "$ac_cv_func_asnprintf" = yes; then
8444
8445if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then
8446echo $ac_n "checking if asnprintf needs a prototype""... $ac_c" 1>&6
8447echo "configure:8448: checking if asnprintf needs a prototype" >&5
8448if eval "test \"`echo '$''{'ac_cv_func_asnprintf_noproto'+set}'`\" = set"; then
8449  echo $ac_n "(cached) $ac_c" 1>&6
8450else
8451  cat > conftest.$ac_ext <<EOF
8452#line 8453 "configure"
8453#include "confdefs.h"
8454
8455#include <stdio.h>
8456#include <string.h>
8457int main() {
8458struct foo { int foo; } xx;
8459extern int asnprintf (struct foo*);
8460asnprintf(&xx);
8461
8462; return 0; }
8463EOF
8464if { (eval echo configure:8465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8465  rm -rf conftest*
8466  eval "ac_cv_func_asnprintf_noproto=yes"
8467else
8468  echo "configure: failed program was:" >&5
8469  cat conftest.$ac_ext >&5
8470  rm -rf conftest*
8471  eval "ac_cv_func_asnprintf_noproto=no"
8472fi
8473rm -f conftest*
8474fi
8475
8476echo "$ac_t""$ac_cv_func_asnprintf_noproto" 1>&6
8477
8478if test "$ac_cv_func_asnprintf_noproto" = yes; then
8479	cat >> confdefs.h <<\EOF
8480#define NEED_ASNPRINTF_PROTO 1
8481EOF
8482
8483fi
8484
8485fi
8486fi
8487if test "$ac_cv_func_vasnprintf" = yes; then
8488
8489if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then
8490echo $ac_n "checking if vasnprintf needs a prototype""... $ac_c" 1>&6
8491echo "configure:8492: checking if vasnprintf needs a prototype" >&5
8492if eval "test \"`echo '$''{'ac_cv_func_vasnprintf_noproto'+set}'`\" = set"; then
8493  echo $ac_n "(cached) $ac_c" 1>&6
8494else
8495  cat > conftest.$ac_ext <<EOF
8496#line 8497 "configure"
8497#include "confdefs.h"
8498
8499#include <stdio.h>
8500#include <string.h>
8501int main() {
8502struct foo { int foo; } xx;
8503extern int vasnprintf (struct foo*);
8504vasnprintf(&xx);
8505
8506; return 0; }
8507EOF
8508if { (eval echo configure:8509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8509  rm -rf conftest*
8510  eval "ac_cv_func_vasnprintf_noproto=yes"
8511else
8512  echo "configure: failed program was:" >&5
8513  cat conftest.$ac_ext >&5
8514  rm -rf conftest*
8515  eval "ac_cv_func_vasnprintf_noproto=no"
8516fi
8517rm -f conftest*
8518fi
8519
8520echo "$ac_t""$ac_cv_func_vasnprintf_noproto" 1>&6
8521
8522if test "$ac_cv_func_vasnprintf_noproto" = yes; then
8523	cat >> confdefs.h <<\EOF
8524#define NEED_VASNPRINTF_PROTO 1
8525EOF
8526
8527fi
8528
8529fi
8530fi
8531
8532for ac_func in chown copyhostent daemon err errx fchown flock fnmatch
8533do
8534echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8535echo "configure:8536: checking for $ac_func" >&5
8536if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8537  echo $ac_n "(cached) $ac_c" 1>&6
8538else
8539  cat > conftest.$ac_ext <<EOF
8540#line 8541 "configure"
8541#include "confdefs.h"
8542/* System header to define __stub macros and hopefully few prototypes,
8543    which can conflict with char $ac_func(); below.  */
8544#include <assert.h>
8545/* Override any gcc2 internal prototype to avoid an error.  */
8546/* We use char because int might match the return type of a gcc2
8547    builtin and then its argument prototype would still apply.  */
8548char $ac_func();
8549
8550int main() {
8551
8552/* The GNU C library defines this for functions which it implements
8553    to always fail with ENOSYS.  Some functions are actually named
8554    something starting with __ and the normal name is an alias.  */
8555#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8556choke me
8557#else
8558$ac_func();
8559#endif
8560
8561; return 0; }
8562EOF
8563if { (eval echo configure:8564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8564  rm -rf conftest*
8565  eval "ac_cv_func_$ac_func=yes"
8566else
8567  echo "configure: failed program was:" >&5
8568  cat conftest.$ac_ext >&5
8569  rm -rf conftest*
8570  eval "ac_cv_func_$ac_func=no"
8571fi
8572rm -f conftest*
8573fi
8574
8575if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8576  echo "$ac_t""yes" 1>&6
8577  
8578ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
8579cat >> confdefs.h <<EOF
8580#define $ac_tr_func 1
8581EOF
8582
8583else
8584  echo "$ac_t""no" 1>&6
8585LIBOBJS="$LIBOBJS ${ac_func}.o"
8586fi
8587
8588: << END
8589@@@funcs="$funcs chown copyhostent daemon err errx fchown flock fnmatch"@@@
8590END
8591done
8592
8593for ac_func in freeaddrinfo freehostent gai_strerror getaddrinfo
8594do
8595echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8596echo "configure:8597: checking for $ac_func" >&5
8597if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8598  echo $ac_n "(cached) $ac_c" 1>&6
8599else
8600  cat > conftest.$ac_ext <<EOF
8601#line 8602 "configure"
8602#include "confdefs.h"
8603/* System header to define __stub macros and hopefully few prototypes,
8604    which can conflict with char $ac_func(); below.  */
8605#include <assert.h>
8606/* Override any gcc2 internal prototype to avoid an error.  */
8607/* We use char because int might match the return type of a gcc2
8608    builtin and then its argument prototype would still apply.  */
8609char $ac_func();
8610
8611int main() {
8612
8613/* The GNU C library defines this for functions which it implements
8614    to always fail with ENOSYS.  Some functions are actually named
8615    something starting with __ and the normal name is an alias.  */
8616#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8617choke me
8618#else
8619$ac_func();
8620#endif
8621
8622; return 0; }
8623EOF
8624if { (eval echo configure:8625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8625  rm -rf conftest*
8626  eval "ac_cv_func_$ac_func=yes"
8627else
8628  echo "configure: failed program was:" >&5
8629  cat conftest.$ac_ext >&5
8630  rm -rf conftest*
8631  eval "ac_cv_func_$ac_func=no"
8632fi
8633rm -f conftest*
8634fi
8635
8636if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8637  echo "$ac_t""yes" 1>&6
8638  
8639ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
8640cat >> confdefs.h <<EOF
8641#define $ac_tr_func 1
8642EOF
8643
8644else
8645  echo "$ac_t""no" 1>&6
8646LIBOBJS="$LIBOBJS ${ac_func}.o"
8647fi
8648
8649: << END
8650@@@funcs="$funcs freeaddrinfo freehostent gai_strerror getaddrinfo"@@@
8651END
8652done
8653
8654for ac_func in getcwd getdtablesize gethostname getipnodebyaddr getipnodebyname
8655do
8656echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8657echo "configure:8658: checking for $ac_func" >&5
8658if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8659  echo $ac_n "(cached) $ac_c" 1>&6
8660else
8661  cat > conftest.$ac_ext <<EOF
8662#line 8663 "configure"
8663#include "confdefs.h"
8664/* System header to define __stub macros and hopefully few prototypes,
8665    which can conflict with char $ac_func(); below.  */
8666#include <assert.h>
8667/* Override any gcc2 internal prototype to avoid an error.  */
8668/* We use char because int might match the return type of a gcc2
8669    builtin and then its argument prototype would still apply.  */
8670char $ac_func();
8671
8672int main() {
8673
8674/* The GNU C library defines this for functions which it implements
8675    to always fail with ENOSYS.  Some functions are actually named
8676    something starting with __ and the normal name is an alias.  */
8677#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8678choke me
8679#else
8680$ac_func();
8681#endif
8682
8683; return 0; }
8684EOF
8685if { (eval echo configure:8686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8686  rm -rf conftest*
8687  eval "ac_cv_func_$ac_func=yes"
8688else
8689  echo "configure: failed program was:" >&5
8690  cat conftest.$ac_ext >&5
8691  rm -rf conftest*
8692  eval "ac_cv_func_$ac_func=no"
8693fi
8694rm -f conftest*
8695fi
8696
8697if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8698  echo "$ac_t""yes" 1>&6
8699  
8700ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
8701cat >> confdefs.h <<EOF
8702#define $ac_tr_func 1
8703EOF
8704
8705else
8706  echo "$ac_t""no" 1>&6
8707LIBOBJS="$LIBOBJS ${ac_func}.o"
8708fi
8709
8710: << END
8711@@@funcs="$funcs getcwd getdtablesize gethostname getipnodebyaddr getipnodebyname"@@@
8712END
8713done
8714
8715for ac_func in geteuid getgid getegid
8716do
8717echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8718echo "configure:8719: checking for $ac_func" >&5
8719if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8720  echo $ac_n "(cached) $ac_c" 1>&6
8721else
8722  cat > conftest.$ac_ext <<EOF
8723#line 8724 "configure"
8724#include "confdefs.h"
8725/* System header to define __stub macros and hopefully few prototypes,
8726    which can conflict with char $ac_func(); below.  */
8727#include <assert.h>
8728/* Override any gcc2 internal prototype to avoid an error.  */
8729/* We use char because int might match the return type of a gcc2
8730    builtin and then its argument prototype would still apply.  */
8731char $ac_func();
8732
8733int main() {
8734
8735/* The GNU C library defines this for functions which it implements
8736    to always fail with ENOSYS.  Some functions are actually named
8737    something starting with __ and the normal name is an alias.  */
8738#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8739choke me
8740#else
8741$ac_func();
8742#endif
8743
8744; return 0; }
8745EOF
8746if { (eval echo configure:8747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8747  rm -rf conftest*
8748  eval "ac_cv_func_$ac_func=yes"
8749else
8750  echo "configure: failed program was:" >&5
8751  cat conftest.$ac_ext >&5
8752  rm -rf conftest*
8753  eval "ac_cv_func_$ac_func=no"
8754fi
8755rm -f conftest*
8756fi
8757
8758if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8759  echo "$ac_t""yes" 1>&6
8760  
8761ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
8762cat >> confdefs.h <<EOF
8763#define $ac_tr_func 1
8764EOF
8765
8766else
8767  echo "$ac_t""no" 1>&6
8768LIBOBJS="$LIBOBJS ${ac_func}.o"
8769fi
8770
8771: << END
8772@@@funcs="$funcs geteuid getgid getegid"@@@
8773END
8774done
8775
8776for ac_func in getnameinfo getopt getusershell
8777do
8778echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8779echo "configure:8780: checking for $ac_func" >&5
8780if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8781  echo $ac_n "(cached) $ac_c" 1>&6
8782else
8783  cat > conftest.$ac_ext <<EOF
8784#line 8785 "configure"
8785#include "confdefs.h"
8786/* System header to define __stub macros and hopefully few prototypes,
8787    which can conflict with char $ac_func(); below.  */
8788#include <assert.h>
8789/* Override any gcc2 internal prototype to avoid an error.  */
8790/* We use char because int might match the return type of a gcc2
8791    builtin and then its argument prototype would still apply.  */
8792char $ac_func();
8793
8794int main() {
8795
8796/* The GNU C library defines this for functions which it implements
8797    to always fail with ENOSYS.  Some functions are actually named
8798    something starting with __ and the normal name is an alias.  */
8799#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8800choke me
8801#else
8802$ac_func();
8803#endif
8804
8805; return 0; }
8806EOF
8807if { (eval echo configure:8808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8808  rm -rf conftest*
8809  eval "ac_cv_func_$ac_func=yes"
8810else
8811  echo "configure: failed program was:" >&5
8812  cat conftest.$ac_ext >&5
8813  rm -rf conftest*
8814  eval "ac_cv_func_$ac_func=no"
8815fi
8816rm -f conftest*
8817fi
8818
8819if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8820  echo "$ac_t""yes" 1>&6
8821  
8822ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
8823cat >> confdefs.h <<EOF
8824#define $ac_tr_func 1
8825EOF
8826
8827else
8828  echo "$ac_t""no" 1>&6
8829LIBOBJS="$LIBOBJS ${ac_func}.o"
8830fi
8831
8832: << END
8833@@@funcs="$funcs getnameinfo getopt getusershell"@@@
8834END
8835done
8836
8837for ac_func in inet_aton inet_ntop inet_pton initgroups innetgr iruserok lstat
8838do
8839echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8840echo "configure:8841: checking for $ac_func" >&5
8841if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8842  echo $ac_n "(cached) $ac_c" 1>&6
8843else
8844  cat > conftest.$ac_ext <<EOF
8845#line 8846 "configure"
8846#include "confdefs.h"
8847/* System header to define __stub macros and hopefully few prototypes,
8848    which can conflict with char $ac_func(); below.  */
8849#include <assert.h>
8850/* Override any gcc2 internal prototype to avoid an error.  */
8851/* We use char because int might match the return type of a gcc2
8852    builtin and then its argument prototype would still apply.  */
8853char $ac_func();
8854
8855int main() {
8856
8857/* The GNU C library defines this for functions which it implements
8858    to always fail with ENOSYS.  Some functions are actually named
8859    something starting with __ and the normal name is an alias.  */
8860#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8861choke me
8862#else
8863$ac_func();
8864#endif
8865
8866; return 0; }
8867EOF
8868if { (eval echo configure:8869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8869  rm -rf conftest*
8870  eval "ac_cv_func_$ac_func=yes"
8871else
8872  echo "configure: failed program was:" >&5
8873  cat conftest.$ac_ext >&5
8874  rm -rf conftest*
8875  eval "ac_cv_func_$ac_func=no"
8876fi
8877rm -f conftest*
8878fi
8879
8880if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8881  echo "$ac_t""yes" 1>&6
8882  
8883ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
8884cat >> confdefs.h <<EOF
8885#define $ac_tr_func 1
8886EOF
8887
8888else
8889  echo "$ac_t""no" 1>&6
8890LIBOBJS="$LIBOBJS ${ac_func}.o"
8891fi
8892
8893: << END
8894@@@funcs="$funcs inet_aton inet_ntop inet_pton initgroups innetgr iruserok lstat"@@@
8895END
8896done
8897
8898for ac_func in memmove
8899do
8900echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8901echo "configure:8902: checking for $ac_func" >&5
8902if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8903  echo $ac_n "(cached) $ac_c" 1>&6
8904else
8905  cat > conftest.$ac_ext <<EOF
8906#line 8907 "configure"
8907#include "confdefs.h"
8908/* System header to define __stub macros and hopefully few prototypes,
8909    which can conflict with char $ac_func(); below.  */
8910#include <assert.h>
8911/* Override any gcc2 internal prototype to avoid an error.  */
8912/* We use char because int might match the return type of a gcc2
8913    builtin and then its argument prototype would still apply.  */
8914char $ac_func();
8915
8916int main() {
8917
8918/* The GNU C library defines this for functions which it implements
8919    to always fail with ENOSYS.  Some functions are actually named
8920    something starting with __ and the normal name is an alias.  */
8921#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8922choke me
8923#else
8924$ac_func();
8925#endif
8926
8927; return 0; }
8928EOF
8929if { (eval echo configure:8930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8930  rm -rf conftest*
8931  eval "ac_cv_func_$ac_func=yes"
8932else
8933  echo "configure: failed program was:" >&5
8934  cat conftest.$ac_ext >&5
8935  rm -rf conftest*
8936  eval "ac_cv_func_$ac_func=no"
8937fi
8938rm -f conftest*
8939fi
8940
8941if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8942  echo "$ac_t""yes" 1>&6
8943  
8944ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
8945cat >> confdefs.h <<EOF
8946#define $ac_tr_func 1
8947EOF
8948
8949else
8950  echo "$ac_t""no" 1>&6
8951LIBOBJS="$LIBOBJS ${ac_func}.o"
8952fi
8953
8954: << END
8955@@@funcs="$funcs memmove"@@@
8956END
8957done
8958
8959for ac_func in mkstemp putenv rcmd readv recvmsg sendmsg setegid setenv seteuid
8960do
8961echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8962echo "configure:8963: checking for $ac_func" >&5
8963if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8964  echo $ac_n "(cached) $ac_c" 1>&6
8965else
8966  cat > conftest.$ac_ext <<EOF
8967#line 8968 "configure"
8968#include "confdefs.h"
8969/* System header to define __stub macros and hopefully few prototypes,
8970    which can conflict with char $ac_func(); below.  */
8971#include <assert.h>
8972/* Override any gcc2 internal prototype to avoid an error.  */
8973/* We use char because int might match the return type of a gcc2
8974    builtin and then its argument prototype would still apply.  */
8975char $ac_func();
8976
8977int main() {
8978
8979/* The GNU C library defines this for functions which it implements
8980    to always fail with ENOSYS.  Some functions are actually named
8981    something starting with __ and the normal name is an alias.  */
8982#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8983choke me
8984#else
8985$ac_func();
8986#endif
8987
8988; return 0; }
8989EOF
8990if { (eval echo configure:8991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8991  rm -rf conftest*
8992  eval "ac_cv_func_$ac_func=yes"
8993else
8994  echo "configure: failed program was:" >&5
8995  cat conftest.$ac_ext >&5
8996  rm -rf conftest*
8997  eval "ac_cv_func_$ac_func=no"
8998fi
8999rm -f conftest*
9000fi
9001
9002if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9003  echo "$ac_t""yes" 1>&6
9004  
9005ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
9006cat >> confdefs.h <<EOF
9007#define $ac_tr_func 1
9008EOF
9009
9010else
9011  echo "$ac_t""no" 1>&6
9012LIBOBJS="$LIBOBJS ${ac_func}.o"
9013fi
9014
9015: << END
9016@@@funcs="$funcs mkstemp putenv rcmd readv recvmsg sendmsg setegid setenv seteuid"@@@
9017END
9018done
9019
9020for ac_func in strcasecmp strncasecmp strdup strerror strftime
9021do
9022echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9023echo "configure:9024: checking for $ac_func" >&5
9024if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9025  echo $ac_n "(cached) $ac_c" 1>&6
9026else
9027  cat > conftest.$ac_ext <<EOF
9028#line 9029 "configure"
9029#include "confdefs.h"
9030/* System header to define __stub macros and hopefully few prototypes,
9031    which can conflict with char $ac_func(); below.  */
9032#include <assert.h>
9033/* Override any gcc2 internal prototype to avoid an error.  */
9034/* We use char because int might match the return type of a gcc2
9035    builtin and then its argument prototype would still apply.  */
9036char $ac_func();
9037
9038int main() {
9039
9040/* The GNU C library defines this for functions which it implements
9041    to always fail with ENOSYS.  Some functions are actually named
9042    something starting with __ and the normal name is an alias.  */
9043#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9044choke me
9045#else
9046$ac_func();
9047#endif
9048
9049; return 0; }
9050EOF
9051if { (eval echo configure:9052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9052  rm -rf conftest*
9053  eval "ac_cv_func_$ac_func=yes"
9054else
9055  echo "configure: failed program was:" >&5
9056  cat conftest.$ac_ext >&5
9057  rm -rf conftest*
9058  eval "ac_cv_func_$ac_func=no"
9059fi
9060rm -f conftest*
9061fi
9062
9063if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9064  echo "$ac_t""yes" 1>&6
9065  
9066ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
9067cat >> confdefs.h <<EOF
9068#define $ac_tr_func 1
9069EOF
9070
9071else
9072  echo "$ac_t""no" 1>&6
9073LIBOBJS="$LIBOBJS ${ac_func}.o"
9074fi
9075
9076: << END
9077@@@funcs="$funcs strcasecmp strncasecmp strdup strerror strftime"@@@
9078END
9079done
9080
9081for ac_func in strlcat strlcpy strlwr
9082do
9083echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9084echo "configure:9085: checking for $ac_func" >&5
9085if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9086  echo $ac_n "(cached) $ac_c" 1>&6
9087else
9088  cat > conftest.$ac_ext <<EOF
9089#line 9090 "configure"
9090#include "confdefs.h"
9091/* System header to define __stub macros and hopefully few prototypes,
9092    which can conflict with char $ac_func(); below.  */
9093#include <assert.h>
9094/* Override any gcc2 internal prototype to avoid an error.  */
9095/* We use char because int might match the return type of a gcc2
9096    builtin and then its argument prototype would still apply.  */
9097char $ac_func();
9098
9099int main() {
9100
9101/* The GNU C library defines this for functions which it implements
9102    to always fail with ENOSYS.  Some functions are actually named
9103    something starting with __ and the normal name is an alias.  */
9104#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9105choke me
9106#else
9107$ac_func();
9108#endif
9109
9110; return 0; }
9111EOF
9112if { (eval echo configure:9113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9113  rm -rf conftest*
9114  eval "ac_cv_func_$ac_func=yes"
9115else
9116  echo "configure: failed program was:" >&5
9117  cat conftest.$ac_ext >&5
9118  rm -rf conftest*
9119  eval "ac_cv_func_$ac_func=no"
9120fi
9121rm -f conftest*
9122fi
9123
9124if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9125  echo "$ac_t""yes" 1>&6
9126  
9127ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
9128cat >> confdefs.h <<EOF
9129#define $ac_tr_func 1
9130EOF
9131
9132else
9133  echo "$ac_t""no" 1>&6
9134LIBOBJS="$LIBOBJS ${ac_func}.o"
9135fi
9136
9137: << END
9138@@@funcs="$funcs strlcat strlcpy strlwr"@@@
9139END
9140done
9141
9142for ac_func in strndup strnlen strptime strsep strtok_r strupr
9143do
9144echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9145echo "configure:9146: checking for $ac_func" >&5
9146if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9147  echo $ac_n "(cached) $ac_c" 1>&6
9148else
9149  cat > conftest.$ac_ext <<EOF
9150#line 9151 "configure"
9151#include "confdefs.h"
9152/* System header to define __stub macros and hopefully few prototypes,
9153    which can conflict with char $ac_func(); below.  */
9154#include <assert.h>
9155/* Override any gcc2 internal prototype to avoid an error.  */
9156/* We use char because int might match the return type of a gcc2
9157    builtin and then its argument prototype would still apply.  */
9158char $ac_func();
9159
9160int main() {
9161
9162/* The GNU C library defines this for functions which it implements
9163    to always fail with ENOSYS.  Some functions are actually named
9164    something starting with __ and the normal name is an alias.  */
9165#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9166choke me
9167#else
9168$ac_func();
9169#endif
9170
9171; return 0; }
9172EOF
9173if { (eval echo configure:9174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9174  rm -rf conftest*
9175  eval "ac_cv_func_$ac_func=yes"
9176else
9177  echo "configure: failed program was:" >&5
9178  cat conftest.$ac_ext >&5
9179  rm -rf conftest*
9180  eval "ac_cv_func_$ac_func=no"
9181fi
9182rm -f conftest*
9183fi
9184
9185if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9186  echo "$ac_t""yes" 1>&6
9187  
9188ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
9189cat >> confdefs.h <<EOF
9190#define $ac_tr_func 1
9191EOF
9192
9193else
9194  echo "$ac_t""no" 1>&6
9195LIBOBJS="$LIBOBJS ${ac_func}.o"
9196fi
9197
9198: << END
9199@@@funcs="$funcs strndup strnlen strptime strsep strtok_r strupr"@@@
9200END
9201done
9202
9203for ac_func in swab unsetenv verr verrx vsyslog
9204do
9205echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9206echo "configure:9207: checking for $ac_func" >&5
9207if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9208  echo $ac_n "(cached) $ac_c" 1>&6
9209else
9210  cat > conftest.$ac_ext <<EOF
9211#line 9212 "configure"
9212#include "confdefs.h"
9213/* System header to define __stub macros and hopefully few prototypes,
9214    which can conflict with char $ac_func(); below.  */
9215#include <assert.h>
9216/* Override any gcc2 internal prototype to avoid an error.  */
9217/* We use char because int might match the return type of a gcc2
9218    builtin and then its argument prototype would still apply.  */
9219char $ac_func();
9220
9221int main() {
9222
9223/* The GNU C library defines this for functions which it implements
9224    to always fail with ENOSYS.  Some functions are actually named
9225    something starting with __ and the normal name is an alias.  */
9226#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9227choke me
9228#else
9229$ac_func();
9230#endif
9231
9232; return 0; }
9233EOF
9234if { (eval echo configure:9235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9235  rm -rf conftest*
9236  eval "ac_cv_func_$ac_func=yes"
9237else
9238  echo "configure: failed program was:" >&5
9239  cat conftest.$ac_ext >&5
9240  rm -rf conftest*
9241  eval "ac_cv_func_$ac_func=no"
9242fi
9243rm -f conftest*
9244fi
9245
9246if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9247  echo "$ac_t""yes" 1>&6
9248  
9249ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
9250cat >> confdefs.h <<EOF
9251#define $ac_tr_func 1
9252EOF
9253
9254else
9255  echo "$ac_t""no" 1>&6
9256LIBOBJS="$LIBOBJS ${ac_func}.o"
9257fi
9258
9259: << END
9260@@@funcs="$funcs swab unsetenv verr verrx vsyslog"@@@
9261END
9262done
9263
9264for ac_func in vwarn vwarnx warn warnx writev
9265do
9266echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9267echo "configure:9268: checking for $ac_func" >&5
9268if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9269  echo $ac_n "(cached) $ac_c" 1>&6
9270else
9271  cat > conftest.$ac_ext <<EOF
9272#line 9273 "configure"
9273#include "confdefs.h"
9274/* System header to define __stub macros and hopefully few prototypes,
9275    which can conflict with char $ac_func(); below.  */
9276#include <assert.h>
9277/* Override any gcc2 internal prototype to avoid an error.  */
9278/* We use char because int might match the return type of a gcc2
9279    builtin and then its argument prototype would still apply.  */
9280char $ac_func();
9281
9282int main() {
9283
9284/* The GNU C library defines this for functions which it implements
9285    to always fail with ENOSYS.  Some functions are actually named
9286    something starting with __ and the normal name is an alias.  */
9287#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9288choke me
9289#else
9290$ac_func();
9291#endif
9292
9293; return 0; }
9294EOF
9295if { (eval echo configure:9296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9296  rm -rf conftest*
9297  eval "ac_cv_func_$ac_func=yes"
9298else
9299  echo "configure: failed program was:" >&5
9300  cat conftest.$ac_ext >&5
9301  rm -rf conftest*
9302  eval "ac_cv_func_$ac_func=no"
9303fi
9304rm -f conftest*
9305fi
9306
9307if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9308  echo "$ac_t""yes" 1>&6
9309  
9310ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
9311cat >> confdefs.h <<EOF
9312#define $ac_tr_func 1
9313EOF
9314
9315else
9316  echo "$ac_t""no" 1>&6
9317LIBOBJS="$LIBOBJS ${ac_func}.o"
9318fi
9319
9320: << END
9321@@@funcs="$funcs vwarn vwarnx warn warnx writev"@@@
9322END
9323done
9324
9325
9326
9327if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then
9328echo $ac_n "checking if setenv needs a prototype""... $ac_c" 1>&6
9329echo "configure:9330: checking if setenv needs a prototype" >&5
9330if eval "test \"`echo '$''{'ac_cv_func_setenv_noproto'+set}'`\" = set"; then
9331  echo $ac_n "(cached) $ac_c" 1>&6
9332else
9333  cat > conftest.$ac_ext <<EOF
9334#line 9335 "configure"
9335#include "confdefs.h"
9336#include <stdlib.h>
9337int main() {
9338struct foo { int foo; } xx;
9339extern int setenv (struct foo*);
9340setenv(&xx);
9341
9342; return 0; }
9343EOF
9344if { (eval echo configure:9345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9345  rm -rf conftest*
9346  eval "ac_cv_func_setenv_noproto=yes"
9347else
9348  echo "configure: failed program was:" >&5
9349  cat conftest.$ac_ext >&5
9350  rm -rf conftest*
9351  eval "ac_cv_func_setenv_noproto=no"
9352fi
9353rm -f conftest*
9354fi
9355
9356echo "$ac_t""$ac_cv_func_setenv_noproto" 1>&6
9357
9358if test "$ac_cv_func_setenv_noproto" = yes; then
9359	cat >> confdefs.h <<\EOF
9360#define NEED_SETENV_PROTO 1
9361EOF
9362
9363fi
9364
9365fi
9366
9367
9368if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then
9369echo $ac_n "checking if unsetenv needs a prototype""... $ac_c" 1>&6
9370echo "configure:9371: checking if unsetenv needs a prototype" >&5
9371if eval "test \"`echo '$''{'ac_cv_func_unsetenv_noproto'+set}'`\" = set"; then
9372  echo $ac_n "(cached) $ac_c" 1>&6
9373else
9374  cat > conftest.$ac_ext <<EOF
9375#line 9376 "configure"
9376#include "confdefs.h"
9377#include <stdlib.h>
9378int main() {
9379struct foo { int foo; } xx;
9380extern int unsetenv (struct foo*);
9381unsetenv(&xx);
9382
9383; return 0; }
9384EOF
9385if { (eval echo configure:9386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9386  rm -rf conftest*
9387  eval "ac_cv_func_unsetenv_noproto=yes"
9388else
9389  echo "configure: failed program was:" >&5
9390  cat conftest.$ac_ext >&5
9391  rm -rf conftest*
9392  eval "ac_cv_func_unsetenv_noproto=no"
9393fi
9394rm -f conftest*
9395fi
9396
9397echo "$ac_t""$ac_cv_func_unsetenv_noproto" 1>&6
9398
9399if test "$ac_cv_func_unsetenv_noproto" = yes; then
9400	cat >> confdefs.h <<\EOF
9401#define NEED_UNSETENV_PROTO 1
9402EOF
9403
9404fi
9405
9406fi
9407
9408
9409if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then
9410echo $ac_n "checking if gethostname needs a prototype""... $ac_c" 1>&6
9411echo "configure:9412: checking if gethostname needs a prototype" >&5
9412if eval "test \"`echo '$''{'ac_cv_func_gethostname_noproto'+set}'`\" = set"; then
9413  echo $ac_n "(cached) $ac_c" 1>&6
9414else
9415  cat > conftest.$ac_ext <<EOF
9416#line 9417 "configure"
9417#include "confdefs.h"
9418#include <unistd.h>
9419int main() {
9420struct foo { int foo; } xx;
9421extern int gethostname (struct foo*);
9422gethostname(&xx);
9423
9424; return 0; }
9425EOF
9426if { (eval echo configure:9427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9427  rm -rf conftest*
9428  eval "ac_cv_func_gethostname_noproto=yes"
9429else
9430  echo "configure: failed program was:" >&5
9431  cat conftest.$ac_ext >&5
9432  rm -rf conftest*
9433  eval "ac_cv_func_gethostname_noproto=no"
9434fi
9435rm -f conftest*
9436fi
9437
9438echo "$ac_t""$ac_cv_func_gethostname_noproto" 1>&6
9439
9440if test "$ac_cv_func_gethostname_noproto" = yes; then
9441	cat >> confdefs.h <<\EOF
9442#define NEED_GETHOSTNAME_PROTO 1
9443EOF
9444
9445fi
9446
9447fi
9448
9449
9450if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then
9451echo $ac_n "checking if mkstemp needs a prototype""... $ac_c" 1>&6
9452echo "configure:9453: checking if mkstemp needs a prototype" >&5
9453if eval "test \"`echo '$''{'ac_cv_func_mkstemp_noproto'+set}'`\" = set"; then
9454  echo $ac_n "(cached) $ac_c" 1>&6
9455else
9456  cat > conftest.$ac_ext <<EOF
9457#line 9458 "configure"
9458#include "confdefs.h"
9459#include <unistd.h>
9460int main() {
9461struct foo { int foo; } xx;
9462extern int mkstemp (struct foo*);
9463mkstemp(&xx);
9464
9465; return 0; }
9466EOF
9467if { (eval echo configure:9468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9468  rm -rf conftest*
9469  eval "ac_cv_func_mkstemp_noproto=yes"
9470else
9471  echo "configure: failed program was:" >&5
9472  cat conftest.$ac_ext >&5
9473  rm -rf conftest*
9474  eval "ac_cv_func_mkstemp_noproto=no"
9475fi
9476rm -f conftest*
9477fi
9478
9479echo "$ac_t""$ac_cv_func_mkstemp_noproto" 1>&6
9480
9481if test "$ac_cv_func_mkstemp_noproto" = yes; then
9482	cat >> confdefs.h <<\EOF
9483#define NEED_MKSTEMP_PROTO 1
9484EOF
9485
9486fi
9487
9488fi
9489
9490
9491if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then
9492echo $ac_n "checking if getusershell needs a prototype""... $ac_c" 1>&6
9493echo "configure:9494: checking if getusershell needs a prototype" >&5
9494if eval "test \"`echo '$''{'ac_cv_func_getusershell_noproto'+set}'`\" = set"; then
9495  echo $ac_n "(cached) $ac_c" 1>&6
9496else
9497  cat > conftest.$ac_ext <<EOF
9498#line 9499 "configure"
9499#include "confdefs.h"
9500#include <unistd.h>
9501int main() {
9502struct foo { int foo; } xx;
9503extern int getusershell (struct foo*);
9504getusershell(&xx);
9505
9506; return 0; }
9507EOF
9508if { (eval echo configure:9509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9509  rm -rf conftest*
9510  eval "ac_cv_func_getusershell_noproto=yes"
9511else
9512  echo "configure: failed program was:" >&5
9513  cat conftest.$ac_ext >&5
9514  rm -rf conftest*
9515  eval "ac_cv_func_getusershell_noproto=no"
9516fi
9517rm -f conftest*
9518fi
9519
9520echo "$ac_t""$ac_cv_func_getusershell_noproto" 1>&6
9521
9522if test "$ac_cv_func_getusershell_noproto" = yes; then
9523	cat >> confdefs.h <<\EOF
9524#define NEED_GETUSERSHELL_PROTO 1
9525EOF
9526
9527fi
9528
9529fi
9530
9531
9532
9533if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then
9534echo $ac_n "checking if inet_aton needs a prototype""... $ac_c" 1>&6
9535echo "configure:9536: checking if inet_aton needs a prototype" >&5
9536if eval "test \"`echo '$''{'ac_cv_func_inet_aton_noproto'+set}'`\" = set"; then
9537  echo $ac_n "(cached) $ac_c" 1>&6
9538else
9539  cat > conftest.$ac_ext <<EOF
9540#line 9541 "configure"
9541#include "confdefs.h"
9542
9543#ifdef HAVE_SYS_TYPES_H
9544#include <sys/types.h>
9545#endif
9546#ifdef HAVE_SYS_SOCKET_H
9547#include <sys/socket.h>
9548#endif
9549#ifdef HAVE_NETINET_IN_H
9550#include <netinet/in.h>
9551#endif
9552#ifdef HAVE_ARPA_INET_H
9553#include <arpa/inet.h>
9554#endif
9555int main() {
9556struct foo { int foo; } xx;
9557extern int inet_aton (struct foo*);
9558inet_aton(&xx);
9559
9560; return 0; }
9561EOF
9562if { (eval echo configure:9563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9563  rm -rf conftest*
9564  eval "ac_cv_func_inet_aton_noproto=yes"
9565else
9566  echo "configure: failed program was:" >&5
9567  cat conftest.$ac_ext >&5
9568  rm -rf conftest*
9569  eval "ac_cv_func_inet_aton_noproto=no"
9570fi
9571rm -f conftest*
9572fi
9573
9574echo "$ac_t""$ac_cv_func_inet_aton_noproto" 1>&6
9575
9576if test "$ac_cv_func_inet_aton_noproto" = yes; then
9577	cat >> confdefs.h <<\EOF
9578#define NEED_INET_ATON_PROTO 1
9579EOF
9580
9581fi
9582
9583fi
9584
9585
9586
9587
9588
9589echo $ac_n "checking for crypt""... $ac_c" 1>&6
9590echo "configure:9591: checking for crypt" >&5
9591if eval "test \"`echo '$''{'ac_cv_funclib_crypt'+set}'`\" = set"; then
9592  echo $ac_n "(cached) $ac_c" 1>&6
9593else
9594  
9595if eval "test \"\$ac_cv_func_crypt\" != yes" ; then
9596	ac_save_LIBS="$LIBS"
9597	for ac_lib in "" crypt; do
9598		if test -n "$ac_lib"; then 
9599			ac_lib="-l$ac_lib"
9600		else
9601			ac_lib=""
9602		fi
9603		LIBS=" $ac_lib  $ac_save_LIBS"
9604		cat > conftest.$ac_ext <<EOF
9605#line 9606 "configure"
9606#include "confdefs.h"
9607
9608int main() {
9609crypt()
9610; return 0; }
9611EOF
9612if { (eval echo configure:9613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9613  rm -rf conftest*
9614  eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
9615else
9616  echo "configure: failed program was:" >&5
9617  cat conftest.$ac_ext >&5
9618fi
9619rm -f conftest*
9620	done
9621	eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
9622	LIBS="$ac_save_LIBS"
9623fi
9624
9625fi
9626
9627
9628eval "ac_res=\$ac_cv_funclib_crypt"
9629
9630: << END
9631@@@funcs="$funcs crypt"@@@
9632@@@libs="$libs "" crypt"@@@
9633END
9634
9635# crypt
9636eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9637eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9638eval "LIB_crypt=$ac_res"
9639
9640case "$ac_res" in
9641	yes)
9642	eval "ac_cv_func_crypt=yes"
9643	eval "LIB_crypt="
9644	cat >> confdefs.h <<EOF
9645#define $ac_tr_func 1
9646EOF
9647
9648	echo "$ac_t""yes" 1>&6
9649	;;
9650	no)
9651	eval "ac_cv_func_crypt=no"
9652	eval "LIB_crypt="
9653	echo "$ac_t""no" 1>&6
9654	;;
9655	*)
9656	eval "ac_cv_func_crypt=yes"
9657	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
9658	cat >> confdefs.h <<EOF
9659#define $ac_tr_func 1
9660EOF
9661
9662	cat >> confdefs.h <<EOF
9663#define $ac_tr_lib 1
9664EOF
9665
9666	echo "$ac_t""yes, in $ac_res" 1>&6
9667	;;
9668esac
9669
9670
9671
9672LIB_roken='$(top_builddir)/lib/roken/libroken.la $(LIB_crypt) $(LIB_dbopen)'
9673
9674echo $ac_n "checking if realloc if broken""... $ac_c" 1>&6
9675echo "configure:9676: checking if realloc if broken" >&5
9676if eval "test \"`echo '$''{'ac_cv_func_realloc_broken'+set}'`\" = set"; then
9677  echo $ac_n "(cached) $ac_c" 1>&6
9678else
9679  
9680ac_cv_func_realloc_broken=no
9681if test "$cross_compiling" = yes; then
9682  :
9683else
9684  cat > conftest.$ac_ext <<EOF
9685#line 9686 "configure"
9686#include "confdefs.h"
9687
9688#include <stddef.h>
9689#include <stdlib.h>
9690
9691int main()
9692{
9693	return realloc(NULL, 17) == NULL;
9694}
9695
9696EOF
9697if { (eval echo configure:9698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9698then
9699  :
9700else
9701  echo "configure: failed program was:" >&5
9702  cat conftest.$ac_ext >&5
9703  rm -fr conftest*
9704  ac_cv_func_realloc_broken=yes
9705fi
9706rm -fr conftest*
9707fi
9708
9709
9710fi
9711
9712echo "$ac_t""$ac_cv_func_realloc_broken" 1>&6
9713if test "$ac_cv_func_realloc_broken" = yes ; then
9714	cat >> confdefs.h <<\EOF
9715#define BROKEN_REALLOC 1
9716EOF
9717
9718fi
9719
9720
9721
9722
9723echo $ac_n "checking if gethostbyname is compatible with system prototype""... $ac_c" 1>&6
9724echo "configure:9725: checking if gethostbyname is compatible with system prototype" >&5
9725if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_proto_compat'+set}'`\" = set"; then
9726  echo $ac_n "(cached) $ac_c" 1>&6
9727else
9728  cat > conftest.$ac_ext <<EOF
9729#line 9730 "configure"
9730#include "confdefs.h"
9731
9732#ifdef HAVE_SYS_TYPES_H
9733#include <sys/types.h>
9734#endif
9735#ifdef HAVE_SYS_SOCKET_H
9736#include <sys/socket.h>
9737#endif
9738#ifdef HAVE_NETINET_IN_H
9739#include <netinet/in.h>
9740#endif
9741#ifdef HAVE_ARPA_INET_H
9742#include <arpa/inet.h>
9743#endif
9744#ifdef HAVE_NETDB_H
9745#include <netdb.h>
9746#endif
9747
9748int main() {
9749struct hostent *gethostbyname(const char *);
9750; return 0; }
9751EOF
9752if { (eval echo configure:9753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9753  rm -rf conftest*
9754  eval "ac_cv_func_gethostbyname_proto_compat=yes"
9755else
9756  echo "configure: failed program was:" >&5
9757  cat conftest.$ac_ext >&5
9758  rm -rf conftest*
9759  eval "ac_cv_func_gethostbyname_proto_compat=no"
9760fi
9761rm -f conftest*
9762fi
9763
9764echo "$ac_t""$ac_cv_func_gethostbyname_proto_compat" 1>&6
9765
9766if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then
9767	cat >> confdefs.h <<\EOF
9768#define GETHOSTBYNAME_PROTO_COMPATIBLE 1
9769EOF
9770
9771fi
9772
9773
9774
9775
9776echo $ac_n "checking if gethostbyaddr is compatible with system prototype""... $ac_c" 1>&6
9777echo "configure:9778: checking if gethostbyaddr is compatible with system prototype" >&5
9778if eval "test \"`echo '$''{'ac_cv_func_gethostbyaddr_proto_compat'+set}'`\" = set"; then
9779  echo $ac_n "(cached) $ac_c" 1>&6
9780else
9781  cat > conftest.$ac_ext <<EOF
9782#line 9783 "configure"
9783#include "confdefs.h"
9784
9785#ifdef HAVE_SYS_TYPES_H
9786#include <sys/types.h>
9787#endif
9788#ifdef HAVE_SYS_SOCKET_H
9789#include <sys/socket.h>
9790#endif
9791#ifdef HAVE_NETINET_IN_H
9792#include <netinet/in.h>
9793#endif
9794#ifdef HAVE_ARPA_INET_H
9795#include <arpa/inet.h>
9796#endif
9797#ifdef HAVE_NETDB_H
9798#include <netdb.h>
9799#endif
9800
9801int main() {
9802struct hostent *gethostbyaddr(const void *, size_t, int);
9803; return 0; }
9804EOF
9805if { (eval echo configure:9806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9806  rm -rf conftest*
9807  eval "ac_cv_func_gethostbyaddr_proto_compat=yes"
9808else
9809  echo "configure: failed program was:" >&5
9810  cat conftest.$ac_ext >&5
9811  rm -rf conftest*
9812  eval "ac_cv_func_gethostbyaddr_proto_compat=no"
9813fi
9814rm -f conftest*
9815fi
9816
9817echo "$ac_t""$ac_cv_func_gethostbyaddr_proto_compat" 1>&6
9818
9819if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then
9820	cat >> confdefs.h <<\EOF
9821#define GETHOSTBYADDR_PROTO_COMPATIBLE 1
9822EOF
9823
9824fi
9825
9826
9827
9828
9829echo $ac_n "checking if getservbyname is compatible with system prototype""... $ac_c" 1>&6
9830echo "configure:9831: checking if getservbyname is compatible with system prototype" >&5
9831if eval "test \"`echo '$''{'ac_cv_func_getservbyname_proto_compat'+set}'`\" = set"; then
9832  echo $ac_n "(cached) $ac_c" 1>&6
9833else
9834  cat > conftest.$ac_ext <<EOF
9835#line 9836 "configure"
9836#include "confdefs.h"
9837
9838#ifdef HAVE_SYS_TYPES_H
9839#include <sys/types.h>
9840#endif
9841#ifdef HAVE_SYS_SOCKET_H
9842#include <sys/socket.h>
9843#endif
9844#ifdef HAVE_NETINET_IN_H
9845#include <netinet/in.h>
9846#endif
9847#ifdef HAVE_ARPA_INET_H
9848#include <arpa/inet.h>
9849#endif
9850#ifdef HAVE_NETDB_H
9851#include <netdb.h>
9852#endif
9853
9854int main() {
9855struct servent *getservbyname(const char *, const char *);
9856; return 0; }
9857EOF
9858if { (eval echo configure:9859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9859  rm -rf conftest*
9860  eval "ac_cv_func_getservbyname_proto_compat=yes"
9861else
9862  echo "configure: failed program was:" >&5
9863  cat conftest.$ac_ext >&5
9864  rm -rf conftest*
9865  eval "ac_cv_func_getservbyname_proto_compat=no"
9866fi
9867rm -f conftest*
9868fi
9869
9870echo "$ac_t""$ac_cv_func_getservbyname_proto_compat" 1>&6
9871
9872if test "$ac_cv_func_getservbyname_proto_compat" = yes; then
9873	cat >> confdefs.h <<\EOF
9874#define GETSERVBYNAME_PROTO_COMPATIBLE 1
9875EOF
9876
9877fi
9878
9879
9880
9881
9882echo $ac_n "checking if openlog is compatible with system prototype""... $ac_c" 1>&6
9883echo "configure:9884: checking if openlog is compatible with system prototype" >&5
9884if eval "test \"`echo '$''{'ac_cv_func_openlog_proto_compat'+set}'`\" = set"; then
9885  echo $ac_n "(cached) $ac_c" 1>&6
9886else
9887  cat > conftest.$ac_ext <<EOF
9888#line 9889 "configure"
9889#include "confdefs.h"
9890
9891#ifdef HAVE_SYSLOG_H
9892#include <syslog.h>
9893#endif
9894
9895int main() {
9896void openlog(const char *, int, int);
9897; return 0; }
9898EOF
9899if { (eval echo configure:9900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9900  rm -rf conftest*
9901  eval "ac_cv_func_openlog_proto_compat=yes"
9902else
9903  echo "configure: failed program was:" >&5
9904  cat conftest.$ac_ext >&5
9905  rm -rf conftest*
9906  eval "ac_cv_func_openlog_proto_compat=no"
9907fi
9908rm -f conftest*
9909fi
9910
9911echo "$ac_t""$ac_cv_func_openlog_proto_compat" 1>&6
9912
9913if test "$ac_cv_func_openlog_proto_compat" = yes; then
9914	cat >> confdefs.h <<\EOF
9915#define OPENLOG_PROTO_COMPATIBLE 1
9916EOF
9917
9918fi
9919
9920
9921
9922
9923if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then
9924echo $ac_n "checking if crypt needs a prototype""... $ac_c" 1>&6
9925echo "configure:9926: checking if crypt needs a prototype" >&5
9926if eval "test \"`echo '$''{'ac_cv_func_crypt_noproto'+set}'`\" = set"; then
9927  echo $ac_n "(cached) $ac_c" 1>&6
9928else
9929  cat > conftest.$ac_ext <<EOF
9930#line 9931 "configure"
9931#include "confdefs.h"
9932
9933#ifdef HAVE_CRYPT_H
9934#include <crypt.h>
9935#endif
9936#ifdef HAVE_UNISTD_H
9937#include <unistd.h>
9938#endif
9939
9940int main() {
9941struct foo { int foo; } xx;
9942extern int crypt (struct foo*);
9943crypt(&xx);
9944
9945; return 0; }
9946EOF
9947if { (eval echo configure:9948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9948  rm -rf conftest*
9949  eval "ac_cv_func_crypt_noproto=yes"
9950else
9951  echo "configure: failed program was:" >&5
9952  cat conftest.$ac_ext >&5
9953  rm -rf conftest*
9954  eval "ac_cv_func_crypt_noproto=no"
9955fi
9956rm -f conftest*
9957fi
9958
9959echo "$ac_t""$ac_cv_func_crypt_noproto" 1>&6
9960
9961if test "$ac_cv_func_crypt_noproto" = yes; then
9962	cat >> confdefs.h <<\EOF
9963#define NEED_CRYPT_PROTO 1
9964EOF
9965
9966fi
9967
9968fi
9969
9970
9971
9972if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then
9973echo $ac_n "checking if strtok_r needs a prototype""... $ac_c" 1>&6
9974echo "configure:9975: checking if strtok_r needs a prototype" >&5
9975if eval "test \"`echo '$''{'ac_cv_func_strtok_r_noproto'+set}'`\" = set"; then
9976  echo $ac_n "(cached) $ac_c" 1>&6
9977else
9978  cat > conftest.$ac_ext <<EOF
9979#line 9980 "configure"
9980#include "confdefs.h"
9981
9982#include <string.h>
9983
9984int main() {
9985struct foo { int foo; } xx;
9986extern int strtok_r (struct foo*);
9987strtok_r(&xx);
9988
9989; return 0; }
9990EOF
9991if { (eval echo configure:9992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9992  rm -rf conftest*
9993  eval "ac_cv_func_strtok_r_noproto=yes"
9994else
9995  echo "configure: failed program was:" >&5
9996  cat conftest.$ac_ext >&5
9997  rm -rf conftest*
9998  eval "ac_cv_func_strtok_r_noproto=no"
9999fi
10000rm -f conftest*
10001fi
10002
10003echo "$ac_t""$ac_cv_func_strtok_r_noproto" 1>&6
10004
10005if test "$ac_cv_func_strtok_r_noproto" = yes; then
10006	cat >> confdefs.h <<\EOF
10007#define NEED_STRTOK_R_PROTO 1
10008EOF
10009
10010fi
10011
10012fi
10013
10014
10015
10016if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then
10017echo $ac_n "checking if strsep needs a prototype""... $ac_c" 1>&6
10018echo "configure:10019: checking if strsep needs a prototype" >&5
10019if eval "test \"`echo '$''{'ac_cv_func_strsep_noproto'+set}'`\" = set"; then
10020  echo $ac_n "(cached) $ac_c" 1>&6
10021else
10022  cat > conftest.$ac_ext <<EOF
10023#line 10024 "configure"
10024#include "confdefs.h"
10025
10026#include <string.h>
10027
10028int main() {
10029struct foo { int foo; } xx;
10030extern int strsep (struct foo*);
10031strsep(&xx);
10032
10033; return 0; }
10034EOF
10035if { (eval echo configure:10036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10036  rm -rf conftest*
10037  eval "ac_cv_func_strsep_noproto=yes"
10038else
10039  echo "configure: failed program was:" >&5
10040  cat conftest.$ac_ext >&5
10041  rm -rf conftest*
10042  eval "ac_cv_func_strsep_noproto=no"
10043fi
10044rm -f conftest*
10045fi
10046
10047echo "$ac_t""$ac_cv_func_strsep_noproto" 1>&6
10048
10049if test "$ac_cv_func_strsep_noproto" = yes; then
10050	cat >> confdefs.h <<\EOF
10051#define NEED_STRSEP_PROTO 1
10052EOF
10053
10054fi
10055
10056fi
10057
10058
10059
10060echo $ac_n "checking for h_errno""... $ac_c" 1>&6
10061echo "configure:10062: checking for h_errno" >&5
10062if eval "test \"`echo '$''{'ac_cv_var_h_errno'+set}'`\" = set"; then
10063  echo $ac_n "(cached) $ac_c" 1>&6
10064else
10065  
10066cat > conftest.$ac_ext <<EOF
10067#line 10068 "configure"
10068#include "confdefs.h"
10069extern int h_errno;
10070int foo() { return h_errno; }
10071int main() {
10072foo()
10073; return 0; }
10074EOF
10075if { (eval echo configure:10076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10076  rm -rf conftest*
10077  ac_cv_var_h_errno=yes
10078else
10079  echo "configure: failed program was:" >&5
10080  cat conftest.$ac_ext >&5
10081  rm -rf conftest*
10082  ac_cv_var_h_errno=no
10083fi
10084rm -f conftest*
10085
10086fi
10087
10088
10089
10090echo "$ac_t""`eval echo \\$ac_cv_var_h_errno`" 1>&6
10091if test `eval echo \\$ac_cv_var_h_errno` = yes; then
10092	cat >> confdefs.h <<EOF
10093#define HAVE_H_ERRNO 1
10094EOF
10095
10096	
10097echo $ac_n "checking if h_errno is properly declared""... $ac_c" 1>&6
10098echo "configure:10099: checking if h_errno is properly declared" >&5
10099if eval "test \"`echo '$''{'ac_cv_var_h_errno_declaration'+set}'`\" = set"; then
10100  echo $ac_n "(cached) $ac_c" 1>&6
10101else
10102  
10103cat > conftest.$ac_ext <<EOF
10104#line 10105 "configure"
10105#include "confdefs.h"
10106#ifdef HAVE_SYS_TYPES_H
10107#include <sys/types.h>
10108#endif
10109#ifdef HAVE_NETDB_H
10110#include <netdb.h>
10111#endif
10112extern struct { int foo; } h_errno;
10113int main() {
10114h_errno.foo = 1;
10115; return 0; }
10116EOF
10117if { (eval echo configure:10118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10118  rm -rf conftest*
10119  eval "ac_cv_var_h_errno_declaration=no"
10120else
10121  echo "configure: failed program was:" >&5
10122  cat conftest.$ac_ext >&5
10123  rm -rf conftest*
10124  eval "ac_cv_var_h_errno_declaration=yes"
10125fi
10126rm -f conftest*
10127
10128fi
10129
10130
10131
10132
10133echo "$ac_t""$ac_cv_var_h_errno_declaration" 1>&6
10134if eval "test \"\$ac_cv_var_h_errno_declaration\" = yes"; then
10135	cat >> confdefs.h <<\EOF
10136#define HAVE_H_ERRNO_DECLARATION 1
10137EOF
10138
10139fi
10140
10141
10142fi
10143
10144
10145
10146
10147echo $ac_n "checking for h_errlist""... $ac_c" 1>&6
10148echo "configure:10149: checking for h_errlist" >&5
10149if eval "test \"`echo '$''{'ac_cv_var_h_errlist'+set}'`\" = set"; then
10150  echo $ac_n "(cached) $ac_c" 1>&6
10151else
10152  
10153cat > conftest.$ac_ext <<EOF
10154#line 10155 "configure"
10155#include "confdefs.h"
10156extern int h_errlist;
10157int foo() { return h_errlist; }
10158int main() {
10159foo()
10160; return 0; }
10161EOF
10162if { (eval echo configure:10163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10163  rm -rf conftest*
10164  ac_cv_var_h_errlist=yes
10165else
10166  echo "configure: failed program was:" >&5
10167  cat conftest.$ac_ext >&5
10168  rm -rf conftest*
10169  ac_cv_var_h_errlist=no
10170fi
10171rm -f conftest*
10172
10173fi
10174
10175
10176
10177echo "$ac_t""`eval echo \\$ac_cv_var_h_errlist`" 1>&6
10178if test `eval echo \\$ac_cv_var_h_errlist` = yes; then
10179	cat >> confdefs.h <<EOF
10180#define HAVE_H_ERRLIST 1
10181EOF
10182
10183	
10184echo $ac_n "checking if h_errlist is properly declared""... $ac_c" 1>&6
10185echo "configure:10186: checking if h_errlist is properly declared" >&5
10186if eval "test \"`echo '$''{'ac_cv_var_h_errlist_declaration'+set}'`\" = set"; then
10187  echo $ac_n "(cached) $ac_c" 1>&6
10188else
10189  
10190cat > conftest.$ac_ext <<EOF
10191#line 10192 "configure"
10192#include "confdefs.h"
10193#ifdef HAVE_NETDB_H
10194#include <netdb.h>
10195#endif
10196extern struct { int foo; } h_errlist;
10197int main() {
10198h_errlist.foo = 1;
10199; return 0; }
10200EOF
10201if { (eval echo configure:10202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10202  rm -rf conftest*
10203  eval "ac_cv_var_h_errlist_declaration=no"
10204else
10205  echo "configure: failed program was:" >&5
10206  cat conftest.$ac_ext >&5
10207  rm -rf conftest*
10208  eval "ac_cv_var_h_errlist_declaration=yes"
10209fi
10210rm -f conftest*
10211
10212fi
10213
10214
10215
10216
10217echo "$ac_t""$ac_cv_var_h_errlist_declaration" 1>&6
10218if eval "test \"\$ac_cv_var_h_errlist_declaration\" = yes"; then
10219	cat >> confdefs.h <<\EOF
10220#define HAVE_H_ERRLIST_DECLARATION 1
10221EOF
10222
10223fi
10224
10225
10226fi
10227
10228
10229
10230
10231echo $ac_n "checking for h_nerr""... $ac_c" 1>&6
10232echo "configure:10233: checking for h_nerr" >&5
10233if eval "test \"`echo '$''{'ac_cv_var_h_nerr'+set}'`\" = set"; then
10234  echo $ac_n "(cached) $ac_c" 1>&6
10235else
10236  
10237cat > conftest.$ac_ext <<EOF
10238#line 10239 "configure"
10239#include "confdefs.h"
10240extern int h_nerr;
10241int foo() { return h_nerr; }
10242int main() {
10243foo()
10244; return 0; }
10245EOF
10246if { (eval echo configure:10247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10247  rm -rf conftest*
10248  ac_cv_var_h_nerr=yes
10249else
10250  echo "configure: failed program was:" >&5
10251  cat conftest.$ac_ext >&5
10252  rm -rf conftest*
10253  ac_cv_var_h_nerr=no
10254fi
10255rm -f conftest*
10256
10257fi
10258
10259
10260
10261echo "$ac_t""`eval echo \\$ac_cv_var_h_nerr`" 1>&6
10262if test `eval echo \\$ac_cv_var_h_nerr` = yes; then
10263	cat >> confdefs.h <<EOF
10264#define HAVE_H_NERR 1
10265EOF
10266
10267	
10268echo $ac_n "checking if h_nerr is properly declared""... $ac_c" 1>&6
10269echo "configure:10270: checking if h_nerr is properly declared" >&5
10270if eval "test \"`echo '$''{'ac_cv_var_h_nerr_declaration'+set}'`\" = set"; then
10271  echo $ac_n "(cached) $ac_c" 1>&6
10272else
10273  
10274cat > conftest.$ac_ext <<EOF
10275#line 10276 "configure"
10276#include "confdefs.h"
10277#ifdef HAVE_NETDB_H
10278#include <netdb.h>
10279#endif
10280extern struct { int foo; } h_nerr;
10281int main() {
10282h_nerr.foo = 1;
10283; return 0; }
10284EOF
10285if { (eval echo configure:10286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10286  rm -rf conftest*
10287  eval "ac_cv_var_h_nerr_declaration=no"
10288else
10289  echo "configure: failed program was:" >&5
10290  cat conftest.$ac_ext >&5
10291  rm -rf conftest*
10292  eval "ac_cv_var_h_nerr_declaration=yes"
10293fi
10294rm -f conftest*
10295
10296fi
10297
10298
10299
10300
10301echo "$ac_t""$ac_cv_var_h_nerr_declaration" 1>&6
10302if eval "test \"\$ac_cv_var_h_nerr_declaration\" = yes"; then
10303	cat >> confdefs.h <<\EOF
10304#define HAVE_H_NERR_DECLARATION 1
10305EOF
10306
10307fi
10308
10309
10310fi
10311
10312
10313
10314
10315echo $ac_n "checking for __progname""... $ac_c" 1>&6
10316echo "configure:10317: checking for __progname" >&5
10317if eval "test \"`echo '$''{'ac_cv_var___progname'+set}'`\" = set"; then
10318  echo $ac_n "(cached) $ac_c" 1>&6
10319else
10320  
10321cat > conftest.$ac_ext <<EOF
10322#line 10323 "configure"
10323#include "confdefs.h"
10324extern int __progname;
10325int foo() { return __progname; }
10326int main() {
10327foo()
10328; return 0; }
10329EOF
10330if { (eval echo configure:10331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10331  rm -rf conftest*
10332  ac_cv_var___progname=yes
10333else
10334  echo "configure: failed program was:" >&5
10335  cat conftest.$ac_ext >&5
10336  rm -rf conftest*
10337  ac_cv_var___progname=no
10338fi
10339rm -f conftest*
10340
10341fi
10342
10343
10344
10345echo "$ac_t""`eval echo \\$ac_cv_var___progname`" 1>&6
10346if test `eval echo \\$ac_cv_var___progname` = yes; then
10347	cat >> confdefs.h <<EOF
10348#define HAVE___PROGNAME 1
10349EOF
10350
10351	
10352echo $ac_n "checking if __progname is properly declared""... $ac_c" 1>&6
10353echo "configure:10354: checking if __progname is properly declared" >&5
10354if eval "test \"`echo '$''{'ac_cv_var___progname_declaration'+set}'`\" = set"; then
10355  echo $ac_n "(cached) $ac_c" 1>&6
10356else
10357  
10358cat > conftest.$ac_ext <<EOF
10359#line 10360 "configure"
10360#include "confdefs.h"
10361#ifdef HAVE_ERR_H
10362#include <err.h>
10363#endif
10364extern struct { int foo; } __progname;
10365int main() {
10366__progname.foo = 1;
10367; return 0; }
10368EOF
10369if { (eval echo configure:10370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10370  rm -rf conftest*
10371  eval "ac_cv_var___progname_declaration=no"
10372else
10373  echo "configure: failed program was:" >&5
10374  cat conftest.$ac_ext >&5
10375  rm -rf conftest*
10376  eval "ac_cv_var___progname_declaration=yes"
10377fi
10378rm -f conftest*
10379
10380fi
10381
10382
10383
10384
10385echo "$ac_t""$ac_cv_var___progname_declaration" 1>&6
10386if eval "test \"\$ac_cv_var___progname_declaration\" = yes"; then
10387	cat >> confdefs.h <<\EOF
10388#define HAVE___PROGNAME_DECLARATION 1
10389EOF
10390
10391fi
10392
10393
10394fi
10395
10396
10397
10398
10399echo $ac_n "checking if optarg is properly declared""... $ac_c" 1>&6
10400echo "configure:10401: checking if optarg is properly declared" >&5
10401if eval "test \"`echo '$''{'ac_cv_var_optarg_declaration'+set}'`\" = set"; then
10402  echo $ac_n "(cached) $ac_c" 1>&6
10403else
10404  
10405cat > conftest.$ac_ext <<EOF
10406#line 10407 "configure"
10407#include "confdefs.h"
10408#include <stdlib.h>
10409#ifdef HAVE_UNISTD_H
10410#include <unistd.h>
10411#endif
10412extern struct { int foo; } optarg;
10413int main() {
10414optarg.foo = 1;
10415; return 0; }
10416EOF
10417if { (eval echo configure:10418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10418  rm -rf conftest*
10419  eval "ac_cv_var_optarg_declaration=no"
10420else
10421  echo "configure: failed program was:" >&5
10422  cat conftest.$ac_ext >&5
10423  rm -rf conftest*
10424  eval "ac_cv_var_optarg_declaration=yes"
10425fi
10426rm -f conftest*
10427
10428fi
10429
10430
10431
10432
10433echo "$ac_t""$ac_cv_var_optarg_declaration" 1>&6
10434if eval "test \"\$ac_cv_var_optarg_declaration\" = yes"; then
10435	cat >> confdefs.h <<\EOF
10436#define HAVE_OPTARG_DECLARATION 1
10437EOF
10438
10439fi
10440
10441
10442
10443echo $ac_n "checking if optind is properly declared""... $ac_c" 1>&6
10444echo "configure:10445: checking if optind is properly declared" >&5
10445if eval "test \"`echo '$''{'ac_cv_var_optind_declaration'+set}'`\" = set"; then
10446  echo $ac_n "(cached) $ac_c" 1>&6
10447else
10448  
10449cat > conftest.$ac_ext <<EOF
10450#line 10451 "configure"
10451#include "confdefs.h"
10452#include <stdlib.h>
10453#ifdef HAVE_UNISTD_H
10454#include <unistd.h>
10455#endif
10456extern struct { int foo; } optind;
10457int main() {
10458optind.foo = 1;
10459; return 0; }
10460EOF
10461if { (eval echo configure:10462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10462  rm -rf conftest*
10463  eval "ac_cv_var_optind_declaration=no"
10464else
10465  echo "configure: failed program was:" >&5
10466  cat conftest.$ac_ext >&5
10467  rm -rf conftest*
10468  eval "ac_cv_var_optind_declaration=yes"
10469fi
10470rm -f conftest*
10471
10472fi
10473
10474
10475
10476
10477echo "$ac_t""$ac_cv_var_optind_declaration" 1>&6
10478if eval "test \"\$ac_cv_var_optind_declaration\" = yes"; then
10479	cat >> confdefs.h <<\EOF
10480#define HAVE_OPTIND_DECLARATION 1
10481EOF
10482
10483fi
10484
10485
10486
10487echo $ac_n "checking if opterr is properly declared""... $ac_c" 1>&6
10488echo "configure:10489: checking if opterr is properly declared" >&5
10489if eval "test \"`echo '$''{'ac_cv_var_opterr_declaration'+set}'`\" = set"; then
10490  echo $ac_n "(cached) $ac_c" 1>&6
10491else
10492  
10493cat > conftest.$ac_ext <<EOF
10494#line 10495 "configure"
10495#include "confdefs.h"
10496#include <stdlib.h>
10497#ifdef HAVE_UNISTD_H
10498#include <unistd.h>
10499#endif
10500extern struct { int foo; } opterr;
10501int main() {
10502opterr.foo = 1;
10503; return 0; }
10504EOF
10505if { (eval echo configure:10506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10506  rm -rf conftest*
10507  eval "ac_cv_var_opterr_declaration=no"
10508else
10509  echo "configure: failed program was:" >&5
10510  cat conftest.$ac_ext >&5
10511  rm -rf conftest*
10512  eval "ac_cv_var_opterr_declaration=yes"
10513fi
10514rm -f conftest*
10515
10516fi
10517
10518
10519
10520
10521echo "$ac_t""$ac_cv_var_opterr_declaration" 1>&6
10522if eval "test \"\$ac_cv_var_opterr_declaration\" = yes"; then
10523	cat >> confdefs.h <<\EOF
10524#define HAVE_OPTERR_DECLARATION 1
10525EOF
10526
10527fi
10528
10529
10530
10531echo $ac_n "checking if optopt is properly declared""... $ac_c" 1>&6
10532echo "configure:10533: checking if optopt is properly declared" >&5
10533if eval "test \"`echo '$''{'ac_cv_var_optopt_declaration'+set}'`\" = set"; then
10534  echo $ac_n "(cached) $ac_c" 1>&6
10535else
10536  
10537cat > conftest.$ac_ext <<EOF
10538#line 10539 "configure"
10539#include "confdefs.h"
10540#include <stdlib.h>
10541#ifdef HAVE_UNISTD_H
10542#include <unistd.h>
10543#endif
10544extern struct { int foo; } optopt;
10545int main() {
10546optopt.foo = 1;
10547; return 0; }
10548EOF
10549if { (eval echo configure:10550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10550  rm -rf conftest*
10551  eval "ac_cv_var_optopt_declaration=no"
10552else
10553  echo "configure: failed program was:" >&5
10554  cat conftest.$ac_ext >&5
10555  rm -rf conftest*
10556  eval "ac_cv_var_optopt_declaration=yes"
10557fi
10558rm -f conftest*
10559
10560fi
10561
10562
10563
10564
10565echo "$ac_t""$ac_cv_var_optopt_declaration" 1>&6
10566if eval "test \"\$ac_cv_var_optopt_declaration\" = yes"; then
10567	cat >> confdefs.h <<\EOF
10568#define HAVE_OPTOPT_DECLARATION 1
10569EOF
10570
10571fi
10572
10573
10574
10575
10576echo $ac_n "checking if environ is properly declared""... $ac_c" 1>&6
10577echo "configure:10578: checking if environ is properly declared" >&5
10578if eval "test \"`echo '$''{'ac_cv_var_environ_declaration'+set}'`\" = set"; then
10579  echo $ac_n "(cached) $ac_c" 1>&6
10580else
10581  
10582cat > conftest.$ac_ext <<EOF
10583#line 10584 "configure"
10584#include "confdefs.h"
10585#include <stdlib.h>
10586extern struct { int foo; } environ;
10587int main() {
10588environ.foo = 1;
10589; return 0; }
10590EOF
10591if { (eval echo configure:10592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10592  rm -rf conftest*
10593  eval "ac_cv_var_environ_declaration=no"
10594else
10595  echo "configure: failed program was:" >&5
10596  cat conftest.$ac_ext >&5
10597  rm -rf conftest*
10598  eval "ac_cv_var_environ_declaration=yes"
10599fi
10600rm -f conftest*
10601
10602fi
10603
10604
10605
10606
10607echo "$ac_t""$ac_cv_var_environ_declaration" 1>&6
10608if eval "test \"\$ac_cv_var_environ_declaration\" = yes"; then
10609	cat >> confdefs.h <<\EOF
10610#define HAVE_ENVIRON_DECLARATION 1
10611EOF
10612
10613fi
10614
10615
10616
10617
10618
10619
10620echo $ac_n "checking for ut_addr in struct utmp""... $ac_c" 1>&6
10621echo "configure:10622: checking for ut_addr in struct utmp" >&5
10622if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_addr'+set}'`\" = set"; then
10623  echo $ac_n "(cached) $ac_c" 1>&6
10624else
10625  
10626cat > conftest.$ac_ext <<EOF
10627#line 10628 "configure"
10628#include "confdefs.h"
10629#include <utmp.h>
10630int main() {
10631struct utmp x; x.ut_addr;
10632; return 0; }
10633EOF
10634if { (eval echo configure:10635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10635  rm -rf conftest*
10636  ac_cv_type_struct_utmp_ut_addr=yes
10637else
10638  echo "configure: failed program was:" >&5
10639  cat conftest.$ac_ext >&5
10640  rm -rf conftest*
10641  ac_cv_type_struct_utmp_ut_addr=no
10642fi
10643rm -f conftest*
10644fi
10645
10646echo "$ac_t""$ac_cv_type_struct_utmp_ut_addr" 1>&6
10647if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then
10648	
10649	cat >> confdefs.h <<\EOF
10650#define HAVE_STRUCT_UTMP_UT_ADDR 1
10651EOF
10652
10653	
10654fi
10655
10656
10657
10658
10659echo $ac_n "checking for ut_host in struct utmp""... $ac_c" 1>&6
10660echo "configure:10661: checking for ut_host in struct utmp" >&5
10661if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_host'+set}'`\" = set"; then
10662  echo $ac_n "(cached) $ac_c" 1>&6
10663else
10664  
10665cat > conftest.$ac_ext <<EOF
10666#line 10667 "configure"
10667#include "confdefs.h"
10668#include <utmp.h>
10669int main() {
10670struct utmp x; x.ut_host;
10671; return 0; }
10672EOF
10673if { (eval echo configure:10674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10674  rm -rf conftest*
10675  ac_cv_type_struct_utmp_ut_host=yes
10676else
10677  echo "configure: failed program was:" >&5
10678  cat conftest.$ac_ext >&5
10679  rm -rf conftest*
10680  ac_cv_type_struct_utmp_ut_host=no
10681fi
10682rm -f conftest*
10683fi
10684
10685echo "$ac_t""$ac_cv_type_struct_utmp_ut_host" 1>&6
10686if test "$ac_cv_type_struct_utmp_ut_host" = yes; then
10687	
10688	cat >> confdefs.h <<\EOF
10689#define HAVE_STRUCT_UTMP_UT_HOST 1
10690EOF
10691
10692	
10693fi
10694
10695
10696
10697
10698echo $ac_n "checking for ut_id in struct utmp""... $ac_c" 1>&6
10699echo "configure:10700: checking for ut_id in struct utmp" >&5
10700if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_id'+set}'`\" = set"; then
10701  echo $ac_n "(cached) $ac_c" 1>&6
10702else
10703  
10704cat > conftest.$ac_ext <<EOF
10705#line 10706 "configure"
10706#include "confdefs.h"
10707#include <utmp.h>
10708int main() {
10709struct utmp x; x.ut_id;
10710; return 0; }
10711EOF
10712if { (eval echo configure:10713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10713  rm -rf conftest*
10714  ac_cv_type_struct_utmp_ut_id=yes
10715else
10716  echo "configure: failed program was:" >&5
10717  cat conftest.$ac_ext >&5
10718  rm -rf conftest*
10719  ac_cv_type_struct_utmp_ut_id=no
10720fi
10721rm -f conftest*
10722fi
10723
10724echo "$ac_t""$ac_cv_type_struct_utmp_ut_id" 1>&6
10725if test "$ac_cv_type_struct_utmp_ut_id" = yes; then
10726	
10727	cat >> confdefs.h <<\EOF
10728#define HAVE_STRUCT_UTMP_UT_ID 1
10729EOF
10730
10731	
10732fi
10733
10734
10735
10736
10737echo $ac_n "checking for ut_pid in struct utmp""... $ac_c" 1>&6
10738echo "configure:10739: checking for ut_pid in struct utmp" >&5
10739if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_pid'+set}'`\" = set"; then
10740  echo $ac_n "(cached) $ac_c" 1>&6
10741else
10742  
10743cat > conftest.$ac_ext <<EOF
10744#line 10745 "configure"
10745#include "confdefs.h"
10746#include <utmp.h>
10747int main() {
10748struct utmp x; x.ut_pid;
10749; return 0; }
10750EOF
10751if { (eval echo configure:10752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10752  rm -rf conftest*
10753  ac_cv_type_struct_utmp_ut_pid=yes
10754else
10755  echo "configure: failed program was:" >&5
10756  cat conftest.$ac_ext >&5
10757  rm -rf conftest*
10758  ac_cv_type_struct_utmp_ut_pid=no
10759fi
10760rm -f conftest*
10761fi
10762
10763echo "$ac_t""$ac_cv_type_struct_utmp_ut_pid" 1>&6
10764if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then
10765	
10766	cat >> confdefs.h <<\EOF
10767#define HAVE_STRUCT_UTMP_UT_PID 1
10768EOF
10769
10770	
10771fi
10772
10773
10774
10775
10776echo $ac_n "checking for ut_type in struct utmp""... $ac_c" 1>&6
10777echo "configure:10778: checking for ut_type in struct utmp" >&5
10778if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_type'+set}'`\" = set"; then
10779  echo $ac_n "(cached) $ac_c" 1>&6
10780else
10781  
10782cat > conftest.$ac_ext <<EOF
10783#line 10784 "configure"
10784#include "confdefs.h"
10785#include <utmp.h>
10786int main() {
10787struct utmp x; x.ut_type;
10788; return 0; }
10789EOF
10790if { (eval echo configure:10791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10791  rm -rf conftest*
10792  ac_cv_type_struct_utmp_ut_type=yes
10793else
10794  echo "configure: failed program was:" >&5
10795  cat conftest.$ac_ext >&5
10796  rm -rf conftest*
10797  ac_cv_type_struct_utmp_ut_type=no
10798fi
10799rm -f conftest*
10800fi
10801
10802echo "$ac_t""$ac_cv_type_struct_utmp_ut_type" 1>&6
10803if test "$ac_cv_type_struct_utmp_ut_type" = yes; then
10804	
10805	cat >> confdefs.h <<\EOF
10806#define HAVE_STRUCT_UTMP_UT_TYPE 1
10807EOF
10808
10809	
10810fi
10811
10812
10813
10814
10815echo $ac_n "checking for ut_user in struct utmp""... $ac_c" 1>&6
10816echo "configure:10817: checking for ut_user in struct utmp" >&5
10817if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_user'+set}'`\" = set"; then
10818  echo $ac_n "(cached) $ac_c" 1>&6
10819else
10820  
10821cat > conftest.$ac_ext <<EOF
10822#line 10823 "configure"
10823#include "confdefs.h"
10824#include <utmp.h>
10825int main() {
10826struct utmp x; x.ut_user;
10827; return 0; }
10828EOF
10829if { (eval echo configure:10830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10830  rm -rf conftest*
10831  ac_cv_type_struct_utmp_ut_user=yes
10832else
10833  echo "configure: failed program was:" >&5
10834  cat conftest.$ac_ext >&5
10835  rm -rf conftest*
10836  ac_cv_type_struct_utmp_ut_user=no
10837fi
10838rm -f conftest*
10839fi
10840
10841echo "$ac_t""$ac_cv_type_struct_utmp_ut_user" 1>&6
10842if test "$ac_cv_type_struct_utmp_ut_user" = yes; then
10843	
10844	cat >> confdefs.h <<\EOF
10845#define HAVE_STRUCT_UTMP_UT_USER 1
10846EOF
10847
10848	
10849fi
10850
10851
10852
10853
10854echo $ac_n "checking for ut_exit in struct utmpx""... $ac_c" 1>&6
10855echo "configure:10856: checking for ut_exit in struct utmpx" >&5
10856if eval "test \"`echo '$''{'ac_cv_type_struct_utmpx_ut_exit'+set}'`\" = set"; then
10857  echo $ac_n "(cached) $ac_c" 1>&6
10858else
10859  
10860cat > conftest.$ac_ext <<EOF
10861#line 10862 "configure"
10862#include "confdefs.h"
10863#include <utmpx.h>
10864int main() {
10865struct utmpx x; x.ut_exit;
10866; return 0; }
10867EOF
10868if { (eval echo configure:10869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10869  rm -rf conftest*
10870  ac_cv_type_struct_utmpx_ut_exit=yes
10871else
10872  echo "configure: failed program was:" >&5
10873  cat conftest.$ac_ext >&5
10874  rm -rf conftest*
10875  ac_cv_type_struct_utmpx_ut_exit=no
10876fi
10877rm -f conftest*
10878fi
10879
10880echo "$ac_t""$ac_cv_type_struct_utmpx_ut_exit" 1>&6
10881if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then
10882	
10883	cat >> confdefs.h <<\EOF
10884#define HAVE_STRUCT_UTMPX_UT_EXIT 1
10885EOF
10886
10887	
10888fi
10889
10890
10891
10892
10893echo $ac_n "checking for ut_syslen in struct utmpx""... $ac_c" 1>&6
10894echo "configure:10895: checking for ut_syslen in struct utmpx" >&5
10895if eval "test \"`echo '$''{'ac_cv_type_struct_utmpx_ut_syslen'+set}'`\" = set"; then
10896  echo $ac_n "(cached) $ac_c" 1>&6
10897else
10898  
10899cat > conftest.$ac_ext <<EOF
10900#line 10901 "configure"
10901#include "confdefs.h"
10902#include <utmpx.h>
10903int main() {
10904struct utmpx x; x.ut_syslen;
10905; return 0; }
10906EOF
10907if { (eval echo configure:10908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10908  rm -rf conftest*
10909  ac_cv_type_struct_utmpx_ut_syslen=yes
10910else
10911  echo "configure: failed program was:" >&5
10912  cat conftest.$ac_ext >&5
10913  rm -rf conftest*
10914  ac_cv_type_struct_utmpx_ut_syslen=no
10915fi
10916rm -f conftest*
10917fi
10918
10919echo "$ac_t""$ac_cv_type_struct_utmpx_ut_syslen" 1>&6
10920if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then
10921	
10922	cat >> confdefs.h <<\EOF
10923#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
10924EOF
10925
10926	
10927fi
10928
10929
10930
10931
10932
10933
10934echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
10935echo "configure:10936: checking for tm_gmtoff in struct tm" >&5
10936if eval "test \"`echo '$''{'ac_cv_type_struct_tm_tm_gmtoff'+set}'`\" = set"; then
10937  echo $ac_n "(cached) $ac_c" 1>&6
10938else
10939  
10940cat > conftest.$ac_ext <<EOF
10941#line 10942 "configure"
10942#include "confdefs.h"
10943#include <time.h>
10944int main() {
10945struct tm x; x.tm_gmtoff;
10946; return 0; }
10947EOF
10948if { (eval echo configure:10949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10949  rm -rf conftest*
10950  ac_cv_type_struct_tm_tm_gmtoff=yes
10951else
10952  echo "configure: failed program was:" >&5
10953  cat conftest.$ac_ext >&5
10954  rm -rf conftest*
10955  ac_cv_type_struct_tm_tm_gmtoff=no
10956fi
10957rm -f conftest*
10958fi
10959
10960echo "$ac_t""$ac_cv_type_struct_tm_tm_gmtoff" 1>&6
10961if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then
10962	
10963	cat >> confdefs.h <<\EOF
10964#define HAVE_STRUCT_TM_TM_GMTOFF 1
10965EOF
10966
10967	
10968fi
10969
10970
10971
10972
10973echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
10974echo "configure:10975: checking for tm_zone in struct tm" >&5
10975if eval "test \"`echo '$''{'ac_cv_type_struct_tm_tm_zone'+set}'`\" = set"; then
10976  echo $ac_n "(cached) $ac_c" 1>&6
10977else
10978  
10979cat > conftest.$ac_ext <<EOF
10980#line 10981 "configure"
10981#include "confdefs.h"
10982#include <time.h>
10983int main() {
10984struct tm x; x.tm_zone;
10985; return 0; }
10986EOF
10987if { (eval echo configure:10988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10988  rm -rf conftest*
10989  ac_cv_type_struct_tm_tm_zone=yes
10990else
10991  echo "configure: failed program was:" >&5
10992  cat conftest.$ac_ext >&5
10993  rm -rf conftest*
10994  ac_cv_type_struct_tm_tm_zone=no
10995fi
10996rm -f conftest*
10997fi
10998
10999echo "$ac_t""$ac_cv_type_struct_tm_tm_zone" 1>&6
11000if test "$ac_cv_type_struct_tm_tm_zone" = yes; then
11001	
11002	cat >> confdefs.h <<\EOF
11003#define HAVE_STRUCT_TM_TM_ZONE 1
11004EOF
11005
11006	
11007fi
11008
11009
11010
11011
11012
11013echo $ac_n "checking for timezone""... $ac_c" 1>&6
11014echo "configure:11015: checking for timezone" >&5
11015if eval "test \"`echo '$''{'ac_cv_var_timezone'+set}'`\" = set"; then
11016  echo $ac_n "(cached) $ac_c" 1>&6
11017else
11018  
11019cat > conftest.$ac_ext <<EOF
11020#line 11021 "configure"
11021#include "confdefs.h"
11022extern int timezone;
11023int foo() { return timezone; }
11024int main() {
11025foo()
11026; return 0; }
11027EOF
11028if { (eval echo configure:11029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11029  rm -rf conftest*
11030  ac_cv_var_timezone=yes
11031else
11032  echo "configure: failed program was:" >&5
11033  cat conftest.$ac_ext >&5
11034  rm -rf conftest*
11035  ac_cv_var_timezone=no
11036fi
11037rm -f conftest*
11038
11039fi
11040
11041
11042
11043echo "$ac_t""`eval echo \\$ac_cv_var_timezone`" 1>&6
11044if test `eval echo \\$ac_cv_var_timezone` = yes; then
11045	cat >> confdefs.h <<EOF
11046#define HAVE_TIMEZONE 1
11047EOF
11048
11049	
11050echo $ac_n "checking if timezone is properly declared""... $ac_c" 1>&6
11051echo "configure:11052: checking if timezone is properly declared" >&5
11052if eval "test \"`echo '$''{'ac_cv_var_timezone_declaration'+set}'`\" = set"; then
11053  echo $ac_n "(cached) $ac_c" 1>&6
11054else
11055  
11056cat > conftest.$ac_ext <<EOF
11057#line 11058 "configure"
11058#include "confdefs.h"
11059#include <time.h>
11060extern struct { int foo; } timezone;
11061int main() {
11062timezone.foo = 1;
11063; return 0; }
11064EOF
11065if { (eval echo configure:11066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11066  rm -rf conftest*
11067  eval "ac_cv_var_timezone_declaration=no"
11068else
11069  echo "configure: failed program was:" >&5
11070  cat conftest.$ac_ext >&5
11071  rm -rf conftest*
11072  eval "ac_cv_var_timezone_declaration=yes"
11073fi
11074rm -f conftest*
11075
11076fi
11077
11078
11079
11080
11081echo "$ac_t""$ac_cv_var_timezone_declaration" 1>&6
11082if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then
11083	cat >> confdefs.h <<\EOF
11084#define HAVE_TIMEZONE_DECLARATION 1
11085EOF
11086
11087fi
11088
11089
11090fi
11091
11092
11093
11094
11095
11096cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
11097echo $ac_n "checking for sa_family_t""... $ac_c" 1>&6
11098echo "configure:11099: checking for sa_family_t" >&5
11099if eval "test \"`echo '$''{'ac_cv_type_$cv'+set}'`\" = set"; then
11100  echo $ac_n "(cached) $ac_c" 1>&6
11101else
11102  cat > conftest.$ac_ext <<EOF
11103#line 11104 "configure"
11104#include "confdefs.h"
11105#include <sys/types.h>
11106#if STDC_HEADERS
11107#include <stdlib.h>
11108#include <stddef.h>
11109#endif
11110#include <sys/socket.h>
11111int main() {
11112sa_family_t foo;
11113; return 0; }
11114EOF
11115if { (eval echo configure:11116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11116  rm -rf conftest*
11117  eval "ac_cv_type_$cv=yes"
11118else
11119  echo "configure: failed program was:" >&5
11120  cat conftest.$ac_ext >&5
11121  rm -rf conftest*
11122  eval "ac_cv_type_$cv=no"
11123fi
11124rm -f conftest*
11125fi
11126echo "$ac_t""`eval echo \\$ac_cv_type_$cv`" 1>&6
11127if test `eval echo \\$ac_cv_type_$cv` = yes; then
11128  ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
11129
11130: << END
11131@@@funcs="$funcs sa_family_t"@@@
11132END
11133
11134  cat >> confdefs.h <<EOF
11135#define $ac_tr_hdr 1
11136EOF
11137
11138fi
11139
11140
11141
11142
11143cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
11144echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
11145echo "configure:11146: checking for socklen_t" >&5
11146if eval "test \"`echo '$''{'ac_cv_type_$cv'+set}'`\" = set"; then
11147  echo $ac_n "(cached) $ac_c" 1>&6
11148else
11149  cat > conftest.$ac_ext <<EOF
11150#line 11151 "configure"
11151#include "confdefs.h"
11152#include <sys/types.h>
11153#if STDC_HEADERS
11154#include <stdlib.h>
11155#include <stddef.h>
11156#endif
11157#include <sys/socket.h>
11158int main() {
11159socklen_t foo;
11160; return 0; }
11161EOF
11162if { (eval echo configure:11163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11163  rm -rf conftest*
11164  eval "ac_cv_type_$cv=yes"
11165else
11166  echo "configure: failed program was:" >&5
11167  cat conftest.$ac_ext >&5
11168  rm -rf conftest*
11169  eval "ac_cv_type_$cv=no"
11170fi
11171rm -f conftest*
11172fi
11173echo "$ac_t""`eval echo \\$ac_cv_type_$cv`" 1>&6
11174if test `eval echo \\$ac_cv_type_$cv` = yes; then
11175  ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
11176
11177: << END
11178@@@funcs="$funcs socklen_t"@@@
11179END
11180
11181  cat >> confdefs.h <<EOF
11182#define $ac_tr_hdr 1
11183EOF
11184
11185fi
11186
11187
11188
11189
11190cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
11191echo $ac_n "checking for struct sockaddr""... $ac_c" 1>&6
11192echo "configure:11193: checking for struct sockaddr" >&5
11193if eval "test \"`echo '$''{'ac_cv_type_$cv'+set}'`\" = set"; then
11194  echo $ac_n "(cached) $ac_c" 1>&6
11195else
11196  cat > conftest.$ac_ext <<EOF
11197#line 11198 "configure"
11198#include "confdefs.h"
11199#include <sys/types.h>
11200#if STDC_HEADERS
11201#include <stdlib.h>
11202#include <stddef.h>
11203#endif
11204#include <sys/socket.h>
11205int main() {
11206struct sockaddr foo;
11207; return 0; }
11208EOF
11209if { (eval echo configure:11210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11210  rm -rf conftest*
11211  eval "ac_cv_type_$cv=yes"
11212else
11213  echo "configure: failed program was:" >&5
11214  cat conftest.$ac_ext >&5
11215  rm -rf conftest*
11216  eval "ac_cv_type_$cv=no"
11217fi
11218rm -f conftest*
11219fi
11220echo "$ac_t""`eval echo \\$ac_cv_type_$cv`" 1>&6
11221if test `eval echo \\$ac_cv_type_$cv` = yes; then
11222  ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
11223
11224: << END
11225@@@funcs="$funcs struct_sockaddr"@@@
11226END
11227
11228  cat >> confdefs.h <<EOF
11229#define $ac_tr_hdr 1
11230EOF
11231
11232fi
11233
11234
11235
11236
11237cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
11238echo $ac_n "checking for struct sockaddr_storage""... $ac_c" 1>&6
11239echo "configure:11240: checking for struct sockaddr_storage" >&5
11240if eval "test \"`echo '$''{'ac_cv_type_$cv'+set}'`\" = set"; then
11241  echo $ac_n "(cached) $ac_c" 1>&6
11242else
11243  cat > conftest.$ac_ext <<EOF
11244#line 11245 "configure"
11245#include "confdefs.h"
11246#include <sys/types.h>
11247#if STDC_HEADERS
11248#include <stdlib.h>
11249#include <stddef.h>
11250#endif
11251#include <sys/socket.h>
11252int main() {
11253struct sockaddr_storage foo;
11254; return 0; }
11255EOF
11256if { (eval echo configure:11257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11257  rm -rf conftest*
11258  eval "ac_cv_type_$cv=yes"
11259else
11260  echo "configure: failed program was:" >&5
11261  cat conftest.$ac_ext >&5
11262  rm -rf conftest*
11263  eval "ac_cv_type_$cv=no"
11264fi
11265rm -f conftest*
11266fi
11267echo "$ac_t""`eval echo \\$ac_cv_type_$cv`" 1>&6
11268if test `eval echo \\$ac_cv_type_$cv` = yes; then
11269  ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
11270
11271: << END
11272@@@funcs="$funcs struct_sockaddr_storage"@@@
11273END
11274
11275  cat >> confdefs.h <<EOF
11276#define $ac_tr_hdr 1
11277EOF
11278
11279fi
11280
11281
11282
11283
11284cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
11285echo $ac_n "checking for struct addrinfo""... $ac_c" 1>&6
11286echo "configure:11287: checking for struct addrinfo" >&5
11287if eval "test \"`echo '$''{'ac_cv_type_$cv'+set}'`\" = set"; then
11288  echo $ac_n "(cached) $ac_c" 1>&6
11289else
11290  cat > conftest.$ac_ext <<EOF
11291#line 11292 "configure"
11292#include "confdefs.h"
11293#include <sys/types.h>
11294#if STDC_HEADERS
11295#include <stdlib.h>
11296#include <stddef.h>
11297#endif
11298#include <netdb.h>
11299int main() {
11300struct addrinfo foo;
11301; return 0; }
11302EOF
11303if { (eval echo configure:11304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11304  rm -rf conftest*
11305  eval "ac_cv_type_$cv=yes"
11306else
11307  echo "configure: failed program was:" >&5
11308  cat conftest.$ac_ext >&5
11309  rm -rf conftest*
11310  eval "ac_cv_type_$cv=no"
11311fi
11312rm -f conftest*
11313fi
11314echo "$ac_t""`eval echo \\$ac_cv_type_$cv`" 1>&6
11315if test `eval echo \\$ac_cv_type_$cv` = yes; then
11316  ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
11317
11318: << END
11319@@@funcs="$funcs struct_addrinfo"@@@
11320END
11321
11322  cat >> confdefs.h <<EOF
11323#define $ac_tr_hdr 1
11324EOF
11325
11326fi
11327
11328
11329
11330
11331echo $ac_n "checking for struct winsize""... $ac_c" 1>&6
11332echo "configure:11333: checking for struct winsize" >&5
11333if eval "test \"`echo '$''{'ac_cv_struct_winsize'+set}'`\" = set"; then
11334  echo $ac_n "(cached) $ac_c" 1>&6
11335else
11336  
11337ac_cv_struct_winsize=no
11338for i in sys/termios.h sys/ioctl.h; do
11339cat > conftest.$ac_ext <<EOF
11340#line 11341 "configure"
11341#include "confdefs.h"
11342#include <$i>
11343EOF
11344if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11345  egrep "struct[ 	]*winsize" >/dev/null 2>&1; then
11346  rm -rf conftest*
11347  ac_cv_struct_winsize=yes; break
11348fi
11349rm -f conftest*
11350done
11351
11352fi
11353
11354if test "$ac_cv_struct_winsize" = "yes"; then
11355  cat >> confdefs.h <<\EOF
11356#define HAVE_STRUCT_WINSIZE 1
11357EOF
11358
11359fi
11360echo "$ac_t""$ac_cv_struct_winsize" 1>&6
11361cat > conftest.$ac_ext <<EOF
11362#line 11363 "configure"
11363#include "confdefs.h"
11364#include <termios.h>
11365EOF
11366if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11367  egrep "ws_xpixel" >/dev/null 2>&1; then
11368  rm -rf conftest*
11369  cat >> confdefs.h <<\EOF
11370#define HAVE_WS_XPIXEL 1
11371EOF
11372
11373fi
11374rm -f conftest*
11375
11376cat > conftest.$ac_ext <<EOF
11377#line 11378 "configure"
11378#include "confdefs.h"
11379#include <termios.h>
11380EOF
11381if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11382  egrep "ws_ypixel" >/dev/null 2>&1; then
11383  rm -rf conftest*
11384  cat >> confdefs.h <<\EOF
11385#define HAVE_WS_YPIXEL 1
11386EOF
11387
11388fi
11389rm -f conftest*
11390
11391
11392
11393
11394
11395echo $ac_n "checking for struct spwd""... $ac_c" 1>&6
11396echo "configure:11397: checking for struct spwd" >&5
11397if eval "test \"`echo '$''{'ac_cv_struct_spwd'+set}'`\" = set"; then
11398  echo $ac_n "(cached) $ac_c" 1>&6
11399else
11400  
11401cat > conftest.$ac_ext <<EOF
11402#line 11403 "configure"
11403#include "confdefs.h"
11404#include <pwd.h>
11405#ifdef HAVE_SHADOW_H
11406#include <shadow.h>
11407#endif
11408int main() {
11409struct spwd foo;
11410; return 0; }
11411EOF
11412if { (eval echo configure:11413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11413  rm -rf conftest*
11414  ac_cv_struct_spwd=yes
11415else
11416  echo "configure: failed program was:" >&5
11417  cat conftest.$ac_ext >&5
11418  rm -rf conftest*
11419  ac_cv_struct_spwd=no
11420fi
11421rm -f conftest*
11422
11423fi
11424
11425echo "$ac_t""$ac_cv_struct_spwd" 1>&6
11426
11427if test "$ac_cv_struct_spwd" = "yes"; then
11428  cat >> confdefs.h <<\EOF
11429#define HAVE_STRUCT_SPWD 1
11430EOF
11431
11432fi
11433
11434
11435
11436
11437
11438echo $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
11439echo "configure:11440: checking for sa_len in struct sockaddr" >&5
11440if eval "test \"`echo '$''{'ac_cv_type_struct_sockaddr_sa_len'+set}'`\" = set"; then
11441  echo $ac_n "(cached) $ac_c" 1>&6
11442else
11443  
11444cat > conftest.$ac_ext <<EOF
11445#line 11446 "configure"
11446#include "confdefs.h"
11447#include <sys/types.h>
11448#include <sys/socket.h>
11449int main() {
11450struct sockaddr x; x.sa_len;
11451; return 0; }
11452EOF
11453if { (eval echo configure:11454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11454  rm -rf conftest*
11455  ac_cv_type_struct_sockaddr_sa_len=yes
11456else
11457  echo "configure: failed program was:" >&5
11458  cat conftest.$ac_ext >&5
11459  rm -rf conftest*
11460  ac_cv_type_struct_sockaddr_sa_len=no
11461fi
11462rm -f conftest*
11463fi
11464
11465echo "$ac_t""$ac_cv_type_struct_sockaddr_sa_len" 1>&6
11466if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
11467	
11468	cat >> confdefs.h <<\EOF
11469#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
11470EOF
11471
11472	
11473fi
11474
11475
11476
11477
11478
11479for i in int8_t int16_t int32_t int64_t; do
11480	echo $ac_n "checking for $i""... $ac_c" 1>&6
11481echo "configure:11482: checking for $i" >&5
11482	
11483if eval "test \"`echo '$''{'ac_cv_type_$i'+set}'`\" = set"; then
11484  echo $ac_n "(cached) $ac_c" 1>&6
11485else
11486  cat > conftest.$ac_ext <<EOF
11487#line 11488 "configure"
11488#include "confdefs.h"
11489
11490#ifdef HAVE_INTTYPES_H
11491#include <inttypes.h>
11492#endif
11493#ifdef HAVE_SYS_TYPES_H
11494#include <sys/types.h>
11495#endif
11496#ifdef HAVE_SYS_BITYPES_H
11497#include <sys/bitypes.h>
11498#endif
11499#ifdef HAVE_BIND_BITYPES_H
11500#include <bind/bitypes.h>
11501#endif
11502#ifdef HAVE_NETINET_IN6_MACHTYPES_H
11503#include <netinet/in6_machtypes.h>
11504#endif
11505
11506int main() {
11507$i x;
11508
11509; return 0; }
11510EOF
11511if { (eval echo configure:11512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11512  rm -rf conftest*
11513  eval ac_cv_type_$i=yes
11514else
11515  echo "configure: failed program was:" >&5
11516  cat conftest.$ac_ext >&5
11517  rm -rf conftest*
11518  eval ac_cv_type_$i=no
11519fi
11520rm -f conftest*
11521fi
11522
11523	eval ac_res=\$ac_cv_type_$i
11524	if test "$ac_res" = yes; then
11525		type=HAVE_`echo $i | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
11526		cat >> confdefs.h <<EOF
11527#define $type 1
11528EOF
11529
11530	fi
11531	echo "$ac_t""$ac_res" 1>&6
11532done
11533
11534
11535for i in u_int8_t u_int16_t u_int32_t u_int64_t; do
11536	echo $ac_n "checking for $i""... $ac_c" 1>&6
11537echo "configure:11538: checking for $i" >&5
11538	
11539if eval "test \"`echo '$''{'ac_cv_type_$i'+set}'`\" = set"; then
11540  echo $ac_n "(cached) $ac_c" 1>&6
11541else
11542  cat > conftest.$ac_ext <<EOF
11543#line 11544 "configure"
11544#include "confdefs.h"
11545
11546#ifdef HAVE_INTTYPES_H
11547#include <inttypes.h>
11548#endif
11549#ifdef HAVE_SYS_TYPES_H
11550#include <sys/types.h>
11551#endif
11552#ifdef HAVE_SYS_BITYPES_H
11553#include <sys/bitypes.h>
11554#endif
11555#ifdef HAVE_BIND_BITYPES_H
11556#include <bind/bitypes.h>
11557#endif
11558#ifdef HAVE_NETINET_IN6_MACHTYPES_H
11559#include <netinet/in6_machtypes.h>
11560#endif
11561
11562int main() {
11563$i x;
11564
11565; return 0; }
11566EOF
11567if { (eval echo configure:11568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11568  rm -rf conftest*
11569  eval ac_cv_type_$i=yes
11570else
11571  echo "configure: failed program was:" >&5
11572  cat conftest.$ac_ext >&5
11573  rm -rf conftest*
11574  eval ac_cv_type_$i=no
11575fi
11576rm -f conftest*
11577fi
11578
11579	eval ac_res=\$ac_cv_type_$i
11580	if test "$ac_res" = yes; then
11581		type=HAVE_`echo $i | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
11582		cat >> confdefs.h <<EOF
11583#define $type 1
11584EOF
11585
11586	fi
11587	echo "$ac_t""$ac_res" 1>&6
11588done
11589
11590
11591
11592
11593
11594
11595echo $ac_n "checking for MD4Init""... $ac_c" 1>&6
11596echo "configure:11597: checking for MD4Init" >&5
11597if eval "test \"`echo '$''{'ac_cv_funclib_MD4Init'+set}'`\" = set"; then
11598  echo $ac_n "(cached) $ac_c" 1>&6
11599else
11600  
11601if eval "test \"\$ac_cv_func_MD4Init\" != yes" ; then
11602	ac_save_LIBS="$LIBS"
11603	for ac_lib in "" crypto; do
11604		if test -n "$ac_lib"; then 
11605			ac_lib="-l$ac_lib"
11606		else
11607			ac_lib=""
11608		fi
11609		LIBS=" $ac_lib  $ac_save_LIBS"
11610		cat > conftest.$ac_ext <<EOF
11611#line 11612 "configure"
11612#include "confdefs.h"
11613
11614int main() {
11615MD4Init()
11616; return 0; }
11617EOF
11618if { (eval echo configure:11619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11619  rm -rf conftest*
11620  eval "if test -n \"$ac_lib\";then ac_cv_funclib_MD4Init=$ac_lib; else ac_cv_funclib_MD4Init=yes; fi";break
11621else
11622  echo "configure: failed program was:" >&5
11623  cat conftest.$ac_ext >&5
11624fi
11625rm -f conftest*
11626	done
11627	eval "ac_cv_funclib_MD4Init=\${ac_cv_funclib_MD4Init-no}"
11628	LIBS="$ac_save_LIBS"
11629fi
11630
11631fi
11632
11633
11634eval "ac_res=\$ac_cv_funclib_MD4Init"
11635
11636: << END
11637@@@funcs="$funcs MD4Init"@@@
11638@@@libs="$libs "" crypto"@@@
11639END
11640
11641# MD4Init
11642eval "ac_tr_func=HAVE_`echo MD4Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11643eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11644eval "LIB_MD4Init=$ac_res"
11645
11646case "$ac_res" in
11647	yes)
11648	eval "ac_cv_func_MD4Init=yes"
11649	eval "LIB_MD4Init="
11650	cat >> confdefs.h <<EOF
11651#define $ac_tr_func 1
11652EOF
11653
11654	echo "$ac_t""yes" 1>&6
11655	;;
11656	no)
11657	eval "ac_cv_func_MD4Init=no"
11658	eval "LIB_MD4Init="
11659	echo "$ac_t""no" 1>&6
11660	;;
11661	*)
11662	eval "ac_cv_func_MD4Init=yes"
11663	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11664	cat >> confdefs.h <<EOF
11665#define $ac_tr_func 1
11666EOF
11667
11668	cat >> confdefs.h <<EOF
11669#define $ac_tr_lib 1
11670EOF
11671
11672	echo "$ac_t""yes, in $ac_res" 1>&6
11673	;;
11674esac
11675
11676
11677
11678
11679
11680echo $ac_n "checking for MD4_Init""... $ac_c" 1>&6
11681echo "configure:11682: checking for MD4_Init" >&5
11682if eval "test \"`echo '$''{'ac_cv_funclib_MD4_Init'+set}'`\" = set"; then
11683  echo $ac_n "(cached) $ac_c" 1>&6
11684else
11685  
11686if eval "test \"\$ac_cv_func_MD4_Init\" != yes" ; then
11687	ac_save_LIBS="$LIBS"
11688	for ac_lib in "" crypto; do
11689		if test -n "$ac_lib"; then 
11690			ac_lib="-l$ac_lib"
11691		else
11692			ac_lib=""
11693		fi
11694		LIBS=" $ac_lib  $ac_save_LIBS"
11695		cat > conftest.$ac_ext <<EOF
11696#line 11697 "configure"
11697#include "confdefs.h"
11698
11699int main() {
11700MD4_Init()
11701; return 0; }
11702EOF
11703if { (eval echo configure:11704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11704  rm -rf conftest*
11705  eval "if test -n \"$ac_lib\";then ac_cv_funclib_MD4_Init=$ac_lib; else ac_cv_funclib_MD4_Init=yes; fi";break
11706else
11707  echo "configure: failed program was:" >&5
11708  cat conftest.$ac_ext >&5
11709fi
11710rm -f conftest*
11711	done
11712	eval "ac_cv_funclib_MD4_Init=\${ac_cv_funclib_MD4_Init-no}"
11713	LIBS="$ac_save_LIBS"
11714fi
11715
11716fi
11717
11718
11719eval "ac_res=\$ac_cv_funclib_MD4_Init"
11720
11721: << END
11722@@@funcs="$funcs MD4_Init"@@@
11723@@@libs="$libs "" crypto"@@@
11724END
11725
11726# MD4_Init
11727eval "ac_tr_func=HAVE_`echo MD4_Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11728eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11729eval "LIB_MD4_Init=$ac_res"
11730
11731case "$ac_res" in
11732	yes)
11733	eval "ac_cv_func_MD4_Init=yes"
11734	eval "LIB_MD4_Init="
11735	cat >> confdefs.h <<EOF
11736#define $ac_tr_func 1
11737EOF
11738
11739	echo "$ac_t""yes" 1>&6
11740	;;
11741	no)
11742	eval "ac_cv_func_MD4_Init=no"
11743	eval "LIB_MD4_Init="
11744	echo "$ac_t""no" 1>&6
11745	;;
11746	*)
11747	eval "ac_cv_func_MD4_Init=yes"
11748	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11749	cat >> confdefs.h <<EOF
11750#define $ac_tr_func 1
11751EOF
11752
11753	cat >> confdefs.h <<EOF
11754#define $ac_tr_lib 1
11755EOF
11756
11757	echo "$ac_t""yes, in $ac_res" 1>&6
11758	;;
11759esac
11760
11761
11762
11763
11764
11765echo $ac_n "checking for MD5Init""... $ac_c" 1>&6
11766echo "configure:11767: checking for MD5Init" >&5
11767if eval "test \"`echo '$''{'ac_cv_funclib_MD5Init'+set}'`\" = set"; then
11768  echo $ac_n "(cached) $ac_c" 1>&6
11769else
11770  
11771if eval "test \"\$ac_cv_func_MD5Init\" != yes" ; then
11772	ac_save_LIBS="$LIBS"
11773	for ac_lib in "" crypto; do
11774		if test -n "$ac_lib"; then 
11775			ac_lib="-l$ac_lib"
11776		else
11777			ac_lib=""
11778		fi
11779		LIBS=" $ac_lib  $ac_save_LIBS"
11780		cat > conftest.$ac_ext <<EOF
11781#line 11782 "configure"
11782#include "confdefs.h"
11783
11784int main() {
11785MD5Init()
11786; return 0; }
11787EOF
11788if { (eval echo configure:11789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11789  rm -rf conftest*
11790  eval "if test -n \"$ac_lib\";then ac_cv_funclib_MD5Init=$ac_lib; else ac_cv_funclib_MD5Init=yes; fi";break
11791else
11792  echo "configure: failed program was:" >&5
11793  cat conftest.$ac_ext >&5
11794fi
11795rm -f conftest*
11796	done
11797	eval "ac_cv_funclib_MD5Init=\${ac_cv_funclib_MD5Init-no}"
11798	LIBS="$ac_save_LIBS"
11799fi
11800
11801fi
11802
11803
11804eval "ac_res=\$ac_cv_funclib_MD5Init"
11805
11806: << END
11807@@@funcs="$funcs MD5Init"@@@
11808@@@libs="$libs "" crypto"@@@
11809END
11810
11811# MD5Init
11812eval "ac_tr_func=HAVE_`echo MD5Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11813eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11814eval "LIB_MD5Init=$ac_res"
11815
11816case "$ac_res" in
11817	yes)
11818	eval "ac_cv_func_MD5Init=yes"
11819	eval "LIB_MD5Init="
11820	cat >> confdefs.h <<EOF
11821#define $ac_tr_func 1
11822EOF
11823
11824	echo "$ac_t""yes" 1>&6
11825	;;
11826	no)
11827	eval "ac_cv_func_MD5Init=no"
11828	eval "LIB_MD5Init="
11829	echo "$ac_t""no" 1>&6
11830	;;
11831	*)
11832	eval "ac_cv_func_MD5Init=yes"
11833	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11834	cat >> confdefs.h <<EOF
11835#define $ac_tr_func 1
11836EOF
11837
11838	cat >> confdefs.h <<EOF
11839#define $ac_tr_lib 1
11840EOF
11841
11842	echo "$ac_t""yes, in $ac_res" 1>&6
11843	;;
11844esac
11845
11846
11847
11848
11849
11850echo $ac_n "checking for MD5_Init""... $ac_c" 1>&6
11851echo "configure:11852: checking for MD5_Init" >&5
11852if eval "test \"`echo '$''{'ac_cv_funclib_MD5_Init'+set}'`\" = set"; then
11853  echo $ac_n "(cached) $ac_c" 1>&6
11854else
11855  
11856if eval "test \"\$ac_cv_func_MD5_Init\" != yes" ; then
11857	ac_save_LIBS="$LIBS"
11858	for ac_lib in "" crypto; do
11859		if test -n "$ac_lib"; then 
11860			ac_lib="-l$ac_lib"
11861		else
11862			ac_lib=""
11863		fi
11864		LIBS=" $ac_lib  $ac_save_LIBS"
11865		cat > conftest.$ac_ext <<EOF
11866#line 11867 "configure"
11867#include "confdefs.h"
11868
11869int main() {
11870MD5_Init()
11871; return 0; }
11872EOF
11873if { (eval echo configure:11874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11874  rm -rf conftest*
11875  eval "if test -n \"$ac_lib\";then ac_cv_funclib_MD5_Init=$ac_lib; else ac_cv_funclib_MD5_Init=yes; fi";break
11876else
11877  echo "configure: failed program was:" >&5
11878  cat conftest.$ac_ext >&5
11879fi
11880rm -f conftest*
11881	done
11882	eval "ac_cv_funclib_MD5_Init=\${ac_cv_funclib_MD5_Init-no}"
11883	LIBS="$ac_save_LIBS"
11884fi
11885
11886fi
11887
11888
11889eval "ac_res=\$ac_cv_funclib_MD5_Init"
11890
11891: << END
11892@@@funcs="$funcs MD5_Init"@@@
11893@@@libs="$libs "" crypto"@@@
11894END
11895
11896# MD5_Init
11897eval "ac_tr_func=HAVE_`echo MD5_Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11898eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11899eval "LIB_MD5_Init=$ac_res"
11900
11901case "$ac_res" in
11902	yes)
11903	eval "ac_cv_func_MD5_Init=yes"
11904	eval "LIB_MD5_Init="
11905	cat >> confdefs.h <<EOF
11906#define $ac_tr_func 1
11907EOF
11908
11909	echo "$ac_t""yes" 1>&6
11910	;;
11911	no)
11912	eval "ac_cv_func_MD5_Init=no"
11913	eval "LIB_MD5_Init="
11914	echo "$ac_t""no" 1>&6
11915	;;
11916	*)
11917	eval "ac_cv_func_MD5_Init=yes"
11918	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11919	cat >> confdefs.h <<EOF
11920#define $ac_tr_func 1
11921EOF
11922
11923	cat >> confdefs.h <<EOF
11924#define $ac_tr_lib 1
11925EOF
11926
11927	echo "$ac_t""yes, in $ac_res" 1>&6
11928	;;
11929esac
11930
11931
11932
11933
11934
11935echo $ac_n "checking for SHA1Init""... $ac_c" 1>&6
11936echo "configure:11937: checking for SHA1Init" >&5
11937if eval "test \"`echo '$''{'ac_cv_funclib_SHA1Init'+set}'`\" = set"; then
11938  echo $ac_n "(cached) $ac_c" 1>&6
11939else
11940  
11941if eval "test \"\$ac_cv_func_SHA1Init\" != yes" ; then
11942	ac_save_LIBS="$LIBS"
11943	for ac_lib in "" crypto; do
11944		if test -n "$ac_lib"; then 
11945			ac_lib="-l$ac_lib"
11946		else
11947			ac_lib=""
11948		fi
11949		LIBS=" $ac_lib  $ac_save_LIBS"
11950		cat > conftest.$ac_ext <<EOF
11951#line 11952 "configure"
11952#include "confdefs.h"
11953
11954int main() {
11955SHA1Init()
11956; return 0; }
11957EOF
11958if { (eval echo configure:11959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11959  rm -rf conftest*
11960  eval "if test -n \"$ac_lib\";then ac_cv_funclib_SHA1Init=$ac_lib; else ac_cv_funclib_SHA1Init=yes; fi";break
11961else
11962  echo "configure: failed program was:" >&5
11963  cat conftest.$ac_ext >&5
11964fi
11965rm -f conftest*
11966	done
11967	eval "ac_cv_funclib_SHA1Init=\${ac_cv_funclib_SHA1Init-no}"
11968	LIBS="$ac_save_LIBS"
11969fi
11970
11971fi
11972
11973
11974eval "ac_res=\$ac_cv_funclib_SHA1Init"
11975
11976: << END
11977@@@funcs="$funcs SHA1Init"@@@
11978@@@libs="$libs "" crypto"@@@
11979END
11980
11981# SHA1Init
11982eval "ac_tr_func=HAVE_`echo SHA1Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11983eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11984eval "LIB_SHA1Init=$ac_res"
11985
11986case "$ac_res" in
11987	yes)
11988	eval "ac_cv_func_SHA1Init=yes"
11989	eval "LIB_SHA1Init="
11990	cat >> confdefs.h <<EOF
11991#define $ac_tr_func 1
11992EOF
11993
11994	echo "$ac_t""yes" 1>&6
11995	;;
11996	no)
11997	eval "ac_cv_func_SHA1Init=no"
11998	eval "LIB_SHA1Init="
11999	echo "$ac_t""no" 1>&6
12000	;;
12001	*)
12002	eval "ac_cv_func_SHA1Init=yes"
12003	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
12004	cat >> confdefs.h <<EOF
12005#define $ac_tr_func 1
12006EOF
12007
12008	cat >> confdefs.h <<EOF
12009#define $ac_tr_lib 1
12010EOF
12011
12012	echo "$ac_t""yes, in $ac_res" 1>&6
12013	;;
12014esac
12015
12016
12017
12018
12019
12020echo $ac_n "checking for SHA1_Init""... $ac_c" 1>&6
12021echo "configure:12022: checking for SHA1_Init" >&5
12022if eval "test \"`echo '$''{'ac_cv_funclib_SHA1_Init'+set}'`\" = set"; then
12023  echo $ac_n "(cached) $ac_c" 1>&6
12024else
12025  
12026if eval "test \"\$ac_cv_func_SHA1_Init\" != yes" ; then
12027	ac_save_LIBS="$LIBS"
12028	for ac_lib in "" crypto; do
12029		if test -n "$ac_lib"; then 
12030			ac_lib="-l$ac_lib"
12031		else
12032			ac_lib=""
12033		fi
12034		LIBS=" $ac_lib  $ac_save_LIBS"
12035		cat > conftest.$ac_ext <<EOF
12036#line 12037 "configure"
12037#include "confdefs.h"
12038
12039int main() {
12040SHA1_Init()
12041; return 0; }
12042EOF
12043if { (eval echo configure:12044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12044  rm -rf conftest*
12045  eval "if test -n \"$ac_lib\";then ac_cv_funclib_SHA1_Init=$ac_lib; else ac_cv_funclib_SHA1_Init=yes; fi";break
12046else
12047  echo "configure: failed program was:" >&5
12048  cat conftest.$ac_ext >&5
12049fi
12050rm -f conftest*
12051	done
12052	eval "ac_cv_funclib_SHA1_Init=\${ac_cv_funclib_SHA1_Init-no}"
12053	LIBS="$ac_save_LIBS"
12054fi
12055
12056fi
12057
12058
12059eval "ac_res=\$ac_cv_funclib_SHA1_Init"
12060
12061: << END
12062@@@funcs="$funcs SHA1_Init"@@@
12063@@@libs="$libs "" crypto"@@@
12064END
12065
12066# SHA1_Init
12067eval "ac_tr_func=HAVE_`echo SHA1_Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12068eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12069eval "LIB_SHA1_Init=$ac_res"
12070
12071case "$ac_res" in
12072	yes)
12073	eval "ac_cv_func_SHA1_Init=yes"
12074	eval "LIB_SHA1_Init="
12075	cat >> confdefs.h <<EOF
12076#define $ac_tr_func 1
12077EOF
12078
12079	echo "$ac_t""yes" 1>&6
12080	;;
12081	no)
12082	eval "ac_cv_func_SHA1_Init=no"
12083	eval "LIB_SHA1_Init="
12084	echo "$ac_t""no" 1>&6
12085	;;
12086	*)
12087	eval "ac_cv_func_SHA1_Init=yes"
12088	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
12089	cat >> confdefs.h <<EOF
12090#define $ac_tr_func 1
12091EOF
12092
12093	cat >> confdefs.h <<EOF
12094#define $ac_tr_lib 1
12095EOF
12096
12097	echo "$ac_t""yes, in $ac_res" 1>&6
12098	;;
12099esac
12100
12101
12102
12103
12104
12105echo $ac_n "checking for des_cbc_encrypt""... $ac_c" 1>&6
12106echo "configure:12107: checking for des_cbc_encrypt" >&5
12107if eval "test \"`echo '$''{'ac_cv_funclib_des_cbc_encrypt'+set}'`\" = set"; then
12108  echo $ac_n "(cached) $ac_c" 1>&6
12109else
12110  
12111if eval "test \"\$ac_cv_func_des_cbc_encrypt\" != yes" ; then
12112	ac_save_LIBS="$LIBS"
12113	for ac_lib in "" crypto des; do
12114		if test -n "$ac_lib"; then 
12115			ac_lib="-l$ac_lib"
12116		else
12117			ac_lib=""
12118		fi
12119		LIBS=" $ac_lib  $ac_save_LIBS"
12120		cat > conftest.$ac_ext <<EOF
12121#line 12122 "configure"
12122#include "confdefs.h"
12123
12124int main() {
12125des_cbc_encrypt()
12126; return 0; }
12127EOF
12128if { (eval echo configure:12129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12129  rm -rf conftest*
12130  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
12131else
12132  echo "configure: failed program was:" >&5
12133  cat conftest.$ac_ext >&5
12134fi
12135rm -f conftest*
12136	done
12137	eval "ac_cv_funclib_des_cbc_encrypt=\${ac_cv_funclib_des_cbc_encrypt-no}"
12138	LIBS="$ac_save_LIBS"
12139fi
12140
12141fi
12142
12143
12144eval "ac_res=\$ac_cv_funclib_des_cbc_encrypt"
12145
12146: << END
12147@@@funcs="$funcs des_cbc_encrypt"@@@
12148@@@libs="$libs "" crypto des"@@@
12149END
12150
12151# des_cbc_encrypt
12152eval "ac_tr_func=HAVE_`echo des_cbc_encrypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12153eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12154eval "LIB_des_cbc_encrypt=$ac_res"
12155
12156case "$ac_res" in
12157	yes)
12158	eval "ac_cv_func_des_cbc_encrypt=yes"
12159	eval "LIB_des_cbc_encrypt="
12160	cat >> confdefs.h <<EOF
12161#define $ac_tr_func 1
12162EOF
12163
12164	echo "$ac_t""yes" 1>&6
12165	;;
12166	no)
12167	eval "ac_cv_func_des_cbc_encrypt=no"
12168	eval "LIB_des_cbc_encrypt="
12169	echo "$ac_t""no" 1>&6
12170	;;
12171	*)
12172	eval "ac_cv_func_des_cbc_encrypt=yes"
12173	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
12174	cat >> confdefs.h <<EOF
12175#define $ac_tr_func 1
12176EOF
12177
12178	cat >> confdefs.h <<EOF
12179#define $ac_tr_lib 1
12180EOF
12181
12182	echo "$ac_t""yes, in $ac_res" 1>&6
12183	;;
12184esac
12185
12186
12187
12188
12189
12190
12191
12192
12193echo $ac_n "checking for el_init""... $ac_c" 1>&6
12194echo "configure:12195: checking for el_init" >&5
12195if eval "test \"`echo '$''{'ac_cv_funclib_el_init'+set}'`\" = set"; then
12196  echo $ac_n "(cached) $ac_c" 1>&6
12197else
12198  
12199if eval "test \"\$ac_cv_func_el_init\" != yes" ; then
12200	ac_save_LIBS="$LIBS"
12201	for ac_lib in "" edit; do
12202		if test -n "$ac_lib"; then 
12203			ac_lib="-l$ac_lib"
12204		else
12205			ac_lib=""
12206		fi
12207		LIBS=" $ac_lib $LIB_tgetent $ac_save_LIBS"
12208		cat > conftest.$ac_ext <<EOF
12209#line 12210 "configure"
12210#include "confdefs.h"
12211
12212int main() {
12213el_init()
12214; return 0; }
12215EOF
12216if { (eval echo configure:12217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12217  rm -rf conftest*
12218  eval "if test -n \"$ac_lib\";then ac_cv_funclib_el_init=$ac_lib; else ac_cv_funclib_el_init=yes; fi";break
12219else
12220  echo "configure: failed program was:" >&5
12221  cat conftest.$ac_ext >&5
12222fi
12223rm -f conftest*
12224	done
12225	eval "ac_cv_funclib_el_init=\${ac_cv_funclib_el_init-no}"
12226	LIBS="$ac_save_LIBS"
12227fi
12228
12229fi
12230
12231
12232eval "ac_res=\$ac_cv_funclib_el_init"
12233
12234: << END
12235@@@funcs="$funcs el_init"@@@
12236@@@libs="$libs "" edit"@@@
12237END
12238
12239# el_init
12240eval "ac_tr_func=HAVE_`echo el_init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12241eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12242eval "LIB_el_init=$ac_res"
12243
12244case "$ac_res" in
12245	yes)
12246	eval "ac_cv_func_el_init=yes"
12247	eval "LIB_el_init="
12248	cat >> confdefs.h <<EOF
12249#define $ac_tr_func 1
12250EOF
12251
12252	echo "$ac_t""yes" 1>&6
12253	;;
12254	no)
12255	eval "ac_cv_func_el_init=no"
12256	eval "LIB_el_init="
12257	echo "$ac_t""no" 1>&6
12258	;;
12259	*)
12260	eval "ac_cv_func_el_init=yes"
12261	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
12262	cat >> confdefs.h <<EOF
12263#define $ac_tr_func 1
12264EOF
12265
12266	cat >> confdefs.h <<EOF
12267#define $ac_tr_lib 1
12268EOF
12269
12270	echo "$ac_t""yes, in $ac_res" 1>&6
12271	;;
12272esac
12273
12274
12275if test "$ac_cv_func_el_init" = yes ; then
12276	echo $ac_n "checking for four argument el_init""... $ac_c" 1>&6
12277echo "configure:12278: checking for four argument el_init" >&5
12278if eval "test \"`echo '$''{'ac_cv_func_el_init_four'+set}'`\" = set"; then
12279  echo $ac_n "(cached) $ac_c" 1>&6
12280else
12281  
12282		cat > conftest.$ac_ext <<EOF
12283#line 12284 "configure"
12284#include "confdefs.h"
12285#include <stdio.h>
12286			#include <histedit.h>
12287int main() {
12288el_init("", NULL, NULL, NULL);
12289; return 0; }
12290EOF
12291if { (eval echo configure:12292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12292  rm -rf conftest*
12293  ac_cv_func_el_init_four=yes
12294else
12295  echo "configure: failed program was:" >&5
12296  cat conftest.$ac_ext >&5
12297  rm -rf conftest*
12298  ac_cv_func_el_init_four=no
12299fi
12300rm -f conftest*
12301fi
12302
12303echo "$ac_t""$ac_cv_func_el_init_four" 1>&6
12304	if test "$ac_cv_func_el_init_four" = yes; then
12305		cat >> confdefs.h <<\EOF
12306#define HAVE_FOUR_VALUED_EL_INIT 1
12307EOF
12308
12309	fi
12310fi
12311
12312
12313ac_foo=no
12314if test "$with_readline" = yes; then
12315	:
12316elif test "$ac_cv_func_readline" = yes; then
12317	:
12318elif test "$ac_cv_func_el_init" = yes; then
12319	ac_foo=yes
12320	LIB_readline="\$(top_builddir)/lib/editline/libel_compat.a $LIB_el_init"
12321else
12322	LIB_readline='$(top_builddir)/lib/editline/libeditline.a'
12323fi
12324
12325
12326if test "$ac_foo" = yes; then
12327  el_compat_TRUE=
12328  el_compat_FALSE='#'
12329else
12330  el_compat_TRUE='#'
12331  el_compat_FALSE=
12332fi
12333if test "$readline_libdir"; then
12334	LIB_readline="-rpath $readline_libdir $LIB_readline"
12335fi
12336LIB_readline="$LIB_readline \$(LIB_tgetent)"
12337cat >> confdefs.h <<\EOF
12338#define HAVE_READLINE 1
12339EOF
12340
12341
12342cat >> confdefs.h <<\EOF
12343#define AUTHENTICATION 1
12344EOF
12345cat >> confdefs.h <<\EOF
12346#define ENCRYPTION 1
12347EOF
12348cat >> confdefs.h <<\EOF
12349#define DES_ENCRYPTION 1
12350EOF
12351cat >> confdefs.h <<\EOF
12352#define DIAGNOSTICS 1
12353EOF
12354cat >> confdefs.h <<\EOF
12355#define OLD_ENVIRON 1
12356EOF
12357if false; then
12358cat >> confdefs.h <<\EOF
12359#define ENV_HACK 1
12360EOF
12361
12362fi
12363
12364# Simple test for streamspty, based on the existance of getmsg(), alas
12365# this breaks on SunOS4 which have streams but BSD-like ptys
12366#
12367# And also something wierd has happend with dec-osf1, fallback to bsd-ptys
12368
12369echo $ac_n "checking for streamspty""... $ac_c" 1>&6
12370echo "configure:12371: checking for streamspty" >&5
12371case "$host" in
12372*-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux10*)
12373	krb_cv_sys_streamspty=no
12374	;;
12375*)
12376	krb_cv_sys_streamspty="$ac_cv_func_getmsg"
12377	;;
12378esac
12379if test "$krb_cv_sys_streamspty" = yes; then
12380	cat >> confdefs.h <<\EOF
12381#define STREAMSPTY 1
12382EOF
12383
12384fi
12385echo "$ac_t""$krb_cv_sys_streamspty" 1>&6
12386
12387
12388echo $ac_n "checking which authentication modules should be built""... $ac_c" 1>&6
12389echo "configure:12390: checking which authentication modules should be built" >&5
12390
12391LIB_AUTH_SUBDIRS=
12392
12393if test "$ac_cv_header_siad_h" = yes; then
12394	LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
12395fi
12396
12397if test "$ac_cv_header_security_pam_modules_h" = yes -a "$enable_shared" = yes; then
12398	LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
12399fi
12400
12401case "${host}" in
12402*-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
12403esac
12404
12405echo "$ac_t""$LIB_AUTH_SUBDIRS" 1>&6
12406
12407
12408
12409
12410test "x$prefix" = xNONE && prefix=$ac_default_prefix
12411test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12412
12413for i in bin lib libexec sbin; do
12414	i=${i}dir
12415	foo=`echo $i | tr 'xindiscernible' 'XINDISCERNIBLE'`
12416	x="\$${i}"
12417	eval y="$x"
12418	while test "x$y" != "x$x"; do
12419		x="$y"
12420		eval y="$x"
12421	done
12422	cat >> confdefs.h <<EOF
12423#define $foo "$x"
12424EOF
12425
12426done
12427
12428if false; then
12429	# hack to shut up automake
12430	LIBOBJS="$LIBOBJS make-print-version.o"
12431fi
12432LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/\.lo/g'`
12433
12434trap '' 1 2 15
12435cat > confcache <<\EOF
12436# This file is a shell script that caches the results of configure
12437# tests run on this system so they can be shared between configure
12438# scripts and configure runs.  It is not useful on other systems.
12439# If it contains results you don't want to keep, you may remove or edit it.
12440#
12441# By default, configure uses ./config.cache as the cache file,
12442# creating it if it does not exist already.  You can give configure
12443# the --cache-file=FILE option to use a different cache file; that is
12444# what configure does when it calls configure scripts in
12445# subdirectories, so they share the cache.
12446# Giving --cache-file=/dev/null disables caching, for debugging configure.
12447# config.status only pays attention to the cache file if you give it the
12448# --recheck option to rerun configure.
12449#
12450EOF
12451# The following way of writing the cache mishandles newlines in values,
12452# but we know of no workaround that is simple, portable, and efficient.
12453# So, don't put newlines in cache variables' values.
12454# Ultrix sh set writes to stderr and can't be redirected directly,
12455# and sets the high bit in the cache file unless we assign to the vars.
12456(set) 2>&1 |
12457  case `(ac_space=' '; set | grep ac_space) 2>&1` in
12458  *ac_space=\ *)
12459    # `set' does not quote correctly, so add quotes (double-quote substitution
12460    # turns \\\\ into \\, and sed turns \\ into \).
12461    sed -n \
12462      -e "s/'/'\\\\''/g" \
12463      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12464    ;;
12465  *)
12466    # `set' quotes correctly as required by POSIX, so do not add quotes.
12467    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12468    ;;
12469  esac >> confcache
12470if cmp -s $cache_file confcache; then
12471  :
12472else
12473  if test -w $cache_file; then
12474    echo "updating cache $cache_file"
12475    cat confcache > $cache_file
12476  else
12477    echo "not updating unwritable cache $cache_file"
12478  fi
12479fi
12480rm -f confcache
12481
12482trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12483
12484test "x$prefix" = xNONE && prefix=$ac_default_prefix
12485# Let make expand exec_prefix.
12486test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12487
12488# Any assignment to VPATH causes Sun make to only execute
12489# the first set of double-colon rules, so remove it if not needed.
12490# If there is a colon in the path, we need to keep it.
12491if test "x$srcdir" = x.; then
12492  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
12493fi
12494
12495trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12496
12497DEFS=-DHAVE_CONFIG_H
12498
12499# Without the "./", some shells look in PATH for config.status.
12500: ${CONFIG_STATUS=./config.status}
12501
12502echo creating $CONFIG_STATUS
12503rm -f $CONFIG_STATUS
12504cat > $CONFIG_STATUS <<EOF
12505#! /bin/sh
12506# Generated automatically by configure.
12507# Run this file to recreate the current configuration.
12508# This directory was configured as follows,
12509# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12510#
12511# $0 $ac_configure_args
12512#
12513# Compiler output produced by configure, useful for debugging
12514# configure, is in ./config.log if it exists.
12515
12516ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12517for ac_option
12518do
12519  case "\$ac_option" in
12520  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12521    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12522    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12523  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12524    echo "$CONFIG_STATUS generated by autoconf version 2.13"
12525    exit 0 ;;
12526  -help | --help | --hel | --he | --h)
12527    echo "\$ac_cs_usage"; exit 0 ;;
12528  *) echo "\$ac_cs_usage"; exit 1 ;;
12529  esac
12530done
12531
12532ac_given_srcdir=$srcdir
12533ac_given_INSTALL="$INSTALL"
12534
12535trap 'rm -fr `echo "Makefile 			\
12536	include/Makefile		\
12537	include/kadm5/Makefile		\
12538	lib/Makefile			\
12539	lib/45/Makefile			\
12540	lib/auth/Makefile		\
12541	lib/auth/afskauthlib/Makefile	\
12542	lib/auth/pam/Makefile		\
12543	lib/auth/sia/Makefile		\
12544	lib/asn1/Makefile		\
12545	lib/com_err/Makefile		\
12546	lib/des/Makefile		\
12547	lib/editline/Makefile		\
12548	lib/gssapi/Makefile		\
12549	lib/hdb/Makefile		\
12550	lib/kadm5/Makefile		\
12551	lib/kafs/Makefile		\
12552	lib/krb5/Makefile		\
12553	lib/otp/Makefile		\
12554	lib/roken/Makefile		\
12555	lib/sl/Makefile			\
12556	kuser/Makefile			\
12557	kpasswd/Makefile		\
12558	kadmin/Makefile			\
12559	admin/Makefile			\
12560	kdc/Makefile			\
12561	appl/Makefile			\
12562	appl/afsutil/Makefile		\
12563	appl/ftp/Makefile		\
12564	appl/ftp/common/Makefile	\
12565	appl/ftp/ftp/Makefile		\
12566	appl/ftp/ftpd/Makefile		\
12567	appl/kauth/Makefile		\
12568	appl/kx/Makefile		\
12569	appl/login/Makefile		\
12570	appl/otp/Makefile		\
12571	appl/popper/Makefile		\
12572	appl/push/Makefile		\
12573	appl/rsh/Makefile		\
12574	appl/su/Makefile		\
12575	appl/xnlock/Makefile		\
12576	appl/telnet/Makefile		\
12577	appl/telnet/libtelnet/Makefile	\
12578	appl/telnet/telnet/Makefile	\
12579	appl/telnet/telnetd/Makefile	\
12580	appl/test/Makefile		\
12581	appl/kf/Makefile		\
12582	doc/Makefile			\
12583 include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12584EOF
12585cat >> $CONFIG_STATUS <<EOF
12586
12587# Protect against being on the right side of a sed subst in config.status.
12588sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12589 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12590$ac_vpsub
12591$extrasub
12592s%@SHELL@%$SHELL%g
12593s%@CFLAGS@%$CFLAGS%g
12594s%@CPPFLAGS@%$CPPFLAGS%g
12595s%@CXXFLAGS@%$CXXFLAGS%g
12596s%@FFLAGS@%$FFLAGS%g
12597s%@DEFS@%$DEFS%g
12598s%@LDFLAGS@%$LDFLAGS%g
12599s%@LIBS@%$LIBS%g
12600s%@exec_prefix@%$exec_prefix%g
12601s%@prefix@%$prefix%g
12602s%@program_transform_name@%$program_transform_name%g
12603s%@bindir@%$bindir%g
12604s%@sbindir@%$sbindir%g
12605s%@libexecdir@%$libexecdir%g
12606s%@datadir@%$datadir%g
12607s%@sysconfdir@%$sysconfdir%g
12608s%@sharedstatedir@%$sharedstatedir%g
12609s%@localstatedir@%$localstatedir%g
12610s%@libdir@%$libdir%g
12611s%@includedir@%$includedir%g
12612s%@oldincludedir@%$oldincludedir%g
12613s%@infodir@%$infodir%g
12614s%@mandir@%$mandir%g
12615s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12616s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12617s%@INSTALL_DATA@%$INSTALL_DATA%g
12618s%@PACKAGE@%$PACKAGE%g
12619s%@VERSION@%$VERSION%g
12620s%@ACLOCAL@%$ACLOCAL%g
12621s%@AUTOCONF@%$AUTOCONF%g
12622s%@AUTOMAKE@%$AUTOMAKE%g
12623s%@AUTOHEADER@%$AUTOHEADER%g
12624s%@MAKEINFO@%$MAKEINFO%g
12625s%@SET_MAKE@%$SET_MAKE%g
12626s%@host@%$host%g
12627s%@host_alias@%$host_alias%g
12628s%@host_cpu@%$host_cpu%g
12629s%@host_vendor@%$host_vendor%g
12630s%@host_os@%$host_os%g
12631s%@CANONICAL_HOST@%$CANONICAL_HOST%g
12632s%@CC@%$CC%g
12633s%@OBJEXT@%$OBJEXT%g
12634s%@EXEEXT@%$EXEEXT%g
12635s%@YACC@%$YACC%g
12636s%@LEX@%$LEX%g
12637s%@LEXLIB@%$LEXLIB%g
12638s%@CPP@%$CPP%g
12639s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
12640s%@RANLIB@%$RANLIB%g
12641s%@AWK@%$AWK%g
12642s%@LN_S@%$LN_S%g
12643s%@LD@%$LD%g
12644s%@NM@%$NM%g
12645s%@LIBTOOL@%$LIBTOOL%g
12646s%@WFLAGS@%$WFLAGS%g
12647s%@WFLAGS_NOUNUSED@%$WFLAGS_NOUNUSED%g
12648s%@WFLAGS_NOIMPLICITINT@%$WFLAGS_NOIMPLICITINT%g
12649s%@INCLUDE_krb4@%$INCLUDE_krb4%g
12650s%@LIB_krb4@%$LIB_krb4%g
12651s%@EXTRA_LIB45@%$EXTRA_LIB45%g
12652s%@LIB_krb_enable_debug@%$LIB_krb_enable_debug%g
12653s%@LIB_krb_disable_debug@%$LIB_krb_disable_debug%g
12654s%@LIB_krb_get_our_ip_for_realm@%$LIB_krb_get_our_ip_for_realm%g
12655s%@KRB4_TRUE@%$KRB4_TRUE%g
12656s%@KRB4_FALSE@%$KRB4_FALSE%g
12657s%@KRB5_TRUE@%$KRB5_TRUE%g
12658s%@KRB5_FALSE@%$KRB5_FALSE%g
12659s%@LIB_kdb@%$LIB_kdb%g
12660s%@AIX_TRUE@%$AIX_TRUE%g
12661s%@AIX_FALSE@%$AIX_FALSE%g
12662s%@AIX4_TRUE@%$AIX4_TRUE%g
12663s%@AIX4_FALSE@%$AIX4_FALSE%g
12664s%@AIX_DYNAMIC_AFS_TRUE@%$AIX_DYNAMIC_AFS_TRUE%g
12665s%@AIX_DYNAMIC_AFS_FALSE@%$AIX_DYNAMIC_AFS_FALSE%g
12666s%@LIB_dlopen@%$LIB_dlopen%g
12667s%@HAVE_DLOPEN_TRUE@%$HAVE_DLOPEN_TRUE%g
12668s%@HAVE_DLOPEN_FALSE@%$HAVE_DLOPEN_FALSE%g
12669s%@AFS_EXTRA_LD@%$AFS_EXTRA_LD%g
12670s%@AIX_EXTRA_KAFS@%$AIX_EXTRA_KAFS%g
12671s%@LIB_otp@%$LIB_otp%g
12672s%@OTP_TRUE@%$OTP_TRUE%g
12673s%@OTP_FALSE@%$OTP_FALSE%g
12674s%@LIB_security@%$LIB_security%g
12675s%@NROFF@%$NROFF%g
12676s%@GROFF@%$GROFF%g
12677s%@CATMAN@%$CATMAN%g
12678s%@CATMAN_TRUE@%$CATMAN_TRUE%g
12679s%@CATMAN_FALSE@%$CATMAN_FALSE%g
12680s%@CATMANEXT@%$CATMANEXT%g
12681s%@INCLUDE_readline@%$INCLUDE_readline%g
12682s%@LIB_readline@%$LIB_readline%g
12683s%@INCLUDE_hesiod@%$INCLUDE_hesiod%g
12684s%@LIB_hesiod@%$LIB_hesiod%g
12685s%@X_CFLAGS@%$X_CFLAGS%g
12686s%@X_PRE_LIBS@%$X_PRE_LIBS%g
12687s%@X_LIBS@%$X_LIBS%g
12688s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
12689s%@MAKE_X_PROGS_BIN_PROGS@%$MAKE_X_PROGS_BIN_PROGS%g
12690s%@MAKE_X_PROGS_BIN_SCRPTS@%$MAKE_X_PROGS_BIN_SCRPTS%g
12691s%@MAKE_X_PROGS_LIBEXEC_PROGS@%$MAKE_X_PROGS_LIBEXEC_PROGS%g
12692s%@LIB_XauWriteAuth@%$LIB_XauWriteAuth%g
12693s%@LIB_XauReadAuth@%$LIB_XauReadAuth%g
12694s%@LIB_XauFileName@%$LIB_XauFileName%g
12695s%@NEED_WRITEAUTH_TRUE@%$NEED_WRITEAUTH_TRUE%g
12696s%@NEED_WRITEAUTH_FALSE@%$NEED_WRITEAUTH_FALSE%g
12697s%@have_err_h_TRUE@%$have_err_h_TRUE%g
12698s%@have_err_h_FALSE@%$have_err_h_FALSE%g
12699s%@have_fnmatch_h_TRUE@%$have_fnmatch_h_TRUE%g
12700s%@have_fnmatch_h_FALSE@%$have_fnmatch_h_FALSE%g
12701s%@LIB_socket@%$LIB_socket%g
12702s%@LIB_gethostbyname@%$LIB_gethostbyname%g
12703s%@LIB_syslog@%$LIB_syslog%g
12704s%@LIB_logwtmp@%$LIB_logwtmp%g
12705s%@LIB_tgetent@%$LIB_tgetent%g
12706s%@LIB_gethostbyname2@%$LIB_gethostbyname2%g
12707s%@LIB_res_search@%$LIB_res_search%g
12708s%@LIB_dn_expand@%$LIB_dn_expand%g
12709s%@have_glob_h_TRUE@%$have_glob_h_TRUE%g
12710s%@have_glob_h_FALSE@%$have_glob_h_FALSE%g
12711s%@LIB_dbopen@%$LIB_dbopen%g
12712s%@LIB_dbm_firstkey@%$LIB_dbm_firstkey%g
12713s%@DBLIB@%$DBLIB%g
12714s%@LIB_getpwnam_r@%$LIB_getpwnam_r%g
12715s%@LIB_getsockopt@%$LIB_getsockopt%g
12716s%@LIB_setsockopt@%$LIB_setsockopt%g
12717s%@VOID_RETSIGTYPE@%$VOID_RETSIGTYPE%g
12718s%@LIB_hstrerror@%$LIB_hstrerror%g
12719s%@LIBOBJS@%$LIBOBJS%g
12720s%@LIB_crypt@%$LIB_crypt%g
12721s%@LIB_roken@%$LIB_roken%g
12722s%@LIB_MD4Init@%$LIB_MD4Init%g
12723s%@LIB_MD4_Init@%$LIB_MD4_Init%g
12724s%@LIB_MD5Init@%$LIB_MD5Init%g
12725s%@LIB_MD5_Init@%$LIB_MD5_Init%g
12726s%@LIB_SHA1Init@%$LIB_SHA1Init%g
12727s%@LIB_SHA1_Init@%$LIB_SHA1_Init%g
12728s%@LIB_des_cbc_encrypt@%$LIB_des_cbc_encrypt%g
12729s%@LIB_el_init@%$LIB_el_init%g
12730s%@el_compat_TRUE@%$el_compat_TRUE%g
12731s%@el_compat_FALSE@%$el_compat_FALSE%g
12732s%@LIB_AUTH_SUBDIRS@%$LIB_AUTH_SUBDIRS%g
12733s%@LTLIBOBJS@%$LTLIBOBJS%g
12734
12735CEOF
12736EOF
12737
12738cat >> $CONFIG_STATUS <<\EOF
12739
12740# Split the substitutions into bite-sized pieces for seds with
12741# small command number limits, like on Digital OSF/1 and HP-UX.
12742ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12743ac_file=1 # Number of current file.
12744ac_beg=1 # First line for current file.
12745ac_end=$ac_max_sed_cmds # Line after last line for current file.
12746ac_more_lines=:
12747ac_sed_cmds=""
12748while $ac_more_lines; do
12749  if test $ac_beg -gt 1; then
12750    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12751  else
12752    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12753  fi
12754  if test ! -s conftest.s$ac_file; then
12755    ac_more_lines=false
12756    rm -f conftest.s$ac_file
12757  else
12758    if test -z "$ac_sed_cmds"; then
12759      ac_sed_cmds="sed -f conftest.s$ac_file"
12760    else
12761      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12762    fi
12763    ac_file=`expr $ac_file + 1`
12764    ac_beg=$ac_end
12765    ac_end=`expr $ac_end + $ac_max_sed_cmds`
12766  fi
12767done
12768if test -z "$ac_sed_cmds"; then
12769  ac_sed_cmds=cat
12770fi
12771EOF
12772
12773cat >> $CONFIG_STATUS <<EOF
12774
12775CONFIG_FILES=\${CONFIG_FILES-"Makefile 			\
12776	include/Makefile		\
12777	include/kadm5/Makefile		\
12778	lib/Makefile			\
12779	lib/45/Makefile			\
12780	lib/auth/Makefile		\
12781	lib/auth/afskauthlib/Makefile	\
12782	lib/auth/pam/Makefile		\
12783	lib/auth/sia/Makefile		\
12784	lib/asn1/Makefile		\
12785	lib/com_err/Makefile		\
12786	lib/des/Makefile		\
12787	lib/editline/Makefile		\
12788	lib/gssapi/Makefile		\
12789	lib/hdb/Makefile		\
12790	lib/kadm5/Makefile		\
12791	lib/kafs/Makefile		\
12792	lib/krb5/Makefile		\
12793	lib/otp/Makefile		\
12794	lib/roken/Makefile		\
12795	lib/sl/Makefile			\
12796	kuser/Makefile			\
12797	kpasswd/Makefile		\
12798	kadmin/Makefile			\
12799	admin/Makefile			\
12800	kdc/Makefile			\
12801	appl/Makefile			\
12802	appl/afsutil/Makefile		\
12803	appl/ftp/Makefile		\
12804	appl/ftp/common/Makefile	\
12805	appl/ftp/ftp/Makefile		\
12806	appl/ftp/ftpd/Makefile		\
12807	appl/kauth/Makefile		\
12808	appl/kx/Makefile		\
12809	appl/login/Makefile		\
12810	appl/otp/Makefile		\
12811	appl/popper/Makefile		\
12812	appl/push/Makefile		\
12813	appl/rsh/Makefile		\
12814	appl/su/Makefile		\
12815	appl/xnlock/Makefile		\
12816	appl/telnet/Makefile		\
12817	appl/telnet/libtelnet/Makefile	\
12818	appl/telnet/telnet/Makefile	\
12819	appl/telnet/telnetd/Makefile	\
12820	appl/test/Makefile		\
12821	appl/kf/Makefile		\
12822	doc/Makefile			\
12823"}
12824EOF
12825cat >> $CONFIG_STATUS <<\EOF
12826for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12827  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12828  case "$ac_file" in
12829  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12830       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12831  *) ac_file_in="${ac_file}.in" ;;
12832  esac
12833
12834  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12835
12836  # Remove last slash and all that follows it.  Not all systems have dirname.
12837  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12838  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12839    # The file is in a subdirectory.
12840    test ! -d "$ac_dir" && mkdir "$ac_dir"
12841    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12842    # A "../" for each directory in $ac_dir_suffix.
12843    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12844  else
12845    ac_dir_suffix= ac_dots=
12846  fi
12847
12848  case "$ac_given_srcdir" in
12849  .)  srcdir=.
12850      if test -z "$ac_dots"; then top_srcdir=.
12851      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12852  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12853  *) # Relative path.
12854    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12855    top_srcdir="$ac_dots$ac_given_srcdir" ;;
12856  esac
12857
12858  case "$ac_given_INSTALL" in
12859  [/$]*) INSTALL="$ac_given_INSTALL" ;;
12860  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12861  esac
12862
12863  echo creating "$ac_file"
12864  rm -f "$ac_file"
12865  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12866  case "$ac_file" in
12867  *Makefile*) ac_comsub="1i\\
12868# $configure_input" ;;
12869  *) ac_comsub= ;;
12870  esac
12871
12872  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12873  sed -e "$ac_comsub
12874s%@configure_input@%$configure_input%g
12875s%@srcdir@%$srcdir%g
12876s%@top_srcdir@%$top_srcdir%g
12877s%@INSTALL@%$INSTALL%g
12878" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12879fi; done
12880rm -f conftest.s*
12881
12882# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12883# NAME is the cpp macro being defined and VALUE is the value it is being given.
12884#
12885# ac_d sets the value in "#define NAME VALUE" lines.
12886ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
12887ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
12888ac_dC='\3'
12889ac_dD='%g'
12890# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12891ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
12892ac_uB='\([ 	]\)%\1#\2define\3'
12893ac_uC=' '
12894ac_uD='\4%g'
12895# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12896ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
12897ac_eB='$%\1#\2define\3'
12898ac_eC=' '
12899ac_eD='%g'
12900
12901if test "${CONFIG_HEADERS+set}" != set; then
12902EOF
12903cat >> $CONFIG_STATUS <<EOF
12904  CONFIG_HEADERS="include/config.h"
12905EOF
12906cat >> $CONFIG_STATUS <<\EOF
12907fi
12908for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12909  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12910  case "$ac_file" in
12911  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12912       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12913  *) ac_file_in="${ac_file}.in" ;;
12914  esac
12915
12916  echo creating $ac_file
12917
12918  rm -f conftest.frag conftest.in conftest.out
12919  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12920  cat $ac_file_inputs > conftest.in
12921
12922EOF
12923
12924# Transform confdefs.h into a sed script conftest.vals that substitutes
12925# the proper values into config.h.in to produce config.h.  And first:
12926# Protect against being on the right side of a sed subst in config.status.
12927# Protect against being in an unquoted here document in config.status.
12928rm -f conftest.vals
12929cat > conftest.hdr <<\EOF
12930s/[\\&%]/\\&/g
12931s%[\\$`]%\\&%g
12932s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12933s%ac_d%ac_u%gp
12934s%ac_u%ac_e%gp
12935EOF
12936sed -n -f conftest.hdr confdefs.h > conftest.vals
12937rm -f conftest.hdr
12938
12939# This sed command replaces #undef with comments.  This is necessary, for
12940# example, in the case of _POSIX_SOURCE, which is predefined and required
12941# on some systems where configure will not decide to define it.
12942cat >> conftest.vals <<\EOF
12943s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12944EOF
12945
12946# Break up conftest.vals because some shells have a limit on
12947# the size of here documents, and old seds have small limits too.
12948
12949rm -f conftest.tail
12950while :
12951do
12952  ac_lines=`grep -c . conftest.vals`
12953  # grep -c gives empty output for an empty file on some AIX systems.
12954  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12955  # Write a limited-size here document to conftest.frag.
12956  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12957  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12958  echo 'CEOF
12959  sed -f conftest.frag conftest.in > conftest.out
12960  rm -f conftest.in
12961  mv conftest.out conftest.in
12962' >> $CONFIG_STATUS
12963  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12964  rm -f conftest.vals
12965  mv conftest.tail conftest.vals
12966done
12967rm -f conftest.vals
12968
12969cat >> $CONFIG_STATUS <<\EOF
12970  rm -f conftest.frag conftest.h
12971  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
12972  cat conftest.in >> conftest.h
12973  rm -f conftest.in
12974  if cmp -s $ac_file conftest.h 2>/dev/null; then
12975    echo "$ac_file is unchanged"
12976    rm -f conftest.h
12977  else
12978    # Remove last slash and all that follows it.  Not all systems have dirname.
12979      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12980      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12981      # The file is in a subdirectory.
12982      test ! -d "$ac_dir" && mkdir "$ac_dir"
12983    fi
12984    rm -f $ac_file
12985    mv conftest.h $ac_file
12986  fi
12987fi; done
12988
12989EOF
12990cat >> $CONFIG_STATUS <<EOF
12991
12992
12993EOF
12994cat >> $CONFIG_STATUS <<\EOF
12995test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
12996
12997exit 0
12998EOF
12999chmod +x $CONFIG_STATUS
13000rm -fr confdefs* $ac_clean_files
13001test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
13002
13003
13004HEIMDALVERSION="$PACKAGE-$VERSION"
13005
13006cat > include/newversion.h.in <<EOF
13007char *heimdal_long_version = "@(#)\$Version: $HEIMDALVERSION by @USER@ on @HOST@ ($host) @DATE@ \$";
13008char *heimdal_version = "$HEIMDALVERSION";
13009EOF
13010
13011if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then
13012	echo "include/version.h is unchanged"
13013	rm -f include/newversion.h.in
13014else
13015 	echo "creating include/version.h"
13016 	User=${USER-${LOGNAME}}
13017 	Host=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q`
13018 	Date=`date`
13019	mv -f include/newversion.h.in include/version.h.in
13020	sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h
13021fi
13022