2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
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 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
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 \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
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
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
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
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
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
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; }; }
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).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
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"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
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`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
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}
266 # Identity of this package.
273 ac_unique_file="lib/saslint.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
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'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
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'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
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 ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
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" ;;
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'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
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 ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
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 ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
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 ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
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 ;;
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 ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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 ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
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 ;;
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 ;;
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 ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
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 ;;
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 ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
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'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
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" ;;
609 # Obsolete; use --with-x.
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 ;;
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 ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
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'"
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}
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; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
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
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
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.
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
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
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 ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
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; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
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}
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
775 # Report the --help message.
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.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
788 Defaults for the options are specified in brackets.
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 \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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'.
815 For better control, use the options below.
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]
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
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]
846 if test -n "$ac_init_help"; then
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]
884 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
885 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
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]
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>
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.
935 if test "$ac_init_help" = "recursive"; then
936 # If there are subdirs, report their specific --help.
938 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
939 test -d $ac_dir || continue
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'`
947 ac_dir_suffix= ac_top_builddir=
951 .) # No --srcdir option. We are building in place.
953 if test -z "$ac_top_builddir"; then
956 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
958 [\\/]* | ?:[\\/]* ) # Absolute path.
959 ac_srcdir=$srcdir$ac_dir_suffix;
960 ac_top_srcdir=$srcdir ;;
962 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
963 ac_top_srcdir=$ac_top_builddir$srcdir ;;
965 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
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`
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
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.
1004 This file contains any messages produced by compilers while
1005 running configure, to aid debugging if configure makes a mistake.
1007 It was created by $as_me, which was
1008 generated by GNU Autoconf 2.57. Invocation command line was
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`
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`
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`
1038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1042 test -z "$as_dir" && as_dir=.
1043 echo "PATH: $as_dir"
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.
1067 ac_must_keep_next=false
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)
1077 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1078 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1081 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
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.
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 ;;
1096 -* ) ac_must_keep_next=true ;;
1099 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1100 # Get rid of the leading space.
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; }
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.
1120 ## ---------------- ##
1121 ## Cache variables. ##
1122 ## ---------------- ##
1125 # The following way of writing the cache mishandles newlines in values,
1128 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1131 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1136 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1143 ## ----------------- ##
1144 ## Output variables. ##
1145 ## ----------------- ##
1148 for ac_var in $ac_subst_vars
1150 eval ac_val=$`echo $ac_var`
1151 echo "$ac_var='"'"'$ac_val'"'"'"
1155 if test -n "$ac_subst_files"; then
1162 for ac_var in $ac_subst_files
1164 eval ac_val=$`echo $ac_var`
1165 echo "$ac_var='"'"'$ac_val'"'"'"
1170 if test -s confdefs.h; then
1177 sed "/^$/d" confdefs.h | sort
1180 test "$ac_signal" != 0 &&
1181 echo "$as_me: caught signal $ac_signal"
1182 echo "$as_me: exit $exit_status"
1184 rm -f core core.* *.core &&
1185 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1188 for ac_signal in 1 2 13 15; do
1189 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
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.
1198 # Predefined preprocessor variables.
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_NAME "$PACKAGE_NAME"
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_STRING "$PACKAGE_STRING"
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
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"
1231 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
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
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;}
1250 [\\/]* | ?:[\\/]* ) . $cache_file;;
1251 *) . ./$cache_file;;
1255 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1256 echo "$as_me: creating cache $cache_file" >&6;}
1260 # Check that the precious variables saved in the cache have kept the same
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
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=: ;;
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=: ;;
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=:
1290 # Pass precious variables to config.status.
1291 if test "$ac_new_set" = set; then
1293 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1294 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1295 *) ac_arg=$ac_var=$ac_new_val ;;
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'" ;;
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; }; }
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
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;}
1346 [\\/]* | ?:[\\/]* ) . $cache_file;;
1347 *) . ./$cache_file;;
1351 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1352 echo "$as_me: creating cache $cache_file" >&6;}
1359 for ac_dir in config $srcdir/config; do
1360 if test -f $ac_dir/install-sh; then
1362 ac_install_sh="$ac_aux_dir/install-sh -c"
1364 elif test -f $ac_dir/install.sh; then
1366 ac_install_sh="$ac_aux_dir/install.sh -c"
1368 elif test -f $ac_dir/shtool; then
1370 ac_install_sh="$ac_aux_dir/shtool install -c"
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; }; }
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.
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; }; }
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
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; }; }
1407 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1408 echo "${ECHO_T}$ac_cv_build" >&6
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/'`
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
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; }; }
1429 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1430 echo "${ECHO_T}$ac_cv_host" >&6
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/'`
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
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; }; }
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/'`
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" = \
1464 program_prefix=${target_alias}-
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
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
1485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489 test -z "$as_dir" && as_dir=.
1490 # Account for people who put trailing slashes in PATH elements.
1492 ./ | .// | /cC/* | \
1493 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
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
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.
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.
1511 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1523 if test "${ac_cv_path_install+set}" = set; then
1524 INSTALL=$ac_cv_path_install
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
1533 echo "$as_me:$LINENO: result: $INSTALL" >&5
1534 echo "${ECHO_T}$INSTALL" >&6
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}'
1540 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1542 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
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
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
1555 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1556 if test "$*" = "X"; then
1558 set X `ls -t $srcdir/configure conftest.file`
1561 if test "$*" != "X $srcdir/configure conftest.file" \
1562 && test "$*" != "X conftest.file $srcdir/configure"; then
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; }; }
1575 test "$2" = conftest.file
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; }; }
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,$//
1599 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1603 # expand $ac_aux_dir to an absolute path
1604 am_aux_dir=`cd $ac_aux_dir && pwd`
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 "
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;}
1616 for ac_prog in gawk mawk nawk awk
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
1625 if test -n "$AWK"; then
1626 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1645 if test -n "$AWK"; then
1646 echo "$as_me:$LINENO: result: $AWK" >&5
1647 echo "${ECHO_T}$AWK" >&6
1649 echo "$as_me:$LINENO: result: no" >&5
1650 echo "${ECHO_T}no" >&6
1653 test -n "$AWK" && break
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
1662 cat >conftest.make <<\_ACEOF
1664 @echo 'ac_maketemp="$(MAKE)"'
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
1671 eval ac_cv_prog_make_${ac_make}_set=no
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
1680 echo "$as_me:$LINENO: result: no" >&5
1681 echo "${ECHO_T}no" >&6
1682 SET_MAKE="MAKE=${MAKE-make}"
1685 rm -rf .tst 2>/dev/null
1686 mkdir .tst 2>/dev/null
1687 if test -d .tst; then
1692 rmdir .tst 2>/dev/null
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; }; }
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'
1712 # Define the identity of the package.
1717 cat >>confdefs.h <<_ACEOF
1718 #define PACKAGE "$PACKAGE"
1722 cat >>confdefs.h <<_ACEOF
1723 #define VERSION "$VERSION"
1726 # Some tools Automake needs.
1728 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1731 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1734 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1737 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1740 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1743 AMTAR=${AMTAR-"${am_missing_run}tar"}
1745 install_sh=${install_sh-"$am_aux_dir/install-sh"}
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
1760 if test -n "$STRIP"; then
1761 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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
1784 echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1789 if test -z "$ac_cv_prog_STRIP"; then
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
1798 if test -n "$ac_ct_STRIP"; then
1799 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1815 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
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
1823 echo "$as_me:$LINENO: result: no" >&5
1824 echo "${ECHO_T}no" >&6
1829 STRIP="$ac_cv_prog_STRIP"
1833 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1835 # We need awk for the "check" target. The system "awk" is bad on
1842 ACLOCAL="$ACLOCAL -I \$(top_srcdir)/cmulocal"
1845 # and include our config dir scripts
1846 ACLOCAL="$ACLOCAL -I \$(top_srcdir)/config"
1850 # Check whether --enable-cmulocal or --disable-cmulocal was given.
1851 if test "${enable_cmulocal+set}" = set; then
1852 enableval="$enable_cmulocal"
1858 # Check whether --enable-sample or --disable-sample was given.
1859 if test "${enable_sample+set}" = set; then
1860 enableval="$enable_sample"
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
1877 if test -n "$CC"; then
1878 ac_cv_prog_CC="$CC" # Let the user override the test.
1880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1897 if test -n "$CC"; then
1898 echo "$as_me:$LINENO: result: $CC" >&5
1899 echo "${ECHO_T}$CC" >&6
1901 echo "$as_me:$LINENO: result: no" >&5
1902 echo "${ECHO_T}no" >&6
1906 if test -z "$ac_cv_prog_CC"; then
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
1915 if test -n "$ac_ct_CC"; then
1916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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
1939 echo "$as_me:$LINENO: result: no" >&5
1940 echo "${ECHO_T}no" >&6
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
1957 if test -n "$CC"; then
1958 ac_cv_prog_CC="$CC" # Let the user override the test.
1960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1977 if test -n "$CC"; then
1978 echo "$as_me:$LINENO: result: $CC" >&5
1979 echo "${ECHO_T}$CC" >&6
1981 echo "$as_me:$LINENO: result: no" >&5
1982 echo "${ECHO_T}no" >&6
1986 if test -z "$ac_cv_prog_CC"; then
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
1995 if test -n "$ac_ct_CC"; then
1996 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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
2019 echo "$as_me:$LINENO: result: no" >&5
2020 echo "${ECHO_T}no" >&6
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
2037 if test -n "$CC"; then
2038 ac_cv_prog_CC="$CC" # Let the user override the test.
2041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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
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.
2068 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2074 if test -n "$CC"; then
2075 echo "$as_me:$LINENO: result: $CC" >&5
2076 echo "${ECHO_T}$CC" >&6
2078 echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2083 if test -z "$CC"; then
2084 if test -n "$ac_tool_prefix"; then
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
2094 if test -n "$CC"; then
2095 ac_cv_prog_CC="$CC" # Let the user override the test.
2097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2114 if test -n "$CC"; then
2115 echo "$as_me:$LINENO: result: $CC" >&5
2116 echo "${ECHO_T}$CC" >&6
2118 echo "$as_me:$LINENO: result: no" >&5
2119 echo "${ECHO_T}no" >&6
2122 test -n "$CC" && break
2125 if test -z "$CC"; then
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
2136 if test -n "$ac_ct_CC"; then
2137 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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
2160 echo "$as_me:$LINENO: result: no" >&5
2161 echo "${ECHO_T}no" >&6
2164 test -n "$ac_ct_CC" && break
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; }; }
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
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
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
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }
2199 cat >conftest.$ac_ext <<_ACEOF
2200 #line $LINENO "configure"
2203 cat confdefs.h >>conftest.$ac_ext
2204 cat >>conftest.$ac_ext <<_ACEOF
2205 /* end confdefs.h. */
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
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
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
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.
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
2238 test -f "$ac_file" || continue
2240 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2243 # This is the source file.
2246 # We found the default executable, but exeext='' is most
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.
2261 echo "$as_me: failed program was:" >&5
2262 sed 's/^/| /' conftest.$ac_ext >&5
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; }; }
2271 ac_exeext=$ac_cv_exeext
2272 echo "$as_me:$LINENO: result: $ac_file" >&5
2273 echo "${ECHO_T}$ac_file" >&6
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
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; }; then
2290 if test "$cross_compiling" = maybe; then
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; }; }
2303 echo "$as_me:$LINENO: result: yes" >&5
2304 echo "${ECHO_T}yes" >&6
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
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
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
2326 for ac_file in conftest.exe conftest conftest.*; do
2327 test -f "$ac_file" || continue
2329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2330 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
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; }; }
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
2348 rm -f conftest.$ac_ext
2349 EXEEXT=$ac_cv_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
2356 cat >conftest.$ac_ext <<_ACEOF
2357 #line $LINENO "configure"
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h. */
2372 rm -f conftest.o conftest.obj
2373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2374 (eval $ac_compile) 2>&5
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
2380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2381 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2386 echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
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; }; }
2396 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2398 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2399 echo "${ECHO_T}$ac_cv_objext" >&6
2400 OBJEXT=$ac_cv_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
2407 cat >conftest.$ac_ext <<_ACEOF
2408 #line $LINENO "configure"
2411 cat confdefs.h >>conftest.$ac_ext
2412 cat >>conftest.$ac_ext <<_ACEOF
2413 /* end confdefs.h. */
2426 rm -f conftest.$ac_objext
2427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2428 (eval $ac_compile) 2>&5
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
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }; }; then
2440 echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2445 rm -f conftest.$ac_objext conftest.$ac_ext
2446 ac_cv_c_compiler_gnu=$ac_compiler_gnu
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
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
2460 cat >conftest.$ac_ext <<_ACEOF
2461 #line $LINENO "configure"
2464 cat confdefs.h >>conftest.$ac_ext
2465 cat >>conftest.$ac_ext <<_ACEOF
2466 /* end confdefs.h. */
2476 rm -f conftest.$ac_objext
2477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2478 (eval $ac_compile) 2>&5
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
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; }; then
2490 echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2495 rm -f conftest.$ac_objext conftest.$ac_ext
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
2508 if test "$GCC" = yes; then
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
2519 ac_cv_prog_cc_stdc=no
2521 cat >conftest.$ac_ext <<_ACEOF
2522 #line $LINENO "configure"
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.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)
2541 static char *f (char * (*g) (char **, int), char **p, ...)
2546 s = g (p, va_arg (v,int));
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);
2559 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
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__"
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
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
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; }; then
2586 ac_cv_prog_cc_stdc=$ac_arg
2589 echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2593 rm -f conftest.$ac_objext
2595 rm -f conftest.$ac_ext conftest.$ac_objext
2600 case "x$ac_cv_prog_cc_stdc" in
2602 echo "$as_me:$LINENO: result: none needed" >&5
2603 echo "${ECHO_T}none needed" >&6 ;;
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" ;;
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
2619 rm -f conftest.$ac_objext
2620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621 (eval $ac_compile) 2>&5
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
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; }; then
2631 for ac_declaration in \
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);' \
2640 cat >conftest.$ac_ext <<_ACEOF
2641 #line $LINENO "configure"
2644 cat confdefs.h >>conftest.$ac_ext
2645 cat >>conftest.$ac_ext <<_ACEOF
2646 /* end confdefs.h. */
2657 rm -f conftest.$ac_objext
2658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659 (eval $ac_compile) 2>&5
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
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; }; then
2671 echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2676 rm -f conftest.$ac_objext conftest.$ac_ext
2677 cat >conftest.$ac_ext <<_ACEOF
2678 #line $LINENO "configure"
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2693 rm -f conftest.$ac_objext
2694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2695 (eval $ac_compile) 2>&5
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
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }; }; then
2707 echo "$as_me: failed program was:" >&5
2708 sed 's/^/| /' conftest.$ac_ext >&5
2711 rm -f conftest.$ac_objext conftest.$ac_ext
2714 if test -n "$ac_declaration"; then
2715 echo '#ifdef __cplusplus' >>confdefs.h
2716 echo $ac_declaration >>confdefs.h
2717 echo '#endif' >>confdefs.h
2721 echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2725 rm -f conftest.$ac_objext conftest.$ac_ext
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"
2733 ac_config_commands="$ac_config_commands depfiles"
2736 am_make=${MAKE-make}
2737 cat > confinc << '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
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
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
2771 echo "$as_me:$LINENO: result: $_am_result" >&5
2772 echo "${ECHO_T}$_am_result" >&6
2773 rm -f confinc confmf
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"
2780 if test "x$enable_dependency_tracking" != xno; then
2781 am_depcomp="$ac_aux_dir/depcomp"
2786 if test "x$enable_dependency_tracking" != xno; then
2797 depcc="$CC" am_compiler_list=
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
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
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
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
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`
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.
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.
2836 for i in 1 2 3 4 5 6; do
2837 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2840 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
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
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
2878 am_cv_CC_dependencies_compiler_type=none
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
2889 test "x$enable_dependency_tracking" != xno \
2890 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2892 am__fastdepCC_FALSE='#'
2894 am__fastdepCC_TRUE='#'
2895 am__fastdepCC_FALSE=
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
2910 if test -z "$CPP"; then
2911 if test "${ac_cv_prog_CPP+set}" = set; then
2912 echo $ECHO_N "(cached) $ECHO_C" >&6
2914 # Double quotes because CPP needs to be expanded
2915 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2918 for ac_c_preproc_warn_flag in '' yes
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"
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h. */
2934 # include <limits.h>
2936 # include <assert.h>
2940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2943 grep -v '^ *+' conftest.er1 >conftest.err
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
2956 if test -z "$ac_cpp_err"; then
2959 echo "$as_me: failed program was:" >&5
2960 sed 's/^/| /' conftest.$ac_ext >&5
2962 # Broken: fails on valid input.
2965 rm -f conftest.err conftest.$ac_ext
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"
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h. */
2976 #include <ac_nonexistent.h>
2978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2981 grep -v '^ *+' conftest.er1 >conftest.err
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
2994 if test -z "$ac_cpp_err"; then
2995 # Broken: success on invalid input.
2998 echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3001 # Passes both tests.
3005 rm -f conftest.err conftest.$ac_ext
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
3022 echo "$as_me:$LINENO: result: $CPP" >&5
3023 echo "${ECHO_T}$CPP" >&6
3025 for ac_c_preproc_warn_flag in '' yes
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"
3037 cat confdefs.h >>conftest.$ac_ext
3038 cat >>conftest.$ac_ext <<_ACEOF
3039 /* end confdefs.h. */
3041 # include <limits.h>
3043 # include <assert.h>
3047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3050 grep -v '^ *+' conftest.er1 >conftest.err
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
3063 if test -z "$ac_cpp_err"; then
3066 echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3069 # Broken: fails on valid input.
3072 rm -f conftest.err conftest.$ac_ext
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"
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h. */
3083 #include <ac_nonexistent.h>
3085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3088 grep -v '^ *+' conftest.er1 >conftest.err
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
3101 if test -z "$ac_cpp_err"; then
3102 # Broken: success on invalid input.
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3108 # Passes both tests.
3112 rm -f conftest.err conftest.$ac_ext
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
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; }; }
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
3133 for ac_prog in gawk mawk nawk awk
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
3142 if test -n "$AWK"; then
3143 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
3162 if test -n "$AWK"; then
3163 echo "$as_me:$LINENO: result: $AWK" >&5
3164 echo "${ECHO_T}$AWK" >&6
3166 echo "$as_me:$LINENO: result: no" >&5
3167 echo "${ECHO_T}no" >&6
3170 test -n "$AWK" && break
3173 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3174 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3176 if test "$LN_S" = "ln -s"; then
3177 echo "$as_me:$LINENO: result: yes" >&5
3178 echo "${ECHO_T}yes" >&6
3180 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3181 echo "${ECHO_T}no, using $LN_S" >&6
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
3190 cat >conftest.make <<\_ACEOF
3192 @echo 'ac_maketemp="$(MAKE)"'
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
3199 eval ac_cv_prog_make_${ac_make}_set=no
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
3208 echo "$as_me:$LINENO: result: no" >&5
3209 echo "${ECHO_T}no" >&6
3210 SET_MAKE="MAKE=${MAKE-make}"
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
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
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 test -z "$as_dir" && as_dir=.
3236 # Account for people who put trailing slashes in PATH elements.
3238 ./ | .// | /cC/* | \
3239 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
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
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.
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.
3257 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3269 if test "${ac_cv_path_install+set}" = set; then
3270 INSTALL=$ac_cv_path_install
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
3279 echo "$as_me:$LINENO: result: $INSTALL" >&5
3280 echo "${ECHO_T}$INSTALL" >&6
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}'
3286 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3288 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
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
3298 cat >conftest.$ac_ext <<_ACEOF
3299 #line $LINENO "configure"
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3312 static void foo(void) __attribute__ ((noreturn));
3324 rm -f conftest.$ac_objext
3325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3326 (eval $ac_compile) 2>&5
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
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); }; }; then
3336 ac_cv___attribute__=yes
3338 echo "$as_me: failed program was:" >&5
3339 sed 's/^/| /' conftest.$ac_ext >&5
3341 ac_cv___attribute__=no
3343 rm -f conftest.$ac_objext conftest.$ac_ext
3346 if test "$ac_cv___attribute__" = "yes"; then
3348 cat >>confdefs.h <<\_ACEOF
3349 #define HAVE___ATTRIBUTE__ 1
3353 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3354 echo "${ECHO_T}$ac_cv___attribute__" >&6
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
3366 SAVE_LDFLAGS="${LDFLAGS}"
3367 LDFLAGS="-R /usr/lib"
3368 cat >conftest.$ac_ext <<_ACEOF
3369 #line $LINENO "configure"
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
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
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
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }; }; then
3396 andrew_runpath_switch="-R"
3398 echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3402 LDFLAGS="-Wl,-rpath,/usr/lib"
3403 cat >conftest.$ac_ext <<_ACEOF
3404 #line $LINENO "configure"
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h. */
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
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
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; }; then
3431 andrew_runpath_switch="-Wl,-rpath,"
3433 echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3436 andrew_runpath_switch="none"
3438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3442 LDFLAGS="${SAVE_LDFLAGS}"
3445 echo "$as_me:$LINENO: result: $andrew_runpath_switch" >&5
3446 echo "${ECHO_T}$andrew_runpath_switch" >&6
3449 # Check whether --with-staticsasl or --without-staticsasl was given.
3450 if test "${with_staticsasl+set}" = set; then
3451 withval="$with_staticsasl"
3454 if test "$with_staticsasl" = yes; then
3460 if test -z "$target"; then
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 ;;
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
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 ;;
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
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 ;;
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
3529 enable_fast_install=yes
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
3539 if test -n "$RANLIB"; then
3540 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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
3563 echo "$as_me:$LINENO: result: no" >&5
3564 echo "${ECHO_T}no" >&6
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
3577 if test -n "$ac_ct_RANLIB"; then
3578 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
3594 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
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
3602 echo "$as_me:$LINENO: result: no" >&5
3603 echo "${ECHO_T}no" >&6
3606 RANLIB=$ac_ct_RANLIB
3608 RANLIB="$ac_cv_prog_RANLIB"
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
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`
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%/%"`
3634 test -z "$LD" && LD="$ac_prog"
3637 # If it fails, then pretend we aren't using GCC.
3641 # If it is relative, then search for the first ld in PATH.
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
3649 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3650 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3652 if test "${ac_cv_path_LD+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
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
3667 test "$with_gnu_ld" != yes && break
3673 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3678 if test -n "$LD"; then
3679 echo "$as_me:$LINENO: result: $LD" >&5
3680 echo "${ECHO_T}$LD" >&6
3682 echo "$as_me:$LINENO: result: no" >&5
3683 echo "${ECHO_T}no" >&6
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
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
3697 ac_cv_prog_gnu_ld=no
3700 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3701 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
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
3709 if test -n "$NM"; then
3710 # Let the user override the test.
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"
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"
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
3733 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3738 echo "$as_me:$LINENO: result: $NM" >&5
3739 echo "${ECHO_T}$NM" >&6
3743 NONE) lt_target="$host" ;;
3744 *) lt_target="$target" ;;
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"
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"
3761 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3762 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3764 # Some flags need to be propagated to the compiler or linker for good
3766 case "$lt_target" in
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
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); }; then
3775 case "`/usr/bin/file conftest.o`" in
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
3799 cat >conftest.$ac_ext <<_ACEOF
3800 #line $LINENO "configure"
3803 cat confdefs.h >>conftest.$ac_ext
3804 cat >>conftest.$ac_ext <<_ACEOF
3805 /* end confdefs.h. */
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
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
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); }; }; then
3827 lt_cv_cc_needs_belf=yes
3829 echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3832 lt_cv_cc_needs_belf=no
3834 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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"
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.
3856 # config.status only pays attention to the cache file if you give it
3857 # the --recheck option to rerun configure.
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
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.
3872 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3874 # `set' does not quote correctly, so add quotes (double-quote
3875 # substitution turns \\\\ into \\, and sed turns \\ into \).
3878 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3881 # `set' quotes correctly as required by POSIX, so do not add quotes.
3883 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3890 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3892 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
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
3899 echo "not updating unwritable cache $cache_file"
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; }; }
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;}
3923 [\\/]* | ?:[\\/]* ) . $cache_file;;
3924 *) . ./$cache_file;;
3928 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3929 echo "$as_me: creating cache $cache_file" >&6;}
3934 # This can be used to rebuild libtool when needed
3935 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3937 # Always use our own libtool.
3938 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
3947 if test "$enable_static" = yes; then
3948 SASL_STATIC_LIBS=libsasl2.a
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
3958 enable_staticdlopen=no
3961 if test "$enable_staticdlopen" = yes; then
3963 cat >>confdefs.h <<\_ACEOF
3964 #define TRY_DLOPEN_WHEN_STATIC
3969 if test "$ac_cv_c_compiler_gnu" = yes; then
3970 CFLAGS="-Wall -W ${CFLAGS}"
3974 # Check whether --with-purecov or --without-purecov was given.
3975 if test "${with_purecov+set}" = set; then
3976 withval="$with_purecov"
3979 if test "$with_purecov" = yes; then
3980 for ac_prog in purecov
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
3989 if test -n "$PURECOV"; then
3990 ac_cv_prog_PURECOV="$PURECOV" # Let the user override the test.
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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
4013 echo "$as_me:$LINENO: result: no" >&5
4014 echo "${ECHO_T}no" >&6
4017 test -n "$PURECOV" && break
4022 # Check whether --with-purify or --without-purify was given.
4023 if test "${with_purify+set}" = set; then
4024 withval="$with_purify"
4027 if test "$with_purify" = yes; then
4028 for ac_prog in purify
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
4037 if test -n "$PURIFY"; then
4038 ac_cv_prog_PURIFY="$PURIFY" # Let the user override the test.
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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
4061 echo "$as_me:$LINENO: result: no" >&5
4062 echo "${ECHO_T}no" >&6
4065 test -n "$PURIFY" && break
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
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
4087 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
4104 test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="no"
4108 JAVAC=$ac_cv_path_JAVAC
4110 if test -n "$JAVAC"; then
4111 echo "$as_me:$LINENO: result: $JAVAC" >&5
4112 echo "${ECHO_T}$JAVAC" >&6
4114 echo "$as_me:$LINENO: result: no" >&5
4115 echo "${ECHO_T}no" >&6
4118 for ac_prog in javah kaffeh
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
4129 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
4149 JAVAH=$ac_cv_path_JAVAH
4151 if test -n "$JAVAH"; then
4152 echo "$as_me:$LINENO: result: $JAVAH" >&5
4153 echo "${ECHO_T}$JAVAH" >&6
4155 echo "$as_me:$LINENO: result: no" >&5
4156 echo "${ECHO_T}no" >&6
4159 test -n "$JAVAH" && break
4161 test -n "$JAVAH" || JAVAH="no"
4163 for ac_prog in javadoc
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
4172 if test -n "$JAVADOC"; then
4173 ac_cv_prog_JAVADOC="$JAVADOC" # Let the user override the test.
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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
4196 echo "$as_me:$LINENO: result: no" >&5
4197 echo "${ECHO_T}no" >&6
4200 test -n "$JAVADOC" && break
4202 test -n "$JAVADOC" || JAVADOC=":"
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;}
4210 # Make distcheck work
4217 if test "$enable_java" = yes; then
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
4233 if test `echo $JAVAH | sed 's,.*/,,'` = "kaffeh"; then
4234 sasl_cv_java_includes=-I`echo $JAVAH | sed -e 's,/bin.*,/include/kaffe,'`
4236 java_base=`echo $JAVAC | sed 's,/bin.*,'','`
4239 # Check whether --with-javabase or --without-javabase was given.
4240 if test "${with_javabase+set}" = set; then
4241 withval="$with_javabase"
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"
4252 sasl_cv_java_includes="${sasl_cv_java_includes} -I$javapath/include"
4256 JAVA_INCLUDES=$sasl_cv_java_includes
4258 echo "$as_me:$LINENO: result: ok" >&5
4259 echo "${ECHO_T}ok" >&6
4263 JAVAC=`echo "$JAVAC" | sed 's,.*/,,'`
4264 JAVAH=`echo "$JAVAH" | sed 's,.*/,,'`
4269 if test "$enable_sample" = yes; then
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
4286 cat >conftest.$ac_ext <<_ACEOF
4287 #line $LINENO "configure"
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. */
4298 # include <limits.h>
4300 # include <assert.h>
4302 /* Override any gcc2 internal prototype to avoid an error. */
4307 /* We use char because int might match the return type of a gcc2
4308 builtin and then its argument prototype would still apply. */
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)
4316 char (*f) () = connect;
4325 return f != connect;
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
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
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; }; then
4342 ac_cv_func_connect=yes
4344 echo "$as_me: failed program was:" >&5
4345 sed 's/^/| /' conftest.$ac_ext >&5
4347 ac_cv_func_connect=no
4349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
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
4361 ac_check_lib_save_LIBS=$LIBS
4363 cat >conftest.$ac_ext <<_ACEOF
4364 #line $LINENO "configure"
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4371 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; }; then
4398 ac_cv_lib_nsl_gethostbyname=yes
4400 echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4403 ac_cv_lib_nsl_gethostbyname=no
4405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4406 LIBS=$ac_check_lib_save_LIBS
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"
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
4419 ac_check_lib_save_LIBS=$LIBS
4420 LIBS="-lsocket $LIBS"
4421 cat >conftest.$ac_ext <<_ACEOF
4422 #line $LINENO "configure"
4425 cat confdefs.h >>conftest.$ac_ext
4426 cat >>conftest.$ac_ext <<_ACEOF
4427 /* end confdefs.h. */
4429 /* Override any gcc2 internal prototype to avoid an error. */
4433 /* We use char because int might match the return type of a gcc2
4434 builtin and then its argument prototype would still apply. */
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
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
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; }; then
4456 ac_cv_lib_socket_connect=yes
4458 echo "$as_me: failed program was:" >&5
4459 sed 's/^/| /' conftest.$ac_ext >&5
4461 ac_cv_lib_socket_connect=no
4463 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4464 LIBS=$ac_check_lib_save_LIBS
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"
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
4481 cat >conftest.$ac_ext <<_ACEOF
4482 #line $LINENO "configure"
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. */
4493 # include <limits.h>
4495 # include <assert.h>
4497 /* Override any gcc2 internal prototype to avoid an error. */
4502 /* We use char because int might match the return type of a gcc2
4503 builtin and then its argument prototype would still apply. */
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)
4511 char (*f) () = res_search;
4520 return f != res_search;
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
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
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; }; then
4537 ac_cv_func_res_search=yes
4539 echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4542 ac_cv_func_res_search=no
4544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
4551 LIBS="-lresolv $LIB_SOCKET $save_LIBS"
4552 cat >conftest.$ac_ext <<_ACEOF
4553 #line $LINENO "configure"
4556 cat confdefs.h >>conftest.$ac_ext
4557 cat >>conftest.$ac_ext <<_ACEOF
4558 /* end confdefs.h. */
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>
4571 const char host[12]="openafs.org";
4573 res_search( host, C_IN, T_MX, (u_char *)&ans, sizeof(ans));
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
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
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; }; then
4592 LIB_SOCKET="-lresolv $LIB_SOCKET"
4594 echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4602 LIBS="$LIB_SOCKET $save_LIBS"
4605 for ac_func in dn_expand dns_lookup
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
4613 cat >conftest.$ac_ext <<_ACEOF
4614 #line $LINENO "configure"
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. */
4625 # include <limits.h>
4627 # include <assert.h>
4629 /* Override any gcc2 internal prototype to avoid an error. */
4634 /* We use char because int might match the return type of a gcc2
4635 builtin and then its argument prototype would still apply. */
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)
4643 char (*f) () = $ac_func;
4652 return f != $ac_func;
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
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
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; }; then
4669 eval "$as_ac_var=yes"
4671 echo "$as_me: failed program was:" >&5
4672 sed 's/^/| /' conftest.$ac_ext >&5
4674 eval "$as_ac_var=no"
4676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
4694 # Check whether --with-dbpath or --without-dbpath was given.
4695 if test "${with_dbpath+set}" = set; then
4696 withval="$with_dbpath"
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
4706 cat >>confdefs.h <<_ACEOF
4707 #define SASL_DB_PATH "$dbpath"
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
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'
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
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
4731 cat >conftest.$ac_ext <<_ACEOF
4732 #line $LINENO "configure"
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4751 rm -f conftest.$ac_objext
4752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4753 (eval $ac_compile) 2>&5
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
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }; }; then
4763 ac_cv_header_stdc=yes
4765 echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.$ac_ext >&5
4768 ac_cv_header_stdc=no
4770 rm -f conftest.$ac_objext conftest.$ac_ext
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"
4778 cat confdefs.h >>conftest.$ac_ext
4779 cat >>conftest.$ac_ext <<_ACEOF
4780 /* end confdefs.h. */
4784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4785 $EGREP "memchr" >/dev/null 2>&1; then
4788 ac_cv_header_stdc=no
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"
4800 cat confdefs.h >>conftest.$ac_ext
4801 cat >>conftest.$ac_ext <<_ACEOF
4802 /* end confdefs.h. */
4806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4807 $EGREP "free" >/dev/null 2>&1; then
4810 ac_cv_header_stdc=no
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
4821 cat >conftest.$ac_ext <<_ACEOF
4822 #line $LINENO "configure"
4825 cat confdefs.h >>conftest.$ac_ext
4826 cat >>conftest.$ac_ext <<_ACEOF
4827 /* end confdefs.h. */
4829 #if ((' ' & 0x0FF) == 0x020)
4830 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4831 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
4840 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4845 for (i = 0; i < 256; i++)
4846 if (XOR (islower (i), ISLOWER (i))
4847 || toupper (i) != TOUPPER (i))
4852 rm -f conftest$ac_exeext
4853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4854 (eval $ac_link) 2>&5
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
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); }; }; then
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
4870 ac_cv_header_stdc=no
4872 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
4880 cat >>confdefs.h <<\_ACEOF
4881 #define STDC_HEADERS 1
4886 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
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
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
4905 cat >conftest.$ac_ext <<_ACEOF
4906 #line $LINENO "configure"
4909 cat confdefs.h >>conftest.$ac_ext
4910 cat >>conftest.$ac_ext <<_ACEOF
4911 /* end confdefs.h. */
4912 $ac_includes_default
4914 #include <$ac_header>
4916 rm -f conftest.$ac_objext
4917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4918 (eval $ac_compile) 2>&5
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
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; }; then
4928 eval "$as_ac_Header=yes"
4930 echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4933 eval "$as_ac_Header=no"
4935 rm -f conftest.$ac_objext conftest.$ac_ext
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
4950 cmu_save_LIBS="$LIBS"
4952 # Check whether --with-dblib or --without-dblib was given.
4953 if test "${with_dblib+set}" = set; then
4954 withval="$with_dblib"
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
4967 test "${with_bdb_lib+set}" = set || with_bdb_lib=none
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
4975 test "${with_bdb_inc+set}" = set || with_bdb_inc=none
4986 cmu_save_CPPFLAGS=$CPPFLAGS
4988 if test -d $with_bdb_inc; then
4989 CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
4990 BDB_INCADD="-I$with_bdb_inc"
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
5001 echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
5002 echo "${ECHO_T}$ac_cv_header_db_h" >&6
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"
5011 cat confdefs.h >>conftest.$ac_ext
5012 cat >>conftest.$ac_ext <<_ACEOF
5013 /* end confdefs.h. */
5014 $ac_includes_default
5017 rm -f conftest.$ac_objext
5018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5019 (eval $ac_compile) 2>&5
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
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; }; then
5029 ac_header_compiler=yes
5031 echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.$ac_ext >&5
5034 ac_header_compiler=no
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
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"
5047 cat confdefs.h >>conftest.$ac_ext
5048 cat >>conftest.$ac_ext <<_ACEOF
5049 /* end confdefs.h. */
5052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5055 grep -v '^ *+' conftest.er1 >conftest.err
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
5068 if test -z "$ac_cpp_err"; then
5069 ac_header_preproc=yes
5071 echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5074 ac_header_preproc=no
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
5080 # So? What about this header?
5081 case $ac_header_compiler:$ac_header_preproc in
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;}
5089 ## ------------------------------------ ##
5090 ## Report this to bug-autoconf@gnu.org. ##
5091 ## ------------------------------------ ##
5094 sed "s/^/$as_me: WARNING: /" >&2
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;}
5105 ## ------------------------------------ ##
5106 ## Report this to bug-autoconf@gnu.org. ##
5107 ## ------------------------------------ ##
5110 sed "s/^/$as_me: WARNING: /" >&2
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
5118 ac_cv_header_db_h=$ac_header_preproc
5120 echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
5121 echo "${ECHO_T}$ac_cv_header_db_h" >&6
5124 if test $ac_cv_header_db_h = yes; then
5126 BDB_SAVE_LDFLAGS=$LDFLAGS
5128 if test -d $with_bdb_lib; then
5130 # this is CMU ADD LIBPATH TO
5131 if test "$andrew_runpath_switch" = "none" ; then
5132 LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
5134 LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
5138 # this is CMU ADD LIBPATH TO
5139 if test "$andrew_runpath_switch" = "none" ; then
5140 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
5142 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
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
5152 LIBS="$saved_LIBS -l$dbname"
5153 cat >conftest.$ac_ext <<_ACEOF
5154 #line $LINENO "configure"
5157 cat confdefs.h >>conftest.$ac_ext
5158 cat >>conftest.$ac_ext <<_ACEOF
5159 /* end confdefs.h. */
5164 db_create(NULL, NULL, 0);
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
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
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); }; }; then
5181 BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
5183 echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5189 if test "$dblib" = "berkeley"; then break; fi
5191 if test "$dblib" = "no"; then
5192 LIBS="$saved_LIBS -ldb"
5193 cat >conftest.$ac_ext <<_ACEOF
5194 #line $LINENO "configure"
5197 cat confdefs.h >>conftest.$ac_ext
5198 cat >>conftest.$ac_ext <<_ACEOF
5199 /* end confdefs.h. */
5204 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
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
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
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); }; }; then
5221 BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
5223 echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5232 LDFLAGS=$BDB_SAVE_LDFLAGS
5240 CPPFLAGS=$cmu_save_CPPFLAGS
5242 CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
5243 SASL_DB_INC=$BDB_INCADD
5244 SASL_DB_LIB="${BDB_LIBADD}"
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}"
5254 case "$with_gdbm" in
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
5262 echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
5263 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6
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"
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h. */
5275 $ac_includes_default
5278 rm -f conftest.$ac_objext
5279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5280 (eval $ac_compile) 2>&5
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
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); }; }; then
5290 ac_header_compiler=yes
5292 echo "$as_me: failed program was:" >&5
5293 sed 's/^/| /' conftest.$ac_ext >&5
5295 ac_header_compiler=no
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
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"
5308 cat confdefs.h >>conftest.$ac_ext
5309 cat >>conftest.$ac_ext <<_ACEOF
5310 /* end confdefs.h. */
5313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5316 grep -v '^ *+' conftest.er1 >conftest.err
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
5329 if test -z "$ac_cpp_err"; then
5330 ac_header_preproc=yes
5332 echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5335 ac_header_preproc=no
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
5341 # So? What about this header?
5342 case $ac_header_compiler:$ac_header_preproc in
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;}
5350 ## ------------------------------------ ##
5351 ## Report this to bug-autoconf@gnu.org. ##
5352 ## ------------------------------------ ##
5355 sed "s/^/$as_me: WARNING: /" >&2
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;}
5366 ## ------------------------------------ ##
5367 ## Report this to bug-autoconf@gnu.org. ##
5368 ## ------------------------------------ ##
5371 sed "s/^/$as_me: WARNING: /" >&2
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
5379 ac_cv_header_gdbm_h=$ac_header_preproc
5381 echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
5382 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6
5385 if test $ac_cv_header_gdbm_h = yes; then
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
5392 ac_check_lib_save_LIBS=$LIBS
5394 cat >conftest.$ac_ext <<_ACEOF
5395 #line $LINENO "configure"
5398 cat confdefs.h >>conftest.$ac_ext
5399 cat >>conftest.$ac_ext <<_ACEOF
5400 /* end confdefs.h. */
5402 /* Override any gcc2 internal prototype to avoid an error. */
5406 /* We use char because int might match the return type of a gcc2
5407 builtin and then its argument prototype would still apply. */
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
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
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); }; }; then
5429 ac_cv_lib_gdbm_gdbm_open=yes
5431 echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5434 ac_cv_lib_gdbm_gdbm_open=no
5436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5437 LIBS=$ac_check_lib_save_LIBS
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"
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"
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
5470 echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
5471 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6
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"
5480 cat confdefs.h >>conftest.$ac_ext
5481 cat >>conftest.$ac_ext <<_ACEOF
5482 /* end confdefs.h. */
5483 $ac_includes_default
5486 rm -f conftest.$ac_objext
5487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5488 (eval $ac_compile) 2>&5
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
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); }; }; then
5498 ac_header_compiler=yes
5500 echo "$as_me: failed program was:" >&5
5501 sed 's/^/| /' conftest.$ac_ext >&5
5503 ac_header_compiler=no
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
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"
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h. */
5521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5524 grep -v '^ *+' conftest.er1 >conftest.err
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
5537 if test -z "$ac_cpp_err"; then
5538 ac_header_preproc=yes
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5543 ac_header_preproc=no
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
5549 # So? What about this header?
5550 case $ac_header_compiler:$ac_header_preproc in
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;}
5558 ## ------------------------------------ ##
5559 ## Report this to bug-autoconf@gnu.org. ##
5560 ## ------------------------------------ ##
5563 sed "s/^/$as_me: WARNING: /" >&2
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;}
5574 ## ------------------------------------ ##
5575 ## Report this to bug-autoconf@gnu.org. ##
5576 ## ------------------------------------ ##
5579 sed "s/^/$as_me: WARNING: /" >&2
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
5587 ac_cv_header_ndbm_h=$ac_header_preproc
5589 echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
5590 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6
5593 if test $ac_cv_header_ndbm_h = yes; then
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
5600 ac_check_lib_save_LIBS=$LIBS
5602 cat >conftest.$ac_ext <<_ACEOF
5603 #line $LINENO "configure"
5606 cat confdefs.h >>conftest.$ac_ext
5607 cat >>conftest.$ac_ext <<_ACEOF
5608 /* end confdefs.h. */
5610 /* Override any gcc2 internal prototype to avoid an error. */
5614 /* We use char because int might match the return type of a gcc2
5615 builtin and then its argument prototype would still apply. */
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
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
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); }; }; then
5637 ac_cv_lib_ndbm_dbm_open=yes
5639 echo "$as_me: failed program was:" >&5
5640 sed 's/^/| /' conftest.$ac_ext >&5
5642 ac_cv_lib_ndbm_dbm_open=no
5644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5645 LIBS=$ac_check_lib_save_LIBS
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"
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
5658 cat >conftest.$ac_ext <<_ACEOF
5659 #line $LINENO "configure"
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. */
5670 # include <limits.h>
5672 # include <assert.h>
5674 /* Override any gcc2 internal prototype to avoid an error. */
5679 /* We use char because int might match the return type of a gcc2
5680 builtin and then its argument prototype would still apply. */
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)
5688 char (*f) () = dbm_open;
5697 return f != dbm_open;
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
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
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; }; then
5714 ac_cv_func_dbm_open=yes
5716 echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.$ac_ext >&5
5719 ac_cv_func_dbm_open=no
5721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
5743 cmu_save_CPPFLAGS=$CPPFLAGS
5745 if test -d $with_bdb_inc; then
5746 CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
5747 BDB_INCADD="-I$with_bdb_inc"
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
5758 echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
5759 echo "${ECHO_T}$ac_cv_header_db_h" >&6
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"
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h. */
5771 $ac_includes_default
5774 rm -f conftest.$ac_objext
5775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5776 (eval $ac_compile) 2>&5
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
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); }; }; then
5786 ac_header_compiler=yes
5788 echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5791 ac_header_compiler=no
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
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"
5804 cat confdefs.h >>conftest.$ac_ext
5805 cat >>conftest.$ac_ext <<_ACEOF
5806 /* end confdefs.h. */
5809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5812 grep -v '^ *+' conftest.er1 >conftest.err
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
5825 if test -z "$ac_cpp_err"; then
5826 ac_header_preproc=yes
5828 echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5831 ac_header_preproc=no
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
5837 # So? What about this header?
5838 case $ac_header_compiler:$ac_header_preproc in
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;}
5846 ## ------------------------------------ ##
5847 ## Report this to bug-autoconf@gnu.org. ##
5848 ## ------------------------------------ ##
5851 sed "s/^/$as_me: WARNING: /" >&2
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;}
5862 ## ------------------------------------ ##
5863 ## Report this to bug-autoconf@gnu.org. ##
5864 ## ------------------------------------ ##
5867 sed "s/^/$as_me: WARNING: /" >&2
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
5875 ac_cv_header_db_h=$ac_header_preproc
5877 echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
5878 echo "${ECHO_T}$ac_cv_header_db_h" >&6
5881 if test $ac_cv_header_db_h = yes; then
5883 BDB_SAVE_LDFLAGS=$LDFLAGS
5885 if test -d $with_bdb_lib; then
5887 # this is CMU ADD LIBPATH TO
5888 if test "$andrew_runpath_switch" = "none" ; then
5889 LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
5891 LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
5895 # this is CMU ADD LIBPATH TO
5896 if test "$andrew_runpath_switch" = "none" ; then
5897 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
5899 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
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
5909 LIBS="$saved_LIBS -l$dbname"
5910 cat >conftest.$ac_ext <<_ACEOF
5911 #line $LINENO "configure"
5914 cat confdefs.h >>conftest.$ac_ext
5915 cat >>conftest.$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5921 db_create(NULL, NULL, 0);
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
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
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); }; }; then
5938 BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
5940 echo "$as_me: failed program was:" >&5
5941 sed 's/^/| /' conftest.$ac_ext >&5
5945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5946 if test "$dblib" = "berkeley"; then break; fi
5948 if test "$dblib" = "no"; then
5949 LIBS="$saved_LIBS -ldb"
5950 cat >conftest.$ac_ext <<_ACEOF
5951 #line $LINENO "configure"
5954 cat confdefs.h >>conftest.$ac_ext
5955 cat >>conftest.$ac_ext <<_ACEOF
5956 /* end confdefs.h. */
5961 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
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
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
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; }; then
5978 BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
5980 echo "$as_me: failed program was:" >&5
5981 sed 's/^/| /' conftest.$ac_ext >&5
5985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5989 LDFLAGS=$BDB_SAVE_LDFLAGS
5997 CPPFLAGS=$cmu_save_CPPFLAGS
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
6006 echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
6007 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6
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"
6016 cat confdefs.h >>conftest.$ac_ext
6017 cat >>conftest.$ac_ext <<_ACEOF
6018 /* end confdefs.h. */
6019 $ac_includes_default
6022 rm -f conftest.$ac_objext
6023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6024 (eval $ac_compile) 2>&5
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
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }; }; then
6034 ac_header_compiler=yes
6036 echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6039 ac_header_compiler=no
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
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"
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h. */
6057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6060 grep -v '^ *+' conftest.er1 >conftest.err
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
6073 if test -z "$ac_cpp_err"; then
6074 ac_header_preproc=yes
6076 echo "$as_me: failed program was:" >&5
6077 sed 's/^/| /' conftest.$ac_ext >&5
6079 ac_header_preproc=no
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
6085 # So? What about this header?
6086 case $ac_header_compiler:$ac_header_preproc in
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;}
6094 ## ------------------------------------ ##
6095 ## Report this to bug-autoconf@gnu.org. ##
6096 ## ------------------------------------ ##
6099 sed "s/^/$as_me: WARNING: /" >&2
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;}
6110 ## ------------------------------------ ##
6111 ## Report this to bug-autoconf@gnu.org. ##
6112 ## ------------------------------------ ##
6115 sed "s/^/$as_me: WARNING: /" >&2
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
6123 ac_cv_header_ndbm_h=$ac_header_preproc
6125 echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
6126 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6
6129 if test $ac_cv_header_ndbm_h = yes; then
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
6136 ac_check_lib_save_LIBS=$LIBS
6138 cat >conftest.$ac_ext <<_ACEOF
6139 #line $LINENO "configure"
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h. */
6146 /* Override any gcc2 internal prototype to avoid an error. */
6150 /* We use char because int might match the return type of a gcc2
6151 builtin and then its argument prototype would still apply. */
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
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
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; }; then
6173 ac_cv_lib_ndbm_dbm_open=yes
6175 echo "$as_me: failed program was:" >&5
6176 sed 's/^/| /' conftest.$ac_ext >&5
6178 ac_cv_lib_ndbm_dbm_open=no
6180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6181 LIBS=$ac_check_lib_save_LIBS
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"
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
6202 cat >conftest.$ac_ext <<_ACEOF
6203 #line $LINENO "configure"
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. */
6214 # include <limits.h>
6216 # include <assert.h>
6218 /* Override any gcc2 internal prototype to avoid an error. */
6223 /* We use char because int might match the return type of a gcc2
6224 builtin and then its argument prototype would still apply. */
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)
6232 char (*f) () = dbm_open;
6241 return f != dbm_open;
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
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
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; }; then
6258 ac_cv_func_dbm_open=yes
6260 echo "$as_me: failed program was:" >&5
6261 sed 's/^/| /' conftest.$ac_ext >&5
6263 ac_cv_func_dbm_open=no
6265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
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
6284 echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
6285 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6
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"
6294 cat confdefs.h >>conftest.$ac_ext
6295 cat >>conftest.$ac_ext <<_ACEOF
6296 /* end confdefs.h. */
6297 $ac_includes_default
6300 rm -f conftest.$ac_objext
6301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6302 (eval $ac_compile) 2>&5
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
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); }; }; then
6312 ac_header_compiler=yes
6314 echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.$ac_ext >&5
6317 ac_header_compiler=no
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
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"
6330 cat confdefs.h >>conftest.$ac_ext
6331 cat >>conftest.$ac_ext <<_ACEOF
6332 /* end confdefs.h. */
6335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6338 grep -v '^ *+' conftest.er1 >conftest.err
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
6351 if test -z "$ac_cpp_err"; then
6352 ac_header_preproc=yes
6354 echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.$ac_ext >&5
6357 ac_header_preproc=no
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
6363 # So? What about this header?
6364 case $ac_header_compiler:$ac_header_preproc in
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;}
6372 ## ------------------------------------ ##
6373 ## Report this to bug-autoconf@gnu.org. ##
6374 ## ------------------------------------ ##
6377 sed "s/^/$as_me: WARNING: /" >&2
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;}
6388 ## ------------------------------------ ##
6389 ## Report this to bug-autoconf@gnu.org. ##
6390 ## ------------------------------------ ##
6393 sed "s/^/$as_me: WARNING: /" >&2
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
6401 ac_cv_header_gdbm_h=$ac_header_preproc
6403 echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
6404 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6
6407 if test $ac_cv_header_gdbm_h = yes; then
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
6414 ac_check_lib_save_LIBS=$LIBS
6416 cat >conftest.$ac_ext <<_ACEOF
6417 #line $LINENO "configure"
6420 cat confdefs.h >>conftest.$ac_ext
6421 cat >>conftest.$ac_ext <<_ACEOF
6422 /* end confdefs.h. */
6424 /* Override any gcc2 internal prototype to avoid an error. */
6428 /* We use char because int might match the return type of a gcc2
6429 builtin and then its argument prototype would still apply. */
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
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
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); }; }; then
6451 ac_cv_lib_gdbm_gdbm_open=yes
6453 echo "$as_me: failed program was:" >&5
6454 sed 's/^/| /' conftest.$ac_ext >&5
6456 ac_cv_lib_gdbm_gdbm_open=no
6458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6459 LIBS=$ac_check_lib_save_LIBS
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
6465 SASL_DB_LIB="-lgdbm"
6477 CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
6478 SASL_DB_INC=$BDB_INCADD
6479 SASL_DB_LIB="${BDB_LIBADD}"
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; }; }
6495 LIBS="$cmu_save_LIBS"
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
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"
6510 SASL_MECHS="$SASL_MECHS libsasldb.la"
6512 cat >>confdefs.h <<\_ACEOF
6518 SASL_MECHS="$SASL_MECHS libsasldb.la"
6520 cat >>confdefs.h <<\_ACEOF
6526 SASL_MECHS="$SASL_MECHS libsasldb.la"
6528 cat >>confdefs.h <<\_ACEOF
6529 #define SASL_BERKELEYDB
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"
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"
6550 cat >>confdefs.h <<\_ACEOF
6551 #define STATIC_SASLDB
6555 SASL_STATIC_OBJS="$SASL_STATIC_OBJS $SASL_DB_BACKEND_STATIC"
6556 SASL_STATIC_SRCS="$SASL_STATIC_SRCS $SASL_DB_BACKEND_STATIC_SRCS"
6568 # Do we not install the SASL DB man pages?
6571 if test "x$SASL_DB_MANS" = "x"; then
6572 NO_SASL_DB_MANS_TRUE=
6573 NO_SASL_DB_MANS_FALSE='#'
6575 NO_SASL_DB_MANS_TRUE='#'
6576 NO_SASL_DB_MANS_FALSE=
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
6588 # Disable if Berkeley DB is not used
6589 if test "$dblib" != berkeley; then
6593 if test "$keep_db_open" = yes; then
6595 cat >>confdefs.h <<\_ACEOF
6596 #define KEEP_DB_OPEN
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
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
6610 ac_check_lib_save_LIBS=$LIBS
6612 cat >conftest.$ac_ext <<_ACEOF
6613 #line $LINENO "configure"
6616 cat confdefs.h >>conftest.$ac_ext
6617 cat >>conftest.$ac_ext <<_ACEOF
6618 /* end confdefs.h. */
6620 /* Override any gcc2 internal prototype to avoid an error. */
6624 /* We use char because int might match the return type of a gcc2
6625 builtin and then its argument prototype would still apply. */
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
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
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); }; }; then
6647 ac_cv_lib_dl_dlopen=yes
6649 echo "$as_me: failed program was:" >&5
6650 sed 's/^/| /' conftest.$ac_ext >&5
6652 ac_cv_lib_dl_dlopen=no
6654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6655 LIBS=$ac_check_lib_save_LIBS
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
6669 # Check whether --with-devrandom or --without-devrandom was given.
6670 if test "${with_devrandom+set}" = set; then
6671 withval="$with_devrandom"
6674 devrandom=/dev/random
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
6681 cat >>confdefs.h <<_ACEOF
6682 #define SASL_DEV_RANDOM "$devrandom"
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
6696 if test -n "$NM"; then
6697 ac_cv_prog_NM="$NM" # Let the user override the test.
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
6716 if test -n "$NM"; then
6717 echo "$as_me:$LINENO: result: $NM" >&5
6718 echo "${ECHO_T}$NM" >&6
6720 echo "$as_me:$LINENO: result: no" >&5
6721 echo "${ECHO_T}no" >&6
6724 test -n "$NM" && break
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
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
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
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
6757 if test "$cross_compiling" = yes; then
6758 { echo "$as_me:$LINENO: WARNING: cross-compiler" >&5
6759 echo "$as_me: WARNING: cross-compiler" >&2;}
6761 cat >conftest.$ac_ext <<_ACEOF
6762 #line $LINENO "configure"
6765 cat confdefs.h >>conftest.$ac_ext
6766 cat >>conftest.$ac_ext <<_ACEOF
6767 /* end confdefs.h. */
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); }
6777 rm -f conftest$ac_exeext
6778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6779 (eval $ac_link) 2>&5
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
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); }; }; then
6788 sasl_cv_dlsym_adds_uscore=yes
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
6795 sasl_cv_dlsym_adds_uscore=no
6797 cat >>confdefs.h <<\_ACEOF
6798 #define DLSYM_NEEDS_UNDERSCORE
6802 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
6813 for ac_func in syslog
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
6821 cat >conftest.$ac_ext <<_ACEOF
6822 #line $LINENO "configure"
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. */
6833 # include <limits.h>
6835 # include <assert.h>
6837 /* Override any gcc2 internal prototype to avoid an error. */
6842 /* We use char because int might match the return type of a gcc2
6843 builtin and then its argument prototype would still apply. */
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)
6851 char (*f) () = $ac_func;
6860 return f != $ac_func;
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
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
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); }; }; then
6877 eval "$as_ac_var=yes"
6879 echo "$as_me: failed program was:" >&5
6880 sed 's/^/| /' conftest.$ac_ext >&5
6882 eval "$as_ac_var=no"
6884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
6898 # Check whether --with-pam or --without-pam was given.
6899 if test "${with_pam+set}" = set; then
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"
6912 for ac_header in security/pam_appl.h pam/pam_appl.h
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
6921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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"
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>
6937 rm -f conftest.$ac_objext
6938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6939 (eval $ac_compile) 2>&5
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
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); }; }; then
6949 ac_header_compiler=yes
6951 echo "$as_me: failed program was:" >&5
6952 sed 's/^/| /' conftest.$ac_ext >&5
6954 ac_header_compiler=no
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
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"
6967 cat confdefs.h >>conftest.$ac_ext
6968 cat >>conftest.$ac_ext <<_ACEOF
6969 /* end confdefs.h. */
6970 #include <$ac_header>
6972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6975 grep -v '^ *+' conftest.er1 >conftest.err
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
6988 if test -z "$ac_cpp_err"; then
6989 ac_header_preproc=yes
6991 echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6994 ac_header_preproc=no
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
7000 # So? What about this header?
7001 case $ac_header_compiler:$ac_header_preproc in
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;}
7009 ## ------------------------------------ ##
7010 ## Report this to bug-autoconf@gnu.org. ##
7011 ## ------------------------------------ ##
7014 sed "s/^/$as_me: WARNING: /" >&2
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;}
7025 ## ------------------------------------ ##
7026 ## Report this to bug-autoconf@gnu.org. ##
7027 ## ------------------------------------ ##
7030 sed "s/^/$as_me: WARNING: /" >&2
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
7038 eval "$as_ac_Header=$ac_header_preproc"
7040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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
7059 cat >conftest.$ac_ext <<_ACEOF
7060 #line $LINENO "configure"
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. */
7071 # include <limits.h>
7073 # include <assert.h>
7075 /* Override any gcc2 internal prototype to avoid an error. */
7080 /* We use char because int might match the return type of a gcc2
7081 builtin and then its argument prototype would still apply. */
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)
7089 char (*f) () = pam_start;
7098 return f != pam_start;
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
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
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); }; }; then
7115 ac_cv_func_pam_start=yes
7117 echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.$ac_ext >&5
7120 ac_cv_func_pam_start=no
7122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
7130 cat >conftest.$ac_ext <<_ACEOF
7131 #line $LINENO "configure"
7134 cat confdefs.h >>conftest.$ac_ext
7135 cat >>conftest.$ac_ext <<_ACEOF
7136 /* end confdefs.h. */
7138 #include <sys/types.h>
7139 #ifdef HAVE_PAM_PAM_APPL_H
7140 #include <pam/pam_appl.h>
7142 #ifdef HAVE_SECURITY_PAM_H
7143 #include <security/pam_appl.h>
7149 const char *service="foo";
7150 const char *user="bar";
7152 struct pam_conv *conv;
7154 baz = pam_start(service, user, conv, &pamh);
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
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
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); }; }; then
7175 echo "$as_me: failed program was:" >&5
7176 sed 's/^/| /' conftest.$ac_ext >&5
7179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7183 LIBS="$cmu_save_LIBS $LIBPAM"
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
7194 if test "$with_saslauthd" != no; then
7195 if test "$with_saslauthd" = yes; then
7196 with_saslauthd="/var/state/saslauthd"
7199 cat >>confdefs.h <<\_ACEOF
7200 #define HAVE_SASLAUTHD
7204 cat >>confdefs.h <<_ACEOF
7205 #define PATH_SASLAUTHD_RUNDIR "$with_saslauthd"
7211 if test "$with_saslauthd" != no; then
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
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
7232 if test "$with_authdaemon" != no; then
7233 if test "$with_authdaemon" = yes; then
7234 with_authdaemon="/dev/null"
7237 cat >>confdefs.h <<\_ACEOF
7238 #define HAVE_AUTHDAEMON
7242 cat >>confdefs.h <<_ACEOF
7243 #define PATH_AUTHDAEMON_SOCKET "$with_authdaemon"
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
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
7260 if test "$with_pwcheck" != no; then
7261 if test "$with_pwcheck" = yes; then
7262 with_pwcheck=/var/pwcheck
7265 cat >>confdefs.h <<\_ACEOF
7266 #define HAVE_PWCHECK
7270 cat >>confdefs.h <<_ACEOF
7271 #define PWCHECKDIR "$with_pwcheck"
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
7279 cat >conftest.$ac_ext <<_ACEOF
7280 #line $LINENO "configure"
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. */
7291 # include <limits.h>
7293 # include <assert.h>
7295 /* Override any gcc2 internal prototype to avoid an error. */
7300 /* We use char because int might match the return type of a gcc2
7301 builtin and then its argument prototype would still apply. */
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)
7309 char (*f) () = getspnam;
7318 return f != getspnam;
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
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
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); }; }; then
7335 ac_cv_func_getspnam=yes
7337 echo "$as_me: failed program was:" >&5
7338 sed 's/^/| /' conftest.$ac_ext >&5
7340 ac_cv_func_getspnam=no
7342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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"
7349 PWCHECKMETH="getpwnam"
7356 if test "$with_pwcheck" != no; then
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
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
7377 IPCTYPE=$with_ipctype
7380 if test "$with_ipctype" = "doors"; then
7383 cat >>confdefs.h <<\_ACEOF
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
7395 enable_alwaystrue=no
7397 if test "$enable_alwaystrue" = yes; then
7399 cat >>confdefs.h <<\_ACEOF
7400 #define HAVE_ALWAYSTRUE
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
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
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
7423 cat >>confdefs.h <<\_ACEOF
7424 #define DO_SASL_CHECKAPOP
7428 echo "$as_me:$LINENO: result: disabled" >&5
7429 echo "${ECHO_T}disabled" >&6
7432 # Check whether --enable-cram or --disable-cram was given.
7433 if test "${enable_cram+set}" = set; then
7434 enableval="$enable_cram"
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"
7450 cat >>confdefs.h <<\_ACEOF
7451 #define STATIC_CRAMMD5
7456 echo "$as_me:$LINENO: result: disabled" >&5
7457 echo "${ECHO_T}disabled" >&6
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"
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
7471 cat >conftest.$ac_ext <<_ACEOF
7472 #line $LINENO "configure"
7475 cat confdefs.h >>conftest.$ac_ext
7476 cat >>conftest.$ac_ext <<_ACEOF
7477 /* end confdefs.h. */
7478 $ac_includes_default
7490 rm -f conftest.$ac_objext
7491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7492 (eval $ac_compile) 2>&5
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
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); }; }; then
7504 echo "$as_me: failed program was:" >&5
7505 sed 's/^/| /' conftest.$ac_ext >&5
7509 rm -f conftest.$ac_objext conftest.$ac_ext
7511 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7512 echo "${ECHO_T}$ac_cv_type_long" >&6
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
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"
7530 cat confdefs.h >>conftest.$ac_ext
7531 cat >>conftest.$ac_ext <<_ACEOF
7532 /* end confdefs.h. */
7533 $ac_includes_default
7537 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7544 rm -f conftest.$ac_objext
7545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7546 (eval $ac_compile) 2>&5
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
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); }; }; then
7558 cat >conftest.$ac_ext <<_ACEOF
7559 #line $LINENO "configure"
7562 cat confdefs.h >>conftest.$ac_ext
7563 cat >>conftest.$ac_ext <<_ACEOF
7564 /* end confdefs.h. */
7565 $ac_includes_default
7569 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7576 rm -f conftest.$ac_objext
7577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7578 (eval $ac_compile) 2>&5
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
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); }; }; then
7588 ac_hi=$ac_mid; break
7590 echo "$as_me: failed program was:" >&5
7591 sed 's/^/| /' conftest.$ac_ext >&5
7593 ac_lo=`expr $ac_mid + 1`
7594 if test $ac_lo -le $ac_mid; then
7598 ac_mid=`expr 2 '*' $ac_mid + 1`
7600 rm -f conftest.$ac_objext conftest.$ac_ext
7603 echo "$as_me: failed program was:" >&5
7604 sed 's/^/| /' conftest.$ac_ext >&5
7606 cat >conftest.$ac_ext <<_ACEOF
7607 #line $LINENO "configure"
7610 cat confdefs.h >>conftest.$ac_ext
7611 cat >>conftest.$ac_ext <<_ACEOF
7612 /* end confdefs.h. */
7613 $ac_includes_default
7617 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7624 rm -f conftest.$ac_objext
7625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7626 (eval $ac_compile) 2>&5
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
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; }; then
7638 cat >conftest.$ac_ext <<_ACEOF
7639 #line $LINENO "configure"
7642 cat confdefs.h >>conftest.$ac_ext
7643 cat >>conftest.$ac_ext <<_ACEOF
7644 /* end confdefs.h. */
7645 $ac_includes_default
7649 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7656 rm -f conftest.$ac_objext
7657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7658 (eval $ac_compile) 2>&5
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
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; }; then
7668 ac_lo=$ac_mid; break
7670 echo "$as_me: failed program was:" >&5
7671 sed 's/^/| /' conftest.$ac_ext >&5
7673 ac_hi=`expr '(' $ac_mid ')' - 1`
7674 if test $ac_mid -le $ac_hi; then
7678 ac_mid=`expr 2 '*' $ac_mid`
7680 rm -f conftest.$ac_objext conftest.$ac_ext
7683 echo "$as_me: failed program was:" >&5
7684 sed 's/^/| /' conftest.$ac_ext >&5
7688 rm -f conftest.$ac_objext conftest.$ac_ext
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"
7698 cat confdefs.h >>conftest.$ac_ext
7699 cat >>conftest.$ac_ext <<_ACEOF
7700 /* end confdefs.h. */
7701 $ac_includes_default
7705 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7712 rm -f conftest.$ac_objext
7713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7714 (eval $ac_compile) 2>&5
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
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); }; }; then
7726 echo "$as_me: failed program was:" >&5
7727 sed 's/^/| /' conftest.$ac_ext >&5
7729 ac_lo=`expr '(' $ac_mid ')' + 1`
7731 rm -f conftest.$ac_objext conftest.$ac_ext
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; }; } ;;
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; }; }
7749 cat >conftest.$ac_ext <<_ACEOF
7750 #line $LINENO "configure"
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)); }
7765 FILE *f = fopen ("conftest.val", "w");
7768 if (((long) (sizeof (long))) < 0)
7770 long i = longval ();
7771 if (i != ((long) (sizeof (long))))
7773 fprintf (f, "%ld\n", i);
7777 unsigned long i = ulongval ();
7778 if (i != ((long) (sizeof (long))))
7780 fprintf (f, "%lu\n", i);
7782 exit (ferror (f) || fclose (f) != 0);
7788 rm -f conftest$ac_exeext
7789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7790 (eval $ac_link) 2>&5
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
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; }; then
7799 ac_cv_sizeof_long=`cat conftest.val`
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
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; }; }
7812 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
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
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
7839 if test $ac_cv_sizeof_long -eq 8 ; then
7840 test -d /usr/lib64 && ac_cv_cmu_lib_subdir=lib64
7843 ac_cv_cmu_lib_subdir=$with_lib_subdir
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
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
7862 save_CPPFLAGS=$CPPFLAGS
7863 save_LDFLAGS=$LDFLAGS
7865 if test -d $with_openssl; then
7866 CPPFLAGS="${CPPFLAGS} -I${with_openssl}/include"
7868 # this is CMU ADD LIBPATH
7869 if test "$andrew_runpath_switch" = "none" ; then
7870 LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
7872 LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR $andrew_runpath_switch${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
7877 case "$with_openssl" in
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
7887 ac_check_lib_save_LIBS=$LIBS
7888 LIBS="-lrsaref $LIBS"
7889 cat >conftest.$ac_ext <<_ACEOF
7890 #line $LINENO "configure"
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h. */
7897 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
7907 RSAPublicEncrypt ();
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
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
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); }; }; then
7924 ac_cv_lib_rsaref_RSAPublicEncrypt=yes
7926 echo "$as_me: failed program was:" >&5
7927 sed 's/^/| /' conftest.$ac_ext >&5
7929 ac_cv_lib_rsaref_RSAPublicEncrypt=no
7931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7932 LIBS=$ac_check_lib_save_LIBS
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
7943 ac_check_lib_save_LIBS=$LIBS
7944 LIBS="-lRSAglue $LIBS"
7945 cat >conftest.$ac_ext <<_ACEOF
7946 #line $LINENO "configure"
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h. */
7953 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
7963 RSAPublicEncrypt ();
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
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
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); }; }; then
7980 ac_cv_lib_RSAglue_RSAPublicEncrypt=yes
7982 echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.$ac_ext >&5
7985 ac_cv_lib_RSAglue_RSAPublicEncrypt=no
7987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7988 LIBS=$ac_check_lib_save_LIBS
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"
7995 LIB_RSAREF="-lrsaref"
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
8009 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
8010 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6
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"
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>
8025 rm -f conftest.$ac_objext
8026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8027 (eval $ac_compile) 2>&5
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
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; }; then
8037 ac_header_compiler=yes
8039 echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.$ac_ext >&5
8042 ac_header_compiler=no
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
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"
8055 cat confdefs.h >>conftest.$ac_ext
8056 cat >>conftest.$ac_ext <<_ACEOF
8057 /* end confdefs.h. */
8058 #include <openssl/evp.h>
8060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8063 grep -v '^ *+' conftest.er1 >conftest.err
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
8076 if test -z "$ac_cpp_err"; then
8077 ac_header_preproc=yes
8079 echo "$as_me: failed program was:" >&5
8080 sed 's/^/| /' conftest.$ac_ext >&5
8082 ac_header_preproc=no
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
8088 # So? What about this header?
8089 case $ac_header_compiler:$ac_header_preproc in
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;}
8097 ## ------------------------------------ ##
8098 ## Report this to bug-autoconf@gnu.org. ##
8099 ## ------------------------------------ ##
8102 sed "s/^/$as_me: WARNING: /" >&2
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;}
8113 ## ------------------------------------ ##
8114 ## Report this to bug-autoconf@gnu.org. ##
8115 ## ------------------------------------ ##
8118 sed "s/^/$as_me: WARNING: /" >&2
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
8126 ac_cv_header_openssl_evp_h=$ac_header_preproc
8128 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
8129 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6
8132 if test $ac_cv_header_openssl_evp_h = yes; then
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
8139 ac_check_lib_save_LIBS=$LIBS
8140 LIBS="-lcrypto $LIB_RSAREF $LIBS"
8141 cat >conftest.$ac_ext <<_ACEOF
8142 #line $LINENO "configure"
8145 cat confdefs.h >>conftest.$ac_ext
8146 cat >>conftest.$ac_ext <<_ACEOF
8147 /* end confdefs.h. */
8149 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); }; }; then
8176 ac_cv_lib_crypto_EVP_DigestInit=yes
8178 echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.$ac_ext >&5
8181 ac_cv_lib_crypto_EVP_DigestInit=no
8183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8184 LIBS=$ac_check_lib_save_LIBS
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
8202 if test "$with_openssl" != "no"; then
8204 cat >>confdefs.h <<\_ACEOF
8205 #define HAVE_OPENSSL
8209 CPPFLAGS=$save_CPPFLAGS
8210 LDFLAGS=$save_LDFLAGS
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
8220 # Check whether --with-des or --without-des was given.
8221 if test "${with_des+set}" = set; then
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"
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
8241 ac_check_lib_save_LIBS=$LIBS
8242 LIBS="-lcrypto $LIB_RSAREF $LIBS"
8243 cat >conftest.$ac_ext <<_ACEOF
8244 #line $LINENO "configure"
8247 cat confdefs.h >>conftest.$ac_ext
8248 cat >>conftest.$ac_ext <<_ACEOF
8249 /* end confdefs.h. */
8251 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); }; }; then
8278 ac_cv_lib_crypto_des_cbc_encrypt=yes
8280 echo "$as_me: failed program was:" >&5
8281 sed 's/^/| /' conftest.$ac_ext >&5
8283 ac_cv_lib_crypto_des_cbc_encrypt=no
8285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8286 LIBS=$ac_check_lib_save_LIBS
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
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
8298 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
8299 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6
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"
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>
8314 rm -f conftest.$ac_objext
8315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8316 (eval $ac_compile) 2>&5
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
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); }; }; then
8326 ac_header_compiler=yes
8328 echo "$as_me: failed program was:" >&5
8329 sed 's/^/| /' conftest.$ac_ext >&5
8331 ac_header_compiler=no
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
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"
8344 cat confdefs.h >>conftest.$ac_ext
8345 cat >>conftest.$ac_ext <<_ACEOF
8346 /* end confdefs.h. */
8347 #include <openssl/des.h>
8349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8352 grep -v '^ *+' conftest.er1 >conftest.err
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
8365 if test -z "$ac_cpp_err"; then
8366 ac_header_preproc=yes
8368 echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8371 ac_header_preproc=no
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
8377 # So? What about this header?
8378 case $ac_header_compiler:$ac_header_preproc in
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;}
8386 ## ------------------------------------ ##
8387 ## Report this to bug-autoconf@gnu.org. ##
8388 ## ------------------------------------ ##
8391 sed "s/^/$as_me: WARNING: /" >&2
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;}
8402 ## ------------------------------------ ##
8403 ## Report this to bug-autoconf@gnu.org. ##
8404 ## ------------------------------------ ##
8407 sed "s/^/$as_me: WARNING: /" >&2
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
8415 ac_cv_header_openssl_des_h=$ac_header_preproc
8417 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
8418 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6
8421 if test $ac_cv_header_openssl_des_h = yes; then
8423 cat >>confdefs.h <<\_ACEOF
8424 #define WITH_SSL_DES
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
8445 ac_check_lib_save_LIBS=$LIBS
8446 LIBS="-lcrypto $LIB_RSAREF $LIBS"
8447 cat >conftest.$ac_ext <<_ACEOF
8448 #line $LINENO "configure"
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h. */
8455 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; }; then
8482 ac_cv_lib_crypto_DES_cbc_encrypt=yes
8484 echo "$as_me: failed program was:" >&5
8485 sed 's/^/| /' conftest.$ac_ext >&5
8487 ac_cv_lib_crypto_DES_cbc_encrypt=no
8489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8490 LIBS=$ac_check_lib_save_LIBS
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
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
8502 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
8503 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6
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"
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>
8518 rm -f conftest.$ac_objext
8519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8520 (eval $ac_compile) 2>&5
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
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; }; then
8530 ac_header_compiler=yes
8532 echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8535 ac_header_compiler=no
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
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"
8548 cat confdefs.h >>conftest.$ac_ext
8549 cat >>conftest.$ac_ext <<_ACEOF
8550 /* end confdefs.h. */
8551 #include <openssl/des.h>
8553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8556 grep -v '^ *+' conftest.er1 >conftest.err
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
8569 if test -z "$ac_cpp_err"; then
8570 ac_header_preproc=yes
8572 echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.$ac_ext >&5
8575 ac_header_preproc=no
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
8581 # So? What about this header?
8582 case $ac_header_compiler:$ac_header_preproc in
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;}
8590 ## ------------------------------------ ##
8591 ## Report this to bug-autoconf@gnu.org. ##
8592 ## ------------------------------------ ##
8595 sed "s/^/$as_me: WARNING: /" >&2
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;}
8606 ## ------------------------------------ ##
8607 ## Report this to bug-autoconf@gnu.org. ##
8608 ## ------------------------------------ ##
8611 sed "s/^/$as_me: WARNING: /" >&2
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
8619 ac_cv_header_openssl_des_h=$ac_header_preproc
8621 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
8622 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6
8625 if test $ac_cv_header_openssl_des_h = yes; then
8627 cat >>confdefs.h <<\_ACEOF
8628 #define WITH_SSL_DES
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
8651 ac_check_lib_save_LIBS=$LIBS
8653 cat >conftest.$ac_ext <<_ACEOF
8654 #line $LINENO "configure"
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h. */
8661 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); }; }; then
8688 ac_cv_lib_des_des_cbc_encrypt=yes
8690 echo "$as_me: failed program was:" >&5
8691 sed 's/^/| /' conftest.$ac_ext >&5
8693 ac_cv_lib_des_des_cbc_encrypt=no
8695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8696 LIBS=$ac_check_lib_save_LIBS
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
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
8715 ac_check_lib_save_LIBS=$LIBS
8716 LIBS="-ldes425 $LIBS"
8717 cat >conftest.$ac_ext <<_ACEOF
8718 #line $LINENO "configure"
8721 cat confdefs.h >>conftest.$ac_ext
8722 cat >>conftest.$ac_ext <<_ACEOF
8723 /* end confdefs.h. */
8725 /* Override any gcc2 internal prototype to avoid an error. */
8729 /* We use char because int might match the return type of a gcc2
8730 builtin and then its argument prototype would still apply. */
8731 char des_cbc_encrypt ();
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
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
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); }; }; then
8752 ac_cv_lib_des425_des_cbc_encrypt=yes
8754 echo "$as_me: failed program was:" >&5
8755 sed 's/^/| /' conftest.$ac_ext >&5
8757 ac_cv_lib_des425_des_cbc_encrypt=no
8759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8760 LIBS=$ac_check_lib_save_LIBS
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
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
8779 ac_check_lib_save_LIBS=$LIBS
8780 LIBS="-ldes524 $LIBS"
8781 cat >conftest.$ac_ext <<_ACEOF
8782 #line $LINENO "configure"
8785 cat confdefs.h >>conftest.$ac_ext
8786 cat >>conftest.$ac_ext <<_ACEOF
8787 /* end confdefs.h. */
8789 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); }; }; then
8816 ac_cv_lib_des524_des_cbc_encrypt=yes
8818 echo "$as_me: failed program was:" >&5
8819 sed 's/^/| /' conftest.$ac_ext >&5
8821 ac_cv_lib_des524_des_cbc_encrypt=no
8823 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8824 LIBS=$ac_check_lib_save_LIBS
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
8837 if test "$with_des" = no; then
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
8845 ac_check_lib_save_LIBS=$LIBS
8846 LIBS="-lrsaref $LIBS"
8847 cat >conftest.$ac_ext <<_ACEOF
8848 #line $LINENO "configure"
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h. */
8855 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
8865 RSAPublicEncrypt ();
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
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
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; }; then
8882 ac_cv_lib_rsaref_RSAPublicEncrypt=yes
8884 echo "$as_me: failed program was:" >&5
8885 sed 's/^/| /' conftest.$ac_ext >&5
8887 ac_cv_lib_rsaref_RSAPublicEncrypt=no
8889 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8890 LIBS=$ac_check_lib_save_LIBS
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
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
8906 ac_check_lib_save_LIBS=$LIBS
8907 LIBS="-lcrypto $LIB_RSAREF $LIBS"
8908 cat >conftest.$ac_ext <<_ACEOF
8909 #line $LINENO "configure"
8912 cat confdefs.h >>conftest.$ac_ext
8913 cat >>conftest.$ac_ext <<_ACEOF
8914 /* end confdefs.h. */
8916 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); }; }; then
8943 ac_cv_lib_crypto_des_cbc_encrypt=yes
8945 echo "$as_me: failed program was:" >&5
8946 sed 's/^/| /' conftest.$ac_ext >&5
8948 ac_cv_lib_crypto_des_cbc_encrypt=no
8950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8951 LIBS=$ac_check_lib_save_LIBS
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
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
8963 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
8964 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6
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"
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>
8979 rm -f conftest.$ac_objext
8980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8981 (eval $ac_compile) 2>&5
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
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); }; }; then
8991 ac_header_compiler=yes
8993 echo "$as_me: failed program was:" >&5
8994 sed 's/^/| /' conftest.$ac_ext >&5
8996 ac_header_compiler=no
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
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"
9009 cat confdefs.h >>conftest.$ac_ext
9010 cat >>conftest.$ac_ext <<_ACEOF
9011 /* end confdefs.h. */
9012 #include <openssl/des.h>
9014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9017 grep -v '^ *+' conftest.er1 >conftest.err
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
9030 if test -z "$ac_cpp_err"; then
9031 ac_header_preproc=yes
9033 echo "$as_me: failed program was:" >&5
9034 sed 's/^/| /' conftest.$ac_ext >&5
9036 ac_header_preproc=no
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
9042 # So? What about this header?
9043 case $ac_header_compiler:$ac_header_preproc in
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;}
9051 ## ------------------------------------ ##
9052 ## Report this to bug-autoconf@gnu.org. ##
9053 ## ------------------------------------ ##
9056 sed "s/^/$as_me: WARNING: /" >&2
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;}
9067 ## ------------------------------------ ##
9068 ## Report this to bug-autoconf@gnu.org. ##
9069 ## ------------------------------------ ##
9072 sed "s/^/$as_me: WARNING: /" >&2
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
9080 ac_cv_header_openssl_des_h=$ac_header_preproc
9082 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
9083 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6
9086 if test $ac_cv_header_openssl_des_h = yes; then
9088 cat >>confdefs.h <<\_ACEOF
9089 #define WITH_SSL_DES
9106 if test "$with_des" != no; then
9108 cat >>confdefs.h <<\_ACEOF
9117 # Check whether --enable-digest or --disable-digest was given.
9118 if test "${enable_digest+set}" = set; then
9119 enableval="$enable_digest"
9125 if test "$digest" != no; then
9126 if test -d $digest; then
9127 CPPFLAGS="$CPPFLAGS -I$digest/include"
9128 LDFLAGS="$LDFLAGS -L$digest/lib"
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;}
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"
9146 cat >>confdefs.h <<\_ACEOF
9147 #define STATIC_DIGESTMD5
9152 echo "$as_me:$LINENO: result: disabled" >&5
9153 echo "${ECHO_T}disabled" >&6
9156 # Check whether --enable-otp or --disable-otp was given.
9157 if test "${enable_otp+set}" = set; then
9158 enableval="$enable_otp"
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;}
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"
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"
9182 cat >>confdefs.h <<\_ACEOF
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}"
9195 case "$with_opie" in
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
9202 ac_check_lib_save_LIBS=$LIBS
9204 cat >conftest.$ac_ext <<_ACEOF
9205 #line $LINENO "configure"
9208 cat confdefs.h >>conftest.$ac_ext
9209 cat >>conftest.$ac_ext <<_ACEOF
9210 /* end confdefs.h. */
9212 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; }; then
9239 ac_cv_lib_opie_opiechallenge=yes
9241 echo "$as_me: failed program was:" >&5
9242 sed 's/^/| /' conftest.$ac_ext >&5
9244 ac_cv_lib_opie_opiechallenge=no
9246 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9247 LIBS=$ac_check_lib_save_LIBS
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
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
9259 echo "$as_me:$LINENO: result: $ac_cv_header_opie_h" >&5
9260 echo "${ECHO_T}$ac_cv_header_opie_h" >&6
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"
9269 cat confdefs.h >>conftest.$ac_ext
9270 cat >>conftest.$ac_ext <<_ACEOF
9271 /* end confdefs.h. */
9272 $ac_includes_default
9275 rm -f conftest.$ac_objext
9276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9277 (eval $ac_compile) 2>&5
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
9285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286 (exit $ac_status); }; }; then
9287 ac_header_compiler=yes
9289 echo "$as_me: failed program was:" >&5
9290 sed 's/^/| /' conftest.$ac_ext >&5
9292 ac_header_compiler=no
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
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"
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h. */
9310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9313 grep -v '^ *+' conftest.er1 >conftest.err
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
9326 if test -z "$ac_cpp_err"; then
9327 ac_header_preproc=yes
9329 echo "$as_me: failed program was:" >&5
9330 sed 's/^/| /' conftest.$ac_ext >&5
9332 ac_header_preproc=no
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
9338 # So? What about this header?
9339 case $ac_header_compiler:$ac_header_preproc in
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;}
9347 ## ------------------------------------ ##
9348 ## Report this to bug-autoconf@gnu.org. ##
9349 ## ------------------------------------ ##
9352 sed "s/^/$as_me: WARNING: /" >&2
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;}
9363 ## ------------------------------------ ##
9364 ## Report this to bug-autoconf@gnu.org. ##
9365 ## ------------------------------------ ##
9368 sed "s/^/$as_me: WARNING: /" >&2
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
9376 ac_cv_header_opie_h=$ac_header_preproc
9378 echo "$as_me:$LINENO: result: $ac_cv_header_opie_h" >&5
9379 echo "${ECHO_T}$ac_cv_header_opie_h" >&6
9382 if test $ac_cv_header_opie_h = yes; then
9395 if test -d $with_opie; then
9396 CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
9397 LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
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
9409 if test "$with_opie" != no; then
9411 cat >>confdefs.h <<\_ACEOF
9415 OTP_LIBS="$OTP_LIBS -lopie"
9421 echo "$as_me:$LINENO: result: disabled" >&5
9422 echo "${ECHO_T}disabled" >&6
9425 # Check whether --enable-srp or --disable-srp was given.
9426 if test "${enable_srp+set}" = set; then
9427 enableval="$enable_srp"
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;}
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"
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"
9451 cat >>confdefs.h <<\_ACEOF
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
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
9471 cat >>confdefs.h <<\_ACEOF
9472 #define DO_SRP_SETPASS
9476 echo "$as_me:$LINENO: result: disabled" >&5
9477 echo "${ECHO_T}disabled" >&6
9482 echo "$as_me:$LINENO: result: disabled" >&5
9483 echo "${ECHO_T}disabled" >&6
9489 # Check whether --enable-krb4 or --disable-krb4 was given.
9490 if test "${enable_krb4+set}" = set; then
9491 enableval="$enable_krb4"
9497 if test "$krb4" != no; then
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
9504 ac_check_lib_save_LIBS=$LIBS
9505 LIBS="-lresolv $LIBS"
9506 cat >conftest.$ac_ext <<_ACEOF
9507 #line $LINENO "configure"
9510 cat confdefs.h >>conftest.$ac_ext
9511 cat >>conftest.$ac_ext <<_ACEOF
9512 /* end confdefs.h. */
9514 /* Override any gcc2 internal prototype to avoid an error. */
9518 /* We use char because int might match the return type of a gcc2
9519 builtin and then its argument prototype would still apply. */
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
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
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; }; then
9541 ac_cv_lib_resolv_res_search=yes
9543 echo "$as_me: failed program was:" >&5
9544 sed 's/^/| /' conftest.$ac_ext >&5
9546 ac_cv_lib_resolv_res_search=no
9548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9549 LIBS=$ac_check_lib_save_LIBS
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
9558 LIBS="-lresolv $LIBS"
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
9570 for krbhloc in include/kerberosIV include/kerberos include
9572 if test -f ${krb4}/${krbhloc}/krb.h ; then
9573 cyrus_krbinclude=${krb4}/${krbhloc}
9579 echo "$as_me:$LINENO: result: $cyrus_krbinclude" >&5
9580 echo "${ECHO_T}$cyrus_krbinclude" >&6
9582 if test -n "${cyrus_krbinclude}"; then
9583 CPPFLAGS="$CPPFLAGS -I${cyrus_krbinclude}"
9585 LDFLAGS="$LDFLAGS -L$krb4/lib"
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
9595 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
9596 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
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"
9605 cat confdefs.h >>conftest.$ac_ext
9606 cat >>conftest.$ac_ext <<_ACEOF
9607 /* end confdefs.h. */
9608 $ac_includes_default
9611 rm -f conftest.$ac_objext
9612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9613 (eval $ac_compile) 2>&5
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
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); }; }; then
9623 ac_header_compiler=yes
9625 echo "$as_me: failed program was:" >&5
9626 sed 's/^/| /' conftest.$ac_ext >&5
9628 ac_header_compiler=no
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
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"
9641 cat confdefs.h >>conftest.$ac_ext
9642 cat >>conftest.$ac_ext <<_ACEOF
9643 /* end confdefs.h. */
9646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9649 grep -v '^ *+' conftest.er1 >conftest.err
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
9662 if test -z "$ac_cpp_err"; then
9663 ac_header_preproc=yes
9665 echo "$as_me: failed program was:" >&5
9666 sed 's/^/| /' conftest.$ac_ext >&5
9668 ac_header_preproc=no
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
9674 # So? What about this header?
9675 case $ac_header_compiler:$ac_header_preproc in
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;}
9683 ## ------------------------------------ ##
9684 ## Report this to bug-autoconf@gnu.org. ##
9685 ## ------------------------------------ ##
9688 sed "s/^/$as_me: WARNING: /" >&2
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;}
9699 ## ------------------------------------ ##
9700 ## Report this to bug-autoconf@gnu.org. ##
9701 ## ------------------------------------ ##
9704 sed "s/^/$as_me: WARNING: /" >&2
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
9712 ac_cv_header_krb_h=$ac_header_preproc
9714 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
9715 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
9718 if test $ac_cv_header_krb_h = yes; then
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
9725 ac_check_lib_save_LIBS=$LIBS
9726 LIBS="-lcom_err $LIBS"
9727 cat >conftest.$ac_ext <<_ACEOF
9728 #line $LINENO "configure"
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h. */
9735 /* Override any gcc2 internal prototype to avoid an error. */
9739 /* We use char because int might match the return type of a gcc2
9740 builtin and then its argument prototype would still apply. */
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
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
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); }; }; then
9762 ac_cv_lib_com_err_com_err=yes
9764 echo "$as_me: failed program was:" >&5
9765 sed 's/^/| /' conftest.$ac_ext >&5
9767 ac_cv_lib_com_err_com_err=no
9769 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9770 LIBS=$ac_check_lib_save_LIBS
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
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
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"
9787 cat confdefs.h >>conftest.$ac_ext
9788 cat >>conftest.$ac_ext <<_ACEOF
9789 /* end confdefs.h. */
9791 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); }; }; then
9818 ac_cv_lib_krb_krb_mk_priv=yes
9820 echo "$as_me: failed program was:" >&5
9821 sed 's/^/| /' conftest.$ac_ext >&5
9823 ac_cv_lib_krb_krb_mk_priv=no
9825 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9826 LIBS=$ac_check_lib_save_LIBS
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"
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
9843 ac_check_lib_save_LIBS=$LIBS
9844 LIBS="-lkrb $LIB_DES $LIBS"
9845 cat >conftest.$ac_ext <<_ACEOF
9846 #line $LINENO "configure"
9849 cat confdefs.h >>conftest.$ac_ext
9850 cat >>conftest.$ac_ext <<_ACEOF
9851 /* end confdefs.h. */
9853 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; }; then
9880 ac_cv_lib_krb_krb_mk_priv=yes
9882 echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.$ac_ext >&5
9885 ac_cv_lib_krb_krb_mk_priv=no
9887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9888 LIBS=$ac_check_lib_save_LIBS
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"
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
9912 ac_check_lib_save_LIBS=$LIBS
9913 LIBS="-lkrb4 $LIB_DES $LIBS"
9914 cat >conftest.$ac_ext <<_ACEOF
9915 #line $LINENO "configure"
9918 cat confdefs.h >>conftest.$ac_ext
9919 cat >>conftest.$ac_ext <<_ACEOF
9920 /* end confdefs.h. */
9922 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); }; }; then
9949 ac_cv_lib_krb4_krb_mk_priv=yes
9951 echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9954 ac_cv_lib_krb4_krb_mk_priv=no
9956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9957 LIBS=$ac_check_lib_save_LIBS
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
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;}
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;}
9979 if test "$krb4" != no; then
9980 cmu_save_LIBS="$LIBS"
9981 LIBS="$LIBS $SASL_KRB_LIB"
9983 for ac_func in krb_get_err_text
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
9991 cat >conftest.$ac_ext <<_ACEOF
9992 #line $LINENO "configure"
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. */
10003 # include <limits.h>
10005 # include <assert.h>
10007 /* Override any gcc2 internal prototype to avoid an error. */
10012 /* We use char because int might match the return type of a gcc2
10013 builtin and then its argument prototype would still apply. */
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)
10021 char (*f) () = $ac_func;
10030 return f != $ac_func;
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
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
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); }; }; then
10047 eval "$as_ac_var=yes"
10049 echo "$as_me: failed program was:" >&5
10050 sed 's/^/| /' conftest.$ac_ext >&5
10052 eval "$as_ac_var=no"
10054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
10066 LIBS="$cmu_save_LIBS"
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"
10078 cat >>confdefs.h <<\_ACEOF
10079 #define STATIC_KERBEROS4
10083 cat >>confdefs.h <<\_ACEOF
10087 SASL_KRB_LIB="$SASL_KRB_LIB $LIB_DES $COM_ERR"
10089 echo "$as_me:$LINENO: result: disabled" >&5
10090 echo "${ECHO_T}disabled" >&6
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
10099 cat >conftest.$ac_ext <<_ACEOF
10100 #line $LINENO "configure"
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. */
10111 # include <limits.h>
10113 # include <assert.h>
10115 /* Override any gcc2 internal prototype to avoid an error. */
10120 /* We use char because int might match the return type of a gcc2
10121 builtin and then its argument prototype would still apply. */
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)
10129 char (*f) () = crypt;
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
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
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); }; }; then
10155 ac_cv_func_crypt=yes
10157 echo "$as_me: failed program was:" >&5
10158 sed 's/^/| /' conftest.$ac_ext >&5
10160 ac_cv_func_crypt=no
10162 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
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
10174 ac_check_lib_save_LIBS=$LIBS
10175 LIBS="-lcrypt $LIBS"
10176 cat >conftest.$ac_ext <<_ACEOF
10177 #line $LINENO "configure"
10180 cat confdefs.h >>conftest.$ac_ext
10181 cat >>conftest.$ac_ext <<_ACEOF
10182 /* end confdefs.h. */
10184 /* Override any gcc2 internal prototype to avoid an error. */
10188 /* We use char because int might match the return type of a gcc2
10189 builtin and then its argument prototype would still apply. */
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
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
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }; }; then
10211 ac_cv_lib_crypt_crypt=yes
10213 echo "$as_me: failed program was:" >&5
10214 sed 's/^/| /' conftest.$ac_ext >&5
10216 ac_cv_lib_crypt_crypt=no
10218 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10219 LIBS=$ac_check_lib_save_LIBS
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
10235 # Check whether --enable-gssapi or --disable-gssapi was given.
10236 if test "${enable_gssapi+set}" = set; then
10237 enableval="$enable_gssapi"
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"
10251 if test "$gssapi" != no; then
10264 # When should we use __sunos?
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; }; }
10281 cmu_saved_CPPFLAGS=$CPPFLAGS
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"
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"
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
10304 echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
10305 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6
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"
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>
10320 rm -f conftest.$ac_objext
10321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10322 (eval $ac_compile) 2>&5
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
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); }; }; then
10332 ac_header_compiler=yes
10334 echo "$as_me: failed program was:" >&5
10335 sed 's/^/| /' conftest.$ac_ext >&5
10337 ac_header_compiler=no
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
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"
10350 cat confdefs.h >>conftest.$ac_ext
10351 cat >>conftest.$ac_ext <<_ACEOF
10352 /* end confdefs.h. */
10353 #include <gssapi.h>
10355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10358 grep -v '^ *+' conftest.er1 >conftest.err
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
10371 if test -z "$ac_cpp_err"; then
10372 ac_header_preproc=yes
10374 echo "$as_me: failed program was:" >&5
10375 sed 's/^/| /' conftest.$ac_ext >&5
10377 ac_header_preproc=no
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
10383 # So? What about this header?
10384 case $ac_header_compiler:$ac_header_preproc in
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;}
10392 ## ------------------------------------ ##
10393 ## Report this to bug-autoconf@gnu.org. ##
10394 ## ------------------------------------ ##
10397 sed "s/^/$as_me: WARNING: /" >&2
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;}
10408 ## ------------------------------------ ##
10409 ## Report this to bug-autoconf@gnu.org. ##
10410 ## ------------------------------------ ##
10413 sed "s/^/$as_me: WARNING: /" >&2
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
10421 ac_cv_header_gssapi_h=$ac_header_preproc
10423 echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
10424 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6
10427 if test $ac_cv_header_gssapi_h = yes; then
10429 cat >>confdefs.h <<\_ACEOF
10430 #define HAVE_GSSAPI_H
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
10440 echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5
10441 echo "${ECHO_T}$ac_cv_header_gssapi_gssapi_h" >&6
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"
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>
10456 rm -f conftest.$ac_objext
10457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10458 (eval $ac_compile) 2>&5
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
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); }; }; then
10468 ac_header_compiler=yes
10470 echo "$as_me: failed program was:" >&5
10471 sed 's/^/| /' conftest.$ac_ext >&5
10473 ac_header_compiler=no
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
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"
10486 cat confdefs.h >>conftest.$ac_ext
10487 cat >>conftest.$ac_ext <<_ACEOF
10488 /* end confdefs.h. */
10489 #include <gssapi/gssapi.h>
10491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10494 grep -v '^ *+' conftest.er1 >conftest.err
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
10507 if test -z "$ac_cpp_err"; then
10508 ac_header_preproc=yes
10510 echo "$as_me: failed program was:" >&5
10511 sed 's/^/| /' conftest.$ac_ext >&5
10513 ac_header_preproc=no
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
10519 # So? What about this header?
10520 case $ac_header_compiler:$ac_header_preproc in
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;}
10528 ## ------------------------------------ ##
10529 ## Report this to bug-autoconf@gnu.org. ##
10530 ## ------------------------------------ ##
10533 sed "s/^/$as_me: WARNING: /" >&2
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;}
10544 ## ------------------------------------ ##
10545 ## Report this to bug-autoconf@gnu.org. ##
10546 ## ------------------------------------ ##
10549 sed "s/^/$as_me: WARNING: /" >&2
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
10557 ac_cv_header_gssapi_gssapi_h=$ac_header_preproc
10559 echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5
10560 echo "${ECHO_T}$ac_cv_header_gssapi_gssapi_h" >&6
10563 if test $ac_cv_header_gssapi_gssapi_h = yes; then
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
10575 CPPFLAGS=$cmu_saved_CPPFLAGS
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/)
10586 # The choice is reflected in GSSAPIBASE_LIBS
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
10594 ac_check_lib_save_LIBS=$LIBS
10595 LIBS="-lresolv $LIBS"
10596 cat >conftest.$ac_ext <<_ACEOF
10597 #line $LINENO "configure"
10600 cat confdefs.h >>conftest.$ac_ext
10601 cat >>conftest.$ac_ext <<_ACEOF
10602 /* end confdefs.h. */
10604 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); }; }; then
10631 ac_cv_lib_resolv_res_search=yes
10633 echo "$as_me: failed program was:" >&5
10634 sed 's/^/| /' conftest.$ac_ext >&5
10636 ac_cv_lib_resolv_res_search=no
10638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10639 LIBS=$ac_check_lib_save_LIBS
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
10648 LIBS="-lresolv $LIBS"
10652 if test -d ${gssapi}; then
10653 gssapi_dir="${gssapi}/lib"
10654 GSSAPIBASE_LIBS="-L$gssapi_dir"
10655 GSSAPIBASE_STATIC_LIBS="-L$gssapi_dir"
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"
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.
10667 if test "$gss_impl" = "auto" -o "$gss_impl" = "heimdal"; then
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
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"
10680 cat confdefs.h >>conftest.$ac_ext
10681 cat >>conftest.$ac_ext <<_ACEOF
10682 /* end confdefs.h. */
10684 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); }; }; then
10711 ac_cv_lib_gssapi_gss_unwrap=yes
10713 echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10716 ac_cv_lib_gssapi_gss_unwrap=no
10718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10719 LIBS=$ac_check_lib_save_LIBS
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
10729 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
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
10741 ac_check_lib_save_LIBS=$LIBS
10742 LIBS="-lkrb5support ${LIB_SOCKET} $LIBS"
10743 cat >conftest.$ac_ext <<_ACEOF
10744 #line $LINENO "configure"
10747 cat confdefs.h >>conftest.$ac_ext
10748 cat >>conftest.$ac_ext <<_ACEOF
10749 /* end confdefs.h. */
10751 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
10761 krb5int_getspecific ();
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
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
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }; }; then
10778 ac_cv_lib_krb5support_krb5int_getspecific=yes
10780 echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10783 ac_cv_lib_krb5support_krb5int_getspecific=no
10785 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10786 LIBS=$ac_check_lib_save_LIBS
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
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
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"
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h. */
10811 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); }; }; then
10838 ac_cv_lib_gssapi_krb5_gss_unwrap=yes
10840 echo "$as_me: failed program was:" >&5
10841 sed 's/^/| /' conftest.$ac_ext >&5
10843 ac_cv_lib_gssapi_krb5_gss_unwrap=no
10845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10846 LIBS=$ac_check_lib_save_LIBS
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
10856 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
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
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"
10870 CPPFLAGS="$CPPFLAGS -D$platform"
10871 if test -d "${gssapi}/appsec-sdk/include"; then
10872 CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
10877 # Check for CyberSafe with two libraries first, than fall back to a single
10878 # library (older CyberSafe)
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
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"
10892 cat confdefs.h >>conftest.$ac_ext
10893 cat >>conftest.$ac_ext <<_ACEOF
10894 /* end confdefs.h. */
10896 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
10906 csf_gss_acq_user ();
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
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
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); }; }; then
10923 ac_cv_lib_gss_csf_gss_acq_user=yes
10925 echo "$as_me: failed program was:" >&5
10926 sed 's/^/| /' conftest.$ac_ext >&5
10928 ac_cv_lib_gss_csf_gss_acq_user=no
10930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10931 LIBS=$ac_check_lib_save_LIBS
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"
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
10944 ac_check_lib_save_LIBS=$LIBS
10945 LIBS="-lgss $GSSAPIBASE_LIBS -lgss $LIBS"
10946 cat >conftest.$ac_ext <<_ACEOF
10947 #line $LINENO "configure"
10950 cat confdefs.h >>conftest.$ac_ext
10951 cat >>conftest.$ac_ext <<_ACEOF
10952 /* end confdefs.h. */
10954 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
10964 csf_gss_acq_user ();
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
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
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); }; }; then
10981 ac_cv_lib_gss_csf_gss_acq_user=yes
10983 echo "$as_me: failed program was:" >&5
10984 sed 's/^/| /' conftest.$ac_ext >&5
10986 ac_cv_lib_gss_csf_gss_acq_user=no
10988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10989 LIBS=$ac_check_lib_save_LIBS
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"
11002 if test "$gss_failed" = "1"; then
11003 # Restore variables
11004 GSSAPIBASE_LIBS=$cmu_saved_GSSAPIBASE_LIBS
11005 CPPFLAGS=$cmu_saved_CPPFLAGS
11007 if test "$gss_impl" != "auto"; then
11013 if test "$gss_impl" = "auto" -o "$gss_impl" = "seam"; then
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
11020 ac_check_lib_save_LIBS=$LIBS
11021 LIBS="-lgss -lgss $LIBS"
11022 cat >conftest.$ac_ext <<_ACEOF
11023 #line $LINENO "configure"
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11030 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }; }; then
11057 ac_cv_lib_gss_gss_unwrap=yes
11059 echo "$as_me: failed program was:" >&5
11060 sed 's/^/| /' conftest.$ac_ext >&5
11062 ac_cv_lib_gss_gss_unwrap=no
11064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11065 LIBS=$ac_check_lib_save_LIBS
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
11075 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
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
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;}
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;}
11118 # Cybersafe defines both GSS_C_NT_HOSTBASED_SERVICE and GSS_C_NT_USER_NAME
11119 # in gssapi\rfckrb5.h
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"
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
11135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11136 $EGREP "hostbased_service_gss_nt_yes" >/dev/null 2>&1; then
11138 cat >>confdefs.h <<\_ACEOF
11139 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
11143 { echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5
11144 echo "$as_me: WARNING: Cybersafe define not found" >&2;}
11149 elif test "$ac_cv_header_gssapi_h" = "yes"; then
11150 cat >conftest.$ac_ext <<_ACEOF
11151 #line $LINENO "configure"
11154 cat confdefs.h >>conftest.$ac_ext
11155 cat >>conftest.$ac_ext <<_ACEOF
11156 /* end confdefs.h. */
11157 #include <gssapi.h>
11160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11161 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
11163 cat >>confdefs.h <<\_ACEOF
11164 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
11170 elif test "$ac_cv_header_gssapi_gssapi_h"; then
11171 cat >conftest.$ac_ext <<_ACEOF
11172 #line $LINENO "configure"
11175 cat confdefs.h >>conftest.$ac_ext
11176 cat >>conftest.$ac_ext <<_ACEOF
11177 /* end confdefs.h. */
11178 #include <gssapi/gssapi.h>
11181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11182 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
11184 cat >>confdefs.h <<\_ACEOF
11185 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
11193 if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
11194 cat >conftest.$ac_ext <<_ACEOF
11195 #line $LINENO "configure"
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
11206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11207 $EGREP "user_name_yes_gss_nt" >/dev/null 2>&1; then
11209 cat >>confdefs.h <<\_ACEOF
11210 #define HAVE_GSS_C_NT_USER_NAME
11214 { echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5
11215 echo "$as_me: WARNING: Cybersafe define not found" >&2;}
11219 elif test "$ac_cv_header_gssapi_h" = "yes"; then
11220 cat >conftest.$ac_ext <<_ACEOF
11221 #line $LINENO "configure"
11224 cat confdefs.h >>conftest.$ac_ext
11225 cat >>conftest.$ac_ext <<_ACEOF
11226 /* end confdefs.h. */
11227 #include <gssapi.h>
11230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11231 $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then
11233 cat >>confdefs.h <<\_ACEOF
11234 #define HAVE_GSS_C_NT_USER_NAME
11240 elif test "$ac_cv_header_gssapi_gssapi_h"; then
11241 cat >conftest.$ac_ext <<_ACEOF
11242 #line $LINENO "configure"
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h. */
11248 #include <gssapi/gssapi.h>
11251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11252 $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then
11254 cat >>confdefs.h <<\_ACEOF
11255 #define HAVE_GSS_C_NT_USER_NAME
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
11275 ac_check_lib_save_LIBS=$LIBS
11276 LIBS="-lresolv $LIBS"
11277 cat >conftest.$ac_ext <<_ACEOF
11278 #line $LINENO "configure"
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h. */
11285 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; }; then
11312 ac_cv_lib_resolv_res_search=yes
11314 echo "$as_me: failed program was:" >&5
11315 sed 's/^/| /' conftest.$ac_ext >&5
11317 ac_cv_lib_resolv_res_search=no
11319 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11320 LIBS=$ac_check_lib_save_LIBS
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"
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"
11332 cmu_save_LIBS="$LIBS"
11333 LIBS="$LIBS $GSSAPIBASE_LIBS"
11335 for ac_func in gsskrb5_register_acceptor_identity
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
11343 cat >conftest.$ac_ext <<_ACEOF
11344 #line $LINENO "configure"
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. */
11355 # include <limits.h>
11357 # include <assert.h>
11359 /* Override any gcc2 internal prototype to avoid an error. */
11364 /* We use char because int might match the return type of a gcc2
11365 builtin and then its argument prototype would still apply. */
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)
11373 char (*f) () = $ac_func;
11382 return f != $ac_func;
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
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
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); }; }; then
11399 eval "$as_ac_var=yes"
11401 echo "$as_me: failed program was:" >&5
11402 sed 's/^/| /' conftest.$ac_ext >&5
11404 eval "$as_ac_var=no"
11406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
11418 LIBS="$cmu_save_LIBS"
11420 echo "$as_me:$LINENO: result: disabled" >&5
11421 echo "${ECHO_T}disabled" >&6
11427 if test "$gssapi" != "no"; then
11429 cat >>confdefs.h <<\_ACEOF
11430 #define STATIC_GSSAPIV2
11434 if test "$gss_impl" = "mit"; then
11435 mutex_default="yes"
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
11444 use_gss_mutexes=$mutex_default
11446 if test $use_gss_mutexes = "yes"; then
11448 cat >>confdefs.h <<\_ACEOF
11449 #define GSS_USE_MUTEXES
11453 echo "$as_me:$LINENO: result: $use_gss_mutexes" >&5
11454 echo "${ECHO_T}$use_gss_mutexes" >&6
11460 # Check whether --enable-plain or --disable-plain was given.
11461 if test "${enable_plain+set}" = set; then
11462 enableval="$enable_plain"
11469 if test "$plain" != no; then
11470 if test "$cmu_have_crypt" = yes; then
11471 PLAIN_LIBS=$LIB_CRYPT
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"
11486 cat >>confdefs.h <<\_ACEOF
11487 #define STATIC_PLAIN
11492 echo "$as_me:$LINENO: result: disabled" >&5
11493 echo "${ECHO_T}disabled" >&6
11497 # Check whether --enable-anon or --disable-anon was given.
11498 if test "${enable_anon+set}" = set; then
11499 enableval="$enable_anon"
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"
11515 cat >>confdefs.h <<\_ACEOF
11516 #define STATIC_ANONYMOUS
11521 echo "$as_me:$LINENO: result: disabled" >&5
11522 echo "${ECHO_T}disabled" >&6
11525 # Check whether --enable-login or --disable-login was given.
11526 if test "${enable_login+set}" = set; then
11527 enableval="$enable_login"
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"
11543 cat >>confdefs.h <<\_ACEOF
11544 #define STATIC_LOGIN
11549 echo "$as_me:$LINENO: result: disabled" >&5
11550 echo "${ECHO_T}disabled" >&6
11553 # Check whether --enable-ntlm or --disable-ntlm was given.
11554 if test "${enable_ntlm+set}" = set; then
11555 enableval="$enable_ntlm"
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;}
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"
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"
11580 cat >>confdefs.h <<\_ACEOF
11581 #define STATIC_NTLM
11586 echo "$as_me:$LINENO: result: disabled" >&5
11587 echo "${ECHO_T}disabled" >&6
11590 # Check whether --enable-passdss or --disable-passdss was given.
11591 if test "${enable_passdss+set}" = set; then
11592 enableval="$enable_passdss"
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;}
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"
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"
11617 cat >>confdefs.h <<\_ACEOF
11618 #define STATIC_PASSDSS
11623 echo "$as_me:$LINENO: result: disabled" >&5
11624 echo "${ECHO_T}disabled" >&6
11628 # make the option show up so people don't whine that it is only in the
11629 # saslauthd configure script --help
11631 # Check whether --with-ldap or --without-ldap was given.
11632 if test "${with_ldap+set}" = set; then
11633 withval="$with_ldap"
11641 # Check whether --enable-sql or --disable-sql was given.
11642 if test "${enable_sql+set}" = set; then
11643 enableval="$enable_sql"
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"
11659 cat >>confdefs.h <<\_ACEOF
11665 echo "$as_me:$LINENO: result: disabled" >&5
11666 echo "${ECHO_T}disabled" >&6
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
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
11684 if test -f ${prefix}/${mysqlloc}/libmysqlclient.a; then
11685 with_mysql="${prefix}"
11687 elif test -f /usr/local/${mysqlloc}/libmysqlclient.a; then
11688 with_mysql="/usr/local"
11690 elif test -f /usr/${mysqlloc}/libmysqlclient.a; then
11699 case "$with_mysql" in
11701 notfound) { echo "$as_me:$LINENO: WARNING: MySQL Library not found" >&5
11702 echo "$as_me: WARNING: MySQL Library not found" >&2;}; true;;
11704 if test -d ${with_mysql}/lib/mysql; then
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}"
11710 LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/lib/mysql"
11713 elif test -d ${with_mysql}/mysql/lib; then
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}"
11719 LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/mysql/lib"
11722 elif test -d ${with_mysql}/lib; then
11724 # this is CMU ADD LIBPATH TO
11725 if test "$andrew_runpath_switch" = "none" ; then
11726 LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL}"
11728 LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/lib"
11733 # this is CMU ADD LIBPATH TO
11734 if test "$andrew_runpath_switch" = "none" ; then
11735 LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL}"
11737 LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}"
11742 LIB_MYSQL_DIR=$LIB_MYSQL
11743 LIB_MYSQL="$LIB_MYSQL -lmysqlclient"
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"
11752 CPPFLAGS="${CPPFLAGS} -I${with_mysql}"
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
11762 ac_check_lib_save_LIBS=$LIBS
11763 LIBS="-lmysqlclient $LIBS"
11764 cat >conftest.$ac_ext <<_ACEOF
11765 #line $LINENO "configure"
11768 cat confdefs.h >>conftest.$ac_ext
11769 cat >>conftest.$ac_ext <<_ACEOF
11770 /* end confdefs.h. */
11772 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
11782 mysql_select_db ();
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
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
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; }; then
11799 ac_cv_lib_mysqlclient_mysql_select_db=yes
11801 echo "$as_me: failed program was:" >&5
11802 sed 's/^/| /' conftest.$ac_ext >&5
11804 ac_cv_lib_mysqlclient_mysql_select_db=no
11806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11807 LIBS=$ac_check_lib_save_LIBS
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
11813 cat >>confdefs.h <<\_ACEOF
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;}
11823 LDFLAGS=$save_LDFLAGS;;
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
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
11843 if test -f ${prefix}/${pgsqlloc}/libpq.a; then
11844 with_pgsql="${prefix}"
11846 elif test -f /usr/local/${pgsqlloc}/libpq.a; then
11847 with_pgsql="/usr/local"
11849 elif test -f /usr/${pgsqlloc}/libpq.a; then
11858 case "$with_pgsql" in
11860 notfound) { echo "$as_me:$LINENO: WARNING: PostgreSQL Library not found" >&5
11861 echo "$as_me: WARNING: PostgreSQL Library not found" >&2;}; true;;
11863 if test -d ${with_pgsql}/lib/pgsql; then
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}"
11869 LIB_PGSQL="-L${with_pgsql}/lib/pgsql ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/lib/pgsql"
11872 elif test -d ${with_pgsql}/pgsql/lib; then
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}"
11878 LIB_PGSQL="-L${with_pgsql}/pgsql/lib ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/pgsql/lib"
11881 elif test -d ${with_pgsql}/lib; then
11883 # this is CMU ADD LIBPATH TO
11884 if test "$andrew_runpath_switch" = "none" ; then
11885 LIB_PGSQL="-L${with_pgsql}/lib ${LIB_PGSQL}"
11887 LIB_PGSQL="-L${with_pgsql}/lib ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/lib"
11892 # this is CMU ADD LIBPATH TO
11893 if test "$andrew_runpath_switch" = "none" ; then
11894 LIB_PGSQL="-L${with_pgsql} ${LIB_PGSQL}"
11896 LIB_PGSQL="-L${with_pgsql} ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}"
11901 LIB_PGSQL_DIR=$LIB_PGSQL
11902 LIB_PGSQL="$LIB_PGSQL -lpq"
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"
11911 CPPFLAGS="${CPPFLAGS} -I${with_pgsql}"
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
11922 ac_check_lib_save_LIBS=$LIBS
11924 cat >conftest.$ac_ext <<_ACEOF
11925 #line $LINENO "configure"
11928 cat confdefs.h >>conftest.$ac_ext
11929 cat >>conftest.$ac_ext <<_ACEOF
11930 /* end confdefs.h. */
11932 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; }; then
11959 ac_cv_lib_pq_PQsetdbLogin=yes
11961 echo "$as_me: failed program was:" >&5
11962 sed 's/^/| /' conftest.$ac_ext >&5
11964 ac_cv_lib_pq_PQsetdbLogin=no
11966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11967 LIBS=$ac_check_lib_save_LIBS
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
11973 cat >>confdefs.h <<\_ACEOF
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;}
11983 LDFLAGS=$save_LDFLAGS;;
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
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
12003 if test -f ${prefix}/${sqliteloc}/libsqlite.a; then
12004 with_sqlite="${prefix}"
12006 elif test -f /usr/local/${sqliteloc}/libsqlite.a; then
12007 with_sqlite="/usr/local"
12009 elif test -f /usr/${sqliteloc}/libsqlite.a; then
12018 case "$with_sqlite" in
12020 notfound) { echo "$as_me:$LINENO: WARNING: SQLite Library not found" >&5
12021 echo "$as_me: WARNING: SQLite Library not found" >&2;}; true;;
12023 if test -d ${with_sqlite}/lib; then
12024 LIB_SQLITE="-L${with_sqlite}/lib -R${with_sqlite}/lib"
12026 LIB_SQLITE="-L${with_sqlite} -R${with_sqlite}"
12029 LIB_SQLITE_DIR=$LIB_SQLITE
12030 LIB_SQLITE="$LIB_SQLITE -lsqlite"
12032 if test -d ${with_sqlite}/include; then
12033 CPPFLAGS="${CPPFLAGS} -I${with_sqlite}/include"
12035 CPPFLAGS="${CPPFLAGS} -I${with_sqlite}"
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
12042 ac_check_lib_save_LIBS=$LIBS
12043 LIBS="-lsqlite $LIB_SQLITE_DIR $LIBS"
12044 cat >conftest.$ac_ext <<_ACEOF
12045 #line $LINENO "configure"
12048 cat confdefs.h >>conftest.$ac_ext
12049 cat >>conftest.$ac_ext <<_ACEOF
12050 /* end confdefs.h. */
12052 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); }; }; then
12079 ac_cv_lib_sqlite_sqlite_open=yes
12081 echo "$as_me: failed program was:" >&5
12082 sed 's/^/| /' conftest.$ac_ext >&5
12084 ac_cv_lib_sqlite_sqlite_open=no
12086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12087 LIBS=$ac_check_lib_save_LIBS
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
12093 cat >>confdefs.h <<\_ACEOF
12094 #define HAVE_SQLITE
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;}
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; }; }
12113 if test "$enable_shared" = yes; then
12115 cat >>confdefs.h <<\_ACEOF
12121 # Check whether --enable-ldapdb or --disable-ldapdb was given.
12122 if test "${enable_ldapdb+set}" = set; then
12123 enableval="$enable_ldapdb"
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
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; }; }
12140 save_CPPFLAGS=$CPPFLAGS
12141 save_LDFLAGS=$LDFLAGS
12143 if test -d $with_ldap; then
12144 CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
12146 # this is CMU ADD LIBPATH
12147 if test "$andrew_runpath_switch" = "none" ; then
12148 LDFLAGS="-L${with_ldap}/lib ${LDFLAGS}"
12150 LDFLAGS="-L${with_ldap}/lib $andrew_runpath_switch${with_ldap}/lib ${LDFLAGS}"
12157 for ac_header in ldap.h lber.h
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
12166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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"
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>
12182 rm -f conftest.$ac_objext
12183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12184 (eval $ac_compile) 2>&5
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
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; }; then
12194 ac_header_compiler=yes
12196 echo "$as_me: failed program was:" >&5
12197 sed 's/^/| /' conftest.$ac_ext >&5
12199 ac_header_compiler=no
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
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"
12212 cat confdefs.h >>conftest.$ac_ext
12213 cat >>conftest.$ac_ext <<_ACEOF
12214 /* end confdefs.h. */
12215 #include <$ac_header>
12217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12220 grep -v '^ *+' conftest.er1 >conftest.err
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
12233 if test -z "$ac_cpp_err"; then
12234 ac_header_preproc=yes
12236 echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12239 ac_header_preproc=no
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
12245 # So? What about this header?
12246 case $ac_header_compiler:$ac_header_preproc in
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;}
12254 ## ------------------------------------ ##
12255 ## Report this to bug-autoconf@gnu.org. ##
12256 ## ------------------------------------ ##
12259 sed "s/^/$as_me: WARNING: /" >&2
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;}
12270 ## ------------------------------------ ##
12271 ## Report this to bug-autoconf@gnu.org. ##
12272 ## ------------------------------------ ##
12275 sed "s/^/$as_me: WARNING: /" >&2
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
12283 eval "$as_ac_Header=$ac_header_preproc"
12285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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
12306 cat >conftest.$ac_ext <<_ACEOF
12307 #line $LINENO "configure"
12310 cat confdefs.h >>conftest.$ac_ext
12311 cat >>conftest.$ac_ext <<_ACEOF
12312 /* end confdefs.h. */
12316 #ifdef LDAP_API_FEATURE_X_OPENLDAP
12317 char *__openldap_api = LDAP_API_FEATURE_X_OPENLDAP;
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
12325 cmu_cv_openldap_api=no
12330 echo "$as_me:$LINENO: result: $cmu_cv_openldap_api" >&5
12331 echo "${ECHO_T}$cmu_cv_openldap_api" >&6
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
12340 ac_check_lib_save_LIBS=$LIBS
12341 LIBS="-lldap -llber $LIBS"
12342 cat >conftest.$ac_ext <<_ACEOF
12343 #line $LINENO "configure"
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h. */
12350 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
12360 ldap_initialize ();
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
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
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; }; then
12377 ac_cv_lib_ldap_ldap_initialize=yes
12379 echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12382 ac_cv_lib_ldap_ldap_initialize=no
12384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12385 LIBS=$ac_check_lib_save_LIBS
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"
12392 cmu_link_openldap=no
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; }; }
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
12409 cat >conftest.$ac_ext <<_ACEOF
12410 #line $LINENO "configure"
12413 cat confdefs.h >>conftest.$ac_ext
12414 cat >>conftest.$ac_ext <<_ACEOF
12415 /* end confdefs.h. */
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"
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
12433 cmu_cv_openldap_compat=no
12438 echo "$as_me:$LINENO: result: $cmu_cv_openldap_compat" >&5
12439 echo "${ECHO_T}$cmu_cv_openldap_compat" >&6
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; }; }
12447 LIB_LDAP=$cmu_link_openldap
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"
12455 cat >>confdefs.h <<\_ACEOF
12456 #define STATIC_LDAPDB
12463 if test "$cmu_cv_openldap_compat" != yes; then
12464 CPPFLAGS=$save_CPPFLAGS
12465 LDFLAGS=$save_LDFLAGS
12468 echo "$as_me:$LINENO: result: disabled" >&5
12469 echo "${ECHO_T}disabled" >&6
12478 # Check whether --with-plugindir or --without-plugindir was given.
12479 if test "${with_plugindir+set}" = set; then
12480 withval="$with_plugindir"
12483 plugindir=/usr/lib/sasl2
12486 cat >>confdefs.h <<_ACEOF
12487 #define PLUGINDIR "$plugindir"
12493 # Check whether --with-configdir or --without-configdir was given.
12494 if test "${with_configdir+set}" = set; then
12495 withval="$with_configdir"
12498 configdir=$plugindir:/etc/sasl2
12501 cat >>confdefs.h <<_ACEOF
12502 #define CONFIGDIR "$configdir"
12508 # Check whether --with-rc4 or --without-rc4 was given.
12509 if test "${with_rc4+set}" = set; then
12510 withval="$with_rc4"
12516 if test "$with_rc4" != no; then
12518 cat >>confdefs.h <<\_ACEOF
12524 building_for_macosx=no
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
12532 building_for_macosx=yes
12538 if test "$building_for_macosx" = yes; then
12547 echo "$as_me:$LINENO: checking for dmalloc library" >&5
12548 echo $ECHO_N "checking for dmalloc library... $ECHO_C" >&6
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
12560 if test "$with_dmalloc" != "no"; then
12561 if test "$with_dmalloc" = "yes"; then
12562 with_dmalloc="/usr/local"
12565 if test -r "$with_dmalloc/libdmalloc.a"; then
12566 DMALLOC_LIBS="$with_dmalloc/libdmalloc.a"
12568 cat >>confdefs.h <<\_ACEOF
12569 #define WITH_DMALLOC
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"
12577 cat >>confdefs.h <<\_ACEOF
12578 #define WITH_DMALLOC
12581 echo "$as_me:$LINENO: result: yes" >&5
12582 echo "${ECHO_T}yes" >&6
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.; }; }
12589 echo "$as_me:$LINENO: result: no" >&5
12590 echo "${ECHO_T}no" >&6
12595 echo "$as_me:$LINENO: checking for sfio library" >&5
12596 echo $ECHO_N "checking for sfio library... $ECHO_C" >&6
12598 # Check whether --with-sfio or --without-sfio was given.
12599 if test "${with_sfio+set}" = set; then
12600 withval="$with_sfio"
12606 if test "$with_sfio" != "no"; then
12607 if test "$with_sfio" = "yes"; then
12608 with_sfio="/usr/local"
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
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.; }; }
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
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
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.; }; }
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
12660 echo "$as_me:$LINENO: result: yes" >&5
12661 echo "${ECHO_T}yes" >&6
12663 echo "$as_me:$LINENO: result: no" >&5
12664 echo "${ECHO_T}no" >&6
12667 SMTPTEST_PROGRAM=""
12668 SASL_UTIL_LIBS_EXTRA=""
12669 SASL_UTIL_HEADERS_EXTRA=""
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
12684 cat >conftest.$ac_ext <<_ACEOF
12685 #line $LINENO "configure"
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. */
12696 # include <limits.h>
12698 # include <assert.h>
12700 /* Override any gcc2 internal prototype to avoid an error. */
12705 /* We use char because int might match the return type of a gcc2
12706 builtin and then its argument prototype would still apply. */
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)
12714 char (*f) () = getsubopt;
12723 return f != getsubopt;
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
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
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); }; }; then
12740 ac_cv_func_getsubopt=yes
12742 echo "$as_me: failed program was:" >&5
12743 sed 's/^/| /' conftest.$ac_ext >&5
12745 ac_cv_func_getsubopt=no
12747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
12753 cat >>confdefs.h <<\_ACEOF
12754 #define HAVE_GETSUBOPT
12758 sasl_cv_getsubopt=yes
12761 if test $sasl_cv_getsubopt = yes; then
12762 LIBOBJS="$LIBOBJS getsubopt.$ac_objext"
12763 GETSUBOPT="getsubopt.lo"
12767 sasl_cv_snprintf=no
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
12774 cat >conftest.$ac_ext <<_ACEOF
12775 #line $LINENO "configure"
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. */
12786 # include <limits.h>
12788 # include <assert.h>
12790 /* Override any gcc2 internal prototype to avoid an error. */
12795 /* We use char because int might match the return type of a gcc2
12796 builtin and then its argument prototype would still apply. */
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)
12804 char (*f) () = snprintf;
12813 return f != snprintf;
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
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
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); }; }; then
12830 ac_cv_func_snprintf=yes
12832 echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.$ac_ext >&5
12835 ac_cv_func_snprintf=no
12837 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
12843 cat >>confdefs.h <<\_ACEOF
12844 #define HAVE_SNPRINTF
12848 sasl_cv_snprintf=yes
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
12856 cat >conftest.$ac_ext <<_ACEOF
12857 #line $LINENO "configure"
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. */
12868 # include <limits.h>
12870 # include <assert.h>
12872 /* Override any gcc2 internal prototype to avoid an error. */
12877 /* We use char because int might match the return type of a gcc2
12878 builtin and then its argument prototype would still apply. */
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)
12886 char (*f) () = vsnprintf;
12895 return f != vsnprintf;
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
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
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); }; }; then
12912 ac_cv_func_vsnprintf=yes
12914 echo "$as_me: failed program was:" >&5
12915 sed 's/^/| /' conftest.$ac_ext >&5
12917 ac_cv_func_vsnprintf=no
12919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
12925 cat >>confdefs.h <<\_ACEOF
12926 #define HAVE_VSNPRINTF
12930 sasl_cv_snprintf=yes
12933 if test $sasl_cv_snprintf = yes; then
12934 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
12935 SNPRINTFOBJS="snprintf.o"
12936 LTSNPRINTFOBJS="snprintf.lo"
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
12947 ac_check_lib_save_LIBS=$LIBS
12948 LIBS="-lresolv $LIBS"
12949 cat >conftest.$ac_ext <<_ACEOF
12950 #line $LINENO "configure"
12953 cat confdefs.h >>conftest.$ac_ext
12954 cat >>conftest.$ac_ext <<_ACEOF
12955 /* end confdefs.h. */
12957 /* Override any gcc2 internal prototype to avoid an error. */
12961 /* We use char because int might match the return type of a gcc2
12962 builtin and then its argument prototype would still apply. */
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
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
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); }; }; then
12984 ac_cv_lib_resolv_inet_aton=yes
12986 echo "$as_me: failed program was:" >&5
12987 sed 's/^/| /' conftest.$ac_ext >&5
12989 ac_cv_lib_resolv_inet_aton=no
12991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12992 LIBS=$ac_check_lib_save_LIBS
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
13001 LIBS="-lresolv $LIBS"
13007 sasl_cv_getaddrinfo=yes
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
13014 cat >conftest.$ac_ext <<_ACEOF
13015 #line $LINENO "configure"
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. */
13026 # include <limits.h>
13028 # include <assert.h>
13030 /* Override any gcc2 internal prototype to avoid an error. */
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)
13044 char (*f) () = getaddrinfo;
13053 return f != getaddrinfo;
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
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
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; }; then
13070 ac_cv_func_getaddrinfo=yes
13072 echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.$ac_ext >&5
13075 ac_cv_func_getaddrinfo=no
13077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
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
13091 ac_check_lib_save_LIBS=$LIBS
13092 LIBS="-lsocket $LIBS"
13093 cat >conftest.$ac_ext <<_ACEOF
13094 #line $LINENO "configure"
13097 cat confdefs.h >>conftest.$ac_ext
13098 cat >>conftest.$ac_ext <<_ACEOF
13099 /* end confdefs.h. */
13101 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; }; then
13128 ac_cv_lib_socket_getaddrinfo=yes
13130 echo "$as_me: failed program was:" >&5
13131 sed 's/^/| /' conftest.$ac_ext >&5
13133 ac_cv_lib_socket_getaddrinfo=no
13135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13136 LIBS=$ac_check_lib_save_LIBS
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
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
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
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
13161 if test x$ipv6_libinet6 = x; then
13163 SAVELDFLAGS="$LDFLAGS"
13164 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
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
13171 ac_check_lib_save_LIBS=$LIBS
13172 LIBS="-linet6 $LIBS"
13173 cat >conftest.$ac_ext <<_ACEOF
13174 #line $LINENO "configure"
13177 cat confdefs.h >>conftest.$ac_ext
13178 cat >>conftest.$ac_ext <<_ACEOF
13179 /* end confdefs.h. */
13181 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); }; }; then
13208 ac_cv_lib_inet6_getaddrinfo=yes
13210 echo "$as_me: failed program was:" >&5
13211 sed 's/^/| /' conftest.$ac_ext >&5
13213 ac_cv_lib_inet6_getaddrinfo=no
13215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13216 LIBS=$ac_check_lib_save_LIBS
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
13223 LIBS="$LIBS -linet6"
13226 if test $ipv6_libinet6 = no; then
13227 LDFLAGS="$SAVELDFLAGS"
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
13237 ipv6_cv_getaddrinfo=yes
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"
13246 cat confdefs.h >>conftest.$ac_ext
13247 cat >>conftest.$ac_ext <<_ACEOF
13248 /* end confdefs.h. */
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
13260 cat >conftest.$ac_ext <<_ACEOF
13261 #line $LINENO "configure"
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. */
13272 # include <limits.h>
13274 # include <assert.h>
13276 /* Override any gcc2 internal prototype to avoid an error. */
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)
13290 char (*f) () = ${ipv6_cv_pfx}getaddrinfo;
13299 return f != ${ipv6_cv_pfx}getaddrinfo;
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
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
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); }; }; then
13316 eval "$as_ac_var=yes"
13318 echo "$as_me: failed program was:" >&5
13319 sed 's/^/| /' conftest.$ac_ext >&5
13321 eval "$as_ac_var=no"
13323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13326 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13331 if eval test X\$ac_cv_func_${ipv6_cv_pfx}getaddrinfo = Xyes; then
13333 cat >>confdefs.h <<\_ACEOF
13334 #define HAVE_GETADDRINFO
13337 ipv6_cv_getaddrinfo=yes
13343 if test $ipv6_cv_getaddrinfo = yes; then
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
13350 cat >conftest.$ac_ext <<_ACEOF
13351 #line $LINENO "configure"
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. */
13362 # include <limits.h>
13364 # include <assert.h>
13366 /* Override any gcc2 internal prototype to avoid an error. */
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)
13380 char (*f) () = gai_strerror;
13389 return f != gai_strerror;
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
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
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); }; }; then
13406 ac_cv_func_gai_strerror=yes
13408 echo "$as_me: failed program was:" >&5
13409 sed 's/^/| /' conftest.$ac_ext >&5
13411 ac_cv_func_gai_strerror=no
13413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
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
13427 ac_check_lib_save_LIBS=$LIBS
13428 LIBS="-lsocket $LIBS"
13429 cat >conftest.$ac_ext <<_ACEOF
13430 #line $LINENO "configure"
13433 cat confdefs.h >>conftest.$ac_ext
13434 cat >>conftest.$ac_ext <<_ACEOF
13435 /* end confdefs.h. */
13437 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); }; }; then
13464 ac_cv_lib_socket_gai_strerror=yes
13466 echo "$as_me: failed program was:" >&5
13467 sed 's/^/| /' conftest.$ac_ext >&5
13469 ac_cv_lib_socket_gai_strerror=no
13471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13472 LIBS=$ac_check_lib_save_LIBS
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
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
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
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
13497 if test x$ipv6_libinet6 = x; then
13499 SAVELDFLAGS="$LDFLAGS"
13500 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
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
13507 ac_check_lib_save_LIBS=$LIBS
13508 LIBS="-linet6 $LIBS"
13509 cat >conftest.$ac_ext <<_ACEOF
13510 #line $LINENO "configure"
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h. */
13517 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); }; }; then
13544 ac_cv_lib_inet6_gai_strerror=yes
13546 echo "$as_me: failed program was:" >&5
13547 sed 's/^/| /' conftest.$ac_ext >&5
13549 ac_cv_lib_inet6_gai_strerror=no
13551 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13552 LIBS=$ac_check_lib_save_LIBS
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
13559 LIBS="$LIBS -linet6"
13562 if test $ipv6_libinet6 = no; then
13563 LDFLAGS="$SAVELDFLAGS"
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
13573 ipv6_cv_gai_strerror=yes
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"
13582 cat confdefs.h >>conftest.$ac_ext
13583 cat >>conftest.$ac_ext <<_ACEOF
13584 /* end confdefs.h. */
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
13596 cat >conftest.$ac_ext <<_ACEOF
13597 #line $LINENO "configure"
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. */
13608 # include <limits.h>
13610 # include <assert.h>
13612 /* Override any gcc2 internal prototype to avoid an error. */
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)
13626 char (*f) () = ${ipv6_cv_pfx}gai_strerror;
13635 return f != ${ipv6_cv_pfx}gai_strerror;
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
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
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); }; }; then
13652 eval "$as_ac_var=yes"
13654 echo "$as_me: failed program was:" >&5
13655 sed 's/^/| /' conftest.$ac_ext >&5
13657 eval "$as_ac_var=no"
13659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13662 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13667 if eval test X\$ac_cv_func_${ipv6_cv_pfx}gai_strerror = Xyes; then
13669 cat >>confdefs.h <<\_ACEOF
13670 #define HAVE_GETADDRINFO
13673 ipv6_cv_gai_strerror=yes
13679 if test $ipv6_cv_gai_strerror = yes; then
13681 cat >>confdefs.h <<\_ACEOF
13682 #define HAVE_GETADDRINFO
13685 sasl_cv_getaddrinfo=no
13692 if test $sasl_cv_getaddrinfo = yes; then
13693 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
13694 GETADDRINFOOBJS="getaddrinfo.o"
13695 LTGETADDRINFOOBJS="getaddrinfo.lo"
13701 sasl_cv_getnameinfo=no
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
13708 cat >conftest.$ac_ext <<_ACEOF
13709 #line $LINENO "configure"
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. */
13720 # include <limits.h>
13722 # include <assert.h>
13724 /* Override any gcc2 internal prototype to avoid an error. */
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)
13738 char (*f) () = getnameinfo;
13747 return f != getnameinfo;
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
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
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; }; then
13764 ac_cv_func_getnameinfo=yes
13766 echo "$as_me: failed program was:" >&5
13767 sed 's/^/| /' conftest.$ac_ext >&5
13769 ac_cv_func_getnameinfo=no
13771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
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
13785 ac_check_lib_save_LIBS=$LIBS
13786 LIBS="-lsocket $LIBS"
13787 cat >conftest.$ac_ext <<_ACEOF
13788 #line $LINENO "configure"
13791 cat confdefs.h >>conftest.$ac_ext
13792 cat >>conftest.$ac_ext <<_ACEOF
13793 /* end confdefs.h. */
13795 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; }; then
13822 ac_cv_lib_socket_getnameinfo=yes
13824 echo "$as_me: failed program was:" >&5
13825 sed 's/^/| /' conftest.$ac_ext >&5
13827 ac_cv_lib_socket_getnameinfo=no
13829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13830 LIBS=$ac_check_lib_save_LIBS
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
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
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
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
13855 if test x$ipv6_libinet6 = x; then
13857 SAVELDFLAGS="$LDFLAGS"
13858 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
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
13865 ac_check_lib_save_LIBS=$LIBS
13866 LIBS="-linet6 $LIBS"
13867 cat >conftest.$ac_ext <<_ACEOF
13868 #line $LINENO "configure"
13871 cat confdefs.h >>conftest.$ac_ext
13872 cat >>conftest.$ac_ext <<_ACEOF
13873 /* end confdefs.h. */
13875 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; }; then
13902 ac_cv_lib_inet6_getnameinfo=yes
13904 echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13907 ac_cv_lib_inet6_getnameinfo=no
13909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13910 LIBS=$ac_check_lib_save_LIBS
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
13917 LIBS="$LIBS -linet6"
13920 if test $ipv6_libinet6 = no; then
13921 LDFLAGS="$SAVELDFLAGS"
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
13931 ipv6_cv_getnameinfo=yes
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"
13940 cat confdefs.h >>conftest.$ac_ext
13941 cat >>conftest.$ac_ext <<_ACEOF
13942 /* end confdefs.h. */
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
13954 cat >conftest.$ac_ext <<_ACEOF
13955 #line $LINENO "configure"
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. */
13966 # include <limits.h>
13968 # include <assert.h>
13970 /* Override any gcc2 internal prototype to avoid an error. */
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)
13984 char (*f) () = ${ipv6_cv_pfx}getnameinfo;
13993 return f != ${ipv6_cv_pfx}getnameinfo;
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
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
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); }; }; then
14010 eval "$as_ac_var=yes"
14012 echo "$as_me: failed program was:" >&5
14013 sed 's/^/| /' conftest.$ac_ext >&5
14015 eval "$as_ac_var=no"
14017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14025 if eval test X\$ac_cv_func_${ipv6_cv_pfx}getnameinfo = Xyes; then
14027 cat >>confdefs.h <<\_ACEOF
14028 #define HAVE_GETADDRINFO
14031 ipv6_cv_getnameinfo=yes
14037 if test $ipv6_cv_getnameinfo = yes; then
14039 cat >>confdefs.h <<\_ACEOF
14040 #define HAVE_GETNAMEINFO
14044 sasl_cv_getnameinfo=yes
14046 if test $sasl_cv_getnameinfo = yes; then
14047 LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
14048 GETNAMEINFOOBJS="getnameinfo.o"
14049 LTGETNAMEINFOOBJS="getnameinfo.lo"
14054 LTLIBOBJS=`echo "$LIBOBJS" | sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
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
14062 cat >conftest.$ac_ext <<_ACEOF
14063 #line $LINENO "configure"
14066 cat confdefs.h >>conftest.$ac_ext
14067 cat >>conftest.$ac_ext <<_ACEOF
14068 /* end confdefs.h. */
14073 /* FIXME: Include the comments suggested by Paul. */
14074 #ifndef __cplusplus
14075 /* Ultrix mips cc rejects this. */
14076 typedef int charset[2];
14078 /* SunOS 4.1.1 cc rejects this. */
14079 char const *const *ccp;
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
14088 const char *g = "string";
14089 ccp = &g + (g ? g-g : 0);
14090 /* HPUX 7.0 cc rejects these. */
14093 ccp = (char const *const *) p;
14094 { /* SCO 3.2v4 cc rejects this. */
14096 char const *s = 0 ? (char *) 0 : (char const *) 0;
14100 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14101 int x[] = {25, 17};
14102 const int *foo = &x[0];
14105 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14106 typedef const int *iptr;
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;
14115 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14116 const int foo = 10;
14124 rm -f conftest.$ac_objext
14125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14126 (eval $ac_compile) 2>&5
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
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); }; }; then
14138 echo "$as_me: failed program was:" >&5
14139 sed 's/^/| /' conftest.$ac_ext >&5
14143 rm -f conftest.$ac_objext conftest.$ac_ext
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
14149 cat >>confdefs.h <<\_ACEOF
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
14161 for ac_kw in inline __inline__ __inline; do
14162 cat >conftest.$ac_ext <<_ACEOF
14163 #line $LINENO "configure"
14166 cat confdefs.h >>conftest.$ac_ext
14167 cat >>conftest.$ac_ext <<_ACEOF
14168 /* end confdefs.h. */
14169 #ifndef __cplusplus
14171 static $ac_kw foo_t static_foo () {return 0; }
14172 $ac_kw foo_t foo () {return 0; }
14176 rm -f conftest.$ac_objext
14177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14178 (eval $ac_compile) 2>&5
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
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); }; }; then
14188 ac_cv_c_inline=$ac_kw; break
14190 echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14194 rm -f conftest.$ac_objext conftest.$ac_ext
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
14203 cat >>confdefs.h <<\_ACEOF
14207 *) cat >>confdefs.h <<_ACEOF
14208 #define inline $ac_cv_c_inline
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
14218 cat >conftest.$ac_ext <<_ACEOF
14219 #line $LINENO "configure"
14222 cat confdefs.h >>conftest.$ac_ext
14223 cat >>conftest.$ac_ext <<_ACEOF
14224 /* end confdefs.h. */
14225 $ac_includes_default
14231 if (sizeof (mode_t))
14237 rm -f conftest.$ac_objext
14238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14239 (eval $ac_compile) 2>&5
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
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); }; }; then
14249 ac_cv_type_mode_t=yes
14251 echo "$as_me: failed program was:" >&5
14252 sed 's/^/| /' conftest.$ac_ext >&5
14254 ac_cv_type_mode_t=no
14256 rm -f conftest.$ac_objext conftest.$ac_ext
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
14264 cat >>confdefs.h <<_ACEOF
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
14275 cat >conftest.$ac_ext <<_ACEOF
14276 #line $LINENO "configure"
14279 cat confdefs.h >>conftest.$ac_ext
14280 cat >>conftest.$ac_ext <<_ACEOF
14281 /* end confdefs.h. */
14282 $ac_includes_default
14288 if (sizeof (pid_t))
14294 rm -f conftest.$ac_objext
14295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14296 (eval $ac_compile) 2>&5
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
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; }; then
14306 ac_cv_type_pid_t=yes
14308 echo "$as_me: failed program was:" >&5
14309 sed 's/^/| /' conftest.$ac_ext >&5
14311 ac_cv_type_pid_t=no
14313 rm -f conftest.$ac_objext conftest.$ac_ext
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
14321 cat >>confdefs.h <<_ACEOF
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
14332 cat >conftest.$ac_ext <<_ACEOF
14333 #line $LINENO "configure"
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>
14345 extern "C" void (*signal (int, void (*)(int)))(int);
14347 void (*signal ()) ();
14358 rm -f conftest.$ac_objext
14359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14360 (eval $ac_compile) 2>&5
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
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); }; }; then
14370 ac_cv_type_signal=void
14372 echo "$as_me: failed program was:" >&5
14373 sed 's/^/| /' conftest.$ac_ext >&5
14375 ac_cv_type_signal=int
14377 rm -f conftest.$ac_objext conftest.$ac_ext
14379 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14380 echo "${ECHO_T}$ac_cv_type_signal" >&6
14382 cat >>confdefs.h <<_ACEOF
14383 #define RETSIGTYPE $ac_cv_type_signal
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
14393 cat >conftest.$ac_ext <<_ACEOF
14394 #line $LINENO "configure"
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>
14407 if ((struct tm *) 0)
14413 rm -f conftest.$ac_objext
14414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14415 (eval $ac_compile) 2>&5
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
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; }; then
14425 ac_cv_header_time=yes
14427 echo "$as_me: failed program was:" >&5
14428 sed 's/^/| /' conftest.$ac_ext >&5
14430 ac_cv_header_time=no
14432 rm -f conftest.$ac_objext conftest.$ac_ext
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
14438 cat >>confdefs.h <<\_ACEOF
14439 #define TIME_WITH_SYS_TIME 1
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
14449 cat >conftest.$ac_ext <<_ACEOF
14450 #line $LINENO "configure"
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>
14469 rm -f conftest.$ac_objext
14470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14471 (eval $ac_compile) 2>&5
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
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); }; }; then
14481 ac_cv_header_stdc=yes
14483 echo "$as_me: failed program was:" >&5
14484 sed 's/^/| /' conftest.$ac_ext >&5
14486 ac_cv_header_stdc=no
14488 rm -f conftest.$ac_objext conftest.$ac_ext
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"
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h. */
14499 #include <string.h>
14502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14503 $EGREP "memchr" >/dev/null 2>&1; then
14506 ac_cv_header_stdc=no
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"
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h. */
14521 #include <stdlib.h>
14524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14525 $EGREP "free" >/dev/null 2>&1; then
14528 ac_cv_header_stdc=no
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
14539 cat >conftest.$ac_ext <<_ACEOF
14540 #line $LINENO "configure"
14543 cat confdefs.h >>conftest.$ac_ext
14544 cat >>conftest.$ac_ext <<_ACEOF
14545 /* end confdefs.h. */
14547 #if ((' ' & 0x0FF) == 0x020)
14548 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14549 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
14558 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14563 for (i = 0; i < 256; i++)
14564 if (XOR (islower (i), ISLOWER (i))
14565 || toupper (i) != TOUPPER (i))
14570 rm -f conftest$ac_exeext
14571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14572 (eval $ac_link) 2>&5
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
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; }; then
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
14587 ( exit $ac_status )
14588 ac_cv_header_stdc=no
14590 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
14598 cat >>confdefs.h <<\_ACEOF
14599 #define STDC_HEADERS 1
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
14617 cat >conftest.$ac_ext <<_ACEOF
14618 #line $LINENO "configure"
14621 cat confdefs.h >>conftest.$ac_ext
14622 cat >>conftest.$ac_ext <<_ACEOF
14623 /* end confdefs.h. */
14624 #include <sys/types.h>
14636 rm -f conftest.$ac_objext
14637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14638 (eval $ac_compile) 2>&5
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
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); }; }; then
14648 eval "$as_ac_Header=yes"
14650 echo "$as_me: failed program was:" >&5
14651 sed 's/^/| /' conftest.$ac_ext >&5
14653 eval "$as_ac_Header=no"
14655 rm -f conftest.$ac_objext conftest.$ac_ext
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
14664 ac_header_dirent=$ac_hdr; break
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
14675 ac_func_search_save_LIBS=$LIBS
14676 ac_cv_search_opendir=no
14677 cat >conftest.$ac_ext <<_ACEOF
14678 #line $LINENO "configure"
14681 cat confdefs.h >>conftest.$ac_ext
14682 cat >>conftest.$ac_ext <<_ACEOF
14683 /* end confdefs.h. */
14685 /* Override any gcc2 internal prototype to avoid an error. */
14689 /* We use char because int might match the return type of a gcc2
14690 builtin and then its argument prototype would still apply. */
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
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
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; }; then
14712 ac_cv_search_opendir="none required"
14714 echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.$ac_ext >&5
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"
14726 cat confdefs.h >>conftest.$ac_ext
14727 cat >>conftest.$ac_ext <<_ACEOF
14728 /* end confdefs.h. */
14730 /* Override any gcc2 internal prototype to avoid an error. */
14734 /* We use char because int might match the return type of a gcc2
14735 builtin and then its argument prototype would still apply. */
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
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
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; }; then
14757 ac_cv_search_opendir="-l$ac_lib"
14760 echo "$as_me: failed program was:" >&5
14761 sed 's/^/| /' conftest.$ac_ext >&5
14764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14767 LIBS=$ac_func_search_save_LIBS
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"
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
14782 ac_func_search_save_LIBS=$LIBS
14783 ac_cv_search_opendir=no
14784 cat >conftest.$ac_ext <<_ACEOF
14785 #line $LINENO "configure"
14788 cat confdefs.h >>conftest.$ac_ext
14789 cat >>conftest.$ac_ext <<_ACEOF
14790 /* end confdefs.h. */
14792 /* Override any gcc2 internal prototype to avoid an error. */
14796 /* We use char because int might match the return type of a gcc2
14797 builtin and then its argument prototype would still apply. */
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
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
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); }; }; then
14819 ac_cv_search_opendir="none required"
14821 echo "$as_me: failed program was:" >&5
14822 sed 's/^/| /' conftest.$ac_ext >&5
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"
14833 cat confdefs.h >>conftest.$ac_ext
14834 cat >>conftest.$ac_ext <<_ACEOF
14835 /* end confdefs.h. */
14837 /* Override any gcc2 internal prototype to avoid an error. */
14841 /* We use char because int might match the return type of a gcc2
14842 builtin and then its argument prototype would still apply. */
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
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
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); }; }; then
14864 ac_cv_search_opendir="-l$ac_lib"
14867 echo "$as_me: failed program was:" >&5
14868 sed 's/^/| /' conftest.$ac_ext >&5
14871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14874 LIBS=$ac_func_search_save_LIBS
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"
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
14890 cat >conftest.$ac_ext <<_ACEOF
14891 #line $LINENO "configure"
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)
14903 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14911 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14916 rm -f conftest.$ac_objext
14917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14918 (eval $ac_compile) 2>&5
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
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); }; }; then
14928 ac_cv_header_sys_wait_h=yes
14930 echo "$as_me: failed program was:" >&5
14931 sed 's/^/| /' conftest.$ac_ext >&5
14933 ac_cv_header_sys_wait_h=no
14935 rm -f conftest.$ac_objext conftest.$ac_ext
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
14941 cat >>confdefs.h <<\_ACEOF
14942 #define HAVE_SYS_WAIT_H 1
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
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
14973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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"
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>
14989 rm -f conftest.$ac_objext
14990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14991 (eval $ac_compile) 2>&5
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
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); }; }; then
15001 ac_header_compiler=yes
15003 echo "$as_me: failed program was:" >&5
15004 sed 's/^/| /' conftest.$ac_ext >&5
15006 ac_header_compiler=no
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
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"
15019 cat confdefs.h >>conftest.$ac_ext
15020 cat >>conftest.$ac_ext <<_ACEOF
15021 /* end confdefs.h. */
15022 #include <$ac_header>
15024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15027 grep -v '^ *+' conftest.er1 >conftest.err
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
15040 if test -z "$ac_cpp_err"; then
15041 ac_header_preproc=yes
15043 echo "$as_me: failed program was:" >&5
15044 sed 's/^/| /' conftest.$ac_ext >&5
15046 ac_header_preproc=no
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
15052 # So? What about this header?
15053 case $ac_header_compiler:$ac_header_preproc in
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;}
15061 ## ------------------------------------ ##
15062 ## Report this to bug-autoconf@gnu.org. ##
15063 ## ------------------------------------ ##
15066 sed "s/^/$as_me: WARNING: /" >&2
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;}
15077 ## ------------------------------------ ##
15078 ## Report this to bug-autoconf@gnu.org. ##
15079 ## ------------------------------------ ##
15082 sed "s/^/$as_me: WARNING: /" >&2
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
15090 eval "$as_ac_Header=$ac_header_preproc"
15092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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
15112 cat >conftest.$ac_ext <<_ACEOF
15113 #line $LINENO "configure"
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>
15124 struct sockaddr_storage ss; int i = ss.ss_family;
15129 rm -f conftest.$ac_objext
15130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15131 (eval $ac_compile) 2>&5
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
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); }; }; then
15141 ipv6_cv_ss_family=yes
15143 echo "$as_me: failed program was:" >&5
15144 sed 's/^/| /' conftest.$ac_ext >&5
15146 ipv6_cv_ss_family=no
15148 rm -f conftest.$ac_objext conftest.$ac_ext
15150 if test $ipv6_cv_ss_family = yes; then
15152 cat >>confdefs.h <<\_ACEOF
15153 #define HAVE_SS_FAMILY
15159 echo "$as_me:$LINENO: result: $ipv6_cv_ss_family" >&5
15160 echo "${ECHO_T}$ipv6_cv_ss_family" >&6
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
15167 cat >conftest.$ac_ext <<_ACEOF
15168 #line $LINENO "configure"
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>
15179 struct sockaddr sa; int i = sa.sa_len;
15184 rm -f conftest.$ac_objext
15185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15186 (eval $ac_compile) 2>&5
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
15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); }; }; then
15198 echo "$as_me: failed program was:" >&5
15199 sed 's/^/| /' conftest.$ac_ext >&5
15203 rm -f conftest.$ac_objext conftest.$ac_ext
15205 if test $ipv6_cv_sa_len = yes; then
15207 cat >>confdefs.h <<\_ACEOF
15208 #define HAVE_SOCKADDR_SA_LEN
15214 echo "$as_me:$LINENO: result: $ipv6_cv_sa_len" >&5
15215 echo "${ECHO_T}$ipv6_cv_sa_len" >&6
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
15222 cat >conftest.$ac_ext <<_ACEOF
15223 #line $LINENO "configure"
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>
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
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
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); }; }; then
15251 ipv6_cv_socklen_t=yes
15253 echo "$as_me: failed program was:" >&5
15254 sed 's/^/| /' conftest.$ac_ext >&5
15256 ipv6_cv_socklen_t=no
15258 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15260 if test $ipv6_cv_socklen_t = yes; then
15262 cat >>confdefs.h <<\_ACEOF
15263 #define HAVE_SOCKLEN_T
15269 echo "$as_me:$LINENO: result: $ipv6_cv_socklen_t" >&5
15270 echo "${ECHO_T}$ipv6_cv_socklen_t" >&6
15291 for ac_func in gethostname getdomainname getpwnam getspnam gettimeofday inet_aton memcpy mkdir select socket strchr strdup strerror strspn strstr strtol jrand48
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
15299 cat >conftest.$ac_ext <<_ACEOF
15300 #line $LINENO "configure"
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. */
15311 # include <limits.h>
15313 # include <assert.h>
15315 /* Override any gcc2 internal prototype to avoid an error. */
15320 /* We use char because int might match the return type of a gcc2
15321 builtin and then its argument prototype would still apply. */
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)
15329 char (*f) () = $ac_func;
15338 return f != $ac_func;
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
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
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); }; }; then
15355 eval "$as_ac_var=yes"
15357 echo "$as_me: failed program was:" >&5
15358 sed 's/^/| /' conftest.$ac_ext >&5
15360 eval "$as_ac_var=no"
15362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
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;}
15379 cat >>confdefs.h <<\_ACEOF
15380 #define KRB4_IGNORE_IP_ADDRESS
15384 cat >>confdefs.h <<_ACEOF
15385 #define PREFER_MECH "KERBEROS_V4"
15390 cat >conftest.$ac_ext <<_ACEOF
15391 #line $LINENO "configure"
15394 cat confdefs.h >>conftest.$ac_ext
15395 cat >>conftest.$ac_ext <<_ACEOF
15396 /* end confdefs.h. */
15397 #include <sys/socket.h>
15400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15401 $EGREP "sockaddr_storage" >/dev/null 2>&1; then
15404 cat >>confdefs.h <<\_ACEOF
15405 #define HAVE_STRUCT_SOCKADDR_STORAGE
15416 subdirs="$subdirs saslauthd"
15425 ac_config_headers="$ac_config_headers config.h"
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.
15436 # config.status only pays attention to the cache file if you give it
15437 # the --recheck option to rerun configure.
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.
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.
15452 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15454 # `set' does not quote correctly, so add quotes (double-quote
15455 # substitution turns \\\\ into \\, and sed turns \\ into \).
15458 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15461 # `set' quotes correctly as required by POSIX, so do not add quotes.
15463 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15470 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15472 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
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
15479 echo "not updating unwritable cache $cache_file"
15484 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15485 # Let make expand exec_prefix.
15486 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
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}:*/:/;
15497 s/^\([^=]*=[ ]*\):*/\1/;
15503 DEFS=-DHAVE_CONFIG_H
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$//'`
15512 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15513 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15515 LIBOBJS=$ac_libobjs
15517 LTLIBOBJS=$ac_ltlibobjs
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; }; }
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; }; }
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; }; }
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; }; }
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; }; }
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; }; }
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; }; }
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; }; }
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
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.
15590 ac_cs_recheck=false
15592 SHELL=\${CONFIG_SHELL-$SHELL}
15595 cat >>$CONFIG_STATUS <<\_ACEOF
15596 ## --------------------- ##
15597 ## M4sh Initialization. ##
15598 ## --------------------- ##
15600 # Be Bourne compatible
15601 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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
15611 # Support unset when possible.
15612 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15619 # Work around bugs in pre-3.0 UWIN ksh.
15620 $as_unset ENV MAIL MAILPATH
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
15631 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
15632 eval $as_var=C; export $as_var
15638 # Required to use basename.
15639 if expr a : '\(a\)' >/dev/null 2>&1; then
15645 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15646 as_basename=basename
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 ||
15659 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15660 /^X\/\(\/\/\)$/{ s//\1/; q; }
15661 /^X\/\(\/\).*/{ s//\1/; q; }
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
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
15678 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
15695 *[\\/]* ) as_myself=$0 ;;
15696 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15697 for as_dir in $PATH
15700 test -z "$as_dir" && as_dir=.
15701 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }; }
15716 case $CONFIG_SHELL in
15718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15719 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15722 test -z "$as_dir" && as_dir=.
15723 for as_base in sh bash ksh sh5; do
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+"$@"}
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 |
15757 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
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; }; }
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).
15771 # Exit status is that of the last command.
15776 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15777 *c*,-n*) ECHO_N= ECHO_C='
15779 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15780 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15783 if expr a : '\(a\)' >/dev/null 2>&1; then
15789 rm -f conf$$ conf$$.exe 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
15800 elif ln conf$$.file conf$$ 2>/dev/null; then
15805 rm -f conf$$ conf$$.exe conf$$.file
15807 if mkdir -p . 2>/dev/null; then
15813 as_executable_p="test -f"
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"
15818 # Sed expression to map a string onto a valid variable name.
15819 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15823 # We need space, tab and new line, in precisely that order.
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.
15839 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15840 ## Running $as_me. ##
15845 This file was extended by $as_me, which was
15846 generated by GNU Autoconf 2.57. Invocation command line was
15848 CONFIG_FILES = $CONFIG_FILES
15849 CONFIG_HEADERS = $CONFIG_HEADERS
15850 CONFIG_LINKS = $CONFIG_LINKS
15851 CONFIG_COMMANDS = $CONFIG_COMMANDS
15855 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
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
15864 if test -n "$ac_config_headers"; then
15865 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15868 if test -n "$ac_config_links"; then
15869 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15872 if test -n "$ac_config_commands"; then
15873 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15876 cat >>$CONFIG_STATUS <<\_ACEOF
15879 \`$as_me' instantiates files from templates according to the
15880 current configuration.
15882 Usage: $0 [OPTIONS] [FILE]...
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
15894 Configuration files:
15897 Configuration headers:
15900 Configuration commands:
15903 Report bugs to <bug-autoconf@gnu.org>."
15906 cat >>$CONFIG_STATUS <<_ACEOF
15909 configured by $0, generated by GNU Autoconf 2.57,
15910 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
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."
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.
15928 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15929 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15937 *) # This is not an option, so the user has probably given explicit
15940 ac_need_defaults=false;;
15944 # Handling of the options.
15946 cat >>$CONFIG_STATUS <<\_ACEOF
15947 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15949 --version | --vers* | -V )
15950 echo "$ac_cs_version"; exit 0 ;;
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 )
15962 --file | --fil | --fi | --f )
15964 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15965 ac_need_defaults=false;;
15966 --header | --heade | --head | --hea )
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)
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; }; } ;;
15981 *) ac_config_targets="$ac_config_targets $1" ;;
15987 ac_configure_extra_args=
15989 if $ac_cs_silent; then
15991 ac_configure_extra_args="$ac_configure_extra_args --silent"
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
16003 cat >>$CONFIG_STATUS <<_ACEOF
16005 # INIT-COMMANDS section.
16008 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16014 cat >>$CONFIG_STATUS <<\_ACEOF
16015 for ac_config_target in $ac_config_targets
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; }; };;
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
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.
16060 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16061 trap '{ (exit 1); exit 1; }' 1 2 13 15
16064 # Create a (secure) tmp directory for tmp files.
16067 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16068 test -n "$tmp" && test -d "$tmp"
16071 tmp=./confstat$$-$RANDOM
16072 (umask 077 && mkdir $tmp)
16075 echo "$me: cannot create a temporary directory in ." >&2
16076 { (exit 1); exit 1; }
16081 cat >>$CONFIG_STATUS <<_ACEOF
16084 # CONFIG_FILES section.
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
16152 s,@SET_MAKE@,$SET_MAKE,;t t
16153 s,@am__leading_dot@,$am__leading_dot,;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
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
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
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.
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
16262 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16264 if test ! -s $tmp/subs.frag; then
16265 ac_more_lines=false
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.
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"
16276 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16278 ac_sed_frag=`expr $ac_sed_frag + 1`
16280 ac_end=`expr $ac_end + $ac_max_sed_lines`
16283 if test -z "$ac_sed_cmds"; then
16286 fi # test -n "$CONFIG_FILES"
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".
16293 - | *:- | *:-:* ) # input from 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 ;;
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 ||
16310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16311 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16312 /^X\(\/\/\)$/{ s//\1/; q; }
16313 /^X\(\/\).*/{ s//\1/; q; }
16315 { if $as_mkdir_p; then
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 ||
16329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16330 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16331 /^X\(\/\/\)$/{ s//\1/; q; }
16332 /^X\(\/\).*/{ s//\1/; q; }
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; }; }; }
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'`
16347 ac_dir_suffix= ac_top_builddir=
16351 .) # No --srcdir option. We are building in place.
16353 if test -z "$ac_top_builddir"; then
16356 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
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 ;;
16365 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
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`
16374 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16375 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
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;}
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
16389 configure_input="$ac_file. "
16391 configure_input=$configure_input"Generated from `echo $ac_file_in |
16392 sed 's,.*/,,'` by configure."
16394 # First look for the input files in the build tree, otherwise in the
16396 ac_file_inputs=`IFS=:
16397 for f in $ac_file_in; do
16399 -) echo $tmp/stdin ;;
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; }; }
16407 if test -f "$f"; then
16410 elif test -f "$srcdir/$f"; then
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; }; }
16420 done` || { (exit 1); exit 1; }
16422 cat >>$CONFIG_STATUS <<_ACEOF
16426 cat >>$CONFIG_STATUS <<\_ACEOF
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
16441 if test x"$ac_file" != x-; then
16442 mv $tmp/out $ac_file
16450 cat >>$CONFIG_STATUS <<\_ACEOF
16453 # CONFIG_HEADER section.
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.
16459 # ac_d sets the value in "#define NAME VALUE" lines.
16460 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16461 ac_dB='[ ].*$,\1#\2'
16464 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16465 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16466 ac_uB='$,\1#\2define\3'
16470 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16471 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16473 - | *:- | *:-:* ) # input from 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 ;;
16482 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16483 echo "$as_me: creating $ac_file" >&6;}
16485 # First look for the input files in the build tree, otherwise in the
16487 ac_file_inputs=`IFS=:
16488 for f in $ac_file_in; do
16490 -) echo $tmp/stdin ;;
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; }; }
16498 if test -f "$f"; then
16501 elif test -f "$srcdir/$f"; then
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; }; }
16511 done` || { (exit 1); exit 1; }
16512 # Remove the trailing spaces.
16513 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
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.
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
16536 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16538 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
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
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]*,/* & */,
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
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
16573 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16575 mv $tmp/out $tmp/in
16577 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16578 rm -f conftest.defines
16579 mv conftest.tail conftest.defines
16581 rm -f conftest.defines
16582 echo ' fi # grep' >>$CONFIG_STATUS
16583 echo >>$CONFIG_STATUS
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
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
16600 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16602 mv $tmp/out $tmp/in
16604 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16605 rm -f conftest.undefs
16606 mv conftest.tail conftest.undefs
16608 rm -f conftest.undefs
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
16617 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16619 cat $tmp/in >>$tmp/config.h
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;}
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 ||
16633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16634 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16635 /^X\(\/\/\)$/{ s//\1/; q; }
16636 /^X\(\/\).*/{ s//\1/; q; }
16638 { if $as_mkdir_p; then
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 ||
16652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16653 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16654 /^X\(\/\/\)$/{ s//\1/; q; }
16655 /^X\(\/\).*/{ s//\1/; q; }
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; }; }; }
16664 mv $tmp/config.h $ac_file
16668 rm -f $tmp/config.h
16670 # Compute $ac_file's index in $config_headers.
16672 for _am_header in $config_headers :; do
16673 case $_am_header in
16674 $ac_file | $ac_file:* )
16677 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
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 ||
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
16694 cat >>$CONFIG_STATUS <<\_ACEOF
16697 # CONFIG_COMMANDS section.
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 ||
16709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16710 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16711 /^X\(\/\/\)$/{ s//\1/; q; }
16712 /^X\(\/\).*/{ s//\1/; q; }
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'`
16721 ac_dir_suffix= ac_top_builddir=
16725 .) # No --srcdir option. We are building in place.
16727 if test -z "$ac_top_builddir"; then
16730 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
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 ;;
16739 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
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`
16747 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16748 echo "$as_me: executing $ac_dest commands" >&6;}
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 ||
16767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16768 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16769 /^X\(\/\/\)$/{ s//\1/; q; }
16770 /^X\(\/\).*/{ s//\1/; q; }
16775 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
16776 # Extract the definition of DEP_FILES from the Makefile without
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 = .*\\\\$/ {
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 ||
16806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16807 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16808 /^X\(\/\/\)$/{ s//\1/; q; }
16809 /^X\(\/\).*/{ s//\1/; q; }
16811 { if $as_mkdir_p; then
16812 mkdir -p $dirpart/$fdir
16814 as_dir=$dirpart/$fdir
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 ||
16825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16826 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16827 /^X\(\/\/\)$/{ s//\1/; q; }
16828 /^X\(\/\).*/{ s//\1/; q; }
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; }; }; }
16836 # echo "creating $dirpart/$file"
16837 echo '# dummy' > "$dirpart/$file"
16845 cat >>$CONFIG_STATUS <<\_ACEOF
16847 { (exit 0); exit 0; }
16849 chmod +x $CONFIG_STATUS
16850 ac_clean_files=$ac_clean_files_save
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
16863 ac_config_status_args=
16864 test "$silent" = yes &&
16865 ac_config_status_args="$ac_config_status_args --quiet"
16867 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
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; }
16875 # CONFIG_SUBDIRS section.
16877 if test "$no_recursion" != yes; then
16879 # Remove --cache-file and --srcdir arguments so they do not pile up.
16880 ac_sub_configure_args=
16882 for ac_arg in $ac_configure_args; do
16883 if test -n "$ac_prev"; then
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=* \
16895 --config-cache | -C)
16897 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16899 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16901 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16903 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16905 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
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"
16914 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
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
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
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 ||
16936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16937 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16938 /^X\(\/\/\)$/{ s//\1/; q; }
16939 /^X\(\/\).*/{ s//\1/; q; }
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; }; }; }
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'`
16954 ac_dir_suffix= ac_top_builddir=
16958 .) # No --srcdir option. We are building in place.
16960 if test -z "$ac_top_builddir"; then
16963 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
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 ;;
16972 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
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`
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
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;}
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 ;;
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; }; }
17019 echo Configuration Complete. Type \'make\' to build.