1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.57.
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15  emulate sh
16  NULLCMD=:
17  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18  # is contrary to our usage.  Disable this feature.
19  alias -g '${1+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21  set -o posix
22fi
23
24# Support unset when possible.
25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  as_mkdir_p=false
222fi
223
224as_executable_p="test -f"
225
226# Sed expression to map a string onto a valid CPP name.
227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229# Sed expression to map a string onto a valid variable name.
230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233# IFS
234# We need space, tab and new line, in precisely that order.
235as_nl='
236'
237IFS=" 	$as_nl"
238
239# CDPATH.
240$as_unset CDPATH
241
242
243# Name of the host.
244# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245# so uname gets run too.
246ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248exec 6>&1
249
250#
251# Initializations.
252#
253ac_default_prefix=/usr/local
254ac_config_libobj_dir=.
255cross_compiling=no
256subdirs=
257MFLAGS=
258MAKEFLAGS=
259SHELL=${CONFIG_SHELL-/bin/sh}
260
261# Maximum number of lines to put in a shell here document.
262# This variable seems obsolete.  It should probably be removed, and
263# only ac_max_sed_lines should be used.
264: ${ac_max_here_lines=38}
265
266# Identity of this package.
267PACKAGE_NAME=
268PACKAGE_TARNAME=
269PACKAGE_VERSION=
270PACKAGE_STRING=
271PACKAGE_BUGREPORT=
272
273ac_unique_file="mechanisms.h"
274# Factoring default headers for most tests.
275ac_includes_default="\
276#include <stdio.h>
277#if HAVE_SYS_TYPES_H
278# include <sys/types.h>
279#endif
280#if HAVE_SYS_STAT_H
281# include <sys/stat.h>
282#endif
283#if STDC_HEADERS
284# include <stdlib.h>
285# include <stddef.h>
286#else
287# if HAVE_STDLIB_H
288#  include <stdlib.h>
289# endif
290#endif
291#if HAVE_STRING_H
292# if !STDC_HEADERS && HAVE_MEMORY_H
293#  include <memory.h>
294# endif
295# include <string.h>
296#endif
297#if HAVE_STRINGS_H
298# include <strings.h>
299#endif
300#if HAVE_INTTYPES_H
301# include <inttypes.h>
302#else
303# if HAVE_STDINT_H
304#  include <stdint.h>
305# endif
306#endif
307#if HAVE_UNISTD_H
308# include <unistd.h>
309#endif"
310
311ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os SASLAUTHD_TRUE SASLAUTHD_FALSE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP LN_S LIB_SOCKET EGREP CMU_LIB_SUBDIR LIB_DES SASL_KRB_LIB LIB_CRYPT GSSAPI_LIBS GSSAPIBASE_LIBS LIB_SIA SASL_DB_UTILS SASL_DB_MANS SASL_DB_BACKEND SASL_DB_BACKEND_STATIC SASL_DB_INC SASL_DB_LIB MAIN_COMPAT_OBJ LIB_PAM LDAP_LIBS LTLIBOBJS LIBOBJS'
312ac_subst_files=''
313
314# Initialize some variables set by options.
315ac_init_help=
316ac_init_version=false
317# The variables have the same names as the options, with
318# dashes changed to underlines.
319cache_file=/dev/null
320exec_prefix=NONE
321no_create=
322no_recursion=
323prefix=NONE
324program_prefix=NONE
325program_suffix=NONE
326program_transform_name=s,x,x,
327silent=
328site=
329srcdir=
330verbose=
331x_includes=NONE
332x_libraries=NONE
333
334# Installation directory options.
335# These are left unexpanded so users can "make install exec_prefix=/foo"
336# and all the variables that are supposed to be based on exec_prefix
337# by default will actually change.
338# Use braces instead of parens because sh, perl, etc. also accept them.
339bindir='${exec_prefix}/bin'
340sbindir='${exec_prefix}/sbin'
341libexecdir='${exec_prefix}/libexec'
342datadir='${prefix}/share'
343sysconfdir='${prefix}/etc'
344sharedstatedir='${prefix}/com'
345localstatedir='${prefix}/var'
346libdir='${exec_prefix}/lib'
347includedir='${prefix}/include'
348oldincludedir='/usr/include'
349infodir='${prefix}/info'
350mandir='${prefix}/man'
351
352ac_prev=
353for ac_option
354do
355  # If the previous option needs an argument, assign it.
356  if test -n "$ac_prev"; then
357    eval "$ac_prev=\$ac_option"
358    ac_prev=
359    continue
360  fi
361
362  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364  # Accept the important Cygnus configure options, so we can diagnose typos.
365
366  case $ac_option in
367
368  -bindir | --bindir | --bindi | --bind | --bin | --bi)
369    ac_prev=bindir ;;
370  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371    bindir=$ac_optarg ;;
372
373  -build | --build | --buil | --bui | --bu)
374    ac_prev=build_alias ;;
375  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376    build_alias=$ac_optarg ;;
377
378  -cache-file | --cache-file | --cache-fil | --cache-fi \
379  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380    ac_prev=cache_file ;;
381  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383    cache_file=$ac_optarg ;;
384
385  --config-cache | -C)
386    cache_file=config.cache ;;
387
388  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389    ac_prev=datadir ;;
390  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391  | --da=*)
392    datadir=$ac_optarg ;;
393
394  -disable-* | --disable-*)
395    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396    # Reject names that are not valid shell variable names.
397    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399   { (exit 1); exit 1; }; }
400    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401    eval "enable_$ac_feature=no" ;;
402
403  -enable-* | --enable-*)
404    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405    # Reject names that are not valid shell variable names.
406    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408   { (exit 1); exit 1; }; }
409    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410    case $ac_option in
411      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412      *) ac_optarg=yes ;;
413    esac
414    eval "enable_$ac_feature='$ac_optarg'" ;;
415
416  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418  | --exec | --exe | --ex)
419    ac_prev=exec_prefix ;;
420  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422  | --exec=* | --exe=* | --ex=*)
423    exec_prefix=$ac_optarg ;;
424
425  -gas | --gas | --ga | --g)
426    # Obsolete; use --with-gas.
427    with_gas=yes ;;
428
429  -help | --help | --hel | --he | -h)
430    ac_init_help=long ;;
431  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432    ac_init_help=recursive ;;
433  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434    ac_init_help=short ;;
435
436  -host | --host | --hos | --ho)
437    ac_prev=host_alias ;;
438  -host=* | --host=* | --hos=* | --ho=*)
439    host_alias=$ac_optarg ;;
440
441  -includedir | --includedir | --includedi | --included | --include \
442  | --includ | --inclu | --incl | --inc)
443    ac_prev=includedir ;;
444  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445  | --includ=* | --inclu=* | --incl=* | --inc=*)
446    includedir=$ac_optarg ;;
447
448  -infodir | --infodir | --infodi | --infod | --info | --inf)
449    ac_prev=infodir ;;
450  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451    infodir=$ac_optarg ;;
452
453  -libdir | --libdir | --libdi | --libd)
454    ac_prev=libdir ;;
455  -libdir=* | --libdir=* | --libdi=* | --libd=*)
456    libdir=$ac_optarg ;;
457
458  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459  | --libexe | --libex | --libe)
460    ac_prev=libexecdir ;;
461  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462  | --libexe=* | --libex=* | --libe=*)
463    libexecdir=$ac_optarg ;;
464
465  -localstatedir | --localstatedir | --localstatedi | --localstated \
466  | --localstate | --localstat | --localsta | --localst \
467  | --locals | --local | --loca | --loc | --lo)
468    ac_prev=localstatedir ;;
469  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472    localstatedir=$ac_optarg ;;
473
474  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475    ac_prev=mandir ;;
476  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477    mandir=$ac_optarg ;;
478
479  -nfp | --nfp | --nf)
480    # Obsolete; use --without-fp.
481    with_fp=no ;;
482
483  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484  | --no-cr | --no-c | -n)
485    no_create=yes ;;
486
487  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489    no_recursion=yes ;;
490
491  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493  | --oldin | --oldi | --old | --ol | --o)
494    ac_prev=oldincludedir ;;
495  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498    oldincludedir=$ac_optarg ;;
499
500  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501    ac_prev=prefix ;;
502  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503    prefix=$ac_optarg ;;
504
505  -program-prefix | --program-prefix | --program-prefi | --program-pref \
506  | --program-pre | --program-pr | --program-p)
507    ac_prev=program_prefix ;;
508  -program-prefix=* | --program-prefix=* | --program-prefi=* \
509  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510    program_prefix=$ac_optarg ;;
511
512  -program-suffix | --program-suffix | --program-suffi | --program-suff \
513  | --program-suf | --program-su | --program-s)
514    ac_prev=program_suffix ;;
515  -program-suffix=* | --program-suffix=* | --program-suffi=* \
516  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517    program_suffix=$ac_optarg ;;
518
519  -program-transform-name | --program-transform-name \
520  | --program-transform-nam | --program-transform-na \
521  | --program-transform-n | --program-transform- \
522  | --program-transform | --program-transfor \
523  | --program-transfo | --program-transf \
524  | --program-trans | --program-tran \
525  | --progr-tra | --program-tr | --program-t)
526    ac_prev=program_transform_name ;;
527  -program-transform-name=* | --program-transform-name=* \
528  | --program-transform-nam=* | --program-transform-na=* \
529  | --program-transform-n=* | --program-transform-=* \
530  | --program-transform=* | --program-transfor=* \
531  | --program-transfo=* | --program-transf=* \
532  | --program-trans=* | --program-tran=* \
533  | --progr-tra=* | --program-tr=* | --program-t=*)
534    program_transform_name=$ac_optarg ;;
535
536  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537  | -silent | --silent | --silen | --sile | --sil)
538    silent=yes ;;
539
540  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541    ac_prev=sbindir ;;
542  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543  | --sbi=* | --sb=*)
544    sbindir=$ac_optarg ;;
545
546  -sharedstatedir | --sharedstatedir | --sharedstatedi \
547  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548  | --sharedst | --shareds | --shared | --share | --shar \
549  | --sha | --sh)
550    ac_prev=sharedstatedir ;;
551  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554  | --sha=* | --sh=*)
555    sharedstatedir=$ac_optarg ;;
556
557  -site | --site | --sit)
558    ac_prev=site ;;
559  -site=* | --site=* | --sit=*)
560    site=$ac_optarg ;;
561
562  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563    ac_prev=srcdir ;;
564  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565    srcdir=$ac_optarg ;;
566
567  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568  | --syscon | --sysco | --sysc | --sys | --sy)
569    ac_prev=sysconfdir ;;
570  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572    sysconfdir=$ac_optarg ;;
573
574  -target | --target | --targe | --targ | --tar | --ta | --t)
575    ac_prev=target_alias ;;
576  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577    target_alias=$ac_optarg ;;
578
579  -v | -verbose | --verbose | --verbos | --verbo | --verb)
580    verbose=yes ;;
581
582  -version | --version | --versio | --versi | --vers | -V)
583    ac_init_version=: ;;
584
585  -with-* | --with-*)
586    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587    # Reject names that are not valid shell variable names.
588    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589      { echo "$as_me: error: invalid package name: $ac_package" >&2
590   { (exit 1); exit 1; }; }
591    ac_package=`echo $ac_package| sed 's/-/_/g'`
592    case $ac_option in
593      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594      *) ac_optarg=yes ;;
595    esac
596    eval "with_$ac_package='$ac_optarg'" ;;
597
598  -without-* | --without-*)
599    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600    # Reject names that are not valid shell variable names.
601    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602      { echo "$as_me: error: invalid package name: $ac_package" >&2
603   { (exit 1); exit 1; }; }
604    ac_package=`echo $ac_package | sed 's/-/_/g'`
605    eval "with_$ac_package=no" ;;
606
607  --x)
608    # Obsolete; use --with-x.
609    with_x=yes ;;
610
611  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612  | --x-incl | --x-inc | --x-in | --x-i)
613    ac_prev=x_includes ;;
614  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616    x_includes=$ac_optarg ;;
617
618  -x-libraries | --x-libraries | --x-librarie | --x-librari \
619  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620    ac_prev=x_libraries ;;
621  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623    x_libraries=$ac_optarg ;;
624
625  -*) { echo "$as_me: error: unrecognized option: $ac_option
626Try \`$0 --help' for more information." >&2
627   { (exit 1); exit 1; }; }
628    ;;
629
630  *=*)
631    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632    # Reject names that are not valid shell variable names.
633    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635   { (exit 1); exit 1; }; }
636    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637    eval "$ac_envvar='$ac_optarg'"
638    export $ac_envvar ;;
639
640  *)
641    # FIXME: should be removed in autoconf 3.0.
642    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646    ;;
647
648  esac
649done
650
651if test -n "$ac_prev"; then
652  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653  { echo "$as_me: error: missing argument to $ac_option" >&2
654   { (exit 1); exit 1; }; }
655fi
656
657# Be sure to have absolute paths.
658for ac_var in exec_prefix prefix
659do
660  eval ac_val=$`echo $ac_var`
661  case $ac_val in
662    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664   { (exit 1); exit 1; }; };;
665  esac
666done
667
668# Be sure to have absolute paths.
669for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670              localstatedir libdir includedir oldincludedir infodir mandir
671do
672  eval ac_val=$`echo $ac_var`
673  case $ac_val in
674    [\\/$]* | ?:[\\/]* ) ;;
675    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676   { (exit 1); exit 1; }; };;
677  esac
678done
679
680# There might be people who depend on the old broken behavior: `$host'
681# used to hold the argument of --host etc.
682# FIXME: To remove some day.
683build=$build_alias
684host=$host_alias
685target=$target_alias
686
687# FIXME: To remove some day.
688if test "x$host_alias" != x; then
689  if test "x$build_alias" = x; then
690    cross_compiling=maybe
691    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692    If a cross compiler is detected then cross compile mode will be used." >&2
693  elif test "x$build_alias" != "x$host_alias"; then
694    cross_compiling=yes
695  fi
696fi
697
698ac_tool_prefix=
699test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701test "$silent" = yes && exec 6>/dev/null
702
703
704# Find the source files, if location was not specified.
705if test -z "$srcdir"; then
706  ac_srcdir_defaulted=yes
707  # Try the directory containing this script, then its parent.
708  ac_confdir=`(dirname "$0") 2>/dev/null ||
709$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710         X"$0" : 'X\(//\)[^/]' \| \
711         X"$0" : 'X\(//\)$' \| \
712         X"$0" : 'X\(/\)' \| \
713         .     : '\(.\)' 2>/dev/null ||
714echo X"$0" |
715    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717  	  /^X\(\/\/\)$/{ s//\1/; q; }
718  	  /^X\(\/\).*/{ s//\1/; q; }
719  	  s/.*/./; q'`
720  srcdir=$ac_confdir
721  if test ! -r $srcdir/$ac_unique_file; then
722    srcdir=..
723  fi
724else
725  ac_srcdir_defaulted=no
726fi
727if test ! -r $srcdir/$ac_unique_file; then
728  if test "$ac_srcdir_defaulted" = yes; then
729    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730   { (exit 1); exit 1; }; }
731  else
732    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733   { (exit 1); exit 1; }; }
734  fi
735fi
736(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738   { (exit 1); exit 1; }; }
739srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740ac_env_build_alias_set=${build_alias+set}
741ac_env_build_alias_value=$build_alias
742ac_cv_env_build_alias_set=${build_alias+set}
743ac_cv_env_build_alias_value=$build_alias
744ac_env_host_alias_set=${host_alias+set}
745ac_env_host_alias_value=$host_alias
746ac_cv_env_host_alias_set=${host_alias+set}
747ac_cv_env_host_alias_value=$host_alias
748ac_env_target_alias_set=${target_alias+set}
749ac_env_target_alias_value=$target_alias
750ac_cv_env_target_alias_set=${target_alias+set}
751ac_cv_env_target_alias_value=$target_alias
752ac_env_CC_set=${CC+set}
753ac_env_CC_value=$CC
754ac_cv_env_CC_set=${CC+set}
755ac_cv_env_CC_value=$CC
756ac_env_CFLAGS_set=${CFLAGS+set}
757ac_env_CFLAGS_value=$CFLAGS
758ac_cv_env_CFLAGS_set=${CFLAGS+set}
759ac_cv_env_CFLAGS_value=$CFLAGS
760ac_env_LDFLAGS_set=${LDFLAGS+set}
761ac_env_LDFLAGS_value=$LDFLAGS
762ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763ac_cv_env_LDFLAGS_value=$LDFLAGS
764ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765ac_env_CPPFLAGS_value=$CPPFLAGS
766ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768ac_env_CPP_set=${CPP+set}
769ac_env_CPP_value=$CPP
770ac_cv_env_CPP_set=${CPP+set}
771ac_cv_env_CPP_value=$CPP
772
773#
774# Report the --help message.
775#
776if test "$ac_init_help" = "long"; then
777  # Omit some internal or obsolete options to make the list less imposing.
778  # This message is too long to be a string in the A/UX 3.1 sh.
779  cat <<_ACEOF
780\`configure' configures this package to adapt to many kinds of systems.
781
782Usage: $0 [OPTION]... [VAR=VALUE]...
783
784To assign environment variables (e.g., CC, CFLAGS...), specify them as
785VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787Defaults for the options are specified in brackets.
788
789Configuration:
790  -h, --help              display this help and exit
791      --help=short        display options specific to this package
792      --help=recursive    display the short help of all the included packages
793  -V, --version           display version information and exit
794  -q, --quiet, --silent   do not print \`checking...' messages
795      --cache-file=FILE   cache test results in FILE [disabled]
796  -C, --config-cache      alias for \`--cache-file=config.cache'
797  -n, --no-create         do not create output files
798      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
800_ACEOF
801
802  cat <<_ACEOF
803Installation directories:
804  --prefix=PREFIX         install architecture-independent files in PREFIX
805                          [$ac_default_prefix]
806  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807                          [PREFIX]
808
809By default, \`make install' will install all the files in
810\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812for instance \`--prefix=\$HOME'.
813
814For better control, use the options below.
815
816Fine tuning of the installation directories:
817  --bindir=DIR           user executables [EPREFIX/bin]
818  --sbindir=DIR          system admin executables [EPREFIX/sbin]
819  --libexecdir=DIR       program executables [EPREFIX/libexec]
820  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824  --libdir=DIR           object code libraries [EPREFIX/lib]
825  --includedir=DIR       C header files [PREFIX/include]
826  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827  --infodir=DIR          info documentation [PREFIX/info]
828  --mandir=DIR           man documentation [PREFIX/man]
829_ACEOF
830
831  cat <<\_ACEOF
832
833Program names:
834  --program-prefix=PREFIX            prepend PREFIX to installed program names
835  --program-suffix=SUFFIX            append SUFFIX to installed program names
836  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
837
838System types:
839  --build=BUILD     configure for building on BUILD [guessed]
840  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
841_ACEOF
842fi
843
844if test -n "$ac_init_help"; then
845
846  cat <<\_ACEOF
847
848Optional Features:
849  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
850  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
851  --disable-dependency-tracking Speeds up one-time builds
852  --enable-dependency-tracking  Do not reject slow dependency extractors
853  --enable-krb4           enable KERBEROS_V4 authentication [no]
854  --enable-gssapi=<DIR>   enable GSSAPI authentication [yes]
855  --enable-sia            enable SIA authentication no
856  --enable-auth-sasldb    enable experimental SASLdb authentication module no
857
858Optional Packages:
859  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
860  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
861  --with-saslauthd=DIR    enable use of the saslauth daemon using state dir DIR
862  --with-lib-subdir=DIR   Find libraries in DIR instead of lib
863  --with-openssl=PATH     use OpenSSL from PATH
864  --with-des=DIR          with DES (look in DIR) yes
865  --with-gss_impl={heimdal|mit|cybersafe|seam|auto}
866                          choose specific GSSAPI implementation [[auto]]
867  --with-dbpath=PATH      set the DB path to use /etc/sasldb2
868  --with-dblib=DBLIB      set the DB library to use berkeley
869  --with-bdb-libdir=DIR   Berkeley DB lib files are in DIR
870  --with-bdb-incdir=DIR   Berkeley DB include files are in DIR
871  --with-gdbm=PATH        use gdbm from PATH
872  --with-pam=DIR          use PAM (rooted in DIR) yes
873  --with-ipctype={unix,doors}    use ipctype unix
874  --with-ldap=DIR         use LDAP (in DIR) no
875
876Some influential environment variables:
877  CC          C compiler command
878  CFLAGS      C compiler flags
879  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
880              nonstandard directory <lib dir>
881  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
882              headers in a nonstandard directory <include dir>
883  CPP         C preprocessor
884
885Use these variables to override the choices made by `configure' or to help
886it to find libraries and programs with nonstandard names/locations.
887
888_ACEOF
889fi
890
891if test "$ac_init_help" = "recursive"; then
892  # If there are subdirs, report their specific --help.
893  ac_popdir=`pwd`
894  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
895    test -d $ac_dir || continue
896    ac_builddir=.
897
898if test "$ac_dir" != .; then
899  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
900  # A "../" for each directory in $ac_dir_suffix.
901  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
902else
903  ac_dir_suffix= ac_top_builddir=
904fi
905
906case $srcdir in
907  .)  # No --srcdir option.  We are building in place.
908    ac_srcdir=.
909    if test -z "$ac_top_builddir"; then
910       ac_top_srcdir=.
911    else
912       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
913    fi ;;
914  [\\/]* | ?:[\\/]* )  # Absolute path.
915    ac_srcdir=$srcdir$ac_dir_suffix;
916    ac_top_srcdir=$srcdir ;;
917  *) # Relative path.
918    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
919    ac_top_srcdir=$ac_top_builddir$srcdir ;;
920esac
921# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
922# absolute.
923ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
924ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
925ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
926ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
927
928    cd $ac_dir
929    # Check for guested configure; otherwise get Cygnus style configure.
930    if test -f $ac_srcdir/configure.gnu; then
931      echo
932      $SHELL $ac_srcdir/configure.gnu  --help=recursive
933    elif test -f $ac_srcdir/configure; then
934      echo
935      $SHELL $ac_srcdir/configure  --help=recursive
936    elif test -f $ac_srcdir/configure.ac ||
937           test -f $ac_srcdir/configure.in; then
938      echo
939      $ac_configure --help
940    else
941      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
942    fi
943    cd $ac_popdir
944  done
945fi
946
947test -n "$ac_init_help" && exit 0
948if $ac_init_version; then
949  cat <<\_ACEOF
950
951Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
952Free Software Foundation, Inc.
953This configure script is free software; the Free Software Foundation
954gives unlimited permission to copy, distribute and modify it.
955_ACEOF
956  exit 0
957fi
958exec 5>config.log
959cat >&5 <<_ACEOF
960This file contains any messages produced by compilers while
961running configure, to aid debugging if configure makes a mistake.
962
963It was created by $as_me, which was
964generated by GNU Autoconf 2.57.  Invocation command line was
965
966  $ $0 $@
967
968_ACEOF
969{
970cat <<_ASUNAME
971## --------- ##
972## Platform. ##
973## --------- ##
974
975hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
976uname -m = `(uname -m) 2>/dev/null || echo unknown`
977uname -r = `(uname -r) 2>/dev/null || echo unknown`
978uname -s = `(uname -s) 2>/dev/null || echo unknown`
979uname -v = `(uname -v) 2>/dev/null || echo unknown`
980
981/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
982/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
983
984/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
985/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
986/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
987hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
988/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
989/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
990/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
991
992_ASUNAME
993
994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
995for as_dir in $PATH
996do
997  IFS=$as_save_IFS
998  test -z "$as_dir" && as_dir=.
999  echo "PATH: $as_dir"
1000done
1001
1002} >&5
1003
1004cat >&5 <<_ACEOF
1005
1006
1007## ----------- ##
1008## Core tests. ##
1009## ----------- ##
1010
1011_ACEOF
1012
1013
1014# Keep a trace of the command line.
1015# Strip out --no-create and --no-recursion so they do not pile up.
1016# Strip out --silent because we don't want to record it for future runs.
1017# Also quote any args containing shell meta-characters.
1018# Make two passes to allow for proper duplicate-argument suppression.
1019ac_configure_args=
1020ac_configure_args0=
1021ac_configure_args1=
1022ac_sep=
1023ac_must_keep_next=false
1024for ac_pass in 1 2
1025do
1026  for ac_arg
1027  do
1028    case $ac_arg in
1029    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1030    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1031    | -silent | --silent | --silen | --sile | --sil)
1032      continue ;;
1033    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1034      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1035    esac
1036    case $ac_pass in
1037    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1038    2)
1039      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1040      if test $ac_must_keep_next = true; then
1041        ac_must_keep_next=false # Got value, back to normal.
1042      else
1043        case $ac_arg in
1044          *=* | --config-cache | -C | -disable-* | --disable-* \
1045          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1046          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1047          | -with-* | --with-* | -without-* | --without-* | --x)
1048            case "$ac_configure_args0 " in
1049              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1050            esac
1051            ;;
1052          -* ) ac_must_keep_next=true ;;
1053        esac
1054      fi
1055      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1056      # Get rid of the leading space.
1057      ac_sep=" "
1058      ;;
1059    esac
1060  done
1061done
1062$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1063$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1064
1065# When interrupted or exit'd, cleanup temporary files, and complete
1066# config.log.  We remove comments because anyway the quotes in there
1067# would cause problems or look ugly.
1068# WARNING: Be sure not to use single quotes in there, as some shells,
1069# such as our DU 5.0 friend, will then `close' the trap.
1070trap 'exit_status=$?
1071  # Save into config.log some information that might help in debugging.
1072  {
1073    echo
1074
1075    cat <<\_ASBOX
1076## ---------------- ##
1077## Cache variables. ##
1078## ---------------- ##
1079_ASBOX
1080    echo
1081    # The following way of writing the cache mishandles newlines in values,
1082{
1083  (set) 2>&1 |
1084    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1085    *ac_space=\ *)
1086      sed -n \
1087        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1088    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1089      ;;
1090    *)
1091      sed -n \
1092        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1093      ;;
1094    esac;
1095}
1096    echo
1097
1098    cat <<\_ASBOX
1099## ----------------- ##
1100## Output variables. ##
1101## ----------------- ##
1102_ASBOX
1103    echo
1104    for ac_var in $ac_subst_vars
1105    do
1106      eval ac_val=$`echo $ac_var`
1107      echo "$ac_var='"'"'$ac_val'"'"'"
1108    done | sort
1109    echo
1110
1111    if test -n "$ac_subst_files"; then
1112      cat <<\_ASBOX
1113## ------------- ##
1114## Output files. ##
1115## ------------- ##
1116_ASBOX
1117      echo
1118      for ac_var in $ac_subst_files
1119      do
1120	eval ac_val=$`echo $ac_var`
1121        echo "$ac_var='"'"'$ac_val'"'"'"
1122      done | sort
1123      echo
1124    fi
1125
1126    if test -s confdefs.h; then
1127      cat <<\_ASBOX
1128## ----------- ##
1129## confdefs.h. ##
1130## ----------- ##
1131_ASBOX
1132      echo
1133      sed "/^$/d" confdefs.h | sort
1134      echo
1135    fi
1136    test "$ac_signal" != 0 &&
1137      echo "$as_me: caught signal $ac_signal"
1138    echo "$as_me: exit $exit_status"
1139  } >&5
1140  rm -f core core.* *.core &&
1141  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1142    exit $exit_status
1143     ' 0
1144for ac_signal in 1 2 13 15; do
1145  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1146done
1147ac_signal=0
1148
1149# confdefs.h avoids OS command line length limits that DEFS can exceed.
1150rm -rf conftest* confdefs.h
1151# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1152echo >confdefs.h
1153
1154# Predefined preprocessor variables.
1155
1156cat >>confdefs.h <<_ACEOF
1157#define PACKAGE_NAME "$PACKAGE_NAME"
1158_ACEOF
1159
1160
1161cat >>confdefs.h <<_ACEOF
1162#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1163_ACEOF
1164
1165
1166cat >>confdefs.h <<_ACEOF
1167#define PACKAGE_VERSION "$PACKAGE_VERSION"
1168_ACEOF
1169
1170
1171cat >>confdefs.h <<_ACEOF
1172#define PACKAGE_STRING "$PACKAGE_STRING"
1173_ACEOF
1174
1175
1176cat >>confdefs.h <<_ACEOF
1177#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1178_ACEOF
1179
1180
1181# Let the site file select an alternate cache file if it wants to.
1182# Prefer explicitly selected file to automatically selected ones.
1183if test -z "$CONFIG_SITE"; then
1184  if test "x$prefix" != xNONE; then
1185    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1186  else
1187    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1188  fi
1189fi
1190for ac_site_file in $CONFIG_SITE; do
1191  if test -r "$ac_site_file"; then
1192    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1193echo "$as_me: loading site script $ac_site_file" >&6;}
1194    sed 's/^/| /' "$ac_site_file" >&5
1195    . "$ac_site_file"
1196  fi
1197done
1198
1199if test -r "$cache_file"; then
1200  # Some versions of bash will fail to source /dev/null (special
1201  # files actually), so we avoid doing that.
1202  if test -f "$cache_file"; then
1203    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1204echo "$as_me: loading cache $cache_file" >&6;}
1205    case $cache_file in
1206      [\\/]* | ?:[\\/]* ) . $cache_file;;
1207      *)                      . ./$cache_file;;
1208    esac
1209  fi
1210else
1211  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1212echo "$as_me: creating cache $cache_file" >&6;}
1213  >$cache_file
1214fi
1215
1216# Check that the precious variables saved in the cache have kept the same
1217# value.
1218ac_cache_corrupted=false
1219for ac_var in `(set) 2>&1 |
1220               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1221  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1222  eval ac_new_set=\$ac_env_${ac_var}_set
1223  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1224  eval ac_new_val="\$ac_env_${ac_var}_value"
1225  case $ac_old_set,$ac_new_set in
1226    set,)
1227      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1228echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1229      ac_cache_corrupted=: ;;
1230    ,set)
1231      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1232echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1233      ac_cache_corrupted=: ;;
1234    ,);;
1235    *)
1236      if test "x$ac_old_val" != "x$ac_new_val"; then
1237        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1238echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1239        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1240echo "$as_me:   former value:  $ac_old_val" >&2;}
1241        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1242echo "$as_me:   current value: $ac_new_val" >&2;}
1243        ac_cache_corrupted=:
1244      fi;;
1245  esac
1246  # Pass precious variables to config.status.
1247  if test "$ac_new_set" = set; then
1248    case $ac_new_val in
1249    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1250      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1251    *) ac_arg=$ac_var=$ac_new_val ;;
1252    esac
1253    case " $ac_configure_args " in
1254      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1255      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1256    esac
1257  fi
1258done
1259if $ac_cache_corrupted; then
1260  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1261echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1262  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1263echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1264   { (exit 1); exit 1; }; }
1265fi
1266
1267ac_ext=c
1268ac_cpp='$CPP $CPPFLAGS'
1269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1271ac_compiler_gnu=$ac_cv_c_compiler_gnu
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293ac_aux_dir=
1294for ac_dir in config $srcdir/config; do
1295  if test -f $ac_dir/install-sh; then
1296    ac_aux_dir=$ac_dir
1297    ac_install_sh="$ac_aux_dir/install-sh -c"
1298    break
1299  elif test -f $ac_dir/install.sh; then
1300    ac_aux_dir=$ac_dir
1301    ac_install_sh="$ac_aux_dir/install.sh -c"
1302    break
1303  elif test -f $ac_dir/shtool; then
1304    ac_aux_dir=$ac_dir
1305    ac_install_sh="$ac_aux_dir/shtool install -c"
1306    break
1307  fi
1308done
1309if test -z "$ac_aux_dir"; then
1310  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1311echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1312   { (exit 1); exit 1; }; }
1313fi
1314ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1315ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1316ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1317
1318# Make sure we can run config.sub.
1319$ac_config_sub sun4 >/dev/null 2>&1 ||
1320  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1321echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1322   { (exit 1); exit 1; }; }
1323
1324echo "$as_me:$LINENO: checking build system type" >&5
1325echo $ECHO_N "checking build system type... $ECHO_C" >&6
1326if test "${ac_cv_build+set}" = set; then
1327  echo $ECHO_N "(cached) $ECHO_C" >&6
1328else
1329  ac_cv_build_alias=$build_alias
1330test -z "$ac_cv_build_alias" &&
1331  ac_cv_build_alias=`$ac_config_guess`
1332test -z "$ac_cv_build_alias" &&
1333  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1334echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1335   { (exit 1); exit 1; }; }
1336ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1337  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1338echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1339   { (exit 1); exit 1; }; }
1340
1341fi
1342echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1343echo "${ECHO_T}$ac_cv_build" >&6
1344build=$ac_cv_build
1345build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1346build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1347build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1348
1349
1350echo "$as_me:$LINENO: checking host system type" >&5
1351echo $ECHO_N "checking host system type... $ECHO_C" >&6
1352if test "${ac_cv_host+set}" = set; then
1353  echo $ECHO_N "(cached) $ECHO_C" >&6
1354else
1355  ac_cv_host_alias=$host_alias
1356test -z "$ac_cv_host_alias" &&
1357  ac_cv_host_alias=$ac_cv_build_alias
1358ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1359  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1360echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1361   { (exit 1); exit 1; }; }
1362
1363fi
1364echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1365echo "${ECHO_T}$ac_cv_host" >&6
1366host=$ac_cv_host
1367host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1368host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1369host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1370
1371
1372
1373
1374# Check whether --with-saslauthd or --without-saslauthd was given.
1375if test "${with_saslauthd+set}" = set; then
1376  withval="$with_saslauthd"
1377  with_saslauthd=$withval
1378else
1379  with_saslauthd=yes
1380fi;
1381  if test "$with_saslauthd" = yes; then
1382    with_saslauthd="/var/state/saslauthd"
1383  fi
1384
1385cat >>confdefs.h <<\_ACEOF
1386#define HAVE_SASLAUTHD
1387_ACEOF
1388
1389
1390cat >>confdefs.h <<_ACEOF
1391#define PATH_SASLAUTHD_RUNDIR "$with_saslauthd"
1392_ACEOF
1393
1394
1395
1396if test "$with_saslauthd" != no; then
1397  SASLAUTHD_TRUE=
1398  SASLAUTHD_FALSE='#'
1399else
1400  SASLAUTHD_TRUE='#'
1401  SASLAUTHD_FALSE=
1402fi
1403
1404
1405am__api_version="1.7"
1406# Find a good install program.  We prefer a C program (faster),
1407# so one script is as good as another.  But avoid the broken or
1408# incompatible versions:
1409# SysV /etc/install, /usr/sbin/install
1410# SunOS /usr/etc/install
1411# IRIX /sbin/install
1412# AIX /bin/install
1413# AmigaOS /C/install, which installs bootblocks on floppy discs
1414# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1415# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1416# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1417# ./install, which can be erroneously created by make from ./install.sh.
1418echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1419echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1420if test -z "$INSTALL"; then
1421if test "${ac_cv_path_install+set}" = set; then
1422  echo $ECHO_N "(cached) $ECHO_C" >&6
1423else
1424  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1425for as_dir in $PATH
1426do
1427  IFS=$as_save_IFS
1428  test -z "$as_dir" && as_dir=.
1429  # Account for people who put trailing slashes in PATH elements.
1430case $as_dir/ in
1431  ./ | .// | /cC/* | \
1432  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1433  /usr/ucb/* ) ;;
1434  *)
1435    # OSF1 and SCO ODT 3.0 have their own names for install.
1436    # Don't use installbsd from OSF since it installs stuff as root
1437    # by default.
1438    for ac_prog in ginstall scoinst install; do
1439      for ac_exec_ext in '' $ac_executable_extensions; do
1440        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1441          if test $ac_prog = install &&
1442            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1443            # AIX install.  It has an incompatible calling convention.
1444            :
1445          elif test $ac_prog = install &&
1446            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1447            # program-specific install script used by HP pwplus--don't use.
1448            :
1449          else
1450            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1451            break 3
1452          fi
1453        fi
1454      done
1455    done
1456    ;;
1457esac
1458done
1459
1460
1461fi
1462  if test "${ac_cv_path_install+set}" = set; then
1463    INSTALL=$ac_cv_path_install
1464  else
1465    # As a last resort, use the slow shell script.  We don't cache a
1466    # path for INSTALL within a source directory, because that will
1467    # break other packages using the cache if that directory is
1468    # removed, or if the path is relative.
1469    INSTALL=$ac_install_sh
1470  fi
1471fi
1472echo "$as_me:$LINENO: result: $INSTALL" >&5
1473echo "${ECHO_T}$INSTALL" >&6
1474
1475# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1476# It thinks the first close brace ends the variable substitution.
1477test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1478
1479test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1480
1481test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1482
1483echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1484echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1485# Just in case
1486sleep 1
1487echo timestamp > conftest.file
1488# Do `set' in a subshell so we don't clobber the current shell's
1489# arguments.  Must try -L first in case configure is actually a
1490# symlink; some systems play weird games with the mod time of symlinks
1491# (eg FreeBSD returns the mod time of the symlink's containing
1492# directory).
1493if (
1494   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1495   if test "$*" = "X"; then
1496      # -L didn't work.
1497      set X `ls -t $srcdir/configure conftest.file`
1498   fi
1499   rm -f conftest.file
1500   if test "$*" != "X $srcdir/configure conftest.file" \
1501      && test "$*" != "X conftest.file $srcdir/configure"; then
1502
1503      # If neither matched, then we have a broken ls.  This can happen
1504      # if, for instance, CONFIG_SHELL is bash and it inherits a
1505      # broken ls alias from the environment.  This has actually
1506      # happened.  Such a system could not be considered "sane".
1507      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1508alias in your environment" >&5
1509echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1510alias in your environment" >&2;}
1511   { (exit 1); exit 1; }; }
1512   fi
1513
1514   test "$2" = conftest.file
1515   )
1516then
1517   # Ok.
1518   :
1519else
1520   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1521Check your system clock" >&5
1522echo "$as_me: error: newly created file is older than distributed files!
1523Check your system clock" >&2;}
1524   { (exit 1); exit 1; }; }
1525fi
1526echo "$as_me:$LINENO: result: yes" >&5
1527echo "${ECHO_T}yes" >&6
1528test "$program_prefix" != NONE &&
1529  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1530# Use a double $ so make ignores it.
1531test "$program_suffix" != NONE &&
1532  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1533# Double any \ or $.  echo might interpret backslashes.
1534# By default was `s,x,x', remove it if useless.
1535cat <<\_ACEOF >conftest.sed
1536s/[\\$]/&&/g;s/;s,x,x,$//
1537_ACEOF
1538program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1539rm conftest.sed
1540
1541
1542# expand $ac_aux_dir to an absolute path
1543am_aux_dir=`cd $ac_aux_dir && pwd`
1544
1545test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1546# Use eval to expand $SHELL
1547if eval "$MISSING --run true"; then
1548  am_missing_run="$MISSING --run "
1549else
1550  am_missing_run=
1551  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1552echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1553fi
1554
1555for ac_prog in gawk mawk nawk awk
1556do
1557  # Extract the first word of "$ac_prog", so it can be a program name with args.
1558set dummy $ac_prog; ac_word=$2
1559echo "$as_me:$LINENO: checking for $ac_word" >&5
1560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1561if test "${ac_cv_prog_AWK+set}" = set; then
1562  echo $ECHO_N "(cached) $ECHO_C" >&6
1563else
1564  if test -n "$AWK"; then
1565  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1566else
1567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568for as_dir in $PATH
1569do
1570  IFS=$as_save_IFS
1571  test -z "$as_dir" && as_dir=.
1572  for ac_exec_ext in '' $ac_executable_extensions; do
1573  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1574    ac_cv_prog_AWK="$ac_prog"
1575    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1576    break 2
1577  fi
1578done
1579done
1580
1581fi
1582fi
1583AWK=$ac_cv_prog_AWK
1584if test -n "$AWK"; then
1585  echo "$as_me:$LINENO: result: $AWK" >&5
1586echo "${ECHO_T}$AWK" >&6
1587else
1588  echo "$as_me:$LINENO: result: no" >&5
1589echo "${ECHO_T}no" >&6
1590fi
1591
1592  test -n "$AWK" && break
1593done
1594
1595echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1596echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1597set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1598if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1599  echo $ECHO_N "(cached) $ECHO_C" >&6
1600else
1601  cat >conftest.make <<\_ACEOF
1602all:
1603	@echo 'ac_maketemp="$(MAKE)"'
1604_ACEOF
1605# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1606eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1607if test -n "$ac_maketemp"; then
1608  eval ac_cv_prog_make_${ac_make}_set=yes
1609else
1610  eval ac_cv_prog_make_${ac_make}_set=no
1611fi
1612rm -f conftest.make
1613fi
1614if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1615  echo "$as_me:$LINENO: result: yes" >&5
1616echo "${ECHO_T}yes" >&6
1617  SET_MAKE=
1618else
1619  echo "$as_me:$LINENO: result: no" >&5
1620echo "${ECHO_T}no" >&6
1621  SET_MAKE="MAKE=${MAKE-make}"
1622fi
1623
1624 # test to see if srcdir already configured
1625if test "`cd $srcdir && pwd`" != "`pwd`" &&
1626   test -f $srcdir/config.status; then
1627  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1628echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1629   { (exit 1); exit 1; }; }
1630fi
1631
1632# test whether we have cygpath
1633if test -z "$CYGPATH_W"; then
1634  if (cygpath --version) >/dev/null 2>/dev/null; then
1635    CYGPATH_W='cygpath -w'
1636  else
1637    CYGPATH_W=echo
1638  fi
1639fi
1640
1641
1642# Define the identity of the package.
1643 PACKAGE=saslauthd
1644 VERSION=2.1.22
1645
1646
1647cat >>confdefs.h <<_ACEOF
1648#define PACKAGE "$PACKAGE"
1649_ACEOF
1650
1651
1652cat >>confdefs.h <<_ACEOF
1653#define VERSION "$VERSION"
1654_ACEOF
1655
1656# Some tools Automake needs.
1657
1658ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1659
1660
1661AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1662
1663
1664AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1665
1666
1667AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1668
1669
1670MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1671
1672
1673AMTAR=${AMTAR-"${am_missing_run}tar"}
1674
1675install_sh=${install_sh-"$am_aux_dir/install-sh"}
1676
1677# Installed binaries are usually stripped using `strip' when the user
1678# run `make install-strip'.  However `strip' might not be the right
1679# tool to use in cross-compilation environments, therefore Automake
1680# will honor the `STRIP' environment variable to overrule this program.
1681if test "$cross_compiling" != no; then
1682  if test -n "$ac_tool_prefix"; then
1683  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1684set dummy ${ac_tool_prefix}strip; ac_word=$2
1685echo "$as_me:$LINENO: checking for $ac_word" >&5
1686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1687if test "${ac_cv_prog_STRIP+set}" = set; then
1688  echo $ECHO_N "(cached) $ECHO_C" >&6
1689else
1690  if test -n "$STRIP"; then
1691  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1692else
1693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694for as_dir in $PATH
1695do
1696  IFS=$as_save_IFS
1697  test -z "$as_dir" && as_dir=.
1698  for ac_exec_ext in '' $ac_executable_extensions; do
1699  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1700    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1701    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1702    break 2
1703  fi
1704done
1705done
1706
1707fi
1708fi
1709STRIP=$ac_cv_prog_STRIP
1710if test -n "$STRIP"; then
1711  echo "$as_me:$LINENO: result: $STRIP" >&5
1712echo "${ECHO_T}$STRIP" >&6
1713else
1714  echo "$as_me:$LINENO: result: no" >&5
1715echo "${ECHO_T}no" >&6
1716fi
1717
1718fi
1719if test -z "$ac_cv_prog_STRIP"; then
1720  ac_ct_STRIP=$STRIP
1721  # Extract the first word of "strip", so it can be a program name with args.
1722set dummy strip; ac_word=$2
1723echo "$as_me:$LINENO: checking for $ac_word" >&5
1724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1725if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1726  echo $ECHO_N "(cached) $ECHO_C" >&6
1727else
1728  if test -n "$ac_ct_STRIP"; then
1729  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1730else
1731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1732for as_dir in $PATH
1733do
1734  IFS=$as_save_IFS
1735  test -z "$as_dir" && as_dir=.
1736  for ac_exec_ext in '' $ac_executable_extensions; do
1737  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1738    ac_cv_prog_ac_ct_STRIP="strip"
1739    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1740    break 2
1741  fi
1742done
1743done
1744
1745  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1746fi
1747fi
1748ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1749if test -n "$ac_ct_STRIP"; then
1750  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1751echo "${ECHO_T}$ac_ct_STRIP" >&6
1752else
1753  echo "$as_me:$LINENO: result: no" >&5
1754echo "${ECHO_T}no" >&6
1755fi
1756
1757  STRIP=$ac_ct_STRIP
1758else
1759  STRIP="$ac_cv_prog_STRIP"
1760fi
1761
1762fi
1763INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1764
1765# We need awk for the "check" target.  The system "awk" is bad on
1766# some platforms.
1767
1768
1769
1770
1771
1772	ACLOCAL="$ACLOCAL -I \$(top_srcdir)/cmulocal"
1773
1774
1775ac_ext=c
1776ac_cpp='$CPP $CPPFLAGS'
1777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1779ac_compiler_gnu=$ac_cv_c_compiler_gnu
1780if test -n "$ac_tool_prefix"; then
1781  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1782set dummy ${ac_tool_prefix}gcc; ac_word=$2
1783echo "$as_me:$LINENO: checking for $ac_word" >&5
1784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1785if test "${ac_cv_prog_CC+set}" = set; then
1786  echo $ECHO_N "(cached) $ECHO_C" >&6
1787else
1788  if test -n "$CC"; then
1789  ac_cv_prog_CC="$CC" # Let the user override the test.
1790else
1791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1792for as_dir in $PATH
1793do
1794  IFS=$as_save_IFS
1795  test -z "$as_dir" && as_dir=.
1796  for ac_exec_ext in '' $ac_executable_extensions; do
1797  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1798    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1799    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1800    break 2
1801  fi
1802done
1803done
1804
1805fi
1806fi
1807CC=$ac_cv_prog_CC
1808if test -n "$CC"; then
1809  echo "$as_me:$LINENO: result: $CC" >&5
1810echo "${ECHO_T}$CC" >&6
1811else
1812  echo "$as_me:$LINENO: result: no" >&5
1813echo "${ECHO_T}no" >&6
1814fi
1815
1816fi
1817if test -z "$ac_cv_prog_CC"; then
1818  ac_ct_CC=$CC
1819  # Extract the first word of "gcc", so it can be a program name with args.
1820set dummy gcc; ac_word=$2
1821echo "$as_me:$LINENO: checking for $ac_word" >&5
1822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1823if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1824  echo $ECHO_N "(cached) $ECHO_C" >&6
1825else
1826  if test -n "$ac_ct_CC"; then
1827  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1828else
1829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1830for as_dir in $PATH
1831do
1832  IFS=$as_save_IFS
1833  test -z "$as_dir" && as_dir=.
1834  for ac_exec_ext in '' $ac_executable_extensions; do
1835  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1836    ac_cv_prog_ac_ct_CC="gcc"
1837    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1838    break 2
1839  fi
1840done
1841done
1842
1843fi
1844fi
1845ac_ct_CC=$ac_cv_prog_ac_ct_CC
1846if test -n "$ac_ct_CC"; then
1847  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1848echo "${ECHO_T}$ac_ct_CC" >&6
1849else
1850  echo "$as_me:$LINENO: result: no" >&5
1851echo "${ECHO_T}no" >&6
1852fi
1853
1854  CC=$ac_ct_CC
1855else
1856  CC="$ac_cv_prog_CC"
1857fi
1858
1859if test -z "$CC"; then
1860  if test -n "$ac_tool_prefix"; then
1861  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1862set dummy ${ac_tool_prefix}cc; ac_word=$2
1863echo "$as_me:$LINENO: checking for $ac_word" >&5
1864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1865if test "${ac_cv_prog_CC+set}" = set; then
1866  echo $ECHO_N "(cached) $ECHO_C" >&6
1867else
1868  if test -n "$CC"; then
1869  ac_cv_prog_CC="$CC" # Let the user override the test.
1870else
1871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872for as_dir in $PATH
1873do
1874  IFS=$as_save_IFS
1875  test -z "$as_dir" && as_dir=.
1876  for ac_exec_ext in '' $ac_executable_extensions; do
1877  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1878    ac_cv_prog_CC="${ac_tool_prefix}cc"
1879    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1880    break 2
1881  fi
1882done
1883done
1884
1885fi
1886fi
1887CC=$ac_cv_prog_CC
1888if test -n "$CC"; then
1889  echo "$as_me:$LINENO: result: $CC" >&5
1890echo "${ECHO_T}$CC" >&6
1891else
1892  echo "$as_me:$LINENO: result: no" >&5
1893echo "${ECHO_T}no" >&6
1894fi
1895
1896fi
1897if test -z "$ac_cv_prog_CC"; then
1898  ac_ct_CC=$CC
1899  # Extract the first word of "cc", so it can be a program name with args.
1900set dummy cc; ac_word=$2
1901echo "$as_me:$LINENO: checking for $ac_word" >&5
1902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1903if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1904  echo $ECHO_N "(cached) $ECHO_C" >&6
1905else
1906  if test -n "$ac_ct_CC"; then
1907  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1908else
1909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1910for as_dir in $PATH
1911do
1912  IFS=$as_save_IFS
1913  test -z "$as_dir" && as_dir=.
1914  for ac_exec_ext in '' $ac_executable_extensions; do
1915  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1916    ac_cv_prog_ac_ct_CC="cc"
1917    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1918    break 2
1919  fi
1920done
1921done
1922
1923fi
1924fi
1925ac_ct_CC=$ac_cv_prog_ac_ct_CC
1926if test -n "$ac_ct_CC"; then
1927  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1928echo "${ECHO_T}$ac_ct_CC" >&6
1929else
1930  echo "$as_me:$LINENO: result: no" >&5
1931echo "${ECHO_T}no" >&6
1932fi
1933
1934  CC=$ac_ct_CC
1935else
1936  CC="$ac_cv_prog_CC"
1937fi
1938
1939fi
1940if test -z "$CC"; then
1941  # Extract the first word of "cc", so it can be a program name with args.
1942set dummy cc; ac_word=$2
1943echo "$as_me:$LINENO: checking for $ac_word" >&5
1944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1945if test "${ac_cv_prog_CC+set}" = set; then
1946  echo $ECHO_N "(cached) $ECHO_C" >&6
1947else
1948  if test -n "$CC"; then
1949  ac_cv_prog_CC="$CC" # Let the user override the test.
1950else
1951  ac_prog_rejected=no
1952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953for as_dir in $PATH
1954do
1955  IFS=$as_save_IFS
1956  test -z "$as_dir" && as_dir=.
1957  for ac_exec_ext in '' $ac_executable_extensions; do
1958  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1959    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1960       ac_prog_rejected=yes
1961       continue
1962     fi
1963    ac_cv_prog_CC="cc"
1964    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1965    break 2
1966  fi
1967done
1968done
1969
1970if test $ac_prog_rejected = yes; then
1971  # We found a bogon in the path, so make sure we never use it.
1972  set dummy $ac_cv_prog_CC
1973  shift
1974  if test $# != 0; then
1975    # We chose a different compiler from the bogus one.
1976    # However, it has the same basename, so the bogon will be chosen
1977    # first if we set CC to just the basename; use the full file name.
1978    shift
1979    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1980  fi
1981fi
1982fi
1983fi
1984CC=$ac_cv_prog_CC
1985if test -n "$CC"; then
1986  echo "$as_me:$LINENO: result: $CC" >&5
1987echo "${ECHO_T}$CC" >&6
1988else
1989  echo "$as_me:$LINENO: result: no" >&5
1990echo "${ECHO_T}no" >&6
1991fi
1992
1993fi
1994if test -z "$CC"; then
1995  if test -n "$ac_tool_prefix"; then
1996  for ac_prog in cl
1997  do
1998    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1999set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2000echo "$as_me:$LINENO: checking for $ac_word" >&5
2001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2002if test "${ac_cv_prog_CC+set}" = set; then
2003  echo $ECHO_N "(cached) $ECHO_C" >&6
2004else
2005  if test -n "$CC"; then
2006  ac_cv_prog_CC="$CC" # Let the user override the test.
2007else
2008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009for as_dir in $PATH
2010do
2011  IFS=$as_save_IFS
2012  test -z "$as_dir" && as_dir=.
2013  for ac_exec_ext in '' $ac_executable_extensions; do
2014  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2015    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2016    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017    break 2
2018  fi
2019done
2020done
2021
2022fi
2023fi
2024CC=$ac_cv_prog_CC
2025if test -n "$CC"; then
2026  echo "$as_me:$LINENO: result: $CC" >&5
2027echo "${ECHO_T}$CC" >&6
2028else
2029  echo "$as_me:$LINENO: result: no" >&5
2030echo "${ECHO_T}no" >&6
2031fi
2032
2033    test -n "$CC" && break
2034  done
2035fi
2036if test -z "$CC"; then
2037  ac_ct_CC=$CC
2038  for ac_prog in cl
2039do
2040  # Extract the first word of "$ac_prog", so it can be a program name with args.
2041set dummy $ac_prog; ac_word=$2
2042echo "$as_me:$LINENO: checking for $ac_word" >&5
2043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2045  echo $ECHO_N "(cached) $ECHO_C" >&6
2046else
2047  if test -n "$ac_ct_CC"; then
2048  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2049else
2050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051for as_dir in $PATH
2052do
2053  IFS=$as_save_IFS
2054  test -z "$as_dir" && as_dir=.
2055  for ac_exec_ext in '' $ac_executable_extensions; do
2056  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057    ac_cv_prog_ac_ct_CC="$ac_prog"
2058    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059    break 2
2060  fi
2061done
2062done
2063
2064fi
2065fi
2066ac_ct_CC=$ac_cv_prog_ac_ct_CC
2067if test -n "$ac_ct_CC"; then
2068  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2069echo "${ECHO_T}$ac_ct_CC" >&6
2070else
2071  echo "$as_me:$LINENO: result: no" >&5
2072echo "${ECHO_T}no" >&6
2073fi
2074
2075  test -n "$ac_ct_CC" && break
2076done
2077
2078  CC=$ac_ct_CC
2079fi
2080
2081fi
2082
2083
2084test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2085See \`config.log' for more details." >&5
2086echo "$as_me: error: no acceptable C compiler found in \$PATH
2087See \`config.log' for more details." >&2;}
2088   { (exit 1); exit 1; }; }
2089
2090# Provide some information about the compiler.
2091echo "$as_me:$LINENO:" \
2092     "checking for C compiler version" >&5
2093ac_compiler=`set X $ac_compile; echo $2`
2094{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2095  (eval $ac_compiler --version </dev/null >&5) 2>&5
2096  ac_status=$?
2097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098  (exit $ac_status); }
2099{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2100  (eval $ac_compiler -v </dev/null >&5) 2>&5
2101  ac_status=$?
2102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103  (exit $ac_status); }
2104{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2105  (eval $ac_compiler -V </dev/null >&5) 2>&5
2106  ac_status=$?
2107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108  (exit $ac_status); }
2109
2110cat >conftest.$ac_ext <<_ACEOF
2111#line $LINENO "configure"
2112/* confdefs.h.  */
2113_ACEOF
2114cat confdefs.h >>conftest.$ac_ext
2115cat >>conftest.$ac_ext <<_ACEOF
2116/* end confdefs.h.  */
2117
2118int
2119main ()
2120{
2121
2122  ;
2123  return 0;
2124}
2125_ACEOF
2126ac_clean_files_save=$ac_clean_files
2127ac_clean_files="$ac_clean_files a.out a.exe b.out"
2128# Try to create an executable without -o first, disregard a.out.
2129# It will help us diagnose broken compilers, and finding out an intuition
2130# of exeext.
2131echo "$as_me:$LINENO: checking for C compiler default output" >&5
2132echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2133ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2134if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2135  (eval $ac_link_default) 2>&5
2136  ac_status=$?
2137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138  (exit $ac_status); }; then
2139  # Find the output, starting from the most likely.  This scheme is
2140# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2141# resort.
2142
2143# Be careful to initialize this variable, since it used to be cached.
2144# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2145ac_cv_exeext=
2146# b.out is created by i960 compilers.
2147for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2148do
2149  test -f "$ac_file" || continue
2150  case $ac_file in
2151    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2152        ;;
2153    conftest.$ac_ext )
2154        # This is the source file.
2155        ;;
2156    [ab].out )
2157        # We found the default executable, but exeext='' is most
2158        # certainly right.
2159        break;;
2160    *.* )
2161        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2162        # FIXME: I believe we export ac_cv_exeext for Libtool,
2163        # but it would be cool to find out if it's true.  Does anybody
2164        # maintain Libtool? --akim.
2165        export ac_cv_exeext
2166        break;;
2167    * )
2168        break;;
2169  esac
2170done
2171else
2172  echo "$as_me: failed program was:" >&5
2173sed 's/^/| /' conftest.$ac_ext >&5
2174
2175{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2176See \`config.log' for more details." >&5
2177echo "$as_me: error: C compiler cannot create executables
2178See \`config.log' for more details." >&2;}
2179   { (exit 77); exit 77; }; }
2180fi
2181
2182ac_exeext=$ac_cv_exeext
2183echo "$as_me:$LINENO: result: $ac_file" >&5
2184echo "${ECHO_T}$ac_file" >&6
2185
2186# Check the compiler produces executables we can run.  If not, either
2187# the compiler is broken, or we cross compile.
2188echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2189echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2190# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2191# If not cross compiling, check that we can run a simple program.
2192if test "$cross_compiling" != yes; then
2193  if { ac_try='./$ac_file'
2194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2195  (eval $ac_try) 2>&5
2196  ac_status=$?
2197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198  (exit $ac_status); }; }; then
2199    cross_compiling=no
2200  else
2201    if test "$cross_compiling" = maybe; then
2202	cross_compiling=yes
2203    else
2204	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2205If you meant to cross compile, use \`--host'.
2206See \`config.log' for more details." >&5
2207echo "$as_me: error: cannot run C compiled programs.
2208If you meant to cross compile, use \`--host'.
2209See \`config.log' for more details." >&2;}
2210   { (exit 1); exit 1; }; }
2211    fi
2212  fi
2213fi
2214echo "$as_me:$LINENO: result: yes" >&5
2215echo "${ECHO_T}yes" >&6
2216
2217rm -f a.out a.exe conftest$ac_cv_exeext b.out
2218ac_clean_files=$ac_clean_files_save
2219# Check the compiler produces executables we can run.  If not, either
2220# the compiler is broken, or we cross compile.
2221echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2222echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2223echo "$as_me:$LINENO: result: $cross_compiling" >&5
2224echo "${ECHO_T}$cross_compiling" >&6
2225
2226echo "$as_me:$LINENO: checking for suffix of executables" >&5
2227echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2229  (eval $ac_link) 2>&5
2230  ac_status=$?
2231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232  (exit $ac_status); }; then
2233  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2234# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2235# work properly (i.e., refer to `conftest.exe'), while it won't with
2236# `rm'.
2237for ac_file in conftest.exe conftest conftest.*; do
2238  test -f "$ac_file" || continue
2239  case $ac_file in
2240    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2241    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2242          export ac_cv_exeext
2243          break;;
2244    * ) break;;
2245  esac
2246done
2247else
2248  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2249See \`config.log' for more details." >&5
2250echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2251See \`config.log' for more details." >&2;}
2252   { (exit 1); exit 1; }; }
2253fi
2254
2255rm -f conftest$ac_cv_exeext
2256echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2257echo "${ECHO_T}$ac_cv_exeext" >&6
2258
2259rm -f conftest.$ac_ext
2260EXEEXT=$ac_cv_exeext
2261ac_exeext=$EXEEXT
2262echo "$as_me:$LINENO: checking for suffix of object files" >&5
2263echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2264if test "${ac_cv_objext+set}" = set; then
2265  echo $ECHO_N "(cached) $ECHO_C" >&6
2266else
2267  cat >conftest.$ac_ext <<_ACEOF
2268#line $LINENO "configure"
2269/* confdefs.h.  */
2270_ACEOF
2271cat confdefs.h >>conftest.$ac_ext
2272cat >>conftest.$ac_ext <<_ACEOF
2273/* end confdefs.h.  */
2274
2275int
2276main ()
2277{
2278
2279  ;
2280  return 0;
2281}
2282_ACEOF
2283rm -f conftest.o conftest.obj
2284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285  (eval $ac_compile) 2>&5
2286  ac_status=$?
2287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288  (exit $ac_status); }; then
2289  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2290  case $ac_file in
2291    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2292    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2293       break;;
2294  esac
2295done
2296else
2297  echo "$as_me: failed program was:" >&5
2298sed 's/^/| /' conftest.$ac_ext >&5
2299
2300{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2301See \`config.log' for more details." >&5
2302echo "$as_me: error: cannot compute suffix of object files: cannot compile
2303See \`config.log' for more details." >&2;}
2304   { (exit 1); exit 1; }; }
2305fi
2306
2307rm -f conftest.$ac_cv_objext conftest.$ac_ext
2308fi
2309echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2310echo "${ECHO_T}$ac_cv_objext" >&6
2311OBJEXT=$ac_cv_objext
2312ac_objext=$OBJEXT
2313echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2314echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2315if test "${ac_cv_c_compiler_gnu+set}" = set; then
2316  echo $ECHO_N "(cached) $ECHO_C" >&6
2317else
2318  cat >conftest.$ac_ext <<_ACEOF
2319#line $LINENO "configure"
2320/* confdefs.h.  */
2321_ACEOF
2322cat confdefs.h >>conftest.$ac_ext
2323cat >>conftest.$ac_ext <<_ACEOF
2324/* end confdefs.h.  */
2325
2326int
2327main ()
2328{
2329#ifndef __GNUC__
2330       choke me
2331#endif
2332
2333  ;
2334  return 0;
2335}
2336_ACEOF
2337rm -f conftest.$ac_objext
2338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2339  (eval $ac_compile) 2>&5
2340  ac_status=$?
2341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342  (exit $ac_status); } &&
2343         { ac_try='test -s conftest.$ac_objext'
2344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345  (eval $ac_try) 2>&5
2346  ac_status=$?
2347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348  (exit $ac_status); }; }; then
2349  ac_compiler_gnu=yes
2350else
2351  echo "$as_me: failed program was:" >&5
2352sed 's/^/| /' conftest.$ac_ext >&5
2353
2354ac_compiler_gnu=no
2355fi
2356rm -f conftest.$ac_objext conftest.$ac_ext
2357ac_cv_c_compiler_gnu=$ac_compiler_gnu
2358
2359fi
2360echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2361echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2362GCC=`test $ac_compiler_gnu = yes && echo yes`
2363ac_test_CFLAGS=${CFLAGS+set}
2364ac_save_CFLAGS=$CFLAGS
2365CFLAGS="-g"
2366echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2367echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2368if test "${ac_cv_prog_cc_g+set}" = set; then
2369  echo $ECHO_N "(cached) $ECHO_C" >&6
2370else
2371  cat >conftest.$ac_ext <<_ACEOF
2372#line $LINENO "configure"
2373/* confdefs.h.  */
2374_ACEOF
2375cat confdefs.h >>conftest.$ac_ext
2376cat >>conftest.$ac_ext <<_ACEOF
2377/* end confdefs.h.  */
2378
2379int
2380main ()
2381{
2382
2383  ;
2384  return 0;
2385}
2386_ACEOF
2387rm -f conftest.$ac_objext
2388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2389  (eval $ac_compile) 2>&5
2390  ac_status=$?
2391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392  (exit $ac_status); } &&
2393         { ac_try='test -s conftest.$ac_objext'
2394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395  (eval $ac_try) 2>&5
2396  ac_status=$?
2397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398  (exit $ac_status); }; }; then
2399  ac_cv_prog_cc_g=yes
2400else
2401  echo "$as_me: failed program was:" >&5
2402sed 's/^/| /' conftest.$ac_ext >&5
2403
2404ac_cv_prog_cc_g=no
2405fi
2406rm -f conftest.$ac_objext conftest.$ac_ext
2407fi
2408echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2409echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2410if test "$ac_test_CFLAGS" = set; then
2411  CFLAGS=$ac_save_CFLAGS
2412elif test $ac_cv_prog_cc_g = yes; then
2413  if test "$GCC" = yes; then
2414    CFLAGS="-g -O2"
2415  else
2416    CFLAGS="-g"
2417  fi
2418else
2419  if test "$GCC" = yes; then
2420    CFLAGS="-O2"
2421  else
2422    CFLAGS=
2423  fi
2424fi
2425echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2426echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2427if test "${ac_cv_prog_cc_stdc+set}" = set; then
2428  echo $ECHO_N "(cached) $ECHO_C" >&6
2429else
2430  ac_cv_prog_cc_stdc=no
2431ac_save_CC=$CC
2432cat >conftest.$ac_ext <<_ACEOF
2433#line $LINENO "configure"
2434/* confdefs.h.  */
2435_ACEOF
2436cat confdefs.h >>conftest.$ac_ext
2437cat >>conftest.$ac_ext <<_ACEOF
2438/* end confdefs.h.  */
2439#include <stdarg.h>
2440#include <stdio.h>
2441#include <sys/types.h>
2442#include <sys/stat.h>
2443/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2444struct buf { int x; };
2445FILE * (*rcsopen) (struct buf *, struct stat *, int);
2446static char *e (p, i)
2447     char **p;
2448     int i;
2449{
2450  return p[i];
2451}
2452static char *f (char * (*g) (char **, int), char **p, ...)
2453{
2454  char *s;
2455  va_list v;
2456  va_start (v,p);
2457  s = g (p, va_arg (v,int));
2458  va_end (v);
2459  return s;
2460}
2461int test (int i, double x);
2462struct s1 {int (*f) (int a);};
2463struct s2 {int (*f) (double a);};
2464int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2465int argc;
2466char **argv;
2467int
2468main ()
2469{
2470return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2471  ;
2472  return 0;
2473}
2474_ACEOF
2475# Don't try gcc -ansi; that turns off useful extensions and
2476# breaks some systems' header files.
2477# AIX			-qlanglvl=ansi
2478# Ultrix and OSF/1	-std1
2479# HP-UX 10.20 and later	-Ae
2480# HP-UX older versions	-Aa -D_HPUX_SOURCE
2481# SVR4			-Xc -D__EXTENSIONS__
2482for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2483do
2484  CC="$ac_save_CC $ac_arg"
2485  rm -f conftest.$ac_objext
2486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2487  (eval $ac_compile) 2>&5
2488  ac_status=$?
2489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490  (exit $ac_status); } &&
2491         { ac_try='test -s conftest.$ac_objext'
2492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493  (eval $ac_try) 2>&5
2494  ac_status=$?
2495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496  (exit $ac_status); }; }; then
2497  ac_cv_prog_cc_stdc=$ac_arg
2498break
2499else
2500  echo "$as_me: failed program was:" >&5
2501sed 's/^/| /' conftest.$ac_ext >&5
2502
2503fi
2504rm -f conftest.$ac_objext
2505done
2506rm -f conftest.$ac_ext conftest.$ac_objext
2507CC=$ac_save_CC
2508
2509fi
2510
2511case "x$ac_cv_prog_cc_stdc" in
2512  x|xno)
2513    echo "$as_me:$LINENO: result: none needed" >&5
2514echo "${ECHO_T}none needed" >&6 ;;
2515  *)
2516    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2517echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2518    CC="$CC $ac_cv_prog_cc_stdc" ;;
2519esac
2520
2521# Some people use a C++ compiler to compile C.  Since we use `exit',
2522# in C++ we need to declare it.  In case someone uses the same compiler
2523# for both compiling C and C++ we need to have the C++ compiler decide
2524# the declaration of exit, since it's the most demanding environment.
2525cat >conftest.$ac_ext <<_ACEOF
2526#ifndef __cplusplus
2527  choke me
2528#endif
2529_ACEOF
2530rm -f conftest.$ac_objext
2531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2532  (eval $ac_compile) 2>&5
2533  ac_status=$?
2534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535  (exit $ac_status); } &&
2536         { ac_try='test -s conftest.$ac_objext'
2537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538  (eval $ac_try) 2>&5
2539  ac_status=$?
2540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541  (exit $ac_status); }; }; then
2542  for ac_declaration in \
2543   ''\
2544   '#include <stdlib.h>' \
2545   'extern "C" void std::exit (int) throw (); using std::exit;' \
2546   'extern "C" void std::exit (int); using std::exit;' \
2547   'extern "C" void exit (int) throw ();' \
2548   'extern "C" void exit (int);' \
2549   'void exit (int);'
2550do
2551  cat >conftest.$ac_ext <<_ACEOF
2552#line $LINENO "configure"
2553/* confdefs.h.  */
2554_ACEOF
2555cat confdefs.h >>conftest.$ac_ext
2556cat >>conftest.$ac_ext <<_ACEOF
2557/* end confdefs.h.  */
2558#include <stdlib.h>
2559$ac_declaration
2560int
2561main ()
2562{
2563exit (42);
2564  ;
2565  return 0;
2566}
2567_ACEOF
2568rm -f conftest.$ac_objext
2569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2570  (eval $ac_compile) 2>&5
2571  ac_status=$?
2572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573  (exit $ac_status); } &&
2574         { ac_try='test -s conftest.$ac_objext'
2575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576  (eval $ac_try) 2>&5
2577  ac_status=$?
2578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579  (exit $ac_status); }; }; then
2580  :
2581else
2582  echo "$as_me: failed program was:" >&5
2583sed 's/^/| /' conftest.$ac_ext >&5
2584
2585continue
2586fi
2587rm -f conftest.$ac_objext conftest.$ac_ext
2588  cat >conftest.$ac_ext <<_ACEOF
2589#line $LINENO "configure"
2590/* confdefs.h.  */
2591_ACEOF
2592cat confdefs.h >>conftest.$ac_ext
2593cat >>conftest.$ac_ext <<_ACEOF
2594/* end confdefs.h.  */
2595$ac_declaration
2596int
2597main ()
2598{
2599exit (42);
2600  ;
2601  return 0;
2602}
2603_ACEOF
2604rm -f conftest.$ac_objext
2605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2606  (eval $ac_compile) 2>&5
2607  ac_status=$?
2608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609  (exit $ac_status); } &&
2610         { ac_try='test -s conftest.$ac_objext'
2611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612  (eval $ac_try) 2>&5
2613  ac_status=$?
2614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615  (exit $ac_status); }; }; then
2616  break
2617else
2618  echo "$as_me: failed program was:" >&5
2619sed 's/^/| /' conftest.$ac_ext >&5
2620
2621fi
2622rm -f conftest.$ac_objext conftest.$ac_ext
2623done
2624rm -f conftest*
2625if test -n "$ac_declaration"; then
2626  echo '#ifdef __cplusplus' >>confdefs.h
2627  echo $ac_declaration      >>confdefs.h
2628  echo '#endif'             >>confdefs.h
2629fi
2630
2631else
2632  echo "$as_me: failed program was:" >&5
2633sed 's/^/| /' conftest.$ac_ext >&5
2634
2635fi
2636rm -f conftest.$ac_objext conftest.$ac_ext
2637ac_ext=c
2638ac_cpp='$CPP $CPPFLAGS'
2639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2641ac_compiler_gnu=$ac_cv_c_compiler_gnu
2642rm -f .deps 2>/dev/null
2643mkdir .deps 2>/dev/null
2644if test -d .deps; then
2645  DEPDIR=.deps
2646else
2647  # MS-DOS does not allow filenames that begin with a dot.
2648  DEPDIR=_deps
2649fi
2650rmdir .deps 2>/dev/null
2651
2652
2653          ac_config_commands="$ac_config_commands depfiles"
2654
2655
2656am_make=${MAKE-make}
2657cat > confinc << 'END'
2658doit:
2659	@echo done
2660END
2661# If we don't find an include directive, just comment out the code.
2662echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2663echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2664am__include="#"
2665am__quote=
2666_am_result=none
2667# First try GNU make style include.
2668echo "include confinc" > confmf
2669# We grep out `Entering directory' and `Leaving directory'
2670# messages which can occur if `w' ends up in MAKEFLAGS.
2671# In particular we don't look at `^make:' because GNU make might
2672# be invoked under some other name (usually "gmake"), in which
2673# case it prints its new name instead of `make'.
2674if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2675   am__include=include
2676   am__quote=
2677   _am_result=GNU
2678fi
2679# Now try BSD make style include.
2680if test "$am__include" = "#"; then
2681   echo '.include "confinc"' > confmf
2682   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2683      am__include=.include
2684      am__quote="\""
2685      _am_result=BSD
2686   fi
2687fi
2688
2689
2690echo "$as_me:$LINENO: result: $_am_result" >&5
2691echo "${ECHO_T}$_am_result" >&6
2692rm -f confinc confmf
2693
2694# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2695if test "${enable_dependency_tracking+set}" = set; then
2696  enableval="$enable_dependency_tracking"
2697
2698fi;
2699if test "x$enable_dependency_tracking" != xno; then
2700  am_depcomp="$ac_aux_dir/depcomp"
2701  AMDEPBACKSLASH='\'
2702fi
2703
2704
2705if test "x$enable_dependency_tracking" != xno; then
2706  AMDEP_TRUE=
2707  AMDEP_FALSE='#'
2708else
2709  AMDEP_TRUE='#'
2710  AMDEP_FALSE=
2711fi
2712
2713
2714
2715
2716depcc="$CC"   am_compiler_list=
2717
2718echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2719echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2720if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2721  echo $ECHO_N "(cached) $ECHO_C" >&6
2722else
2723  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2724  # We make a subdir and do the tests there.  Otherwise we can end up
2725  # making bogus files that we don't know about and never remove.  For
2726  # instance it was reported that on HP-UX the gcc test will end up
2727  # making a dummy file named `D' -- because `-MD' means `put the output
2728  # in D'.
2729  mkdir conftest.dir
2730  # Copy depcomp to subdir because otherwise we won't find it if we're
2731  # using a relative directory.
2732  cp "$am_depcomp" conftest.dir
2733  cd conftest.dir
2734
2735  am_cv_CC_dependencies_compiler_type=none
2736  if test "$am_compiler_list" = ""; then
2737     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2738  fi
2739  for depmode in $am_compiler_list; do
2740    # We need to recreate these files for each test, as the compiler may
2741    # overwrite some of them when testing with obscure command lines.
2742    # This happens at least with the AIX C compiler.
2743    echo '#include "conftest.h"' > conftest.c
2744    echo 'int i;' > conftest.h
2745    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2746
2747    case $depmode in
2748    nosideeffect)
2749      # after this tag, mechanisms are not by side-effect, so they'll
2750      # only be used when explicitly requested
2751      if test "x$enable_dependency_tracking" = xyes; then
2752	continue
2753      else
2754	break
2755      fi
2756      ;;
2757    none) break ;;
2758    esac
2759    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2760    # mode.  It turns out that the SunPro C++ compiler does not properly
2761    # handle `-M -o', and we need to detect this.
2762    if depmode=$depmode \
2763       source=conftest.c object=conftest.o \
2764       depfile=conftest.Po tmpdepfile=conftest.TPo \
2765       $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
2766       grep conftest.h conftest.Po > /dev/null 2>&1 &&
2767       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2768      am_cv_CC_dependencies_compiler_type=$depmode
2769      break
2770    fi
2771  done
2772
2773  cd ..
2774  rm -rf conftest.dir
2775else
2776  am_cv_CC_dependencies_compiler_type=none
2777fi
2778
2779fi
2780echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2781echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2782CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2783
2784
2785
2786if
2787  test "x$enable_dependency_tracking" != xno \
2788  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2789  am__fastdepCC_TRUE=
2790  am__fastdepCC_FALSE='#'
2791else
2792  am__fastdepCC_TRUE='#'
2793  am__fastdepCC_FALSE=
2794fi
2795
2796
2797ac_ext=c
2798ac_cpp='$CPP $CPPFLAGS'
2799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801ac_compiler_gnu=$ac_cv_c_compiler_gnu
2802echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2803echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2804# On Suns, sometimes $CPP names a directory.
2805if test -n "$CPP" && test -d "$CPP"; then
2806  CPP=
2807fi
2808if test -z "$CPP"; then
2809  if test "${ac_cv_prog_CPP+set}" = set; then
2810  echo $ECHO_N "(cached) $ECHO_C" >&6
2811else
2812      # Double quotes because CPP needs to be expanded
2813    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2814    do
2815      ac_preproc_ok=false
2816for ac_c_preproc_warn_flag in '' yes
2817do
2818  # Use a header file that comes with gcc, so configuring glibc
2819  # with a fresh cross-compiler works.
2820  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2821  # <limits.h> exists even on freestanding compilers.
2822  # On the NeXT, cc -E runs the code through the compiler's parser,
2823  # not just through cpp. "Syntax error" is here to catch this case.
2824  cat >conftest.$ac_ext <<_ACEOF
2825#line $LINENO "configure"
2826/* confdefs.h.  */
2827_ACEOF
2828cat confdefs.h >>conftest.$ac_ext
2829cat >>conftest.$ac_ext <<_ACEOF
2830/* end confdefs.h.  */
2831#ifdef __STDC__
2832# include <limits.h>
2833#else
2834# include <assert.h>
2835#endif
2836                     Syntax error
2837_ACEOF
2838if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2839  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2840  ac_status=$?
2841  grep -v '^ *+' conftest.er1 >conftest.err
2842  rm -f conftest.er1
2843  cat conftest.err >&5
2844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845  (exit $ac_status); } >/dev/null; then
2846  if test -s conftest.err; then
2847    ac_cpp_err=$ac_c_preproc_warn_flag
2848  else
2849    ac_cpp_err=
2850  fi
2851else
2852  ac_cpp_err=yes
2853fi
2854if test -z "$ac_cpp_err"; then
2855  :
2856else
2857  echo "$as_me: failed program was:" >&5
2858sed 's/^/| /' conftest.$ac_ext >&5
2859
2860  # Broken: fails on valid input.
2861continue
2862fi
2863rm -f conftest.err conftest.$ac_ext
2864
2865  # OK, works on sane cases.  Now check whether non-existent headers
2866  # can be detected and how.
2867  cat >conftest.$ac_ext <<_ACEOF
2868#line $LINENO "configure"
2869/* confdefs.h.  */
2870_ACEOF
2871cat confdefs.h >>conftest.$ac_ext
2872cat >>conftest.$ac_ext <<_ACEOF
2873/* end confdefs.h.  */
2874#include <ac_nonexistent.h>
2875_ACEOF
2876if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2877  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2878  ac_status=$?
2879  grep -v '^ *+' conftest.er1 >conftest.err
2880  rm -f conftest.er1
2881  cat conftest.err >&5
2882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883  (exit $ac_status); } >/dev/null; then
2884  if test -s conftest.err; then
2885    ac_cpp_err=$ac_c_preproc_warn_flag
2886  else
2887    ac_cpp_err=
2888  fi
2889else
2890  ac_cpp_err=yes
2891fi
2892if test -z "$ac_cpp_err"; then
2893  # Broken: success on invalid input.
2894continue
2895else
2896  echo "$as_me: failed program was:" >&5
2897sed 's/^/| /' conftest.$ac_ext >&5
2898
2899  # Passes both tests.
2900ac_preproc_ok=:
2901break
2902fi
2903rm -f conftest.err conftest.$ac_ext
2904
2905done
2906# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2907rm -f conftest.err conftest.$ac_ext
2908if $ac_preproc_ok; then
2909  break
2910fi
2911
2912    done
2913    ac_cv_prog_CPP=$CPP
2914
2915fi
2916  CPP=$ac_cv_prog_CPP
2917else
2918  ac_cv_prog_CPP=$CPP
2919fi
2920echo "$as_me:$LINENO: result: $CPP" >&5
2921echo "${ECHO_T}$CPP" >&6
2922ac_preproc_ok=false
2923for ac_c_preproc_warn_flag in '' yes
2924do
2925  # Use a header file that comes with gcc, so configuring glibc
2926  # with a fresh cross-compiler works.
2927  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2928  # <limits.h> exists even on freestanding compilers.
2929  # On the NeXT, cc -E runs the code through the compiler's parser,
2930  # not just through cpp. "Syntax error" is here to catch this case.
2931  cat >conftest.$ac_ext <<_ACEOF
2932#line $LINENO "configure"
2933/* confdefs.h.  */
2934_ACEOF
2935cat confdefs.h >>conftest.$ac_ext
2936cat >>conftest.$ac_ext <<_ACEOF
2937/* end confdefs.h.  */
2938#ifdef __STDC__
2939# include <limits.h>
2940#else
2941# include <assert.h>
2942#endif
2943                     Syntax error
2944_ACEOF
2945if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2946  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2947  ac_status=$?
2948  grep -v '^ *+' conftest.er1 >conftest.err
2949  rm -f conftest.er1
2950  cat conftest.err >&5
2951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952  (exit $ac_status); } >/dev/null; then
2953  if test -s conftest.err; then
2954    ac_cpp_err=$ac_c_preproc_warn_flag
2955  else
2956    ac_cpp_err=
2957  fi
2958else
2959  ac_cpp_err=yes
2960fi
2961if test -z "$ac_cpp_err"; then
2962  :
2963else
2964  echo "$as_me: failed program was:" >&5
2965sed 's/^/| /' conftest.$ac_ext >&5
2966
2967  # Broken: fails on valid input.
2968continue
2969fi
2970rm -f conftest.err conftest.$ac_ext
2971
2972  # OK, works on sane cases.  Now check whether non-existent headers
2973  # can be detected and how.
2974  cat >conftest.$ac_ext <<_ACEOF
2975#line $LINENO "configure"
2976/* confdefs.h.  */
2977_ACEOF
2978cat confdefs.h >>conftest.$ac_ext
2979cat >>conftest.$ac_ext <<_ACEOF
2980/* end confdefs.h.  */
2981#include <ac_nonexistent.h>
2982_ACEOF
2983if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2984  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2985  ac_status=$?
2986  grep -v '^ *+' conftest.er1 >conftest.err
2987  rm -f conftest.er1
2988  cat conftest.err >&5
2989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990  (exit $ac_status); } >/dev/null; then
2991  if test -s conftest.err; then
2992    ac_cpp_err=$ac_c_preproc_warn_flag
2993  else
2994    ac_cpp_err=
2995  fi
2996else
2997  ac_cpp_err=yes
2998fi
2999if test -z "$ac_cpp_err"; then
3000  # Broken: success on invalid input.
3001continue
3002else
3003  echo "$as_me: failed program was:" >&5
3004sed 's/^/| /' conftest.$ac_ext >&5
3005
3006  # Passes both tests.
3007ac_preproc_ok=:
3008break
3009fi
3010rm -f conftest.err conftest.$ac_ext
3011
3012done
3013# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3014rm -f conftest.err conftest.$ac_ext
3015if $ac_preproc_ok; then
3016  :
3017else
3018  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3019See \`config.log' for more details." >&5
3020echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3021See \`config.log' for more details." >&2;}
3022   { (exit 1); exit 1; }; }
3023fi
3024
3025ac_ext=c
3026ac_cpp='$CPP $CPPFLAGS'
3027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3029ac_compiler_gnu=$ac_cv_c_compiler_gnu
3030
3031for ac_prog in gawk mawk nawk awk
3032do
3033  # Extract the first word of "$ac_prog", so it can be a program name with args.
3034set dummy $ac_prog; ac_word=$2
3035echo "$as_me:$LINENO: checking for $ac_word" >&5
3036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3037if test "${ac_cv_prog_AWK+set}" = set; then
3038  echo $ECHO_N "(cached) $ECHO_C" >&6
3039else
3040  if test -n "$AWK"; then
3041  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3042else
3043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044for as_dir in $PATH
3045do
3046  IFS=$as_save_IFS
3047  test -z "$as_dir" && as_dir=.
3048  for ac_exec_ext in '' $ac_executable_extensions; do
3049  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3050    ac_cv_prog_AWK="$ac_prog"
3051    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3052    break 2
3053  fi
3054done
3055done
3056
3057fi
3058fi
3059AWK=$ac_cv_prog_AWK
3060if test -n "$AWK"; then
3061  echo "$as_me:$LINENO: result: $AWK" >&5
3062echo "${ECHO_T}$AWK" >&6
3063else
3064  echo "$as_me:$LINENO: result: no" >&5
3065echo "${ECHO_T}no" >&6
3066fi
3067
3068  test -n "$AWK" && break
3069done
3070
3071echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3072echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3073set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3074if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3075  echo $ECHO_N "(cached) $ECHO_C" >&6
3076else
3077  cat >conftest.make <<\_ACEOF
3078all:
3079	@echo 'ac_maketemp="$(MAKE)"'
3080_ACEOF
3081# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3082eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3083if test -n "$ac_maketemp"; then
3084  eval ac_cv_prog_make_${ac_make}_set=yes
3085else
3086  eval ac_cv_prog_make_${ac_make}_set=no
3087fi
3088rm -f conftest.make
3089fi
3090if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3091  echo "$as_me:$LINENO: result: yes" >&5
3092echo "${ECHO_T}yes" >&6
3093  SET_MAKE=
3094else
3095  echo "$as_me:$LINENO: result: no" >&5
3096echo "${ECHO_T}no" >&6
3097  SET_MAKE="MAKE=${MAKE-make}"
3098fi
3099
3100echo "$as_me:$LINENO: checking whether ln -s works" >&5
3101echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3102LN_S=$as_ln_s
3103if test "$LN_S" = "ln -s"; then
3104  echo "$as_me:$LINENO: result: yes" >&5
3105echo "${ECHO_T}yes" >&6
3106else
3107  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3108echo "${ECHO_T}no, using $LN_S" >&6
3109fi
3110
3111# Find a good install program.  We prefer a C program (faster),
3112# so one script is as good as another.  But avoid the broken or
3113# incompatible versions:
3114# SysV /etc/install, /usr/sbin/install
3115# SunOS /usr/etc/install
3116# IRIX /sbin/install
3117# AIX /bin/install
3118# AmigaOS /C/install, which installs bootblocks on floppy discs
3119# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3120# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3121# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3122# ./install, which can be erroneously created by make from ./install.sh.
3123echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3124echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3125if test -z "$INSTALL"; then
3126if test "${ac_cv_path_install+set}" = set; then
3127  echo $ECHO_N "(cached) $ECHO_C" >&6
3128else
3129  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130for as_dir in $PATH
3131do
3132  IFS=$as_save_IFS
3133  test -z "$as_dir" && as_dir=.
3134  # Account for people who put trailing slashes in PATH elements.
3135case $as_dir/ in
3136  ./ | .// | /cC/* | \
3137  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3138  /usr/ucb/* ) ;;
3139  *)
3140    # OSF1 and SCO ODT 3.0 have their own names for install.
3141    # Don't use installbsd from OSF since it installs stuff as root
3142    # by default.
3143    for ac_prog in ginstall scoinst install; do
3144      for ac_exec_ext in '' $ac_executable_extensions; do
3145        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3146          if test $ac_prog = install &&
3147            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3148            # AIX install.  It has an incompatible calling convention.
3149            :
3150          elif test $ac_prog = install &&
3151            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3152            # program-specific install script used by HP pwplus--don't use.
3153            :
3154          else
3155            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3156            break 3
3157          fi
3158        fi
3159      done
3160    done
3161    ;;
3162esac
3163done
3164
3165
3166fi
3167  if test "${ac_cv_path_install+set}" = set; then
3168    INSTALL=$ac_cv_path_install
3169  else
3170    # As a last resort, use the slow shell script.  We don't cache a
3171    # path for INSTALL within a source directory, because that will
3172    # break other packages using the cache if that directory is
3173    # removed, or if the path is relative.
3174    INSTALL=$ac_install_sh
3175  fi
3176fi
3177echo "$as_me:$LINENO: result: $INSTALL" >&5
3178echo "${ECHO_T}$INSTALL" >&6
3179
3180# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3181# It thinks the first close brace ends the variable substitution.
3182test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3183
3184test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3185
3186test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3187
3188
3189
3190
3191echo "$as_me:$LINENO: checking for __attribute__" >&5
3192echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
3193if test "${ac_cv___attribute__+set}" = set; then
3194  echo $ECHO_N "(cached) $ECHO_C" >&6
3195else
3196
3197cat >conftest.$ac_ext <<_ACEOF
3198#line $LINENO "configure"
3199/* confdefs.h.  */
3200_ACEOF
3201cat confdefs.h >>conftest.$ac_ext
3202cat >>conftest.$ac_ext <<_ACEOF
3203/* end confdefs.h.  */
3204
3205#include <stdlib.h>
3206
3207int
3208main ()
3209{
3210
3211static void foo(void) __attribute__ ((noreturn));
3212
3213static void
3214foo(void)
3215{
3216  exit(1);
3217}
3218
3219  ;
3220  return 0;
3221}
3222_ACEOF
3223rm -f conftest.$ac_objext
3224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3225  (eval $ac_compile) 2>&5
3226  ac_status=$?
3227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228  (exit $ac_status); } &&
3229         { ac_try='test -s conftest.$ac_objext'
3230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3231  (eval $ac_try) 2>&5
3232  ac_status=$?
3233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234  (exit $ac_status); }; }; then
3235  ac_cv___attribute__=yes
3236else
3237  echo "$as_me: failed program was:" >&5
3238sed 's/^/| /' conftest.$ac_ext >&5
3239
3240ac_cv___attribute__=no
3241fi
3242rm -f conftest.$ac_objext conftest.$ac_ext
3243fi
3244
3245if test "$ac_cv___attribute__" = "yes"; then
3246
3247cat >>confdefs.h <<\_ACEOF
3248#define HAVE___ATTRIBUTE__ 1
3249_ACEOF
3250
3251fi
3252echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3253echo "${ECHO_T}$ac_cv___attribute__" >&6
3254
3255
3256   # CMU GUESS RUNPATH SWITCH
3257  echo "$as_me:$LINENO: checking for runpath switch" >&5
3258echo $ECHO_N "checking for runpath switch... $ECHO_C" >&6
3259if test "${andrew_runpath_switch+set}" = set; then
3260  echo $ECHO_N "(cached) $ECHO_C" >&6
3261else
3262
3263    # first, try -R
3264    SAVE_LDFLAGS="${LDFLAGS}"
3265    LDFLAGS="-R /usr/lib"
3266    cat >conftest.$ac_ext <<_ACEOF
3267#line $LINENO "configure"
3268/* confdefs.h.  */
3269_ACEOF
3270cat confdefs.h >>conftest.$ac_ext
3271cat >>conftest.$ac_ext <<_ACEOF
3272/* end confdefs.h.  */
3273
3274int
3275main ()
3276{
3277
3278  ;
3279  return 0;
3280}
3281_ACEOF
3282rm -f conftest.$ac_objext conftest$ac_exeext
3283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3284  (eval $ac_link) 2>&5
3285  ac_status=$?
3286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287  (exit $ac_status); } &&
3288         { ac_try='test -s conftest$ac_exeext'
3289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290  (eval $ac_try) 2>&5
3291  ac_status=$?
3292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293  (exit $ac_status); }; }; then
3294  andrew_runpath_switch="-R"
3295else
3296  echo "$as_me: failed program was:" >&5
3297sed 's/^/| /' conftest.$ac_ext >&5
3298
3299
3300  	LDFLAGS="-Wl,-rpath,/usr/lib"
3301    cat >conftest.$ac_ext <<_ACEOF
3302#line $LINENO "configure"
3303/* confdefs.h.  */
3304_ACEOF
3305cat confdefs.h >>conftest.$ac_ext
3306cat >>conftest.$ac_ext <<_ACEOF
3307/* end confdefs.h.  */
3308
3309int
3310main ()
3311{
3312
3313  ;
3314  return 0;
3315}
3316_ACEOF
3317rm -f conftest.$ac_objext conftest$ac_exeext
3318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3319  (eval $ac_link) 2>&5
3320  ac_status=$?
3321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322  (exit $ac_status); } &&
3323         { ac_try='test -s conftest$ac_exeext'
3324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325  (eval $ac_try) 2>&5
3326  ac_status=$?
3327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328  (exit $ac_status); }; }; then
3329  andrew_runpath_switch="-Wl,-rpath,"
3330else
3331  echo "$as_me: failed program was:" >&5
3332sed 's/^/| /' conftest.$ac_ext >&5
3333
3334andrew_runpath_switch="none"
3335fi
3336rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3337
3338fi
3339rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3340  LDFLAGS="${SAVE_LDFLAGS}"
3341
3342fi
3343echo "$as_me:$LINENO: result: $andrew_runpath_switch" >&5
3344echo "${ECHO_T}$andrew_runpath_switch" >&6
3345
3346
3347	save_LIBS="$LIBS"
3348	LIB_SOCKET=""
3349	echo "$as_me:$LINENO: checking for connect" >&5
3350echo $ECHO_N "checking for connect... $ECHO_C" >&6
3351if test "${ac_cv_func_connect+set}" = set; then
3352  echo $ECHO_N "(cached) $ECHO_C" >&6
3353else
3354  cat >conftest.$ac_ext <<_ACEOF
3355#line $LINENO "configure"
3356/* confdefs.h.  */
3357_ACEOF
3358cat confdefs.h >>conftest.$ac_ext
3359cat >>conftest.$ac_ext <<_ACEOF
3360/* end confdefs.h.  */
3361/* System header to define __stub macros and hopefully few prototypes,
3362    which can conflict with char connect (); below.
3363    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3364    <limits.h> exists even on freestanding compilers.  */
3365#ifdef __STDC__
3366# include <limits.h>
3367#else
3368# include <assert.h>
3369#endif
3370/* Override any gcc2 internal prototype to avoid an error.  */
3371#ifdef __cplusplus
3372extern "C"
3373{
3374#endif
3375/* We use char because int might match the return type of a gcc2
3376   builtin and then its argument prototype would still apply.  */
3377char connect ();
3378/* The GNU C library defines this for functions which it implements
3379    to always fail with ENOSYS.  Some functions are actually named
3380    something starting with __ and the normal name is an alias.  */
3381#if defined (__stub_connect) || defined (__stub___connect)
3382choke me
3383#else
3384char (*f) () = connect;
3385#endif
3386#ifdef __cplusplus
3387}
3388#endif
3389
3390int
3391main ()
3392{
3393return f != connect;
3394  ;
3395  return 0;
3396}
3397_ACEOF
3398rm -f conftest.$ac_objext conftest$ac_exeext
3399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3400  (eval $ac_link) 2>&5
3401  ac_status=$?
3402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403  (exit $ac_status); } &&
3404         { ac_try='test -s conftest$ac_exeext'
3405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3406  (eval $ac_try) 2>&5
3407  ac_status=$?
3408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409  (exit $ac_status); }; }; then
3410  ac_cv_func_connect=yes
3411else
3412  echo "$as_me: failed program was:" >&5
3413sed 's/^/| /' conftest.$ac_ext >&5
3414
3415ac_cv_func_connect=no
3416fi
3417rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3418fi
3419echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3420echo "${ECHO_T}$ac_cv_func_connect" >&6
3421if test $ac_cv_func_connect = yes; then
3422  :
3423else
3424  echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3425echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3426if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3427  echo $ECHO_N "(cached) $ECHO_C" >&6
3428else
3429  ac_check_lib_save_LIBS=$LIBS
3430LIBS="-lnsl  $LIBS"
3431cat >conftest.$ac_ext <<_ACEOF
3432#line $LINENO "configure"
3433/* confdefs.h.  */
3434_ACEOF
3435cat confdefs.h >>conftest.$ac_ext
3436cat >>conftest.$ac_ext <<_ACEOF
3437/* end confdefs.h.  */
3438
3439/* Override any gcc2 internal prototype to avoid an error.  */
3440#ifdef __cplusplus
3441extern "C"
3442#endif
3443/* We use char because int might match the return type of a gcc2
3444   builtin and then its argument prototype would still apply.  */
3445char gethostbyname ();
3446int
3447main ()
3448{
3449gethostbyname ();
3450  ;
3451  return 0;
3452}
3453_ACEOF
3454rm -f conftest.$ac_objext conftest$ac_exeext
3455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3456  (eval $ac_link) 2>&5
3457  ac_status=$?
3458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459  (exit $ac_status); } &&
3460         { ac_try='test -s conftest$ac_exeext'
3461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462  (eval $ac_try) 2>&5
3463  ac_status=$?
3464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465  (exit $ac_status); }; }; then
3466  ac_cv_lib_nsl_gethostbyname=yes
3467else
3468  echo "$as_me: failed program was:" >&5
3469sed 's/^/| /' conftest.$ac_ext >&5
3470
3471ac_cv_lib_nsl_gethostbyname=no
3472fi
3473rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3474LIBS=$ac_check_lib_save_LIBS
3475fi
3476echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3477echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3478if test $ac_cv_lib_nsl_gethostbyname = yes; then
3479  LIB_SOCKET="-lnsl $LIB_SOCKET"
3480fi
3481
3482		echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3483echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3484if test "${ac_cv_lib_socket_connect+set}" = set; then
3485  echo $ECHO_N "(cached) $ECHO_C" >&6
3486else
3487  ac_check_lib_save_LIBS=$LIBS
3488LIBS="-lsocket  $LIBS"
3489cat >conftest.$ac_ext <<_ACEOF
3490#line $LINENO "configure"
3491/* confdefs.h.  */
3492_ACEOF
3493cat confdefs.h >>conftest.$ac_ext
3494cat >>conftest.$ac_ext <<_ACEOF
3495/* end confdefs.h.  */
3496
3497/* Override any gcc2 internal prototype to avoid an error.  */
3498#ifdef __cplusplus
3499extern "C"
3500#endif
3501/* We use char because int might match the return type of a gcc2
3502   builtin and then its argument prototype would still apply.  */
3503char connect ();
3504int
3505main ()
3506{
3507connect ();
3508  ;
3509  return 0;
3510}
3511_ACEOF
3512rm -f conftest.$ac_objext conftest$ac_exeext
3513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3514  (eval $ac_link) 2>&5
3515  ac_status=$?
3516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517  (exit $ac_status); } &&
3518         { ac_try='test -s conftest$ac_exeext'
3519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520  (eval $ac_try) 2>&5
3521  ac_status=$?
3522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523  (exit $ac_status); }; }; then
3524  ac_cv_lib_socket_connect=yes
3525else
3526  echo "$as_me: failed program was:" >&5
3527sed 's/^/| /' conftest.$ac_ext >&5
3528
3529ac_cv_lib_socket_connect=no
3530fi
3531rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3532LIBS=$ac_check_lib_save_LIBS
3533fi
3534echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3535echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3536if test $ac_cv_lib_socket_connect = yes; then
3537  LIB_SOCKET="-lsocket $LIB_SOCKET"
3538fi
3539
3540
3541fi
3542
3543	LIBS="$LIB_SOCKET $save_LIBS"
3544	echo "$as_me:$LINENO: checking for res_search" >&5
3545echo $ECHO_N "checking for res_search... $ECHO_C" >&6
3546if test "${ac_cv_func_res_search+set}" = set; then
3547  echo $ECHO_N "(cached) $ECHO_C" >&6
3548else
3549  cat >conftest.$ac_ext <<_ACEOF
3550#line $LINENO "configure"
3551/* confdefs.h.  */
3552_ACEOF
3553cat confdefs.h >>conftest.$ac_ext
3554cat >>conftest.$ac_ext <<_ACEOF
3555/* end confdefs.h.  */
3556/* System header to define __stub macros and hopefully few prototypes,
3557    which can conflict with char res_search (); below.
3558    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3559    <limits.h> exists even on freestanding compilers.  */
3560#ifdef __STDC__
3561# include <limits.h>
3562#else
3563# include <assert.h>
3564#endif
3565/* Override any gcc2 internal prototype to avoid an error.  */
3566#ifdef __cplusplus
3567extern "C"
3568{
3569#endif
3570/* We use char because int might match the return type of a gcc2
3571   builtin and then its argument prototype would still apply.  */
3572char res_search ();
3573/* The GNU C library defines this for functions which it implements
3574    to always fail with ENOSYS.  Some functions are actually named
3575    something starting with __ and the normal name is an alias.  */
3576#if defined (__stub_res_search) || defined (__stub___res_search)
3577choke me
3578#else
3579char (*f) () = res_search;
3580#endif
3581#ifdef __cplusplus
3582}
3583#endif
3584
3585int
3586main ()
3587{
3588return f != res_search;
3589  ;
3590  return 0;
3591}
3592_ACEOF
3593rm -f conftest.$ac_objext conftest$ac_exeext
3594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3595  (eval $ac_link) 2>&5
3596  ac_status=$?
3597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598  (exit $ac_status); } &&
3599         { ac_try='test -s conftest$ac_exeext'
3600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601  (eval $ac_try) 2>&5
3602  ac_status=$?
3603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604  (exit $ac_status); }; }; then
3605  ac_cv_func_res_search=yes
3606else
3607  echo "$as_me: failed program was:" >&5
3608sed 's/^/| /' conftest.$ac_ext >&5
3609
3610ac_cv_func_res_search=no
3611fi
3612rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3613fi
3614echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
3615echo "${ECHO_T}$ac_cv_func_res_search" >&6
3616if test $ac_cv_func_res_search = yes; then
3617  :
3618else
3619  LIBS="-lresolv $LIB_SOCKET $save_LIBS"
3620		cat >conftest.$ac_ext <<_ACEOF
3621#line $LINENO "configure"
3622/* confdefs.h.  */
3623_ACEOF
3624cat confdefs.h >>conftest.$ac_ext
3625cat >>conftest.$ac_ext <<_ACEOF
3626/* end confdefs.h.  */
3627
3628#include <sys/types.h>
3629#include <netinet/in.h>
3630#include <arpa/nameser.h>
3631#ifdef HAVE_ARPA_NAMESER_COMPAT_H
3632#include <arpa/nameser_compat.h>
3633#endif
3634#include <resolv.h>
3635int
3636main ()
3637{
3638
3639const char host[12]="openafs.org";
3640u_char ans[1024];
3641res_search( host, C_IN, T_MX, (u_char *)&ans, sizeof(ans));
3642return 0;
3643
3644  ;
3645  return 0;
3646}
3647_ACEOF
3648rm -f conftest.$ac_objext conftest$ac_exeext
3649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3650  (eval $ac_link) 2>&5
3651  ac_status=$?
3652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653  (exit $ac_status); } &&
3654         { ac_try='test -s conftest$ac_exeext'
3655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3656  (eval $ac_try) 2>&5
3657  ac_status=$?
3658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659  (exit $ac_status); }; }; then
3660  LIB_SOCKET="-lresolv $LIB_SOCKET"
3661else
3662  echo "$as_me: failed program was:" >&5
3663sed 's/^/| /' conftest.$ac_ext >&5
3664
3665fi
3666rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3667
3668fi
3669
3670	LIBS="$LIB_SOCKET $save_LIBS"
3671
3672
3673for ac_func in dn_expand dns_lookup
3674do
3675as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3676echo "$as_me:$LINENO: checking for $ac_func" >&5
3677echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3678if eval "test \"\${$as_ac_var+set}\" = set"; then
3679  echo $ECHO_N "(cached) $ECHO_C" >&6
3680else
3681  cat >conftest.$ac_ext <<_ACEOF
3682#line $LINENO "configure"
3683/* confdefs.h.  */
3684_ACEOF
3685cat confdefs.h >>conftest.$ac_ext
3686cat >>conftest.$ac_ext <<_ACEOF
3687/* end confdefs.h.  */
3688/* System header to define __stub macros and hopefully few prototypes,
3689    which can conflict with char $ac_func (); below.
3690    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3691    <limits.h> exists even on freestanding compilers.  */
3692#ifdef __STDC__
3693# include <limits.h>
3694#else
3695# include <assert.h>
3696#endif
3697/* Override any gcc2 internal prototype to avoid an error.  */
3698#ifdef __cplusplus
3699extern "C"
3700{
3701#endif
3702/* We use char because int might match the return type of a gcc2
3703   builtin and then its argument prototype would still apply.  */
3704char $ac_func ();
3705/* The GNU C library defines this for functions which it implements
3706    to always fail with ENOSYS.  Some functions are actually named
3707    something starting with __ and the normal name is an alias.  */
3708#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3709choke me
3710#else
3711char (*f) () = $ac_func;
3712#endif
3713#ifdef __cplusplus
3714}
3715#endif
3716
3717int
3718main ()
3719{
3720return f != $ac_func;
3721  ;
3722  return 0;
3723}
3724_ACEOF
3725rm -f conftest.$ac_objext conftest$ac_exeext
3726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3727  (eval $ac_link) 2>&5
3728  ac_status=$?
3729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730  (exit $ac_status); } &&
3731         { ac_try='test -s conftest$ac_exeext'
3732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733  (eval $ac_try) 2>&5
3734  ac_status=$?
3735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736  (exit $ac_status); }; }; then
3737  eval "$as_ac_var=yes"
3738else
3739  echo "$as_me: failed program was:" >&5
3740sed 's/^/| /' conftest.$ac_ext >&5
3741
3742eval "$as_ac_var=no"
3743fi
3744rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3745fi
3746echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3747echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3748if test `eval echo '${'$as_ac_var'}'` = yes; then
3749  cat >>confdefs.h <<_ACEOF
3750#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3751_ACEOF
3752
3753fi
3754done
3755
3756	LIBS="$save_LIBS"
3757
3758
3759
3760
3761echo "$as_me:$LINENO: checking for egrep" >&5
3762echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3763if test "${ac_cv_prog_egrep+set}" = set; then
3764  echo $ECHO_N "(cached) $ECHO_C" >&6
3765else
3766  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3767    then ac_cv_prog_egrep='grep -E'
3768    else ac_cv_prog_egrep='egrep'
3769    fi
3770fi
3771echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3772echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3773 EGREP=$ac_cv_prog_egrep
3774
3775
3776echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3777echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3778if test "${ac_cv_header_stdc+set}" = set; then
3779  echo $ECHO_N "(cached) $ECHO_C" >&6
3780else
3781  cat >conftest.$ac_ext <<_ACEOF
3782#line $LINENO "configure"
3783/* confdefs.h.  */
3784_ACEOF
3785cat confdefs.h >>conftest.$ac_ext
3786cat >>conftest.$ac_ext <<_ACEOF
3787/* end confdefs.h.  */
3788#include <stdlib.h>
3789#include <stdarg.h>
3790#include <string.h>
3791#include <float.h>
3792
3793int
3794main ()
3795{
3796
3797  ;
3798  return 0;
3799}
3800_ACEOF
3801rm -f conftest.$ac_objext
3802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3803  (eval $ac_compile) 2>&5
3804  ac_status=$?
3805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806  (exit $ac_status); } &&
3807         { ac_try='test -s conftest.$ac_objext'
3808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3809  (eval $ac_try) 2>&5
3810  ac_status=$?
3811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812  (exit $ac_status); }; }; then
3813  ac_cv_header_stdc=yes
3814else
3815  echo "$as_me: failed program was:" >&5
3816sed 's/^/| /' conftest.$ac_ext >&5
3817
3818ac_cv_header_stdc=no
3819fi
3820rm -f conftest.$ac_objext conftest.$ac_ext
3821
3822if test $ac_cv_header_stdc = yes; then
3823  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3824  cat >conftest.$ac_ext <<_ACEOF
3825#line $LINENO "configure"
3826/* confdefs.h.  */
3827_ACEOF
3828cat confdefs.h >>conftest.$ac_ext
3829cat >>conftest.$ac_ext <<_ACEOF
3830/* end confdefs.h.  */
3831#include <string.h>
3832
3833_ACEOF
3834if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3835  $EGREP "memchr" >/dev/null 2>&1; then
3836  :
3837else
3838  ac_cv_header_stdc=no
3839fi
3840rm -f conftest*
3841
3842fi
3843
3844if test $ac_cv_header_stdc = yes; then
3845  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3846  cat >conftest.$ac_ext <<_ACEOF
3847#line $LINENO "configure"
3848/* confdefs.h.  */
3849_ACEOF
3850cat confdefs.h >>conftest.$ac_ext
3851cat >>conftest.$ac_ext <<_ACEOF
3852/* end confdefs.h.  */
3853#include <stdlib.h>
3854
3855_ACEOF
3856if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3857  $EGREP "free" >/dev/null 2>&1; then
3858  :
3859else
3860  ac_cv_header_stdc=no
3861fi
3862rm -f conftest*
3863
3864fi
3865
3866if test $ac_cv_header_stdc = yes; then
3867  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3868  if test "$cross_compiling" = yes; then
3869  :
3870else
3871  cat >conftest.$ac_ext <<_ACEOF
3872#line $LINENO "configure"
3873/* confdefs.h.  */
3874_ACEOF
3875cat confdefs.h >>conftest.$ac_ext
3876cat >>conftest.$ac_ext <<_ACEOF
3877/* end confdefs.h.  */
3878#include <ctype.h>
3879#if ((' ' & 0x0FF) == 0x020)
3880# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3881# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3882#else
3883# define ISLOWER(c) \
3884                   (('a' <= (c) && (c) <= 'i') \
3885                     || ('j' <= (c) && (c) <= 'r') \
3886                     || ('s' <= (c) && (c) <= 'z'))
3887# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3888#endif
3889
3890#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3891int
3892main ()
3893{
3894  int i;
3895  for (i = 0; i < 256; i++)
3896    if (XOR (islower (i), ISLOWER (i))
3897        || toupper (i) != TOUPPER (i))
3898      exit(2);
3899  exit (0);
3900}
3901_ACEOF
3902rm -f conftest$ac_exeext
3903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3904  (eval $ac_link) 2>&5
3905  ac_status=$?
3906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3908  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3909  (eval $ac_try) 2>&5
3910  ac_status=$?
3911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912  (exit $ac_status); }; }; then
3913  :
3914else
3915  echo "$as_me: program exited with status $ac_status" >&5
3916echo "$as_me: failed program was:" >&5
3917sed 's/^/| /' conftest.$ac_ext >&5
3918
3919( exit $ac_status )
3920ac_cv_header_stdc=no
3921fi
3922rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3923fi
3924fi
3925fi
3926echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3927echo "${ECHO_T}$ac_cv_header_stdc" >&6
3928if test $ac_cv_header_stdc = yes; then
3929
3930cat >>confdefs.h <<\_ACEOF
3931#define STDC_HEADERS 1
3932_ACEOF
3933
3934fi
3935
3936# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3947                  inttypes.h stdint.h unistd.h
3948do
3949as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3950echo "$as_me:$LINENO: checking for $ac_header" >&5
3951echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3952if eval "test \"\${$as_ac_Header+set}\" = set"; then
3953  echo $ECHO_N "(cached) $ECHO_C" >&6
3954else
3955  cat >conftest.$ac_ext <<_ACEOF
3956#line $LINENO "configure"
3957/* confdefs.h.  */
3958_ACEOF
3959cat confdefs.h >>conftest.$ac_ext
3960cat >>conftest.$ac_ext <<_ACEOF
3961/* end confdefs.h.  */
3962$ac_includes_default
3963
3964#include <$ac_header>
3965_ACEOF
3966rm -f conftest.$ac_objext
3967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3968  (eval $ac_compile) 2>&5
3969  ac_status=$?
3970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971  (exit $ac_status); } &&
3972         { ac_try='test -s conftest.$ac_objext'
3973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974  (eval $ac_try) 2>&5
3975  ac_status=$?
3976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977  (exit $ac_status); }; }; then
3978  eval "$as_ac_Header=yes"
3979else
3980  echo "$as_me: failed program was:" >&5
3981sed 's/^/| /' conftest.$ac_ext >&5
3982
3983eval "$as_ac_Header=no"
3984fi
3985rm -f conftest.$ac_objext conftest.$ac_ext
3986fi
3987echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3988echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3989if test `eval echo '${'$as_ac_Header'}'` = yes; then
3990  cat >>confdefs.h <<_ACEOF
3991#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3992_ACEOF
3993
3994fi
3995
3996done
3997
3998
3999
4000# Check whether --with-lib-subdir or --without-lib-subdir was given.
4001if test "${with_lib_subdir+set}" = set; then
4002  withval="$with_lib_subdir"
4003
4004fi;
4005echo "$as_me:$LINENO: checking for long" >&5
4006echo $ECHO_N "checking for long... $ECHO_C" >&6
4007if test "${ac_cv_type_long+set}" = set; then
4008  echo $ECHO_N "(cached) $ECHO_C" >&6
4009else
4010  cat >conftest.$ac_ext <<_ACEOF
4011#line $LINENO "configure"
4012/* confdefs.h.  */
4013_ACEOF
4014cat confdefs.h >>conftest.$ac_ext
4015cat >>conftest.$ac_ext <<_ACEOF
4016/* end confdefs.h.  */
4017$ac_includes_default
4018int
4019main ()
4020{
4021if ((long *) 0)
4022  return 0;
4023if (sizeof (long))
4024  return 0;
4025  ;
4026  return 0;
4027}
4028_ACEOF
4029rm -f conftest.$ac_objext
4030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4031  (eval $ac_compile) 2>&5
4032  ac_status=$?
4033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034  (exit $ac_status); } &&
4035         { ac_try='test -s conftest.$ac_objext'
4036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037  (eval $ac_try) 2>&5
4038  ac_status=$?
4039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040  (exit $ac_status); }; }; then
4041  ac_cv_type_long=yes
4042else
4043  echo "$as_me: failed program was:" >&5
4044sed 's/^/| /' conftest.$ac_ext >&5
4045
4046ac_cv_type_long=no
4047fi
4048rm -f conftest.$ac_objext conftest.$ac_ext
4049fi
4050echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4051echo "${ECHO_T}$ac_cv_type_long" >&6
4052
4053echo "$as_me:$LINENO: checking size of long" >&5
4054echo $ECHO_N "checking size of long... $ECHO_C" >&6
4055if test "${ac_cv_sizeof_long+set}" = set; then
4056  echo $ECHO_N "(cached) $ECHO_C" >&6
4057else
4058  if test "$ac_cv_type_long" = yes; then
4059  # The cast to unsigned long works around a bug in the HP C Compiler
4060  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4061  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4062  # This bug is HP SR number 8606223364.
4063  if test "$cross_compiling" = yes; then
4064  # Depending upon the size, compute the lo and hi bounds.
4065cat >conftest.$ac_ext <<_ACEOF
4066#line $LINENO "configure"
4067/* confdefs.h.  */
4068_ACEOF
4069cat confdefs.h >>conftest.$ac_ext
4070cat >>conftest.$ac_ext <<_ACEOF
4071/* end confdefs.h.  */
4072$ac_includes_default
4073int
4074main ()
4075{
4076static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4077test_array [0] = 0
4078
4079  ;
4080  return 0;
4081}
4082_ACEOF
4083rm -f conftest.$ac_objext
4084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4085  (eval $ac_compile) 2>&5
4086  ac_status=$?
4087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088  (exit $ac_status); } &&
4089         { ac_try='test -s conftest.$ac_objext'
4090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4091  (eval $ac_try) 2>&5
4092  ac_status=$?
4093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094  (exit $ac_status); }; }; then
4095  ac_lo=0 ac_mid=0
4096  while :; do
4097    cat >conftest.$ac_ext <<_ACEOF
4098#line $LINENO "configure"
4099/* confdefs.h.  */
4100_ACEOF
4101cat confdefs.h >>conftest.$ac_ext
4102cat >>conftest.$ac_ext <<_ACEOF
4103/* end confdefs.h.  */
4104$ac_includes_default
4105int
4106main ()
4107{
4108static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4109test_array [0] = 0
4110
4111  ;
4112  return 0;
4113}
4114_ACEOF
4115rm -f conftest.$ac_objext
4116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4117  (eval $ac_compile) 2>&5
4118  ac_status=$?
4119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120  (exit $ac_status); } &&
4121         { ac_try='test -s conftest.$ac_objext'
4122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123  (eval $ac_try) 2>&5
4124  ac_status=$?
4125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126  (exit $ac_status); }; }; then
4127  ac_hi=$ac_mid; break
4128else
4129  echo "$as_me: failed program was:" >&5
4130sed 's/^/| /' conftest.$ac_ext >&5
4131
4132ac_lo=`expr $ac_mid + 1`
4133                    if test $ac_lo -le $ac_mid; then
4134                      ac_lo= ac_hi=
4135                      break
4136                    fi
4137                    ac_mid=`expr 2 '*' $ac_mid + 1`
4138fi
4139rm -f conftest.$ac_objext conftest.$ac_ext
4140  done
4141else
4142  echo "$as_me: failed program was:" >&5
4143sed 's/^/| /' conftest.$ac_ext >&5
4144
4145cat >conftest.$ac_ext <<_ACEOF
4146#line $LINENO "configure"
4147/* confdefs.h.  */
4148_ACEOF
4149cat confdefs.h >>conftest.$ac_ext
4150cat >>conftest.$ac_ext <<_ACEOF
4151/* end confdefs.h.  */
4152$ac_includes_default
4153int
4154main ()
4155{
4156static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4157test_array [0] = 0
4158
4159  ;
4160  return 0;
4161}
4162_ACEOF
4163rm -f conftest.$ac_objext
4164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4165  (eval $ac_compile) 2>&5
4166  ac_status=$?
4167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168  (exit $ac_status); } &&
4169         { ac_try='test -s conftest.$ac_objext'
4170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171  (eval $ac_try) 2>&5
4172  ac_status=$?
4173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174  (exit $ac_status); }; }; then
4175  ac_hi=-1 ac_mid=-1
4176  while :; do
4177    cat >conftest.$ac_ext <<_ACEOF
4178#line $LINENO "configure"
4179/* confdefs.h.  */
4180_ACEOF
4181cat confdefs.h >>conftest.$ac_ext
4182cat >>conftest.$ac_ext <<_ACEOF
4183/* end confdefs.h.  */
4184$ac_includes_default
4185int
4186main ()
4187{
4188static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4189test_array [0] = 0
4190
4191  ;
4192  return 0;
4193}
4194_ACEOF
4195rm -f conftest.$ac_objext
4196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4197  (eval $ac_compile) 2>&5
4198  ac_status=$?
4199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200  (exit $ac_status); } &&
4201         { ac_try='test -s conftest.$ac_objext'
4202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203  (eval $ac_try) 2>&5
4204  ac_status=$?
4205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206  (exit $ac_status); }; }; then
4207  ac_lo=$ac_mid; break
4208else
4209  echo "$as_me: failed program was:" >&5
4210sed 's/^/| /' conftest.$ac_ext >&5
4211
4212ac_hi=`expr '(' $ac_mid ')' - 1`
4213                       if test $ac_mid -le $ac_hi; then
4214                         ac_lo= ac_hi=
4215                         break
4216                       fi
4217                       ac_mid=`expr 2 '*' $ac_mid`
4218fi
4219rm -f conftest.$ac_objext conftest.$ac_ext
4220  done
4221else
4222  echo "$as_me: failed program was:" >&5
4223sed 's/^/| /' conftest.$ac_ext >&5
4224
4225ac_lo= ac_hi=
4226fi
4227rm -f conftest.$ac_objext conftest.$ac_ext
4228fi
4229rm -f conftest.$ac_objext conftest.$ac_ext
4230# Binary search between lo and hi bounds.
4231while test "x$ac_lo" != "x$ac_hi"; do
4232  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4233  cat >conftest.$ac_ext <<_ACEOF
4234#line $LINENO "configure"
4235/* confdefs.h.  */
4236_ACEOF
4237cat confdefs.h >>conftest.$ac_ext
4238cat >>conftest.$ac_ext <<_ACEOF
4239/* end confdefs.h.  */
4240$ac_includes_default
4241int
4242main ()
4243{
4244static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4245test_array [0] = 0
4246
4247  ;
4248  return 0;
4249}
4250_ACEOF
4251rm -f conftest.$ac_objext
4252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4253  (eval $ac_compile) 2>&5
4254  ac_status=$?
4255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256  (exit $ac_status); } &&
4257         { ac_try='test -s conftest.$ac_objext'
4258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259  (eval $ac_try) 2>&5
4260  ac_status=$?
4261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262  (exit $ac_status); }; }; then
4263  ac_hi=$ac_mid
4264else
4265  echo "$as_me: failed program was:" >&5
4266sed 's/^/| /' conftest.$ac_ext >&5
4267
4268ac_lo=`expr '(' $ac_mid ')' + 1`
4269fi
4270rm -f conftest.$ac_objext conftest.$ac_ext
4271done
4272case $ac_lo in
4273?*) ac_cv_sizeof_long=$ac_lo;;
4274'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4275See \`config.log' for more details." >&5
4276echo "$as_me: error: cannot compute sizeof (long), 77
4277See \`config.log' for more details." >&2;}
4278   { (exit 1); exit 1; }; } ;;
4279esac
4280else
4281  if test "$cross_compiling" = yes; then
4282  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4283See \`config.log' for more details." >&5
4284echo "$as_me: error: cannot run test program while cross compiling
4285See \`config.log' for more details." >&2;}
4286   { (exit 1); exit 1; }; }
4287else
4288  cat >conftest.$ac_ext <<_ACEOF
4289#line $LINENO "configure"
4290/* confdefs.h.  */
4291_ACEOF
4292cat confdefs.h >>conftest.$ac_ext
4293cat >>conftest.$ac_ext <<_ACEOF
4294/* end confdefs.h.  */
4295$ac_includes_default
4296long longval () { return (long) (sizeof (long)); }
4297unsigned long ulongval () { return (long) (sizeof (long)); }
4298#include <stdio.h>
4299#include <stdlib.h>
4300int
4301main ()
4302{
4303
4304  FILE *f = fopen ("conftest.val", "w");
4305  if (! f)
4306    exit (1);
4307  if (((long) (sizeof (long))) < 0)
4308    {
4309      long i = longval ();
4310      if (i != ((long) (sizeof (long))))
4311	exit (1);
4312      fprintf (f, "%ld\n", i);
4313    }
4314  else
4315    {
4316      unsigned long i = ulongval ();
4317      if (i != ((long) (sizeof (long))))
4318	exit (1);
4319      fprintf (f, "%lu\n", i);
4320    }
4321  exit (ferror (f) || fclose (f) != 0);
4322
4323  ;
4324  return 0;
4325}
4326_ACEOF
4327rm -f conftest$ac_exeext
4328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4329  (eval $ac_link) 2>&5
4330  ac_status=$?
4331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4334  (eval $ac_try) 2>&5
4335  ac_status=$?
4336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337  (exit $ac_status); }; }; then
4338  ac_cv_sizeof_long=`cat conftest.val`
4339else
4340  echo "$as_me: program exited with status $ac_status" >&5
4341echo "$as_me: failed program was:" >&5
4342sed 's/^/| /' conftest.$ac_ext >&5
4343
4344( exit $ac_status )
4345{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4346See \`config.log' for more details." >&5
4347echo "$as_me: error: cannot compute sizeof (long), 77
4348See \`config.log' for more details." >&2;}
4349   { (exit 1); exit 1; }; }
4350fi
4351rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4352fi
4353fi
4354rm -f conftest.val
4355else
4356  ac_cv_sizeof_long=0
4357fi
4358fi
4359echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4360echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4361cat >>confdefs.h <<_ACEOF
4362#define SIZEOF_LONG $ac_cv_sizeof_long
4363_ACEOF
4364
4365
4366echo "$as_me:$LINENO: checking what directory libraries are found in" >&5
4367echo $ECHO_N "checking what directory libraries are found in... $ECHO_C" >&6
4368if test "${ac_cv_cmu_lib_subdir+set}" = set; then
4369  echo $ECHO_N "(cached) $ECHO_C" >&6
4370else
4371  test "X$with_lib_subdir" = "Xyes" && with_lib_subdir=
4372test "X$with_lib_subdir" = "Xno" && with_lib_subdir=
4373if test "X$with_lib_subdir" = "X" ; then
4374  ac_cv_cmu_lib_subdir=lib
4375  if test $ac_cv_sizeof_long -eq 4 ; then
4376    test -d /usr/lib32 && ac_cv_cmu_lib_subdir=lib32
4377  fi
4378  if test $ac_cv_sizeof_long -eq 8 ; then
4379    test -d /usr/lib64 && ac_cv_cmu_lib_subdir=lib64
4380  fi
4381else
4382  ac_cv_cmu_lib_subdir=$with_lib_subdir
4383fi
4384fi
4385echo "$as_me:$LINENO: result: $ac_cv_cmu_lib_subdir" >&5
4386echo "${ECHO_T}$ac_cv_cmu_lib_subdir" >&6
4387CMU_LIB_SUBDIR=$ac_cv_cmu_lib_subdir
4388
4389
4390
4391
4392
4393# Check whether --with-openssl or --without-openssl was given.
4394if test "${with_openssl+set}" = set; then
4395  withval="$with_openssl"
4396  with_openssl=$withval
4397else
4398  with_openssl="yes"
4399fi;
4400
4401	save_CPPFLAGS=$CPPFLAGS
4402	save_LDFLAGS=$LDFLAGS
4403
4404	if test -d $with_openssl; then
4405	  CPPFLAGS="${CPPFLAGS} -I${with_openssl}/include"
4406
4407  # this is CMU ADD LIBPATH
4408  if test "$andrew_runpath_switch" = "none" ; then
4409	LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
4410  else
4411	LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR $andrew_runpath_switch${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
4412  fi
4413
4414	fi
4415
4416case "$with_openssl" in
4417	no)
4418	  with_openssl="no";;
4419	*)
4420	  	                  LIB_RSAREF=""
4421	        echo "$as_me:$LINENO: checking for RSAPublicEncrypt in -lrsaref" >&5
4422echo $ECHO_N "checking for RSAPublicEncrypt in -lrsaref... $ECHO_C" >&6
4423if test "${ac_cv_lib_rsaref_RSAPublicEncrypt+set}" = set; then
4424  echo $ECHO_N "(cached) $ECHO_C" >&6
4425else
4426  ac_check_lib_save_LIBS=$LIBS
4427LIBS="-lrsaref  $LIBS"
4428cat >conftest.$ac_ext <<_ACEOF
4429#line $LINENO "configure"
4430/* confdefs.h.  */
4431_ACEOF
4432cat confdefs.h >>conftest.$ac_ext
4433cat >>conftest.$ac_ext <<_ACEOF
4434/* end confdefs.h.  */
4435
4436/* Override any gcc2 internal prototype to avoid an error.  */
4437#ifdef __cplusplus
4438extern "C"
4439#endif
4440/* We use char because int might match the return type of a gcc2
4441   builtin and then its argument prototype would still apply.  */
4442char RSAPublicEncrypt ();
4443int
4444main ()
4445{
4446RSAPublicEncrypt ();
4447  ;
4448  return 0;
4449}
4450_ACEOF
4451rm -f conftest.$ac_objext conftest$ac_exeext
4452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4453  (eval $ac_link) 2>&5
4454  ac_status=$?
4455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456  (exit $ac_status); } &&
4457         { ac_try='test -s conftest$ac_exeext'
4458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459  (eval $ac_try) 2>&5
4460  ac_status=$?
4461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462  (exit $ac_status); }; }; then
4463  ac_cv_lib_rsaref_RSAPublicEncrypt=yes
4464else
4465  echo "$as_me: failed program was:" >&5
4466sed 's/^/| /' conftest.$ac_ext >&5
4467
4468ac_cv_lib_rsaref_RSAPublicEncrypt=no
4469fi
4470rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4471LIBS=$ac_check_lib_save_LIBS
4472fi
4473echo "$as_me:$LINENO: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5
4474echo "${ECHO_T}$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6
4475if test $ac_cv_lib_rsaref_RSAPublicEncrypt = yes; then
4476  LIB_RSAREF="-lRSAglue -lrsaref"; cmu_have_rsaref=yes
4477else
4478  cmu_have_rsaref=no
4479fi
4480
4481
4482		if test "${ac_cv_header_openssl_evp_h+set}" = set; then
4483  echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
4484echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6
4485if test "${ac_cv_header_openssl_evp_h+set}" = set; then
4486  echo $ECHO_N "(cached) $ECHO_C" >&6
4487fi
4488echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
4489echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6
4490else
4491  # Is the header compilable?
4492echo "$as_me:$LINENO: checking openssl/evp.h usability" >&5
4493echo $ECHO_N "checking openssl/evp.h usability... $ECHO_C" >&6
4494cat >conftest.$ac_ext <<_ACEOF
4495#line $LINENO "configure"
4496/* confdefs.h.  */
4497_ACEOF
4498cat confdefs.h >>conftest.$ac_ext
4499cat >>conftest.$ac_ext <<_ACEOF
4500/* end confdefs.h.  */
4501$ac_includes_default
4502#include <openssl/evp.h>
4503_ACEOF
4504rm -f conftest.$ac_objext
4505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4506  (eval $ac_compile) 2>&5
4507  ac_status=$?
4508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509  (exit $ac_status); } &&
4510         { ac_try='test -s conftest.$ac_objext'
4511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4512  (eval $ac_try) 2>&5
4513  ac_status=$?
4514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515  (exit $ac_status); }; }; then
4516  ac_header_compiler=yes
4517else
4518  echo "$as_me: failed program was:" >&5
4519sed 's/^/| /' conftest.$ac_ext >&5
4520
4521ac_header_compiler=no
4522fi
4523rm -f conftest.$ac_objext conftest.$ac_ext
4524echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4525echo "${ECHO_T}$ac_header_compiler" >&6
4526
4527# Is the header present?
4528echo "$as_me:$LINENO: checking openssl/evp.h presence" >&5
4529echo $ECHO_N "checking openssl/evp.h presence... $ECHO_C" >&6
4530cat >conftest.$ac_ext <<_ACEOF
4531#line $LINENO "configure"
4532/* confdefs.h.  */
4533_ACEOF
4534cat confdefs.h >>conftest.$ac_ext
4535cat >>conftest.$ac_ext <<_ACEOF
4536/* end confdefs.h.  */
4537#include <openssl/evp.h>
4538_ACEOF
4539if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4540  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4541  ac_status=$?
4542  grep -v '^ *+' conftest.er1 >conftest.err
4543  rm -f conftest.er1
4544  cat conftest.err >&5
4545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546  (exit $ac_status); } >/dev/null; then
4547  if test -s conftest.err; then
4548    ac_cpp_err=$ac_c_preproc_warn_flag
4549  else
4550    ac_cpp_err=
4551  fi
4552else
4553  ac_cpp_err=yes
4554fi
4555if test -z "$ac_cpp_err"; then
4556  ac_header_preproc=yes
4557else
4558  echo "$as_me: failed program was:" >&5
4559sed 's/^/| /' conftest.$ac_ext >&5
4560
4561  ac_header_preproc=no
4562fi
4563rm -f conftest.err conftest.$ac_ext
4564echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4565echo "${ECHO_T}$ac_header_preproc" >&6
4566
4567# So?  What about this header?
4568case $ac_header_compiler:$ac_header_preproc in
4569  yes:no )
4570    { echo "$as_me:$LINENO: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&5
4571echo "$as_me: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4572    { echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&5
4573echo "$as_me: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&2;}
4574    (
4575      cat <<\_ASBOX
4576## ------------------------------------ ##
4577## Report this to bug-autoconf@gnu.org. ##
4578## ------------------------------------ ##
4579_ASBOX
4580    ) |
4581      sed "s/^/$as_me: WARNING:     /" >&2
4582    ;;
4583  no:yes )
4584    { echo "$as_me:$LINENO: WARNING: openssl/evp.h: present but cannot be compiled" >&5
4585echo "$as_me: WARNING: openssl/evp.h: present but cannot be compiled" >&2;}
4586    { echo "$as_me:$LINENO: WARNING: openssl/evp.h: check for missing prerequisite headers?" >&5
4587echo "$as_me: WARNING: openssl/evp.h: check for missing prerequisite headers?" >&2;}
4588    { echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&5
4589echo "$as_me: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&2;}
4590    (
4591      cat <<\_ASBOX
4592## ------------------------------------ ##
4593## Report this to bug-autoconf@gnu.org. ##
4594## ------------------------------------ ##
4595_ASBOX
4596    ) |
4597      sed "s/^/$as_me: WARNING:     /" >&2
4598    ;;
4599esac
4600echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
4601echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6
4602if test "${ac_cv_header_openssl_evp_h+set}" = set; then
4603  echo $ECHO_N "(cached) $ECHO_C" >&6
4604else
4605  ac_cv_header_openssl_evp_h=$ac_header_preproc
4606fi
4607echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
4608echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6
4609
4610fi
4611if test $ac_cv_header_openssl_evp_h = yes; then
4612
4613			echo "$as_me:$LINENO: checking for EVP_DigestInit in -lcrypto" >&5
4614echo $ECHO_N "checking for EVP_DigestInit in -lcrypto... $ECHO_C" >&6
4615if test "${ac_cv_lib_crypto_EVP_DigestInit+set}" = set; then
4616  echo $ECHO_N "(cached) $ECHO_C" >&6
4617else
4618  ac_check_lib_save_LIBS=$LIBS
4619LIBS="-lcrypto $LIB_RSAREF $LIBS"
4620cat >conftest.$ac_ext <<_ACEOF
4621#line $LINENO "configure"
4622/* confdefs.h.  */
4623_ACEOF
4624cat confdefs.h >>conftest.$ac_ext
4625cat >>conftest.$ac_ext <<_ACEOF
4626/* end confdefs.h.  */
4627
4628/* Override any gcc2 internal prototype to avoid an error.  */
4629#ifdef __cplusplus
4630extern "C"
4631#endif
4632/* We use char because int might match the return type of a gcc2
4633   builtin and then its argument prototype would still apply.  */
4634char EVP_DigestInit ();
4635int
4636main ()
4637{
4638EVP_DigestInit ();
4639  ;
4640  return 0;
4641}
4642_ACEOF
4643rm -f conftest.$ac_objext conftest$ac_exeext
4644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4645  (eval $ac_link) 2>&5
4646  ac_status=$?
4647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648  (exit $ac_status); } &&
4649         { ac_try='test -s conftest$ac_exeext'
4650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651  (eval $ac_try) 2>&5
4652  ac_status=$?
4653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654  (exit $ac_status); }; }; then
4655  ac_cv_lib_crypto_EVP_DigestInit=yes
4656else
4657  echo "$as_me: failed program was:" >&5
4658sed 's/^/| /' conftest.$ac_ext >&5
4659
4660ac_cv_lib_crypto_EVP_DigestInit=no
4661fi
4662rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4663LIBS=$ac_check_lib_save_LIBS
4664fi
4665echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_EVP_DigestInit" >&5
4666echo "${ECHO_T}$ac_cv_lib_crypto_EVP_DigestInit" >&6
4667if test $ac_cv_lib_crypto_EVP_DigestInit = yes; then
4668  with_openssl="yes"
4669else
4670  with_openssl="no"
4671fi
4672
4673else
4674  with_openssl=no
4675fi
4676
4677
4678		;;
4679esac
4680
4681	if test "$with_openssl" != "no"; then
4682
4683cat >>confdefs.h <<\_ACEOF
4684#define HAVE_OPENSSL
4685_ACEOF
4686
4687	else
4688		CPPFLAGS=$save_CPPFLAGS
4689		LDFLAGS=$save_LDFLAGS
4690	fi
4691
4692echo "$as_me:$LINENO: checking for OpenSSL" >&5
4693echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
4694echo "$as_me:$LINENO: result: $with_openssl" >&5
4695echo "${ECHO_T}$with_openssl" >&6
4696
4697
4698
4699# Check whether --with-des or --without-des was given.
4700if test "${with_des+set}" = set; then
4701  withval="$with_des"
4702  with_des=$withval
4703else
4704  with_des=yes
4705fi;
4706
4707LIB_DES=""
4708if test "$with_des" != no; then
4709  if test -d $with_des; then
4710    CPPFLAGS="$CPPFLAGS -I${with_des}/include"
4711    LDFLAGS="$LDFLAGS -L${with_des}/lib"
4712  fi
4713
4714  if test "$with_openssl" != no; then
4715        echo "$as_me:$LINENO: checking for des_cbc_encrypt in -lcrypto" >&5
4716echo $ECHO_N "checking for des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
4717if test "${ac_cv_lib_crypto_des_cbc_encrypt+set}" = set; then
4718  echo $ECHO_N "(cached) $ECHO_C" >&6
4719else
4720  ac_check_lib_save_LIBS=$LIBS
4721LIBS="-lcrypto $LIB_RSAREF $LIBS"
4722cat >conftest.$ac_ext <<_ACEOF
4723#line $LINENO "configure"
4724/* confdefs.h.  */
4725_ACEOF
4726cat confdefs.h >>conftest.$ac_ext
4727cat >>conftest.$ac_ext <<_ACEOF
4728/* end confdefs.h.  */
4729
4730/* Override any gcc2 internal prototype to avoid an error.  */
4731#ifdef __cplusplus
4732extern "C"
4733#endif
4734/* We use char because int might match the return type of a gcc2
4735   builtin and then its argument prototype would still apply.  */
4736char des_cbc_encrypt ();
4737int
4738main ()
4739{
4740des_cbc_encrypt ();
4741  ;
4742  return 0;
4743}
4744_ACEOF
4745rm -f conftest.$ac_objext conftest$ac_exeext
4746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4747  (eval $ac_link) 2>&5
4748  ac_status=$?
4749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750  (exit $ac_status); } &&
4751         { ac_try='test -s conftest$ac_exeext'
4752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4753  (eval $ac_try) 2>&5
4754  ac_status=$?
4755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756  (exit $ac_status); }; }; then
4757  ac_cv_lib_crypto_des_cbc_encrypt=yes
4758else
4759  echo "$as_me: failed program was:" >&5
4760sed 's/^/| /' conftest.$ac_ext >&5
4761
4762ac_cv_lib_crypto_des_cbc_encrypt=no
4763fi
4764rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4765LIBS=$ac_check_lib_save_LIBS
4766fi
4767echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
4768echo "${ECHO_T}$ac_cv_lib_crypto_des_cbc_encrypt" >&6
4769if test $ac_cv_lib_crypto_des_cbc_encrypt = yes; then
4770
4771        if test "${ac_cv_header_openssl_des_h+set}" = set; then
4772  echo "$as_me:$LINENO: checking for openssl/des.h" >&5
4773echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6
4774if test "${ac_cv_header_openssl_des_h+set}" = set; then
4775  echo $ECHO_N "(cached) $ECHO_C" >&6
4776fi
4777echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
4778echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6
4779else
4780  # Is the header compilable?
4781echo "$as_me:$LINENO: checking openssl/des.h usability" >&5
4782echo $ECHO_N "checking openssl/des.h usability... $ECHO_C" >&6
4783cat >conftest.$ac_ext <<_ACEOF
4784#line $LINENO "configure"
4785/* confdefs.h.  */
4786_ACEOF
4787cat confdefs.h >>conftest.$ac_ext
4788cat >>conftest.$ac_ext <<_ACEOF
4789/* end confdefs.h.  */
4790$ac_includes_default
4791#include <openssl/des.h>
4792_ACEOF
4793rm -f conftest.$ac_objext
4794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4795  (eval $ac_compile) 2>&5
4796  ac_status=$?
4797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798  (exit $ac_status); } &&
4799         { ac_try='test -s conftest.$ac_objext'
4800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801  (eval $ac_try) 2>&5
4802  ac_status=$?
4803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804  (exit $ac_status); }; }; then
4805  ac_header_compiler=yes
4806else
4807  echo "$as_me: failed program was:" >&5
4808sed 's/^/| /' conftest.$ac_ext >&5
4809
4810ac_header_compiler=no
4811fi
4812rm -f conftest.$ac_objext conftest.$ac_ext
4813echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4814echo "${ECHO_T}$ac_header_compiler" >&6
4815
4816# Is the header present?
4817echo "$as_me:$LINENO: checking openssl/des.h presence" >&5
4818echo $ECHO_N "checking openssl/des.h presence... $ECHO_C" >&6
4819cat >conftest.$ac_ext <<_ACEOF
4820#line $LINENO "configure"
4821/* confdefs.h.  */
4822_ACEOF
4823cat confdefs.h >>conftest.$ac_ext
4824cat >>conftest.$ac_ext <<_ACEOF
4825/* end confdefs.h.  */
4826#include <openssl/des.h>
4827_ACEOF
4828if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4829  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4830  ac_status=$?
4831  grep -v '^ *+' conftest.er1 >conftest.err
4832  rm -f conftest.er1
4833  cat conftest.err >&5
4834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835  (exit $ac_status); } >/dev/null; then
4836  if test -s conftest.err; then
4837    ac_cpp_err=$ac_c_preproc_warn_flag
4838  else
4839    ac_cpp_err=
4840  fi
4841else
4842  ac_cpp_err=yes
4843fi
4844if test -z "$ac_cpp_err"; then
4845  ac_header_preproc=yes
4846else
4847  echo "$as_me: failed program was:" >&5
4848sed 's/^/| /' conftest.$ac_ext >&5
4849
4850  ac_header_preproc=no
4851fi
4852rm -f conftest.err conftest.$ac_ext
4853echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4854echo "${ECHO_T}$ac_header_preproc" >&6
4855
4856# So?  What about this header?
4857case $ac_header_compiler:$ac_header_preproc in
4858  yes:no )
4859    { echo "$as_me:$LINENO: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&5
4860echo "$as_me: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4861    { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
4862echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
4863    (
4864      cat <<\_ASBOX
4865## ------------------------------------ ##
4866## Report this to bug-autoconf@gnu.org. ##
4867## ------------------------------------ ##
4868_ASBOX
4869    ) |
4870      sed "s/^/$as_me: WARNING:     /" >&2
4871    ;;
4872  no:yes )
4873    { echo "$as_me:$LINENO: WARNING: openssl/des.h: present but cannot be compiled" >&5
4874echo "$as_me: WARNING: openssl/des.h: present but cannot be compiled" >&2;}
4875    { echo "$as_me:$LINENO: WARNING: openssl/des.h: check for missing prerequisite headers?" >&5
4876echo "$as_me: WARNING: openssl/des.h: check for missing prerequisite headers?" >&2;}
4877    { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
4878echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
4879    (
4880      cat <<\_ASBOX
4881## ------------------------------------ ##
4882## Report this to bug-autoconf@gnu.org. ##
4883## ------------------------------------ ##
4884_ASBOX
4885    ) |
4886      sed "s/^/$as_me: WARNING:     /" >&2
4887    ;;
4888esac
4889echo "$as_me:$LINENO: checking for openssl/des.h" >&5
4890echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6
4891if test "${ac_cv_header_openssl_des_h+set}" = set; then
4892  echo $ECHO_N "(cached) $ECHO_C" >&6
4893else
4894  ac_cv_header_openssl_des_h=$ac_header_preproc
4895fi
4896echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
4897echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6
4898
4899fi
4900if test $ac_cv_header_openssl_des_h = yes; then
4901
4902cat >>confdefs.h <<\_ACEOF
4903#define WITH_SSL_DES
4904_ACEOF
4905
4906                                       LIB_DES="-lcrypto";
4907                                       with_des=yes
4908else
4909  with_des=no
4910fi
4911
4912
4913else
4914  with_des=no
4915fi
4916
4917
4918        if test "$with_des" = no; then
4919      echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
4920echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6
4921if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
4922  echo $ECHO_N "(cached) $ECHO_C" >&6
4923else
4924  ac_check_lib_save_LIBS=$LIBS
4925LIBS="-lcrypto $LIB_RSAREF $LIBS"
4926cat >conftest.$ac_ext <<_ACEOF
4927#line $LINENO "configure"
4928/* confdefs.h.  */
4929_ACEOF
4930cat confdefs.h >>conftest.$ac_ext
4931cat >>conftest.$ac_ext <<_ACEOF
4932/* end confdefs.h.  */
4933
4934/* Override any gcc2 internal prototype to avoid an error.  */
4935#ifdef __cplusplus
4936extern "C"
4937#endif
4938/* We use char because int might match the return type of a gcc2
4939   builtin and then its argument prototype would still apply.  */
4940char DES_cbc_encrypt ();
4941int
4942main ()
4943{
4944DES_cbc_encrypt ();
4945  ;
4946  return 0;
4947}
4948_ACEOF
4949rm -f conftest.$ac_objext conftest$ac_exeext
4950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4951  (eval $ac_link) 2>&5
4952  ac_status=$?
4953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954  (exit $ac_status); } &&
4955         { ac_try='test -s conftest$ac_exeext'
4956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957  (eval $ac_try) 2>&5
4958  ac_status=$?
4959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960  (exit $ac_status); }; }; then
4961  ac_cv_lib_crypto_DES_cbc_encrypt=yes
4962else
4963  echo "$as_me: failed program was:" >&5
4964sed 's/^/| /' conftest.$ac_ext >&5
4965
4966ac_cv_lib_crypto_DES_cbc_encrypt=no
4967fi
4968rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4969LIBS=$ac_check_lib_save_LIBS
4970fi
4971echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
4972echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6
4973if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
4974
4975        if test "${ac_cv_header_openssl_des_h+set}" = set; then
4976  echo "$as_me:$LINENO: checking for openssl/des.h" >&5
4977echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6
4978if test "${ac_cv_header_openssl_des_h+set}" = set; then
4979  echo $ECHO_N "(cached) $ECHO_C" >&6
4980fi
4981echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
4982echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6
4983else
4984  # Is the header compilable?
4985echo "$as_me:$LINENO: checking openssl/des.h usability" >&5
4986echo $ECHO_N "checking openssl/des.h usability... $ECHO_C" >&6
4987cat >conftest.$ac_ext <<_ACEOF
4988#line $LINENO "configure"
4989/* confdefs.h.  */
4990_ACEOF
4991cat confdefs.h >>conftest.$ac_ext
4992cat >>conftest.$ac_ext <<_ACEOF
4993/* end confdefs.h.  */
4994$ac_includes_default
4995#include <openssl/des.h>
4996_ACEOF
4997rm -f conftest.$ac_objext
4998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4999  (eval $ac_compile) 2>&5
5000  ac_status=$?
5001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002  (exit $ac_status); } &&
5003         { ac_try='test -s conftest.$ac_objext'
5004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005  (eval $ac_try) 2>&5
5006  ac_status=$?
5007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008  (exit $ac_status); }; }; then
5009  ac_header_compiler=yes
5010else
5011  echo "$as_me: failed program was:" >&5
5012sed 's/^/| /' conftest.$ac_ext >&5
5013
5014ac_header_compiler=no
5015fi
5016rm -f conftest.$ac_objext conftest.$ac_ext
5017echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5018echo "${ECHO_T}$ac_header_compiler" >&6
5019
5020# Is the header present?
5021echo "$as_me:$LINENO: checking openssl/des.h presence" >&5
5022echo $ECHO_N "checking openssl/des.h presence... $ECHO_C" >&6
5023cat >conftest.$ac_ext <<_ACEOF
5024#line $LINENO "configure"
5025/* confdefs.h.  */
5026_ACEOF
5027cat confdefs.h >>conftest.$ac_ext
5028cat >>conftest.$ac_ext <<_ACEOF
5029/* end confdefs.h.  */
5030#include <openssl/des.h>
5031_ACEOF
5032if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5033  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5034  ac_status=$?
5035  grep -v '^ *+' conftest.er1 >conftest.err
5036  rm -f conftest.er1
5037  cat conftest.err >&5
5038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039  (exit $ac_status); } >/dev/null; then
5040  if test -s conftest.err; then
5041    ac_cpp_err=$ac_c_preproc_warn_flag
5042  else
5043    ac_cpp_err=
5044  fi
5045else
5046  ac_cpp_err=yes
5047fi
5048if test -z "$ac_cpp_err"; then
5049  ac_header_preproc=yes
5050else
5051  echo "$as_me: failed program was:" >&5
5052sed 's/^/| /' conftest.$ac_ext >&5
5053
5054  ac_header_preproc=no
5055fi
5056rm -f conftest.err conftest.$ac_ext
5057echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5058echo "${ECHO_T}$ac_header_preproc" >&6
5059
5060# So?  What about this header?
5061case $ac_header_compiler:$ac_header_preproc in
5062  yes:no )
5063    { echo "$as_me:$LINENO: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&5
5064echo "$as_me: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5065    { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
5066echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
5067    (
5068      cat <<\_ASBOX
5069## ------------------------------------ ##
5070## Report this to bug-autoconf@gnu.org. ##
5071## ------------------------------------ ##
5072_ASBOX
5073    ) |
5074      sed "s/^/$as_me: WARNING:     /" >&2
5075    ;;
5076  no:yes )
5077    { echo "$as_me:$LINENO: WARNING: openssl/des.h: present but cannot be compiled" >&5
5078echo "$as_me: WARNING: openssl/des.h: present but cannot be compiled" >&2;}
5079    { echo "$as_me:$LINENO: WARNING: openssl/des.h: check for missing prerequisite headers?" >&5
5080echo "$as_me: WARNING: openssl/des.h: check for missing prerequisite headers?" >&2;}
5081    { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
5082echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
5083    (
5084      cat <<\_ASBOX
5085## ------------------------------------ ##
5086## Report this to bug-autoconf@gnu.org. ##
5087## ------------------------------------ ##
5088_ASBOX
5089    ) |
5090      sed "s/^/$as_me: WARNING:     /" >&2
5091    ;;
5092esac
5093echo "$as_me:$LINENO: checking for openssl/des.h" >&5
5094echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6
5095if test "${ac_cv_header_openssl_des_h+set}" = set; then
5096  echo $ECHO_N "(cached) $ECHO_C" >&6
5097else
5098  ac_cv_header_openssl_des_h=$ac_header_preproc
5099fi
5100echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
5101echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6
5102
5103fi
5104if test $ac_cv_header_openssl_des_h = yes; then
5105
5106cat >>confdefs.h <<\_ACEOF
5107#define WITH_SSL_DES
5108_ACEOF
5109
5110                                       LIB_DES="-lcrypto";
5111                                       with_des=yes
5112else
5113  with_des=no
5114fi
5115
5116
5117else
5118  with_des=no
5119fi
5120
5121    fi
5122  fi
5123
5124  if test "$with_des" = no; then
5125    echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
5126echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
5127if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
5128  echo $ECHO_N "(cached) $ECHO_C" >&6
5129else
5130  ac_check_lib_save_LIBS=$LIBS
5131LIBS="-ldes  $LIBS"
5132cat >conftest.$ac_ext <<_ACEOF
5133#line $LINENO "configure"
5134/* confdefs.h.  */
5135_ACEOF
5136cat confdefs.h >>conftest.$ac_ext
5137cat >>conftest.$ac_ext <<_ACEOF
5138/* end confdefs.h.  */
5139
5140/* Override any gcc2 internal prototype to avoid an error.  */
5141#ifdef __cplusplus
5142extern "C"
5143#endif
5144/* We use char because int might match the return type of a gcc2
5145   builtin and then its argument prototype would still apply.  */
5146char des_cbc_encrypt ();
5147int
5148main ()
5149{
5150des_cbc_encrypt ();
5151  ;
5152  return 0;
5153}
5154_ACEOF
5155rm -f conftest.$ac_objext conftest$ac_exeext
5156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5157  (eval $ac_link) 2>&5
5158  ac_status=$?
5159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160  (exit $ac_status); } &&
5161         { ac_try='test -s conftest$ac_exeext'
5162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5163  (eval $ac_try) 2>&5
5164  ac_status=$?
5165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166  (exit $ac_status); }; }; then
5167  ac_cv_lib_des_des_cbc_encrypt=yes
5168else
5169  echo "$as_me: failed program was:" >&5
5170sed 's/^/| /' conftest.$ac_ext >&5
5171
5172ac_cv_lib_des_des_cbc_encrypt=no
5173fi
5174rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5175LIBS=$ac_check_lib_save_LIBS
5176fi
5177echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
5178echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
5179if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
5180  LIB_DES="-ldes";
5181                                        with_des=yes
5182else
5183  with_des=no
5184fi
5185
5186  fi
5187
5188  if test "$with_des" = no; then
5189     echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
5190echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
5191if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
5192  echo $ECHO_N "(cached) $ECHO_C" >&6
5193else
5194  ac_check_lib_save_LIBS=$LIBS
5195LIBS="-ldes425  $LIBS"
5196cat >conftest.$ac_ext <<_ACEOF
5197#line $LINENO "configure"
5198/* confdefs.h.  */
5199_ACEOF
5200cat confdefs.h >>conftest.$ac_ext
5201cat >>conftest.$ac_ext <<_ACEOF
5202/* end confdefs.h.  */
5203
5204/* Override any gcc2 internal prototype to avoid an error.  */
5205#ifdef __cplusplus
5206extern "C"
5207#endif
5208/* We use char because int might match the return type of a gcc2
5209   builtin and then its argument prototype would still apply.  */
5210char des_cbc_encrypt ();
5211int
5212main ()
5213{
5214des_cbc_encrypt ();
5215  ;
5216  return 0;
5217}
5218_ACEOF
5219rm -f conftest.$ac_objext conftest$ac_exeext
5220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5221  (eval $ac_link) 2>&5
5222  ac_status=$?
5223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224  (exit $ac_status); } &&
5225         { ac_try='test -s conftest$ac_exeext'
5226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5227  (eval $ac_try) 2>&5
5228  ac_status=$?
5229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230  (exit $ac_status); }; }; then
5231  ac_cv_lib_des425_des_cbc_encrypt=yes
5232else
5233  echo "$as_me: failed program was:" >&5
5234sed 's/^/| /' conftest.$ac_ext >&5
5235
5236ac_cv_lib_des425_des_cbc_encrypt=no
5237fi
5238rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5239LIBS=$ac_check_lib_save_LIBS
5240fi
5241echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
5242echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
5243if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
5244  LIB_DES="-ldes425";
5245                                       with_des=yes
5246else
5247  with_des=no
5248fi
5249
5250  fi
5251
5252  if test "$with_des" = no; then
5253     echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes524" >&5
5254echo $ECHO_N "checking for des_cbc_encrypt in -ldes524... $ECHO_C" >&6
5255if test "${ac_cv_lib_des524_des_cbc_encrypt+set}" = set; then
5256  echo $ECHO_N "(cached) $ECHO_C" >&6
5257else
5258  ac_check_lib_save_LIBS=$LIBS
5259LIBS="-ldes524  $LIBS"
5260cat >conftest.$ac_ext <<_ACEOF
5261#line $LINENO "configure"
5262/* confdefs.h.  */
5263_ACEOF
5264cat confdefs.h >>conftest.$ac_ext
5265cat >>conftest.$ac_ext <<_ACEOF
5266/* end confdefs.h.  */
5267
5268/* Override any gcc2 internal prototype to avoid an error.  */
5269#ifdef __cplusplus
5270extern "C"
5271#endif
5272/* We use char because int might match the return type of a gcc2
5273   builtin and then its argument prototype would still apply.  */
5274char des_cbc_encrypt ();
5275int
5276main ()
5277{
5278des_cbc_encrypt ();
5279  ;
5280  return 0;
5281}
5282_ACEOF
5283rm -f conftest.$ac_objext conftest$ac_exeext
5284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5285  (eval $ac_link) 2>&5
5286  ac_status=$?
5287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288  (exit $ac_status); } &&
5289         { ac_try='test -s conftest$ac_exeext'
5290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291  (eval $ac_try) 2>&5
5292  ac_status=$?
5293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294  (exit $ac_status); }; }; then
5295  ac_cv_lib_des524_des_cbc_encrypt=yes
5296else
5297  echo "$as_me: failed program was:" >&5
5298sed 's/^/| /' conftest.$ac_ext >&5
5299
5300ac_cv_lib_des524_des_cbc_encrypt=no
5301fi
5302rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5303LIBS=$ac_check_lib_save_LIBS
5304fi
5305echo "$as_me:$LINENO: result: $ac_cv_lib_des524_des_cbc_encrypt" >&5
5306echo "${ECHO_T}$ac_cv_lib_des524_des_cbc_encrypt" >&6
5307if test $ac_cv_lib_des524_des_cbc_encrypt = yes; then
5308  LIB_DES="-ldes524";
5309                                       with_des=yes
5310else
5311  with_des=no
5312fi
5313
5314  fi
5315
5316  if test "$with_des" = no; then
5317
5318            LIB_RSAREF=""
5319    echo "$as_me:$LINENO: checking for RSAPublicEncrypt in -lrsaref" >&5
5320echo $ECHO_N "checking for RSAPublicEncrypt in -lrsaref... $ECHO_C" >&6
5321if test "${ac_cv_lib_rsaref_RSAPublicEncrypt+set}" = set; then
5322  echo $ECHO_N "(cached) $ECHO_C" >&6
5323else
5324  ac_check_lib_save_LIBS=$LIBS
5325LIBS="-lrsaref  $LIBS"
5326cat >conftest.$ac_ext <<_ACEOF
5327#line $LINENO "configure"
5328/* confdefs.h.  */
5329_ACEOF
5330cat confdefs.h >>conftest.$ac_ext
5331cat >>conftest.$ac_ext <<_ACEOF
5332/* end confdefs.h.  */
5333
5334/* Override any gcc2 internal prototype to avoid an error.  */
5335#ifdef __cplusplus
5336extern "C"
5337#endif
5338/* We use char because int might match the return type of a gcc2
5339   builtin and then its argument prototype would still apply.  */
5340char RSAPublicEncrypt ();
5341int
5342main ()
5343{
5344RSAPublicEncrypt ();
5345  ;
5346  return 0;
5347}
5348_ACEOF
5349rm -f conftest.$ac_objext conftest$ac_exeext
5350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5351  (eval $ac_link) 2>&5
5352  ac_status=$?
5353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354  (exit $ac_status); } &&
5355         { ac_try='test -s conftest$ac_exeext'
5356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5357  (eval $ac_try) 2>&5
5358  ac_status=$?
5359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360  (exit $ac_status); }; }; then
5361  ac_cv_lib_rsaref_RSAPublicEncrypt=yes
5362else
5363  echo "$as_me: failed program was:" >&5
5364sed 's/^/| /' conftest.$ac_ext >&5
5365
5366ac_cv_lib_rsaref_RSAPublicEncrypt=no
5367fi
5368rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5369LIBS=$ac_check_lib_save_LIBS
5370fi
5371echo "$as_me:$LINENO: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5
5372echo "${ECHO_T}$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6
5373if test $ac_cv_lib_rsaref_RSAPublicEncrypt = yes; then
5374  LIB_RSAREF="-lRSAglue -lrsaref"; cmu_have_rsaref=yes
5375else
5376  cmu_have_rsaref=no
5377fi
5378
5379
5380    echo "$as_me:$LINENO: checking for des_cbc_encrypt in -lcrypto" >&5
5381echo $ECHO_N "checking for des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
5382if test "${ac_cv_lib_crypto_des_cbc_encrypt+set}" = set; then
5383  echo $ECHO_N "(cached) $ECHO_C" >&6
5384else
5385  ac_check_lib_save_LIBS=$LIBS
5386LIBS="-lcrypto $LIB_RSAREF $LIBS"
5387cat >conftest.$ac_ext <<_ACEOF
5388#line $LINENO "configure"
5389/* confdefs.h.  */
5390_ACEOF
5391cat confdefs.h >>conftest.$ac_ext
5392cat >>conftest.$ac_ext <<_ACEOF
5393/* end confdefs.h.  */
5394
5395/* Override any gcc2 internal prototype to avoid an error.  */
5396#ifdef __cplusplus
5397extern "C"
5398#endif
5399/* We use char because int might match the return type of a gcc2
5400   builtin and then its argument prototype would still apply.  */
5401char des_cbc_encrypt ();
5402int
5403main ()
5404{
5405des_cbc_encrypt ();
5406  ;
5407  return 0;
5408}
5409_ACEOF
5410rm -f conftest.$ac_objext conftest$ac_exeext
5411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5412  (eval $ac_link) 2>&5
5413  ac_status=$?
5414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415  (exit $ac_status); } &&
5416         { ac_try='test -s conftest$ac_exeext'
5417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5418  (eval $ac_try) 2>&5
5419  ac_status=$?
5420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421  (exit $ac_status); }; }; then
5422  ac_cv_lib_crypto_des_cbc_encrypt=yes
5423else
5424  echo "$as_me: failed program was:" >&5
5425sed 's/^/| /' conftest.$ac_ext >&5
5426
5427ac_cv_lib_crypto_des_cbc_encrypt=no
5428fi
5429rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5430LIBS=$ac_check_lib_save_LIBS
5431fi
5432echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
5433echo "${ECHO_T}$ac_cv_lib_crypto_des_cbc_encrypt" >&6
5434if test $ac_cv_lib_crypto_des_cbc_encrypt = yes; then
5435
5436	if test "${ac_cv_header_openssl_des_h+set}" = set; then
5437  echo "$as_me:$LINENO: checking for openssl/des.h" >&5
5438echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6
5439if test "${ac_cv_header_openssl_des_h+set}" = set; then
5440  echo $ECHO_N "(cached) $ECHO_C" >&6
5441fi
5442echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
5443echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6
5444else
5445  # Is the header compilable?
5446echo "$as_me:$LINENO: checking openssl/des.h usability" >&5
5447echo $ECHO_N "checking openssl/des.h usability... $ECHO_C" >&6
5448cat >conftest.$ac_ext <<_ACEOF
5449#line $LINENO "configure"
5450/* confdefs.h.  */
5451_ACEOF
5452cat confdefs.h >>conftest.$ac_ext
5453cat >>conftest.$ac_ext <<_ACEOF
5454/* end confdefs.h.  */
5455$ac_includes_default
5456#include <openssl/des.h>
5457_ACEOF
5458rm -f conftest.$ac_objext
5459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5460  (eval $ac_compile) 2>&5
5461  ac_status=$?
5462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463  (exit $ac_status); } &&
5464         { ac_try='test -s conftest.$ac_objext'
5465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5466  (eval $ac_try) 2>&5
5467  ac_status=$?
5468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469  (exit $ac_status); }; }; then
5470  ac_header_compiler=yes
5471else
5472  echo "$as_me: failed program was:" >&5
5473sed 's/^/| /' conftest.$ac_ext >&5
5474
5475ac_header_compiler=no
5476fi
5477rm -f conftest.$ac_objext conftest.$ac_ext
5478echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5479echo "${ECHO_T}$ac_header_compiler" >&6
5480
5481# Is the header present?
5482echo "$as_me:$LINENO: checking openssl/des.h presence" >&5
5483echo $ECHO_N "checking openssl/des.h presence... $ECHO_C" >&6
5484cat >conftest.$ac_ext <<_ACEOF
5485#line $LINENO "configure"
5486/* confdefs.h.  */
5487_ACEOF
5488cat confdefs.h >>conftest.$ac_ext
5489cat >>conftest.$ac_ext <<_ACEOF
5490/* end confdefs.h.  */
5491#include <openssl/des.h>
5492_ACEOF
5493if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5494  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5495  ac_status=$?
5496  grep -v '^ *+' conftest.er1 >conftest.err
5497  rm -f conftest.er1
5498  cat conftest.err >&5
5499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500  (exit $ac_status); } >/dev/null; then
5501  if test -s conftest.err; then
5502    ac_cpp_err=$ac_c_preproc_warn_flag
5503  else
5504    ac_cpp_err=
5505  fi
5506else
5507  ac_cpp_err=yes
5508fi
5509if test -z "$ac_cpp_err"; then
5510  ac_header_preproc=yes
5511else
5512  echo "$as_me: failed program was:" >&5
5513sed 's/^/| /' conftest.$ac_ext >&5
5514
5515  ac_header_preproc=no
5516fi
5517rm -f conftest.err conftest.$ac_ext
5518echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5519echo "${ECHO_T}$ac_header_preproc" >&6
5520
5521# So?  What about this header?
5522case $ac_header_compiler:$ac_header_preproc in
5523  yes:no )
5524    { echo "$as_me:$LINENO: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&5
5525echo "$as_me: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5526    { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
5527echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
5528    (
5529      cat <<\_ASBOX
5530## ------------------------------------ ##
5531## Report this to bug-autoconf@gnu.org. ##
5532## ------------------------------------ ##
5533_ASBOX
5534    ) |
5535      sed "s/^/$as_me: WARNING:     /" >&2
5536    ;;
5537  no:yes )
5538    { echo "$as_me:$LINENO: WARNING: openssl/des.h: present but cannot be compiled" >&5
5539echo "$as_me: WARNING: openssl/des.h: present but cannot be compiled" >&2;}
5540    { echo "$as_me:$LINENO: WARNING: openssl/des.h: check for missing prerequisite headers?" >&5
5541echo "$as_me: WARNING: openssl/des.h: check for missing prerequisite headers?" >&2;}
5542    { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
5543echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
5544    (
5545      cat <<\_ASBOX
5546## ------------------------------------ ##
5547## Report this to bug-autoconf@gnu.org. ##
5548## ------------------------------------ ##
5549_ASBOX
5550    ) |
5551      sed "s/^/$as_me: WARNING:     /" >&2
5552    ;;
5553esac
5554echo "$as_me:$LINENO: checking for openssl/des.h" >&5
5555echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6
5556if test "${ac_cv_header_openssl_des_h+set}" = set; then
5557  echo $ECHO_N "(cached) $ECHO_C" >&6
5558else
5559  ac_cv_header_openssl_des_h=$ac_header_preproc
5560fi
5561echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
5562echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6
5563
5564fi
5565if test $ac_cv_header_openssl_des_h = yes; then
5566
5567cat >>confdefs.h <<\_ACEOF
5568#define WITH_SSL_DES
5569_ACEOF
5570
5571					LIB_DES="-lcrypto";
5572					with_des=yes
5573else
5574  with_des=no
5575fi
5576
5577
5578else
5579  with_des=no
5580fi
5581
5582  fi
5583fi
5584
5585if test "$with_des" != no; then
5586
5587cat >>confdefs.h <<\_ACEOF
5588#define WITH_DES
5589_ACEOF
5590
5591fi
5592
5593
5594
5595
5596
5597
5598
5599  # Check whether --enable-krb4 or --disable-krb4 was given.
5600if test "${enable_krb4+set}" = set; then
5601  enableval="$enable_krb4"
5602  krb4=$enableval
5603else
5604  krb4=no
5605fi;
5606
5607  if test "$krb4" != no; then
5608
5609echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
5610echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
5611if test "${ac_cv_lib_resolv_res_search+set}" = set; then
5612  echo $ECHO_N "(cached) $ECHO_C" >&6
5613else
5614  ac_check_lib_save_LIBS=$LIBS
5615LIBS="-lresolv  $LIBS"
5616cat >conftest.$ac_ext <<_ACEOF
5617#line $LINENO "configure"
5618/* confdefs.h.  */
5619_ACEOF
5620cat confdefs.h >>conftest.$ac_ext
5621cat >>conftest.$ac_ext <<_ACEOF
5622/* end confdefs.h.  */
5623
5624/* Override any gcc2 internal prototype to avoid an error.  */
5625#ifdef __cplusplus
5626extern "C"
5627#endif
5628/* We use char because int might match the return type of a gcc2
5629   builtin and then its argument prototype would still apply.  */
5630char res_search ();
5631int
5632main ()
5633{
5634res_search ();
5635  ;
5636  return 0;
5637}
5638_ACEOF
5639rm -f conftest.$ac_objext conftest$ac_exeext
5640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5641  (eval $ac_link) 2>&5
5642  ac_status=$?
5643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644  (exit $ac_status); } &&
5645         { ac_try='test -s conftest$ac_exeext'
5646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5647  (eval $ac_try) 2>&5
5648  ac_status=$?
5649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650  (exit $ac_status); }; }; then
5651  ac_cv_lib_resolv_res_search=yes
5652else
5653  echo "$as_me: failed program was:" >&5
5654sed 's/^/| /' conftest.$ac_ext >&5
5655
5656ac_cv_lib_resolv_res_search=no
5657fi
5658rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5659LIBS=$ac_check_lib_save_LIBS
5660fi
5661echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
5662echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
5663if test $ac_cv_lib_resolv_res_search = yes; then
5664  cat >>confdefs.h <<_ACEOF
5665#define HAVE_LIBRESOLV 1
5666_ACEOF
5667
5668  LIBS="-lresolv $LIBS"
5669
5670fi
5671
5672
5673            if test -d ${krb4}; then
5674       echo "$as_me:$LINENO: checking for Kerberos includes" >&5
5675echo $ECHO_N "checking for Kerberos includes... $ECHO_C" >&6
5676if test "${cyrus_krbinclude+set}" = set; then
5677  echo $ECHO_N "(cached) $ECHO_C" >&6
5678else
5679
5680         for krbhloc in include/kerberosIV include/kerberos include
5681         do
5682           if test -f ${krb4}/${krbhloc}/krb.h ; then
5683             cyrus_krbinclude=${krb4}/${krbhloc}
5684             break
5685           fi
5686         done
5687
5688fi
5689echo "$as_me:$LINENO: result: $cyrus_krbinclude" >&5
5690echo "${ECHO_T}$cyrus_krbinclude" >&6
5691
5692       if test -n "${cyrus_krbinclude}"; then
5693         CPPFLAGS="$CPPFLAGS -I${cyrus_krbinclude}"
5694       fi
5695       LDFLAGS="$LDFLAGS -L$krb4/lib"
5696    fi
5697
5698    if test "$with_des" != no; then
5699      if test "${ac_cv_header_krb_h+set}" = set; then
5700  echo "$as_me:$LINENO: checking for krb.h" >&5
5701echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
5702if test "${ac_cv_header_krb_h+set}" = set; then
5703  echo $ECHO_N "(cached) $ECHO_C" >&6
5704fi
5705echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
5706echo "${ECHO_T}$ac_cv_header_krb_h" >&6
5707else
5708  # Is the header compilable?
5709echo "$as_me:$LINENO: checking krb.h usability" >&5
5710echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
5711cat >conftest.$ac_ext <<_ACEOF
5712#line $LINENO "configure"
5713/* confdefs.h.  */
5714_ACEOF
5715cat confdefs.h >>conftest.$ac_ext
5716cat >>conftest.$ac_ext <<_ACEOF
5717/* end confdefs.h.  */
5718$ac_includes_default
5719#include <krb.h>
5720_ACEOF
5721rm -f conftest.$ac_objext
5722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5723  (eval $ac_compile) 2>&5
5724  ac_status=$?
5725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726  (exit $ac_status); } &&
5727         { ac_try='test -s conftest.$ac_objext'
5728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729  (eval $ac_try) 2>&5
5730  ac_status=$?
5731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732  (exit $ac_status); }; }; then
5733  ac_header_compiler=yes
5734else
5735  echo "$as_me: failed program was:" >&5
5736sed 's/^/| /' conftest.$ac_ext >&5
5737
5738ac_header_compiler=no
5739fi
5740rm -f conftest.$ac_objext conftest.$ac_ext
5741echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5742echo "${ECHO_T}$ac_header_compiler" >&6
5743
5744# Is the header present?
5745echo "$as_me:$LINENO: checking krb.h presence" >&5
5746echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
5747cat >conftest.$ac_ext <<_ACEOF
5748#line $LINENO "configure"
5749/* confdefs.h.  */
5750_ACEOF
5751cat confdefs.h >>conftest.$ac_ext
5752cat >>conftest.$ac_ext <<_ACEOF
5753/* end confdefs.h.  */
5754#include <krb.h>
5755_ACEOF
5756if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5757  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5758  ac_status=$?
5759  grep -v '^ *+' conftest.er1 >conftest.err
5760  rm -f conftest.er1
5761  cat conftest.err >&5
5762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763  (exit $ac_status); } >/dev/null; then
5764  if test -s conftest.err; then
5765    ac_cpp_err=$ac_c_preproc_warn_flag
5766  else
5767    ac_cpp_err=
5768  fi
5769else
5770  ac_cpp_err=yes
5771fi
5772if test -z "$ac_cpp_err"; then
5773  ac_header_preproc=yes
5774else
5775  echo "$as_me: failed program was:" >&5
5776sed 's/^/| /' conftest.$ac_ext >&5
5777
5778  ac_header_preproc=no
5779fi
5780rm -f conftest.err conftest.$ac_ext
5781echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5782echo "${ECHO_T}$ac_header_preproc" >&6
5783
5784# So?  What about this header?
5785case $ac_header_compiler:$ac_header_preproc in
5786  yes:no )
5787    { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
5788echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5789    { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
5790echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
5791    (
5792      cat <<\_ASBOX
5793## ------------------------------------ ##
5794## Report this to bug-autoconf@gnu.org. ##
5795## ------------------------------------ ##
5796_ASBOX
5797    ) |
5798      sed "s/^/$as_me: WARNING:     /" >&2
5799    ;;
5800  no:yes )
5801    { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
5802echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
5803    { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
5804echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
5805    { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
5806echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
5807    (
5808      cat <<\_ASBOX
5809## ------------------------------------ ##
5810## Report this to bug-autoconf@gnu.org. ##
5811## ------------------------------------ ##
5812_ASBOX
5813    ) |
5814      sed "s/^/$as_me: WARNING:     /" >&2
5815    ;;
5816esac
5817echo "$as_me:$LINENO: checking for krb.h" >&5
5818echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
5819if test "${ac_cv_header_krb_h+set}" = set; then
5820  echo $ECHO_N "(cached) $ECHO_C" >&6
5821else
5822  ac_cv_header_krb_h=$ac_header_preproc
5823fi
5824echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
5825echo "${ECHO_T}$ac_cv_header_krb_h" >&6
5826
5827fi
5828if test $ac_cv_header_krb_h = yes; then
5829
5830        echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
5831echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
5832if test "${ac_cv_lib_com_err_com_err+set}" = set; then
5833  echo $ECHO_N "(cached) $ECHO_C" >&6
5834else
5835  ac_check_lib_save_LIBS=$LIBS
5836LIBS="-lcom_err  $LIBS"
5837cat >conftest.$ac_ext <<_ACEOF
5838#line $LINENO "configure"
5839/* confdefs.h.  */
5840_ACEOF
5841cat confdefs.h >>conftest.$ac_ext
5842cat >>conftest.$ac_ext <<_ACEOF
5843/* end confdefs.h.  */
5844
5845/* Override any gcc2 internal prototype to avoid an error.  */
5846#ifdef __cplusplus
5847extern "C"
5848#endif
5849/* We use char because int might match the return type of a gcc2
5850   builtin and then its argument prototype would still apply.  */
5851char com_err ();
5852int
5853main ()
5854{
5855com_err ();
5856  ;
5857  return 0;
5858}
5859_ACEOF
5860rm -f conftest.$ac_objext conftest$ac_exeext
5861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5862  (eval $ac_link) 2>&5
5863  ac_status=$?
5864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865  (exit $ac_status); } &&
5866         { ac_try='test -s conftest$ac_exeext'
5867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868  (eval $ac_try) 2>&5
5869  ac_status=$?
5870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871  (exit $ac_status); }; }; then
5872  ac_cv_lib_com_err_com_err=yes
5873else
5874  echo "$as_me: failed program was:" >&5
5875sed 's/^/| /' conftest.$ac_ext >&5
5876
5877ac_cv_lib_com_err_com_err=no
5878fi
5879rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5880LIBS=$ac_check_lib_save_LIBS
5881fi
5882echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
5883echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
5884if test $ac_cv_lib_com_err_com_err = yes; then
5885
5886	  echo "$as_me:$LINENO: checking for krb_mk_priv in -lkrb" >&5
5887echo $ECHO_N "checking for krb_mk_priv in -lkrb... $ECHO_C" >&6
5888if test "${ac_cv_lib_krb_krb_mk_priv+set}" = set; then
5889  echo $ECHO_N "(cached) $ECHO_C" >&6
5890else
5891  ac_check_lib_save_LIBS=$LIBS
5892LIBS="-lkrb $LIB_DES -lcom_err $LIBS"
5893cat >conftest.$ac_ext <<_ACEOF
5894#line $LINENO "configure"
5895/* confdefs.h.  */
5896_ACEOF
5897cat confdefs.h >>conftest.$ac_ext
5898cat >>conftest.$ac_ext <<_ACEOF
5899/* end confdefs.h.  */
5900
5901/* Override any gcc2 internal prototype to avoid an error.  */
5902#ifdef __cplusplus
5903extern "C"
5904#endif
5905/* We use char because int might match the return type of a gcc2
5906   builtin and then its argument prototype would still apply.  */
5907char krb_mk_priv ();
5908int
5909main ()
5910{
5911krb_mk_priv ();
5912  ;
5913  return 0;
5914}
5915_ACEOF
5916rm -f conftest.$ac_objext conftest$ac_exeext
5917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5918  (eval $ac_link) 2>&5
5919  ac_status=$?
5920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921  (exit $ac_status); } &&
5922         { ac_try='test -s conftest$ac_exeext'
5923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924  (eval $ac_try) 2>&5
5925  ac_status=$?
5926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927  (exit $ac_status); }; }; then
5928  ac_cv_lib_krb_krb_mk_priv=yes
5929else
5930  echo "$as_me: failed program was:" >&5
5931sed 's/^/| /' conftest.$ac_ext >&5
5932
5933ac_cv_lib_krb_krb_mk_priv=no
5934fi
5935rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5936LIBS=$ac_check_lib_save_LIBS
5937fi
5938echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_mk_priv" >&5
5939echo "${ECHO_T}$ac_cv_lib_krb_krb_mk_priv" >&6
5940if test $ac_cv_lib_krb_krb_mk_priv = yes; then
5941  COM_ERR="-lcom_err"; SASL_KRB_LIB="-lkrb"; krb4lib="yes"
5942else
5943  krb4lib=no
5944fi
5945
5946else
5947
5948    	  echo "$as_me:$LINENO: checking for krb_mk_priv in -lkrb" >&5
5949echo $ECHO_N "checking for krb_mk_priv in -lkrb... $ECHO_C" >&6
5950if test "${ac_cv_lib_krb_krb_mk_priv+set}" = set; then
5951  echo $ECHO_N "(cached) $ECHO_C" >&6
5952else
5953  ac_check_lib_save_LIBS=$LIBS
5954LIBS="-lkrb $LIB_DES $LIBS"
5955cat >conftest.$ac_ext <<_ACEOF
5956#line $LINENO "configure"
5957/* confdefs.h.  */
5958_ACEOF
5959cat confdefs.h >>conftest.$ac_ext
5960cat >>conftest.$ac_ext <<_ACEOF
5961/* end confdefs.h.  */
5962
5963/* Override any gcc2 internal prototype to avoid an error.  */
5964#ifdef __cplusplus
5965extern "C"
5966#endif
5967/* We use char because int might match the return type of a gcc2
5968   builtin and then its argument prototype would still apply.  */
5969char krb_mk_priv ();
5970int
5971main ()
5972{
5973krb_mk_priv ();
5974  ;
5975  return 0;
5976}
5977_ACEOF
5978rm -f conftest.$ac_objext conftest$ac_exeext
5979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5980  (eval $ac_link) 2>&5
5981  ac_status=$?
5982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983  (exit $ac_status); } &&
5984         { ac_try='test -s conftest$ac_exeext'
5985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986  (eval $ac_try) 2>&5
5987  ac_status=$?
5988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989  (exit $ac_status); }; }; then
5990  ac_cv_lib_krb_krb_mk_priv=yes
5991else
5992  echo "$as_me: failed program was:" >&5
5993sed 's/^/| /' conftest.$ac_ext >&5
5994
5995ac_cv_lib_krb_krb_mk_priv=no
5996fi
5997rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5998LIBS=$ac_check_lib_save_LIBS
5999fi
6000echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_mk_priv" >&5
6001echo "${ECHO_T}$ac_cv_lib_krb_krb_mk_priv" >&6
6002if test $ac_cv_lib_krb_krb_mk_priv = yes; then
6003  COM_ERR=""; SASL_KRB_LIB="-lkrb"; krb4lib="yes"
6004else
6005  krb4lib=no
6006fi
6007
6008fi
6009
6010else
6011  krb4="no"
6012fi
6013
6014
6015
6016      if test "$krb4" != "no" -a "$krb4lib" = "no"; then
6017	echo "$as_me:$LINENO: checking for krb_mk_priv in -lkrb4" >&5
6018echo $ECHO_N "checking for krb_mk_priv in -lkrb4... $ECHO_C" >&6
6019if test "${ac_cv_lib_krb4_krb_mk_priv+set}" = set; then
6020  echo $ECHO_N "(cached) $ECHO_C" >&6
6021else
6022  ac_check_lib_save_LIBS=$LIBS
6023LIBS="-lkrb4 $LIB_DES $LIBS"
6024cat >conftest.$ac_ext <<_ACEOF
6025#line $LINENO "configure"
6026/* confdefs.h.  */
6027_ACEOF
6028cat confdefs.h >>conftest.$ac_ext
6029cat >>conftest.$ac_ext <<_ACEOF
6030/* end confdefs.h.  */
6031
6032/* Override any gcc2 internal prototype to avoid an error.  */
6033#ifdef __cplusplus
6034extern "C"
6035#endif
6036/* We use char because int might match the return type of a gcc2
6037   builtin and then its argument prototype would still apply.  */
6038char krb_mk_priv ();
6039int
6040main ()
6041{
6042krb_mk_priv ();
6043  ;
6044  return 0;
6045}
6046_ACEOF
6047rm -f conftest.$ac_objext conftest$ac_exeext
6048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6049  (eval $ac_link) 2>&5
6050  ac_status=$?
6051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052  (exit $ac_status); } &&
6053         { ac_try='test -s conftest$ac_exeext'
6054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055  (eval $ac_try) 2>&5
6056  ac_status=$?
6057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058  (exit $ac_status); }; }; then
6059  ac_cv_lib_krb4_krb_mk_priv=yes
6060else
6061  echo "$as_me: failed program was:" >&5
6062sed 's/^/| /' conftest.$ac_ext >&5
6063
6064ac_cv_lib_krb4_krb_mk_priv=no
6065fi
6066rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6067LIBS=$ac_check_lib_save_LIBS
6068fi
6069echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_mk_priv" >&5
6070echo "${ECHO_T}$ac_cv_lib_krb4_krb_mk_priv" >&6
6071if test $ac_cv_lib_krb4_krb_mk_priv = yes; then
6072  COM_ERR=""; SASL_KRB_LIB="-lkrb4"; krb4=yes
6073else
6074  krb4=no
6075fi
6076
6077      fi
6078      if test "$krb4" = no; then
6079          { echo "$as_me:$LINENO: WARNING: No Kerberos V4 found" >&5
6080echo "$as_me: WARNING: No Kerberos V4 found" >&2;}
6081      fi
6082    else
6083      { echo "$as_me:$LINENO: WARNING: No DES library found for Kerberos V4 support" >&5
6084echo "$as_me: WARNING: No DES library found for Kerberos V4 support" >&2;}
6085      krb4=no
6086    fi
6087  fi
6088
6089  if test "$krb4" != no; then
6090    cmu_save_LIBS="$LIBS"
6091    LIBS="$LIBS $SASL_KRB_LIB"
6092
6093for ac_func in krb_get_err_text
6094do
6095as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6096echo "$as_me:$LINENO: checking for $ac_func" >&5
6097echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6098if eval "test \"\${$as_ac_var+set}\" = set"; then
6099  echo $ECHO_N "(cached) $ECHO_C" >&6
6100else
6101  cat >conftest.$ac_ext <<_ACEOF
6102#line $LINENO "configure"
6103/* confdefs.h.  */
6104_ACEOF
6105cat confdefs.h >>conftest.$ac_ext
6106cat >>conftest.$ac_ext <<_ACEOF
6107/* end confdefs.h.  */
6108/* System header to define __stub macros and hopefully few prototypes,
6109    which can conflict with char $ac_func (); below.
6110    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6111    <limits.h> exists even on freestanding compilers.  */
6112#ifdef __STDC__
6113# include <limits.h>
6114#else
6115# include <assert.h>
6116#endif
6117/* Override any gcc2 internal prototype to avoid an error.  */
6118#ifdef __cplusplus
6119extern "C"
6120{
6121#endif
6122/* We use char because int might match the return type of a gcc2
6123   builtin and then its argument prototype would still apply.  */
6124char $ac_func ();
6125/* The GNU C library defines this for functions which it implements
6126    to always fail with ENOSYS.  Some functions are actually named
6127    something starting with __ and the normal name is an alias.  */
6128#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6129choke me
6130#else
6131char (*f) () = $ac_func;
6132#endif
6133#ifdef __cplusplus
6134}
6135#endif
6136
6137int
6138main ()
6139{
6140return f != $ac_func;
6141  ;
6142  return 0;
6143}
6144_ACEOF
6145rm -f conftest.$ac_objext conftest$ac_exeext
6146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6147  (eval $ac_link) 2>&5
6148  ac_status=$?
6149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150  (exit $ac_status); } &&
6151         { ac_try='test -s conftest$ac_exeext'
6152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153  (eval $ac_try) 2>&5
6154  ac_status=$?
6155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156  (exit $ac_status); }; }; then
6157  eval "$as_ac_var=yes"
6158else
6159  echo "$as_me: failed program was:" >&5
6160sed 's/^/| /' conftest.$ac_ext >&5
6161
6162eval "$as_ac_var=no"
6163fi
6164rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6165fi
6166echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6167echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6168if test `eval echo '${'$as_ac_var'}'` = yes; then
6169  cat >>confdefs.h <<_ACEOF
6170#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6171_ACEOF
6172
6173fi
6174done
6175
6176    LIBS="$cmu_save_LIBS"
6177  fi
6178
6179  echo "$as_me:$LINENO: checking KERBEROS_V4" >&5
6180echo $ECHO_N "checking KERBEROS_V4... $ECHO_C" >&6
6181  if test "$krb4" != no; then
6182    echo "$as_me:$LINENO: result: enabled" >&5
6183echo "${ECHO_T}enabled" >&6
6184    SASL_MECHS="$SASL_MECHS libkerberos4.la"
6185    SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/kerberos4.c"
6186    SASL_STATIC_OBJS="$SASL_STATIC_OBJS kerberos4.o"
6187
6188cat >>confdefs.h <<\_ACEOF
6189#define STATIC_KERBEROS4
6190_ACEOF
6191
6192
6193cat >>confdefs.h <<\_ACEOF
6194#define HAVE_KRB
6195_ACEOF
6196
6197    SASL_KRB_LIB="$SASL_KRB_LIB $LIB_DES $COM_ERR"
6198  else
6199    echo "$as_me:$LINENO: result: disabled" >&5
6200echo "${ECHO_T}disabled" >&6
6201  fi
6202
6203
6204echo "$as_me:$LINENO: checking for crypt" >&5
6205echo $ECHO_N "checking for crypt... $ECHO_C" >&6
6206if test "${ac_cv_func_crypt+set}" = set; then
6207  echo $ECHO_N "(cached) $ECHO_C" >&6
6208else
6209  cat >conftest.$ac_ext <<_ACEOF
6210#line $LINENO "configure"
6211/* confdefs.h.  */
6212_ACEOF
6213cat confdefs.h >>conftest.$ac_ext
6214cat >>conftest.$ac_ext <<_ACEOF
6215/* end confdefs.h.  */
6216/* System header to define __stub macros and hopefully few prototypes,
6217    which can conflict with char crypt (); below.
6218    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6219    <limits.h> exists even on freestanding compilers.  */
6220#ifdef __STDC__
6221# include <limits.h>
6222#else
6223# include <assert.h>
6224#endif
6225/* Override any gcc2 internal prototype to avoid an error.  */
6226#ifdef __cplusplus
6227extern "C"
6228{
6229#endif
6230/* We use char because int might match the return type of a gcc2
6231   builtin and then its argument prototype would still apply.  */
6232char crypt ();
6233/* The GNU C library defines this for functions which it implements
6234    to always fail with ENOSYS.  Some functions are actually named
6235    something starting with __ and the normal name is an alias.  */
6236#if defined (__stub_crypt) || defined (__stub___crypt)
6237choke me
6238#else
6239char (*f) () = crypt;
6240#endif
6241#ifdef __cplusplus
6242}
6243#endif
6244
6245int
6246main ()
6247{
6248return f != crypt;
6249  ;
6250  return 0;
6251}
6252_ACEOF
6253rm -f conftest.$ac_objext conftest$ac_exeext
6254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6255  (eval $ac_link) 2>&5
6256  ac_status=$?
6257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258  (exit $ac_status); } &&
6259         { ac_try='test -s conftest$ac_exeext'
6260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261  (eval $ac_try) 2>&5
6262  ac_status=$?
6263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264  (exit $ac_status); }; }; then
6265  ac_cv_func_crypt=yes
6266else
6267  echo "$as_me: failed program was:" >&5
6268sed 's/^/| /' conftest.$ac_ext >&5
6269
6270ac_cv_func_crypt=no
6271fi
6272rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6273fi
6274echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
6275echo "${ECHO_T}$ac_cv_func_crypt" >&6
6276if test $ac_cv_func_crypt = yes; then
6277  cmu_have_crypt=yes
6278else
6279  echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
6280echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
6281if test "${ac_cv_lib_crypt_crypt+set}" = set; then
6282  echo $ECHO_N "(cached) $ECHO_C" >&6
6283else
6284  ac_check_lib_save_LIBS=$LIBS
6285LIBS="-lcrypt  $LIBS"
6286cat >conftest.$ac_ext <<_ACEOF
6287#line $LINENO "configure"
6288/* confdefs.h.  */
6289_ACEOF
6290cat confdefs.h >>conftest.$ac_ext
6291cat >>conftest.$ac_ext <<_ACEOF
6292/* end confdefs.h.  */
6293
6294/* Override any gcc2 internal prototype to avoid an error.  */
6295#ifdef __cplusplus
6296extern "C"
6297#endif
6298/* We use char because int might match the return type of a gcc2
6299   builtin and then its argument prototype would still apply.  */
6300char crypt ();
6301int
6302main ()
6303{
6304crypt ();
6305  ;
6306  return 0;
6307}
6308_ACEOF
6309rm -f conftest.$ac_objext conftest$ac_exeext
6310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6311  (eval $ac_link) 2>&5
6312  ac_status=$?
6313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314  (exit $ac_status); } &&
6315         { ac_try='test -s conftest$ac_exeext'
6316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317  (eval $ac_try) 2>&5
6318  ac_status=$?
6319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320  (exit $ac_status); }; }; then
6321  ac_cv_lib_crypt_crypt=yes
6322else
6323  echo "$as_me: failed program was:" >&5
6324sed 's/^/| /' conftest.$ac_ext >&5
6325
6326ac_cv_lib_crypt_crypt=no
6327fi
6328rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6329LIBS=$ac_check_lib_save_LIBS
6330fi
6331echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
6332echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
6333if test $ac_cv_lib_crypt_crypt = yes; then
6334  LIB_CRYPT="-lcrypt"; cmu_have_crypt=yes
6335else
6336  cmu_have_crypt=no
6337fi
6338
6339fi
6340
6341
6342
6343
6344
6345# Check whether --enable-gssapi or --disable-gssapi was given.
6346if test "${enable_gssapi+set}" = set; then
6347  enableval="$enable_gssapi"
6348  gssapi=$enableval
6349else
6350  gssapi=yes
6351fi;
6352
6353# Check whether --with-gss_impl or --without-gss_impl was given.
6354if test "${with_gss_impl+set}" = set; then
6355  withval="$with_gss_impl"
6356  gss_impl=$withval
6357else
6358  gss_impl=auto
6359fi;
6360
6361if test "$gssapi" != no; then
6362  platform=
6363  case "${host}" in
6364    *-*-linux*)
6365      platform=__linux
6366      ;;
6367    *-*-hpux*)
6368      platform=__hpux
6369      ;;
6370    *-*-irix*)
6371      platform=__irix
6372      ;;
6373    *-*-solaris2*)
6374# When should we use __sunos?
6375      platform=__solaris
6376      ;;
6377    *-*-aix*)
6378      platform=__aix
6379      ;;
6380    *)
6381      { echo "$as_me:$LINENO: WARNING: The system type is not recognized. If you believe that CyberSafe GSSAPI works on this platform, please update the configure script" >&5
6382echo "$as_me: WARNING: The system type is not recognized. If you believe that CyberSafe GSSAPI works on this platform, please update the configure script" >&2;}
6383      if test "$gss_impl" = "cybersafe"; then
6384        { { echo "$as_me:$LINENO: error: CyberSafe was forced, cannot continue as platform is not supported" >&5
6385echo "$as_me: error: CyberSafe was forced, cannot continue as platform is not supported" >&2;}
6386   { (exit 1); exit 1; }; }
6387      fi
6388      ;;
6389  esac
6390
6391  cmu_saved_CPPFLAGS=$CPPFLAGS
6392
6393  if test -d ${gssapi}; then
6394    CPPFLAGS="$CPPFLAGS -I$gssapi/include"
6395# We want to keep -I in our CPPFLAGS, but only if we succeed
6396    cmu_saved_CPPFLAGS=$CPPFLAGS
6397    LDFLAGS="$LDFLAGS -L$gssapi/lib"
6398
6399    if test -n "$platform"; then
6400      if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
6401        CPPFLAGS="$CPPFLAGS -D$platform"
6402        if test -d "${gssapi}/appsec-sdk/include"; then
6403          CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
6404        fi
6405      fi
6406    fi
6407  fi
6408  if test "${ac_cv_header_gssapi_h+set}" = set; then
6409  echo "$as_me:$LINENO: checking for gssapi.h" >&5
6410echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6
6411if test "${ac_cv_header_gssapi_h+set}" = set; then
6412  echo $ECHO_N "(cached) $ECHO_C" >&6
6413fi
6414echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
6415echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6
6416else
6417  # Is the header compilable?
6418echo "$as_me:$LINENO: checking gssapi.h usability" >&5
6419echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6
6420cat >conftest.$ac_ext <<_ACEOF
6421#line $LINENO "configure"
6422/* confdefs.h.  */
6423_ACEOF
6424cat confdefs.h >>conftest.$ac_ext
6425cat >>conftest.$ac_ext <<_ACEOF
6426/* end confdefs.h.  */
6427$ac_includes_default
6428#include <gssapi.h>
6429_ACEOF
6430rm -f conftest.$ac_objext
6431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6432  (eval $ac_compile) 2>&5
6433  ac_status=$?
6434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435  (exit $ac_status); } &&
6436         { ac_try='test -s conftest.$ac_objext'
6437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438  (eval $ac_try) 2>&5
6439  ac_status=$?
6440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441  (exit $ac_status); }; }; then
6442  ac_header_compiler=yes
6443else
6444  echo "$as_me: failed program was:" >&5
6445sed 's/^/| /' conftest.$ac_ext >&5
6446
6447ac_header_compiler=no
6448fi
6449rm -f conftest.$ac_objext conftest.$ac_ext
6450echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6451echo "${ECHO_T}$ac_header_compiler" >&6
6452
6453# Is the header present?
6454echo "$as_me:$LINENO: checking gssapi.h presence" >&5
6455echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6
6456cat >conftest.$ac_ext <<_ACEOF
6457#line $LINENO "configure"
6458/* confdefs.h.  */
6459_ACEOF
6460cat confdefs.h >>conftest.$ac_ext
6461cat >>conftest.$ac_ext <<_ACEOF
6462/* end confdefs.h.  */
6463#include <gssapi.h>
6464_ACEOF
6465if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6466  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6467  ac_status=$?
6468  grep -v '^ *+' conftest.er1 >conftest.err
6469  rm -f conftest.er1
6470  cat conftest.err >&5
6471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472  (exit $ac_status); } >/dev/null; then
6473  if test -s conftest.err; then
6474    ac_cpp_err=$ac_c_preproc_warn_flag
6475  else
6476    ac_cpp_err=
6477  fi
6478else
6479  ac_cpp_err=yes
6480fi
6481if test -z "$ac_cpp_err"; then
6482  ac_header_preproc=yes
6483else
6484  echo "$as_me: failed program was:" >&5
6485sed 's/^/| /' conftest.$ac_ext >&5
6486
6487  ac_header_preproc=no
6488fi
6489rm -f conftest.err conftest.$ac_ext
6490echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6491echo "${ECHO_T}$ac_header_preproc" >&6
6492
6493# So?  What about this header?
6494case $ac_header_compiler:$ac_header_preproc in
6495  yes:no )
6496    { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
6497echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6498    { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
6499echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
6500    (
6501      cat <<\_ASBOX
6502## ------------------------------------ ##
6503## Report this to bug-autoconf@gnu.org. ##
6504## ------------------------------------ ##
6505_ASBOX
6506    ) |
6507      sed "s/^/$as_me: WARNING:     /" >&2
6508    ;;
6509  no:yes )
6510    { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
6511echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
6512    { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5
6513echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;}
6514    { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
6515echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
6516    (
6517      cat <<\_ASBOX
6518## ------------------------------------ ##
6519## Report this to bug-autoconf@gnu.org. ##
6520## ------------------------------------ ##
6521_ASBOX
6522    ) |
6523      sed "s/^/$as_me: WARNING:     /" >&2
6524    ;;
6525esac
6526echo "$as_me:$LINENO: checking for gssapi.h" >&5
6527echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6
6528if test "${ac_cv_header_gssapi_h+set}" = set; then
6529  echo $ECHO_N "(cached) $ECHO_C" >&6
6530else
6531  ac_cv_header_gssapi_h=$ac_header_preproc
6532fi
6533echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
6534echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6
6535
6536fi
6537if test $ac_cv_header_gssapi_h = yes; then
6538
6539cat >>confdefs.h <<\_ACEOF
6540#define HAVE_GSSAPI_H
6541_ACEOF
6542
6543else
6544  if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then
6545  echo "$as_me:$LINENO: checking for gssapi/gssapi.h" >&5
6546echo $ECHO_N "checking for gssapi/gssapi.h... $ECHO_C" >&6
6547if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then
6548  echo $ECHO_N "(cached) $ECHO_C" >&6
6549fi
6550echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5
6551echo "${ECHO_T}$ac_cv_header_gssapi_gssapi_h" >&6
6552else
6553  # Is the header compilable?
6554echo "$as_me:$LINENO: checking gssapi/gssapi.h usability" >&5
6555echo $ECHO_N "checking gssapi/gssapi.h usability... $ECHO_C" >&6
6556cat >conftest.$ac_ext <<_ACEOF
6557#line $LINENO "configure"
6558/* confdefs.h.  */
6559_ACEOF
6560cat confdefs.h >>conftest.$ac_ext
6561cat >>conftest.$ac_ext <<_ACEOF
6562/* end confdefs.h.  */
6563$ac_includes_default
6564#include <gssapi/gssapi.h>
6565_ACEOF
6566rm -f conftest.$ac_objext
6567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6568  (eval $ac_compile) 2>&5
6569  ac_status=$?
6570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571  (exit $ac_status); } &&
6572         { ac_try='test -s conftest.$ac_objext'
6573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6574  (eval $ac_try) 2>&5
6575  ac_status=$?
6576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577  (exit $ac_status); }; }; then
6578  ac_header_compiler=yes
6579else
6580  echo "$as_me: failed program was:" >&5
6581sed 's/^/| /' conftest.$ac_ext >&5
6582
6583ac_header_compiler=no
6584fi
6585rm -f conftest.$ac_objext conftest.$ac_ext
6586echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6587echo "${ECHO_T}$ac_header_compiler" >&6
6588
6589# Is the header present?
6590echo "$as_me:$LINENO: checking gssapi/gssapi.h presence" >&5
6591echo $ECHO_N "checking gssapi/gssapi.h presence... $ECHO_C" >&6
6592cat >conftest.$ac_ext <<_ACEOF
6593#line $LINENO "configure"
6594/* confdefs.h.  */
6595_ACEOF
6596cat confdefs.h >>conftest.$ac_ext
6597cat >>conftest.$ac_ext <<_ACEOF
6598/* end confdefs.h.  */
6599#include <gssapi/gssapi.h>
6600_ACEOF
6601if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6602  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6603  ac_status=$?
6604  grep -v '^ *+' conftest.er1 >conftest.err
6605  rm -f conftest.er1
6606  cat conftest.err >&5
6607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608  (exit $ac_status); } >/dev/null; then
6609  if test -s conftest.err; then
6610    ac_cpp_err=$ac_c_preproc_warn_flag
6611  else
6612    ac_cpp_err=
6613  fi
6614else
6615  ac_cpp_err=yes
6616fi
6617if test -z "$ac_cpp_err"; then
6618  ac_header_preproc=yes
6619else
6620  echo "$as_me: failed program was:" >&5
6621sed 's/^/| /' conftest.$ac_ext >&5
6622
6623  ac_header_preproc=no
6624fi
6625rm -f conftest.err conftest.$ac_ext
6626echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6627echo "${ECHO_T}$ac_header_preproc" >&6
6628
6629# So?  What about this header?
6630case $ac_header_compiler:$ac_header_preproc in
6631  yes:no )
6632    { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
6633echo "$as_me: WARNING: gssapi/gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6634    { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: proceeding with the preprocessor's result" >&5
6635echo "$as_me: WARNING: gssapi/gssapi.h: proceeding with the preprocessor's result" >&2;}
6636    (
6637      cat <<\_ASBOX
6638## ------------------------------------ ##
6639## Report this to bug-autoconf@gnu.org. ##
6640## ------------------------------------ ##
6641_ASBOX
6642    ) |
6643      sed "s/^/$as_me: WARNING:     /" >&2
6644    ;;
6645  no:yes )
6646    { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: present but cannot be compiled" >&5
6647echo "$as_me: WARNING: gssapi/gssapi.h: present but cannot be compiled" >&2;}
6648    { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: check for missing prerequisite headers?" >&5
6649echo "$as_me: WARNING: gssapi/gssapi.h: check for missing prerequisite headers?" >&2;}
6650    { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: proceeding with the preprocessor's result" >&5
6651echo "$as_me: WARNING: gssapi/gssapi.h: proceeding with the preprocessor's result" >&2;}
6652    (
6653      cat <<\_ASBOX
6654## ------------------------------------ ##
6655## Report this to bug-autoconf@gnu.org. ##
6656## ------------------------------------ ##
6657_ASBOX
6658    ) |
6659      sed "s/^/$as_me: WARNING:     /" >&2
6660    ;;
6661esac
6662echo "$as_me:$LINENO: checking for gssapi/gssapi.h" >&5
6663echo $ECHO_N "checking for gssapi/gssapi.h... $ECHO_C" >&6
6664if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then
6665  echo $ECHO_N "(cached) $ECHO_C" >&6
6666else
6667  ac_cv_header_gssapi_gssapi_h=$ac_header_preproc
6668fi
6669echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5
6670echo "${ECHO_T}$ac_cv_header_gssapi_gssapi_h" >&6
6671
6672fi
6673if test $ac_cv_header_gssapi_gssapi_h = yes; then
6674  :
6675else
6676  { echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - no include files found" >&5
6677echo "$as_me: WARNING: Disabling GSSAPI - no include files found" >&2;}; gssapi=no
6678fi
6679
6680
6681fi
6682
6683
6684
6685  CPPFLAGS=$cmu_saved_CPPFLAGS
6686
6687fi
6688
6689if test "$gssapi" != no; then
6690  # We need to find out which gssapi implementation we are
6691  # using. Supported alternatives are: MIT Kerberos 5,
6692  # Heimdal Kerberos 5 (http://www.pdc.kth.se/heimdal),
6693  # CyberSafe Kerberos 5 (http://www.cybersafe.com/)
6694  # and Sun SEAM (http://wwws.sun.com/software/security/kerberos/)
6695  #
6696  # The choice is reflected in GSSAPIBASE_LIBS
6697
6698
6699echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
6700echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
6701if test "${ac_cv_lib_resolv_res_search+set}" = set; then
6702  echo $ECHO_N "(cached) $ECHO_C" >&6
6703else
6704  ac_check_lib_save_LIBS=$LIBS
6705LIBS="-lresolv  $LIBS"
6706cat >conftest.$ac_ext <<_ACEOF
6707#line $LINENO "configure"
6708/* confdefs.h.  */
6709_ACEOF
6710cat confdefs.h >>conftest.$ac_ext
6711cat >>conftest.$ac_ext <<_ACEOF
6712/* end confdefs.h.  */
6713
6714/* Override any gcc2 internal prototype to avoid an error.  */
6715#ifdef __cplusplus
6716extern "C"
6717#endif
6718/* We use char because int might match the return type of a gcc2
6719   builtin and then its argument prototype would still apply.  */
6720char res_search ();
6721int
6722main ()
6723{
6724res_search ();
6725  ;
6726  return 0;
6727}
6728_ACEOF
6729rm -f conftest.$ac_objext conftest$ac_exeext
6730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6731  (eval $ac_link) 2>&5
6732  ac_status=$?
6733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734  (exit $ac_status); } &&
6735         { ac_try='test -s conftest$ac_exeext'
6736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737  (eval $ac_try) 2>&5
6738  ac_status=$?
6739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740  (exit $ac_status); }; }; then
6741  ac_cv_lib_resolv_res_search=yes
6742else
6743  echo "$as_me: failed program was:" >&5
6744sed 's/^/| /' conftest.$ac_ext >&5
6745
6746ac_cv_lib_resolv_res_search=no
6747fi
6748rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6749LIBS=$ac_check_lib_save_LIBS
6750fi
6751echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
6752echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
6753if test $ac_cv_lib_resolv_res_search = yes; then
6754  cat >>confdefs.h <<_ACEOF
6755#define HAVE_LIBRESOLV 1
6756_ACEOF
6757
6758  LIBS="-lresolv $LIBS"
6759
6760fi
6761
6762  if test -d ${gssapi}; then
6763     gssapi_dir="${gssapi}/lib"
6764     GSSAPIBASE_LIBS="-L$gssapi_dir"
6765     GSSAPIBASE_STATIC_LIBS="-L$gssapi_dir"
6766  else
6767     # FIXME: This is only used for building cyrus, and then only as
6768     # a real hack.  it needs to be fixed.
6769     gssapi_dir="/usr/local/lib"
6770  fi
6771
6772  # Check a full link against the Heimdal libraries.
6773  # If this fails, check a full link against the MIT libraries.
6774  # If this fails, check a full link against the CyberSafe libraries.
6775  # If this fails, check a full link against the Solaris 8 and up libgss.
6776
6777  if test "$gss_impl" = "auto" -o "$gss_impl" = "heimdal"; then
6778    gss_failed=0
6779    echo "$as_me:$LINENO: checking for gss_unwrap in -lgssapi" >&5
6780echo $ECHO_N "checking for gss_unwrap in -lgssapi... $ECHO_C" >&6
6781if test "${ac_cv_lib_gssapi_gss_unwrap+set}" = set; then
6782  echo $ECHO_N "(cached) $ECHO_C" >&6
6783else
6784  ac_check_lib_save_LIBS=$LIBS
6785LIBS="-lgssapi ${GSSAPIBASE_LIBS} -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err ${LIB_SOCKET} $LIBS"
6786cat >conftest.$ac_ext <<_ACEOF
6787#line $LINENO "configure"
6788/* confdefs.h.  */
6789_ACEOF
6790cat confdefs.h >>conftest.$ac_ext
6791cat >>conftest.$ac_ext <<_ACEOF
6792/* end confdefs.h.  */
6793
6794/* Override any gcc2 internal prototype to avoid an error.  */
6795#ifdef __cplusplus
6796extern "C"
6797#endif
6798/* We use char because int might match the return type of a gcc2
6799   builtin and then its argument prototype would still apply.  */
6800char gss_unwrap ();
6801int
6802main ()
6803{
6804gss_unwrap ();
6805  ;
6806  return 0;
6807}
6808_ACEOF
6809rm -f conftest.$ac_objext conftest$ac_exeext
6810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6811  (eval $ac_link) 2>&5
6812  ac_status=$?
6813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814  (exit $ac_status); } &&
6815         { ac_try='test -s conftest$ac_exeext'
6816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817  (eval $ac_try) 2>&5
6818  ac_status=$?
6819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820  (exit $ac_status); }; }; then
6821  ac_cv_lib_gssapi_gss_unwrap=yes
6822else
6823  echo "$as_me: failed program was:" >&5
6824sed 's/^/| /' conftest.$ac_ext >&5
6825
6826ac_cv_lib_gssapi_gss_unwrap=no
6827fi
6828rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6829LIBS=$ac_check_lib_save_LIBS
6830fi
6831echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_unwrap" >&5
6832echo "${ECHO_T}$ac_cv_lib_gssapi_gss_unwrap" >&6
6833if test $ac_cv_lib_gssapi_gss_unwrap = yes; then
6834  gss_impl="heimdal"
6835else
6836  gss_failed=1
6837fi
6838
6839    if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
6840      gss_impl="failed"
6841    fi
6842  fi
6843
6844  if test "$gss_impl" = "auto" -o "$gss_impl" = "mit"; then
6845    gss_failed=0
6846    echo "$as_me:$LINENO: checking for gss_unwrap in -lgssapi_krb5" >&5
6847echo $ECHO_N "checking for gss_unwrap in -lgssapi_krb5... $ECHO_C" >&6
6848if test "${ac_cv_lib_gssapi_krb5_gss_unwrap+set}" = set; then
6849  echo $ECHO_N "(cached) $ECHO_C" >&6
6850else
6851  ac_check_lib_save_LIBS=$LIBS
6852LIBS="-lgssapi_krb5 ${GSSAPIBASE_LIBS} -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${LIB_SOCKET} $LIBS"
6853cat >conftest.$ac_ext <<_ACEOF
6854#line $LINENO "configure"
6855/* confdefs.h.  */
6856_ACEOF
6857cat confdefs.h >>conftest.$ac_ext
6858cat >>conftest.$ac_ext <<_ACEOF
6859/* end confdefs.h.  */
6860
6861/* Override any gcc2 internal prototype to avoid an error.  */
6862#ifdef __cplusplus
6863extern "C"
6864#endif
6865/* We use char because int might match the return type of a gcc2
6866   builtin and then its argument prototype would still apply.  */
6867char gss_unwrap ();
6868int
6869main ()
6870{
6871gss_unwrap ();
6872  ;
6873  return 0;
6874}
6875_ACEOF
6876rm -f conftest.$ac_objext conftest$ac_exeext
6877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6878  (eval $ac_link) 2>&5
6879  ac_status=$?
6880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881  (exit $ac_status); } &&
6882         { ac_try='test -s conftest$ac_exeext'
6883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6884  (eval $ac_try) 2>&5
6885  ac_status=$?
6886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887  (exit $ac_status); }; }; then
6888  ac_cv_lib_gssapi_krb5_gss_unwrap=yes
6889else
6890  echo "$as_me: failed program was:" >&5
6891sed 's/^/| /' conftest.$ac_ext >&5
6892
6893ac_cv_lib_gssapi_krb5_gss_unwrap=no
6894fi
6895rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6896LIBS=$ac_check_lib_save_LIBS
6897fi
6898echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_unwrap" >&5
6899echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_unwrap" >&6
6900if test $ac_cv_lib_gssapi_krb5_gss_unwrap = yes; then
6901  gss_impl="mit"
6902else
6903  gss_failed=1
6904fi
6905
6906    if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
6907      gss_impl="failed"
6908    fi
6909  fi
6910
6911  # For Cybersafe one has to set a platform define in order to make compilation work
6912  if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
6913
6914    cmu_saved_CPPFLAGS=$CPPFLAGS
6915    cmu_saved_GSSAPIBASE_LIBS=$GSSAPIBASE_LIBS
6916# FIXME - Note that the libraries are in .../lib64 for 64bit kernels
6917    if test -d "${gssapi}/appsec-rt/lib"; then
6918      GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -L${gssapi}/appsec-rt/lib"
6919    fi
6920    CPPFLAGS="$CPPFLAGS -D$platform"
6921    if test -d "${gssapi}/appsec-sdk/include"; then
6922      CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
6923    fi
6924
6925    gss_failed=0
6926
6927# Check for CyberSafe with two libraries first, than fall back to a single
6928# library (older CyberSafe)
6929
6930    unset ac_cv_lib_gss_csf_gss_acq_user
6931    echo "$as_me:$LINENO: checking for csf_gss_acq_user in -lgss" >&5
6932echo $ECHO_N "checking for csf_gss_acq_user in -lgss... $ECHO_C" >&6
6933if test "${ac_cv_lib_gss_csf_gss_acq_user+set}" = set; then
6934  echo $ECHO_N "(cached) $ECHO_C" >&6
6935else
6936  ac_check_lib_save_LIBS=$LIBS
6937LIBS="-lgss ${GSSAPIBASE_LIBS} -lgss -lcstbk5 $LIBS"
6938cat >conftest.$ac_ext <<_ACEOF
6939#line $LINENO "configure"
6940/* confdefs.h.  */
6941_ACEOF
6942cat confdefs.h >>conftest.$ac_ext
6943cat >>conftest.$ac_ext <<_ACEOF
6944/* end confdefs.h.  */
6945
6946/* Override any gcc2 internal prototype to avoid an error.  */
6947#ifdef __cplusplus
6948extern "C"
6949#endif
6950/* We use char because int might match the return type of a gcc2
6951   builtin and then its argument prototype would still apply.  */
6952char csf_gss_acq_user ();
6953int
6954main ()
6955{
6956csf_gss_acq_user ();
6957  ;
6958  return 0;
6959}
6960_ACEOF
6961rm -f conftest.$ac_objext conftest$ac_exeext
6962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6963  (eval $ac_link) 2>&5
6964  ac_status=$?
6965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966  (exit $ac_status); } &&
6967         { ac_try='test -s conftest$ac_exeext'
6968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6969  (eval $ac_try) 2>&5
6970  ac_status=$?
6971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972  (exit $ac_status); }; }; then
6973  ac_cv_lib_gss_csf_gss_acq_user=yes
6974else
6975  echo "$as_me: failed program was:" >&5
6976sed 's/^/| /' conftest.$ac_ext >&5
6977
6978ac_cv_lib_gss_csf_gss_acq_user=no
6979fi
6980rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6981LIBS=$ac_check_lib_save_LIBS
6982fi
6983echo "$as_me:$LINENO: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
6984echo "${ECHO_T}$ac_cv_lib_gss_csf_gss_acq_user" >&6
6985if test $ac_cv_lib_gss_csf_gss_acq_user = yes; then
6986  gss_impl="cybersafe03"
6987else
6988  unset ac_cv_lib_gss_csf_gss_acq_user;
6989                  echo "$as_me:$LINENO: checking for csf_gss_acq_user in -lgss" >&5
6990echo $ECHO_N "checking for csf_gss_acq_user in -lgss... $ECHO_C" >&6
6991if test "${ac_cv_lib_gss_csf_gss_acq_user+set}" = set; then
6992  echo $ECHO_N "(cached) $ECHO_C" >&6
6993else
6994  ac_check_lib_save_LIBS=$LIBS
6995LIBS="-lgss $GSSAPIBASE_LIBS -lgss $LIBS"
6996cat >conftest.$ac_ext <<_ACEOF
6997#line $LINENO "configure"
6998/* confdefs.h.  */
6999_ACEOF
7000cat confdefs.h >>conftest.$ac_ext
7001cat >>conftest.$ac_ext <<_ACEOF
7002/* end confdefs.h.  */
7003
7004/* Override any gcc2 internal prototype to avoid an error.  */
7005#ifdef __cplusplus
7006extern "C"
7007#endif
7008/* We use char because int might match the return type of a gcc2
7009   builtin and then its argument prototype would still apply.  */
7010char csf_gss_acq_user ();
7011int
7012main ()
7013{
7014csf_gss_acq_user ();
7015  ;
7016  return 0;
7017}
7018_ACEOF
7019rm -f conftest.$ac_objext conftest$ac_exeext
7020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7021  (eval $ac_link) 2>&5
7022  ac_status=$?
7023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024  (exit $ac_status); } &&
7025         { ac_try='test -s conftest$ac_exeext'
7026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7027  (eval $ac_try) 2>&5
7028  ac_status=$?
7029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030  (exit $ac_status); }; }; then
7031  ac_cv_lib_gss_csf_gss_acq_user=yes
7032else
7033  echo "$as_me: failed program was:" >&5
7034sed 's/^/| /' conftest.$ac_ext >&5
7035
7036ac_cv_lib_gss_csf_gss_acq_user=no
7037fi
7038rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7039LIBS=$ac_check_lib_save_LIBS
7040fi
7041echo "$as_me:$LINENO: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
7042echo "${ECHO_T}$ac_cv_lib_gss_csf_gss_acq_user" >&6
7043if test $ac_cv_lib_gss_csf_gss_acq_user = yes; then
7044  gss_impl="cybersafe"
7045else
7046  gss_failed=1
7047fi
7048
7049fi
7050
7051
7052    if test "$gss_failed" = "1"; then
7053# Restore variables
7054      GSSAPIBASE_LIBS=$cmu_saved_GSSAPIBASE_LIBS
7055      CPPFLAGS=$cmu_saved_CPPFLAGS
7056
7057      if test "$gss_impl" != "auto"; then
7058        gss_impl="failed"
7059      fi
7060    fi
7061  fi
7062
7063  if test "$gss_impl" = "auto" -o "$gss_impl" = "seam"; then
7064    gss_failed=0
7065    echo "$as_me:$LINENO: checking for gss_unwrap in -lgss" >&5
7066echo $ECHO_N "checking for gss_unwrap in -lgss... $ECHO_C" >&6
7067if test "${ac_cv_lib_gss_gss_unwrap+set}" = set; then
7068  echo $ECHO_N "(cached) $ECHO_C" >&6
7069else
7070  ac_check_lib_save_LIBS=$LIBS
7071LIBS="-lgss -lgss $LIBS"
7072cat >conftest.$ac_ext <<_ACEOF
7073#line $LINENO "configure"
7074/* confdefs.h.  */
7075_ACEOF
7076cat confdefs.h >>conftest.$ac_ext
7077cat >>conftest.$ac_ext <<_ACEOF
7078/* end confdefs.h.  */
7079
7080/* Override any gcc2 internal prototype to avoid an error.  */
7081#ifdef __cplusplus
7082extern "C"
7083#endif
7084/* We use char because int might match the return type of a gcc2
7085   builtin and then its argument prototype would still apply.  */
7086char gss_unwrap ();
7087int
7088main ()
7089{
7090gss_unwrap ();
7091  ;
7092  return 0;
7093}
7094_ACEOF
7095rm -f conftest.$ac_objext conftest$ac_exeext
7096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7097  (eval $ac_link) 2>&5
7098  ac_status=$?
7099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100  (exit $ac_status); } &&
7101         { ac_try='test -s conftest$ac_exeext'
7102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103  (eval $ac_try) 2>&5
7104  ac_status=$?
7105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106  (exit $ac_status); }; }; then
7107  ac_cv_lib_gss_gss_unwrap=yes
7108else
7109  echo "$as_me: failed program was:" >&5
7110sed 's/^/| /' conftest.$ac_ext >&5
7111
7112ac_cv_lib_gss_gss_unwrap=no
7113fi
7114rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7115LIBS=$ac_check_lib_save_LIBS
7116fi
7117echo "$as_me:$LINENO: result: $ac_cv_lib_gss_gss_unwrap" >&5
7118echo "${ECHO_T}$ac_cv_lib_gss_gss_unwrap" >&6
7119if test $ac_cv_lib_gss_gss_unwrap = yes; then
7120  gss_impl="seam"
7121else
7122  gss_failed=1
7123fi
7124
7125    if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
7126      gss_impl="failed"
7127    fi
7128  fi
7129
7130  if test "$gss_impl" = "mit"; then
7131    GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
7132    GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_LIBS $gssapi_dir/libgssapi_krb5.a $gssapi_dir/libkrb5.a $gssapi_dir/libk5crypto.a $gssapi_dir/libcom_err.a"
7133  elif test "$gss_impl" = "heimdal"; then
7134    CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL"
7135    GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err"
7136    GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_STATIC_LIBS $gssapi_dir/libgssapi.a $gssapi_dir/libkrb5.a $gssapi_dir/libasn1.a $gssapi_dir/libroken.a $gssapi_dir/libcom_err.a ${LIB_CRYPT}"
7137  elif test "$gss_impl" = "cybersafe03"; then
7138# Version of CyberSafe with two libraries
7139    CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
7140    GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss -lcstbk5"
7141    # there is no static libgss for CyberSafe
7142    GSSAPIBASE_STATIC_LIBS=none
7143  elif test "$gss_impl" = "cybersafe"; then
7144    CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
7145    GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss"
7146    # there is no static libgss for CyberSafe
7147    GSSAPIBASE_STATIC_LIBS=none
7148  elif test "$gss_impl" = "seam"; then
7149    GSSAPIBASE_LIBS=-lgss
7150    # there is no static libgss on Solaris 8 and up
7151    GSSAPIBASE_STATIC_LIBS=none
7152  elif test "$gss_impl" = "failed"; then
7153    gssapi="no"
7154    GSSAPIBASE_LIBS=
7155    GSSAPIBASE_STATIC_LIBS=
7156    { echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - specified library not found" >&5
7157echo "$as_me: WARNING: Disabling GSSAPI - specified library not found" >&2;}
7158  else
7159    gssapi="no"
7160    GSSAPIBASE_LIBS=
7161    GSSAPIBASE_STATIC_LIBS=
7162    { echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - no library" >&5
7163echo "$as_me: WARNING: Disabling GSSAPI - no library" >&2;}
7164  fi
7165fi
7166
7167#
7168# Cybersafe defines both GSS_C_NT_HOSTBASED_SERVICE and GSS_C_NT_USER_NAME
7169# in gssapi\rfckrb5.h
7170#
7171if test "$gssapi" != "no"; then
7172  if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
7173    cat >conftest.$ac_ext <<_ACEOF
7174#line $LINENO "configure"
7175/* confdefs.h.  */
7176_ACEOF
7177cat confdefs.h >>conftest.$ac_ext
7178cat >>conftest.$ac_ext <<_ACEOF
7179/* end confdefs.h.  */
7180#include <gssapi/gssapi.h>
7181                  #ifdef GSS_C_NT_HOSTBASED_SERVICE
7182                    hostbased_service_gss_nt_yes
7183                  #endif
7184_ACEOF
7185if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7186  $EGREP "hostbased_service_gss_nt_yes" >/dev/null 2>&1; then
7187
7188cat >>confdefs.h <<\_ACEOF
7189#define HAVE_GSS_C_NT_HOSTBASED_SERVICE
7190_ACEOF
7191
7192else
7193  { echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5
7194echo "$as_me: WARNING: Cybersafe define not found" >&2;}
7195fi
7196rm -f conftest*
7197
7198
7199  elif test "$ac_cv_header_gssapi_h" = "yes"; then
7200    cat >conftest.$ac_ext <<_ACEOF
7201#line $LINENO "configure"
7202/* confdefs.h.  */
7203_ACEOF
7204cat confdefs.h >>conftest.$ac_ext
7205cat >>conftest.$ac_ext <<_ACEOF
7206/* end confdefs.h.  */
7207#include <gssapi.h>
7208
7209_ACEOF
7210if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7211  $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
7212
7213cat >>confdefs.h <<\_ACEOF
7214#define HAVE_GSS_C_NT_HOSTBASED_SERVICE
7215_ACEOF
7216
7217fi
7218rm -f conftest*
7219
7220  elif test "$ac_cv_header_gssapi_gssapi_h"; then
7221    cat >conftest.$ac_ext <<_ACEOF
7222#line $LINENO "configure"
7223/* confdefs.h.  */
7224_ACEOF
7225cat confdefs.h >>conftest.$ac_ext
7226cat >>conftest.$ac_ext <<_ACEOF
7227/* end confdefs.h.  */
7228#include <gssapi/gssapi.h>
7229
7230_ACEOF
7231if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7232  $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
7233
7234cat >>confdefs.h <<\_ACEOF
7235#define HAVE_GSS_C_NT_HOSTBASED_SERVICE
7236_ACEOF
7237
7238fi
7239rm -f conftest*
7240
7241  fi
7242
7243  if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
7244    cat >conftest.$ac_ext <<_ACEOF
7245#line $LINENO "configure"
7246/* confdefs.h.  */
7247_ACEOF
7248cat confdefs.h >>conftest.$ac_ext
7249cat >>conftest.$ac_ext <<_ACEOF
7250/* end confdefs.h.  */
7251#include <gssapi/gssapi.h>
7252                  #ifdef GSS_C_NT_USER_NAME
7253                   user_name_yes_gss_nt
7254                  #endif
7255_ACEOF
7256if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7257  $EGREP "user_name_yes_gss_nt" >/dev/null 2>&1; then
7258
7259cat >>confdefs.h <<\_ACEOF
7260#define HAVE_GSS_C_NT_USER_NAME
7261_ACEOF
7262
7263else
7264  { echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5
7265echo "$as_me: WARNING: Cybersafe define not found" >&2;}
7266fi
7267rm -f conftest*
7268
7269  elif test "$ac_cv_header_gssapi_h" = "yes"; then
7270    cat >conftest.$ac_ext <<_ACEOF
7271#line $LINENO "configure"
7272/* confdefs.h.  */
7273_ACEOF
7274cat confdefs.h >>conftest.$ac_ext
7275cat >>conftest.$ac_ext <<_ACEOF
7276/* end confdefs.h.  */
7277#include <gssapi.h>
7278
7279_ACEOF
7280if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7281  $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then
7282
7283cat >>confdefs.h <<\_ACEOF
7284#define HAVE_GSS_C_NT_USER_NAME
7285_ACEOF
7286
7287fi
7288rm -f conftest*
7289
7290  elif test "$ac_cv_header_gssapi_gssapi_h"; then
7291    cat >conftest.$ac_ext <<_ACEOF
7292#line $LINENO "configure"
7293/* confdefs.h.  */
7294_ACEOF
7295cat confdefs.h >>conftest.$ac_ext
7296cat >>conftest.$ac_ext <<_ACEOF
7297/* end confdefs.h.  */
7298#include <gssapi/gssapi.h>
7299
7300_ACEOF
7301if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7302  $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then
7303
7304cat >>confdefs.h <<\_ACEOF
7305#define HAVE_GSS_C_NT_USER_NAME
7306_ACEOF
7307
7308fi
7309rm -f conftest*
7310
7311  fi
7312fi
7313
7314GSSAPI_LIBS=""
7315echo "$as_me:$LINENO: checking GSSAPI" >&5
7316echo $ECHO_N "checking GSSAPI... $ECHO_C" >&6
7317if test "$gssapi" != no; then
7318  echo "$as_me:$LINENO: result: with implementation ${gss_impl}" >&5
7319echo "${ECHO_T}with implementation ${gss_impl}" >&6
7320  echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
7321echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
7322if test "${ac_cv_lib_resolv_res_search+set}" = set; then
7323  echo $ECHO_N "(cached) $ECHO_C" >&6
7324else
7325  ac_check_lib_save_LIBS=$LIBS
7326LIBS="-lresolv  $LIBS"
7327cat >conftest.$ac_ext <<_ACEOF
7328#line $LINENO "configure"
7329/* confdefs.h.  */
7330_ACEOF
7331cat confdefs.h >>conftest.$ac_ext
7332cat >>conftest.$ac_ext <<_ACEOF
7333/* end confdefs.h.  */
7334
7335/* Override any gcc2 internal prototype to avoid an error.  */
7336#ifdef __cplusplus
7337extern "C"
7338#endif
7339/* We use char because int might match the return type of a gcc2
7340   builtin and then its argument prototype would still apply.  */
7341char res_search ();
7342int
7343main ()
7344{
7345res_search ();
7346  ;
7347  return 0;
7348}
7349_ACEOF
7350rm -f conftest.$ac_objext conftest$ac_exeext
7351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7352  (eval $ac_link) 2>&5
7353  ac_status=$?
7354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355  (exit $ac_status); } &&
7356         { ac_try='test -s conftest$ac_exeext'
7357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7358  (eval $ac_try) 2>&5
7359  ac_status=$?
7360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361  (exit $ac_status); }; }; then
7362  ac_cv_lib_resolv_res_search=yes
7363else
7364  echo "$as_me: failed program was:" >&5
7365sed 's/^/| /' conftest.$ac_ext >&5
7366
7367ac_cv_lib_resolv_res_search=no
7368fi
7369rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7370LIBS=$ac_check_lib_save_LIBS
7371fi
7372echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
7373echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
7374if test $ac_cv_lib_resolv_res_search = yes; then
7375  GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lresolv"
7376fi
7377
7378  SASL_MECHS="$SASL_MECHS libgssapiv2.la"
7379  SASL_STATIC_OBJS="$SASL_STATIC_OBJS gssapi.o"
7380  SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/gssapi.c"
7381
7382  cmu_save_LIBS="$LIBS"
7383  LIBS="$LIBS $GSSAPIBASE_LIBS"
7384
7385for ac_func in gsskrb5_register_acceptor_identity
7386do
7387as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7388echo "$as_me:$LINENO: checking for $ac_func" >&5
7389echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7390if eval "test \"\${$as_ac_var+set}\" = set"; then
7391  echo $ECHO_N "(cached) $ECHO_C" >&6
7392else
7393  cat >conftest.$ac_ext <<_ACEOF
7394#line $LINENO "configure"
7395/* confdefs.h.  */
7396_ACEOF
7397cat confdefs.h >>conftest.$ac_ext
7398cat >>conftest.$ac_ext <<_ACEOF
7399/* end confdefs.h.  */
7400/* System header to define __stub macros and hopefully few prototypes,
7401    which can conflict with char $ac_func (); below.
7402    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7403    <limits.h> exists even on freestanding compilers.  */
7404#ifdef __STDC__
7405# include <limits.h>
7406#else
7407# include <assert.h>
7408#endif
7409/* Override any gcc2 internal prototype to avoid an error.  */
7410#ifdef __cplusplus
7411extern "C"
7412{
7413#endif
7414/* We use char because int might match the return type of a gcc2
7415   builtin and then its argument prototype would still apply.  */
7416char $ac_func ();
7417/* The GNU C library defines this for functions which it implements
7418    to always fail with ENOSYS.  Some functions are actually named
7419    something starting with __ and the normal name is an alias.  */
7420#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7421choke me
7422#else
7423char (*f) () = $ac_func;
7424#endif
7425#ifdef __cplusplus
7426}
7427#endif
7428
7429int
7430main ()
7431{
7432return f != $ac_func;
7433  ;
7434  return 0;
7435}
7436_ACEOF
7437rm -f conftest.$ac_objext conftest$ac_exeext
7438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7439  (eval $ac_link) 2>&5
7440  ac_status=$?
7441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442  (exit $ac_status); } &&
7443         { ac_try='test -s conftest$ac_exeext'
7444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7445  (eval $ac_try) 2>&5
7446  ac_status=$?
7447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448  (exit $ac_status); }; }; then
7449  eval "$as_ac_var=yes"
7450else
7451  echo "$as_me: failed program was:" >&5
7452sed 's/^/| /' conftest.$ac_ext >&5
7453
7454eval "$as_ac_var=no"
7455fi
7456rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7457fi
7458echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7459echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7460if test `eval echo '${'$as_ac_var'}'` = yes; then
7461  cat >>confdefs.h <<_ACEOF
7462#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7463_ACEOF
7464
7465fi
7466done
7467
7468  LIBS="$cmu_save_LIBS"
7469else
7470  echo "$as_me:$LINENO: result: disabled" >&5
7471echo "${ECHO_T}disabled" >&6
7472fi
7473
7474
7475
7476
7477if test "$gssapi" != no; then
7478	if test "$gss_impl" = "heimdal"; then
7479
7480cat >>confdefs.h <<\_ACEOF
7481#define KRB5_HEIMDAL
7482_ACEOF
7483
7484	fi
7485
7486cat >>confdefs.h <<\_ACEOF
7487#define HAVE_GSSAPI
7488_ACEOF
7489
7490fi
7491
7492echo "$as_me:$LINENO: checking for crypt" >&5
7493echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7494if test "${ac_cv_func_crypt+set}" = set; then
7495  echo $ECHO_N "(cached) $ECHO_C" >&6
7496else
7497  cat >conftest.$ac_ext <<_ACEOF
7498#line $LINENO "configure"
7499/* confdefs.h.  */
7500_ACEOF
7501cat confdefs.h >>conftest.$ac_ext
7502cat >>conftest.$ac_ext <<_ACEOF
7503/* end confdefs.h.  */
7504/* System header to define __stub macros and hopefully few prototypes,
7505    which can conflict with char crypt (); below.
7506    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7507    <limits.h> exists even on freestanding compilers.  */
7508#ifdef __STDC__
7509# include <limits.h>
7510#else
7511# include <assert.h>
7512#endif
7513/* Override any gcc2 internal prototype to avoid an error.  */
7514#ifdef __cplusplus
7515extern "C"
7516{
7517#endif
7518/* We use char because int might match the return type of a gcc2
7519   builtin and then its argument prototype would still apply.  */
7520char crypt ();
7521/* The GNU C library defines this for functions which it implements
7522    to always fail with ENOSYS.  Some functions are actually named
7523    something starting with __ and the normal name is an alias.  */
7524#if defined (__stub_crypt) || defined (__stub___crypt)
7525choke me
7526#else
7527char (*f) () = crypt;
7528#endif
7529#ifdef __cplusplus
7530}
7531#endif
7532
7533int
7534main ()
7535{
7536return f != crypt;
7537  ;
7538  return 0;
7539}
7540_ACEOF
7541rm -f conftest.$ac_objext conftest$ac_exeext
7542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7543  (eval $ac_link) 2>&5
7544  ac_status=$?
7545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546  (exit $ac_status); } &&
7547         { ac_try='test -s conftest$ac_exeext'
7548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549  (eval $ac_try) 2>&5
7550  ac_status=$?
7551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552  (exit $ac_status); }; }; then
7553  ac_cv_func_crypt=yes
7554else
7555  echo "$as_me: failed program was:" >&5
7556sed 's/^/| /' conftest.$ac_ext >&5
7557
7558ac_cv_func_crypt=no
7559fi
7560rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7561fi
7562echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7563echo "${ECHO_T}$ac_cv_func_crypt" >&6
7564if test $ac_cv_func_crypt = yes; then
7565  cmu_have_crypt=yes
7566else
7567  echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7568echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7569if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7570  echo $ECHO_N "(cached) $ECHO_C" >&6
7571else
7572  ac_check_lib_save_LIBS=$LIBS
7573LIBS="-lcrypt  $LIBS"
7574cat >conftest.$ac_ext <<_ACEOF
7575#line $LINENO "configure"
7576/* confdefs.h.  */
7577_ACEOF
7578cat confdefs.h >>conftest.$ac_ext
7579cat >>conftest.$ac_ext <<_ACEOF
7580/* end confdefs.h.  */
7581
7582/* Override any gcc2 internal prototype to avoid an error.  */
7583#ifdef __cplusplus
7584extern "C"
7585#endif
7586/* We use char because int might match the return type of a gcc2
7587   builtin and then its argument prototype would still apply.  */
7588char crypt ();
7589int
7590main ()
7591{
7592crypt ();
7593  ;
7594  return 0;
7595}
7596_ACEOF
7597rm -f conftest.$ac_objext conftest$ac_exeext
7598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7599  (eval $ac_link) 2>&5
7600  ac_status=$?
7601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602  (exit $ac_status); } &&
7603         { ac_try='test -s conftest$ac_exeext'
7604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605  (eval $ac_try) 2>&5
7606  ac_status=$?
7607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608  (exit $ac_status); }; }; then
7609  ac_cv_lib_crypt_crypt=yes
7610else
7611  echo "$as_me: failed program was:" >&5
7612sed 's/^/| /' conftest.$ac_ext >&5
7613
7614ac_cv_lib_crypt_crypt=no
7615fi
7616rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7617LIBS=$ac_check_lib_save_LIBS
7618fi
7619echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7620echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7621if test $ac_cv_lib_crypt_crypt = yes; then
7622  LIB_CRYPT="-lcrypt"; cmu_have_crypt=yes
7623else
7624  cmu_have_crypt=no
7625fi
7626
7627fi
7628
7629
7630
7631
7632# Check whether --enable-sia or --disable-sia was given.
7633if test "${enable_sia+set}" = set; then
7634  enableval="$enable_sia"
7635  sia=$enableval
7636else
7637  sia=no
7638fi;
7639LIB_SIA=""
7640if test "$sia" != no; then
7641  if test -f /etc/sia/matrix.conf; then
7642
7643cat >>confdefs.h <<\_ACEOF
7644#define HAVE_SIA
7645_ACEOF
7646
7647    LIB_SIA="-lsecurity -ldb -lm -laud"
7648  else
7649    { { echo "$as_me:$LINENO: error: No support for SIA found" >&5
7650echo "$as_me: error: No support for SIA found" >&2;}
7651   { (exit 1); exit 1; }; }
7652  fi
7653fi
7654
7655
7656# Check whether --enable-auth-sasldb or --disable-auth-sasldb was given.
7657if test "${enable_auth_sasldb+set}" = set; then
7658  enableval="$enable_auth_sasldb"
7659  authsasldb=$enableval
7660else
7661  authsasldb=no
7662fi;
7663if test "$authsasldb" != no; then
7664  if test ! -d "../sasldb"; then
7665     echo "ERROR: Cannot build sasldb module outside of the full SASL source tree."
7666     exit 0;
7667  fi
7668
7669cat >>confdefs.h <<\_ACEOF
7670#define AUTH_SASLDB
7671_ACEOF
7672
7673
7674
7675# Check whether --with-dbpath or --without-dbpath was given.
7676if test "${with_dbpath+set}" = set; then
7677  withval="$with_dbpath"
7678  dbpath=$withval
7679else
7680  dbpath=/etc/sasldb2
7681fi;
7682echo "$as_me:$LINENO: checking DB path to use" >&5
7683echo $ECHO_N "checking DB path to use... $ECHO_C" >&6
7684echo "$as_me:$LINENO: result: $dbpath" >&5
7685echo "${ECHO_T}$dbpath" >&6
7686
7687cat >>confdefs.h <<_ACEOF
7688#define SASL_DB_PATH "$dbpath"
7689_ACEOF
7690
7691
7692cmu_save_LIBS="$LIBS"
7693
7694# Check whether --with-dblib or --without-dblib was given.
7695if test "${with_dblib+set}" = set; then
7696  withval="$with_dblib"
7697  dblib=$withval
7698else
7699  dblib=auto_detect
7700fi;
7701
7702
7703
7704# Check whether --with-bdb-libdir or --without-bdb-libdir was given.
7705if test "${with_bdb_libdir+set}" = set; then
7706  withval="$with_bdb_libdir"
7707  with_bdb_lib=$withval
7708else
7709   test "${with_bdb_lib+set}" = set || with_bdb_lib=none
7710fi;
7711
7712# Check whether --with-bdb-incdir or --without-bdb-incdir was given.
7713if test "${with_bdb_incdir+set}" = set; then
7714  withval="$with_bdb_incdir"
7715  with_bdb_inc=$withval
7716else
7717   test "${with_bdb_inc+set}" = set || with_bdb_inc=none
7718fi;
7719
7720
7721SASL_DB_LIB=""
7722
7723case "$dblib" in
7724  berkeley)
7725
7726
7727
7728	cmu_save_CPPFLAGS=$CPPFLAGS
7729
7730	if test -d $with_bdb_inc; then
7731	    CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
7732	    BDB_INCADD="-I$with_bdb_inc"
7733	else
7734	    BDB_INCADD=""
7735	fi
7736
7737	                if test "${ac_cv_header_db_h+set}" = set; then
7738  echo "$as_me:$LINENO: checking for db.h" >&5
7739echo $ECHO_N "checking for db.h... $ECHO_C" >&6
7740if test "${ac_cv_header_db_h+set}" = set; then
7741  echo $ECHO_N "(cached) $ECHO_C" >&6
7742fi
7743echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
7744echo "${ECHO_T}$ac_cv_header_db_h" >&6
7745else
7746  # Is the header compilable?
7747echo "$as_me:$LINENO: checking db.h usability" >&5
7748echo $ECHO_N "checking db.h usability... $ECHO_C" >&6
7749cat >conftest.$ac_ext <<_ACEOF
7750#line $LINENO "configure"
7751/* confdefs.h.  */
7752_ACEOF
7753cat confdefs.h >>conftest.$ac_ext
7754cat >>conftest.$ac_ext <<_ACEOF
7755/* end confdefs.h.  */
7756$ac_includes_default
7757#include <db.h>
7758_ACEOF
7759rm -f conftest.$ac_objext
7760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7761  (eval $ac_compile) 2>&5
7762  ac_status=$?
7763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764  (exit $ac_status); } &&
7765         { ac_try='test -s conftest.$ac_objext'
7766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7767  (eval $ac_try) 2>&5
7768  ac_status=$?
7769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770  (exit $ac_status); }; }; then
7771  ac_header_compiler=yes
7772else
7773  echo "$as_me: failed program was:" >&5
7774sed 's/^/| /' conftest.$ac_ext >&5
7775
7776ac_header_compiler=no
7777fi
7778rm -f conftest.$ac_objext conftest.$ac_ext
7779echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7780echo "${ECHO_T}$ac_header_compiler" >&6
7781
7782# Is the header present?
7783echo "$as_me:$LINENO: checking db.h presence" >&5
7784echo $ECHO_N "checking db.h presence... $ECHO_C" >&6
7785cat >conftest.$ac_ext <<_ACEOF
7786#line $LINENO "configure"
7787/* confdefs.h.  */
7788_ACEOF
7789cat confdefs.h >>conftest.$ac_ext
7790cat >>conftest.$ac_ext <<_ACEOF
7791/* end confdefs.h.  */
7792#include <db.h>
7793_ACEOF
7794if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7795  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7796  ac_status=$?
7797  grep -v '^ *+' conftest.er1 >conftest.err
7798  rm -f conftest.er1
7799  cat conftest.err >&5
7800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801  (exit $ac_status); } >/dev/null; then
7802  if test -s conftest.err; then
7803    ac_cpp_err=$ac_c_preproc_warn_flag
7804  else
7805    ac_cpp_err=
7806  fi
7807else
7808  ac_cpp_err=yes
7809fi
7810if test -z "$ac_cpp_err"; then
7811  ac_header_preproc=yes
7812else
7813  echo "$as_me: failed program was:" >&5
7814sed 's/^/| /' conftest.$ac_ext >&5
7815
7816  ac_header_preproc=no
7817fi
7818rm -f conftest.err conftest.$ac_ext
7819echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7820echo "${ECHO_T}$ac_header_preproc" >&6
7821
7822# So?  What about this header?
7823case $ac_header_compiler:$ac_header_preproc in
7824  yes:no )
7825    { echo "$as_me:$LINENO: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&5
7826echo "$as_me: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7827    { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5
7828echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;}
7829    (
7830      cat <<\_ASBOX
7831## ------------------------------------ ##
7832## Report this to bug-autoconf@gnu.org. ##
7833## ------------------------------------ ##
7834_ASBOX
7835    ) |
7836      sed "s/^/$as_me: WARNING:     /" >&2
7837    ;;
7838  no:yes )
7839    { echo "$as_me:$LINENO: WARNING: db.h: present but cannot be compiled" >&5
7840echo "$as_me: WARNING: db.h: present but cannot be compiled" >&2;}
7841    { echo "$as_me:$LINENO: WARNING: db.h: check for missing prerequisite headers?" >&5
7842echo "$as_me: WARNING: db.h: check for missing prerequisite headers?" >&2;}
7843    { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5
7844echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;}
7845    (
7846      cat <<\_ASBOX
7847## ------------------------------------ ##
7848## Report this to bug-autoconf@gnu.org. ##
7849## ------------------------------------ ##
7850_ASBOX
7851    ) |
7852      sed "s/^/$as_me: WARNING:     /" >&2
7853    ;;
7854esac
7855echo "$as_me:$LINENO: checking for db.h" >&5
7856echo $ECHO_N "checking for db.h... $ECHO_C" >&6
7857if test "${ac_cv_header_db_h+set}" = set; then
7858  echo $ECHO_N "(cached) $ECHO_C" >&6
7859else
7860  ac_cv_header_db_h=$ac_header_preproc
7861fi
7862echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
7863echo "${ECHO_T}$ac_cv_header_db_h" >&6
7864
7865fi
7866if test $ac_cv_header_db_h = yes; then
7867
7868	BDB_SAVE_LDFLAGS=$LDFLAGS
7869
7870	if test -d $with_bdb_lib; then
7871
7872  # this is CMU ADD LIBPATH TO
7873  if test "$andrew_runpath_switch" = "none" ; then
7874	LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
7875  else
7876	LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
7877  fi
7878
7879
7880  # this is CMU ADD LIBPATH TO
7881  if test "$andrew_runpath_switch" = "none" ; then
7882	BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
7883  else
7884	BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
7885  fi
7886
7887	else
7888	    BDB_LIBADD=""
7889	fi
7890
7891	saved_LIBS=$LIBS
7892        for dbname in db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db-3.3 db3.3 db33 db-3.2 db3.2 db32 db-3.1 db3.1 db31 db-3 db30 db3 db
7893          do
7894	    LIBS="$saved_LIBS -l$dbname"
7895	    cat >conftest.$ac_ext <<_ACEOF
7896#line $LINENO "configure"
7897/* confdefs.h.  */
7898_ACEOF
7899cat confdefs.h >>conftest.$ac_ext
7900cat >>conftest.$ac_ext <<_ACEOF
7901/* end confdefs.h.  */
7902#include <db.h>
7903int
7904main ()
7905{
7906db_create(NULL, NULL, 0);
7907  ;
7908  return 0;
7909}
7910_ACEOF
7911rm -f conftest.$ac_objext conftest$ac_exeext
7912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7913  (eval $ac_link) 2>&5
7914  ac_status=$?
7915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916  (exit $ac_status); } &&
7917         { ac_try='test -s conftest$ac_exeext'
7918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919  (eval $ac_try) 2>&5
7920  ac_status=$?
7921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922  (exit $ac_status); }; }; then
7923  BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
7924else
7925  echo "$as_me: failed program was:" >&5
7926sed 's/^/| /' conftest.$ac_ext >&5
7927
7928dblib="no"
7929fi
7930rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7931	    if test "$dblib" = "berkeley"; then break; fi
7932          done
7933        if test "$dblib" = "no"; then
7934	    LIBS="$saved_LIBS -ldb"
7935	    cat >conftest.$ac_ext <<_ACEOF
7936#line $LINENO "configure"
7937/* confdefs.h.  */
7938_ACEOF
7939cat confdefs.h >>conftest.$ac_ext
7940cat >>conftest.$ac_ext <<_ACEOF
7941/* end confdefs.h.  */
7942#include <db.h>
7943int
7944main ()
7945{
7946db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
7947  ;
7948  return 0;
7949}
7950_ACEOF
7951rm -f conftest.$ac_objext conftest$ac_exeext
7952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7953  (eval $ac_link) 2>&5
7954  ac_status=$?
7955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956  (exit $ac_status); } &&
7957         { ac_try='test -s conftest$ac_exeext'
7958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959  (eval $ac_try) 2>&5
7960  ac_status=$?
7961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962  (exit $ac_status); }; }; then
7963  BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
7964else
7965  echo "$as_me: failed program was:" >&5
7966sed 's/^/| /' conftest.$ac_ext >&5
7967
7968dblib="no"
7969fi
7970rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7971        fi
7972	LIBS=$saved_LIBS
7973
7974	LDFLAGS=$BDB_SAVE_LDFLAGS
7975
7976else
7977  dblib="no"
7978fi
7979
7980
7981
7982	CPPFLAGS=$cmu_save_CPPFLAGS
7983
7984	CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
7985	SASL_DB_INC=$BDB_INCADD
7986	SASL_DB_LIB="${BDB_LIBADD}"
7987	;;
7988  gdbm)
7989
7990# Check whether --with-gdbm or --without-gdbm was given.
7991if test "${with_gdbm+set}" = set; then
7992  withval="$with_gdbm"
7993  with_gdbm="${withval}"
7994fi;
7995
7996        case "$with_gdbm" in
7997           ""|yes)
7998               if test "${ac_cv_header_gdbm_h+set}" = set; then
7999  echo "$as_me:$LINENO: checking for gdbm.h" >&5
8000echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6
8001if test "${ac_cv_header_gdbm_h+set}" = set; then
8002  echo $ECHO_N "(cached) $ECHO_C" >&6
8003fi
8004echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
8005echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6
8006else
8007  # Is the header compilable?
8008echo "$as_me:$LINENO: checking gdbm.h usability" >&5
8009echo $ECHO_N "checking gdbm.h usability... $ECHO_C" >&6
8010cat >conftest.$ac_ext <<_ACEOF
8011#line $LINENO "configure"
8012/* confdefs.h.  */
8013_ACEOF
8014cat confdefs.h >>conftest.$ac_ext
8015cat >>conftest.$ac_ext <<_ACEOF
8016/* end confdefs.h.  */
8017$ac_includes_default
8018#include <gdbm.h>
8019_ACEOF
8020rm -f conftest.$ac_objext
8021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8022  (eval $ac_compile) 2>&5
8023  ac_status=$?
8024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025  (exit $ac_status); } &&
8026         { ac_try='test -s conftest.$ac_objext'
8027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8028  (eval $ac_try) 2>&5
8029  ac_status=$?
8030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031  (exit $ac_status); }; }; then
8032  ac_header_compiler=yes
8033else
8034  echo "$as_me: failed program was:" >&5
8035sed 's/^/| /' conftest.$ac_ext >&5
8036
8037ac_header_compiler=no
8038fi
8039rm -f conftest.$ac_objext conftest.$ac_ext
8040echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8041echo "${ECHO_T}$ac_header_compiler" >&6
8042
8043# Is the header present?
8044echo "$as_me:$LINENO: checking gdbm.h presence" >&5
8045echo $ECHO_N "checking gdbm.h presence... $ECHO_C" >&6
8046cat >conftest.$ac_ext <<_ACEOF
8047#line $LINENO "configure"
8048/* confdefs.h.  */
8049_ACEOF
8050cat confdefs.h >>conftest.$ac_ext
8051cat >>conftest.$ac_ext <<_ACEOF
8052/* end confdefs.h.  */
8053#include <gdbm.h>
8054_ACEOF
8055if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8056  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8057  ac_status=$?
8058  grep -v '^ *+' conftest.er1 >conftest.err
8059  rm -f conftest.er1
8060  cat conftest.err >&5
8061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062  (exit $ac_status); } >/dev/null; then
8063  if test -s conftest.err; then
8064    ac_cpp_err=$ac_c_preproc_warn_flag
8065  else
8066    ac_cpp_err=
8067  fi
8068else
8069  ac_cpp_err=yes
8070fi
8071if test -z "$ac_cpp_err"; then
8072  ac_header_preproc=yes
8073else
8074  echo "$as_me: failed program was:" >&5
8075sed 's/^/| /' conftest.$ac_ext >&5
8076
8077  ac_header_preproc=no
8078fi
8079rm -f conftest.err conftest.$ac_ext
8080echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8081echo "${ECHO_T}$ac_header_preproc" >&6
8082
8083# So?  What about this header?
8084case $ac_header_compiler:$ac_header_preproc in
8085  yes:no )
8086    { echo "$as_me:$LINENO: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8087echo "$as_me: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8088    { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5
8089echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;}
8090    (
8091      cat <<\_ASBOX
8092## ------------------------------------ ##
8093## Report this to bug-autoconf@gnu.org. ##
8094## ------------------------------------ ##
8095_ASBOX
8096    ) |
8097      sed "s/^/$as_me: WARNING:     /" >&2
8098    ;;
8099  no:yes )
8100    { echo "$as_me:$LINENO: WARNING: gdbm.h: present but cannot be compiled" >&5
8101echo "$as_me: WARNING: gdbm.h: present but cannot be compiled" >&2;}
8102    { echo "$as_me:$LINENO: WARNING: gdbm.h: check for missing prerequisite headers?" >&5
8103echo "$as_me: WARNING: gdbm.h: check for missing prerequisite headers?" >&2;}
8104    { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5
8105echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;}
8106    (
8107      cat <<\_ASBOX
8108## ------------------------------------ ##
8109## Report this to bug-autoconf@gnu.org. ##
8110## ------------------------------------ ##
8111_ASBOX
8112    ) |
8113      sed "s/^/$as_me: WARNING:     /" >&2
8114    ;;
8115esac
8116echo "$as_me:$LINENO: checking for gdbm.h" >&5
8117echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6
8118if test "${ac_cv_header_gdbm_h+set}" = set; then
8119  echo $ECHO_N "(cached) $ECHO_C" >&6
8120else
8121  ac_cv_header_gdbm_h=$ac_header_preproc
8122fi
8123echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
8124echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6
8125
8126fi
8127if test $ac_cv_header_gdbm_h = yes; then
8128
8129			echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
8130echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
8131if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
8132  echo $ECHO_N "(cached) $ECHO_C" >&6
8133else
8134  ac_check_lib_save_LIBS=$LIBS
8135LIBS="-lgdbm  $LIBS"
8136cat >conftest.$ac_ext <<_ACEOF
8137#line $LINENO "configure"
8138/* confdefs.h.  */
8139_ACEOF
8140cat confdefs.h >>conftest.$ac_ext
8141cat >>conftest.$ac_ext <<_ACEOF
8142/* end confdefs.h.  */
8143
8144/* Override any gcc2 internal prototype to avoid an error.  */
8145#ifdef __cplusplus
8146extern "C"
8147#endif
8148/* We use char because int might match the return type of a gcc2
8149   builtin and then its argument prototype would still apply.  */
8150char gdbm_open ();
8151int
8152main ()
8153{
8154gdbm_open ();
8155  ;
8156  return 0;
8157}
8158_ACEOF
8159rm -f conftest.$ac_objext conftest$ac_exeext
8160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8161  (eval $ac_link) 2>&5
8162  ac_status=$?
8163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164  (exit $ac_status); } &&
8165         { ac_try='test -s conftest$ac_exeext'
8166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8167  (eval $ac_try) 2>&5
8168  ac_status=$?
8169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170  (exit $ac_status); }; }; then
8171  ac_cv_lib_gdbm_gdbm_open=yes
8172else
8173  echo "$as_me: failed program was:" >&5
8174sed 's/^/| /' conftest.$ac_ext >&5
8175
8176ac_cv_lib_gdbm_gdbm_open=no
8177fi
8178rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8179LIBS=$ac_check_lib_save_LIBS
8180fi
8181echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
8182echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
8183if test $ac_cv_lib_gdbm_gdbm_open = yes; then
8184  SASL_DB_LIB="-lgdbm"
8185else
8186  dblib="no"
8187fi
8188
8189else
8190  dblib="no"
8191fi
8192
8193
8194               ;;
8195           *)
8196               if test -d $with_gdbm; then
8197                 CPPFLAGS="${CPPFLAGS} -I${with_gdbm}/include"
8198                 LDFLAGS="${LDFLAGS} -L${with_gdbm}/lib"
8199                 SASL_DB_LIB="-lgdbm"
8200               else
8201                 with_gdbm="no"
8202               fi
8203       esac
8204	;;
8205  ndbm)
8206			if test "${ac_cv_header_ndbm_h+set}" = set; then
8207  echo "$as_me:$LINENO: checking for ndbm.h" >&5
8208echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6
8209if test "${ac_cv_header_ndbm_h+set}" = set; then
8210  echo $ECHO_N "(cached) $ECHO_C" >&6
8211fi
8212echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
8213echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6
8214else
8215  # Is the header compilable?
8216echo "$as_me:$LINENO: checking ndbm.h usability" >&5
8217echo $ECHO_N "checking ndbm.h usability... $ECHO_C" >&6
8218cat >conftest.$ac_ext <<_ACEOF
8219#line $LINENO "configure"
8220/* confdefs.h.  */
8221_ACEOF
8222cat confdefs.h >>conftest.$ac_ext
8223cat >>conftest.$ac_ext <<_ACEOF
8224/* end confdefs.h.  */
8225$ac_includes_default
8226#include <ndbm.h>
8227_ACEOF
8228rm -f conftest.$ac_objext
8229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8230  (eval $ac_compile) 2>&5
8231  ac_status=$?
8232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233  (exit $ac_status); } &&
8234         { ac_try='test -s conftest.$ac_objext'
8235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8236  (eval $ac_try) 2>&5
8237  ac_status=$?
8238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239  (exit $ac_status); }; }; then
8240  ac_header_compiler=yes
8241else
8242  echo "$as_me: failed program was:" >&5
8243sed 's/^/| /' conftest.$ac_ext >&5
8244
8245ac_header_compiler=no
8246fi
8247rm -f conftest.$ac_objext conftest.$ac_ext
8248echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8249echo "${ECHO_T}$ac_header_compiler" >&6
8250
8251# Is the header present?
8252echo "$as_me:$LINENO: checking ndbm.h presence" >&5
8253echo $ECHO_N "checking ndbm.h presence... $ECHO_C" >&6
8254cat >conftest.$ac_ext <<_ACEOF
8255#line $LINENO "configure"
8256/* confdefs.h.  */
8257_ACEOF
8258cat confdefs.h >>conftest.$ac_ext
8259cat >>conftest.$ac_ext <<_ACEOF
8260/* end confdefs.h.  */
8261#include <ndbm.h>
8262_ACEOF
8263if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8264  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8265  ac_status=$?
8266  grep -v '^ *+' conftest.er1 >conftest.err
8267  rm -f conftest.er1
8268  cat conftest.err >&5
8269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270  (exit $ac_status); } >/dev/null; then
8271  if test -s conftest.err; then
8272    ac_cpp_err=$ac_c_preproc_warn_flag
8273  else
8274    ac_cpp_err=
8275  fi
8276else
8277  ac_cpp_err=yes
8278fi
8279if test -z "$ac_cpp_err"; then
8280  ac_header_preproc=yes
8281else
8282  echo "$as_me: failed program was:" >&5
8283sed 's/^/| /' conftest.$ac_ext >&5
8284
8285  ac_header_preproc=no
8286fi
8287rm -f conftest.err conftest.$ac_ext
8288echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8289echo "${ECHO_T}$ac_header_preproc" >&6
8290
8291# So?  What about this header?
8292case $ac_header_compiler:$ac_header_preproc in
8293  yes:no )
8294    { echo "$as_me:$LINENO: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8295echo "$as_me: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8296    { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the preprocessor's result" >&5
8297echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result" >&2;}
8298    (
8299      cat <<\_ASBOX
8300## ------------------------------------ ##
8301## Report this to bug-autoconf@gnu.org. ##
8302## ------------------------------------ ##
8303_ASBOX
8304    ) |
8305      sed "s/^/$as_me: WARNING:     /" >&2
8306    ;;
8307  no:yes )
8308    { echo "$as_me:$LINENO: WARNING: ndbm.h: present but cannot be compiled" >&5
8309echo "$as_me: WARNING: ndbm.h: present but cannot be compiled" >&2;}
8310    { echo "$as_me:$LINENO: WARNING: ndbm.h: check for missing prerequisite headers?" >&5
8311echo "$as_me: WARNING: ndbm.h: check for missing prerequisite headers?" >&2;}
8312    { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the preprocessor's result" >&5
8313echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result" >&2;}
8314    (
8315      cat <<\_ASBOX
8316## ------------------------------------ ##
8317## Report this to bug-autoconf@gnu.org. ##
8318## ------------------------------------ ##
8319_ASBOX
8320    ) |
8321      sed "s/^/$as_me: WARNING:     /" >&2
8322    ;;
8323esac
8324echo "$as_me:$LINENO: checking for ndbm.h" >&5
8325echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6
8326if test "${ac_cv_header_ndbm_h+set}" = set; then
8327  echo $ECHO_N "(cached) $ECHO_C" >&6
8328else
8329  ac_cv_header_ndbm_h=$ac_header_preproc
8330fi
8331echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
8332echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6
8333
8334fi
8335if test $ac_cv_header_ndbm_h = yes; then
8336
8337			echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
8338echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
8339if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
8340  echo $ECHO_N "(cached) $ECHO_C" >&6
8341else
8342  ac_check_lib_save_LIBS=$LIBS
8343LIBS="-lndbm  $LIBS"
8344cat >conftest.$ac_ext <<_ACEOF
8345#line $LINENO "configure"
8346/* confdefs.h.  */
8347_ACEOF
8348cat confdefs.h >>conftest.$ac_ext
8349cat >>conftest.$ac_ext <<_ACEOF
8350/* end confdefs.h.  */
8351
8352/* Override any gcc2 internal prototype to avoid an error.  */
8353#ifdef __cplusplus
8354extern "C"
8355#endif
8356/* We use char because int might match the return type of a gcc2
8357   builtin and then its argument prototype would still apply.  */
8358char dbm_open ();
8359int
8360main ()
8361{
8362dbm_open ();
8363  ;
8364  return 0;
8365}
8366_ACEOF
8367rm -f conftest.$ac_objext conftest$ac_exeext
8368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8369  (eval $ac_link) 2>&5
8370  ac_status=$?
8371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372  (exit $ac_status); } &&
8373         { ac_try='test -s conftest$ac_exeext'
8374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8375  (eval $ac_try) 2>&5
8376  ac_status=$?
8377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378  (exit $ac_status); }; }; then
8379  ac_cv_lib_ndbm_dbm_open=yes
8380else
8381  echo "$as_me: failed program was:" >&5
8382sed 's/^/| /' conftest.$ac_ext >&5
8383
8384ac_cv_lib_ndbm_dbm_open=no
8385fi
8386rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8387LIBS=$ac_check_lib_save_LIBS
8388fi
8389echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
8390echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
8391if test $ac_cv_lib_ndbm_dbm_open = yes; then
8392  SASL_DB_LIB="-lndbm"
8393else
8394
8395				echo "$as_me:$LINENO: checking for dbm_open" >&5
8396echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
8397if test "${ac_cv_func_dbm_open+set}" = set; then
8398  echo $ECHO_N "(cached) $ECHO_C" >&6
8399else
8400  cat >conftest.$ac_ext <<_ACEOF
8401#line $LINENO "configure"
8402/* confdefs.h.  */
8403_ACEOF
8404cat confdefs.h >>conftest.$ac_ext
8405cat >>conftest.$ac_ext <<_ACEOF
8406/* end confdefs.h.  */
8407/* System header to define __stub macros and hopefully few prototypes,
8408    which can conflict with char dbm_open (); below.
8409    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8410    <limits.h> exists even on freestanding compilers.  */
8411#ifdef __STDC__
8412# include <limits.h>
8413#else
8414# include <assert.h>
8415#endif
8416/* Override any gcc2 internal prototype to avoid an error.  */
8417#ifdef __cplusplus
8418extern "C"
8419{
8420#endif
8421/* We use char because int might match the return type of a gcc2
8422   builtin and then its argument prototype would still apply.  */
8423char dbm_open ();
8424/* The GNU C library defines this for functions which it implements
8425    to always fail with ENOSYS.  Some functions are actually named
8426    something starting with __ and the normal name is an alias.  */
8427#if defined (__stub_dbm_open) || defined (__stub___dbm_open)
8428choke me
8429#else
8430char (*f) () = dbm_open;
8431#endif
8432#ifdef __cplusplus
8433}
8434#endif
8435
8436int
8437main ()
8438{
8439return f != dbm_open;
8440  ;
8441  return 0;
8442}
8443_ACEOF
8444rm -f conftest.$ac_objext conftest$ac_exeext
8445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8446  (eval $ac_link) 2>&5
8447  ac_status=$?
8448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449  (exit $ac_status); } &&
8450         { ac_try='test -s conftest$ac_exeext'
8451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452  (eval $ac_try) 2>&5
8453  ac_status=$?
8454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455  (exit $ac_status); }; }; then
8456  ac_cv_func_dbm_open=yes
8457else
8458  echo "$as_me: failed program was:" >&5
8459sed 's/^/| /' conftest.$ac_ext >&5
8460
8461ac_cv_func_dbm_open=no
8462fi
8463rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8464fi
8465echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
8466echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
8467if test $ac_cv_func_dbm_open = yes; then
8468  :
8469else
8470  dblib="no"
8471fi
8472
8473fi
8474
8475else
8476  dblib="no"
8477fi
8478
8479
8480	;;
8481  auto_detect)
8482
8483
8484
8485	cmu_save_CPPFLAGS=$CPPFLAGS
8486
8487	if test -d $with_bdb_inc; then
8488	    CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
8489	    BDB_INCADD="-I$with_bdb_inc"
8490	else
8491	    BDB_INCADD=""
8492	fi
8493
8494	                if test "${ac_cv_header_db_h+set}" = set; then
8495  echo "$as_me:$LINENO: checking for db.h" >&5
8496echo $ECHO_N "checking for db.h... $ECHO_C" >&6
8497if test "${ac_cv_header_db_h+set}" = set; then
8498  echo $ECHO_N "(cached) $ECHO_C" >&6
8499fi
8500echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
8501echo "${ECHO_T}$ac_cv_header_db_h" >&6
8502else
8503  # Is the header compilable?
8504echo "$as_me:$LINENO: checking db.h usability" >&5
8505echo $ECHO_N "checking db.h usability... $ECHO_C" >&6
8506cat >conftest.$ac_ext <<_ACEOF
8507#line $LINENO "configure"
8508/* confdefs.h.  */
8509_ACEOF
8510cat confdefs.h >>conftest.$ac_ext
8511cat >>conftest.$ac_ext <<_ACEOF
8512/* end confdefs.h.  */
8513$ac_includes_default
8514#include <db.h>
8515_ACEOF
8516rm -f conftest.$ac_objext
8517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8518  (eval $ac_compile) 2>&5
8519  ac_status=$?
8520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521  (exit $ac_status); } &&
8522         { ac_try='test -s conftest.$ac_objext'
8523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524  (eval $ac_try) 2>&5
8525  ac_status=$?
8526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527  (exit $ac_status); }; }; then
8528  ac_header_compiler=yes
8529else
8530  echo "$as_me: failed program was:" >&5
8531sed 's/^/| /' conftest.$ac_ext >&5
8532
8533ac_header_compiler=no
8534fi
8535rm -f conftest.$ac_objext conftest.$ac_ext
8536echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8537echo "${ECHO_T}$ac_header_compiler" >&6
8538
8539# Is the header present?
8540echo "$as_me:$LINENO: checking db.h presence" >&5
8541echo $ECHO_N "checking db.h presence... $ECHO_C" >&6
8542cat >conftest.$ac_ext <<_ACEOF
8543#line $LINENO "configure"
8544/* confdefs.h.  */
8545_ACEOF
8546cat confdefs.h >>conftest.$ac_ext
8547cat >>conftest.$ac_ext <<_ACEOF
8548/* end confdefs.h.  */
8549#include <db.h>
8550_ACEOF
8551if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8552  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8553  ac_status=$?
8554  grep -v '^ *+' conftest.er1 >conftest.err
8555  rm -f conftest.er1
8556  cat conftest.err >&5
8557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558  (exit $ac_status); } >/dev/null; then
8559  if test -s conftest.err; then
8560    ac_cpp_err=$ac_c_preproc_warn_flag
8561  else
8562    ac_cpp_err=
8563  fi
8564else
8565  ac_cpp_err=yes
8566fi
8567if test -z "$ac_cpp_err"; then
8568  ac_header_preproc=yes
8569else
8570  echo "$as_me: failed program was:" >&5
8571sed 's/^/| /' conftest.$ac_ext >&5
8572
8573  ac_header_preproc=no
8574fi
8575rm -f conftest.err conftest.$ac_ext
8576echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8577echo "${ECHO_T}$ac_header_preproc" >&6
8578
8579# So?  What about this header?
8580case $ac_header_compiler:$ac_header_preproc in
8581  yes:no )
8582    { echo "$as_me:$LINENO: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&5
8583echo "$as_me: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8584    { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5
8585echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;}
8586    (
8587      cat <<\_ASBOX
8588## ------------------------------------ ##
8589## Report this to bug-autoconf@gnu.org. ##
8590## ------------------------------------ ##
8591_ASBOX
8592    ) |
8593      sed "s/^/$as_me: WARNING:     /" >&2
8594    ;;
8595  no:yes )
8596    { echo "$as_me:$LINENO: WARNING: db.h: present but cannot be compiled" >&5
8597echo "$as_me: WARNING: db.h: present but cannot be compiled" >&2;}
8598    { echo "$as_me:$LINENO: WARNING: db.h: check for missing prerequisite headers?" >&5
8599echo "$as_me: WARNING: db.h: check for missing prerequisite headers?" >&2;}
8600    { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5
8601echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;}
8602    (
8603      cat <<\_ASBOX
8604## ------------------------------------ ##
8605## Report this to bug-autoconf@gnu.org. ##
8606## ------------------------------------ ##
8607_ASBOX
8608    ) |
8609      sed "s/^/$as_me: WARNING:     /" >&2
8610    ;;
8611esac
8612echo "$as_me:$LINENO: checking for db.h" >&5
8613echo $ECHO_N "checking for db.h... $ECHO_C" >&6
8614if test "${ac_cv_header_db_h+set}" = set; then
8615  echo $ECHO_N "(cached) $ECHO_C" >&6
8616else
8617  ac_cv_header_db_h=$ac_header_preproc
8618fi
8619echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
8620echo "${ECHO_T}$ac_cv_header_db_h" >&6
8621
8622fi
8623if test $ac_cv_header_db_h = yes; then
8624
8625	BDB_SAVE_LDFLAGS=$LDFLAGS
8626
8627	if test -d $with_bdb_lib; then
8628
8629  # this is CMU ADD LIBPATH TO
8630  if test "$andrew_runpath_switch" = "none" ; then
8631	LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
8632  else
8633	LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
8634  fi
8635
8636
8637  # this is CMU ADD LIBPATH TO
8638  if test "$andrew_runpath_switch" = "none" ; then
8639	BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
8640  else
8641	BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
8642  fi
8643
8644	else
8645	    BDB_LIBADD=""
8646	fi
8647
8648	saved_LIBS=$LIBS
8649        for dbname in db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db-3.3 db3.3 db33 db-3.2 db3.2 db32 db-3.1 db3.1 db31 db-3 db30 db3 db
8650          do
8651	    LIBS="$saved_LIBS -l$dbname"
8652	    cat >conftest.$ac_ext <<_ACEOF
8653#line $LINENO "configure"
8654/* confdefs.h.  */
8655_ACEOF
8656cat confdefs.h >>conftest.$ac_ext
8657cat >>conftest.$ac_ext <<_ACEOF
8658/* end confdefs.h.  */
8659#include <db.h>
8660int
8661main ()
8662{
8663db_create(NULL, NULL, 0);
8664  ;
8665  return 0;
8666}
8667_ACEOF
8668rm -f conftest.$ac_objext conftest$ac_exeext
8669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8670  (eval $ac_link) 2>&5
8671  ac_status=$?
8672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673  (exit $ac_status); } &&
8674         { ac_try='test -s conftest$ac_exeext'
8675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676  (eval $ac_try) 2>&5
8677  ac_status=$?
8678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679  (exit $ac_status); }; }; then
8680  BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
8681else
8682  echo "$as_me: failed program was:" >&5
8683sed 's/^/| /' conftest.$ac_ext >&5
8684
8685dblib="no"
8686fi
8687rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8688	    if test "$dblib" = "berkeley"; then break; fi
8689          done
8690        if test "$dblib" = "no"; then
8691	    LIBS="$saved_LIBS -ldb"
8692	    cat >conftest.$ac_ext <<_ACEOF
8693#line $LINENO "configure"
8694/* confdefs.h.  */
8695_ACEOF
8696cat confdefs.h >>conftest.$ac_ext
8697cat >>conftest.$ac_ext <<_ACEOF
8698/* end confdefs.h.  */
8699#include <db.h>
8700int
8701main ()
8702{
8703db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
8704  ;
8705  return 0;
8706}
8707_ACEOF
8708rm -f conftest.$ac_objext conftest$ac_exeext
8709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8710  (eval $ac_link) 2>&5
8711  ac_status=$?
8712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713  (exit $ac_status); } &&
8714         { ac_try='test -s conftest$ac_exeext'
8715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716  (eval $ac_try) 2>&5
8717  ac_status=$?
8718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719  (exit $ac_status); }; }; then
8720  BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
8721else
8722  echo "$as_me: failed program was:" >&5
8723sed 's/^/| /' conftest.$ac_ext >&5
8724
8725dblib="no"
8726fi
8727rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8728        fi
8729	LIBS=$saved_LIBS
8730
8731	LDFLAGS=$BDB_SAVE_LDFLAGS
8732
8733else
8734  dblib="no"
8735fi
8736
8737
8738
8739	CPPFLAGS=$cmu_save_CPPFLAGS
8740
8741	if test "$dblib" = no; then
8742	  	  if test "${ac_cv_header_ndbm_h+set}" = set; then
8743  echo "$as_me:$LINENO: checking for ndbm.h" >&5
8744echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6
8745if test "${ac_cv_header_ndbm_h+set}" = set; then
8746  echo $ECHO_N "(cached) $ECHO_C" >&6
8747fi
8748echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
8749echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6
8750else
8751  # Is the header compilable?
8752echo "$as_me:$LINENO: checking ndbm.h usability" >&5
8753echo $ECHO_N "checking ndbm.h usability... $ECHO_C" >&6
8754cat >conftest.$ac_ext <<_ACEOF
8755#line $LINENO "configure"
8756/* confdefs.h.  */
8757_ACEOF
8758cat confdefs.h >>conftest.$ac_ext
8759cat >>conftest.$ac_ext <<_ACEOF
8760/* end confdefs.h.  */
8761$ac_includes_default
8762#include <ndbm.h>
8763_ACEOF
8764rm -f conftest.$ac_objext
8765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8766  (eval $ac_compile) 2>&5
8767  ac_status=$?
8768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769  (exit $ac_status); } &&
8770         { ac_try='test -s conftest.$ac_objext'
8771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772  (eval $ac_try) 2>&5
8773  ac_status=$?
8774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775  (exit $ac_status); }; }; then
8776  ac_header_compiler=yes
8777else
8778  echo "$as_me: failed program was:" >&5
8779sed 's/^/| /' conftest.$ac_ext >&5
8780
8781ac_header_compiler=no
8782fi
8783rm -f conftest.$ac_objext conftest.$ac_ext
8784echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8785echo "${ECHO_T}$ac_header_compiler" >&6
8786
8787# Is the header present?
8788echo "$as_me:$LINENO: checking ndbm.h presence" >&5
8789echo $ECHO_N "checking ndbm.h presence... $ECHO_C" >&6
8790cat >conftest.$ac_ext <<_ACEOF
8791#line $LINENO "configure"
8792/* confdefs.h.  */
8793_ACEOF
8794cat confdefs.h >>conftest.$ac_ext
8795cat >>conftest.$ac_ext <<_ACEOF
8796/* end confdefs.h.  */
8797#include <ndbm.h>
8798_ACEOF
8799if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8800  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8801  ac_status=$?
8802  grep -v '^ *+' conftest.er1 >conftest.err
8803  rm -f conftest.er1
8804  cat conftest.err >&5
8805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806  (exit $ac_status); } >/dev/null; then
8807  if test -s conftest.err; then
8808    ac_cpp_err=$ac_c_preproc_warn_flag
8809  else
8810    ac_cpp_err=
8811  fi
8812else
8813  ac_cpp_err=yes
8814fi
8815if test -z "$ac_cpp_err"; then
8816  ac_header_preproc=yes
8817else
8818  echo "$as_me: failed program was:" >&5
8819sed 's/^/| /' conftest.$ac_ext >&5
8820
8821  ac_header_preproc=no
8822fi
8823rm -f conftest.err conftest.$ac_ext
8824echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8825echo "${ECHO_T}$ac_header_preproc" >&6
8826
8827# So?  What about this header?
8828case $ac_header_compiler:$ac_header_preproc in
8829  yes:no )
8830    { echo "$as_me:$LINENO: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8831echo "$as_me: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8832    { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the preprocessor's result" >&5
8833echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result" >&2;}
8834    (
8835      cat <<\_ASBOX
8836## ------------------------------------ ##
8837## Report this to bug-autoconf@gnu.org. ##
8838## ------------------------------------ ##
8839_ASBOX
8840    ) |
8841      sed "s/^/$as_me: WARNING:     /" >&2
8842    ;;
8843  no:yes )
8844    { echo "$as_me:$LINENO: WARNING: ndbm.h: present but cannot be compiled" >&5
8845echo "$as_me: WARNING: ndbm.h: present but cannot be compiled" >&2;}
8846    { echo "$as_me:$LINENO: WARNING: ndbm.h: check for missing prerequisite headers?" >&5
8847echo "$as_me: WARNING: ndbm.h: check for missing prerequisite headers?" >&2;}
8848    { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the preprocessor's result" >&5
8849echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result" >&2;}
8850    (
8851      cat <<\_ASBOX
8852## ------------------------------------ ##
8853## Report this to bug-autoconf@gnu.org. ##
8854## ------------------------------------ ##
8855_ASBOX
8856    ) |
8857      sed "s/^/$as_me: WARNING:     /" >&2
8858    ;;
8859esac
8860echo "$as_me:$LINENO: checking for ndbm.h" >&5
8861echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6
8862if test "${ac_cv_header_ndbm_h+set}" = set; then
8863  echo $ECHO_N "(cached) $ECHO_C" >&6
8864else
8865  ac_cv_header_ndbm_h=$ac_header_preproc
8866fi
8867echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
8868echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6
8869
8870fi
8871if test $ac_cv_header_ndbm_h = yes; then
8872
8873		echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
8874echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
8875if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
8876  echo $ECHO_N "(cached) $ECHO_C" >&6
8877else
8878  ac_check_lib_save_LIBS=$LIBS
8879LIBS="-lndbm  $LIBS"
8880cat >conftest.$ac_ext <<_ACEOF
8881#line $LINENO "configure"
8882/* confdefs.h.  */
8883_ACEOF
8884cat confdefs.h >>conftest.$ac_ext
8885cat >>conftest.$ac_ext <<_ACEOF
8886/* end confdefs.h.  */
8887
8888/* Override any gcc2 internal prototype to avoid an error.  */
8889#ifdef __cplusplus
8890extern "C"
8891#endif
8892/* We use char because int might match the return type of a gcc2
8893   builtin and then its argument prototype would still apply.  */
8894char dbm_open ();
8895int
8896main ()
8897{
8898dbm_open ();
8899  ;
8900  return 0;
8901}
8902_ACEOF
8903rm -f conftest.$ac_objext conftest$ac_exeext
8904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8905  (eval $ac_link) 2>&5
8906  ac_status=$?
8907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908  (exit $ac_status); } &&
8909         { ac_try='test -s conftest$ac_exeext'
8910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8911  (eval $ac_try) 2>&5
8912  ac_status=$?
8913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914  (exit $ac_status); }; }; then
8915  ac_cv_lib_ndbm_dbm_open=yes
8916else
8917  echo "$as_me: failed program was:" >&5
8918sed 's/^/| /' conftest.$ac_ext >&5
8919
8920ac_cv_lib_ndbm_dbm_open=no
8921fi
8922rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8923LIBS=$ac_check_lib_save_LIBS
8924fi
8925echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
8926echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
8927if test $ac_cv_lib_ndbm_dbm_open = yes; then
8928  dblib="ndbm"; SASL_DB_LIB="-lndbm"
8929else
8930  dblib="weird"
8931fi
8932
8933else
8934  dblib="no"
8935fi
8936
8937
8938	  if test "$dblib" = "weird"; then
8939	                echo "$as_me:$LINENO: checking for dbm_open" >&5
8940echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
8941if test "${ac_cv_func_dbm_open+set}" = set; then
8942  echo $ECHO_N "(cached) $ECHO_C" >&6
8943else
8944  cat >conftest.$ac_ext <<_ACEOF
8945#line $LINENO "configure"
8946/* confdefs.h.  */
8947_ACEOF
8948cat confdefs.h >>conftest.$ac_ext
8949cat >>conftest.$ac_ext <<_ACEOF
8950/* end confdefs.h.  */
8951/* System header to define __stub macros and hopefully few prototypes,
8952    which can conflict with char dbm_open (); below.
8953    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8954    <limits.h> exists even on freestanding compilers.  */
8955#ifdef __STDC__
8956# include <limits.h>
8957#else
8958# include <assert.h>
8959#endif
8960/* Override any gcc2 internal prototype to avoid an error.  */
8961#ifdef __cplusplus
8962extern "C"
8963{
8964#endif
8965/* We use char because int might match the return type of a gcc2
8966   builtin and then its argument prototype would still apply.  */
8967char dbm_open ();
8968/* The GNU C library defines this for functions which it implements
8969    to always fail with ENOSYS.  Some functions are actually named
8970    something starting with __ and the normal name is an alias.  */
8971#if defined (__stub_dbm_open) || defined (__stub___dbm_open)
8972choke me
8973#else
8974char (*f) () = dbm_open;
8975#endif
8976#ifdef __cplusplus
8977}
8978#endif
8979
8980int
8981main ()
8982{
8983return f != dbm_open;
8984  ;
8985  return 0;
8986}
8987_ACEOF
8988rm -f conftest.$ac_objext conftest$ac_exeext
8989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8990  (eval $ac_link) 2>&5
8991  ac_status=$?
8992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993  (exit $ac_status); } &&
8994         { ac_try='test -s conftest$ac_exeext'
8995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996  (eval $ac_try) 2>&5
8997  ac_status=$?
8998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999  (exit $ac_status); }; }; then
9000  ac_cv_func_dbm_open=yes
9001else
9002  echo "$as_me: failed program was:" >&5
9003sed 's/^/| /' conftest.$ac_ext >&5
9004
9005ac_cv_func_dbm_open=no
9006fi
9007rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9008fi
9009echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
9010echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
9011if test $ac_cv_func_dbm_open = yes; then
9012  dblib="ndbm"
9013else
9014  dblib="no"
9015fi
9016
9017	  fi
9018
9019	  if test "$dblib" = no; then
9020               	    if test "${ac_cv_header_gdbm_h+set}" = set; then
9021  echo "$as_me:$LINENO: checking for gdbm.h" >&5
9022echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6
9023if test "${ac_cv_header_gdbm_h+set}" = set; then
9024  echo $ECHO_N "(cached) $ECHO_C" >&6
9025fi
9026echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
9027echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6
9028else
9029  # Is the header compilable?
9030echo "$as_me:$LINENO: checking gdbm.h usability" >&5
9031echo $ECHO_N "checking gdbm.h usability... $ECHO_C" >&6
9032cat >conftest.$ac_ext <<_ACEOF
9033#line $LINENO "configure"
9034/* confdefs.h.  */
9035_ACEOF
9036cat confdefs.h >>conftest.$ac_ext
9037cat >>conftest.$ac_ext <<_ACEOF
9038/* end confdefs.h.  */
9039$ac_includes_default
9040#include <gdbm.h>
9041_ACEOF
9042rm -f conftest.$ac_objext
9043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9044  (eval $ac_compile) 2>&5
9045  ac_status=$?
9046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047  (exit $ac_status); } &&
9048         { ac_try='test -s conftest.$ac_objext'
9049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050  (eval $ac_try) 2>&5
9051  ac_status=$?
9052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053  (exit $ac_status); }; }; then
9054  ac_header_compiler=yes
9055else
9056  echo "$as_me: failed program was:" >&5
9057sed 's/^/| /' conftest.$ac_ext >&5
9058
9059ac_header_compiler=no
9060fi
9061rm -f conftest.$ac_objext conftest.$ac_ext
9062echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9063echo "${ECHO_T}$ac_header_compiler" >&6
9064
9065# Is the header present?
9066echo "$as_me:$LINENO: checking gdbm.h presence" >&5
9067echo $ECHO_N "checking gdbm.h presence... $ECHO_C" >&6
9068cat >conftest.$ac_ext <<_ACEOF
9069#line $LINENO "configure"
9070/* confdefs.h.  */
9071_ACEOF
9072cat confdefs.h >>conftest.$ac_ext
9073cat >>conftest.$ac_ext <<_ACEOF
9074/* end confdefs.h.  */
9075#include <gdbm.h>
9076_ACEOF
9077if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9078  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9079  ac_status=$?
9080  grep -v '^ *+' conftest.er1 >conftest.err
9081  rm -f conftest.er1
9082  cat conftest.err >&5
9083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084  (exit $ac_status); } >/dev/null; then
9085  if test -s conftest.err; then
9086    ac_cpp_err=$ac_c_preproc_warn_flag
9087  else
9088    ac_cpp_err=
9089  fi
9090else
9091  ac_cpp_err=yes
9092fi
9093if test -z "$ac_cpp_err"; then
9094  ac_header_preproc=yes
9095else
9096  echo "$as_me: failed program was:" >&5
9097sed 's/^/| /' conftest.$ac_ext >&5
9098
9099  ac_header_preproc=no
9100fi
9101rm -f conftest.err conftest.$ac_ext
9102echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9103echo "${ECHO_T}$ac_header_preproc" >&6
9104
9105# So?  What about this header?
9106case $ac_header_compiler:$ac_header_preproc in
9107  yes:no )
9108    { echo "$as_me:$LINENO: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
9109echo "$as_me: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9110    { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5
9111echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;}
9112    (
9113      cat <<\_ASBOX
9114## ------------------------------------ ##
9115## Report this to bug-autoconf@gnu.org. ##
9116## ------------------------------------ ##
9117_ASBOX
9118    ) |
9119      sed "s/^/$as_me: WARNING:     /" >&2
9120    ;;
9121  no:yes )
9122    { echo "$as_me:$LINENO: WARNING: gdbm.h: present but cannot be compiled" >&5
9123echo "$as_me: WARNING: gdbm.h: present but cannot be compiled" >&2;}
9124    { echo "$as_me:$LINENO: WARNING: gdbm.h: check for missing prerequisite headers?" >&5
9125echo "$as_me: WARNING: gdbm.h: check for missing prerequisite headers?" >&2;}
9126    { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5
9127echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;}
9128    (
9129      cat <<\_ASBOX
9130## ------------------------------------ ##
9131## Report this to bug-autoconf@gnu.org. ##
9132## ------------------------------------ ##
9133_ASBOX
9134    ) |
9135      sed "s/^/$as_me: WARNING:     /" >&2
9136    ;;
9137esac
9138echo "$as_me:$LINENO: checking for gdbm.h" >&5
9139echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6
9140if test "${ac_cv_header_gdbm_h+set}" = set; then
9141  echo $ECHO_N "(cached) $ECHO_C" >&6
9142else
9143  ac_cv_header_gdbm_h=$ac_header_preproc
9144fi
9145echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
9146echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6
9147
9148fi
9149if test $ac_cv_header_gdbm_h = yes; then
9150
9151		echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
9152echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
9153if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
9154  echo $ECHO_N "(cached) $ECHO_C" >&6
9155else
9156  ac_check_lib_save_LIBS=$LIBS
9157LIBS="-lgdbm  $LIBS"
9158cat >conftest.$ac_ext <<_ACEOF
9159#line $LINENO "configure"
9160/* confdefs.h.  */
9161_ACEOF
9162cat confdefs.h >>conftest.$ac_ext
9163cat >>conftest.$ac_ext <<_ACEOF
9164/* end confdefs.h.  */
9165
9166/* Override any gcc2 internal prototype to avoid an error.  */
9167#ifdef __cplusplus
9168extern "C"
9169#endif
9170/* We use char because int might match the return type of a gcc2
9171   builtin and then its argument prototype would still apply.  */
9172char gdbm_open ();
9173int
9174main ()
9175{
9176gdbm_open ();
9177  ;
9178  return 0;
9179}
9180_ACEOF
9181rm -f conftest.$ac_objext conftest$ac_exeext
9182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9183  (eval $ac_link) 2>&5
9184  ac_status=$?
9185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186  (exit $ac_status); } &&
9187         { ac_try='test -s conftest$ac_exeext'
9188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189  (eval $ac_try) 2>&5
9190  ac_status=$?
9191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192  (exit $ac_status); }; }; then
9193  ac_cv_lib_gdbm_gdbm_open=yes
9194else
9195  echo "$as_me: failed program was:" >&5
9196sed 's/^/| /' conftest.$ac_ext >&5
9197
9198ac_cv_lib_gdbm_gdbm_open=no
9199fi
9200rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9201LIBS=$ac_check_lib_save_LIBS
9202fi
9203echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
9204echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
9205if test $ac_cv_lib_gdbm_gdbm_open = yes; then
9206  dblib="gdbm";
9207					     SASL_DB_LIB="-lgdbm"
9208else
9209  dblib="no"
9210fi
9211
9212else
9213  dblib="no"
9214fi
9215
9216
9217	  fi
9218	else
9219	  	  CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
9220	  SASL_DB_INC=$BDB_INCADD
9221          SASL_DB_LIB="${BDB_LIBADD}"
9222	fi
9223	;;
9224  none)
9225	;;
9226  no)
9227	;;
9228  *)
9229	{ echo "$as_me:$LINENO: WARNING: Bad DB library implementation specified;" >&5
9230echo "$as_me: WARNING: Bad DB library implementation specified;" >&2;}
9231	{ { echo "$as_me:$LINENO: error: Use either \"berkeley\", \"gdbm\", \"ndbm\" or \"none\"" >&5
9232echo "$as_me: error: Use either \"berkeley\", \"gdbm\", \"ndbm\" or \"none\"" >&2;}
9233   { (exit 1); exit 1; }; }
9234	dblib=no
9235	;;
9236esac
9237LIBS="$cmu_save_LIBS"
9238
9239echo "$as_me:$LINENO: checking DB library to use" >&5
9240echo $ECHO_N "checking DB library to use... $ECHO_C" >&6
9241echo "$as_me:$LINENO: result: $dblib" >&5
9242echo "${ECHO_T}$dblib" >&6
9243
9244SASL_DB_BACKEND="db_${dblib}.lo"
9245SASL_DB_BACKEND_STATIC="db_${dblib}.o allockey.o"
9246SASL_DB_BACKEND_STATIC_SRCS="../sasldb/db_${dblib}.c ../sasldb/allockey.c"
9247SASL_DB_UTILS="saslpasswd2 sasldblistusers2"
9248SASL_DB_MANS="saslpasswd2.8 sasldblistusers2.8"
9249
9250case "$dblib" in
9251  gdbm)
9252    SASL_MECHS="$SASL_MECHS libsasldb.la"
9253
9254cat >>confdefs.h <<\_ACEOF
9255#define SASL_GDBM
9256_ACEOF
9257
9258    ;;
9259  ndbm)
9260    SASL_MECHS="$SASL_MECHS libsasldb.la"
9261
9262cat >>confdefs.h <<\_ACEOF
9263#define SASL_NDBM
9264_ACEOF
9265
9266    ;;
9267  berkeley)
9268    SASL_MECHS="$SASL_MECHS libsasldb.la"
9269
9270cat >>confdefs.h <<\_ACEOF
9271#define SASL_BERKELEYDB
9272_ACEOF
9273
9274    ;;
9275  *)
9276    { echo "$as_me:$LINENO: WARNING: Disabling SASL authentication database support" >&5
9277echo "$as_me: WARNING: Disabling SASL authentication database support" >&2;}
9278            SASL_DB_BACKEND="db_none.lo"
9279    SASL_DB_BACKEND_STATIC="db_none.o"
9280    SASL_DB_BACKEND_STATIC_SRCS="../sasldb/db_none.c"
9281    SASL_DB_UTILS=""
9282    SASL_DB_MANS=""
9283    SASL_DB_LIB=""
9284    ;;
9285esac
9286
9287if test "$enable_static" = yes; then
9288    if test "$dblib" != "none"; then
9289      SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/sasldb.c $SASL_DB_BACKEND_STATIC_SRCS"
9290      SASL_STATIC_OBJS="$SASL_STATIC_OBJS sasldb.o $SASL_DB_BACKEND_STATIC"
9291
9292cat >>confdefs.h <<\_ACEOF
9293#define STATIC_SASLDB
9294_ACEOF
9295
9296    else
9297      SASL_STATIC_OBJS="$SASL_STATIC_OBJS $SASL_DB_BACKEND_STATIC"
9298      SASL_STATIC_SRCS="$SASL_STATIC_SRCS $SASL_DB_BACKEND_STATIC_SRCS"
9299    fi
9300fi
9301
9302
9303
9304
9305
9306
9307
9308
9309  SASL_DB_LIB="$SASL_DB_LIB ../sasldb/.libs/libsasldb.al"
9310fi
9311
9312
9313# Check whether --with-pam or --without-pam was given.
9314if test "${with_pam+set}" = set; then
9315  withval="$with_pam"
9316  with_pam=$withval
9317else
9318  with_pam=yes
9319fi;
9320if test "$with_pam" != no; then
9321  if test -d $with_pam; then
9322    CPPFLAGS="$CPPFLAGS -I${with_pam}/include"
9323    LDFLAGS="$LDFLAGS -L${with_pam}/lib"
9324  fi
9325  cmu_save_LIBS="$LIBS"
9326  echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9327echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
9328if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9329  echo $ECHO_N "(cached) $ECHO_C" >&6
9330else
9331  ac_check_lib_save_LIBS=$LIBS
9332LIBS="-lpam $SASL_DL_LIB $LIBS"
9333cat >conftest.$ac_ext <<_ACEOF
9334#line $LINENO "configure"
9335/* confdefs.h.  */
9336_ACEOF
9337cat confdefs.h >>conftest.$ac_ext
9338cat >>conftest.$ac_ext <<_ACEOF
9339/* end confdefs.h.  */
9340
9341/* Override any gcc2 internal prototype to avoid an error.  */
9342#ifdef __cplusplus
9343extern "C"
9344#endif
9345/* We use char because int might match the return type of a gcc2
9346   builtin and then its argument prototype would still apply.  */
9347char pam_start ();
9348int
9349main ()
9350{
9351pam_start ();
9352  ;
9353  return 0;
9354}
9355_ACEOF
9356rm -f conftest.$ac_objext conftest$ac_exeext
9357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9358  (eval $ac_link) 2>&5
9359  ac_status=$?
9360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361  (exit $ac_status); } &&
9362         { ac_try='test -s conftest$ac_exeext'
9363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364  (eval $ac_try) 2>&5
9365  ac_status=$?
9366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367  (exit $ac_status); }; }; then
9368  ac_cv_lib_pam_pam_start=yes
9369else
9370  echo "$as_me: failed program was:" >&5
9371sed 's/^/| /' conftest.$ac_ext >&5
9372
9373ac_cv_lib_pam_pam_start=no
9374fi
9375rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9376LIBS=$ac_check_lib_save_LIBS
9377fi
9378echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9379echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
9380if test $ac_cv_lib_pam_pam_start = yes; then
9381
9382	  if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
9383  echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
9384echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
9385if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
9386  echo $ECHO_N "(cached) $ECHO_C" >&6
9387fi
9388echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
9389echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
9390else
9391  # Is the header compilable?
9392echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
9393echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
9394cat >conftest.$ac_ext <<_ACEOF
9395#line $LINENO "configure"
9396/* confdefs.h.  */
9397_ACEOF
9398cat confdefs.h >>conftest.$ac_ext
9399cat >>conftest.$ac_ext <<_ACEOF
9400/* end confdefs.h.  */
9401$ac_includes_default
9402#include <security/pam_appl.h>
9403_ACEOF
9404rm -f conftest.$ac_objext
9405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9406  (eval $ac_compile) 2>&5
9407  ac_status=$?
9408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409  (exit $ac_status); } &&
9410         { ac_try='test -s conftest.$ac_objext'
9411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412  (eval $ac_try) 2>&5
9413  ac_status=$?
9414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415  (exit $ac_status); }; }; then
9416  ac_header_compiler=yes
9417else
9418  echo "$as_me: failed program was:" >&5
9419sed 's/^/| /' conftest.$ac_ext >&5
9420
9421ac_header_compiler=no
9422fi
9423rm -f conftest.$ac_objext conftest.$ac_ext
9424echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9425echo "${ECHO_T}$ac_header_compiler" >&6
9426
9427# Is the header present?
9428echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
9429echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
9430cat >conftest.$ac_ext <<_ACEOF
9431#line $LINENO "configure"
9432/* confdefs.h.  */
9433_ACEOF
9434cat confdefs.h >>conftest.$ac_ext
9435cat >>conftest.$ac_ext <<_ACEOF
9436/* end confdefs.h.  */
9437#include <security/pam_appl.h>
9438_ACEOF
9439if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9440  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9441  ac_status=$?
9442  grep -v '^ *+' conftest.er1 >conftest.err
9443  rm -f conftest.er1
9444  cat conftest.err >&5
9445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446  (exit $ac_status); } >/dev/null; then
9447  if test -s conftest.err; then
9448    ac_cpp_err=$ac_c_preproc_warn_flag
9449  else
9450    ac_cpp_err=
9451  fi
9452else
9453  ac_cpp_err=yes
9454fi
9455if test -z "$ac_cpp_err"; then
9456  ac_header_preproc=yes
9457else
9458  echo "$as_me: failed program was:" >&5
9459sed 's/^/| /' conftest.$ac_ext >&5
9460
9461  ac_header_preproc=no
9462fi
9463rm -f conftest.err conftest.$ac_ext
9464echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9465echo "${ECHO_T}$ac_header_preproc" >&6
9466
9467# So?  What about this header?
9468case $ac_header_compiler:$ac_header_preproc in
9469  yes:no )
9470    { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9471echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9472    { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
9473echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;}
9474    (
9475      cat <<\_ASBOX
9476## ------------------------------------ ##
9477## Report this to bug-autoconf@gnu.org. ##
9478## ------------------------------------ ##
9479_ASBOX
9480    ) |
9481      sed "s/^/$as_me: WARNING:     /" >&2
9482    ;;
9483  no:yes )
9484    { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
9485echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
9486    { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
9487echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
9488    { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
9489echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;}
9490    (
9491      cat <<\_ASBOX
9492## ------------------------------------ ##
9493## Report this to bug-autoconf@gnu.org. ##
9494## ------------------------------------ ##
9495_ASBOX
9496    ) |
9497      sed "s/^/$as_me: WARNING:     /" >&2
9498    ;;
9499esac
9500echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
9501echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
9502if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
9503  echo $ECHO_N "(cached) $ECHO_C" >&6
9504else
9505  ac_cv_header_security_pam_appl_h=$ac_header_preproc
9506fi
9507echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
9508echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
9509
9510fi
9511if test $ac_cv_header_security_pam_appl_h = yes; then
9512  :
9513else
9514  with_pam=no
9515fi
9516
9517
9518else
9519  with_pam=no
9520fi
9521
9522  LIBS="$cmu_save_LIBS"
9523fi
9524
9525
9526# Check whether --with-ipctype or --without-ipctype was given.
9527if test "${with_ipctype+set}" = set; then
9528  withval="$with_ipctype"
9529  with_ipctype=$withval
9530else
9531  with_ipctype="unix"
9532fi;
9533MAIN_COMPAT_OBJ="saslauthd-${with_ipctype}.o"
9534
9535if test "$with_ipctype" = "doors"; then
9536
9537cat >>confdefs.h <<\_ACEOF
9538#define USE_DOORS
9539_ACEOF
9540
9541
9542cat >>confdefs.h <<\_ACEOF
9543#define SASLAUTHD_THREADED
9544_ACEOF
9545
9546  LIBS="$LIBS -ldoor -lpthread"
9547fi
9548
9549echo "$as_me:$LINENO: checking for PAM support" >&5
9550echo $ECHO_N "checking for PAM support... $ECHO_C" >&6
9551echo "$as_me:$LINENO: result: $with_pam" >&5
9552echo "${ECHO_T}$with_pam" >&6
9553LIB_PAM=""
9554if test "$with_pam" != no; then
9555
9556cat >>confdefs.h <<\_ACEOF
9557#define HAVE_PAM
9558_ACEOF
9559
9560  LIB_PAM="-lpam"
9561fi
9562
9563
9564
9565echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
9566echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
9567if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
9568  echo $ECHO_N "(cached) $ECHO_C" >&6
9569else
9570  ac_check_lib_save_LIBS=$LIBS
9571LIBS="-lresolv  $LIBS"
9572cat >conftest.$ac_ext <<_ACEOF
9573#line $LINENO "configure"
9574/* confdefs.h.  */
9575_ACEOF
9576cat confdefs.h >>conftest.$ac_ext
9577cat >>conftest.$ac_ext <<_ACEOF
9578/* end confdefs.h.  */
9579
9580/* Override any gcc2 internal prototype to avoid an error.  */
9581#ifdef __cplusplus
9582extern "C"
9583#endif
9584/* We use char because int might match the return type of a gcc2
9585   builtin and then its argument prototype would still apply.  */
9586char inet_aton ();
9587int
9588main ()
9589{
9590inet_aton ();
9591  ;
9592  return 0;
9593}
9594_ACEOF
9595rm -f conftest.$ac_objext conftest$ac_exeext
9596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9597  (eval $ac_link) 2>&5
9598  ac_status=$?
9599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600  (exit $ac_status); } &&
9601         { ac_try='test -s conftest$ac_exeext'
9602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9603  (eval $ac_try) 2>&5
9604  ac_status=$?
9605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606  (exit $ac_status); }; }; then
9607  ac_cv_lib_resolv_inet_aton=yes
9608else
9609  echo "$as_me: failed program was:" >&5
9610sed 's/^/| /' conftest.$ac_ext >&5
9611
9612ac_cv_lib_resolv_inet_aton=no
9613fi
9614rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9615LIBS=$ac_check_lib_save_LIBS
9616fi
9617echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
9618echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
9619if test $ac_cv_lib_resolv_inet_aton = yes; then
9620  cat >>confdefs.h <<_ACEOF
9621#define HAVE_LIBRESOLV 1
9622_ACEOF
9623
9624  LIBS="-lresolv $LIBS"
9625
9626fi
9627
9628
9629echo "$as_me:$LINENO: checking to include LDAP support" >&5
9630echo $ECHO_N "checking to include LDAP support... $ECHO_C" >&6
9631
9632# Check whether --with-ldap or --without-ldap was given.
9633if test "${with_ldap+set}" = set; then
9634  withval="$with_ldap"
9635  with_ldap=$withval
9636else
9637  with_ldap=no
9638fi;
9639echo "$as_me:$LINENO: result: $with_ldap" >&5
9640echo "${ECHO_T}$with_ldap" >&6
9641
9642if test -d $with_ldap; then
9643    CPPFLAGS="$CPPFLAGS -I${with_ldap}/include"
9644
9645  # this is CMU ADD LIBPATH
9646  if test "$andrew_runpath_switch" = "none" ; then
9647	LDFLAGS="-L${with_ldap}/lib ${LDFLAGS}"
9648  else
9649	LDFLAGS="-L${with_ldap}/lib $andrew_runpath_switch${with_ldap}/lib ${LDFLAGS}"
9650  fi
9651
9652fi
9653
9654LDAP_LIBS=""
9655if test "$with_ldap" != no; then
9656  echo "$as_me:$LINENO: checking for ldap_initialize in -lldap" >&5
9657echo $ECHO_N "checking for ldap_initialize in -lldap... $ECHO_C" >&6
9658if test "${ac_cv_lib_ldap_ldap_initialize+set}" = set; then
9659  echo $ECHO_N "(cached) $ECHO_C" >&6
9660else
9661  ac_check_lib_save_LIBS=$LIBS
9662LIBS="-lldap -llber $LIBS"
9663cat >conftest.$ac_ext <<_ACEOF
9664#line $LINENO "configure"
9665/* confdefs.h.  */
9666_ACEOF
9667cat confdefs.h >>conftest.$ac_ext
9668cat >>conftest.$ac_ext <<_ACEOF
9669/* end confdefs.h.  */
9670
9671/* Override any gcc2 internal prototype to avoid an error.  */
9672#ifdef __cplusplus
9673extern "C"
9674#endif
9675/* We use char because int might match the return type of a gcc2
9676   builtin and then its argument prototype would still apply.  */
9677char ldap_initialize ();
9678int
9679main ()
9680{
9681ldap_initialize ();
9682  ;
9683  return 0;
9684}
9685_ACEOF
9686rm -f conftest.$ac_objext conftest$ac_exeext
9687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9688  (eval $ac_link) 2>&5
9689  ac_status=$?
9690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691  (exit $ac_status); } &&
9692         { ac_try='test -s conftest$ac_exeext'
9693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694  (eval $ac_try) 2>&5
9695  ac_status=$?
9696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697  (exit $ac_status); }; }; then
9698  ac_cv_lib_ldap_ldap_initialize=yes
9699else
9700  echo "$as_me: failed program was:" >&5
9701sed 's/^/| /' conftest.$ac_ext >&5
9702
9703ac_cv_lib_ldap_ldap_initialize=no
9704fi
9705rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9706LIBS=$ac_check_lib_save_LIBS
9707fi
9708echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_initialize" >&5
9709echo "${ECHO_T}$ac_cv_lib_ldap_ldap_initialize" >&6
9710if test $ac_cv_lib_ldap_ldap_initialize = yes; then
9711
9712cat >>confdefs.h <<\_ACEOF
9713#define HAVE_LDAP
9714_ACEOF
9715
9716                                        LDAP_LIBS="-lldap -llber"
9717					if test "$with_openssl" != "no"; then
9718					    LDAP_LIBS="$LDAP_LIBS -lcrypto $LIB_RSAREF"
9719					fi
9720fi
9721
9722
9723fi
9724
9725
9726
9727echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9728echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9729if test "${ac_cv_header_stdc+set}" = set; then
9730  echo $ECHO_N "(cached) $ECHO_C" >&6
9731else
9732  cat >conftest.$ac_ext <<_ACEOF
9733#line $LINENO "configure"
9734/* confdefs.h.  */
9735_ACEOF
9736cat confdefs.h >>conftest.$ac_ext
9737cat >>conftest.$ac_ext <<_ACEOF
9738/* end confdefs.h.  */
9739#include <stdlib.h>
9740#include <stdarg.h>
9741#include <string.h>
9742#include <float.h>
9743
9744int
9745main ()
9746{
9747
9748  ;
9749  return 0;
9750}
9751_ACEOF
9752rm -f conftest.$ac_objext
9753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9754  (eval $ac_compile) 2>&5
9755  ac_status=$?
9756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757  (exit $ac_status); } &&
9758         { ac_try='test -s conftest.$ac_objext'
9759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760  (eval $ac_try) 2>&5
9761  ac_status=$?
9762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763  (exit $ac_status); }; }; then
9764  ac_cv_header_stdc=yes
9765else
9766  echo "$as_me: failed program was:" >&5
9767sed 's/^/| /' conftest.$ac_ext >&5
9768
9769ac_cv_header_stdc=no
9770fi
9771rm -f conftest.$ac_objext conftest.$ac_ext
9772
9773if test $ac_cv_header_stdc = yes; then
9774  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9775  cat >conftest.$ac_ext <<_ACEOF
9776#line $LINENO "configure"
9777/* confdefs.h.  */
9778_ACEOF
9779cat confdefs.h >>conftest.$ac_ext
9780cat >>conftest.$ac_ext <<_ACEOF
9781/* end confdefs.h.  */
9782#include <string.h>
9783
9784_ACEOF
9785if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9786  $EGREP "memchr" >/dev/null 2>&1; then
9787  :
9788else
9789  ac_cv_header_stdc=no
9790fi
9791rm -f conftest*
9792
9793fi
9794
9795if test $ac_cv_header_stdc = yes; then
9796  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9797  cat >conftest.$ac_ext <<_ACEOF
9798#line $LINENO "configure"
9799/* confdefs.h.  */
9800_ACEOF
9801cat confdefs.h >>conftest.$ac_ext
9802cat >>conftest.$ac_ext <<_ACEOF
9803/* end confdefs.h.  */
9804#include <stdlib.h>
9805
9806_ACEOF
9807if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9808  $EGREP "free" >/dev/null 2>&1; then
9809  :
9810else
9811  ac_cv_header_stdc=no
9812fi
9813rm -f conftest*
9814
9815fi
9816
9817if test $ac_cv_header_stdc = yes; then
9818  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9819  if test "$cross_compiling" = yes; then
9820  :
9821else
9822  cat >conftest.$ac_ext <<_ACEOF
9823#line $LINENO "configure"
9824/* confdefs.h.  */
9825_ACEOF
9826cat confdefs.h >>conftest.$ac_ext
9827cat >>conftest.$ac_ext <<_ACEOF
9828/* end confdefs.h.  */
9829#include <ctype.h>
9830#if ((' ' & 0x0FF) == 0x020)
9831# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9832# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9833#else
9834# define ISLOWER(c) \
9835                   (('a' <= (c) && (c) <= 'i') \
9836                     || ('j' <= (c) && (c) <= 'r') \
9837                     || ('s' <= (c) && (c) <= 'z'))
9838# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9839#endif
9840
9841#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9842int
9843main ()
9844{
9845  int i;
9846  for (i = 0; i < 256; i++)
9847    if (XOR (islower (i), ISLOWER (i))
9848        || toupper (i) != TOUPPER (i))
9849      exit(2);
9850  exit (0);
9851}
9852_ACEOF
9853rm -f conftest$ac_exeext
9854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9855  (eval $ac_link) 2>&5
9856  ac_status=$?
9857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860  (eval $ac_try) 2>&5
9861  ac_status=$?
9862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863  (exit $ac_status); }; }; then
9864  :
9865else
9866  echo "$as_me: program exited with status $ac_status" >&5
9867echo "$as_me: failed program was:" >&5
9868sed 's/^/| /' conftest.$ac_ext >&5
9869
9870( exit $ac_status )
9871ac_cv_header_stdc=no
9872fi
9873rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9874fi
9875fi
9876fi
9877echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9878echo "${ECHO_T}$ac_cv_header_stdc" >&6
9879if test $ac_cv_header_stdc = yes; then
9880
9881cat >>confdefs.h <<\_ACEOF
9882#define STDC_HEADERS 1
9883_ACEOF
9884
9885fi
9886
9887echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9888echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9889if test "${ac_cv_header_sys_wait_h+set}" = set; then
9890  echo $ECHO_N "(cached) $ECHO_C" >&6
9891else
9892  cat >conftest.$ac_ext <<_ACEOF
9893#line $LINENO "configure"
9894/* confdefs.h.  */
9895_ACEOF
9896cat confdefs.h >>conftest.$ac_ext
9897cat >>conftest.$ac_ext <<_ACEOF
9898/* end confdefs.h.  */
9899#include <sys/types.h>
9900#include <sys/wait.h>
9901#ifndef WEXITSTATUS
9902# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9903#endif
9904#ifndef WIFEXITED
9905# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9906#endif
9907
9908int
9909main ()
9910{
9911  int s;
9912  wait (&s);
9913  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9914  ;
9915  return 0;
9916}
9917_ACEOF
9918rm -f conftest.$ac_objext
9919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9920  (eval $ac_compile) 2>&5
9921  ac_status=$?
9922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923  (exit $ac_status); } &&
9924         { ac_try='test -s conftest.$ac_objext'
9925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9926  (eval $ac_try) 2>&5
9927  ac_status=$?
9928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929  (exit $ac_status); }; }; then
9930  ac_cv_header_sys_wait_h=yes
9931else
9932  echo "$as_me: failed program was:" >&5
9933sed 's/^/| /' conftest.$ac_ext >&5
9934
9935ac_cv_header_sys_wait_h=no
9936fi
9937rm -f conftest.$ac_objext conftest.$ac_ext
9938fi
9939echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9940echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9941if test $ac_cv_header_sys_wait_h = yes; then
9942
9943cat >>confdefs.h <<\_ACEOF
9944#define HAVE_SYS_WAIT_H 1
9945_ACEOF
9946
9947fi
9948
9949echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9950echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9951if test "${ac_cv_header_time+set}" = set; then
9952  echo $ECHO_N "(cached) $ECHO_C" >&6
9953else
9954  cat >conftest.$ac_ext <<_ACEOF
9955#line $LINENO "configure"
9956/* confdefs.h.  */
9957_ACEOF
9958cat confdefs.h >>conftest.$ac_ext
9959cat >>conftest.$ac_ext <<_ACEOF
9960/* end confdefs.h.  */
9961#include <sys/types.h>
9962#include <sys/time.h>
9963#include <time.h>
9964
9965int
9966main ()
9967{
9968if ((struct tm *) 0)
9969return 0;
9970  ;
9971  return 0;
9972}
9973_ACEOF
9974rm -f conftest.$ac_objext
9975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9976  (eval $ac_compile) 2>&5
9977  ac_status=$?
9978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979  (exit $ac_status); } &&
9980         { ac_try='test -s conftest.$ac_objext'
9981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982  (eval $ac_try) 2>&5
9983  ac_status=$?
9984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985  (exit $ac_status); }; }; then
9986  ac_cv_header_time=yes
9987else
9988  echo "$as_me: failed program was:" >&5
9989sed 's/^/| /' conftest.$ac_ext >&5
9990
9991ac_cv_header_time=no
9992fi
9993rm -f conftest.$ac_objext conftest.$ac_ext
9994fi
9995echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9996echo "${ECHO_T}$ac_cv_header_time" >&6
9997if test $ac_cv_header_time = yes; then
9998
9999cat >>confdefs.h <<\_ACEOF
10000#define TIME_WITH_SYS_TIME 1
10001_ACEOF
10002
10003fi
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013for ac_header in crypt.h fcntl.h krb5.h strings.h syslog.h unistd.h sys/time.h sys/uio.h
10014do
10015as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10016if eval "test \"\${$as_ac_Header+set}\" = set"; then
10017  echo "$as_me:$LINENO: checking for $ac_header" >&5
10018echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10019if eval "test \"\${$as_ac_Header+set}\" = set"; then
10020  echo $ECHO_N "(cached) $ECHO_C" >&6
10021fi
10022echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10023echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10024else
10025  # Is the header compilable?
10026echo "$as_me:$LINENO: checking $ac_header usability" >&5
10027echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10028cat >conftest.$ac_ext <<_ACEOF
10029#line $LINENO "configure"
10030/* confdefs.h.  */
10031_ACEOF
10032cat confdefs.h >>conftest.$ac_ext
10033cat >>conftest.$ac_ext <<_ACEOF
10034/* end confdefs.h.  */
10035$ac_includes_default
10036#include <$ac_header>
10037_ACEOF
10038rm -f conftest.$ac_objext
10039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10040  (eval $ac_compile) 2>&5
10041  ac_status=$?
10042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043  (exit $ac_status); } &&
10044         { ac_try='test -s conftest.$ac_objext'
10045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046  (eval $ac_try) 2>&5
10047  ac_status=$?
10048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049  (exit $ac_status); }; }; then
10050  ac_header_compiler=yes
10051else
10052  echo "$as_me: failed program was:" >&5
10053sed 's/^/| /' conftest.$ac_ext >&5
10054
10055ac_header_compiler=no
10056fi
10057rm -f conftest.$ac_objext conftest.$ac_ext
10058echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10059echo "${ECHO_T}$ac_header_compiler" >&6
10060
10061# Is the header present?
10062echo "$as_me:$LINENO: checking $ac_header presence" >&5
10063echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10064cat >conftest.$ac_ext <<_ACEOF
10065#line $LINENO "configure"
10066/* confdefs.h.  */
10067_ACEOF
10068cat confdefs.h >>conftest.$ac_ext
10069cat >>conftest.$ac_ext <<_ACEOF
10070/* end confdefs.h.  */
10071#include <$ac_header>
10072_ACEOF
10073if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10074  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10075  ac_status=$?
10076  grep -v '^ *+' conftest.er1 >conftest.err
10077  rm -f conftest.er1
10078  cat conftest.err >&5
10079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080  (exit $ac_status); } >/dev/null; then
10081  if test -s conftest.err; then
10082    ac_cpp_err=$ac_c_preproc_warn_flag
10083  else
10084    ac_cpp_err=
10085  fi
10086else
10087  ac_cpp_err=yes
10088fi
10089if test -z "$ac_cpp_err"; then
10090  ac_header_preproc=yes
10091else
10092  echo "$as_me: failed program was:" >&5
10093sed 's/^/| /' conftest.$ac_ext >&5
10094
10095  ac_header_preproc=no
10096fi
10097rm -f conftest.err conftest.$ac_ext
10098echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10099echo "${ECHO_T}$ac_header_preproc" >&6
10100
10101# So?  What about this header?
10102case $ac_header_compiler:$ac_header_preproc in
10103  yes:no )
10104    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10105echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10106    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10107echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10108    (
10109      cat <<\_ASBOX
10110## ------------------------------------ ##
10111## Report this to bug-autoconf@gnu.org. ##
10112## ------------------------------------ ##
10113_ASBOX
10114    ) |
10115      sed "s/^/$as_me: WARNING:     /" >&2
10116    ;;
10117  no:yes )
10118    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10119echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10120    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10121echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10122    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10123echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10124    (
10125      cat <<\_ASBOX
10126## ------------------------------------ ##
10127## Report this to bug-autoconf@gnu.org. ##
10128## ------------------------------------ ##
10129_ASBOX
10130    ) |
10131      sed "s/^/$as_me: WARNING:     /" >&2
10132    ;;
10133esac
10134echo "$as_me:$LINENO: checking for $ac_header" >&5
10135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10136if eval "test \"\${$as_ac_Header+set}\" = set"; then
10137  echo $ECHO_N "(cached) $ECHO_C" >&6
10138else
10139  eval "$as_ac_Header=$ac_header_preproc"
10140fi
10141echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10142echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10143
10144fi
10145if test `eval echo '${'$as_ac_Header'}'` = yes; then
10146  cat >>confdefs.h <<_ACEOF
10147#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10148_ACEOF
10149
10150fi
10151
10152done
10153
10154
10155echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10156echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10157if test "${ac_cv_c_const+set}" = set; then
10158  echo $ECHO_N "(cached) $ECHO_C" >&6
10159else
10160  cat >conftest.$ac_ext <<_ACEOF
10161#line $LINENO "configure"
10162/* confdefs.h.  */
10163_ACEOF
10164cat confdefs.h >>conftest.$ac_ext
10165cat >>conftest.$ac_ext <<_ACEOF
10166/* end confdefs.h.  */
10167
10168int
10169main ()
10170{
10171/* FIXME: Include the comments suggested by Paul. */
10172#ifndef __cplusplus
10173  /* Ultrix mips cc rejects this.  */
10174  typedef int charset[2];
10175  const charset x;
10176  /* SunOS 4.1.1 cc rejects this.  */
10177  char const *const *ccp;
10178  char **p;
10179  /* NEC SVR4.0.2 mips cc rejects this.  */
10180  struct point {int x, y;};
10181  static struct point const zero = {0,0};
10182  /* AIX XL C 1.02.0.0 rejects this.
10183     It does not let you subtract one const X* pointer from another in
10184     an arm of an if-expression whose if-part is not a constant
10185     expression */
10186  const char *g = "string";
10187  ccp = &g + (g ? g-g : 0);
10188  /* HPUX 7.0 cc rejects these. */
10189  ++ccp;
10190  p = (char**) ccp;
10191  ccp = (char const *const *) p;
10192  { /* SCO 3.2v4 cc rejects this.  */
10193    char *t;
10194    char const *s = 0 ? (char *) 0 : (char const *) 0;
10195
10196    *t++ = 0;
10197  }
10198  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10199    int x[] = {25, 17};
10200    const int *foo = &x[0];
10201    ++foo;
10202  }
10203  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10204    typedef const int *iptr;
10205    iptr p = 0;
10206    ++p;
10207  }
10208  { /* AIX XL C 1.02.0.0 rejects this saying
10209       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10210    struct s { int j; const int *ap[3]; };
10211    struct s *b; b->j = 5;
10212  }
10213  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10214    const int foo = 10;
10215  }
10216#endif
10217
10218  ;
10219  return 0;
10220}
10221_ACEOF
10222rm -f conftest.$ac_objext
10223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10224  (eval $ac_compile) 2>&5
10225  ac_status=$?
10226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227  (exit $ac_status); } &&
10228         { ac_try='test -s conftest.$ac_objext'
10229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10230  (eval $ac_try) 2>&5
10231  ac_status=$?
10232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233  (exit $ac_status); }; }; then
10234  ac_cv_c_const=yes
10235else
10236  echo "$as_me: failed program was:" >&5
10237sed 's/^/| /' conftest.$ac_ext >&5
10238
10239ac_cv_c_const=no
10240fi
10241rm -f conftest.$ac_objext conftest.$ac_ext
10242fi
10243echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10244echo "${ECHO_T}$ac_cv_c_const" >&6
10245if test $ac_cv_c_const = no; then
10246
10247cat >>confdefs.h <<\_ACEOF
10248#define const
10249_ACEOF
10250
10251fi
10252
10253echo "$as_me:$LINENO: checking for pid_t" >&5
10254echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10255if test "${ac_cv_type_pid_t+set}" = set; then
10256  echo $ECHO_N "(cached) $ECHO_C" >&6
10257else
10258  cat >conftest.$ac_ext <<_ACEOF
10259#line $LINENO "configure"
10260/* confdefs.h.  */
10261_ACEOF
10262cat confdefs.h >>conftest.$ac_ext
10263cat >>conftest.$ac_ext <<_ACEOF
10264/* end confdefs.h.  */
10265$ac_includes_default
10266int
10267main ()
10268{
10269if ((pid_t *) 0)
10270  return 0;
10271if (sizeof (pid_t))
10272  return 0;
10273  ;
10274  return 0;
10275}
10276_ACEOF
10277rm -f conftest.$ac_objext
10278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10279  (eval $ac_compile) 2>&5
10280  ac_status=$?
10281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282  (exit $ac_status); } &&
10283         { ac_try='test -s conftest.$ac_objext'
10284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10285  (eval $ac_try) 2>&5
10286  ac_status=$?
10287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288  (exit $ac_status); }; }; then
10289  ac_cv_type_pid_t=yes
10290else
10291  echo "$as_me: failed program was:" >&5
10292sed 's/^/| /' conftest.$ac_ext >&5
10293
10294ac_cv_type_pid_t=no
10295fi
10296rm -f conftest.$ac_objext conftest.$ac_ext
10297fi
10298echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10299echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10300if test $ac_cv_type_pid_t = yes; then
10301  :
10302else
10303
10304cat >>confdefs.h <<_ACEOF
10305#define pid_t int
10306_ACEOF
10307
10308fi
10309
10310
10311LTLIBOBJS=`echo "$LIBOBJS" | sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
10312
10313
10314echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
10315echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6
10316if test "${have_func+set}" = set; then
10317  echo $ECHO_N "(cached) $ECHO_C" >&6
10318else
10319  cat >conftest.$ac_ext <<_ACEOF
10320#line $LINENO "configure"
10321/* confdefs.h.  */
10322_ACEOF
10323cat confdefs.h >>conftest.$ac_ext
10324cat >>conftest.$ac_ext <<_ACEOF
10325/* end confdefs.h.  */
10326#include <stdio.h>
10327int
10328main ()
10329{
10330printf("%s", __func__);
10331  ;
10332  return 0;
10333}
10334_ACEOF
10335rm -f conftest.$ac_objext conftest$ac_exeext
10336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10337  (eval $ac_link) 2>&5
10338  ac_status=$?
10339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340  (exit $ac_status); } &&
10341         { ac_try='test -s conftest$ac_exeext'
10342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343  (eval $ac_try) 2>&5
10344  ac_status=$?
10345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346  (exit $ac_status); }; }; then
10347  have_func=yes
10348else
10349  echo "$as_me: failed program was:" >&5
10350sed 's/^/| /' conftest.$ac_ext >&5
10351
10352have_func=no
10353fi
10354rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10355fi
10356
10357echo "$as_me:$LINENO: result: $have_func" >&5
10358echo "${ECHO_T}$have_func" >&6
10359if test "$have_func" = yes; then
10360
10361cat >>confdefs.h <<\_ACEOF
10362#define HAVE_FUNC
10363_ACEOF
10364
10365else
10366       echo "$as_me:$LINENO: checking whether $CC implements __PRETTY_FUNCTION__" >&5
10367echo $ECHO_N "checking whether $CC implements __PRETTY_FUNCTION__... $ECHO_C" >&6
10368       if test "${have_pretty_function+set}" = set; then
10369  echo $ECHO_N "(cached) $ECHO_C" >&6
10370else
10371  cat >conftest.$ac_ext <<_ACEOF
10372#line $LINENO "configure"
10373/* confdefs.h.  */
10374_ACEOF
10375cat confdefs.h >>conftest.$ac_ext
10376cat >>conftest.$ac_ext <<_ACEOF
10377/* end confdefs.h.  */
10378#include <stdio.h>
10379int
10380main ()
10381{
10382printf("%s", __PRETTY_FUNCTION__);
10383  ;
10384  return 0;
10385}
10386_ACEOF
10387rm -f conftest.$ac_objext conftest$ac_exeext
10388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10389  (eval $ac_link) 2>&5
10390  ac_status=$?
10391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392  (exit $ac_status); } &&
10393         { ac_try='test -s conftest$ac_exeext'
10394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10395  (eval $ac_try) 2>&5
10396  ac_status=$?
10397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398  (exit $ac_status); }; }; then
10399  have_pretty_function=yes
10400else
10401  echo "$as_me: failed program was:" >&5
10402sed 's/^/| /' conftest.$ac_ext >&5
10403
10404have_pretty_function=no
10405fi
10406rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10407fi
10408
10409       echo "$as_me:$LINENO: result: $have_pretty_function" >&5
10410echo "${ECHO_T}$have_pretty_function" >&6
10411       if test "$have_pretty_function" = yes; then
10412
10413cat >>confdefs.h <<\_ACEOF
10414#define HAVE_PRETTY_FUNCTION
10415_ACEOF
10416
10417       else
10418               echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
10419echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6
10420               if test "${have_function+set}" = set; then
10421  echo $ECHO_N "(cached) $ECHO_C" >&6
10422else
10423  cat >conftest.$ac_ext <<_ACEOF
10424#line $LINENO "configure"
10425/* confdefs.h.  */
10426_ACEOF
10427cat confdefs.h >>conftest.$ac_ext
10428cat >>conftest.$ac_ext <<_ACEOF
10429/* end confdefs.h.  */
10430#include <stdio.h>
10431int
10432main ()
10433{
10434printf("%s", __FUNCTION__);
10435  ;
10436  return 0;
10437}
10438_ACEOF
10439rm -f conftest.$ac_objext conftest$ac_exeext
10440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10441  (eval $ac_link) 2>&5
10442  ac_status=$?
10443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444  (exit $ac_status); } &&
10445         { ac_try='test -s conftest$ac_exeext'
10446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10447  (eval $ac_try) 2>&5
10448  ac_status=$?
10449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450  (exit $ac_status); }; }; then
10451  have_function=yes
10452else
10453  echo "$as_me: failed program was:" >&5
10454sed 's/^/| /' conftest.$ac_ext >&5
10455
10456have_function=no
10457fi
10458rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10459fi
10460
10461               echo "$as_me:$LINENO: result: $have_function" >&5
10462echo "${ECHO_T}$have_function" >&6
10463               if test "$have_function" = yes; then
10464
10465cat >>confdefs.h <<\_ACEOF
10466#define HAVE_FUNCTION
10467_ACEOF
10468
10469               fi
10470       fi
10471fi
10472
10473echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10474echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10475if test "${ac_cv_type_signal+set}" = set; then
10476  echo $ECHO_N "(cached) $ECHO_C" >&6
10477else
10478  cat >conftest.$ac_ext <<_ACEOF
10479#line $LINENO "configure"
10480/* confdefs.h.  */
10481_ACEOF
10482cat confdefs.h >>conftest.$ac_ext
10483cat >>conftest.$ac_ext <<_ACEOF
10484/* end confdefs.h.  */
10485#include <sys/types.h>
10486#include <signal.h>
10487#ifdef signal
10488# undef signal
10489#endif
10490#ifdef __cplusplus
10491extern "C" void (*signal (int, void (*)(int)))(int);
10492#else
10493void (*signal ()) ();
10494#endif
10495
10496int
10497main ()
10498{
10499int i;
10500  ;
10501  return 0;
10502}
10503_ACEOF
10504rm -f conftest.$ac_objext
10505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10506  (eval $ac_compile) 2>&5
10507  ac_status=$?
10508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509  (exit $ac_status); } &&
10510         { ac_try='test -s conftest.$ac_objext'
10511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512  (eval $ac_try) 2>&5
10513  ac_status=$?
10514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515  (exit $ac_status); }; }; then
10516  ac_cv_type_signal=void
10517else
10518  echo "$as_me: failed program was:" >&5
10519sed 's/^/| /' conftest.$ac_ext >&5
10520
10521ac_cv_type_signal=int
10522fi
10523rm -f conftest.$ac_objext conftest.$ac_ext
10524fi
10525echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10526echo "${ECHO_T}$ac_cv_type_signal" >&6
10527
10528cat >>confdefs.h <<_ACEOF
10529#define RETSIGTYPE $ac_cv_type_signal
10530_ACEOF
10531
10532
10533
10534
10535
10536
10537for ac_func in gethostname mkdir socket strdup
10538do
10539as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10540echo "$as_me:$LINENO: checking for $ac_func" >&5
10541echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10542if eval "test \"\${$as_ac_var+set}\" = set"; then
10543  echo $ECHO_N "(cached) $ECHO_C" >&6
10544else
10545  cat >conftest.$ac_ext <<_ACEOF
10546#line $LINENO "configure"
10547/* confdefs.h.  */
10548_ACEOF
10549cat confdefs.h >>conftest.$ac_ext
10550cat >>conftest.$ac_ext <<_ACEOF
10551/* end confdefs.h.  */
10552/* System header to define __stub macros and hopefully few prototypes,
10553    which can conflict with char $ac_func (); below.
10554    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10555    <limits.h> exists even on freestanding compilers.  */
10556#ifdef __STDC__
10557# include <limits.h>
10558#else
10559# include <assert.h>
10560#endif
10561/* Override any gcc2 internal prototype to avoid an error.  */
10562#ifdef __cplusplus
10563extern "C"
10564{
10565#endif
10566/* We use char because int might match the return type of a gcc2
10567   builtin and then its argument prototype would still apply.  */
10568char $ac_func ();
10569/* The GNU C library defines this for functions which it implements
10570    to always fail with ENOSYS.  Some functions are actually named
10571    something starting with __ and the normal name is an alias.  */
10572#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10573choke me
10574#else
10575char (*f) () = $ac_func;
10576#endif
10577#ifdef __cplusplus
10578}
10579#endif
10580
10581int
10582main ()
10583{
10584return f != $ac_func;
10585  ;
10586  return 0;
10587}
10588_ACEOF
10589rm -f conftest.$ac_objext conftest$ac_exeext
10590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10591  (eval $ac_link) 2>&5
10592  ac_status=$?
10593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594  (exit $ac_status); } &&
10595         { ac_try='test -s conftest$ac_exeext'
10596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597  (eval $ac_try) 2>&5
10598  ac_status=$?
10599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600  (exit $ac_status); }; }; then
10601  eval "$as_ac_var=yes"
10602else
10603  echo "$as_me: failed program was:" >&5
10604sed 's/^/| /' conftest.$ac_ext >&5
10605
10606eval "$as_ac_var=no"
10607fi
10608rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10609fi
10610echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10611echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10612if test `eval echo '${'$as_ac_var'}'` = yes; then
10613  cat >>confdefs.h <<_ACEOF
10614#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10615_ACEOF
10616
10617fi
10618done
10619
10620
10621
10622for ac_func in getspnam getuserpw
10623do
10624as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10625echo "$as_me:$LINENO: checking for $ac_func" >&5
10626echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10627if eval "test \"\${$as_ac_var+set}\" = set"; then
10628  echo $ECHO_N "(cached) $ECHO_C" >&6
10629else
10630  cat >conftest.$ac_ext <<_ACEOF
10631#line $LINENO "configure"
10632/* confdefs.h.  */
10633_ACEOF
10634cat confdefs.h >>conftest.$ac_ext
10635cat >>conftest.$ac_ext <<_ACEOF
10636/* end confdefs.h.  */
10637/* System header to define __stub macros and hopefully few prototypes,
10638    which can conflict with char $ac_func (); below.
10639    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10640    <limits.h> exists even on freestanding compilers.  */
10641#ifdef __STDC__
10642# include <limits.h>
10643#else
10644# include <assert.h>
10645#endif
10646/* Override any gcc2 internal prototype to avoid an error.  */
10647#ifdef __cplusplus
10648extern "C"
10649{
10650#endif
10651/* We use char because int might match the return type of a gcc2
10652   builtin and then its argument prototype would still apply.  */
10653char $ac_func ();
10654/* The GNU C library defines this for functions which it implements
10655    to always fail with ENOSYS.  Some functions are actually named
10656    something starting with __ and the normal name is an alias.  */
10657#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10658choke me
10659#else
10660char (*f) () = $ac_func;
10661#endif
10662#ifdef __cplusplus
10663}
10664#endif
10665
10666int
10667main ()
10668{
10669return f != $ac_func;
10670  ;
10671  return 0;
10672}
10673_ACEOF
10674rm -f conftest.$ac_objext conftest$ac_exeext
10675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10676  (eval $ac_link) 2>&5
10677  ac_status=$?
10678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679  (exit $ac_status); } &&
10680         { ac_try='test -s conftest$ac_exeext'
10681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682  (eval $ac_try) 2>&5
10683  ac_status=$?
10684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685  (exit $ac_status); }; }; then
10686  eval "$as_ac_var=yes"
10687else
10688  echo "$as_me: failed program was:" >&5
10689sed 's/^/| /' conftest.$ac_ext >&5
10690
10691eval "$as_ac_var=no"
10692fi
10693rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10694fi
10695echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10696echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10697if test `eval echo '${'$as_ac_var'}'` = yes; then
10698  cat >>confdefs.h <<_ACEOF
10699#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10700_ACEOF
10701 break
10702fi
10703done
10704
10705
10706
10707for ac_func in strlcat strlcpy
10708do
10709as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10710echo "$as_me:$LINENO: checking for $ac_func" >&5
10711echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10712if eval "test \"\${$as_ac_var+set}\" = set"; then
10713  echo $ECHO_N "(cached) $ECHO_C" >&6
10714else
10715  cat >conftest.$ac_ext <<_ACEOF
10716#line $LINENO "configure"
10717/* confdefs.h.  */
10718_ACEOF
10719cat confdefs.h >>conftest.$ac_ext
10720cat >>conftest.$ac_ext <<_ACEOF
10721/* end confdefs.h.  */
10722/* System header to define __stub macros and hopefully few prototypes,
10723    which can conflict with char $ac_func (); below.
10724    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10725    <limits.h> exists even on freestanding compilers.  */
10726#ifdef __STDC__
10727# include <limits.h>
10728#else
10729# include <assert.h>
10730#endif
10731/* Override any gcc2 internal prototype to avoid an error.  */
10732#ifdef __cplusplus
10733extern "C"
10734{
10735#endif
10736/* We use char because int might match the return type of a gcc2
10737   builtin and then its argument prototype would still apply.  */
10738char $ac_func ();
10739/* The GNU C library defines this for functions which it implements
10740    to always fail with ENOSYS.  Some functions are actually named
10741    something starting with __ and the normal name is an alias.  */
10742#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10743choke me
10744#else
10745char (*f) () = $ac_func;
10746#endif
10747#ifdef __cplusplus
10748}
10749#endif
10750
10751int
10752main ()
10753{
10754return f != $ac_func;
10755  ;
10756  return 0;
10757}
10758_ACEOF
10759rm -f conftest.$ac_objext conftest$ac_exeext
10760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10761  (eval $ac_link) 2>&5
10762  ac_status=$?
10763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764  (exit $ac_status); } &&
10765         { ac_try='test -s conftest$ac_exeext'
10766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10767  (eval $ac_try) 2>&5
10768  ac_status=$?
10769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770  (exit $ac_status); }; }; then
10771  eval "$as_ac_var=yes"
10772else
10773  echo "$as_me: failed program was:" >&5
10774sed 's/^/| /' conftest.$ac_ext >&5
10775
10776eval "$as_ac_var=no"
10777fi
10778rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10779fi
10780echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10781echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10782if test `eval echo '${'$as_ac_var'}'` = yes; then
10783  cat >>confdefs.h <<_ACEOF
10784#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10785_ACEOF
10786
10787fi
10788done
10789
10790
10791GETADDRINFOOBJS=""
10792sasl_cv_getaddrinfo=no
10793
10794echo "$as_me:$LINENO: checking for getaddrinfo" >&5
10795echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
10796if test "${ac_cv_func_getaddrinfo+set}" = set; then
10797  echo $ECHO_N "(cached) $ECHO_C" >&6
10798else
10799  cat >conftest.$ac_ext <<_ACEOF
10800#line $LINENO "configure"
10801/* confdefs.h.  */
10802_ACEOF
10803cat confdefs.h >>conftest.$ac_ext
10804cat >>conftest.$ac_ext <<_ACEOF
10805/* end confdefs.h.  */
10806/* System header to define __stub macros and hopefully few prototypes,
10807    which can conflict with char getaddrinfo (); below.
10808    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10809    <limits.h> exists even on freestanding compilers.  */
10810#ifdef __STDC__
10811# include <limits.h>
10812#else
10813# include <assert.h>
10814#endif
10815/* Override any gcc2 internal prototype to avoid an error.  */
10816#ifdef __cplusplus
10817extern "C"
10818{
10819#endif
10820/* We use char because int might match the return type of a gcc2
10821   builtin and then its argument prototype would still apply.  */
10822char getaddrinfo ();
10823/* The GNU C library defines this for functions which it implements
10824    to always fail with ENOSYS.  Some functions are actually named
10825    something starting with __ and the normal name is an alias.  */
10826#if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
10827choke me
10828#else
10829char (*f) () = getaddrinfo;
10830#endif
10831#ifdef __cplusplus
10832}
10833#endif
10834
10835int
10836main ()
10837{
10838return f != getaddrinfo;
10839  ;
10840  return 0;
10841}
10842_ACEOF
10843rm -f conftest.$ac_objext conftest$ac_exeext
10844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10845  (eval $ac_link) 2>&5
10846  ac_status=$?
10847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848  (exit $ac_status); } &&
10849         { ac_try='test -s conftest$ac_exeext'
10850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10851  (eval $ac_try) 2>&5
10852  ac_status=$?
10853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854  (exit $ac_status); }; }; then
10855  ac_cv_func_getaddrinfo=yes
10856else
10857  echo "$as_me: failed program was:" >&5
10858sed 's/^/| /' conftest.$ac_ext >&5
10859
10860ac_cv_func_getaddrinfo=no
10861fi
10862rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10863fi
10864echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
10865echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6
10866if test $ac_cv_func_getaddrinfo = yes; then
10867    ac_cv_lib_socket_getaddrinfo=no
10868  ac_cv_lib_inet6_getaddrinfo=no
10869
10870else
10871    echo "$as_me:$LINENO: checking for getaddrinfo in -lsocket" >&5
10872echo $ECHO_N "checking for getaddrinfo in -lsocket... $ECHO_C" >&6
10873if test "${ac_cv_lib_socket_getaddrinfo+set}" = set; then
10874  echo $ECHO_N "(cached) $ECHO_C" >&6
10875else
10876  ac_check_lib_save_LIBS=$LIBS
10877LIBS="-lsocket  $LIBS"
10878cat >conftest.$ac_ext <<_ACEOF
10879#line $LINENO "configure"
10880/* confdefs.h.  */
10881_ACEOF
10882cat confdefs.h >>conftest.$ac_ext
10883cat >>conftest.$ac_ext <<_ACEOF
10884/* end confdefs.h.  */
10885
10886/* Override any gcc2 internal prototype to avoid an error.  */
10887#ifdef __cplusplus
10888extern "C"
10889#endif
10890/* We use char because int might match the return type of a gcc2
10891   builtin and then its argument prototype would still apply.  */
10892char getaddrinfo ();
10893int
10894main ()
10895{
10896getaddrinfo ();
10897  ;
10898  return 0;
10899}
10900_ACEOF
10901rm -f conftest.$ac_objext conftest$ac_exeext
10902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10903  (eval $ac_link) 2>&5
10904  ac_status=$?
10905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906  (exit $ac_status); } &&
10907         { ac_try='test -s conftest$ac_exeext'
10908  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10909  (eval $ac_try) 2>&5
10910  ac_status=$?
10911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912  (exit $ac_status); }; }; then
10913  ac_cv_lib_socket_getaddrinfo=yes
10914else
10915  echo "$as_me: failed program was:" >&5
10916sed 's/^/| /' conftest.$ac_ext >&5
10917
10918ac_cv_lib_socket_getaddrinfo=no
10919fi
10920rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10921LIBS=$ac_check_lib_save_LIBS
10922fi
10923echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getaddrinfo" >&5
10924echo "${ECHO_T}$ac_cv_lib_socket_getaddrinfo" >&6
10925if test $ac_cv_lib_socket_getaddrinfo = yes; then
10926      LIBS="$LIBS -lsocket"
10927    ac_cv_lib_inet6_getaddrinfo=no
10928
10929else
10930      echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5
10931echo $ECHO_N "checking whether your system has IPv6 directory... $ECHO_C" >&6
10932    if test "${ipv6_cv_dir+set}" = set; then
10933  echo $ECHO_N "(cached) $ECHO_C" >&6
10934else
10935        for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
10936	if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
10937	  break
10938	fi
10939      done
10940fi
10941    echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5
10942echo "${ECHO_T}$ipv6_cv_dir" >&6
10943    if test $ipv6_cv_dir = no; then
10944      ac_cv_lib_inet6_getaddrinfo=no
10945    else
10946      if test x$ipv6_libinet6 = x; then
10947	ipv6_libinet6=no
10948	SAVELDFLAGS="$LDFLAGS"
10949	LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
10950      fi
10951      echo "$as_me:$LINENO: checking for getaddrinfo in -linet6" >&5
10952echo $ECHO_N "checking for getaddrinfo in -linet6... $ECHO_C" >&6
10953if test "${ac_cv_lib_inet6_getaddrinfo+set}" = set; then
10954  echo $ECHO_N "(cached) $ECHO_C" >&6
10955else
10956  ac_check_lib_save_LIBS=$LIBS
10957LIBS="-linet6  $LIBS"
10958cat >conftest.$ac_ext <<_ACEOF
10959#line $LINENO "configure"
10960/* confdefs.h.  */
10961_ACEOF
10962cat confdefs.h >>conftest.$ac_ext
10963cat >>conftest.$ac_ext <<_ACEOF
10964/* end confdefs.h.  */
10965
10966/* Override any gcc2 internal prototype to avoid an error.  */
10967#ifdef __cplusplus
10968extern "C"
10969#endif
10970/* We use char because int might match the return type of a gcc2
10971   builtin and then its argument prototype would still apply.  */
10972char getaddrinfo ();
10973int
10974main ()
10975{
10976getaddrinfo ();
10977  ;
10978  return 0;
10979}
10980_ACEOF
10981rm -f conftest.$ac_objext conftest$ac_exeext
10982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10983  (eval $ac_link) 2>&5
10984  ac_status=$?
10985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986  (exit $ac_status); } &&
10987         { ac_try='test -s conftest$ac_exeext'
10988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10989  (eval $ac_try) 2>&5
10990  ac_status=$?
10991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992  (exit $ac_status); }; }; then
10993  ac_cv_lib_inet6_getaddrinfo=yes
10994else
10995  echo "$as_me: failed program was:" >&5
10996sed 's/^/| /' conftest.$ac_ext >&5
10997
10998ac_cv_lib_inet6_getaddrinfo=no
10999fi
11000rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11001LIBS=$ac_check_lib_save_LIBS
11002fi
11003echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getaddrinfo" >&5
11004echo "${ECHO_T}$ac_cv_lib_inet6_getaddrinfo" >&6
11005if test $ac_cv_lib_inet6_getaddrinfo = yes; then
11006  	if test $ipv6_libinet6 = no; then
11007	  ipv6_libinet6=yes
11008	  LIBS="$LIBS -linet6"
11009	fi
11010fi
11011      if test $ipv6_libinet6 = no; then
11012	LDFLAGS="$SAVELDFLAGS"
11013      fi
11014    fi
11015fi
11016
11017fi
11018ipv6_cv_getaddrinfo=no
11019if test $ac_cv_func_getaddrinfo = yes -o $ac_cv_lib_socket_getaddrinfo = yes \
11020     -o $ac_cv_lib_inet6_getaddrinfo = yes
11021then
11022  ipv6_cv_getaddrinfo=yes
11023fi
11024if test $ipv6_cv_getaddrinfo = no; then
11025  if test getaddrinfo = getaddrinfo; then
11026    for ipv6_cv_pfx in o n; do
11027      cat >conftest.$ac_ext <<_ACEOF
11028#line $LINENO "configure"
11029/* confdefs.h.  */
11030_ACEOF
11031cat confdefs.h >>conftest.$ac_ext
11032cat >>conftest.$ac_ext <<_ACEOF
11033/* end confdefs.h.  */
11034#include <netdb.h>
11035
11036_ACEOF
11037if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11038  $EGREP "${ipv6_cv_pfx}getaddrinfo" >/dev/null 2>&1; then
11039  as_ac_var=`echo "ac_cv_func_${ipv6_cv_pfx}getaddrinfo" | $as_tr_sh`
11040echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}getaddrinfo" >&5
11041echo $ECHO_N "checking for ${ipv6_cv_pfx}getaddrinfo... $ECHO_C" >&6
11042if eval "test \"\${$as_ac_var+set}\" = set"; then
11043  echo $ECHO_N "(cached) $ECHO_C" >&6
11044else
11045  cat >conftest.$ac_ext <<_ACEOF
11046#line $LINENO "configure"
11047/* confdefs.h.  */
11048_ACEOF
11049cat confdefs.h >>conftest.$ac_ext
11050cat >>conftest.$ac_ext <<_ACEOF
11051/* end confdefs.h.  */
11052/* System header to define __stub macros and hopefully few prototypes,
11053    which can conflict with char ${ipv6_cv_pfx}getaddrinfo (); below.
11054    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11055    <limits.h> exists even on freestanding compilers.  */
11056#ifdef __STDC__
11057# include <limits.h>
11058#else
11059# include <assert.h>
11060#endif
11061/* Override any gcc2 internal prototype to avoid an error.  */
11062#ifdef __cplusplus
11063extern "C"
11064{
11065#endif
11066/* We use char because int might match the return type of a gcc2
11067   builtin and then its argument prototype would still apply.  */
11068char ${ipv6_cv_pfx}getaddrinfo ();
11069/* The GNU C library defines this for functions which it implements
11070    to always fail with ENOSYS.  Some functions are actually named
11071    something starting with __ and the normal name is an alias.  */
11072#if defined (__stub_${ipv6_cv_pfx}getaddrinfo) || defined (__stub___${ipv6_cv_pfx}getaddrinfo)
11073choke me
11074#else
11075char (*f) () = ${ipv6_cv_pfx}getaddrinfo;
11076#endif
11077#ifdef __cplusplus
11078}
11079#endif
11080
11081int
11082main ()
11083{
11084return f != ${ipv6_cv_pfx}getaddrinfo;
11085  ;
11086  return 0;
11087}
11088_ACEOF
11089rm -f conftest.$ac_objext conftest$ac_exeext
11090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11091  (eval $ac_link) 2>&5
11092  ac_status=$?
11093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094  (exit $ac_status); } &&
11095         { ac_try='test -s conftest$ac_exeext'
11096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11097  (eval $ac_try) 2>&5
11098  ac_status=$?
11099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100  (exit $ac_status); }; }; then
11101  eval "$as_ac_var=yes"
11102else
11103  echo "$as_me: failed program was:" >&5
11104sed 's/^/| /' conftest.$ac_ext >&5
11105
11106eval "$as_ac_var=no"
11107fi
11108rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11109fi
11110echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11111echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11112
11113fi
11114rm -f conftest*
11115
11116      if eval test X\$ac_cv_func_${ipv6_cv_pfx}getaddrinfo = Xyes; then
11117
11118cat >>confdefs.h <<\_ACEOF
11119#define HAVE_GETADDRINFO
11120_ACEOF
11121
11122        ipv6_cv_getaddrinfo=yes
11123        break
11124      fi
11125    done
11126  fi
11127fi
11128if test $ipv6_cv_getaddrinfo = yes; then
11129
11130cat >>confdefs.h <<\_ACEOF
11131#define HAVE_GETADDRINFO
11132_ACEOF
11133
11134else
11135  sasl_cv_getaddrinfo=yes
11136fi
11137if test $sasl_cv_getaddrinfo = yes; then
11138	LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11139fi
11140
11141GETNAMEINFOOBJS=""
11142sasl_cv_getnameinfo=no
11143
11144echo "$as_me:$LINENO: checking for getnameinfo" >&5
11145echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6
11146if test "${ac_cv_func_getnameinfo+set}" = set; then
11147  echo $ECHO_N "(cached) $ECHO_C" >&6
11148else
11149  cat >conftest.$ac_ext <<_ACEOF
11150#line $LINENO "configure"
11151/* confdefs.h.  */
11152_ACEOF
11153cat confdefs.h >>conftest.$ac_ext
11154cat >>conftest.$ac_ext <<_ACEOF
11155/* end confdefs.h.  */
11156/* System header to define __stub macros and hopefully few prototypes,
11157    which can conflict with char getnameinfo (); below.
11158    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11159    <limits.h> exists even on freestanding compilers.  */
11160#ifdef __STDC__
11161# include <limits.h>
11162#else
11163# include <assert.h>
11164#endif
11165/* Override any gcc2 internal prototype to avoid an error.  */
11166#ifdef __cplusplus
11167extern "C"
11168{
11169#endif
11170/* We use char because int might match the return type of a gcc2
11171   builtin and then its argument prototype would still apply.  */
11172char getnameinfo ();
11173/* The GNU C library defines this for functions which it implements
11174    to always fail with ENOSYS.  Some functions are actually named
11175    something starting with __ and the normal name is an alias.  */
11176#if defined (__stub_getnameinfo) || defined (__stub___getnameinfo)
11177choke me
11178#else
11179char (*f) () = getnameinfo;
11180#endif
11181#ifdef __cplusplus
11182}
11183#endif
11184
11185int
11186main ()
11187{
11188return f != getnameinfo;
11189  ;
11190  return 0;
11191}
11192_ACEOF
11193rm -f conftest.$ac_objext conftest$ac_exeext
11194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11195  (eval $ac_link) 2>&5
11196  ac_status=$?
11197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198  (exit $ac_status); } &&
11199         { ac_try='test -s conftest$ac_exeext'
11200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11201  (eval $ac_try) 2>&5
11202  ac_status=$?
11203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204  (exit $ac_status); }; }; then
11205  ac_cv_func_getnameinfo=yes
11206else
11207  echo "$as_me: failed program was:" >&5
11208sed 's/^/| /' conftest.$ac_ext >&5
11209
11210ac_cv_func_getnameinfo=no
11211fi
11212rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11213fi
11214echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5
11215echo "${ECHO_T}$ac_cv_func_getnameinfo" >&6
11216if test $ac_cv_func_getnameinfo = yes; then
11217    ac_cv_lib_socket_getnameinfo=no
11218  ac_cv_lib_inet6_getnameinfo=no
11219
11220else
11221    echo "$as_me:$LINENO: checking for getnameinfo in -lsocket" >&5
11222echo $ECHO_N "checking for getnameinfo in -lsocket... $ECHO_C" >&6
11223if test "${ac_cv_lib_socket_getnameinfo+set}" = set; then
11224  echo $ECHO_N "(cached) $ECHO_C" >&6
11225else
11226  ac_check_lib_save_LIBS=$LIBS
11227LIBS="-lsocket  $LIBS"
11228cat >conftest.$ac_ext <<_ACEOF
11229#line $LINENO "configure"
11230/* confdefs.h.  */
11231_ACEOF
11232cat confdefs.h >>conftest.$ac_ext
11233cat >>conftest.$ac_ext <<_ACEOF
11234/* end confdefs.h.  */
11235
11236/* Override any gcc2 internal prototype to avoid an error.  */
11237#ifdef __cplusplus
11238extern "C"
11239#endif
11240/* We use char because int might match the return type of a gcc2
11241   builtin and then its argument prototype would still apply.  */
11242char getnameinfo ();
11243int
11244main ()
11245{
11246getnameinfo ();
11247  ;
11248  return 0;
11249}
11250_ACEOF
11251rm -f conftest.$ac_objext conftest$ac_exeext
11252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11253  (eval $ac_link) 2>&5
11254  ac_status=$?
11255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256  (exit $ac_status); } &&
11257         { ac_try='test -s conftest$ac_exeext'
11258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11259  (eval $ac_try) 2>&5
11260  ac_status=$?
11261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262  (exit $ac_status); }; }; then
11263  ac_cv_lib_socket_getnameinfo=yes
11264else
11265  echo "$as_me: failed program was:" >&5
11266sed 's/^/| /' conftest.$ac_ext >&5
11267
11268ac_cv_lib_socket_getnameinfo=no
11269fi
11270rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11271LIBS=$ac_check_lib_save_LIBS
11272fi
11273echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getnameinfo" >&5
11274echo "${ECHO_T}$ac_cv_lib_socket_getnameinfo" >&6
11275if test $ac_cv_lib_socket_getnameinfo = yes; then
11276      LIBS="$LIBS -lsocket"
11277    ac_cv_lib_inet6_getnameinfo=no
11278
11279else
11280      echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5
11281echo $ECHO_N "checking whether your system has IPv6 directory... $ECHO_C" >&6
11282    if test "${ipv6_cv_dir+set}" = set; then
11283  echo $ECHO_N "(cached) $ECHO_C" >&6
11284else
11285        for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
11286	if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
11287	  break
11288	fi
11289      done
11290fi
11291    echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5
11292echo "${ECHO_T}$ipv6_cv_dir" >&6
11293    if test $ipv6_cv_dir = no; then
11294      ac_cv_lib_inet6_getnameinfo=no
11295    else
11296      if test x$ipv6_libinet6 = x; then
11297	ipv6_libinet6=no
11298	SAVELDFLAGS="$LDFLAGS"
11299	LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
11300      fi
11301      echo "$as_me:$LINENO: checking for getnameinfo in -linet6" >&5
11302echo $ECHO_N "checking for getnameinfo in -linet6... $ECHO_C" >&6
11303if test "${ac_cv_lib_inet6_getnameinfo+set}" = set; then
11304  echo $ECHO_N "(cached) $ECHO_C" >&6
11305else
11306  ac_check_lib_save_LIBS=$LIBS
11307LIBS="-linet6  $LIBS"
11308cat >conftest.$ac_ext <<_ACEOF
11309#line $LINENO "configure"
11310/* confdefs.h.  */
11311_ACEOF
11312cat confdefs.h >>conftest.$ac_ext
11313cat >>conftest.$ac_ext <<_ACEOF
11314/* end confdefs.h.  */
11315
11316/* Override any gcc2 internal prototype to avoid an error.  */
11317#ifdef __cplusplus
11318extern "C"
11319#endif
11320/* We use char because int might match the return type of a gcc2
11321   builtin and then its argument prototype would still apply.  */
11322char getnameinfo ();
11323int
11324main ()
11325{
11326getnameinfo ();
11327  ;
11328  return 0;
11329}
11330_ACEOF
11331rm -f conftest.$ac_objext conftest$ac_exeext
11332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11333  (eval $ac_link) 2>&5
11334  ac_status=$?
11335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336  (exit $ac_status); } &&
11337         { ac_try='test -s conftest$ac_exeext'
11338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11339  (eval $ac_try) 2>&5
11340  ac_status=$?
11341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342  (exit $ac_status); }; }; then
11343  ac_cv_lib_inet6_getnameinfo=yes
11344else
11345  echo "$as_me: failed program was:" >&5
11346sed 's/^/| /' conftest.$ac_ext >&5
11347
11348ac_cv_lib_inet6_getnameinfo=no
11349fi
11350rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11351LIBS=$ac_check_lib_save_LIBS
11352fi
11353echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getnameinfo" >&5
11354echo "${ECHO_T}$ac_cv_lib_inet6_getnameinfo" >&6
11355if test $ac_cv_lib_inet6_getnameinfo = yes; then
11356  	if test $ipv6_libinet6 = no; then
11357	  ipv6_libinet6=yes
11358	  LIBS="$LIBS -linet6"
11359	fi
11360fi
11361      if test $ipv6_libinet6 = no; then
11362	LDFLAGS="$SAVELDFLAGS"
11363      fi
11364    fi
11365fi
11366
11367fi
11368ipv6_cv_getnameinfo=no
11369if test $ac_cv_func_getnameinfo = yes -o $ac_cv_lib_socket_getnameinfo = yes \
11370     -o $ac_cv_lib_inet6_getnameinfo = yes
11371then
11372  ipv6_cv_getnameinfo=yes
11373fi
11374if test $ipv6_cv_getnameinfo = no; then
11375  if test getnameinfo = getaddrinfo; then
11376    for ipv6_cv_pfx in o n; do
11377      cat >conftest.$ac_ext <<_ACEOF
11378#line $LINENO "configure"
11379/* confdefs.h.  */
11380_ACEOF
11381cat confdefs.h >>conftest.$ac_ext
11382cat >>conftest.$ac_ext <<_ACEOF
11383/* end confdefs.h.  */
11384#include <netdb.h>
11385
11386_ACEOF
11387if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11388  $EGREP "${ipv6_cv_pfx}getnameinfo" >/dev/null 2>&1; then
11389  as_ac_var=`echo "ac_cv_func_${ipv6_cv_pfx}getnameinfo" | $as_tr_sh`
11390echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}getnameinfo" >&5
11391echo $ECHO_N "checking for ${ipv6_cv_pfx}getnameinfo... $ECHO_C" >&6
11392if eval "test \"\${$as_ac_var+set}\" = set"; then
11393  echo $ECHO_N "(cached) $ECHO_C" >&6
11394else
11395  cat >conftest.$ac_ext <<_ACEOF
11396#line $LINENO "configure"
11397/* confdefs.h.  */
11398_ACEOF
11399cat confdefs.h >>conftest.$ac_ext
11400cat >>conftest.$ac_ext <<_ACEOF
11401/* end confdefs.h.  */
11402/* System header to define __stub macros and hopefully few prototypes,
11403    which can conflict with char ${ipv6_cv_pfx}getnameinfo (); below.
11404    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11405    <limits.h> exists even on freestanding compilers.  */
11406#ifdef __STDC__
11407# include <limits.h>
11408#else
11409# include <assert.h>
11410#endif
11411/* Override any gcc2 internal prototype to avoid an error.  */
11412#ifdef __cplusplus
11413extern "C"
11414{
11415#endif
11416/* We use char because int might match the return type of a gcc2
11417   builtin and then its argument prototype would still apply.  */
11418char ${ipv6_cv_pfx}getnameinfo ();
11419/* The GNU C library defines this for functions which it implements
11420    to always fail with ENOSYS.  Some functions are actually named
11421    something starting with __ and the normal name is an alias.  */
11422#if defined (__stub_${ipv6_cv_pfx}getnameinfo) || defined (__stub___${ipv6_cv_pfx}getnameinfo)
11423choke me
11424#else
11425char (*f) () = ${ipv6_cv_pfx}getnameinfo;
11426#endif
11427#ifdef __cplusplus
11428}
11429#endif
11430
11431int
11432main ()
11433{
11434return f != ${ipv6_cv_pfx}getnameinfo;
11435  ;
11436  return 0;
11437}
11438_ACEOF
11439rm -f conftest.$ac_objext conftest$ac_exeext
11440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11441  (eval $ac_link) 2>&5
11442  ac_status=$?
11443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444  (exit $ac_status); } &&
11445         { ac_try='test -s conftest$ac_exeext'
11446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11447  (eval $ac_try) 2>&5
11448  ac_status=$?
11449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450  (exit $ac_status); }; }; then
11451  eval "$as_ac_var=yes"
11452else
11453  echo "$as_me: failed program was:" >&5
11454sed 's/^/| /' conftest.$ac_ext >&5
11455
11456eval "$as_ac_var=no"
11457fi
11458rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11459fi
11460echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11461echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11462
11463fi
11464rm -f conftest*
11465
11466      if eval test X\$ac_cv_func_${ipv6_cv_pfx}getnameinfo = Xyes; then
11467
11468cat >>confdefs.h <<\_ACEOF
11469#define HAVE_GETADDRINFO
11470_ACEOF
11471
11472        ipv6_cv_getnameinfo=yes
11473        break
11474      fi
11475    done
11476  fi
11477fi
11478if test $ipv6_cv_getnameinfo = yes; then
11479
11480cat >>confdefs.h <<\_ACEOF
11481#define HAVE_GETNAMEINFO
11482_ACEOF
11483
11484else
11485  sasl_cv_getnameinfo=yes
11486fi
11487if test $sasl_cv_getnameinfo = yes; then
11488	LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
11489fi
11490
11491
11492echo "$as_me:$LINENO: checking whether you have ss_family in struct sockaddr_storage" >&5
11493echo $ECHO_N "checking whether you have ss_family in struct sockaddr_storage... $ECHO_C" >&6
11494if test "${ipv6_cv_ss_family+set}" = set; then
11495  echo $ECHO_N "(cached) $ECHO_C" >&6
11496else
11497  cat >conftest.$ac_ext <<_ACEOF
11498#line $LINENO "configure"
11499/* confdefs.h.  */
11500_ACEOF
11501cat confdefs.h >>conftest.$ac_ext
11502cat >>conftest.$ac_ext <<_ACEOF
11503/* end confdefs.h.  */
11504#include <sys/types.h>
11505#include <sys/socket.h>
11506int
11507main ()
11508{
11509struct sockaddr_storage ss; int i = ss.ss_family;
11510  ;
11511  return 0;
11512}
11513_ACEOF
11514rm -f conftest.$ac_objext
11515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11516  (eval $ac_compile) 2>&5
11517  ac_status=$?
11518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519  (exit $ac_status); } &&
11520         { ac_try='test -s conftest.$ac_objext'
11521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11522  (eval $ac_try) 2>&5
11523  ac_status=$?
11524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525  (exit $ac_status); }; }; then
11526  ipv6_cv_ss_family=yes
11527else
11528  echo "$as_me: failed program was:" >&5
11529sed 's/^/| /' conftest.$ac_ext >&5
11530
11531ipv6_cv_ss_family=no
11532fi
11533rm -f conftest.$ac_objext conftest.$ac_ext
11534fi
11535if test $ipv6_cv_ss_family = yes; then
11536
11537cat >>confdefs.h <<\_ACEOF
11538#define HAVE_SS_FAMILY
11539_ACEOF
11540
11541else
11542  :
11543fi
11544echo "$as_me:$LINENO: result: $ipv6_cv_ss_family" >&5
11545echo "${ECHO_T}$ipv6_cv_ss_family" >&6
11546
11547echo "$as_me:$LINENO: checking whether you have sa_len in struct sockaddr" >&5
11548echo $ECHO_N "checking whether you have sa_len in struct sockaddr... $ECHO_C" >&6
11549if test "${ipv6_cv_sa_len+set}" = set; then
11550  echo $ECHO_N "(cached) $ECHO_C" >&6
11551else
11552  cat >conftest.$ac_ext <<_ACEOF
11553#line $LINENO "configure"
11554/* confdefs.h.  */
11555_ACEOF
11556cat confdefs.h >>conftest.$ac_ext
11557cat >>conftest.$ac_ext <<_ACEOF
11558/* end confdefs.h.  */
11559#include <sys/types.h>
11560#include <sys/socket.h>
11561int
11562main ()
11563{
11564struct sockaddr sa; int i = sa.sa_len;
11565  ;
11566  return 0;
11567}
11568_ACEOF
11569rm -f conftest.$ac_objext
11570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11571  (eval $ac_compile) 2>&5
11572  ac_status=$?
11573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574  (exit $ac_status); } &&
11575         { ac_try='test -s conftest.$ac_objext'
11576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11577  (eval $ac_try) 2>&5
11578  ac_status=$?
11579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580  (exit $ac_status); }; }; then
11581  ipv6_cv_sa_len=yes
11582else
11583  echo "$as_me: failed program was:" >&5
11584sed 's/^/| /' conftest.$ac_ext >&5
11585
11586ipv6_cv_sa_len=no
11587fi
11588rm -f conftest.$ac_objext conftest.$ac_ext
11589fi
11590if test $ipv6_cv_sa_len = yes; then
11591
11592cat >>confdefs.h <<\_ACEOF
11593#define HAVE_SOCKADDR_SA_LEN
11594_ACEOF
11595
11596else
11597  :
11598fi
11599echo "$as_me:$LINENO: result: $ipv6_cv_sa_len" >&5
11600echo "${ECHO_T}$ipv6_cv_sa_len" >&6
11601
11602echo "$as_me:$LINENO: checking for socklen_t" >&5
11603echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11604if test "${ipv6_cv_socklen_t+set}" = set; then
11605  echo $ECHO_N "(cached) $ECHO_C" >&6
11606else
11607  cat >conftest.$ac_ext <<_ACEOF
11608#line $LINENO "configure"
11609/* confdefs.h.  */
11610_ACEOF
11611cat confdefs.h >>conftest.$ac_ext
11612cat >>conftest.$ac_ext <<_ACEOF
11613/* end confdefs.h.  */
11614#include <sys/types.h>
11615#include <sys/socket.h>
11616int
11617main ()
11618{
11619socklen_t len = 0;
11620  ;
11621  return 0;
11622}
11623_ACEOF
11624rm -f conftest.$ac_objext conftest$ac_exeext
11625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11626  (eval $ac_link) 2>&5
11627  ac_status=$?
11628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629  (exit $ac_status); } &&
11630         { ac_try='test -s conftest$ac_exeext'
11631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632  (eval $ac_try) 2>&5
11633  ac_status=$?
11634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635  (exit $ac_status); }; }; then
11636  ipv6_cv_socklen_t=yes
11637else
11638  echo "$as_me: failed program was:" >&5
11639sed 's/^/| /' conftest.$ac_ext >&5
11640
11641ipv6_cv_socklen_t=no
11642fi
11643rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11644fi
11645if test $ipv6_cv_socklen_t = yes; then
11646
11647cat >>confdefs.h <<\_ACEOF
11648#define HAVE_SOCKLEN_T
11649_ACEOF
11650
11651else
11652  :
11653fi
11654echo "$as_me:$LINENO: result: $ipv6_cv_socklen_t" >&5
11655echo "${ECHO_T}$ipv6_cv_socklen_t" >&6
11656
11657cat >conftest.$ac_ext <<_ACEOF
11658#line $LINENO "configure"
11659/* confdefs.h.  */
11660_ACEOF
11661cat confdefs.h >>conftest.$ac_ext
11662cat >>conftest.$ac_ext <<_ACEOF
11663/* end confdefs.h.  */
11664#include <sys/socket.h>
11665
11666_ACEOF
11667if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11668  $EGREP "sockaddr_storage" >/dev/null 2>&1; then
11669
11670cat >>confdefs.h <<\_ACEOF
11671#define HAVE_STRUCT_SOCKADDR_STORAGE
11672_ACEOF
11673
11674fi
11675rm -f conftest*
11676
11677
11678
11679
11680
11681
11682
11683
11684          ac_config_headers="$ac_config_headers saslauthd.h"
11685
11686
11687          ac_config_files="$ac_config_files Makefile"
11688cat >confcache <<\_ACEOF
11689# This file is a shell script that caches the results of configure
11690# tests run on this system so they can be shared between configure
11691# scripts and configure runs, see configure's option --config-cache.
11692# It is not useful on other systems.  If it contains results you don't
11693# want to keep, you may remove or edit it.
11694#
11695# config.status only pays attention to the cache file if you give it
11696# the --recheck option to rerun configure.
11697#
11698# `ac_cv_env_foo' variables (set or unset) will be overridden when
11699# loading this file, other *unset* `ac_cv_foo' will be assigned the
11700# following values.
11701
11702_ACEOF
11703
11704# The following way of writing the cache mishandles newlines in values,
11705# but we know of no workaround that is simple, portable, and efficient.
11706# So, don't put newlines in cache variables' values.
11707# Ultrix sh set writes to stderr and can't be redirected directly,
11708# and sets the high bit in the cache file unless we assign to the vars.
11709{
11710  (set) 2>&1 |
11711    case `(ac_space=' '; set | grep ac_space) 2>&1` in
11712    *ac_space=\ *)
11713      # `set' does not quote correctly, so add quotes (double-quote
11714      # substitution turns \\\\ into \\, and sed turns \\ into \).
11715      sed -n \
11716        "s/'/'\\\\''/g;
11717    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11718      ;;
11719    *)
11720      # `set' quotes correctly as required by POSIX, so do not add quotes.
11721      sed -n \
11722        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11723      ;;
11724    esac;
11725} |
11726  sed '
11727     t clear
11728     : clear
11729     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11730     t end
11731     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11732     : end' >>confcache
11733if diff $cache_file confcache >/dev/null 2>&1; then :; else
11734  if test -w $cache_file; then
11735    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11736    cat confcache >$cache_file
11737  else
11738    echo "not updating unwritable cache $cache_file"
11739  fi
11740fi
11741rm -f confcache
11742
11743test "x$prefix" = xNONE && prefix=$ac_default_prefix
11744# Let make expand exec_prefix.
11745test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11746
11747# VPATH may cause trouble with some makes, so we remove $(srcdir),
11748# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11749# trailing colons and then remove the whole line if VPATH becomes empty
11750# (actually we leave an empty line to preserve line numbers).
11751if test "x$srcdir" = x.; then
11752  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
11753s/:*\$(srcdir):*/:/;
11754s/:*\${srcdir}:*/:/;
11755s/:*@srcdir@:*/:/;
11756s/^\([^=]*=[ 	]*\):*/\1/;
11757s/:*$//;
11758s/^[^=]*=[ 	]*$//;
11759}'
11760fi
11761
11762DEFS=-DHAVE_CONFIG_H
11763
11764ac_libobjs=
11765ac_ltlibobjs=
11766for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11767  # 1. Remove the extension, and $U if already installed.
11768  ac_i=`echo "$ac_i" |
11769         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11770  # 2. Add them.
11771  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11772  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11773done
11774LIBOBJS=$ac_libobjs
11775
11776LTLIBOBJS=$ac_ltlibobjs
11777
11778
11779if test -z "${SASLAUTHD_TRUE}" && test -z "${SASLAUTHD_FALSE}"; then
11780  { { echo "$as_me:$LINENO: error: conditional \"SASLAUTHD\" was never defined.
11781Usually this means the macro was only invoked conditionally." >&5
11782echo "$as_me: error: conditional \"SASLAUTHD\" was never defined.
11783Usually this means the macro was only invoked conditionally." >&2;}
11784   { (exit 1); exit 1; }; }
11785fi
11786if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11787  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11788Usually this means the macro was only invoked conditionally." >&5
11789echo "$as_me: error: conditional \"AMDEP\" was never defined.
11790Usually this means the macro was only invoked conditionally." >&2;}
11791   { (exit 1); exit 1; }; }
11792fi
11793if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11794  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11795Usually this means the macro was only invoked conditionally." >&5
11796echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11797Usually this means the macro was only invoked conditionally." >&2;}
11798   { (exit 1); exit 1; }; }
11799fi
11800
11801: ${CONFIG_STATUS=./config.status}
11802ac_clean_files_save=$ac_clean_files
11803ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11804{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11805echo "$as_me: creating $CONFIG_STATUS" >&6;}
11806cat >$CONFIG_STATUS <<_ACEOF
11807#! $SHELL
11808# Generated by $as_me.
11809# Run this file to recreate the current configuration.
11810# Compiler output produced by configure, useful for debugging
11811# configure, is in config.log if it exists.
11812
11813debug=false
11814ac_cs_recheck=false
11815ac_cs_silent=false
11816SHELL=\${CONFIG_SHELL-$SHELL}
11817_ACEOF
11818
11819cat >>$CONFIG_STATUS <<\_ACEOF
11820## --------------------- ##
11821## M4sh Initialization.  ##
11822## --------------------- ##
11823
11824# Be Bourne compatible
11825if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11826  emulate sh
11827  NULLCMD=:
11828  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11829  # is contrary to our usage.  Disable this feature.
11830  alias -g '${1+"$@"}'='"$@"'
11831elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11832  set -o posix
11833fi
11834
11835# Support unset when possible.
11836if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11837  as_unset=unset
11838else
11839  as_unset=false
11840fi
11841
11842
11843# Work around bugs in pre-3.0 UWIN ksh.
11844$as_unset ENV MAIL MAILPATH
11845PS1='$ '
11846PS2='> '
11847PS4='+ '
11848
11849# NLS nuisances.
11850for as_var in \
11851  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11852  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11853  LC_TELEPHONE LC_TIME
11854do
11855  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11856    eval $as_var=C; export $as_var
11857  else
11858    $as_unset $as_var
11859  fi
11860done
11861
11862# Required to use basename.
11863if expr a : '\(a\)' >/dev/null 2>&1; then
11864  as_expr=expr
11865else
11866  as_expr=false
11867fi
11868
11869if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11870  as_basename=basename
11871else
11872  as_basename=false
11873fi
11874
11875
11876# Name of the executable.
11877as_me=`$as_basename "$0" ||
11878$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11879	 X"$0" : 'X\(//\)$' \| \
11880	 X"$0" : 'X\(/\)$' \| \
11881	 .     : '\(.\)' 2>/dev/null ||
11882echo X/"$0" |
11883    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11884  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
11885  	  /^X\/\(\/\).*/{ s//\1/; q; }
11886  	  s/.*/./; q'`
11887
11888
11889# PATH needs CR, and LINENO needs CR and PATH.
11890# Avoid depending upon Character Ranges.
11891as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11892as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11893as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11894as_cr_digits='0123456789'
11895as_cr_alnum=$as_cr_Letters$as_cr_digits
11896
11897# The user is always right.
11898if test "${PATH_SEPARATOR+set}" != set; then
11899  echo "#! /bin/sh" >conf$$.sh
11900  echo  "exit 0"   >>conf$$.sh
11901  chmod +x conf$$.sh
11902  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11903    PATH_SEPARATOR=';'
11904  else
11905    PATH_SEPARATOR=:
11906  fi
11907  rm -f conf$$.sh
11908fi
11909
11910
11911  as_lineno_1=$LINENO
11912  as_lineno_2=$LINENO
11913  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11914  test "x$as_lineno_1" != "x$as_lineno_2" &&
11915  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11916  # Find who we are.  Look in the path if we contain no path at all
11917  # relative or not.
11918  case $0 in
11919    *[\\/]* ) as_myself=$0 ;;
11920    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11921for as_dir in $PATH
11922do
11923  IFS=$as_save_IFS
11924  test -z "$as_dir" && as_dir=.
11925  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11926done
11927
11928       ;;
11929  esac
11930  # We did not find ourselves, most probably we were run as `sh COMMAND'
11931  # in which case we are not to be found in the path.
11932  if test "x$as_myself" = x; then
11933    as_myself=$0
11934  fi
11935  if test ! -f "$as_myself"; then
11936    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11937echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11938   { (exit 1); exit 1; }; }
11939  fi
11940  case $CONFIG_SHELL in
11941  '')
11942    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11943for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11944do
11945  IFS=$as_save_IFS
11946  test -z "$as_dir" && as_dir=.
11947  for as_base in sh bash ksh sh5; do
11948	 case $as_dir in
11949	 /*)
11950	   if ("$as_dir/$as_base" -c '
11951  as_lineno_1=$LINENO
11952  as_lineno_2=$LINENO
11953  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11954  test "x$as_lineno_1" != "x$as_lineno_2" &&
11955  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11956	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11957	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11958	     CONFIG_SHELL=$as_dir/$as_base
11959	     export CONFIG_SHELL
11960	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11961	   fi;;
11962	 esac
11963       done
11964done
11965;;
11966  esac
11967
11968  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11969  # uniformly replaced by the line number.  The first 'sed' inserts a
11970  # line-number line before each line; the second 'sed' does the real
11971  # work.  The second script uses 'N' to pair each line-number line
11972  # with the numbered line, and appends trailing '-' during
11973  # substitution so that $LINENO is not a special case at line end.
11974  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11975  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11976  sed '=' <$as_myself |
11977    sed '
11978      N
11979      s,$,-,
11980      : loop
11981      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11982      t loop
11983      s,-$,,
11984      s,^['$as_cr_digits']*\n,,
11985    ' >$as_me.lineno &&
11986  chmod +x $as_me.lineno ||
11987    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11988echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11989   { (exit 1); exit 1; }; }
11990
11991  # Don't try to exec as it changes $[0], causing all sort of problems
11992  # (the dirname of $[0] is not the place where we might find the
11993  # original and so on.  Autoconf is especially sensible to this).
11994  . ./$as_me.lineno
11995  # Exit status is that of the last command.
11996  exit
11997}
11998
11999
12000case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12001  *c*,-n*) ECHO_N= ECHO_C='
12002' ECHO_T='	' ;;
12003  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12004  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12005esac
12006
12007if expr a : '\(a\)' >/dev/null 2>&1; then
12008  as_expr=expr
12009else
12010  as_expr=false
12011fi
12012
12013rm -f conf$$ conf$$.exe conf$$.file
12014echo >conf$$.file
12015if ln -s conf$$.file conf$$ 2>/dev/null; then
12016  # We could just check for DJGPP; but this test a) works b) is more generic
12017  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12018  if test -f conf$$.exe; then
12019    # Don't use ln at all; we don't have any links
12020    as_ln_s='cp -p'
12021  else
12022    as_ln_s='ln -s'
12023  fi
12024elif ln conf$$.file conf$$ 2>/dev/null; then
12025  as_ln_s=ln
12026else
12027  as_ln_s='cp -p'
12028fi
12029rm -f conf$$ conf$$.exe conf$$.file
12030
12031if mkdir -p . 2>/dev/null; then
12032  as_mkdir_p=:
12033else
12034  as_mkdir_p=false
12035fi
12036
12037as_executable_p="test -f"
12038
12039# Sed expression to map a string onto a valid CPP name.
12040as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12041
12042# Sed expression to map a string onto a valid variable name.
12043as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12044
12045
12046# IFS
12047# We need space, tab and new line, in precisely that order.
12048as_nl='
12049'
12050IFS=" 	$as_nl"
12051
12052# CDPATH.
12053$as_unset CDPATH
12054
12055exec 6>&1
12056
12057# Open the log real soon, to keep \$[0] and so on meaningful, and to
12058# report actual input values of CONFIG_FILES etc. instead of their
12059# values after options handling.  Logging --version etc. is OK.
12060exec 5>>config.log
12061{
12062  echo
12063  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12064## Running $as_me. ##
12065_ASBOX
12066} >&5
12067cat >&5 <<_CSEOF
12068
12069This file was extended by $as_me, which was
12070generated by GNU Autoconf 2.57.  Invocation command line was
12071
12072  CONFIG_FILES    = $CONFIG_FILES
12073  CONFIG_HEADERS  = $CONFIG_HEADERS
12074  CONFIG_LINKS    = $CONFIG_LINKS
12075  CONFIG_COMMANDS = $CONFIG_COMMANDS
12076  $ $0 $@
12077
12078_CSEOF
12079echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12080echo >&5
12081_ACEOF
12082
12083# Files that config.status was made for.
12084if test -n "$ac_config_files"; then
12085  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12086fi
12087
12088if test -n "$ac_config_headers"; then
12089  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12090fi
12091
12092if test -n "$ac_config_links"; then
12093  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12094fi
12095
12096if test -n "$ac_config_commands"; then
12097  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12098fi
12099
12100cat >>$CONFIG_STATUS <<\_ACEOF
12101
12102ac_cs_usage="\
12103\`$as_me' instantiates files from templates according to the
12104current configuration.
12105
12106Usage: $0 [OPTIONS] [FILE]...
12107
12108  -h, --help       print this help, then exit
12109  -V, --version    print version number, then exit
12110  -q, --quiet      do not print progress messages
12111  -d, --debug      don't remove temporary files
12112      --recheck    update $as_me by reconfiguring in the same conditions
12113  --file=FILE[:TEMPLATE]
12114                   instantiate the configuration file FILE
12115  --header=FILE[:TEMPLATE]
12116                   instantiate the configuration header FILE
12117
12118Configuration files:
12119$config_files
12120
12121Configuration headers:
12122$config_headers
12123
12124Configuration commands:
12125$config_commands
12126
12127Report bugs to <bug-autoconf@gnu.org>."
12128_ACEOF
12129
12130cat >>$CONFIG_STATUS <<_ACEOF
12131ac_cs_version="\\
12132config.status
12133configured by $0, generated by GNU Autoconf 2.57,
12134  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12135
12136Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12137Free Software Foundation, Inc.
12138This config.status script is free software; the Free Software Foundation
12139gives unlimited permission to copy, distribute and modify it."
12140srcdir=$srcdir
12141INSTALL="$INSTALL"
12142_ACEOF
12143
12144cat >>$CONFIG_STATUS <<\_ACEOF
12145# If no file are specified by the user, then we need to provide default
12146# value.  By we need to know if files were specified by the user.
12147ac_need_defaults=:
12148while test $# != 0
12149do
12150  case $1 in
12151  --*=*)
12152    ac_option=`expr "x$1" : 'x\([^=]*\)='`
12153    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12154    ac_shift=:
12155    ;;
12156  -*)
12157    ac_option=$1
12158    ac_optarg=$2
12159    ac_shift=shift
12160    ;;
12161  *) # This is not an option, so the user has probably given explicit
12162     # arguments.
12163     ac_option=$1
12164     ac_need_defaults=false;;
12165  esac
12166
12167  case $ac_option in
12168  # Handling of the options.
12169_ACEOF
12170cat >>$CONFIG_STATUS <<\_ACEOF
12171  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12172    ac_cs_recheck=: ;;
12173  --version | --vers* | -V )
12174    echo "$ac_cs_version"; exit 0 ;;
12175  --he | --h)
12176    # Conflict between --help and --header
12177    { { echo "$as_me:$LINENO: error: ambiguous option: $1
12178Try \`$0 --help' for more information." >&5
12179echo "$as_me: error: ambiguous option: $1
12180Try \`$0 --help' for more information." >&2;}
12181   { (exit 1); exit 1; }; };;
12182  --help | --hel | -h )
12183    echo "$ac_cs_usage"; exit 0 ;;
12184  --debug | --d* | -d )
12185    debug=: ;;
12186  --file | --fil | --fi | --f )
12187    $ac_shift
12188    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12189    ac_need_defaults=false;;
12190  --header | --heade | --head | --hea )
12191    $ac_shift
12192    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12193    ac_need_defaults=false;;
12194  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12195  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12196    ac_cs_silent=: ;;
12197
12198  # This is an error.
12199  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12200Try \`$0 --help' for more information." >&5
12201echo "$as_me: error: unrecognized option: $1
12202Try \`$0 --help' for more information." >&2;}
12203   { (exit 1); exit 1; }; } ;;
12204
12205  *) ac_config_targets="$ac_config_targets $1" ;;
12206
12207  esac
12208  shift
12209done
12210
12211ac_configure_extra_args=
12212
12213if $ac_cs_silent; then
12214  exec 6>/dev/null
12215  ac_configure_extra_args="$ac_configure_extra_args --silent"
12216fi
12217
12218_ACEOF
12219cat >>$CONFIG_STATUS <<_ACEOF
12220if \$ac_cs_recheck; then
12221  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12222  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12223fi
12224
12225_ACEOF
12226
12227cat >>$CONFIG_STATUS <<_ACEOF
12228#
12229# INIT-COMMANDS section.
12230#
12231
12232AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12233
12234_ACEOF
12235
12236
12237
12238cat >>$CONFIG_STATUS <<\_ACEOF
12239for ac_config_target in $ac_config_targets
12240do
12241  case "$ac_config_target" in
12242  # Handling of arguments.
12243  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12244  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12245  "saslauthd.h" ) CONFIG_HEADERS="$CONFIG_HEADERS saslauthd.h" ;;
12246  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12247echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12248   { (exit 1); exit 1; }; };;
12249  esac
12250done
12251
12252# If the user did not use the arguments to specify the items to instantiate,
12253# then the envvar interface is used.  Set only those that are not.
12254# We use the long form for the default assignment because of an extremely
12255# bizarre bug on SunOS 4.1.3.
12256if $ac_need_defaults; then
12257  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12258  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12259  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12260fi
12261
12262# Have a temporary directory for convenience.  Make it in the build tree
12263# simply because there is no reason to put it here, and in addition,
12264# creating and moving files from /tmp can sometimes cause problems.
12265# Create a temporary directory, and hook for its removal unless debugging.
12266$debug ||
12267{
12268  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12269  trap '{ (exit 1); exit 1; }' 1 2 13 15
12270}
12271
12272# Create a (secure) tmp directory for tmp files.
12273
12274{
12275  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12276  test -n "$tmp" && test -d "$tmp"
12277}  ||
12278{
12279  tmp=./confstat$$-$RANDOM
12280  (umask 077 && mkdir $tmp)
12281} ||
12282{
12283   echo "$me: cannot create a temporary directory in ." >&2
12284   { (exit 1); exit 1; }
12285}
12286
12287_ACEOF
12288
12289cat >>$CONFIG_STATUS <<_ACEOF
12290
12291#
12292# CONFIG_FILES section.
12293#
12294
12295# No need to generate the scripts if there are no CONFIG_FILES.
12296# This happens for instance when ./config.status config.h
12297if test -n "\$CONFIG_FILES"; then
12298  # Protect against being on the right side of a sed subst in config.status.
12299  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12300   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12301s,@SHELL@,$SHELL,;t t
12302s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12303s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12304s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12305s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12306s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12307s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12308s,@exec_prefix@,$exec_prefix,;t t
12309s,@prefix@,$prefix,;t t
12310s,@program_transform_name@,$program_transform_name,;t t
12311s,@bindir@,$bindir,;t t
12312s,@sbindir@,$sbindir,;t t
12313s,@libexecdir@,$libexecdir,;t t
12314s,@datadir@,$datadir,;t t
12315s,@sysconfdir@,$sysconfdir,;t t
12316s,@sharedstatedir@,$sharedstatedir,;t t
12317s,@localstatedir@,$localstatedir,;t t
12318s,@libdir@,$libdir,;t t
12319s,@includedir@,$includedir,;t t
12320s,@oldincludedir@,$oldincludedir,;t t
12321s,@infodir@,$infodir,;t t
12322s,@mandir@,$mandir,;t t
12323s,@build_alias@,$build_alias,;t t
12324s,@host_alias@,$host_alias,;t t
12325s,@target_alias@,$target_alias,;t t
12326s,@DEFS@,$DEFS,;t t
12327s,@ECHO_C@,$ECHO_C,;t t
12328s,@ECHO_N@,$ECHO_N,;t t
12329s,@ECHO_T@,$ECHO_T,;t t
12330s,@LIBS@,$LIBS,;t t
12331s,@build@,$build,;t t
12332s,@build_cpu@,$build_cpu,;t t
12333s,@build_vendor@,$build_vendor,;t t
12334s,@build_os@,$build_os,;t t
12335s,@host@,$host,;t t
12336s,@host_cpu@,$host_cpu,;t t
12337s,@host_vendor@,$host_vendor,;t t
12338s,@host_os@,$host_os,;t t
12339s,@SASLAUTHD_TRUE@,$SASLAUTHD_TRUE,;t t
12340s,@SASLAUTHD_FALSE@,$SASLAUTHD_FALSE,;t t
12341s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12342s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12343s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12344s,@CYGPATH_W@,$CYGPATH_W,;t t
12345s,@PACKAGE@,$PACKAGE,;t t
12346s,@VERSION@,$VERSION,;t t
12347s,@ACLOCAL@,$ACLOCAL,;t t
12348s,@AUTOCONF@,$AUTOCONF,;t t
12349s,@AUTOMAKE@,$AUTOMAKE,;t t
12350s,@AUTOHEADER@,$AUTOHEADER,;t t
12351s,@MAKEINFO@,$MAKEINFO,;t t
12352s,@AMTAR@,$AMTAR,;t t
12353s,@install_sh@,$install_sh,;t t
12354s,@STRIP@,$STRIP,;t t
12355s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12356s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12357s,@AWK@,$AWK,;t t
12358s,@SET_MAKE@,$SET_MAKE,;t t
12359s,@CC@,$CC,;t t
12360s,@CFLAGS@,$CFLAGS,;t t
12361s,@LDFLAGS@,$LDFLAGS,;t t
12362s,@CPPFLAGS@,$CPPFLAGS,;t t
12363s,@ac_ct_CC@,$ac_ct_CC,;t t
12364s,@EXEEXT@,$EXEEXT,;t t
12365s,@OBJEXT@,$OBJEXT,;t t
12366s,@DEPDIR@,$DEPDIR,;t t
12367s,@am__include@,$am__include,;t t
12368s,@am__quote@,$am__quote,;t t
12369s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12370s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12371s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12372s,@CCDEPMODE@,$CCDEPMODE,;t t
12373s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12374s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12375s,@CPP@,$CPP,;t t
12376s,@LN_S@,$LN_S,;t t
12377s,@LIB_SOCKET@,$LIB_SOCKET,;t t
12378s,@EGREP@,$EGREP,;t t
12379s,@CMU_LIB_SUBDIR@,$CMU_LIB_SUBDIR,;t t
12380s,@LIB_DES@,$LIB_DES,;t t
12381s,@SASL_KRB_LIB@,$SASL_KRB_LIB,;t t
12382s,@LIB_CRYPT@,$LIB_CRYPT,;t t
12383s,@GSSAPI_LIBS@,$GSSAPI_LIBS,;t t
12384s,@GSSAPIBASE_LIBS@,$GSSAPIBASE_LIBS,;t t
12385s,@LIB_SIA@,$LIB_SIA,;t t
12386s,@SASL_DB_UTILS@,$SASL_DB_UTILS,;t t
12387s,@SASL_DB_MANS@,$SASL_DB_MANS,;t t
12388s,@SASL_DB_BACKEND@,$SASL_DB_BACKEND,;t t
12389s,@SASL_DB_BACKEND_STATIC@,$SASL_DB_BACKEND_STATIC,;t t
12390s,@SASL_DB_INC@,$SASL_DB_INC,;t t
12391s,@SASL_DB_LIB@,$SASL_DB_LIB,;t t
12392s,@MAIN_COMPAT_OBJ@,$MAIN_COMPAT_OBJ,;t t
12393s,@LIB_PAM@,$LIB_PAM,;t t
12394s,@LDAP_LIBS@,$LDAP_LIBS,;t t
12395s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12396s,@LIBOBJS@,$LIBOBJS,;t t
12397CEOF
12398
12399_ACEOF
12400
12401  cat >>$CONFIG_STATUS <<\_ACEOF
12402  # Split the substitutions into bite-sized pieces for seds with
12403  # small command number limits, like on Digital OSF/1 and HP-UX.
12404  ac_max_sed_lines=48
12405  ac_sed_frag=1 # Number of current file.
12406  ac_beg=1 # First line for current file.
12407  ac_end=$ac_max_sed_lines # Line after last line for current file.
12408  ac_more_lines=:
12409  ac_sed_cmds=
12410  while $ac_more_lines; do
12411    if test $ac_beg -gt 1; then
12412      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12413    else
12414      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12415    fi
12416    if test ! -s $tmp/subs.frag; then
12417      ac_more_lines=false
12418    else
12419      # The purpose of the label and of the branching condition is to
12420      # speed up the sed processing (if there are no `@' at all, there
12421      # is no need to browse any of the substitutions).
12422      # These are the two extra sed commands mentioned above.
12423      (echo ':t
12424  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12425      if test -z "$ac_sed_cmds"; then
12426  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12427      else
12428  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12429      fi
12430      ac_sed_frag=`expr $ac_sed_frag + 1`
12431      ac_beg=$ac_end
12432      ac_end=`expr $ac_end + $ac_max_sed_lines`
12433    fi
12434  done
12435  if test -z "$ac_sed_cmds"; then
12436    ac_sed_cmds=cat
12437  fi
12438fi # test -n "$CONFIG_FILES"
12439
12440_ACEOF
12441cat >>$CONFIG_STATUS <<\_ACEOF
12442for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12443  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12444  case $ac_file in
12445  - | *:- | *:-:* ) # input from stdin
12446        cat >$tmp/stdin
12447        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12448        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12449  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12450        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12451  * )   ac_file_in=$ac_file.in ;;
12452  esac
12453
12454  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12455  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12456$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12457         X"$ac_file" : 'X\(//\)[^/]' \| \
12458         X"$ac_file" : 'X\(//\)$' \| \
12459         X"$ac_file" : 'X\(/\)' \| \
12460         .     : '\(.\)' 2>/dev/null ||
12461echo X"$ac_file" |
12462    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12463  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12464  	  /^X\(\/\/\)$/{ s//\1/; q; }
12465  	  /^X\(\/\).*/{ s//\1/; q; }
12466  	  s/.*/./; q'`
12467  { if $as_mkdir_p; then
12468    mkdir -p "$ac_dir"
12469  else
12470    as_dir="$ac_dir"
12471    as_dirs=
12472    while test ! -d "$as_dir"; do
12473      as_dirs="$as_dir $as_dirs"
12474      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12475$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12476         X"$as_dir" : 'X\(//\)[^/]' \| \
12477         X"$as_dir" : 'X\(//\)$' \| \
12478         X"$as_dir" : 'X\(/\)' \| \
12479         .     : '\(.\)' 2>/dev/null ||
12480echo X"$as_dir" |
12481    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12482  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12483  	  /^X\(\/\/\)$/{ s//\1/; q; }
12484  	  /^X\(\/\).*/{ s//\1/; q; }
12485  	  s/.*/./; q'`
12486    done
12487    test ! -n "$as_dirs" || mkdir $as_dirs
12488  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12489echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12490   { (exit 1); exit 1; }; }; }
12491
12492  ac_builddir=.
12493
12494if test "$ac_dir" != .; then
12495  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12496  # A "../" for each directory in $ac_dir_suffix.
12497  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12498else
12499  ac_dir_suffix= ac_top_builddir=
12500fi
12501
12502case $srcdir in
12503  .)  # No --srcdir option.  We are building in place.
12504    ac_srcdir=.
12505    if test -z "$ac_top_builddir"; then
12506       ac_top_srcdir=.
12507    else
12508       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12509    fi ;;
12510  [\\/]* | ?:[\\/]* )  # Absolute path.
12511    ac_srcdir=$srcdir$ac_dir_suffix;
12512    ac_top_srcdir=$srcdir ;;
12513  *) # Relative path.
12514    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12515    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12516esac
12517# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12518# absolute.
12519ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12520ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12521ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12522ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12523
12524
12525  case $INSTALL in
12526  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12527  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12528  esac
12529
12530  if test x"$ac_file" != x-; then
12531    { echo "$as_me:$LINENO: creating $ac_file" >&5
12532echo "$as_me: creating $ac_file" >&6;}
12533    rm -f "$ac_file"
12534  fi
12535  # Let's still pretend it is `configure' which instantiates (i.e., don't
12536  # use $as_me), people would be surprised to read:
12537  #    /* config.h.  Generated by config.status.  */
12538  if test x"$ac_file" = x-; then
12539    configure_input=
12540  else
12541    configure_input="$ac_file.  "
12542  fi
12543  configure_input=$configure_input"Generated from `echo $ac_file_in |
12544                                     sed 's,.*/,,'` by configure."
12545
12546  # First look for the input files in the build tree, otherwise in the
12547  # src tree.
12548  ac_file_inputs=`IFS=:
12549    for f in $ac_file_in; do
12550      case $f in
12551      -) echo $tmp/stdin ;;
12552      [\\/$]*)
12553         # Absolute (can't be DOS-style, as IFS=:)
12554         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12555echo "$as_me: error: cannot find input file: $f" >&2;}
12556   { (exit 1); exit 1; }; }
12557         echo $f;;
12558      *) # Relative
12559         if test -f "$f"; then
12560           # Build tree
12561           echo $f
12562         elif test -f "$srcdir/$f"; then
12563           # Source tree
12564           echo $srcdir/$f
12565         else
12566           # /dev/null tree
12567           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12568echo "$as_me: error: cannot find input file: $f" >&2;}
12569   { (exit 1); exit 1; }; }
12570         fi;;
12571      esac
12572    done` || { (exit 1); exit 1; }
12573_ACEOF
12574cat >>$CONFIG_STATUS <<_ACEOF
12575  sed "$ac_vpsub
12576$extrasub
12577_ACEOF
12578cat >>$CONFIG_STATUS <<\_ACEOF
12579:t
12580/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12581s,@configure_input@,$configure_input,;t t
12582s,@srcdir@,$ac_srcdir,;t t
12583s,@abs_srcdir@,$ac_abs_srcdir,;t t
12584s,@top_srcdir@,$ac_top_srcdir,;t t
12585s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12586s,@builddir@,$ac_builddir,;t t
12587s,@abs_builddir@,$ac_abs_builddir,;t t
12588s,@top_builddir@,$ac_top_builddir,;t t
12589s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12590s,@INSTALL@,$ac_INSTALL,;t t
12591" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12592  rm -f $tmp/stdin
12593  if test x"$ac_file" != x-; then
12594    mv $tmp/out $ac_file
12595  else
12596    cat $tmp/out
12597    rm -f $tmp/out
12598  fi
12599
12600done
12601_ACEOF
12602cat >>$CONFIG_STATUS <<\_ACEOF
12603
12604#
12605# CONFIG_HEADER section.
12606#
12607
12608# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12609# NAME is the cpp macro being defined and VALUE is the value it is being given.
12610#
12611# ac_d sets the value in "#define NAME VALUE" lines.
12612ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
12613ac_dB='[ 	].*$,\1#\2'
12614ac_dC=' '
12615ac_dD=',;t'
12616# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12617ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
12618ac_uB='$,\1#\2define\3'
12619ac_uC=' '
12620ac_uD=',;t'
12621
12622for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12623  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12624  case $ac_file in
12625  - | *:- | *:-:* ) # input from stdin
12626        cat >$tmp/stdin
12627        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12628        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12629  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12630        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12631  * )   ac_file_in=$ac_file.in ;;
12632  esac
12633
12634  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12635echo "$as_me: creating $ac_file" >&6;}
12636
12637  # First look for the input files in the build tree, otherwise in the
12638  # src tree.
12639  ac_file_inputs=`IFS=:
12640    for f in $ac_file_in; do
12641      case $f in
12642      -) echo $tmp/stdin ;;
12643      [\\/$]*)
12644         # Absolute (can't be DOS-style, as IFS=:)
12645         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12646echo "$as_me: error: cannot find input file: $f" >&2;}
12647   { (exit 1); exit 1; }; }
12648         echo $f;;
12649      *) # Relative
12650         if test -f "$f"; then
12651           # Build tree
12652           echo $f
12653         elif test -f "$srcdir/$f"; then
12654           # Source tree
12655           echo $srcdir/$f
12656         else
12657           # /dev/null tree
12658           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12659echo "$as_me: error: cannot find input file: $f" >&2;}
12660   { (exit 1); exit 1; }; }
12661         fi;;
12662      esac
12663    done` || { (exit 1); exit 1; }
12664  # Remove the trailing spaces.
12665  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
12666
12667_ACEOF
12668
12669# Transform confdefs.h into two sed scripts, `conftest.defines' and
12670# `conftest.undefs', that substitutes the proper values into
12671# config.h.in to produce config.h.  The first handles `#define'
12672# templates, and the second `#undef' templates.
12673# And first: Protect against being on the right side of a sed subst in
12674# config.status.  Protect against being in an unquoted here document
12675# in config.status.
12676rm -f conftest.defines conftest.undefs
12677# Using a here document instead of a string reduces the quoting nightmare.
12678# Putting comments in sed scripts is not portable.
12679#
12680# `end' is used to avoid that the second main sed command (meant for
12681# 0-ary CPP macros) applies to n-ary macro definitions.
12682# See the Autoconf documentation for `clear'.
12683cat >confdef2sed.sed <<\_ACEOF
12684s/[\\&,]/\\&/g
12685s,[\\$`],\\&,g
12686t clear
12687: clear
12688s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12689t end
12690s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12691: end
12692_ACEOF
12693# If some macros were called several times there might be several times
12694# the same #defines, which is useless.  Nevertheless, we may not want to
12695# sort them, since we want the *last* AC-DEFINE to be honored.
12696uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12697sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12698rm -f confdef2sed.sed
12699
12700# This sed command replaces #undef with comments.  This is necessary, for
12701# example, in the case of _POSIX_SOURCE, which is predefined and required
12702# on some systems where configure will not decide to define it.
12703cat >>conftest.undefs <<\_ACEOF
12704s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12705_ACEOF
12706
12707# Break up conftest.defines because some shells have a limit on the size
12708# of here documents, and old seds have small limits too (100 cmds).
12709echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12710echo '  if grep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12711echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12712echo '  :' >>$CONFIG_STATUS
12713rm -f conftest.tail
12714while grep . conftest.defines >/dev/null
12715do
12716  # Write a limited-size here document to $tmp/defines.sed.
12717  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12718  # Speed up: don't consider the non `#define' lines.
12719  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
12720  # Work around the forget-to-reset-the-flag bug.
12721  echo 't clr' >>$CONFIG_STATUS
12722  echo ': clr' >>$CONFIG_STATUS
12723  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12724  echo 'CEOF
12725  sed -f $tmp/defines.sed $tmp/in >$tmp/out
12726  rm -f $tmp/in
12727  mv $tmp/out $tmp/in
12728' >>$CONFIG_STATUS
12729  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12730  rm -f conftest.defines
12731  mv conftest.tail conftest.defines
12732done
12733rm -f conftest.defines
12734echo '  fi # grep' >>$CONFIG_STATUS
12735echo >>$CONFIG_STATUS
12736
12737# Break up conftest.undefs because some shells have a limit on the size
12738# of here documents, and old seds have small limits too (100 cmds).
12739echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12740rm -f conftest.tail
12741while grep . conftest.undefs >/dev/null
12742do
12743  # Write a limited-size here document to $tmp/undefs.sed.
12744  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12745  # Speed up: don't consider the non `#undef'
12746  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
12747  # Work around the forget-to-reset-the-flag bug.
12748  echo 't clr' >>$CONFIG_STATUS
12749  echo ': clr' >>$CONFIG_STATUS
12750  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12751  echo 'CEOF
12752  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12753  rm -f $tmp/in
12754  mv $tmp/out $tmp/in
12755' >>$CONFIG_STATUS
12756  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12757  rm -f conftest.undefs
12758  mv conftest.tail conftest.undefs
12759done
12760rm -f conftest.undefs
12761
12762cat >>$CONFIG_STATUS <<\_ACEOF
12763  # Let's still pretend it is `configure' which instantiates (i.e., don't
12764  # use $as_me), people would be surprised to read:
12765  #    /* config.h.  Generated by config.status.  */
12766  if test x"$ac_file" = x-; then
12767    echo "/* Generated by configure.  */" >$tmp/config.h
12768  else
12769    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12770  fi
12771  cat $tmp/in >>$tmp/config.h
12772  rm -f $tmp/in
12773  if test x"$ac_file" != x-; then
12774    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12775      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12776echo "$as_me: $ac_file is unchanged" >&6;}
12777    else
12778      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12779$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12780         X"$ac_file" : 'X\(//\)[^/]' \| \
12781         X"$ac_file" : 'X\(//\)$' \| \
12782         X"$ac_file" : 'X\(/\)' \| \
12783         .     : '\(.\)' 2>/dev/null ||
12784echo X"$ac_file" |
12785    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12786  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12787  	  /^X\(\/\/\)$/{ s//\1/; q; }
12788  	  /^X\(\/\).*/{ s//\1/; q; }
12789  	  s/.*/./; q'`
12790      { if $as_mkdir_p; then
12791    mkdir -p "$ac_dir"
12792  else
12793    as_dir="$ac_dir"
12794    as_dirs=
12795    while test ! -d "$as_dir"; do
12796      as_dirs="$as_dir $as_dirs"
12797      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12798$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12799         X"$as_dir" : 'X\(//\)[^/]' \| \
12800         X"$as_dir" : 'X\(//\)$' \| \
12801         X"$as_dir" : 'X\(/\)' \| \
12802         .     : '\(.\)' 2>/dev/null ||
12803echo X"$as_dir" |
12804    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12805  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12806  	  /^X\(\/\/\)$/{ s//\1/; q; }
12807  	  /^X\(\/\).*/{ s//\1/; q; }
12808  	  s/.*/./; q'`
12809    done
12810    test ! -n "$as_dirs" || mkdir $as_dirs
12811  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12812echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12813   { (exit 1); exit 1; }; }; }
12814
12815      rm -f $ac_file
12816      mv $tmp/config.h $ac_file
12817    fi
12818  else
12819    cat $tmp/config.h
12820    rm -f $tmp/config.h
12821  fi
12822_am_stamp_count=`expr ${_am_stamp_count-0} + 1`
12823echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12824$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12825         X$ac_file : 'X\(//\)[^/]' \| \
12826         X$ac_file : 'X\(//\)$' \| \
12827         X$ac_file : 'X\(/\)' \| \
12828         .     : '\(.\)' 2>/dev/null ||
12829echo X$ac_file |
12830    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12831  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12832  	  /^X\(\/\/\)$/{ s//\1/; q; }
12833  	  /^X\(\/\).*/{ s//\1/; q; }
12834  	  s/.*/./; q'`/stamp-h$_am_stamp_count
12835done
12836_ACEOF
12837cat >>$CONFIG_STATUS <<\_ACEOF
12838
12839#
12840# CONFIG_COMMANDS section.
12841#
12842for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12843  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12844  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12845  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12846$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12847         X"$ac_dest" : 'X\(//\)[^/]' \| \
12848         X"$ac_dest" : 'X\(//\)$' \| \
12849         X"$ac_dest" : 'X\(/\)' \| \
12850         .     : '\(.\)' 2>/dev/null ||
12851echo X"$ac_dest" |
12852    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12853  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12854  	  /^X\(\/\/\)$/{ s//\1/; q; }
12855  	  /^X\(\/\).*/{ s//\1/; q; }
12856  	  s/.*/./; q'`
12857  ac_builddir=.
12858
12859if test "$ac_dir" != .; then
12860  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12861  # A "../" for each directory in $ac_dir_suffix.
12862  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12863else
12864  ac_dir_suffix= ac_top_builddir=
12865fi
12866
12867case $srcdir in
12868  .)  # No --srcdir option.  We are building in place.
12869    ac_srcdir=.
12870    if test -z "$ac_top_builddir"; then
12871       ac_top_srcdir=.
12872    else
12873       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12874    fi ;;
12875  [\\/]* | ?:[\\/]* )  # Absolute path.
12876    ac_srcdir=$srcdir$ac_dir_suffix;
12877    ac_top_srcdir=$srcdir ;;
12878  *) # Relative path.
12879    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12880    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12881esac
12882# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12883# absolute.
12884ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12885ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12886ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12887ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12888
12889
12890  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12891echo "$as_me: executing $ac_dest commands" >&6;}
12892  case $ac_dest in
12893    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12894  # Strip MF so we end up with the name of the file.
12895  mf=`echo "$mf" | sed -e 's/:.*$//'`
12896  # Check whether this is an Automake generated Makefile or not.
12897  # We used to match only the files named `Makefile.in', but
12898  # some people rename them; so instead we look at the file content.
12899  # Grep'ing the first line is not enough: some people post-process
12900  # each Makefile.in and add a new line on top of each file to say so.
12901  # So let's grep whole file.
12902  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12903    dirpart=`(dirname "$mf") 2>/dev/null ||
12904$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12905         X"$mf" : 'X\(//\)[^/]' \| \
12906         X"$mf" : 'X\(//\)$' \| \
12907         X"$mf" : 'X\(/\)' \| \
12908         .     : '\(.\)' 2>/dev/null ||
12909echo X"$mf" |
12910    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12911  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12912  	  /^X\(\/\/\)$/{ s//\1/; q; }
12913  	  /^X\(\/\).*/{ s//\1/; q; }
12914  	  s/.*/./; q'`
12915  else
12916    continue
12917  fi
12918  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
12919  # Extract the definition of DEP_FILES from the Makefile without
12920  # running `make'.
12921  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
12922  test -z "$DEPDIR" && continue
12923  # When using ansi2knr, U may be empty or an underscore; expand it
12924  U=`sed -n -e '/^U = / s///p' < "$mf"`
12925  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
12926  # We invoke sed twice because it is the simplest approach to
12927  # changing $(DEPDIR) to its actual value in the expansion.
12928  for file in `sed -n -e '
12929    /^DEP_FILES = .*\\\\$/ {
12930      s/^DEP_FILES = //
12931      :loop
12932	s/\\\\$//
12933	p
12934	n
12935	/\\\\$/ b loop
12936      p
12937    }
12938    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12939       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12940    # Make sure the directory exists.
12941    test -f "$dirpart/$file" && continue
12942    fdir=`(dirname "$file") 2>/dev/null ||
12943$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12944         X"$file" : 'X\(//\)[^/]' \| \
12945         X"$file" : 'X\(//\)$' \| \
12946         X"$file" : 'X\(/\)' \| \
12947         .     : '\(.\)' 2>/dev/null ||
12948echo X"$file" |
12949    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12950  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12951  	  /^X\(\/\/\)$/{ s//\1/; q; }
12952  	  /^X\(\/\).*/{ s//\1/; q; }
12953  	  s/.*/./; q'`
12954    { if $as_mkdir_p; then
12955    mkdir -p $dirpart/$fdir
12956  else
12957    as_dir=$dirpart/$fdir
12958    as_dirs=
12959    while test ! -d "$as_dir"; do
12960      as_dirs="$as_dir $as_dirs"
12961      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12962$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12963         X"$as_dir" : 'X\(//\)[^/]' \| \
12964         X"$as_dir" : 'X\(//\)$' \| \
12965         X"$as_dir" : 'X\(/\)' \| \
12966         .     : '\(.\)' 2>/dev/null ||
12967echo X"$as_dir" |
12968    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12969  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12970  	  /^X\(\/\/\)$/{ s//\1/; q; }
12971  	  /^X\(\/\).*/{ s//\1/; q; }
12972  	  s/.*/./; q'`
12973    done
12974    test ! -n "$as_dirs" || mkdir $as_dirs
12975  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12976echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12977   { (exit 1); exit 1; }; }; }
12978
12979    # echo "creating $dirpart/$file"
12980    echo '# dummy' > "$dirpart/$file"
12981  done
12982done
12983 ;;
12984  esac
12985done
12986_ACEOF
12987
12988cat >>$CONFIG_STATUS <<\_ACEOF
12989
12990{ (exit 0); exit 0; }
12991_ACEOF
12992chmod +x $CONFIG_STATUS
12993ac_clean_files=$ac_clean_files_save
12994
12995
12996# configure is writing to config.log, and then calls config.status.
12997# config.status does its own redirection, appending to config.log.
12998# Unfortunately, on DOS this fails, as config.log is still kept open
12999# by configure, so config.status won't be able to write to it; its
13000# output is simply discarded.  So we exec the FD to /dev/null,
13001# effectively closing config.log, so it can be properly (re)opened and
13002# appended to by config.status.  When coming back to configure, we
13003# need to make the FD available again.
13004if test "$no_create" != yes; then
13005  ac_cs_success=:
13006  ac_config_status_args=
13007  test "$silent" = yes &&
13008    ac_config_status_args="$ac_config_status_args --quiet"
13009  exec 5>/dev/null
13010  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13011  exec 5>>config.log
13012  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13013  # would make configure fail if this is the last instruction.
13014  $ac_cs_success || { (exit 1); exit 1; }
13015fi
13016
13017