import cyrus-sasl-2.1.23
[cyrus-sasl.git] / configure
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
14 if 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+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for 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
43 do
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
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo 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.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if 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
97 fi
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
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
152 done
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
187 case `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= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_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.
230 as_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.
235 as_nl='
236 '
237 IFS="   $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.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${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.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="lib/saslint.h"
274 # Factoring default headers for most tests.
275 ac_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
311 ac_subdirs_all="$ac_subdirs_all saslauthd"
312 ac_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 target target_cpu target_vendor target_os 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 am__leading_dot 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 RANLIB ac_ct_RANLIB LIBTOOL PURECOV PURIFY JAVAC JAVAH JAVADOC JAVA_TRUE JAVA_FALSE JAVA_INCLUDES JAVAROOT SAMPLE_TRUE SAMPLE_FALSE LIB_SOCKET EGREP SASL_DB_UTILS SASL_DB_MANS SASL_DB_BACKEND SASL_DB_BACKEND_STATIC SASL_DB_INC SASL_DB_LIB NO_SASL_DB_MANS_TRUE NO_SASL_DB_MANS_FALSE SASL_DL_LIB NM SASLAUTHD_TRUE SASLAUTHD_FALSE PWCHECKMETH PWCHECK_TRUE PWCHECK_FALSE IPCTYPE LIB_DOOR CMU_LIB_SUBDIR LIB_DES OTP_LIBS SRP_LIBS SASL_KRB_LIB LIB_CRYPT GSSAPI_LIBS GSSAPIBASE_LIBS PLAIN_LIBS NTLM_LIBS PASSDSS_LIBS LIB_MYSQL LIB_PGSQL LIB_SQLITE LIB_LDAP SASL_MECHS SASL_STATIC_SRCS SASL_STATIC_OBJS SASL_STATIC_LIBS plugindir configdir MACOSX_TRUE MACOSX_FALSE DMALLOC_LIBS SFIO_INC_FLAGS SFIO_LIB_FLAGS SMTPTEST_PROGRAM SASL_UTIL_LIBS_EXTRA SASL_UTIL_HEADERS_EXTRA LIBOBJS GETSUBOPT SNPRINTFOBJS LTSNPRINTFOBJS GETADDRINFOOBJS LTGETADDRINFOOBJS GETNAMEINFOOBJS LTGETNAMEINFOOBJS LTLIBOBJS DIRS subdirs'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778   # Omit some internal or obsolete options to make the list less imposing.
779   # This message is too long to be a string in the A/UX 3.1 sh.
780   cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791   -h, --help              display this help and exit
792       --help=short        display options specific to this package
793       --help=recursive    display the short help of all the included packages
794   -V, --version           display version information and exit
795   -q, --quiet, --silent   do not print \`checking...' messages
796       --cache-file=FILE   cache test results in FILE [disabled]
797   -C, --config-cache      alias for \`--cache-file=config.cache'
798   -n, --no-create         do not create output files
799       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803   cat <<_ACEOF
804 Installation directories:
805   --prefix=PREFIX         install architecture-independent files in PREFIX
806                           [$ac_default_prefix]
807   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808                           [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818   --bindir=DIR           user executables [EPREFIX/bin]
819   --sbindir=DIR          system admin executables [EPREFIX/sbin]
820   --libexecdir=DIR       program executables [EPREFIX/libexec]
821   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825   --libdir=DIR           object code libraries [EPREFIX/lib]
826   --includedir=DIR       C header files [PREFIX/include]
827   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828   --infodir=DIR          info documentation [PREFIX/info]
829   --mandir=DIR           man documentation [PREFIX/man]
830 _ACEOF
831
832   cat <<\_ACEOF
833
834 Program names:
835   --program-prefix=PREFIX            prepend PREFIX to installed program names
836   --program-suffix=SUFFIX            append SUFFIX to installed program names
837   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
838
839 System types:
840   --build=BUILD     configure for building on BUILD [guessed]
841   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
842   --target=TARGET   configure for building compilers for TARGET [HOST]
843 _ACEOF
844 fi
845
846 if test -n "$ac_init_help"; then
847
848   cat <<\_ACEOF
849
850 Optional Features:
851   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
852   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
853   --enable-cmulocal       enable local mods for CMU [[no]]
854   --enable-sample         compile sample code [[yes]]
855   --disable-dependency-tracking Speeds up one-time builds
856   --enable-dependency-tracking  Do not reject slow dependency extractors
857   --enable-static=PKGS  build static libraries default=no
858   --enable-shared=PKGS  build shared libraries default=yes
859   --enable-fast-install=PKGS  optimize for fast installation default=yes
860   --disable-libtool-lock  avoid locking (might break parallel builds)
861   --enable-staticdlopen   try dynamic plugins when we are a static libsasl [no]
862   --enable-java           compile Java support [no]
863   --enable-keep-db-open   keep handle to Berkeley DB open for improved performance [no]
864   --enable-alwaystrue     enable the alwaystrue password verifier (discouraged)
865   --enable-checkapop      enable use of sasl_checkapop [yes]
866   --enable-cram           enable CRAM-MD5 authentication [yes]
867   --enable-digest         enable DIGEST-MD5 authentication [yes]
868   --enable-otp            enable OTP authentication [yes]
869   --enable-srp            enable SRP authentication [no]
870   --enable-srp-setpass    enable setting SRP secrets with saslpasswd [no]
871   --enable-krb4           enable KERBEROS_V4 authentication [no]
872   --enable-gssapi=<DIR>   enable GSSAPI authentication [yes]
873   --enable-gss_mutexes     use mutexes around calls to the GSS library
874   --enable-plain          enable PLAIN authentication yes
875   --enable-anon           enable ANONYMOUS authentication [yes]
876   --enable-login          enable unsupported LOGIN authentication [no]
877   --enable-ntlm           enable unsupported NTLM authentication [no]
878   --enable-passdss        enable PASSDSS authentication (experimental) [no]
879   --enable-sql            enable SQL auxprop [no]
880   --enable-ldapdb         enable LDAPDB plugin no
881   --disable-macos-framework       disable building and installing replacement SASL2 Framework for MacOS X-provided SASL Framework [no]
882
883 Optional Packages:
884   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
885   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
886
887   --with-gnu-ld           assume the C compiler uses GNU ld default=no
888   --with-purecov          link with purecov
889   --with-purify           link with purify
890   --with-javabase=PATH    set path to find jni.h in /usr/java/include
891   --with-dbpath=PATH      set the DB path to use /etc/sasldb2
892   --with-dblib=DBLIB      set the DB library to use berkeley
893   --with-bdb-libdir=DIR   Berkeley DB lib files are in DIR
894   --with-bdb-incdir=DIR   Berkeley DB include files are in DIR
895   --with-gdbm=PATH        use gdbm from PATH
896   --with-devrandom=PATH   set the path to /dev/random [/dev/random]
897   --with-pam=DIR          use PAM (rooted in DIR) [yes]
898   --with-saslauthd=DIR    enable use of the saslauth daemon using state dir DIR
899   --with-authdaemond=PATH enable use of authdaemon with default socket=PATH [yes]
900   --with-pwcheck=DIR     enable deprecated pwcheck daemon using statedir DIR
901   --with-ipctype={unix,doors}    use ipctype [unix]
902   --with-lib-subdir=DIR   Find libraries in DIR instead of lib
903   --with-openssl=PATH     use OpenSSL from PATH
904   --with-des=DIR          with DES (look in DIR) yes
905   --with-opie=PATH        use OPIE (One Time Passwords in Everything) from PATH
906   --with-gss_impl={heimdal|mit|cybersafe|seam|auto}
907                           choose specific GSSAPI implementation [[auto]]
908   --with-ldap=DIR         use LDAP (in DIR) for saslauthd no
909   --with-mysql=PATH       use MySQL from PATH
910   --with-pgsql=PATH       use PostgreSQL from PATH
911   --with-sqlite=PATH       use SQLite from PATH
912   --with-plugindir=DIR    set the directory where plugins will
913                           be found [/usr/lib/sasl2]
914    --with-configdir=DIR    set the directory where config files will
915                           be found /usr/lib/sasl2
916   --with-rc4              use internal rc4 routines [yes]
917   --with-dmalloc=DIR      with DMALLOC support (for test applications) [no]
918   --with-sfio=DIR         with SFIO support (for smtptest/libsfsasl) [no]
919
920 Some influential environment variables:
921   CC          C compiler command
922   CFLAGS      C compiler flags
923   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
924               nonstandard directory <lib dir>
925   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
926               headers in a nonstandard directory <include dir>
927   CPP         C preprocessor
928
929 Use these variables to override the choices made by `configure' or to help
930 it to find libraries and programs with nonstandard names/locations.
931
932 _ACEOF
933 fi
934
935 if test "$ac_init_help" = "recursive"; then
936   # If there are subdirs, report their specific --help.
937   ac_popdir=`pwd`
938   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
939     test -d $ac_dir || continue
940     ac_builddir=.
941
942 if test "$ac_dir" != .; then
943   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
944   # A "../" for each directory in $ac_dir_suffix.
945   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
946 else
947   ac_dir_suffix= ac_top_builddir=
948 fi
949
950 case $srcdir in
951   .)  # No --srcdir option.  We are building in place.
952     ac_srcdir=.
953     if test -z "$ac_top_builddir"; then
954        ac_top_srcdir=.
955     else
956        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
957     fi ;;
958   [\\/]* | ?:[\\/]* )  # Absolute path.
959     ac_srcdir=$srcdir$ac_dir_suffix;
960     ac_top_srcdir=$srcdir ;;
961   *) # Relative path.
962     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
963     ac_top_srcdir=$ac_top_builddir$srcdir ;;
964 esac
965 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
966 # absolute.
967 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
968 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
969 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
970 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
971
972     cd $ac_dir
973     # Check for guested configure; otherwise get Cygnus style configure.
974     if test -f $ac_srcdir/configure.gnu; then
975       echo
976       $SHELL $ac_srcdir/configure.gnu  --help=recursive
977     elif test -f $ac_srcdir/configure; then
978       echo
979       $SHELL $ac_srcdir/configure  --help=recursive
980     elif test -f $ac_srcdir/configure.ac ||
981            test -f $ac_srcdir/configure.in; then
982       echo
983       $ac_configure --help
984     else
985       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
986     fi
987     cd $ac_popdir
988   done
989 fi
990
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
993   cat <<\_ACEOF
994
995 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
996 Free Software Foundation, Inc.
997 This configure script is free software; the Free Software Foundation
998 gives unlimited permission to copy, distribute and modify it.
999 _ACEOF
1000   exit 0
1001 fi
1002 exec 5>config.log
1003 cat >&5 <<_ACEOF
1004 This file contains any messages produced by compilers while
1005 running configure, to aid debugging if configure makes a mistake.
1006
1007 It was created by $as_me, which was
1008 generated by GNU Autoconf 2.57.  Invocation command line was
1009
1010   $ $0 $@
1011
1012 _ACEOF
1013 {
1014 cat <<_ASUNAME
1015 ## --------- ##
1016 ## Platform. ##
1017 ## --------- ##
1018
1019 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1020 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1021 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1022 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1023 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1024
1025 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1026 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1027
1028 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1029 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1030 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1031 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1032 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1033 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1034 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1035
1036 _ASUNAME
1037
1038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1039 for as_dir in $PATH
1040 do
1041   IFS=$as_save_IFS
1042   test -z "$as_dir" && as_dir=.
1043   echo "PATH: $as_dir"
1044 done
1045
1046 } >&5
1047
1048 cat >&5 <<_ACEOF
1049
1050
1051 ## ----------- ##
1052 ## Core tests. ##
1053 ## ----------- ##
1054
1055 _ACEOF
1056
1057
1058 # Keep a trace of the command line.
1059 # Strip out --no-create and --no-recursion so they do not pile up.
1060 # Strip out --silent because we don't want to record it for future runs.
1061 # Also quote any args containing shell meta-characters.
1062 # Make two passes to allow for proper duplicate-argument suppression.
1063 ac_configure_args=
1064 ac_configure_args0=
1065 ac_configure_args1=
1066 ac_sep=
1067 ac_must_keep_next=false
1068 for ac_pass in 1 2
1069 do
1070   for ac_arg
1071   do
1072     case $ac_arg in
1073     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1074     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075     | -silent | --silent | --silen | --sile | --sil)
1076       continue ;;
1077     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1078       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1079     esac
1080     case $ac_pass in
1081     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1082     2)
1083       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1084       if test $ac_must_keep_next = true; then
1085         ac_must_keep_next=false # Got value, back to normal.
1086       else
1087         case $ac_arg in
1088           *=* | --config-cache | -C | -disable-* | --disable-* \
1089           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1090           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1091           | -with-* | --with-* | -without-* | --without-* | --x)
1092             case "$ac_configure_args0 " in
1093               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1094             esac
1095             ;;
1096           -* ) ac_must_keep_next=true ;;
1097         esac
1098       fi
1099       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1100       # Get rid of the leading space.
1101       ac_sep=" "
1102       ;;
1103     esac
1104   done
1105 done
1106 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1107 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1108
1109 # When interrupted or exit'd, cleanup temporary files, and complete
1110 # config.log.  We remove comments because anyway the quotes in there
1111 # would cause problems or look ugly.
1112 # WARNING: Be sure not to use single quotes in there, as some shells,
1113 # such as our DU 5.0 friend, will then `close' the trap.
1114 trap 'exit_status=$?
1115   # Save into config.log some information that might help in debugging.
1116   {
1117     echo
1118
1119     cat <<\_ASBOX
1120 ## ---------------- ##
1121 ## Cache variables. ##
1122 ## ---------------- ##
1123 _ASBOX
1124     echo
1125     # The following way of writing the cache mishandles newlines in values,
1126 {
1127   (set) 2>&1 |
1128     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1129     *ac_space=\ *)
1130       sed -n \
1131         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1132           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1133       ;;
1134     *)
1135       sed -n \
1136         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1137       ;;
1138     esac;
1139 }
1140     echo
1141
1142     cat <<\_ASBOX
1143 ## ----------------- ##
1144 ## Output variables. ##
1145 ## ----------------- ##
1146 _ASBOX
1147     echo
1148     for ac_var in $ac_subst_vars
1149     do
1150       eval ac_val=$`echo $ac_var`
1151       echo "$ac_var='"'"'$ac_val'"'"'"
1152     done | sort
1153     echo
1154
1155     if test -n "$ac_subst_files"; then
1156       cat <<\_ASBOX
1157 ## ------------- ##
1158 ## Output files. ##
1159 ## ------------- ##
1160 _ASBOX
1161       echo
1162       for ac_var in $ac_subst_files
1163       do
1164         eval ac_val=$`echo $ac_var`
1165         echo "$ac_var='"'"'$ac_val'"'"'"
1166       done | sort
1167       echo
1168     fi
1169
1170     if test -s confdefs.h; then
1171       cat <<\_ASBOX
1172 ## ----------- ##
1173 ## confdefs.h. ##
1174 ## ----------- ##
1175 _ASBOX
1176       echo
1177       sed "/^$/d" confdefs.h | sort
1178       echo
1179     fi
1180     test "$ac_signal" != 0 &&
1181       echo "$as_me: caught signal $ac_signal"
1182     echo "$as_me: exit $exit_status"
1183   } >&5
1184   rm -f core core.* *.core &&
1185   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1186     exit $exit_status
1187      ' 0
1188 for ac_signal in 1 2 13 15; do
1189   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1190 done
1191 ac_signal=0
1192
1193 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1194 rm -rf conftest* confdefs.h
1195 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1196 echo >confdefs.h
1197
1198 # Predefined preprocessor variables.
1199
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_NAME "$PACKAGE_NAME"
1202 _ACEOF
1203
1204
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1207 _ACEOF
1208
1209
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1212 _ACEOF
1213
1214
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_STRING "$PACKAGE_STRING"
1217 _ACEOF
1218
1219
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1222 _ACEOF
1223
1224
1225 # Let the site file select an alternate cache file if it wants to.
1226 # Prefer explicitly selected file to automatically selected ones.
1227 if test -z "$CONFIG_SITE"; then
1228   if test "x$prefix" != xNONE; then
1229     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1230   else
1231     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1232   fi
1233 fi
1234 for ac_site_file in $CONFIG_SITE; do
1235   if test -r "$ac_site_file"; then
1236     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1237 echo "$as_me: loading site script $ac_site_file" >&6;}
1238     sed 's/^/| /' "$ac_site_file" >&5
1239     . "$ac_site_file"
1240   fi
1241 done
1242
1243 if test -r "$cache_file"; then
1244   # Some versions of bash will fail to source /dev/null (special
1245   # files actually), so we avoid doing that.
1246   if test -f "$cache_file"; then
1247     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1248 echo "$as_me: loading cache $cache_file" >&6;}
1249     case $cache_file in
1250       [\\/]* | ?:[\\/]* ) . $cache_file;;
1251       *)                      . ./$cache_file;;
1252     esac
1253   fi
1254 else
1255   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1256 echo "$as_me: creating cache $cache_file" >&6;}
1257   >$cache_file
1258 fi
1259
1260 # Check that the precious variables saved in the cache have kept the same
1261 # value.
1262 ac_cache_corrupted=false
1263 for ac_var in `(set) 2>&1 |
1264                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1265   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1266   eval ac_new_set=\$ac_env_${ac_var}_set
1267   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1268   eval ac_new_val="\$ac_env_${ac_var}_value"
1269   case $ac_old_set,$ac_new_set in
1270     set,)
1271       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1273       ac_cache_corrupted=: ;;
1274     ,set)
1275       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1276 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1277       ac_cache_corrupted=: ;;
1278     ,);;
1279     *)
1280       if test "x$ac_old_val" != "x$ac_new_val"; then
1281         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1282 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1283         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1284 echo "$as_me:   former value:  $ac_old_val" >&2;}
1285         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1286 echo "$as_me:   current value: $ac_new_val" >&2;}
1287         ac_cache_corrupted=:
1288       fi;;
1289   esac
1290   # Pass precious variables to config.status.
1291   if test "$ac_new_set" = set; then
1292     case $ac_new_val in
1293     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1294       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1295     *) ac_arg=$ac_var=$ac_new_val ;;
1296     esac
1297     case " $ac_configure_args " in
1298       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1299       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1300     esac
1301   fi
1302 done
1303 if $ac_cache_corrupted; then
1304   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1305 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1306   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1307 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1308    { (exit 1); exit 1; }; }
1309 fi
1310
1311 ac_ext=c
1312 ac_cpp='$CPP $CPPFLAGS'
1313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337 if test $cache_file = "/dev/null"; then
1338 cache_file="./config.cache"
1339 if test -r "$cache_file"; then
1340   # Some versions of bash will fail to source /dev/null (special
1341   # files actually), so we avoid doing that.
1342   if test -f "$cache_file"; then
1343     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1344 echo "$as_me: loading cache $cache_file" >&6;}
1345     case $cache_file in
1346       [\\/]* | ?:[\\/]* ) . $cache_file;;
1347       *)                      . ./$cache_file;;
1348     esac
1349   fi
1350 else
1351   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1352 echo "$as_me: creating cache $cache_file" >&6;}
1353   >$cache_file
1354 fi
1355
1356 fi
1357
1358 ac_aux_dir=
1359 for ac_dir in config $srcdir/config; do
1360   if test -f $ac_dir/install-sh; then
1361     ac_aux_dir=$ac_dir
1362     ac_install_sh="$ac_aux_dir/install-sh -c"
1363     break
1364   elif test -f $ac_dir/install.sh; then
1365     ac_aux_dir=$ac_dir
1366     ac_install_sh="$ac_aux_dir/install.sh -c"
1367     break
1368   elif test -f $ac_dir/shtool; then
1369     ac_aux_dir=$ac_dir
1370     ac_install_sh="$ac_aux_dir/shtool install -c"
1371     break
1372   fi
1373 done
1374 if test -z "$ac_aux_dir"; then
1375   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1376 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1377    { (exit 1); exit 1; }; }
1378 fi
1379 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1380 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1381 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1382
1383 # Make sure we can run config.sub.
1384 $ac_config_sub sun4 >/dev/null 2>&1 ||
1385   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1386 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1387    { (exit 1); exit 1; }; }
1388
1389 echo "$as_me:$LINENO: checking build system type" >&5
1390 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1391 if test "${ac_cv_build+set}" = set; then
1392   echo $ECHO_N "(cached) $ECHO_C" >&6
1393 else
1394   ac_cv_build_alias=$build_alias
1395 test -z "$ac_cv_build_alias" &&
1396   ac_cv_build_alias=`$ac_config_guess`
1397 test -z "$ac_cv_build_alias" &&
1398   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1399 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1400    { (exit 1); exit 1; }; }
1401 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1402   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1403 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1404    { (exit 1); exit 1; }; }
1405
1406 fi
1407 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1408 echo "${ECHO_T}$ac_cv_build" >&6
1409 build=$ac_cv_build
1410 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1411 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1412 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1413
1414
1415 echo "$as_me:$LINENO: checking host system type" >&5
1416 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1417 if test "${ac_cv_host+set}" = set; then
1418   echo $ECHO_N "(cached) $ECHO_C" >&6
1419 else
1420   ac_cv_host_alias=$host_alias
1421 test -z "$ac_cv_host_alias" &&
1422   ac_cv_host_alias=$ac_cv_build_alias
1423 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1424   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1425 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1426    { (exit 1); exit 1; }; }
1427
1428 fi
1429 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1430 echo "${ECHO_T}$ac_cv_host" >&6
1431 host=$ac_cv_host
1432 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1433 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1434 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1435
1436
1437 echo "$as_me:$LINENO: checking target system type" >&5
1438 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1439 if test "${ac_cv_target+set}" = set; then
1440   echo $ECHO_N "(cached) $ECHO_C" >&6
1441 else
1442   ac_cv_target_alias=$target_alias
1443 test "x$ac_cv_target_alias" = "x" &&
1444   ac_cv_target_alias=$ac_cv_host_alias
1445 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1446   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1447 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1448    { (exit 1); exit 1; }; }
1449
1450 fi
1451 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1452 echo "${ECHO_T}$ac_cv_target" >&6
1453 target=$ac_cv_target
1454 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1455 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1456 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1457
1458
1459 # The aliases save the names the user supplied, while $host etc.
1460 # will get canonicalized.
1461 test -n "$target_alias" &&
1462   test "$program_prefix$program_suffix$program_transform_name" = \
1463     NONENONEs,x,x, &&
1464   program_prefix=${target_alias}-
1465
1466 am__api_version="1.7"
1467 # Find a good install program.  We prefer a C program (faster),
1468 # so one script is as good as another.  But avoid the broken or
1469 # incompatible versions:
1470 # SysV /etc/install, /usr/sbin/install
1471 # SunOS /usr/etc/install
1472 # IRIX /sbin/install
1473 # AIX /bin/install
1474 # AmigaOS /C/install, which installs bootblocks on floppy discs
1475 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1476 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1477 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1478 # ./install, which can be erroneously created by make from ./install.sh.
1479 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1480 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1481 if test -z "$INSTALL"; then
1482 if test "${ac_cv_path_install+set}" = set; then
1483   echo $ECHO_N "(cached) $ECHO_C" >&6
1484 else
1485   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486 for as_dir in $PATH
1487 do
1488   IFS=$as_save_IFS
1489   test -z "$as_dir" && as_dir=.
1490   # Account for people who put trailing slashes in PATH elements.
1491 case $as_dir/ in
1492   ./ | .// | /cC/* | \
1493   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1494   /usr/ucb/* ) ;;
1495   *)
1496     # OSF1 and SCO ODT 3.0 have their own names for install.
1497     # Don't use installbsd from OSF since it installs stuff as root
1498     # by default.
1499     for ac_prog in ginstall scoinst install; do
1500       for ac_exec_ext in '' $ac_executable_extensions; do
1501         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1502           if test $ac_prog = install &&
1503             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1504             # AIX install.  It has an incompatible calling convention.
1505             :
1506           elif test $ac_prog = install &&
1507             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1508             # program-specific install script used by HP pwplus--don't use.
1509             :
1510           else
1511             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1512             break 3
1513           fi
1514         fi
1515       done
1516     done
1517     ;;
1518 esac
1519 done
1520
1521
1522 fi
1523   if test "${ac_cv_path_install+set}" = set; then
1524     INSTALL=$ac_cv_path_install
1525   else
1526     # As a last resort, use the slow shell script.  We don't cache a
1527     # path for INSTALL within a source directory, because that will
1528     # break other packages using the cache if that directory is
1529     # removed, or if the path is relative.
1530     INSTALL=$ac_install_sh
1531   fi
1532 fi
1533 echo "$as_me:$LINENO: result: $INSTALL" >&5
1534 echo "${ECHO_T}$INSTALL" >&6
1535
1536 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1537 # It thinks the first close brace ends the variable substitution.
1538 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1539
1540 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1541
1542 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1543
1544 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1545 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1546 # Just in case
1547 sleep 1
1548 echo timestamp > conftest.file
1549 # Do `set' in a subshell so we don't clobber the current shell's
1550 # arguments.  Must try -L first in case configure is actually a
1551 # symlink; some systems play weird games with the mod time of symlinks
1552 # (eg FreeBSD returns the mod time of the symlink's containing
1553 # directory).
1554 if (
1555    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1556    if test "$*" = "X"; then
1557       # -L didn't work.
1558       set X `ls -t $srcdir/configure conftest.file`
1559    fi
1560    rm -f conftest.file
1561    if test "$*" != "X $srcdir/configure conftest.file" \
1562       && test "$*" != "X conftest.file $srcdir/configure"; then
1563
1564       # If neither matched, then we have a broken ls.  This can happen
1565       # if, for instance, CONFIG_SHELL is bash and it inherits a
1566       # broken ls alias from the environment.  This has actually
1567       # happened.  Such a system could not be considered "sane".
1568       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1569 alias in your environment" >&5
1570 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1571 alias in your environment" >&2;}
1572    { (exit 1); exit 1; }; }
1573    fi
1574
1575    test "$2" = conftest.file
1576    )
1577 then
1578    # Ok.
1579    :
1580 else
1581    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1582 Check your system clock" >&5
1583 echo "$as_me: error: newly created file is older than distributed files!
1584 Check your system clock" >&2;}
1585    { (exit 1); exit 1; }; }
1586 fi
1587 echo "$as_me:$LINENO: result: yes" >&5
1588 echo "${ECHO_T}yes" >&6
1589 test "$program_prefix" != NONE &&
1590   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1591 # Use a double $ so make ignores it.
1592 test "$program_suffix" != NONE &&
1593   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1594 # Double any \ or $.  echo might interpret backslashes.
1595 # By default was `s,x,x', remove it if useless.
1596 cat <<\_ACEOF >conftest.sed
1597 s/[\\$]/&&/g;s/;s,x,x,$//
1598 _ACEOF
1599 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1600 rm conftest.sed
1601
1602
1603 # expand $ac_aux_dir to an absolute path
1604 am_aux_dir=`cd $ac_aux_dir && pwd`
1605
1606 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1607 # Use eval to expand $SHELL
1608 if eval "$MISSING --run true"; then
1609   am_missing_run="$MISSING --run "
1610 else
1611   am_missing_run=
1612   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1613 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1614 fi
1615
1616 for ac_prog in gawk mawk nawk awk
1617 do
1618   # Extract the first word of "$ac_prog", so it can be a program name with args.
1619 set dummy $ac_prog; ac_word=$2
1620 echo "$as_me:$LINENO: checking for $ac_word" >&5
1621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1622 if test "${ac_cv_prog_AWK+set}" = set; then
1623   echo $ECHO_N "(cached) $ECHO_C" >&6
1624 else
1625   if test -n "$AWK"; then
1626   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1627 else
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629 for as_dir in $PATH
1630 do
1631   IFS=$as_save_IFS
1632   test -z "$as_dir" && as_dir=.
1633   for ac_exec_ext in '' $ac_executable_extensions; do
1634   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1635     ac_cv_prog_AWK="$ac_prog"
1636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1637     break 2
1638   fi
1639 done
1640 done
1641
1642 fi
1643 fi
1644 AWK=$ac_cv_prog_AWK
1645 if test -n "$AWK"; then
1646   echo "$as_me:$LINENO: result: $AWK" >&5
1647 echo "${ECHO_T}$AWK" >&6
1648 else
1649   echo "$as_me:$LINENO: result: no" >&5
1650 echo "${ECHO_T}no" >&6
1651 fi
1652
1653   test -n "$AWK" && break
1654 done
1655
1656 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1657 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1658 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1659 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1660   echo $ECHO_N "(cached) $ECHO_C" >&6
1661 else
1662   cat >conftest.make <<\_ACEOF
1663 all:
1664         @echo 'ac_maketemp="$(MAKE)"'
1665 _ACEOF
1666 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1667 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1668 if test -n "$ac_maketemp"; then
1669   eval ac_cv_prog_make_${ac_make}_set=yes
1670 else
1671   eval ac_cv_prog_make_${ac_make}_set=no
1672 fi
1673 rm -f conftest.make
1674 fi
1675 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1676   echo "$as_me:$LINENO: result: yes" >&5
1677 echo "${ECHO_T}yes" >&6
1678   SET_MAKE=
1679 else
1680   echo "$as_me:$LINENO: result: no" >&5
1681 echo "${ECHO_T}no" >&6
1682   SET_MAKE="MAKE=${MAKE-make}"
1683 fi
1684
1685 rm -rf .tst 2>/dev/null
1686 mkdir .tst 2>/dev/null
1687 if test -d .tst; then
1688   am__leading_dot=.
1689 else
1690   am__leading_dot=_
1691 fi
1692 rmdir .tst 2>/dev/null
1693
1694  # test to see if srcdir already configured
1695 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1696    test -f $srcdir/config.status; then
1697   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1698 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1699    { (exit 1); exit 1; }; }
1700 fi
1701
1702 # test whether we have cygpath
1703 if test -z "$CYGPATH_W"; then
1704   if (cygpath --version) >/dev/null 2>/dev/null; then
1705     CYGPATH_W='cygpath -w'
1706   else
1707     CYGPATH_W=echo
1708   fi
1709 fi
1710
1711
1712 # Define the identity of the package.
1713  PACKAGE=cyrus-sasl
1714  VERSION=2.1.23
1715
1716
1717 cat >>confdefs.h <<_ACEOF
1718 #define PACKAGE "$PACKAGE"
1719 _ACEOF
1720
1721
1722 cat >>confdefs.h <<_ACEOF
1723 #define VERSION "$VERSION"
1724 _ACEOF
1725
1726 # Some tools Automake needs.
1727
1728 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1729
1730
1731 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1732
1733
1734 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1735
1736
1737 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1738
1739
1740 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1741
1742
1743 AMTAR=${AMTAR-"${am_missing_run}tar"}
1744
1745 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1746
1747 # Installed binaries are usually stripped using `strip' when the user
1748 # run `make install-strip'.  However `strip' might not be the right
1749 # tool to use in cross-compilation environments, therefore Automake
1750 # will honor the `STRIP' environment variable to overrule this program.
1751 if test "$cross_compiling" != no; then
1752   if test -n "$ac_tool_prefix"; then
1753   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1754 set dummy ${ac_tool_prefix}strip; ac_word=$2
1755 echo "$as_me:$LINENO: checking for $ac_word" >&5
1756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757 if test "${ac_cv_prog_STRIP+set}" = set; then
1758   echo $ECHO_N "(cached) $ECHO_C" >&6
1759 else
1760   if test -n "$STRIP"; then
1761   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1762 else
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764 for as_dir in $PATH
1765 do
1766   IFS=$as_save_IFS
1767   test -z "$as_dir" && as_dir=.
1768   for ac_exec_ext in '' $ac_executable_extensions; do
1769   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772     break 2
1773   fi
1774 done
1775 done
1776
1777 fi
1778 fi
1779 STRIP=$ac_cv_prog_STRIP
1780 if test -n "$STRIP"; then
1781   echo "$as_me:$LINENO: result: $STRIP" >&5
1782 echo "${ECHO_T}$STRIP" >&6
1783 else
1784   echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1786 fi
1787
1788 fi
1789 if test -z "$ac_cv_prog_STRIP"; then
1790   ac_ct_STRIP=$STRIP
1791   # Extract the first word of "strip", so it can be a program name with args.
1792 set dummy strip; ac_word=$2
1793 echo "$as_me:$LINENO: checking for $ac_word" >&5
1794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1795 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1796   echo $ECHO_N "(cached) $ECHO_C" >&6
1797 else
1798   if test -n "$ac_ct_STRIP"; then
1799   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1800 else
1801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1802 for as_dir in $PATH
1803 do
1804   IFS=$as_save_IFS
1805   test -z "$as_dir" && as_dir=.
1806   for ac_exec_ext in '' $ac_executable_extensions; do
1807   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1808     ac_cv_prog_ac_ct_STRIP="strip"
1809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1810     break 2
1811   fi
1812 done
1813 done
1814
1815   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1816 fi
1817 fi
1818 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1819 if test -n "$ac_ct_STRIP"; then
1820   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1821 echo "${ECHO_T}$ac_ct_STRIP" >&6
1822 else
1823   echo "$as_me:$LINENO: result: no" >&5
1824 echo "${ECHO_T}no" >&6
1825 fi
1826
1827   STRIP=$ac_ct_STRIP
1828 else
1829   STRIP="$ac_cv_prog_STRIP"
1830 fi
1831
1832 fi
1833 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1834
1835 # We need awk for the "check" target.  The system "awk" is bad on
1836 # some platforms.
1837
1838
1839
1840
1841
1842         ACLOCAL="$ACLOCAL -I \$(top_srcdir)/cmulocal"
1843
1844
1845 # and include our config dir scripts
1846 ACLOCAL="$ACLOCAL -I \$(top_srcdir)/config"
1847
1848 DIRS=""
1849
1850 # Check whether --enable-cmulocal or --disable-cmulocal was given.
1851 if test "${enable_cmulocal+set}" = set; then
1852   enableval="$enable_cmulocal"
1853
1854 else
1855   enable_cmulocal=no
1856 fi;
1857
1858 # Check whether --enable-sample or --disable-sample was given.
1859 if test "${enable_sample+set}" = set; then
1860   enableval="$enable_sample"
1861   enable_sample=yes
1862 fi;
1863
1864 ac_ext=c
1865 ac_cpp='$CPP $CPPFLAGS'
1866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1869 if test -n "$ac_tool_prefix"; then
1870   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1871 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1872 echo "$as_me:$LINENO: checking for $ac_word" >&5
1873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1874 if test "${ac_cv_prog_CC+set}" = set; then
1875   echo $ECHO_N "(cached) $ECHO_C" >&6
1876 else
1877   if test -n "$CC"; then
1878   ac_cv_prog_CC="$CC" # Let the user override the test.
1879 else
1880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1881 for as_dir in $PATH
1882 do
1883   IFS=$as_save_IFS
1884   test -z "$as_dir" && as_dir=.
1885   for ac_exec_ext in '' $ac_executable_extensions; do
1886   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1887     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1889     break 2
1890   fi
1891 done
1892 done
1893
1894 fi
1895 fi
1896 CC=$ac_cv_prog_CC
1897 if test -n "$CC"; then
1898   echo "$as_me:$LINENO: result: $CC" >&5
1899 echo "${ECHO_T}$CC" >&6
1900 else
1901   echo "$as_me:$LINENO: result: no" >&5
1902 echo "${ECHO_T}no" >&6
1903 fi
1904
1905 fi
1906 if test -z "$ac_cv_prog_CC"; then
1907   ac_ct_CC=$CC
1908   # Extract the first word of "gcc", so it can be a program name with args.
1909 set dummy gcc; ac_word=$2
1910 echo "$as_me:$LINENO: checking for $ac_word" >&5
1911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1912 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1913   echo $ECHO_N "(cached) $ECHO_C" >&6
1914 else
1915   if test -n "$ac_ct_CC"; then
1916   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1917 else
1918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919 for as_dir in $PATH
1920 do
1921   IFS=$as_save_IFS
1922   test -z "$as_dir" && as_dir=.
1923   for ac_exec_ext in '' $ac_executable_extensions; do
1924   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1925     ac_cv_prog_ac_ct_CC="gcc"
1926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1927     break 2
1928   fi
1929 done
1930 done
1931
1932 fi
1933 fi
1934 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1935 if test -n "$ac_ct_CC"; then
1936   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1937 echo "${ECHO_T}$ac_ct_CC" >&6
1938 else
1939   echo "$as_me:$LINENO: result: no" >&5
1940 echo "${ECHO_T}no" >&6
1941 fi
1942
1943   CC=$ac_ct_CC
1944 else
1945   CC="$ac_cv_prog_CC"
1946 fi
1947
1948 if test -z "$CC"; then
1949   if test -n "$ac_tool_prefix"; then
1950   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1951 set dummy ${ac_tool_prefix}cc; ac_word=$2
1952 echo "$as_me:$LINENO: checking for $ac_word" >&5
1953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1954 if test "${ac_cv_prog_CC+set}" = set; then
1955   echo $ECHO_N "(cached) $ECHO_C" >&6
1956 else
1957   if test -n "$CC"; then
1958   ac_cv_prog_CC="$CC" # Let the user override the test.
1959 else
1960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961 for as_dir in $PATH
1962 do
1963   IFS=$as_save_IFS
1964   test -z "$as_dir" && as_dir=.
1965   for ac_exec_ext in '' $ac_executable_extensions; do
1966   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1967     ac_cv_prog_CC="${ac_tool_prefix}cc"
1968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1969     break 2
1970   fi
1971 done
1972 done
1973
1974 fi
1975 fi
1976 CC=$ac_cv_prog_CC
1977 if test -n "$CC"; then
1978   echo "$as_me:$LINENO: result: $CC" >&5
1979 echo "${ECHO_T}$CC" >&6
1980 else
1981   echo "$as_me:$LINENO: result: no" >&5
1982 echo "${ECHO_T}no" >&6
1983 fi
1984
1985 fi
1986 if test -z "$ac_cv_prog_CC"; then
1987   ac_ct_CC=$CC
1988   # Extract the first word of "cc", so it can be a program name with args.
1989 set dummy cc; ac_word=$2
1990 echo "$as_me:$LINENO: checking for $ac_word" >&5
1991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1992 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1993   echo $ECHO_N "(cached) $ECHO_C" >&6
1994 else
1995   if test -n "$ac_ct_CC"; then
1996   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1997 else
1998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999 for as_dir in $PATH
2000 do
2001   IFS=$as_save_IFS
2002   test -z "$as_dir" && as_dir=.
2003   for ac_exec_ext in '' $ac_executable_extensions; do
2004   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2005     ac_cv_prog_ac_ct_CC="cc"
2006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2007     break 2
2008   fi
2009 done
2010 done
2011
2012 fi
2013 fi
2014 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2015 if test -n "$ac_ct_CC"; then
2016   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2017 echo "${ECHO_T}$ac_ct_CC" >&6
2018 else
2019   echo "$as_me:$LINENO: result: no" >&5
2020 echo "${ECHO_T}no" >&6
2021 fi
2022
2023   CC=$ac_ct_CC
2024 else
2025   CC="$ac_cv_prog_CC"
2026 fi
2027
2028 fi
2029 if test -z "$CC"; then
2030   # Extract the first word of "cc", so it can be a program name with args.
2031 set dummy cc; ac_word=$2
2032 echo "$as_me:$LINENO: checking for $ac_word" >&5
2033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2034 if test "${ac_cv_prog_CC+set}" = set; then
2035   echo $ECHO_N "(cached) $ECHO_C" >&6
2036 else
2037   if test -n "$CC"; then
2038   ac_cv_prog_CC="$CC" # Let the user override the test.
2039 else
2040   ac_prog_rejected=no
2041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 for as_dir in $PATH
2043 do
2044   IFS=$as_save_IFS
2045   test -z "$as_dir" && as_dir=.
2046   for ac_exec_ext in '' $ac_executable_extensions; do
2047   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2048     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2049        ac_prog_rejected=yes
2050        continue
2051      fi
2052     ac_cv_prog_CC="cc"
2053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054     break 2
2055   fi
2056 done
2057 done
2058
2059 if test $ac_prog_rejected = yes; then
2060   # We found a bogon in the path, so make sure we never use it.
2061   set dummy $ac_cv_prog_CC
2062   shift
2063   if test $# != 0; then
2064     # We chose a different compiler from the bogus one.
2065     # However, it has the same basename, so the bogon will be chosen
2066     # first if we set CC to just the basename; use the full file name.
2067     shift
2068     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2069   fi
2070 fi
2071 fi
2072 fi
2073 CC=$ac_cv_prog_CC
2074 if test -n "$CC"; then
2075   echo "$as_me:$LINENO: result: $CC" >&5
2076 echo "${ECHO_T}$CC" >&6
2077 else
2078   echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2080 fi
2081
2082 fi
2083 if test -z "$CC"; then
2084   if test -n "$ac_tool_prefix"; then
2085   for ac_prog in cl
2086   do
2087     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2088 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2089 echo "$as_me:$LINENO: checking for $ac_word" >&5
2090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2091 if test "${ac_cv_prog_CC+set}" = set; then
2092   echo $ECHO_N "(cached) $ECHO_C" >&6
2093 else
2094   if test -n "$CC"; then
2095   ac_cv_prog_CC="$CC" # Let the user override the test.
2096 else
2097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098 for as_dir in $PATH
2099 do
2100   IFS=$as_save_IFS
2101   test -z "$as_dir" && as_dir=.
2102   for ac_exec_ext in '' $ac_executable_extensions; do
2103   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2104     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2106     break 2
2107   fi
2108 done
2109 done
2110
2111 fi
2112 fi
2113 CC=$ac_cv_prog_CC
2114 if test -n "$CC"; then
2115   echo "$as_me:$LINENO: result: $CC" >&5
2116 echo "${ECHO_T}$CC" >&6
2117 else
2118   echo "$as_me:$LINENO: result: no" >&5
2119 echo "${ECHO_T}no" >&6
2120 fi
2121
2122     test -n "$CC" && break
2123   done
2124 fi
2125 if test -z "$CC"; then
2126   ac_ct_CC=$CC
2127   for ac_prog in cl
2128 do
2129   # Extract the first word of "$ac_prog", so it can be a program name with args.
2130 set dummy $ac_prog; ac_word=$2
2131 echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2133 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2134   echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136   if test -n "$ac_ct_CC"; then
2137   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2138 else
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 for as_dir in $PATH
2141 do
2142   IFS=$as_save_IFS
2143   test -z "$as_dir" && as_dir=.
2144   for ac_exec_ext in '' $ac_executable_extensions; do
2145   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2146     ac_cv_prog_ac_ct_CC="$ac_prog"
2147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148     break 2
2149   fi
2150 done
2151 done
2152
2153 fi
2154 fi
2155 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2156 if test -n "$ac_ct_CC"; then
2157   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2158 echo "${ECHO_T}$ac_ct_CC" >&6
2159 else
2160   echo "$as_me:$LINENO: result: no" >&5
2161 echo "${ECHO_T}no" >&6
2162 fi
2163
2164   test -n "$ac_ct_CC" && break
2165 done
2166
2167   CC=$ac_ct_CC
2168 fi
2169
2170 fi
2171
2172
2173 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2174 See \`config.log' for more details." >&5
2175 echo "$as_me: error: no acceptable C compiler found in \$PATH
2176 See \`config.log' for more details." >&2;}
2177    { (exit 1); exit 1; }; }
2178
2179 # Provide some information about the compiler.
2180 echo "$as_me:$LINENO:" \
2181      "checking for C compiler version" >&5
2182 ac_compiler=`set X $ac_compile; echo $2`
2183 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2184   (eval $ac_compiler --version </dev/null >&5) 2>&5
2185   ac_status=$?
2186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187   (exit $ac_status); }
2188 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2189   (eval $ac_compiler -v </dev/null >&5) 2>&5
2190   ac_status=$?
2191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192   (exit $ac_status); }
2193 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2194   (eval $ac_compiler -V </dev/null >&5) 2>&5
2195   ac_status=$?
2196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197   (exit $ac_status); }
2198
2199 cat >conftest.$ac_ext <<_ACEOF
2200 #line $LINENO "configure"
2201 /* confdefs.h.  */
2202 _ACEOF
2203 cat confdefs.h >>conftest.$ac_ext
2204 cat >>conftest.$ac_ext <<_ACEOF
2205 /* end confdefs.h.  */
2206
2207 int
2208 main ()
2209 {
2210
2211   ;
2212   return 0;
2213 }
2214 _ACEOF
2215 ac_clean_files_save=$ac_clean_files
2216 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2217 # Try to create an executable without -o first, disregard a.out.
2218 # It will help us diagnose broken compilers, and finding out an intuition
2219 # of exeext.
2220 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2221 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2222 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2223 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2224   (eval $ac_link_default) 2>&5
2225   ac_status=$?
2226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227   (exit $ac_status); }; then
2228   # Find the output, starting from the most likely.  This scheme is
2229 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2230 # resort.
2231
2232 # Be careful to initialize this variable, since it used to be cached.
2233 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2234 ac_cv_exeext=
2235 # b.out is created by i960 compilers.
2236 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2237 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         ;;
2242     conftest.$ac_ext )
2243         # This is the source file.
2244         ;;
2245     [ab].out )
2246         # We found the default executable, but exeext='' is most
2247         # certainly right.
2248         break;;
2249     *.* )
2250         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2251         # FIXME: I believe we export ac_cv_exeext for Libtool,
2252         # but it would be cool to find out if it's true.  Does anybody
2253         # maintain Libtool? --akim.
2254         export ac_cv_exeext
2255         break;;
2256     * )
2257         break;;
2258   esac
2259 done
2260 else
2261   echo "$as_me: failed program was:" >&5
2262 sed 's/^/| /' conftest.$ac_ext >&5
2263
2264 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2265 See \`config.log' for more details." >&5
2266 echo "$as_me: error: C compiler cannot create executables
2267 See \`config.log' for more details." >&2;}
2268    { (exit 77); exit 77; }; }
2269 fi
2270
2271 ac_exeext=$ac_cv_exeext
2272 echo "$as_me:$LINENO: result: $ac_file" >&5
2273 echo "${ECHO_T}$ac_file" >&6
2274
2275 # Check the compiler produces executables we can run.  If not, either
2276 # the compiler is broken, or we cross compile.
2277 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2278 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2279 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2280 # If not cross compiling, check that we can run a simple program.
2281 if test "$cross_compiling" != yes; then
2282   if { ac_try='./$ac_file'
2283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284   (eval $ac_try) 2>&5
2285   ac_status=$?
2286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287   (exit $ac_status); }; }; then
2288     cross_compiling=no
2289   else
2290     if test "$cross_compiling" = maybe; then
2291         cross_compiling=yes
2292     else
2293         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2294 If you meant to cross compile, use \`--host'.
2295 See \`config.log' for more details." >&5
2296 echo "$as_me: error: cannot run C compiled programs.
2297 If you meant to cross compile, use \`--host'.
2298 See \`config.log' for more details." >&2;}
2299    { (exit 1); exit 1; }; }
2300     fi
2301   fi
2302 fi
2303 echo "$as_me:$LINENO: result: yes" >&5
2304 echo "${ECHO_T}yes" >&6
2305
2306 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2307 ac_clean_files=$ac_clean_files_save
2308 # Check the compiler produces executables we can run.  If not, either
2309 # the compiler is broken, or we cross compile.
2310 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2311 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2312 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2313 echo "${ECHO_T}$cross_compiling" >&6
2314
2315 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2316 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2318   (eval $ac_link) 2>&5
2319   ac_status=$?
2320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321   (exit $ac_status); }; then
2322   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2323 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2324 # work properly (i.e., refer to `conftest.exe'), while it won't with
2325 # `rm'.
2326 for ac_file in conftest.exe conftest conftest.*; do
2327   test -f "$ac_file" || continue
2328   case $ac_file in
2329     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2330     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2331           export ac_cv_exeext
2332           break;;
2333     * ) break;;
2334   esac
2335 done
2336 else
2337   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2338 See \`config.log' for more details." >&5
2339 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2340 See \`config.log' for more details." >&2;}
2341    { (exit 1); exit 1; }; }
2342 fi
2343
2344 rm -f conftest$ac_cv_exeext
2345 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2346 echo "${ECHO_T}$ac_cv_exeext" >&6
2347
2348 rm -f conftest.$ac_ext
2349 EXEEXT=$ac_cv_exeext
2350 ac_exeext=$EXEEXT
2351 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2352 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2353 if test "${ac_cv_objext+set}" = set; then
2354   echo $ECHO_N "(cached) $ECHO_C" >&6
2355 else
2356   cat >conftest.$ac_ext <<_ACEOF
2357 #line $LINENO "configure"
2358 /* confdefs.h.  */
2359 _ACEOF
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h.  */
2363
2364 int
2365 main ()
2366 {
2367
2368   ;
2369   return 0;
2370 }
2371 _ACEOF
2372 rm -f conftest.o conftest.obj
2373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2374   (eval $ac_compile) 2>&5
2375   ac_status=$?
2376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377   (exit $ac_status); }; then
2378   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2379   case $ac_file in
2380     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2381     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2382        break;;
2383   esac
2384 done
2385 else
2386   echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2388
2389 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2392 See \`config.log' for more details." >&2;}
2393    { (exit 1); exit 1; }; }
2394 fi
2395
2396 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2397 fi
2398 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2399 echo "${ECHO_T}$ac_cv_objext" >&6
2400 OBJEXT=$ac_cv_objext
2401 ac_objext=$OBJEXT
2402 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2403 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2404 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2405   echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407   cat >conftest.$ac_ext <<_ACEOF
2408 #line $LINENO "configure"
2409 /* confdefs.h.  */
2410 _ACEOF
2411 cat confdefs.h >>conftest.$ac_ext
2412 cat >>conftest.$ac_ext <<_ACEOF
2413 /* end confdefs.h.  */
2414
2415 int
2416 main ()
2417 {
2418 #ifndef __GNUC__
2419        choke me
2420 #endif
2421
2422   ;
2423   return 0;
2424 }
2425 _ACEOF
2426 rm -f conftest.$ac_objext
2427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2428   (eval $ac_compile) 2>&5
2429   ac_status=$?
2430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431   (exit $ac_status); } &&
2432          { ac_try='test -s conftest.$ac_objext'
2433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434   (eval $ac_try) 2>&5
2435   ac_status=$?
2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437   (exit $ac_status); }; }; then
2438   ac_compiler_gnu=yes
2439 else
2440   echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2442
2443 ac_compiler_gnu=no
2444 fi
2445 rm -f conftest.$ac_objext conftest.$ac_ext
2446 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2447
2448 fi
2449 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2450 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2451 GCC=`test $ac_compiler_gnu = yes && echo yes`
2452 ac_test_CFLAGS=${CFLAGS+set}
2453 ac_save_CFLAGS=$CFLAGS
2454 CFLAGS="-g"
2455 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2456 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2457 if test "${ac_cv_prog_cc_g+set}" = set; then
2458   echo $ECHO_N "(cached) $ECHO_C" >&6
2459 else
2460   cat >conftest.$ac_ext <<_ACEOF
2461 #line $LINENO "configure"
2462 /* confdefs.h.  */
2463 _ACEOF
2464 cat confdefs.h >>conftest.$ac_ext
2465 cat >>conftest.$ac_ext <<_ACEOF
2466 /* end confdefs.h.  */
2467
2468 int
2469 main ()
2470 {
2471
2472   ;
2473   return 0;
2474 }
2475 _ACEOF
2476 rm -f conftest.$ac_objext
2477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2478   (eval $ac_compile) 2>&5
2479   ac_status=$?
2480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481   (exit $ac_status); } &&
2482          { ac_try='test -s conftest.$ac_objext'
2483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484   (eval $ac_try) 2>&5
2485   ac_status=$?
2486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487   (exit $ac_status); }; }; then
2488   ac_cv_prog_cc_g=yes
2489 else
2490   echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2492
2493 ac_cv_prog_cc_g=no
2494 fi
2495 rm -f conftest.$ac_objext conftest.$ac_ext
2496 fi
2497 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2498 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2499 if test "$ac_test_CFLAGS" = set; then
2500   CFLAGS=$ac_save_CFLAGS
2501 elif test $ac_cv_prog_cc_g = yes; then
2502   if test "$GCC" = yes; then
2503     CFLAGS="-g -O2"
2504   else
2505     CFLAGS="-g"
2506   fi
2507 else
2508   if test "$GCC" = yes; then
2509     CFLAGS="-O2"
2510   else
2511     CFLAGS=
2512   fi
2513 fi
2514 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2515 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2516 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2517   echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519   ac_cv_prog_cc_stdc=no
2520 ac_save_CC=$CC
2521 cat >conftest.$ac_ext <<_ACEOF
2522 #line $LINENO "configure"
2523 /* confdefs.h.  */
2524 _ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h.  */
2528 #include <stdarg.h>
2529 #include <stdio.h>
2530 #include <sys/types.h>
2531 #include <sys/stat.h>
2532 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2533 struct buf { int x; };
2534 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2535 static char *e (p, i)
2536      char **p;
2537      int i;
2538 {
2539   return p[i];
2540 }
2541 static char *f (char * (*g) (char **, int), char **p, ...)
2542 {
2543   char *s;
2544   va_list v;
2545   va_start (v,p);
2546   s = g (p, va_arg (v,int));
2547   va_end (v);
2548   return s;
2549 }
2550 int test (int i, double x);
2551 struct s1 {int (*f) (int a);};
2552 struct s2 {int (*f) (double a);};
2553 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2554 int argc;
2555 char **argv;
2556 int
2557 main ()
2558 {
2559 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2560   ;
2561   return 0;
2562 }
2563 _ACEOF
2564 # Don't try gcc -ansi; that turns off useful extensions and
2565 # breaks some systems' header files.
2566 # AIX                   -qlanglvl=ansi
2567 # Ultrix and OSF/1      -std1
2568 # HP-UX 10.20 and later -Ae
2569 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2570 # SVR4                  -Xc -D__EXTENSIONS__
2571 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2572 do
2573   CC="$ac_save_CC $ac_arg"
2574   rm -f conftest.$ac_objext
2575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2576   (eval $ac_compile) 2>&5
2577   ac_status=$?
2578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579   (exit $ac_status); } &&
2580          { ac_try='test -s conftest.$ac_objext'
2581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582   (eval $ac_try) 2>&5
2583   ac_status=$?
2584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585   (exit $ac_status); }; }; then
2586   ac_cv_prog_cc_stdc=$ac_arg
2587 break
2588 else
2589   echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2591
2592 fi
2593 rm -f conftest.$ac_objext
2594 done
2595 rm -f conftest.$ac_ext conftest.$ac_objext
2596 CC=$ac_save_CC
2597
2598 fi
2599
2600 case "x$ac_cv_prog_cc_stdc" in
2601   x|xno)
2602     echo "$as_me:$LINENO: result: none needed" >&5
2603 echo "${ECHO_T}none needed" >&6 ;;
2604   *)
2605     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2606 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2607     CC="$CC $ac_cv_prog_cc_stdc" ;;
2608 esac
2609
2610 # Some people use a C++ compiler to compile C.  Since we use `exit',
2611 # in C++ we need to declare it.  In case someone uses the same compiler
2612 # for both compiling C and C++ we need to have the C++ compiler decide
2613 # the declaration of exit, since it's the most demanding environment.
2614 cat >conftest.$ac_ext <<_ACEOF
2615 #ifndef __cplusplus
2616   choke me
2617 #endif
2618 _ACEOF
2619 rm -f conftest.$ac_objext
2620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621   (eval $ac_compile) 2>&5
2622   ac_status=$?
2623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624   (exit $ac_status); } &&
2625          { ac_try='test -s conftest.$ac_objext'
2626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627   (eval $ac_try) 2>&5
2628   ac_status=$?
2629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630   (exit $ac_status); }; }; then
2631   for ac_declaration in \
2632    ''\
2633    '#include <stdlib.h>' \
2634    'extern "C" void std::exit (int) throw (); using std::exit;' \
2635    'extern "C" void std::exit (int); using std::exit;' \
2636    'extern "C" void exit (int) throw ();' \
2637    'extern "C" void exit (int);' \
2638    'void exit (int);'
2639 do
2640   cat >conftest.$ac_ext <<_ACEOF
2641 #line $LINENO "configure"
2642 /* confdefs.h.  */
2643 _ACEOF
2644 cat confdefs.h >>conftest.$ac_ext
2645 cat >>conftest.$ac_ext <<_ACEOF
2646 /* end confdefs.h.  */
2647 #include <stdlib.h>
2648 $ac_declaration
2649 int
2650 main ()
2651 {
2652 exit (42);
2653   ;
2654   return 0;
2655 }
2656 _ACEOF
2657 rm -f conftest.$ac_objext
2658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659   (eval $ac_compile) 2>&5
2660   ac_status=$?
2661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662   (exit $ac_status); } &&
2663          { ac_try='test -s conftest.$ac_objext'
2664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665   (eval $ac_try) 2>&5
2666   ac_status=$?
2667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668   (exit $ac_status); }; }; then
2669   :
2670 else
2671   echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2673
2674 continue
2675 fi
2676 rm -f conftest.$ac_objext conftest.$ac_ext
2677   cat >conftest.$ac_ext <<_ACEOF
2678 #line $LINENO "configure"
2679 /* confdefs.h.  */
2680 _ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h.  */
2684 $ac_declaration
2685 int
2686 main ()
2687 {
2688 exit (42);
2689   ;
2690   return 0;
2691 }
2692 _ACEOF
2693 rm -f conftest.$ac_objext
2694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2695   (eval $ac_compile) 2>&5
2696   ac_status=$?
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); } &&
2699          { ac_try='test -s conftest.$ac_objext'
2700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701   (eval $ac_try) 2>&5
2702   ac_status=$?
2703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704   (exit $ac_status); }; }; then
2705   break
2706 else
2707   echo "$as_me: failed program was:" >&5
2708 sed 's/^/| /' conftest.$ac_ext >&5
2709
2710 fi
2711 rm -f conftest.$ac_objext conftest.$ac_ext
2712 done
2713 rm -f conftest*
2714 if test -n "$ac_declaration"; then
2715   echo '#ifdef __cplusplus' >>confdefs.h
2716   echo $ac_declaration      >>confdefs.h
2717   echo '#endif'             >>confdefs.h
2718 fi
2719
2720 else
2721   echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2723
2724 fi
2725 rm -f conftest.$ac_objext conftest.$ac_ext
2726 ac_ext=c
2727 ac_cpp='$CPP $CPPFLAGS'
2728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2731 DEPDIR="${am__leading_dot}deps"
2732
2733           ac_config_commands="$ac_config_commands depfiles"
2734
2735
2736 am_make=${MAKE-make}
2737 cat > confinc << 'END'
2738 am__doit:
2739         @echo done
2740 .PHONY: am__doit
2741 END
2742 # If we don't find an include directive, just comment out the code.
2743 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2744 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2745 am__include="#"
2746 am__quote=
2747 _am_result=none
2748 # First try GNU make style include.
2749 echo "include confinc" > confmf
2750 # We grep out `Entering directory' and `Leaving directory'
2751 # messages which can occur if `w' ends up in MAKEFLAGS.
2752 # In particular we don't look at `^make:' because GNU make might
2753 # be invoked under some other name (usually "gmake"), in which
2754 # case it prints its new name instead of `make'.
2755 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2756    am__include=include
2757    am__quote=
2758    _am_result=GNU
2759 fi
2760 # Now try BSD make style include.
2761 if test "$am__include" = "#"; then
2762    echo '.include "confinc"' > confmf
2763    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2764       am__include=.include
2765       am__quote="\""
2766       _am_result=BSD
2767    fi
2768 fi
2769
2770
2771 echo "$as_me:$LINENO: result: $_am_result" >&5
2772 echo "${ECHO_T}$_am_result" >&6
2773 rm -f confinc confmf
2774
2775 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2776 if test "${enable_dependency_tracking+set}" = set; then
2777   enableval="$enable_dependency_tracking"
2778
2779 fi;
2780 if test "x$enable_dependency_tracking" != xno; then
2781   am_depcomp="$ac_aux_dir/depcomp"
2782   AMDEPBACKSLASH='\'
2783 fi
2784
2785
2786 if test "x$enable_dependency_tracking" != xno; then
2787   AMDEP_TRUE=
2788   AMDEP_FALSE='#'
2789 else
2790   AMDEP_TRUE='#'
2791   AMDEP_FALSE=
2792 fi
2793
2794
2795
2796
2797 depcc="$CC"   am_compiler_list=
2798
2799 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2800 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2801 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2802   echo $ECHO_N "(cached) $ECHO_C" >&6
2803 else
2804   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2805   # We make a subdir and do the tests there.  Otherwise we can end up
2806   # making bogus files that we don't know about and never remove.  For
2807   # instance it was reported that on HP-UX the gcc test will end up
2808   # making a dummy file named `D' -- because `-MD' means `put the output
2809   # in D'.
2810   mkdir conftest.dir
2811   # Copy depcomp to subdir because otherwise we won't find it if we're
2812   # using a relative directory.
2813   cp "$am_depcomp" conftest.dir
2814   cd conftest.dir
2815   # We will build objects and dependencies in a subdirectory because
2816   # it helps to detect inapplicable dependency modes.  For instance
2817   # both Tru64's cc and ICC support -MD to output dependencies as a
2818   # side effect of compilation, but ICC will put the dependencies in
2819   # the current directory while Tru64 will put them in the object
2820   # directory.
2821   mkdir sub
2822
2823   am_cv_CC_dependencies_compiler_type=none
2824   if test "$am_compiler_list" = ""; then
2825      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2826   fi
2827   for depmode in $am_compiler_list; do
2828     # Setup a source with many dependencies, because some compilers
2829     # like to wrap large dependency lists on column 80 (with \), and
2830     # we should not choose a depcomp mode which is confused by this.
2831     #
2832     # We need to recreate these files for each test, as the compiler may
2833     # overwrite some of them when testing with obscure command lines.
2834     # This happens at least with the AIX C compiler.
2835     : > sub/conftest.c
2836     for i in 1 2 3 4 5 6; do
2837       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2838       : > sub/conftst$i.h
2839     done
2840     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2841
2842     case $depmode in
2843     nosideeffect)
2844       # after this tag, mechanisms are not by side-effect, so they'll
2845       # only be used when explicitly requested
2846       if test "x$enable_dependency_tracking" = xyes; then
2847         continue
2848       else
2849         break
2850       fi
2851       ;;
2852     none) break ;;
2853     esac
2854     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2855     # mode.  It turns out that the SunPro C++ compiler does not properly
2856     # handle `-M -o', and we need to detect this.
2857     if depmode=$depmode \
2858        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2859        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2860        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2861          >/dev/null 2>conftest.err &&
2862        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2863        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2864        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2865       # icc doesn't choke on unknown options, it will just issue warnings
2866       # (even with -Werror).  So we grep stderr for any message
2867       # that says an option was ignored.
2868       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2869         am_cv_CC_dependencies_compiler_type=$depmode
2870         break
2871       fi
2872     fi
2873   done
2874
2875   cd ..
2876   rm -rf conftest.dir
2877 else
2878   am_cv_CC_dependencies_compiler_type=none
2879 fi
2880
2881 fi
2882 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2883 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2884 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2885
2886
2887
2888 if
2889   test "x$enable_dependency_tracking" != xno \
2890   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2891   am__fastdepCC_TRUE=
2892   am__fastdepCC_FALSE='#'
2893 else
2894   am__fastdepCC_TRUE='#'
2895   am__fastdepCC_FALSE=
2896 fi
2897
2898
2899 ac_ext=c
2900 ac_cpp='$CPP $CPPFLAGS'
2901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2904 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2905 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2906 # On Suns, sometimes $CPP names a directory.
2907 if test -n "$CPP" && test -d "$CPP"; then
2908   CPP=
2909 fi
2910 if test -z "$CPP"; then
2911   if test "${ac_cv_prog_CPP+set}" = set; then
2912   echo $ECHO_N "(cached) $ECHO_C" >&6
2913 else
2914       # Double quotes because CPP needs to be expanded
2915     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2916     do
2917       ac_preproc_ok=false
2918 for ac_c_preproc_warn_flag in '' yes
2919 do
2920   # Use a header file that comes with gcc, so configuring glibc
2921   # with a fresh cross-compiler works.
2922   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2923   # <limits.h> exists even on freestanding compilers.
2924   # On the NeXT, cc -E runs the code through the compiler's parser,
2925   # not just through cpp. "Syntax error" is here to catch this case.
2926   cat >conftest.$ac_ext <<_ACEOF
2927 #line $LINENO "configure"
2928 /* confdefs.h.  */
2929 _ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h.  */
2933 #ifdef __STDC__
2934 # include <limits.h>
2935 #else
2936 # include <assert.h>
2937 #endif
2938                      Syntax error
2939 _ACEOF
2940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2941   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2942   ac_status=$?
2943   grep -v '^ *+' conftest.er1 >conftest.err
2944   rm -f conftest.er1
2945   cat conftest.err >&5
2946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947   (exit $ac_status); } >/dev/null; then
2948   if test -s conftest.err; then
2949     ac_cpp_err=$ac_c_preproc_warn_flag
2950   else
2951     ac_cpp_err=
2952   fi
2953 else
2954   ac_cpp_err=yes
2955 fi
2956 if test -z "$ac_cpp_err"; then
2957   :
2958 else
2959   echo "$as_me: failed program was:" >&5
2960 sed 's/^/| /' conftest.$ac_ext >&5
2961
2962   # Broken: fails on valid input.
2963 continue
2964 fi
2965 rm -f conftest.err conftest.$ac_ext
2966
2967   # OK, works on sane cases.  Now check whether non-existent headers
2968   # can be detected and how.
2969   cat >conftest.$ac_ext <<_ACEOF
2970 #line $LINENO "configure"
2971 /* confdefs.h.  */
2972 _ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h.  */
2976 #include <ac_nonexistent.h>
2977 _ACEOF
2978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2979   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2980   ac_status=$?
2981   grep -v '^ *+' conftest.er1 >conftest.err
2982   rm -f conftest.er1
2983   cat conftest.err >&5
2984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985   (exit $ac_status); } >/dev/null; then
2986   if test -s conftest.err; then
2987     ac_cpp_err=$ac_c_preproc_warn_flag
2988   else
2989     ac_cpp_err=
2990   fi
2991 else
2992   ac_cpp_err=yes
2993 fi
2994 if test -z "$ac_cpp_err"; then
2995   # Broken: success on invalid input.
2996 continue
2997 else
2998   echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3000
3001   # Passes both tests.
3002 ac_preproc_ok=:
3003 break
3004 fi
3005 rm -f conftest.err conftest.$ac_ext
3006
3007 done
3008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3009 rm -f conftest.err conftest.$ac_ext
3010 if $ac_preproc_ok; then
3011   break
3012 fi
3013
3014     done
3015     ac_cv_prog_CPP=$CPP
3016
3017 fi
3018   CPP=$ac_cv_prog_CPP
3019 else
3020   ac_cv_prog_CPP=$CPP
3021 fi
3022 echo "$as_me:$LINENO: result: $CPP" >&5
3023 echo "${ECHO_T}$CPP" >&6
3024 ac_preproc_ok=false
3025 for ac_c_preproc_warn_flag in '' yes
3026 do
3027   # Use a header file that comes with gcc, so configuring glibc
3028   # with a fresh cross-compiler works.
3029   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3030   # <limits.h> exists even on freestanding compilers.
3031   # On the NeXT, cc -E runs the code through the compiler's parser,
3032   # not just through cpp. "Syntax error" is here to catch this case.
3033   cat >conftest.$ac_ext <<_ACEOF
3034 #line $LINENO "configure"
3035 /* confdefs.h.  */
3036 _ACEOF
3037 cat confdefs.h >>conftest.$ac_ext
3038 cat >>conftest.$ac_ext <<_ACEOF
3039 /* end confdefs.h.  */
3040 #ifdef __STDC__
3041 # include <limits.h>
3042 #else
3043 # include <assert.h>
3044 #endif
3045                      Syntax error
3046 _ACEOF
3047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3048   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3049   ac_status=$?
3050   grep -v '^ *+' conftest.er1 >conftest.err
3051   rm -f conftest.er1
3052   cat conftest.err >&5
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); } >/dev/null; then
3055   if test -s conftest.err; then
3056     ac_cpp_err=$ac_c_preproc_warn_flag
3057   else
3058     ac_cpp_err=
3059   fi
3060 else
3061   ac_cpp_err=yes
3062 fi
3063 if test -z "$ac_cpp_err"; then
3064   :
3065 else
3066   echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3068
3069   # Broken: fails on valid input.
3070 continue
3071 fi
3072 rm -f conftest.err conftest.$ac_ext
3073
3074   # OK, works on sane cases.  Now check whether non-existent headers
3075   # can be detected and how.
3076   cat >conftest.$ac_ext <<_ACEOF
3077 #line $LINENO "configure"
3078 /* confdefs.h.  */
3079 _ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h.  */
3083 #include <ac_nonexistent.h>
3084 _ACEOF
3085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3086   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3087   ac_status=$?
3088   grep -v '^ *+' conftest.er1 >conftest.err
3089   rm -f conftest.er1
3090   cat conftest.err >&5
3091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092   (exit $ac_status); } >/dev/null; then
3093   if test -s conftest.err; then
3094     ac_cpp_err=$ac_c_preproc_warn_flag
3095   else
3096     ac_cpp_err=
3097   fi
3098 else
3099   ac_cpp_err=yes
3100 fi
3101 if test -z "$ac_cpp_err"; then
3102   # Broken: success on invalid input.
3103 continue
3104 else
3105   echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3107
3108   # Passes both tests.
3109 ac_preproc_ok=:
3110 break
3111 fi
3112 rm -f conftest.err conftest.$ac_ext
3113
3114 done
3115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3116 rm -f conftest.err conftest.$ac_ext
3117 if $ac_preproc_ok; then
3118   :
3119 else
3120   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3121 See \`config.log' for more details." >&5
3122 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3123 See \`config.log' for more details." >&2;}
3124    { (exit 1); exit 1; }; }
3125 fi
3126
3127 ac_ext=c
3128 ac_cpp='$CPP $CPPFLAGS'
3129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3132
3133 for ac_prog in gawk mawk nawk awk
3134 do
3135   # Extract the first word of "$ac_prog", so it can be a program name with args.
3136 set dummy $ac_prog; ac_word=$2
3137 echo "$as_me:$LINENO: checking for $ac_word" >&5
3138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3139 if test "${ac_cv_prog_AWK+set}" = set; then
3140   echo $ECHO_N "(cached) $ECHO_C" >&6
3141 else
3142   if test -n "$AWK"; then
3143   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3144 else
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH
3147 do
3148   IFS=$as_save_IFS
3149   test -z "$as_dir" && as_dir=.
3150   for ac_exec_ext in '' $ac_executable_extensions; do
3151   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3152     ac_cv_prog_AWK="$ac_prog"
3153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3154     break 2
3155   fi
3156 done
3157 done
3158
3159 fi
3160 fi
3161 AWK=$ac_cv_prog_AWK
3162 if test -n "$AWK"; then
3163   echo "$as_me:$LINENO: result: $AWK" >&5
3164 echo "${ECHO_T}$AWK" >&6
3165 else
3166   echo "$as_me:$LINENO: result: no" >&5
3167 echo "${ECHO_T}no" >&6
3168 fi
3169
3170   test -n "$AWK" && break
3171 done
3172
3173 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3174 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3175 LN_S=$as_ln_s
3176 if test "$LN_S" = "ln -s"; then
3177   echo "$as_me:$LINENO: result: yes" >&5
3178 echo "${ECHO_T}yes" >&6
3179 else
3180   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3181 echo "${ECHO_T}no, using $LN_S" >&6
3182 fi
3183
3184 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3185 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3186 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3187 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3188   echo $ECHO_N "(cached) $ECHO_C" >&6
3189 else
3190   cat >conftest.make <<\_ACEOF
3191 all:
3192         @echo 'ac_maketemp="$(MAKE)"'
3193 _ACEOF
3194 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3195 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3196 if test -n "$ac_maketemp"; then
3197   eval ac_cv_prog_make_${ac_make}_set=yes
3198 else
3199   eval ac_cv_prog_make_${ac_make}_set=no
3200 fi
3201 rm -f conftest.make
3202 fi
3203 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3204   echo "$as_me:$LINENO: result: yes" >&5
3205 echo "${ECHO_T}yes" >&6
3206   SET_MAKE=
3207 else
3208   echo "$as_me:$LINENO: result: no" >&5
3209 echo "${ECHO_T}no" >&6
3210   SET_MAKE="MAKE=${MAKE-make}"
3211 fi
3212
3213 # Find a good install program.  We prefer a C program (faster),
3214 # so one script is as good as another.  But avoid the broken or
3215 # incompatible versions:
3216 # SysV /etc/install, /usr/sbin/install
3217 # SunOS /usr/etc/install
3218 # IRIX /sbin/install
3219 # AIX /bin/install
3220 # AmigaOS /C/install, which installs bootblocks on floppy discs
3221 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3222 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3223 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3224 # ./install, which can be erroneously created by make from ./install.sh.
3225 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3226 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3227 if test -z "$INSTALL"; then
3228 if test "${ac_cv_path_install+set}" = set; then
3229   echo $ECHO_N "(cached) $ECHO_C" >&6
3230 else
3231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in $PATH
3233 do
3234   IFS=$as_save_IFS
3235   test -z "$as_dir" && as_dir=.
3236   # Account for people who put trailing slashes in PATH elements.
3237 case $as_dir/ in
3238   ./ | .// | /cC/* | \
3239   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3240   /usr/ucb/* ) ;;
3241   *)
3242     # OSF1 and SCO ODT 3.0 have their own names for install.
3243     # Don't use installbsd from OSF since it installs stuff as root
3244     # by default.
3245     for ac_prog in ginstall scoinst install; do
3246       for ac_exec_ext in '' $ac_executable_extensions; do
3247         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3248           if test $ac_prog = install &&
3249             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3250             # AIX install.  It has an incompatible calling convention.
3251             :
3252           elif test $ac_prog = install &&
3253             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3254             # program-specific install script used by HP pwplus--don't use.
3255             :
3256           else
3257             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3258             break 3
3259           fi
3260         fi
3261       done
3262     done
3263     ;;
3264 esac
3265 done
3266
3267
3268 fi
3269   if test "${ac_cv_path_install+set}" = set; then
3270     INSTALL=$ac_cv_path_install
3271   else
3272     # As a last resort, use the slow shell script.  We don't cache a
3273     # path for INSTALL within a source directory, because that will
3274     # break other packages using the cache if that directory is
3275     # removed, or if the path is relative.
3276     INSTALL=$ac_install_sh
3277   fi
3278 fi
3279 echo "$as_me:$LINENO: result: $INSTALL" >&5
3280 echo "${ECHO_T}$INSTALL" >&6
3281
3282 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3283 # It thinks the first close brace ends the variable substitution.
3284 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3285
3286 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3287
3288 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3289
3290
3291
3292 echo "$as_me:$LINENO: checking for __attribute__" >&5
3293 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
3294 if test "${ac_cv___attribute__+set}" = set; then
3295   echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297
3298 cat >conftest.$ac_ext <<_ACEOF
3299 #line $LINENO "configure"
3300 /* confdefs.h.  */
3301 _ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h.  */
3305
3306 #include <stdlib.h>
3307
3308 int
3309 main ()
3310 {
3311
3312 static void foo(void) __attribute__ ((noreturn));
3313
3314 static void
3315 foo(void)
3316 {
3317   exit(1);
3318 }
3319
3320   ;
3321   return 0;
3322 }
3323 _ACEOF
3324 rm -f conftest.$ac_objext
3325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3326   (eval $ac_compile) 2>&5
3327   ac_status=$?
3328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329   (exit $ac_status); } &&
3330          { ac_try='test -s conftest.$ac_objext'
3331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3332   (eval $ac_try) 2>&5
3333   ac_status=$?
3334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335   (exit $ac_status); }; }; then
3336   ac_cv___attribute__=yes
3337 else
3338   echo "$as_me: failed program was:" >&5
3339 sed 's/^/| /' conftest.$ac_ext >&5
3340
3341 ac_cv___attribute__=no
3342 fi
3343 rm -f conftest.$ac_objext conftest.$ac_ext
3344 fi
3345
3346 if test "$ac_cv___attribute__" = "yes"; then
3347
3348 cat >>confdefs.h <<\_ACEOF
3349 #define HAVE___ATTRIBUTE__ 1
3350 _ACEOF
3351
3352 fi
3353 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3354 echo "${ECHO_T}$ac_cv___attribute__" >&6
3355
3356
3357
3358    # CMU GUESS RUNPATH SWITCH
3359   echo "$as_me:$LINENO: checking for runpath switch" >&5
3360 echo $ECHO_N "checking for runpath switch... $ECHO_C" >&6
3361 if test "${andrew_runpath_switch+set}" = set; then
3362   echo $ECHO_N "(cached) $ECHO_C" >&6
3363 else
3364
3365     # first, try -R
3366     SAVE_LDFLAGS="${LDFLAGS}"
3367     LDFLAGS="-R /usr/lib"
3368     cat >conftest.$ac_ext <<_ACEOF
3369 #line $LINENO "configure"
3370 /* confdefs.h.  */
3371 _ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h.  */
3375
3376 int
3377 main ()
3378 {
3379
3380   ;
3381   return 0;
3382 }
3383 _ACEOF
3384 rm -f conftest.$ac_objext conftest$ac_exeext
3385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3386   (eval $ac_link) 2>&5
3387   ac_status=$?
3388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389   (exit $ac_status); } &&
3390          { ac_try='test -s conftest$ac_exeext'
3391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392   (eval $ac_try) 2>&5
3393   ac_status=$?
3394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395   (exit $ac_status); }; }; then
3396   andrew_runpath_switch="-R"
3397 else
3398   echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3400
3401
3402         LDFLAGS="-Wl,-rpath,/usr/lib"
3403     cat >conftest.$ac_ext <<_ACEOF
3404 #line $LINENO "configure"
3405 /* confdefs.h.  */
3406 _ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h.  */
3410
3411 int
3412 main ()
3413 {
3414
3415   ;
3416   return 0;
3417 }
3418 _ACEOF
3419 rm -f conftest.$ac_objext conftest$ac_exeext
3420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3421   (eval $ac_link) 2>&5
3422   ac_status=$?
3423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); } &&
3425          { ac_try='test -s conftest$ac_exeext'
3426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427   (eval $ac_try) 2>&5
3428   ac_status=$?
3429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430   (exit $ac_status); }; }; then
3431   andrew_runpath_switch="-Wl,-rpath,"
3432 else
3433   echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3435
3436 andrew_runpath_switch="none"
3437 fi
3438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3439
3440 fi
3441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3442   LDFLAGS="${SAVE_LDFLAGS}"
3443
3444 fi
3445 echo "$as_me:$LINENO: result: $andrew_runpath_switch" >&5
3446 echo "${ECHO_T}$andrew_runpath_switch" >&6
3447
3448
3449 # Check whether --with-staticsasl or --without-staticsasl was given.
3450 if test "${with_staticsasl+set}" = set; then
3451   withval="$with_staticsasl"
3452
3453 fi;
3454 if test "$with_staticsasl" = yes; then
3455         enable_shared=yes
3456         enable_static=yes
3457 fi
3458
3459 save_target=$target
3460 if test -z "$target"; then
3461         target="NONE"
3462 fi
3463
3464 # new libtool
3465 # Check whether --enable-static or --disable-static was given.
3466 if test "${enable_static+set}" = set; then
3467   enableval="$enable_static"
3468   p=${PACKAGE-default}
3469 case "$enableval" in
3470 yes) enable_static=yes ;;
3471 no) enable_static=no ;;
3472 *)
3473   enable_static=no
3474   # Look at the argument we got.  We use all the common list separators.
3475   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3476   for pkg in $enableval; do
3477     if test "X$pkg" = "X$p"; then
3478       enable_static=yes
3479     fi
3480   done
3481   IFS="$ac_save_ifs"
3482   ;;
3483 esac
3484 else
3485   enable_static=no
3486 fi;
3487 # Check whether --enable-shared or --disable-shared was given.
3488 if test "${enable_shared+set}" = set; then
3489   enableval="$enable_shared"
3490   p=${PACKAGE-default}
3491 case "$enableval" in
3492 yes) enable_shared=yes ;;
3493 no) enable_shared=no ;;
3494 *)
3495   enable_shared=no
3496   # Look at the argument we got.  We use all the common list separators.
3497   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3498   for pkg in $enableval; do
3499     if test "X$pkg" = "X$p"; then
3500       enable_shared=yes
3501     fi
3502   done
3503   IFS="$ac_save_ifs"
3504   ;;
3505 esac
3506 else
3507   enable_shared=yes
3508 fi;
3509 # Check whether --enable-fast-install or --disable-fast-install was given.
3510 if test "${enable_fast_install+set}" = set; then
3511   enableval="$enable_fast_install"
3512   p=${PACKAGE-default}
3513 case "$enableval" in
3514 yes) enable_fast_install=yes ;;
3515 no) enable_fast_install=no ;;
3516 *)
3517   enable_fast_install=no
3518   # Look at the argument we got.  We use all the common list separators.
3519   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3520   for pkg in $enableval; do
3521     if test "X$pkg" = "X$p"; then
3522       enable_fast_install=yes
3523     fi
3524   done
3525   IFS="$ac_save_ifs"
3526   ;;
3527 esac
3528 else
3529   enable_fast_install=yes
3530 fi;
3531 if test -n "$ac_tool_prefix"; then
3532   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3533 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3534 echo "$as_me:$LINENO: checking for $ac_word" >&5
3535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3536 if test "${ac_cv_prog_RANLIB+set}" = set; then
3537   echo $ECHO_N "(cached) $ECHO_C" >&6
3538 else
3539   if test -n "$RANLIB"; then
3540   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3541 else
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 for as_dir in $PATH
3544 do
3545   IFS=$as_save_IFS
3546   test -z "$as_dir" && as_dir=.
3547   for ac_exec_ext in '' $ac_executable_extensions; do
3548   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3549     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3551     break 2
3552   fi
3553 done
3554 done
3555
3556 fi
3557 fi
3558 RANLIB=$ac_cv_prog_RANLIB
3559 if test -n "$RANLIB"; then
3560   echo "$as_me:$LINENO: result: $RANLIB" >&5
3561 echo "${ECHO_T}$RANLIB" >&6
3562 else
3563   echo "$as_me:$LINENO: result: no" >&5
3564 echo "${ECHO_T}no" >&6
3565 fi
3566
3567 fi
3568 if test -z "$ac_cv_prog_RANLIB"; then
3569   ac_ct_RANLIB=$RANLIB
3570   # Extract the first word of "ranlib", so it can be a program name with args.
3571 set dummy ranlib; ac_word=$2
3572 echo "$as_me:$LINENO: checking for $ac_word" >&5
3573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3574 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3575   echo $ECHO_N "(cached) $ECHO_C" >&6
3576 else
3577   if test -n "$ac_ct_RANLIB"; then
3578   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3579 else
3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581 for as_dir in $PATH
3582 do
3583   IFS=$as_save_IFS
3584   test -z "$as_dir" && as_dir=.
3585   for ac_exec_ext in '' $ac_executable_extensions; do
3586   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3587     ac_cv_prog_ac_ct_RANLIB="ranlib"
3588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3589     break 2
3590   fi
3591 done
3592 done
3593
3594   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3595 fi
3596 fi
3597 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3598 if test -n "$ac_ct_RANLIB"; then
3599   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3600 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3601 else
3602   echo "$as_me:$LINENO: result: no" >&5
3603 echo "${ECHO_T}no" >&6
3604 fi
3605
3606   RANLIB=$ac_ct_RANLIB
3607 else
3608   RANLIB="$ac_cv_prog_RANLIB"
3609 fi
3610
3611
3612 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3613 if test "${with_gnu_ld+set}" = set; then
3614   withval="$with_gnu_ld"
3615   test "$withval" = no || with_gnu_ld=yes
3616 else
3617   with_gnu_ld=no
3618 fi;
3619 ac_prog=ld
3620 if test "$ac_cv_c_compiler_gnu" = yes; then
3621   # Check if gcc -print-prog-name=ld gives a path.
3622   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3623 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3624   ac_prog=`($CC -print-prog-name=ld) 2>&5`
3625   case "$ac_prog" in
3626     # Accept absolute paths.
3627     [\\/]* | [A-Za-z]:[\\/]*)
3628       re_direlt='/[^/][^/]*/\.\./'
3629       # Canonicalize the path of ld
3630       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3631       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3632         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3633       done
3634       test -z "$LD" && LD="$ac_prog"
3635       ;;
3636   "")
3637     # If it fails, then pretend we aren't using GCC.
3638     ac_prog=ld
3639     ;;
3640   *)
3641     # If it is relative, then search for the first ld in PATH.
3642     with_gnu_ld=unknown
3643     ;;
3644   esac
3645 elif test "$with_gnu_ld" = yes; then
3646   echo "$as_me:$LINENO: checking for GNU ld" >&5
3647 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3648 else
3649   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3650 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3651 fi
3652 if test "${ac_cv_path_LD+set}" = set; then
3653   echo $ECHO_N "(cached) $ECHO_C" >&6
3654 else
3655   if test -z "$LD"; then
3656   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3657   for ac_dir in $PATH; do
3658     test -z "$ac_dir" && ac_dir=.
3659     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3660       ac_cv_path_LD="$ac_dir/$ac_prog"
3661       # Check to see if the program is GNU ld.  I'd rather use --version,
3662       # but apparently some GNU ld's only accept -v.
3663       # Break only if it was the GNU/non-GNU ld that we prefer.
3664       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3665         test "$with_gnu_ld" != no && break
3666       else
3667         test "$with_gnu_ld" != yes && break
3668       fi
3669     fi
3670   done
3671   IFS="$ac_save_ifs"
3672 else
3673   ac_cv_path_LD="$LD" # Let the user override the test with a path.
3674 fi
3675 fi
3676
3677 LD="$ac_cv_path_LD"
3678 if test -n "$LD"; then
3679   echo "$as_me:$LINENO: result: $LD" >&5
3680 echo "${ECHO_T}$LD" >&6
3681 else
3682   echo "$as_me:$LINENO: result: no" >&5
3683 echo "${ECHO_T}no" >&6
3684 fi
3685 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3686 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3687    { (exit 1); exit 1; }; }
3688 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3689 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3690 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3691   echo $ECHO_N "(cached) $ECHO_C" >&6
3692 else
3693   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3694 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3695   ac_cv_prog_gnu_ld=yes
3696 else
3697   ac_cv_prog_gnu_ld=no
3698 fi
3699 fi
3700 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3701 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3702
3703
3704 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3705 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3706 if test "${ac_cv_path_NM+set}" = set; then
3707   echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709   if test -n "$NM"; then
3710   # Let the user override the test.
3711   ac_cv_path_NM="$NM"
3712 else
3713   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3714   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3715     test -z "$ac_dir" && ac_dir=.
3716     if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
3717       # Check to see if the nm accepts a BSD-compat flag.
3718       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3719       #   nm: unknown option "B" ignored
3720       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3721         ac_cv_path_NM="$ac_dir/nm -B"
3722         break
3723       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3724         ac_cv_path_NM="$ac_dir/nm -p"
3725         break
3726       else
3727         ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
3728         continue # so that we can try to find one that supports BSD flags
3729       fi
3730     fi
3731   done
3732   IFS="$ac_save_ifs"
3733   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3734 fi
3735 fi
3736
3737 NM="$ac_cv_path_NM"
3738 echo "$as_me:$LINENO: result: $NM" >&5
3739 echo "${ECHO_T}$NM" >&6
3740
3741
3742 case "$target" in
3743 NONE) lt_target="$host" ;;
3744 *) lt_target="$target" ;;
3745 esac
3746
3747 # Check for any special flags to pass to ltconfig.
3748 libtool_flags="--cache-file=$cache_file"
3749 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3750 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3751 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3752 test "$ac_cv_c_compiler_gnu" = yes && libtool_flags="$libtool_flags --with-gcc"
3753 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3754
3755
3756 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3757 if test "${enable_libtool_lock+set}" = set; then
3758   enableval="$enable_libtool_lock"
3759
3760 fi;
3761 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3762 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3763
3764 # Some flags need to be propagated to the compiler or linker for good
3765 # libtool support.
3766 case "$lt_target" in
3767 *-*-irix6*)
3768   # Find out which ABI we are using.
3769   echo '#line 3769 "configure"' > conftest.$ac_ext
3770   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3771   (eval $ac_compile) 2>&5
3772   ac_status=$?
3773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774   (exit $ac_status); }; then
3775     case "`/usr/bin/file conftest.o`" in
3776     *32-bit*)
3777       LD="${LD-ld} -32"
3778       ;;
3779     *N32*)
3780       LD="${LD-ld} -n32"
3781       ;;
3782     *64-bit*)
3783       LD="${LD-ld} -64"
3784       ;;
3785     esac
3786   fi
3787   rm -rf conftest*
3788   ;;
3789
3790 *-*-sco3.2v5*)
3791   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3792   SAVE_CFLAGS="$CFLAGS"
3793   CFLAGS="$CFLAGS -belf"
3794   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3795 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3796 if test "${lt_cv_cc_needs_belf+set}" = set; then
3797   echo $ECHO_N "(cached) $ECHO_C" >&6
3798 else
3799   cat >conftest.$ac_ext <<_ACEOF
3800 #line $LINENO "configure"
3801 /* confdefs.h.  */
3802 _ACEOF
3803 cat confdefs.h >>conftest.$ac_ext
3804 cat >>conftest.$ac_ext <<_ACEOF
3805 /* end confdefs.h.  */
3806
3807 int
3808 main ()
3809 {
3810
3811   ;
3812   return 0;
3813 }
3814 _ACEOF
3815 rm -f conftest.$ac_objext conftest$ac_exeext
3816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3817   (eval $ac_link) 2>&5
3818   ac_status=$?
3819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820   (exit $ac_status); } &&
3821          { ac_try='test -s conftest$ac_exeext'
3822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3823   (eval $ac_try) 2>&5
3824   ac_status=$?
3825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826   (exit $ac_status); }; }; then
3827   lt_cv_cc_needs_belf=yes
3828 else
3829   echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3831
3832 lt_cv_cc_needs_belf=no
3833 fi
3834 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3835 fi
3836 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3837 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3838   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3839     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3840     CFLAGS="$SAVE_CFLAGS"
3841   fi
3842   ;;
3843
3844
3845 esac
3846
3847
3848 # Save cache, so that ltconfig can load it
3849 cat >confcache <<\_ACEOF
3850 # This file is a shell script that caches the results of configure
3851 # tests run on this system so they can be shared between configure
3852 # scripts and configure runs, see configure's option --config-cache.
3853 # It is not useful on other systems.  If it contains results you don't
3854 # want to keep, you may remove or edit it.
3855 #
3856 # config.status only pays attention to the cache file if you give it
3857 # the --recheck option to rerun configure.
3858 #
3859 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3860 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3861 # following values.
3862
3863 _ACEOF
3864
3865 # The following way of writing the cache mishandles newlines in values,
3866 # but we know of no workaround that is simple, portable, and efficient.
3867 # So, don't put newlines in cache variables' values.
3868 # Ultrix sh set writes to stderr and can't be redirected directly,
3869 # and sets the high bit in the cache file unless we assign to the vars.
3870 {
3871   (set) 2>&1 |
3872     case `(ac_space=' '; set | grep ac_space) 2>&1` in
3873     *ac_space=\ *)
3874       # `set' does not quote correctly, so add quotes (double-quote
3875       # substitution turns \\\\ into \\, and sed turns \\ into \).
3876       sed -n \
3877         "s/'/'\\\\''/g;
3878           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3879       ;;
3880     *)
3881       # `set' quotes correctly as required by POSIX, so do not add quotes.
3882       sed -n \
3883         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3884       ;;
3885     esac;
3886 } |
3887   sed '
3888      t clear
3889      : clear
3890      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3891      t end
3892      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3893      : end' >>confcache
3894 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3895   if test -w $cache_file; then
3896     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3897     cat confcache >$cache_file
3898   else
3899     echo "not updating unwritable cache $cache_file"
3900   fi
3901 fi
3902 rm -f confcache
3903
3904 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
3905 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3906 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3907 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3908 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3909 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3910 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3911 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
3912 echo "$as_me: error: libtool configure failed" >&2;}
3913    { (exit 1); exit 1; }; }
3914
3915 # Reload cache, that may have been modified by ltconfig
3916 if test -r "$cache_file"; then
3917   # Some versions of bash will fail to source /dev/null (special
3918   # files actually), so we avoid doing that.
3919   if test -f "$cache_file"; then
3920     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
3921 echo "$as_me: loading cache $cache_file" >&6;}
3922     case $cache_file in
3923       [\\/]* | ?:[\\/]* ) . $cache_file;;
3924       *)                      . ./$cache_file;;
3925     esac
3926   fi
3927 else
3928   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3929 echo "$as_me: creating cache $cache_file" >&6;}
3930   >$cache_file
3931 fi
3932
3933
3934 # This can be used to rebuild libtool when needed
3935 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3936
3937 # Always use our own libtool.
3938 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3939
3940 # Redirect the config.log output again, so that the ltconfig log is not
3941 # clobbered by the next message.
3942 exec 5>>./config.log
3943
3944
3945 target=$save_target
3946
3947 if test "$enable_static" = yes; then
3948         SASL_STATIC_LIBS=libsasl2.a
3949 else
3950         SASL_STATIC_LIBS=
3951 fi
3952
3953 # Check whether --enable-staticdlopen or --disable-staticdlopen was given.
3954 if test "${enable_staticdlopen+set}" = set; then
3955   enableval="$enable_staticdlopen"
3956   enable_staticdlopen=$enableval
3957 else
3958   enable_staticdlopen=no
3959 fi;
3960
3961 if test "$enable_staticdlopen" = yes; then
3962
3963 cat >>confdefs.h <<\_ACEOF
3964 #define TRY_DLOPEN_WHEN_STATIC
3965 _ACEOF
3966
3967 fi
3968
3969 if test "$ac_cv_c_compiler_gnu" = yes; then
3970   CFLAGS="-Wall -W ${CFLAGS}"
3971 fi
3972
3973
3974 # Check whether --with-purecov or --without-purecov was given.
3975 if test "${with_purecov+set}" = set; then
3976   withval="$with_purecov"
3977
3978 fi;
3979 if test "$with_purecov" = yes; then
3980   for ac_prog in purecov
3981 do
3982   # Extract the first word of "$ac_prog", so it can be a program name with args.
3983 set dummy $ac_prog; ac_word=$2
3984 echo "$as_me:$LINENO: checking for $ac_word" >&5
3985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3986 if test "${ac_cv_prog_PURECOV+set}" = set; then
3987   echo $ECHO_N "(cached) $ECHO_C" >&6
3988 else
3989   if test -n "$PURECOV"; then
3990   ac_cv_prog_PURECOV="$PURECOV" # Let the user override the test.
3991 else
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 for as_dir in $PATH
3994 do
3995   IFS=$as_save_IFS
3996   test -z "$as_dir" && as_dir=.
3997   for ac_exec_ext in '' $ac_executable_extensions; do
3998   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3999     ac_cv_prog_PURECOV="$ac_prog"
4000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4001     break 2
4002   fi
4003 done
4004 done
4005
4006 fi
4007 fi
4008 PURECOV=$ac_cv_prog_PURECOV
4009 if test -n "$PURECOV"; then
4010   echo "$as_me:$LINENO: result: $PURECOV" >&5
4011 echo "${ECHO_T}$PURECOV" >&6
4012 else
4013   echo "$as_me:$LINENO: result: no" >&5
4014 echo "${ECHO_T}no" >&6
4015 fi
4016
4017   test -n "$PURECOV" && break
4018 done
4019
4020 fi
4021
4022 # Check whether --with-purify or --without-purify was given.
4023 if test "${with_purify+set}" = set; then
4024   withval="$with_purify"
4025
4026 fi;
4027 if test "$with_purify" = yes; then
4028   for ac_prog in purify
4029 do
4030   # Extract the first word of "$ac_prog", so it can be a program name with args.
4031 set dummy $ac_prog; ac_word=$2
4032 echo "$as_me:$LINENO: checking for $ac_word" >&5
4033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4034 if test "${ac_cv_prog_PURIFY+set}" = set; then
4035   echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037   if test -n "$PURIFY"; then
4038   ac_cv_prog_PURIFY="$PURIFY" # Let the user override the test.
4039 else
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041 for as_dir in $PATH
4042 do
4043   IFS=$as_save_IFS
4044   test -z "$as_dir" && as_dir=.
4045   for ac_exec_ext in '' $ac_executable_extensions; do
4046   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4047     ac_cv_prog_PURIFY="$ac_prog"
4048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4049     break 2
4050   fi
4051 done
4052 done
4053
4054 fi
4055 fi
4056 PURIFY=$ac_cv_prog_PURIFY
4057 if test -n "$PURIFY"; then
4058   echo "$as_me:$LINENO: result: $PURIFY" >&5
4059 echo "${ECHO_T}$PURIFY" >&6
4060 else
4061   echo "$as_me:$LINENO: result: no" >&5
4062 echo "${ECHO_T}no" >&6
4063 fi
4064
4065   test -n "$PURIFY" && break
4066 done
4067
4068 fi
4069
4070 # Check whether --enable-java or --disable-java was given.
4071 if test "${enable_java+set}" = set; then
4072   enableval="$enable_java"
4073   enable_java=$enableval
4074 else
4075   enable_java=no
4076 fi;
4077 if test "$enable_java" = yes; then
4078   # Extract the first word of "javac", so it can be a program name with args.
4079 set dummy javac; ac_word=$2
4080 echo "$as_me:$LINENO: checking for $ac_word" >&5
4081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4082 if test "${ac_cv_path_JAVAC+set}" = set; then
4083   echo $ECHO_N "(cached) $ECHO_C" >&6
4084 else
4085   case $JAVAC in
4086   [\\/]* | ?:[\\/]*)
4087   ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
4088   ;;
4089   *)
4090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH
4092 do
4093   IFS=$as_save_IFS
4094   test -z "$as_dir" && as_dir=.
4095   for ac_exec_ext in '' $ac_executable_extensions; do
4096   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4097     ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
4098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4099     break 2
4100   fi
4101 done
4102 done
4103
4104   test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="no"
4105   ;;
4106 esac
4107 fi
4108 JAVAC=$ac_cv_path_JAVAC
4109
4110 if test -n "$JAVAC"; then
4111   echo "$as_me:$LINENO: result: $JAVAC" >&5
4112 echo "${ECHO_T}$JAVAC" >&6
4113 else
4114   echo "$as_me:$LINENO: result: no" >&5
4115 echo "${ECHO_T}no" >&6
4116 fi
4117
4118   for ac_prog in javah kaffeh
4119 do
4120   # Extract the first word of "$ac_prog", so it can be a program name with args.
4121 set dummy $ac_prog; ac_word=$2
4122 echo "$as_me:$LINENO: checking for $ac_word" >&5
4123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4124 if test "${ac_cv_path_JAVAH+set}" = set; then
4125   echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127   case $JAVAH in
4128   [\\/]* | ?:[\\/]*)
4129   ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.
4130   ;;
4131   *)
4132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH
4134 do
4135   IFS=$as_save_IFS
4136   test -z "$as_dir" && as_dir=.
4137   for ac_exec_ext in '' $ac_executable_extensions; do
4138   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4139     ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext"
4140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4141     break 2
4142   fi
4143 done
4144 done
4145
4146   ;;
4147 esac
4148 fi
4149 JAVAH=$ac_cv_path_JAVAH
4150
4151 if test -n "$JAVAH"; then
4152   echo "$as_me:$LINENO: result: $JAVAH" >&5
4153 echo "${ECHO_T}$JAVAH" >&6
4154 else
4155   echo "$as_me:$LINENO: result: no" >&5
4156 echo "${ECHO_T}no" >&6
4157 fi
4158
4159   test -n "$JAVAH" && break
4160 done
4161 test -n "$JAVAH" || JAVAH="no"
4162
4163   for ac_prog in javadoc
4164 do
4165   # Extract the first word of "$ac_prog", so it can be a program name with args.
4166 set dummy $ac_prog; ac_word=$2
4167 echo "$as_me:$LINENO: checking for $ac_word" >&5
4168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4169 if test "${ac_cv_prog_JAVADOC+set}" = set; then
4170   echo $ECHO_N "(cached) $ECHO_C" >&6
4171 else
4172   if test -n "$JAVADOC"; then
4173   ac_cv_prog_JAVADOC="$JAVADOC" # Let the user override the test.
4174 else
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH
4177 do
4178   IFS=$as_save_IFS
4179   test -z "$as_dir" && as_dir=.
4180   for ac_exec_ext in '' $ac_executable_extensions; do
4181   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4182     ac_cv_prog_JAVADOC="$ac_prog"
4183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4184     break 2
4185   fi
4186 done
4187 done
4188
4189 fi
4190 fi
4191 JAVADOC=$ac_cv_prog_JAVADOC
4192 if test -n "$JAVADOC"; then
4193   echo "$as_me:$LINENO: result: $JAVADOC" >&5
4194 echo "${ECHO_T}$JAVADOC" >&6
4195 else
4196   echo "$as_me:$LINENO: result: no" >&5
4197 echo "${ECHO_T}no" >&6
4198 fi
4199
4200   test -n "$JAVADOC" && break
4201 done
4202 test -n "$JAVADOC" || JAVADOC=":"
4203
4204   if test "$JAVAC" = "no" -o "$JAVAH" = "no"; then
4205     { echo "$as_me:$LINENO: WARNING: Disabling Java support" >&5
4206 echo "$as_me: WARNING: Disabling Java support" >&2;}
4207     enable_java=no
4208   fi
4209 else
4210 # Make distcheck work
4211   JAVAC="true"
4212   JAVAH="true"
4213   JAVADOC="true"
4214 fi
4215
4216
4217 if test "$enable_java" = yes; then
4218   JAVA_TRUE=
4219   JAVA_FALSE='#'
4220 else
4221   JAVA_TRUE='#'
4222   JAVA_FALSE=
4223 fi
4224
4225
4226 if test "$enable_java" = yes; then
4227   echo "$as_me:$LINENO: checking JNI cpp flags" >&5
4228 echo $ECHO_N "checking JNI cpp flags... $ECHO_C" >&6
4229   if test "${sasl_cv_java_includes+set}" = set; then
4230   echo $ECHO_N "(cached) $ECHO_C" >&6
4231 else
4232
4233   if test `echo $JAVAH | sed 's,.*/,,'` = "kaffeh"; then
4234     sasl_cv_java_includes=-I`echo $JAVAH | sed -e 's,/bin.*,/include/kaffe,'`
4235   else
4236     java_base=`echo $JAVAC | sed 's,/bin.*,'','`
4237
4238
4239 # Check whether --with-javabase or --without-javabase was given.
4240 if test "${with_javabase+set}" = set; then
4241   withval="$with_javabase"
4242   java_base=$withval
4243 fi;
4244
4245
4246     sasl_cv_java_includes=''
4247     for dir in `find ${java_base}/include -follow -type d -print | grep -v green_threads`; do
4248       sasl_cv_java_includes="${sasl_cv_java_includes} -I$dir"
4249     done
4250   fi
4251
4252   sasl_cv_java_includes="${sasl_cv_java_includes} -I$javapath/include"
4253 fi
4254
4255
4256   JAVA_INCLUDES=$sasl_cv_java_includes
4257
4258   echo "$as_me:$LINENO: result: ok" >&5
4259 echo "${ECHO_T}ok" >&6
4260
4261   JAVAROOT=".."
4262
4263   JAVAC=`echo "$JAVAC" | sed 's,.*/,,'`
4264   JAVAH=`echo "$JAVAH" | sed 's,.*/,,'`
4265 fi
4266
4267
4268
4269 if test "$enable_sample" = yes; then
4270   SAMPLE_TRUE=
4271   SAMPLE_FALSE='#'
4272 else
4273   SAMPLE_TRUE='#'
4274   SAMPLE_FALSE=
4275 fi
4276
4277
4278
4279         save_LIBS="$LIBS"
4280         LIB_SOCKET=""
4281         echo "$as_me:$LINENO: checking for connect" >&5
4282 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4283 if test "${ac_cv_func_connect+set}" = set; then
4284   echo $ECHO_N "(cached) $ECHO_C" >&6
4285 else
4286   cat >conftest.$ac_ext <<_ACEOF
4287 #line $LINENO "configure"
4288 /* confdefs.h.  */
4289 _ACEOF
4290 cat confdefs.h >>conftest.$ac_ext
4291 cat >>conftest.$ac_ext <<_ACEOF
4292 /* end confdefs.h.  */
4293 /* System header to define __stub macros and hopefully few prototypes,
4294     which can conflict with char connect (); below.
4295     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4296     <limits.h> exists even on freestanding compilers.  */
4297 #ifdef __STDC__
4298 # include <limits.h>
4299 #else
4300 # include <assert.h>
4301 #endif
4302 /* Override any gcc2 internal prototype to avoid an error.  */
4303 #ifdef __cplusplus
4304 extern "C"
4305 {
4306 #endif
4307 /* We use char because int might match the return type of a gcc2
4308    builtin and then its argument prototype would still apply.  */
4309 char connect ();
4310 /* The GNU C library defines this for functions which it implements
4311     to always fail with ENOSYS.  Some functions are actually named
4312     something starting with __ and the normal name is an alias.  */
4313 #if defined (__stub_connect) || defined (__stub___connect)
4314 choke me
4315 #else
4316 char (*f) () = connect;
4317 #endif
4318 #ifdef __cplusplus
4319 }
4320 #endif
4321
4322 int
4323 main ()
4324 {
4325 return f != connect;
4326   ;
4327   return 0;
4328 }
4329 _ACEOF
4330 rm -f conftest.$ac_objext conftest$ac_exeext
4331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4332   (eval $ac_link) 2>&5
4333   ac_status=$?
4334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335   (exit $ac_status); } &&
4336          { ac_try='test -s conftest$ac_exeext'
4337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338   (eval $ac_try) 2>&5
4339   ac_status=$?
4340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341   (exit $ac_status); }; }; then
4342   ac_cv_func_connect=yes
4343 else
4344   echo "$as_me: failed program was:" >&5
4345 sed 's/^/| /' conftest.$ac_ext >&5
4346
4347 ac_cv_func_connect=no
4348 fi
4349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4350 fi
4351 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4352 echo "${ECHO_T}$ac_cv_func_connect" >&6
4353 if test $ac_cv_func_connect = yes; then
4354   :
4355 else
4356   echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4357 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4358 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4359   echo $ECHO_N "(cached) $ECHO_C" >&6
4360 else
4361   ac_check_lib_save_LIBS=$LIBS
4362 LIBS="-lnsl  $LIBS"
4363 cat >conftest.$ac_ext <<_ACEOF
4364 #line $LINENO "configure"
4365 /* confdefs.h.  */
4366 _ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h.  */
4370
4371 /* Override any gcc2 internal prototype to avoid an error.  */
4372 #ifdef __cplusplus
4373 extern "C"
4374 #endif
4375 /* We use char because int might match the return type of a gcc2
4376    builtin and then its argument prototype would still apply.  */
4377 char gethostbyname ();
4378 int
4379 main ()
4380 {
4381 gethostbyname ();
4382   ;
4383   return 0;
4384 }
4385 _ACEOF
4386 rm -f conftest.$ac_objext conftest$ac_exeext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4388   (eval $ac_link) 2>&5
4389   ac_status=$?
4390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391   (exit $ac_status); } &&
4392          { ac_try='test -s conftest$ac_exeext'
4393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394   (eval $ac_try) 2>&5
4395   ac_status=$?
4396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397   (exit $ac_status); }; }; then
4398   ac_cv_lib_nsl_gethostbyname=yes
4399 else
4400   echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4402
4403 ac_cv_lib_nsl_gethostbyname=no
4404 fi
4405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4406 LIBS=$ac_check_lib_save_LIBS
4407 fi
4408 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4409 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4410 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4411   LIB_SOCKET="-lnsl $LIB_SOCKET"
4412 fi
4413
4414                 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4415 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4416 if test "${ac_cv_lib_socket_connect+set}" = set; then
4417   echo $ECHO_N "(cached) $ECHO_C" >&6
4418 else
4419   ac_check_lib_save_LIBS=$LIBS
4420 LIBS="-lsocket  $LIBS"
4421 cat >conftest.$ac_ext <<_ACEOF
4422 #line $LINENO "configure"
4423 /* confdefs.h.  */
4424 _ACEOF
4425 cat confdefs.h >>conftest.$ac_ext
4426 cat >>conftest.$ac_ext <<_ACEOF
4427 /* end confdefs.h.  */
4428
4429 /* Override any gcc2 internal prototype to avoid an error.  */
4430 #ifdef __cplusplus
4431 extern "C"
4432 #endif
4433 /* We use char because int might match the return type of a gcc2
4434    builtin and then its argument prototype would still apply.  */
4435 char connect ();
4436 int
4437 main ()
4438 {
4439 connect ();
4440   ;
4441   return 0;
4442 }
4443 _ACEOF
4444 rm -f conftest.$ac_objext conftest$ac_exeext
4445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4446   (eval $ac_link) 2>&5
4447   ac_status=$?
4448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449   (exit $ac_status); } &&
4450          { ac_try='test -s conftest$ac_exeext'
4451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4452   (eval $ac_try) 2>&5
4453   ac_status=$?
4454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455   (exit $ac_status); }; }; then
4456   ac_cv_lib_socket_connect=yes
4457 else
4458   echo "$as_me: failed program was:" >&5
4459 sed 's/^/| /' conftest.$ac_ext >&5
4460
4461 ac_cv_lib_socket_connect=no
4462 fi
4463 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4464 LIBS=$ac_check_lib_save_LIBS
4465 fi
4466 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4467 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4468 if test $ac_cv_lib_socket_connect = yes; then
4469   LIB_SOCKET="-lsocket $LIB_SOCKET"
4470 fi
4471
4472
4473 fi
4474
4475         LIBS="$LIB_SOCKET $save_LIBS"
4476         echo "$as_me:$LINENO: checking for res_search" >&5
4477 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
4478 if test "${ac_cv_func_res_search+set}" = set; then
4479   echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481   cat >conftest.$ac_ext <<_ACEOF
4482 #line $LINENO "configure"
4483 /* confdefs.h.  */
4484 _ACEOF
4485 cat confdefs.h >>conftest.$ac_ext
4486 cat >>conftest.$ac_ext <<_ACEOF
4487 /* end confdefs.h.  */
4488 /* System header to define __stub macros and hopefully few prototypes,
4489     which can conflict with char res_search (); below.
4490     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4491     <limits.h> exists even on freestanding compilers.  */
4492 #ifdef __STDC__
4493 # include <limits.h>
4494 #else
4495 # include <assert.h>
4496 #endif
4497 /* Override any gcc2 internal prototype to avoid an error.  */
4498 #ifdef __cplusplus
4499 extern "C"
4500 {
4501 #endif
4502 /* We use char because int might match the return type of a gcc2
4503    builtin and then its argument prototype would still apply.  */
4504 char res_search ();
4505 /* The GNU C library defines this for functions which it implements
4506     to always fail with ENOSYS.  Some functions are actually named
4507     something starting with __ and the normal name is an alias.  */
4508 #if defined (__stub_res_search) || defined (__stub___res_search)
4509 choke me
4510 #else
4511 char (*f) () = res_search;
4512 #endif
4513 #ifdef __cplusplus
4514 }
4515 #endif
4516
4517 int
4518 main ()
4519 {
4520 return f != res_search;
4521   ;
4522   return 0;
4523 }
4524 _ACEOF
4525 rm -f conftest.$ac_objext conftest$ac_exeext
4526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4527   (eval $ac_link) 2>&5
4528   ac_status=$?
4529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530   (exit $ac_status); } &&
4531          { ac_try='test -s conftest$ac_exeext'
4532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533   (eval $ac_try) 2>&5
4534   ac_status=$?
4535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536   (exit $ac_status); }; }; then
4537   ac_cv_func_res_search=yes
4538 else
4539   echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4541
4542 ac_cv_func_res_search=no
4543 fi
4544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4545 fi
4546 echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
4547 echo "${ECHO_T}$ac_cv_func_res_search" >&6
4548 if test $ac_cv_func_res_search = yes; then
4549   :
4550 else
4551   LIBS="-lresolv $LIB_SOCKET $save_LIBS"
4552                 cat >conftest.$ac_ext <<_ACEOF
4553 #line $LINENO "configure"
4554 /* confdefs.h.  */
4555 _ACEOF
4556 cat confdefs.h >>conftest.$ac_ext
4557 cat >>conftest.$ac_ext <<_ACEOF
4558 /* end confdefs.h.  */
4559
4560 #include <sys/types.h>
4561 #include <netinet/in.h>
4562 #include <arpa/nameser.h>
4563 #ifdef HAVE_ARPA_NAMESER_COMPAT_H
4564 #include <arpa/nameser_compat.h>
4565 #endif
4566 #include <resolv.h>
4567 int
4568 main ()
4569 {
4570
4571 const char host[12]="openafs.org";
4572 u_char ans[1024];
4573 res_search( host, C_IN, T_MX, (u_char *)&ans, sizeof(ans));
4574 return 0;
4575
4576   ;
4577   return 0;
4578 }
4579 _ACEOF
4580 rm -f conftest.$ac_objext conftest$ac_exeext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4582   (eval $ac_link) 2>&5
4583   ac_status=$?
4584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585   (exit $ac_status); } &&
4586          { ac_try='test -s conftest$ac_exeext'
4587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588   (eval $ac_try) 2>&5
4589   ac_status=$?
4590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591   (exit $ac_status); }; }; then
4592   LIB_SOCKET="-lresolv $LIB_SOCKET"
4593 else
4594   echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4596
4597 fi
4598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4599
4600 fi
4601
4602         LIBS="$LIB_SOCKET $save_LIBS"
4603
4604
4605 for ac_func in dn_expand dns_lookup
4606 do
4607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4608 echo "$as_me:$LINENO: checking for $ac_func" >&5
4609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4610 if eval "test \"\${$as_ac_var+set}\" = set"; then
4611   echo $ECHO_N "(cached) $ECHO_C" >&6
4612 else
4613   cat >conftest.$ac_ext <<_ACEOF
4614 #line $LINENO "configure"
4615 /* confdefs.h.  */
4616 _ACEOF
4617 cat confdefs.h >>conftest.$ac_ext
4618 cat >>conftest.$ac_ext <<_ACEOF
4619 /* end confdefs.h.  */
4620 /* System header to define __stub macros and hopefully few prototypes,
4621     which can conflict with char $ac_func (); below.
4622     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4623     <limits.h> exists even on freestanding compilers.  */
4624 #ifdef __STDC__
4625 # include <limits.h>
4626 #else
4627 # include <assert.h>
4628 #endif
4629 /* Override any gcc2 internal prototype to avoid an error.  */
4630 #ifdef __cplusplus
4631 extern "C"
4632 {
4633 #endif
4634 /* We use char because int might match the return type of a gcc2
4635    builtin and then its argument prototype would still apply.  */
4636 char $ac_func ();
4637 /* The GNU C library defines this for functions which it implements
4638     to always fail with ENOSYS.  Some functions are actually named
4639     something starting with __ and the normal name is an alias.  */
4640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4641 choke me
4642 #else
4643 char (*f) () = $ac_func;
4644 #endif
4645 #ifdef __cplusplus
4646 }
4647 #endif
4648
4649 int
4650 main ()
4651 {
4652 return f != $ac_func;
4653   ;
4654   return 0;
4655 }
4656 _ACEOF
4657 rm -f conftest.$ac_objext conftest$ac_exeext
4658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4659   (eval $ac_link) 2>&5
4660   ac_status=$?
4661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662   (exit $ac_status); } &&
4663          { ac_try='test -s conftest$ac_exeext'
4664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665   (eval $ac_try) 2>&5
4666   ac_status=$?
4667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668   (exit $ac_status); }; }; then
4669   eval "$as_ac_var=yes"
4670 else
4671   echo "$as_me: failed program was:" >&5
4672 sed 's/^/| /' conftest.$ac_ext >&5
4673
4674 eval "$as_ac_var=no"
4675 fi
4676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4677 fi
4678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4679 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4680 if test `eval echo '${'$as_ac_var'}'` = yes; then
4681   cat >>confdefs.h <<_ACEOF
4682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4683 _ACEOF
4684
4685 fi
4686 done
4687
4688         LIBS="$save_LIBS"
4689
4690
4691
4692
4693
4694 # Check whether --with-dbpath or --without-dbpath was given.
4695 if test "${with_dbpath+set}" = set; then
4696   withval="$with_dbpath"
4697   dbpath=$withval
4698 else
4699   dbpath=/etc/sasldb2
4700 fi;
4701 echo "$as_me:$LINENO: checking DB path to use" >&5
4702 echo $ECHO_N "checking DB path to use... $ECHO_C" >&6
4703 echo "$as_me:$LINENO: result: $dbpath" >&5
4704 echo "${ECHO_T}$dbpath" >&6
4705
4706 cat >>confdefs.h <<_ACEOF
4707 #define SASL_DB_PATH "$dbpath"
4708 _ACEOF
4709
4710
4711 echo "$as_me:$LINENO: checking for egrep" >&5
4712 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4713 if test "${ac_cv_prog_egrep+set}" = set; then
4714   echo $ECHO_N "(cached) $ECHO_C" >&6
4715 else
4716   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4717     then ac_cv_prog_egrep='grep -E'
4718     else ac_cv_prog_egrep='egrep'
4719     fi
4720 fi
4721 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4722 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4723  EGREP=$ac_cv_prog_egrep
4724
4725
4726 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4727 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4728 if test "${ac_cv_header_stdc+set}" = set; then
4729   echo $ECHO_N "(cached) $ECHO_C" >&6
4730 else
4731   cat >conftest.$ac_ext <<_ACEOF
4732 #line $LINENO "configure"
4733 /* confdefs.h.  */
4734 _ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h.  */
4738 #include <stdlib.h>
4739 #include <stdarg.h>
4740 #include <string.h>
4741 #include <float.h>
4742
4743 int
4744 main ()
4745 {
4746
4747   ;
4748   return 0;
4749 }
4750 _ACEOF
4751 rm -f conftest.$ac_objext
4752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4753   (eval $ac_compile) 2>&5
4754   ac_status=$?
4755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756   (exit $ac_status); } &&
4757          { ac_try='test -s conftest.$ac_objext'
4758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759   (eval $ac_try) 2>&5
4760   ac_status=$?
4761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762   (exit $ac_status); }; }; then
4763   ac_cv_header_stdc=yes
4764 else
4765   echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.$ac_ext >&5
4767
4768 ac_cv_header_stdc=no
4769 fi
4770 rm -f conftest.$ac_objext conftest.$ac_ext
4771
4772 if test $ac_cv_header_stdc = yes; then
4773   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4774   cat >conftest.$ac_ext <<_ACEOF
4775 #line $LINENO "configure"
4776 /* confdefs.h.  */
4777 _ACEOF
4778 cat confdefs.h >>conftest.$ac_ext
4779 cat >>conftest.$ac_ext <<_ACEOF
4780 /* end confdefs.h.  */
4781 #include <string.h>
4782
4783 _ACEOF
4784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4785   $EGREP "memchr" >/dev/null 2>&1; then
4786   :
4787 else
4788   ac_cv_header_stdc=no
4789 fi
4790 rm -f conftest*
4791
4792 fi
4793
4794 if test $ac_cv_header_stdc = yes; then
4795   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4796   cat >conftest.$ac_ext <<_ACEOF
4797 #line $LINENO "configure"
4798 /* confdefs.h.  */
4799 _ACEOF
4800 cat confdefs.h >>conftest.$ac_ext
4801 cat >>conftest.$ac_ext <<_ACEOF
4802 /* end confdefs.h.  */
4803 #include <stdlib.h>
4804
4805 _ACEOF
4806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4807   $EGREP "free" >/dev/null 2>&1; then
4808   :
4809 else
4810   ac_cv_header_stdc=no
4811 fi
4812 rm -f conftest*
4813
4814 fi
4815
4816 if test $ac_cv_header_stdc = yes; then
4817   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4818   if test "$cross_compiling" = yes; then
4819   :
4820 else
4821   cat >conftest.$ac_ext <<_ACEOF
4822 #line $LINENO "configure"
4823 /* confdefs.h.  */
4824 _ACEOF
4825 cat confdefs.h >>conftest.$ac_ext
4826 cat >>conftest.$ac_ext <<_ACEOF
4827 /* end confdefs.h.  */
4828 #include <ctype.h>
4829 #if ((' ' & 0x0FF) == 0x020)
4830 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4831 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4832 #else
4833 # define ISLOWER(c) \
4834                    (('a' <= (c) && (c) <= 'i') \
4835                      || ('j' <= (c) && (c) <= 'r') \
4836                      || ('s' <= (c) && (c) <= 'z'))
4837 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4838 #endif
4839
4840 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4841 int
4842 main ()
4843 {
4844   int i;
4845   for (i = 0; i < 256; i++)
4846     if (XOR (islower (i), ISLOWER (i))
4847         || toupper (i) != TOUPPER (i))
4848       exit(2);
4849   exit (0);
4850 }
4851 _ACEOF
4852 rm -f conftest$ac_exeext
4853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4854   (eval $ac_link) 2>&5
4855   ac_status=$?
4856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859   (eval $ac_try) 2>&5
4860   ac_status=$?
4861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862   (exit $ac_status); }; }; then
4863   :
4864 else
4865   echo "$as_me: program exited with status $ac_status" >&5
4866 echo "$as_me: failed program was:" >&5
4867 sed 's/^/| /' conftest.$ac_ext >&5
4868
4869 ( exit $ac_status )
4870 ac_cv_header_stdc=no
4871 fi
4872 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4873 fi
4874 fi
4875 fi
4876 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4877 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4878 if test $ac_cv_header_stdc = yes; then
4879
4880 cat >>confdefs.h <<\_ACEOF
4881 #define STDC_HEADERS 1
4882 _ACEOF
4883
4884 fi
4885
4886 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4897                   inttypes.h stdint.h unistd.h
4898 do
4899 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4900 echo "$as_me:$LINENO: checking for $ac_header" >&5
4901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4903   echo $ECHO_N "(cached) $ECHO_C" >&6
4904 else
4905   cat >conftest.$ac_ext <<_ACEOF
4906 #line $LINENO "configure"
4907 /* confdefs.h.  */
4908 _ACEOF
4909 cat confdefs.h >>conftest.$ac_ext
4910 cat >>conftest.$ac_ext <<_ACEOF
4911 /* end confdefs.h.  */
4912 $ac_includes_default
4913
4914 #include <$ac_header>
4915 _ACEOF
4916 rm -f conftest.$ac_objext
4917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4918   (eval $ac_compile) 2>&5
4919   ac_status=$?
4920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921   (exit $ac_status); } &&
4922          { ac_try='test -s conftest.$ac_objext'
4923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924   (eval $ac_try) 2>&5
4925   ac_status=$?
4926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927   (exit $ac_status); }; }; then
4928   eval "$as_ac_Header=yes"
4929 else
4930   echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4932
4933 eval "$as_ac_Header=no"
4934 fi
4935 rm -f conftest.$ac_objext conftest.$ac_ext
4936 fi
4937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4940   cat >>confdefs.h <<_ACEOF
4941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4942 _ACEOF
4943
4944 fi
4945
4946 done
4947
4948
4949
4950 cmu_save_LIBS="$LIBS"
4951
4952 # Check whether --with-dblib or --without-dblib was given.
4953 if test "${with_dblib+set}" = set; then
4954   withval="$with_dblib"
4955   dblib=$withval
4956 else
4957   dblib=auto_detect
4958 fi;
4959
4960
4961
4962 # Check whether --with-bdb-libdir or --without-bdb-libdir was given.
4963 if test "${with_bdb_libdir+set}" = set; then
4964   withval="$with_bdb_libdir"
4965   with_bdb_lib=$withval
4966 else
4967    test "${with_bdb_lib+set}" = set || with_bdb_lib=none
4968 fi;
4969
4970 # Check whether --with-bdb-incdir or --without-bdb-incdir was given.
4971 if test "${with_bdb_incdir+set}" = set; then
4972   withval="$with_bdb_incdir"
4973   with_bdb_inc=$withval
4974 else
4975    test "${with_bdb_inc+set}" = set || with_bdb_inc=none
4976 fi;
4977
4978
4979 SASL_DB_LIB=""
4980
4981 case "$dblib" in
4982   berkeley)
4983
4984
4985
4986         cmu_save_CPPFLAGS=$CPPFLAGS
4987
4988         if test -d $with_bdb_inc; then
4989             CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
4990             BDB_INCADD="-I$with_bdb_inc"
4991         else
4992             BDB_INCADD=""
4993         fi
4994
4995                         if test "${ac_cv_header_db_h+set}" = set; then
4996   echo "$as_me:$LINENO: checking for db.h" >&5
4997 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
4998 if test "${ac_cv_header_db_h+set}" = set; then
4999   echo $ECHO_N "(cached) $ECHO_C" >&6
5000 fi
5001 echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
5002 echo "${ECHO_T}$ac_cv_header_db_h" >&6
5003 else
5004   # Is the header compilable?
5005 echo "$as_me:$LINENO: checking db.h usability" >&5
5006 echo $ECHO_N "checking db.h usability... $ECHO_C" >&6
5007 cat >conftest.$ac_ext <<_ACEOF
5008 #line $LINENO "configure"
5009 /* confdefs.h.  */
5010 _ACEOF
5011 cat confdefs.h >>conftest.$ac_ext
5012 cat >>conftest.$ac_ext <<_ACEOF
5013 /* end confdefs.h.  */
5014 $ac_includes_default
5015 #include <db.h>
5016 _ACEOF
5017 rm -f conftest.$ac_objext
5018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5019   (eval $ac_compile) 2>&5
5020   ac_status=$?
5021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022   (exit $ac_status); } &&
5023          { ac_try='test -s conftest.$ac_objext'
5024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025   (eval $ac_try) 2>&5
5026   ac_status=$?
5027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028   (exit $ac_status); }; }; then
5029   ac_header_compiler=yes
5030 else
5031   echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.$ac_ext >&5
5033
5034 ac_header_compiler=no
5035 fi
5036 rm -f conftest.$ac_objext conftest.$ac_ext
5037 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5038 echo "${ECHO_T}$ac_header_compiler" >&6
5039
5040 # Is the header present?
5041 echo "$as_me:$LINENO: checking db.h presence" >&5
5042 echo $ECHO_N "checking db.h presence... $ECHO_C" >&6
5043 cat >conftest.$ac_ext <<_ACEOF
5044 #line $LINENO "configure"
5045 /* confdefs.h.  */
5046 _ACEOF
5047 cat confdefs.h >>conftest.$ac_ext
5048 cat >>conftest.$ac_ext <<_ACEOF
5049 /* end confdefs.h.  */
5050 #include <db.h>
5051 _ACEOF
5052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5053   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5054   ac_status=$?
5055   grep -v '^ *+' conftest.er1 >conftest.err
5056   rm -f conftest.er1
5057   cat conftest.err >&5
5058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059   (exit $ac_status); } >/dev/null; then
5060   if test -s conftest.err; then
5061     ac_cpp_err=$ac_c_preproc_warn_flag
5062   else
5063     ac_cpp_err=
5064   fi
5065 else
5066   ac_cpp_err=yes
5067 fi
5068 if test -z "$ac_cpp_err"; then
5069   ac_header_preproc=yes
5070 else
5071   echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5073
5074   ac_header_preproc=no
5075 fi
5076 rm -f conftest.err conftest.$ac_ext
5077 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5078 echo "${ECHO_T}$ac_header_preproc" >&6
5079
5080 # So?  What about this header?
5081 case $ac_header_compiler:$ac_header_preproc in
5082   yes:no )
5083     { echo "$as_me:$LINENO: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&5
5084 echo "$as_me: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5085     { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5
5086 echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;}
5087     (
5088       cat <<\_ASBOX
5089 ## ------------------------------------ ##
5090 ## Report this to bug-autoconf@gnu.org. ##
5091 ## ------------------------------------ ##
5092 _ASBOX
5093     ) |
5094       sed "s/^/$as_me: WARNING:     /" >&2
5095     ;;
5096   no:yes )
5097     { echo "$as_me:$LINENO: WARNING: db.h: present but cannot be compiled" >&5
5098 echo "$as_me: WARNING: db.h: present but cannot be compiled" >&2;}
5099     { echo "$as_me:$LINENO: WARNING: db.h: check for missing prerequisite headers?" >&5
5100 echo "$as_me: WARNING: db.h: check for missing prerequisite headers?" >&2;}
5101     { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5
5102 echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;}
5103     (
5104       cat <<\_ASBOX
5105 ## ------------------------------------ ##
5106 ## Report this to bug-autoconf@gnu.org. ##
5107 ## ------------------------------------ ##
5108 _ASBOX
5109     ) |
5110       sed "s/^/$as_me: WARNING:     /" >&2
5111     ;;
5112 esac
5113 echo "$as_me:$LINENO: checking for db.h" >&5
5114 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
5115 if test "${ac_cv_header_db_h+set}" = set; then
5116   echo $ECHO_N "(cached) $ECHO_C" >&6
5117 else
5118   ac_cv_header_db_h=$ac_header_preproc
5119 fi
5120 echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
5121 echo "${ECHO_T}$ac_cv_header_db_h" >&6
5122
5123 fi
5124 if test $ac_cv_header_db_h = yes; then
5125
5126         BDB_SAVE_LDFLAGS=$LDFLAGS
5127
5128         if test -d $with_bdb_lib; then
5129
5130   # this is CMU ADD LIBPATH TO
5131   if test "$andrew_runpath_switch" = "none" ; then
5132         LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
5133   else
5134         LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
5135   fi
5136
5137
5138   # this is CMU ADD LIBPATH TO
5139   if test "$andrew_runpath_switch" = "none" ; then
5140         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
5141   else
5142         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
5143   fi
5144
5145         else
5146             BDB_LIBADD=""
5147         fi
5148
5149         saved_LIBS=$LIBS
5150         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
5151           do
5152             LIBS="$saved_LIBS -l$dbname"
5153             cat >conftest.$ac_ext <<_ACEOF
5154 #line $LINENO "configure"
5155 /* confdefs.h.  */
5156 _ACEOF
5157 cat confdefs.h >>conftest.$ac_ext
5158 cat >>conftest.$ac_ext <<_ACEOF
5159 /* end confdefs.h.  */
5160 #include <db.h>
5161 int
5162 main ()
5163 {
5164 db_create(NULL, NULL, 0);
5165   ;
5166   return 0;
5167 }
5168 _ACEOF
5169 rm -f conftest.$ac_objext conftest$ac_exeext
5170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5171   (eval $ac_link) 2>&5
5172   ac_status=$?
5173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174   (exit $ac_status); } &&
5175          { ac_try='test -s conftest$ac_exeext'
5176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5177   (eval $ac_try) 2>&5
5178   ac_status=$?
5179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180   (exit $ac_status); }; }; then
5181   BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
5182 else
5183   echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5185
5186 dblib="no"
5187 fi
5188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5189             if test "$dblib" = "berkeley"; then break; fi
5190           done
5191         if test "$dblib" = "no"; then
5192             LIBS="$saved_LIBS -ldb"
5193             cat >conftest.$ac_ext <<_ACEOF
5194 #line $LINENO "configure"
5195 /* confdefs.h.  */
5196 _ACEOF
5197 cat confdefs.h >>conftest.$ac_ext
5198 cat >>conftest.$ac_ext <<_ACEOF
5199 /* end confdefs.h.  */
5200 #include <db.h>
5201 int
5202 main ()
5203 {
5204 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
5205   ;
5206   return 0;
5207 }
5208 _ACEOF
5209 rm -f conftest.$ac_objext conftest$ac_exeext
5210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5211   (eval $ac_link) 2>&5
5212   ac_status=$?
5213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214   (exit $ac_status); } &&
5215          { ac_try='test -s conftest$ac_exeext'
5216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217   (eval $ac_try) 2>&5
5218   ac_status=$?
5219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220   (exit $ac_status); }; }; then
5221   BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
5222 else
5223   echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5225
5226 dblib="no"
5227 fi
5228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5229         fi
5230         LIBS=$saved_LIBS
5231
5232         LDFLAGS=$BDB_SAVE_LDFLAGS
5233
5234 else
5235   dblib="no"
5236 fi
5237
5238
5239
5240         CPPFLAGS=$cmu_save_CPPFLAGS
5241
5242         CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
5243         SASL_DB_INC=$BDB_INCADD
5244         SASL_DB_LIB="${BDB_LIBADD}"
5245         ;;
5246   gdbm)
5247
5248 # Check whether --with-gdbm or --without-gdbm was given.
5249 if test "${with_gdbm+set}" = set; then
5250   withval="$with_gdbm"
5251   with_gdbm="${withval}"
5252 fi;
5253
5254         case "$with_gdbm" in
5255            ""|yes)
5256                if test "${ac_cv_header_gdbm_h+set}" = set; then
5257   echo "$as_me:$LINENO: checking for gdbm.h" >&5
5258 echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6
5259 if test "${ac_cv_header_gdbm_h+set}" = set; then
5260   echo $ECHO_N "(cached) $ECHO_C" >&6
5261 fi
5262 echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
5263 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6
5264 else
5265   # Is the header compilable?
5266 echo "$as_me:$LINENO: checking gdbm.h usability" >&5
5267 echo $ECHO_N "checking gdbm.h usability... $ECHO_C" >&6
5268 cat >conftest.$ac_ext <<_ACEOF
5269 #line $LINENO "configure"
5270 /* confdefs.h.  */
5271 _ACEOF
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h.  */
5275 $ac_includes_default
5276 #include <gdbm.h>
5277 _ACEOF
5278 rm -f conftest.$ac_objext
5279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5280   (eval $ac_compile) 2>&5
5281   ac_status=$?
5282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283   (exit $ac_status); } &&
5284          { ac_try='test -s conftest.$ac_objext'
5285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286   (eval $ac_try) 2>&5
5287   ac_status=$?
5288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289   (exit $ac_status); }; }; then
5290   ac_header_compiler=yes
5291 else
5292   echo "$as_me: failed program was:" >&5
5293 sed 's/^/| /' conftest.$ac_ext >&5
5294
5295 ac_header_compiler=no
5296 fi
5297 rm -f conftest.$ac_objext conftest.$ac_ext
5298 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5299 echo "${ECHO_T}$ac_header_compiler" >&6
5300
5301 # Is the header present?
5302 echo "$as_me:$LINENO: checking gdbm.h presence" >&5
5303 echo $ECHO_N "checking gdbm.h presence... $ECHO_C" >&6
5304 cat >conftest.$ac_ext <<_ACEOF
5305 #line $LINENO "configure"
5306 /* confdefs.h.  */
5307 _ACEOF
5308 cat confdefs.h >>conftest.$ac_ext
5309 cat >>conftest.$ac_ext <<_ACEOF
5310 /* end confdefs.h.  */
5311 #include <gdbm.h>
5312 _ACEOF
5313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5314   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5315   ac_status=$?
5316   grep -v '^ *+' conftest.er1 >conftest.err
5317   rm -f conftest.er1
5318   cat conftest.err >&5
5319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320   (exit $ac_status); } >/dev/null; then
5321   if test -s conftest.err; then
5322     ac_cpp_err=$ac_c_preproc_warn_flag
5323   else
5324     ac_cpp_err=
5325   fi
5326 else
5327   ac_cpp_err=yes
5328 fi
5329 if test -z "$ac_cpp_err"; then
5330   ac_header_preproc=yes
5331 else
5332   echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5334
5335   ac_header_preproc=no
5336 fi
5337 rm -f conftest.err conftest.$ac_ext
5338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5339 echo "${ECHO_T}$ac_header_preproc" >&6
5340
5341 # So?  What about this header?
5342 case $ac_header_compiler:$ac_header_preproc in
5343   yes:no )
5344     { echo "$as_me:$LINENO: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
5345 echo "$as_me: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5346     { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5
5347 echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;}
5348     (
5349       cat <<\_ASBOX
5350 ## ------------------------------------ ##
5351 ## Report this to bug-autoconf@gnu.org. ##
5352 ## ------------------------------------ ##
5353 _ASBOX
5354     ) |
5355       sed "s/^/$as_me: WARNING:     /" >&2
5356     ;;
5357   no:yes )
5358     { echo "$as_me:$LINENO: WARNING: gdbm.h: present but cannot be compiled" >&5
5359 echo "$as_me: WARNING: gdbm.h: present but cannot be compiled" >&2;}
5360     { echo "$as_me:$LINENO: WARNING: gdbm.h: check for missing prerequisite headers?" >&5
5361 echo "$as_me: WARNING: gdbm.h: check for missing prerequisite headers?" >&2;}
5362     { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5
5363 echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;}
5364     (
5365       cat <<\_ASBOX
5366 ## ------------------------------------ ##
5367 ## Report this to bug-autoconf@gnu.org. ##
5368 ## ------------------------------------ ##
5369 _ASBOX
5370     ) |
5371       sed "s/^/$as_me: WARNING:     /" >&2
5372     ;;
5373 esac
5374 echo "$as_me:$LINENO: checking for gdbm.h" >&5
5375 echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6
5376 if test "${ac_cv_header_gdbm_h+set}" = set; then
5377   echo $ECHO_N "(cached) $ECHO_C" >&6
5378 else
5379   ac_cv_header_gdbm_h=$ac_header_preproc
5380 fi
5381 echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
5382 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6
5383
5384 fi
5385 if test $ac_cv_header_gdbm_h = yes; then
5386
5387                         echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
5388 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
5389 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
5390   echo $ECHO_N "(cached) $ECHO_C" >&6
5391 else
5392   ac_check_lib_save_LIBS=$LIBS
5393 LIBS="-lgdbm  $LIBS"
5394 cat >conftest.$ac_ext <<_ACEOF
5395 #line $LINENO "configure"
5396 /* confdefs.h.  */
5397 _ACEOF
5398 cat confdefs.h >>conftest.$ac_ext
5399 cat >>conftest.$ac_ext <<_ACEOF
5400 /* end confdefs.h.  */
5401
5402 /* Override any gcc2 internal prototype to avoid an error.  */
5403 #ifdef __cplusplus
5404 extern "C"
5405 #endif
5406 /* We use char because int might match the return type of a gcc2
5407    builtin and then its argument prototype would still apply.  */
5408 char gdbm_open ();
5409 int
5410 main ()
5411 {
5412 gdbm_open ();
5413   ;
5414   return 0;
5415 }
5416 _ACEOF
5417 rm -f conftest.$ac_objext conftest$ac_exeext
5418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5419   (eval $ac_link) 2>&5
5420   ac_status=$?
5421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422   (exit $ac_status); } &&
5423          { ac_try='test -s conftest$ac_exeext'
5424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5425   (eval $ac_try) 2>&5
5426   ac_status=$?
5427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428   (exit $ac_status); }; }; then
5429   ac_cv_lib_gdbm_gdbm_open=yes
5430 else
5431   echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5433
5434 ac_cv_lib_gdbm_gdbm_open=no
5435 fi
5436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5437 LIBS=$ac_check_lib_save_LIBS
5438 fi
5439 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
5440 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
5441 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
5442   SASL_DB_LIB="-lgdbm"
5443 else
5444   dblib="no"
5445 fi
5446
5447 else
5448   dblib="no"
5449 fi
5450
5451
5452                ;;
5453            *)
5454                if test -d $with_gdbm; then
5455                  CPPFLAGS="${CPPFLAGS} -I${with_gdbm}/include"
5456                  LDFLAGS="${LDFLAGS} -L${with_gdbm}/lib"
5457                  SASL_DB_LIB="-lgdbm"
5458                else
5459                  with_gdbm="no"
5460                fi
5461        esac
5462         ;;
5463   ndbm)
5464                         if test "${ac_cv_header_ndbm_h+set}" = set; then
5465   echo "$as_me:$LINENO: checking for ndbm.h" >&5
5466 echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6
5467 if test "${ac_cv_header_ndbm_h+set}" = set; then
5468   echo $ECHO_N "(cached) $ECHO_C" >&6
5469 fi
5470 echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
5471 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6
5472 else
5473   # Is the header compilable?
5474 echo "$as_me:$LINENO: checking ndbm.h usability" >&5
5475 echo $ECHO_N "checking ndbm.h usability... $ECHO_C" >&6
5476 cat >conftest.$ac_ext <<_ACEOF
5477 #line $LINENO "configure"
5478 /* confdefs.h.  */
5479 _ACEOF
5480 cat confdefs.h >>conftest.$ac_ext
5481 cat >>conftest.$ac_ext <<_ACEOF
5482 /* end confdefs.h.  */
5483 $ac_includes_default
5484 #include <ndbm.h>
5485 _ACEOF
5486 rm -f conftest.$ac_objext
5487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5488   (eval $ac_compile) 2>&5
5489   ac_status=$?
5490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491   (exit $ac_status); } &&
5492          { ac_try='test -s conftest.$ac_objext'
5493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494   (eval $ac_try) 2>&5
5495   ac_status=$?
5496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497   (exit $ac_status); }; }; then
5498   ac_header_compiler=yes
5499 else
5500   echo "$as_me: failed program was:" >&5
5501 sed 's/^/| /' conftest.$ac_ext >&5
5502
5503 ac_header_compiler=no
5504 fi
5505 rm -f conftest.$ac_objext conftest.$ac_ext
5506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5507 echo "${ECHO_T}$ac_header_compiler" >&6
5508
5509 # Is the header present?
5510 echo "$as_me:$LINENO: checking ndbm.h presence" >&5
5511 echo $ECHO_N "checking ndbm.h presence... $ECHO_C" >&6
5512 cat >conftest.$ac_ext <<_ACEOF
5513 #line $LINENO "configure"
5514 /* confdefs.h.  */
5515 _ACEOF
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h.  */
5519 #include <ndbm.h>
5520 _ACEOF
5521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5522   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5523   ac_status=$?
5524   grep -v '^ *+' conftest.er1 >conftest.err
5525   rm -f conftest.er1
5526   cat conftest.err >&5
5527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528   (exit $ac_status); } >/dev/null; then
5529   if test -s conftest.err; then
5530     ac_cpp_err=$ac_c_preproc_warn_flag
5531   else
5532     ac_cpp_err=
5533   fi
5534 else
5535   ac_cpp_err=yes
5536 fi
5537 if test -z "$ac_cpp_err"; then
5538   ac_header_preproc=yes
5539 else
5540   echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5542
5543   ac_header_preproc=no
5544 fi
5545 rm -f conftest.err conftest.$ac_ext
5546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5547 echo "${ECHO_T}$ac_header_preproc" >&6
5548
5549 # So?  What about this header?
5550 case $ac_header_compiler:$ac_header_preproc in
5551   yes:no )
5552     { echo "$as_me:$LINENO: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
5553 echo "$as_me: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5554     { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the preprocessor's result" >&5
5555 echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result" >&2;}
5556     (
5557       cat <<\_ASBOX
5558 ## ------------------------------------ ##
5559 ## Report this to bug-autoconf@gnu.org. ##
5560 ## ------------------------------------ ##
5561 _ASBOX
5562     ) |
5563       sed "s/^/$as_me: WARNING:     /" >&2
5564     ;;
5565   no:yes )
5566     { echo "$as_me:$LINENO: WARNING: ndbm.h: present but cannot be compiled" >&5
5567 echo "$as_me: WARNING: ndbm.h: present but cannot be compiled" >&2;}
5568     { echo "$as_me:$LINENO: WARNING: ndbm.h: check for missing prerequisite headers?" >&5
5569 echo "$as_me: WARNING: ndbm.h: check for missing prerequisite headers?" >&2;}
5570     { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the preprocessor's result" >&5
5571 echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result" >&2;}
5572     (
5573       cat <<\_ASBOX
5574 ## ------------------------------------ ##
5575 ## Report this to bug-autoconf@gnu.org. ##
5576 ## ------------------------------------ ##
5577 _ASBOX
5578     ) |
5579       sed "s/^/$as_me: WARNING:     /" >&2
5580     ;;
5581 esac
5582 echo "$as_me:$LINENO: checking for ndbm.h" >&5
5583 echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6
5584 if test "${ac_cv_header_ndbm_h+set}" = set; then
5585   echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587   ac_cv_header_ndbm_h=$ac_header_preproc
5588 fi
5589 echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
5590 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6
5591
5592 fi
5593 if test $ac_cv_header_ndbm_h = yes; then
5594
5595                         echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
5596 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
5597 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
5598   echo $ECHO_N "(cached) $ECHO_C" >&6
5599 else
5600   ac_check_lib_save_LIBS=$LIBS
5601 LIBS="-lndbm  $LIBS"
5602 cat >conftest.$ac_ext <<_ACEOF
5603 #line $LINENO "configure"
5604 /* confdefs.h.  */
5605 _ACEOF
5606 cat confdefs.h >>conftest.$ac_ext
5607 cat >>conftest.$ac_ext <<_ACEOF
5608 /* end confdefs.h.  */
5609
5610 /* Override any gcc2 internal prototype to avoid an error.  */
5611 #ifdef __cplusplus
5612 extern "C"
5613 #endif
5614 /* We use char because int might match the return type of a gcc2
5615    builtin and then its argument prototype would still apply.  */
5616 char dbm_open ();
5617 int
5618 main ()
5619 {
5620 dbm_open ();
5621   ;
5622   return 0;
5623 }
5624 _ACEOF
5625 rm -f conftest.$ac_objext conftest$ac_exeext
5626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5627   (eval $ac_link) 2>&5
5628   ac_status=$?
5629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630   (exit $ac_status); } &&
5631          { ac_try='test -s conftest$ac_exeext'
5632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5633   (eval $ac_try) 2>&5
5634   ac_status=$?
5635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636   (exit $ac_status); }; }; then
5637   ac_cv_lib_ndbm_dbm_open=yes
5638 else
5639   echo "$as_me: failed program was:" >&5
5640 sed 's/^/| /' conftest.$ac_ext >&5
5641
5642 ac_cv_lib_ndbm_dbm_open=no
5643 fi
5644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5645 LIBS=$ac_check_lib_save_LIBS
5646 fi
5647 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
5648 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
5649 if test $ac_cv_lib_ndbm_dbm_open = yes; then
5650   SASL_DB_LIB="-lndbm"
5651 else
5652
5653                                 echo "$as_me:$LINENO: checking for dbm_open" >&5
5654 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
5655 if test "${ac_cv_func_dbm_open+set}" = set; then
5656   echo $ECHO_N "(cached) $ECHO_C" >&6
5657 else
5658   cat >conftest.$ac_ext <<_ACEOF
5659 #line $LINENO "configure"
5660 /* confdefs.h.  */
5661 _ACEOF
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h.  */
5665 /* System header to define __stub macros and hopefully few prototypes,
5666     which can conflict with char dbm_open (); below.
5667     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5668     <limits.h> exists even on freestanding compilers.  */
5669 #ifdef __STDC__
5670 # include <limits.h>
5671 #else
5672 # include <assert.h>
5673 #endif
5674 /* Override any gcc2 internal prototype to avoid an error.  */
5675 #ifdef __cplusplus
5676 extern "C"
5677 {
5678 #endif
5679 /* We use char because int might match the return type of a gcc2
5680    builtin and then its argument prototype would still apply.  */
5681 char dbm_open ();
5682 /* The GNU C library defines this for functions which it implements
5683     to always fail with ENOSYS.  Some functions are actually named
5684     something starting with __ and the normal name is an alias.  */
5685 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
5686 choke me
5687 #else
5688 char (*f) () = dbm_open;
5689 #endif
5690 #ifdef __cplusplus
5691 }
5692 #endif
5693
5694 int
5695 main ()
5696 {
5697 return f != dbm_open;
5698   ;
5699   return 0;
5700 }
5701 _ACEOF
5702 rm -f conftest.$ac_objext conftest$ac_exeext
5703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5704   (eval $ac_link) 2>&5
5705   ac_status=$?
5706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707   (exit $ac_status); } &&
5708          { ac_try='test -s conftest$ac_exeext'
5709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710   (eval $ac_try) 2>&5
5711   ac_status=$?
5712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713   (exit $ac_status); }; }; then
5714   ac_cv_func_dbm_open=yes
5715 else
5716   echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.$ac_ext >&5
5718
5719 ac_cv_func_dbm_open=no
5720 fi
5721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5722 fi
5723 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
5724 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
5725 if test $ac_cv_func_dbm_open = yes; then
5726   :
5727 else
5728   dblib="no"
5729 fi
5730
5731 fi
5732
5733 else
5734   dblib="no"
5735 fi
5736
5737
5738         ;;
5739   auto_detect)
5740
5741
5742
5743         cmu_save_CPPFLAGS=$CPPFLAGS
5744
5745         if test -d $with_bdb_inc; then
5746             CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
5747             BDB_INCADD="-I$with_bdb_inc"
5748         else
5749             BDB_INCADD=""
5750         fi
5751
5752                         if test "${ac_cv_header_db_h+set}" = set; then
5753   echo "$as_me:$LINENO: checking for db.h" >&5
5754 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
5755 if test "${ac_cv_header_db_h+set}" = set; then
5756   echo $ECHO_N "(cached) $ECHO_C" >&6
5757 fi
5758 echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
5759 echo "${ECHO_T}$ac_cv_header_db_h" >&6
5760 else
5761   # Is the header compilable?
5762 echo "$as_me:$LINENO: checking db.h usability" >&5
5763 echo $ECHO_N "checking db.h usability... $ECHO_C" >&6
5764 cat >conftest.$ac_ext <<_ACEOF
5765 #line $LINENO "configure"
5766 /* confdefs.h.  */
5767 _ACEOF
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h.  */
5771 $ac_includes_default
5772 #include <db.h>
5773 _ACEOF
5774 rm -f conftest.$ac_objext
5775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5776   (eval $ac_compile) 2>&5
5777   ac_status=$?
5778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779   (exit $ac_status); } &&
5780          { ac_try='test -s conftest.$ac_objext'
5781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782   (eval $ac_try) 2>&5
5783   ac_status=$?
5784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785   (exit $ac_status); }; }; then
5786   ac_header_compiler=yes
5787 else
5788   echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5790
5791 ac_header_compiler=no
5792 fi
5793 rm -f conftest.$ac_objext conftest.$ac_ext
5794 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5795 echo "${ECHO_T}$ac_header_compiler" >&6
5796
5797 # Is the header present?
5798 echo "$as_me:$LINENO: checking db.h presence" >&5
5799 echo $ECHO_N "checking db.h presence... $ECHO_C" >&6
5800 cat >conftest.$ac_ext <<_ACEOF
5801 #line $LINENO "configure"
5802 /* confdefs.h.  */
5803 _ACEOF
5804 cat confdefs.h >>conftest.$ac_ext
5805 cat >>conftest.$ac_ext <<_ACEOF
5806 /* end confdefs.h.  */
5807 #include <db.h>
5808 _ACEOF
5809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5810   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5811   ac_status=$?
5812   grep -v '^ *+' conftest.er1 >conftest.err
5813   rm -f conftest.er1
5814   cat conftest.err >&5
5815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816   (exit $ac_status); } >/dev/null; then
5817   if test -s conftest.err; then
5818     ac_cpp_err=$ac_c_preproc_warn_flag
5819   else
5820     ac_cpp_err=
5821   fi
5822 else
5823   ac_cpp_err=yes
5824 fi
5825 if test -z "$ac_cpp_err"; then
5826   ac_header_preproc=yes
5827 else
5828   echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5830
5831   ac_header_preproc=no
5832 fi
5833 rm -f conftest.err conftest.$ac_ext
5834 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5835 echo "${ECHO_T}$ac_header_preproc" >&6
5836
5837 # So?  What about this header?
5838 case $ac_header_compiler:$ac_header_preproc in
5839   yes:no )
5840     { echo "$as_me:$LINENO: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&5
5841 echo "$as_me: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5842     { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5
5843 echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;}
5844     (
5845       cat <<\_ASBOX
5846 ## ------------------------------------ ##
5847 ## Report this to bug-autoconf@gnu.org. ##
5848 ## ------------------------------------ ##
5849 _ASBOX
5850     ) |
5851       sed "s/^/$as_me: WARNING:     /" >&2
5852     ;;
5853   no:yes )
5854     { echo "$as_me:$LINENO: WARNING: db.h: present but cannot be compiled" >&5
5855 echo "$as_me: WARNING: db.h: present but cannot be compiled" >&2;}
5856     { echo "$as_me:$LINENO: WARNING: db.h: check for missing prerequisite headers?" >&5
5857 echo "$as_me: WARNING: db.h: check for missing prerequisite headers?" >&2;}
5858     { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5
5859 echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;}
5860     (
5861       cat <<\_ASBOX
5862 ## ------------------------------------ ##
5863 ## Report this to bug-autoconf@gnu.org. ##
5864 ## ------------------------------------ ##
5865 _ASBOX
5866     ) |
5867       sed "s/^/$as_me: WARNING:     /" >&2
5868     ;;
5869 esac
5870 echo "$as_me:$LINENO: checking for db.h" >&5
5871 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
5872 if test "${ac_cv_header_db_h+set}" = set; then
5873   echo $ECHO_N "(cached) $ECHO_C" >&6
5874 else
5875   ac_cv_header_db_h=$ac_header_preproc
5876 fi
5877 echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
5878 echo "${ECHO_T}$ac_cv_header_db_h" >&6
5879
5880 fi
5881 if test $ac_cv_header_db_h = yes; then
5882
5883         BDB_SAVE_LDFLAGS=$LDFLAGS
5884
5885         if test -d $with_bdb_lib; then
5886
5887   # this is CMU ADD LIBPATH TO
5888   if test "$andrew_runpath_switch" = "none" ; then
5889         LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
5890   else
5891         LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
5892   fi
5893
5894
5895   # this is CMU ADD LIBPATH TO
5896   if test "$andrew_runpath_switch" = "none" ; then
5897         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
5898   else
5899         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
5900   fi
5901
5902         else
5903             BDB_LIBADD=""
5904         fi
5905
5906         saved_LIBS=$LIBS
5907         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
5908           do
5909             LIBS="$saved_LIBS -l$dbname"
5910             cat >conftest.$ac_ext <<_ACEOF
5911 #line $LINENO "configure"
5912 /* confdefs.h.  */
5913 _ACEOF
5914 cat confdefs.h >>conftest.$ac_ext
5915 cat >>conftest.$ac_ext <<_ACEOF
5916 /* end confdefs.h.  */
5917 #include <db.h>
5918 int
5919 main ()
5920 {
5921 db_create(NULL, NULL, 0);
5922   ;
5923   return 0;
5924 }
5925 _ACEOF
5926 rm -f conftest.$ac_objext conftest$ac_exeext
5927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5928   (eval $ac_link) 2>&5
5929   ac_status=$?
5930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931   (exit $ac_status); } &&
5932          { ac_try='test -s conftest$ac_exeext'
5933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5934   (eval $ac_try) 2>&5
5935   ac_status=$?
5936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937   (exit $ac_status); }; }; then
5938   BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
5939 else
5940   echo "$as_me: failed program was:" >&5
5941 sed 's/^/| /' conftest.$ac_ext >&5
5942
5943 dblib="no"
5944 fi
5945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5946             if test "$dblib" = "berkeley"; then break; fi
5947           done
5948         if test "$dblib" = "no"; then
5949             LIBS="$saved_LIBS -ldb"
5950             cat >conftest.$ac_ext <<_ACEOF
5951 #line $LINENO "configure"
5952 /* confdefs.h.  */
5953 _ACEOF
5954 cat confdefs.h >>conftest.$ac_ext
5955 cat >>conftest.$ac_ext <<_ACEOF
5956 /* end confdefs.h.  */
5957 #include <db.h>
5958 int
5959 main ()
5960 {
5961 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
5962   ;
5963   return 0;
5964 }
5965 _ACEOF
5966 rm -f conftest.$ac_objext conftest$ac_exeext
5967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5968   (eval $ac_link) 2>&5
5969   ac_status=$?
5970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971   (exit $ac_status); } &&
5972          { ac_try='test -s conftest$ac_exeext'
5973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974   (eval $ac_try) 2>&5
5975   ac_status=$?
5976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977   (exit $ac_status); }; }; then
5978   BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
5979 else
5980   echo "$as_me: failed program was:" >&5
5981 sed 's/^/| /' conftest.$ac_ext >&5
5982
5983 dblib="no"
5984 fi
5985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5986         fi
5987         LIBS=$saved_LIBS
5988
5989         LDFLAGS=$BDB_SAVE_LDFLAGS
5990
5991 else
5992   dblib="no"
5993 fi
5994
5995
5996
5997         CPPFLAGS=$cmu_save_CPPFLAGS
5998
5999         if test "$dblib" = no; then
6000                   if test "${ac_cv_header_ndbm_h+set}" = set; then
6001   echo "$as_me:$LINENO: checking for ndbm.h" >&5
6002 echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6
6003 if test "${ac_cv_header_ndbm_h+set}" = set; then
6004   echo $ECHO_N "(cached) $ECHO_C" >&6
6005 fi
6006 echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
6007 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6
6008 else
6009   # Is the header compilable?
6010 echo "$as_me:$LINENO: checking ndbm.h usability" >&5
6011 echo $ECHO_N "checking ndbm.h usability... $ECHO_C" >&6
6012 cat >conftest.$ac_ext <<_ACEOF
6013 #line $LINENO "configure"
6014 /* confdefs.h.  */
6015 _ACEOF
6016 cat confdefs.h >>conftest.$ac_ext
6017 cat >>conftest.$ac_ext <<_ACEOF
6018 /* end confdefs.h.  */
6019 $ac_includes_default
6020 #include <ndbm.h>
6021 _ACEOF
6022 rm -f conftest.$ac_objext
6023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6024   (eval $ac_compile) 2>&5
6025   ac_status=$?
6026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027   (exit $ac_status); } &&
6028          { ac_try='test -s conftest.$ac_objext'
6029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030   (eval $ac_try) 2>&5
6031   ac_status=$?
6032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033   (exit $ac_status); }; }; then
6034   ac_header_compiler=yes
6035 else
6036   echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6038
6039 ac_header_compiler=no
6040 fi
6041 rm -f conftest.$ac_objext conftest.$ac_ext
6042 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6043 echo "${ECHO_T}$ac_header_compiler" >&6
6044
6045 # Is the header present?
6046 echo "$as_me:$LINENO: checking ndbm.h presence" >&5
6047 echo $ECHO_N "checking ndbm.h presence... $ECHO_C" >&6
6048 cat >conftest.$ac_ext <<_ACEOF
6049 #line $LINENO "configure"
6050 /* confdefs.h.  */
6051 _ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h.  */
6055 #include <ndbm.h>
6056 _ACEOF
6057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6058   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6059   ac_status=$?
6060   grep -v '^ *+' conftest.er1 >conftest.err
6061   rm -f conftest.er1
6062   cat conftest.err >&5
6063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064   (exit $ac_status); } >/dev/null; then
6065   if test -s conftest.err; then
6066     ac_cpp_err=$ac_c_preproc_warn_flag
6067   else
6068     ac_cpp_err=
6069   fi
6070 else
6071   ac_cpp_err=yes
6072 fi
6073 if test -z "$ac_cpp_err"; then
6074   ac_header_preproc=yes
6075 else
6076   echo "$as_me: failed program was:" >&5
6077 sed 's/^/| /' conftest.$ac_ext >&5
6078
6079   ac_header_preproc=no
6080 fi
6081 rm -f conftest.err conftest.$ac_ext
6082 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6083 echo "${ECHO_T}$ac_header_preproc" >&6
6084
6085 # So?  What about this header?
6086 case $ac_header_compiler:$ac_header_preproc in
6087   yes:no )
6088     { echo "$as_me:$LINENO: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
6089 echo "$as_me: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6090     { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the preprocessor's result" >&5
6091 echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result" >&2;}
6092     (
6093       cat <<\_ASBOX
6094 ## ------------------------------------ ##
6095 ## Report this to bug-autoconf@gnu.org. ##
6096 ## ------------------------------------ ##
6097 _ASBOX
6098     ) |
6099       sed "s/^/$as_me: WARNING:     /" >&2
6100     ;;
6101   no:yes )
6102     { echo "$as_me:$LINENO: WARNING: ndbm.h: present but cannot be compiled" >&5
6103 echo "$as_me: WARNING: ndbm.h: present but cannot be compiled" >&2;}
6104     { echo "$as_me:$LINENO: WARNING: ndbm.h: check for missing prerequisite headers?" >&5
6105 echo "$as_me: WARNING: ndbm.h: check for missing prerequisite headers?" >&2;}
6106     { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the preprocessor's result" >&5
6107 echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result" >&2;}
6108     (
6109       cat <<\_ASBOX
6110 ## ------------------------------------ ##
6111 ## Report this to bug-autoconf@gnu.org. ##
6112 ## ------------------------------------ ##
6113 _ASBOX
6114     ) |
6115       sed "s/^/$as_me: WARNING:     /" >&2
6116     ;;
6117 esac
6118 echo "$as_me:$LINENO: checking for ndbm.h" >&5
6119 echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6
6120 if test "${ac_cv_header_ndbm_h+set}" = set; then
6121   echo $ECHO_N "(cached) $ECHO_C" >&6
6122 else
6123   ac_cv_header_ndbm_h=$ac_header_preproc
6124 fi
6125 echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
6126 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6
6127
6128 fi
6129 if test $ac_cv_header_ndbm_h = yes; then
6130
6131                 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
6132 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
6133 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
6134   echo $ECHO_N "(cached) $ECHO_C" >&6
6135 else
6136   ac_check_lib_save_LIBS=$LIBS
6137 LIBS="-lndbm  $LIBS"
6138 cat >conftest.$ac_ext <<_ACEOF
6139 #line $LINENO "configure"
6140 /* confdefs.h.  */
6141 _ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h.  */
6145
6146 /* Override any gcc2 internal prototype to avoid an error.  */
6147 #ifdef __cplusplus
6148 extern "C"
6149 #endif
6150 /* We use char because int might match the return type of a gcc2
6151    builtin and then its argument prototype would still apply.  */
6152 char dbm_open ();
6153 int
6154 main ()
6155 {
6156 dbm_open ();
6157   ;
6158   return 0;
6159 }
6160 _ACEOF
6161 rm -f conftest.$ac_objext conftest$ac_exeext
6162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6163   (eval $ac_link) 2>&5
6164   ac_status=$?
6165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166   (exit $ac_status); } &&
6167          { ac_try='test -s conftest$ac_exeext'
6168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6169   (eval $ac_try) 2>&5
6170   ac_status=$?
6171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172   (exit $ac_status); }; }; then
6173   ac_cv_lib_ndbm_dbm_open=yes
6174 else
6175   echo "$as_me: failed program was:" >&5
6176 sed 's/^/| /' conftest.$ac_ext >&5
6177
6178 ac_cv_lib_ndbm_dbm_open=no
6179 fi
6180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6181 LIBS=$ac_check_lib_save_LIBS
6182 fi
6183 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
6184 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
6185 if test $ac_cv_lib_ndbm_dbm_open = yes; then
6186   dblib="ndbm"; SASL_DB_LIB="-lndbm"
6187 else
6188   dblib="weird"
6189 fi
6190
6191 else
6192   dblib="no"
6193 fi
6194
6195
6196           if test "$dblib" = "weird"; then
6197                         echo "$as_me:$LINENO: checking for dbm_open" >&5
6198 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
6199 if test "${ac_cv_func_dbm_open+set}" = set; then
6200   echo $ECHO_N "(cached) $ECHO_C" >&6
6201 else
6202   cat >conftest.$ac_ext <<_ACEOF
6203 #line $LINENO "configure"
6204 /* confdefs.h.  */
6205 _ACEOF
6206 cat confdefs.h >>conftest.$ac_ext
6207 cat >>conftest.$ac_ext <<_ACEOF
6208 /* end confdefs.h.  */
6209 /* System header to define __stub macros and hopefully few prototypes,
6210     which can conflict with char dbm_open (); below.
6211     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6212     <limits.h> exists even on freestanding compilers.  */
6213 #ifdef __STDC__
6214 # include <limits.h>
6215 #else
6216 # include <assert.h>
6217 #endif
6218 /* Override any gcc2 internal prototype to avoid an error.  */
6219 #ifdef __cplusplus
6220 extern "C"
6221 {
6222 #endif
6223 /* We use char because int might match the return type of a gcc2
6224    builtin and then its argument prototype would still apply.  */
6225 char dbm_open ();
6226 /* The GNU C library defines this for functions which it implements
6227     to always fail with ENOSYS.  Some functions are actually named
6228     something starting with __ and the normal name is an alias.  */
6229 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
6230 choke me
6231 #else
6232 char (*f) () = dbm_open;
6233 #endif
6234 #ifdef __cplusplus
6235 }
6236 #endif
6237
6238 int
6239 main ()
6240 {
6241 return f != dbm_open;
6242   ;
6243   return 0;
6244 }
6245 _ACEOF
6246 rm -f conftest.$ac_objext conftest$ac_exeext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6248   (eval $ac_link) 2>&5
6249   ac_status=$?
6250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251   (exit $ac_status); } &&
6252          { ac_try='test -s conftest$ac_exeext'
6253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254   (eval $ac_try) 2>&5
6255   ac_status=$?
6256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257   (exit $ac_status); }; }; then
6258   ac_cv_func_dbm_open=yes
6259 else
6260   echo "$as_me: failed program was:" >&5
6261 sed 's/^/| /' conftest.$ac_ext >&5
6262
6263 ac_cv_func_dbm_open=no
6264 fi
6265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6266 fi
6267 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
6268 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
6269 if test $ac_cv_func_dbm_open = yes; then
6270   dblib="ndbm"
6271 else
6272   dblib="no"
6273 fi
6274
6275           fi
6276
6277           if test "$dblib" = no; then
6278                     if test "${ac_cv_header_gdbm_h+set}" = set; then
6279   echo "$as_me:$LINENO: checking for gdbm.h" >&5
6280 echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6
6281 if test "${ac_cv_header_gdbm_h+set}" = set; then
6282   echo $ECHO_N "(cached) $ECHO_C" >&6
6283 fi
6284 echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
6285 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6
6286 else
6287   # Is the header compilable?
6288 echo "$as_me:$LINENO: checking gdbm.h usability" >&5
6289 echo $ECHO_N "checking gdbm.h usability... $ECHO_C" >&6
6290 cat >conftest.$ac_ext <<_ACEOF
6291 #line $LINENO "configure"
6292 /* confdefs.h.  */
6293 _ACEOF
6294 cat confdefs.h >>conftest.$ac_ext
6295 cat >>conftest.$ac_ext <<_ACEOF
6296 /* end confdefs.h.  */
6297 $ac_includes_default
6298 #include <gdbm.h>
6299 _ACEOF
6300 rm -f conftest.$ac_objext
6301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6302   (eval $ac_compile) 2>&5
6303   ac_status=$?
6304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305   (exit $ac_status); } &&
6306          { ac_try='test -s conftest.$ac_objext'
6307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6308   (eval $ac_try) 2>&5
6309   ac_status=$?
6310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311   (exit $ac_status); }; }; then
6312   ac_header_compiler=yes
6313 else
6314   echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.$ac_ext >&5
6316
6317 ac_header_compiler=no
6318 fi
6319 rm -f conftest.$ac_objext conftest.$ac_ext
6320 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6321 echo "${ECHO_T}$ac_header_compiler" >&6
6322
6323 # Is the header present?
6324 echo "$as_me:$LINENO: checking gdbm.h presence" >&5
6325 echo $ECHO_N "checking gdbm.h presence... $ECHO_C" >&6
6326 cat >conftest.$ac_ext <<_ACEOF
6327 #line $LINENO "configure"
6328 /* confdefs.h.  */
6329 _ACEOF
6330 cat confdefs.h >>conftest.$ac_ext
6331 cat >>conftest.$ac_ext <<_ACEOF
6332 /* end confdefs.h.  */
6333 #include <gdbm.h>
6334 _ACEOF
6335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6336   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6337   ac_status=$?
6338   grep -v '^ *+' conftest.er1 >conftest.err
6339   rm -f conftest.er1
6340   cat conftest.err >&5
6341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342   (exit $ac_status); } >/dev/null; then
6343   if test -s conftest.err; then
6344     ac_cpp_err=$ac_c_preproc_warn_flag
6345   else
6346     ac_cpp_err=
6347   fi
6348 else
6349   ac_cpp_err=yes
6350 fi
6351 if test -z "$ac_cpp_err"; then
6352   ac_header_preproc=yes
6353 else
6354   echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.$ac_ext >&5
6356
6357   ac_header_preproc=no
6358 fi
6359 rm -f conftest.err conftest.$ac_ext
6360 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6361 echo "${ECHO_T}$ac_header_preproc" >&6
6362
6363 # So?  What about this header?
6364 case $ac_header_compiler:$ac_header_preproc in
6365   yes:no )
6366     { echo "$as_me:$LINENO: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
6367 echo "$as_me: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6368     { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5
6369 echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;}
6370     (
6371       cat <<\_ASBOX
6372 ## ------------------------------------ ##
6373 ## Report this to bug-autoconf@gnu.org. ##
6374 ## ------------------------------------ ##
6375 _ASBOX
6376     ) |
6377       sed "s/^/$as_me: WARNING:     /" >&2
6378     ;;
6379   no:yes )
6380     { echo "$as_me:$LINENO: WARNING: gdbm.h: present but cannot be compiled" >&5
6381 echo "$as_me: WARNING: gdbm.h: present but cannot be compiled" >&2;}
6382     { echo "$as_me:$LINENO: WARNING: gdbm.h: check for missing prerequisite headers?" >&5
6383 echo "$as_me: WARNING: gdbm.h: check for missing prerequisite headers?" >&2;}
6384     { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5
6385 echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;}
6386     (
6387       cat <<\_ASBOX
6388 ## ------------------------------------ ##
6389 ## Report this to bug-autoconf@gnu.org. ##
6390 ## ------------------------------------ ##
6391 _ASBOX
6392     ) |
6393       sed "s/^/$as_me: WARNING:     /" >&2
6394     ;;
6395 esac
6396 echo "$as_me:$LINENO: checking for gdbm.h" >&5
6397 echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6
6398 if test "${ac_cv_header_gdbm_h+set}" = set; then
6399   echo $ECHO_N "(cached) $ECHO_C" >&6
6400 else
6401   ac_cv_header_gdbm_h=$ac_header_preproc
6402 fi
6403 echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
6404 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6
6405
6406 fi
6407 if test $ac_cv_header_gdbm_h = yes; then
6408
6409                 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
6410 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
6411 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
6412   echo $ECHO_N "(cached) $ECHO_C" >&6
6413 else
6414   ac_check_lib_save_LIBS=$LIBS
6415 LIBS="-lgdbm  $LIBS"
6416 cat >conftest.$ac_ext <<_ACEOF
6417 #line $LINENO "configure"
6418 /* confdefs.h.  */
6419 _ACEOF
6420 cat confdefs.h >>conftest.$ac_ext
6421 cat >>conftest.$ac_ext <<_ACEOF
6422 /* end confdefs.h.  */
6423
6424 /* Override any gcc2 internal prototype to avoid an error.  */
6425 #ifdef __cplusplus
6426 extern "C"
6427 #endif
6428 /* We use char because int might match the return type of a gcc2
6429    builtin and then its argument prototype would still apply.  */
6430 char gdbm_open ();
6431 int
6432 main ()
6433 {
6434 gdbm_open ();
6435   ;
6436   return 0;
6437 }
6438 _ACEOF
6439 rm -f conftest.$ac_objext conftest$ac_exeext
6440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6441   (eval $ac_link) 2>&5
6442   ac_status=$?
6443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444   (exit $ac_status); } &&
6445          { ac_try='test -s conftest$ac_exeext'
6446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6447   (eval $ac_try) 2>&5
6448   ac_status=$?
6449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450   (exit $ac_status); }; }; then
6451   ac_cv_lib_gdbm_gdbm_open=yes
6452 else
6453   echo "$as_me: failed program was:" >&5
6454 sed 's/^/| /' conftest.$ac_ext >&5
6455
6456 ac_cv_lib_gdbm_gdbm_open=no
6457 fi
6458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6459 LIBS=$ac_check_lib_save_LIBS
6460 fi
6461 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
6462 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
6463 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
6464   dblib="gdbm";
6465                                              SASL_DB_LIB="-lgdbm"
6466 else
6467   dblib="no"
6468 fi
6469
6470 else
6471   dblib="no"
6472 fi
6473
6474
6475           fi
6476         else
6477                   CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
6478           SASL_DB_INC=$BDB_INCADD
6479           SASL_DB_LIB="${BDB_LIBADD}"
6480         fi
6481         ;;
6482   none)
6483         ;;
6484   no)
6485         ;;
6486   *)
6487         { echo "$as_me:$LINENO: WARNING: Bad DB library implementation specified;" >&5
6488 echo "$as_me: WARNING: Bad DB library implementation specified;" >&2;}
6489         { { echo "$as_me:$LINENO: error: Use either \"berkeley\", \"gdbm\", \"ndbm\" or \"none\"" >&5
6490 echo "$as_me: error: Use either \"berkeley\", \"gdbm\", \"ndbm\" or \"none\"" >&2;}
6491    { (exit 1); exit 1; }; }
6492         dblib=no
6493         ;;
6494 esac
6495 LIBS="$cmu_save_LIBS"
6496
6497 echo "$as_me:$LINENO: checking DB library to use" >&5
6498 echo $ECHO_N "checking DB library to use... $ECHO_C" >&6
6499 echo "$as_me:$LINENO: result: $dblib" >&5
6500 echo "${ECHO_T}$dblib" >&6
6501
6502 SASL_DB_BACKEND="db_${dblib}.lo"
6503 SASL_DB_BACKEND_STATIC="db_${dblib}.o allockey.o"
6504 SASL_DB_BACKEND_STATIC_SRCS="../sasldb/db_${dblib}.c ../sasldb/allockey.c"
6505 SASL_DB_UTILS="saslpasswd2 sasldblistusers2"
6506 SASL_DB_MANS="saslpasswd2.8 sasldblistusers2.8"
6507
6508 case "$dblib" in
6509   gdbm)
6510     SASL_MECHS="$SASL_MECHS libsasldb.la"
6511
6512 cat >>confdefs.h <<\_ACEOF
6513 #define SASL_GDBM
6514 _ACEOF
6515
6516     ;;
6517   ndbm)
6518     SASL_MECHS="$SASL_MECHS libsasldb.la"
6519
6520 cat >>confdefs.h <<\_ACEOF
6521 #define SASL_NDBM
6522 _ACEOF
6523
6524     ;;
6525   berkeley)
6526     SASL_MECHS="$SASL_MECHS libsasldb.la"
6527
6528 cat >>confdefs.h <<\_ACEOF
6529 #define SASL_BERKELEYDB
6530 _ACEOF
6531
6532     ;;
6533   *)
6534     { echo "$as_me:$LINENO: WARNING: Disabling SASL authentication database support" >&5
6535 echo "$as_me: WARNING: Disabling SASL authentication database support" >&2;}
6536             SASL_DB_BACKEND="db_none.lo"
6537     SASL_DB_BACKEND_STATIC="db_none.o"
6538     SASL_DB_BACKEND_STATIC_SRCS="../sasldb/db_none.c"
6539     SASL_DB_UTILS=""
6540     SASL_DB_MANS=""
6541     SASL_DB_LIB=""
6542     ;;
6543 esac
6544
6545 if test "$enable_static" = yes; then
6546     if test "$dblib" != "none"; then
6547       SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/sasldb.c $SASL_DB_BACKEND_STATIC_SRCS"
6548       SASL_STATIC_OBJS="$SASL_STATIC_OBJS sasldb.o $SASL_DB_BACKEND_STATIC"
6549
6550 cat >>confdefs.h <<\_ACEOF
6551 #define STATIC_SASLDB
6552 _ACEOF
6553
6554     else
6555       SASL_STATIC_OBJS="$SASL_STATIC_OBJS $SASL_DB_BACKEND_STATIC"
6556       SASL_STATIC_SRCS="$SASL_STATIC_SRCS $SASL_DB_BACKEND_STATIC_SRCS"
6557     fi
6558 fi
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568 # Do we not install the SASL DB man pages?
6569
6570
6571 if test "x$SASL_DB_MANS" = "x"; then
6572   NO_SASL_DB_MANS_TRUE=
6573   NO_SASL_DB_MANS_FALSE='#'
6574 else
6575   NO_SASL_DB_MANS_TRUE='#'
6576   NO_SASL_DB_MANS_FALSE=
6577 fi
6578
6579
6580 # Check whether --enable-keep_db_open or --disable-keep_db_open was given.
6581 if test "${enable_keep_db_open+set}" = set; then
6582   enableval="$enable_keep_db_open"
6583   keep_db_open=$enableval
6584 else
6585   keep_db_open=no
6586 fi;
6587
6588 # Disable if Berkeley DB is not used
6589 if test "$dblib" != berkeley; then
6590   keep_db_open=no
6591 fi
6592
6593 if test "$keep_db_open" = yes; then
6594
6595 cat >>confdefs.h <<\_ACEOF
6596 #define KEEP_DB_OPEN
6597 _ACEOF
6598
6599 fi
6600 echo "$as_me:$LINENO: checking if Berkeley DB handle is kept open in SASLDB" >&5
6601 echo $ECHO_N "checking if Berkeley DB handle is kept open in SASLDB... $ECHO_C" >&6
6602 echo "$as_me:$LINENO: result: $keep_db_open" >&5
6603 echo "${ECHO_T}$keep_db_open" >&6
6604
6605 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6606 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6607 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6608   echo $ECHO_N "(cached) $ECHO_C" >&6
6609 else
6610   ac_check_lib_save_LIBS=$LIBS
6611 LIBS="-ldl  $LIBS"
6612 cat >conftest.$ac_ext <<_ACEOF
6613 #line $LINENO "configure"
6614 /* confdefs.h.  */
6615 _ACEOF
6616 cat confdefs.h >>conftest.$ac_ext
6617 cat >>conftest.$ac_ext <<_ACEOF
6618 /* end confdefs.h.  */
6619
6620 /* Override any gcc2 internal prototype to avoid an error.  */
6621 #ifdef __cplusplus
6622 extern "C"
6623 #endif
6624 /* We use char because int might match the return type of a gcc2
6625    builtin and then its argument prototype would still apply.  */
6626 char dlopen ();
6627 int
6628 main ()
6629 {
6630 dlopen ();
6631   ;
6632   return 0;
6633 }
6634 _ACEOF
6635 rm -f conftest.$ac_objext conftest$ac_exeext
6636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6637   (eval $ac_link) 2>&5
6638   ac_status=$?
6639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640   (exit $ac_status); } &&
6641          { ac_try='test -s conftest$ac_exeext'
6642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6643   (eval $ac_try) 2>&5
6644   ac_status=$?
6645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646   (exit $ac_status); }; }; then
6647   ac_cv_lib_dl_dlopen=yes
6648 else
6649   echo "$as_me: failed program was:" >&5
6650 sed 's/^/| /' conftest.$ac_ext >&5
6651
6652 ac_cv_lib_dl_dlopen=no
6653 fi
6654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6655 LIBS=$ac_check_lib_save_LIBS
6656 fi
6657 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6658 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6659 if test $ac_cv_lib_dl_dlopen = yes; then
6660   SASL_DL_LIB="-ldl"
6661 else
6662   SASL_DL_LIB=""
6663 fi
6664
6665
6666
6667
6668
6669 # Check whether --with-devrandom or --without-devrandom was given.
6670 if test "${with_devrandom+set}" = set; then
6671   withval="$with_devrandom"
6672   devrandom=$withval
6673 else
6674   devrandom=/dev/random
6675 fi;
6676 echo "$as_me:$LINENO: checking /dev/random to use" >&5
6677 echo $ECHO_N "checking /dev/random to use... $ECHO_C" >&6
6678 echo "$as_me:$LINENO: result: $devrandom" >&5
6679 echo "${ECHO_T}$devrandom" >&6
6680
6681 cat >>confdefs.h <<_ACEOF
6682 #define SASL_DEV_RANDOM "$devrandom"
6683 _ACEOF
6684
6685
6686
6687 for ac_prog in nm
6688 do
6689   # Extract the first word of "$ac_prog", so it can be a program name with args.
6690 set dummy $ac_prog; ac_word=$2
6691 echo "$as_me:$LINENO: checking for $ac_word" >&5
6692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6693 if test "${ac_cv_prog_NM+set}" = set; then
6694   echo $ECHO_N "(cached) $ECHO_C" >&6
6695 else
6696   if test -n "$NM"; then
6697   ac_cv_prog_NM="$NM" # Let the user override the test.
6698 else
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 for as_dir in $PATH
6701 do
6702   IFS=$as_save_IFS
6703   test -z "$as_dir" && as_dir=.
6704   for ac_exec_ext in '' $ac_executable_extensions; do
6705   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6706     ac_cv_prog_NM="$ac_prog"
6707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6708     break 2
6709   fi
6710 done
6711 done
6712
6713 fi
6714 fi
6715 NM=$ac_cv_prog_NM
6716 if test -n "$NM"; then
6717   echo "$as_me:$LINENO: result: $NM" >&5
6718 echo "${ECHO_T}$NM" >&6
6719 else
6720   echo "$as_me:$LINENO: result: no" >&5
6721 echo "${ECHO_T}no" >&6
6722 fi
6723
6724   test -n "$NM" && break
6725 done
6726
6727
6728 echo "$as_me:$LINENO: checking for underscore before symbols" >&5
6729 echo $ECHO_N "checking for underscore before symbols... $ECHO_C" >&6
6730 if test "${sasl_cv_uscore+set}" = set; then
6731   echo $ECHO_N "(cached) $ECHO_C" >&6
6732 else
6733
6734     echo "main(){int i=1;}
6735     foo(){int i=6;}" > conftest.c
6736     ${CC} -o a.out conftest.c > /dev/null
6737     if (${NM} a.out | grep _foo) > /dev/null; then
6738       sasl_cv_uscore=yes
6739     else
6740       sasl_cv_uscore=no
6741     fi
6742 fi
6743
6744 echo "$as_me:$LINENO: result: $sasl_cv_uscore" >&5
6745 echo "${ECHO_T}$sasl_cv_uscore" >&6
6746 rm -f conftest.c a.out
6747
6748 if test $sasl_cv_uscore = yes; then
6749   if test $ac_cv_lib_dl_dlopen = yes ; then
6750         echo "$as_me:$LINENO: checking whether dlsym adds the underscore for us" >&5
6751 echo $ECHO_N "checking whether dlsym adds the underscore for us... $ECHO_C" >&6
6752         cmu_save_LIBS="$LIBS"
6753         LIBS="$LIBS $SASL_DL_LIB"
6754         if test "${sasl_cv_dlsym_adds_uscore+set}" = set; then
6755   echo $ECHO_N "(cached) $ECHO_C" >&6
6756 else
6757   if test "$cross_compiling" = yes; then
6758   { echo "$as_me:$LINENO: WARNING: cross-compiler" >&5
6759 echo "$as_me: WARNING: cross-compiler" >&2;}
6760 else
6761   cat >conftest.$ac_ext <<_ACEOF
6762 #line $LINENO "configure"
6763 /* confdefs.h.  */
6764 _ACEOF
6765 cat confdefs.h >>conftest.$ac_ext
6766 cat >>conftest.$ac_ext <<_ACEOF
6767 /* end confdefs.h.  */
6768
6769 #include <dlfcn.h>
6770 #include <stdio.h>
6771 foo() { int i=0;}
6772 main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
6773     if(self) { ptr1=dlsym(self,"foo"); ptr2=dlsym(self,"_foo");
6774     if(ptr1 && !ptr2) exit(0); } exit(1); }
6775
6776 _ACEOF
6777 rm -f conftest$ac_exeext
6778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6779   (eval $ac_link) 2>&5
6780   ac_status=$?
6781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6784   (eval $ac_try) 2>&5
6785   ac_status=$?
6786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787   (exit $ac_status); }; }; then
6788   sasl_cv_dlsym_adds_uscore=yes
6789 else
6790   echo "$as_me: program exited with status $ac_status" >&5
6791 echo "$as_me: failed program was:" >&5
6792 sed 's/^/| /' conftest.$ac_ext >&5
6793
6794 ( exit $ac_status )
6795 sasl_cv_dlsym_adds_uscore=no
6796
6797 cat >>confdefs.h <<\_ACEOF
6798 #define DLSYM_NEEDS_UNDERSCORE
6799 _ACEOF
6800
6801 fi
6802 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6803 fi
6804 fi
6805
6806         LIBS="$cmu_save_LIBS"
6807       echo "$as_me:$LINENO: result: $sasl_cv_dlsym_adds_uscore" >&5
6808 echo "${ECHO_T}$sasl_cv_dlsym_adds_uscore" >&6
6809   fi
6810 fi
6811
6812
6813 for ac_func in syslog
6814 do
6815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6816 echo "$as_me:$LINENO: checking for $ac_func" >&5
6817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6818 if eval "test \"\${$as_ac_var+set}\" = set"; then
6819   echo $ECHO_N "(cached) $ECHO_C" >&6
6820 else
6821   cat >conftest.$ac_ext <<_ACEOF
6822 #line $LINENO "configure"
6823 /* confdefs.h.  */
6824 _ACEOF
6825 cat confdefs.h >>conftest.$ac_ext
6826 cat >>conftest.$ac_ext <<_ACEOF
6827 /* end confdefs.h.  */
6828 /* System header to define __stub macros and hopefully few prototypes,
6829     which can conflict with char $ac_func (); below.
6830     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6831     <limits.h> exists even on freestanding compilers.  */
6832 #ifdef __STDC__
6833 # include <limits.h>
6834 #else
6835 # include <assert.h>
6836 #endif
6837 /* Override any gcc2 internal prototype to avoid an error.  */
6838 #ifdef __cplusplus
6839 extern "C"
6840 {
6841 #endif
6842 /* We use char because int might match the return type of a gcc2
6843    builtin and then its argument prototype would still apply.  */
6844 char $ac_func ();
6845 /* The GNU C library defines this for functions which it implements
6846     to always fail with ENOSYS.  Some functions are actually named
6847     something starting with __ and the normal name is an alias.  */
6848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6849 choke me
6850 #else
6851 char (*f) () = $ac_func;
6852 #endif
6853 #ifdef __cplusplus
6854 }
6855 #endif
6856
6857 int
6858 main ()
6859 {
6860 return f != $ac_func;
6861   ;
6862   return 0;
6863 }
6864 _ACEOF
6865 rm -f conftest.$ac_objext conftest$ac_exeext
6866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6867   (eval $ac_link) 2>&5
6868   ac_status=$?
6869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870   (exit $ac_status); } &&
6871          { ac_try='test -s conftest$ac_exeext'
6872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873   (eval $ac_try) 2>&5
6874   ac_status=$?
6875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876   (exit $ac_status); }; }; then
6877   eval "$as_ac_var=yes"
6878 else
6879   echo "$as_me: failed program was:" >&5
6880 sed 's/^/| /' conftest.$ac_ext >&5
6881
6882 eval "$as_ac_var=no"
6883 fi
6884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6885 fi
6886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6887 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6888 if test `eval echo '${'$as_ac_var'}'` = yes; then
6889   cat >>confdefs.h <<_ACEOF
6890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6891 _ACEOF
6892
6893 fi
6894 done
6895
6896
6897
6898 # Check whether --with-pam or --without-pam was given.
6899 if test "${with_pam+set}" = set; then
6900   withval="$with_pam"
6901   with_pam=$withval
6902 else
6903   with_pam=yes
6904 fi;
6905 if test "$with_pam" != no; then
6906   if test -d $with_pam; then
6907     CPPFLAGS="$CPPFLAGS -I${with_pam}/include"
6908     LDFLAGS="$LDFLAGS -L${with_pam}/lib"
6909   fi
6910
6911
6912 for ac_header in security/pam_appl.h pam/pam_appl.h
6913 do
6914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6916   echo "$as_me:$LINENO: checking for $ac_header" >&5
6917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6919   echo $ECHO_N "(cached) $ECHO_C" >&6
6920 fi
6921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6923 else
6924   # Is the header compilable?
6925 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6927 cat >conftest.$ac_ext <<_ACEOF
6928 #line $LINENO "configure"
6929 /* confdefs.h.  */
6930 _ACEOF
6931 cat confdefs.h >>conftest.$ac_ext
6932 cat >>conftest.$ac_ext <<_ACEOF
6933 /* end confdefs.h.  */
6934 $ac_includes_default
6935 #include <$ac_header>
6936 _ACEOF
6937 rm -f conftest.$ac_objext
6938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6939   (eval $ac_compile) 2>&5
6940   ac_status=$?
6941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942   (exit $ac_status); } &&
6943          { ac_try='test -s conftest.$ac_objext'
6944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945   (eval $ac_try) 2>&5
6946   ac_status=$?
6947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948   (exit $ac_status); }; }; then
6949   ac_header_compiler=yes
6950 else
6951   echo "$as_me: failed program was:" >&5
6952 sed 's/^/| /' conftest.$ac_ext >&5
6953
6954 ac_header_compiler=no
6955 fi
6956 rm -f conftest.$ac_objext conftest.$ac_ext
6957 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6958 echo "${ECHO_T}$ac_header_compiler" >&6
6959
6960 # Is the header present?
6961 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6962 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6963 cat >conftest.$ac_ext <<_ACEOF
6964 #line $LINENO "configure"
6965 /* confdefs.h.  */
6966 _ACEOF
6967 cat confdefs.h >>conftest.$ac_ext
6968 cat >>conftest.$ac_ext <<_ACEOF
6969 /* end confdefs.h.  */
6970 #include <$ac_header>
6971 _ACEOF
6972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6973   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6974   ac_status=$?
6975   grep -v '^ *+' conftest.er1 >conftest.err
6976   rm -f conftest.er1
6977   cat conftest.err >&5
6978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979   (exit $ac_status); } >/dev/null; then
6980   if test -s conftest.err; then
6981     ac_cpp_err=$ac_c_preproc_warn_flag
6982   else
6983     ac_cpp_err=
6984   fi
6985 else
6986   ac_cpp_err=yes
6987 fi
6988 if test -z "$ac_cpp_err"; then
6989   ac_header_preproc=yes
6990 else
6991   echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6993
6994   ac_header_preproc=no
6995 fi
6996 rm -f conftest.err conftest.$ac_ext
6997 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6998 echo "${ECHO_T}$ac_header_preproc" >&6
6999
7000 # So?  What about this header?
7001 case $ac_header_compiler:$ac_header_preproc in
7002   yes:no )
7003     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7004 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7005     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7006 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7007     (
7008       cat <<\_ASBOX
7009 ## ------------------------------------ ##
7010 ## Report this to bug-autoconf@gnu.org. ##
7011 ## ------------------------------------ ##
7012 _ASBOX
7013     ) |
7014       sed "s/^/$as_me: WARNING:     /" >&2
7015     ;;
7016   no:yes )
7017     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7018 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7019     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7020 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7021     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7023     (
7024       cat <<\_ASBOX
7025 ## ------------------------------------ ##
7026 ## Report this to bug-autoconf@gnu.org. ##
7027 ## ------------------------------------ ##
7028 _ASBOX
7029     ) |
7030       sed "s/^/$as_me: WARNING:     /" >&2
7031     ;;
7032 esac
7033 echo "$as_me:$LINENO: checking for $ac_header" >&5
7034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7036   echo $ECHO_N "(cached) $ECHO_C" >&6
7037 else
7038   eval "$as_ac_Header=$ac_header_preproc"
7039 fi
7040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7042
7043 fi
7044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7045   cat >>confdefs.h <<_ACEOF
7046 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7047 _ACEOF
7048
7049 fi
7050
7051 done
7052
7053   cmu_save_LIBS="$LIBS"
7054   echo "$as_me:$LINENO: checking for pam_start" >&5
7055 echo $ECHO_N "checking for pam_start... $ECHO_C" >&6
7056 if test "${ac_cv_func_pam_start+set}" = set; then
7057   echo $ECHO_N "(cached) $ECHO_C" >&6
7058 else
7059   cat >conftest.$ac_ext <<_ACEOF
7060 #line $LINENO "configure"
7061 /* confdefs.h.  */
7062 _ACEOF
7063 cat confdefs.h >>conftest.$ac_ext
7064 cat >>conftest.$ac_ext <<_ACEOF
7065 /* end confdefs.h.  */
7066 /* System header to define __stub macros and hopefully few prototypes,
7067     which can conflict with char pam_start (); below.
7068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7069     <limits.h> exists even on freestanding compilers.  */
7070 #ifdef __STDC__
7071 # include <limits.h>
7072 #else
7073 # include <assert.h>
7074 #endif
7075 /* Override any gcc2 internal prototype to avoid an error.  */
7076 #ifdef __cplusplus
7077 extern "C"
7078 {
7079 #endif
7080 /* We use char because int might match the return type of a gcc2
7081    builtin and then its argument prototype would still apply.  */
7082 char pam_start ();
7083 /* The GNU C library defines this for functions which it implements
7084     to always fail with ENOSYS.  Some functions are actually named
7085     something starting with __ and the normal name is an alias.  */
7086 #if defined (__stub_pam_start) || defined (__stub___pam_start)
7087 choke me
7088 #else
7089 char (*f) () = pam_start;
7090 #endif
7091 #ifdef __cplusplus
7092 }
7093 #endif
7094
7095 int
7096 main ()
7097 {
7098 return f != pam_start;
7099   ;
7100   return 0;
7101 }
7102 _ACEOF
7103 rm -f conftest.$ac_objext conftest$ac_exeext
7104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7105   (eval $ac_link) 2>&5
7106   ac_status=$?
7107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108   (exit $ac_status); } &&
7109          { ac_try='test -s conftest$ac_exeext'
7110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7111   (eval $ac_try) 2>&5
7112   ac_status=$?
7113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114   (exit $ac_status); }; }; then
7115   ac_cv_func_pam_start=yes
7116 else
7117   echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.$ac_ext >&5
7119
7120 ac_cv_func_pam_start=no
7121 fi
7122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7123 fi
7124 echo "$as_me:$LINENO: result: $ac_cv_func_pam_start" >&5
7125 echo "${ECHO_T}$ac_cv_func_pam_start" >&6
7126 if test $ac_cv_func_pam_start = yes; then
7127   :
7128 else
7129   LIBS="-lpam $LIBS"
7130         cat >conftest.$ac_ext <<_ACEOF
7131 #line $LINENO "configure"
7132 /* confdefs.h.  */
7133 _ACEOF
7134 cat confdefs.h >>conftest.$ac_ext
7135 cat >>conftest.$ac_ext <<_ACEOF
7136 /* end confdefs.h.  */
7137
7138 #include <sys/types.h>
7139 #ifdef HAVE_PAM_PAM_APPL_H
7140 #include <pam/pam_appl.h>
7141 #endif
7142 #ifdef HAVE_SECURITY_PAM_H
7143 #include <security/pam_appl.h>
7144 #endif
7145 int
7146 main ()
7147 {
7148
7149 const char *service="foo";
7150 const char *user="bar";
7151 pam_handle_t *pamh;
7152 struct pam_conv *conv;
7153 int baz;
7154 baz = pam_start(service, user, conv, &pamh);
7155 return 0;
7156
7157   ;
7158   return 0;
7159 }
7160 _ACEOF
7161 rm -f conftest.$ac_objext conftest$ac_exeext
7162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7163   (eval $ac_link) 2>&5
7164   ac_status=$?
7165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166   (exit $ac_status); } &&
7167          { ac_try='test -s conftest$ac_exeext'
7168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7169   (eval $ac_try) 2>&5
7170   ac_status=$?
7171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172   (exit $ac_status); }; }; then
7173   LIBPAM="-lpam"
7174 else
7175   echo "$as_me: failed program was:" >&5
7176 sed 's/^/| /' conftest.$ac_ext >&5
7177
7178 fi
7179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7180
7181 fi
7182
7183   LIBS="$cmu_save_LIBS $LIBPAM"
7184 fi
7185
7186
7187 # Check whether --with-saslauthd or --without-saslauthd was given.
7188 if test "${with_saslauthd+set}" = set; then
7189   withval="$with_saslauthd"
7190   with_saslauthd=$withval
7191 else
7192   with_saslauthd=yes
7193 fi;
7194 if test "$with_saslauthd" != no; then
7195   if test "$with_saslauthd" = yes; then
7196     with_saslauthd="/var/state/saslauthd"
7197   fi
7198
7199 cat >>confdefs.h <<\_ACEOF
7200 #define HAVE_SASLAUTHD
7201 _ACEOF
7202
7203
7204 cat >>confdefs.h <<_ACEOF
7205 #define PATH_SASLAUTHD_RUNDIR "$with_saslauthd"
7206 _ACEOF
7207
7208 fi
7209
7210
7211 if test "$with_saslauthd" != no; then
7212   SASLAUTHD_TRUE=
7213   SASLAUTHD_FALSE='#'
7214 else
7215   SASLAUTHD_TRUE='#'
7216   SASLAUTHD_FALSE=
7217 fi
7218
7219 echo "$as_me:$LINENO: checking if I should include saslauthd" >&5
7220 echo $ECHO_N "checking if I should include saslauthd... $ECHO_C" >&6
7221 echo "$as_me:$LINENO: result: $with_saslauthd" >&5
7222 echo "${ECHO_T}$with_saslauthd" >&6
7223
7224
7225 # Check whether --with-authdaemond or --without-authdaemond was given.
7226 if test "${with_authdaemond+set}" = set; then
7227   withval="$with_authdaemond"
7228   with_authdaemon=$withval
7229 else
7230   with_authdaemon=yes
7231 fi;
7232 if test "$with_authdaemon" != no; then
7233   if test "$with_authdaemon" = yes; then
7234     with_authdaemon="/dev/null"
7235   fi
7236
7237 cat >>confdefs.h <<\_ACEOF
7238 #define HAVE_AUTHDAEMON
7239 _ACEOF
7240
7241
7242 cat >>confdefs.h <<_ACEOF
7243 #define PATH_AUTHDAEMON_SOCKET "$with_authdaemon"
7244 _ACEOF
7245
7246 fi
7247 echo "$as_me:$LINENO: checking to include Courier authdaemond support" >&5
7248 echo $ECHO_N "checking to include Courier authdaemond support... $ECHO_C" >&6
7249 echo "$as_me:$LINENO: result: $with_authdaemon" >&5
7250 echo "${ECHO_T}$with_authdaemon" >&6
7251
7252
7253 # Check whether --with-pwcheck or --without-pwcheck was given.
7254 if test "${with_pwcheck+set}" = set; then
7255   withval="$with_pwcheck"
7256   with_pwcheck=$withval
7257 else
7258   with_pwcheck=no
7259 fi;
7260 if test "$with_pwcheck" != no; then
7261    if test "$with_pwcheck" = yes; then
7262      with_pwcheck=/var/pwcheck
7263    fi
7264
7265 cat >>confdefs.h <<\_ACEOF
7266 #define HAVE_PWCHECK
7267 _ACEOF
7268
7269
7270 cat >>confdefs.h <<_ACEOF
7271 #define PWCHECKDIR "$with_pwcheck"
7272 _ACEOF
7273
7274    echo "$as_me:$LINENO: checking for getspnam" >&5
7275 echo $ECHO_N "checking for getspnam... $ECHO_C" >&6
7276 if test "${ac_cv_func_getspnam+set}" = set; then
7277   echo $ECHO_N "(cached) $ECHO_C" >&6
7278 else
7279   cat >conftest.$ac_ext <<_ACEOF
7280 #line $LINENO "configure"
7281 /* confdefs.h.  */
7282 _ACEOF
7283 cat confdefs.h >>conftest.$ac_ext
7284 cat >>conftest.$ac_ext <<_ACEOF
7285 /* end confdefs.h.  */
7286 /* System header to define __stub macros and hopefully few prototypes,
7287     which can conflict with char getspnam (); below.
7288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7289     <limits.h> exists even on freestanding compilers.  */
7290 #ifdef __STDC__
7291 # include <limits.h>
7292 #else
7293 # include <assert.h>
7294 #endif
7295 /* Override any gcc2 internal prototype to avoid an error.  */
7296 #ifdef __cplusplus
7297 extern "C"
7298 {
7299 #endif
7300 /* We use char because int might match the return type of a gcc2
7301    builtin and then its argument prototype would still apply.  */
7302 char getspnam ();
7303 /* The GNU C library defines this for functions which it implements
7304     to always fail with ENOSYS.  Some functions are actually named
7305     something starting with __ and the normal name is an alias.  */
7306 #if defined (__stub_getspnam) || defined (__stub___getspnam)
7307 choke me
7308 #else
7309 char (*f) () = getspnam;
7310 #endif
7311 #ifdef __cplusplus
7312 }
7313 #endif
7314
7315 int
7316 main ()
7317 {
7318 return f != getspnam;
7319   ;
7320   return 0;
7321 }
7322 _ACEOF
7323 rm -f conftest.$ac_objext conftest$ac_exeext
7324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7325   (eval $ac_link) 2>&5
7326   ac_status=$?
7327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328   (exit $ac_status); } &&
7329          { ac_try='test -s conftest$ac_exeext'
7330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7331   (eval $ac_try) 2>&5
7332   ac_status=$?
7333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334   (exit $ac_status); }; }; then
7335   ac_cv_func_getspnam=yes
7336 else
7337   echo "$as_me: failed program was:" >&5
7338 sed 's/^/| /' conftest.$ac_ext >&5
7339
7340 ac_cv_func_getspnam=no
7341 fi
7342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7343 fi
7344 echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
7345 echo "${ECHO_T}$ac_cv_func_getspnam" >&6
7346 if test $ac_cv_func_getspnam = yes; then
7347   PWCHECKMETH="getspnam"
7348 else
7349   PWCHECKMETH="getpwnam"
7350 fi
7351
7352
7353 fi
7354
7355
7356 if test "$with_pwcheck" != no; then
7357   PWCHECK_TRUE=
7358   PWCHECK_FALSE='#'
7359 else
7360   PWCHECK_TRUE='#'
7361   PWCHECK_FALSE=
7362 fi
7363
7364 echo "$as_me:$LINENO: checking if I should include pwcheck" >&5
7365 echo $ECHO_N "checking if I should include pwcheck... $ECHO_C" >&6
7366 echo "$as_me:$LINENO: result: $with_pwcheck" >&5
7367 echo "${ECHO_T}$with_pwcheck" >&6
7368
7369
7370 # Check whether --with-ipctype or --without-ipctype was given.
7371 if test "${with_ipctype+set}" = set; then
7372   withval="$with_ipctype"
7373   with_ipctype=$withval
7374 else
7375   with_ipctype="unix"
7376 fi;
7377 IPCTYPE=$with_ipctype
7378
7379 LIB_DOOR=
7380 if test "$with_ipctype" = "doors"; then
7381    LIB_DOOR="-ldoor"
7382
7383 cat >>confdefs.h <<\_ACEOF
7384 #define USE_DOORS
7385 _ACEOF
7386
7387 fi
7388
7389
7390 # Check whether --enable-alwaystrue or --disable-alwaystrue was given.
7391 if test "${enable_alwaystrue+set}" = set; then
7392   enableval="$enable_alwaystrue"
7393   enable_alwaystrue=$enableval
7394 else
7395   enable_alwaystrue=no
7396 fi;
7397 if test "$enable_alwaystrue" = yes; then
7398
7399 cat >>confdefs.h <<\_ACEOF
7400 #define HAVE_ALWAYSTRUE
7401 _ACEOF
7402
7403 fi
7404 echo "$as_me:$LINENO: checking if I should include the alwaystrue verifier" >&5
7405 echo $ECHO_N "checking if I should include the alwaystrue verifier... $ECHO_C" >&6
7406 echo "$as_me:$LINENO: result: $enable_alwaystrue" >&5
7407 echo "${ECHO_T}$enable_alwaystrue" >&6
7408
7409 # Check whether --enable-checkapop or --disable-checkapop was given.
7410 if test "${enable_checkapop+set}" = set; then
7411   enableval="$enable_checkapop"
7412   checkapop=$enableval
7413 else
7414   checkapop=yes
7415 fi;
7416
7417 echo "$as_me:$LINENO: checking if we should enable sasl_checkapop" >&5
7418 echo $ECHO_N "checking if we should enable sasl_checkapop... $ECHO_C" >&6
7419 if test "$checkapop" != no; then
7420   echo "$as_me:$LINENO: result: enabled" >&5
7421 echo "${ECHO_T}enabled" >&6
7422
7423 cat >>confdefs.h <<\_ACEOF
7424 #define DO_SASL_CHECKAPOP
7425 _ACEOF
7426
7427 else
7428   echo "$as_me:$LINENO: result: disabled" >&5
7429 echo "${ECHO_T}disabled" >&6
7430 fi
7431
7432 # Check whether --enable-cram or --disable-cram was given.
7433 if test "${enable_cram+set}" = set; then
7434   enableval="$enable_cram"
7435   cram=$enableval
7436 else
7437   cram=yes
7438 fi;
7439
7440 echo "$as_me:$LINENO: checking CRAM-MD5" >&5
7441 echo $ECHO_N "checking CRAM-MD5... $ECHO_C" >&6
7442 if test "$cram" != no; then
7443   echo "$as_me:$LINENO: result: enabled" >&5
7444 echo "${ECHO_T}enabled" >&6
7445   SASL_MECHS="$SASL_MECHS libcrammd5.la"
7446   if test "$enable_static" = yes; then
7447     SASL_STATIC_OBJS="$SASL_STATIC_OBJS cram.o"
7448     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/cram.c"
7449
7450 cat >>confdefs.h <<\_ACEOF
7451 #define STATIC_CRAMMD5
7452 _ACEOF
7453
7454   fi
7455 else
7456   echo "$as_me:$LINENO: result: disabled" >&5
7457 echo "${ECHO_T}disabled" >&6
7458 fi
7459
7460
7461 # Check whether --with-lib-subdir or --without-lib-subdir was given.
7462 if test "${with_lib_subdir+set}" = set; then
7463   withval="$with_lib_subdir"
7464
7465 fi;
7466 echo "$as_me:$LINENO: checking for long" >&5
7467 echo $ECHO_N "checking for long... $ECHO_C" >&6
7468 if test "${ac_cv_type_long+set}" = set; then
7469   echo $ECHO_N "(cached) $ECHO_C" >&6
7470 else
7471   cat >conftest.$ac_ext <<_ACEOF
7472 #line $LINENO "configure"
7473 /* confdefs.h.  */
7474 _ACEOF
7475 cat confdefs.h >>conftest.$ac_ext
7476 cat >>conftest.$ac_ext <<_ACEOF
7477 /* end confdefs.h.  */
7478 $ac_includes_default
7479 int
7480 main ()
7481 {
7482 if ((long *) 0)
7483   return 0;
7484 if (sizeof (long))
7485   return 0;
7486   ;
7487   return 0;
7488 }
7489 _ACEOF
7490 rm -f conftest.$ac_objext
7491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7492   (eval $ac_compile) 2>&5
7493   ac_status=$?
7494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495   (exit $ac_status); } &&
7496          { ac_try='test -s conftest.$ac_objext'
7497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7498   (eval $ac_try) 2>&5
7499   ac_status=$?
7500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501   (exit $ac_status); }; }; then
7502   ac_cv_type_long=yes
7503 else
7504   echo "$as_me: failed program was:" >&5
7505 sed 's/^/| /' conftest.$ac_ext >&5
7506
7507 ac_cv_type_long=no
7508 fi
7509 rm -f conftest.$ac_objext conftest.$ac_ext
7510 fi
7511 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7512 echo "${ECHO_T}$ac_cv_type_long" >&6
7513
7514 echo "$as_me:$LINENO: checking size of long" >&5
7515 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7516 if test "${ac_cv_sizeof_long+set}" = set; then
7517   echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7519   if test "$ac_cv_type_long" = yes; then
7520   # The cast to unsigned long works around a bug in the HP C Compiler
7521   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7522   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7523   # This bug is HP SR number 8606223364.
7524   if test "$cross_compiling" = yes; then
7525   # Depending upon the size, compute the lo and hi bounds.
7526 cat >conftest.$ac_ext <<_ACEOF
7527 #line $LINENO "configure"
7528 /* confdefs.h.  */
7529 _ACEOF
7530 cat confdefs.h >>conftest.$ac_ext
7531 cat >>conftest.$ac_ext <<_ACEOF
7532 /* end confdefs.h.  */
7533 $ac_includes_default
7534 int
7535 main ()
7536 {
7537 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7538 test_array [0] = 0
7539
7540   ;
7541   return 0;
7542 }
7543 _ACEOF
7544 rm -f conftest.$ac_objext
7545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7546   (eval $ac_compile) 2>&5
7547   ac_status=$?
7548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549   (exit $ac_status); } &&
7550          { ac_try='test -s conftest.$ac_objext'
7551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7552   (eval $ac_try) 2>&5
7553   ac_status=$?
7554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555   (exit $ac_status); }; }; then
7556   ac_lo=0 ac_mid=0
7557   while :; do
7558     cat >conftest.$ac_ext <<_ACEOF
7559 #line $LINENO "configure"
7560 /* confdefs.h.  */
7561 _ACEOF
7562 cat confdefs.h >>conftest.$ac_ext
7563 cat >>conftest.$ac_ext <<_ACEOF
7564 /* end confdefs.h.  */
7565 $ac_includes_default
7566 int
7567 main ()
7568 {
7569 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7570 test_array [0] = 0
7571
7572   ;
7573   return 0;
7574 }
7575 _ACEOF
7576 rm -f conftest.$ac_objext
7577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7578   (eval $ac_compile) 2>&5
7579   ac_status=$?
7580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581   (exit $ac_status); } &&
7582          { ac_try='test -s conftest.$ac_objext'
7583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584   (eval $ac_try) 2>&5
7585   ac_status=$?
7586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587   (exit $ac_status); }; }; then
7588   ac_hi=$ac_mid; break
7589 else
7590   echo "$as_me: failed program was:" >&5
7591 sed 's/^/| /' conftest.$ac_ext >&5
7592
7593 ac_lo=`expr $ac_mid + 1`
7594                     if test $ac_lo -le $ac_mid; then
7595                       ac_lo= ac_hi=
7596                       break
7597                     fi
7598                     ac_mid=`expr 2 '*' $ac_mid + 1`
7599 fi
7600 rm -f conftest.$ac_objext conftest.$ac_ext
7601   done
7602 else
7603   echo "$as_me: failed program was:" >&5
7604 sed 's/^/| /' conftest.$ac_ext >&5
7605
7606 cat >conftest.$ac_ext <<_ACEOF
7607 #line $LINENO "configure"
7608 /* confdefs.h.  */
7609 _ACEOF
7610 cat confdefs.h >>conftest.$ac_ext
7611 cat >>conftest.$ac_ext <<_ACEOF
7612 /* end confdefs.h.  */
7613 $ac_includes_default
7614 int
7615 main ()
7616 {
7617 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7618 test_array [0] = 0
7619
7620   ;
7621   return 0;
7622 }
7623 _ACEOF
7624 rm -f conftest.$ac_objext
7625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7626   (eval $ac_compile) 2>&5
7627   ac_status=$?
7628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629   (exit $ac_status); } &&
7630          { ac_try='test -s conftest.$ac_objext'
7631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7632   (eval $ac_try) 2>&5
7633   ac_status=$?
7634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635   (exit $ac_status); }; }; then
7636   ac_hi=-1 ac_mid=-1
7637   while :; do
7638     cat >conftest.$ac_ext <<_ACEOF
7639 #line $LINENO "configure"
7640 /* confdefs.h.  */
7641 _ACEOF
7642 cat confdefs.h >>conftest.$ac_ext
7643 cat >>conftest.$ac_ext <<_ACEOF
7644 /* end confdefs.h.  */
7645 $ac_includes_default
7646 int
7647 main ()
7648 {
7649 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7650 test_array [0] = 0
7651
7652   ;
7653   return 0;
7654 }
7655 _ACEOF
7656 rm -f conftest.$ac_objext
7657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7658   (eval $ac_compile) 2>&5
7659   ac_status=$?
7660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661   (exit $ac_status); } &&
7662          { ac_try='test -s conftest.$ac_objext'
7663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7664   (eval $ac_try) 2>&5
7665   ac_status=$?
7666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667   (exit $ac_status); }; }; then
7668   ac_lo=$ac_mid; break
7669 else
7670   echo "$as_me: failed program was:" >&5
7671 sed 's/^/| /' conftest.$ac_ext >&5
7672
7673 ac_hi=`expr '(' $ac_mid ')' - 1`
7674                        if test $ac_mid -le $ac_hi; then
7675                          ac_lo= ac_hi=
7676                          break
7677                        fi
7678                        ac_mid=`expr 2 '*' $ac_mid`
7679 fi
7680 rm -f conftest.$ac_objext conftest.$ac_ext
7681   done
7682 else
7683   echo "$as_me: failed program was:" >&5
7684 sed 's/^/| /' conftest.$ac_ext >&5
7685
7686 ac_lo= ac_hi=
7687 fi
7688 rm -f conftest.$ac_objext conftest.$ac_ext
7689 fi
7690 rm -f conftest.$ac_objext conftest.$ac_ext
7691 # Binary search between lo and hi bounds.
7692 while test "x$ac_lo" != "x$ac_hi"; do
7693   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7694   cat >conftest.$ac_ext <<_ACEOF
7695 #line $LINENO "configure"
7696 /* confdefs.h.  */
7697 _ACEOF
7698 cat confdefs.h >>conftest.$ac_ext
7699 cat >>conftest.$ac_ext <<_ACEOF
7700 /* end confdefs.h.  */
7701 $ac_includes_default
7702 int
7703 main ()
7704 {
7705 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7706 test_array [0] = 0
7707
7708   ;
7709   return 0;
7710 }
7711 _ACEOF
7712 rm -f conftest.$ac_objext
7713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7714   (eval $ac_compile) 2>&5
7715   ac_status=$?
7716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717   (exit $ac_status); } &&
7718          { ac_try='test -s conftest.$ac_objext'
7719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7720   (eval $ac_try) 2>&5
7721   ac_status=$?
7722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723   (exit $ac_status); }; }; then
7724   ac_hi=$ac_mid
7725 else
7726   echo "$as_me: failed program was:" >&5
7727 sed 's/^/| /' conftest.$ac_ext >&5
7728
7729 ac_lo=`expr '(' $ac_mid ')' + 1`
7730 fi
7731 rm -f conftest.$ac_objext conftest.$ac_ext
7732 done
7733 case $ac_lo in
7734 ?*) ac_cv_sizeof_long=$ac_lo;;
7735 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7736 See \`config.log' for more details." >&5
7737 echo "$as_me: error: cannot compute sizeof (long), 77
7738 See \`config.log' for more details." >&2;}
7739    { (exit 1); exit 1; }; } ;;
7740 esac
7741 else
7742   if test "$cross_compiling" = yes; then
7743   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7744 See \`config.log' for more details." >&5
7745 echo "$as_me: error: cannot run test program while cross compiling
7746 See \`config.log' for more details." >&2;}
7747    { (exit 1); exit 1; }; }
7748 else
7749   cat >conftest.$ac_ext <<_ACEOF
7750 #line $LINENO "configure"
7751 /* confdefs.h.  */
7752 _ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h.  */
7756 $ac_includes_default
7757 long longval () { return (long) (sizeof (long)); }
7758 unsigned long ulongval () { return (long) (sizeof (long)); }
7759 #include <stdio.h>
7760 #include <stdlib.h>
7761 int
7762 main ()
7763 {
7764
7765   FILE *f = fopen ("conftest.val", "w");
7766   if (! f)
7767     exit (1);
7768   if (((long) (sizeof (long))) < 0)
7769     {
7770       long i = longval ();
7771       if (i != ((long) (sizeof (long))))
7772         exit (1);
7773       fprintf (f, "%ld\n", i);
7774     }
7775   else
7776     {
7777       unsigned long i = ulongval ();
7778       if (i != ((long) (sizeof (long))))
7779         exit (1);
7780       fprintf (f, "%lu\n", i);
7781     }
7782   exit (ferror (f) || fclose (f) != 0);
7783
7784   ;
7785   return 0;
7786 }
7787 _ACEOF
7788 rm -f conftest$ac_exeext
7789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7790   (eval $ac_link) 2>&5
7791   ac_status=$?
7792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795   (eval $ac_try) 2>&5
7796   ac_status=$?
7797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798   (exit $ac_status); }; }; then
7799   ac_cv_sizeof_long=`cat conftest.val`
7800 else
7801   echo "$as_me: program exited with status $ac_status" >&5
7802 echo "$as_me: failed program was:" >&5
7803 sed 's/^/| /' conftest.$ac_ext >&5
7804
7805 ( exit $ac_status )
7806 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7807 See \`config.log' for more details." >&5
7808 echo "$as_me: error: cannot compute sizeof (long), 77
7809 See \`config.log' for more details." >&2;}
7810    { (exit 1); exit 1; }; }
7811 fi
7812 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7813 fi
7814 fi
7815 rm -f conftest.val
7816 else
7817   ac_cv_sizeof_long=0
7818 fi
7819 fi
7820 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7821 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7822 cat >>confdefs.h <<_ACEOF
7823 #define SIZEOF_LONG $ac_cv_sizeof_long
7824 _ACEOF
7825
7826
7827 echo "$as_me:$LINENO: checking what directory libraries are found in" >&5
7828 echo $ECHO_N "checking what directory libraries are found in... $ECHO_C" >&6
7829 if test "${ac_cv_cmu_lib_subdir+set}" = set; then
7830   echo $ECHO_N "(cached) $ECHO_C" >&6
7831 else
7832   test "X$with_lib_subdir" = "Xyes" && with_lib_subdir=
7833 test "X$with_lib_subdir" = "Xno" && with_lib_subdir=
7834 if test "X$with_lib_subdir" = "X" ; then
7835   ac_cv_cmu_lib_subdir=lib
7836   if test $ac_cv_sizeof_long -eq 4 ; then
7837     test -d /usr/lib32 && ac_cv_cmu_lib_subdir=lib32
7838   fi
7839   if test $ac_cv_sizeof_long -eq 8 ; then
7840     test -d /usr/lib64 && ac_cv_cmu_lib_subdir=lib64
7841   fi
7842 else
7843   ac_cv_cmu_lib_subdir=$with_lib_subdir
7844 fi
7845 fi
7846 echo "$as_me:$LINENO: result: $ac_cv_cmu_lib_subdir" >&5
7847 echo "${ECHO_T}$ac_cv_cmu_lib_subdir" >&6
7848 CMU_LIB_SUBDIR=$ac_cv_cmu_lib_subdir
7849
7850
7851
7852
7853
7854 # Check whether --with-openssl or --without-openssl was given.
7855 if test "${with_openssl+set}" = set; then
7856   withval="$with_openssl"
7857   with_openssl=$withval
7858 else
7859   with_openssl="yes"
7860 fi;
7861
7862         save_CPPFLAGS=$CPPFLAGS
7863         save_LDFLAGS=$LDFLAGS
7864
7865         if test -d $with_openssl; then
7866           CPPFLAGS="${CPPFLAGS} -I${with_openssl}/include"
7867
7868   # this is CMU ADD LIBPATH
7869   if test "$andrew_runpath_switch" = "none" ; then
7870         LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
7871   else
7872         LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR $andrew_runpath_switch${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
7873   fi
7874
7875         fi
7876
7877 case "$with_openssl" in
7878         no)
7879           with_openssl="no";;
7880         *)
7881                                   LIB_RSAREF=""
7882                 echo "$as_me:$LINENO: checking for RSAPublicEncrypt in -lrsaref" >&5
7883 echo $ECHO_N "checking for RSAPublicEncrypt in -lrsaref... $ECHO_C" >&6
7884 if test "${ac_cv_lib_rsaref_RSAPublicEncrypt+set}" = set; then
7885   echo $ECHO_N "(cached) $ECHO_C" >&6
7886 else
7887   ac_check_lib_save_LIBS=$LIBS
7888 LIBS="-lrsaref  $LIBS"
7889 cat >conftest.$ac_ext <<_ACEOF
7890 #line $LINENO "configure"
7891 /* confdefs.h.  */
7892 _ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h.  */
7896
7897 /* Override any gcc2 internal prototype to avoid an error.  */
7898 #ifdef __cplusplus
7899 extern "C"
7900 #endif
7901 /* We use char because int might match the return type of a gcc2
7902    builtin and then its argument prototype would still apply.  */
7903 char RSAPublicEncrypt ();
7904 int
7905 main ()
7906 {
7907 RSAPublicEncrypt ();
7908   ;
7909   return 0;
7910 }
7911 _ACEOF
7912 rm -f conftest.$ac_objext conftest$ac_exeext
7913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7914   (eval $ac_link) 2>&5
7915   ac_status=$?
7916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917   (exit $ac_status); } &&
7918          { ac_try='test -s conftest$ac_exeext'
7919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920   (eval $ac_try) 2>&5
7921   ac_status=$?
7922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923   (exit $ac_status); }; }; then
7924   ac_cv_lib_rsaref_RSAPublicEncrypt=yes
7925 else
7926   echo "$as_me: failed program was:" >&5
7927 sed 's/^/| /' conftest.$ac_ext >&5
7928
7929 ac_cv_lib_rsaref_RSAPublicEncrypt=no
7930 fi
7931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7932 LIBS=$ac_check_lib_save_LIBS
7933 fi
7934 echo "$as_me:$LINENO: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5
7935 echo "${ECHO_T}$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6
7936 if test $ac_cv_lib_rsaref_RSAPublicEncrypt = yes; then
7937   cmu_have_rsaref=yes;
7938                         echo "$as_me:$LINENO: checking for RSAPublicEncrypt in -lRSAglue" >&5
7939 echo $ECHO_N "checking for RSAPublicEncrypt in -lRSAglue... $ECHO_C" >&6
7940 if test "${ac_cv_lib_RSAglue_RSAPublicEncrypt+set}" = set; then
7941   echo $ECHO_N "(cached) $ECHO_C" >&6
7942 else
7943   ac_check_lib_save_LIBS=$LIBS
7944 LIBS="-lRSAglue  $LIBS"
7945 cat >conftest.$ac_ext <<_ACEOF
7946 #line $LINENO "configure"
7947 /* confdefs.h.  */
7948 _ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h.  */
7952
7953 /* Override any gcc2 internal prototype to avoid an error.  */
7954 #ifdef __cplusplus
7955 extern "C"
7956 #endif
7957 /* We use char because int might match the return type of a gcc2
7958    builtin and then its argument prototype would still apply.  */
7959 char RSAPublicEncrypt ();
7960 int
7961 main ()
7962 {
7963 RSAPublicEncrypt ();
7964   ;
7965   return 0;
7966 }
7967 _ACEOF
7968 rm -f conftest.$ac_objext conftest$ac_exeext
7969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7970   (eval $ac_link) 2>&5
7971   ac_status=$?
7972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973   (exit $ac_status); } &&
7974          { ac_try='test -s conftest$ac_exeext'
7975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976   (eval $ac_try) 2>&5
7977   ac_status=$?
7978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979   (exit $ac_status); }; }; then
7980   ac_cv_lib_RSAglue_RSAPublicEncrypt=yes
7981 else
7982   echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.$ac_ext >&5
7984
7985 ac_cv_lib_RSAglue_RSAPublicEncrypt=no
7986 fi
7987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7988 LIBS=$ac_check_lib_save_LIBS
7989 fi
7990 echo "$as_me:$LINENO: result: $ac_cv_lib_RSAglue_RSAPublicEncrypt" >&5
7991 echo "${ECHO_T}$ac_cv_lib_RSAglue_RSAPublicEncrypt" >&6
7992 if test $ac_cv_lib_RSAglue_RSAPublicEncrypt = yes; then
7993   LIB_RSAREF="-lRSAglue -lrsaref"
7994 else
7995   LIB_RSAREF="-lrsaref"
7996 fi
7997
7998 else
7999   cmu_have_rsaref=no
8000 fi
8001
8002
8003                 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
8004   echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
8005 echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6
8006 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
8007   echo $ECHO_N "(cached) $ECHO_C" >&6
8008 fi
8009 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
8010 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6
8011 else
8012   # Is the header compilable?
8013 echo "$as_me:$LINENO: checking openssl/evp.h usability" >&5
8014 echo $ECHO_N "checking openssl/evp.h usability... $ECHO_C" >&6
8015 cat >conftest.$ac_ext <<_ACEOF
8016 #line $LINENO "configure"
8017 /* confdefs.h.  */
8018 _ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h.  */
8022 $ac_includes_default
8023 #include <openssl/evp.h>
8024 _ACEOF
8025 rm -f conftest.$ac_objext
8026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8027   (eval $ac_compile) 2>&5
8028   ac_status=$?
8029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030   (exit $ac_status); } &&
8031          { ac_try='test -s conftest.$ac_objext'
8032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033   (eval $ac_try) 2>&5
8034   ac_status=$?
8035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036   (exit $ac_status); }; }; then
8037   ac_header_compiler=yes
8038 else
8039   echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.$ac_ext >&5
8041
8042 ac_header_compiler=no
8043 fi
8044 rm -f conftest.$ac_objext conftest.$ac_ext
8045 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8046 echo "${ECHO_T}$ac_header_compiler" >&6
8047
8048 # Is the header present?
8049 echo "$as_me:$LINENO: checking openssl/evp.h presence" >&5
8050 echo $ECHO_N "checking openssl/evp.h presence... $ECHO_C" >&6
8051 cat >conftest.$ac_ext <<_ACEOF
8052 #line $LINENO "configure"
8053 /* confdefs.h.  */
8054 _ACEOF
8055 cat confdefs.h >>conftest.$ac_ext
8056 cat >>conftest.$ac_ext <<_ACEOF
8057 /* end confdefs.h.  */
8058 #include <openssl/evp.h>
8059 _ACEOF
8060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8061   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8062   ac_status=$?
8063   grep -v '^ *+' conftest.er1 >conftest.err
8064   rm -f conftest.er1
8065   cat conftest.err >&5
8066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067   (exit $ac_status); } >/dev/null; then
8068   if test -s conftest.err; then
8069     ac_cpp_err=$ac_c_preproc_warn_flag
8070   else
8071     ac_cpp_err=
8072   fi
8073 else
8074   ac_cpp_err=yes
8075 fi
8076 if test -z "$ac_cpp_err"; then
8077   ac_header_preproc=yes
8078 else
8079   echo "$as_me: failed program was:" >&5
8080 sed 's/^/| /' conftest.$ac_ext >&5
8081
8082   ac_header_preproc=no
8083 fi
8084 rm -f conftest.err conftest.$ac_ext
8085 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8086 echo "${ECHO_T}$ac_header_preproc" >&6
8087
8088 # So?  What about this header?
8089 case $ac_header_compiler:$ac_header_preproc in
8090   yes:no )
8091     { echo "$as_me:$LINENO: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&5
8092 echo "$as_me: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8093     { echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&5
8094 echo "$as_me: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&2;}
8095     (
8096       cat <<\_ASBOX
8097 ## ------------------------------------ ##
8098 ## Report this to bug-autoconf@gnu.org. ##
8099 ## ------------------------------------ ##
8100 _ASBOX
8101     ) |
8102       sed "s/^/$as_me: WARNING:     /" >&2
8103     ;;
8104   no:yes )
8105     { echo "$as_me:$LINENO: WARNING: openssl/evp.h: present but cannot be compiled" >&5
8106 echo "$as_me: WARNING: openssl/evp.h: present but cannot be compiled" >&2;}
8107     { echo "$as_me:$LINENO: WARNING: openssl/evp.h: check for missing prerequisite headers?" >&5
8108 echo "$as_me: WARNING: openssl/evp.h: check for missing prerequisite headers?" >&2;}
8109     { echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&5
8110 echo "$as_me: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&2;}
8111     (
8112       cat <<\_ASBOX
8113 ## ------------------------------------ ##
8114 ## Report this to bug-autoconf@gnu.org. ##
8115 ## ------------------------------------ ##
8116 _ASBOX
8117     ) |
8118       sed "s/^/$as_me: WARNING:     /" >&2
8119     ;;
8120 esac
8121 echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
8122 echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6
8123 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
8124   echo $ECHO_N "(cached) $ECHO_C" >&6
8125 else
8126   ac_cv_header_openssl_evp_h=$ac_header_preproc
8127 fi
8128 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
8129 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6
8130
8131 fi
8132 if test $ac_cv_header_openssl_evp_h = yes; then
8133
8134                         echo "$as_me:$LINENO: checking for EVP_DigestInit in -lcrypto" >&5
8135 echo $ECHO_N "checking for EVP_DigestInit in -lcrypto... $ECHO_C" >&6
8136 if test "${ac_cv_lib_crypto_EVP_DigestInit+set}" = set; then
8137   echo $ECHO_N "(cached) $ECHO_C" >&6
8138 else
8139   ac_check_lib_save_LIBS=$LIBS
8140 LIBS="-lcrypto $LIB_RSAREF $LIBS"
8141 cat >conftest.$ac_ext <<_ACEOF
8142 #line $LINENO "configure"
8143 /* confdefs.h.  */
8144 _ACEOF
8145 cat confdefs.h >>conftest.$ac_ext
8146 cat >>conftest.$ac_ext <<_ACEOF
8147 /* end confdefs.h.  */
8148
8149 /* Override any gcc2 internal prototype to avoid an error.  */
8150 #ifdef __cplusplus
8151 extern "C"
8152 #endif
8153 /* We use char because int might match the return type of a gcc2
8154    builtin and then its argument prototype would still apply.  */
8155 char EVP_DigestInit ();
8156 int
8157 main ()
8158 {
8159 EVP_DigestInit ();
8160   ;
8161   return 0;
8162 }
8163 _ACEOF
8164 rm -f conftest.$ac_objext conftest$ac_exeext
8165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8166   (eval $ac_link) 2>&5
8167   ac_status=$?
8168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169   (exit $ac_status); } &&
8170          { ac_try='test -s conftest$ac_exeext'
8171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172   (eval $ac_try) 2>&5
8173   ac_status=$?
8174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175   (exit $ac_status); }; }; then
8176   ac_cv_lib_crypto_EVP_DigestInit=yes
8177 else
8178   echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.$ac_ext >&5
8180
8181 ac_cv_lib_crypto_EVP_DigestInit=no
8182 fi
8183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8184 LIBS=$ac_check_lib_save_LIBS
8185 fi
8186 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_EVP_DigestInit" >&5
8187 echo "${ECHO_T}$ac_cv_lib_crypto_EVP_DigestInit" >&6
8188 if test $ac_cv_lib_crypto_EVP_DigestInit = yes; then
8189   with_openssl="yes"
8190 else
8191   with_openssl="no"
8192 fi
8193
8194 else
8195   with_openssl=no
8196 fi
8197
8198
8199                 ;;
8200 esac
8201
8202         if test "$with_openssl" != "no"; then
8203
8204 cat >>confdefs.h <<\_ACEOF
8205 #define HAVE_OPENSSL
8206 _ACEOF
8207
8208         else
8209                 CPPFLAGS=$save_CPPFLAGS
8210                 LDFLAGS=$save_LDFLAGS
8211         fi
8212
8213 echo "$as_me:$LINENO: checking for OpenSSL" >&5
8214 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
8215 echo "$as_me:$LINENO: result: $with_openssl" >&5
8216 echo "${ECHO_T}$with_openssl" >&6
8217
8218
8219
8220 # Check whether --with-des or --without-des was given.
8221 if test "${with_des+set}" = set; then
8222   withval="$with_des"
8223   with_des=$withval
8224 else
8225   with_des=yes
8226 fi;
8227
8228 LIB_DES=""
8229 if test "$with_des" != no; then
8230   if test -d $with_des; then
8231     CPPFLAGS="$CPPFLAGS -I${with_des}/include"
8232     LDFLAGS="$LDFLAGS -L${with_des}/lib"
8233   fi
8234
8235   if test "$with_openssl" != no; then
8236         echo "$as_me:$LINENO: checking for des_cbc_encrypt in -lcrypto" >&5
8237 echo $ECHO_N "checking for des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
8238 if test "${ac_cv_lib_crypto_des_cbc_encrypt+set}" = set; then
8239   echo $ECHO_N "(cached) $ECHO_C" >&6
8240 else
8241   ac_check_lib_save_LIBS=$LIBS
8242 LIBS="-lcrypto $LIB_RSAREF $LIBS"
8243 cat >conftest.$ac_ext <<_ACEOF
8244 #line $LINENO "configure"
8245 /* confdefs.h.  */
8246 _ACEOF
8247 cat confdefs.h >>conftest.$ac_ext
8248 cat >>conftest.$ac_ext <<_ACEOF
8249 /* end confdefs.h.  */
8250
8251 /* Override any gcc2 internal prototype to avoid an error.  */
8252 #ifdef __cplusplus
8253 extern "C"
8254 #endif
8255 /* We use char because int might match the return type of a gcc2
8256    builtin and then its argument prototype would still apply.  */
8257 char des_cbc_encrypt ();
8258 int
8259 main ()
8260 {
8261 des_cbc_encrypt ();
8262   ;
8263   return 0;
8264 }
8265 _ACEOF
8266 rm -f conftest.$ac_objext conftest$ac_exeext
8267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8268   (eval $ac_link) 2>&5
8269   ac_status=$?
8270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271   (exit $ac_status); } &&
8272          { ac_try='test -s conftest$ac_exeext'
8273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8274   (eval $ac_try) 2>&5
8275   ac_status=$?
8276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277   (exit $ac_status); }; }; then
8278   ac_cv_lib_crypto_des_cbc_encrypt=yes
8279 else
8280   echo "$as_me: failed program was:" >&5
8281 sed 's/^/| /' conftest.$ac_ext >&5
8282
8283 ac_cv_lib_crypto_des_cbc_encrypt=no
8284 fi
8285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8286 LIBS=$ac_check_lib_save_LIBS
8287 fi
8288 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
8289 echo "${ECHO_T}$ac_cv_lib_crypto_des_cbc_encrypt" >&6
8290 if test $ac_cv_lib_crypto_des_cbc_encrypt = yes; then
8291
8292         if test "${ac_cv_header_openssl_des_h+set}" = set; then
8293   echo "$as_me:$LINENO: checking for openssl/des.h" >&5
8294 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6
8295 if test "${ac_cv_header_openssl_des_h+set}" = set; then
8296   echo $ECHO_N "(cached) $ECHO_C" >&6
8297 fi
8298 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
8299 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6
8300 else
8301   # Is the header compilable?
8302 echo "$as_me:$LINENO: checking openssl/des.h usability" >&5
8303 echo $ECHO_N "checking openssl/des.h usability... $ECHO_C" >&6
8304 cat >conftest.$ac_ext <<_ACEOF
8305 #line $LINENO "configure"
8306 /* confdefs.h.  */
8307 _ACEOF
8308 cat confdefs.h >>conftest.$ac_ext
8309 cat >>conftest.$ac_ext <<_ACEOF
8310 /* end confdefs.h.  */
8311 $ac_includes_default
8312 #include <openssl/des.h>
8313 _ACEOF
8314 rm -f conftest.$ac_objext
8315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8316   (eval $ac_compile) 2>&5
8317   ac_status=$?
8318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319   (exit $ac_status); } &&
8320          { ac_try='test -s conftest.$ac_objext'
8321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322   (eval $ac_try) 2>&5
8323   ac_status=$?
8324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325   (exit $ac_status); }; }; then
8326   ac_header_compiler=yes
8327 else
8328   echo "$as_me: failed program was:" >&5
8329 sed 's/^/| /' conftest.$ac_ext >&5
8330
8331 ac_header_compiler=no
8332 fi
8333 rm -f conftest.$ac_objext conftest.$ac_ext
8334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8335 echo "${ECHO_T}$ac_header_compiler" >&6
8336
8337 # Is the header present?
8338 echo "$as_me:$LINENO: checking openssl/des.h presence" >&5
8339 echo $ECHO_N "checking openssl/des.h presence... $ECHO_C" >&6
8340 cat >conftest.$ac_ext <<_ACEOF
8341 #line $LINENO "configure"
8342 /* confdefs.h.  */
8343 _ACEOF
8344 cat confdefs.h >>conftest.$ac_ext
8345 cat >>conftest.$ac_ext <<_ACEOF
8346 /* end confdefs.h.  */
8347 #include <openssl/des.h>
8348 _ACEOF
8349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8350   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8351   ac_status=$?
8352   grep -v '^ *+' conftest.er1 >conftest.err
8353   rm -f conftest.er1
8354   cat conftest.err >&5
8355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356   (exit $ac_status); } >/dev/null; then
8357   if test -s conftest.err; then
8358     ac_cpp_err=$ac_c_preproc_warn_flag
8359   else
8360     ac_cpp_err=
8361   fi
8362 else
8363   ac_cpp_err=yes
8364 fi
8365 if test -z "$ac_cpp_err"; then
8366   ac_header_preproc=yes
8367 else
8368   echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8370
8371   ac_header_preproc=no
8372 fi
8373 rm -f conftest.err conftest.$ac_ext
8374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8375 echo "${ECHO_T}$ac_header_preproc" >&6
8376
8377 # So?  What about this header?
8378 case $ac_header_compiler:$ac_header_preproc in
8379   yes:no )
8380     { echo "$as_me:$LINENO: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&5
8381 echo "$as_me: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8382     { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
8383 echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
8384     (
8385       cat <<\_ASBOX
8386 ## ------------------------------------ ##
8387 ## Report this to bug-autoconf@gnu.org. ##
8388 ## ------------------------------------ ##
8389 _ASBOX
8390     ) |
8391       sed "s/^/$as_me: WARNING:     /" >&2
8392     ;;
8393   no:yes )
8394     { echo "$as_me:$LINENO: WARNING: openssl/des.h: present but cannot be compiled" >&5
8395 echo "$as_me: WARNING: openssl/des.h: present but cannot be compiled" >&2;}
8396     { echo "$as_me:$LINENO: WARNING: openssl/des.h: check for missing prerequisite headers?" >&5
8397 echo "$as_me: WARNING: openssl/des.h: check for missing prerequisite headers?" >&2;}
8398     { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
8399 echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
8400     (
8401       cat <<\_ASBOX
8402 ## ------------------------------------ ##
8403 ## Report this to bug-autoconf@gnu.org. ##
8404 ## ------------------------------------ ##
8405 _ASBOX
8406     ) |
8407       sed "s/^/$as_me: WARNING:     /" >&2
8408     ;;
8409 esac
8410 echo "$as_me:$LINENO: checking for openssl/des.h" >&5
8411 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6
8412 if test "${ac_cv_header_openssl_des_h+set}" = set; then
8413   echo $ECHO_N "(cached) $ECHO_C" >&6
8414 else
8415   ac_cv_header_openssl_des_h=$ac_header_preproc
8416 fi
8417 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
8418 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6
8419
8420 fi
8421 if test $ac_cv_header_openssl_des_h = yes; then
8422
8423 cat >>confdefs.h <<\_ACEOF
8424 #define WITH_SSL_DES
8425 _ACEOF
8426
8427                                        LIB_DES="-lcrypto";
8428                                        with_des=yes
8429 else
8430   with_des=no
8431 fi
8432
8433
8434 else
8435   with_des=no
8436 fi
8437
8438
8439         if test "$with_des" = no; then
8440       echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
8441 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6
8442 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
8443   echo $ECHO_N "(cached) $ECHO_C" >&6
8444 else
8445   ac_check_lib_save_LIBS=$LIBS
8446 LIBS="-lcrypto $LIB_RSAREF $LIBS"
8447 cat >conftest.$ac_ext <<_ACEOF
8448 #line $LINENO "configure"
8449 /* confdefs.h.  */
8450 _ACEOF
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h.  */
8454
8455 /* Override any gcc2 internal prototype to avoid an error.  */
8456 #ifdef __cplusplus
8457 extern "C"
8458 #endif
8459 /* We use char because int might match the return type of a gcc2
8460    builtin and then its argument prototype would still apply.  */
8461 char DES_cbc_encrypt ();
8462 int
8463 main ()
8464 {
8465 DES_cbc_encrypt ();
8466   ;
8467   return 0;
8468 }
8469 _ACEOF
8470 rm -f conftest.$ac_objext conftest$ac_exeext
8471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8472   (eval $ac_link) 2>&5
8473   ac_status=$?
8474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475   (exit $ac_status); } &&
8476          { ac_try='test -s conftest$ac_exeext'
8477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478   (eval $ac_try) 2>&5
8479   ac_status=$?
8480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); }; }; then
8482   ac_cv_lib_crypto_DES_cbc_encrypt=yes
8483 else
8484   echo "$as_me: failed program was:" >&5
8485 sed 's/^/| /' conftest.$ac_ext >&5
8486
8487 ac_cv_lib_crypto_DES_cbc_encrypt=no
8488 fi
8489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8490 LIBS=$ac_check_lib_save_LIBS
8491 fi
8492 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
8493 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6
8494 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
8495
8496         if test "${ac_cv_header_openssl_des_h+set}" = set; then
8497   echo "$as_me:$LINENO: checking for openssl/des.h" >&5
8498 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6
8499 if test "${ac_cv_header_openssl_des_h+set}" = set; then
8500   echo $ECHO_N "(cached) $ECHO_C" >&6
8501 fi
8502 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
8503 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6
8504 else
8505   # Is the header compilable?
8506 echo "$as_me:$LINENO: checking openssl/des.h usability" >&5
8507 echo $ECHO_N "checking openssl/des.h usability... $ECHO_C" >&6
8508 cat >conftest.$ac_ext <<_ACEOF
8509 #line $LINENO "configure"
8510 /* confdefs.h.  */
8511 _ACEOF
8512 cat confdefs.h >>conftest.$ac_ext
8513 cat >>conftest.$ac_ext <<_ACEOF
8514 /* end confdefs.h.  */
8515 $ac_includes_default
8516 #include <openssl/des.h>
8517 _ACEOF
8518 rm -f conftest.$ac_objext
8519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8520   (eval $ac_compile) 2>&5
8521   ac_status=$?
8522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523   (exit $ac_status); } &&
8524          { ac_try='test -s conftest.$ac_objext'
8525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526   (eval $ac_try) 2>&5
8527   ac_status=$?
8528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529   (exit $ac_status); }; }; then
8530   ac_header_compiler=yes
8531 else
8532   echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8534
8535 ac_header_compiler=no
8536 fi
8537 rm -f conftest.$ac_objext conftest.$ac_ext
8538 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8539 echo "${ECHO_T}$ac_header_compiler" >&6
8540
8541 # Is the header present?
8542 echo "$as_me:$LINENO: checking openssl/des.h presence" >&5
8543 echo $ECHO_N "checking openssl/des.h presence... $ECHO_C" >&6
8544 cat >conftest.$ac_ext <<_ACEOF
8545 #line $LINENO "configure"
8546 /* confdefs.h.  */
8547 _ACEOF
8548 cat confdefs.h >>conftest.$ac_ext
8549 cat >>conftest.$ac_ext <<_ACEOF
8550 /* end confdefs.h.  */
8551 #include <openssl/des.h>
8552 _ACEOF
8553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8554   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8555   ac_status=$?
8556   grep -v '^ *+' conftest.er1 >conftest.err
8557   rm -f conftest.er1
8558   cat conftest.err >&5
8559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560   (exit $ac_status); } >/dev/null; then
8561   if test -s conftest.err; then
8562     ac_cpp_err=$ac_c_preproc_warn_flag
8563   else
8564     ac_cpp_err=
8565   fi
8566 else
8567   ac_cpp_err=yes
8568 fi
8569 if test -z "$ac_cpp_err"; then
8570   ac_header_preproc=yes
8571 else
8572   echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.$ac_ext >&5
8574
8575   ac_header_preproc=no
8576 fi
8577 rm -f conftest.err conftest.$ac_ext
8578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8579 echo "${ECHO_T}$ac_header_preproc" >&6
8580
8581 # So?  What about this header?
8582 case $ac_header_compiler:$ac_header_preproc in
8583   yes:no )
8584     { echo "$as_me:$LINENO: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&5
8585 echo "$as_me: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8586     { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
8587 echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
8588     (
8589       cat <<\_ASBOX
8590 ## ------------------------------------ ##
8591 ## Report this to bug-autoconf@gnu.org. ##
8592 ## ------------------------------------ ##
8593 _ASBOX
8594     ) |
8595       sed "s/^/$as_me: WARNING:     /" >&2
8596     ;;
8597   no:yes )
8598     { echo "$as_me:$LINENO: WARNING: openssl/des.h: present but cannot be compiled" >&5
8599 echo "$as_me: WARNING: openssl/des.h: present but cannot be compiled" >&2;}
8600     { echo "$as_me:$LINENO: WARNING: openssl/des.h: check for missing prerequisite headers?" >&5
8601 echo "$as_me: WARNING: openssl/des.h: check for missing prerequisite headers?" >&2;}
8602     { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
8603 echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
8604     (
8605       cat <<\_ASBOX
8606 ## ------------------------------------ ##
8607 ## Report this to bug-autoconf@gnu.org. ##
8608 ## ------------------------------------ ##
8609 _ASBOX
8610     ) |
8611       sed "s/^/$as_me: WARNING:     /" >&2
8612     ;;
8613 esac
8614 echo "$as_me:$LINENO: checking for openssl/des.h" >&5
8615 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6
8616 if test "${ac_cv_header_openssl_des_h+set}" = set; then
8617   echo $ECHO_N "(cached) $ECHO_C" >&6
8618 else
8619   ac_cv_header_openssl_des_h=$ac_header_preproc
8620 fi
8621 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
8622 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6
8623
8624 fi
8625 if test $ac_cv_header_openssl_des_h = yes; then
8626
8627 cat >>confdefs.h <<\_ACEOF
8628 #define WITH_SSL_DES
8629 _ACEOF
8630
8631                                        LIB_DES="-lcrypto";
8632                                        with_des=yes
8633 else
8634   with_des=no
8635 fi
8636
8637
8638 else
8639   with_des=no
8640 fi
8641
8642     fi
8643   fi
8644
8645   if test "$with_des" = no; then
8646     echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
8647 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
8648 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
8649   echo $ECHO_N "(cached) $ECHO_C" >&6
8650 else
8651   ac_check_lib_save_LIBS=$LIBS
8652 LIBS="-ldes  $LIBS"
8653 cat >conftest.$ac_ext <<_ACEOF
8654 #line $LINENO "configure"
8655 /* confdefs.h.  */
8656 _ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h.  */
8660
8661 /* Override any gcc2 internal prototype to avoid an error.  */
8662 #ifdef __cplusplus
8663 extern "C"
8664 #endif
8665 /* We use char because int might match the return type of a gcc2
8666    builtin and then its argument prototype would still apply.  */
8667 char des_cbc_encrypt ();
8668 int
8669 main ()
8670 {
8671 des_cbc_encrypt ();
8672   ;
8673   return 0;
8674 }
8675 _ACEOF
8676 rm -f conftest.$ac_objext conftest$ac_exeext
8677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8678   (eval $ac_link) 2>&5
8679   ac_status=$?
8680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681   (exit $ac_status); } &&
8682          { ac_try='test -s conftest$ac_exeext'
8683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8684   (eval $ac_try) 2>&5
8685   ac_status=$?
8686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687   (exit $ac_status); }; }; then
8688   ac_cv_lib_des_des_cbc_encrypt=yes
8689 else
8690   echo "$as_me: failed program was:" >&5
8691 sed 's/^/| /' conftest.$ac_ext >&5
8692
8693 ac_cv_lib_des_des_cbc_encrypt=no
8694 fi
8695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8696 LIBS=$ac_check_lib_save_LIBS
8697 fi
8698 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
8699 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
8700 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
8701   LIB_DES="-ldes";
8702                                         with_des=yes
8703 else
8704   with_des=no
8705 fi
8706
8707   fi
8708
8709   if test "$with_des" = no; then
8710      echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
8711 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
8712 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
8713   echo $ECHO_N "(cached) $ECHO_C" >&6
8714 else
8715   ac_check_lib_save_LIBS=$LIBS
8716 LIBS="-ldes425  $LIBS"
8717 cat >conftest.$ac_ext <<_ACEOF
8718 #line $LINENO "configure"
8719 /* confdefs.h.  */
8720 _ACEOF
8721 cat confdefs.h >>conftest.$ac_ext
8722 cat >>conftest.$ac_ext <<_ACEOF
8723 /* end confdefs.h.  */
8724
8725 /* Override any gcc2 internal prototype to avoid an error.  */
8726 #ifdef __cplusplus
8727 extern "C"
8728 #endif
8729 /* We use char because int might match the return type of a gcc2
8730    builtin and then its argument prototype would still apply.  */
8731 char des_cbc_encrypt ();
8732 int
8733 main ()
8734 {
8735 des_cbc_encrypt ();
8736   ;
8737   return 0;
8738 }
8739 _ACEOF
8740 rm -f conftest.$ac_objext conftest$ac_exeext
8741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8742   (eval $ac_link) 2>&5
8743   ac_status=$?
8744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745   (exit $ac_status); } &&
8746          { ac_try='test -s conftest$ac_exeext'
8747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8748   (eval $ac_try) 2>&5
8749   ac_status=$?
8750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751   (exit $ac_status); }; }; then
8752   ac_cv_lib_des425_des_cbc_encrypt=yes
8753 else
8754   echo "$as_me: failed program was:" >&5
8755 sed 's/^/| /' conftest.$ac_ext >&5
8756
8757 ac_cv_lib_des425_des_cbc_encrypt=no
8758 fi
8759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8760 LIBS=$ac_check_lib_save_LIBS
8761 fi
8762 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
8763 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
8764 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
8765   LIB_DES="-ldes425";
8766                                        with_des=yes
8767 else
8768   with_des=no
8769 fi
8770
8771   fi
8772
8773   if test "$with_des" = no; then
8774      echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes524" >&5
8775 echo $ECHO_N "checking for des_cbc_encrypt in -ldes524... $ECHO_C" >&6
8776 if test "${ac_cv_lib_des524_des_cbc_encrypt+set}" = set; then
8777   echo $ECHO_N "(cached) $ECHO_C" >&6
8778 else
8779   ac_check_lib_save_LIBS=$LIBS
8780 LIBS="-ldes524  $LIBS"
8781 cat >conftest.$ac_ext <<_ACEOF
8782 #line $LINENO "configure"
8783 /* confdefs.h.  */
8784 _ACEOF
8785 cat confdefs.h >>conftest.$ac_ext
8786 cat >>conftest.$ac_ext <<_ACEOF
8787 /* end confdefs.h.  */
8788
8789 /* Override any gcc2 internal prototype to avoid an error.  */
8790 #ifdef __cplusplus
8791 extern "C"
8792 #endif
8793 /* We use char because int might match the return type of a gcc2
8794    builtin and then its argument prototype would still apply.  */
8795 char des_cbc_encrypt ();
8796 int
8797 main ()
8798 {
8799 des_cbc_encrypt ();
8800   ;
8801   return 0;
8802 }
8803 _ACEOF
8804 rm -f conftest.$ac_objext conftest$ac_exeext
8805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8806   (eval $ac_link) 2>&5
8807   ac_status=$?
8808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809   (exit $ac_status); } &&
8810          { ac_try='test -s conftest$ac_exeext'
8811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8812   (eval $ac_try) 2>&5
8813   ac_status=$?
8814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815   (exit $ac_status); }; }; then
8816   ac_cv_lib_des524_des_cbc_encrypt=yes
8817 else
8818   echo "$as_me: failed program was:" >&5
8819 sed 's/^/| /' conftest.$ac_ext >&5
8820
8821 ac_cv_lib_des524_des_cbc_encrypt=no
8822 fi
8823 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8824 LIBS=$ac_check_lib_save_LIBS
8825 fi
8826 echo "$as_me:$LINENO: result: $ac_cv_lib_des524_des_cbc_encrypt" >&5
8827 echo "${ECHO_T}$ac_cv_lib_des524_des_cbc_encrypt" >&6
8828 if test $ac_cv_lib_des524_des_cbc_encrypt = yes; then
8829   LIB_DES="-ldes524";
8830                                        with_des=yes
8831 else
8832   with_des=no
8833 fi
8834
8835   fi
8836
8837   if test "$with_des" = no; then
8838
8839             LIB_RSAREF=""
8840     echo "$as_me:$LINENO: checking for RSAPublicEncrypt in -lrsaref" >&5
8841 echo $ECHO_N "checking for RSAPublicEncrypt in -lrsaref... $ECHO_C" >&6
8842 if test "${ac_cv_lib_rsaref_RSAPublicEncrypt+set}" = set; then
8843   echo $ECHO_N "(cached) $ECHO_C" >&6
8844 else
8845   ac_check_lib_save_LIBS=$LIBS
8846 LIBS="-lrsaref  $LIBS"
8847 cat >conftest.$ac_ext <<_ACEOF
8848 #line $LINENO "configure"
8849 /* confdefs.h.  */
8850 _ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h.  */
8854
8855 /* Override any gcc2 internal prototype to avoid an error.  */
8856 #ifdef __cplusplus
8857 extern "C"
8858 #endif
8859 /* We use char because int might match the return type of a gcc2
8860    builtin and then its argument prototype would still apply.  */
8861 char RSAPublicEncrypt ();
8862 int
8863 main ()
8864 {
8865 RSAPublicEncrypt ();
8866   ;
8867   return 0;
8868 }
8869 _ACEOF
8870 rm -f conftest.$ac_objext conftest$ac_exeext
8871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8872   (eval $ac_link) 2>&5
8873   ac_status=$?
8874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875   (exit $ac_status); } &&
8876          { ac_try='test -s conftest$ac_exeext'
8877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878   (eval $ac_try) 2>&5
8879   ac_status=$?
8880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881   (exit $ac_status); }; }; then
8882   ac_cv_lib_rsaref_RSAPublicEncrypt=yes
8883 else
8884   echo "$as_me: failed program was:" >&5
8885 sed 's/^/| /' conftest.$ac_ext >&5
8886
8887 ac_cv_lib_rsaref_RSAPublicEncrypt=no
8888 fi
8889 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8890 LIBS=$ac_check_lib_save_LIBS
8891 fi
8892 echo "$as_me:$LINENO: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5
8893 echo "${ECHO_T}$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6
8894 if test $ac_cv_lib_rsaref_RSAPublicEncrypt = yes; then
8895   LIB_RSAREF="-lRSAglue -lrsaref"; cmu_have_rsaref=yes
8896 else
8897   cmu_have_rsaref=no
8898 fi
8899
8900
8901     echo "$as_me:$LINENO: checking for des_cbc_encrypt in -lcrypto" >&5
8902 echo $ECHO_N "checking for des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
8903 if test "${ac_cv_lib_crypto_des_cbc_encrypt+set}" = set; then
8904   echo $ECHO_N "(cached) $ECHO_C" >&6
8905 else
8906   ac_check_lib_save_LIBS=$LIBS
8907 LIBS="-lcrypto $LIB_RSAREF $LIBS"
8908 cat >conftest.$ac_ext <<_ACEOF
8909 #line $LINENO "configure"
8910 /* confdefs.h.  */
8911 _ACEOF
8912 cat confdefs.h >>conftest.$ac_ext
8913 cat >>conftest.$ac_ext <<_ACEOF
8914 /* end confdefs.h.  */
8915
8916 /* Override any gcc2 internal prototype to avoid an error.  */
8917 #ifdef __cplusplus
8918 extern "C"
8919 #endif
8920 /* We use char because int might match the return type of a gcc2
8921    builtin and then its argument prototype would still apply.  */
8922 char des_cbc_encrypt ();
8923 int
8924 main ()
8925 {
8926 des_cbc_encrypt ();
8927   ;
8928   return 0;
8929 }
8930 _ACEOF
8931 rm -f conftest.$ac_objext conftest$ac_exeext
8932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8933   (eval $ac_link) 2>&5
8934   ac_status=$?
8935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936   (exit $ac_status); } &&
8937          { ac_try='test -s conftest$ac_exeext'
8938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939   (eval $ac_try) 2>&5
8940   ac_status=$?
8941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942   (exit $ac_status); }; }; then
8943   ac_cv_lib_crypto_des_cbc_encrypt=yes
8944 else
8945   echo "$as_me: failed program was:" >&5
8946 sed 's/^/| /' conftest.$ac_ext >&5
8947
8948 ac_cv_lib_crypto_des_cbc_encrypt=no
8949 fi
8950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8951 LIBS=$ac_check_lib_save_LIBS
8952 fi
8953 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
8954 echo "${ECHO_T}$ac_cv_lib_crypto_des_cbc_encrypt" >&6
8955 if test $ac_cv_lib_crypto_des_cbc_encrypt = yes; then
8956
8957         if test "${ac_cv_header_openssl_des_h+set}" = set; then
8958   echo "$as_me:$LINENO: checking for openssl/des.h" >&5
8959 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6
8960 if test "${ac_cv_header_openssl_des_h+set}" = set; then
8961   echo $ECHO_N "(cached) $ECHO_C" >&6
8962 fi
8963 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
8964 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6
8965 else
8966   # Is the header compilable?
8967 echo "$as_me:$LINENO: checking openssl/des.h usability" >&5
8968 echo $ECHO_N "checking openssl/des.h usability... $ECHO_C" >&6
8969 cat >conftest.$ac_ext <<_ACEOF
8970 #line $LINENO "configure"
8971 /* confdefs.h.  */
8972 _ACEOF
8973 cat confdefs.h >>conftest.$ac_ext
8974 cat >>conftest.$ac_ext <<_ACEOF
8975 /* end confdefs.h.  */
8976 $ac_includes_default
8977 #include <openssl/des.h>
8978 _ACEOF
8979 rm -f conftest.$ac_objext
8980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8981   (eval $ac_compile) 2>&5
8982   ac_status=$?
8983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984   (exit $ac_status); } &&
8985          { ac_try='test -s conftest.$ac_objext'
8986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8987   (eval $ac_try) 2>&5
8988   ac_status=$?
8989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990   (exit $ac_status); }; }; then
8991   ac_header_compiler=yes
8992 else
8993   echo "$as_me: failed program was:" >&5
8994 sed 's/^/| /' conftest.$ac_ext >&5
8995
8996 ac_header_compiler=no
8997 fi
8998 rm -f conftest.$ac_objext conftest.$ac_ext
8999 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9000 echo "${ECHO_T}$ac_header_compiler" >&6
9001
9002 # Is the header present?
9003 echo "$as_me:$LINENO: checking openssl/des.h presence" >&5
9004 echo $ECHO_N "checking openssl/des.h presence... $ECHO_C" >&6
9005 cat >conftest.$ac_ext <<_ACEOF
9006 #line $LINENO "configure"
9007 /* confdefs.h.  */
9008 _ACEOF
9009 cat confdefs.h >>conftest.$ac_ext
9010 cat >>conftest.$ac_ext <<_ACEOF
9011 /* end confdefs.h.  */
9012 #include <openssl/des.h>
9013 _ACEOF
9014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9015   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9016   ac_status=$?
9017   grep -v '^ *+' conftest.er1 >conftest.err
9018   rm -f conftest.er1
9019   cat conftest.err >&5
9020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021   (exit $ac_status); } >/dev/null; then
9022   if test -s conftest.err; then
9023     ac_cpp_err=$ac_c_preproc_warn_flag
9024   else
9025     ac_cpp_err=
9026   fi
9027 else
9028   ac_cpp_err=yes
9029 fi
9030 if test -z "$ac_cpp_err"; then
9031   ac_header_preproc=yes
9032 else
9033   echo "$as_me: failed program was:" >&5
9034 sed 's/^/| /' conftest.$ac_ext >&5
9035
9036   ac_header_preproc=no
9037 fi
9038 rm -f conftest.err conftest.$ac_ext
9039 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9040 echo "${ECHO_T}$ac_header_preproc" >&6
9041
9042 # So?  What about this header?
9043 case $ac_header_compiler:$ac_header_preproc in
9044   yes:no )
9045     { echo "$as_me:$LINENO: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&5
9046 echo "$as_me: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9047     { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
9048 echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
9049     (
9050       cat <<\_ASBOX
9051 ## ------------------------------------ ##
9052 ## Report this to bug-autoconf@gnu.org. ##
9053 ## ------------------------------------ ##
9054 _ASBOX
9055     ) |
9056       sed "s/^/$as_me: WARNING:     /" >&2
9057     ;;
9058   no:yes )
9059     { echo "$as_me:$LINENO: WARNING: openssl/des.h: present but cannot be compiled" >&5
9060 echo "$as_me: WARNING: openssl/des.h: present but cannot be compiled" >&2;}
9061     { echo "$as_me:$LINENO: WARNING: openssl/des.h: check for missing prerequisite headers?" >&5
9062 echo "$as_me: WARNING: openssl/des.h: check for missing prerequisite headers?" >&2;}
9063     { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
9064 echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
9065     (
9066       cat <<\_ASBOX
9067 ## ------------------------------------ ##
9068 ## Report this to bug-autoconf@gnu.org. ##
9069 ## ------------------------------------ ##
9070 _ASBOX
9071     ) |
9072       sed "s/^/$as_me: WARNING:     /" >&2
9073     ;;
9074 esac
9075 echo "$as_me:$LINENO: checking for openssl/des.h" >&5
9076 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6
9077 if test "${ac_cv_header_openssl_des_h+set}" = set; then
9078   echo $ECHO_N "(cached) $ECHO_C" >&6
9079 else
9080   ac_cv_header_openssl_des_h=$ac_header_preproc
9081 fi
9082 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
9083 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6
9084
9085 fi
9086 if test $ac_cv_header_openssl_des_h = yes; then
9087
9088 cat >>confdefs.h <<\_ACEOF
9089 #define WITH_SSL_DES
9090 _ACEOF
9091
9092                                         LIB_DES="-lcrypto";
9093                                         with_des=yes
9094 else
9095   with_des=no
9096 fi
9097
9098
9099 else
9100   with_des=no
9101 fi
9102
9103   fi
9104 fi
9105
9106 if test "$with_des" != no; then
9107
9108 cat >>confdefs.h <<\_ACEOF
9109 #define WITH_DES
9110 _ACEOF
9111
9112 fi
9113
9114
9115
9116
9117 # Check whether --enable-digest or --disable-digest was given.
9118 if test "${enable_digest+set}" = set; then
9119   enableval="$enable_digest"
9120   digest=$enableval
9121 else
9122   digest=yes
9123 fi;
9124
9125 if test "$digest" != no; then
9126     if test -d $digest; then
9127     CPPFLAGS="$CPPFLAGS -I$digest/include"
9128     LDFLAGS="$LDFLAGS -L$digest/lib"
9129   fi
9130   if test "$with_des" = no; then
9131     { echo "$as_me:$LINENO: WARNING: No DES support for DIGEST-MD5" >&5
9132 echo "$as_me: WARNING: No DES support for DIGEST-MD5" >&2;}
9133   fi
9134 fi
9135
9136 echo "$as_me:$LINENO: checking DIGEST-MD5" >&5
9137 echo $ECHO_N "checking DIGEST-MD5... $ECHO_C" >&6
9138 if test "$digest" != no; then
9139   echo "$as_me:$LINENO: result: enabled" >&5
9140 echo "${ECHO_T}enabled" >&6
9141   SASL_MECHS="$SASL_MECHS libdigestmd5.la"
9142   if test "$enable_static" = yes; then
9143     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/digestmd5.c"
9144     SASL_STATIC_OBJS="$SASL_STATIC_OBJS digestmd5.o"
9145
9146 cat >>confdefs.h <<\_ACEOF
9147 #define STATIC_DIGESTMD5
9148 _ACEOF
9149
9150   fi
9151 else
9152   echo "$as_me:$LINENO: result: disabled" >&5
9153 echo "${ECHO_T}disabled" >&6
9154 fi
9155
9156 # Check whether --enable-otp or --disable-otp was given.
9157 if test "${enable_otp+set}" = set; then
9158   enableval="$enable_otp"
9159   otp=$enableval
9160 else
9161   otp=yes
9162 fi;
9163
9164 if test "$with_openssl" = no; then
9165   { echo "$as_me:$LINENO: WARNING: OpenSSL not found -- OTP will be disabled" >&5
9166 echo "$as_me: WARNING: OpenSSL not found -- OTP will be disabled" >&2;}
9167   otp=no
9168 fi
9169
9170 echo "$as_me:$LINENO: checking OTP" >&5
9171 echo $ECHO_N "checking OTP... $ECHO_C" >&6
9172 if test "$otp" != no; then
9173   echo "$as_me:$LINENO: result: enabled" >&5
9174 echo "${ECHO_T}enabled" >&6
9175   OTP_LIBS="-lcrypto $LIB_RSAREF"
9176
9177   SASL_MECHS="$SASL_MECHS libotp.la"
9178   if test "$enable_static" = yes; then
9179     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/otp.c"
9180     SASL_STATIC_OBJS="$SASL_STATIC_OBJS otp.o"
9181
9182 cat >>confdefs.h <<\_ACEOF
9183 #define STATIC_OTP
9184 _ACEOF
9185
9186   fi
9187
9188
9189 # Check whether --with-with-opie or --without-with-opie was given.
9190 if test "${with_with_opie+set}" = set; then
9191   withval="$with_with_opie"
9192   with_opie="${withval}"
9193 fi;
9194
9195   case "$with_opie" in
9196         ""|yes)
9197                 echo "$as_me:$LINENO: checking for opiechallenge in -lopie" >&5
9198 echo $ECHO_N "checking for opiechallenge in -lopie... $ECHO_C" >&6
9199 if test "${ac_cv_lib_opie_opiechallenge+set}" = set; then
9200   echo $ECHO_N "(cached) $ECHO_C" >&6
9201 else
9202   ac_check_lib_save_LIBS=$LIBS
9203 LIBS="-lopie  $LIBS"
9204 cat >conftest.$ac_ext <<_ACEOF
9205 #line $LINENO "configure"
9206 /* confdefs.h.  */
9207 _ACEOF
9208 cat confdefs.h >>conftest.$ac_ext
9209 cat >>conftest.$ac_ext <<_ACEOF
9210 /* end confdefs.h.  */
9211
9212 /* Override any gcc2 internal prototype to avoid an error.  */
9213 #ifdef __cplusplus
9214 extern "C"
9215 #endif
9216 /* We use char because int might match the return type of a gcc2
9217    builtin and then its argument prototype would still apply.  */
9218 char opiechallenge ();
9219 int
9220 main ()
9221 {
9222 opiechallenge ();
9223   ;
9224   return 0;
9225 }
9226 _ACEOF
9227 rm -f conftest.$ac_objext conftest$ac_exeext
9228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9229   (eval $ac_link) 2>&5
9230   ac_status=$?
9231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232   (exit $ac_status); } &&
9233          { ac_try='test -s conftest$ac_exeext'
9234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235   (eval $ac_try) 2>&5
9236   ac_status=$?
9237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238   (exit $ac_status); }; }; then
9239   ac_cv_lib_opie_opiechallenge=yes
9240 else
9241   echo "$as_me: failed program was:" >&5
9242 sed 's/^/| /' conftest.$ac_ext >&5
9243
9244 ac_cv_lib_opie_opiechallenge=no
9245 fi
9246 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9247 LIBS=$ac_check_lib_save_LIBS
9248 fi
9249 echo "$as_me:$LINENO: result: $ac_cv_lib_opie_opiechallenge" >&5
9250 echo "${ECHO_T}$ac_cv_lib_opie_opiechallenge" >&6
9251 if test $ac_cv_lib_opie_opiechallenge = yes; then
9252
9253                         if test "${ac_cv_header_opie_h+set}" = set; then
9254   echo "$as_me:$LINENO: checking for opie.h" >&5
9255 echo $ECHO_N "checking for opie.h... $ECHO_C" >&6
9256 if test "${ac_cv_header_opie_h+set}" = set; then
9257   echo $ECHO_N "(cached) $ECHO_C" >&6
9258 fi
9259 echo "$as_me:$LINENO: result: $ac_cv_header_opie_h" >&5
9260 echo "${ECHO_T}$ac_cv_header_opie_h" >&6
9261 else
9262   # Is the header compilable?
9263 echo "$as_me:$LINENO: checking opie.h usability" >&5
9264 echo $ECHO_N "checking opie.h usability... $ECHO_C" >&6
9265 cat >conftest.$ac_ext <<_ACEOF
9266 #line $LINENO "configure"
9267 /* confdefs.h.  */
9268 _ACEOF
9269 cat confdefs.h >>conftest.$ac_ext
9270 cat >>conftest.$ac_ext <<_ACEOF
9271 /* end confdefs.h.  */
9272 $ac_includes_default
9273 #include <opie.h>
9274 _ACEOF
9275 rm -f conftest.$ac_objext
9276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9277   (eval $ac_compile) 2>&5
9278   ac_status=$?
9279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280   (exit $ac_status); } &&
9281          { ac_try='test -s conftest.$ac_objext'
9282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9283   (eval $ac_try) 2>&5
9284   ac_status=$?
9285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286   (exit $ac_status); }; }; then
9287   ac_header_compiler=yes
9288 else
9289   echo "$as_me: failed program was:" >&5
9290 sed 's/^/| /' conftest.$ac_ext >&5
9291
9292 ac_header_compiler=no
9293 fi
9294 rm -f conftest.$ac_objext conftest.$ac_ext
9295 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9296 echo "${ECHO_T}$ac_header_compiler" >&6
9297
9298 # Is the header present?
9299 echo "$as_me:$LINENO: checking opie.h presence" >&5
9300 echo $ECHO_N "checking opie.h presence... $ECHO_C" >&6
9301 cat >conftest.$ac_ext <<_ACEOF
9302 #line $LINENO "configure"
9303 /* confdefs.h.  */
9304 _ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h.  */
9308 #include <opie.h>
9309 _ACEOF
9310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9311   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9312   ac_status=$?
9313   grep -v '^ *+' conftest.er1 >conftest.err
9314   rm -f conftest.er1
9315   cat conftest.err >&5
9316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317   (exit $ac_status); } >/dev/null; then
9318   if test -s conftest.err; then
9319     ac_cpp_err=$ac_c_preproc_warn_flag
9320   else
9321     ac_cpp_err=
9322   fi
9323 else
9324   ac_cpp_err=yes
9325 fi
9326 if test -z "$ac_cpp_err"; then
9327   ac_header_preproc=yes
9328 else
9329   echo "$as_me: failed program was:" >&5
9330 sed 's/^/| /' conftest.$ac_ext >&5
9331
9332   ac_header_preproc=no
9333 fi
9334 rm -f conftest.err conftest.$ac_ext
9335 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9336 echo "${ECHO_T}$ac_header_preproc" >&6
9337
9338 # So?  What about this header?
9339 case $ac_header_compiler:$ac_header_preproc in
9340   yes:no )
9341     { echo "$as_me:$LINENO: WARNING: opie.h: accepted by the compiler, rejected by the preprocessor!" >&5
9342 echo "$as_me: WARNING: opie.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9343     { echo "$as_me:$LINENO: WARNING: opie.h: proceeding with the preprocessor's result" >&5
9344 echo "$as_me: WARNING: opie.h: proceeding with the preprocessor's result" >&2;}
9345     (
9346       cat <<\_ASBOX
9347 ## ------------------------------------ ##
9348 ## Report this to bug-autoconf@gnu.org. ##
9349 ## ------------------------------------ ##
9350 _ASBOX
9351     ) |
9352       sed "s/^/$as_me: WARNING:     /" >&2
9353     ;;
9354   no:yes )
9355     { echo "$as_me:$LINENO: WARNING: opie.h: present but cannot be compiled" >&5
9356 echo "$as_me: WARNING: opie.h: present but cannot be compiled" >&2;}
9357     { echo "$as_me:$LINENO: WARNING: opie.h: check for missing prerequisite headers?" >&5
9358 echo "$as_me: WARNING: opie.h: check for missing prerequisite headers?" >&2;}
9359     { echo "$as_me:$LINENO: WARNING: opie.h: proceeding with the preprocessor's result" >&5
9360 echo "$as_me: WARNING: opie.h: proceeding with the preprocessor's result" >&2;}
9361     (
9362       cat <<\_ASBOX
9363 ## ------------------------------------ ##
9364 ## Report this to bug-autoconf@gnu.org. ##
9365 ## ------------------------------------ ##
9366 _ASBOX
9367     ) |
9368       sed "s/^/$as_me: WARNING:     /" >&2
9369     ;;
9370 esac
9371 echo "$as_me:$LINENO: checking for opie.h" >&5
9372 echo $ECHO_N "checking for opie.h... $ECHO_C" >&6
9373 if test "${ac_cv_header_opie_h+set}" = set; then
9374   echo $ECHO_N "(cached) $ECHO_C" >&6
9375 else
9376   ac_cv_header_opie_h=$ac_header_preproc
9377 fi
9378 echo "$as_me:$LINENO: result: $ac_cv_header_opie_h" >&5
9379 echo "${ECHO_T}$ac_cv_header_opie_h" >&6
9380
9381 fi
9382 if test $ac_cv_header_opie_h = yes; then
9383   with_opie="yes"
9384 else
9385   with_opie="no"
9386 fi
9387
9388
9389 else
9390   with_opie="no"
9391 fi
9392
9393                 ;;
9394         *)
9395                 if test -d $with_opie; then
9396                   CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
9397                   LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
9398                 else
9399                   with_opie="no"
9400                 fi
9401                 ;;
9402   esac
9403
9404   echo "$as_me:$LINENO: checking for OPIE" >&5
9405 echo $ECHO_N "checking for OPIE... $ECHO_C" >&6
9406   echo "$as_me:$LINENO: result: $with_opie" >&5
9407 echo "${ECHO_T}$with_opie" >&6
9408
9409   if test "$with_opie" != no; then
9410
9411 cat >>confdefs.h <<\_ACEOF
9412 #define HAVE_OPIE
9413 _ACEOF
9414
9415     OTP_LIBS="$OTP_LIBS -lopie"
9416   fi
9417
9418
9419
9420 else
9421   echo "$as_me:$LINENO: result: disabled" >&5
9422 echo "${ECHO_T}disabled" >&6
9423 fi
9424
9425 # Check whether --enable-srp or --disable-srp was given.
9426 if test "${enable_srp+set}" = set; then
9427   enableval="$enable_srp"
9428   srp=$enableval
9429 else
9430   srp=no
9431 fi;
9432
9433 if test "$with_openssl" = no; then
9434   { echo "$as_me:$LINENO: WARNING: OpenSSL not found -- SRP will be disabled" >&5
9435 echo "$as_me: WARNING: OpenSSL not found -- SRP will be disabled" >&2;}
9436   srp=no
9437 fi
9438
9439 echo "$as_me:$LINENO: checking SRP" >&5
9440 echo $ECHO_N "checking SRP... $ECHO_C" >&6
9441 if test "$srp" != no; then
9442   echo "$as_me:$LINENO: result: enabled" >&5
9443 echo "${ECHO_T}enabled" >&6
9444   SRP_LIBS="-lcrypto $LIB_RSAREF"
9445
9446   SASL_MECHS="$SASL_MECHS libsrp.la"
9447   if test "$enable_static" = yes; then
9448     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/srp.c"
9449     SASL_STATIC_OBJS="$SASL_STATIC_OBJS srp.o"
9450
9451 cat >>confdefs.h <<\_ACEOF
9452 #define STATIC_SRP
9453 _ACEOF
9454
9455   fi
9456
9457   # Check whether --enable-srp_setpass or --disable-srp_setpass was given.
9458 if test "${enable_srp_setpass+set}" = set; then
9459   enableval="$enable_srp_setpass"
9460   srp_setpass=$enableval
9461 else
9462   srp_setpass=no
9463 fi;
9464
9465   echo "$as_me:$LINENO: checking if we should enable setting SRP secrets with saslpasswd" >&5
9466 echo $ECHO_N "checking if we should enable setting SRP secrets with saslpasswd... $ECHO_C" >&6
9467   if test "$srp_setpass" != no; then
9468     echo "$as_me:$LINENO: result: enabled" >&5
9469 echo "${ECHO_T}enabled" >&6
9470
9471 cat >>confdefs.h <<\_ACEOF
9472 #define DO_SRP_SETPASS
9473 _ACEOF
9474
9475   else
9476     echo "$as_me:$LINENO: result: disabled" >&5
9477 echo "${ECHO_T}disabled" >&6
9478   fi
9479
9480
9481 else
9482   echo "$as_me:$LINENO: result: disabled" >&5
9483 echo "${ECHO_T}disabled" >&6
9484 fi
9485
9486
9487
9488
9489   # Check whether --enable-krb4 or --disable-krb4 was given.
9490 if test "${enable_krb4+set}" = set; then
9491   enableval="$enable_krb4"
9492   krb4=$enableval
9493 else
9494   krb4=no
9495 fi;
9496
9497   if test "$krb4" != no; then
9498
9499 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
9500 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
9501 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
9502   echo $ECHO_N "(cached) $ECHO_C" >&6
9503 else
9504   ac_check_lib_save_LIBS=$LIBS
9505 LIBS="-lresolv  $LIBS"
9506 cat >conftest.$ac_ext <<_ACEOF
9507 #line $LINENO "configure"
9508 /* confdefs.h.  */
9509 _ACEOF
9510 cat confdefs.h >>conftest.$ac_ext
9511 cat >>conftest.$ac_ext <<_ACEOF
9512 /* end confdefs.h.  */
9513
9514 /* Override any gcc2 internal prototype to avoid an error.  */
9515 #ifdef __cplusplus
9516 extern "C"
9517 #endif
9518 /* We use char because int might match the return type of a gcc2
9519    builtin and then its argument prototype would still apply.  */
9520 char res_search ();
9521 int
9522 main ()
9523 {
9524 res_search ();
9525   ;
9526   return 0;
9527 }
9528 _ACEOF
9529 rm -f conftest.$ac_objext conftest$ac_exeext
9530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9531   (eval $ac_link) 2>&5
9532   ac_status=$?
9533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534   (exit $ac_status); } &&
9535          { ac_try='test -s conftest$ac_exeext'
9536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537   (eval $ac_try) 2>&5
9538   ac_status=$?
9539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540   (exit $ac_status); }; }; then
9541   ac_cv_lib_resolv_res_search=yes
9542 else
9543   echo "$as_me: failed program was:" >&5
9544 sed 's/^/| /' conftest.$ac_ext >&5
9545
9546 ac_cv_lib_resolv_res_search=no
9547 fi
9548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9549 LIBS=$ac_check_lib_save_LIBS
9550 fi
9551 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
9552 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
9553 if test $ac_cv_lib_resolv_res_search = yes; then
9554   cat >>confdefs.h <<_ACEOF
9555 #define HAVE_LIBRESOLV 1
9556 _ACEOF
9557
9558   LIBS="-lresolv $LIBS"
9559
9560 fi
9561
9562
9563             if test -d ${krb4}; then
9564        echo "$as_me:$LINENO: checking for Kerberos includes" >&5
9565 echo $ECHO_N "checking for Kerberos includes... $ECHO_C" >&6
9566 if test "${cyrus_krbinclude+set}" = set; then
9567   echo $ECHO_N "(cached) $ECHO_C" >&6
9568 else
9569
9570          for krbhloc in include/kerberosIV include/kerberos include
9571          do
9572            if test -f ${krb4}/${krbhloc}/krb.h ; then
9573              cyrus_krbinclude=${krb4}/${krbhloc}
9574              break
9575            fi
9576          done
9577
9578 fi
9579 echo "$as_me:$LINENO: result: $cyrus_krbinclude" >&5
9580 echo "${ECHO_T}$cyrus_krbinclude" >&6
9581
9582        if test -n "${cyrus_krbinclude}"; then
9583          CPPFLAGS="$CPPFLAGS -I${cyrus_krbinclude}"
9584        fi
9585        LDFLAGS="$LDFLAGS -L$krb4/lib"
9586     fi
9587
9588     if test "$with_des" != no; then
9589       if test "${ac_cv_header_krb_h+set}" = set; then
9590   echo "$as_me:$LINENO: checking for krb.h" >&5
9591 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
9592 if test "${ac_cv_header_krb_h+set}" = set; then
9593   echo $ECHO_N "(cached) $ECHO_C" >&6
9594 fi
9595 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
9596 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
9597 else
9598   # Is the header compilable?
9599 echo "$as_me:$LINENO: checking krb.h usability" >&5
9600 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
9601 cat >conftest.$ac_ext <<_ACEOF
9602 #line $LINENO "configure"
9603 /* confdefs.h.  */
9604 _ACEOF
9605 cat confdefs.h >>conftest.$ac_ext
9606 cat >>conftest.$ac_ext <<_ACEOF
9607 /* end confdefs.h.  */
9608 $ac_includes_default
9609 #include <krb.h>
9610 _ACEOF
9611 rm -f conftest.$ac_objext
9612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9613   (eval $ac_compile) 2>&5
9614   ac_status=$?
9615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616   (exit $ac_status); } &&
9617          { ac_try='test -s conftest.$ac_objext'
9618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9619   (eval $ac_try) 2>&5
9620   ac_status=$?
9621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622   (exit $ac_status); }; }; then
9623   ac_header_compiler=yes
9624 else
9625   echo "$as_me: failed program was:" >&5
9626 sed 's/^/| /' conftest.$ac_ext >&5
9627
9628 ac_header_compiler=no
9629 fi
9630 rm -f conftest.$ac_objext conftest.$ac_ext
9631 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9632 echo "${ECHO_T}$ac_header_compiler" >&6
9633
9634 # Is the header present?
9635 echo "$as_me:$LINENO: checking krb.h presence" >&5
9636 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
9637 cat >conftest.$ac_ext <<_ACEOF
9638 #line $LINENO "configure"
9639 /* confdefs.h.  */
9640 _ACEOF
9641 cat confdefs.h >>conftest.$ac_ext
9642 cat >>conftest.$ac_ext <<_ACEOF
9643 /* end confdefs.h.  */
9644 #include <krb.h>
9645 _ACEOF
9646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9647   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9648   ac_status=$?
9649   grep -v '^ *+' conftest.er1 >conftest.err
9650   rm -f conftest.er1
9651   cat conftest.err >&5
9652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653   (exit $ac_status); } >/dev/null; then
9654   if test -s conftest.err; then
9655     ac_cpp_err=$ac_c_preproc_warn_flag
9656   else
9657     ac_cpp_err=
9658   fi
9659 else
9660   ac_cpp_err=yes
9661 fi
9662 if test -z "$ac_cpp_err"; then
9663   ac_header_preproc=yes
9664 else
9665   echo "$as_me: failed program was:" >&5
9666 sed 's/^/| /' conftest.$ac_ext >&5
9667
9668   ac_header_preproc=no
9669 fi
9670 rm -f conftest.err conftest.$ac_ext
9671 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9672 echo "${ECHO_T}$ac_header_preproc" >&6
9673
9674 # So?  What about this header?
9675 case $ac_header_compiler:$ac_header_preproc in
9676   yes:no )
9677     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
9678 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9679     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
9680 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
9681     (
9682       cat <<\_ASBOX
9683 ## ------------------------------------ ##
9684 ## Report this to bug-autoconf@gnu.org. ##
9685 ## ------------------------------------ ##
9686 _ASBOX
9687     ) |
9688       sed "s/^/$as_me: WARNING:     /" >&2
9689     ;;
9690   no:yes )
9691     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
9692 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
9693     { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
9694 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
9695     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
9696 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
9697     (
9698       cat <<\_ASBOX
9699 ## ------------------------------------ ##
9700 ## Report this to bug-autoconf@gnu.org. ##
9701 ## ------------------------------------ ##
9702 _ASBOX
9703     ) |
9704       sed "s/^/$as_me: WARNING:     /" >&2
9705     ;;
9706 esac
9707 echo "$as_me:$LINENO: checking for krb.h" >&5
9708 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
9709 if test "${ac_cv_header_krb_h+set}" = set; then
9710   echo $ECHO_N "(cached) $ECHO_C" >&6
9711 else
9712   ac_cv_header_krb_h=$ac_header_preproc
9713 fi
9714 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
9715 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
9716
9717 fi
9718 if test $ac_cv_header_krb_h = yes; then
9719
9720         echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
9721 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
9722 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
9723   echo $ECHO_N "(cached) $ECHO_C" >&6
9724 else
9725   ac_check_lib_save_LIBS=$LIBS
9726 LIBS="-lcom_err  $LIBS"
9727 cat >conftest.$ac_ext <<_ACEOF
9728 #line $LINENO "configure"
9729 /* confdefs.h.  */
9730 _ACEOF
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h.  */
9734
9735 /* Override any gcc2 internal prototype to avoid an error.  */
9736 #ifdef __cplusplus
9737 extern "C"
9738 #endif
9739 /* We use char because int might match the return type of a gcc2
9740    builtin and then its argument prototype would still apply.  */
9741 char com_err ();
9742 int
9743 main ()
9744 {
9745 com_err ();
9746   ;
9747   return 0;
9748 }
9749 _ACEOF
9750 rm -f conftest.$ac_objext conftest$ac_exeext
9751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9752   (eval $ac_link) 2>&5
9753   ac_status=$?
9754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755   (exit $ac_status); } &&
9756          { ac_try='test -s conftest$ac_exeext'
9757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758   (eval $ac_try) 2>&5
9759   ac_status=$?
9760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761   (exit $ac_status); }; }; then
9762   ac_cv_lib_com_err_com_err=yes
9763 else
9764   echo "$as_me: failed program was:" >&5
9765 sed 's/^/| /' conftest.$ac_ext >&5
9766
9767 ac_cv_lib_com_err_com_err=no
9768 fi
9769 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9770 LIBS=$ac_check_lib_save_LIBS
9771 fi
9772 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
9773 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
9774 if test $ac_cv_lib_com_err_com_err = yes; then
9775
9776           echo "$as_me:$LINENO: checking for krb_mk_priv in -lkrb" >&5
9777 echo $ECHO_N "checking for krb_mk_priv in -lkrb... $ECHO_C" >&6
9778 if test "${ac_cv_lib_krb_krb_mk_priv+set}" = set; then
9779   echo $ECHO_N "(cached) $ECHO_C" >&6
9780 else
9781   ac_check_lib_save_LIBS=$LIBS
9782 LIBS="-lkrb $LIB_DES -lcom_err $LIBS"
9783 cat >conftest.$ac_ext <<_ACEOF
9784 #line $LINENO "configure"
9785 /* confdefs.h.  */
9786 _ACEOF
9787 cat confdefs.h >>conftest.$ac_ext
9788 cat >>conftest.$ac_ext <<_ACEOF
9789 /* end confdefs.h.  */
9790
9791 /* Override any gcc2 internal prototype to avoid an error.  */
9792 #ifdef __cplusplus
9793 extern "C"
9794 #endif
9795 /* We use char because int might match the return type of a gcc2
9796    builtin and then its argument prototype would still apply.  */
9797 char krb_mk_priv ();
9798 int
9799 main ()
9800 {
9801 krb_mk_priv ();
9802   ;
9803   return 0;
9804 }
9805 _ACEOF
9806 rm -f conftest.$ac_objext conftest$ac_exeext
9807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9808   (eval $ac_link) 2>&5
9809   ac_status=$?
9810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811   (exit $ac_status); } &&
9812          { ac_try='test -s conftest$ac_exeext'
9813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9814   (eval $ac_try) 2>&5
9815   ac_status=$?
9816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817   (exit $ac_status); }; }; then
9818   ac_cv_lib_krb_krb_mk_priv=yes
9819 else
9820   echo "$as_me: failed program was:" >&5
9821 sed 's/^/| /' conftest.$ac_ext >&5
9822
9823 ac_cv_lib_krb_krb_mk_priv=no
9824 fi
9825 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9826 LIBS=$ac_check_lib_save_LIBS
9827 fi
9828 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_mk_priv" >&5
9829 echo "${ECHO_T}$ac_cv_lib_krb_krb_mk_priv" >&6
9830 if test $ac_cv_lib_krb_krb_mk_priv = yes; then
9831   COM_ERR="-lcom_err"; SASL_KRB_LIB="-lkrb"; krb4lib="yes"
9832 else
9833   krb4lib=no
9834 fi
9835
9836 else
9837
9838           echo "$as_me:$LINENO: checking for krb_mk_priv in -lkrb" >&5
9839 echo $ECHO_N "checking for krb_mk_priv in -lkrb... $ECHO_C" >&6
9840 if test "${ac_cv_lib_krb_krb_mk_priv+set}" = set; then
9841   echo $ECHO_N "(cached) $ECHO_C" >&6
9842 else
9843   ac_check_lib_save_LIBS=$LIBS
9844 LIBS="-lkrb $LIB_DES $LIBS"
9845 cat >conftest.$ac_ext <<_ACEOF
9846 #line $LINENO "configure"
9847 /* confdefs.h.  */
9848 _ACEOF
9849 cat confdefs.h >>conftest.$ac_ext
9850 cat >>conftest.$ac_ext <<_ACEOF
9851 /* end confdefs.h.  */
9852
9853 /* Override any gcc2 internal prototype to avoid an error.  */
9854 #ifdef __cplusplus
9855 extern "C"
9856 #endif
9857 /* We use char because int might match the return type of a gcc2
9858    builtin and then its argument prototype would still apply.  */
9859 char krb_mk_priv ();
9860 int
9861 main ()
9862 {
9863 krb_mk_priv ();
9864   ;
9865   return 0;
9866 }
9867 _ACEOF
9868 rm -f conftest.$ac_objext conftest$ac_exeext
9869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9870   (eval $ac_link) 2>&5
9871   ac_status=$?
9872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873   (exit $ac_status); } &&
9874          { ac_try='test -s conftest$ac_exeext'
9875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876   (eval $ac_try) 2>&5
9877   ac_status=$?
9878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879   (exit $ac_status); }; }; then
9880   ac_cv_lib_krb_krb_mk_priv=yes
9881 else
9882   echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.$ac_ext >&5
9884
9885 ac_cv_lib_krb_krb_mk_priv=no
9886 fi
9887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9888 LIBS=$ac_check_lib_save_LIBS
9889 fi
9890 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_mk_priv" >&5
9891 echo "${ECHO_T}$ac_cv_lib_krb_krb_mk_priv" >&6
9892 if test $ac_cv_lib_krb_krb_mk_priv = yes; then
9893   COM_ERR=""; SASL_KRB_LIB="-lkrb"; krb4lib="yes"
9894 else
9895   krb4lib=no
9896 fi
9897
9898 fi
9899
9900 else
9901   krb4="no"
9902 fi
9903
9904
9905
9906       if test "$krb4" != "no" -a "$krb4lib" = "no"; then
9907         echo "$as_me:$LINENO: checking for krb_mk_priv in -lkrb4" >&5
9908 echo $ECHO_N "checking for krb_mk_priv in -lkrb4... $ECHO_C" >&6
9909 if test "${ac_cv_lib_krb4_krb_mk_priv+set}" = set; then
9910   echo $ECHO_N "(cached) $ECHO_C" >&6
9911 else
9912   ac_check_lib_save_LIBS=$LIBS
9913 LIBS="-lkrb4 $LIB_DES $LIBS"
9914 cat >conftest.$ac_ext <<_ACEOF
9915 #line $LINENO "configure"
9916 /* confdefs.h.  */
9917 _ACEOF
9918 cat confdefs.h >>conftest.$ac_ext
9919 cat >>conftest.$ac_ext <<_ACEOF
9920 /* end confdefs.h.  */
9921
9922 /* Override any gcc2 internal prototype to avoid an error.  */
9923 #ifdef __cplusplus
9924 extern "C"
9925 #endif
9926 /* We use char because int might match the return type of a gcc2
9927    builtin and then its argument prototype would still apply.  */
9928 char krb_mk_priv ();
9929 int
9930 main ()
9931 {
9932 krb_mk_priv ();
9933   ;
9934   return 0;
9935 }
9936 _ACEOF
9937 rm -f conftest.$ac_objext conftest$ac_exeext
9938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9939   (eval $ac_link) 2>&5
9940   ac_status=$?
9941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942   (exit $ac_status); } &&
9943          { ac_try='test -s conftest$ac_exeext'
9944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9945   (eval $ac_try) 2>&5
9946   ac_status=$?
9947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948   (exit $ac_status); }; }; then
9949   ac_cv_lib_krb4_krb_mk_priv=yes
9950 else
9951   echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9953
9954 ac_cv_lib_krb4_krb_mk_priv=no
9955 fi
9956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9957 LIBS=$ac_check_lib_save_LIBS
9958 fi
9959 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_mk_priv" >&5
9960 echo "${ECHO_T}$ac_cv_lib_krb4_krb_mk_priv" >&6
9961 if test $ac_cv_lib_krb4_krb_mk_priv = yes; then
9962   COM_ERR=""; SASL_KRB_LIB="-lkrb4"; krb4=yes
9963 else
9964   krb4=no
9965 fi
9966
9967       fi
9968       if test "$krb4" = no; then
9969           { echo "$as_me:$LINENO: WARNING: No Kerberos V4 found" >&5
9970 echo "$as_me: WARNING: No Kerberos V4 found" >&2;}
9971       fi
9972     else
9973       { echo "$as_me:$LINENO: WARNING: No DES library found for Kerberos V4 support" >&5
9974 echo "$as_me: WARNING: No DES library found for Kerberos V4 support" >&2;}
9975       krb4=no
9976     fi
9977   fi
9978
9979   if test "$krb4" != no; then
9980     cmu_save_LIBS="$LIBS"
9981     LIBS="$LIBS $SASL_KRB_LIB"
9982
9983 for ac_func in krb_get_err_text
9984 do
9985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9986 echo "$as_me:$LINENO: checking for $ac_func" >&5
9987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9988 if eval "test \"\${$as_ac_var+set}\" = set"; then
9989   echo $ECHO_N "(cached) $ECHO_C" >&6
9990 else
9991   cat >conftest.$ac_ext <<_ACEOF
9992 #line $LINENO "configure"
9993 /* confdefs.h.  */
9994 _ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h.  */
9998 /* System header to define __stub macros and hopefully few prototypes,
9999     which can conflict with char $ac_func (); below.
10000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10001     <limits.h> exists even on freestanding compilers.  */
10002 #ifdef __STDC__
10003 # include <limits.h>
10004 #else
10005 # include <assert.h>
10006 #endif
10007 /* Override any gcc2 internal prototype to avoid an error.  */
10008 #ifdef __cplusplus
10009 extern "C"
10010 {
10011 #endif
10012 /* We use char because int might match the return type of a gcc2
10013    builtin and then its argument prototype would still apply.  */
10014 char $ac_func ();
10015 /* The GNU C library defines this for functions which it implements
10016     to always fail with ENOSYS.  Some functions are actually named
10017     something starting with __ and the normal name is an alias.  */
10018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10019 choke me
10020 #else
10021 char (*f) () = $ac_func;
10022 #endif
10023 #ifdef __cplusplus
10024 }
10025 #endif
10026
10027 int
10028 main ()
10029 {
10030 return f != $ac_func;
10031   ;
10032   return 0;
10033 }
10034 _ACEOF
10035 rm -f conftest.$ac_objext conftest$ac_exeext
10036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10037   (eval $ac_link) 2>&5
10038   ac_status=$?
10039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040   (exit $ac_status); } &&
10041          { ac_try='test -s conftest$ac_exeext'
10042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043   (eval $ac_try) 2>&5
10044   ac_status=$?
10045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046   (exit $ac_status); }; }; then
10047   eval "$as_ac_var=yes"
10048 else
10049   echo "$as_me: failed program was:" >&5
10050 sed 's/^/| /' conftest.$ac_ext >&5
10051
10052 eval "$as_ac_var=no"
10053 fi
10054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10055 fi
10056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10058 if test `eval echo '${'$as_ac_var'}'` = yes; then
10059   cat >>confdefs.h <<_ACEOF
10060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10061 _ACEOF
10062
10063 fi
10064 done
10065
10066     LIBS="$cmu_save_LIBS"
10067   fi
10068
10069   echo "$as_me:$LINENO: checking KERBEROS_V4" >&5
10070 echo $ECHO_N "checking KERBEROS_V4... $ECHO_C" >&6
10071   if test "$krb4" != no; then
10072     echo "$as_me:$LINENO: result: enabled" >&5
10073 echo "${ECHO_T}enabled" >&6
10074     SASL_MECHS="$SASL_MECHS libkerberos4.la"
10075     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/kerberos4.c"
10076     SASL_STATIC_OBJS="$SASL_STATIC_OBJS kerberos4.o"
10077
10078 cat >>confdefs.h <<\_ACEOF
10079 #define STATIC_KERBEROS4
10080 _ACEOF
10081
10082
10083 cat >>confdefs.h <<\_ACEOF
10084 #define HAVE_KRB
10085 _ACEOF
10086
10087     SASL_KRB_LIB="$SASL_KRB_LIB $LIB_DES $COM_ERR"
10088   else
10089     echo "$as_me:$LINENO: result: disabled" >&5
10090 echo "${ECHO_T}disabled" >&6
10091   fi
10092
10093
10094 echo "$as_me:$LINENO: checking for crypt" >&5
10095 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
10096 if test "${ac_cv_func_crypt+set}" = set; then
10097   echo $ECHO_N "(cached) $ECHO_C" >&6
10098 else
10099   cat >conftest.$ac_ext <<_ACEOF
10100 #line $LINENO "configure"
10101 /* confdefs.h.  */
10102 _ACEOF
10103 cat confdefs.h >>conftest.$ac_ext
10104 cat >>conftest.$ac_ext <<_ACEOF
10105 /* end confdefs.h.  */
10106 /* System header to define __stub macros and hopefully few prototypes,
10107     which can conflict with char crypt (); below.
10108     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10109     <limits.h> exists even on freestanding compilers.  */
10110 #ifdef __STDC__
10111 # include <limits.h>
10112 #else
10113 # include <assert.h>
10114 #endif
10115 /* Override any gcc2 internal prototype to avoid an error.  */
10116 #ifdef __cplusplus
10117 extern "C"
10118 {
10119 #endif
10120 /* We use char because int might match the return type of a gcc2
10121    builtin and then its argument prototype would still apply.  */
10122 char crypt ();
10123 /* The GNU C library defines this for functions which it implements
10124     to always fail with ENOSYS.  Some functions are actually named
10125     something starting with __ and the normal name is an alias.  */
10126 #if defined (__stub_crypt) || defined (__stub___crypt)
10127 choke me
10128 #else
10129 char (*f) () = crypt;
10130 #endif
10131 #ifdef __cplusplus
10132 }
10133 #endif
10134
10135 int
10136 main ()
10137 {
10138 return f != crypt;
10139   ;
10140   return 0;
10141 }
10142 _ACEOF
10143 rm -f conftest.$ac_objext conftest$ac_exeext
10144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10145   (eval $ac_link) 2>&5
10146   ac_status=$?
10147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148   (exit $ac_status); } &&
10149          { ac_try='test -s conftest$ac_exeext'
10150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10151   (eval $ac_try) 2>&5
10152   ac_status=$?
10153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154   (exit $ac_status); }; }; then
10155   ac_cv_func_crypt=yes
10156 else
10157   echo "$as_me: failed program was:" >&5
10158 sed 's/^/| /' conftest.$ac_ext >&5
10159
10160 ac_cv_func_crypt=no
10161 fi
10162 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10163 fi
10164 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
10165 echo "${ECHO_T}$ac_cv_func_crypt" >&6
10166 if test $ac_cv_func_crypt = yes; then
10167   cmu_have_crypt=yes
10168 else
10169   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
10170 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
10171 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
10172   echo $ECHO_N "(cached) $ECHO_C" >&6
10173 else
10174   ac_check_lib_save_LIBS=$LIBS
10175 LIBS="-lcrypt  $LIBS"
10176 cat >conftest.$ac_ext <<_ACEOF
10177 #line $LINENO "configure"
10178 /* confdefs.h.  */
10179 _ACEOF
10180 cat confdefs.h >>conftest.$ac_ext
10181 cat >>conftest.$ac_ext <<_ACEOF
10182 /* end confdefs.h.  */
10183
10184 /* Override any gcc2 internal prototype to avoid an error.  */
10185 #ifdef __cplusplus
10186 extern "C"
10187 #endif
10188 /* We use char because int might match the return type of a gcc2
10189    builtin and then its argument prototype would still apply.  */
10190 char crypt ();
10191 int
10192 main ()
10193 {
10194 crypt ();
10195   ;
10196   return 0;
10197 }
10198 _ACEOF
10199 rm -f conftest.$ac_objext conftest$ac_exeext
10200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10201   (eval $ac_link) 2>&5
10202   ac_status=$?
10203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204   (exit $ac_status); } &&
10205          { ac_try='test -s conftest$ac_exeext'
10206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10207   (eval $ac_try) 2>&5
10208   ac_status=$?
10209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210   (exit $ac_status); }; }; then
10211   ac_cv_lib_crypt_crypt=yes
10212 else
10213   echo "$as_me: failed program was:" >&5
10214 sed 's/^/| /' conftest.$ac_ext >&5
10215
10216 ac_cv_lib_crypt_crypt=no
10217 fi
10218 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10219 LIBS=$ac_check_lib_save_LIBS
10220 fi
10221 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
10222 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
10223 if test $ac_cv_lib_crypt_crypt = yes; then
10224   LIB_CRYPT="-lcrypt"; cmu_have_crypt=yes
10225 else
10226   cmu_have_crypt=no
10227 fi
10228
10229 fi
10230
10231
10232
10233
10234
10235 # Check whether --enable-gssapi or --disable-gssapi was given.
10236 if test "${enable_gssapi+set}" = set; then
10237   enableval="$enable_gssapi"
10238   gssapi=$enableval
10239 else
10240   gssapi=yes
10241 fi;
10242
10243 # Check whether --with-gss_impl or --without-gss_impl was given.
10244 if test "${with_gss_impl+set}" = set; then
10245   withval="$with_gss_impl"
10246   gss_impl=$withval
10247 else
10248   gss_impl=auto
10249 fi;
10250
10251 if test "$gssapi" != no; then
10252   platform=
10253   case "${host}" in
10254     *-*-linux*)
10255       platform=__linux
10256       ;;
10257     *-*-hpux*)
10258       platform=__hpux
10259       ;;
10260     *-*-irix*)
10261       platform=__irix
10262       ;;
10263     *-*-solaris2*)
10264 # When should we use __sunos?
10265       platform=__solaris
10266       ;;
10267     *-*-aix*)
10268       platform=__aix
10269       ;;
10270     *)
10271       { 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
10272 echo "$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;}
10273       if test "$gss_impl" = "cybersafe"; then
10274         { { echo "$as_me:$LINENO: error: CyberSafe was forced, cannot continue as platform is not supported" >&5
10275 echo "$as_me: error: CyberSafe was forced, cannot continue as platform is not supported" >&2;}
10276    { (exit 1); exit 1; }; }
10277       fi
10278       ;;
10279   esac
10280
10281   cmu_saved_CPPFLAGS=$CPPFLAGS
10282
10283   if test -d ${gssapi}; then
10284     CPPFLAGS="$CPPFLAGS -I$gssapi/include"
10285 # We want to keep -I in our CPPFLAGS, but only if we succeed
10286     cmu_saved_CPPFLAGS=$CPPFLAGS
10287     LDFLAGS="$LDFLAGS -L$gssapi/lib"
10288
10289     if test -n "$platform"; then
10290       if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
10291         CPPFLAGS="$CPPFLAGS -D$platform"
10292         if test -d "${gssapi}/appsec-sdk/include"; then
10293           CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
10294         fi
10295       fi
10296     fi
10297   fi
10298   if test "${ac_cv_header_gssapi_h+set}" = set; then
10299   echo "$as_me:$LINENO: checking for gssapi.h" >&5
10300 echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6
10301 if test "${ac_cv_header_gssapi_h+set}" = set; then
10302   echo $ECHO_N "(cached) $ECHO_C" >&6
10303 fi
10304 echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
10305 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6
10306 else
10307   # Is the header compilable?
10308 echo "$as_me:$LINENO: checking gssapi.h usability" >&5
10309 echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6
10310 cat >conftest.$ac_ext <<_ACEOF
10311 #line $LINENO "configure"
10312 /* confdefs.h.  */
10313 _ACEOF
10314 cat confdefs.h >>conftest.$ac_ext
10315 cat >>conftest.$ac_ext <<_ACEOF
10316 /* end confdefs.h.  */
10317 $ac_includes_default
10318 #include <gssapi.h>
10319 _ACEOF
10320 rm -f conftest.$ac_objext
10321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10322   (eval $ac_compile) 2>&5
10323   ac_status=$?
10324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325   (exit $ac_status); } &&
10326          { ac_try='test -s conftest.$ac_objext'
10327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328   (eval $ac_try) 2>&5
10329   ac_status=$?
10330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331   (exit $ac_status); }; }; then
10332   ac_header_compiler=yes
10333 else
10334   echo "$as_me: failed program was:" >&5
10335 sed 's/^/| /' conftest.$ac_ext >&5
10336
10337 ac_header_compiler=no
10338 fi
10339 rm -f conftest.$ac_objext conftest.$ac_ext
10340 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10341 echo "${ECHO_T}$ac_header_compiler" >&6
10342
10343 # Is the header present?
10344 echo "$as_me:$LINENO: checking gssapi.h presence" >&5
10345 echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6
10346 cat >conftest.$ac_ext <<_ACEOF
10347 #line $LINENO "configure"
10348 /* confdefs.h.  */
10349 _ACEOF
10350 cat confdefs.h >>conftest.$ac_ext
10351 cat >>conftest.$ac_ext <<_ACEOF
10352 /* end confdefs.h.  */
10353 #include <gssapi.h>
10354 _ACEOF
10355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10356   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10357   ac_status=$?
10358   grep -v '^ *+' conftest.er1 >conftest.err
10359   rm -f conftest.er1
10360   cat conftest.err >&5
10361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362   (exit $ac_status); } >/dev/null; then
10363   if test -s conftest.err; then
10364     ac_cpp_err=$ac_c_preproc_warn_flag
10365   else
10366     ac_cpp_err=
10367   fi
10368 else
10369   ac_cpp_err=yes
10370 fi
10371 if test -z "$ac_cpp_err"; then
10372   ac_header_preproc=yes
10373 else
10374   echo "$as_me: failed program was:" >&5
10375 sed 's/^/| /' conftest.$ac_ext >&5
10376
10377   ac_header_preproc=no
10378 fi
10379 rm -f conftest.err conftest.$ac_ext
10380 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10381 echo "${ECHO_T}$ac_header_preproc" >&6
10382
10383 # So?  What about this header?
10384 case $ac_header_compiler:$ac_header_preproc in
10385   yes:no )
10386     { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
10387 echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10388     { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
10389 echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
10390     (
10391       cat <<\_ASBOX
10392 ## ------------------------------------ ##
10393 ## Report this to bug-autoconf@gnu.org. ##
10394 ## ------------------------------------ ##
10395 _ASBOX
10396     ) |
10397       sed "s/^/$as_me: WARNING:     /" >&2
10398     ;;
10399   no:yes )
10400     { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
10401 echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
10402     { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5
10403 echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;}
10404     { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
10405 echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
10406     (
10407       cat <<\_ASBOX
10408 ## ------------------------------------ ##
10409 ## Report this to bug-autoconf@gnu.org. ##
10410 ## ------------------------------------ ##
10411 _ASBOX
10412     ) |
10413       sed "s/^/$as_me: WARNING:     /" >&2
10414     ;;
10415 esac
10416 echo "$as_me:$LINENO: checking for gssapi.h" >&5
10417 echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6
10418 if test "${ac_cv_header_gssapi_h+set}" = set; then
10419   echo $ECHO_N "(cached) $ECHO_C" >&6
10420 else
10421   ac_cv_header_gssapi_h=$ac_header_preproc
10422 fi
10423 echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
10424 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6
10425
10426 fi
10427 if test $ac_cv_header_gssapi_h = yes; then
10428
10429 cat >>confdefs.h <<\_ACEOF
10430 #define HAVE_GSSAPI_H
10431 _ACEOF
10432
10433 else
10434   if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then
10435   echo "$as_me:$LINENO: checking for gssapi/gssapi.h" >&5
10436 echo $ECHO_N "checking for gssapi/gssapi.h... $ECHO_C" >&6
10437 if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then
10438   echo $ECHO_N "(cached) $ECHO_C" >&6
10439 fi
10440 echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5
10441 echo "${ECHO_T}$ac_cv_header_gssapi_gssapi_h" >&6
10442 else
10443   # Is the header compilable?
10444 echo "$as_me:$LINENO: checking gssapi/gssapi.h usability" >&5
10445 echo $ECHO_N "checking gssapi/gssapi.h usability... $ECHO_C" >&6
10446 cat >conftest.$ac_ext <<_ACEOF
10447 #line $LINENO "configure"
10448 /* confdefs.h.  */
10449 _ACEOF
10450 cat confdefs.h >>conftest.$ac_ext
10451 cat >>conftest.$ac_ext <<_ACEOF
10452 /* end confdefs.h.  */
10453 $ac_includes_default
10454 #include <gssapi/gssapi.h>
10455 _ACEOF
10456 rm -f conftest.$ac_objext
10457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10458   (eval $ac_compile) 2>&5
10459   ac_status=$?
10460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461   (exit $ac_status); } &&
10462          { ac_try='test -s conftest.$ac_objext'
10463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10464   (eval $ac_try) 2>&5
10465   ac_status=$?
10466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467   (exit $ac_status); }; }; then
10468   ac_header_compiler=yes
10469 else
10470   echo "$as_me: failed program was:" >&5
10471 sed 's/^/| /' conftest.$ac_ext >&5
10472
10473 ac_header_compiler=no
10474 fi
10475 rm -f conftest.$ac_objext conftest.$ac_ext
10476 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10477 echo "${ECHO_T}$ac_header_compiler" >&6
10478
10479 # Is the header present?
10480 echo "$as_me:$LINENO: checking gssapi/gssapi.h presence" >&5
10481 echo $ECHO_N "checking gssapi/gssapi.h presence... $ECHO_C" >&6
10482 cat >conftest.$ac_ext <<_ACEOF
10483 #line $LINENO "configure"
10484 /* confdefs.h.  */
10485 _ACEOF
10486 cat confdefs.h >>conftest.$ac_ext
10487 cat >>conftest.$ac_ext <<_ACEOF
10488 /* end confdefs.h.  */
10489 #include <gssapi/gssapi.h>
10490 _ACEOF
10491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10492   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10493   ac_status=$?
10494   grep -v '^ *+' conftest.er1 >conftest.err
10495   rm -f conftest.er1
10496   cat conftest.err >&5
10497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498   (exit $ac_status); } >/dev/null; then
10499   if test -s conftest.err; then
10500     ac_cpp_err=$ac_c_preproc_warn_flag
10501   else
10502     ac_cpp_err=
10503   fi
10504 else
10505   ac_cpp_err=yes
10506 fi
10507 if test -z "$ac_cpp_err"; then
10508   ac_header_preproc=yes
10509 else
10510   echo "$as_me: failed program was:" >&5
10511 sed 's/^/| /' conftest.$ac_ext >&5
10512
10513   ac_header_preproc=no
10514 fi
10515 rm -f conftest.err conftest.$ac_ext
10516 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10517 echo "${ECHO_T}$ac_header_preproc" >&6
10518
10519 # So?  What about this header?
10520 case $ac_header_compiler:$ac_header_preproc in
10521   yes:no )
10522     { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
10523 echo "$as_me: WARNING: gssapi/gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10524     { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: proceeding with the preprocessor's result" >&5
10525 echo "$as_me: WARNING: gssapi/gssapi.h: proceeding with the preprocessor's result" >&2;}
10526     (
10527       cat <<\_ASBOX
10528 ## ------------------------------------ ##
10529 ## Report this to bug-autoconf@gnu.org. ##
10530 ## ------------------------------------ ##
10531 _ASBOX
10532     ) |
10533       sed "s/^/$as_me: WARNING:     /" >&2
10534     ;;
10535   no:yes )
10536     { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: present but cannot be compiled" >&5
10537 echo "$as_me: WARNING: gssapi/gssapi.h: present but cannot be compiled" >&2;}
10538     { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: check for missing prerequisite headers?" >&5
10539 echo "$as_me: WARNING: gssapi/gssapi.h: check for missing prerequisite headers?" >&2;}
10540     { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: proceeding with the preprocessor's result" >&5
10541 echo "$as_me: WARNING: gssapi/gssapi.h: proceeding with the preprocessor's result" >&2;}
10542     (
10543       cat <<\_ASBOX
10544 ## ------------------------------------ ##
10545 ## Report this to bug-autoconf@gnu.org. ##
10546 ## ------------------------------------ ##
10547 _ASBOX
10548     ) |
10549       sed "s/^/$as_me: WARNING:     /" >&2
10550     ;;
10551 esac
10552 echo "$as_me:$LINENO: checking for gssapi/gssapi.h" >&5
10553 echo $ECHO_N "checking for gssapi/gssapi.h... $ECHO_C" >&6
10554 if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then
10555   echo $ECHO_N "(cached) $ECHO_C" >&6
10556 else
10557   ac_cv_header_gssapi_gssapi_h=$ac_header_preproc
10558 fi
10559 echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5
10560 echo "${ECHO_T}$ac_cv_header_gssapi_gssapi_h" >&6
10561
10562 fi
10563 if test $ac_cv_header_gssapi_gssapi_h = yes; then
10564   :
10565 else
10566   { echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - no include files found" >&5
10567 echo "$as_me: WARNING: Disabling GSSAPI - no include files found" >&2;}; gssapi=no
10568 fi
10569
10570
10571 fi
10572
10573
10574
10575   CPPFLAGS=$cmu_saved_CPPFLAGS
10576
10577 fi
10578
10579 if test "$gssapi" != no; then
10580   # We need to find out which gssapi implementation we are
10581   # using. Supported alternatives are: MIT Kerberos 5,
10582   # Heimdal Kerberos 5 (http://www.pdc.kth.se/heimdal),
10583   # CyberSafe Kerberos 5 (http://www.cybersafe.com/)
10584   # and Sun SEAM (http://wwws.sun.com/software/security/kerberos/)
10585   #
10586   # The choice is reflected in GSSAPIBASE_LIBS
10587
10588
10589 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
10590 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
10591 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
10592   echo $ECHO_N "(cached) $ECHO_C" >&6
10593 else
10594   ac_check_lib_save_LIBS=$LIBS
10595 LIBS="-lresolv  $LIBS"
10596 cat >conftest.$ac_ext <<_ACEOF
10597 #line $LINENO "configure"
10598 /* confdefs.h.  */
10599 _ACEOF
10600 cat confdefs.h >>conftest.$ac_ext
10601 cat >>conftest.$ac_ext <<_ACEOF
10602 /* end confdefs.h.  */
10603
10604 /* Override any gcc2 internal prototype to avoid an error.  */
10605 #ifdef __cplusplus
10606 extern "C"
10607 #endif
10608 /* We use char because int might match the return type of a gcc2
10609    builtin and then its argument prototype would still apply.  */
10610 char res_search ();
10611 int
10612 main ()
10613 {
10614 res_search ();
10615   ;
10616   return 0;
10617 }
10618 _ACEOF
10619 rm -f conftest.$ac_objext conftest$ac_exeext
10620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10621   (eval $ac_link) 2>&5
10622   ac_status=$?
10623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624   (exit $ac_status); } &&
10625          { ac_try='test -s conftest$ac_exeext'
10626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10627   (eval $ac_try) 2>&5
10628   ac_status=$?
10629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630   (exit $ac_status); }; }; then
10631   ac_cv_lib_resolv_res_search=yes
10632 else
10633   echo "$as_me: failed program was:" >&5
10634 sed 's/^/| /' conftest.$ac_ext >&5
10635
10636 ac_cv_lib_resolv_res_search=no
10637 fi
10638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10639 LIBS=$ac_check_lib_save_LIBS
10640 fi
10641 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
10642 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
10643 if test $ac_cv_lib_resolv_res_search = yes; then
10644   cat >>confdefs.h <<_ACEOF
10645 #define HAVE_LIBRESOLV 1
10646 _ACEOF
10647
10648   LIBS="-lresolv $LIBS"
10649
10650 fi
10651
10652   if test -d ${gssapi}; then
10653      gssapi_dir="${gssapi}/lib"
10654      GSSAPIBASE_LIBS="-L$gssapi_dir"
10655      GSSAPIBASE_STATIC_LIBS="-L$gssapi_dir"
10656   else
10657      # FIXME: This is only used for building cyrus, and then only as
10658      # a real hack.  it needs to be fixed.
10659      gssapi_dir="/usr/local/lib"
10660   fi
10661
10662   # Check a full link against the Heimdal libraries.
10663   # If this fails, check a full link against the MIT libraries.
10664   # If this fails, check a full link against the CyberSafe libraries.
10665   # If this fails, check a full link against the Solaris 8 and up libgss.
10666
10667   if test "$gss_impl" = "auto" -o "$gss_impl" = "heimdal"; then
10668     gss_failed=0
10669     echo "$as_me:$LINENO: checking for gss_unwrap in -lgssapi" >&5
10670 echo $ECHO_N "checking for gss_unwrap in -lgssapi... $ECHO_C" >&6
10671 if test "${ac_cv_lib_gssapi_gss_unwrap+set}" = set; then
10672   echo $ECHO_N "(cached) $ECHO_C" >&6
10673 else
10674   ac_check_lib_save_LIBS=$LIBS
10675 LIBS="-lgssapi ${GSSAPIBASE_LIBS} -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err ${LIB_SOCKET} $LIBS"
10676 cat >conftest.$ac_ext <<_ACEOF
10677 #line $LINENO "configure"
10678 /* confdefs.h.  */
10679 _ACEOF
10680 cat confdefs.h >>conftest.$ac_ext
10681 cat >>conftest.$ac_ext <<_ACEOF
10682 /* end confdefs.h.  */
10683
10684 /* Override any gcc2 internal prototype to avoid an error.  */
10685 #ifdef __cplusplus
10686 extern "C"
10687 #endif
10688 /* We use char because int might match the return type of a gcc2
10689    builtin and then its argument prototype would still apply.  */
10690 char gss_unwrap ();
10691 int
10692 main ()
10693 {
10694 gss_unwrap ();
10695   ;
10696   return 0;
10697 }
10698 _ACEOF
10699 rm -f conftest.$ac_objext conftest$ac_exeext
10700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10701   (eval $ac_link) 2>&5
10702   ac_status=$?
10703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704   (exit $ac_status); } &&
10705          { ac_try='test -s conftest$ac_exeext'
10706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707   (eval $ac_try) 2>&5
10708   ac_status=$?
10709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710   (exit $ac_status); }; }; then
10711   ac_cv_lib_gssapi_gss_unwrap=yes
10712 else
10713   echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10715
10716 ac_cv_lib_gssapi_gss_unwrap=no
10717 fi
10718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10719 LIBS=$ac_check_lib_save_LIBS
10720 fi
10721 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_unwrap" >&5
10722 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_unwrap" >&6
10723 if test $ac_cv_lib_gssapi_gss_unwrap = yes; then
10724   gss_impl="heimdal"
10725 else
10726   gss_failed=1
10727 fi
10728
10729     if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
10730       gss_impl="failed"
10731     fi
10732   fi
10733
10734   if test "$gss_impl" = "auto" -o "$gss_impl" = "mit"; then
10735     # check for libkrb5support first
10736     echo "$as_me:$LINENO: checking for krb5int_getspecific in -lkrb5support" >&5
10737 echo $ECHO_N "checking for krb5int_getspecific in -lkrb5support... $ECHO_C" >&6
10738 if test "${ac_cv_lib_krb5support_krb5int_getspecific+set}" = set; then
10739   echo $ECHO_N "(cached) $ECHO_C" >&6
10740 else
10741   ac_check_lib_save_LIBS=$LIBS
10742 LIBS="-lkrb5support ${LIB_SOCKET} $LIBS"
10743 cat >conftest.$ac_ext <<_ACEOF
10744 #line $LINENO "configure"
10745 /* confdefs.h.  */
10746 _ACEOF
10747 cat confdefs.h >>conftest.$ac_ext
10748 cat >>conftest.$ac_ext <<_ACEOF
10749 /* end confdefs.h.  */
10750
10751 /* Override any gcc2 internal prototype to avoid an error.  */
10752 #ifdef __cplusplus
10753 extern "C"
10754 #endif
10755 /* We use char because int might match the return type of a gcc2
10756    builtin and then its argument prototype would still apply.  */
10757 char krb5int_getspecific ();
10758 int
10759 main ()
10760 {
10761 krb5int_getspecific ();
10762   ;
10763   return 0;
10764 }
10765 _ACEOF
10766 rm -f conftest.$ac_objext conftest$ac_exeext
10767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10768   (eval $ac_link) 2>&5
10769   ac_status=$?
10770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771   (exit $ac_status); } &&
10772          { ac_try='test -s conftest$ac_exeext'
10773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774   (eval $ac_try) 2>&5
10775   ac_status=$?
10776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777   (exit $ac_status); }; }; then
10778   ac_cv_lib_krb5support_krb5int_getspecific=yes
10779 else
10780   echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10782
10783 ac_cv_lib_krb5support_krb5int_getspecific=no
10784 fi
10785 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10786 LIBS=$ac_check_lib_save_LIBS
10787 fi
10788 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
10789 echo "${ECHO_T}$ac_cv_lib_krb5support_krb5int_getspecific" >&6
10790 if test $ac_cv_lib_krb5support_krb5int_getspecific = yes; then
10791   K5SUP=-lkrb5support K5SUPSTATIC=$gssapi_dir/libkrb5support.a
10792 fi
10793
10794
10795     gss_failed=0
10796     echo "$as_me:$LINENO: checking for gss_unwrap in -lgssapi_krb5" >&5
10797 echo $ECHO_N "checking for gss_unwrap in -lgssapi_krb5... $ECHO_C" >&6
10798 if test "${ac_cv_lib_gssapi_krb5_gss_unwrap+set}" = set; then
10799   echo $ECHO_N "(cached) $ECHO_C" >&6
10800 else
10801   ac_check_lib_save_LIBS=$LIBS
10802 LIBS="-lgssapi_krb5 ${GSSAPIBASE_LIBS} -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP} ${LIB_SOCKET} $LIBS"
10803 cat >conftest.$ac_ext <<_ACEOF
10804 #line $LINENO "configure"
10805 /* confdefs.h.  */
10806 _ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h.  */
10810
10811 /* Override any gcc2 internal prototype to avoid an error.  */
10812 #ifdef __cplusplus
10813 extern "C"
10814 #endif
10815 /* We use char because int might match the return type of a gcc2
10816    builtin and then its argument prototype would still apply.  */
10817 char gss_unwrap ();
10818 int
10819 main ()
10820 {
10821 gss_unwrap ();
10822   ;
10823   return 0;
10824 }
10825 _ACEOF
10826 rm -f conftest.$ac_objext conftest$ac_exeext
10827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10828   (eval $ac_link) 2>&5
10829   ac_status=$?
10830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831   (exit $ac_status); } &&
10832          { ac_try='test -s conftest$ac_exeext'
10833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10834   (eval $ac_try) 2>&5
10835   ac_status=$?
10836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837   (exit $ac_status); }; }; then
10838   ac_cv_lib_gssapi_krb5_gss_unwrap=yes
10839 else
10840   echo "$as_me: failed program was:" >&5
10841 sed 's/^/| /' conftest.$ac_ext >&5
10842
10843 ac_cv_lib_gssapi_krb5_gss_unwrap=no
10844 fi
10845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10846 LIBS=$ac_check_lib_save_LIBS
10847 fi
10848 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_unwrap" >&5
10849 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_unwrap" >&6
10850 if test $ac_cv_lib_gssapi_krb5_gss_unwrap = yes; then
10851   gss_impl="mit"
10852 else
10853   gss_failed=1
10854 fi
10855
10856     if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
10857       gss_impl="failed"
10858     fi
10859   fi
10860
10861   # For Cybersafe one has to set a platform define in order to make compilation work
10862   if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
10863
10864     cmu_saved_CPPFLAGS=$CPPFLAGS
10865     cmu_saved_GSSAPIBASE_LIBS=$GSSAPIBASE_LIBS
10866 # FIXME - Note that the libraries are in .../lib64 for 64bit kernels
10867     if test -d "${gssapi}/appsec-rt/lib"; then
10868       GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -L${gssapi}/appsec-rt/lib"
10869     fi
10870     CPPFLAGS="$CPPFLAGS -D$platform"
10871     if test -d "${gssapi}/appsec-sdk/include"; then
10872       CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
10873     fi
10874
10875     gss_failed=0
10876
10877 # Check for CyberSafe with two libraries first, than fall back to a single
10878 # library (older CyberSafe)
10879
10880     unset ac_cv_lib_gss_csf_gss_acq_user
10881     echo "$as_me:$LINENO: checking for csf_gss_acq_user in -lgss" >&5
10882 echo $ECHO_N "checking for csf_gss_acq_user in -lgss... $ECHO_C" >&6
10883 if test "${ac_cv_lib_gss_csf_gss_acq_user+set}" = set; then
10884   echo $ECHO_N "(cached) $ECHO_C" >&6
10885 else
10886   ac_check_lib_save_LIBS=$LIBS
10887 LIBS="-lgss ${GSSAPIBASE_LIBS} -lgss -lcstbk5 $LIBS"
10888 cat >conftest.$ac_ext <<_ACEOF
10889 #line $LINENO "configure"
10890 /* confdefs.h.  */
10891 _ACEOF
10892 cat confdefs.h >>conftest.$ac_ext
10893 cat >>conftest.$ac_ext <<_ACEOF
10894 /* end confdefs.h.  */
10895
10896 /* Override any gcc2 internal prototype to avoid an error.  */
10897 #ifdef __cplusplus
10898 extern "C"
10899 #endif
10900 /* We use char because int might match the return type of a gcc2
10901    builtin and then its argument prototype would still apply.  */
10902 char csf_gss_acq_user ();
10903 int
10904 main ()
10905 {
10906 csf_gss_acq_user ();
10907   ;
10908   return 0;
10909 }
10910 _ACEOF
10911 rm -f conftest.$ac_objext conftest$ac_exeext
10912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10913   (eval $ac_link) 2>&5
10914   ac_status=$?
10915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916   (exit $ac_status); } &&
10917          { ac_try='test -s conftest$ac_exeext'
10918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10919   (eval $ac_try) 2>&5
10920   ac_status=$?
10921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922   (exit $ac_status); }; }; then
10923   ac_cv_lib_gss_csf_gss_acq_user=yes
10924 else
10925   echo "$as_me: failed program was:" >&5
10926 sed 's/^/| /' conftest.$ac_ext >&5
10927
10928 ac_cv_lib_gss_csf_gss_acq_user=no
10929 fi
10930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10931 LIBS=$ac_check_lib_save_LIBS
10932 fi
10933 echo "$as_me:$LINENO: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
10934 echo "${ECHO_T}$ac_cv_lib_gss_csf_gss_acq_user" >&6
10935 if test $ac_cv_lib_gss_csf_gss_acq_user = yes; then
10936   gss_impl="cybersafe03"
10937 else
10938   unset ac_cv_lib_gss_csf_gss_acq_user;
10939                   echo "$as_me:$LINENO: checking for csf_gss_acq_user in -lgss" >&5
10940 echo $ECHO_N "checking for csf_gss_acq_user in -lgss... $ECHO_C" >&6
10941 if test "${ac_cv_lib_gss_csf_gss_acq_user+set}" = set; then
10942   echo $ECHO_N "(cached) $ECHO_C" >&6
10943 else
10944   ac_check_lib_save_LIBS=$LIBS
10945 LIBS="-lgss $GSSAPIBASE_LIBS -lgss $LIBS"
10946 cat >conftest.$ac_ext <<_ACEOF
10947 #line $LINENO "configure"
10948 /* confdefs.h.  */
10949 _ACEOF
10950 cat confdefs.h >>conftest.$ac_ext
10951 cat >>conftest.$ac_ext <<_ACEOF
10952 /* end confdefs.h.  */
10953
10954 /* Override any gcc2 internal prototype to avoid an error.  */
10955 #ifdef __cplusplus
10956 extern "C"
10957 #endif
10958 /* We use char because int might match the return type of a gcc2
10959    builtin and then its argument prototype would still apply.  */
10960 char csf_gss_acq_user ();
10961 int
10962 main ()
10963 {
10964 csf_gss_acq_user ();
10965   ;
10966   return 0;
10967 }
10968 _ACEOF
10969 rm -f conftest.$ac_objext conftest$ac_exeext
10970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10971   (eval $ac_link) 2>&5
10972   ac_status=$?
10973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974   (exit $ac_status); } &&
10975          { ac_try='test -s conftest$ac_exeext'
10976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10977   (eval $ac_try) 2>&5
10978   ac_status=$?
10979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980   (exit $ac_status); }; }; then
10981   ac_cv_lib_gss_csf_gss_acq_user=yes
10982 else
10983   echo "$as_me: failed program was:" >&5
10984 sed 's/^/| /' conftest.$ac_ext >&5
10985
10986 ac_cv_lib_gss_csf_gss_acq_user=no
10987 fi
10988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10989 LIBS=$ac_check_lib_save_LIBS
10990 fi
10991 echo "$as_me:$LINENO: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
10992 echo "${ECHO_T}$ac_cv_lib_gss_csf_gss_acq_user" >&6
10993 if test $ac_cv_lib_gss_csf_gss_acq_user = yes; then
10994   gss_impl="cybersafe"
10995 else
10996   gss_failed=1
10997 fi
10998
10999 fi
11000
11001
11002     if test "$gss_failed" = "1"; then
11003 # Restore variables
11004       GSSAPIBASE_LIBS=$cmu_saved_GSSAPIBASE_LIBS
11005       CPPFLAGS=$cmu_saved_CPPFLAGS
11006
11007       if test "$gss_impl" != "auto"; then
11008         gss_impl="failed"
11009       fi
11010     fi
11011   fi
11012
11013   if test "$gss_impl" = "auto" -o "$gss_impl" = "seam"; then
11014     gss_failed=0
11015     echo "$as_me:$LINENO: checking for gss_unwrap in -lgss" >&5
11016 echo $ECHO_N "checking for gss_unwrap in -lgss... $ECHO_C" >&6
11017 if test "${ac_cv_lib_gss_gss_unwrap+set}" = set; then
11018   echo $ECHO_N "(cached) $ECHO_C" >&6
11019 else
11020   ac_check_lib_save_LIBS=$LIBS
11021 LIBS="-lgss -lgss $LIBS"
11022 cat >conftest.$ac_ext <<_ACEOF
11023 #line $LINENO "configure"
11024 /* confdefs.h.  */
11025 _ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h.  */
11029
11030 /* Override any gcc2 internal prototype to avoid an error.  */
11031 #ifdef __cplusplus
11032 extern "C"
11033 #endif
11034 /* We use char because int might match the return type of a gcc2
11035    builtin and then its argument prototype would still apply.  */
11036 char gss_unwrap ();
11037 int
11038 main ()
11039 {
11040 gss_unwrap ();
11041   ;
11042   return 0;
11043 }
11044 _ACEOF
11045 rm -f conftest.$ac_objext conftest$ac_exeext
11046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11047   (eval $ac_link) 2>&5
11048   ac_status=$?
11049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050   (exit $ac_status); } &&
11051          { ac_try='test -s conftest$ac_exeext'
11052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11053   (eval $ac_try) 2>&5
11054   ac_status=$?
11055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056   (exit $ac_status); }; }; then
11057   ac_cv_lib_gss_gss_unwrap=yes
11058 else
11059   echo "$as_me: failed program was:" >&5
11060 sed 's/^/| /' conftest.$ac_ext >&5
11061
11062 ac_cv_lib_gss_gss_unwrap=no
11063 fi
11064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11065 LIBS=$ac_check_lib_save_LIBS
11066 fi
11067 echo "$as_me:$LINENO: result: $ac_cv_lib_gss_gss_unwrap" >&5
11068 echo "${ECHO_T}$ac_cv_lib_gss_gss_unwrap" >&6
11069 if test $ac_cv_lib_gss_gss_unwrap = yes; then
11070   gss_impl="seam"
11071 else
11072   gss_failed=1
11073 fi
11074
11075     if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
11076       gss_impl="failed"
11077     fi
11078   fi
11079
11080   if test "$gss_impl" = "mit"; then
11081     GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP}"
11082     GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_LIBS $gssapi_dir/libgssapi_krb5.a $gssapi_dir/libkrb5.a $gssapi_dir/libk5crypto.a $gssapi_dir/libcom_err.a ${K5SUPSTATIC}"
11083   elif test "$gss_impl" = "heimdal"; then
11084     CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL"
11085     GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err"
11086     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}"
11087   elif test "$gss_impl" = "cybersafe03"; then
11088 # Version of CyberSafe with two libraries
11089     CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
11090     GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss -lcstbk5"
11091     # there is no static libgss for CyberSafe
11092     GSSAPIBASE_STATIC_LIBS=none
11093   elif test "$gss_impl" = "cybersafe"; then
11094     CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
11095     GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss"
11096     # there is no static libgss for CyberSafe
11097     GSSAPIBASE_STATIC_LIBS=none
11098   elif test "$gss_impl" = "seam"; then
11099     GSSAPIBASE_LIBS=-lgss
11100     # there is no static libgss on Solaris 8 and up
11101     GSSAPIBASE_STATIC_LIBS=none
11102   elif test "$gss_impl" = "failed"; then
11103     gssapi="no"
11104     GSSAPIBASE_LIBS=
11105     GSSAPIBASE_STATIC_LIBS=
11106     { echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - specified library not found" >&5
11107 echo "$as_me: WARNING: Disabling GSSAPI - specified library not found" >&2;}
11108   else
11109     gssapi="no"
11110     GSSAPIBASE_LIBS=
11111     GSSAPIBASE_STATIC_LIBS=
11112     { echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - no library" >&5
11113 echo "$as_me: WARNING: Disabling GSSAPI - no library" >&2;}
11114   fi
11115 fi
11116
11117 #
11118 # Cybersafe defines both GSS_C_NT_HOSTBASED_SERVICE and GSS_C_NT_USER_NAME
11119 # in gssapi\rfckrb5.h
11120 #
11121 if test "$gssapi" != "no"; then
11122   if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
11123     cat >conftest.$ac_ext <<_ACEOF
11124 #line $LINENO "configure"
11125 /* confdefs.h.  */
11126 _ACEOF
11127 cat confdefs.h >>conftest.$ac_ext
11128 cat >>conftest.$ac_ext <<_ACEOF
11129 /* end confdefs.h.  */
11130 #include <gssapi/gssapi.h>
11131                   #ifdef GSS_C_NT_HOSTBASED_SERVICE
11132                     hostbased_service_gss_nt_yes
11133                   #endif
11134 _ACEOF
11135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11136   $EGREP "hostbased_service_gss_nt_yes" >/dev/null 2>&1; then
11137
11138 cat >>confdefs.h <<\_ACEOF
11139 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
11140 _ACEOF
11141
11142 else
11143   { echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5
11144 echo "$as_me: WARNING: Cybersafe define not found" >&2;}
11145 fi
11146 rm -f conftest*
11147
11148
11149   elif test "$ac_cv_header_gssapi_h" = "yes"; then
11150     cat >conftest.$ac_ext <<_ACEOF
11151 #line $LINENO "configure"
11152 /* confdefs.h.  */
11153 _ACEOF
11154 cat confdefs.h >>conftest.$ac_ext
11155 cat >>conftest.$ac_ext <<_ACEOF
11156 /* end confdefs.h.  */
11157 #include <gssapi.h>
11158
11159 _ACEOF
11160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11161   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
11162
11163 cat >>confdefs.h <<\_ACEOF
11164 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
11165 _ACEOF
11166
11167 fi
11168 rm -f conftest*
11169
11170   elif test "$ac_cv_header_gssapi_gssapi_h"; then
11171     cat >conftest.$ac_ext <<_ACEOF
11172 #line $LINENO "configure"
11173 /* confdefs.h.  */
11174 _ACEOF
11175 cat confdefs.h >>conftest.$ac_ext
11176 cat >>conftest.$ac_ext <<_ACEOF
11177 /* end confdefs.h.  */
11178 #include <gssapi/gssapi.h>
11179
11180 _ACEOF
11181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11182   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
11183
11184 cat >>confdefs.h <<\_ACEOF
11185 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
11186 _ACEOF
11187
11188 fi
11189 rm -f conftest*
11190
11191   fi
11192
11193   if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
11194     cat >conftest.$ac_ext <<_ACEOF
11195 #line $LINENO "configure"
11196 /* confdefs.h.  */
11197 _ACEOF
11198 cat confdefs.h >>conftest.$ac_ext
11199 cat >>conftest.$ac_ext <<_ACEOF
11200 /* end confdefs.h.  */
11201 #include <gssapi/gssapi.h>
11202                   #ifdef GSS_C_NT_USER_NAME
11203                    user_name_yes_gss_nt
11204                   #endif
11205 _ACEOF
11206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11207   $EGREP "user_name_yes_gss_nt" >/dev/null 2>&1; then
11208
11209 cat >>confdefs.h <<\_ACEOF
11210 #define HAVE_GSS_C_NT_USER_NAME
11211 _ACEOF
11212
11213 else
11214   { echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5
11215 echo "$as_me: WARNING: Cybersafe define not found" >&2;}
11216 fi
11217 rm -f conftest*
11218
11219   elif test "$ac_cv_header_gssapi_h" = "yes"; then
11220     cat >conftest.$ac_ext <<_ACEOF
11221 #line $LINENO "configure"
11222 /* confdefs.h.  */
11223 _ACEOF
11224 cat confdefs.h >>conftest.$ac_ext
11225 cat >>conftest.$ac_ext <<_ACEOF
11226 /* end confdefs.h.  */
11227 #include <gssapi.h>
11228
11229 _ACEOF
11230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11231   $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then
11232
11233 cat >>confdefs.h <<\_ACEOF
11234 #define HAVE_GSS_C_NT_USER_NAME
11235 _ACEOF
11236
11237 fi
11238 rm -f conftest*
11239
11240   elif test "$ac_cv_header_gssapi_gssapi_h"; then
11241     cat >conftest.$ac_ext <<_ACEOF
11242 #line $LINENO "configure"
11243 /* confdefs.h.  */
11244 _ACEOF
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h.  */
11248 #include <gssapi/gssapi.h>
11249
11250 _ACEOF
11251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11252   $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then
11253
11254 cat >>confdefs.h <<\_ACEOF
11255 #define HAVE_GSS_C_NT_USER_NAME
11256 _ACEOF
11257
11258 fi
11259 rm -f conftest*
11260
11261   fi
11262 fi
11263
11264 GSSAPI_LIBS=""
11265 echo "$as_me:$LINENO: checking GSSAPI" >&5
11266 echo $ECHO_N "checking GSSAPI... $ECHO_C" >&6
11267 if test "$gssapi" != no; then
11268   echo "$as_me:$LINENO: result: with implementation ${gss_impl}" >&5
11269 echo "${ECHO_T}with implementation ${gss_impl}" >&6
11270   echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
11271 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
11272 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
11273   echo $ECHO_N "(cached) $ECHO_C" >&6
11274 else
11275   ac_check_lib_save_LIBS=$LIBS
11276 LIBS="-lresolv  $LIBS"
11277 cat >conftest.$ac_ext <<_ACEOF
11278 #line $LINENO "configure"
11279 /* confdefs.h.  */
11280 _ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h.  */
11284
11285 /* Override any gcc2 internal prototype to avoid an error.  */
11286 #ifdef __cplusplus
11287 extern "C"
11288 #endif
11289 /* We use char because int might match the return type of a gcc2
11290    builtin and then its argument prototype would still apply.  */
11291 char res_search ();
11292 int
11293 main ()
11294 {
11295 res_search ();
11296   ;
11297   return 0;
11298 }
11299 _ACEOF
11300 rm -f conftest.$ac_objext conftest$ac_exeext
11301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11302   (eval $ac_link) 2>&5
11303   ac_status=$?
11304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305   (exit $ac_status); } &&
11306          { ac_try='test -s conftest$ac_exeext'
11307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308   (eval $ac_try) 2>&5
11309   ac_status=$?
11310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311   (exit $ac_status); }; }; then
11312   ac_cv_lib_resolv_res_search=yes
11313 else
11314   echo "$as_me: failed program was:" >&5
11315 sed 's/^/| /' conftest.$ac_ext >&5
11316
11317 ac_cv_lib_resolv_res_search=no
11318 fi
11319 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11320 LIBS=$ac_check_lib_save_LIBS
11321 fi
11322 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
11323 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
11324 if test $ac_cv_lib_resolv_res_search = yes; then
11325   GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lresolv"
11326 fi
11327
11328   SASL_MECHS="$SASL_MECHS libgssapiv2.la"
11329   SASL_STATIC_OBJS="$SASL_STATIC_OBJS gssapi.o"
11330   SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/gssapi.c"
11331
11332   cmu_save_LIBS="$LIBS"
11333   LIBS="$LIBS $GSSAPIBASE_LIBS"
11334
11335 for ac_func in gsskrb5_register_acceptor_identity
11336 do
11337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11338 echo "$as_me:$LINENO: checking for $ac_func" >&5
11339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11340 if eval "test \"\${$as_ac_var+set}\" = set"; then
11341   echo $ECHO_N "(cached) $ECHO_C" >&6
11342 else
11343   cat >conftest.$ac_ext <<_ACEOF
11344 #line $LINENO "configure"
11345 /* confdefs.h.  */
11346 _ACEOF
11347 cat confdefs.h >>conftest.$ac_ext
11348 cat >>conftest.$ac_ext <<_ACEOF
11349 /* end confdefs.h.  */
11350 /* System header to define __stub macros and hopefully few prototypes,
11351     which can conflict with char $ac_func (); below.
11352     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11353     <limits.h> exists even on freestanding compilers.  */
11354 #ifdef __STDC__
11355 # include <limits.h>
11356 #else
11357 # include <assert.h>
11358 #endif
11359 /* Override any gcc2 internal prototype to avoid an error.  */
11360 #ifdef __cplusplus
11361 extern "C"
11362 {
11363 #endif
11364 /* We use char because int might match the return type of a gcc2
11365    builtin and then its argument prototype would still apply.  */
11366 char $ac_func ();
11367 /* The GNU C library defines this for functions which it implements
11368     to always fail with ENOSYS.  Some functions are actually named
11369     something starting with __ and the normal name is an alias.  */
11370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11371 choke me
11372 #else
11373 char (*f) () = $ac_func;
11374 #endif
11375 #ifdef __cplusplus
11376 }
11377 #endif
11378
11379 int
11380 main ()
11381 {
11382 return f != $ac_func;
11383   ;
11384   return 0;
11385 }
11386 _ACEOF
11387 rm -f conftest.$ac_objext conftest$ac_exeext
11388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11389   (eval $ac_link) 2>&5
11390   ac_status=$?
11391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392   (exit $ac_status); } &&
11393          { ac_try='test -s conftest$ac_exeext'
11394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11395   (eval $ac_try) 2>&5
11396   ac_status=$?
11397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398   (exit $ac_status); }; }; then
11399   eval "$as_ac_var=yes"
11400 else
11401   echo "$as_me: failed program was:" >&5
11402 sed 's/^/| /' conftest.$ac_ext >&5
11403
11404 eval "$as_ac_var=no"
11405 fi
11406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11407 fi
11408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11409 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11410 if test `eval echo '${'$as_ac_var'}'` = yes; then
11411   cat >>confdefs.h <<_ACEOF
11412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11413 _ACEOF
11414
11415 fi
11416 done
11417
11418   LIBS="$cmu_save_LIBS"
11419 else
11420   echo "$as_me:$LINENO: result: disabled" >&5
11421 echo "${ECHO_T}disabled" >&6
11422 fi
11423
11424
11425
11426
11427 if test "$gssapi" != "no"; then
11428
11429 cat >>confdefs.h <<\_ACEOF
11430 #define STATIC_GSSAPIV2
11431 _ACEOF
11432
11433   mutex_default="no"
11434   if test "$gss_impl" = "mit"; then
11435      mutex_default="yes"
11436   fi
11437   echo "$as_me:$LINENO: checking to use mutexes aroung GSS calls" >&5
11438 echo $ECHO_N "checking to use mutexes aroung GSS calls... $ECHO_C" >&6
11439   # Check whether --enable-gss_mutexes or --disable-gss_mutexes was given.
11440 if test "${enable_gss_mutexes+set}" = set; then
11441   enableval="$enable_gss_mutexes"
11442   use_gss_mutexes=$enableval
11443 else
11444   use_gss_mutexes=$mutex_default
11445 fi;
11446   if test $use_gss_mutexes = "yes"; then
11447
11448 cat >>confdefs.h <<\_ACEOF
11449 #define GSS_USE_MUTEXES
11450 _ACEOF
11451
11452   fi
11453   echo "$as_me:$LINENO: result: $use_gss_mutexes" >&5
11454 echo "${ECHO_T}$use_gss_mutexes" >&6
11455 fi
11456
11457
11458
11459
11460  # Check whether --enable-plain or --disable-plain was given.
11461 if test "${enable_plain+set}" = set; then
11462   enableval="$enable_plain"
11463   plain=$enableval
11464 else
11465   plain=yes
11466 fi;
11467
11468  PLAIN_LIBS=""
11469  if test "$plain" != no; then
11470     if test "$cmu_have_crypt" = yes; then
11471     PLAIN_LIBS=$LIB_CRYPT
11472   fi
11473  fi
11474
11475
11476  echo "$as_me:$LINENO: checking PLAIN" >&5
11477 echo $ECHO_N "checking PLAIN... $ECHO_C" >&6
11478  if test "$plain" != no; then
11479   echo "$as_me:$LINENO: result: enabled" >&5
11480 echo "${ECHO_T}enabled" >&6
11481   SASL_MECHS="$SASL_MECHS libplain.la"
11482   if test "$enable_static" = yes; then
11483     SASL_STATIC_OBJS="$SASL_STATIC_OBJS plain.o"
11484     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/plain.c"
11485
11486 cat >>confdefs.h <<\_ACEOF
11487 #define STATIC_PLAIN
11488 _ACEOF
11489
11490   fi
11491  else
11492   echo "$as_me:$LINENO: result: disabled" >&5
11493 echo "${ECHO_T}disabled" >&6
11494  fi
11495
11496
11497 # Check whether --enable-anon or --disable-anon was given.
11498 if test "${enable_anon+set}" = set; then
11499   enableval="$enable_anon"
11500   anon=$enableval
11501 else
11502   anon=yes
11503 fi;
11504
11505 echo "$as_me:$LINENO: checking ANONYMOUS" >&5
11506 echo $ECHO_N "checking ANONYMOUS... $ECHO_C" >&6
11507 if test "$anon" != no; then
11508   echo "$as_me:$LINENO: result: enabled" >&5
11509 echo "${ECHO_T}enabled" >&6
11510   SASL_MECHS="$SASL_MECHS libanonymous.la"
11511   if test "$enable_static" = yes; then
11512     SASL_STATIC_OBJS="$SASL_STATIC_OBJS anonymous.o"
11513     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/anonymous.c"
11514
11515 cat >>confdefs.h <<\_ACEOF
11516 #define STATIC_ANONYMOUS
11517 _ACEOF
11518
11519   fi
11520 else
11521   echo "$as_me:$LINENO: result: disabled" >&5
11522 echo "${ECHO_T}disabled" >&6
11523 fi
11524
11525 # Check whether --enable-login or --disable-login was given.
11526 if test "${enable_login+set}" = set; then
11527   enableval="$enable_login"
11528   login=$enableval
11529 else
11530   login=no
11531 fi;
11532
11533 echo "$as_me:$LINENO: checking LOGIN" >&5
11534 echo $ECHO_N "checking LOGIN... $ECHO_C" >&6
11535 if test "$login" != no; then
11536   echo "$as_me:$LINENO: result: enabled" >&5
11537 echo "${ECHO_T}enabled" >&6
11538   SASL_MECHS="$SASL_MECHS liblogin.la"
11539   if test "$enable_static" = yes; then
11540     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/login.c"
11541     SASL_STATIC_OBJS="$SASL_STATIC_OBJS login.o"
11542
11543 cat >>confdefs.h <<\_ACEOF
11544 #define STATIC_LOGIN
11545 _ACEOF
11546
11547   fi
11548 else
11549   echo "$as_me:$LINENO: result: disabled" >&5
11550 echo "${ECHO_T}disabled" >&6
11551 fi
11552
11553 # Check whether --enable-ntlm or --disable-ntlm was given.
11554 if test "${enable_ntlm+set}" = set; then
11555   enableval="$enable_ntlm"
11556   ntlm=$enableval
11557 else
11558   ntlm=no
11559 fi;
11560
11561 if test "$with_openssl" = no; then
11562   { echo "$as_me:$LINENO: WARNING: OpenSSL not found -- NTLM will be disabled" >&5
11563 echo "$as_me: WARNING: OpenSSL not found -- NTLM will be disabled" >&2;}
11564   ntlm=no
11565 fi
11566
11567 echo "$as_me:$LINENO: checking NTLM" >&5
11568 echo $ECHO_N "checking NTLM... $ECHO_C" >&6
11569 if test "$ntlm" != no; then
11570   echo "$as_me:$LINENO: result: enabled" >&5
11571 echo "${ECHO_T}enabled" >&6
11572   NTLM_LIBS="-lcrypto $LIB_RSAREF"
11573
11574
11575   SASL_MECHS="$SASL_MECHS libntlm.la"
11576   if test "$enable_static" = yes; then
11577     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/ntlm.c"
11578     SASL_STATIC_OBJS="$SASL_STATIC_OBJS ntlm.o"
11579
11580 cat >>confdefs.h <<\_ACEOF
11581 #define STATIC_NTLM
11582 _ACEOF
11583
11584   fi
11585 else
11586   echo "$as_me:$LINENO: result: disabled" >&5
11587 echo "${ECHO_T}disabled" >&6
11588 fi
11589
11590 # Check whether --enable-passdss or --disable-passdss was given.
11591 if test "${enable_passdss+set}" = set; then
11592   enableval="$enable_passdss"
11593   passdss=$enableval
11594 else
11595   passdss=no
11596 fi;
11597
11598 if test "$with_openssl" = no; then
11599   { echo "$as_me:$LINENO: WARNING: OpenSSL not found -- PASSDSS will be disabled" >&5
11600 echo "$as_me: WARNING: OpenSSL not found -- PASSDSS will be disabled" >&2;}
11601   passdss=no
11602 fi
11603
11604 echo "$as_me:$LINENO: checking PASSDSS" >&5
11605 echo $ECHO_N "checking PASSDSS... $ECHO_C" >&6
11606 if test "$passdss" != no; then
11607   echo "$as_me:$LINENO: result: enabled" >&5
11608 echo "${ECHO_T}enabled" >&6
11609   PASSDSS_LIBS="-lcrypto $LIB_RSAREF"
11610
11611
11612   SASL_MECHS="$SASL_MECHS libpassdss.la"
11613   if test "$enable_static" = yes; then
11614     SASL_STATIC_OBJS="$SASL_STATIC_OBJS passdss.o"
11615     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/passdss.c"
11616
11617 cat >>confdefs.h <<\_ACEOF
11618 #define STATIC_PASSDSS
11619 _ACEOF
11620
11621   fi
11622 else
11623   echo "$as_me:$LINENO: result: disabled" >&5
11624 echo "${ECHO_T}disabled" >&6
11625 fi
11626
11627
11628 # make the option show up so people don't whine that it is only in the
11629 # saslauthd configure script --help
11630
11631 # Check whether --with-ldap or --without-ldap was given.
11632 if test "${with_ldap+set}" = set; then
11633   withval="$with_ldap"
11634
11635 else
11636   with_ldap=no
11637 fi;
11638
11639
11640
11641 # Check whether --enable-sql or --disable-sql was given.
11642 if test "${enable_sql+set}" = set; then
11643   enableval="$enable_sql"
11644   sql=$enableval
11645 else
11646   sql=no
11647 fi;
11648
11649 echo "$as_me:$LINENO: checking SQL" >&5
11650 echo $ECHO_N "checking SQL... $ECHO_C" >&6
11651 if test "$sql" != no; then
11652   echo "$as_me:$LINENO: result: enabled" >&5
11653 echo "${ECHO_T}enabled" >&6
11654   SASL_MECHS="$SASL_MECHS libsql.la"
11655   if test "$enable_static" = yes; then
11656     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/sql.c"
11657     SASL_STATIC_OBJS="$SASL_STATIC_OBJS sql.o"
11658
11659 cat >>confdefs.h <<\_ACEOF
11660 #define STATIC_SQL
11661 _ACEOF
11662
11663   fi
11664 else
11665   echo "$as_me:$LINENO: result: disabled" >&5
11666 echo "${ECHO_T}disabled" >&6
11667 fi
11668
11669
11670 # Check whether --with-mysql or --without-mysql was given.
11671 if test "${with_mysql+set}" = set; then
11672   withval="$with_mysql"
11673   with_mysql=$withval
11674 else
11675   with_mysql=$sql
11676 fi;
11677
11678 # find location of library
11679 # presuming if one given then correct
11680 if test "${with_mysql}" = "yes"; then
11681   with_mysql=notfound
11682   for mysqlloc in lib/mysql lib mysql/lib
11683   do
11684     if test -f ${prefix}/${mysqlloc}/libmysqlclient.a; then
11685       with_mysql="${prefix}"
11686       break
11687     elif test -f /usr/local/${mysqlloc}/libmysqlclient.a; then
11688       with_mysql="/usr/local"
11689       break
11690     elif test -f /usr/${mysqlloc}/libmysqlclient.a; then
11691       with_mysql="/usr"
11692       break
11693     fi
11694   done
11695 fi
11696
11697 LIB_MYSQL=""
11698
11699 case "$with_mysql" in
11700     no) true;;
11701     notfound) { echo "$as_me:$LINENO: WARNING: MySQL Library not found" >&5
11702 echo "$as_me: WARNING: MySQL Library not found" >&2;}; true;;
11703     *)
11704      if test -d ${with_mysql}/lib/mysql; then
11705
11706   # this is CMU ADD LIBPATH TO
11707   if test "$andrew_runpath_switch" = "none" ; then
11708         LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL}"
11709   else
11710         LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/lib/mysql"
11711   fi
11712
11713      elif test -d ${with_mysql}/mysql/lib; then
11714
11715   # this is CMU ADD LIBPATH TO
11716   if test "$andrew_runpath_switch" = "none" ; then
11717         LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL}"
11718   else
11719         LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/mysql/lib"
11720   fi
11721
11722      elif test -d ${with_mysql}/lib; then
11723
11724   # this is CMU ADD LIBPATH TO
11725   if test "$andrew_runpath_switch" = "none" ; then
11726         LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL}"
11727   else
11728         LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/lib"
11729   fi
11730
11731      else
11732
11733   # this is CMU ADD LIBPATH TO
11734   if test "$andrew_runpath_switch" = "none" ; then
11735         LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL}"
11736   else
11737         LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}"
11738   fi
11739
11740      fi
11741
11742      LIB_MYSQL_DIR=$LIB_MYSQL
11743      LIB_MYSQL="$LIB_MYSQL -lmysqlclient"
11744
11745      if test -d ${with_mysql}/include/mysql; then
11746          CPPFLAGS="${CPPFLAGS} -I${with_mysql}/include/mysql"
11747      elif test -d ${with_mysql}/mysql/include; then
11748          CPPFLAGS="${CPPFLAGS} -I${with_mysql}/mysql/include"
11749      elif test -d ${with_mysql}/include; then
11750          CPPFLAGS="${CPPFLAGS} -I${with_mysql}/include"
11751      else
11752          CPPFLAGS="${CPPFLAGS} -I${with_mysql}"
11753      fi
11754
11755        save_LDFLAGS=$LDFLAGS
11756        LDFLAGS="$LDFLAGS $LIB_MYSQL_DIR"
11757        echo "$as_me:$LINENO: checking for mysql_select_db in -lmysqlclient" >&5
11758 echo $ECHO_N "checking for mysql_select_db in -lmysqlclient... $ECHO_C" >&6
11759 if test "${ac_cv_lib_mysqlclient_mysql_select_db+set}" = set; then
11760   echo $ECHO_N "(cached) $ECHO_C" >&6
11761 else
11762   ac_check_lib_save_LIBS=$LIBS
11763 LIBS="-lmysqlclient  $LIBS"
11764 cat >conftest.$ac_ext <<_ACEOF
11765 #line $LINENO "configure"
11766 /* confdefs.h.  */
11767 _ACEOF
11768 cat confdefs.h >>conftest.$ac_ext
11769 cat >>conftest.$ac_ext <<_ACEOF
11770 /* end confdefs.h.  */
11771
11772 /* Override any gcc2 internal prototype to avoid an error.  */
11773 #ifdef __cplusplus
11774 extern "C"
11775 #endif
11776 /* We use char because int might match the return type of a gcc2
11777    builtin and then its argument prototype would still apply.  */
11778 char mysql_select_db ();
11779 int
11780 main ()
11781 {
11782 mysql_select_db ();
11783   ;
11784   return 0;
11785 }
11786 _ACEOF
11787 rm -f conftest.$ac_objext conftest$ac_exeext
11788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11789   (eval $ac_link) 2>&5
11790   ac_status=$?
11791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792   (exit $ac_status); } &&
11793          { ac_try='test -s conftest$ac_exeext'
11794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795   (eval $ac_try) 2>&5
11796   ac_status=$?
11797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798   (exit $ac_status); }; }; then
11799   ac_cv_lib_mysqlclient_mysql_select_db=yes
11800 else
11801   echo "$as_me: failed program was:" >&5
11802 sed 's/^/| /' conftest.$ac_ext >&5
11803
11804 ac_cv_lib_mysqlclient_mysql_select_db=no
11805 fi
11806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11807 LIBS=$ac_check_lib_save_LIBS
11808 fi
11809 echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_select_db" >&5
11810 echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_select_db" >&6
11811 if test $ac_cv_lib_mysqlclient_mysql_select_db = yes; then
11812
11813 cat >>confdefs.h <<\_ACEOF
11814 #define HAVE_MYSQL
11815 _ACEOF
11816
11817 else
11818   { echo "$as_me:$LINENO: WARNING: MySQL library mysqlclient does not work" >&5
11819 echo "$as_me: WARNING: MySQL library mysqlclient does not work" >&2;}
11820             with_mysql=no
11821 fi
11822
11823        LDFLAGS=$save_LDFLAGS;;
11824
11825 esac
11826
11827
11828
11829 # Check whether --with-pgsql or --without-pgsql was given.
11830 if test "${with_pgsql+set}" = set; then
11831   withval="$with_pgsql"
11832   with_pgsql=$withval
11833 else
11834   with_pgsql=$sql
11835 fi;
11836
11837 # find location of library
11838 # presuing if one given then correct
11839 if test "${with_pgsql}" = "yes"; then
11840   with_pgsql=notfound
11841   for pgsqlloc in lib/pgsql lib pgsql/lib
11842   do
11843     if test -f ${prefix}/${pgsqlloc}/libpq.a; then
11844       with_pgsql="${prefix}"
11845       break
11846     elif test -f /usr/local/${pgsqlloc}/libpq.a; then
11847       with_pgsql="/usr/local"
11848       break
11849     elif test -f /usr/${pgsqlloc}/libpq.a; then
11850       with_pgsql="/usr"
11851       break
11852     fi
11853   done
11854 fi
11855
11856 LIB_PGSQL=""
11857
11858 case "$with_pgsql" in
11859     no) true;;
11860     notfound) { echo "$as_me:$LINENO: WARNING: PostgreSQL Library not found" >&5
11861 echo "$as_me: WARNING: PostgreSQL Library not found" >&2;}; true;;
11862     *)
11863      if test -d ${with_pgsql}/lib/pgsql; then
11864
11865   # this is CMU ADD LIBPATH TO
11866   if test "$andrew_runpath_switch" = "none" ; then
11867         LIB_PGSQL="-L${with_pgsql}/lib/pgsql ${LIB_PGSQL}"
11868   else
11869         LIB_PGSQL="-L${with_pgsql}/lib/pgsql ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/lib/pgsql"
11870   fi
11871
11872      elif test -d ${with_pgsql}/pgsql/lib; then
11873
11874   # this is CMU ADD LIBPATH TO
11875   if test "$andrew_runpath_switch" = "none" ; then
11876         LIB_PGSQL="-L${with_pgsql}/pgsql/lib ${LIB_PGSQL}"
11877   else
11878         LIB_PGSQL="-L${with_pgsql}/pgsql/lib ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/pgsql/lib"
11879   fi
11880
11881      elif test -d ${with_pgsql}/lib; then
11882
11883   # this is CMU ADD LIBPATH TO
11884   if test "$andrew_runpath_switch" = "none" ; then
11885         LIB_PGSQL="-L${with_pgsql}/lib ${LIB_PGSQL}"
11886   else
11887         LIB_PGSQL="-L${with_pgsql}/lib ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/lib"
11888   fi
11889
11890      else
11891
11892   # this is CMU ADD LIBPATH TO
11893   if test "$andrew_runpath_switch" = "none" ; then
11894         LIB_PGSQL="-L${with_pgsql} ${LIB_PGSQL}"
11895   else
11896         LIB_PGSQL="-L${with_pgsql} ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}"
11897   fi
11898
11899      fi
11900
11901      LIB_PGSQL_DIR=$LIB_PGSQL
11902      LIB_PGSQL="$LIB_PGSQL -lpq"
11903
11904      if test -d ${with_pgsql}/include/pgsql; then
11905          CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include/pgsql"
11906      elif test -d ${with_pgsql}/pgsql/include; then
11907          CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/pgsql/include"
11908      elif test -d ${with_pgsql}/include; then
11909          CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include"
11910      else
11911          CPPFLAGS="${CPPFLAGS} -I${with_pgsql}"
11912      fi
11913
11914
11915        save_LDFLAGS=$LDFLAGS
11916        LDFLAGS="$LDFLAGS $LIB_PGSQL_DIR"
11917        echo "$as_me:$LINENO: checking for PQsetdbLogin in -lpq" >&5
11918 echo $ECHO_N "checking for PQsetdbLogin in -lpq... $ECHO_C" >&6
11919 if test "${ac_cv_lib_pq_PQsetdbLogin+set}" = set; then
11920   echo $ECHO_N "(cached) $ECHO_C" >&6
11921 else
11922   ac_check_lib_save_LIBS=$LIBS
11923 LIBS="-lpq  $LIBS"
11924 cat >conftest.$ac_ext <<_ACEOF
11925 #line $LINENO "configure"
11926 /* confdefs.h.  */
11927 _ACEOF
11928 cat confdefs.h >>conftest.$ac_ext
11929 cat >>conftest.$ac_ext <<_ACEOF
11930 /* end confdefs.h.  */
11931
11932 /* Override any gcc2 internal prototype to avoid an error.  */
11933 #ifdef __cplusplus
11934 extern "C"
11935 #endif
11936 /* We use char because int might match the return type of a gcc2
11937    builtin and then its argument prototype would still apply.  */
11938 char PQsetdbLogin ();
11939 int
11940 main ()
11941 {
11942 PQsetdbLogin ();
11943   ;
11944   return 0;
11945 }
11946 _ACEOF
11947 rm -f conftest.$ac_objext conftest$ac_exeext
11948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11949   (eval $ac_link) 2>&5
11950   ac_status=$?
11951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952   (exit $ac_status); } &&
11953          { ac_try='test -s conftest$ac_exeext'
11954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955   (eval $ac_try) 2>&5
11956   ac_status=$?
11957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958   (exit $ac_status); }; }; then
11959   ac_cv_lib_pq_PQsetdbLogin=yes
11960 else
11961   echo "$as_me: failed program was:" >&5
11962 sed 's/^/| /' conftest.$ac_ext >&5
11963
11964 ac_cv_lib_pq_PQsetdbLogin=no
11965 fi
11966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11967 LIBS=$ac_check_lib_save_LIBS
11968 fi
11969 echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQsetdbLogin" >&5
11970 echo "${ECHO_T}$ac_cv_lib_pq_PQsetdbLogin" >&6
11971 if test $ac_cv_lib_pq_PQsetdbLogin = yes; then
11972
11973 cat >>confdefs.h <<\_ACEOF
11974 #define HAVE_PGSQL
11975 _ACEOF
11976
11977 else
11978   { echo "$as_me:$LINENO: WARNING: PostgreSQL Library pq does not work" >&5
11979 echo "$as_me: WARNING: PostgreSQL Library pq does not work" >&2;}
11980             with_pgsql=no
11981 fi
11982
11983        LDFLAGS=$save_LDFLAGS;;
11984
11985 esac
11986
11987
11988
11989 # Check whether --with-sqlite or --without-sqlite was given.
11990 if test "${with_sqlite+set}" = set; then
11991   withval="$with_sqlite"
11992   with_sqlite=$withval
11993 else
11994   with_sqlite=$sql
11995 fi;
11996
11997 # find location of library
11998 # presuing if one given then correct
11999 if test "${with_sqlite}" = "yes"; then
12000   with_sqlite=notfound
12001   for sqliteloc in lib
12002   do
12003     if test -f ${prefix}/${sqliteloc}/libsqlite.a; then
12004       with_sqlite="${prefix}"
12005       break
12006     elif test -f /usr/local/${sqliteloc}/libsqlite.a; then
12007       with_sqlite="/usr/local"
12008       break
12009     elif test -f /usr/${sqliteloc}/libsqlite.a; then
12010       with_sqlite="/usr"
12011       break
12012     fi
12013   done
12014 fi
12015
12016 LIB_SQLITE=""
12017
12018 case "$with_sqlite" in
12019     no) true;;
12020     notfound) { echo "$as_me:$LINENO: WARNING: SQLite Library not found" >&5
12021 echo "$as_me: WARNING: SQLite Library not found" >&2;}; true;;
12022     *)
12023      if test -d ${with_sqlite}/lib; then
12024          LIB_SQLITE="-L${with_sqlite}/lib -R${with_sqlite}/lib"
12025      else
12026          LIB_SQLITE="-L${with_sqlite} -R${with_sqlite}"
12027      fi
12028
12029      LIB_SQLITE_DIR=$LIB_SQLITE
12030      LIB_SQLITE="$LIB_SQLITE -lsqlite"
12031
12032      if test -d ${with_sqlite}/include; then
12033          CPPFLAGS="${CPPFLAGS} -I${with_sqlite}/include"
12034      else
12035          CPPFLAGS="${CPPFLAGS} -I${with_sqlite}"
12036      fi
12037        echo "$as_me:$LINENO: checking for sqlite_open in -lsqlite" >&5
12038 echo $ECHO_N "checking for sqlite_open in -lsqlite... $ECHO_C" >&6
12039 if test "${ac_cv_lib_sqlite_sqlite_open+set}" = set; then
12040   echo $ECHO_N "(cached) $ECHO_C" >&6
12041 else
12042   ac_check_lib_save_LIBS=$LIBS
12043 LIBS="-lsqlite $LIB_SQLITE_DIR $LIBS"
12044 cat >conftest.$ac_ext <<_ACEOF
12045 #line $LINENO "configure"
12046 /* confdefs.h.  */
12047 _ACEOF
12048 cat confdefs.h >>conftest.$ac_ext
12049 cat >>conftest.$ac_ext <<_ACEOF
12050 /* end confdefs.h.  */
12051
12052 /* Override any gcc2 internal prototype to avoid an error.  */
12053 #ifdef __cplusplus
12054 extern "C"
12055 #endif
12056 /* We use char because int might match the return type of a gcc2
12057    builtin and then its argument prototype would still apply.  */
12058 char sqlite_open ();
12059 int
12060 main ()
12061 {
12062 sqlite_open ();
12063   ;
12064   return 0;
12065 }
12066 _ACEOF
12067 rm -f conftest.$ac_objext conftest$ac_exeext
12068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12069   (eval $ac_link) 2>&5
12070   ac_status=$?
12071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072   (exit $ac_status); } &&
12073          { ac_try='test -s conftest$ac_exeext'
12074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12075   (eval $ac_try) 2>&5
12076   ac_status=$?
12077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078   (exit $ac_status); }; }; then
12079   ac_cv_lib_sqlite_sqlite_open=yes
12080 else
12081   echo "$as_me: failed program was:" >&5
12082 sed 's/^/| /' conftest.$ac_ext >&5
12083
12084 ac_cv_lib_sqlite_sqlite_open=no
12085 fi
12086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12087 LIBS=$ac_check_lib_save_LIBS
12088 fi
12089 echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_open" >&5
12090 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_open" >&6
12091 if test $ac_cv_lib_sqlite_sqlite_open = yes; then
12092
12093 cat >>confdefs.h <<\_ACEOF
12094 #define HAVE_SQLITE
12095 _ACEOF
12096
12097 else
12098   { echo "$as_me:$LINENO: WARNING: SQLite Library sqlite does not work" >&5
12099 echo "$as_me: WARNING: SQLite Library sqlite does not work" >&2;}
12100             with_sqlite=no
12101 fi
12102 ;;
12103
12104 esac
12105
12106
12107 if test "$sql" = yes -a "$with_pgsql" = no -a "$with_mysql" = no -a "$with_sqlite" = no; then
12108     { { echo "$as_me:$LINENO: error: --enable-sql chosen but neither Postgres nor MySQL nor SQLite found" >&5
12109 echo "$as_me: error: --enable-sql chosen but neither Postgres nor MySQL nor SQLite found" >&2;}
12110    { (exit 1); exit 1; }; }
12111 fi
12112
12113 if test "$enable_shared" = yes; then
12114
12115 cat >>confdefs.h <<\_ACEOF
12116 #define DO_DLOPEN
12117 _ACEOF
12118
12119 fi
12120
12121 # Check whether --enable-ldapdb or --disable-ldapdb was given.
12122 if test "${enable_ldapdb+set}" = set; then
12123   enableval="$enable_ldapdb"
12124   ldapdb=$enableval
12125 else
12126   ldapdb=no
12127 fi;
12128 echo "$as_me:$LINENO: checking LDAPDB" >&5
12129 echo $ECHO_N "checking LDAPDB... $ECHO_C" >&6
12130 if test "$ldapdb" != no; then
12131     echo "$as_me:$LINENO: result: enabled" >&5
12132 echo "${ECHO_T}enabled" >&6
12133
12134     if test "$with_ldap" = no; then
12135         { { echo "$as_me:$LINENO: error: Cannot enable LDAPDB plugin: You need to specify --with-ldap" >&5
12136 echo "$as_me: error: Cannot enable LDAPDB plugin: You need to specify --with-ldap" >&2;}
12137    { (exit 1); exit 1; }; }
12138     fi
12139
12140     save_CPPFLAGS=$CPPFLAGS
12141     save_LDFLAGS=$LDFLAGS
12142
12143     if test -d $with_ldap; then
12144         CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
12145
12146   # this is CMU ADD LIBPATH
12147   if test "$andrew_runpath_switch" = "none" ; then
12148         LDFLAGS="-L${with_ldap}/lib ${LDFLAGS}"
12149   else
12150         LDFLAGS="-L${with_ldap}/lib $andrew_runpath_switch${with_ldap}/lib ${LDFLAGS}"
12151   fi
12152
12153     fi
12154
12155
12156
12157 for ac_header in ldap.h lber.h
12158 do
12159 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12161   echo "$as_me:$LINENO: checking for $ac_header" >&5
12162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12164   echo $ECHO_N "(cached) $ECHO_C" >&6
12165 fi
12166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12168 else
12169   # Is the header compilable?
12170 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12172 cat >conftest.$ac_ext <<_ACEOF
12173 #line $LINENO "configure"
12174 /* confdefs.h.  */
12175 _ACEOF
12176 cat confdefs.h >>conftest.$ac_ext
12177 cat >>conftest.$ac_ext <<_ACEOF
12178 /* end confdefs.h.  */
12179 $ac_includes_default
12180 #include <$ac_header>
12181 _ACEOF
12182 rm -f conftest.$ac_objext
12183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12184   (eval $ac_compile) 2>&5
12185   ac_status=$?
12186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187   (exit $ac_status); } &&
12188          { ac_try='test -s conftest.$ac_objext'
12189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190   (eval $ac_try) 2>&5
12191   ac_status=$?
12192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193   (exit $ac_status); }; }; then
12194   ac_header_compiler=yes
12195 else
12196   echo "$as_me: failed program was:" >&5
12197 sed 's/^/| /' conftest.$ac_ext >&5
12198
12199 ac_header_compiler=no
12200 fi
12201 rm -f conftest.$ac_objext conftest.$ac_ext
12202 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12203 echo "${ECHO_T}$ac_header_compiler" >&6
12204
12205 # Is the header present?
12206 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12207 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12208 cat >conftest.$ac_ext <<_ACEOF
12209 #line $LINENO "configure"
12210 /* confdefs.h.  */
12211 _ACEOF
12212 cat confdefs.h >>conftest.$ac_ext
12213 cat >>conftest.$ac_ext <<_ACEOF
12214 /* end confdefs.h.  */
12215 #include <$ac_header>
12216 _ACEOF
12217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12218   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12219   ac_status=$?
12220   grep -v '^ *+' conftest.er1 >conftest.err
12221   rm -f conftest.er1
12222   cat conftest.err >&5
12223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224   (exit $ac_status); } >/dev/null; then
12225   if test -s conftest.err; then
12226     ac_cpp_err=$ac_c_preproc_warn_flag
12227   else
12228     ac_cpp_err=
12229   fi
12230 else
12231   ac_cpp_err=yes
12232 fi
12233 if test -z "$ac_cpp_err"; then
12234   ac_header_preproc=yes
12235 else
12236   echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12238
12239   ac_header_preproc=no
12240 fi
12241 rm -f conftest.err conftest.$ac_ext
12242 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12243 echo "${ECHO_T}$ac_header_preproc" >&6
12244
12245 # So?  What about this header?
12246 case $ac_header_compiler:$ac_header_preproc in
12247   yes:no )
12248     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12250     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12251 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12252     (
12253       cat <<\_ASBOX
12254 ## ------------------------------------ ##
12255 ## Report this to bug-autoconf@gnu.org. ##
12256 ## ------------------------------------ ##
12257 _ASBOX
12258     ) |
12259       sed "s/^/$as_me: WARNING:     /" >&2
12260     ;;
12261   no:yes )
12262     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12263 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12264     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12265 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12266     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12268     (
12269       cat <<\_ASBOX
12270 ## ------------------------------------ ##
12271 ## Report this to bug-autoconf@gnu.org. ##
12272 ## ------------------------------------ ##
12273 _ASBOX
12274     ) |
12275       sed "s/^/$as_me: WARNING:     /" >&2
12276     ;;
12277 esac
12278 echo "$as_me:$LINENO: checking for $ac_header" >&5
12279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12281   echo $ECHO_N "(cached) $ECHO_C" >&6
12282 else
12283   eval "$as_ac_Header=$ac_header_preproc"
12284 fi
12285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12287
12288 fi
12289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12290   cat >>confdefs.h <<_ACEOF
12291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12292 _ACEOF
12293
12294 fi
12295
12296 done
12297
12298
12299     if test $ac_cv_header_ldap_h = yes -a $ac_cv_header_lber_h = yes; then
12300         echo "$as_me:$LINENO: checking OpenLDAP api" >&5
12301 echo $ECHO_N "checking OpenLDAP api... $ECHO_C" >&6
12302 if test "${cmu_cv_openldap_api+set}" = set; then
12303   echo $ECHO_N "(cached) $ECHO_C" >&6
12304 else
12305
12306     cat >conftest.$ac_ext <<_ACEOF
12307 #line $LINENO "configure"
12308 /* confdefs.h.  */
12309 _ACEOF
12310 cat confdefs.h >>conftest.$ac_ext
12311 cat >>conftest.$ac_ext <<_ACEOF
12312 /* end confdefs.h.  */
12313
12314 #include <ldap.h>
12315
12316 #ifdef LDAP_API_FEATURE_X_OPENLDAP
12317 char *__openldap_api = LDAP_API_FEATURE_X_OPENLDAP;
12318 #endif
12319
12320 _ACEOF
12321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12322   $EGREP "__openldap_api" >/dev/null 2>&1; then
12323   cmu_cv_openldap_api=yes
12324 else
12325   cmu_cv_openldap_api=no
12326 fi
12327 rm -f conftest*
12328
12329 fi
12330 echo "$as_me:$LINENO: result: $cmu_cv_openldap_api" >&5
12331 echo "${ECHO_T}$cmu_cv_openldap_api" >&6
12332
12333
12334         if test "$cmu_cv_openldap_api" = yes; then
12335             echo "$as_me:$LINENO: checking for ldap_initialize in -lldap" >&5
12336 echo $ECHO_N "checking for ldap_initialize in -lldap... $ECHO_C" >&6
12337 if test "${ac_cv_lib_ldap_ldap_initialize+set}" = set; then
12338   echo $ECHO_N "(cached) $ECHO_C" >&6
12339 else
12340   ac_check_lib_save_LIBS=$LIBS
12341 LIBS="-lldap -llber $LIBS"
12342 cat >conftest.$ac_ext <<_ACEOF
12343 #line $LINENO "configure"
12344 /* confdefs.h.  */
12345 _ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h.  */
12349
12350 /* Override any gcc2 internal prototype to avoid an error.  */
12351 #ifdef __cplusplus
12352 extern "C"
12353 #endif
12354 /* We use char because int might match the return type of a gcc2
12355    builtin and then its argument prototype would still apply.  */
12356 char ldap_initialize ();
12357 int
12358 main ()
12359 {
12360 ldap_initialize ();
12361   ;
12362   return 0;
12363 }
12364 _ACEOF
12365 rm -f conftest.$ac_objext conftest$ac_exeext
12366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12367   (eval $ac_link) 2>&5
12368   ac_status=$?
12369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370   (exit $ac_status); } &&
12371          { ac_try='test -s conftest$ac_exeext'
12372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373   (eval $ac_try) 2>&5
12374   ac_status=$?
12375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376   (exit $ac_status); }; }; then
12377   ac_cv_lib_ldap_ldap_initialize=yes
12378 else
12379   echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12381
12382 ac_cv_lib_ldap_ldap_initialize=no
12383 fi
12384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12385 LIBS=$ac_check_lib_save_LIBS
12386 fi
12387 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_initialize" >&5
12388 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_initialize" >&6
12389 if test $ac_cv_lib_ldap_ldap_initialize = yes; then
12390    cmu_link_openldap="-lldap -llber"
12391 else
12392    cmu_link_openldap=no
12393 fi
12394
12395         fi
12396     fi
12397
12398     if test "$cmu_cv_openldap_api" = no -o "$cmu_link_openldap" = no; then
12399         { { echo "$as_me:$LINENO: error: Cannot enable LDAPDB plugin: Could not locate OpenLDAP" >&5
12400 echo "$as_me: error: Cannot enable LDAPDB plugin: Could not locate OpenLDAP" >&2;}
12401    { (exit 1); exit 1; }; }
12402     else
12403         echo "$as_me:$LINENO: checking OpenLDAP version" >&5
12404 echo $ECHO_N "checking OpenLDAP version... $ECHO_C" >&6
12405 if test "${cmu_cv_openldap_compat+set}" = set; then
12406   echo $ECHO_N "(cached) $ECHO_C" >&6
12407 else
12408
12409     cat >conftest.$ac_ext <<_ACEOF
12410 #line $LINENO "configure"
12411 /* confdefs.h.  */
12412 _ACEOF
12413 cat confdefs.h >>conftest.$ac_ext
12414 cat >>conftest.$ac_ext <<_ACEOF
12415 /* end confdefs.h.  */
12416
12417 #include <ldap.h>
12418
12419 /* Require 2.1.27+ and 2.2.6+ */
12420 #if LDAP_VENDOR_VERSION_MAJOR == 2  && LDAP_VENDOR_VERSION_MINOR == 1 && LDAP_VENDOR_VERSION_PATCH > 26
12421 char *__openldap_compat = "2.1.27 or better okay";
12422 #elif LDAP_VENDOR_VERSION_MAJOR == 2  && LDAP_VENDOR_VERSION_MINOR == 2 && LDAP_VENDOR_VERSION_PATCH > 5
12423 char *__openldap_compat = "2.2.6 or better okay";
12424 #elif LDAP_VENDOR_VERSION_MAJOR == 2  && LDAP_VENDOR_VERSION_MINOR > 2
12425 char *__openldap_compat = "2.3 or better okay"
12426 #endif
12427
12428 _ACEOF
12429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12430   $EGREP "__openldap_compat" >/dev/null 2>&1; then
12431   cmu_cv_openldap_compat=yes
12432 else
12433   cmu_cv_openldap_compat=no
12434 fi
12435 rm -f conftest*
12436
12437 fi
12438 echo "$as_me:$LINENO: result: $cmu_cv_openldap_compat" >&5
12439 echo "${ECHO_T}$cmu_cv_openldap_compat" >&6
12440
12441
12442         if test "$cmu_cv_openldap_compat" = no; then
12443             { { echo "$as_me:$LINENO: error: Cannot enable LDAPDB plugin: OpenLDAP library located but incompatible" >&5
12444 echo "$as_me: error: Cannot enable LDAPDB plugin: OpenLDAP library located but incompatible" >&2;}
12445    { (exit 1); exit 1; }; }
12446         else
12447             LIB_LDAP=$cmu_link_openldap
12448
12449
12450             SASL_MECHS="$SASL_MECHS libldapdb.la"
12451             if test "$enable_static" = yes; then
12452                 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/ldapdb.c"
12453                 SASL_STATIC_OBJS="$SASL_STATIC_OBJS ldapdb.o"
12454
12455 cat >>confdefs.h <<\_ACEOF
12456 #define STATIC_LDAPDB
12457 _ACEOF
12458
12459             fi
12460         fi
12461     fi
12462
12463     if test "$cmu_cv_openldap_compat" != yes; then
12464         CPPFLAGS=$save_CPPFLAGS
12465         LDFLAGS=$save_LDFLAGS
12466     fi
12467 else
12468     echo "$as_me:$LINENO: result: disabled" >&5
12469 echo "${ECHO_T}disabled" >&6
12470 fi
12471
12472
12473
12474
12475
12476
12477
12478 # Check whether --with-plugindir or --without-plugindir was given.
12479 if test "${with_plugindir+set}" = set; then
12480   withval="$with_plugindir"
12481   plugindir=$withval
12482 else
12483   plugindir=/usr/lib/sasl2
12484 fi;
12485
12486 cat >>confdefs.h <<_ACEOF
12487 #define PLUGINDIR "$plugindir"
12488 _ACEOF
12489
12490
12491
12492
12493 # Check whether --with-configdir or --without-configdir was given.
12494 if test "${with_configdir+set}" = set; then
12495   withval="$with_configdir"
12496   configdir=$withval
12497 else
12498   configdir=$plugindir:/etc/sasl2
12499 fi;
12500
12501 cat >>confdefs.h <<_ACEOF
12502 #define CONFIGDIR "$configdir"
12503 _ACEOF
12504
12505
12506
12507
12508 # Check whether --with-rc4 or --without-rc4 was given.
12509 if test "${with_rc4+set}" = set; then
12510   withval="$with_rc4"
12511   with_rc4=$withval
12512 else
12513   with_rc4=yes
12514 fi;
12515
12516 if test "$with_rc4" != no; then
12517
12518 cat >>confdefs.h <<\_ACEOF
12519 #define WITH_RC4
12520 _ACEOF
12521
12522 fi
12523
12524 building_for_macosx=no
12525 case "$host_os" in
12526         darwin*)
12527 # Check whether --enable-macos-framework or --disable-macos-framework was given.
12528 if test "${enable_macos_framework+set}" = set; then
12529   enableval="$enable_macos_framework"
12530   building_for_macosx=no
12531 else
12532   building_for_macosx=yes
12533 fi;
12534         ;;
12535 esac
12536
12537
12538 if test "$building_for_macosx" = yes; then
12539   MACOSX_TRUE=
12540   MACOSX_FALSE='#'
12541 else
12542   MACOSX_TRUE='#'
12543   MACOSX_FALSE=
12544 fi
12545
12546
12547 echo "$as_me:$LINENO: checking for dmalloc library" >&5
12548 echo $ECHO_N "checking for dmalloc library... $ECHO_C" >&6
12549
12550 # Check whether --with-dmalloc or --without-dmalloc was given.
12551 if test "${with_dmalloc+set}" = set; then
12552   withval="$with_dmalloc"
12553   with_dmalloc=$withval
12554 else
12555   with_dmalloc=no
12556 fi;
12557
12558 DMALLOC_LIBS=""
12559
12560 if test "$with_dmalloc" != "no"; then
12561    if test "$with_dmalloc" = "yes"; then
12562         with_dmalloc="/usr/local"
12563    fi
12564
12565    if test -r "$with_dmalloc/libdmalloc.a"; then
12566         DMALLOC_LIBS="$with_dmalloc/libdmalloc.a"
12567
12568 cat >>confdefs.h <<\_ACEOF
12569 #define WITH_DMALLOC
12570 _ACEOF
12571
12572         echo "$as_me:$LINENO: result: yes" >&5
12573 echo "${ECHO_T}yes" >&6
12574    elif test -r "$with_dmalloc/lib/libdmalloc.a"; then
12575         DMALLOC_LIBS="$with_dmalloc/lib/libdmalloc.a"
12576
12577 cat >>confdefs.h <<\_ACEOF
12578 #define WITH_DMALLOC
12579 _ACEOF
12580
12581         echo "$as_me:$LINENO: result: yes" >&5
12582 echo "${ECHO_T}yes" >&6
12583    else
12584         { { echo "$as_me:$LINENO: error: cannot find dmalloc library" >&5
12585 echo "$as_me: error: cannot find dmalloc library" >&2;}
12586    { (exit please check your installation.); exit please check your installation.; }; }
12587    fi
12588 else
12589    echo "$as_me:$LINENO: result: no" >&5
12590 echo "${ECHO_T}no" >&6
12591 fi
12592
12593
12594
12595 echo "$as_me:$LINENO: checking for sfio library" >&5
12596 echo $ECHO_N "checking for sfio library... $ECHO_C" >&6
12597
12598 # Check whether --with-sfio or --without-sfio was given.
12599 if test "${with_sfio+set}" = set; then
12600   withval="$with_sfio"
12601   with_sfio=$withval
12602 else
12603   with_sfio=no
12604 fi;
12605
12606 if test "$with_sfio" != "no"; then
12607    if test "$with_sfio" = "yes"; then
12608         with_sfio="/usr/local"
12609    fi
12610
12611
12612
12613
12614
12615    if test -r "$with_sfio/sfio.h"; then SFIO_DIR=$with_sfio;
12616                                               SFIO_INC_DIR=$with_sfio
12617    elif test -r "$with_sfio/include/sfio.h"; then SFIO_DIR=$with_sfio;
12618                                               SFIO_INC_DIR=$with_sfio/include
12619    elif test -r "$with_sfio/include/sfio/sfio.h"; then SFIO_DIR=$with_sfio;
12620                                               SFIO_INC_DIR=$with_sfio/include/sfio
12621    fi
12622
12623    if test -z "$SFIO_DIR"; then
12624         { { echo "$as_me:$LINENO: error: Cannot find sfio.h" >&5
12625 echo "$as_me: error: Cannot find sfio.h" >&2;}
12626    { (exit Please check your SFIO installation.); exit Please check your SFIO installation.; }; }
12627    fi
12628
12629
12630                 str="$SFIO_DIR/lib/libsfio.*"
12631                 for i in `echo $str`; do
12632                         if test -r $i; then
12633                                 SFIO_LIBDIR=$SFIO_DIR/lib
12634                                 break 2
12635                         fi
12636                 done
12637
12638
12639                 str="$SFIO_DIR/lib/sfio/libsfio.*"
12640                 for i in `echo $str`; do
12641                         if test -r $i; then
12642                                 SFIO_LIBDIR=$SFIO_DIR/lib/sfio
12643                                 break 2
12644                         fi
12645                 done
12646
12647
12648    if test -z "$SFIO_LIBDIR"; then
12649         { { echo "$as_me:$LINENO: error: Cannot find sfio library" >&5
12650 echo "$as_me: error: Cannot find sfio library" >&2;}
12651    { (exit Please check your SFIO installation.); exit Please check your SFIO installation.; }; }
12652    fi
12653
12654    SFIO_INC_FLAGS="-I$SFIO_INC_DIR"
12655    SFIO_LIB_FLAGS="-L$SFIO_LIBDIR -lsfio"
12656    SMTPTEST_PROGRAM="smtptest"
12657    SASL_UTIL_LIBS_EXTRA=libsfsasl2.la
12658    SASL_UTIL_HEADERS_EXTRA=sfsasl.h
12659
12660    echo "$as_me:$LINENO: result: yes" >&5
12661 echo "${ECHO_T}yes" >&6
12662 else
12663    echo "$as_me:$LINENO: result: no" >&5
12664 echo "${ECHO_T}no" >&6
12665    SFIO_INC_FLAGS=""
12666    SFIO_LIB_FLAGS=""
12667    SMTPTEST_PROGRAM=""
12668    SASL_UTIL_LIBS_EXTRA=""
12669    SASL_UTIL_HEADERS_EXTRA=""
12670 fi
12671
12672
12673
12674
12675
12676
12677
12678 sasl_cv_getsubopt=no
12679 echo "$as_me:$LINENO: checking for getsubopt" >&5
12680 echo $ECHO_N "checking for getsubopt... $ECHO_C" >&6
12681 if test "${ac_cv_func_getsubopt+set}" = set; then
12682   echo $ECHO_N "(cached) $ECHO_C" >&6
12683 else
12684   cat >conftest.$ac_ext <<_ACEOF
12685 #line $LINENO "configure"
12686 /* confdefs.h.  */
12687 _ACEOF
12688 cat confdefs.h >>conftest.$ac_ext
12689 cat >>conftest.$ac_ext <<_ACEOF
12690 /* end confdefs.h.  */
12691 /* System header to define __stub macros and hopefully few prototypes,
12692     which can conflict with char getsubopt (); below.
12693     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12694     <limits.h> exists even on freestanding compilers.  */
12695 #ifdef __STDC__
12696 # include <limits.h>
12697 #else
12698 # include <assert.h>
12699 #endif
12700 /* Override any gcc2 internal prototype to avoid an error.  */
12701 #ifdef __cplusplus
12702 extern "C"
12703 {
12704 #endif
12705 /* We use char because int might match the return type of a gcc2
12706    builtin and then its argument prototype would still apply.  */
12707 char getsubopt ();
12708 /* The GNU C library defines this for functions which it implements
12709     to always fail with ENOSYS.  Some functions are actually named
12710     something starting with __ and the normal name is an alias.  */
12711 #if defined (__stub_getsubopt) || defined (__stub___getsubopt)
12712 choke me
12713 #else
12714 char (*f) () = getsubopt;
12715 #endif
12716 #ifdef __cplusplus
12717 }
12718 #endif
12719
12720 int
12721 main ()
12722 {
12723 return f != getsubopt;
12724   ;
12725   return 0;
12726 }
12727 _ACEOF
12728 rm -f conftest.$ac_objext conftest$ac_exeext
12729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12730   (eval $ac_link) 2>&5
12731   ac_status=$?
12732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733   (exit $ac_status); } &&
12734          { ac_try='test -s conftest$ac_exeext'
12735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12736   (eval $ac_try) 2>&5
12737   ac_status=$?
12738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739   (exit $ac_status); }; }; then
12740   ac_cv_func_getsubopt=yes
12741 else
12742   echo "$as_me: failed program was:" >&5
12743 sed 's/^/| /' conftest.$ac_ext >&5
12744
12745 ac_cv_func_getsubopt=no
12746 fi
12747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12748 fi
12749 echo "$as_me:$LINENO: result: $ac_cv_func_getsubopt" >&5
12750 echo "${ECHO_T}$ac_cv_func_getsubopt" >&6
12751 if test $ac_cv_func_getsubopt = yes; then
12752
12753 cat >>confdefs.h <<\_ACEOF
12754 #define HAVE_GETSUBOPT
12755 _ACEOF
12756
12757 else
12758   sasl_cv_getsubopt=yes
12759 fi
12760
12761 if test $sasl_cv_getsubopt = yes; then
12762         LIBOBJS="$LIBOBJS getsubopt.$ac_objext"
12763         GETSUBOPT="getsubopt.lo"
12764 fi
12765
12766
12767 sasl_cv_snprintf=no
12768 SNPRINTFOBJS=""
12769 echo "$as_me:$LINENO: checking for snprintf" >&5
12770 echo $ECHO_N "checking for snprintf... $ECHO_C" >&6
12771 if test "${ac_cv_func_snprintf+set}" = set; then
12772   echo $ECHO_N "(cached) $ECHO_C" >&6
12773 else
12774   cat >conftest.$ac_ext <<_ACEOF
12775 #line $LINENO "configure"
12776 /* confdefs.h.  */
12777 _ACEOF
12778 cat confdefs.h >>conftest.$ac_ext
12779 cat >>conftest.$ac_ext <<_ACEOF
12780 /* end confdefs.h.  */
12781 /* System header to define __stub macros and hopefully few prototypes,
12782     which can conflict with char snprintf (); below.
12783     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12784     <limits.h> exists even on freestanding compilers.  */
12785 #ifdef __STDC__
12786 # include <limits.h>
12787 #else
12788 # include <assert.h>
12789 #endif
12790 /* Override any gcc2 internal prototype to avoid an error.  */
12791 #ifdef __cplusplus
12792 extern "C"
12793 {
12794 #endif
12795 /* We use char because int might match the return type of a gcc2
12796    builtin and then its argument prototype would still apply.  */
12797 char snprintf ();
12798 /* The GNU C library defines this for functions which it implements
12799     to always fail with ENOSYS.  Some functions are actually named
12800     something starting with __ and the normal name is an alias.  */
12801 #if defined (__stub_snprintf) || defined (__stub___snprintf)
12802 choke me
12803 #else
12804 char (*f) () = snprintf;
12805 #endif
12806 #ifdef __cplusplus
12807 }
12808 #endif
12809
12810 int
12811 main ()
12812 {
12813 return f != snprintf;
12814   ;
12815   return 0;
12816 }
12817 _ACEOF
12818 rm -f conftest.$ac_objext conftest$ac_exeext
12819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12820   (eval $ac_link) 2>&5
12821   ac_status=$?
12822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823   (exit $ac_status); } &&
12824          { ac_try='test -s conftest$ac_exeext'
12825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12826   (eval $ac_try) 2>&5
12827   ac_status=$?
12828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829   (exit $ac_status); }; }; then
12830   ac_cv_func_snprintf=yes
12831 else
12832   echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.$ac_ext >&5
12834
12835 ac_cv_func_snprintf=no
12836 fi
12837 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12838 fi
12839 echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5
12840 echo "${ECHO_T}$ac_cv_func_snprintf" >&6
12841 if test $ac_cv_func_snprintf = yes; then
12842
12843 cat >>confdefs.h <<\_ACEOF
12844 #define HAVE_SNPRINTF
12845 _ACEOF
12846
12847 else
12848   sasl_cv_snprintf=yes
12849 fi
12850
12851 echo "$as_me:$LINENO: checking for vsnprintf" >&5
12852 echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6
12853 if test "${ac_cv_func_vsnprintf+set}" = set; then
12854   echo $ECHO_N "(cached) $ECHO_C" >&6
12855 else
12856   cat >conftest.$ac_ext <<_ACEOF
12857 #line $LINENO "configure"
12858 /* confdefs.h.  */
12859 _ACEOF
12860 cat confdefs.h >>conftest.$ac_ext
12861 cat >>conftest.$ac_ext <<_ACEOF
12862 /* end confdefs.h.  */
12863 /* System header to define __stub macros and hopefully few prototypes,
12864     which can conflict with char vsnprintf (); below.
12865     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12866     <limits.h> exists even on freestanding compilers.  */
12867 #ifdef __STDC__
12868 # include <limits.h>
12869 #else
12870 # include <assert.h>
12871 #endif
12872 /* Override any gcc2 internal prototype to avoid an error.  */
12873 #ifdef __cplusplus
12874 extern "C"
12875 {
12876 #endif
12877 /* We use char because int might match the return type of a gcc2
12878    builtin and then its argument prototype would still apply.  */
12879 char vsnprintf ();
12880 /* The GNU C library defines this for functions which it implements
12881     to always fail with ENOSYS.  Some functions are actually named
12882     something starting with __ and the normal name is an alias.  */
12883 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
12884 choke me
12885 #else
12886 char (*f) () = vsnprintf;
12887 #endif
12888 #ifdef __cplusplus
12889 }
12890 #endif
12891
12892 int
12893 main ()
12894 {
12895 return f != vsnprintf;
12896   ;
12897   return 0;
12898 }
12899 _ACEOF
12900 rm -f conftest.$ac_objext conftest$ac_exeext
12901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12902   (eval $ac_link) 2>&5
12903   ac_status=$?
12904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905   (exit $ac_status); } &&
12906          { ac_try='test -s conftest$ac_exeext'
12907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12908   (eval $ac_try) 2>&5
12909   ac_status=$?
12910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911   (exit $ac_status); }; }; then
12912   ac_cv_func_vsnprintf=yes
12913 else
12914   echo "$as_me: failed program was:" >&5
12915 sed 's/^/| /' conftest.$ac_ext >&5
12916
12917 ac_cv_func_vsnprintf=no
12918 fi
12919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12920 fi
12921 echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
12922 echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6
12923 if test $ac_cv_func_vsnprintf = yes; then
12924
12925 cat >>confdefs.h <<\_ACEOF
12926 #define HAVE_VSNPRINTF
12927 _ACEOF
12928
12929 else
12930   sasl_cv_snprintf=yes
12931 fi
12932
12933 if test $sasl_cv_snprintf = yes; then
12934         LIBOBJS="$LIBOBJS snprintf.$ac_objext"
12935         SNPRINTFOBJS="snprintf.o"
12936         LTSNPRINTFOBJS="snprintf.lo"
12937 fi
12938
12939
12940
12941
12942 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
12943 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
12944 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
12945   echo $ECHO_N "(cached) $ECHO_C" >&6
12946 else
12947   ac_check_lib_save_LIBS=$LIBS
12948 LIBS="-lresolv  $LIBS"
12949 cat >conftest.$ac_ext <<_ACEOF
12950 #line $LINENO "configure"
12951 /* confdefs.h.  */
12952 _ACEOF
12953 cat confdefs.h >>conftest.$ac_ext
12954 cat >>conftest.$ac_ext <<_ACEOF
12955 /* end confdefs.h.  */
12956
12957 /* Override any gcc2 internal prototype to avoid an error.  */
12958 #ifdef __cplusplus
12959 extern "C"
12960 #endif
12961 /* We use char because int might match the return type of a gcc2
12962    builtin and then its argument prototype would still apply.  */
12963 char inet_aton ();
12964 int
12965 main ()
12966 {
12967 inet_aton ();
12968   ;
12969   return 0;
12970 }
12971 _ACEOF
12972 rm -f conftest.$ac_objext conftest$ac_exeext
12973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12974   (eval $ac_link) 2>&5
12975   ac_status=$?
12976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977   (exit $ac_status); } &&
12978          { ac_try='test -s conftest$ac_exeext'
12979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980   (eval $ac_try) 2>&5
12981   ac_status=$?
12982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983   (exit $ac_status); }; }; then
12984   ac_cv_lib_resolv_inet_aton=yes
12985 else
12986   echo "$as_me: failed program was:" >&5
12987 sed 's/^/| /' conftest.$ac_ext >&5
12988
12989 ac_cv_lib_resolv_inet_aton=no
12990 fi
12991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12992 LIBS=$ac_check_lib_save_LIBS
12993 fi
12994 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
12995 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
12996 if test $ac_cv_lib_resolv_inet_aton = yes; then
12997   cat >>confdefs.h <<_ACEOF
12998 #define HAVE_LIBRESOLV 1
12999 _ACEOF
13000
13001   LIBS="-lresolv $LIBS"
13002
13003 fi
13004
13005
13006 GETADDRINFOOBJS=""
13007 sasl_cv_getaddrinfo=yes
13008
13009 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
13010 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
13011 if test "${ac_cv_func_getaddrinfo+set}" = set; then
13012   echo $ECHO_N "(cached) $ECHO_C" >&6
13013 else
13014   cat >conftest.$ac_ext <<_ACEOF
13015 #line $LINENO "configure"
13016 /* confdefs.h.  */
13017 _ACEOF
13018 cat confdefs.h >>conftest.$ac_ext
13019 cat >>conftest.$ac_ext <<_ACEOF
13020 /* end confdefs.h.  */
13021 /* System header to define __stub macros and hopefully few prototypes,
13022     which can conflict with char getaddrinfo (); below.
13023     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13024     <limits.h> exists even on freestanding compilers.  */
13025 #ifdef __STDC__
13026 # include <limits.h>
13027 #else
13028 # include <assert.h>
13029 #endif
13030 /* Override any gcc2 internal prototype to avoid an error.  */
13031 #ifdef __cplusplus
13032 extern "C"
13033 {
13034 #endif
13035 /* We use char because int might match the return type of a gcc2
13036    builtin and then its argument prototype would still apply.  */
13037 char getaddrinfo ();
13038 /* The GNU C library defines this for functions which it implements
13039     to always fail with ENOSYS.  Some functions are actually named
13040     something starting with __ and the normal name is an alias.  */
13041 #if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
13042 choke me
13043 #else
13044 char (*f) () = getaddrinfo;
13045 #endif
13046 #ifdef __cplusplus
13047 }
13048 #endif
13049
13050 int
13051 main ()
13052 {
13053 return f != getaddrinfo;
13054   ;
13055   return 0;
13056 }
13057 _ACEOF
13058 rm -f conftest.$ac_objext conftest$ac_exeext
13059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13060   (eval $ac_link) 2>&5
13061   ac_status=$?
13062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063   (exit $ac_status); } &&
13064          { ac_try='test -s conftest$ac_exeext'
13065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13066   (eval $ac_try) 2>&5
13067   ac_status=$?
13068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069   (exit $ac_status); }; }; then
13070   ac_cv_func_getaddrinfo=yes
13071 else
13072   echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.$ac_ext >&5
13074
13075 ac_cv_func_getaddrinfo=no
13076 fi
13077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13078 fi
13079 echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
13080 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6
13081 if test $ac_cv_func_getaddrinfo = yes; then
13082     ac_cv_lib_socket_getaddrinfo=no
13083   ac_cv_lib_inet6_getaddrinfo=no
13084
13085 else
13086     echo "$as_me:$LINENO: checking for getaddrinfo in -lsocket" >&5
13087 echo $ECHO_N "checking for getaddrinfo in -lsocket... $ECHO_C" >&6
13088 if test "${ac_cv_lib_socket_getaddrinfo+set}" = set; then
13089   echo $ECHO_N "(cached) $ECHO_C" >&6
13090 else
13091   ac_check_lib_save_LIBS=$LIBS
13092 LIBS="-lsocket  $LIBS"
13093 cat >conftest.$ac_ext <<_ACEOF
13094 #line $LINENO "configure"
13095 /* confdefs.h.  */
13096 _ACEOF
13097 cat confdefs.h >>conftest.$ac_ext
13098 cat >>conftest.$ac_ext <<_ACEOF
13099 /* end confdefs.h.  */
13100
13101 /* Override any gcc2 internal prototype to avoid an error.  */
13102 #ifdef __cplusplus
13103 extern "C"
13104 #endif
13105 /* We use char because int might match the return type of a gcc2
13106    builtin and then its argument prototype would still apply.  */
13107 char getaddrinfo ();
13108 int
13109 main ()
13110 {
13111 getaddrinfo ();
13112   ;
13113   return 0;
13114 }
13115 _ACEOF
13116 rm -f conftest.$ac_objext conftest$ac_exeext
13117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13118   (eval $ac_link) 2>&5
13119   ac_status=$?
13120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121   (exit $ac_status); } &&
13122          { ac_try='test -s conftest$ac_exeext'
13123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13124   (eval $ac_try) 2>&5
13125   ac_status=$?
13126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127   (exit $ac_status); }; }; then
13128   ac_cv_lib_socket_getaddrinfo=yes
13129 else
13130   echo "$as_me: failed program was:" >&5
13131 sed 's/^/| /' conftest.$ac_ext >&5
13132
13133 ac_cv_lib_socket_getaddrinfo=no
13134 fi
13135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13136 LIBS=$ac_check_lib_save_LIBS
13137 fi
13138 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getaddrinfo" >&5
13139 echo "${ECHO_T}$ac_cv_lib_socket_getaddrinfo" >&6
13140 if test $ac_cv_lib_socket_getaddrinfo = yes; then
13141       LIBS="$LIBS -lsocket"
13142     ac_cv_lib_inet6_getaddrinfo=no
13143
13144 else
13145       echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5
13146 echo $ECHO_N "checking whether your system has IPv6 directory... $ECHO_C" >&6
13147     if test "${ipv6_cv_dir+set}" = set; then
13148   echo $ECHO_N "(cached) $ECHO_C" >&6
13149 else
13150         for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
13151         if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
13152           break
13153         fi
13154       done
13155 fi
13156     echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5
13157 echo "${ECHO_T}$ipv6_cv_dir" >&6
13158     if test $ipv6_cv_dir = no; then
13159       ac_cv_lib_inet6_getaddrinfo=no
13160     else
13161       if test x$ipv6_libinet6 = x; then
13162         ipv6_libinet6=no
13163         SAVELDFLAGS="$LDFLAGS"
13164         LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
13165       fi
13166       echo "$as_me:$LINENO: checking for getaddrinfo in -linet6" >&5
13167 echo $ECHO_N "checking for getaddrinfo in -linet6... $ECHO_C" >&6
13168 if test "${ac_cv_lib_inet6_getaddrinfo+set}" = set; then
13169   echo $ECHO_N "(cached) $ECHO_C" >&6
13170 else
13171   ac_check_lib_save_LIBS=$LIBS
13172 LIBS="-linet6  $LIBS"
13173 cat >conftest.$ac_ext <<_ACEOF
13174 #line $LINENO "configure"
13175 /* confdefs.h.  */
13176 _ACEOF
13177 cat confdefs.h >>conftest.$ac_ext
13178 cat >>conftest.$ac_ext <<_ACEOF
13179 /* end confdefs.h.  */
13180
13181 /* Override any gcc2 internal prototype to avoid an error.  */
13182 #ifdef __cplusplus
13183 extern "C"
13184 #endif
13185 /* We use char because int might match the return type of a gcc2
13186    builtin and then its argument prototype would still apply.  */
13187 char getaddrinfo ();
13188 int
13189 main ()
13190 {
13191 getaddrinfo ();
13192   ;
13193   return 0;
13194 }
13195 _ACEOF
13196 rm -f conftest.$ac_objext conftest$ac_exeext
13197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13198   (eval $ac_link) 2>&5
13199   ac_status=$?
13200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201   (exit $ac_status); } &&
13202          { ac_try='test -s conftest$ac_exeext'
13203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13204   (eval $ac_try) 2>&5
13205   ac_status=$?
13206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207   (exit $ac_status); }; }; then
13208   ac_cv_lib_inet6_getaddrinfo=yes
13209 else
13210   echo "$as_me: failed program was:" >&5
13211 sed 's/^/| /' conftest.$ac_ext >&5
13212
13213 ac_cv_lib_inet6_getaddrinfo=no
13214 fi
13215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13216 LIBS=$ac_check_lib_save_LIBS
13217 fi
13218 echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getaddrinfo" >&5
13219 echo "${ECHO_T}$ac_cv_lib_inet6_getaddrinfo" >&6
13220 if test $ac_cv_lib_inet6_getaddrinfo = yes; then
13221         if test $ipv6_libinet6 = no; then
13222           ipv6_libinet6=yes
13223           LIBS="$LIBS -linet6"
13224         fi
13225 fi
13226       if test $ipv6_libinet6 = no; then
13227         LDFLAGS="$SAVELDFLAGS"
13228       fi
13229     fi
13230 fi
13231
13232 fi
13233 ipv6_cv_getaddrinfo=no
13234 if test $ac_cv_func_getaddrinfo = yes -o $ac_cv_lib_socket_getaddrinfo = yes \
13235      -o $ac_cv_lib_inet6_getaddrinfo = yes
13236 then
13237   ipv6_cv_getaddrinfo=yes
13238 fi
13239 if test $ipv6_cv_getaddrinfo = no; then
13240   if test getaddrinfo = getaddrinfo; then
13241     for ipv6_cv_pfx in o n; do
13242       cat >conftest.$ac_ext <<_ACEOF
13243 #line $LINENO "configure"
13244 /* confdefs.h.  */
13245 _ACEOF
13246 cat confdefs.h >>conftest.$ac_ext
13247 cat >>conftest.$ac_ext <<_ACEOF
13248 /* end confdefs.h.  */
13249 #include <netdb.h>
13250
13251 _ACEOF
13252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13253   $EGREP "${ipv6_cv_pfx}getaddrinfo" >/dev/null 2>&1; then
13254   as_ac_var=`echo "ac_cv_func_${ipv6_cv_pfx}getaddrinfo" | $as_tr_sh`
13255 echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}getaddrinfo" >&5
13256 echo $ECHO_N "checking for ${ipv6_cv_pfx}getaddrinfo... $ECHO_C" >&6
13257 if eval "test \"\${$as_ac_var+set}\" = set"; then
13258   echo $ECHO_N "(cached) $ECHO_C" >&6
13259 else
13260   cat >conftest.$ac_ext <<_ACEOF
13261 #line $LINENO "configure"
13262 /* confdefs.h.  */
13263 _ACEOF
13264 cat confdefs.h >>conftest.$ac_ext
13265 cat >>conftest.$ac_ext <<_ACEOF
13266 /* end confdefs.h.  */
13267 /* System header to define __stub macros and hopefully few prototypes,
13268     which can conflict with char ${ipv6_cv_pfx}getaddrinfo (); below.
13269     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13270     <limits.h> exists even on freestanding compilers.  */
13271 #ifdef __STDC__
13272 # include <limits.h>
13273 #else
13274 # include <assert.h>
13275 #endif
13276 /* Override any gcc2 internal prototype to avoid an error.  */
13277 #ifdef __cplusplus
13278 extern "C"
13279 {
13280 #endif
13281 /* We use char because int might match the return type of a gcc2
13282    builtin and then its argument prototype would still apply.  */
13283 char ${ipv6_cv_pfx}getaddrinfo ();
13284 /* The GNU C library defines this for functions which it implements
13285     to always fail with ENOSYS.  Some functions are actually named
13286     something starting with __ and the normal name is an alias.  */
13287 #if defined (__stub_${ipv6_cv_pfx}getaddrinfo) || defined (__stub___${ipv6_cv_pfx}getaddrinfo)
13288 choke me
13289 #else
13290 char (*f) () = ${ipv6_cv_pfx}getaddrinfo;
13291 #endif
13292 #ifdef __cplusplus
13293 }
13294 #endif
13295
13296 int
13297 main ()
13298 {
13299 return f != ${ipv6_cv_pfx}getaddrinfo;
13300   ;
13301   return 0;
13302 }
13303 _ACEOF
13304 rm -f conftest.$ac_objext conftest$ac_exeext
13305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13306   (eval $ac_link) 2>&5
13307   ac_status=$?
13308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309   (exit $ac_status); } &&
13310          { ac_try='test -s conftest$ac_exeext'
13311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13312   (eval $ac_try) 2>&5
13313   ac_status=$?
13314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315   (exit $ac_status); }; }; then
13316   eval "$as_ac_var=yes"
13317 else
13318   echo "$as_me: failed program was:" >&5
13319 sed 's/^/| /' conftest.$ac_ext >&5
13320
13321 eval "$as_ac_var=no"
13322 fi
13323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13324 fi
13325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13326 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13327
13328 fi
13329 rm -f conftest*
13330
13331       if eval test X\$ac_cv_func_${ipv6_cv_pfx}getaddrinfo = Xyes; then
13332
13333 cat >>confdefs.h <<\_ACEOF
13334 #define HAVE_GETADDRINFO
13335 _ACEOF
13336
13337         ipv6_cv_getaddrinfo=yes
13338         break
13339       fi
13340     done
13341   fi
13342 fi
13343 if test $ipv6_cv_getaddrinfo = yes; then
13344
13345 echo "$as_me:$LINENO: checking for gai_strerror" >&5
13346 echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6
13347 if test "${ac_cv_func_gai_strerror+set}" = set; then
13348   echo $ECHO_N "(cached) $ECHO_C" >&6
13349 else
13350   cat >conftest.$ac_ext <<_ACEOF
13351 #line $LINENO "configure"
13352 /* confdefs.h.  */
13353 _ACEOF
13354 cat confdefs.h >>conftest.$ac_ext
13355 cat >>conftest.$ac_ext <<_ACEOF
13356 /* end confdefs.h.  */
13357 /* System header to define __stub macros and hopefully few prototypes,
13358     which can conflict with char gai_strerror (); below.
13359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13360     <limits.h> exists even on freestanding compilers.  */
13361 #ifdef __STDC__
13362 # include <limits.h>
13363 #else
13364 # include <assert.h>
13365 #endif
13366 /* Override any gcc2 internal prototype to avoid an error.  */
13367 #ifdef __cplusplus
13368 extern "C"
13369 {
13370 #endif
13371 /* We use char because int might match the return type of a gcc2
13372    builtin and then its argument prototype would still apply.  */
13373 char gai_strerror ();
13374 /* The GNU C library defines this for functions which it implements
13375     to always fail with ENOSYS.  Some functions are actually named
13376     something starting with __ and the normal name is an alias.  */
13377 #if defined (__stub_gai_strerror) || defined (__stub___gai_strerror)
13378 choke me
13379 #else
13380 char (*f) () = gai_strerror;
13381 #endif
13382 #ifdef __cplusplus
13383 }
13384 #endif
13385
13386 int
13387 main ()
13388 {
13389 return f != gai_strerror;
13390   ;
13391   return 0;
13392 }
13393 _ACEOF
13394 rm -f conftest.$ac_objext conftest$ac_exeext
13395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13396   (eval $ac_link) 2>&5
13397   ac_status=$?
13398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399   (exit $ac_status); } &&
13400          { ac_try='test -s conftest$ac_exeext'
13401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13402   (eval $ac_try) 2>&5
13403   ac_status=$?
13404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405   (exit $ac_status); }; }; then
13406   ac_cv_func_gai_strerror=yes
13407 else
13408   echo "$as_me: failed program was:" >&5
13409 sed 's/^/| /' conftest.$ac_ext >&5
13410
13411 ac_cv_func_gai_strerror=no
13412 fi
13413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13414 fi
13415 echo "$as_me:$LINENO: result: $ac_cv_func_gai_strerror" >&5
13416 echo "${ECHO_T}$ac_cv_func_gai_strerror" >&6
13417 if test $ac_cv_func_gai_strerror = yes; then
13418     ac_cv_lib_socket_gai_strerror=no
13419   ac_cv_lib_inet6_gai_strerror=no
13420
13421 else
13422     echo "$as_me:$LINENO: checking for gai_strerror in -lsocket" >&5
13423 echo $ECHO_N "checking for gai_strerror in -lsocket... $ECHO_C" >&6
13424 if test "${ac_cv_lib_socket_gai_strerror+set}" = set; then
13425   echo $ECHO_N "(cached) $ECHO_C" >&6
13426 else
13427   ac_check_lib_save_LIBS=$LIBS
13428 LIBS="-lsocket  $LIBS"
13429 cat >conftest.$ac_ext <<_ACEOF
13430 #line $LINENO "configure"
13431 /* confdefs.h.  */
13432 _ACEOF
13433 cat confdefs.h >>conftest.$ac_ext
13434 cat >>conftest.$ac_ext <<_ACEOF
13435 /* end confdefs.h.  */
13436
13437 /* Override any gcc2 internal prototype to avoid an error.  */
13438 #ifdef __cplusplus
13439 extern "C"
13440 #endif
13441 /* We use char because int might match the return type of a gcc2
13442    builtin and then its argument prototype would still apply.  */
13443 char gai_strerror ();
13444 int
13445 main ()
13446 {
13447 gai_strerror ();
13448   ;
13449   return 0;
13450 }
13451 _ACEOF
13452 rm -f conftest.$ac_objext conftest$ac_exeext
13453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13454   (eval $ac_link) 2>&5
13455   ac_status=$?
13456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457   (exit $ac_status); } &&
13458          { ac_try='test -s conftest$ac_exeext'
13459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13460   (eval $ac_try) 2>&5
13461   ac_status=$?
13462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463   (exit $ac_status); }; }; then
13464   ac_cv_lib_socket_gai_strerror=yes
13465 else
13466   echo "$as_me: failed program was:" >&5
13467 sed 's/^/| /' conftest.$ac_ext >&5
13468
13469 ac_cv_lib_socket_gai_strerror=no
13470 fi
13471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13472 LIBS=$ac_check_lib_save_LIBS
13473 fi
13474 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gai_strerror" >&5
13475 echo "${ECHO_T}$ac_cv_lib_socket_gai_strerror" >&6
13476 if test $ac_cv_lib_socket_gai_strerror = yes; then
13477       LIBS="$LIBS -lsocket"
13478     ac_cv_lib_inet6_gai_strerror=no
13479
13480 else
13481       echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5
13482 echo $ECHO_N "checking whether your system has IPv6 directory... $ECHO_C" >&6
13483     if test "${ipv6_cv_dir+set}" = set; then
13484   echo $ECHO_N "(cached) $ECHO_C" >&6
13485 else
13486         for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
13487         if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
13488           break
13489         fi
13490       done
13491 fi
13492     echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5
13493 echo "${ECHO_T}$ipv6_cv_dir" >&6
13494     if test $ipv6_cv_dir = no; then
13495       ac_cv_lib_inet6_gai_strerror=no
13496     else
13497       if test x$ipv6_libinet6 = x; then
13498         ipv6_libinet6=no
13499         SAVELDFLAGS="$LDFLAGS"
13500         LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
13501       fi
13502       echo "$as_me:$LINENO: checking for gai_strerror in -linet6" >&5
13503 echo $ECHO_N "checking for gai_strerror in -linet6... $ECHO_C" >&6
13504 if test "${ac_cv_lib_inet6_gai_strerror+set}" = set; then
13505   echo $ECHO_N "(cached) $ECHO_C" >&6
13506 else
13507   ac_check_lib_save_LIBS=$LIBS
13508 LIBS="-linet6  $LIBS"
13509 cat >conftest.$ac_ext <<_ACEOF
13510 #line $LINENO "configure"
13511 /* confdefs.h.  */
13512 _ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h.  */
13516
13517 /* Override any gcc2 internal prototype to avoid an error.  */
13518 #ifdef __cplusplus
13519 extern "C"
13520 #endif
13521 /* We use char because int might match the return type of a gcc2
13522    builtin and then its argument prototype would still apply.  */
13523 char gai_strerror ();
13524 int
13525 main ()
13526 {
13527 gai_strerror ();
13528   ;
13529   return 0;
13530 }
13531 _ACEOF
13532 rm -f conftest.$ac_objext conftest$ac_exeext
13533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13534   (eval $ac_link) 2>&5
13535   ac_status=$?
13536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537   (exit $ac_status); } &&
13538          { ac_try='test -s conftest$ac_exeext'
13539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13540   (eval $ac_try) 2>&5
13541   ac_status=$?
13542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543   (exit $ac_status); }; }; then
13544   ac_cv_lib_inet6_gai_strerror=yes
13545 else
13546   echo "$as_me: failed program was:" >&5
13547 sed 's/^/| /' conftest.$ac_ext >&5
13548
13549 ac_cv_lib_inet6_gai_strerror=no
13550 fi
13551 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13552 LIBS=$ac_check_lib_save_LIBS
13553 fi
13554 echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_gai_strerror" >&5
13555 echo "${ECHO_T}$ac_cv_lib_inet6_gai_strerror" >&6
13556 if test $ac_cv_lib_inet6_gai_strerror = yes; then
13557         if test $ipv6_libinet6 = no; then
13558           ipv6_libinet6=yes
13559           LIBS="$LIBS -linet6"
13560         fi
13561 fi
13562       if test $ipv6_libinet6 = no; then
13563         LDFLAGS="$SAVELDFLAGS"
13564       fi
13565     fi
13566 fi
13567
13568 fi
13569 ipv6_cv_gai_strerror=no
13570 if test $ac_cv_func_gai_strerror = yes -o $ac_cv_lib_socket_gai_strerror = yes \
13571      -o $ac_cv_lib_inet6_gai_strerror = yes
13572 then
13573   ipv6_cv_gai_strerror=yes
13574 fi
13575 if test $ipv6_cv_gai_strerror = no; then
13576   if test gai_strerror = getaddrinfo; then
13577     for ipv6_cv_pfx in o n; do
13578       cat >conftest.$ac_ext <<_ACEOF
13579 #line $LINENO "configure"
13580 /* confdefs.h.  */
13581 _ACEOF
13582 cat confdefs.h >>conftest.$ac_ext
13583 cat >>conftest.$ac_ext <<_ACEOF
13584 /* end confdefs.h.  */
13585 #include <netdb.h>
13586
13587 _ACEOF
13588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13589   $EGREP "${ipv6_cv_pfx}gai_strerror" >/dev/null 2>&1; then
13590   as_ac_var=`echo "ac_cv_func_${ipv6_cv_pfx}gai_strerror" | $as_tr_sh`
13591 echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}gai_strerror" >&5
13592 echo $ECHO_N "checking for ${ipv6_cv_pfx}gai_strerror... $ECHO_C" >&6
13593 if eval "test \"\${$as_ac_var+set}\" = set"; then
13594   echo $ECHO_N "(cached) $ECHO_C" >&6
13595 else
13596   cat >conftest.$ac_ext <<_ACEOF
13597 #line $LINENO "configure"
13598 /* confdefs.h.  */
13599 _ACEOF
13600 cat confdefs.h >>conftest.$ac_ext
13601 cat >>conftest.$ac_ext <<_ACEOF
13602 /* end confdefs.h.  */
13603 /* System header to define __stub macros and hopefully few prototypes,
13604     which can conflict with char ${ipv6_cv_pfx}gai_strerror (); below.
13605     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13606     <limits.h> exists even on freestanding compilers.  */
13607 #ifdef __STDC__
13608 # include <limits.h>
13609 #else
13610 # include <assert.h>
13611 #endif
13612 /* Override any gcc2 internal prototype to avoid an error.  */
13613 #ifdef __cplusplus
13614 extern "C"
13615 {
13616 #endif
13617 /* We use char because int might match the return type of a gcc2
13618    builtin and then its argument prototype would still apply.  */
13619 char ${ipv6_cv_pfx}gai_strerror ();
13620 /* The GNU C library defines this for functions which it implements
13621     to always fail with ENOSYS.  Some functions are actually named
13622     something starting with __ and the normal name is an alias.  */
13623 #if defined (__stub_${ipv6_cv_pfx}gai_strerror) || defined (__stub___${ipv6_cv_pfx}gai_strerror)
13624 choke me
13625 #else
13626 char (*f) () = ${ipv6_cv_pfx}gai_strerror;
13627 #endif
13628 #ifdef __cplusplus
13629 }
13630 #endif
13631
13632 int
13633 main ()
13634 {
13635 return f != ${ipv6_cv_pfx}gai_strerror;
13636   ;
13637   return 0;
13638 }
13639 _ACEOF
13640 rm -f conftest.$ac_objext conftest$ac_exeext
13641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13642   (eval $ac_link) 2>&5
13643   ac_status=$?
13644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645   (exit $ac_status); } &&
13646          { ac_try='test -s conftest$ac_exeext'
13647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13648   (eval $ac_try) 2>&5
13649   ac_status=$?
13650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651   (exit $ac_status); }; }; then
13652   eval "$as_ac_var=yes"
13653 else
13654   echo "$as_me: failed program was:" >&5
13655 sed 's/^/| /' conftest.$ac_ext >&5
13656
13657 eval "$as_ac_var=no"
13658 fi
13659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13660 fi
13661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13662 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13663
13664 fi
13665 rm -f conftest*
13666
13667       if eval test X\$ac_cv_func_${ipv6_cv_pfx}gai_strerror = Xyes; then
13668
13669 cat >>confdefs.h <<\_ACEOF
13670 #define HAVE_GETADDRINFO
13671 _ACEOF
13672
13673         ipv6_cv_gai_strerror=yes
13674         break
13675       fi
13676     done
13677   fi
13678 fi
13679 if test $ipv6_cv_gai_strerror = yes; then
13680
13681 cat >>confdefs.h <<\_ACEOF
13682 #define HAVE_GETADDRINFO
13683 _ACEOF
13684
13685                 sasl_cv_getaddrinfo=no
13686 else
13687   :
13688 fi
13689 else
13690   :
13691 fi
13692 if test $sasl_cv_getaddrinfo = yes; then
13693     LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
13694     GETADDRINFOOBJS="getaddrinfo.o"
13695     LTGETADDRINFOOBJS="getaddrinfo.lo"
13696 fi
13697
13698
13699
13700 GETNAMEINFOOBJS=""
13701 sasl_cv_getnameinfo=no
13702
13703 echo "$as_me:$LINENO: checking for getnameinfo" >&5
13704 echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6
13705 if test "${ac_cv_func_getnameinfo+set}" = set; then
13706   echo $ECHO_N "(cached) $ECHO_C" >&6
13707 else
13708   cat >conftest.$ac_ext <<_ACEOF
13709 #line $LINENO "configure"
13710 /* confdefs.h.  */
13711 _ACEOF
13712 cat confdefs.h >>conftest.$ac_ext
13713 cat >>conftest.$ac_ext <<_ACEOF
13714 /* end confdefs.h.  */
13715 /* System header to define __stub macros and hopefully few prototypes,
13716     which can conflict with char getnameinfo (); below.
13717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13718     <limits.h> exists even on freestanding compilers.  */
13719 #ifdef __STDC__
13720 # include <limits.h>
13721 #else
13722 # include <assert.h>
13723 #endif
13724 /* Override any gcc2 internal prototype to avoid an error.  */
13725 #ifdef __cplusplus
13726 extern "C"
13727 {
13728 #endif
13729 /* We use char because int might match the return type of a gcc2
13730    builtin and then its argument prototype would still apply.  */
13731 char getnameinfo ();
13732 /* The GNU C library defines this for functions which it implements
13733     to always fail with ENOSYS.  Some functions are actually named
13734     something starting with __ and the normal name is an alias.  */
13735 #if defined (__stub_getnameinfo) || defined (__stub___getnameinfo)
13736 choke me
13737 #else
13738 char (*f) () = getnameinfo;
13739 #endif
13740 #ifdef __cplusplus
13741 }
13742 #endif
13743
13744 int
13745 main ()
13746 {
13747 return f != getnameinfo;
13748   ;
13749   return 0;
13750 }
13751 _ACEOF
13752 rm -f conftest.$ac_objext conftest$ac_exeext
13753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13754   (eval $ac_link) 2>&5
13755   ac_status=$?
13756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757   (exit $ac_status); } &&
13758          { ac_try='test -s conftest$ac_exeext'
13759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13760   (eval $ac_try) 2>&5
13761   ac_status=$?
13762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763   (exit $ac_status); }; }; then
13764   ac_cv_func_getnameinfo=yes
13765 else
13766   echo "$as_me: failed program was:" >&5
13767 sed 's/^/| /' conftest.$ac_ext >&5
13768
13769 ac_cv_func_getnameinfo=no
13770 fi
13771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13772 fi
13773 echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5
13774 echo "${ECHO_T}$ac_cv_func_getnameinfo" >&6
13775 if test $ac_cv_func_getnameinfo = yes; then
13776     ac_cv_lib_socket_getnameinfo=no
13777   ac_cv_lib_inet6_getnameinfo=no
13778
13779 else
13780     echo "$as_me:$LINENO: checking for getnameinfo in -lsocket" >&5
13781 echo $ECHO_N "checking for getnameinfo in -lsocket... $ECHO_C" >&6
13782 if test "${ac_cv_lib_socket_getnameinfo+set}" = set; then
13783   echo $ECHO_N "(cached) $ECHO_C" >&6
13784 else
13785   ac_check_lib_save_LIBS=$LIBS
13786 LIBS="-lsocket  $LIBS"
13787 cat >conftest.$ac_ext <<_ACEOF
13788 #line $LINENO "configure"
13789 /* confdefs.h.  */
13790 _ACEOF
13791 cat confdefs.h >>conftest.$ac_ext
13792 cat >>conftest.$ac_ext <<_ACEOF
13793 /* end confdefs.h.  */
13794
13795 /* Override any gcc2 internal prototype to avoid an error.  */
13796 #ifdef __cplusplus
13797 extern "C"
13798 #endif
13799 /* We use char because int might match the return type of a gcc2
13800    builtin and then its argument prototype would still apply.  */
13801 char getnameinfo ();
13802 int
13803 main ()
13804 {
13805 getnameinfo ();
13806   ;
13807   return 0;
13808 }
13809 _ACEOF
13810 rm -f conftest.$ac_objext conftest$ac_exeext
13811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13812   (eval $ac_link) 2>&5
13813   ac_status=$?
13814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815   (exit $ac_status); } &&
13816          { ac_try='test -s conftest$ac_exeext'
13817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818   (eval $ac_try) 2>&5
13819   ac_status=$?
13820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821   (exit $ac_status); }; }; then
13822   ac_cv_lib_socket_getnameinfo=yes
13823 else
13824   echo "$as_me: failed program was:" >&5
13825 sed 's/^/| /' conftest.$ac_ext >&5
13826
13827 ac_cv_lib_socket_getnameinfo=no
13828 fi
13829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13830 LIBS=$ac_check_lib_save_LIBS
13831 fi
13832 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getnameinfo" >&5
13833 echo "${ECHO_T}$ac_cv_lib_socket_getnameinfo" >&6
13834 if test $ac_cv_lib_socket_getnameinfo = yes; then
13835       LIBS="$LIBS -lsocket"
13836     ac_cv_lib_inet6_getnameinfo=no
13837
13838 else
13839       echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5
13840 echo $ECHO_N "checking whether your system has IPv6 directory... $ECHO_C" >&6
13841     if test "${ipv6_cv_dir+set}" = set; then
13842   echo $ECHO_N "(cached) $ECHO_C" >&6
13843 else
13844         for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
13845         if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
13846           break
13847         fi
13848       done
13849 fi
13850     echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5
13851 echo "${ECHO_T}$ipv6_cv_dir" >&6
13852     if test $ipv6_cv_dir = no; then
13853       ac_cv_lib_inet6_getnameinfo=no
13854     else
13855       if test x$ipv6_libinet6 = x; then
13856         ipv6_libinet6=no
13857         SAVELDFLAGS="$LDFLAGS"
13858         LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
13859       fi
13860       echo "$as_me:$LINENO: checking for getnameinfo in -linet6" >&5
13861 echo $ECHO_N "checking for getnameinfo in -linet6... $ECHO_C" >&6
13862 if test "${ac_cv_lib_inet6_getnameinfo+set}" = set; then
13863   echo $ECHO_N "(cached) $ECHO_C" >&6
13864 else
13865   ac_check_lib_save_LIBS=$LIBS
13866 LIBS="-linet6  $LIBS"
13867 cat >conftest.$ac_ext <<_ACEOF
13868 #line $LINENO "configure"
13869 /* confdefs.h.  */
13870 _ACEOF
13871 cat confdefs.h >>conftest.$ac_ext
13872 cat >>conftest.$ac_ext <<_ACEOF
13873 /* end confdefs.h.  */
13874
13875 /* Override any gcc2 internal prototype to avoid an error.  */
13876 #ifdef __cplusplus
13877 extern "C"
13878 #endif
13879 /* We use char because int might match the return type of a gcc2
13880    builtin and then its argument prototype would still apply.  */
13881 char getnameinfo ();
13882 int
13883 main ()
13884 {
13885 getnameinfo ();
13886   ;
13887   return 0;
13888 }
13889 _ACEOF
13890 rm -f conftest.$ac_objext conftest$ac_exeext
13891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13892   (eval $ac_link) 2>&5
13893   ac_status=$?
13894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895   (exit $ac_status); } &&
13896          { ac_try='test -s conftest$ac_exeext'
13897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13898   (eval $ac_try) 2>&5
13899   ac_status=$?
13900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901   (exit $ac_status); }; }; then
13902   ac_cv_lib_inet6_getnameinfo=yes
13903 else
13904   echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13906
13907 ac_cv_lib_inet6_getnameinfo=no
13908 fi
13909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13910 LIBS=$ac_check_lib_save_LIBS
13911 fi
13912 echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getnameinfo" >&5
13913 echo "${ECHO_T}$ac_cv_lib_inet6_getnameinfo" >&6
13914 if test $ac_cv_lib_inet6_getnameinfo = yes; then
13915         if test $ipv6_libinet6 = no; then
13916           ipv6_libinet6=yes
13917           LIBS="$LIBS -linet6"
13918         fi
13919 fi
13920       if test $ipv6_libinet6 = no; then
13921         LDFLAGS="$SAVELDFLAGS"
13922       fi
13923     fi
13924 fi
13925
13926 fi
13927 ipv6_cv_getnameinfo=no
13928 if test $ac_cv_func_getnameinfo = yes -o $ac_cv_lib_socket_getnameinfo = yes \
13929      -o $ac_cv_lib_inet6_getnameinfo = yes
13930 then
13931   ipv6_cv_getnameinfo=yes
13932 fi
13933 if test $ipv6_cv_getnameinfo = no; then
13934   if test getnameinfo = getaddrinfo; then
13935     for ipv6_cv_pfx in o n; do
13936       cat >conftest.$ac_ext <<_ACEOF
13937 #line $LINENO "configure"
13938 /* confdefs.h.  */
13939 _ACEOF
13940 cat confdefs.h >>conftest.$ac_ext
13941 cat >>conftest.$ac_ext <<_ACEOF
13942 /* end confdefs.h.  */
13943 #include <netdb.h>
13944
13945 _ACEOF
13946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13947   $EGREP "${ipv6_cv_pfx}getnameinfo" >/dev/null 2>&1; then
13948   as_ac_var=`echo "ac_cv_func_${ipv6_cv_pfx}getnameinfo" | $as_tr_sh`
13949 echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}getnameinfo" >&5
13950 echo $ECHO_N "checking for ${ipv6_cv_pfx}getnameinfo... $ECHO_C" >&6
13951 if eval "test \"\${$as_ac_var+set}\" = set"; then
13952   echo $ECHO_N "(cached) $ECHO_C" >&6
13953 else
13954   cat >conftest.$ac_ext <<_ACEOF
13955 #line $LINENO "configure"
13956 /* confdefs.h.  */
13957 _ACEOF
13958 cat confdefs.h >>conftest.$ac_ext
13959 cat >>conftest.$ac_ext <<_ACEOF
13960 /* end confdefs.h.  */
13961 /* System header to define __stub macros and hopefully few prototypes,
13962     which can conflict with char ${ipv6_cv_pfx}getnameinfo (); below.
13963     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13964     <limits.h> exists even on freestanding compilers.  */
13965 #ifdef __STDC__
13966 # include <limits.h>
13967 #else
13968 # include <assert.h>
13969 #endif
13970 /* Override any gcc2 internal prototype to avoid an error.  */
13971 #ifdef __cplusplus
13972 extern "C"
13973 {
13974 #endif
13975 /* We use char because int might match the return type of a gcc2
13976    builtin and then its argument prototype would still apply.  */
13977 char ${ipv6_cv_pfx}getnameinfo ();
13978 /* The GNU C library defines this for functions which it implements
13979     to always fail with ENOSYS.  Some functions are actually named
13980     something starting with __ and the normal name is an alias.  */
13981 #if defined (__stub_${ipv6_cv_pfx}getnameinfo) || defined (__stub___${ipv6_cv_pfx}getnameinfo)
13982 choke me
13983 #else
13984 char (*f) () = ${ipv6_cv_pfx}getnameinfo;
13985 #endif
13986 #ifdef __cplusplus
13987 }
13988 #endif
13989
13990 int
13991 main ()
13992 {
13993 return f != ${ipv6_cv_pfx}getnameinfo;
13994   ;
13995   return 0;
13996 }
13997 _ACEOF
13998 rm -f conftest.$ac_objext conftest$ac_exeext
13999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14000   (eval $ac_link) 2>&5
14001   ac_status=$?
14002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003   (exit $ac_status); } &&
14004          { ac_try='test -s conftest$ac_exeext'
14005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14006   (eval $ac_try) 2>&5
14007   ac_status=$?
14008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009   (exit $ac_status); }; }; then
14010   eval "$as_ac_var=yes"
14011 else
14012   echo "$as_me: failed program was:" >&5
14013 sed 's/^/| /' conftest.$ac_ext >&5
14014
14015 eval "$as_ac_var=no"
14016 fi
14017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14018 fi
14019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14021
14022 fi
14023 rm -f conftest*
14024
14025       if eval test X\$ac_cv_func_${ipv6_cv_pfx}getnameinfo = Xyes; then
14026
14027 cat >>confdefs.h <<\_ACEOF
14028 #define HAVE_GETADDRINFO
14029 _ACEOF
14030
14031         ipv6_cv_getnameinfo=yes
14032         break
14033       fi
14034     done
14035   fi
14036 fi
14037 if test $ipv6_cv_getnameinfo = yes; then
14038
14039 cat >>confdefs.h <<\_ACEOF
14040 #define HAVE_GETNAMEINFO
14041 _ACEOF
14042
14043 else
14044   sasl_cv_getnameinfo=yes
14045 fi
14046 if test $sasl_cv_getnameinfo = yes; then
14047         LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
14048         GETNAMEINFOOBJS="getnameinfo.o"
14049         LTGETNAMEINFOOBJS="getnameinfo.lo"
14050 fi
14051
14052
14053
14054 LTLIBOBJS=`echo "$LIBOBJS" | sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
14055
14056
14057 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14058 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14059 if test "${ac_cv_c_const+set}" = set; then
14060   echo $ECHO_N "(cached) $ECHO_C" >&6
14061 else
14062   cat >conftest.$ac_ext <<_ACEOF
14063 #line $LINENO "configure"
14064 /* confdefs.h.  */
14065 _ACEOF
14066 cat confdefs.h >>conftest.$ac_ext
14067 cat >>conftest.$ac_ext <<_ACEOF
14068 /* end confdefs.h.  */
14069
14070 int
14071 main ()
14072 {
14073 /* FIXME: Include the comments suggested by Paul. */
14074 #ifndef __cplusplus
14075   /* Ultrix mips cc rejects this.  */
14076   typedef int charset[2];
14077   const charset x;
14078   /* SunOS 4.1.1 cc rejects this.  */
14079   char const *const *ccp;
14080   char **p;
14081   /* NEC SVR4.0.2 mips cc rejects this.  */
14082   struct point {int x, y;};
14083   static struct point const zero = {0,0};
14084   /* AIX XL C 1.02.0.0 rejects this.
14085      It does not let you subtract one const X* pointer from another in
14086      an arm of an if-expression whose if-part is not a constant
14087      expression */
14088   const char *g = "string";
14089   ccp = &g + (g ? g-g : 0);
14090   /* HPUX 7.0 cc rejects these. */
14091   ++ccp;
14092   p = (char**) ccp;
14093   ccp = (char const *const *) p;
14094   { /* SCO 3.2v4 cc rejects this.  */
14095     char *t;
14096     char const *s = 0 ? (char *) 0 : (char const *) 0;
14097
14098     *t++ = 0;
14099   }
14100   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14101     int x[] = {25, 17};
14102     const int *foo = &x[0];
14103     ++foo;
14104   }
14105   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14106     typedef const int *iptr;
14107     iptr p = 0;
14108     ++p;
14109   }
14110   { /* AIX XL C 1.02.0.0 rejects this saying
14111        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14112     struct s { int j; const int *ap[3]; };
14113     struct s *b; b->j = 5;
14114   }
14115   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14116     const int foo = 10;
14117   }
14118 #endif
14119
14120   ;
14121   return 0;
14122 }
14123 _ACEOF
14124 rm -f conftest.$ac_objext
14125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14126   (eval $ac_compile) 2>&5
14127   ac_status=$?
14128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129   (exit $ac_status); } &&
14130          { ac_try='test -s conftest.$ac_objext'
14131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14132   (eval $ac_try) 2>&5
14133   ac_status=$?
14134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135   (exit $ac_status); }; }; then
14136   ac_cv_c_const=yes
14137 else
14138   echo "$as_me: failed program was:" >&5
14139 sed 's/^/| /' conftest.$ac_ext >&5
14140
14141 ac_cv_c_const=no
14142 fi
14143 rm -f conftest.$ac_objext conftest.$ac_ext
14144 fi
14145 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14146 echo "${ECHO_T}$ac_cv_c_const" >&6
14147 if test $ac_cv_c_const = no; then
14148
14149 cat >>confdefs.h <<\_ACEOF
14150 #define const
14151 _ACEOF
14152
14153 fi
14154
14155 echo "$as_me:$LINENO: checking for inline" >&5
14156 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14157 if test "${ac_cv_c_inline+set}" = set; then
14158   echo $ECHO_N "(cached) $ECHO_C" >&6
14159 else
14160   ac_cv_c_inline=no
14161 for ac_kw in inline __inline__ __inline; do
14162   cat >conftest.$ac_ext <<_ACEOF
14163 #line $LINENO "configure"
14164 /* confdefs.h.  */
14165 _ACEOF
14166 cat confdefs.h >>conftest.$ac_ext
14167 cat >>conftest.$ac_ext <<_ACEOF
14168 /* end confdefs.h.  */
14169 #ifndef __cplusplus
14170 typedef int foo_t;
14171 static $ac_kw foo_t static_foo () {return 0; }
14172 $ac_kw foo_t foo () {return 0; }
14173 #endif
14174
14175 _ACEOF
14176 rm -f conftest.$ac_objext
14177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14178   (eval $ac_compile) 2>&5
14179   ac_status=$?
14180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181   (exit $ac_status); } &&
14182          { ac_try='test -s conftest.$ac_objext'
14183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14184   (eval $ac_try) 2>&5
14185   ac_status=$?
14186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187   (exit $ac_status); }; }; then
14188   ac_cv_c_inline=$ac_kw; break
14189 else
14190   echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14192
14193 fi
14194 rm -f conftest.$ac_objext conftest.$ac_ext
14195 done
14196
14197 fi
14198 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14199 echo "${ECHO_T}$ac_cv_c_inline" >&6
14200 case $ac_cv_c_inline in
14201   inline | yes) ;;
14202   no)
14203 cat >>confdefs.h <<\_ACEOF
14204 #define inline
14205 _ACEOF
14206  ;;
14207   *)  cat >>confdefs.h <<_ACEOF
14208 #define inline $ac_cv_c_inline
14209 _ACEOF
14210  ;;
14211 esac
14212
14213 echo "$as_me:$LINENO: checking for mode_t" >&5
14214 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
14215 if test "${ac_cv_type_mode_t+set}" = set; then
14216   echo $ECHO_N "(cached) $ECHO_C" >&6
14217 else
14218   cat >conftest.$ac_ext <<_ACEOF
14219 #line $LINENO "configure"
14220 /* confdefs.h.  */
14221 _ACEOF
14222 cat confdefs.h >>conftest.$ac_ext
14223 cat >>conftest.$ac_ext <<_ACEOF
14224 /* end confdefs.h.  */
14225 $ac_includes_default
14226 int
14227 main ()
14228 {
14229 if ((mode_t *) 0)
14230   return 0;
14231 if (sizeof (mode_t))
14232   return 0;
14233   ;
14234   return 0;
14235 }
14236 _ACEOF
14237 rm -f conftest.$ac_objext
14238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14239   (eval $ac_compile) 2>&5
14240   ac_status=$?
14241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242   (exit $ac_status); } &&
14243          { ac_try='test -s conftest.$ac_objext'
14244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245   (eval $ac_try) 2>&5
14246   ac_status=$?
14247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248   (exit $ac_status); }; }; then
14249   ac_cv_type_mode_t=yes
14250 else
14251   echo "$as_me: failed program was:" >&5
14252 sed 's/^/| /' conftest.$ac_ext >&5
14253
14254 ac_cv_type_mode_t=no
14255 fi
14256 rm -f conftest.$ac_objext conftest.$ac_ext
14257 fi
14258 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
14259 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
14260 if test $ac_cv_type_mode_t = yes; then
14261   :
14262 else
14263
14264 cat >>confdefs.h <<_ACEOF
14265 #define mode_t int
14266 _ACEOF
14267
14268 fi
14269
14270 echo "$as_me:$LINENO: checking for pid_t" >&5
14271 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14272 if test "${ac_cv_type_pid_t+set}" = set; then
14273   echo $ECHO_N "(cached) $ECHO_C" >&6
14274 else
14275   cat >conftest.$ac_ext <<_ACEOF
14276 #line $LINENO "configure"
14277 /* confdefs.h.  */
14278 _ACEOF
14279 cat confdefs.h >>conftest.$ac_ext
14280 cat >>conftest.$ac_ext <<_ACEOF
14281 /* end confdefs.h.  */
14282 $ac_includes_default
14283 int
14284 main ()
14285 {
14286 if ((pid_t *) 0)
14287   return 0;
14288 if (sizeof (pid_t))
14289   return 0;
14290   ;
14291   return 0;
14292 }
14293 _ACEOF
14294 rm -f conftest.$ac_objext
14295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14296   (eval $ac_compile) 2>&5
14297   ac_status=$?
14298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299   (exit $ac_status); } &&
14300          { ac_try='test -s conftest.$ac_objext'
14301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302   (eval $ac_try) 2>&5
14303   ac_status=$?
14304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305   (exit $ac_status); }; }; then
14306   ac_cv_type_pid_t=yes
14307 else
14308   echo "$as_me: failed program was:" >&5
14309 sed 's/^/| /' conftest.$ac_ext >&5
14310
14311 ac_cv_type_pid_t=no
14312 fi
14313 rm -f conftest.$ac_objext conftest.$ac_ext
14314 fi
14315 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14316 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14317 if test $ac_cv_type_pid_t = yes; then
14318   :
14319 else
14320
14321 cat >>confdefs.h <<_ACEOF
14322 #define pid_t int
14323 _ACEOF
14324
14325 fi
14326
14327 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
14328 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
14329 if test "${ac_cv_type_signal+set}" = set; then
14330   echo $ECHO_N "(cached) $ECHO_C" >&6
14331 else
14332   cat >conftest.$ac_ext <<_ACEOF
14333 #line $LINENO "configure"
14334 /* confdefs.h.  */
14335 _ACEOF
14336 cat confdefs.h >>conftest.$ac_ext
14337 cat >>conftest.$ac_ext <<_ACEOF
14338 /* end confdefs.h.  */
14339 #include <sys/types.h>
14340 #include <signal.h>
14341 #ifdef signal
14342 # undef signal
14343 #endif
14344 #ifdef __cplusplus
14345 extern "C" void (*signal (int, void (*)(int)))(int);
14346 #else
14347 void (*signal ()) ();
14348 #endif
14349
14350 int
14351 main ()
14352 {
14353 int i;
14354   ;
14355   return 0;
14356 }
14357 _ACEOF
14358 rm -f conftest.$ac_objext
14359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14360   (eval $ac_compile) 2>&5
14361   ac_status=$?
14362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363   (exit $ac_status); } &&
14364          { ac_try='test -s conftest.$ac_objext'
14365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14366   (eval $ac_try) 2>&5
14367   ac_status=$?
14368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369   (exit $ac_status); }; }; then
14370   ac_cv_type_signal=void
14371 else
14372   echo "$as_me: failed program was:" >&5
14373 sed 's/^/| /' conftest.$ac_ext >&5
14374
14375 ac_cv_type_signal=int
14376 fi
14377 rm -f conftest.$ac_objext conftest.$ac_ext
14378 fi
14379 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14380 echo "${ECHO_T}$ac_cv_type_signal" >&6
14381
14382 cat >>confdefs.h <<_ACEOF
14383 #define RETSIGTYPE $ac_cv_type_signal
14384 _ACEOF
14385
14386
14387
14388 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14389 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
14390 if test "${ac_cv_header_time+set}" = set; then
14391   echo $ECHO_N "(cached) $ECHO_C" >&6
14392 else
14393   cat >conftest.$ac_ext <<_ACEOF
14394 #line $LINENO "configure"
14395 /* confdefs.h.  */
14396 _ACEOF
14397 cat confdefs.h >>conftest.$ac_ext
14398 cat >>conftest.$ac_ext <<_ACEOF
14399 /* end confdefs.h.  */
14400 #include <sys/types.h>
14401 #include <sys/time.h>
14402 #include <time.h>
14403
14404 int
14405 main ()
14406 {
14407 if ((struct tm *) 0)
14408 return 0;
14409   ;
14410   return 0;
14411 }
14412 _ACEOF
14413 rm -f conftest.$ac_objext
14414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14415   (eval $ac_compile) 2>&5
14416   ac_status=$?
14417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418   (exit $ac_status); } &&
14419          { ac_try='test -s conftest.$ac_objext'
14420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421   (eval $ac_try) 2>&5
14422   ac_status=$?
14423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424   (exit $ac_status); }; }; then
14425   ac_cv_header_time=yes
14426 else
14427   echo "$as_me: failed program was:" >&5
14428 sed 's/^/| /' conftest.$ac_ext >&5
14429
14430 ac_cv_header_time=no
14431 fi
14432 rm -f conftest.$ac_objext conftest.$ac_ext
14433 fi
14434 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14435 echo "${ECHO_T}$ac_cv_header_time" >&6
14436 if test $ac_cv_header_time = yes; then
14437
14438 cat >>confdefs.h <<\_ACEOF
14439 #define TIME_WITH_SYS_TIME 1
14440 _ACEOF
14441
14442 fi
14443
14444 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14445 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14446 if test "${ac_cv_header_stdc+set}" = set; then
14447   echo $ECHO_N "(cached) $ECHO_C" >&6
14448 else
14449   cat >conftest.$ac_ext <<_ACEOF
14450 #line $LINENO "configure"
14451 /* confdefs.h.  */
14452 _ACEOF
14453 cat confdefs.h >>conftest.$ac_ext
14454 cat >>conftest.$ac_ext <<_ACEOF
14455 /* end confdefs.h.  */
14456 #include <stdlib.h>
14457 #include <stdarg.h>
14458 #include <string.h>
14459 #include <float.h>
14460
14461 int
14462 main ()
14463 {
14464
14465   ;
14466   return 0;
14467 }
14468 _ACEOF
14469 rm -f conftest.$ac_objext
14470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14471   (eval $ac_compile) 2>&5
14472   ac_status=$?
14473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474   (exit $ac_status); } &&
14475          { ac_try='test -s conftest.$ac_objext'
14476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477   (eval $ac_try) 2>&5
14478   ac_status=$?
14479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480   (exit $ac_status); }; }; then
14481   ac_cv_header_stdc=yes
14482 else
14483   echo "$as_me: failed program was:" >&5
14484 sed 's/^/| /' conftest.$ac_ext >&5
14485
14486 ac_cv_header_stdc=no
14487 fi
14488 rm -f conftest.$ac_objext conftest.$ac_ext
14489
14490 if test $ac_cv_header_stdc = yes; then
14491   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14492   cat >conftest.$ac_ext <<_ACEOF
14493 #line $LINENO "configure"
14494 /* confdefs.h.  */
14495 _ACEOF
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h.  */
14499 #include <string.h>
14500
14501 _ACEOF
14502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14503   $EGREP "memchr" >/dev/null 2>&1; then
14504   :
14505 else
14506   ac_cv_header_stdc=no
14507 fi
14508 rm -f conftest*
14509
14510 fi
14511
14512 if test $ac_cv_header_stdc = yes; then
14513   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14514   cat >conftest.$ac_ext <<_ACEOF
14515 #line $LINENO "configure"
14516 /* confdefs.h.  */
14517 _ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h.  */
14521 #include <stdlib.h>
14522
14523 _ACEOF
14524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14525   $EGREP "free" >/dev/null 2>&1; then
14526   :
14527 else
14528   ac_cv_header_stdc=no
14529 fi
14530 rm -f conftest*
14531
14532 fi
14533
14534 if test $ac_cv_header_stdc = yes; then
14535   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14536   if test "$cross_compiling" = yes; then
14537   :
14538 else
14539   cat >conftest.$ac_ext <<_ACEOF
14540 #line $LINENO "configure"
14541 /* confdefs.h.  */
14542 _ACEOF
14543 cat confdefs.h >>conftest.$ac_ext
14544 cat >>conftest.$ac_ext <<_ACEOF
14545 /* end confdefs.h.  */
14546 #include <ctype.h>
14547 #if ((' ' & 0x0FF) == 0x020)
14548 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14549 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14550 #else
14551 # define ISLOWER(c) \
14552                    (('a' <= (c) && (c) <= 'i') \
14553                      || ('j' <= (c) && (c) <= 'r') \
14554                      || ('s' <= (c) && (c) <= 'z'))
14555 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14556 #endif
14557
14558 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14559 int
14560 main ()
14561 {
14562   int i;
14563   for (i = 0; i < 256; i++)
14564     if (XOR (islower (i), ISLOWER (i))
14565         || toupper (i) != TOUPPER (i))
14566       exit(2);
14567   exit (0);
14568 }
14569 _ACEOF
14570 rm -f conftest$ac_exeext
14571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14572   (eval $ac_link) 2>&5
14573   ac_status=$?
14574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577   (eval $ac_try) 2>&5
14578   ac_status=$?
14579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580   (exit $ac_status); }; }; then
14581   :
14582 else
14583   echo "$as_me: program exited with status $ac_status" >&5
14584 echo "$as_me: failed program was:" >&5
14585 sed 's/^/| /' conftest.$ac_ext >&5
14586
14587 ( exit $ac_status )
14588 ac_cv_header_stdc=no
14589 fi
14590 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14591 fi
14592 fi
14593 fi
14594 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14595 echo "${ECHO_T}$ac_cv_header_stdc" >&6
14596 if test $ac_cv_header_stdc = yes; then
14597
14598 cat >>confdefs.h <<\_ACEOF
14599 #define STDC_HEADERS 1
14600 _ACEOF
14601
14602 fi
14603
14604
14605
14606
14607
14608
14609 ac_header_dirent=no
14610 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14611   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14612 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14613 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14615   echo $ECHO_N "(cached) $ECHO_C" >&6
14616 else
14617   cat >conftest.$ac_ext <<_ACEOF
14618 #line $LINENO "configure"
14619 /* confdefs.h.  */
14620 _ACEOF
14621 cat confdefs.h >>conftest.$ac_ext
14622 cat >>conftest.$ac_ext <<_ACEOF
14623 /* end confdefs.h.  */
14624 #include <sys/types.h>
14625 #include <$ac_hdr>
14626
14627 int
14628 main ()
14629 {
14630 if ((DIR *) 0)
14631 return 0;
14632   ;
14633   return 0;
14634 }
14635 _ACEOF
14636 rm -f conftest.$ac_objext
14637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14638   (eval $ac_compile) 2>&5
14639   ac_status=$?
14640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641   (exit $ac_status); } &&
14642          { ac_try='test -s conftest.$ac_objext'
14643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14644   (eval $ac_try) 2>&5
14645   ac_status=$?
14646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647   (exit $ac_status); }; }; then
14648   eval "$as_ac_Header=yes"
14649 else
14650   echo "$as_me: failed program was:" >&5
14651 sed 's/^/| /' conftest.$ac_ext >&5
14652
14653 eval "$as_ac_Header=no"
14654 fi
14655 rm -f conftest.$ac_objext conftest.$ac_ext
14656 fi
14657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14660   cat >>confdefs.h <<_ACEOF
14661 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14662 _ACEOF
14663
14664 ac_header_dirent=$ac_hdr; break
14665 fi
14666
14667 done
14668 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14669 if test $ac_header_dirent = dirent.h; then
14670   echo "$as_me:$LINENO: checking for library containing opendir" >&5
14671 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14672 if test "${ac_cv_search_opendir+set}" = set; then
14673   echo $ECHO_N "(cached) $ECHO_C" >&6
14674 else
14675   ac_func_search_save_LIBS=$LIBS
14676 ac_cv_search_opendir=no
14677 cat >conftest.$ac_ext <<_ACEOF
14678 #line $LINENO "configure"
14679 /* confdefs.h.  */
14680 _ACEOF
14681 cat confdefs.h >>conftest.$ac_ext
14682 cat >>conftest.$ac_ext <<_ACEOF
14683 /* end confdefs.h.  */
14684
14685 /* Override any gcc2 internal prototype to avoid an error.  */
14686 #ifdef __cplusplus
14687 extern "C"
14688 #endif
14689 /* We use char because int might match the return type of a gcc2
14690    builtin and then its argument prototype would still apply.  */
14691 char opendir ();
14692 int
14693 main ()
14694 {
14695 opendir ();
14696   ;
14697   return 0;
14698 }
14699 _ACEOF
14700 rm -f conftest.$ac_objext conftest$ac_exeext
14701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14702   (eval $ac_link) 2>&5
14703   ac_status=$?
14704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705   (exit $ac_status); } &&
14706          { ac_try='test -s conftest$ac_exeext'
14707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708   (eval $ac_try) 2>&5
14709   ac_status=$?
14710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711   (exit $ac_status); }; }; then
14712   ac_cv_search_opendir="none required"
14713 else
14714   echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.$ac_ext >&5
14716
14717 fi
14718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14719 if test "$ac_cv_search_opendir" = no; then
14720   for ac_lib in dir; do
14721     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14722     cat >conftest.$ac_ext <<_ACEOF
14723 #line $LINENO "configure"
14724 /* confdefs.h.  */
14725 _ACEOF
14726 cat confdefs.h >>conftest.$ac_ext
14727 cat >>conftest.$ac_ext <<_ACEOF
14728 /* end confdefs.h.  */
14729
14730 /* Override any gcc2 internal prototype to avoid an error.  */
14731 #ifdef __cplusplus
14732 extern "C"
14733 #endif
14734 /* We use char because int might match the return type of a gcc2
14735    builtin and then its argument prototype would still apply.  */
14736 char opendir ();
14737 int
14738 main ()
14739 {
14740 opendir ();
14741   ;
14742   return 0;
14743 }
14744 _ACEOF
14745 rm -f conftest.$ac_objext conftest$ac_exeext
14746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14747   (eval $ac_link) 2>&5
14748   ac_status=$?
14749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750   (exit $ac_status); } &&
14751          { ac_try='test -s conftest$ac_exeext'
14752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753   (eval $ac_try) 2>&5
14754   ac_status=$?
14755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756   (exit $ac_status); }; }; then
14757   ac_cv_search_opendir="-l$ac_lib"
14758 break
14759 else
14760   echo "$as_me: failed program was:" >&5
14761 sed 's/^/| /' conftest.$ac_ext >&5
14762
14763 fi
14764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14765   done
14766 fi
14767 LIBS=$ac_func_search_save_LIBS
14768 fi
14769 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14770 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14771 if test "$ac_cv_search_opendir" != no; then
14772   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14773
14774 fi
14775
14776 else
14777   echo "$as_me:$LINENO: checking for library containing opendir" >&5
14778 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14779 if test "${ac_cv_search_opendir+set}" = set; then
14780   echo $ECHO_N "(cached) $ECHO_C" >&6
14781 else
14782   ac_func_search_save_LIBS=$LIBS
14783 ac_cv_search_opendir=no
14784 cat >conftest.$ac_ext <<_ACEOF
14785 #line $LINENO "configure"
14786 /* confdefs.h.  */
14787 _ACEOF
14788 cat confdefs.h >>conftest.$ac_ext
14789 cat >>conftest.$ac_ext <<_ACEOF
14790 /* end confdefs.h.  */
14791
14792 /* Override any gcc2 internal prototype to avoid an error.  */
14793 #ifdef __cplusplus
14794 extern "C"
14795 #endif
14796 /* We use char because int might match the return type of a gcc2
14797    builtin and then its argument prototype would still apply.  */
14798 char opendir ();
14799 int
14800 main ()
14801 {
14802 opendir ();
14803   ;
14804   return 0;
14805 }
14806 _ACEOF
14807 rm -f conftest.$ac_objext conftest$ac_exeext
14808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14809   (eval $ac_link) 2>&5
14810   ac_status=$?
14811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812   (exit $ac_status); } &&
14813          { ac_try='test -s conftest$ac_exeext'
14814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815   (eval $ac_try) 2>&5
14816   ac_status=$?
14817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818   (exit $ac_status); }; }; then
14819   ac_cv_search_opendir="none required"
14820 else
14821   echo "$as_me: failed program was:" >&5
14822 sed 's/^/| /' conftest.$ac_ext >&5
14823
14824 fi
14825 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14826 if test "$ac_cv_search_opendir" = no; then
14827   for ac_lib in x; do
14828     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14829     cat >conftest.$ac_ext <<_ACEOF
14830 #line $LINENO "configure"
14831 /* confdefs.h.  */
14832 _ACEOF
14833 cat confdefs.h >>conftest.$ac_ext
14834 cat >>conftest.$ac_ext <<_ACEOF
14835 /* end confdefs.h.  */
14836
14837 /* Override any gcc2 internal prototype to avoid an error.  */
14838 #ifdef __cplusplus
14839 extern "C"
14840 #endif
14841 /* We use char because int might match the return type of a gcc2
14842    builtin and then its argument prototype would still apply.  */
14843 char opendir ();
14844 int
14845 main ()
14846 {
14847 opendir ();
14848   ;
14849   return 0;
14850 }
14851 _ACEOF
14852 rm -f conftest.$ac_objext conftest$ac_exeext
14853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14854   (eval $ac_link) 2>&5
14855   ac_status=$?
14856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857   (exit $ac_status); } &&
14858          { ac_try='test -s conftest$ac_exeext'
14859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14860   (eval $ac_try) 2>&5
14861   ac_status=$?
14862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863   (exit $ac_status); }; }; then
14864   ac_cv_search_opendir="-l$ac_lib"
14865 break
14866 else
14867   echo "$as_me: failed program was:" >&5
14868 sed 's/^/| /' conftest.$ac_ext >&5
14869
14870 fi
14871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14872   done
14873 fi
14874 LIBS=$ac_func_search_save_LIBS
14875 fi
14876 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14877 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14878 if test "$ac_cv_search_opendir" != no; then
14879   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14880
14881 fi
14882
14883 fi
14884
14885 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14886 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14887 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14888   echo $ECHO_N "(cached) $ECHO_C" >&6
14889 else
14890   cat >conftest.$ac_ext <<_ACEOF
14891 #line $LINENO "configure"
14892 /* confdefs.h.  */
14893 _ACEOF
14894 cat confdefs.h >>conftest.$ac_ext
14895 cat >>conftest.$ac_ext <<_ACEOF
14896 /* end confdefs.h.  */
14897 #include <sys/types.h>
14898 #include <sys/wait.h>
14899 #ifndef WEXITSTATUS
14900 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14901 #endif
14902 #ifndef WIFEXITED
14903 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14904 #endif
14905
14906 int
14907 main ()
14908 {
14909   int s;
14910   wait (&s);
14911   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14912   ;
14913   return 0;
14914 }
14915 _ACEOF
14916 rm -f conftest.$ac_objext
14917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14918   (eval $ac_compile) 2>&5
14919   ac_status=$?
14920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921   (exit $ac_status); } &&
14922          { ac_try='test -s conftest.$ac_objext'
14923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924   (eval $ac_try) 2>&5
14925   ac_status=$?
14926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927   (exit $ac_status); }; }; then
14928   ac_cv_header_sys_wait_h=yes
14929 else
14930   echo "$as_me: failed program was:" >&5
14931 sed 's/^/| /' conftest.$ac_ext >&5
14932
14933 ac_cv_header_sys_wait_h=no
14934 fi
14935 rm -f conftest.$ac_objext conftest.$ac_ext
14936 fi
14937 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14938 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14939 if test $ac_cv_header_sys_wait_h = yes; then
14940
14941 cat >>confdefs.h <<\_ACEOF
14942 #define HAVE_SYS_WAIT_H 1
14943 _ACEOF
14944
14945 fi
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964 for ac_header in des.h dlfcn.h fcntl.h limits.h malloc.h paths.h strings.h sys/file.h sys/time.h syslog.h unistd.h inttypes.h sys/uio.h sys/param.h sysexits.h stdarg.h varargs.h
14965 do
14966 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14968   echo "$as_me:$LINENO: checking for $ac_header" >&5
14969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14971   echo $ECHO_N "(cached) $ECHO_C" >&6
14972 fi
14973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14975 else
14976   # Is the header compilable?
14977 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14978 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14979 cat >conftest.$ac_ext <<_ACEOF
14980 #line $LINENO "configure"
14981 /* confdefs.h.  */
14982 _ACEOF
14983 cat confdefs.h >>conftest.$ac_ext
14984 cat >>conftest.$ac_ext <<_ACEOF
14985 /* end confdefs.h.  */
14986 $ac_includes_default
14987 #include <$ac_header>
14988 _ACEOF
14989 rm -f conftest.$ac_objext
14990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14991   (eval $ac_compile) 2>&5
14992   ac_status=$?
14993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994   (exit $ac_status); } &&
14995          { ac_try='test -s conftest.$ac_objext'
14996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14997   (eval $ac_try) 2>&5
14998   ac_status=$?
14999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000   (exit $ac_status); }; }; then
15001   ac_header_compiler=yes
15002 else
15003   echo "$as_me: failed program was:" >&5
15004 sed 's/^/| /' conftest.$ac_ext >&5
15005
15006 ac_header_compiler=no
15007 fi
15008 rm -f conftest.$ac_objext conftest.$ac_ext
15009 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15010 echo "${ECHO_T}$ac_header_compiler" >&6
15011
15012 # Is the header present?
15013 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15014 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15015 cat >conftest.$ac_ext <<_ACEOF
15016 #line $LINENO "configure"
15017 /* confdefs.h.  */
15018 _ACEOF
15019 cat confdefs.h >>conftest.$ac_ext
15020 cat >>conftest.$ac_ext <<_ACEOF
15021 /* end confdefs.h.  */
15022 #include <$ac_header>
15023 _ACEOF
15024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15025   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15026   ac_status=$?
15027   grep -v '^ *+' conftest.er1 >conftest.err
15028   rm -f conftest.er1
15029   cat conftest.err >&5
15030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031   (exit $ac_status); } >/dev/null; then
15032   if test -s conftest.err; then
15033     ac_cpp_err=$ac_c_preproc_warn_flag
15034   else
15035     ac_cpp_err=
15036   fi
15037 else
15038   ac_cpp_err=yes
15039 fi
15040 if test -z "$ac_cpp_err"; then
15041   ac_header_preproc=yes
15042 else
15043   echo "$as_me: failed program was:" >&5
15044 sed 's/^/| /' conftest.$ac_ext >&5
15045
15046   ac_header_preproc=no
15047 fi
15048 rm -f conftest.err conftest.$ac_ext
15049 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15050 echo "${ECHO_T}$ac_header_preproc" >&6
15051
15052 # So?  What about this header?
15053 case $ac_header_compiler:$ac_header_preproc in
15054   yes:no )
15055     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15056 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15057     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15058 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15059     (
15060       cat <<\_ASBOX
15061 ## ------------------------------------ ##
15062 ## Report this to bug-autoconf@gnu.org. ##
15063 ## ------------------------------------ ##
15064 _ASBOX
15065     ) |
15066       sed "s/^/$as_me: WARNING:     /" >&2
15067     ;;
15068   no:yes )
15069     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15070 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15071     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15072 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15073     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15075     (
15076       cat <<\_ASBOX
15077 ## ------------------------------------ ##
15078 ## Report this to bug-autoconf@gnu.org. ##
15079 ## ------------------------------------ ##
15080 _ASBOX
15081     ) |
15082       sed "s/^/$as_me: WARNING:     /" >&2
15083     ;;
15084 esac
15085 echo "$as_me:$LINENO: checking for $ac_header" >&5
15086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15088   echo $ECHO_N "(cached) $ECHO_C" >&6
15089 else
15090   eval "$as_ac_Header=$ac_header_preproc"
15091 fi
15092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15094
15095 fi
15096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15097   cat >>confdefs.h <<_ACEOF
15098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15099 _ACEOF
15100
15101 fi
15102
15103 done
15104
15105
15106
15107 echo "$as_me:$LINENO: checking whether you have ss_family in struct sockaddr_storage" >&5
15108 echo $ECHO_N "checking whether you have ss_family in struct sockaddr_storage... $ECHO_C" >&6
15109 if test "${ipv6_cv_ss_family+set}" = set; then
15110   echo $ECHO_N "(cached) $ECHO_C" >&6
15111 else
15112   cat >conftest.$ac_ext <<_ACEOF
15113 #line $LINENO "configure"
15114 /* confdefs.h.  */
15115 _ACEOF
15116 cat confdefs.h >>conftest.$ac_ext
15117 cat >>conftest.$ac_ext <<_ACEOF
15118 /* end confdefs.h.  */
15119 #include <sys/types.h>
15120 #include <sys/socket.h>
15121 int
15122 main ()
15123 {
15124 struct sockaddr_storage ss; int i = ss.ss_family;
15125   ;
15126   return 0;
15127 }
15128 _ACEOF
15129 rm -f conftest.$ac_objext
15130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15131   (eval $ac_compile) 2>&5
15132   ac_status=$?
15133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134   (exit $ac_status); } &&
15135          { ac_try='test -s conftest.$ac_objext'
15136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15137   (eval $ac_try) 2>&5
15138   ac_status=$?
15139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140   (exit $ac_status); }; }; then
15141   ipv6_cv_ss_family=yes
15142 else
15143   echo "$as_me: failed program was:" >&5
15144 sed 's/^/| /' conftest.$ac_ext >&5
15145
15146 ipv6_cv_ss_family=no
15147 fi
15148 rm -f conftest.$ac_objext conftest.$ac_ext
15149 fi
15150 if test $ipv6_cv_ss_family = yes; then
15151
15152 cat >>confdefs.h <<\_ACEOF
15153 #define HAVE_SS_FAMILY
15154 _ACEOF
15155
15156 else
15157   :
15158 fi
15159 echo "$as_me:$LINENO: result: $ipv6_cv_ss_family" >&5
15160 echo "${ECHO_T}$ipv6_cv_ss_family" >&6
15161
15162 echo "$as_me:$LINENO: checking whether you have sa_len in struct sockaddr" >&5
15163 echo $ECHO_N "checking whether you have sa_len in struct sockaddr... $ECHO_C" >&6
15164 if test "${ipv6_cv_sa_len+set}" = set; then
15165   echo $ECHO_N "(cached) $ECHO_C" >&6
15166 else
15167   cat >conftest.$ac_ext <<_ACEOF
15168 #line $LINENO "configure"
15169 /* confdefs.h.  */
15170 _ACEOF
15171 cat confdefs.h >>conftest.$ac_ext
15172 cat >>conftest.$ac_ext <<_ACEOF
15173 /* end confdefs.h.  */
15174 #include <sys/types.h>
15175 #include <sys/socket.h>
15176 int
15177 main ()
15178 {
15179 struct sockaddr sa; int i = sa.sa_len;
15180   ;
15181   return 0;
15182 }
15183 _ACEOF
15184 rm -f conftest.$ac_objext
15185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15186   (eval $ac_compile) 2>&5
15187   ac_status=$?
15188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189   (exit $ac_status); } &&
15190          { ac_try='test -s conftest.$ac_objext'
15191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15192   (eval $ac_try) 2>&5
15193   ac_status=$?
15194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195   (exit $ac_status); }; }; then
15196   ipv6_cv_sa_len=yes
15197 else
15198   echo "$as_me: failed program was:" >&5
15199 sed 's/^/| /' conftest.$ac_ext >&5
15200
15201 ipv6_cv_sa_len=no
15202 fi
15203 rm -f conftest.$ac_objext conftest.$ac_ext
15204 fi
15205 if test $ipv6_cv_sa_len = yes; then
15206
15207 cat >>confdefs.h <<\_ACEOF
15208 #define HAVE_SOCKADDR_SA_LEN
15209 _ACEOF
15210
15211 else
15212   :
15213 fi
15214 echo "$as_me:$LINENO: result: $ipv6_cv_sa_len" >&5
15215 echo "${ECHO_T}$ipv6_cv_sa_len" >&6
15216
15217 echo "$as_me:$LINENO: checking for socklen_t" >&5
15218 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
15219 if test "${ipv6_cv_socklen_t+set}" = set; then
15220   echo $ECHO_N "(cached) $ECHO_C" >&6
15221 else
15222   cat >conftest.$ac_ext <<_ACEOF
15223 #line $LINENO "configure"
15224 /* confdefs.h.  */
15225 _ACEOF
15226 cat confdefs.h >>conftest.$ac_ext
15227 cat >>conftest.$ac_ext <<_ACEOF
15228 /* end confdefs.h.  */
15229 #include <sys/types.h>
15230 #include <sys/socket.h>
15231 int
15232 main ()
15233 {
15234 socklen_t len = 0;
15235   ;
15236   return 0;
15237 }
15238 _ACEOF
15239 rm -f conftest.$ac_objext conftest$ac_exeext
15240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15241   (eval $ac_link) 2>&5
15242   ac_status=$?
15243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244   (exit $ac_status); } &&
15245          { ac_try='test -s conftest$ac_exeext'
15246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15247   (eval $ac_try) 2>&5
15248   ac_status=$?
15249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250   (exit $ac_status); }; }; then
15251   ipv6_cv_socklen_t=yes
15252 else
15253   echo "$as_me: failed program was:" >&5
15254 sed 's/^/| /' conftest.$ac_ext >&5
15255
15256 ipv6_cv_socklen_t=no
15257 fi
15258 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15259 fi
15260 if test $ipv6_cv_socklen_t = yes; then
15261
15262 cat >>confdefs.h <<\_ACEOF
15263 #define HAVE_SOCKLEN_T
15264 _ACEOF
15265
15266 else
15267   :
15268 fi
15269 echo "$as_me:$LINENO: result: $ipv6_cv_socklen_t" >&5
15270 echo "${ECHO_T}$ipv6_cv_socklen_t" >&6
15271
15272 #AC_FUNC_MEMCMP
15273 #AC_FUNC_VPRINTF
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291 for ac_func in gethostname getdomainname getpwnam getspnam gettimeofday inet_aton memcpy mkdir select socket strchr strdup strerror strspn strstr strtol jrand48
15292 do
15293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15294 echo "$as_me:$LINENO: checking for $ac_func" >&5
15295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15296 if eval "test \"\${$as_ac_var+set}\" = set"; then
15297   echo $ECHO_N "(cached) $ECHO_C" >&6
15298 else
15299   cat >conftest.$ac_ext <<_ACEOF
15300 #line $LINENO "configure"
15301 /* confdefs.h.  */
15302 _ACEOF
15303 cat confdefs.h >>conftest.$ac_ext
15304 cat >>conftest.$ac_ext <<_ACEOF
15305 /* end confdefs.h.  */
15306 /* System header to define __stub macros and hopefully few prototypes,
15307     which can conflict with char $ac_func (); below.
15308     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15309     <limits.h> exists even on freestanding compilers.  */
15310 #ifdef __STDC__
15311 # include <limits.h>
15312 #else
15313 # include <assert.h>
15314 #endif
15315 /* Override any gcc2 internal prototype to avoid an error.  */
15316 #ifdef __cplusplus
15317 extern "C"
15318 {
15319 #endif
15320 /* We use char because int might match the return type of a gcc2
15321    builtin and then its argument prototype would still apply.  */
15322 char $ac_func ();
15323 /* The GNU C library defines this for functions which it implements
15324     to always fail with ENOSYS.  Some functions are actually named
15325     something starting with __ and the normal name is an alias.  */
15326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15327 choke me
15328 #else
15329 char (*f) () = $ac_func;
15330 #endif
15331 #ifdef __cplusplus
15332 }
15333 #endif
15334
15335 int
15336 main ()
15337 {
15338 return f != $ac_func;
15339   ;
15340   return 0;
15341 }
15342 _ACEOF
15343 rm -f conftest.$ac_objext conftest$ac_exeext
15344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15345   (eval $ac_link) 2>&5
15346   ac_status=$?
15347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348   (exit $ac_status); } &&
15349          { ac_try='test -s conftest$ac_exeext'
15350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15351   (eval $ac_try) 2>&5
15352   ac_status=$?
15353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354   (exit $ac_status); }; }; then
15355   eval "$as_ac_var=yes"
15356 else
15357   echo "$as_me: failed program was:" >&5
15358 sed 's/^/| /' conftest.$ac_ext >&5
15359
15360 eval "$as_ac_var=no"
15361 fi
15362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15363 fi
15364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15365 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15366 if test `eval echo '${'$as_ac_var'}'` = yes; then
15367   cat >>confdefs.h <<_ACEOF
15368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15369 _ACEOF
15370
15371 fi
15372 done
15373
15374
15375 if test $enable_cmulocal = yes; then
15376     { echo "$as_me:$LINENO: WARNING: enabling CMU local kludges" >&5
15377 echo "$as_me: WARNING: enabling CMU local kludges" >&2;}
15378
15379 cat >>confdefs.h <<\_ACEOF
15380 #define KRB4_IGNORE_IP_ADDRESS
15381 _ACEOF
15382
15383
15384 cat >>confdefs.h <<_ACEOF
15385 #define PREFER_MECH "KERBEROS_V4"
15386 _ACEOF
15387
15388 fi
15389
15390 cat >conftest.$ac_ext <<_ACEOF
15391 #line $LINENO "configure"
15392 /* confdefs.h.  */
15393 _ACEOF
15394 cat confdefs.h >>conftest.$ac_ext
15395 cat >>conftest.$ac_ext <<_ACEOF
15396 /* end confdefs.h.  */
15397 #include <sys/socket.h>
15398
15399 _ACEOF
15400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15401   $EGREP "sockaddr_storage" >/dev/null 2>&1; then
15402
15403
15404 cat >>confdefs.h <<\_ACEOF
15405 #define HAVE_STRUCT_SOCKADDR_STORAGE
15406 _ACEOF
15407
15408 fi
15409 rm -f conftest*
15410
15411
15412
15413
15414
15415
15416 subdirs="$subdirs saslauthd"
15417
15418
15419
15420
15421
15422
15423
15424
15425           ac_config_headers="$ac_config_headers config.h"
15426
15427
15428                                                                                                                                                                           ac_config_files="$ac_config_files Makefile include/Makefile sasldb/Makefile plugins/Makefile lib/Makefile utils/Makefile doc/Makefile sample/Makefile java/Makefile java/CyrusSasl/Makefile java/Test/Makefile java/javax/Makefile java/javax/security/Makefile java/javax/security/auth/Makefile java/javax/security/auth/callback/Makefile pwcheck/Makefile man/Makefile"
15429 cat >confcache <<\_ACEOF
15430 # This file is a shell script that caches the results of configure
15431 # tests run on this system so they can be shared between configure
15432 # scripts and configure runs, see configure's option --config-cache.
15433 # It is not useful on other systems.  If it contains results you don't
15434 # want to keep, you may remove or edit it.
15435 #
15436 # config.status only pays attention to the cache file if you give it
15437 # the --recheck option to rerun configure.
15438 #
15439 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15440 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15441 # following values.
15442
15443 _ACEOF
15444
15445 # The following way of writing the cache mishandles newlines in values,
15446 # but we know of no workaround that is simple, portable, and efficient.
15447 # So, don't put newlines in cache variables' values.
15448 # Ultrix sh set writes to stderr and can't be redirected directly,
15449 # and sets the high bit in the cache file unless we assign to the vars.
15450 {
15451   (set) 2>&1 |
15452     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15453     *ac_space=\ *)
15454       # `set' does not quote correctly, so add quotes (double-quote
15455       # substitution turns \\\\ into \\, and sed turns \\ into \).
15456       sed -n \
15457         "s/'/'\\\\''/g;
15458           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15459       ;;
15460     *)
15461       # `set' quotes correctly as required by POSIX, so do not add quotes.
15462       sed -n \
15463         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15464       ;;
15465     esac;
15466 } |
15467   sed '
15468      t clear
15469      : clear
15470      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15471      t end
15472      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15473      : end' >>confcache
15474 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15475   if test -w $cache_file; then
15476     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15477     cat confcache >$cache_file
15478   else
15479     echo "not updating unwritable cache $cache_file"
15480   fi
15481 fi
15482 rm -f confcache
15483
15484 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15485 # Let make expand exec_prefix.
15486 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15487
15488 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15489 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15490 # trailing colons and then remove the whole line if VPATH becomes empty
15491 # (actually we leave an empty line to preserve line numbers).
15492 if test "x$srcdir" = x.; then
15493   ac_vpsub='/^[         ]*VPATH[        ]*=/{
15494 s/:*\$(srcdir):*/:/;
15495 s/:*\${srcdir}:*/:/;
15496 s/:*@srcdir@:*/:/;
15497 s/^\([^=]*=[    ]*\):*/\1/;
15498 s/:*$//;
15499 s/^[^=]*=[      ]*$//;
15500 }'
15501 fi
15502
15503 DEFS=-DHAVE_CONFIG_H
15504
15505 ac_libobjs=
15506 ac_ltlibobjs=
15507 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15508   # 1. Remove the extension, and $U if already installed.
15509   ac_i=`echo "$ac_i" |
15510          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15511   # 2. Add them.
15512   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15513   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15514 done
15515 LIBOBJS=$ac_libobjs
15516
15517 LTLIBOBJS=$ac_ltlibobjs
15518
15519
15520 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15521   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15522 Usually this means the macro was only invoked conditionally." >&5
15523 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15524 Usually this means the macro was only invoked conditionally." >&2;}
15525    { (exit 1); exit 1; }; }
15526 fi
15527 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15528   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15529 Usually this means the macro was only invoked conditionally." >&5
15530 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15531 Usually this means the macro was only invoked conditionally." >&2;}
15532    { (exit 1); exit 1; }; }
15533 fi
15534 if test -z "${JAVA_TRUE}" && test -z "${JAVA_FALSE}"; then
15535   { { echo "$as_me:$LINENO: error: conditional \"JAVA\" was never defined.
15536 Usually this means the macro was only invoked conditionally." >&5
15537 echo "$as_me: error: conditional \"JAVA\" was never defined.
15538 Usually this means the macro was only invoked conditionally." >&2;}
15539    { (exit 1); exit 1; }; }
15540 fi
15541 if test -z "${SAMPLE_TRUE}" && test -z "${SAMPLE_FALSE}"; then
15542   { { echo "$as_me:$LINENO: error: conditional \"SAMPLE\" was never defined.
15543 Usually this means the macro was only invoked conditionally." >&5
15544 echo "$as_me: error: conditional \"SAMPLE\" was never defined.
15545 Usually this means the macro was only invoked conditionally." >&2;}
15546    { (exit 1); exit 1; }; }
15547 fi
15548 if test -z "${NO_SASL_DB_MANS_TRUE}" && test -z "${NO_SASL_DB_MANS_FALSE}"; then
15549   { { echo "$as_me:$LINENO: error: conditional \"NO_SASL_DB_MANS\" was never defined.
15550 Usually this means the macro was only invoked conditionally." >&5
15551 echo "$as_me: error: conditional \"NO_SASL_DB_MANS\" was never defined.
15552 Usually this means the macro was only invoked conditionally." >&2;}
15553    { (exit 1); exit 1; }; }
15554 fi
15555 if test -z "${SASLAUTHD_TRUE}" && test -z "${SASLAUTHD_FALSE}"; then
15556   { { echo "$as_me:$LINENO: error: conditional \"SASLAUTHD\" was never defined.
15557 Usually this means the macro was only invoked conditionally." >&5
15558 echo "$as_me: error: conditional \"SASLAUTHD\" was never defined.
15559 Usually this means the macro was only invoked conditionally." >&2;}
15560    { (exit 1); exit 1; }; }
15561 fi
15562 if test -z "${PWCHECK_TRUE}" && test -z "${PWCHECK_FALSE}"; then
15563   { { echo "$as_me:$LINENO: error: conditional \"PWCHECK\" was never defined.
15564 Usually this means the macro was only invoked conditionally." >&5
15565 echo "$as_me: error: conditional \"PWCHECK\" was never defined.
15566 Usually this means the macro was only invoked conditionally." >&2;}
15567    { (exit 1); exit 1; }; }
15568 fi
15569 if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then
15570   { { echo "$as_me:$LINENO: error: conditional \"MACOSX\" was never defined.
15571 Usually this means the macro was only invoked conditionally." >&5
15572 echo "$as_me: error: conditional \"MACOSX\" was never defined.
15573 Usually this means the macro was only invoked conditionally." >&2;}
15574    { (exit 1); exit 1; }; }
15575 fi
15576
15577 : ${CONFIG_STATUS=./config.status}
15578 ac_clean_files_save=$ac_clean_files
15579 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15580 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15581 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15582 cat >$CONFIG_STATUS <<_ACEOF
15583 #! $SHELL
15584 # Generated by $as_me.
15585 # Run this file to recreate the current configuration.
15586 # Compiler output produced by configure, useful for debugging
15587 # configure, is in config.log if it exists.
15588
15589 debug=false
15590 ac_cs_recheck=false
15591 ac_cs_silent=false
15592 SHELL=\${CONFIG_SHELL-$SHELL}
15593 _ACEOF
15594
15595 cat >>$CONFIG_STATUS <<\_ACEOF
15596 ## --------------------- ##
15597 ## M4sh Initialization.  ##
15598 ## --------------------- ##
15599
15600 # Be Bourne compatible
15601 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15602   emulate sh
15603   NULLCMD=:
15604   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15605   # is contrary to our usage.  Disable this feature.
15606   alias -g '${1+"$@"}'='"$@"'
15607 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15608   set -o posix
15609 fi
15610
15611 # Support unset when possible.
15612 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15613   as_unset=unset
15614 else
15615   as_unset=false
15616 fi
15617
15618
15619 # Work around bugs in pre-3.0 UWIN ksh.
15620 $as_unset ENV MAIL MAILPATH
15621 PS1='$ '
15622 PS2='> '
15623 PS4='+ '
15624
15625 # NLS nuisances.
15626 for as_var in \
15627   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15628   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15629   LC_TELEPHONE LC_TIME
15630 do
15631   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
15632     eval $as_var=C; export $as_var
15633   else
15634     $as_unset $as_var
15635   fi
15636 done
15637
15638 # Required to use basename.
15639 if expr a : '\(a\)' >/dev/null 2>&1; then
15640   as_expr=expr
15641 else
15642   as_expr=false
15643 fi
15644
15645 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15646   as_basename=basename
15647 else
15648   as_basename=false
15649 fi
15650
15651
15652 # Name of the executable.
15653 as_me=`$as_basename "$0" ||
15654 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15655          X"$0" : 'X\(//\)$' \| \
15656          X"$0" : 'X\(/\)$' \| \
15657          .     : '\(.\)' 2>/dev/null ||
15658 echo X/"$0" |
15659     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15660           /^X\/\(\/\/\)$/{ s//\1/; q; }
15661           /^X\/\(\/\).*/{ s//\1/; q; }
15662           s/.*/./; q'`
15663
15664
15665 # PATH needs CR, and LINENO needs CR and PATH.
15666 # Avoid depending upon Character Ranges.
15667 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15668 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15669 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15670 as_cr_digits='0123456789'
15671 as_cr_alnum=$as_cr_Letters$as_cr_digits
15672
15673 # The user is always right.
15674 if test "${PATH_SEPARATOR+set}" != set; then
15675   echo "#! /bin/sh" >conf$$.sh
15676   echo  "exit 0"   >>conf$$.sh
15677   chmod +x conf$$.sh
15678   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15679     PATH_SEPARATOR=';'
15680   else
15681     PATH_SEPARATOR=:
15682   fi
15683   rm -f conf$$.sh
15684 fi
15685
15686
15687   as_lineno_1=$LINENO
15688   as_lineno_2=$LINENO
15689   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15690   test "x$as_lineno_1" != "x$as_lineno_2" &&
15691   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15692   # Find who we are.  Look in the path if we contain no path at all
15693   # relative or not.
15694   case $0 in
15695     *[\\/]* ) as_myself=$0 ;;
15696     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15697 for as_dir in $PATH
15698 do
15699   IFS=$as_save_IFS
15700   test -z "$as_dir" && as_dir=.
15701   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15702 done
15703
15704        ;;
15705   esac
15706   # We did not find ourselves, most probably we were run as `sh COMMAND'
15707   # in which case we are not to be found in the path.
15708   if test "x$as_myself" = x; then
15709     as_myself=$0
15710   fi
15711   if test ! -f "$as_myself"; then
15712     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15713 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15714    { (exit 1); exit 1; }; }
15715   fi
15716   case $CONFIG_SHELL in
15717   '')
15718     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15719 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15720 do
15721   IFS=$as_save_IFS
15722   test -z "$as_dir" && as_dir=.
15723   for as_base in sh bash ksh sh5; do
15724          case $as_dir in
15725          /*)
15726            if ("$as_dir/$as_base" -c '
15727   as_lineno_1=$LINENO
15728   as_lineno_2=$LINENO
15729   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15730   test "x$as_lineno_1" != "x$as_lineno_2" &&
15731   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15732              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15733              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15734              CONFIG_SHELL=$as_dir/$as_base
15735              export CONFIG_SHELL
15736              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15737            fi;;
15738          esac
15739        done
15740 done
15741 ;;
15742   esac
15743
15744   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15745   # uniformly replaced by the line number.  The first 'sed' inserts a
15746   # line-number line before each line; the second 'sed' does the real
15747   # work.  The second script uses 'N' to pair each line-number line
15748   # with the numbered line, and appends trailing '-' during
15749   # substitution so that $LINENO is not a special case at line end.
15750   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15751   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15752   sed '=' <$as_myself |
15753     sed '
15754       N
15755       s,$,-,
15756       : loop
15757       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15758       t loop
15759       s,-$,,
15760       s,^['$as_cr_digits']*\n,,
15761     ' >$as_me.lineno &&
15762   chmod +x $as_me.lineno ||
15763     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15764 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15765    { (exit 1); exit 1; }; }
15766
15767   # Don't try to exec as it changes $[0], causing all sort of problems
15768   # (the dirname of $[0] is not the place where we might find the
15769   # original and so on.  Autoconf is especially sensible to this).
15770   . ./$as_me.lineno
15771   # Exit status is that of the last command.
15772   exit
15773 }
15774
15775
15776 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15777   *c*,-n*) ECHO_N= ECHO_C='
15778 ' ECHO_T='      ' ;;
15779   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15780   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15781 esac
15782
15783 if expr a : '\(a\)' >/dev/null 2>&1; then
15784   as_expr=expr
15785 else
15786   as_expr=false
15787 fi
15788
15789 rm -f conf$$ conf$$.exe conf$$.file
15790 echo >conf$$.file
15791 if ln -s conf$$.file conf$$ 2>/dev/null; then
15792   # We could just check for DJGPP; but this test a) works b) is more generic
15793   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15794   if test -f conf$$.exe; then
15795     # Don't use ln at all; we don't have any links
15796     as_ln_s='cp -p'
15797   else
15798     as_ln_s='ln -s'
15799   fi
15800 elif ln conf$$.file conf$$ 2>/dev/null; then
15801   as_ln_s=ln
15802 else
15803   as_ln_s='cp -p'
15804 fi
15805 rm -f conf$$ conf$$.exe conf$$.file
15806
15807 if mkdir -p . 2>/dev/null; then
15808   as_mkdir_p=:
15809 else
15810   as_mkdir_p=false
15811 fi
15812
15813 as_executable_p="test -f"
15814
15815 # Sed expression to map a string onto a valid CPP name.
15816 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15817
15818 # Sed expression to map a string onto a valid variable name.
15819 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15820
15821
15822 # IFS
15823 # We need space, tab and new line, in precisely that order.
15824 as_nl='
15825 '
15826 IFS="   $as_nl"
15827
15828 # CDPATH.
15829 $as_unset CDPATH
15830
15831 exec 6>&1
15832
15833 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15834 # report actual input values of CONFIG_FILES etc. instead of their
15835 # values after options handling.  Logging --version etc. is OK.
15836 exec 5>>config.log
15837 {
15838   echo
15839   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15840 ## Running $as_me. ##
15841 _ASBOX
15842 } >&5
15843 cat >&5 <<_CSEOF
15844
15845 This file was extended by $as_me, which was
15846 generated by GNU Autoconf 2.57.  Invocation command line was
15847
15848   CONFIG_FILES    = $CONFIG_FILES
15849   CONFIG_HEADERS  = $CONFIG_HEADERS
15850   CONFIG_LINKS    = $CONFIG_LINKS
15851   CONFIG_COMMANDS = $CONFIG_COMMANDS
15852   $ $0 $@
15853
15854 _CSEOF
15855 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15856 echo >&5
15857 _ACEOF
15858
15859 # Files that config.status was made for.
15860 if test -n "$ac_config_files"; then
15861   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15862 fi
15863
15864 if test -n "$ac_config_headers"; then
15865   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15866 fi
15867
15868 if test -n "$ac_config_links"; then
15869   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15870 fi
15871
15872 if test -n "$ac_config_commands"; then
15873   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15874 fi
15875
15876 cat >>$CONFIG_STATUS <<\_ACEOF
15877
15878 ac_cs_usage="\
15879 \`$as_me' instantiates files from templates according to the
15880 current configuration.
15881
15882 Usage: $0 [OPTIONS] [FILE]...
15883
15884   -h, --help       print this help, then exit
15885   -V, --version    print version number, then exit
15886   -q, --quiet      do not print progress messages
15887   -d, --debug      don't remove temporary files
15888       --recheck    update $as_me by reconfiguring in the same conditions
15889   --file=FILE[:TEMPLATE]
15890                    instantiate the configuration file FILE
15891   --header=FILE[:TEMPLATE]
15892                    instantiate the configuration header FILE
15893
15894 Configuration files:
15895 $config_files
15896
15897 Configuration headers:
15898 $config_headers
15899
15900 Configuration commands:
15901 $config_commands
15902
15903 Report bugs to <bug-autoconf@gnu.org>."
15904 _ACEOF
15905
15906 cat >>$CONFIG_STATUS <<_ACEOF
15907 ac_cs_version="\\
15908 config.status
15909 configured by $0, generated by GNU Autoconf 2.57,
15910   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15911
15912 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
15913 Free Software Foundation, Inc.
15914 This config.status script is free software; the Free Software Foundation
15915 gives unlimited permission to copy, distribute and modify it."
15916 srcdir=$srcdir
15917 INSTALL="$INSTALL"
15918 _ACEOF
15919
15920 cat >>$CONFIG_STATUS <<\_ACEOF
15921 # If no file are specified by the user, then we need to provide default
15922 # value.  By we need to know if files were specified by the user.
15923 ac_need_defaults=:
15924 while test $# != 0
15925 do
15926   case $1 in
15927   --*=*)
15928     ac_option=`expr "x$1" : 'x\([^=]*\)='`
15929     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15930     ac_shift=:
15931     ;;
15932   -*)
15933     ac_option=$1
15934     ac_optarg=$2
15935     ac_shift=shift
15936     ;;
15937   *) # This is not an option, so the user has probably given explicit
15938      # arguments.
15939      ac_option=$1
15940      ac_need_defaults=false;;
15941   esac
15942
15943   case $ac_option in
15944   # Handling of the options.
15945 _ACEOF
15946 cat >>$CONFIG_STATUS <<\_ACEOF
15947   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15948     ac_cs_recheck=: ;;
15949   --version | --vers* | -V )
15950     echo "$ac_cs_version"; exit 0 ;;
15951   --he | --h)
15952     # Conflict between --help and --header
15953     { { echo "$as_me:$LINENO: error: ambiguous option: $1
15954 Try \`$0 --help' for more information." >&5
15955 echo "$as_me: error: ambiguous option: $1
15956 Try \`$0 --help' for more information." >&2;}
15957    { (exit 1); exit 1; }; };;
15958   --help | --hel | -h )
15959     echo "$ac_cs_usage"; exit 0 ;;
15960   --debug | --d* | -d )
15961     debug=: ;;
15962   --file | --fil | --fi | --f )
15963     $ac_shift
15964     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15965     ac_need_defaults=false;;
15966   --header | --heade | --head | --hea )
15967     $ac_shift
15968     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15969     ac_need_defaults=false;;
15970   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15971   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15972     ac_cs_silent=: ;;
15973
15974   # This is an error.
15975   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15976 Try \`$0 --help' for more information." >&5
15977 echo "$as_me: error: unrecognized option: $1
15978 Try \`$0 --help' for more information." >&2;}
15979    { (exit 1); exit 1; }; } ;;
15980
15981   *) ac_config_targets="$ac_config_targets $1" ;;
15982
15983   esac
15984   shift
15985 done
15986
15987 ac_configure_extra_args=
15988
15989 if $ac_cs_silent; then
15990   exec 6>/dev/null
15991   ac_configure_extra_args="$ac_configure_extra_args --silent"
15992 fi
15993
15994 _ACEOF
15995 cat >>$CONFIG_STATUS <<_ACEOF
15996 if \$ac_cs_recheck; then
15997   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15998   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15999 fi
16000
16001 _ACEOF
16002
16003 cat >>$CONFIG_STATUS <<_ACEOF
16004 #
16005 # INIT-COMMANDS section.
16006 #
16007
16008 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16009
16010 _ACEOF
16011
16012
16013
16014 cat >>$CONFIG_STATUS <<\_ACEOF
16015 for ac_config_target in $ac_config_targets
16016 do
16017   case "$ac_config_target" in
16018   # Handling of arguments.
16019   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16020   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16021   "sasldb/Makefile" ) CONFIG_FILES="$CONFIG_FILES sasldb/Makefile" ;;
16022   "plugins/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
16023   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
16024   "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
16025   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16026   "sample/Makefile" ) CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
16027   "java/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
16028   "java/CyrusSasl/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/CyrusSasl/Makefile" ;;
16029   "java/Test/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/Test/Makefile" ;;
16030   "java/javax/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/javax/Makefile" ;;
16031   "java/javax/security/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/javax/security/Makefile" ;;
16032   "java/javax/security/auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/javax/security/auth/Makefile" ;;
16033   "java/javax/security/auth/callback/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/javax/security/auth/callback/Makefile" ;;
16034   "pwcheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES pwcheck/Makefile" ;;
16035   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16036   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16037   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16038   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16039 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16040    { (exit 1); exit 1; }; };;
16041   esac
16042 done
16043
16044 # If the user did not use the arguments to specify the items to instantiate,
16045 # then the envvar interface is used.  Set only those that are not.
16046 # We use the long form for the default assignment because of an extremely
16047 # bizarre bug on SunOS 4.1.3.
16048 if $ac_need_defaults; then
16049   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16050   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16051   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16052 fi
16053
16054 # Have a temporary directory for convenience.  Make it in the build tree
16055 # simply because there is no reason to put it here, and in addition,
16056 # creating and moving files from /tmp can sometimes cause problems.
16057 # Create a temporary directory, and hook for its removal unless debugging.
16058 $debug ||
16059 {
16060   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16061   trap '{ (exit 1); exit 1; }' 1 2 13 15
16062 }
16063
16064 # Create a (secure) tmp directory for tmp files.
16065
16066 {
16067   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16068   test -n "$tmp" && test -d "$tmp"
16069 }  ||
16070 {
16071   tmp=./confstat$$-$RANDOM
16072   (umask 077 && mkdir $tmp)
16073 } ||
16074 {
16075    echo "$me: cannot create a temporary directory in ." >&2
16076    { (exit 1); exit 1; }
16077 }
16078
16079 _ACEOF
16080
16081 cat >>$CONFIG_STATUS <<_ACEOF
16082
16083 #
16084 # CONFIG_FILES section.
16085 #
16086
16087 # No need to generate the scripts if there are no CONFIG_FILES.
16088 # This happens for instance when ./config.status config.h
16089 if test -n "\$CONFIG_FILES"; then
16090   # Protect against being on the right side of a sed subst in config.status.
16091   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16092    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16093 s,@SHELL@,$SHELL,;t t
16094 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16095 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16096 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16097 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16098 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16099 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16100 s,@exec_prefix@,$exec_prefix,;t t
16101 s,@prefix@,$prefix,;t t
16102 s,@program_transform_name@,$program_transform_name,;t t
16103 s,@bindir@,$bindir,;t t
16104 s,@sbindir@,$sbindir,;t t
16105 s,@libexecdir@,$libexecdir,;t t
16106 s,@datadir@,$datadir,;t t
16107 s,@sysconfdir@,$sysconfdir,;t t
16108 s,@sharedstatedir@,$sharedstatedir,;t t
16109 s,@localstatedir@,$localstatedir,;t t
16110 s,@libdir@,$libdir,;t t
16111 s,@includedir@,$includedir,;t t
16112 s,@oldincludedir@,$oldincludedir,;t t
16113 s,@infodir@,$infodir,;t t
16114 s,@mandir@,$mandir,;t t
16115 s,@build_alias@,$build_alias,;t t
16116 s,@host_alias@,$host_alias,;t t
16117 s,@target_alias@,$target_alias,;t t
16118 s,@DEFS@,$DEFS,;t t
16119 s,@ECHO_C@,$ECHO_C,;t t
16120 s,@ECHO_N@,$ECHO_N,;t t
16121 s,@ECHO_T@,$ECHO_T,;t t
16122 s,@LIBS@,$LIBS,;t t
16123 s,@build@,$build,;t t
16124 s,@build_cpu@,$build_cpu,;t t
16125 s,@build_vendor@,$build_vendor,;t t
16126 s,@build_os@,$build_os,;t t
16127 s,@host@,$host,;t t
16128 s,@host_cpu@,$host_cpu,;t t
16129 s,@host_vendor@,$host_vendor,;t t
16130 s,@host_os@,$host_os,;t t
16131 s,@target@,$target,;t t
16132 s,@target_cpu@,$target_cpu,;t t
16133 s,@target_vendor@,$target_vendor,;t t
16134 s,@target_os@,$target_os,;t t
16135 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16136 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16137 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16138 s,@CYGPATH_W@,$CYGPATH_W,;t t
16139 s,@PACKAGE@,$PACKAGE,;t t
16140 s,@VERSION@,$VERSION,;t t
16141 s,@ACLOCAL@,$ACLOCAL,;t t
16142 s,@AUTOCONF@,$AUTOCONF,;t t
16143 s,@AUTOMAKE@,$AUTOMAKE,;t t
16144 s,@AUTOHEADER@,$AUTOHEADER,;t t
16145 s,@MAKEINFO@,$MAKEINFO,;t t
16146 s,@AMTAR@,$AMTAR,;t t
16147 s,@install_sh@,$install_sh,;t t
16148 s,@STRIP@,$STRIP,;t t
16149 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16150 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16151 s,@AWK@,$AWK,;t t
16152 s,@SET_MAKE@,$SET_MAKE,;t t
16153 s,@am__leading_dot@,$am__leading_dot,;t t
16154 s,@CC@,$CC,;t t
16155 s,@CFLAGS@,$CFLAGS,;t t
16156 s,@LDFLAGS@,$LDFLAGS,;t t
16157 s,@CPPFLAGS@,$CPPFLAGS,;t t
16158 s,@ac_ct_CC@,$ac_ct_CC,;t t
16159 s,@EXEEXT@,$EXEEXT,;t t
16160 s,@OBJEXT@,$OBJEXT,;t t
16161 s,@DEPDIR@,$DEPDIR,;t t
16162 s,@am__include@,$am__include,;t t
16163 s,@am__quote@,$am__quote,;t t
16164 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16165 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16166 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16167 s,@CCDEPMODE@,$CCDEPMODE,;t t
16168 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16169 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16170 s,@CPP@,$CPP,;t t
16171 s,@LN_S@,$LN_S,;t t
16172 s,@RANLIB@,$RANLIB,;t t
16173 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16174 s,@LIBTOOL@,$LIBTOOL,;t t
16175 s,@PURECOV@,$PURECOV,;t t
16176 s,@PURIFY@,$PURIFY,;t t
16177 s,@JAVAC@,$JAVAC,;t t
16178 s,@JAVAH@,$JAVAH,;t t
16179 s,@JAVADOC@,$JAVADOC,;t t
16180 s,@JAVA_TRUE@,$JAVA_TRUE,;t t
16181 s,@JAVA_FALSE@,$JAVA_FALSE,;t t
16182 s,@JAVA_INCLUDES@,$JAVA_INCLUDES,;t t
16183 s,@JAVAROOT@,$JAVAROOT,;t t
16184 s,@SAMPLE_TRUE@,$SAMPLE_TRUE,;t t
16185 s,@SAMPLE_FALSE@,$SAMPLE_FALSE,;t t
16186 s,@LIB_SOCKET@,$LIB_SOCKET,;t t
16187 s,@EGREP@,$EGREP,;t t
16188 s,@SASL_DB_UTILS@,$SASL_DB_UTILS,;t t
16189 s,@SASL_DB_MANS@,$SASL_DB_MANS,;t t
16190 s,@SASL_DB_BACKEND@,$SASL_DB_BACKEND,;t t
16191 s,@SASL_DB_BACKEND_STATIC@,$SASL_DB_BACKEND_STATIC,;t t
16192 s,@SASL_DB_INC@,$SASL_DB_INC,;t t
16193 s,@SASL_DB_LIB@,$SASL_DB_LIB,;t t
16194 s,@NO_SASL_DB_MANS_TRUE@,$NO_SASL_DB_MANS_TRUE,;t t
16195 s,@NO_SASL_DB_MANS_FALSE@,$NO_SASL_DB_MANS_FALSE,;t t
16196 s,@SASL_DL_LIB@,$SASL_DL_LIB,;t t
16197 s,@NM@,$NM,;t t
16198 s,@SASLAUTHD_TRUE@,$SASLAUTHD_TRUE,;t t
16199 s,@SASLAUTHD_FALSE@,$SASLAUTHD_FALSE,;t t
16200 s,@PWCHECKMETH@,$PWCHECKMETH,;t t
16201 s,@PWCHECK_TRUE@,$PWCHECK_TRUE,;t t
16202 s,@PWCHECK_FALSE@,$PWCHECK_FALSE,;t t
16203 s,@IPCTYPE@,$IPCTYPE,;t t
16204 s,@LIB_DOOR@,$LIB_DOOR,;t t
16205 s,@CMU_LIB_SUBDIR@,$CMU_LIB_SUBDIR,;t t
16206 s,@LIB_DES@,$LIB_DES,;t t
16207 s,@OTP_LIBS@,$OTP_LIBS,;t t
16208 s,@SRP_LIBS@,$SRP_LIBS,;t t
16209 s,@SASL_KRB_LIB@,$SASL_KRB_LIB,;t t
16210 s,@LIB_CRYPT@,$LIB_CRYPT,;t t
16211 s,@GSSAPI_LIBS@,$GSSAPI_LIBS,;t t
16212 s,@GSSAPIBASE_LIBS@,$GSSAPIBASE_LIBS,;t t
16213 s,@PLAIN_LIBS@,$PLAIN_LIBS,;t t
16214 s,@NTLM_LIBS@,$NTLM_LIBS,;t t
16215 s,@PASSDSS_LIBS@,$PASSDSS_LIBS,;t t
16216 s,@LIB_MYSQL@,$LIB_MYSQL,;t t
16217 s,@LIB_PGSQL@,$LIB_PGSQL,;t t
16218 s,@LIB_SQLITE@,$LIB_SQLITE,;t t
16219 s,@LIB_LDAP@,$LIB_LDAP,;t t
16220 s,@SASL_MECHS@,$SASL_MECHS,;t t
16221 s,@SASL_STATIC_SRCS@,$SASL_STATIC_SRCS,;t t
16222 s,@SASL_STATIC_OBJS@,$SASL_STATIC_OBJS,;t t
16223 s,@SASL_STATIC_LIBS@,$SASL_STATIC_LIBS,;t t
16224 s,@plugindir@,$plugindir,;t t
16225 s,@configdir@,$configdir,;t t
16226 s,@MACOSX_TRUE@,$MACOSX_TRUE,;t t
16227 s,@MACOSX_FALSE@,$MACOSX_FALSE,;t t
16228 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
16229 s,@SFIO_INC_FLAGS@,$SFIO_INC_FLAGS,;t t
16230 s,@SFIO_LIB_FLAGS@,$SFIO_LIB_FLAGS,;t t
16231 s,@SMTPTEST_PROGRAM@,$SMTPTEST_PROGRAM,;t t
16232 s,@SASL_UTIL_LIBS_EXTRA@,$SASL_UTIL_LIBS_EXTRA,;t t
16233 s,@SASL_UTIL_HEADERS_EXTRA@,$SASL_UTIL_HEADERS_EXTRA,;t t
16234 s,@LIBOBJS@,$LIBOBJS,;t t
16235 s,@GETSUBOPT@,$GETSUBOPT,;t t
16236 s,@SNPRINTFOBJS@,$SNPRINTFOBJS,;t t
16237 s,@LTSNPRINTFOBJS@,$LTSNPRINTFOBJS,;t t
16238 s,@GETADDRINFOOBJS@,$GETADDRINFOOBJS,;t t
16239 s,@LTGETADDRINFOOBJS@,$LTGETADDRINFOOBJS,;t t
16240 s,@GETNAMEINFOOBJS@,$GETNAMEINFOOBJS,;t t
16241 s,@LTGETNAMEINFOOBJS@,$LTGETNAMEINFOOBJS,;t t
16242 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16243 s,@DIRS@,$DIRS,;t t
16244 s,@subdirs@,$subdirs,;t t
16245 CEOF
16246
16247 _ACEOF
16248
16249   cat >>$CONFIG_STATUS <<\_ACEOF
16250   # Split the substitutions into bite-sized pieces for seds with
16251   # small command number limits, like on Digital OSF/1 and HP-UX.
16252   ac_max_sed_lines=48
16253   ac_sed_frag=1 # Number of current file.
16254   ac_beg=1 # First line for current file.
16255   ac_end=$ac_max_sed_lines # Line after last line for current file.
16256   ac_more_lines=:
16257   ac_sed_cmds=
16258   while $ac_more_lines; do
16259     if test $ac_beg -gt 1; then
16260       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16261     else
16262       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16263     fi
16264     if test ! -s $tmp/subs.frag; then
16265       ac_more_lines=false
16266     else
16267       # The purpose of the label and of the branching condition is to
16268       # speed up the sed processing (if there are no `@' at all, there
16269       # is no need to browse any of the substitutions).
16270       # These are the two extra sed commands mentioned above.
16271       (echo ':t
16272   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16273       if test -z "$ac_sed_cmds"; then
16274         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16275       else
16276         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16277       fi
16278       ac_sed_frag=`expr $ac_sed_frag + 1`
16279       ac_beg=$ac_end
16280       ac_end=`expr $ac_end + $ac_max_sed_lines`
16281     fi
16282   done
16283   if test -z "$ac_sed_cmds"; then
16284     ac_sed_cmds=cat
16285   fi
16286 fi # test -n "$CONFIG_FILES"
16287
16288 _ACEOF
16289 cat >>$CONFIG_STATUS <<\_ACEOF
16290 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16291   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16292   case $ac_file in
16293   - | *:- | *:-:* ) # input from stdin
16294         cat >$tmp/stdin
16295         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16296         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16297   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16298         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16299   * )   ac_file_in=$ac_file.in ;;
16300   esac
16301
16302   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16303   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16304 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16305          X"$ac_file" : 'X\(//\)[^/]' \| \
16306          X"$ac_file" : 'X\(//\)$' \| \
16307          X"$ac_file" : 'X\(/\)' \| \
16308          .     : '\(.\)' 2>/dev/null ||
16309 echo X"$ac_file" |
16310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16311           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16312           /^X\(\/\/\)$/{ s//\1/; q; }
16313           /^X\(\/\).*/{ s//\1/; q; }
16314           s/.*/./; q'`
16315   { if $as_mkdir_p; then
16316     mkdir -p "$ac_dir"
16317   else
16318     as_dir="$ac_dir"
16319     as_dirs=
16320     while test ! -d "$as_dir"; do
16321       as_dirs="$as_dir $as_dirs"
16322       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16323 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16324          X"$as_dir" : 'X\(//\)[^/]' \| \
16325          X"$as_dir" : 'X\(//\)$' \| \
16326          X"$as_dir" : 'X\(/\)' \| \
16327          .     : '\(.\)' 2>/dev/null ||
16328 echo X"$as_dir" |
16329     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16330           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16331           /^X\(\/\/\)$/{ s//\1/; q; }
16332           /^X\(\/\).*/{ s//\1/; q; }
16333           s/.*/./; q'`
16334     done
16335     test ! -n "$as_dirs" || mkdir $as_dirs
16336   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16337 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16338    { (exit 1); exit 1; }; }; }
16339
16340   ac_builddir=.
16341
16342 if test "$ac_dir" != .; then
16343   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16344   # A "../" for each directory in $ac_dir_suffix.
16345   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16346 else
16347   ac_dir_suffix= ac_top_builddir=
16348 fi
16349
16350 case $srcdir in
16351   .)  # No --srcdir option.  We are building in place.
16352     ac_srcdir=.
16353     if test -z "$ac_top_builddir"; then
16354        ac_top_srcdir=.
16355     else
16356        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16357     fi ;;
16358   [\\/]* | ?:[\\/]* )  # Absolute path.
16359     ac_srcdir=$srcdir$ac_dir_suffix;
16360     ac_top_srcdir=$srcdir ;;
16361   *) # Relative path.
16362     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16363     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16364 esac
16365 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16366 # absolute.
16367 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16368 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16369 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16370 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16371
16372
16373   case $INSTALL in
16374   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16375   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16376   esac
16377
16378   if test x"$ac_file" != x-; then
16379     { echo "$as_me:$LINENO: creating $ac_file" >&5
16380 echo "$as_me: creating $ac_file" >&6;}
16381     rm -f "$ac_file"
16382   fi
16383   # Let's still pretend it is `configure' which instantiates (i.e., don't
16384   # use $as_me), people would be surprised to read:
16385   #    /* config.h.  Generated by config.status.  */
16386   if test x"$ac_file" = x-; then
16387     configure_input=
16388   else
16389     configure_input="$ac_file.  "
16390   fi
16391   configure_input=$configure_input"Generated from `echo $ac_file_in |
16392                                      sed 's,.*/,,'` by configure."
16393
16394   # First look for the input files in the build tree, otherwise in the
16395   # src tree.
16396   ac_file_inputs=`IFS=:
16397     for f in $ac_file_in; do
16398       case $f in
16399       -) echo $tmp/stdin ;;
16400       [\\/$]*)
16401          # Absolute (can't be DOS-style, as IFS=:)
16402          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16403 echo "$as_me: error: cannot find input file: $f" >&2;}
16404    { (exit 1); exit 1; }; }
16405          echo $f;;
16406       *) # Relative
16407          if test -f "$f"; then
16408            # Build tree
16409            echo $f
16410          elif test -f "$srcdir/$f"; then
16411            # Source tree
16412            echo $srcdir/$f
16413          else
16414            # /dev/null tree
16415            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16416 echo "$as_me: error: cannot find input file: $f" >&2;}
16417    { (exit 1); exit 1; }; }
16418          fi;;
16419       esac
16420     done` || { (exit 1); exit 1; }
16421 _ACEOF
16422 cat >>$CONFIG_STATUS <<_ACEOF
16423   sed "$ac_vpsub
16424 $extrasub
16425 _ACEOF
16426 cat >>$CONFIG_STATUS <<\_ACEOF
16427 :t
16428 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16429 s,@configure_input@,$configure_input,;t t
16430 s,@srcdir@,$ac_srcdir,;t t
16431 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16432 s,@top_srcdir@,$ac_top_srcdir,;t t
16433 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16434 s,@builddir@,$ac_builddir,;t t
16435 s,@abs_builddir@,$ac_abs_builddir,;t t
16436 s,@top_builddir@,$ac_top_builddir,;t t
16437 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16438 s,@INSTALL@,$ac_INSTALL,;t t
16439 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16440   rm -f $tmp/stdin
16441   if test x"$ac_file" != x-; then
16442     mv $tmp/out $ac_file
16443   else
16444     cat $tmp/out
16445     rm -f $tmp/out
16446   fi
16447
16448 done
16449 _ACEOF
16450 cat >>$CONFIG_STATUS <<\_ACEOF
16451
16452 #
16453 # CONFIG_HEADER section.
16454 #
16455
16456 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16457 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16458 #
16459 # ac_d sets the value in "#define NAME VALUE" lines.
16460 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
16461 ac_dB='[        ].*$,\1#\2'
16462 ac_dC=' '
16463 ac_dD=',;t'
16464 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16465 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16466 ac_uB='$,\1#\2define\3'
16467 ac_uC=' '
16468 ac_uD=',;t'
16469
16470 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16471   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16472   case $ac_file in
16473   - | *:- | *:-:* ) # input from stdin
16474         cat >$tmp/stdin
16475         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16476         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16477   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16478         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16479   * )   ac_file_in=$ac_file.in ;;
16480   esac
16481
16482   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16483 echo "$as_me: creating $ac_file" >&6;}
16484
16485   # First look for the input files in the build tree, otherwise in the
16486   # src tree.
16487   ac_file_inputs=`IFS=:
16488     for f in $ac_file_in; do
16489       case $f in
16490       -) echo $tmp/stdin ;;
16491       [\\/$]*)
16492          # Absolute (can't be DOS-style, as IFS=:)
16493          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16494 echo "$as_me: error: cannot find input file: $f" >&2;}
16495    { (exit 1); exit 1; }; }
16496          echo $f;;
16497       *) # Relative
16498          if test -f "$f"; then
16499            # Build tree
16500            echo $f
16501          elif test -f "$srcdir/$f"; then
16502            # Source tree
16503            echo $srcdir/$f
16504          else
16505            # /dev/null tree
16506            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16507 echo "$as_me: error: cannot find input file: $f" >&2;}
16508    { (exit 1); exit 1; }; }
16509          fi;;
16510       esac
16511     done` || { (exit 1); exit 1; }
16512   # Remove the trailing spaces.
16513   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
16514
16515 _ACEOF
16516
16517 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16518 # `conftest.undefs', that substitutes the proper values into
16519 # config.h.in to produce config.h.  The first handles `#define'
16520 # templates, and the second `#undef' templates.
16521 # And first: Protect against being on the right side of a sed subst in
16522 # config.status.  Protect against being in an unquoted here document
16523 # in config.status.
16524 rm -f conftest.defines conftest.undefs
16525 # Using a here document instead of a string reduces the quoting nightmare.
16526 # Putting comments in sed scripts is not portable.
16527 #
16528 # `end' is used to avoid that the second main sed command (meant for
16529 # 0-ary CPP macros) applies to n-ary macro definitions.
16530 # See the Autoconf documentation for `clear'.
16531 cat >confdef2sed.sed <<\_ACEOF
16532 s/[\\&,]/\\&/g
16533 s,[\\$`],\\&,g
16534 t clear
16535 : clear
16536 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16537 t end
16538 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16539 : end
16540 _ACEOF
16541 # If some macros were called several times there might be several times
16542 # the same #defines, which is useless.  Nevertheless, we may not want to
16543 # sort them, since we want the *last* AC-DEFINE to be honored.
16544 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16545 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16546 rm -f confdef2sed.sed
16547
16548 # This sed command replaces #undef with comments.  This is necessary, for
16549 # example, in the case of _POSIX_SOURCE, which is predefined and required
16550 # on some systems where configure will not decide to define it.
16551 cat >>conftest.undefs <<\_ACEOF
16552 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16553 _ACEOF
16554
16555 # Break up conftest.defines because some shells have a limit on the size
16556 # of here documents, and old seds have small limits too (100 cmds).
16557 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16558 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16559 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16560 echo '  :' >>$CONFIG_STATUS
16561 rm -f conftest.tail
16562 while grep . conftest.defines >/dev/null
16563 do
16564   # Write a limited-size here document to $tmp/defines.sed.
16565   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16566   # Speed up: don't consider the non `#define' lines.
16567   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
16568   # Work around the forget-to-reset-the-flag bug.
16569   echo 't clr' >>$CONFIG_STATUS
16570   echo ': clr' >>$CONFIG_STATUS
16571   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16572   echo 'CEOF
16573   sed -f $tmp/defines.sed $tmp/in >$tmp/out
16574   rm -f $tmp/in
16575   mv $tmp/out $tmp/in
16576 ' >>$CONFIG_STATUS
16577   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16578   rm -f conftest.defines
16579   mv conftest.tail conftest.defines
16580 done
16581 rm -f conftest.defines
16582 echo '  fi # grep' >>$CONFIG_STATUS
16583 echo >>$CONFIG_STATUS
16584
16585 # Break up conftest.undefs because some shells have a limit on the size
16586 # of here documents, and old seds have small limits too (100 cmds).
16587 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16588 rm -f conftest.tail
16589 while grep . conftest.undefs >/dev/null
16590 do
16591   # Write a limited-size here document to $tmp/undefs.sed.
16592   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16593   # Speed up: don't consider the non `#undef'
16594   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
16595   # Work around the forget-to-reset-the-flag bug.
16596   echo 't clr' >>$CONFIG_STATUS
16597   echo ': clr' >>$CONFIG_STATUS
16598   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16599   echo 'CEOF
16600   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16601   rm -f $tmp/in
16602   mv $tmp/out $tmp/in
16603 ' >>$CONFIG_STATUS
16604   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16605   rm -f conftest.undefs
16606   mv conftest.tail conftest.undefs
16607 done
16608 rm -f conftest.undefs
16609
16610 cat >>$CONFIG_STATUS <<\_ACEOF
16611   # Let's still pretend it is `configure' which instantiates (i.e., don't
16612   # use $as_me), people would be surprised to read:
16613   #    /* config.h.  Generated by config.status.  */
16614   if test x"$ac_file" = x-; then
16615     echo "/* Generated by configure.  */" >$tmp/config.h
16616   else
16617     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16618   fi
16619   cat $tmp/in >>$tmp/config.h
16620   rm -f $tmp/in
16621   if test x"$ac_file" != x-; then
16622     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16623       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16624 echo "$as_me: $ac_file is unchanged" >&6;}
16625     else
16626       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16627 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16628          X"$ac_file" : 'X\(//\)[^/]' \| \
16629          X"$ac_file" : 'X\(//\)$' \| \
16630          X"$ac_file" : 'X\(/\)' \| \
16631          .     : '\(.\)' 2>/dev/null ||
16632 echo X"$ac_file" |
16633     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16634           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16635           /^X\(\/\/\)$/{ s//\1/; q; }
16636           /^X\(\/\).*/{ s//\1/; q; }
16637           s/.*/./; q'`
16638       { if $as_mkdir_p; then
16639     mkdir -p "$ac_dir"
16640   else
16641     as_dir="$ac_dir"
16642     as_dirs=
16643     while test ! -d "$as_dir"; do
16644       as_dirs="$as_dir $as_dirs"
16645       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16646 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16647          X"$as_dir" : 'X\(//\)[^/]' \| \
16648          X"$as_dir" : 'X\(//\)$' \| \
16649          X"$as_dir" : 'X\(/\)' \| \
16650          .     : '\(.\)' 2>/dev/null ||
16651 echo X"$as_dir" |
16652     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16653           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16654           /^X\(\/\/\)$/{ s//\1/; q; }
16655           /^X\(\/\).*/{ s//\1/; q; }
16656           s/.*/./; q'`
16657     done
16658     test ! -n "$as_dirs" || mkdir $as_dirs
16659   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16660 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16661    { (exit 1); exit 1; }; }; }
16662
16663       rm -f $ac_file
16664       mv $tmp/config.h $ac_file
16665     fi
16666   else
16667     cat $tmp/config.h
16668     rm -f $tmp/config.h
16669   fi
16670 # Compute $ac_file's index in $config_headers.
16671 _am_stamp_count=1
16672 for _am_header in $config_headers :; do
16673   case $_am_header in
16674     $ac_file | $ac_file:* )
16675       break ;;
16676     * )
16677       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16678   esac
16679 done
16680 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16681 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16682          X$ac_file : 'X\(//\)[^/]' \| \
16683          X$ac_file : 'X\(//\)$' \| \
16684          X$ac_file : 'X\(/\)' \| \
16685          .     : '\(.\)' 2>/dev/null ||
16686 echo X$ac_file |
16687     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16688           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16689           /^X\(\/\/\)$/{ s//\1/; q; }
16690           /^X\(\/\).*/{ s//\1/; q; }
16691           s/.*/./; q'`/stamp-h$_am_stamp_count
16692 done
16693 _ACEOF
16694 cat >>$CONFIG_STATUS <<\_ACEOF
16695
16696 #
16697 # CONFIG_COMMANDS section.
16698 #
16699 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16700   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16701   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16702   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16703 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16704          X"$ac_dest" : 'X\(//\)[^/]' \| \
16705          X"$ac_dest" : 'X\(//\)$' \| \
16706          X"$ac_dest" : 'X\(/\)' \| \
16707          .     : '\(.\)' 2>/dev/null ||
16708 echo X"$ac_dest" |
16709     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16710           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16711           /^X\(\/\/\)$/{ s//\1/; q; }
16712           /^X\(\/\).*/{ s//\1/; q; }
16713           s/.*/./; q'`
16714   ac_builddir=.
16715
16716 if test "$ac_dir" != .; then
16717   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16718   # A "../" for each directory in $ac_dir_suffix.
16719   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16720 else
16721   ac_dir_suffix= ac_top_builddir=
16722 fi
16723
16724 case $srcdir in
16725   .)  # No --srcdir option.  We are building in place.
16726     ac_srcdir=.
16727     if test -z "$ac_top_builddir"; then
16728        ac_top_srcdir=.
16729     else
16730        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16731     fi ;;
16732   [\\/]* | ?:[\\/]* )  # Absolute path.
16733     ac_srcdir=$srcdir$ac_dir_suffix;
16734     ac_top_srcdir=$srcdir ;;
16735   *) # Relative path.
16736     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16737     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16738 esac
16739 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16740 # absolute.
16741 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16742 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16743 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16744 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16745
16746
16747   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16748 echo "$as_me: executing $ac_dest commands" >&6;}
16749   case $ac_dest in
16750     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16751   # Strip MF so we end up with the name of the file.
16752   mf=`echo "$mf" | sed -e 's/:.*$//'`
16753   # Check whether this is an Automake generated Makefile or not.
16754   # We used to match only the files named `Makefile.in', but
16755   # some people rename them; so instead we look at the file content.
16756   # Grep'ing the first line is not enough: some people post-process
16757   # each Makefile.in and add a new line on top of each file to say so.
16758   # So let's grep whole file.
16759   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16760     dirpart=`(dirname "$mf") 2>/dev/null ||
16761 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16762          X"$mf" : 'X\(//\)[^/]' \| \
16763          X"$mf" : 'X\(//\)$' \| \
16764          X"$mf" : 'X\(/\)' \| \
16765          .     : '\(.\)' 2>/dev/null ||
16766 echo X"$mf" |
16767     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16768           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16769           /^X\(\/\/\)$/{ s//\1/; q; }
16770           /^X\(\/\).*/{ s//\1/; q; }
16771           s/.*/./; q'`
16772   else
16773     continue
16774   fi
16775   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
16776   # Extract the definition of DEP_FILES from the Makefile without
16777   # running `make'.
16778   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
16779   test -z "$DEPDIR" && continue
16780   # When using ansi2knr, U may be empty or an underscore; expand it
16781   U=`sed -n -e '/^U = / s///p' < "$mf"`
16782   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
16783   # We invoke sed twice because it is the simplest approach to
16784   # changing $(DEPDIR) to its actual value in the expansion.
16785   for file in `sed -n -e '
16786     /^DEP_FILES = .*\\\\$/ {
16787       s/^DEP_FILES = //
16788       :loop
16789         s/\\\\$//
16790         p
16791         n
16792         /\\\\$/ b loop
16793       p
16794     }
16795     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
16796        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16797     # Make sure the directory exists.
16798     test -f "$dirpart/$file" && continue
16799     fdir=`(dirname "$file") 2>/dev/null ||
16800 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16801          X"$file" : 'X\(//\)[^/]' \| \
16802          X"$file" : 'X\(//\)$' \| \
16803          X"$file" : 'X\(/\)' \| \
16804          .     : '\(.\)' 2>/dev/null ||
16805 echo X"$file" |
16806     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16807           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16808           /^X\(\/\/\)$/{ s//\1/; q; }
16809           /^X\(\/\).*/{ s//\1/; q; }
16810           s/.*/./; q'`
16811     { if $as_mkdir_p; then
16812     mkdir -p $dirpart/$fdir
16813   else
16814     as_dir=$dirpart/$fdir
16815     as_dirs=
16816     while test ! -d "$as_dir"; do
16817       as_dirs="$as_dir $as_dirs"
16818       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16819 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16820          X"$as_dir" : 'X\(//\)[^/]' \| \
16821          X"$as_dir" : 'X\(//\)$' \| \
16822          X"$as_dir" : 'X\(/\)' \| \
16823          .     : '\(.\)' 2>/dev/null ||
16824 echo X"$as_dir" |
16825     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16826           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16827           /^X\(\/\/\)$/{ s//\1/; q; }
16828           /^X\(\/\).*/{ s//\1/; q; }
16829           s/.*/./; q'`
16830     done
16831     test ! -n "$as_dirs" || mkdir $as_dirs
16832   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16833 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16834    { (exit 1); exit 1; }; }; }
16835
16836     # echo "creating $dirpart/$file"
16837     echo '# dummy' > "$dirpart/$file"
16838   done
16839 done
16840  ;;
16841   esac
16842 done
16843 _ACEOF
16844
16845 cat >>$CONFIG_STATUS <<\_ACEOF
16846
16847 { (exit 0); exit 0; }
16848 _ACEOF
16849 chmod +x $CONFIG_STATUS
16850 ac_clean_files=$ac_clean_files_save
16851
16852
16853 # configure is writing to config.log, and then calls config.status.
16854 # config.status does its own redirection, appending to config.log.
16855 # Unfortunately, on DOS this fails, as config.log is still kept open
16856 # by configure, so config.status won't be able to write to it; its
16857 # output is simply discarded.  So we exec the FD to /dev/null,
16858 # effectively closing config.log, so it can be properly (re)opened and
16859 # appended to by config.status.  When coming back to configure, we
16860 # need to make the FD available again.
16861 if test "$no_create" != yes; then
16862   ac_cs_success=:
16863   ac_config_status_args=
16864   test "$silent" = yes &&
16865     ac_config_status_args="$ac_config_status_args --quiet"
16866   exec 5>/dev/null
16867   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16868   exec 5>>config.log
16869   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16870   # would make configure fail if this is the last instruction.
16871   $ac_cs_success || { (exit 1); exit 1; }
16872 fi
16873
16874 #
16875 # CONFIG_SUBDIRS section.
16876 #
16877 if test "$no_recursion" != yes; then
16878
16879   # Remove --cache-file and --srcdir arguments so they do not pile up.
16880   ac_sub_configure_args=
16881   ac_prev=
16882   for ac_arg in $ac_configure_args; do
16883     if test -n "$ac_prev"; then
16884       ac_prev=
16885       continue
16886     fi
16887     case $ac_arg in
16888     -cache-file | --cache-file | --cache-fil | --cache-fi \
16889     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16890       ac_prev=cache_file ;;
16891     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16892     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16893     | --c=*)
16894       ;;
16895     --config-cache | -C)
16896       ;;
16897     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16898       ac_prev=srcdir ;;
16899     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16900       ;;
16901     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16902       ac_prev=prefix ;;
16903     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16904       ;;
16905     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
16906     esac
16907   done
16908
16909   # Always prepend --prefix to ensure using the same prefix
16910   # in subdir configurations.
16911   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
16912
16913   ac_popdir=`pwd`
16914   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16915
16916     # Do not complain, so a configure script can configure whichever
16917     # parts of a large source tree are present.
16918     test -d $srcdir/$ac_dir || continue
16919
16920     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
16921 echo "$as_me: configuring in $ac_dir" >&6;}
16922     { if $as_mkdir_p; then
16923     mkdir -p "$ac_dir"
16924   else
16925     as_dir="$ac_dir"
16926     as_dirs=
16927     while test ! -d "$as_dir"; do
16928       as_dirs="$as_dir $as_dirs"
16929       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16930 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16931          X"$as_dir" : 'X\(//\)[^/]' \| \
16932          X"$as_dir" : 'X\(//\)$' \| \
16933          X"$as_dir" : 'X\(/\)' \| \
16934          .     : '\(.\)' 2>/dev/null ||
16935 echo X"$as_dir" |
16936     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16937           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16938           /^X\(\/\/\)$/{ s//\1/; q; }
16939           /^X\(\/\).*/{ s//\1/; q; }
16940           s/.*/./; q'`
16941     done
16942     test ! -n "$as_dirs" || mkdir $as_dirs
16943   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16944 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16945    { (exit 1); exit 1; }; }; }
16946
16947     ac_builddir=.
16948
16949 if test "$ac_dir" != .; then
16950   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16951   # A "../" for each directory in $ac_dir_suffix.
16952   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16953 else
16954   ac_dir_suffix= ac_top_builddir=
16955 fi
16956
16957 case $srcdir in
16958   .)  # No --srcdir option.  We are building in place.
16959     ac_srcdir=.
16960     if test -z "$ac_top_builddir"; then
16961        ac_top_srcdir=.
16962     else
16963        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16964     fi ;;
16965   [\\/]* | ?:[\\/]* )  # Absolute path.
16966     ac_srcdir=$srcdir$ac_dir_suffix;
16967     ac_top_srcdir=$srcdir ;;
16968   *) # Relative path.
16969     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16970     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16971 esac
16972 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16973 # absolute.
16974 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16975 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16976 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16977 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16978
16979
16980     cd $ac_dir
16981
16982     # Check for guested configure; otherwise get Cygnus style configure.
16983     if test -f $ac_srcdir/configure.gnu; then
16984       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
16985     elif test -f $ac_srcdir/configure; then
16986       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
16987     elif test -f $ac_srcdir/configure.in; then
16988       ac_sub_configure=$ac_configure
16989     else
16990       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
16991 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16992       ac_sub_configure=
16993     fi
16994
16995     # The recursion is here.
16996     if test -n "$ac_sub_configure"; then
16997       # Make the cache file name correct relative to the subdirectory.
16998       case $cache_file in
16999       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17000       *) # Relative path.
17001         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
17002       esac
17003
17004       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
17005 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17006       # The eval makes quoting arguments work.
17007       eval $ac_sub_configure $ac_sub_configure_args \
17008            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
17009         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
17010 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
17011    { (exit 1); exit 1; }; }
17012     fi
17013
17014     cd $ac_popdir
17015   done
17016 fi
17017
17018
17019 echo Configuration Complete.  Type \'make\' to build.