2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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 more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="lib/saslint.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
679 INSTALL_STRIP_PROGRAM
724 SASL_DB_BACKEND_STATIC
728 NO_SASL_DB_MANS_FALSE
766 SASL_UTIL_HEADERS_EXTRA
779 ac_precious_vars='build_alias
788 ac_subdirs_all='saslauthd'
790 # Initialize some variables set by options.
792 ac_init_version=false
793 # The variables have the same names as the options, with
794 # dashes changed to underlines.
802 program_transform_name=s,x,x,
810 # Installation directory options.
811 # These are left unexpanded so users can "make install exec_prefix=/foo"
812 # and all the variables that are supposed to be based on exec_prefix
813 # by default will actually change.
814 # Use braces instead of parens because sh, perl, etc. also accept them.
815 # (The list follows the same order as the GNU Coding Standards.)
816 bindir='${exec_prefix}/bin'
817 sbindir='${exec_prefix}/sbin'
818 libexecdir='${exec_prefix}/libexec'
819 datarootdir='${prefix}/share'
820 datadir='${datarootdir}'
821 sysconfdir='${prefix}/etc'
822 sharedstatedir='${prefix}/com'
823 localstatedir='${prefix}/var'
824 includedir='${prefix}/include'
825 oldincludedir='/usr/include'
826 docdir='${datarootdir}/doc/${PACKAGE}'
827 infodir='${datarootdir}/info'
832 libdir='${exec_prefix}/lib'
833 localedir='${datarootdir}/locale'
834 mandir='${datarootdir}/man'
840 # If the previous option needs an argument, assign it.
841 if test -n "$ac_prev"; then
842 eval $ac_prev=\$ac_option
848 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852 # Accept the important Cygnus configure options, so we can diagnose typos.
854 case $ac_dashdash$ac_option in
858 -bindir | --bindir | --bindi | --bind | --bin | --bi)
860 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863 -build | --build | --buil | --bui | --bu)
864 ac_prev=build_alias ;;
865 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
866 build_alias=$ac_optarg ;;
868 -cache-file | --cache-file | --cache-fil | --cache-fi \
869 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870 ac_prev=cache_file ;;
871 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
873 cache_file=$ac_optarg ;;
876 cache_file=config.cache ;;
878 -datadir | --datadir | --datadi | --datad)
880 -datadir=* | --datadir=* | --datadi=* | --datad=*)
881 datadir=$ac_optarg ;;
883 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884 | --dataroo | --dataro | --datar)
885 ac_prev=datarootdir ;;
886 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888 datarootdir=$ac_optarg ;;
890 -disable-* | --disable-*)
891 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
894 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
895 { (exit 1); exit 1; }; }
896 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
897 eval enable_$ac_feature=no ;;
899 -docdir | --docdir | --docdi | --doc | --do)
901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909 -enable-* | --enable-*)
910 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
913 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
914 { (exit 1); exit 1; }; }
915 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
916 eval enable_$ac_feature=\$ac_optarg ;;
918 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
919 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
920 | --exec | --exe | --ex)
921 ac_prev=exec_prefix ;;
922 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
923 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
924 | --exec=* | --exe=* | --ex=*)
925 exec_prefix=$ac_optarg ;;
927 -gas | --gas | --ga | --g)
928 # Obsolete; use --with-gas.
931 -help | --help | --hel | --he | -h)
933 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
934 ac_init_help=recursive ;;
935 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
936 ac_init_help=short ;;
938 -host | --host | --hos | --ho)
939 ac_prev=host_alias ;;
940 -host=* | --host=* | --hos=* | --ho=*)
941 host_alias=$ac_optarg ;;
943 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
945 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
947 htmldir=$ac_optarg ;;
949 -includedir | --includedir | --includedi | --included | --include \
950 | --includ | --inclu | --incl | --inc)
951 ac_prev=includedir ;;
952 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
953 | --includ=* | --inclu=* | --incl=* | --inc=*)
954 includedir=$ac_optarg ;;
956 -infodir | --infodir | --infodi | --infod | --info | --inf)
958 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
959 infodir=$ac_optarg ;;
961 -libdir | --libdir | --libdi | --libd)
963 -libdir=* | --libdir=* | --libdi=* | --libd=*)
966 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
967 | --libexe | --libex | --libe)
968 ac_prev=libexecdir ;;
969 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
970 | --libexe=* | --libex=* | --libe=*)
971 libexecdir=$ac_optarg ;;
973 -localedir | --localedir | --localedi | --localed | --locale)
975 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
976 localedir=$ac_optarg ;;
978 -localstatedir | --localstatedir | --localstatedi | --localstated \
979 | --localstate | --localstat | --localsta | --localst | --locals)
980 ac_prev=localstatedir ;;
981 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
982 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
983 localstatedir=$ac_optarg ;;
985 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
987 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
991 # Obsolete; use --without-fp.
994 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
995 | --no-cr | --no-c | -n)
998 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1002 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1003 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1004 | --oldin | --oldi | --old | --ol | --o)
1005 ac_prev=oldincludedir ;;
1006 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1007 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1008 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1009 oldincludedir=$ac_optarg ;;
1011 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1013 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1014 prefix=$ac_optarg ;;
1016 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1017 | --program-pre | --program-pr | --program-p)
1018 ac_prev=program_prefix ;;
1019 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1020 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1021 program_prefix=$ac_optarg ;;
1023 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1024 | --program-suf | --program-su | --program-s)
1025 ac_prev=program_suffix ;;
1026 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1027 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1028 program_suffix=$ac_optarg ;;
1030 -program-transform-name | --program-transform-name \
1031 | --program-transform-nam | --program-transform-na \
1032 | --program-transform-n | --program-transform- \
1033 | --program-transform | --program-transfor \
1034 | --program-transfo | --program-transf \
1035 | --program-trans | --program-tran \
1036 | --progr-tra | --program-tr | --program-t)
1037 ac_prev=program_transform_name ;;
1038 -program-transform-name=* | --program-transform-name=* \
1039 | --program-transform-nam=* | --program-transform-na=* \
1040 | --program-transform-n=* | --program-transform-=* \
1041 | --program-transform=* | --program-transfor=* \
1042 | --program-transfo=* | --program-transf=* \
1043 | --program-trans=* | --program-tran=* \
1044 | --progr-tra=* | --program-tr=* | --program-t=*)
1045 program_transform_name=$ac_optarg ;;
1047 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1049 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1050 pdfdir=$ac_optarg ;;
1052 -psdir | --psdir | --psdi | --psd | --ps)
1054 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058 | -silent | --silent | --silen | --sile | --sil)
1061 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1063 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1065 sbindir=$ac_optarg ;;
1067 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1068 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1069 | --sharedst | --shareds | --shared | --share | --shar \
1071 ac_prev=sharedstatedir ;;
1072 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1073 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1074 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1076 sharedstatedir=$ac_optarg ;;
1078 -site | --site | --sit)
1080 -site=* | --site=* | --sit=*)
1083 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1085 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1086 srcdir=$ac_optarg ;;
1088 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1089 | --syscon | --sysco | --sysc | --sys | --sy)
1090 ac_prev=sysconfdir ;;
1091 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1092 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1093 sysconfdir=$ac_optarg ;;
1095 -target | --target | --targe | --targ | --tar | --ta | --t)
1096 ac_prev=target_alias ;;
1097 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1098 target_alias=$ac_optarg ;;
1100 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1103 -version | --version | --versio | --versi | --vers | -V)
1104 ac_init_version=: ;;
1107 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1110 { echo "$as_me: error: invalid package name: $ac_package" >&2
1111 { (exit 1); exit 1; }; }
1112 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1113 eval with_$ac_package=\$ac_optarg ;;
1115 -without-* | --without-*)
1116 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1119 { echo "$as_me: error: invalid package name: $ac_package" >&2
1120 { (exit 1); exit 1; }; }
1121 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1122 eval with_$ac_package=no ;;
1125 # Obsolete; use --with-x.
1128 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1129 | --x-incl | --x-inc | --x-in | --x-i)
1130 ac_prev=x_includes ;;
1131 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1132 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1133 x_includes=$ac_optarg ;;
1135 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1136 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1137 ac_prev=x_libraries ;;
1138 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1139 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1140 x_libraries=$ac_optarg ;;
1142 -*) { echo "$as_me: error: unrecognized option: $ac_option
1143 Try \`$0 --help' for more information." >&2
1144 { (exit 1); exit 1; }; }
1148 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1151 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1152 { (exit 1); exit 1; }; }
1153 eval $ac_envvar=\$ac_optarg
1154 export $ac_envvar ;;
1157 # FIXME: should be removed in autoconf 3.0.
1158 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1159 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1160 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1161 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1167 if test -n "$ac_prev"; then
1168 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1169 { echo "$as_me: error: missing argument to $ac_option" >&2
1170 { (exit 1); exit 1; }; }
1173 # Be sure to have absolute directory names.
1174 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1175 datadir sysconfdir sharedstatedir localstatedir includedir \
1176 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1177 libdir localedir mandir
1179 eval ac_val=\$$ac_var
1181 [\\/$]* | ?:[\\/]* ) continue;;
1182 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1184 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1185 { (exit 1); exit 1; }; }
1188 # There might be people who depend on the old broken behavior: `$host'
1189 # used to hold the argument of --host etc.
1190 # FIXME: To remove some day.
1193 target=$target_alias
1195 # FIXME: To remove some day.
1196 if test "x$host_alias" != x; then
1197 if test "x$build_alias" = x; then
1198 cross_compiling=maybe
1199 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1200 If a cross compiler is detected then cross compile mode will be used." >&2
1201 elif test "x$build_alias" != "x$host_alias"; then
1207 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1209 test "$silent" = yes && exec 6>/dev/null
1212 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1213 ac_ls_di=`ls -di .` &&
1214 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1215 { echo "$as_me: error: Working directory cannot be determined" >&2
1216 { (exit 1); exit 1; }; }
1217 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1218 { echo "$as_me: error: pwd does not report name of working directory" >&2
1219 { (exit 1); exit 1; }; }
1222 # Find the source files, if location was not specified.
1223 if test -z "$srcdir"; then
1224 ac_srcdir_defaulted=yes
1225 # Try the directory containing this script, then the parent directory.
1226 ac_confdir=`$as_dirname -- "$0" ||
1227 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1228 X"$0" : 'X\(//\)[^/]' \| \
1229 X"$0" : 'X\(//\)$' \| \
1230 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1250 if test ! -r "$srcdir/$ac_unique_file"; then
1254 ac_srcdir_defaulted=no
1256 if test ! -r "$srcdir/$ac_unique_file"; then
1257 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1258 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1259 { (exit 1); exit 1; }; }
1261 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1263 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1264 { (exit 1); exit 1; }; }
1266 # When building in place, set srcdir=.
1267 if test "$ac_abs_confdir" = "$ac_pwd"; then
1270 # Remove unnecessary trailing slashes from srcdir.
1271 # Double slashes in file names in object file debugging info
1272 # mess up M-x gdb in Emacs.
1274 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1276 for ac_var in $ac_precious_vars; do
1277 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1278 eval ac_env_${ac_var}_value=\$${ac_var}
1279 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1284 # Report the --help message.
1286 if test "$ac_init_help" = "long"; then
1287 # Omit some internal or obsolete options to make the list less imposing.
1288 # This message is too long to be a string in the A/UX 3.1 sh.
1290 \`configure' configures this package to adapt to many kinds of systems.
1292 Usage: $0 [OPTION]... [VAR=VALUE]...
1294 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1295 VAR=VALUE. See below for descriptions of some of the useful variables.
1297 Defaults for the options are specified in brackets.
1300 -h, --help display this help and exit
1301 --help=short display options specific to this package
1302 --help=recursive display the short help of all the included packages
1303 -V, --version display version information and exit
1304 -q, --quiet, --silent do not print \`checking...' messages
1305 --cache-file=FILE cache test results in FILE [disabled]
1306 -C, --config-cache alias for \`--cache-file=config.cache'
1307 -n, --no-create do not create output files
1308 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1310 Installation directories:
1311 --prefix=PREFIX install architecture-independent files in PREFIX
1312 [$ac_default_prefix]
1313 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1316 By default, \`make install' will install all the files in
1317 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1318 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1319 for instance \`--prefix=\$HOME'.
1321 For better control, use the options below.
1323 Fine tuning of the installation directories:
1324 --bindir=DIR user executables [EPREFIX/bin]
1325 --sbindir=DIR system admin executables [EPREFIX/sbin]
1326 --libexecdir=DIR program executables [EPREFIX/libexec]
1327 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1328 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1329 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1330 --libdir=DIR object code libraries [EPREFIX/lib]
1331 --includedir=DIR C header files [PREFIX/include]
1332 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1333 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1334 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1335 --infodir=DIR info documentation [DATAROOTDIR/info]
1336 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1337 --mandir=DIR man documentation [DATAROOTDIR/man]
1338 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1339 --htmldir=DIR html documentation [DOCDIR]
1340 --dvidir=DIR dvi documentation [DOCDIR]
1341 --pdfdir=DIR pdf documentation [DOCDIR]
1342 --psdir=DIR ps documentation [DOCDIR]
1348 --program-prefix=PREFIX prepend PREFIX to installed program names
1349 --program-suffix=SUFFIX append SUFFIX to installed program names
1350 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1353 --build=BUILD configure for building on BUILD [guessed]
1354 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1355 --target=TARGET configure for building compilers for TARGET [HOST]
1359 if test -n "$ac_init_help"; then
1364 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1365 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1366 --enable-cmulocal enable local mods for CMU [[no]]
1367 --enable-sample compile sample code [[yes]]
1368 --disable-dependency-tracking speeds up one-time build
1369 --enable-dependency-tracking do not reject slow dependency extractors
1370 --enable-static=PKGS build static libraries default=no
1371 --enable-shared=PKGS build shared libraries default=yes
1372 --enable-fast-install=PKGS optimize for fast installation default=yes
1373 --disable-libtool-lock avoid locking (might break parallel builds)
1374 --enable-staticdlopen try dynamic plugins when we are a static libsasl [no]
1375 --enable-java compile Java support [no]
1376 --enable-keep-db-open keep handle to Berkeley DB open for improved performance [no]
1377 --enable-alwaystrue enable the alwaystrue password verifier (discouraged)
1378 --enable-checkapop enable use of sasl_checkapop [yes]
1379 --enable-cram enable CRAM-MD5 authentication [yes]
1380 --enable-digest enable DIGEST-MD5 authentication [yes]
1381 --enable-otp enable OTP authentication [yes]
1382 --enable-srp enable SRP authentication [no]
1383 --enable-srp-setpass enable setting SRP secrets with saslpasswd [no]
1384 --enable-krb4 enable KERBEROS_V4 authentication [no]
1385 --enable-gssapi=<DIR> enable GSSAPI authentication [yes]
1386 --enable-gss_mutexes use mutexes around calls to the GSS library
1387 --enable-plain enable PLAIN authentication yes
1388 --enable-anon enable ANONYMOUS authentication [yes]
1389 --enable-login enable unsupported LOGIN authentication [no]
1390 --enable-ntlm enable unsupported NTLM authentication [no]
1391 --enable-passdss enable PASSDSS authentication (experimental) [no]
1392 --enable-sql enable SQL auxprop [no]
1393 --enable-ldapdb enable LDAPDB plugin no
1394 --disable-macos-framework disable building and installing replacement SASL2 Framework for MacOS X-provided SASL Framework [no]
1397 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1398 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1400 --with-gnu-ld assume the C compiler uses GNU ld default=no
1401 --with-purecov link with purecov
1402 --with-purify link with purify
1403 --with-javabase=PATH set path to find jni.h in /usr/java/include
1404 --with-dbpath=PATH set the DB path to use /etc/sasldb2
1405 --with-dblib=DBLIB set the DB library to use berkeley
1406 --with-bdb-libdir=DIR Berkeley DB lib files are in DIR
1407 --with-bdb-incdir=DIR Berkeley DB include files are in DIR
1408 --with-gdbm=PATH use gdbm from PATH
1409 --with-devrandom=PATH set the path to /dev/random [/dev/random]
1410 --with-pam=DIR use PAM (rooted in DIR) [yes]
1411 --with-saslauthd=DIR enable use of the saslauth daemon using state dir DIR
1412 --with-authdaemond=PATH enable use of authdaemon with default socket=PATH [yes]
1413 --with-pwcheck=DIR enable deprecated pwcheck daemon using statedir DIR
1414 --with-ipctype={unix,doors} use ipctype [unix]
1415 --with-lib-subdir=DIR Find libraries in DIR instead of lib
1416 --with-openssl=PATH use OpenSSL from PATH
1417 --with-des=DIR with DES (look in DIR) yes
1418 --with-opie=PATH use OPIE (One Time Passwords in Everything) from PATH
1419 --with-gss_impl={heimdal|mit|cybersafe|seam|auto}
1420 choose specific GSSAPI implementation [[auto]]
1421 --with-ldap=DIR use LDAP (in DIR) for saslauthd no
1422 --with-mysql=PATH use MySQL from PATH
1423 --with-pgsql=PATH use PostgreSQL from PATH
1424 --with-sqlite=PATH use SQLite from PATH
1425 --with-plugindir=DIR set the directory where plugins will
1426 be found [/usr/lib/sasl2]
1427 --with-configdir=DIR set the directory where config files will
1428 be found /usr/lib/sasl2
1429 --with-rc4 use internal rc4 routines [yes]
1430 --with-dmalloc=DIR with DMALLOC support (for test applications) [no]
1431 --with-sfio=DIR with SFIO support (for smtptest/libsfsasl) [no]
1433 Some influential environment variables:
1434 CC C compiler command
1435 CFLAGS C compiler flags
1436 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1437 nonstandard directory <lib dir>
1438 LIBS libraries to pass to the linker, e.g. -l<library>
1439 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1440 you have headers in a nonstandard directory <include dir>
1443 Use these variables to override the choices made by `configure' or to help
1444 it to find libraries and programs with nonstandard names/locations.
1450 if test "$ac_init_help" = "recursive"; then
1451 # If there are subdirs, report their specific --help.
1452 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1453 test -d "$ac_dir" || continue
1457 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1460 # A ".." for each directory in $ac_dir_suffix.
1461 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1462 case $ac_top_builddir_sub in
1463 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1467 ac_abs_top_builddir=$ac_pwd
1468 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1469 # for backward compatibility:
1470 ac_top_builddir=$ac_top_build_prefix
1473 .) # We are building in place.
1475 ac_top_srcdir=$ac_top_builddir_sub
1476 ac_abs_top_srcdir=$ac_pwd ;;
1477 [\\/]* | ?:[\\/]* ) # Absolute name.
1478 ac_srcdir=$srcdir$ac_dir_suffix;
1479 ac_top_srcdir=$srcdir
1480 ac_abs_top_srcdir=$srcdir ;;
1482 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1483 ac_top_srcdir=$ac_top_build_prefix$srcdir
1484 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1486 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1488 cd "$ac_dir" || { ac_status=$?; continue; }
1489 # Check for guested configure.
1490 if test -f "$ac_srcdir/configure.gnu"; then
1492 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1493 elif test -f "$ac_srcdir/configure"; then
1495 $SHELL "$ac_srcdir/configure" --help=recursive
1497 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1499 cd "$ac_pwd" || { ac_status=$?; break; }
1503 test -n "$ac_init_help" && exit $ac_status
1504 if $ac_init_version; then
1507 generated by GNU Autoconf 2.61
1509 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1510 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1511 This configure script is free software; the Free Software Foundation
1512 gives unlimited permission to copy, distribute and modify it.
1516 cat >config.log <<_ACEOF
1517 This file contains any messages produced by compilers while
1518 running configure, to aid debugging if configure makes a mistake.
1520 It was created by $as_me, which was
1521 generated by GNU Autoconf 2.61. Invocation command line was
1533 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1534 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1535 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1536 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1537 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1539 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1540 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1542 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1543 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1544 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1545 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1546 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1547 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1548 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1556 test -z "$as_dir" && as_dir=.
1557 echo "PATH: $as_dir"
1573 # Keep a trace of the command line.
1574 # Strip out --no-create and --no-recursion so they do not pile up.
1575 # Strip out --silent because we don't want to record it for future runs.
1576 # Also quote any args containing shell meta-characters.
1577 # Make two passes to allow for proper duplicate-argument suppression.
1581 ac_must_keep_next=false
1587 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1588 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1589 | -silent | --silent | --silen | --sile | --sil)
1592 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1595 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1597 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1598 if test $ac_must_keep_next = true; then
1599 ac_must_keep_next=false # Got value, back to normal.
1602 *=* | --config-cache | -C | -disable-* | --disable-* \
1603 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1604 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1605 | -with-* | --with-* | -without-* | --without-* | --x)
1606 case "$ac_configure_args0 " in
1607 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1610 -* ) ac_must_keep_next=true ;;
1613 ac_configure_args="$ac_configure_args '$ac_arg'"
1618 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1619 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1621 # When interrupted or exit'd, cleanup temporary files, and complete
1622 # config.log. We remove comments because anyway the quotes in there
1623 # would cause problems or look ugly.
1624 # WARNING: Use '\'' to represent an apostrophe within the trap.
1625 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1626 trap 'exit_status=$?
1627 # Save into config.log some information that might help in debugging.
1632 ## ---------------- ##
1633 ## Cache variables. ##
1634 ## ---------------- ##
1637 # The following way of writing the cache mishandles newlines in values,
1639 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1640 eval ac_val=\$$ac_var
1644 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1645 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1648 _ | IFS | as_nl) ;; #(
1649 *) $as_unset $ac_var ;;
1654 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1655 *${as_nl}ac_space=\ *)
1657 "s/'\''/'\''\\\\'\'''\''/g;
1658 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1661 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1669 ## ----------------- ##
1670 ## Output variables. ##
1671 ## ----------------- ##
1674 for ac_var in $ac_subst_vars
1676 eval ac_val=\$$ac_var
1678 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1680 echo "$ac_var='\''$ac_val'\''"
1684 if test -n "$ac_subst_files"; then
1686 ## ------------------- ##
1687 ## File substitutions. ##
1688 ## ------------------- ##
1691 for ac_var in $ac_subst_files
1693 eval ac_val=\$$ac_var
1695 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1697 echo "$ac_var='\''$ac_val'\''"
1702 if test -s confdefs.h; then
1712 test "$ac_signal" != 0 &&
1713 echo "$as_me: caught signal $ac_signal"
1714 echo "$as_me: exit $exit_status"
1716 rm -f core *.core core.conftest.* &&
1717 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1720 for ac_signal in 1 2 13 15; do
1721 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1725 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1726 rm -f -r conftest* confdefs.h
1728 # Predefined preprocessor variables.
1730 cat >>confdefs.h <<_ACEOF
1731 #define PACKAGE_NAME "$PACKAGE_NAME"
1735 cat >>confdefs.h <<_ACEOF
1736 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1740 cat >>confdefs.h <<_ACEOF
1741 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1745 cat >>confdefs.h <<_ACEOF
1746 #define PACKAGE_STRING "$PACKAGE_STRING"
1750 cat >>confdefs.h <<_ACEOF
1751 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1755 # Let the site file select an alternate cache file if it wants to.
1756 # Prefer explicitly selected file to automatically selected ones.
1757 if test -n "$CONFIG_SITE"; then
1758 set x "$CONFIG_SITE"
1759 elif test "x$prefix" != xNONE; then
1760 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1762 set x "$ac_default_prefix/share/config.site" \
1763 "$ac_default_prefix/etc/config.site"
1768 if test -r "$ac_site_file"; then
1769 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1770 echo "$as_me: loading site script $ac_site_file" >&6;}
1771 sed 's/^/| /' "$ac_site_file" >&5
1776 if test -r "$cache_file"; then
1777 # Some versions of bash will fail to source /dev/null (special
1778 # files actually), so we avoid doing that.
1779 if test -f "$cache_file"; then
1780 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1781 echo "$as_me: loading cache $cache_file" >&6;}
1783 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1784 *) . "./$cache_file";;
1788 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1789 echo "$as_me: creating cache $cache_file" >&6;}
1793 # Check that the precious variables saved in the cache have kept the same
1795 ac_cache_corrupted=false
1796 for ac_var in $ac_precious_vars; do
1797 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1798 eval ac_new_set=\$ac_env_${ac_var}_set
1799 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1800 eval ac_new_val=\$ac_env_${ac_var}_value
1801 case $ac_old_set,$ac_new_set in
1803 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1804 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1805 ac_cache_corrupted=: ;;
1807 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1808 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1809 ac_cache_corrupted=: ;;
1812 if test "x$ac_old_val" != "x$ac_new_val"; then
1813 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1814 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1815 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1816 echo "$as_me: former value: $ac_old_val" >&2;}
1817 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1818 echo "$as_me: current value: $ac_new_val" >&2;}
1819 ac_cache_corrupted=:
1822 # Pass precious variables to config.status.
1823 if test "$ac_new_set" = set; then
1825 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1826 *) ac_arg=$ac_var=$ac_new_val ;;
1828 case " $ac_configure_args " in
1829 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1830 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1834 if $ac_cache_corrupted; then
1835 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1836 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1837 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1838 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1839 { (exit 1); exit 1; }; }
1859 ac_cpp='$CPP $CPPFLAGS'
1860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1867 if test $cache_file = "/dev/null"; then
1868 cache_file="./config.cache"
1869 if test -r "$cache_file"; then
1870 # Some versions of bash will fail to source /dev/null (special
1871 # files actually), so we avoid doing that.
1872 if test -f "$cache_file"; then
1873 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1874 echo "$as_me: loading cache $cache_file" >&6;}
1876 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1877 *) . "./$cache_file";;
1881 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1882 echo "$as_me: creating cache $cache_file" >&6;}
1889 for ac_dir in config "$srcdir"/config; do
1890 if test -f "$ac_dir/install-sh"; then
1892 ac_install_sh="$ac_aux_dir/install-sh -c"
1894 elif test -f "$ac_dir/install.sh"; then
1896 ac_install_sh="$ac_aux_dir/install.sh -c"
1898 elif test -f "$ac_dir/shtool"; then
1900 ac_install_sh="$ac_aux_dir/shtool install -c"
1904 if test -z "$ac_aux_dir"; then
1905 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1906 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1907 { (exit 1); exit 1; }; }
1910 # These three variables are undocumented and unsupported,
1911 # and are intended to be withdrawn in a future Autoconf release.
1912 # They can cause serious problems if a builder's source tree is in a directory
1913 # whose full name contains unusual characters.
1914 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1915 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1916 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1919 # Make sure we can run config.sub.
1920 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1921 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1922 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1923 { (exit 1); exit 1; }; }
1925 { echo "$as_me:$LINENO: checking build system type" >&5
1926 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1927 if test "${ac_cv_build+set}" = set; then
1928 echo $ECHO_N "(cached) $ECHO_C" >&6
1930 ac_build_alias=$build_alias
1931 test "x$ac_build_alias" = x &&
1932 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1933 test "x$ac_build_alias" = x &&
1934 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1935 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1936 { (exit 1); exit 1; }; }
1937 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1938 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1939 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1940 { (exit 1); exit 1; }; }
1943 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1944 echo "${ECHO_T}$ac_cv_build" >&6; }
1945 case $ac_cv_build in
1947 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1948 echo "$as_me: error: invalid value of canonical build" >&2;}
1949 { (exit 1); exit 1; }; };;
1952 ac_save_IFS=$IFS; IFS='-'
1958 # Remember, the first character of IFS is used to create $*,
1959 # except with old shells:
1962 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1965 { echo "$as_me:$LINENO: checking host system type" >&5
1966 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1967 if test "${ac_cv_host+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 if test "x$host_alias" = x; then
1971 ac_cv_host=$ac_cv_build
1973 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1974 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1975 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1976 { (exit 1); exit 1; }; }
1980 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1981 echo "${ECHO_T}$ac_cv_host" >&6; }
1984 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1985 echo "$as_me: error: invalid value of canonical host" >&2;}
1986 { (exit 1); exit 1; }; };;
1989 ac_save_IFS=$IFS; IFS='-'
1995 # Remember, the first character of IFS is used to create $*,
1996 # except with old shells:
1999 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2002 { echo "$as_me:$LINENO: checking target system type" >&5
2003 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2004 if test "${ac_cv_target+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2007 if test "x$target_alias" = x; then
2008 ac_cv_target=$ac_cv_host
2010 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2011 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2012 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2013 { (exit 1); exit 1; }; }
2017 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2018 echo "${ECHO_T}$ac_cv_target" >&6; }
2019 case $ac_cv_target in
2021 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2022 echo "$as_me: error: invalid value of canonical target" >&2;}
2023 { (exit 1); exit 1; }; };;
2025 target=$ac_cv_target
2026 ac_save_IFS=$IFS; IFS='-'
2032 # Remember, the first character of IFS is used to create $*,
2033 # except with old shells:
2036 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2039 # The aliases save the names the user supplied, while $host etc.
2040 # will get canonicalized.
2041 test -n "$target_alias" &&
2042 test "$program_prefix$program_suffix$program_transform_name" = \
2044 program_prefix=${target_alias}-
2046 am__api_version='1.10'
2048 # Find a good install program. We prefer a C program (faster),
2049 # so one script is as good as another. But avoid the broken or
2050 # incompatible versions:
2051 # SysV /etc/install, /usr/sbin/install
2052 # SunOS /usr/etc/install
2053 # IRIX /sbin/install
2055 # AmigaOS /C/install, which installs bootblocks on floppy discs
2056 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2057 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2058 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2059 # OS/2's system install, which has a completely different semantic
2060 # ./install, which can be erroneously created by make from ./install.sh.
2061 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2062 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2063 if test -z "$INSTALL"; then
2064 if test "${ac_cv_path_install+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
2067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071 test -z "$as_dir" && as_dir=.
2072 # Account for people who put trailing slashes in PATH elements.
2074 ./ | .// | /cC/* | \
2075 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2076 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2079 # OSF1 and SCO ODT 3.0 have their own names for install.
2080 # Don't use installbsd from OSF since it installs stuff as root
2082 for ac_prog in ginstall scoinst install; do
2083 for ac_exec_ext in '' $ac_executable_extensions; do
2084 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2085 if test $ac_prog = install &&
2086 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2087 # AIX install. It has an incompatible calling convention.
2089 elif test $ac_prog = install &&
2090 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2091 # program-specific install script used by HP pwplus--don't use.
2094 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2107 if test "${ac_cv_path_install+set}" = set; then
2108 INSTALL=$ac_cv_path_install
2110 # As a last resort, use the slow shell script. Don't cache a
2111 # value for INSTALL within a source directory, because that will
2112 # break other packages using the cache if that directory is
2113 # removed, or if the value is a relative name.
2114 INSTALL=$ac_install_sh
2117 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2118 echo "${ECHO_T}$INSTALL" >&6; }
2120 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2121 # It thinks the first close brace ends the variable substitution.
2122 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2124 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2126 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2128 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2129 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2132 echo timestamp > conftest.file
2133 # Do `set' in a subshell so we don't clobber the current shell's
2134 # arguments. Must try -L first in case configure is actually a
2135 # symlink; some systems play weird games with the mod time of symlinks
2136 # (eg FreeBSD returns the mod time of the symlink's containing
2139 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2140 if test "$*" = "X"; then
2142 set X `ls -t $srcdir/configure conftest.file`
2145 if test "$*" != "X $srcdir/configure conftest.file" \
2146 && test "$*" != "X conftest.file $srcdir/configure"; then
2148 # If neither matched, then we have a broken ls. This can happen
2149 # if, for instance, CONFIG_SHELL is bash and it inherits a
2150 # broken ls alias from the environment. This has actually
2151 # happened. Such a system could not be considered "sane".
2152 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2153 alias in your environment" >&5
2154 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2155 alias in your environment" >&2;}
2156 { (exit 1); exit 1; }; }
2159 test "$2" = conftest.file
2165 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2166 Check your system clock" >&5
2167 echo "$as_me: error: newly created file is older than distributed files!
2168 Check your system clock" >&2;}
2169 { (exit 1); exit 1; }; }
2171 { echo "$as_me:$LINENO: result: yes" >&5
2172 echo "${ECHO_T}yes" >&6; }
2173 test "$program_prefix" != NONE &&
2174 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2175 # Use a double $ so make ignores it.
2176 test "$program_suffix" != NONE &&
2177 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2178 # Double any \ or $. echo might interpret backslashes.
2179 # By default was `s,x,x', remove it if useless.
2180 cat <<\_ACEOF >conftest.sed
2181 s/[\\$]/&&/g;s/;s,x,x,$//
2183 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2186 # expand $ac_aux_dir to an absolute path
2187 am_aux_dir=`cd $ac_aux_dir && pwd`
2189 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2190 # Use eval to expand $SHELL
2191 if eval "$MISSING --run true"; then
2192 am_missing_run="$MISSING --run "
2195 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2196 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2199 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2200 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2201 if test -z "$MKDIR_P"; then
2202 if test "${ac_cv_path_mkdir+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2209 test -z "$as_dir" && as_dir=.
2210 for ac_prog in mkdir gmkdir; do
2211 for ac_exec_ext in '' $ac_executable_extensions; do
2212 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2213 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2214 'mkdir (GNU coreutils) '* | \
2215 'mkdir (coreutils) '* | \
2216 'mkdir (fileutils) '4.1*)
2217 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2227 if test "${ac_cv_path_mkdir+set}" = set; then
2228 MKDIR_P="$ac_cv_path_mkdir -p"
2230 # As a last resort, use the slow shell script. Don't cache a
2231 # value for MKDIR_P within a source directory, because that will
2232 # break other packages using the cache if that directory is
2233 # removed, or if the value is a relative name.
2234 test -d ./--version && rmdir ./--version
2235 MKDIR_P="$ac_install_sh -d"
2238 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2239 echo "${ECHO_T}$MKDIR_P" >&6; }
2243 [\\/$]* | ?:[\\/]*) ;;
2244 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2247 for ac_prog in gawk mawk nawk awk
2249 # Extract the first word of "$ac_prog", so it can be a program name with args.
2250 set dummy $ac_prog; ac_word=$2
2251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2253 if test "${ac_cv_prog_AWK+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 if test -n "$AWK"; then
2257 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263 test -z "$as_dir" && as_dir=.
2264 for ac_exec_ext in '' $ac_executable_extensions; do
2265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2266 ac_cv_prog_AWK="$ac_prog"
2267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2277 if test -n "$AWK"; then
2278 { echo "$as_me:$LINENO: result: $AWK" >&5
2279 echo "${ECHO_T}$AWK" >&6; }
2281 { echo "$as_me:$LINENO: result: no" >&5
2282 echo "${ECHO_T}no" >&6; }
2286 test -n "$AWK" && break
2289 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2290 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2291 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2292 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2293 echo $ECHO_N "(cached) $ECHO_C" >&6
2295 cat >conftest.make <<\_ACEOF
2298 @echo '@@@%%%=$(MAKE)=@@@%%%'
2300 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2301 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2303 eval ac_cv_prog_make_${ac_make}_set=yes;;
2305 eval ac_cv_prog_make_${ac_make}_set=no;;
2309 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2310 { echo "$as_me:$LINENO: result: yes" >&5
2311 echo "${ECHO_T}yes" >&6; }
2314 { echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6; }
2316 SET_MAKE="MAKE=${MAKE-make}"
2319 rm -rf .tst 2>/dev/null
2320 mkdir .tst 2>/dev/null
2321 if test -d .tst; then
2326 rmdir .tst 2>/dev/null
2328 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2329 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2330 # is not polluted with repeated "-I."
2331 am__isrc=' -I$(srcdir)'
2332 # test to see if srcdir already configured
2333 if test -f $srcdir/config.status; then
2334 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2335 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2336 { (exit 1); exit 1; }; }
2340 # test whether we have cygpath
2341 if test -z "$CYGPATH_W"; then
2342 if (cygpath --version) >/dev/null 2>/dev/null; then
2343 CYGPATH_W='cygpath -w'
2350 # Define the identity of the package.
2355 cat >>confdefs.h <<_ACEOF
2356 #define PACKAGE "$PACKAGE"
2360 cat >>confdefs.h <<_ACEOF
2361 #define VERSION "$VERSION"
2364 # Some tools Automake needs.
2366 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2369 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2372 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2375 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2378 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2380 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2382 # Installed binaries are usually stripped using `strip' when the user
2383 # run `make install-strip'. However `strip' might not be the right
2384 # tool to use in cross-compilation environments, therefore Automake
2385 # will honor the `STRIP' environment variable to overrule this program.
2386 if test "$cross_compiling" != no; then
2387 if test -n "$ac_tool_prefix"; then
2388 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2389 set dummy ${ac_tool_prefix}strip; ac_word=$2
2390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2392 if test "${ac_cv_prog_STRIP+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2395 if test -n "$STRIP"; then
2396 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402 test -z "$as_dir" && as_dir=.
2403 for ac_exec_ext in '' $ac_executable_extensions; do
2404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2405 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415 STRIP=$ac_cv_prog_STRIP
2416 if test -n "$STRIP"; then
2417 { echo "$as_me:$LINENO: result: $STRIP" >&5
2418 echo "${ECHO_T}$STRIP" >&6; }
2420 { echo "$as_me:$LINENO: result: no" >&5
2421 echo "${ECHO_T}no" >&6; }
2426 if test -z "$ac_cv_prog_STRIP"; then
2428 # Extract the first word of "strip", so it can be a program name with args.
2429 set dummy strip; ac_word=$2
2430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2432 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2433 echo $ECHO_N "(cached) $ECHO_C" >&6
2435 if test -n "$ac_ct_STRIP"; then
2436 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442 test -z "$as_dir" && as_dir=.
2443 for ac_exec_ext in '' $ac_executable_extensions; do
2444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2445 ac_cv_prog_ac_ct_STRIP="strip"
2446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2456 if test -n "$ac_ct_STRIP"; then
2457 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2458 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2460 { echo "$as_me:$LINENO: result: no" >&5
2461 echo "${ECHO_T}no" >&6; }
2464 if test "x$ac_ct_STRIP" = x; then
2467 case $cross_compiling:$ac_tool_warned in
2469 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2470 whose name does not start with the host triplet. If you think this
2471 configuration is useful to you, please write to autoconf@gnu.org." >&5
2472 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2473 whose name does not start with the host triplet. If you think this
2474 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2475 ac_tool_warned=yes ;;
2480 STRIP="$ac_cv_prog_STRIP"
2484 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2486 # We need awk for the "check" target. The system "awk" is bad on
2488 # Always define AMTAR for backward compatibility.
2490 AMTAR=${AMTAR-"${am_missing_run}tar"}
2492 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2500 ACLOCAL="$ACLOCAL -I \$(top_srcdir)/cmulocal"
2503 # and include our config dir scripts
2504 ACLOCAL="$ACLOCAL -I \$(top_srcdir)/config"
2508 # Check whether --enable-cmulocal was given.
2509 if test "${enable_cmulocal+set}" = set; then
2510 enableval=$enable_cmulocal;
2516 # Check whether --enable-sample was given.
2517 if test "${enable_sample+set}" = set; then
2518 enableval=$enable_sample; enable_sample=yes
2523 ac_cpp='$CPP $CPPFLAGS'
2524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2527 if test -n "$ac_tool_prefix"; then
2528 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2529 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2532 if test "${ac_cv_prog_CC+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2535 if test -n "$CC"; then
2536 ac_cv_prog_CC="$CC" # Let the user override the test.
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 test -z "$as_dir" && as_dir=.
2543 for ac_exec_ext in '' $ac_executable_extensions; do
2544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2545 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2556 if test -n "$CC"; then
2557 { echo "$as_me:$LINENO: result: $CC" >&5
2558 echo "${ECHO_T}$CC" >&6; }
2560 { echo "$as_me:$LINENO: result: no" >&5
2561 echo "${ECHO_T}no" >&6; }
2566 if test -z "$ac_cv_prog_CC"; then
2568 # Extract the first word of "gcc", so it can be a program name with args.
2569 set dummy gcc; ac_word=$2
2570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2572 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2573 echo $ECHO_N "(cached) $ECHO_C" >&6
2575 if test -n "$ac_ct_CC"; then
2576 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 test -z "$as_dir" && as_dir=.
2583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2585 ac_cv_prog_ac_ct_CC="gcc"
2586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2595 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2596 if test -n "$ac_ct_CC"; then
2597 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2598 echo "${ECHO_T}$ac_ct_CC" >&6; }
2600 { echo "$as_me:$LINENO: result: no" >&5
2601 echo "${ECHO_T}no" >&6; }
2604 if test "x$ac_ct_CC" = x; then
2607 case $cross_compiling:$ac_tool_warned in
2609 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2610 whose name does not start with the host triplet. If you think this
2611 configuration is useful to you, please write to autoconf@gnu.org." >&5
2612 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2613 whose name does not start with the host triplet. If you think this
2614 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2615 ac_tool_warned=yes ;;
2623 if test -z "$CC"; then
2624 if test -n "$ac_tool_prefix"; then
2625 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2626 set dummy ${ac_tool_prefix}cc; ac_word=$2
2627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2629 if test "${ac_cv_prog_CC+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2632 if test -n "$CC"; then
2633 ac_cv_prog_CC="$CC" # Let the user override the test.
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 test -z "$as_dir" && as_dir=.
2640 for ac_exec_ext in '' $ac_executable_extensions; do
2641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2642 ac_cv_prog_CC="${ac_tool_prefix}cc"
2643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 if test -n "$CC"; then
2654 { echo "$as_me:$LINENO: result: $CC" >&5
2655 echo "${ECHO_T}$CC" >&6; }
2657 { echo "$as_me:$LINENO: result: no" >&5
2658 echo "${ECHO_T}no" >&6; }
2664 if test -z "$CC"; then
2665 # Extract the first word of "cc", so it can be a program name with args.
2666 set dummy cc; ac_word=$2
2667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2669 if test "${ac_cv_prog_CC+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2672 if test -n "$CC"; then
2673 ac_cv_prog_CC="$CC" # Let the user override the test.
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 test -z "$as_dir" && as_dir=.
2681 for ac_exec_ext in '' $ac_executable_extensions; do
2682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2683 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2684 ac_prog_rejected=yes
2688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 if test $ac_prog_rejected = yes; then
2696 # We found a bogon in the path, so make sure we never use it.
2697 set dummy $ac_cv_prog_CC
2699 if test $# != 0; then
2700 # We chose a different compiler from the bogus one.
2701 # However, it has the same basename, so the bogon will be chosen
2702 # first if we set CC to just the basename; use the full file name.
2704 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2710 if test -n "$CC"; then
2711 { echo "$as_me:$LINENO: result: $CC" >&5
2712 echo "${ECHO_T}$CC" >&6; }
2714 { echo "$as_me:$LINENO: result: no" >&5
2715 echo "${ECHO_T}no" >&6; }
2720 if test -z "$CC"; then
2721 if test -n "$ac_tool_prefix"; then
2722 for ac_prog in cl.exe
2724 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2725 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2728 if test "${ac_cv_prog_CC+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2731 if test -n "$CC"; then
2732 ac_cv_prog_CC="$CC" # Let the user override the test.
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2741 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2752 if test -n "$CC"; then
2753 { echo "$as_me:$LINENO: result: $CC" >&5
2754 echo "${ECHO_T}$CC" >&6; }
2756 { echo "$as_me:$LINENO: result: no" >&5
2757 echo "${ECHO_T}no" >&6; }
2761 test -n "$CC" && break
2764 if test -z "$CC"; then
2766 for ac_prog in cl.exe
2768 # Extract the first word of "$ac_prog", so it can be a program name with args.
2769 set dummy $ac_prog; ac_word=$2
2770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2772 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2773 echo $ECHO_N "(cached) $ECHO_C" >&6
2775 if test -n "$ac_ct_CC"; then
2776 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2785 ac_cv_prog_ac_ct_CC="$ac_prog"
2786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2796 if test -n "$ac_ct_CC"; then
2797 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2798 echo "${ECHO_T}$ac_ct_CC" >&6; }
2800 { echo "$as_me:$LINENO: result: no" >&5
2801 echo "${ECHO_T}no" >&6; }
2805 test -n "$ac_ct_CC" && break
2808 if test "x$ac_ct_CC" = x; then
2811 case $cross_compiling:$ac_tool_warned in
2813 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2814 whose name does not start with the host triplet. If you think this
2815 configuration is useful to you, please write to autoconf@gnu.org." >&5
2816 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2817 whose name does not start with the host triplet. If you think this
2818 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2819 ac_tool_warned=yes ;;
2828 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2829 See \`config.log' for more details." >&5
2830 echo "$as_me: error: no acceptable C compiler found in \$PATH
2831 See \`config.log' for more details." >&2;}
2832 { (exit 1); exit 1; }; }
2834 # Provide some information about the compiler.
2835 echo "$as_me:$LINENO: checking for C compiler version" >&5
2836 ac_compiler=`set X $ac_compile; echo $2`
2837 { (ac_try="$ac_compiler --version >&5"
2839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840 *) ac_try_echo=$ac_try;;
2842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2843 (eval "$ac_compiler --version >&5") 2>&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }
2847 { (ac_try="$ac_compiler -v >&5"
2849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850 *) ac_try_echo=$ac_try;;
2852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2853 (eval "$ac_compiler -v >&5") 2>&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }
2857 { (ac_try="$ac_compiler -V >&5"
2859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860 *) ac_try_echo=$ac_try;;
2862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2863 (eval "$ac_compiler -V >&5") 2>&5
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); }
2868 cat >conftest.$ac_ext <<_ACEOF
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h. */
2883 ac_clean_files_save=$ac_clean_files
2884 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2885 # Try to create an executable without -o first, disregard a.out.
2886 # It will help us diagnose broken compilers, and finding out an intuition
2888 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2889 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2890 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2892 # List of possible output files, starting from the most likely.
2893 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2894 # only as a last resort. b.out is created by i960 compilers.
2895 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2897 # The IRIX 6 linker writes into existing files which may not be
2898 # executable, retaining their permissions. Remove them first so a
2899 # subsequent execution test works.
2901 for ac_file in $ac_files
2904 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2905 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2910 if { (ac_try="$ac_link_default"
2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913 *) ac_try_echo=$ac_try;;
2915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2916 (eval "$ac_link_default") 2>&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; then
2920 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2921 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2922 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2923 # so that the user can short-circuit this test for compilers unknown to
2925 for ac_file in $ac_files ''
2927 test -f "$ac_file" || continue
2929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2932 # We found the default executable, but exeext='' is most
2936 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2938 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2940 # We set ac_cv_exeext here because the later test for it is not
2941 # safe: cross compilers may not add the suffix if given an `-o'
2942 # argument, so we may need to know it at that point already.
2943 # Even if this section looks crufty: it has the advantage of
2950 test "$ac_cv_exeext" = no && ac_cv_exeext=
2956 { echo "$as_me:$LINENO: result: $ac_file" >&5
2957 echo "${ECHO_T}$ac_file" >&6; }
2958 if test -z "$ac_file"; then
2959 echo "$as_me: failed program was:" >&5
2960 sed 's/^/| /' conftest.$ac_ext >&5
2962 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2963 See \`config.log' for more details." >&5
2964 echo "$as_me: error: C compiler cannot create executables
2965 See \`config.log' for more details." >&2;}
2966 { (exit 77); exit 77; }; }
2969 ac_exeext=$ac_cv_exeext
2971 # Check that the compiler produces executables we can run. If not, either
2972 # the compiler is broken, or we cross compile.
2973 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2974 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2975 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2976 # If not cross compiling, check that we can run a simple program.
2977 if test "$cross_compiling" != yes; then
2978 if { ac_try='./$ac_file'
2979 { (case "(($ac_try" in
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984 (eval "$ac_try") 2>&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; }; then
2990 if test "$cross_compiling" = maybe; then
2993 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2994 If you meant to cross compile, use \`--host'.
2995 See \`config.log' for more details." >&5
2996 echo "$as_me: error: cannot run C compiled programs.
2997 If you meant to cross compile, use \`--host'.
2998 See \`config.log' for more details." >&2;}
2999 { (exit 1); exit 1; }; }
3003 { echo "$as_me:$LINENO: result: yes" >&5
3004 echo "${ECHO_T}yes" >&6; }
3006 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3007 ac_clean_files=$ac_clean_files_save
3008 # Check that the compiler produces executables we can run. If not, either
3009 # the compiler is broken, or we cross compile.
3010 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3011 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3012 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3013 echo "${ECHO_T}$cross_compiling" >&6; }
3015 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3016 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3017 if { (ac_try="$ac_link"
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023 (eval "$ac_link") 2>&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; then
3027 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3028 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3029 # work properly (i.e., refer to `conftest.exe'), while it won't with
3031 for ac_file in conftest.exe conftest conftest.*; do
3032 test -f "$ac_file" || continue
3034 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3035 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3041 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3042 See \`config.log' for more details." >&5
3043 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3044 See \`config.log' for more details." >&2;}
3045 { (exit 1); exit 1; }; }
3048 rm -f conftest$ac_cv_exeext
3049 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3050 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3052 rm -f conftest.$ac_ext
3053 EXEEXT=$ac_cv_exeext
3055 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3056 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3057 if test "${ac_cv_objext+set}" = set; then
3058 echo $ECHO_N "(cached) $ECHO_C" >&6
3060 cat >conftest.$ac_ext <<_ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3075 rm -f conftest.o conftest.obj
3076 if { (ac_try="$ac_compile"
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082 (eval "$ac_compile") 2>&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); }; then
3086 for ac_file in conftest.o conftest.obj conftest.*; do
3087 test -f "$ac_file" || continue;
3089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3090 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3095 echo "$as_me: failed program was:" >&5
3096 sed 's/^/| /' conftest.$ac_ext >&5
3098 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3099 See \`config.log' for more details." >&5
3100 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3101 See \`config.log' for more details." >&2;}
3102 { (exit 1); exit 1; }; }
3105 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3107 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3108 echo "${ECHO_T}$ac_cv_objext" >&6; }
3109 OBJEXT=$ac_cv_objext
3111 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3112 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3113 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3116 cat >conftest.$ac_ext <<_ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3134 rm -f conftest.$ac_objext
3135 if { (ac_try="$ac_compile"
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141 (eval "$ac_compile") 2>conftest.er1
3143 grep -v '^ *+' conftest.er1 >conftest.err
3145 cat conftest.err >&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); } && {
3148 test -z "$ac_c_werror_flag" ||
3149 test ! -s conftest.err
3150 } && test -s conftest.$ac_objext; then
3153 echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3160 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3163 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3164 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3165 GCC=`test $ac_compiler_gnu = yes && echo yes`
3166 ac_test_CFLAGS=${CFLAGS+set}
3167 ac_save_CFLAGS=$CFLAGS
3168 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3169 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3170 if test "${ac_cv_prog_cc_g+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 ac_save_c_werror_flag=$ac_c_werror_flag
3174 ac_c_werror_flag=yes
3177 cat >conftest.$ac_ext <<_ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h. */
3192 rm -f conftest.$ac_objext
3193 if { (ac_try="$ac_compile"
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199 (eval "$ac_compile") 2>conftest.er1
3201 grep -v '^ *+' conftest.er1 >conftest.err
3203 cat conftest.err >&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); } && {
3206 test -z "$ac_c_werror_flag" ||
3207 test ! -s conftest.err
3208 } && test -s conftest.$ac_objext; then
3211 echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3215 cat >conftest.$ac_ext <<_ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h. */
3230 rm -f conftest.$ac_objext
3231 if { (ac_try="$ac_compile"
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237 (eval "$ac_compile") 2>conftest.er1
3239 grep -v '^ *+' conftest.er1 >conftest.err
3241 cat conftest.err >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } && {
3244 test -z "$ac_c_werror_flag" ||
3245 test ! -s conftest.err
3246 } && test -s conftest.$ac_objext; then
3249 echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3252 ac_c_werror_flag=$ac_save_c_werror_flag
3254 cat >conftest.$ac_ext <<_ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3269 rm -f conftest.$ac_objext
3270 if { (ac_try="$ac_compile"
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3276 (eval "$ac_compile") 2>conftest.er1
3278 grep -v '^ *+' conftest.er1 >conftest.err
3280 cat conftest.err >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } && {
3283 test -z "$ac_c_werror_flag" ||
3284 test ! -s conftest.err
3285 } && test -s conftest.$ac_objext; then
3288 echo "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.$ac_ext >&5
3294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3301 ac_c_werror_flag=$ac_save_c_werror_flag
3303 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3304 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3305 if test "$ac_test_CFLAGS" = set; then
3306 CFLAGS=$ac_save_CFLAGS
3307 elif test $ac_cv_prog_cc_g = yes; then
3308 if test "$GCC" = yes; then
3314 if test "$GCC" = yes; then
3320 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3321 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3322 if test "${ac_cv_prog_cc_c89+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3325 ac_cv_prog_cc_c89=no
3327 cat >conftest.$ac_ext <<_ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3335 #include <sys/types.h>
3336 #include <sys/stat.h>
3337 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3338 struct buf { int x; };
3339 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3340 static char *e (p, i)
3346 static char *f (char * (*g) (char **, int), char **p, ...)
3351 s = g (p, va_arg (v,int));
3356 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3357 function prototypes and stuff, but not '\xHH' hex character constants.
3358 These don't provoke an error unfortunately, instead are silently treated
3359 as 'x'. The following induces an error, until -std is added to get
3360 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3361 array size at least. It's necessary to write '\x00'==0 to get something
3362 that's true only with -std. */
3363 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3365 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3366 inside strings and character constants. */
3368 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3370 int test (int i, double x);
3371 struct s1 {int (*f) (int a);};
3372 struct s2 {int (*f) (double a);};
3373 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3379 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3384 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3385 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3387 CC="$ac_save_CC $ac_arg"
3388 rm -f conftest.$ac_objext
3389 if { (ac_try="$ac_compile"
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395 (eval "$ac_compile") 2>conftest.er1
3397 grep -v '^ *+' conftest.er1 >conftest.err
3399 cat conftest.err >&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); } && {
3402 test -z "$ac_c_werror_flag" ||
3403 test ! -s conftest.err
3404 } && test -s conftest.$ac_objext; then
3405 ac_cv_prog_cc_c89=$ac_arg
3407 echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3413 rm -f core conftest.err conftest.$ac_objext
3414 test "x$ac_cv_prog_cc_c89" != "xno" && break
3416 rm -f conftest.$ac_ext
3421 case "x$ac_cv_prog_cc_c89" in
3423 { echo "$as_me:$LINENO: result: none needed" >&5
3424 echo "${ECHO_T}none needed" >&6; } ;;
3426 { echo "$as_me:$LINENO: result: unsupported" >&5
3427 echo "${ECHO_T}unsupported" >&6; } ;;
3429 CC="$CC $ac_cv_prog_cc_c89"
3430 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3431 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3436 ac_cpp='$CPP $CPPFLAGS'
3437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3440 DEPDIR="${am__leading_dot}deps"
3442 ac_config_commands="$ac_config_commands depfiles"
3445 am_make=${MAKE-make}
3446 cat > confinc << 'END'
3451 # If we don't find an include directive, just comment out the code.
3452 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3453 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3457 # First try GNU make style include.
3458 echo "include confinc" > confmf
3459 # We grep out `Entering directory' and `Leaving directory'
3460 # messages which can occur if `w' ends up in MAKEFLAGS.
3461 # In particular we don't look at `^make:' because GNU make might
3462 # be invoked under some other name (usually "gmake"), in which
3463 # case it prints its new name instead of `make'.
3464 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3469 # Now try BSD make style include.
3470 if test "$am__include" = "#"; then
3471 echo '.include "confinc"' > confmf
3472 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3473 am__include=.include
3480 { echo "$as_me:$LINENO: result: $_am_result" >&5
3481 echo "${ECHO_T}$_am_result" >&6; }
3482 rm -f confinc confmf
3484 # Check whether --enable-dependency-tracking was given.
3485 if test "${enable_dependency_tracking+set}" = set; then
3486 enableval=$enable_dependency_tracking;
3489 if test "x$enable_dependency_tracking" != xno; then
3490 am_depcomp="$ac_aux_dir/depcomp"
3493 if test "x$enable_dependency_tracking" != xno; then
3503 depcc="$CC" am_compiler_list=
3505 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3506 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3507 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3510 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3511 # We make a subdir and do the tests there. Otherwise we can end up
3512 # making bogus files that we don't know about and never remove. For
3513 # instance it was reported that on HP-UX the gcc test will end up
3514 # making a dummy file named `D' -- because `-MD' means `put the output
3517 # Copy depcomp to subdir because otherwise we won't find it if we're
3518 # using a relative directory.
3519 cp "$am_depcomp" conftest.dir
3521 # We will build objects and dependencies in a subdirectory because
3522 # it helps to detect inapplicable dependency modes. For instance
3523 # both Tru64's cc and ICC support -MD to output dependencies as a
3524 # side effect of compilation, but ICC will put the dependencies in
3525 # the current directory while Tru64 will put them in the object
3529 am_cv_CC_dependencies_compiler_type=none
3530 if test "$am_compiler_list" = ""; then
3531 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3533 for depmode in $am_compiler_list; do
3534 # Setup a source with many dependencies, because some compilers
3535 # like to wrap large dependency lists on column 80 (with \), and
3536 # we should not choose a depcomp mode which is confused by this.
3538 # We need to recreate these files for each test, as the compiler may
3539 # overwrite some of them when testing with obscure command lines.
3540 # This happens at least with the AIX C compiler.
3542 for i in 1 2 3 4 5 6; do
3543 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3544 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3545 # Solaris 8's {/usr,}/bin/sh.
3546 touch sub/conftst$i.h
3548 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3552 # after this tag, mechanisms are not by side-effect, so they'll
3553 # only be used when explicitly requested
3554 if test "x$enable_dependency_tracking" = xyes; then
3562 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3563 # mode. It turns out that the SunPro C++ compiler does not properly
3564 # handle `-M -o', and we need to detect this.
3565 if depmode=$depmode \
3566 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3567 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3568 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3569 >/dev/null 2>conftest.err &&
3570 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3571 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3572 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3573 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3574 # icc doesn't choke on unknown options, it will just issue warnings
3575 # or remarks (even with -Werror). So we grep stderr for any message
3576 # that says an option was ignored or not supported.
3577 # When given -MP, icc 7.0 and 7.1 complain thusly:
3578 # icc: Command line warning: ignoring option '-M'; no argument required
3579 # The diagnosis changed in icc 8.0:
3580 # icc: Command line remark: option '-MP' not supported
3581 if (grep 'ignoring option' conftest.err ||
3582 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3583 am_cv_CC_dependencies_compiler_type=$depmode
3592 am_cv_CC_dependencies_compiler_type=none
3596 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3597 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3598 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3601 test "x$enable_dependency_tracking" != xno \
3602 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3604 am__fastdepCC_FALSE='#'
3606 am__fastdepCC_TRUE='#'
3607 am__fastdepCC_FALSE=
3612 ac_cpp='$CPP $CPPFLAGS'
3613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3616 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3617 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3618 # On Suns, sometimes $CPP names a directory.
3619 if test -n "$CPP" && test -d "$CPP"; then
3622 if test -z "$CPP"; then
3623 if test "${ac_cv_prog_CPP+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 # Double quotes because CPP needs to be expanded
3627 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3630 for ac_c_preproc_warn_flag in '' yes
3632 # Use a header file that comes with gcc, so configuring glibc
3633 # with a fresh cross-compiler works.
3634 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3635 # <limits.h> exists even on freestanding compilers.
3636 # On the NeXT, cc -E runs the code through the compiler's parser,
3637 # not just through cpp. "Syntax error" is here to catch this case.
3638 cat >conftest.$ac_ext <<_ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3645 # include <limits.h>
3647 # include <assert.h>
3651 if { (ac_try="$ac_cpp conftest.$ac_ext"
3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654 *) ac_try_echo=$ac_try;;
3656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3659 grep -v '^ *+' conftest.er1 >conftest.err
3661 cat conftest.err >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } >/dev/null && {
3664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3665 test ! -s conftest.err
3669 echo "$as_me: failed program was:" >&5
3670 sed 's/^/| /' conftest.$ac_ext >&5
3672 # Broken: fails on valid input.
3676 rm -f conftest.err conftest.$ac_ext
3678 # OK, works on sane cases. Now check whether nonexistent headers
3679 # can be detected and how.
3680 cat >conftest.$ac_ext <<_ACEOF
3683 cat confdefs.h >>conftest.$ac_ext
3684 cat >>conftest.$ac_ext <<_ACEOF
3685 /* end confdefs.h. */
3686 #include <ac_nonexistent.h>
3688 if { (ac_try="$ac_cpp conftest.$ac_ext"
3690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691 *) ac_try_echo=$ac_try;;
3693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3696 grep -v '^ *+' conftest.er1 >conftest.err
3698 cat conftest.err >&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); } >/dev/null && {
3701 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3702 test ! -s conftest.err
3704 # Broken: success on invalid input.
3707 echo "$as_me: failed program was:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3710 # Passes both tests.
3715 rm -f conftest.err conftest.$ac_ext
3718 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3719 rm -f conftest.err conftest.$ac_ext
3720 if $ac_preproc_ok; then
3732 { echo "$as_me:$LINENO: result: $CPP" >&5
3733 echo "${ECHO_T}$CPP" >&6; }
3735 for ac_c_preproc_warn_flag in '' yes
3737 # Use a header file that comes with gcc, so configuring glibc
3738 # with a fresh cross-compiler works.
3739 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3740 # <limits.h> exists even on freestanding compilers.
3741 # On the NeXT, cc -E runs the code through the compiler's parser,
3742 # not just through cpp. "Syntax error" is here to catch this case.
3743 cat >conftest.$ac_ext <<_ACEOF
3746 cat confdefs.h >>conftest.$ac_ext
3747 cat >>conftest.$ac_ext <<_ACEOF
3748 /* end confdefs.h. */
3750 # include <limits.h>
3752 # include <assert.h>
3756 if { (ac_try="$ac_cpp conftest.$ac_ext"
3758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759 *) ac_try_echo=$ac_try;;
3761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3764 grep -v '^ *+' conftest.er1 >conftest.err
3766 cat conftest.err >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } >/dev/null && {
3769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3770 test ! -s conftest.err
3774 echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.$ac_ext >&5
3777 # Broken: fails on valid input.
3781 rm -f conftest.err conftest.$ac_ext
3783 # OK, works on sane cases. Now check whether nonexistent headers
3784 # can be detected and how.
3785 cat >conftest.$ac_ext <<_ACEOF
3788 cat confdefs.h >>conftest.$ac_ext
3789 cat >>conftest.$ac_ext <<_ACEOF
3790 /* end confdefs.h. */
3791 #include <ac_nonexistent.h>
3793 if { (ac_try="$ac_cpp conftest.$ac_ext"
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3801 grep -v '^ *+' conftest.er1 >conftest.err
3803 cat conftest.err >&5
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); } >/dev/null && {
3806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3807 test ! -s conftest.err
3809 # Broken: success on invalid input.
3812 echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3815 # Passes both tests.
3820 rm -f conftest.err conftest.$ac_ext
3823 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3824 rm -f conftest.err conftest.$ac_ext
3825 if $ac_preproc_ok; then
3828 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3829 See \`config.log' for more details." >&5
3830 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3831 See \`config.log' for more details." >&2;}
3832 { (exit 1); exit 1; }; }
3836 ac_cpp='$CPP $CPPFLAGS'
3837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3841 for ac_prog in gawk mawk nawk awk
3843 # Extract the first word of "$ac_prog", so it can be a program name with args.
3844 set dummy $ac_prog; ac_word=$2
3845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3847 if test "${ac_cv_prog_AWK+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 if test -n "$AWK"; then
3851 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 test -z "$as_dir" && as_dir=.
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3860 ac_cv_prog_AWK="$ac_prog"
3861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3871 if test -n "$AWK"; then
3872 { echo "$as_me:$LINENO: result: $AWK" >&5
3873 echo "${ECHO_T}$AWK" >&6; }
3875 { echo "$as_me:$LINENO: result: no" >&5
3876 echo "${ECHO_T}no" >&6; }
3880 test -n "$AWK" && break
3883 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3884 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3886 if test "$LN_S" = "ln -s"; then
3887 { echo "$as_me:$LINENO: result: yes" >&5
3888 echo "${ECHO_T}yes" >&6; }
3890 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3891 echo "${ECHO_T}no, using $LN_S" >&6; }
3894 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3895 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3896 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3897 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3900 cat >conftest.make <<\_ACEOF
3903 @echo '@@@%%%=$(MAKE)=@@@%%%'
3905 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3906 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3908 eval ac_cv_prog_make_${ac_make}_set=yes;;
3910 eval ac_cv_prog_make_${ac_make}_set=no;;
3914 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3915 { echo "$as_me:$LINENO: result: yes" >&5
3916 echo "${ECHO_T}yes" >&6; }
3919 { echo "$as_me:$LINENO: result: no" >&5
3920 echo "${ECHO_T}no" >&6; }
3921 SET_MAKE="MAKE=${MAKE-make}"
3924 # Find a good install program. We prefer a C program (faster),
3925 # so one script is as good as another. But avoid the broken or
3926 # incompatible versions:
3927 # SysV /etc/install, /usr/sbin/install
3928 # SunOS /usr/etc/install
3929 # IRIX /sbin/install
3931 # AmigaOS /C/install, which installs bootblocks on floppy discs
3932 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3933 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3934 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3935 # OS/2's system install, which has a completely different semantic
3936 # ./install, which can be erroneously created by make from ./install.sh.
3937 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3938 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3939 if test -z "$INSTALL"; then
3940 if test "${ac_cv_path_install+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 test -z "$as_dir" && as_dir=.
3948 # Account for people who put trailing slashes in PATH elements.
3950 ./ | .// | /cC/* | \
3951 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3952 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3955 # OSF1 and SCO ODT 3.0 have their own names for install.
3956 # Don't use installbsd from OSF since it installs stuff as root
3958 for ac_prog in ginstall scoinst install; do
3959 for ac_exec_ext in '' $ac_executable_extensions; do
3960 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3961 if test $ac_prog = install &&
3962 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3963 # AIX install. It has an incompatible calling convention.
3965 elif test $ac_prog = install &&
3966 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3967 # program-specific install script used by HP pwplus--don't use.
3970 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3983 if test "${ac_cv_path_install+set}" = set; then
3984 INSTALL=$ac_cv_path_install
3986 # As a last resort, use the slow shell script. Don't cache a
3987 # value for INSTALL within a source directory, because that will
3988 # break other packages using the cache if that directory is
3989 # removed, or if the value is a relative name.
3990 INSTALL=$ac_install_sh
3993 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3994 echo "${ECHO_T}$INSTALL" >&6; }
3996 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3997 # It thinks the first close brace ends the variable substitution.
3998 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4000 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4002 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4006 { echo "$as_me:$LINENO: checking for __attribute__" >&5
4007 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
4008 if test "${ac_cv___attribute__+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4012 cat >conftest.$ac_ext <<_ACEOF
4015 cat confdefs.h >>conftest.$ac_ext
4016 cat >>conftest.$ac_ext <<_ACEOF
4017 /* end confdefs.h. */
4025 static void foo(void) __attribute__ ((noreturn));
4037 rm -f conftest.$ac_objext
4038 if { (ac_try="$ac_compile"
4040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041 *) ac_try_echo=$ac_try;;
4043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4044 (eval "$ac_compile") 2>conftest.er1
4046 grep -v '^ *+' conftest.er1 >conftest.err
4048 cat conftest.err >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); } && {
4051 test -z "$ac_c_werror_flag" ||
4052 test ! -s conftest.err
4053 } && test -s conftest.$ac_objext; then
4054 ac_cv___attribute__=yes
4056 echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4059 ac_cv___attribute__=no
4062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 if test "$ac_cv___attribute__" = "yes"; then
4067 cat >>confdefs.h <<\_ACEOF
4068 #define HAVE___ATTRIBUTE__ 1
4072 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
4073 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
4077 # CMU GUESS RUNPATH SWITCH
4078 { echo "$as_me:$LINENO: checking for runpath switch" >&5
4079 echo $ECHO_N "checking for runpath switch... $ECHO_C" >&6; }
4080 if test "${andrew_runpath_switch+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 SAVE_LDFLAGS="${LDFLAGS}"
4086 LDFLAGS="-R /usr/lib"
4087 cat >conftest.$ac_ext <<_ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h. */
4102 rm -f conftest.$ac_objext conftest$ac_exeext
4103 if { (ac_try="$ac_link"
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4109 (eval "$ac_link") 2>conftest.er1
4111 grep -v '^ *+' conftest.er1 >conftest.err
4113 cat conftest.err >&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } && {
4116 test -z "$ac_c_werror_flag" ||
4117 test ! -s conftest.err
4118 } && test -s conftest$ac_exeext &&
4119 $as_test_x conftest$ac_exeext; then
4120 andrew_runpath_switch="-R"
4122 echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4126 LDFLAGS="-Wl,-rpath,/usr/lib"
4127 cat >conftest.$ac_ext <<_ACEOF
4130 cat confdefs.h >>conftest.$ac_ext
4131 cat >>conftest.$ac_ext <<_ACEOF
4132 /* end confdefs.h. */
4142 rm -f conftest.$ac_objext conftest$ac_exeext
4143 if { (ac_try="$ac_link"
4145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4146 *) ac_try_echo=$ac_try;;
4148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4149 (eval "$ac_link") 2>conftest.er1
4151 grep -v '^ *+' conftest.er1 >conftest.err
4153 cat conftest.err >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } && {
4156 test -z "$ac_c_werror_flag" ||
4157 test ! -s conftest.err
4158 } && test -s conftest$ac_exeext &&
4159 $as_test_x conftest$ac_exeext; then
4160 andrew_runpath_switch="-Wl,-rpath,"
4162 echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.$ac_ext >&5
4165 andrew_runpath_switch="none"
4168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4169 conftest$ac_exeext conftest.$ac_ext
4173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4174 conftest$ac_exeext conftest.$ac_ext
4175 LDFLAGS="${SAVE_LDFLAGS}"
4178 { echo "$as_me:$LINENO: result: $andrew_runpath_switch" >&5
4179 echo "${ECHO_T}$andrew_runpath_switch" >&6; }
4182 # Check whether --with-staticsasl was given.
4183 if test "${with_staticsasl+set}" = set; then
4184 withval=$with_staticsasl;
4187 if test "$with_staticsasl" = yes; then
4193 if test -z "$target"; then
4198 # Check whether --enable-static was given.
4199 if test "${enable_static+set}" = set; then
4200 enableval=$enable_static; p=${PACKAGE-default}
4201 case "$enableval" in
4202 yes) enable_static=yes ;;
4203 no) enable_static=no ;;
4206 # Look at the argument we got. We use all the common list separators.
4207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4208 for pkg in $enableval; do
4209 if test "X$pkg" = "X$p"; then
4220 # Check whether --enable-shared was given.
4221 if test "${enable_shared+set}" = set; then
4222 enableval=$enable_shared; p=${PACKAGE-default}
4223 case "$enableval" in
4224 yes) enable_shared=yes ;;
4225 no) enable_shared=no ;;
4228 # Look at the argument we got. We use all the common list separators.
4229 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4230 for pkg in $enableval; do
4231 if test "X$pkg" = "X$p"; then
4242 # Check whether --enable-fast-install was given.
4243 if test "${enable_fast_install+set}" = set; then
4244 enableval=$enable_fast_install; p=${PACKAGE-default}
4245 case "$enableval" in
4246 yes) enable_fast_install=yes ;;
4247 no) enable_fast_install=no ;;
4249 enable_fast_install=no
4250 # Look at the argument we got. We use all the common list separators.
4251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4252 for pkg in $enableval; do
4253 if test "X$pkg" = "X$p"; then
4254 enable_fast_install=yes
4261 enable_fast_install=yes
4264 if test -n "$ac_tool_prefix"; then
4265 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4266 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4269 if test "${ac_cv_prog_RANLIB+set}" = set; then
4270 echo $ECHO_N "(cached) $ECHO_C" >&6
4272 if test -n "$RANLIB"; then
4273 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 test -z "$as_dir" && as_dir=.
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4282 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4292 RANLIB=$ac_cv_prog_RANLIB
4293 if test -n "$RANLIB"; then
4294 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4295 echo "${ECHO_T}$RANLIB" >&6; }
4297 { echo "$as_me:$LINENO: result: no" >&5
4298 echo "${ECHO_T}no" >&6; }
4303 if test -z "$ac_cv_prog_RANLIB"; then
4304 ac_ct_RANLIB=$RANLIB
4305 # Extract the first word of "ranlib", so it can be a program name with args.
4306 set dummy ranlib; ac_word=$2
4307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4309 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4312 if test -n "$ac_ct_RANLIB"; then
4313 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4322 ac_cv_prog_ac_ct_RANLIB="ranlib"
4323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4332 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4333 if test -n "$ac_ct_RANLIB"; then
4334 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4335 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4337 { echo "$as_me:$LINENO: result: no" >&5
4338 echo "${ECHO_T}no" >&6; }
4341 if test "x$ac_ct_RANLIB" = x; then
4344 case $cross_compiling:$ac_tool_warned in
4346 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4347 whose name does not start with the host triplet. If you think this
4348 configuration is useful to you, please write to autoconf@gnu.org." >&5
4349 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4350 whose name does not start with the host triplet. If you think this
4351 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4352 ac_tool_warned=yes ;;
4354 RANLIB=$ac_ct_RANLIB
4357 RANLIB="$ac_cv_prog_RANLIB"
4361 # Check whether --with-gnu-ld was given.
4362 if test "${with_gnu_ld+set}" = set; then
4363 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4369 if test "$ac_cv_c_compiler_gnu" = yes; then
4370 # Check if gcc -print-prog-name=ld gives a path.
4371 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4372 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
4373 ac_prog=`($CC -print-prog-name=ld) 2>&5`
4375 # Accept absolute paths.
4376 [\\/]* | [A-Za-z]:[\\/]*)
4377 re_direlt='/[^/][^/]*/\.\./'
4378 # Canonicalize the path of ld
4379 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4380 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4381 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4383 test -z "$LD" && LD="$ac_prog"
4386 # If it fails, then pretend we aren't using GCC.
4390 # If it is relative, then search for the first ld in PATH.
4394 elif test "$with_gnu_ld" = yes; then
4395 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4396 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4398 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4399 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4401 if test "${ac_cv_path_LD+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4404 if test -z "$LD"; then
4405 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4406 for ac_dir in $PATH; do
4407 test -z "$ac_dir" && ac_dir=.
4408 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4409 ac_cv_path_LD="$ac_dir/$ac_prog"
4410 # Check to see if the program is GNU ld. I'd rather use --version,
4411 # but apparently some GNU ld's only accept -v.
4412 # Break only if it was the GNU/non-GNU ld that we prefer.
4413 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4414 test "$with_gnu_ld" != no && break
4416 test "$with_gnu_ld" != yes && break
4422 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4427 if test -n "$LD"; then
4428 { echo "$as_me:$LINENO: result: $LD" >&5
4429 echo "${ECHO_T}$LD" >&6; }
4431 { echo "$as_me:$LINENO: result: no" >&5
4432 echo "${ECHO_T}no" >&6; }
4434 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4435 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4436 { (exit 1); exit 1; }; }
4437 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4438 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4439 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4443 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4444 ac_cv_prog_gnu_ld=yes
4446 ac_cv_prog_gnu_ld=no
4449 { echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4450 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
4453 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4454 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4455 if test "${ac_cv_path_NM+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 if test -n "$NM"; then
4459 # Let the user override the test.
4462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4463 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4464 test -z "$ac_dir" && ac_dir=.
4465 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
4466 # Check to see if the nm accepts a BSD-compat flag.
4467 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4468 # nm: unknown option "B" ignored
4469 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4470 ac_cv_path_NM="$ac_dir/nm -B"
4472 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4473 ac_cv_path_NM="$ac_dir/nm -p"
4476 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
4477 continue # so that we can try to find one that supports BSD flags
4482 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
4487 { echo "$as_me:$LINENO: result: $NM" >&5
4488 echo "${ECHO_T}$NM" >&6; }
4492 NONE) lt_target="$host" ;;
4493 *) lt_target="$target" ;;
4496 # Check for any special flags to pass to ltconfig.
4497 libtool_flags="--cache-file=$cache_file"
4498 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4499 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4500 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4501 test "$ac_cv_c_compiler_gnu" = yes && libtool_flags="$libtool_flags --with-gcc"
4502 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4505 # Check whether --enable-libtool-lock was given.
4506 if test "${enable_libtool_lock+set}" = set; then
4507 enableval=$enable_libtool_lock;
4510 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4511 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4513 # Some flags need to be propagated to the compiler or linker for good
4515 case "$lt_target" in
4517 # Find out which ABI we are using.
4518 echo '#line 4518 "configure"' > conftest.$ac_ext
4519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4520 (eval $ac_compile) 2>&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); }; then
4524 case "`/usr/bin/file conftest.o`" in
4540 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4541 SAVE_CFLAGS="$CFLAGS"
4542 CFLAGS="$CFLAGS -belf"
4543 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4544 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4545 if test "${lt_cv_cc_needs_belf+set}" = set; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4548 cat >conftest.$ac_ext <<_ACEOF
4551 cat confdefs.h >>conftest.$ac_ext
4552 cat >>conftest.$ac_ext <<_ACEOF
4553 /* end confdefs.h. */
4563 rm -f conftest.$ac_objext conftest$ac_exeext
4564 if { (ac_try="$ac_link"
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4570 (eval "$ac_link") 2>conftest.er1
4572 grep -v '^ *+' conftest.er1 >conftest.err
4574 cat conftest.err >&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); } && {
4577 test -z "$ac_c_werror_flag" ||
4578 test ! -s conftest.err
4579 } && test -s conftest$ac_exeext &&
4580 $as_test_x conftest$ac_exeext; then
4581 lt_cv_cc_needs_belf=yes
4583 echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4586 lt_cv_cc_needs_belf=no
4589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4590 conftest$ac_exeext conftest.$ac_ext
4592 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4593 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4594 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4595 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4596 CFLAGS="$SAVE_CFLAGS"
4604 # Save cache, so that ltconfig can load it
4605 cat >confcache <<\_ACEOF
4606 # This file is a shell script that caches the results of configure
4607 # tests run on this system so they can be shared between configure
4608 # scripts and configure runs, see configure's option --config-cache.
4609 # It is not useful on other systems. If it contains results you don't
4610 # want to keep, you may remove or edit it.
4612 # config.status only pays attention to the cache file if you give it
4613 # the --recheck option to rerun configure.
4615 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4616 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4621 # The following way of writing the cache mishandles newlines in values,
4622 # but we know of no workaround that is simple, portable, and efficient.
4623 # So, we kill variables containing newlines.
4624 # Ultrix sh set writes to stderr and can't be redirected directly,
4625 # and sets the high bit in the cache file unless we assign to the vars.
4627 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4628 eval ac_val=\$$ac_var
4632 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
4633 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
4636 _ | IFS | as_nl) ;; #(
4637 *) $as_unset $ac_var ;;
4643 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4644 *${as_nl}ac_space=\ *)
4645 # `set' does not quote correctly, so add quotes (double-quote
4646 # substitution turns \\\\ into \\, and sed turns \\ into \).
4649 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4652 # `set' quotes correctly as required by POSIX, so do not add quotes.
4653 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4662 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4664 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4666 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4667 if test -w "$cache_file"; then
4668 test "x$cache_file" != "x/dev/null" &&
4669 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
4670 echo "$as_me: updating cache $cache_file" >&6;}
4671 cat confcache >$cache_file
4673 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
4674 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4679 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4680 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4681 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4682 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
4683 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
4684 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4685 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
4686 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4687 echo "$as_me: error: libtool configure failed" >&2;}
4688 { (exit 1); exit 1; }; }
4690 # Reload cache, that may have been modified by ltconfig
4691 if test -r "$cache_file"; then
4692 # Some versions of bash will fail to source /dev/null (special
4693 # files actually), so we avoid doing that.
4694 if test -f "$cache_file"; then
4695 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4696 echo "$as_me: loading cache $cache_file" >&6;}
4698 [\\/]* | ?:[\\/]* ) . "$cache_file";;
4699 *) . "./$cache_file";;
4703 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4704 echo "$as_me: creating cache $cache_file" >&6;}
4709 # This can be used to rebuild libtool when needed
4710 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
4712 # Always use our own libtool.
4713 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4715 # Redirect the config.log output again, so that the ltconfig log is not
4716 # clobbered by the next message.
4717 exec 5>>./config.log
4722 if test "$enable_static" = yes; then
4723 SASL_STATIC_LIBS=libsasl2.a
4728 # Check whether --enable-staticdlopen was given.
4729 if test "${enable_staticdlopen+set}" = set; then
4730 enableval=$enable_staticdlopen; enable_staticdlopen=$enableval
4732 enable_staticdlopen=no
4736 if test "$enable_staticdlopen" = yes; then
4738 cat >>confdefs.h <<\_ACEOF
4739 #define TRY_DLOPEN_WHEN_STATIC
4744 if test "$ac_cv_c_compiler_gnu" = yes; then
4745 CFLAGS="-Wall -W ${CFLAGS}"
4749 # Check whether --with-purecov was given.
4750 if test "${with_purecov+set}" = set; then
4751 withval=$with_purecov;
4754 if test "$with_purecov" = yes; then
4755 for ac_prog in purecov
4757 # Extract the first word of "$ac_prog", so it can be a program name with args.
4758 set dummy $ac_prog; ac_word=$2
4759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4761 if test "${ac_cv_prog_PURECOV+set}" = set; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 if test -n "$PURECOV"; then
4765 ac_cv_prog_PURECOV="$PURECOV" # Let the user override the test.
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 test -z "$as_dir" && as_dir=.
4772 for ac_exec_ext in '' $ac_executable_extensions; do
4773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4774 ac_cv_prog_PURECOV="$ac_prog"
4775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4784 PURECOV=$ac_cv_prog_PURECOV
4785 if test -n "$PURECOV"; then
4786 { echo "$as_me:$LINENO: result: $PURECOV" >&5
4787 echo "${ECHO_T}$PURECOV" >&6; }
4789 { echo "$as_me:$LINENO: result: no" >&5
4790 echo "${ECHO_T}no" >&6; }
4794 test -n "$PURECOV" && break
4799 # Check whether --with-purify was given.
4800 if test "${with_purify+set}" = set; then
4801 withval=$with_purify;
4804 if test "$with_purify" = yes; then
4805 for ac_prog in purify
4807 # Extract the first word of "$ac_prog", so it can be a program name with args.
4808 set dummy $ac_prog; ac_word=$2
4809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4811 if test "${ac_cv_prog_PURIFY+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 if test -n "$PURIFY"; then
4815 ac_cv_prog_PURIFY="$PURIFY" # Let the user override the test.
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 test -z "$as_dir" && as_dir=.
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4824 ac_cv_prog_PURIFY="$ac_prog"
4825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 PURIFY=$ac_cv_prog_PURIFY
4835 if test -n "$PURIFY"; then
4836 { echo "$as_me:$LINENO: result: $PURIFY" >&5
4837 echo "${ECHO_T}$PURIFY" >&6; }
4839 { echo "$as_me:$LINENO: result: no" >&5
4840 echo "${ECHO_T}no" >&6; }
4844 test -n "$PURIFY" && break
4849 # Check whether --enable-java was given.
4850 if test "${enable_java+set}" = set; then
4851 enableval=$enable_java; enable_java=$enableval
4856 if test "$enable_java" = yes; then
4857 # Extract the first word of "javac", so it can be a program name with args.
4858 set dummy javac; ac_word=$2
4859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4861 if test "${ac_cv_path_JAVAC+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
4877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="no"
4888 JAVAC=$ac_cv_path_JAVAC
4889 if test -n "$JAVAC"; then
4890 { echo "$as_me:$LINENO: result: $JAVAC" >&5
4891 echo "${ECHO_T}$JAVAC" >&6; }
4893 { echo "$as_me:$LINENO: result: no" >&5
4894 echo "${ECHO_T}no" >&6; }
4898 for ac_prog in javah kaffeh
4900 # Extract the first word of "$ac_prog", so it can be a program name with args.
4901 set dummy $ac_prog; ac_word=$2
4902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4904 if test "${ac_cv_path_JAVAH+set}" = set; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 test -z "$as_dir" && as_dir=.
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4919 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext"
4920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4930 JAVAH=$ac_cv_path_JAVAH
4931 if test -n "$JAVAH"; then
4932 { echo "$as_me:$LINENO: result: $JAVAH" >&5
4933 echo "${ECHO_T}$JAVAH" >&6; }
4935 { echo "$as_me:$LINENO: result: no" >&5
4936 echo "${ECHO_T}no" >&6; }
4940 test -n "$JAVAH" && break
4942 test -n "$JAVAH" || JAVAH="no"
4944 for ac_prog in javadoc
4946 # Extract the first word of "$ac_prog", so it can be a program name with args.
4947 set dummy $ac_prog; ac_word=$2
4948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4950 if test "${ac_cv_prog_JAVADOC+set}" = set; then
4951 echo $ECHO_N "(cached) $ECHO_C" >&6
4953 if test -n "$JAVADOC"; then
4954 ac_cv_prog_JAVADOC="$JAVADOC" # Let the user override the test.
4956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960 test -z "$as_dir" && as_dir=.
4961 for ac_exec_ext in '' $ac_executable_extensions; do
4962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4963 ac_cv_prog_JAVADOC="$ac_prog"
4964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 JAVADOC=$ac_cv_prog_JAVADOC
4974 if test -n "$JAVADOC"; then
4975 { echo "$as_me:$LINENO: result: $JAVADOC" >&5
4976 echo "${ECHO_T}$JAVADOC" >&6; }
4978 { echo "$as_me:$LINENO: result: no" >&5
4979 echo "${ECHO_T}no" >&6; }
4983 test -n "$JAVADOC" && break
4985 test -n "$JAVADOC" || JAVADOC=":"
4987 if test "$JAVAC" = "no" -o "$JAVAH" = "no"; then
4988 { echo "$as_me:$LINENO: WARNING: Disabling Java support" >&5
4989 echo "$as_me: WARNING: Disabling Java support" >&2;}
4993 # Make distcheck work
4998 if test "$enable_java" = yes; then
5007 if test "$enable_java" = yes; then
5008 { echo "$as_me:$LINENO: checking JNI cpp flags" >&5
5009 echo $ECHO_N "checking JNI cpp flags... $ECHO_C" >&6; }
5010 if test "${sasl_cv_java_includes+set}" = set; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5014 if test `echo $JAVAH | sed 's,.*/,,'` = "kaffeh"; then
5015 sasl_cv_java_includes=-I`echo $JAVAH | sed -e 's,/bin.*,/include/kaffe,'`
5017 java_base=`echo $JAVAC | sed 's,/bin.*,'','`
5020 # Check whether --with-javabase was given.
5021 if test "${with_javabase+set}" = set; then
5022 withval=$with_javabase; java_base=$withval
5027 sasl_cv_java_includes=''
5028 for dir in `find ${java_base}/include -follow -type d -print | grep -v green_threads`; do
5029 sasl_cv_java_includes="${sasl_cv_java_includes} -I$dir"
5033 sasl_cv_java_includes="${sasl_cv_java_includes} -I$javapath/include"
5037 JAVA_INCLUDES=$sasl_cv_java_includes
5039 { echo "$as_me:$LINENO: result: ok" >&5
5040 echo "${ECHO_T}ok" >&6; }
5044 JAVAC=`echo "$JAVAC" | sed 's,.*/,,'`
5045 JAVAH=`echo "$JAVAH" | sed 's,.*/,,'`
5048 if test "$enable_sample" = yes; then
5060 { echo "$as_me:$LINENO: checking for connect" >&5
5061 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
5062 if test "${ac_cv_func_connect+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 cat >conftest.$ac_ext <<_ACEOF
5068 cat confdefs.h >>conftest.$ac_ext
5069 cat >>conftest.$ac_ext <<_ACEOF
5070 /* end confdefs.h. */
5071 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5073 #define connect innocuous_connect
5075 /* System header to define __stub macros and hopefully few prototypes,
5076 which can conflict with char connect (); below.
5077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5078 <limits.h> exists even on freestanding compilers. */
5081 # include <limits.h>
5083 # include <assert.h>
5088 /* Override any GCC internal prototype to avoid an error.
5089 Use char because int might match the return type of a GCC
5090 builtin and then its argument prototype would still apply. */
5095 /* The GNU C library defines this for functions which it implements
5096 to always fail with ENOSYS. Some functions are actually named
5097 something starting with __ and the normal name is an alias. */
5098 #if defined __stub_connect || defined __stub___connect
5110 rm -f conftest.$ac_objext conftest$ac_exeext
5111 if { (ac_try="$ac_link"
5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114 *) ac_try_echo=$ac_try;;
5116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5117 (eval "$ac_link") 2>conftest.er1
5119 grep -v '^ *+' conftest.er1 >conftest.err
5121 cat conftest.err >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } && {
5124 test -z "$ac_c_werror_flag" ||
5125 test ! -s conftest.err
5126 } && test -s conftest$ac_exeext &&
5127 $as_test_x conftest$ac_exeext; then
5128 ac_cv_func_connect=yes
5130 echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5133 ac_cv_func_connect=no
5136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5137 conftest$ac_exeext conftest.$ac_ext
5139 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5140 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
5141 if test $ac_cv_func_connect = yes; then
5144 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5145 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5146 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 ac_check_lib_save_LIBS=$LIBS
5151 cat >conftest.$ac_ext <<_ACEOF
5154 cat confdefs.h >>conftest.$ac_ext
5155 cat >>conftest.$ac_ext <<_ACEOF
5156 /* end confdefs.h. */
5158 /* Override any GCC internal prototype to avoid an error.
5159 Use char because int might match the return type of a GCC
5160 builtin and then its argument prototype would still apply. */
5164 char gethostbyname ();
5168 return gethostbyname ();
5173 rm -f conftest.$ac_objext conftest$ac_exeext
5174 if { (ac_try="$ac_link"
5176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177 *) ac_try_echo=$ac_try;;
5179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5180 (eval "$ac_link") 2>conftest.er1
5182 grep -v '^ *+' conftest.er1 >conftest.err
5184 cat conftest.err >&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); } && {
5187 test -z "$ac_c_werror_flag" ||
5188 test ! -s conftest.err
5189 } && test -s conftest$ac_exeext &&
5190 $as_test_x conftest$ac_exeext; then
5191 ac_cv_lib_nsl_gethostbyname=yes
5193 echo "$as_me: failed program was:" >&5
5194 sed 's/^/| /' conftest.$ac_ext >&5
5196 ac_cv_lib_nsl_gethostbyname=no
5199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5200 conftest$ac_exeext conftest.$ac_ext
5201 LIBS=$ac_check_lib_save_LIBS
5203 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5204 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
5205 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5206 LIB_SOCKET="-lnsl $LIB_SOCKET"
5209 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5210 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
5211 if test "${ac_cv_lib_socket_connect+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 ac_check_lib_save_LIBS=$LIBS
5215 LIBS="-lsocket $LIBS"
5216 cat >conftest.$ac_ext <<_ACEOF
5219 cat confdefs.h >>conftest.$ac_ext
5220 cat >>conftest.$ac_ext <<_ACEOF
5221 /* end confdefs.h. */
5223 /* Override any GCC internal prototype to avoid an error.
5224 Use char because int might match the return type of a GCC
5225 builtin and then its argument prototype would still apply. */
5238 rm -f conftest.$ac_objext conftest$ac_exeext
5239 if { (ac_try="$ac_link"
5241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242 *) ac_try_echo=$ac_try;;
5244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5245 (eval "$ac_link") 2>conftest.er1
5247 grep -v '^ *+' conftest.er1 >conftest.err
5249 cat conftest.err >&5
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); } && {
5252 test -z "$ac_c_werror_flag" ||
5253 test ! -s conftest.err
5254 } && test -s conftest$ac_exeext &&
5255 $as_test_x conftest$ac_exeext; then
5256 ac_cv_lib_socket_connect=yes
5258 echo "$as_me: failed program was:" >&5
5259 sed 's/^/| /' conftest.$ac_ext >&5
5261 ac_cv_lib_socket_connect=no
5264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5265 conftest$ac_exeext conftest.$ac_ext
5266 LIBS=$ac_check_lib_save_LIBS
5268 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5269 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
5270 if test $ac_cv_lib_socket_connect = yes; then
5271 LIB_SOCKET="-lsocket $LIB_SOCKET"
5277 LIBS="$LIB_SOCKET $save_LIBS"
5278 { echo "$as_me:$LINENO: checking for res_search" >&5
5279 echo $ECHO_N "checking for res_search... $ECHO_C" >&6; }
5280 if test "${ac_cv_func_res_search+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5283 cat >conftest.$ac_ext <<_ACEOF
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h. */
5289 /* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
5290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5291 #define res_search innocuous_res_search
5293 /* System header to define __stub macros and hopefully few prototypes,
5294 which can conflict with char res_search (); below.
5295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5296 <limits.h> exists even on freestanding compilers. */
5299 # include <limits.h>
5301 # include <assert.h>
5306 /* Override any GCC internal prototype to avoid an error.
5307 Use char because int might match the return type of a GCC
5308 builtin and then its argument prototype would still apply. */
5313 /* The GNU C library defines this for functions which it implements
5314 to always fail with ENOSYS. Some functions are actually named
5315 something starting with __ and the normal name is an alias. */
5316 #if defined __stub_res_search || defined __stub___res_search
5323 return res_search ();
5328 rm -f conftest.$ac_objext conftest$ac_exeext
5329 if { (ac_try="$ac_link"
5331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332 *) ac_try_echo=$ac_try;;
5334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5335 (eval "$ac_link") 2>conftest.er1
5337 grep -v '^ *+' conftest.er1 >conftest.err
5339 cat conftest.err >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } && {
5342 test -z "$ac_c_werror_flag" ||
5343 test ! -s conftest.err
5344 } && test -s conftest$ac_exeext &&
5345 $as_test_x conftest$ac_exeext; then
5346 ac_cv_func_res_search=yes
5348 echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5351 ac_cv_func_res_search=no
5354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5355 conftest$ac_exeext conftest.$ac_ext
5357 { echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
5358 echo "${ECHO_T}$ac_cv_func_res_search" >&6; }
5359 if test $ac_cv_func_res_search = yes; then
5362 LIBS="-lresolv $LIB_SOCKET $save_LIBS"
5363 cat >conftest.$ac_ext <<_ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h. */
5370 #include <sys/types.h>
5371 #include <netinet/in.h>
5372 #include <arpa/nameser.h>
5373 #ifdef HAVE_ARPA_NAMESER_COMPAT_H
5374 #include <arpa/nameser_compat.h>
5381 const char host[12]="openafs.org";
5383 res_search( host, C_IN, T_MX, (u_char *)&ans, sizeof(ans));
5390 rm -f conftest.$ac_objext conftest$ac_exeext
5391 if { (ac_try="$ac_link"
5393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5394 *) ac_try_echo=$ac_try;;
5396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5397 (eval "$ac_link") 2>conftest.er1
5399 grep -v '^ *+' conftest.er1 >conftest.err
5401 cat conftest.err >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } && {
5404 test -z "$ac_c_werror_flag" ||
5405 test ! -s conftest.err
5406 } && test -s conftest$ac_exeext &&
5407 $as_test_x conftest$ac_exeext; then
5408 LIB_SOCKET="-lresolv $LIB_SOCKET"
5410 echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5417 conftest$ac_exeext conftest.$ac_ext
5421 LIBS="$LIB_SOCKET $save_LIBS"
5424 for ac_func in dn_expand dns_lookup
5426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5427 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5429 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 cat >conftest.$ac_ext <<_ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5440 #define $ac_func innocuous_$ac_func
5442 /* System header to define __stub macros and hopefully few prototypes,
5443 which can conflict with char $ac_func (); below.
5444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5445 <limits.h> exists even on freestanding compilers. */
5448 # include <limits.h>
5450 # include <assert.h>
5455 /* Override any GCC internal prototype to avoid an error.
5456 Use char because int might match the return type of a GCC
5457 builtin and then its argument prototype would still apply. */
5462 /* The GNU C library defines this for functions which it implements
5463 to always fail with ENOSYS. Some functions are actually named
5464 something starting with __ and the normal name is an alias. */
5465 #if defined __stub_$ac_func || defined __stub___$ac_func
5477 rm -f conftest.$ac_objext conftest$ac_exeext
5478 if { (ac_try="$ac_link"
5480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5481 *) ac_try_echo=$ac_try;;
5483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5484 (eval "$ac_link") 2>conftest.er1
5486 grep -v '^ *+' conftest.er1 >conftest.err
5488 cat conftest.err >&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); } && {
5491 test -z "$ac_c_werror_flag" ||
5492 test ! -s conftest.err
5493 } && test -s conftest$ac_exeext &&
5494 $as_test_x conftest$ac_exeext; then
5495 eval "$as_ac_var=yes"
5497 echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5500 eval "$as_ac_var=no"
5503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5504 conftest$ac_exeext conftest.$ac_ext
5506 ac_res=`eval echo '${'$as_ac_var'}'`
5507 { echo "$as_me:$LINENO: result: $ac_res" >&5
5508 echo "${ECHO_T}$ac_res" >&6; }
5509 if test `eval echo '${'$as_ac_var'}'` = yes; then
5510 cat >>confdefs.h <<_ACEOF
5511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5523 # Check whether --with-dbpath was given.
5524 if test "${with_dbpath+set}" = set; then
5525 withval=$with_dbpath; dbpath=$withval
5530 { echo "$as_me:$LINENO: checking DB path to use" >&5
5531 echo $ECHO_N "checking DB path to use... $ECHO_C" >&6; }
5532 { echo "$as_me:$LINENO: result: $dbpath" >&5
5533 echo "${ECHO_T}$dbpath" >&6; }
5535 cat >>confdefs.h <<_ACEOF
5536 #define SASL_DB_PATH "$dbpath"
5540 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5541 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5542 if test "${ac_cv_path_GREP+set}" = set; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5545 # Extract the first word of "grep ggrep" to use in msg output
5546 if test -z "$GREP"; then
5547 set dummy grep ggrep; ac_prog_name=$2
5548 if test "${ac_cv_path_GREP+set}" = set; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5551 ac_path_GREP_found=false
5552 # Loop through the user's path and test for each of PROGNAME-LIST
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5557 test -z "$as_dir" && as_dir=.
5558 for ac_prog in grep ggrep; do
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5561 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5562 # Check for GNU ac_path_GREP and select it if it is found.
5563 # Check for GNU $ac_path_GREP
5564 case `"$ac_path_GREP" --version 2>&1` in
5566 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5569 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5572 cat "conftest.in" "conftest.in" >"conftest.tmp"
5573 mv "conftest.tmp" "conftest.in"
5574 cp "conftest.in" "conftest.nl"
5575 echo 'GREP' >> "conftest.nl"
5576 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5577 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5578 ac_count=`expr $ac_count + 1`
5579 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5580 # Best one so far, save it but keep looking for a better one
5581 ac_cv_path_GREP="$ac_path_GREP"
5582 ac_path_GREP_max=$ac_count
5584 # 10*(2^10) chars as input seems more than enough
5585 test $ac_count -gt 10 && break
5587 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5591 $ac_path_GREP_found && break 3
5601 GREP="$ac_cv_path_GREP"
5602 if test -z "$GREP"; then
5603 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5604 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5605 { (exit 1); exit 1; }; }
5609 ac_cv_path_GREP=$GREP
5614 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5615 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5616 GREP="$ac_cv_path_GREP"
5619 { echo "$as_me:$LINENO: checking for egrep" >&5
5620 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5621 if test "${ac_cv_path_EGREP+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5624 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5625 then ac_cv_path_EGREP="$GREP -E"
5627 # Extract the first word of "egrep" to use in msg output
5628 if test -z "$EGREP"; then
5629 set dummy egrep; ac_prog_name=$2
5630 if test "${ac_cv_path_EGREP+set}" = set; then
5631 echo $ECHO_N "(cached) $ECHO_C" >&6
5633 ac_path_EGREP_found=false
5634 # Loop through the user's path and test for each of PROGNAME-LIST
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5639 test -z "$as_dir" && as_dir=.
5640 for ac_prog in egrep; do
5641 for ac_exec_ext in '' $ac_executable_extensions; do
5642 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5643 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5644 # Check for GNU ac_path_EGREP and select it if it is found.
5645 # Check for GNU $ac_path_EGREP
5646 case `"$ac_path_EGREP" --version 2>&1` in
5648 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5651 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5654 cat "conftest.in" "conftest.in" >"conftest.tmp"
5655 mv "conftest.tmp" "conftest.in"
5656 cp "conftest.in" "conftest.nl"
5657 echo 'EGREP' >> "conftest.nl"
5658 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5659 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5660 ac_count=`expr $ac_count + 1`
5661 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5662 # Best one so far, save it but keep looking for a better one
5663 ac_cv_path_EGREP="$ac_path_EGREP"
5664 ac_path_EGREP_max=$ac_count
5666 # 10*(2^10) chars as input seems more than enough
5667 test $ac_count -gt 10 && break
5669 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5673 $ac_path_EGREP_found && break 3
5683 EGREP="$ac_cv_path_EGREP"
5684 if test -z "$EGREP"; then
5685 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5686 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5687 { (exit 1); exit 1; }; }
5691 ac_cv_path_EGREP=$EGREP
5697 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5698 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5699 EGREP="$ac_cv_path_EGREP"
5702 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5703 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5704 if test "${ac_cv_header_stdc+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5707 cat >conftest.$ac_ext <<_ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5726 rm -f conftest.$ac_objext
5727 if { (ac_try="$ac_compile"
5729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5730 *) ac_try_echo=$ac_try;;
5732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5733 (eval "$ac_compile") 2>conftest.er1
5735 grep -v '^ *+' conftest.er1 >conftest.err
5737 cat conftest.err >&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } && {
5740 test -z "$ac_c_werror_flag" ||
5741 test ! -s conftest.err
5742 } && test -s conftest.$ac_objext; then
5743 ac_cv_header_stdc=yes
5745 echo "$as_me: failed program was:" >&5
5746 sed 's/^/| /' conftest.$ac_ext >&5
5748 ac_cv_header_stdc=no
5751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5753 if test $ac_cv_header_stdc = yes; then
5754 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5755 cat >conftest.$ac_ext <<_ACEOF
5758 cat confdefs.h >>conftest.$ac_ext
5759 cat >>conftest.$ac_ext <<_ACEOF
5760 /* end confdefs.h. */
5764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5765 $EGREP "memchr" >/dev/null 2>&1; then
5768 ac_cv_header_stdc=no
5774 if test $ac_cv_header_stdc = yes; then
5775 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5776 cat >conftest.$ac_ext <<_ACEOF
5779 cat confdefs.h >>conftest.$ac_ext
5780 cat >>conftest.$ac_ext <<_ACEOF
5781 /* end confdefs.h. */
5785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5786 $EGREP "free" >/dev/null 2>&1; then
5789 ac_cv_header_stdc=no
5795 if test $ac_cv_header_stdc = yes; then
5796 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5797 if test "$cross_compiling" = yes; then
5800 cat >conftest.$ac_ext <<_ACEOF
5803 cat confdefs.h >>conftest.$ac_ext
5804 cat >>conftest.$ac_ext <<_ACEOF
5805 /* end confdefs.h. */
5808 #if ((' ' & 0x0FF) == 0x020)
5809 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5810 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5812 # define ISLOWER(c) \
5813 (('a' <= (c) && (c) <= 'i') \
5814 || ('j' <= (c) && (c) <= 'r') \
5815 || ('s' <= (c) && (c) <= 'z'))
5816 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5819 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5824 for (i = 0; i < 256; i++)
5825 if (XOR (islower (i), ISLOWER (i))
5826 || toupper (i) != TOUPPER (i))
5831 rm -f conftest$ac_exeext
5832 if { (ac_try="$ac_link"
5834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835 *) ac_try_echo=$ac_try;;
5837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5838 (eval "$ac_link") 2>&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5842 { (case "(($ac_try" in
5843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5844 *) ac_try_echo=$ac_try;;
5846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847 (eval "$ac_try") 2>&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; }; then
5853 echo "$as_me: program exited with status $ac_status" >&5
5854 echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5858 ac_cv_header_stdc=no
5860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5866 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5867 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5868 if test $ac_cv_header_stdc = yes; then
5870 cat >>confdefs.h <<\_ACEOF
5871 #define STDC_HEADERS 1
5876 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5886 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5887 inttypes.h stdint.h unistd.h
5889 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5890 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5895 cat >conftest.$ac_ext <<_ACEOF
5898 cat confdefs.h >>conftest.$ac_ext
5899 cat >>conftest.$ac_ext <<_ACEOF
5900 /* end confdefs.h. */
5901 $ac_includes_default
5903 #include <$ac_header>
5905 rm -f conftest.$ac_objext
5906 if { (ac_try="$ac_compile"
5908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909 *) ac_try_echo=$ac_try;;
5911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5912 (eval "$ac_compile") 2>conftest.er1
5914 grep -v '^ *+' conftest.er1 >conftest.err
5916 cat conftest.err >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); } && {
5919 test -z "$ac_c_werror_flag" ||
5920 test ! -s conftest.err
5921 } && test -s conftest.$ac_objext; then
5922 eval "$as_ac_Header=yes"
5924 echo "$as_me: failed program was:" >&5
5925 sed 's/^/| /' conftest.$ac_ext >&5
5927 eval "$as_ac_Header=no"
5930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5932 ac_res=`eval echo '${'$as_ac_Header'}'`
5933 { echo "$as_me:$LINENO: result: $ac_res" >&5
5934 echo "${ECHO_T}$ac_res" >&6; }
5935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5936 cat >>confdefs.h <<_ACEOF
5937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5946 cmu_save_LIBS="$LIBS"
5948 # Check whether --with-dblib was given.
5949 if test "${with_dblib+set}" = set; then
5950 withval=$with_dblib; dblib=$withval
5958 # Check whether --with-bdb-libdir was given.
5959 if test "${with_bdb_libdir+set}" = set; then
5960 withval=$with_bdb_libdir; with_bdb_lib=$withval
5962 test "${with_bdb_lib+set}" = set || with_bdb_lib=none
5966 # Check whether --with-bdb-incdir was given.
5967 if test "${with_bdb_incdir+set}" = set; then
5968 withval=$with_bdb_incdir; with_bdb_inc=$withval
5970 test "${with_bdb_inc+set}" = set || with_bdb_inc=none
5982 cmu_save_CPPFLAGS=$CPPFLAGS
5984 if test -d $with_bdb_inc; then
5985 CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
5986 BDB_INCADD="-I$with_bdb_inc"
5991 if test "${ac_cv_header_db_h+set}" = set; then
5992 { echo "$as_me:$LINENO: checking for db.h" >&5
5993 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
5994 if test "${ac_cv_header_db_h+set}" = set; then
5995 echo $ECHO_N "(cached) $ECHO_C" >&6
5997 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
5998 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
6000 # Is the header compilable?
6001 { echo "$as_me:$LINENO: checking db.h usability" >&5
6002 echo $ECHO_N "checking db.h usability... $ECHO_C" >&6; }
6003 cat >conftest.$ac_ext <<_ACEOF
6006 cat confdefs.h >>conftest.$ac_ext
6007 cat >>conftest.$ac_ext <<_ACEOF
6008 /* end confdefs.h. */
6009 $ac_includes_default
6012 rm -f conftest.$ac_objext
6013 if { (ac_try="$ac_compile"
6015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6016 *) ac_try_echo=$ac_try;;
6018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6019 (eval "$ac_compile") 2>conftest.er1
6021 grep -v '^ *+' conftest.er1 >conftest.err
6023 cat conftest.err >&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } && {
6026 test -z "$ac_c_werror_flag" ||
6027 test ! -s conftest.err
6028 } && test -s conftest.$ac_objext; then
6029 ac_header_compiler=yes
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6034 ac_header_compiler=no
6037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6038 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6039 echo "${ECHO_T}$ac_header_compiler" >&6; }
6041 # Is the header present?
6042 { echo "$as_me:$LINENO: checking db.h presence" >&5
6043 echo $ECHO_N "checking db.h presence... $ECHO_C" >&6; }
6044 cat >conftest.$ac_ext <<_ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h. */
6052 if { (ac_try="$ac_cpp conftest.$ac_ext"
6054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6055 *) ac_try_echo=$ac_try;;
6057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
6065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6066 test ! -s conftest.err
6068 ac_header_preproc=yes
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6073 ac_header_preproc=no
6076 rm -f conftest.err conftest.$ac_ext
6077 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6078 echo "${ECHO_T}$ac_header_preproc" >&6; }
6080 # So? What about this header?
6081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6083 { echo "$as_me:$LINENO: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&5
6084 echo "$as_me: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6085 { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the compiler's result" >&5
6086 echo "$as_me: WARNING: db.h: proceeding with the compiler's result" >&2;}
6087 ac_header_preproc=yes
6090 { echo "$as_me:$LINENO: WARNING: db.h: present but cannot be compiled" >&5
6091 echo "$as_me: WARNING: db.h: present but cannot be compiled" >&2;}
6092 { echo "$as_me:$LINENO: WARNING: db.h: check for missing prerequisite headers?" >&5
6093 echo "$as_me: WARNING: db.h: check for missing prerequisite headers?" >&2;}
6094 { echo "$as_me:$LINENO: WARNING: db.h: see the Autoconf documentation" >&5
6095 echo "$as_me: WARNING: db.h: see the Autoconf documentation" >&2;}
6096 { echo "$as_me:$LINENO: WARNING: db.h: section \"Present But Cannot Be Compiled\"" >&5
6097 echo "$as_me: WARNING: db.h: section \"Present But Cannot Be Compiled\"" >&2;}
6098 { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5
6099 echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;}
6100 { echo "$as_me:$LINENO: WARNING: db.h: in the future, the compiler will take precedence" >&5
6101 echo "$as_me: WARNING: db.h: in the future, the compiler will take precedence" >&2;}
6105 { echo "$as_me:$LINENO: checking for db.h" >&5
6106 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
6107 if test "${ac_cv_header_db_h+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 ac_cv_header_db_h=$ac_header_preproc
6112 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
6113 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
6116 if test $ac_cv_header_db_h = yes; then
6118 BDB_SAVE_LDFLAGS=$LDFLAGS
6120 if test -d $with_bdb_lib; then
6122 # this is CMU ADD LIBPATH TO
6123 if test "$andrew_runpath_switch" = "none" ; then
6124 LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
6126 LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
6130 # this is CMU ADD LIBPATH TO
6131 if test "$andrew_runpath_switch" = "none" ; then
6132 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
6134 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
6142 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
6144 LIBS="$saved_LIBS -l$dbname"
6145 cat >conftest.$ac_ext <<_ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h. */
6155 db_create(NULL, NULL, 0);
6160 rm -f conftest.$ac_objext conftest$ac_exeext
6161 if { (ac_try="$ac_link"
6163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164 *) ac_try_echo=$ac_try;;
6166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6167 (eval "$ac_link") 2>conftest.er1
6169 grep -v '^ *+' conftest.er1 >conftest.err
6171 cat conftest.err >&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); } && {
6174 test -z "$ac_c_werror_flag" ||
6175 test ! -s conftest.err
6176 } && test -s conftest$ac_exeext &&
6177 $as_test_x conftest$ac_exeext; then
6178 BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
6180 echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.$ac_ext >&5
6186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6187 conftest$ac_exeext conftest.$ac_ext
6188 if test "$dblib" = "berkeley"; then break; fi
6190 if test "$dblib" = "no"; then
6191 LIBS="$saved_LIBS -ldb"
6192 cat >conftest.$ac_ext <<_ACEOF
6195 cat confdefs.h >>conftest.$ac_ext
6196 cat >>conftest.$ac_ext <<_ACEOF
6197 /* end confdefs.h. */
6202 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
6207 rm -f conftest.$ac_objext conftest$ac_exeext
6208 if { (ac_try="$ac_link"
6210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211 *) ac_try_echo=$ac_try;;
6213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6214 (eval "$ac_link") 2>conftest.er1
6216 grep -v '^ *+' conftest.er1 >conftest.err
6218 cat conftest.err >&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); } && {
6221 test -z "$ac_c_werror_flag" ||
6222 test ! -s conftest.err
6223 } && test -s conftest$ac_exeext &&
6224 $as_test_x conftest$ac_exeext; then
6225 BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
6227 echo "$as_me: failed program was:" >&5
6228 sed 's/^/| /' conftest.$ac_ext >&5
6233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6234 conftest$ac_exeext conftest.$ac_ext
6238 LDFLAGS=$BDB_SAVE_LDFLAGS
6246 CPPFLAGS=$cmu_save_CPPFLAGS
6248 CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
6249 SASL_DB_INC=$BDB_INCADD
6250 SASL_DB_LIB="${BDB_LIBADD}"
6254 # Check whether --with-gdbm was given.
6255 if test "${with_gdbm+set}" = set; then
6256 withval=$with_gdbm; with_gdbm="${withval}"
6260 case "$with_gdbm" in
6262 if test "${ac_cv_header_gdbm_h+set}" = set; then
6263 { echo "$as_me:$LINENO: checking for gdbm.h" >&5
6264 echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6; }
6265 if test "${ac_cv_header_gdbm_h+set}" = set; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6268 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
6269 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
6271 # Is the header compilable?
6272 { echo "$as_me:$LINENO: checking gdbm.h usability" >&5
6273 echo $ECHO_N "checking gdbm.h usability... $ECHO_C" >&6; }
6274 cat >conftest.$ac_ext <<_ACEOF
6277 cat confdefs.h >>conftest.$ac_ext
6278 cat >>conftest.$ac_ext <<_ACEOF
6279 /* end confdefs.h. */
6280 $ac_includes_default
6283 rm -f conftest.$ac_objext
6284 if { (ac_try="$ac_compile"
6286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6287 *) ac_try_echo=$ac_try;;
6289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6290 (eval "$ac_compile") 2>conftest.er1
6292 grep -v '^ *+' conftest.er1 >conftest.err
6294 cat conftest.err >&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); } && {
6297 test -z "$ac_c_werror_flag" ||
6298 test ! -s conftest.err
6299 } && test -s conftest.$ac_objext; then
6300 ac_header_compiler=yes
6302 echo "$as_me: failed program was:" >&5
6303 sed 's/^/| /' conftest.$ac_ext >&5
6305 ac_header_compiler=no
6308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6309 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6310 echo "${ECHO_T}$ac_header_compiler" >&6; }
6312 # Is the header present?
6313 { echo "$as_me:$LINENO: checking gdbm.h presence" >&5
6314 echo $ECHO_N "checking gdbm.h presence... $ECHO_C" >&6; }
6315 cat >conftest.$ac_ext <<_ACEOF
6318 cat confdefs.h >>conftest.$ac_ext
6319 cat >>conftest.$ac_ext <<_ACEOF
6320 /* end confdefs.h. */
6323 if { (ac_try="$ac_cpp conftest.$ac_ext"
6325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326 *) ac_try_echo=$ac_try;;
6328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6331 grep -v '^ *+' conftest.er1 >conftest.err
6333 cat conftest.err >&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); } >/dev/null && {
6336 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6337 test ! -s conftest.err
6339 ac_header_preproc=yes
6341 echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6344 ac_header_preproc=no
6347 rm -f conftest.err conftest.$ac_ext
6348 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6349 echo "${ECHO_T}$ac_header_preproc" >&6; }
6351 # So? What about this header?
6352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6354 { echo "$as_me:$LINENO: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
6355 echo "$as_me: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6356 { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the compiler's result" >&5
6357 echo "$as_me: WARNING: gdbm.h: proceeding with the compiler's result" >&2;}
6358 ac_header_preproc=yes
6361 { echo "$as_me:$LINENO: WARNING: gdbm.h: present but cannot be compiled" >&5
6362 echo "$as_me: WARNING: gdbm.h: present but cannot be compiled" >&2;}
6363 { echo "$as_me:$LINENO: WARNING: gdbm.h: check for missing prerequisite headers?" >&5
6364 echo "$as_me: WARNING: gdbm.h: check for missing prerequisite headers?" >&2;}
6365 { echo "$as_me:$LINENO: WARNING: gdbm.h: see the Autoconf documentation" >&5
6366 echo "$as_me: WARNING: gdbm.h: see the Autoconf documentation" >&2;}
6367 { echo "$as_me:$LINENO: WARNING: gdbm.h: section \"Present But Cannot Be Compiled\"" >&5
6368 echo "$as_me: WARNING: gdbm.h: section \"Present But Cannot Be Compiled\"" >&2;}
6369 { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5
6370 echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;}
6371 { echo "$as_me:$LINENO: WARNING: gdbm.h: in the future, the compiler will take precedence" >&5
6372 echo "$as_me: WARNING: gdbm.h: in the future, the compiler will take precedence" >&2;}
6376 { echo "$as_me:$LINENO: checking for gdbm.h" >&5
6377 echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6; }
6378 if test "${ac_cv_header_gdbm_h+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6381 ac_cv_header_gdbm_h=$ac_header_preproc
6383 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
6384 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
6387 if test $ac_cv_header_gdbm_h = yes; then
6389 { echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
6390 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6; }
6391 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
6392 echo $ECHO_N "(cached) $ECHO_C" >&6
6394 ac_check_lib_save_LIBS=$LIBS
6396 cat >conftest.$ac_ext <<_ACEOF
6399 cat confdefs.h >>conftest.$ac_ext
6400 cat >>conftest.$ac_ext <<_ACEOF
6401 /* end confdefs.h. */
6403 /* Override any GCC internal prototype to avoid an error.
6404 Use char because int might match the return type of a GCC
6405 builtin and then its argument prototype would still apply. */
6413 return gdbm_open ();
6418 rm -f conftest.$ac_objext conftest$ac_exeext
6419 if { (ac_try="$ac_link"
6421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422 *) ac_try_echo=$ac_try;;
6424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6425 (eval "$ac_link") 2>conftest.er1
6427 grep -v '^ *+' conftest.er1 >conftest.err
6429 cat conftest.err >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } && {
6432 test -z "$ac_c_werror_flag" ||
6433 test ! -s conftest.err
6434 } && test -s conftest$ac_exeext &&
6435 $as_test_x conftest$ac_exeext; then
6436 ac_cv_lib_gdbm_gdbm_open=yes
6438 echo "$as_me: failed program was:" >&5
6439 sed 's/^/| /' conftest.$ac_ext >&5
6441 ac_cv_lib_gdbm_gdbm_open=no
6444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6445 conftest$ac_exeext conftest.$ac_ext
6446 LIBS=$ac_check_lib_save_LIBS
6448 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
6449 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6; }
6450 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
6451 SASL_DB_LIB="-lgdbm"
6463 if test -d $with_gdbm; then
6464 CPPFLAGS="${CPPFLAGS} -I${with_gdbm}/include"
6465 LDFLAGS="${LDFLAGS} -L${with_gdbm}/lib"
6466 SASL_DB_LIB="-lgdbm"
6473 if test "${ac_cv_header_ndbm_h+set}" = set; then
6474 { echo "$as_me:$LINENO: checking for ndbm.h" >&5
6475 echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6; }
6476 if test "${ac_cv_header_ndbm_h+set}" = set; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6479 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
6480 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
6482 # Is the header compilable?
6483 { echo "$as_me:$LINENO: checking ndbm.h usability" >&5
6484 echo $ECHO_N "checking ndbm.h usability... $ECHO_C" >&6; }
6485 cat >conftest.$ac_ext <<_ACEOF
6488 cat confdefs.h >>conftest.$ac_ext
6489 cat >>conftest.$ac_ext <<_ACEOF
6490 /* end confdefs.h. */
6491 $ac_includes_default
6494 rm -f conftest.$ac_objext
6495 if { (ac_try="$ac_compile"
6497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6498 *) ac_try_echo=$ac_try;;
6500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6501 (eval "$ac_compile") 2>conftest.er1
6503 grep -v '^ *+' conftest.er1 >conftest.err
6505 cat conftest.err >&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); } && {
6508 test -z "$ac_c_werror_flag" ||
6509 test ! -s conftest.err
6510 } && test -s conftest.$ac_objext; then
6511 ac_header_compiler=yes
6513 echo "$as_me: failed program was:" >&5
6514 sed 's/^/| /' conftest.$ac_ext >&5
6516 ac_header_compiler=no
6519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6520 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6521 echo "${ECHO_T}$ac_header_compiler" >&6; }
6523 # Is the header present?
6524 { echo "$as_me:$LINENO: checking ndbm.h presence" >&5
6525 echo $ECHO_N "checking ndbm.h presence... $ECHO_C" >&6; }
6526 cat >conftest.$ac_ext <<_ACEOF
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h. */
6534 if { (ac_try="$ac_cpp conftest.$ac_ext"
6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6542 grep -v '^ *+' conftest.er1 >conftest.err
6544 cat conftest.err >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } >/dev/null && {
6547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6548 test ! -s conftest.err
6550 ac_header_preproc=yes
6552 echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6555 ac_header_preproc=no
6558 rm -f conftest.err conftest.$ac_ext
6559 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6560 echo "${ECHO_T}$ac_header_preproc" >&6; }
6562 # So? What about this header?
6563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6565 { echo "$as_me:$LINENO: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
6566 echo "$as_me: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6567 { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the compiler's result" >&5
6568 echo "$as_me: WARNING: ndbm.h: proceeding with the compiler's result" >&2;}
6569 ac_header_preproc=yes
6572 { echo "$as_me:$LINENO: WARNING: ndbm.h: present but cannot be compiled" >&5
6573 echo "$as_me: WARNING: ndbm.h: present but cannot be compiled" >&2;}
6574 { echo "$as_me:$LINENO: WARNING: ndbm.h: check for missing prerequisite headers?" >&5
6575 echo "$as_me: WARNING: ndbm.h: check for missing prerequisite headers?" >&2;}
6576 { echo "$as_me:$LINENO: WARNING: ndbm.h: see the Autoconf documentation" >&5
6577 echo "$as_me: WARNING: ndbm.h: see the Autoconf documentation" >&2;}
6578 { echo "$as_me:$LINENO: WARNING: ndbm.h: section \"Present But Cannot Be Compiled\"" >&5
6579 echo "$as_me: WARNING: ndbm.h: section \"Present But Cannot Be Compiled\"" >&2;}
6580 { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the preprocessor's result" >&5
6581 echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result" >&2;}
6582 { echo "$as_me:$LINENO: WARNING: ndbm.h: in the future, the compiler will take precedence" >&5
6583 echo "$as_me: WARNING: ndbm.h: in the future, the compiler will take precedence" >&2;}
6587 { echo "$as_me:$LINENO: checking for ndbm.h" >&5
6588 echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6; }
6589 if test "${ac_cv_header_ndbm_h+set}" = set; then
6590 echo $ECHO_N "(cached) $ECHO_C" >&6
6592 ac_cv_header_ndbm_h=$ac_header_preproc
6594 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
6595 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
6598 if test $ac_cv_header_ndbm_h = yes; then
6600 { echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
6601 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6; }
6602 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6605 ac_check_lib_save_LIBS=$LIBS
6607 cat >conftest.$ac_ext <<_ACEOF
6610 cat confdefs.h >>conftest.$ac_ext
6611 cat >>conftest.$ac_ext <<_ACEOF
6612 /* end confdefs.h. */
6614 /* Override any GCC internal prototype to avoid an error.
6615 Use char because int might match the return type of a GCC
6616 builtin and then its argument prototype would still apply. */
6629 rm -f conftest.$ac_objext conftest$ac_exeext
6630 if { (ac_try="$ac_link"
6632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6633 *) ac_try_echo=$ac_try;;
6635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6636 (eval "$ac_link") 2>conftest.er1
6638 grep -v '^ *+' conftest.er1 >conftest.err
6640 cat conftest.err >&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); } && {
6643 test -z "$ac_c_werror_flag" ||
6644 test ! -s conftest.err
6645 } && test -s conftest$ac_exeext &&
6646 $as_test_x conftest$ac_exeext; then
6647 ac_cv_lib_ndbm_dbm_open=yes
6649 echo "$as_me: failed program was:" >&5
6650 sed 's/^/| /' conftest.$ac_ext >&5
6652 ac_cv_lib_ndbm_dbm_open=no
6655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6656 conftest$ac_exeext conftest.$ac_ext
6657 LIBS=$ac_check_lib_save_LIBS
6659 { echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
6660 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6; }
6661 if test $ac_cv_lib_ndbm_dbm_open = yes; then
6662 SASL_DB_LIB="-lndbm"
6665 { echo "$as_me:$LINENO: checking for dbm_open" >&5
6666 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6; }
6667 if test "${ac_cv_func_dbm_open+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6670 cat >conftest.$ac_ext <<_ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h. */
6676 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
6677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6678 #define dbm_open innocuous_dbm_open
6680 /* System header to define __stub macros and hopefully few prototypes,
6681 which can conflict with char dbm_open (); below.
6682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6683 <limits.h> exists even on freestanding compilers. */
6686 # include <limits.h>
6688 # include <assert.h>
6693 /* Override any GCC internal prototype to avoid an error.
6694 Use char because int might match the return type of a GCC
6695 builtin and then its argument prototype would still apply. */
6700 /* The GNU C library defines this for functions which it implements
6701 to always fail with ENOSYS. Some functions are actually named
6702 something starting with __ and the normal name is an alias. */
6703 #if defined __stub_dbm_open || defined __stub___dbm_open
6715 rm -f conftest.$ac_objext conftest$ac_exeext
6716 if { (ac_try="$ac_link"
6718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6719 *) ac_try_echo=$ac_try;;
6721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6722 (eval "$ac_link") 2>conftest.er1
6724 grep -v '^ *+' conftest.er1 >conftest.err
6726 cat conftest.err >&5
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); } && {
6729 test -z "$ac_c_werror_flag" ||
6730 test ! -s conftest.err
6731 } && test -s conftest$ac_exeext &&
6732 $as_test_x conftest$ac_exeext; then
6733 ac_cv_func_dbm_open=yes
6735 echo "$as_me: failed program was:" >&5
6736 sed 's/^/| /' conftest.$ac_ext >&5
6738 ac_cv_func_dbm_open=no
6741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6742 conftest$ac_exeext conftest.$ac_ext
6744 { echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
6745 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6; }
6746 if test $ac_cv_func_dbm_open = yes; then
6764 cmu_save_CPPFLAGS=$CPPFLAGS
6766 if test -d $with_bdb_inc; then
6767 CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
6768 BDB_INCADD="-I$with_bdb_inc"
6773 if test "${ac_cv_header_db_h+set}" = set; then
6774 { echo "$as_me:$LINENO: checking for db.h" >&5
6775 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
6776 if test "${ac_cv_header_db_h+set}" = set; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
6779 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
6780 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
6782 # Is the header compilable?
6783 { echo "$as_me:$LINENO: checking db.h usability" >&5
6784 echo $ECHO_N "checking db.h usability... $ECHO_C" >&6; }
6785 cat >conftest.$ac_ext <<_ACEOF
6788 cat confdefs.h >>conftest.$ac_ext
6789 cat >>conftest.$ac_ext <<_ACEOF
6790 /* end confdefs.h. */
6791 $ac_includes_default
6794 rm -f conftest.$ac_objext
6795 if { (ac_try="$ac_compile"
6797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6798 *) ac_try_echo=$ac_try;;
6800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6801 (eval "$ac_compile") 2>conftest.er1
6803 grep -v '^ *+' conftest.er1 >conftest.err
6805 cat conftest.err >&5
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); } && {
6808 test -z "$ac_c_werror_flag" ||
6809 test ! -s conftest.err
6810 } && test -s conftest.$ac_objext; then
6811 ac_header_compiler=yes
6813 echo "$as_me: failed program was:" >&5
6814 sed 's/^/| /' conftest.$ac_ext >&5
6816 ac_header_compiler=no
6819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6820 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6821 echo "${ECHO_T}$ac_header_compiler" >&6; }
6823 # Is the header present?
6824 { echo "$as_me:$LINENO: checking db.h presence" >&5
6825 echo $ECHO_N "checking db.h presence... $ECHO_C" >&6; }
6826 cat >conftest.$ac_ext <<_ACEOF
6829 cat confdefs.h >>conftest.$ac_ext
6830 cat >>conftest.$ac_ext <<_ACEOF
6831 /* end confdefs.h. */
6834 if { (ac_try="$ac_cpp conftest.$ac_ext"
6836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6837 *) ac_try_echo=$ac_try;;
6839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6842 grep -v '^ *+' conftest.er1 >conftest.err
6844 cat conftest.err >&5
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); } >/dev/null && {
6847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6848 test ! -s conftest.err
6850 ac_header_preproc=yes
6852 echo "$as_me: failed program was:" >&5
6853 sed 's/^/| /' conftest.$ac_ext >&5
6855 ac_header_preproc=no
6858 rm -f conftest.err conftest.$ac_ext
6859 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6860 echo "${ECHO_T}$ac_header_preproc" >&6; }
6862 # So? What about this header?
6863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6865 { echo "$as_me:$LINENO: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&5
6866 echo "$as_me: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6867 { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the compiler's result" >&5
6868 echo "$as_me: WARNING: db.h: proceeding with the compiler's result" >&2;}
6869 ac_header_preproc=yes
6872 { echo "$as_me:$LINENO: WARNING: db.h: present but cannot be compiled" >&5
6873 echo "$as_me: WARNING: db.h: present but cannot be compiled" >&2;}
6874 { echo "$as_me:$LINENO: WARNING: db.h: check for missing prerequisite headers?" >&5
6875 echo "$as_me: WARNING: db.h: check for missing prerequisite headers?" >&2;}
6876 { echo "$as_me:$LINENO: WARNING: db.h: see the Autoconf documentation" >&5
6877 echo "$as_me: WARNING: db.h: see the Autoconf documentation" >&2;}
6878 { echo "$as_me:$LINENO: WARNING: db.h: section \"Present But Cannot Be Compiled\"" >&5
6879 echo "$as_me: WARNING: db.h: section \"Present But Cannot Be Compiled\"" >&2;}
6880 { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5
6881 echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;}
6882 { echo "$as_me:$LINENO: WARNING: db.h: in the future, the compiler will take precedence" >&5
6883 echo "$as_me: WARNING: db.h: in the future, the compiler will take precedence" >&2;}
6887 { echo "$as_me:$LINENO: checking for db.h" >&5
6888 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
6889 if test "${ac_cv_header_db_h+set}" = set; then
6890 echo $ECHO_N "(cached) $ECHO_C" >&6
6892 ac_cv_header_db_h=$ac_header_preproc
6894 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
6895 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
6898 if test $ac_cv_header_db_h = yes; then
6900 BDB_SAVE_LDFLAGS=$LDFLAGS
6902 if test -d $with_bdb_lib; then
6904 # this is CMU ADD LIBPATH TO
6905 if test "$andrew_runpath_switch" = "none" ; then
6906 LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
6908 LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
6912 # this is CMU ADD LIBPATH TO
6913 if test "$andrew_runpath_switch" = "none" ; then
6914 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
6916 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
6924 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
6926 LIBS="$saved_LIBS -l$dbname"
6927 cat >conftest.$ac_ext <<_ACEOF
6930 cat confdefs.h >>conftest.$ac_ext
6931 cat >>conftest.$ac_ext <<_ACEOF
6932 /* end confdefs.h. */
6937 db_create(NULL, NULL, 0);
6942 rm -f conftest.$ac_objext conftest$ac_exeext
6943 if { (ac_try="$ac_link"
6945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6946 *) ac_try_echo=$ac_try;;
6948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6949 (eval "$ac_link") 2>conftest.er1
6951 grep -v '^ *+' conftest.er1 >conftest.err
6953 cat conftest.err >&5
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); } && {
6956 test -z "$ac_c_werror_flag" ||
6957 test ! -s conftest.err
6958 } && test -s conftest$ac_exeext &&
6959 $as_test_x conftest$ac_exeext; then
6960 BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
6962 echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6969 conftest$ac_exeext conftest.$ac_ext
6970 if test "$dblib" = "berkeley"; then break; fi
6972 if test "$dblib" = "no"; then
6973 LIBS="$saved_LIBS -ldb"
6974 cat >conftest.$ac_ext <<_ACEOF
6977 cat confdefs.h >>conftest.$ac_ext
6978 cat >>conftest.$ac_ext <<_ACEOF
6979 /* end confdefs.h. */
6984 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
6989 rm -f conftest.$ac_objext conftest$ac_exeext
6990 if { (ac_try="$ac_link"
6992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6993 *) ac_try_echo=$ac_try;;
6995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6996 (eval "$ac_link") 2>conftest.er1
6998 grep -v '^ *+' conftest.er1 >conftest.err
7000 cat conftest.err >&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); } && {
7003 test -z "$ac_c_werror_flag" ||
7004 test ! -s conftest.err
7005 } && test -s conftest$ac_exeext &&
7006 $as_test_x conftest$ac_exeext; then
7007 BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
7009 echo "$as_me: failed program was:" >&5
7010 sed 's/^/| /' conftest.$ac_ext >&5
7015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7016 conftest$ac_exeext conftest.$ac_ext
7020 LDFLAGS=$BDB_SAVE_LDFLAGS
7028 CPPFLAGS=$cmu_save_CPPFLAGS
7030 if test "$dblib" = no; then
7031 if test "${ac_cv_header_ndbm_h+set}" = set; then
7032 { echo "$as_me:$LINENO: checking for ndbm.h" >&5
7033 echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6; }
7034 if test "${ac_cv_header_ndbm_h+set}" = set; then
7035 echo $ECHO_N "(cached) $ECHO_C" >&6
7037 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
7038 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
7040 # Is the header compilable?
7041 { echo "$as_me:$LINENO: checking ndbm.h usability" >&5
7042 echo $ECHO_N "checking ndbm.h usability... $ECHO_C" >&6; }
7043 cat >conftest.$ac_ext <<_ACEOF
7046 cat confdefs.h >>conftest.$ac_ext
7047 cat >>conftest.$ac_ext <<_ACEOF
7048 /* end confdefs.h. */
7049 $ac_includes_default
7052 rm -f conftest.$ac_objext
7053 if { (ac_try="$ac_compile"
7055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7056 *) ac_try_echo=$ac_try;;
7058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7059 (eval "$ac_compile") 2>conftest.er1
7061 grep -v '^ *+' conftest.er1 >conftest.err
7063 cat conftest.err >&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } && {
7066 test -z "$ac_c_werror_flag" ||
7067 test ! -s conftest.err
7068 } && test -s conftest.$ac_objext; then
7069 ac_header_compiler=yes
7071 echo "$as_me: failed program was:" >&5
7072 sed 's/^/| /' conftest.$ac_ext >&5
7074 ac_header_compiler=no
7077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7078 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7079 echo "${ECHO_T}$ac_header_compiler" >&6; }
7081 # Is the header present?
7082 { echo "$as_me:$LINENO: checking ndbm.h presence" >&5
7083 echo $ECHO_N "checking ndbm.h presence... $ECHO_C" >&6; }
7084 cat >conftest.$ac_ext <<_ACEOF
7087 cat confdefs.h >>conftest.$ac_ext
7088 cat >>conftest.$ac_ext <<_ACEOF
7089 /* end confdefs.h. */
7092 if { (ac_try="$ac_cpp conftest.$ac_ext"
7094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7095 *) ac_try_echo=$ac_try;;
7097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7100 grep -v '^ *+' conftest.er1 >conftest.err
7102 cat conftest.err >&5
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); } >/dev/null && {
7105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7106 test ! -s conftest.err
7108 ac_header_preproc=yes
7110 echo "$as_me: failed program was:" >&5
7111 sed 's/^/| /' conftest.$ac_ext >&5
7113 ac_header_preproc=no
7116 rm -f conftest.err conftest.$ac_ext
7117 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7118 echo "${ECHO_T}$ac_header_preproc" >&6; }
7120 # So? What about this header?
7121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7123 { echo "$as_me:$LINENO: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
7124 echo "$as_me: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7125 { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the compiler's result" >&5
7126 echo "$as_me: WARNING: ndbm.h: proceeding with the compiler's result" >&2;}
7127 ac_header_preproc=yes
7130 { echo "$as_me:$LINENO: WARNING: ndbm.h: present but cannot be compiled" >&5
7131 echo "$as_me: WARNING: ndbm.h: present but cannot be compiled" >&2;}
7132 { echo "$as_me:$LINENO: WARNING: ndbm.h: check for missing prerequisite headers?" >&5
7133 echo "$as_me: WARNING: ndbm.h: check for missing prerequisite headers?" >&2;}
7134 { echo "$as_me:$LINENO: WARNING: ndbm.h: see the Autoconf documentation" >&5
7135 echo "$as_me: WARNING: ndbm.h: see the Autoconf documentation" >&2;}
7136 { echo "$as_me:$LINENO: WARNING: ndbm.h: section \"Present But Cannot Be Compiled\"" >&5
7137 echo "$as_me: WARNING: ndbm.h: section \"Present But Cannot Be Compiled\"" >&2;}
7138 { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the preprocessor's result" >&5
7139 echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result" >&2;}
7140 { echo "$as_me:$LINENO: WARNING: ndbm.h: in the future, the compiler will take precedence" >&5
7141 echo "$as_me: WARNING: ndbm.h: in the future, the compiler will take precedence" >&2;}
7145 { echo "$as_me:$LINENO: checking for ndbm.h" >&5
7146 echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6; }
7147 if test "${ac_cv_header_ndbm_h+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7150 ac_cv_header_ndbm_h=$ac_header_preproc
7152 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
7153 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
7156 if test $ac_cv_header_ndbm_h = yes; then
7158 { echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
7159 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6; }
7160 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 ac_check_lib_save_LIBS=$LIBS
7165 cat >conftest.$ac_ext <<_ACEOF
7168 cat confdefs.h >>conftest.$ac_ext
7169 cat >>conftest.$ac_ext <<_ACEOF
7170 /* end confdefs.h. */
7172 /* Override any GCC internal prototype to avoid an error.
7173 Use char because int might match the return type of a GCC
7174 builtin and then its argument prototype would still apply. */
7187 rm -f conftest.$ac_objext conftest$ac_exeext
7188 if { (ac_try="$ac_link"
7190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7191 *) ac_try_echo=$ac_try;;
7193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7194 (eval "$ac_link") 2>conftest.er1
7196 grep -v '^ *+' conftest.er1 >conftest.err
7198 cat conftest.err >&5
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); } && {
7201 test -z "$ac_c_werror_flag" ||
7202 test ! -s conftest.err
7203 } && test -s conftest$ac_exeext &&
7204 $as_test_x conftest$ac_exeext; then
7205 ac_cv_lib_ndbm_dbm_open=yes
7207 echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7210 ac_cv_lib_ndbm_dbm_open=no
7213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7214 conftest$ac_exeext conftest.$ac_ext
7215 LIBS=$ac_check_lib_save_LIBS
7217 { echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
7218 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6; }
7219 if test $ac_cv_lib_ndbm_dbm_open = yes; then
7220 dblib="ndbm"; SASL_DB_LIB="-lndbm"
7230 if test "$dblib" = "weird"; then
7231 { echo "$as_me:$LINENO: checking for dbm_open" >&5
7232 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6; }
7233 if test "${ac_cv_func_dbm_open+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 cat >conftest.$ac_ext <<_ACEOF
7239 cat confdefs.h >>conftest.$ac_ext
7240 cat >>conftest.$ac_ext <<_ACEOF
7241 /* end confdefs.h. */
7242 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
7243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7244 #define dbm_open innocuous_dbm_open
7246 /* System header to define __stub macros and hopefully few prototypes,
7247 which can conflict with char dbm_open (); below.
7248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7249 <limits.h> exists even on freestanding compilers. */
7252 # include <limits.h>
7254 # include <assert.h>
7259 /* Override any GCC internal prototype to avoid an error.
7260 Use char because int might match the return type of a GCC
7261 builtin and then its argument prototype would still apply. */
7266 /* The GNU C library defines this for functions which it implements
7267 to always fail with ENOSYS. Some functions are actually named
7268 something starting with __ and the normal name is an alias. */
7269 #if defined __stub_dbm_open || defined __stub___dbm_open
7281 rm -f conftest.$ac_objext conftest$ac_exeext
7282 if { (ac_try="$ac_link"
7284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7285 *) ac_try_echo=$ac_try;;
7287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7288 (eval "$ac_link") 2>conftest.er1
7290 grep -v '^ *+' conftest.er1 >conftest.err
7292 cat conftest.err >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } && {
7295 test -z "$ac_c_werror_flag" ||
7296 test ! -s conftest.err
7297 } && test -s conftest$ac_exeext &&
7298 $as_test_x conftest$ac_exeext; then
7299 ac_cv_func_dbm_open=yes
7301 echo "$as_me: failed program was:" >&5
7302 sed 's/^/| /' conftest.$ac_ext >&5
7304 ac_cv_func_dbm_open=no
7307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7308 conftest$ac_exeext conftest.$ac_ext
7310 { echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
7311 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6; }
7312 if test $ac_cv_func_dbm_open = yes; then
7320 if test "$dblib" = no; then
7321 if test "${ac_cv_header_gdbm_h+set}" = set; then
7322 { echo "$as_me:$LINENO: checking for gdbm.h" >&5
7323 echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6; }
7324 if test "${ac_cv_header_gdbm_h+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7327 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
7328 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
7330 # Is the header compilable?
7331 { echo "$as_me:$LINENO: checking gdbm.h usability" >&5
7332 echo $ECHO_N "checking gdbm.h usability... $ECHO_C" >&6; }
7333 cat >conftest.$ac_ext <<_ACEOF
7336 cat confdefs.h >>conftest.$ac_ext
7337 cat >>conftest.$ac_ext <<_ACEOF
7338 /* end confdefs.h. */
7339 $ac_includes_default
7342 rm -f conftest.$ac_objext
7343 if { (ac_try="$ac_compile"
7345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7346 *) ac_try_echo=$ac_try;;
7348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7349 (eval "$ac_compile") 2>conftest.er1
7351 grep -v '^ *+' conftest.er1 >conftest.err
7353 cat conftest.err >&5
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); } && {
7356 test -z "$ac_c_werror_flag" ||
7357 test ! -s conftest.err
7358 } && test -s conftest.$ac_objext; then
7359 ac_header_compiler=yes
7361 echo "$as_me: failed program was:" >&5
7362 sed 's/^/| /' conftest.$ac_ext >&5
7364 ac_header_compiler=no
7367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7368 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7369 echo "${ECHO_T}$ac_header_compiler" >&6; }
7371 # Is the header present?
7372 { echo "$as_me:$LINENO: checking gdbm.h presence" >&5
7373 echo $ECHO_N "checking gdbm.h presence... $ECHO_C" >&6; }
7374 cat >conftest.$ac_ext <<_ACEOF
7377 cat confdefs.h >>conftest.$ac_ext
7378 cat >>conftest.$ac_ext <<_ACEOF
7379 /* end confdefs.h. */
7382 if { (ac_try="$ac_cpp conftest.$ac_ext"
7384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7385 *) ac_try_echo=$ac_try;;
7387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7390 grep -v '^ *+' conftest.er1 >conftest.err
7392 cat conftest.err >&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); } >/dev/null && {
7395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7396 test ! -s conftest.err
7398 ac_header_preproc=yes
7400 echo "$as_me: failed program was:" >&5
7401 sed 's/^/| /' conftest.$ac_ext >&5
7403 ac_header_preproc=no
7406 rm -f conftest.err conftest.$ac_ext
7407 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7408 echo "${ECHO_T}$ac_header_preproc" >&6; }
7410 # So? What about this header?
7411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7413 { echo "$as_me:$LINENO: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
7414 echo "$as_me: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7415 { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the compiler's result" >&5
7416 echo "$as_me: WARNING: gdbm.h: proceeding with the compiler's result" >&2;}
7417 ac_header_preproc=yes
7420 { echo "$as_me:$LINENO: WARNING: gdbm.h: present but cannot be compiled" >&5
7421 echo "$as_me: WARNING: gdbm.h: present but cannot be compiled" >&2;}
7422 { echo "$as_me:$LINENO: WARNING: gdbm.h: check for missing prerequisite headers?" >&5
7423 echo "$as_me: WARNING: gdbm.h: check for missing prerequisite headers?" >&2;}
7424 { echo "$as_me:$LINENO: WARNING: gdbm.h: see the Autoconf documentation" >&5
7425 echo "$as_me: WARNING: gdbm.h: see the Autoconf documentation" >&2;}
7426 { echo "$as_me:$LINENO: WARNING: gdbm.h: section \"Present But Cannot Be Compiled\"" >&5
7427 echo "$as_me: WARNING: gdbm.h: section \"Present But Cannot Be Compiled\"" >&2;}
7428 { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5
7429 echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;}
7430 { echo "$as_me:$LINENO: WARNING: gdbm.h: in the future, the compiler will take precedence" >&5
7431 echo "$as_me: WARNING: gdbm.h: in the future, the compiler will take precedence" >&2;}
7435 { echo "$as_me:$LINENO: checking for gdbm.h" >&5
7436 echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6; }
7437 if test "${ac_cv_header_gdbm_h+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7440 ac_cv_header_gdbm_h=$ac_header_preproc
7442 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
7443 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
7446 if test $ac_cv_header_gdbm_h = yes; then
7448 { echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
7449 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6; }
7450 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 ac_check_lib_save_LIBS=$LIBS
7455 cat >conftest.$ac_ext <<_ACEOF
7458 cat confdefs.h >>conftest.$ac_ext
7459 cat >>conftest.$ac_ext <<_ACEOF
7460 /* end confdefs.h. */
7462 /* Override any GCC internal prototype to avoid an error.
7463 Use char because int might match the return type of a GCC
7464 builtin and then its argument prototype would still apply. */
7472 return gdbm_open ();
7477 rm -f conftest.$ac_objext conftest$ac_exeext
7478 if { (ac_try="$ac_link"
7480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7481 *) ac_try_echo=$ac_try;;
7483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7484 (eval "$ac_link") 2>conftest.er1
7486 grep -v '^ *+' conftest.er1 >conftest.err
7488 cat conftest.err >&5
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); } && {
7491 test -z "$ac_c_werror_flag" ||
7492 test ! -s conftest.err
7493 } && test -s conftest$ac_exeext &&
7494 $as_test_x conftest$ac_exeext; then
7495 ac_cv_lib_gdbm_gdbm_open=yes
7497 echo "$as_me: failed program was:" >&5
7498 sed 's/^/| /' conftest.$ac_ext >&5
7500 ac_cv_lib_gdbm_gdbm_open=no
7503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7504 conftest$ac_exeext conftest.$ac_ext
7505 LIBS=$ac_check_lib_save_LIBS
7507 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
7508 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6; }
7509 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
7511 SASL_DB_LIB="-lgdbm"
7523 CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
7524 SASL_DB_INC=$BDB_INCADD
7525 SASL_DB_LIB="${BDB_LIBADD}"
7533 { echo "$as_me:$LINENO: WARNING: Bad DB library implementation specified;" >&5
7534 echo "$as_me: WARNING: Bad DB library implementation specified;" >&2;}
7535 { { echo "$as_me:$LINENO: error: Use either \"berkeley\", \"gdbm\", \"ndbm\" or \"none\"" >&5
7536 echo "$as_me: error: Use either \"berkeley\", \"gdbm\", \"ndbm\" or \"none\"" >&2;}
7537 { (exit 1); exit 1; }; }
7541 LIBS="$cmu_save_LIBS"
7543 { echo "$as_me:$LINENO: checking DB library to use" >&5
7544 echo $ECHO_N "checking DB library to use... $ECHO_C" >&6; }
7545 { echo "$as_me:$LINENO: result: $dblib" >&5
7546 echo "${ECHO_T}$dblib" >&6; }
7548 SASL_DB_BACKEND="db_${dblib}.lo"
7549 SASL_DB_BACKEND_STATIC="db_${dblib}.o allockey.o"
7550 SASL_DB_BACKEND_STATIC_SRCS="../sasldb/db_${dblib}.c ../sasldb/allockey.c"
7551 SASL_DB_UTILS="saslpasswd2 sasldblistusers2"
7552 SASL_DB_MANS="saslpasswd2.8 sasldblistusers2.8"
7556 SASL_MECHS="$SASL_MECHS libsasldb.la"
7558 cat >>confdefs.h <<\_ACEOF
7564 SASL_MECHS="$SASL_MECHS libsasldb.la"
7566 cat >>confdefs.h <<\_ACEOF
7572 SASL_MECHS="$SASL_MECHS libsasldb.la"
7574 cat >>confdefs.h <<\_ACEOF
7575 #define SASL_BERKELEYDB
7580 { echo "$as_me:$LINENO: WARNING: Disabling SASL authentication database support" >&5
7581 echo "$as_me: WARNING: Disabling SASL authentication database support" >&2;}
7582 SASL_DB_BACKEND="db_none.lo"
7583 SASL_DB_BACKEND_STATIC="db_none.o"
7584 SASL_DB_BACKEND_STATIC_SRCS="../sasldb/db_none.c"
7591 if test "$enable_static" = yes; then
7592 if test "$dblib" != "none"; then
7593 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/sasldb.c $SASL_DB_BACKEND_STATIC_SRCS"
7594 SASL_STATIC_OBJS="$SASL_STATIC_OBJS sasldb.o $SASL_DB_BACKEND_STATIC"
7596 cat >>confdefs.h <<\_ACEOF
7597 #define STATIC_SASLDB
7601 SASL_STATIC_OBJS="$SASL_STATIC_OBJS $SASL_DB_BACKEND_STATIC"
7602 SASL_STATIC_SRCS="$SASL_STATIC_SRCS $SASL_DB_BACKEND_STATIC_SRCS"
7614 # Do we not install the SASL DB man pages?
7615 if test "x$SASL_DB_MANS" = "x"; then
7616 NO_SASL_DB_MANS_TRUE=
7617 NO_SASL_DB_MANS_FALSE='#'
7619 NO_SASL_DB_MANS_TRUE='#'
7620 NO_SASL_DB_MANS_FALSE=
7624 # Check whether --enable-keep_db_open was given.
7625 if test "${enable_keep_db_open+set}" = set; then
7626 enableval=$enable_keep_db_open; keep_db_open=$enableval
7632 # Disable if Berkeley DB is not used
7633 if test "$dblib" != berkeley; then
7637 if test "$keep_db_open" = yes; then
7639 cat >>confdefs.h <<\_ACEOF
7640 #define KEEP_DB_OPEN
7644 { echo "$as_me:$LINENO: checking if Berkeley DB handle is kept open in SASLDB" >&5
7645 echo $ECHO_N "checking if Berkeley DB handle is kept open in SASLDB... $ECHO_C" >&6; }
7646 { echo "$as_me:$LINENO: result: $keep_db_open" >&5
7647 echo "${ECHO_T}$keep_db_open" >&6; }
7649 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7650 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
7651 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7654 ac_check_lib_save_LIBS=$LIBS
7656 cat >conftest.$ac_ext <<_ACEOF
7659 cat confdefs.h >>conftest.$ac_ext
7660 cat >>conftest.$ac_ext <<_ACEOF
7661 /* end confdefs.h. */
7663 /* Override any GCC internal prototype to avoid an error.
7664 Use char because int might match the return type of a GCC
7665 builtin and then its argument prototype would still apply. */
7678 rm -f conftest.$ac_objext conftest$ac_exeext
7679 if { (ac_try="$ac_link"
7681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7682 *) ac_try_echo=$ac_try;;
7684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7685 (eval "$ac_link") 2>conftest.er1
7687 grep -v '^ *+' conftest.er1 >conftest.err
7689 cat conftest.err >&5
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); } && {
7692 test -z "$ac_c_werror_flag" ||
7693 test ! -s conftest.err
7694 } && test -s conftest$ac_exeext &&
7695 $as_test_x conftest$ac_exeext; then
7696 ac_cv_lib_dl_dlopen=yes
7698 echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.$ac_ext >&5
7701 ac_cv_lib_dl_dlopen=no
7704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7705 conftest$ac_exeext conftest.$ac_ext
7706 LIBS=$ac_check_lib_save_LIBS
7708 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7709 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
7710 if test $ac_cv_lib_dl_dlopen = yes; then
7720 # Check whether --with-devrandom was given.
7721 if test "${with_devrandom+set}" = set; then
7722 withval=$with_devrandom; devrandom=$withval
7724 devrandom=/dev/random
7727 { echo "$as_me:$LINENO: checking /dev/random to use" >&5
7728 echo $ECHO_N "checking /dev/random to use... $ECHO_C" >&6; }
7729 { echo "$as_me:$LINENO: result: $devrandom" >&5
7730 echo "${ECHO_T}$devrandom" >&6; }
7732 cat >>confdefs.h <<_ACEOF
7733 #define SASL_DEV_RANDOM "$devrandom"
7740 # Extract the first word of "$ac_prog", so it can be a program name with args.
7741 set dummy $ac_prog; ac_word=$2
7742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7744 if test "${ac_cv_prog_NM+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 if test -n "$NM"; then
7748 ac_cv_prog_NM="$NM" # Let the user override the test.
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 test -z "$as_dir" && as_dir=.
7755 for ac_exec_ext in '' $ac_executable_extensions; do
7756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7757 ac_cv_prog_NM="$ac_prog"
7758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7768 if test -n "$NM"; then
7769 { echo "$as_me:$LINENO: result: $NM" >&5
7770 echo "${ECHO_T}$NM" >&6; }
7772 { echo "$as_me:$LINENO: result: no" >&5
7773 echo "${ECHO_T}no" >&6; }
7777 test -n "$NM" && break
7781 { echo "$as_me:$LINENO: checking for underscore before symbols" >&5
7782 echo $ECHO_N "checking for underscore before symbols... $ECHO_C" >&6; }
7783 if test "${sasl_cv_uscore+set}" = set; then
7784 echo $ECHO_N "(cached) $ECHO_C" >&6
7787 echo "main(){int i=1;}
7788 foo(){int i=6;}" > conftest.c
7789 ${CC} -o a.out conftest.c > /dev/null
7790 if (${NM} a.out | grep _foo) > /dev/null; then
7797 { echo "$as_me:$LINENO: result: $sasl_cv_uscore" >&5
7798 echo "${ECHO_T}$sasl_cv_uscore" >&6; }
7799 rm -f conftest.c a.out
7801 if test $sasl_cv_uscore = yes; then
7802 if test $ac_cv_lib_dl_dlopen = yes ; then
7803 { echo "$as_me:$LINENO: checking whether dlsym adds the underscore for us" >&5
7804 echo $ECHO_N "checking whether dlsym adds the underscore for us... $ECHO_C" >&6; }
7805 cmu_save_LIBS="$LIBS"
7806 LIBS="$LIBS $SASL_DL_LIB"
7807 if test "${sasl_cv_dlsym_adds_uscore+set}" = set; then
7808 echo $ECHO_N "(cached) $ECHO_C" >&6
7810 if test "$cross_compiling" = yes; then
7811 { echo "$as_me:$LINENO: WARNING: cross-compiler" >&5
7812 echo "$as_me: WARNING: cross-compiler" >&2;}
7814 cat >conftest.$ac_ext <<_ACEOF
7817 cat confdefs.h >>conftest.$ac_ext
7818 cat >>conftest.$ac_ext <<_ACEOF
7819 /* end confdefs.h. */
7824 main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
7825 if(self) { ptr1=dlsym(self,"foo"); ptr2=dlsym(self,"_foo");
7826 if(ptr1 && !ptr2) exit(0); } exit(1); }
7829 rm -f conftest$ac_exeext
7830 if { (ac_try="$ac_link"
7832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833 *) ac_try_echo=$ac_try;;
7835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7836 (eval "$ac_link") 2>&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7840 { (case "(($ac_try" in
7841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7842 *) ac_try_echo=$ac_try;;
7844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7845 (eval "$ac_try") 2>&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; }; then
7849 sasl_cv_dlsym_adds_uscore=yes
7851 echo "$as_me: program exited with status $ac_status" >&5
7852 echo "$as_me: failed program was:" >&5
7853 sed 's/^/| /' conftest.$ac_ext >&5
7856 sasl_cv_dlsym_adds_uscore=no
7858 cat >>confdefs.h <<\_ACEOF
7859 #define DLSYM_NEEDS_UNDERSCORE
7863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7869 LIBS="$cmu_save_LIBS"
7870 { echo "$as_me:$LINENO: result: $sasl_cv_dlsym_adds_uscore" >&5
7871 echo "${ECHO_T}$sasl_cv_dlsym_adds_uscore" >&6; }
7876 for ac_func in syslog
7878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7879 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7881 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7882 echo $ECHO_N "(cached) $ECHO_C" >&6
7884 cat >conftest.$ac_ext <<_ACEOF
7887 cat confdefs.h >>conftest.$ac_ext
7888 cat >>conftest.$ac_ext <<_ACEOF
7889 /* end confdefs.h. */
7890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7892 #define $ac_func innocuous_$ac_func
7894 /* System header to define __stub macros and hopefully few prototypes,
7895 which can conflict with char $ac_func (); below.
7896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7897 <limits.h> exists even on freestanding compilers. */
7900 # include <limits.h>
7902 # include <assert.h>
7907 /* Override any GCC internal prototype to avoid an error.
7908 Use char because int might match the return type of a GCC
7909 builtin and then its argument prototype would still apply. */
7914 /* The GNU C library defines this for functions which it implements
7915 to always fail with ENOSYS. Some functions are actually named
7916 something starting with __ and the normal name is an alias. */
7917 #if defined __stub_$ac_func || defined __stub___$ac_func
7929 rm -f conftest.$ac_objext conftest$ac_exeext
7930 if { (ac_try="$ac_link"
7932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7933 *) ac_try_echo=$ac_try;;
7935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7936 (eval "$ac_link") 2>conftest.er1
7938 grep -v '^ *+' conftest.er1 >conftest.err
7940 cat conftest.err >&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); } && {
7943 test -z "$ac_c_werror_flag" ||
7944 test ! -s conftest.err
7945 } && test -s conftest$ac_exeext &&
7946 $as_test_x conftest$ac_exeext; then
7947 eval "$as_ac_var=yes"
7949 echo "$as_me: failed program was:" >&5
7950 sed 's/^/| /' conftest.$ac_ext >&5
7952 eval "$as_ac_var=no"
7955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7956 conftest$ac_exeext conftest.$ac_ext
7958 ac_res=`eval echo '${'$as_ac_var'}'`
7959 { echo "$as_me:$LINENO: result: $ac_res" >&5
7960 echo "${ECHO_T}$ac_res" >&6; }
7961 if test `eval echo '${'$as_ac_var'}'` = yes; then
7962 cat >>confdefs.h <<_ACEOF
7963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7971 # Check whether --with-pam was given.
7972 if test "${with_pam+set}" = set; then
7973 withval=$with_pam; with_pam=$withval
7978 if test "$with_pam" != no; then
7979 if test -d $with_pam; then
7980 CPPFLAGS="$CPPFLAGS -I${with_pam}/include"
7981 LDFLAGS="$LDFLAGS -L${with_pam}/lib"
7985 for ac_header in security/pam_appl.h pam/pam_appl.h
7987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7989 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7992 echo $ECHO_N "(cached) $ECHO_C" >&6
7994 ac_res=`eval echo '${'$as_ac_Header'}'`
7995 { echo "$as_me:$LINENO: result: $ac_res" >&5
7996 echo "${ECHO_T}$ac_res" >&6; }
7998 # Is the header compilable?
7999 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8000 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8001 cat >conftest.$ac_ext <<_ACEOF
8004 cat confdefs.h >>conftest.$ac_ext
8005 cat >>conftest.$ac_ext <<_ACEOF
8006 /* end confdefs.h. */
8007 $ac_includes_default
8008 #include <$ac_header>
8010 rm -f conftest.$ac_objext
8011 if { (ac_try="$ac_compile"
8013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8014 *) ac_try_echo=$ac_try;;
8016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8017 (eval "$ac_compile") 2>conftest.er1
8019 grep -v '^ *+' conftest.er1 >conftest.err
8021 cat conftest.err >&5
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); } && {
8024 test -z "$ac_c_werror_flag" ||
8025 test ! -s conftest.err
8026 } && test -s conftest.$ac_objext; then
8027 ac_header_compiler=yes
8029 echo "$as_me: failed program was:" >&5
8030 sed 's/^/| /' conftest.$ac_ext >&5
8032 ac_header_compiler=no
8035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8036 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8037 echo "${ECHO_T}$ac_header_compiler" >&6; }
8039 # Is the header present?
8040 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8041 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8042 cat >conftest.$ac_ext <<_ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8048 #include <$ac_header>
8050 if { (ac_try="$ac_cpp conftest.$ac_ext"
8052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053 *) ac_try_echo=$ac_try;;
8055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8058 grep -v '^ *+' conftest.er1 >conftest.err
8060 cat conftest.err >&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); } >/dev/null && {
8063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8064 test ! -s conftest.err
8066 ac_header_preproc=yes
8068 echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8071 ac_header_preproc=no
8074 rm -f conftest.err conftest.$ac_ext
8075 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8076 echo "${ECHO_T}$ac_header_preproc" >&6; }
8078 # So? What about this header?
8079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8084 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8085 ac_header_preproc=yes
8088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8091 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8093 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8095 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8099 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
8108 eval "$as_ac_Header=\$ac_header_preproc"
8110 ac_res=`eval echo '${'$as_ac_Header'}'`
8111 { echo "$as_me:$LINENO: result: $ac_res" >&5
8112 echo "${ECHO_T}$ac_res" >&6; }
8115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8116 cat >>confdefs.h <<_ACEOF
8117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8124 cmu_save_LIBS="$LIBS"
8125 { echo "$as_me:$LINENO: checking for pam_start" >&5
8126 echo $ECHO_N "checking for pam_start... $ECHO_C" >&6; }
8127 if test "${ac_cv_func_pam_start+set}" = set; then
8128 echo $ECHO_N "(cached) $ECHO_C" >&6
8130 cat >conftest.$ac_ext <<_ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h. */
8136 /* Define pam_start to an innocuous variant, in case <limits.h> declares pam_start.
8137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8138 #define pam_start innocuous_pam_start
8140 /* System header to define __stub macros and hopefully few prototypes,
8141 which can conflict with char pam_start (); below.
8142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8143 <limits.h> exists even on freestanding compilers. */
8146 # include <limits.h>
8148 # include <assert.h>
8153 /* Override any GCC internal prototype to avoid an error.
8154 Use char because int might match the return type of a GCC
8155 builtin and then its argument prototype would still apply. */
8160 /* The GNU C library defines this for functions which it implements
8161 to always fail with ENOSYS. Some functions are actually named
8162 something starting with __ and the normal name is an alias. */
8163 #if defined __stub_pam_start || defined __stub___pam_start
8170 return pam_start ();
8175 rm -f conftest.$ac_objext conftest$ac_exeext
8176 if { (ac_try="$ac_link"
8178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179 *) ac_try_echo=$ac_try;;
8181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8182 (eval "$ac_link") 2>conftest.er1
8184 grep -v '^ *+' conftest.er1 >conftest.err
8186 cat conftest.err >&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); } && {
8189 test -z "$ac_c_werror_flag" ||
8190 test ! -s conftest.err
8191 } && test -s conftest$ac_exeext &&
8192 $as_test_x conftest$ac_exeext; then
8193 ac_cv_func_pam_start=yes
8195 echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8198 ac_cv_func_pam_start=no
8201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8202 conftest$ac_exeext conftest.$ac_ext
8204 { echo "$as_me:$LINENO: result: $ac_cv_func_pam_start" >&5
8205 echo "${ECHO_T}$ac_cv_func_pam_start" >&6; }
8206 if test $ac_cv_func_pam_start = yes; then
8210 cat >conftest.$ac_ext <<_ACEOF
8213 cat confdefs.h >>conftest.$ac_ext
8214 cat >>conftest.$ac_ext <<_ACEOF
8215 /* end confdefs.h. */
8217 #include <sys/types.h>
8218 #ifdef HAVE_PAM_PAM_APPL_H
8219 #include <pam/pam_appl.h>
8221 #ifdef HAVE_SECURITY_PAM_H
8222 #include <security/pam_appl.h>
8228 const char *service="foo";
8229 const char *user="bar";
8231 struct pam_conv *conv;
8233 baz = pam_start(service, user, conv, &pamh);
8240 rm -f conftest.$ac_objext conftest$ac_exeext
8241 if { (ac_try="$ac_link"
8243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244 *) ac_try_echo=$ac_try;;
8246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8247 (eval "$ac_link") 2>conftest.er1
8249 grep -v '^ *+' conftest.er1 >conftest.err
8251 cat conftest.err >&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } && {
8254 test -z "$ac_c_werror_flag" ||
8255 test ! -s conftest.err
8256 } && test -s conftest$ac_exeext &&
8257 $as_test_x conftest$ac_exeext; then
8260 echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.$ac_ext >&5
8266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8267 conftest$ac_exeext conftest.$ac_ext
8271 LIBS="$cmu_save_LIBS $LIBPAM"
8275 # Check whether --with-saslauthd was given.
8276 if test "${with_saslauthd+set}" = set; then
8277 withval=$with_saslauthd; with_saslauthd=$withval
8282 if test "$with_saslauthd" != no; then
8283 if test "$with_saslauthd" = yes; then
8284 with_saslauthd="/var/state/saslauthd"
8287 cat >>confdefs.h <<\_ACEOF
8288 #define HAVE_SASLAUTHD
8292 cat >>confdefs.h <<_ACEOF
8293 #define PATH_SASLAUTHD_RUNDIR "$with_saslauthd"
8297 if test "$with_saslauthd" != no; then
8305 { echo "$as_me:$LINENO: checking if I should include saslauthd" >&5
8306 echo $ECHO_N "checking if I should include saslauthd... $ECHO_C" >&6; }
8307 { echo "$as_me:$LINENO: result: $with_saslauthd" >&5
8308 echo "${ECHO_T}$with_saslauthd" >&6; }
8311 # Check whether --with-authdaemond was given.
8312 if test "${with_authdaemond+set}" = set; then
8313 withval=$with_authdaemond; with_authdaemon=$withval
8318 if test "$with_authdaemon" != no; then
8319 if test "$with_authdaemon" = yes; then
8320 with_authdaemon="/dev/null"
8323 cat >>confdefs.h <<\_ACEOF
8324 #define HAVE_AUTHDAEMON
8328 cat >>confdefs.h <<_ACEOF
8329 #define PATH_AUTHDAEMON_SOCKET "$with_authdaemon"
8333 { echo "$as_me:$LINENO: checking to include Courier authdaemond support" >&5
8334 echo $ECHO_N "checking to include Courier authdaemond support... $ECHO_C" >&6; }
8335 { echo "$as_me:$LINENO: result: $with_authdaemon" >&5
8336 echo "${ECHO_T}$with_authdaemon" >&6; }
8339 # Check whether --with-pwcheck was given.
8340 if test "${with_pwcheck+set}" = set; then
8341 withval=$with_pwcheck; with_pwcheck=$withval
8346 if test "$with_pwcheck" != no; then
8347 if test "$with_pwcheck" = yes; then
8348 with_pwcheck=/var/pwcheck
8351 cat >>confdefs.h <<\_ACEOF
8352 #define HAVE_PWCHECK
8356 cat >>confdefs.h <<_ACEOF
8357 #define PWCHECKDIR "$with_pwcheck"
8360 { echo "$as_me:$LINENO: checking for getspnam" >&5
8361 echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; }
8362 if test "${ac_cv_func_getspnam+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8365 cat >conftest.$ac_ext <<_ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371 /* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
8372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8373 #define getspnam innocuous_getspnam
8375 /* System header to define __stub macros and hopefully few prototypes,
8376 which can conflict with char getspnam (); below.
8377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8378 <limits.h> exists even on freestanding compilers. */
8381 # include <limits.h>
8383 # include <assert.h>
8388 /* Override any GCC internal prototype to avoid an error.
8389 Use char because int might match the return type of a GCC
8390 builtin and then its argument prototype would still apply. */
8395 /* The GNU C library defines this for functions which it implements
8396 to always fail with ENOSYS. Some functions are actually named
8397 something starting with __ and the normal name is an alias. */
8398 #if defined __stub_getspnam || defined __stub___getspnam
8410 rm -f conftest.$ac_objext conftest$ac_exeext
8411 if { (ac_try="$ac_link"
8413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8414 *) ac_try_echo=$ac_try;;
8416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8417 (eval "$ac_link") 2>conftest.er1
8419 grep -v '^ *+' conftest.er1 >conftest.err
8421 cat conftest.err >&5
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); } && {
8424 test -z "$ac_c_werror_flag" ||
8425 test ! -s conftest.err
8426 } && test -s conftest$ac_exeext &&
8427 $as_test_x conftest$ac_exeext; then
8428 ac_cv_func_getspnam=yes
8430 echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.$ac_ext >&5
8433 ac_cv_func_getspnam=no
8436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8437 conftest$ac_exeext conftest.$ac_ext
8439 { echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
8440 echo "${ECHO_T}$ac_cv_func_getspnam" >&6; }
8441 if test $ac_cv_func_getspnam = yes; then
8442 PWCHECKMETH="getspnam"
8444 PWCHECKMETH="getpwnam"
8449 if test "$with_pwcheck" != no; then
8457 { echo "$as_me:$LINENO: checking if I should include pwcheck" >&5
8458 echo $ECHO_N "checking if I should include pwcheck... $ECHO_C" >&6; }
8459 { echo "$as_me:$LINENO: result: $with_pwcheck" >&5
8460 echo "${ECHO_T}$with_pwcheck" >&6; }
8463 # Check whether --with-ipctype was given.
8464 if test "${with_ipctype+set}" = set; then
8465 withval=$with_ipctype; with_ipctype=$withval
8470 IPCTYPE=$with_ipctype
8473 if test "$with_ipctype" = "doors"; then
8476 cat >>confdefs.h <<\_ACEOF
8483 # Check whether --enable-alwaystrue was given.
8484 if test "${enable_alwaystrue+set}" = set; then
8485 enableval=$enable_alwaystrue; enable_alwaystrue=$enableval
8487 enable_alwaystrue=no
8490 if test "$enable_alwaystrue" = yes; then
8492 cat >>confdefs.h <<\_ACEOF
8493 #define HAVE_ALWAYSTRUE
8497 { echo "$as_me:$LINENO: checking if I should include the alwaystrue verifier" >&5
8498 echo $ECHO_N "checking if I should include the alwaystrue verifier... $ECHO_C" >&6; }
8499 { echo "$as_me:$LINENO: result: $enable_alwaystrue" >&5
8500 echo "${ECHO_T}$enable_alwaystrue" >&6; }
8502 # Check whether --enable-checkapop was given.
8503 if test "${enable_checkapop+set}" = set; then
8504 enableval=$enable_checkapop; checkapop=$enableval
8510 { echo "$as_me:$LINENO: checking if we should enable sasl_checkapop" >&5
8511 echo $ECHO_N "checking if we should enable sasl_checkapop... $ECHO_C" >&6; }
8512 if test "$checkapop" != no; then
8513 { echo "$as_me:$LINENO: result: enabled" >&5
8514 echo "${ECHO_T}enabled" >&6; }
8516 cat >>confdefs.h <<\_ACEOF
8517 #define DO_SASL_CHECKAPOP
8521 { echo "$as_me:$LINENO: result: disabled" >&5
8522 echo "${ECHO_T}disabled" >&6; }
8525 # Check whether --enable-cram was given.
8526 if test "${enable_cram+set}" = set; then
8527 enableval=$enable_cram; cram=$enableval
8533 { echo "$as_me:$LINENO: checking CRAM-MD5" >&5
8534 echo $ECHO_N "checking CRAM-MD5... $ECHO_C" >&6; }
8535 if test "$cram" != no; then
8536 { echo "$as_me:$LINENO: result: enabled" >&5
8537 echo "${ECHO_T}enabled" >&6; }
8538 SASL_MECHS="$SASL_MECHS libcrammd5.la"
8539 if test "$enable_static" = yes; then
8540 SASL_STATIC_OBJS="$SASL_STATIC_OBJS cram.o"
8541 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/cram.c"
8543 cat >>confdefs.h <<\_ACEOF
8544 #define STATIC_CRAMMD5
8549 { echo "$as_me:$LINENO: result: disabled" >&5
8550 echo "${ECHO_T}disabled" >&6; }
8554 # Check whether --with-lib-subdir was given.
8555 if test "${with_lib_subdir+set}" = set; then
8556 withval=$with_lib_subdir;
8559 { echo "$as_me:$LINENO: checking for long" >&5
8560 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
8561 if test "${ac_cv_type_long+set}" = set; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
8564 cat >conftest.$ac_ext <<_ACEOF
8567 cat confdefs.h >>conftest.$ac_ext
8568 cat >>conftest.$ac_ext <<_ACEOF
8569 /* end confdefs.h. */
8570 $ac_includes_default
8571 typedef long ac__type_new_;
8575 if ((ac__type_new_ *) 0)
8577 if (sizeof (ac__type_new_))
8583 rm -f conftest.$ac_objext
8584 if { (ac_try="$ac_compile"
8586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8587 *) ac_try_echo=$ac_try;;
8589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8590 (eval "$ac_compile") 2>conftest.er1
8592 grep -v '^ *+' conftest.er1 >conftest.err
8594 cat conftest.err >&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); } && {
8597 test -z "$ac_c_werror_flag" ||
8598 test ! -s conftest.err
8599 } && test -s conftest.$ac_objext; then
8602 echo "$as_me: failed program was:" >&5
8603 sed 's/^/| /' conftest.$ac_ext >&5
8608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8610 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
8611 echo "${ECHO_T}$ac_cv_type_long" >&6; }
8613 # The cast to long int works around a bug in the HP C Compiler
8614 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8615 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8616 # This bug is HP SR number 8606223364.
8617 { echo "$as_me:$LINENO: checking size of long" >&5
8618 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
8619 if test "${ac_cv_sizeof_long+set}" = set; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 if test "$cross_compiling" = yes; then
8623 # Depending upon the size, compute the lo and hi bounds.
8624 cat >conftest.$ac_ext <<_ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h. */
8630 $ac_includes_default
8631 typedef long ac__type_sizeof_;
8635 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8642 rm -f conftest.$ac_objext
8643 if { (ac_try="$ac_compile"
8645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8646 *) ac_try_echo=$ac_try;;
8648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8649 (eval "$ac_compile") 2>conftest.er1
8651 grep -v '^ *+' conftest.er1 >conftest.err
8653 cat conftest.err >&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } && {
8656 test -z "$ac_c_werror_flag" ||
8657 test ! -s conftest.err
8658 } && test -s conftest.$ac_objext; then
8661 cat >conftest.$ac_ext <<_ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8667 $ac_includes_default
8668 typedef long ac__type_sizeof_;
8672 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8679 rm -f conftest.$ac_objext
8680 if { (ac_try="$ac_compile"
8682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8683 *) ac_try_echo=$ac_try;;
8685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8686 (eval "$ac_compile") 2>conftest.er1
8688 grep -v '^ *+' conftest.er1 >conftest.err
8690 cat conftest.err >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); } && {
8693 test -z "$ac_c_werror_flag" ||
8694 test ! -s conftest.err
8695 } && test -s conftest.$ac_objext; then
8696 ac_hi=$ac_mid; break
8698 echo "$as_me: failed program was:" >&5
8699 sed 's/^/| /' conftest.$ac_ext >&5
8701 ac_lo=`expr $ac_mid + 1`
8702 if test $ac_lo -le $ac_mid; then
8706 ac_mid=`expr 2 '*' $ac_mid + 1`
8709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8712 echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8715 cat >conftest.$ac_ext <<_ACEOF
8718 cat confdefs.h >>conftest.$ac_ext
8719 cat >>conftest.$ac_ext <<_ACEOF
8720 /* end confdefs.h. */
8721 $ac_includes_default
8722 typedef long ac__type_sizeof_;
8726 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8733 rm -f conftest.$ac_objext
8734 if { (ac_try="$ac_compile"
8736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8737 *) ac_try_echo=$ac_try;;
8739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8740 (eval "$ac_compile") 2>conftest.er1
8742 grep -v '^ *+' conftest.er1 >conftest.err
8744 cat conftest.err >&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); } && {
8747 test -z "$ac_c_werror_flag" ||
8748 test ! -s conftest.err
8749 } && test -s conftest.$ac_objext; then
8752 cat >conftest.$ac_ext <<_ACEOF
8755 cat confdefs.h >>conftest.$ac_ext
8756 cat >>conftest.$ac_ext <<_ACEOF
8757 /* end confdefs.h. */
8758 $ac_includes_default
8759 typedef long ac__type_sizeof_;
8763 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8770 rm -f conftest.$ac_objext
8771 if { (ac_try="$ac_compile"
8773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8774 *) ac_try_echo=$ac_try;;
8776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8777 (eval "$ac_compile") 2>conftest.er1
8779 grep -v '^ *+' conftest.er1 >conftest.err
8781 cat conftest.err >&5
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); } && {
8784 test -z "$ac_c_werror_flag" ||
8785 test ! -s conftest.err
8786 } && test -s conftest.$ac_objext; then
8787 ac_lo=$ac_mid; break
8789 echo "$as_me: failed program was:" >&5
8790 sed 's/^/| /' conftest.$ac_ext >&5
8792 ac_hi=`expr '(' $ac_mid ')' - 1`
8793 if test $ac_mid -le $ac_hi; then
8797 ac_mid=`expr 2 '*' $ac_mid`
8800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8803 echo "$as_me: failed program was:" >&5
8804 sed 's/^/| /' conftest.$ac_ext >&5
8809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8813 # Binary search between lo and hi bounds.
8814 while test "x$ac_lo" != "x$ac_hi"; do
8815 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8816 cat >conftest.$ac_ext <<_ACEOF
8819 cat confdefs.h >>conftest.$ac_ext
8820 cat >>conftest.$ac_ext <<_ACEOF
8821 /* end confdefs.h. */
8822 $ac_includes_default
8823 typedef long ac__type_sizeof_;
8827 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8834 rm -f conftest.$ac_objext
8835 if { (ac_try="$ac_compile"
8837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8838 *) ac_try_echo=$ac_try;;
8840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8841 (eval "$ac_compile") 2>conftest.er1
8843 grep -v '^ *+' conftest.er1 >conftest.err
8845 cat conftest.err >&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); } && {
8848 test -z "$ac_c_werror_flag" ||
8849 test ! -s conftest.err
8850 } && test -s conftest.$ac_objext; then
8853 echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8856 ac_lo=`expr '(' $ac_mid ')' + 1`
8859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8862 ?*) ac_cv_sizeof_long=$ac_lo;;
8863 '') if test "$ac_cv_type_long" = yes; then
8864 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8865 See \`config.log' for more details." >&5
8866 echo "$as_me: error: cannot compute sizeof (long)
8867 See \`config.log' for more details." >&2;}
8868 { (exit 77); exit 77; }; }
8874 cat >conftest.$ac_ext <<_ACEOF
8877 cat confdefs.h >>conftest.$ac_ext
8878 cat >>conftest.$ac_ext <<_ACEOF
8879 /* end confdefs.h. */
8880 $ac_includes_default
8881 typedef long ac__type_sizeof_;
8882 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8883 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8890 FILE *f = fopen ("conftest.val", "w");
8893 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8895 long int i = longval ();
8896 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8898 fprintf (f, "%ld\n", i);
8902 unsigned long int i = ulongval ();
8903 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8905 fprintf (f, "%lu\n", i);
8907 return ferror (f) || fclose (f) != 0;
8913 rm -f conftest$ac_exeext
8914 if { (ac_try="$ac_link"
8916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8917 *) ac_try_echo=$ac_try;;
8919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8920 (eval "$ac_link") 2>&5
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8924 { (case "(($ac_try" in
8925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8926 *) ac_try_echo=$ac_try;;
8928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8929 (eval "$ac_try") 2>&5
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); }; }; then
8933 ac_cv_sizeof_long=`cat conftest.val`
8935 echo "$as_me: program exited with status $ac_status" >&5
8936 echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.$ac_ext >&5
8940 if test "$ac_cv_type_long" = yes; then
8941 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8942 See \`config.log' for more details." >&5
8943 echo "$as_me: error: cannot compute sizeof (long)
8944 See \`config.log' for more details." >&2;}
8945 { (exit 77); exit 77; }; }
8950 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8954 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8955 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8959 cat >>confdefs.h <<_ACEOF
8960 #define SIZEOF_LONG $ac_cv_sizeof_long
8964 { echo "$as_me:$LINENO: checking what directory libraries are found in" >&5
8965 echo $ECHO_N "checking what directory libraries are found in... $ECHO_C" >&6; }
8966 if test "${ac_cv_cmu_lib_subdir+set}" = set; then
8967 echo $ECHO_N "(cached) $ECHO_C" >&6
8969 test "X$with_lib_subdir" = "Xyes" && with_lib_subdir=
8970 test "X$with_lib_subdir" = "Xno" && with_lib_subdir=
8971 if test "X$with_lib_subdir" = "X" ; then
8972 ac_cv_cmu_lib_subdir=lib
8973 if test $ac_cv_sizeof_long -eq 4 ; then
8974 test -d /usr/lib32 && ac_cv_cmu_lib_subdir=lib32
8976 if test $ac_cv_sizeof_long -eq 8 ; then
8977 test -d /usr/lib64 && ac_cv_cmu_lib_subdir=lib64
8980 ac_cv_cmu_lib_subdir=$with_lib_subdir
8983 { echo "$as_me:$LINENO: result: $ac_cv_cmu_lib_subdir" >&5
8984 echo "${ECHO_T}$ac_cv_cmu_lib_subdir" >&6; }
8985 CMU_LIB_SUBDIR=$ac_cv_cmu_lib_subdir
8991 # Check whether --with-openssl was given.
8992 if test "${with_openssl+set}" = set; then
8993 withval=$with_openssl; with_openssl=$withval
8999 save_CPPFLAGS=$CPPFLAGS
9000 save_LDFLAGS=$LDFLAGS
9002 if test -d $with_openssl; then
9003 CPPFLAGS="${CPPFLAGS} -I${with_openssl}/include"
9005 # this is CMU ADD LIBPATH
9006 if test "$andrew_runpath_switch" = "none" ; then
9007 LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
9009 LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR $andrew_runpath_switch${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
9014 case "$with_openssl" in
9019 { echo "$as_me:$LINENO: checking for RSAPublicEncrypt in -lrsaref" >&5
9020 echo $ECHO_N "checking for RSAPublicEncrypt in -lrsaref... $ECHO_C" >&6; }
9021 if test "${ac_cv_lib_rsaref_RSAPublicEncrypt+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9024 ac_check_lib_save_LIBS=$LIBS
9025 LIBS="-lrsaref $LIBS"
9026 cat >conftest.$ac_ext <<_ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h. */
9033 /* Override any GCC internal prototype to avoid an error.
9034 Use char because int might match the return type of a GCC
9035 builtin and then its argument prototype would still apply. */
9039 char RSAPublicEncrypt ();
9043 return RSAPublicEncrypt ();
9048 rm -f conftest.$ac_objext conftest$ac_exeext
9049 if { (ac_try="$ac_link"
9051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9052 *) ac_try_echo=$ac_try;;
9054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9055 (eval "$ac_link") 2>conftest.er1
9057 grep -v '^ *+' conftest.er1 >conftest.err
9059 cat conftest.err >&5
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); } && {
9062 test -z "$ac_c_werror_flag" ||
9063 test ! -s conftest.err
9064 } && test -s conftest$ac_exeext &&
9065 $as_test_x conftest$ac_exeext; then
9066 ac_cv_lib_rsaref_RSAPublicEncrypt=yes
9068 echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9071 ac_cv_lib_rsaref_RSAPublicEncrypt=no
9074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9075 conftest$ac_exeext conftest.$ac_ext
9076 LIBS=$ac_check_lib_save_LIBS
9078 { echo "$as_me:$LINENO: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5
9079 echo "${ECHO_T}$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6; }
9080 if test $ac_cv_lib_rsaref_RSAPublicEncrypt = yes; then
9081 cmu_have_rsaref=yes;
9082 { echo "$as_me:$LINENO: checking for RSAPublicEncrypt in -lRSAglue" >&5
9083 echo $ECHO_N "checking for RSAPublicEncrypt in -lRSAglue... $ECHO_C" >&6; }
9084 if test "${ac_cv_lib_RSAglue_RSAPublicEncrypt+set}" = set; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9087 ac_check_lib_save_LIBS=$LIBS
9088 LIBS="-lRSAglue $LIBS"
9089 cat >conftest.$ac_ext <<_ACEOF
9092 cat confdefs.h >>conftest.$ac_ext
9093 cat >>conftest.$ac_ext <<_ACEOF
9094 /* end confdefs.h. */
9096 /* Override any GCC internal prototype to avoid an error.
9097 Use char because int might match the return type of a GCC
9098 builtin and then its argument prototype would still apply. */
9102 char RSAPublicEncrypt ();
9106 return RSAPublicEncrypt ();
9111 rm -f conftest.$ac_objext conftest$ac_exeext
9112 if { (ac_try="$ac_link"
9114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9115 *) ac_try_echo=$ac_try;;
9117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9118 (eval "$ac_link") 2>conftest.er1
9120 grep -v '^ *+' conftest.er1 >conftest.err
9122 cat conftest.err >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } && {
9125 test -z "$ac_c_werror_flag" ||
9126 test ! -s conftest.err
9127 } && test -s conftest$ac_exeext &&
9128 $as_test_x conftest$ac_exeext; then
9129 ac_cv_lib_RSAglue_RSAPublicEncrypt=yes
9131 echo "$as_me: failed program was:" >&5
9132 sed 's/^/| /' conftest.$ac_ext >&5
9134 ac_cv_lib_RSAglue_RSAPublicEncrypt=no
9137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9138 conftest$ac_exeext conftest.$ac_ext
9139 LIBS=$ac_check_lib_save_LIBS
9141 { echo "$as_me:$LINENO: result: $ac_cv_lib_RSAglue_RSAPublicEncrypt" >&5
9142 echo "${ECHO_T}$ac_cv_lib_RSAglue_RSAPublicEncrypt" >&6; }
9143 if test $ac_cv_lib_RSAglue_RSAPublicEncrypt = yes; then
9144 LIB_RSAREF="-lRSAglue -lrsaref"
9146 LIB_RSAREF="-lrsaref"
9154 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
9155 { echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
9156 echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6; }
9157 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
9161 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6; }
9163 # Is the header compilable?
9164 { echo "$as_me:$LINENO: checking openssl/evp.h usability" >&5
9165 echo $ECHO_N "checking openssl/evp.h usability... $ECHO_C" >&6; }
9166 cat >conftest.$ac_ext <<_ACEOF
9169 cat confdefs.h >>conftest.$ac_ext
9170 cat >>conftest.$ac_ext <<_ACEOF
9171 /* end confdefs.h. */
9172 $ac_includes_default
9173 #include <openssl/evp.h>
9175 rm -f conftest.$ac_objext
9176 if { (ac_try="$ac_compile"
9178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9179 *) ac_try_echo=$ac_try;;
9181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9182 (eval "$ac_compile") 2>conftest.er1
9184 grep -v '^ *+' conftest.er1 >conftest.err
9186 cat conftest.err >&5
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); } && {
9189 test -z "$ac_c_werror_flag" ||
9190 test ! -s conftest.err
9191 } && test -s conftest.$ac_objext; then
9192 ac_header_compiler=yes
9194 echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.$ac_ext >&5
9197 ac_header_compiler=no
9200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9201 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9202 echo "${ECHO_T}$ac_header_compiler" >&6; }
9204 # Is the header present?
9205 { echo "$as_me:$LINENO: checking openssl/evp.h presence" >&5
9206 echo $ECHO_N "checking openssl/evp.h presence... $ECHO_C" >&6; }
9207 cat >conftest.$ac_ext <<_ACEOF
9210 cat confdefs.h >>conftest.$ac_ext
9211 cat >>conftest.$ac_ext <<_ACEOF
9212 /* end confdefs.h. */
9213 #include <openssl/evp.h>
9215 if { (ac_try="$ac_cpp conftest.$ac_ext"
9217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9218 *) ac_try_echo=$ac_try;;
9220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9223 grep -v '^ *+' conftest.er1 >conftest.err
9225 cat conftest.err >&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); } >/dev/null && {
9228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9229 test ! -s conftest.err
9231 ac_header_preproc=yes
9233 echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9236 ac_header_preproc=no
9239 rm -f conftest.err conftest.$ac_ext
9240 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9241 echo "${ECHO_T}$ac_header_preproc" >&6; }
9243 # So? What about this header?
9244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9246 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&5
9247 echo "$as_me: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9248 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the compiler's result" >&5
9249 echo "$as_me: WARNING: openssl/evp.h: proceeding with the compiler's result" >&2;}
9250 ac_header_preproc=yes
9253 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: present but cannot be compiled" >&5
9254 echo "$as_me: WARNING: openssl/evp.h: present but cannot be compiled" >&2;}
9255 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: check for missing prerequisite headers?" >&5
9256 echo "$as_me: WARNING: openssl/evp.h: check for missing prerequisite headers?" >&2;}
9257 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: see the Autoconf documentation" >&5
9258 echo "$as_me: WARNING: openssl/evp.h: see the Autoconf documentation" >&2;}
9259 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: section \"Present But Cannot Be Compiled\"" >&5
9260 echo "$as_me: WARNING: openssl/evp.h: section \"Present But Cannot Be Compiled\"" >&2;}
9261 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&5
9262 echo "$as_me: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&2;}
9263 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: in the future, the compiler will take precedence" >&5
9264 echo "$as_me: WARNING: openssl/evp.h: in the future, the compiler will take precedence" >&2;}
9268 { echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
9269 echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6; }
9270 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
9273 ac_cv_header_openssl_evp_h=$ac_header_preproc
9275 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
9276 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6; }
9279 if test $ac_cv_header_openssl_evp_h = yes; then
9281 { echo "$as_me:$LINENO: checking for EVP_DigestInit in -lcrypto" >&5
9282 echo $ECHO_N "checking for EVP_DigestInit in -lcrypto... $ECHO_C" >&6; }
9283 if test "${ac_cv_lib_crypto_EVP_DigestInit+set}" = set; then
9284 echo $ECHO_N "(cached) $ECHO_C" >&6
9286 ac_check_lib_save_LIBS=$LIBS
9287 LIBS="-lcrypto $LIB_RSAREF $LIBS"
9288 cat >conftest.$ac_ext <<_ACEOF
9291 cat confdefs.h >>conftest.$ac_ext
9292 cat >>conftest.$ac_ext <<_ACEOF
9293 /* end confdefs.h. */
9295 /* Override any GCC internal prototype to avoid an error.
9296 Use char because int might match the return type of a GCC
9297 builtin and then its argument prototype would still apply. */
9301 char EVP_DigestInit ();
9305 return EVP_DigestInit ();
9310 rm -f conftest.$ac_objext conftest$ac_exeext
9311 if { (ac_try="$ac_link"
9313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9314 *) ac_try_echo=$ac_try;;
9316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9317 (eval "$ac_link") 2>conftest.er1
9319 grep -v '^ *+' conftest.er1 >conftest.err
9321 cat conftest.err >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); } && {
9324 test -z "$ac_c_werror_flag" ||
9325 test ! -s conftest.err
9326 } && test -s conftest$ac_exeext &&
9327 $as_test_x conftest$ac_exeext; then
9328 ac_cv_lib_crypto_EVP_DigestInit=yes
9330 echo "$as_me: failed program was:" >&5
9331 sed 's/^/| /' conftest.$ac_ext >&5
9333 ac_cv_lib_crypto_EVP_DigestInit=no
9336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9337 conftest$ac_exeext conftest.$ac_ext
9338 LIBS=$ac_check_lib_save_LIBS
9340 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_EVP_DigestInit" >&5
9341 echo "${ECHO_T}$ac_cv_lib_crypto_EVP_DigestInit" >&6; }
9342 if test $ac_cv_lib_crypto_EVP_DigestInit = yes; then
9356 if test "$with_openssl" != "no"; then
9358 cat >>confdefs.h <<\_ACEOF
9359 #define HAVE_OPENSSL
9363 CPPFLAGS=$save_CPPFLAGS
9364 LDFLAGS=$save_LDFLAGS
9367 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
9368 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
9369 { echo "$as_me:$LINENO: result: $with_openssl" >&5
9370 echo "${ECHO_T}$with_openssl" >&6; }
9374 # Check whether --with-des was given.
9375 if test "${with_des+set}" = set; then
9376 withval=$with_des; with_des=$withval
9383 if test "$with_des" != no; then
9384 if test -d $with_des; then
9385 CPPFLAGS="$CPPFLAGS -I${with_des}/include"
9386 LDFLAGS="$LDFLAGS -L${with_des}/lib"
9389 if test "$with_openssl" != no; then
9390 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -lcrypto" >&5
9391 echo $ECHO_N "checking for des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
9392 if test "${ac_cv_lib_crypto_des_cbc_encrypt+set}" = set; then
9393 echo $ECHO_N "(cached) $ECHO_C" >&6
9395 ac_check_lib_save_LIBS=$LIBS
9396 LIBS="-lcrypto $LIB_RSAREF $LIBS"
9397 cat >conftest.$ac_ext <<_ACEOF
9400 cat confdefs.h >>conftest.$ac_ext
9401 cat >>conftest.$ac_ext <<_ACEOF
9402 /* end confdefs.h. */
9404 /* Override any GCC internal prototype to avoid an error.
9405 Use char because int might match the return type of a GCC
9406 builtin and then its argument prototype would still apply. */
9410 char des_cbc_encrypt ();
9414 return des_cbc_encrypt ();
9419 rm -f conftest.$ac_objext conftest$ac_exeext
9420 if { (ac_try="$ac_link"
9422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9423 *) ac_try_echo=$ac_try;;
9425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9426 (eval "$ac_link") 2>conftest.er1
9428 grep -v '^ *+' conftest.er1 >conftest.err
9430 cat conftest.err >&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); } && {
9433 test -z "$ac_c_werror_flag" ||
9434 test ! -s conftest.err
9435 } && test -s conftest$ac_exeext &&
9436 $as_test_x conftest$ac_exeext; then
9437 ac_cv_lib_crypto_des_cbc_encrypt=yes
9439 echo "$as_me: failed program was:" >&5
9440 sed 's/^/| /' conftest.$ac_ext >&5
9442 ac_cv_lib_crypto_des_cbc_encrypt=no
9445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9446 conftest$ac_exeext conftest.$ac_ext
9447 LIBS=$ac_check_lib_save_LIBS
9449 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
9450 echo "${ECHO_T}$ac_cv_lib_crypto_des_cbc_encrypt" >&6; }
9451 if test $ac_cv_lib_crypto_des_cbc_encrypt = yes; then
9453 if test "${ac_cv_header_openssl_des_h+set}" = set; then
9454 { echo "$as_me:$LINENO: checking for openssl/des.h" >&5
9455 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6; }
9456 if test "${ac_cv_header_openssl_des_h+set}" = set; then
9457 echo $ECHO_N "(cached) $ECHO_C" >&6
9459 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
9460 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
9462 # Is the header compilable?
9463 { echo "$as_me:$LINENO: checking openssl/des.h usability" >&5
9464 echo $ECHO_N "checking openssl/des.h usability... $ECHO_C" >&6; }
9465 cat >conftest.$ac_ext <<_ACEOF
9468 cat confdefs.h >>conftest.$ac_ext
9469 cat >>conftest.$ac_ext <<_ACEOF
9470 /* end confdefs.h. */
9471 $ac_includes_default
9472 #include <openssl/des.h>
9474 rm -f conftest.$ac_objext
9475 if { (ac_try="$ac_compile"
9477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9478 *) ac_try_echo=$ac_try;;
9480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9481 (eval "$ac_compile") 2>conftest.er1
9483 grep -v '^ *+' conftest.er1 >conftest.err
9485 cat conftest.err >&5
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); } && {
9488 test -z "$ac_c_werror_flag" ||
9489 test ! -s conftest.err
9490 } && test -s conftest.$ac_objext; then
9491 ac_header_compiler=yes
9493 echo "$as_me: failed program was:" >&5
9494 sed 's/^/| /' conftest.$ac_ext >&5
9496 ac_header_compiler=no
9499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9500 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9501 echo "${ECHO_T}$ac_header_compiler" >&6; }
9503 # Is the header present?
9504 { echo "$as_me:$LINENO: checking openssl/des.h presence" >&5
9505 echo $ECHO_N "checking openssl/des.h presence... $ECHO_C" >&6; }
9506 cat >conftest.$ac_ext <<_ACEOF
9509 cat confdefs.h >>conftest.$ac_ext
9510 cat >>conftest.$ac_ext <<_ACEOF
9511 /* end confdefs.h. */
9512 #include <openssl/des.h>
9514 if { (ac_try="$ac_cpp conftest.$ac_ext"
9516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9517 *) ac_try_echo=$ac_try;;
9519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9522 grep -v '^ *+' conftest.er1 >conftest.err
9524 cat conftest.err >&5
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); } >/dev/null && {
9527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9528 test ! -s conftest.err
9530 ac_header_preproc=yes
9532 echo "$as_me: failed program was:" >&5
9533 sed 's/^/| /' conftest.$ac_ext >&5
9535 ac_header_preproc=no
9538 rm -f conftest.err conftest.$ac_ext
9539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9540 echo "${ECHO_T}$ac_header_preproc" >&6; }
9542 # So? What about this header?
9543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9545 { echo "$as_me:$LINENO: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&5
9546 echo "$as_me: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9547 { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the compiler's result" >&5
9548 echo "$as_me: WARNING: openssl/des.h: proceeding with the compiler's result" >&2;}
9549 ac_header_preproc=yes
9552 { echo "$as_me:$LINENO: WARNING: openssl/des.h: present but cannot be compiled" >&5
9553 echo "$as_me: WARNING: openssl/des.h: present but cannot be compiled" >&2;}
9554 { echo "$as_me:$LINENO: WARNING: openssl/des.h: check for missing prerequisite headers?" >&5
9555 echo "$as_me: WARNING: openssl/des.h: check for missing prerequisite headers?" >&2;}
9556 { echo "$as_me:$LINENO: WARNING: openssl/des.h: see the Autoconf documentation" >&5
9557 echo "$as_me: WARNING: openssl/des.h: see the Autoconf documentation" >&2;}
9558 { echo "$as_me:$LINENO: WARNING: openssl/des.h: section \"Present But Cannot Be Compiled\"" >&5
9559 echo "$as_me: WARNING: openssl/des.h: section \"Present But Cannot Be Compiled\"" >&2;}
9560 { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
9561 echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
9562 { echo "$as_me:$LINENO: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&5
9563 echo "$as_me: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&2;}
9567 { echo "$as_me:$LINENO: checking for openssl/des.h" >&5
9568 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6; }
9569 if test "${ac_cv_header_openssl_des_h+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
9572 ac_cv_header_openssl_des_h=$ac_header_preproc
9574 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
9575 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
9578 if test $ac_cv_header_openssl_des_h = yes; then
9580 cat >>confdefs.h <<\_ACEOF
9581 #define WITH_SSL_DES
9596 if test "$with_des" = no; then
9597 { echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
9598 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
9599 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
9600 echo $ECHO_N "(cached) $ECHO_C" >&6
9602 ac_check_lib_save_LIBS=$LIBS
9603 LIBS="-lcrypto $LIB_RSAREF $LIBS"
9604 cat >conftest.$ac_ext <<_ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h. */
9611 /* Override any GCC internal prototype to avoid an error.
9612 Use char because int might match the return type of a GCC
9613 builtin and then its argument prototype would still apply. */
9617 char DES_cbc_encrypt ();
9621 return DES_cbc_encrypt ();
9626 rm -f conftest.$ac_objext conftest$ac_exeext
9627 if { (ac_try="$ac_link"
9629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9630 *) ac_try_echo=$ac_try;;
9632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9633 (eval "$ac_link") 2>conftest.er1
9635 grep -v '^ *+' conftest.er1 >conftest.err
9637 cat conftest.err >&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } && {
9640 test -z "$ac_c_werror_flag" ||
9641 test ! -s conftest.err
9642 } && test -s conftest$ac_exeext &&
9643 $as_test_x conftest$ac_exeext; then
9644 ac_cv_lib_crypto_DES_cbc_encrypt=yes
9646 echo "$as_me: failed program was:" >&5
9647 sed 's/^/| /' conftest.$ac_ext >&5
9649 ac_cv_lib_crypto_DES_cbc_encrypt=no
9652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9653 conftest$ac_exeext conftest.$ac_ext
9654 LIBS=$ac_check_lib_save_LIBS
9656 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
9657 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
9658 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
9660 if test "${ac_cv_header_openssl_des_h+set}" = set; then
9661 { echo "$as_me:$LINENO: checking for openssl/des.h" >&5
9662 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6; }
9663 if test "${ac_cv_header_openssl_des_h+set}" = set; then
9664 echo $ECHO_N "(cached) $ECHO_C" >&6
9666 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
9667 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
9669 # Is the header compilable?
9670 { echo "$as_me:$LINENO: checking openssl/des.h usability" >&5
9671 echo $ECHO_N "checking openssl/des.h usability... $ECHO_C" >&6; }
9672 cat >conftest.$ac_ext <<_ACEOF
9675 cat confdefs.h >>conftest.$ac_ext
9676 cat >>conftest.$ac_ext <<_ACEOF
9677 /* end confdefs.h. */
9678 $ac_includes_default
9679 #include <openssl/des.h>
9681 rm -f conftest.$ac_objext
9682 if { (ac_try="$ac_compile"
9684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685 *) ac_try_echo=$ac_try;;
9687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688 (eval "$ac_compile") 2>conftest.er1
9690 grep -v '^ *+' conftest.er1 >conftest.err
9692 cat conftest.err >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } && {
9695 test -z "$ac_c_werror_flag" ||
9696 test ! -s conftest.err
9697 } && test -s conftest.$ac_objext; then
9698 ac_header_compiler=yes
9700 echo "$as_me: failed program was:" >&5
9701 sed 's/^/| /' conftest.$ac_ext >&5
9703 ac_header_compiler=no
9706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9707 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9708 echo "${ECHO_T}$ac_header_compiler" >&6; }
9710 # Is the header present?
9711 { echo "$as_me:$LINENO: checking openssl/des.h presence" >&5
9712 echo $ECHO_N "checking openssl/des.h presence... $ECHO_C" >&6; }
9713 cat >conftest.$ac_ext <<_ACEOF
9716 cat confdefs.h >>conftest.$ac_ext
9717 cat >>conftest.$ac_ext <<_ACEOF
9718 /* end confdefs.h. */
9719 #include <openssl/des.h>
9721 if { (ac_try="$ac_cpp conftest.$ac_ext"
9723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9724 *) ac_try_echo=$ac_try;;
9726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9729 grep -v '^ *+' conftest.er1 >conftest.err
9731 cat conftest.err >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); } >/dev/null && {
9734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9735 test ! -s conftest.err
9737 ac_header_preproc=yes
9739 echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.$ac_ext >&5
9742 ac_header_preproc=no
9745 rm -f conftest.err conftest.$ac_ext
9746 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9747 echo "${ECHO_T}$ac_header_preproc" >&6; }
9749 # So? What about this header?
9750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9752 { echo "$as_me:$LINENO: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&5
9753 echo "$as_me: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9754 { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the compiler's result" >&5
9755 echo "$as_me: WARNING: openssl/des.h: proceeding with the compiler's result" >&2;}
9756 ac_header_preproc=yes
9759 { echo "$as_me:$LINENO: WARNING: openssl/des.h: present but cannot be compiled" >&5
9760 echo "$as_me: WARNING: openssl/des.h: present but cannot be compiled" >&2;}
9761 { echo "$as_me:$LINENO: WARNING: openssl/des.h: check for missing prerequisite headers?" >&5
9762 echo "$as_me: WARNING: openssl/des.h: check for missing prerequisite headers?" >&2;}
9763 { echo "$as_me:$LINENO: WARNING: openssl/des.h: see the Autoconf documentation" >&5
9764 echo "$as_me: WARNING: openssl/des.h: see the Autoconf documentation" >&2;}
9765 { echo "$as_me:$LINENO: WARNING: openssl/des.h: section \"Present But Cannot Be Compiled\"" >&5
9766 echo "$as_me: WARNING: openssl/des.h: section \"Present But Cannot Be Compiled\"" >&2;}
9767 { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
9768 echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
9769 { echo "$as_me:$LINENO: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&5
9770 echo "$as_me: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&2;}
9774 { echo "$as_me:$LINENO: checking for openssl/des.h" >&5
9775 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6; }
9776 if test "${ac_cv_header_openssl_des_h+set}" = set; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
9779 ac_cv_header_openssl_des_h=$ac_header_preproc
9781 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
9782 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
9785 if test $ac_cv_header_openssl_des_h = yes; then
9787 cat >>confdefs.h <<\_ACEOF
9788 #define WITH_SSL_DES
9805 if test "$with_des" = no; then
9806 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
9807 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
9808 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
9809 echo $ECHO_N "(cached) $ECHO_C" >&6
9811 ac_check_lib_save_LIBS=$LIBS
9813 cat >conftest.$ac_ext <<_ACEOF
9816 cat confdefs.h >>conftest.$ac_ext
9817 cat >>conftest.$ac_ext <<_ACEOF
9818 /* end confdefs.h. */
9820 /* Override any GCC internal prototype to avoid an error.
9821 Use char because int might match the return type of a GCC
9822 builtin and then its argument prototype would still apply. */
9826 char des_cbc_encrypt ();
9830 return des_cbc_encrypt ();
9835 rm -f conftest.$ac_objext conftest$ac_exeext
9836 if { (ac_try="$ac_link"
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842 (eval "$ac_link") 2>conftest.er1
9844 grep -v '^ *+' conftest.er1 >conftest.err
9846 cat conftest.err >&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); } && {
9849 test -z "$ac_c_werror_flag" ||
9850 test ! -s conftest.err
9851 } && test -s conftest$ac_exeext &&
9852 $as_test_x conftest$ac_exeext; then
9853 ac_cv_lib_des_des_cbc_encrypt=yes
9855 echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.$ac_ext >&5
9858 ac_cv_lib_des_des_cbc_encrypt=no
9861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9862 conftest$ac_exeext conftest.$ac_ext
9863 LIBS=$ac_check_lib_save_LIBS
9865 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
9866 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
9867 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
9876 if test "$with_des" = no; then
9877 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
9878 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
9879 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
9880 echo $ECHO_N "(cached) $ECHO_C" >&6
9882 ac_check_lib_save_LIBS=$LIBS
9883 LIBS="-ldes425 $LIBS"
9884 cat >conftest.$ac_ext <<_ACEOF
9887 cat confdefs.h >>conftest.$ac_ext
9888 cat >>conftest.$ac_ext <<_ACEOF
9889 /* end confdefs.h. */
9891 /* Override any GCC internal prototype to avoid an error.
9892 Use char because int might match the return type of a GCC
9893 builtin and then its argument prototype would still apply. */
9897 char des_cbc_encrypt ();
9901 return des_cbc_encrypt ();
9906 rm -f conftest.$ac_objext conftest$ac_exeext
9907 if { (ac_try="$ac_link"
9909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910 *) ac_try_echo=$ac_try;;
9912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913 (eval "$ac_link") 2>conftest.er1
9915 grep -v '^ *+' conftest.er1 >conftest.err
9917 cat conftest.err >&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); } && {
9920 test -z "$ac_c_werror_flag" ||
9921 test ! -s conftest.err
9922 } && test -s conftest$ac_exeext &&
9923 $as_test_x conftest$ac_exeext; then
9924 ac_cv_lib_des425_des_cbc_encrypt=yes
9926 echo "$as_me: failed program was:" >&5
9927 sed 's/^/| /' conftest.$ac_ext >&5
9929 ac_cv_lib_des425_des_cbc_encrypt=no
9932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9933 conftest$ac_exeext conftest.$ac_ext
9934 LIBS=$ac_check_lib_save_LIBS
9936 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
9937 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
9938 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
9947 if test "$with_des" = no; then
9948 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes524" >&5
9949 echo $ECHO_N "checking for des_cbc_encrypt in -ldes524... $ECHO_C" >&6; }
9950 if test "${ac_cv_lib_des524_des_cbc_encrypt+set}" = set; then
9951 echo $ECHO_N "(cached) $ECHO_C" >&6
9953 ac_check_lib_save_LIBS=$LIBS
9954 LIBS="-ldes524 $LIBS"
9955 cat >conftest.$ac_ext <<_ACEOF
9958 cat confdefs.h >>conftest.$ac_ext
9959 cat >>conftest.$ac_ext <<_ACEOF
9960 /* end confdefs.h. */
9962 /* Override any GCC internal prototype to avoid an error.
9963 Use char because int might match the return type of a GCC
9964 builtin and then its argument prototype would still apply. */
9968 char des_cbc_encrypt ();
9972 return des_cbc_encrypt ();
9977 rm -f conftest.$ac_objext conftest$ac_exeext
9978 if { (ac_try="$ac_link"
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_link") 2>conftest.er1
9986 grep -v '^ *+' conftest.er1 >conftest.err
9988 cat conftest.err >&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } && {
9991 test -z "$ac_c_werror_flag" ||
9992 test ! -s conftest.err
9993 } && test -s conftest$ac_exeext &&
9994 $as_test_x conftest$ac_exeext; then
9995 ac_cv_lib_des524_des_cbc_encrypt=yes
9997 echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
10000 ac_cv_lib_des524_des_cbc_encrypt=no
10003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10004 conftest$ac_exeext conftest.$ac_ext
10005 LIBS=$ac_check_lib_save_LIBS
10007 { echo "$as_me:$LINENO: result: $ac_cv_lib_des524_des_cbc_encrypt" >&5
10008 echo "${ECHO_T}$ac_cv_lib_des524_des_cbc_encrypt" >&6; }
10009 if test $ac_cv_lib_des524_des_cbc_encrypt = yes; then
10010 LIB_DES="-ldes524";
10018 if test "$with_des" = no; then
10021 { echo "$as_me:$LINENO: checking for RSAPublicEncrypt in -lrsaref" >&5
10022 echo $ECHO_N "checking for RSAPublicEncrypt in -lrsaref... $ECHO_C" >&6; }
10023 if test "${ac_cv_lib_rsaref_RSAPublicEncrypt+set}" = set; then
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
10026 ac_check_lib_save_LIBS=$LIBS
10027 LIBS="-lrsaref $LIBS"
10028 cat >conftest.$ac_ext <<_ACEOF
10031 cat confdefs.h >>conftest.$ac_ext
10032 cat >>conftest.$ac_ext <<_ACEOF
10033 /* end confdefs.h. */
10035 /* Override any GCC internal prototype to avoid an error.
10036 Use char because int might match the return type of a GCC
10037 builtin and then its argument prototype would still apply. */
10041 char RSAPublicEncrypt ();
10045 return RSAPublicEncrypt ();
10050 rm -f conftest.$ac_objext conftest$ac_exeext
10051 if { (ac_try="$ac_link"
10052 case "(($ac_try" in
10053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054 *) ac_try_echo=$ac_try;;
10056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057 (eval "$ac_link") 2>conftest.er1
10059 grep -v '^ *+' conftest.er1 >conftest.err
10061 cat conftest.err >&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); } && {
10064 test -z "$ac_c_werror_flag" ||
10065 test ! -s conftest.err
10066 } && test -s conftest$ac_exeext &&
10067 $as_test_x conftest$ac_exeext; then
10068 ac_cv_lib_rsaref_RSAPublicEncrypt=yes
10070 echo "$as_me: failed program was:" >&5
10071 sed 's/^/| /' conftest.$ac_ext >&5
10073 ac_cv_lib_rsaref_RSAPublicEncrypt=no
10076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10077 conftest$ac_exeext conftest.$ac_ext
10078 LIBS=$ac_check_lib_save_LIBS
10080 { echo "$as_me:$LINENO: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5
10081 echo "${ECHO_T}$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6; }
10082 if test $ac_cv_lib_rsaref_RSAPublicEncrypt = yes; then
10083 LIB_RSAREF="-lRSAglue -lrsaref"; cmu_have_rsaref=yes
10089 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -lcrypto" >&5
10090 echo $ECHO_N "checking for des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
10091 if test "${ac_cv_lib_crypto_des_cbc_encrypt+set}" = set; then
10092 echo $ECHO_N "(cached) $ECHO_C" >&6
10094 ac_check_lib_save_LIBS=$LIBS
10095 LIBS="-lcrypto $LIB_RSAREF $LIBS"
10096 cat >conftest.$ac_ext <<_ACEOF
10099 cat confdefs.h >>conftest.$ac_ext
10100 cat >>conftest.$ac_ext <<_ACEOF
10101 /* end confdefs.h. */
10103 /* Override any GCC internal prototype to avoid an error.
10104 Use char because int might match the return type of a GCC
10105 builtin and then its argument prototype would still apply. */
10109 char des_cbc_encrypt ();
10113 return des_cbc_encrypt ();
10118 rm -f conftest.$ac_objext conftest$ac_exeext
10119 if { (ac_try="$ac_link"
10120 case "(($ac_try" in
10121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122 *) ac_try_echo=$ac_try;;
10124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125 (eval "$ac_link") 2>conftest.er1
10127 grep -v '^ *+' conftest.er1 >conftest.err
10129 cat conftest.err >&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); } && {
10132 test -z "$ac_c_werror_flag" ||
10133 test ! -s conftest.err
10134 } && test -s conftest$ac_exeext &&
10135 $as_test_x conftest$ac_exeext; then
10136 ac_cv_lib_crypto_des_cbc_encrypt=yes
10138 echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10141 ac_cv_lib_crypto_des_cbc_encrypt=no
10144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10145 conftest$ac_exeext conftest.$ac_ext
10146 LIBS=$ac_check_lib_save_LIBS
10148 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
10149 echo "${ECHO_T}$ac_cv_lib_crypto_des_cbc_encrypt" >&6; }
10150 if test $ac_cv_lib_crypto_des_cbc_encrypt = yes; then
10152 if test "${ac_cv_header_openssl_des_h+set}" = set; then
10153 { echo "$as_me:$LINENO: checking for openssl/des.h" >&5
10154 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6; }
10155 if test "${ac_cv_header_openssl_des_h+set}" = set; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10158 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
10159 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
10161 # Is the header compilable?
10162 { echo "$as_me:$LINENO: checking openssl/des.h usability" >&5
10163 echo $ECHO_N "checking openssl/des.h usability... $ECHO_C" >&6; }
10164 cat >conftest.$ac_ext <<_ACEOF
10167 cat confdefs.h >>conftest.$ac_ext
10168 cat >>conftest.$ac_ext <<_ACEOF
10169 /* end confdefs.h. */
10170 $ac_includes_default
10171 #include <openssl/des.h>
10173 rm -f conftest.$ac_objext
10174 if { (ac_try="$ac_compile"
10175 case "(($ac_try" in
10176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177 *) ac_try_echo=$ac_try;;
10179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10180 (eval "$ac_compile") 2>conftest.er1
10182 grep -v '^ *+' conftest.er1 >conftest.err
10184 cat conftest.err >&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); } && {
10187 test -z "$ac_c_werror_flag" ||
10188 test ! -s conftest.err
10189 } && test -s conftest.$ac_objext; then
10190 ac_header_compiler=yes
10192 echo "$as_me: failed program was:" >&5
10193 sed 's/^/| /' conftest.$ac_ext >&5
10195 ac_header_compiler=no
10198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10199 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10200 echo "${ECHO_T}$ac_header_compiler" >&6; }
10202 # Is the header present?
10203 { echo "$as_me:$LINENO: checking openssl/des.h presence" >&5
10204 echo $ECHO_N "checking openssl/des.h presence... $ECHO_C" >&6; }
10205 cat >conftest.$ac_ext <<_ACEOF
10208 cat confdefs.h >>conftest.$ac_ext
10209 cat >>conftest.$ac_ext <<_ACEOF
10210 /* end confdefs.h. */
10211 #include <openssl/des.h>
10213 if { (ac_try="$ac_cpp conftest.$ac_ext"
10214 case "(($ac_try" in
10215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10216 *) ac_try_echo=$ac_try;;
10218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10221 grep -v '^ *+' conftest.er1 >conftest.err
10223 cat conftest.err >&5
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); } >/dev/null && {
10226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10227 test ! -s conftest.err
10229 ac_header_preproc=yes
10231 echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10234 ac_header_preproc=no
10237 rm -f conftest.err conftest.$ac_ext
10238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10239 echo "${ECHO_T}$ac_header_preproc" >&6; }
10241 # So? What about this header?
10242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10244 { echo "$as_me:$LINENO: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&5
10245 echo "$as_me: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10246 { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the compiler's result" >&5
10247 echo "$as_me: WARNING: openssl/des.h: proceeding with the compiler's result" >&2;}
10248 ac_header_preproc=yes
10251 { echo "$as_me:$LINENO: WARNING: openssl/des.h: present but cannot be compiled" >&5
10252 echo "$as_me: WARNING: openssl/des.h: present but cannot be compiled" >&2;}
10253 { echo "$as_me:$LINENO: WARNING: openssl/des.h: check for missing prerequisite headers?" >&5
10254 echo "$as_me: WARNING: openssl/des.h: check for missing prerequisite headers?" >&2;}
10255 { echo "$as_me:$LINENO: WARNING: openssl/des.h: see the Autoconf documentation" >&5
10256 echo "$as_me: WARNING: openssl/des.h: see the Autoconf documentation" >&2;}
10257 { echo "$as_me:$LINENO: WARNING: openssl/des.h: section \"Present But Cannot Be Compiled\"" >&5
10258 echo "$as_me: WARNING: openssl/des.h: section \"Present But Cannot Be Compiled\"" >&2;}
10259 { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
10260 echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
10261 { echo "$as_me:$LINENO: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&5
10262 echo "$as_me: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&2;}
10266 { echo "$as_me:$LINENO: checking for openssl/des.h" >&5
10267 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6; }
10268 if test "${ac_cv_header_openssl_des_h+set}" = set; then
10269 echo $ECHO_N "(cached) $ECHO_C" >&6
10271 ac_cv_header_openssl_des_h=$ac_header_preproc
10273 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
10274 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
10277 if test $ac_cv_header_openssl_des_h = yes; then
10279 cat >>confdefs.h <<\_ACEOF
10280 #define WITH_SSL_DES
10283 LIB_DES="-lcrypto";
10297 if test "$with_des" != no; then
10299 cat >>confdefs.h <<\_ACEOF
10308 # Check whether --enable-digest was given.
10309 if test "${enable_digest+set}" = set; then
10310 enableval=$enable_digest; digest=$enableval
10316 if test "$digest" != no; then
10317 if test -d $digest; then
10318 CPPFLAGS="$CPPFLAGS -I$digest/include"
10319 LDFLAGS="$LDFLAGS -L$digest/lib"
10321 if test "$with_des" = no; then
10322 { echo "$as_me:$LINENO: WARNING: No DES support for DIGEST-MD5" >&5
10323 echo "$as_me: WARNING: No DES support for DIGEST-MD5" >&2;}
10327 { echo "$as_me:$LINENO: checking DIGEST-MD5" >&5
10328 echo $ECHO_N "checking DIGEST-MD5... $ECHO_C" >&6; }
10329 if test "$digest" != no; then
10330 { echo "$as_me:$LINENO: result: enabled" >&5
10331 echo "${ECHO_T}enabled" >&6; }
10332 SASL_MECHS="$SASL_MECHS libdigestmd5.la"
10333 if test "$enable_static" = yes; then
10334 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/digestmd5.c"
10335 SASL_STATIC_OBJS="$SASL_STATIC_OBJS digestmd5.o"
10337 cat >>confdefs.h <<\_ACEOF
10338 #define STATIC_DIGESTMD5
10343 { echo "$as_me:$LINENO: result: disabled" >&5
10344 echo "${ECHO_T}disabled" >&6; }
10347 # Check whether --enable-otp was given.
10348 if test "${enable_otp+set}" = set; then
10349 enableval=$enable_otp; otp=$enableval
10355 if test "$with_openssl" = no; then
10356 { echo "$as_me:$LINENO: WARNING: OpenSSL not found -- OTP will be disabled" >&5
10357 echo "$as_me: WARNING: OpenSSL not found -- OTP will be disabled" >&2;}
10361 { echo "$as_me:$LINENO: checking OTP" >&5
10362 echo $ECHO_N "checking OTP... $ECHO_C" >&6; }
10363 if test "$otp" != no; then
10364 { echo "$as_me:$LINENO: result: enabled" >&5
10365 echo "${ECHO_T}enabled" >&6; }
10366 OTP_LIBS="-lcrypto $LIB_RSAREF"
10368 SASL_MECHS="$SASL_MECHS libotp.la"
10369 if test "$enable_static" = yes; then
10370 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/otp.c"
10371 SASL_STATIC_OBJS="$SASL_STATIC_OBJS otp.o"
10373 cat >>confdefs.h <<\_ACEOF
10380 # Check whether --with-with-opie was given.
10381 if test "${with_with_opie+set}" = set; then
10382 withval=$with_with_opie; with_opie="${withval}"
10386 case "$with_opie" in
10388 { echo "$as_me:$LINENO: checking for opiechallenge in -lopie" >&5
10389 echo $ECHO_N "checking for opiechallenge in -lopie... $ECHO_C" >&6; }
10390 if test "${ac_cv_lib_opie_opiechallenge+set}" = set; then
10391 echo $ECHO_N "(cached) $ECHO_C" >&6
10393 ac_check_lib_save_LIBS=$LIBS
10394 LIBS="-lopie $LIBS"
10395 cat >conftest.$ac_ext <<_ACEOF
10398 cat confdefs.h >>conftest.$ac_ext
10399 cat >>conftest.$ac_ext <<_ACEOF
10400 /* end confdefs.h. */
10402 /* Override any GCC internal prototype to avoid an error.
10403 Use char because int might match the return type of a GCC
10404 builtin and then its argument prototype would still apply. */
10408 char opiechallenge ();
10412 return opiechallenge ();
10417 rm -f conftest.$ac_objext conftest$ac_exeext
10418 if { (ac_try="$ac_link"
10419 case "(($ac_try" in
10420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10421 *) ac_try_echo=$ac_try;;
10423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10424 (eval "$ac_link") 2>conftest.er1
10426 grep -v '^ *+' conftest.er1 >conftest.err
10428 cat conftest.err >&5
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); } && {
10431 test -z "$ac_c_werror_flag" ||
10432 test ! -s conftest.err
10433 } && test -s conftest$ac_exeext &&
10434 $as_test_x conftest$ac_exeext; then
10435 ac_cv_lib_opie_opiechallenge=yes
10437 echo "$as_me: failed program was:" >&5
10438 sed 's/^/| /' conftest.$ac_ext >&5
10440 ac_cv_lib_opie_opiechallenge=no
10443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10444 conftest$ac_exeext conftest.$ac_ext
10445 LIBS=$ac_check_lib_save_LIBS
10447 { echo "$as_me:$LINENO: result: $ac_cv_lib_opie_opiechallenge" >&5
10448 echo "${ECHO_T}$ac_cv_lib_opie_opiechallenge" >&6; }
10449 if test $ac_cv_lib_opie_opiechallenge = yes; then
10451 if test "${ac_cv_header_opie_h+set}" = set; then
10452 { echo "$as_me:$LINENO: checking for opie.h" >&5
10453 echo $ECHO_N "checking for opie.h... $ECHO_C" >&6; }
10454 if test "${ac_cv_header_opie_h+set}" = set; then
10455 echo $ECHO_N "(cached) $ECHO_C" >&6
10457 { echo "$as_me:$LINENO: result: $ac_cv_header_opie_h" >&5
10458 echo "${ECHO_T}$ac_cv_header_opie_h" >&6; }
10460 # Is the header compilable?
10461 { echo "$as_me:$LINENO: checking opie.h usability" >&5
10462 echo $ECHO_N "checking opie.h usability... $ECHO_C" >&6; }
10463 cat >conftest.$ac_ext <<_ACEOF
10466 cat confdefs.h >>conftest.$ac_ext
10467 cat >>conftest.$ac_ext <<_ACEOF
10468 /* end confdefs.h. */
10469 $ac_includes_default
10472 rm -f conftest.$ac_objext
10473 if { (ac_try="$ac_compile"
10474 case "(($ac_try" in
10475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10476 *) ac_try_echo=$ac_try;;
10478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10479 (eval "$ac_compile") 2>conftest.er1
10481 grep -v '^ *+' conftest.er1 >conftest.err
10483 cat conftest.err >&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); } && {
10486 test -z "$ac_c_werror_flag" ||
10487 test ! -s conftest.err
10488 } && test -s conftest.$ac_objext; then
10489 ac_header_compiler=yes
10491 echo "$as_me: failed program was:" >&5
10492 sed 's/^/| /' conftest.$ac_ext >&5
10494 ac_header_compiler=no
10497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10498 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10499 echo "${ECHO_T}$ac_header_compiler" >&6; }
10501 # Is the header present?
10502 { echo "$as_me:$LINENO: checking opie.h presence" >&5
10503 echo $ECHO_N "checking opie.h presence... $ECHO_C" >&6; }
10504 cat >conftest.$ac_ext <<_ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h. */
10512 if { (ac_try="$ac_cpp conftest.$ac_ext"
10513 case "(($ac_try" in
10514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10515 *) ac_try_echo=$ac_try;;
10517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10520 grep -v '^ *+' conftest.er1 >conftest.err
10522 cat conftest.err >&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); } >/dev/null && {
10525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10526 test ! -s conftest.err
10528 ac_header_preproc=yes
10530 echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.$ac_ext >&5
10533 ac_header_preproc=no
10536 rm -f conftest.err conftest.$ac_ext
10537 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10538 echo "${ECHO_T}$ac_header_preproc" >&6; }
10540 # So? What about this header?
10541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10543 { echo "$as_me:$LINENO: WARNING: opie.h: accepted by the compiler, rejected by the preprocessor!" >&5
10544 echo "$as_me: WARNING: opie.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10545 { echo "$as_me:$LINENO: WARNING: opie.h: proceeding with the compiler's result" >&5
10546 echo "$as_me: WARNING: opie.h: proceeding with the compiler's result" >&2;}
10547 ac_header_preproc=yes
10550 { echo "$as_me:$LINENO: WARNING: opie.h: present but cannot be compiled" >&5
10551 echo "$as_me: WARNING: opie.h: present but cannot be compiled" >&2;}
10552 { echo "$as_me:$LINENO: WARNING: opie.h: check for missing prerequisite headers?" >&5
10553 echo "$as_me: WARNING: opie.h: check for missing prerequisite headers?" >&2;}
10554 { echo "$as_me:$LINENO: WARNING: opie.h: see the Autoconf documentation" >&5
10555 echo "$as_me: WARNING: opie.h: see the Autoconf documentation" >&2;}
10556 { echo "$as_me:$LINENO: WARNING: opie.h: section \"Present But Cannot Be Compiled\"" >&5
10557 echo "$as_me: WARNING: opie.h: section \"Present But Cannot Be Compiled\"" >&2;}
10558 { echo "$as_me:$LINENO: WARNING: opie.h: proceeding with the preprocessor's result" >&5
10559 echo "$as_me: WARNING: opie.h: proceeding with the preprocessor's result" >&2;}
10560 { echo "$as_me:$LINENO: WARNING: opie.h: in the future, the compiler will take precedence" >&5
10561 echo "$as_me: WARNING: opie.h: in the future, the compiler will take precedence" >&2;}
10565 { echo "$as_me:$LINENO: checking for opie.h" >&5
10566 echo $ECHO_N "checking for opie.h... $ECHO_C" >&6; }
10567 if test "${ac_cv_header_opie_h+set}" = set; then
10568 echo $ECHO_N "(cached) $ECHO_C" >&6
10570 ac_cv_header_opie_h=$ac_header_preproc
10572 { echo "$as_me:$LINENO: result: $ac_cv_header_opie_h" >&5
10573 echo "${ECHO_T}$ac_cv_header_opie_h" >&6; }
10576 if test $ac_cv_header_opie_h = yes; then
10589 if test -d $with_opie; then
10590 CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
10591 LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
10598 { echo "$as_me:$LINENO: checking for OPIE" >&5
10599 echo $ECHO_N "checking for OPIE... $ECHO_C" >&6; }
10600 { echo "$as_me:$LINENO: result: $with_opie" >&5
10601 echo "${ECHO_T}$with_opie" >&6; }
10603 if test "$with_opie" != no; then
10605 cat >>confdefs.h <<\_ACEOF
10609 OTP_LIBS="$OTP_LIBS -lopie"
10615 { echo "$as_me:$LINENO: result: disabled" >&5
10616 echo "${ECHO_T}disabled" >&6; }
10619 # Check whether --enable-srp was given.
10620 if test "${enable_srp+set}" = set; then
10621 enableval=$enable_srp; srp=$enableval
10627 if test "$with_openssl" = no; then
10628 { echo "$as_me:$LINENO: WARNING: OpenSSL not found -- SRP will be disabled" >&5
10629 echo "$as_me: WARNING: OpenSSL not found -- SRP will be disabled" >&2;}
10633 { echo "$as_me:$LINENO: checking SRP" >&5
10634 echo $ECHO_N "checking SRP... $ECHO_C" >&6; }
10635 if test "$srp" != no; then
10636 { echo "$as_me:$LINENO: result: enabled" >&5
10637 echo "${ECHO_T}enabled" >&6; }
10638 SRP_LIBS="-lcrypto $LIB_RSAREF"
10640 SASL_MECHS="$SASL_MECHS libsrp.la"
10641 if test "$enable_static" = yes; then
10642 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/srp.c"
10643 SASL_STATIC_OBJS="$SASL_STATIC_OBJS srp.o"
10645 cat >>confdefs.h <<\_ACEOF
10651 # Check whether --enable-srp_setpass was given.
10652 if test "${enable_srp_setpass+set}" = set; then
10653 enableval=$enable_srp_setpass; srp_setpass=$enableval
10659 { echo "$as_me:$LINENO: checking if we should enable setting SRP secrets with saslpasswd" >&5
10660 echo $ECHO_N "checking if we should enable setting SRP secrets with saslpasswd... $ECHO_C" >&6; }
10661 if test "$srp_setpass" != no; then
10662 { echo "$as_me:$LINENO: result: enabled" >&5
10663 echo "${ECHO_T}enabled" >&6; }
10665 cat >>confdefs.h <<\_ACEOF
10666 #define DO_SRP_SETPASS
10670 { echo "$as_me:$LINENO: result: disabled" >&5
10671 echo "${ECHO_T}disabled" >&6; }
10676 { echo "$as_me:$LINENO: result: disabled" >&5
10677 echo "${ECHO_T}disabled" >&6; }
10683 # Check whether --enable-krb4 was given.
10684 if test "${enable_krb4+set}" = set; then
10685 enableval=$enable_krb4; krb4=$enableval
10691 if test "$krb4" != no; then
10693 { echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
10694 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6; }
10695 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
10696 echo $ECHO_N "(cached) $ECHO_C" >&6
10698 ac_check_lib_save_LIBS=$LIBS
10699 LIBS="-lresolv $LIBS"
10700 cat >conftest.$ac_ext <<_ACEOF
10703 cat confdefs.h >>conftest.$ac_ext
10704 cat >>conftest.$ac_ext <<_ACEOF
10705 /* end confdefs.h. */
10707 /* Override any GCC internal prototype to avoid an error.
10708 Use char because int might match the return type of a GCC
10709 builtin and then its argument prototype would still apply. */
10713 char res_search ();
10717 return res_search ();
10722 rm -f conftest.$ac_objext conftest$ac_exeext
10723 if { (ac_try="$ac_link"
10724 case "(($ac_try" in
10725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10726 *) ac_try_echo=$ac_try;;
10728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10729 (eval "$ac_link") 2>conftest.er1
10731 grep -v '^ *+' conftest.er1 >conftest.err
10733 cat conftest.err >&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); } && {
10736 test -z "$ac_c_werror_flag" ||
10737 test ! -s conftest.err
10738 } && test -s conftest$ac_exeext &&
10739 $as_test_x conftest$ac_exeext; then
10740 ac_cv_lib_resolv_res_search=yes
10742 echo "$as_me: failed program was:" >&5
10743 sed 's/^/| /' conftest.$ac_ext >&5
10745 ac_cv_lib_resolv_res_search=no
10748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10749 conftest$ac_exeext conftest.$ac_ext
10750 LIBS=$ac_check_lib_save_LIBS
10752 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
10753 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6; }
10754 if test $ac_cv_lib_resolv_res_search = yes; then
10755 cat >>confdefs.h <<_ACEOF
10756 #define HAVE_LIBRESOLV 1
10759 LIBS="-lresolv $LIBS"
10764 if test -d ${krb4}; then
10765 { echo "$as_me:$LINENO: checking for Kerberos includes" >&5
10766 echo $ECHO_N "checking for Kerberos includes... $ECHO_C" >&6; }
10767 if test "${cyrus_krbinclude+set}" = set; then
10768 echo $ECHO_N "(cached) $ECHO_C" >&6
10771 for krbhloc in include/kerberosIV include/kerberos include
10773 if test -f ${krb4}/${krbhloc}/krb.h ; then
10774 cyrus_krbinclude=${krb4}/${krbhloc}
10780 { echo "$as_me:$LINENO: result: $cyrus_krbinclude" >&5
10781 echo "${ECHO_T}$cyrus_krbinclude" >&6; }
10783 if test -n "${cyrus_krbinclude}"; then
10784 CPPFLAGS="$CPPFLAGS -I${cyrus_krbinclude}"
10786 LDFLAGS="$LDFLAGS -L$krb4/lib"
10789 if test "$with_des" != no; then
10790 if test "${ac_cv_header_krb_h+set}" = set; then
10791 { echo "$as_me:$LINENO: checking for krb.h" >&5
10792 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
10793 if test "${ac_cv_header_krb_h+set}" = set; then
10794 echo $ECHO_N "(cached) $ECHO_C" >&6
10796 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
10797 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
10799 # Is the header compilable?
10800 { echo "$as_me:$LINENO: checking krb.h usability" >&5
10801 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6; }
10802 cat >conftest.$ac_ext <<_ACEOF
10805 cat confdefs.h >>conftest.$ac_ext
10806 cat >>conftest.$ac_ext <<_ACEOF
10807 /* end confdefs.h. */
10808 $ac_includes_default
10811 rm -f conftest.$ac_objext
10812 if { (ac_try="$ac_compile"
10813 case "(($ac_try" in
10814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10815 *) ac_try_echo=$ac_try;;
10817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10818 (eval "$ac_compile") 2>conftest.er1
10820 grep -v '^ *+' conftest.er1 >conftest.err
10822 cat conftest.err >&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); } && {
10825 test -z "$ac_c_werror_flag" ||
10826 test ! -s conftest.err
10827 } && test -s conftest.$ac_objext; then
10828 ac_header_compiler=yes
10830 echo "$as_me: failed program was:" >&5
10831 sed 's/^/| /' conftest.$ac_ext >&5
10833 ac_header_compiler=no
10836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10837 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10838 echo "${ECHO_T}$ac_header_compiler" >&6; }
10840 # Is the header present?
10841 { echo "$as_me:$LINENO: checking krb.h presence" >&5
10842 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6; }
10843 cat >conftest.$ac_ext <<_ACEOF
10846 cat confdefs.h >>conftest.$ac_ext
10847 cat >>conftest.$ac_ext <<_ACEOF
10848 /* end confdefs.h. */
10851 if { (ac_try="$ac_cpp conftest.$ac_ext"
10852 case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10859 grep -v '^ *+' conftest.er1 >conftest.err
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } >/dev/null && {
10864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10865 test ! -s conftest.err
10867 ac_header_preproc=yes
10869 echo "$as_me: failed program was:" >&5
10870 sed 's/^/| /' conftest.$ac_ext >&5
10872 ac_header_preproc=no
10875 rm -f conftest.err conftest.$ac_ext
10876 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10877 echo "${ECHO_T}$ac_header_preproc" >&6; }
10879 # So? What about this header?
10880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10882 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
10883 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10884 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the compiler's result" >&5
10885 echo "$as_me: WARNING: krb.h: proceeding with the compiler's result" >&2;}
10886 ac_header_preproc=yes
10889 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
10890 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
10891 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
10892 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
10893 { echo "$as_me:$LINENO: WARNING: krb.h: see the Autoconf documentation" >&5
10894 echo "$as_me: WARNING: krb.h: see the Autoconf documentation" >&2;}
10895 { echo "$as_me:$LINENO: WARNING: krb.h: section \"Present But Cannot Be Compiled\"" >&5
10896 echo "$as_me: WARNING: krb.h: section \"Present But Cannot Be Compiled\"" >&2;}
10897 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
10898 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
10899 { echo "$as_me:$LINENO: WARNING: krb.h: in the future, the compiler will take precedence" >&5
10900 echo "$as_me: WARNING: krb.h: in the future, the compiler will take precedence" >&2;}
10904 { echo "$as_me:$LINENO: checking for krb.h" >&5
10905 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
10906 if test "${ac_cv_header_krb_h+set}" = set; then
10907 echo $ECHO_N "(cached) $ECHO_C" >&6
10909 ac_cv_header_krb_h=$ac_header_preproc
10911 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
10912 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
10915 if test $ac_cv_header_krb_h = yes; then
10917 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
10918 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
10919 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
10920 echo $ECHO_N "(cached) $ECHO_C" >&6
10922 ac_check_lib_save_LIBS=$LIBS
10923 LIBS="-lcom_err $LIBS"
10924 cat >conftest.$ac_ext <<_ACEOF
10927 cat confdefs.h >>conftest.$ac_ext
10928 cat >>conftest.$ac_ext <<_ACEOF
10929 /* end confdefs.h. */
10931 /* Override any GCC internal prototype to avoid an error.
10932 Use char because int might match the return type of a GCC
10933 builtin and then its argument prototype would still apply. */
10946 rm -f conftest.$ac_objext conftest$ac_exeext
10947 if { (ac_try="$ac_link"
10948 case "(($ac_try" in
10949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10950 *) ac_try_echo=$ac_try;;
10952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953 (eval "$ac_link") 2>conftest.er1
10955 grep -v '^ *+' conftest.er1 >conftest.err
10957 cat conftest.err >&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); } && {
10960 test -z "$ac_c_werror_flag" ||
10961 test ! -s conftest.err
10962 } && test -s conftest$ac_exeext &&
10963 $as_test_x conftest$ac_exeext; then
10964 ac_cv_lib_com_err_com_err=yes
10966 echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10969 ac_cv_lib_com_err_com_err=no
10972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10973 conftest$ac_exeext conftest.$ac_ext
10974 LIBS=$ac_check_lib_save_LIBS
10976 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
10977 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
10978 if test $ac_cv_lib_com_err_com_err = yes; then
10980 { echo "$as_me:$LINENO: checking for krb_mk_priv in -lkrb" >&5
10981 echo $ECHO_N "checking for krb_mk_priv in -lkrb... $ECHO_C" >&6; }
10982 if test "${ac_cv_lib_krb_krb_mk_priv+set}" = set; then
10983 echo $ECHO_N "(cached) $ECHO_C" >&6
10985 ac_check_lib_save_LIBS=$LIBS
10986 LIBS="-lkrb $LIB_DES -lcom_err $LIBS"
10987 cat >conftest.$ac_ext <<_ACEOF
10990 cat confdefs.h >>conftest.$ac_ext
10991 cat >>conftest.$ac_ext <<_ACEOF
10992 /* end confdefs.h. */
10994 /* Override any GCC internal prototype to avoid an error.
10995 Use char because int might match the return type of a GCC
10996 builtin and then its argument prototype would still apply. */
11000 char krb_mk_priv ();
11004 return krb_mk_priv ();
11009 rm -f conftest.$ac_objext conftest$ac_exeext
11010 if { (ac_try="$ac_link"
11011 case "(($ac_try" in
11012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11013 *) ac_try_echo=$ac_try;;
11015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11016 (eval "$ac_link") 2>conftest.er1
11018 grep -v '^ *+' conftest.er1 >conftest.err
11020 cat conftest.err >&5
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); } && {
11023 test -z "$ac_c_werror_flag" ||
11024 test ! -s conftest.err
11025 } && test -s conftest$ac_exeext &&
11026 $as_test_x conftest$ac_exeext; then
11027 ac_cv_lib_krb_krb_mk_priv=yes
11029 echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11032 ac_cv_lib_krb_krb_mk_priv=no
11035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11036 conftest$ac_exeext conftest.$ac_ext
11037 LIBS=$ac_check_lib_save_LIBS
11039 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_mk_priv" >&5
11040 echo "${ECHO_T}$ac_cv_lib_krb_krb_mk_priv" >&6; }
11041 if test $ac_cv_lib_krb_krb_mk_priv = yes; then
11042 COM_ERR="-lcom_err"; SASL_KRB_LIB="-lkrb"; krb4lib="yes"
11049 { echo "$as_me:$LINENO: checking for krb_mk_priv in -lkrb" >&5
11050 echo $ECHO_N "checking for krb_mk_priv in -lkrb... $ECHO_C" >&6; }
11051 if test "${ac_cv_lib_krb_krb_mk_priv+set}" = set; then
11052 echo $ECHO_N "(cached) $ECHO_C" >&6
11054 ac_check_lib_save_LIBS=$LIBS
11055 LIBS="-lkrb $LIB_DES $LIBS"
11056 cat >conftest.$ac_ext <<_ACEOF
11059 cat confdefs.h >>conftest.$ac_ext
11060 cat >>conftest.$ac_ext <<_ACEOF
11061 /* end confdefs.h. */
11063 /* Override any GCC internal prototype to avoid an error.
11064 Use char because int might match the return type of a GCC
11065 builtin and then its argument prototype would still apply. */
11069 char krb_mk_priv ();
11073 return krb_mk_priv ();
11078 rm -f conftest.$ac_objext conftest$ac_exeext
11079 if { (ac_try="$ac_link"
11080 case "(($ac_try" in
11081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11082 *) ac_try_echo=$ac_try;;
11084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11085 (eval "$ac_link") 2>conftest.er1
11087 grep -v '^ *+' conftest.er1 >conftest.err
11089 cat conftest.err >&5
11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); } && {
11092 test -z "$ac_c_werror_flag" ||
11093 test ! -s conftest.err
11094 } && test -s conftest$ac_exeext &&
11095 $as_test_x conftest$ac_exeext; then
11096 ac_cv_lib_krb_krb_mk_priv=yes
11098 echo "$as_me: failed program was:" >&5
11099 sed 's/^/| /' conftest.$ac_ext >&5
11101 ac_cv_lib_krb_krb_mk_priv=no
11104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11105 conftest$ac_exeext conftest.$ac_ext
11106 LIBS=$ac_check_lib_save_LIBS
11108 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_mk_priv" >&5
11109 echo "${ECHO_T}$ac_cv_lib_krb_krb_mk_priv" >&6; }
11110 if test $ac_cv_lib_krb_krb_mk_priv = yes; then
11111 COM_ERR=""; SASL_KRB_LIB="-lkrb"; krb4lib="yes"
11124 if test "$krb4" != "no" -a "$krb4lib" = "no"; then
11125 { echo "$as_me:$LINENO: checking for krb_mk_priv in -lkrb4" >&5
11126 echo $ECHO_N "checking for krb_mk_priv in -lkrb4... $ECHO_C" >&6; }
11127 if test "${ac_cv_lib_krb4_krb_mk_priv+set}" = set; then
11128 echo $ECHO_N "(cached) $ECHO_C" >&6
11130 ac_check_lib_save_LIBS=$LIBS
11131 LIBS="-lkrb4 $LIB_DES $LIBS"
11132 cat >conftest.$ac_ext <<_ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h. */
11139 /* Override any GCC internal prototype to avoid an error.
11140 Use char because int might match the return type of a GCC
11141 builtin and then its argument prototype would still apply. */
11145 char krb_mk_priv ();
11149 return krb_mk_priv ();
11154 rm -f conftest.$ac_objext conftest$ac_exeext
11155 if { (ac_try="$ac_link"
11156 case "(($ac_try" in
11157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11158 *) ac_try_echo=$ac_try;;
11160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11161 (eval "$ac_link") 2>conftest.er1
11163 grep -v '^ *+' conftest.er1 >conftest.err
11165 cat conftest.err >&5
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); } && {
11168 test -z "$ac_c_werror_flag" ||
11169 test ! -s conftest.err
11170 } && test -s conftest$ac_exeext &&
11171 $as_test_x conftest$ac_exeext; then
11172 ac_cv_lib_krb4_krb_mk_priv=yes
11174 echo "$as_me: failed program was:" >&5
11175 sed 's/^/| /' conftest.$ac_ext >&5
11177 ac_cv_lib_krb4_krb_mk_priv=no
11180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11181 conftest$ac_exeext conftest.$ac_ext
11182 LIBS=$ac_check_lib_save_LIBS
11184 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_mk_priv" >&5
11185 echo "${ECHO_T}$ac_cv_lib_krb4_krb_mk_priv" >&6; }
11186 if test $ac_cv_lib_krb4_krb_mk_priv = yes; then
11187 COM_ERR=""; SASL_KRB_LIB="-lkrb4"; krb4=yes
11193 if test "$krb4" = no; then
11194 { echo "$as_me:$LINENO: WARNING: No Kerberos V4 found" >&5
11195 echo "$as_me: WARNING: No Kerberos V4 found" >&2;}
11198 { echo "$as_me:$LINENO: WARNING: No DES library found for Kerberos V4 support" >&5
11199 echo "$as_me: WARNING: No DES library found for Kerberos V4 support" >&2;}
11204 if test "$krb4" != no; then
11205 cmu_save_LIBS="$LIBS"
11206 LIBS="$LIBS $SASL_KRB_LIB"
11208 for ac_func in krb_get_err_text
11210 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11211 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11212 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11213 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11214 echo $ECHO_N "(cached) $ECHO_C" >&6
11216 cat >conftest.$ac_ext <<_ACEOF
11219 cat confdefs.h >>conftest.$ac_ext
11220 cat >>conftest.$ac_ext <<_ACEOF
11221 /* end confdefs.h. */
11222 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11224 #define $ac_func innocuous_$ac_func
11226 /* System header to define __stub macros and hopefully few prototypes,
11227 which can conflict with char $ac_func (); below.
11228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11229 <limits.h> exists even on freestanding compilers. */
11232 # include <limits.h>
11234 # include <assert.h>
11239 /* Override any GCC internal prototype to avoid an error.
11240 Use char because int might match the return type of a GCC
11241 builtin and then its argument prototype would still apply. */
11246 /* The GNU C library defines this for functions which it implements
11247 to always fail with ENOSYS. Some functions are actually named
11248 something starting with __ and the normal name is an alias. */
11249 #if defined __stub_$ac_func || defined __stub___$ac_func
11256 return $ac_func ();
11261 rm -f conftest.$ac_objext conftest$ac_exeext
11262 if { (ac_try="$ac_link"
11263 case "(($ac_try" in
11264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11265 *) ac_try_echo=$ac_try;;
11267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11268 (eval "$ac_link") 2>conftest.er1
11270 grep -v '^ *+' conftest.er1 >conftest.err
11272 cat conftest.err >&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); } && {
11275 test -z "$ac_c_werror_flag" ||
11276 test ! -s conftest.err
11277 } && test -s conftest$ac_exeext &&
11278 $as_test_x conftest$ac_exeext; then
11279 eval "$as_ac_var=yes"
11281 echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11284 eval "$as_ac_var=no"
11287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11288 conftest$ac_exeext conftest.$ac_ext
11290 ac_res=`eval echo '${'$as_ac_var'}'`
11291 { echo "$as_me:$LINENO: result: $ac_res" >&5
11292 echo "${ECHO_T}$ac_res" >&6; }
11293 if test `eval echo '${'$as_ac_var'}'` = yes; then
11294 cat >>confdefs.h <<_ACEOF
11295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11301 LIBS="$cmu_save_LIBS"
11304 { echo "$as_me:$LINENO: checking KERBEROS_V4" >&5
11305 echo $ECHO_N "checking KERBEROS_V4... $ECHO_C" >&6; }
11306 if test "$krb4" != no; then
11307 { echo "$as_me:$LINENO: result: enabled" >&5
11308 echo "${ECHO_T}enabled" >&6; }
11309 SASL_MECHS="$SASL_MECHS libkerberos4.la"
11310 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/kerberos4.c"
11311 SASL_STATIC_OBJS="$SASL_STATIC_OBJS kerberos4.o"
11313 cat >>confdefs.h <<\_ACEOF
11314 #define STATIC_KERBEROS4
11318 cat >>confdefs.h <<\_ACEOF
11322 SASL_KRB_LIB="$SASL_KRB_LIB $LIB_DES $COM_ERR"
11324 { echo "$as_me:$LINENO: result: disabled" >&5
11325 echo "${ECHO_T}disabled" >&6; }
11329 { echo "$as_me:$LINENO: checking for crypt" >&5
11330 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
11331 if test "${ac_cv_func_crypt+set}" = set; then
11332 echo $ECHO_N "(cached) $ECHO_C" >&6
11334 cat >conftest.$ac_ext <<_ACEOF
11337 cat confdefs.h >>conftest.$ac_ext
11338 cat >>conftest.$ac_ext <<_ACEOF
11339 /* end confdefs.h. */
11340 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
11341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11342 #define crypt innocuous_crypt
11344 /* System header to define __stub macros and hopefully few prototypes,
11345 which can conflict with char crypt (); below.
11346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11347 <limits.h> exists even on freestanding compilers. */
11350 # include <limits.h>
11352 # include <assert.h>
11357 /* Override any GCC internal prototype to avoid an error.
11358 Use char because int might match the return type of a GCC
11359 builtin and then its argument prototype would still apply. */
11364 /* The GNU C library defines this for functions which it implements
11365 to always fail with ENOSYS. Some functions are actually named
11366 something starting with __ and the normal name is an alias. */
11367 #if defined __stub_crypt || defined __stub___crypt
11379 rm -f conftest.$ac_objext conftest$ac_exeext
11380 if { (ac_try="$ac_link"
11381 case "(($ac_try" in
11382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11383 *) ac_try_echo=$ac_try;;
11385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11386 (eval "$ac_link") 2>conftest.er1
11388 grep -v '^ *+' conftest.er1 >conftest.err
11390 cat conftest.err >&5
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); } && {
11393 test -z "$ac_c_werror_flag" ||
11394 test ! -s conftest.err
11395 } && test -s conftest$ac_exeext &&
11396 $as_test_x conftest$ac_exeext; then
11397 ac_cv_func_crypt=yes
11399 echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.$ac_ext >&5
11402 ac_cv_func_crypt=no
11405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11406 conftest$ac_exeext conftest.$ac_ext
11408 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
11409 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
11410 if test $ac_cv_func_crypt = yes; then
11413 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
11414 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
11415 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
11416 echo $ECHO_N "(cached) $ECHO_C" >&6
11418 ac_check_lib_save_LIBS=$LIBS
11419 LIBS="-lcrypt $LIBS"
11420 cat >conftest.$ac_ext <<_ACEOF
11423 cat confdefs.h >>conftest.$ac_ext
11424 cat >>conftest.$ac_ext <<_ACEOF
11425 /* end confdefs.h. */
11427 /* Override any GCC internal prototype to avoid an error.
11428 Use char because int might match the return type of a GCC
11429 builtin and then its argument prototype would still apply. */
11442 rm -f conftest.$ac_objext conftest$ac_exeext
11443 if { (ac_try="$ac_link"
11444 case "(($ac_try" in
11445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11446 *) ac_try_echo=$ac_try;;
11448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11449 (eval "$ac_link") 2>conftest.er1
11451 grep -v '^ *+' conftest.er1 >conftest.err
11453 cat conftest.err >&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); } && {
11456 test -z "$ac_c_werror_flag" ||
11457 test ! -s conftest.err
11458 } && test -s conftest$ac_exeext &&
11459 $as_test_x conftest$ac_exeext; then
11460 ac_cv_lib_crypt_crypt=yes
11462 echo "$as_me: failed program was:" >&5
11463 sed 's/^/| /' conftest.$ac_ext >&5
11465 ac_cv_lib_crypt_crypt=no
11468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11469 conftest$ac_exeext conftest.$ac_ext
11470 LIBS=$ac_check_lib_save_LIBS
11472 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
11473 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
11474 if test $ac_cv_lib_crypt_crypt = yes; then
11475 LIB_CRYPT="-lcrypt"; cmu_have_crypt=yes
11486 # Check whether --enable-gssapi was given.
11487 if test "${enable_gssapi+set}" = set; then
11488 enableval=$enable_gssapi; gssapi=$enableval
11494 # Check whether --with-gss_impl was given.
11495 if test "${with_gss_impl+set}" = set; then
11496 withval=$with_gss_impl; gss_impl=$withval
11502 if test "$gssapi" != no; then
11515 # When should we use __sunos?
11523 { 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
11524 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;}
11525 if test "$gss_impl" = "cybersafe"; then
11526 { { echo "$as_me:$LINENO: error: CyberSafe was forced, cannot continue as platform is not supported" >&5
11527 echo "$as_me: error: CyberSafe was forced, cannot continue as platform is not supported" >&2;}
11528 { (exit 1); exit 1; }; }
11533 cmu_saved_CPPFLAGS=$CPPFLAGS
11535 if test -d ${gssapi}; then
11536 CPPFLAGS="$CPPFLAGS -I$gssapi/include"
11537 # We want to keep -I in our CPPFLAGS, but only if we succeed
11538 cmu_saved_CPPFLAGS=$CPPFLAGS
11539 ### I am not sure how useful is this (and whether this is required at all
11540 ### especially when we have to provide two -L flags for new CyberSafe
11541 LDFLAGS="$LDFLAGS -L$gssapi/lib"
11543 if test -n "$platform"; then
11544 if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
11545 CPPFLAGS="$CPPFLAGS -D$platform"
11546 if test -d "${gssapi}/appsec-sdk/include"; then
11547 CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
11552 if test "${ac_cv_header_gssapi_h+set}" = set; then
11553 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
11554 echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
11555 if test "${ac_cv_header_gssapi_h+set}" = set; then
11556 echo $ECHO_N "(cached) $ECHO_C" >&6
11558 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
11559 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
11561 # Is the header compilable?
11562 { echo "$as_me:$LINENO: checking gssapi.h usability" >&5
11563 echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; }
11564 cat >conftest.$ac_ext <<_ACEOF
11567 cat confdefs.h >>conftest.$ac_ext
11568 cat >>conftest.$ac_ext <<_ACEOF
11569 /* end confdefs.h. */
11570 $ac_includes_default
11571 #include <gssapi.h>
11573 rm -f conftest.$ac_objext
11574 if { (ac_try="$ac_compile"
11575 case "(($ac_try" in
11576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11577 *) ac_try_echo=$ac_try;;
11579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11580 (eval "$ac_compile") 2>conftest.er1
11582 grep -v '^ *+' conftest.er1 >conftest.err
11584 cat conftest.err >&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); } && {
11587 test -z "$ac_c_werror_flag" ||
11588 test ! -s conftest.err
11589 } && test -s conftest.$ac_objext; then
11590 ac_header_compiler=yes
11592 echo "$as_me: failed program was:" >&5
11593 sed 's/^/| /' conftest.$ac_ext >&5
11595 ac_header_compiler=no
11598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11599 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11600 echo "${ECHO_T}$ac_header_compiler" >&6; }
11602 # Is the header present?
11603 { echo "$as_me:$LINENO: checking gssapi.h presence" >&5
11604 echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; }
11605 cat >conftest.$ac_ext <<_ACEOF
11608 cat confdefs.h >>conftest.$ac_ext
11609 cat >>conftest.$ac_ext <<_ACEOF
11610 /* end confdefs.h. */
11611 #include <gssapi.h>
11613 if { (ac_try="$ac_cpp conftest.$ac_ext"
11614 case "(($ac_try" in
11615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11616 *) ac_try_echo=$ac_try;;
11618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11621 grep -v '^ *+' conftest.er1 >conftest.err
11623 cat conftest.err >&5
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); } >/dev/null && {
11626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11627 test ! -s conftest.err
11629 ac_header_preproc=yes
11631 echo "$as_me: failed program was:" >&5
11632 sed 's/^/| /' conftest.$ac_ext >&5
11634 ac_header_preproc=no
11637 rm -f conftest.err conftest.$ac_ext
11638 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11639 echo "${ECHO_T}$ac_header_preproc" >&6; }
11641 # So? What about this header?
11642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11644 { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
11645 echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11646 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
11647 echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
11648 ac_header_preproc=yes
11651 { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
11652 echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
11653 { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5
11654 echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;}
11655 { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
11656 echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
11657 { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5
11658 echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
11659 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
11660 echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
11661 { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
11662 echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
11666 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
11667 echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
11668 if test "${ac_cv_header_gssapi_h+set}" = set; then
11669 echo $ECHO_N "(cached) $ECHO_C" >&6
11671 ac_cv_header_gssapi_h=$ac_header_preproc
11673 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
11674 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
11677 if test $ac_cv_header_gssapi_h = yes; then
11679 cat >>confdefs.h <<\_ACEOF
11680 #define HAVE_GSSAPI_H
11684 if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then
11685 { echo "$as_me:$LINENO: checking for gssapi/gssapi.h" >&5
11686 echo $ECHO_N "checking for gssapi/gssapi.h... $ECHO_C" >&6; }
11687 if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then
11688 echo $ECHO_N "(cached) $ECHO_C" >&6
11690 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5
11691 echo "${ECHO_T}$ac_cv_header_gssapi_gssapi_h" >&6; }
11693 # Is the header compilable?
11694 { echo "$as_me:$LINENO: checking gssapi/gssapi.h usability" >&5
11695 echo $ECHO_N "checking gssapi/gssapi.h usability... $ECHO_C" >&6; }
11696 cat >conftest.$ac_ext <<_ACEOF
11699 cat confdefs.h >>conftest.$ac_ext
11700 cat >>conftest.$ac_ext <<_ACEOF
11701 /* end confdefs.h. */
11702 $ac_includes_default
11703 #include <gssapi/gssapi.h>
11705 rm -f conftest.$ac_objext
11706 if { (ac_try="$ac_compile"
11707 case "(($ac_try" in
11708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11709 *) ac_try_echo=$ac_try;;
11711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11712 (eval "$ac_compile") 2>conftest.er1
11714 grep -v '^ *+' conftest.er1 >conftest.err
11716 cat conftest.err >&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } && {
11719 test -z "$ac_c_werror_flag" ||
11720 test ! -s conftest.err
11721 } && test -s conftest.$ac_objext; then
11722 ac_header_compiler=yes
11724 echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.$ac_ext >&5
11727 ac_header_compiler=no
11730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11731 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11732 echo "${ECHO_T}$ac_header_compiler" >&6; }
11734 # Is the header present?
11735 { echo "$as_me:$LINENO: checking gssapi/gssapi.h presence" >&5
11736 echo $ECHO_N "checking gssapi/gssapi.h presence... $ECHO_C" >&6; }
11737 cat >conftest.$ac_ext <<_ACEOF
11740 cat confdefs.h >>conftest.$ac_ext
11741 cat >>conftest.$ac_ext <<_ACEOF
11742 /* end confdefs.h. */
11743 #include <gssapi/gssapi.h>
11745 if { (ac_try="$ac_cpp conftest.$ac_ext"
11746 case "(($ac_try" in
11747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11748 *) ac_try_echo=$ac_try;;
11750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11753 grep -v '^ *+' conftest.er1 >conftest.err
11755 cat conftest.err >&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } >/dev/null && {
11758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11759 test ! -s conftest.err
11761 ac_header_preproc=yes
11763 echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.$ac_ext >&5
11766 ac_header_preproc=no
11769 rm -f conftest.err conftest.$ac_ext
11770 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11771 echo "${ECHO_T}$ac_header_preproc" >&6; }
11773 # So? What about this header?
11774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11776 { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
11777 echo "$as_me: WARNING: gssapi/gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11778 { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: proceeding with the compiler's result" >&5
11779 echo "$as_me: WARNING: gssapi/gssapi.h: proceeding with the compiler's result" >&2;}
11780 ac_header_preproc=yes
11783 { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: present but cannot be compiled" >&5
11784 echo "$as_me: WARNING: gssapi/gssapi.h: present but cannot be compiled" >&2;}
11785 { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: check for missing prerequisite headers?" >&5
11786 echo "$as_me: WARNING: gssapi/gssapi.h: check for missing prerequisite headers?" >&2;}
11787 { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: see the Autoconf documentation" >&5
11788 echo "$as_me: WARNING: gssapi/gssapi.h: see the Autoconf documentation" >&2;}
11789 { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: section \"Present But Cannot Be Compiled\"" >&5
11790 echo "$as_me: WARNING: gssapi/gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
11791 { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: proceeding with the preprocessor's result" >&5
11792 echo "$as_me: WARNING: gssapi/gssapi.h: proceeding with the preprocessor's result" >&2;}
11793 { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: in the future, the compiler will take precedence" >&5
11794 echo "$as_me: WARNING: gssapi/gssapi.h: in the future, the compiler will take precedence" >&2;}
11798 { echo "$as_me:$LINENO: checking for gssapi/gssapi.h" >&5
11799 echo $ECHO_N "checking for gssapi/gssapi.h... $ECHO_C" >&6; }
11800 if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11803 ac_cv_header_gssapi_gssapi_h=$ac_header_preproc
11805 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5
11806 echo "${ECHO_T}$ac_cv_header_gssapi_gssapi_h" >&6; }
11809 if test $ac_cv_header_gssapi_gssapi_h = yes; then
11812 { echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - no include files found" >&5
11813 echo "$as_me: WARNING: Disabling GSSAPI - no include files found" >&2;}; gssapi=no
11821 CPPFLAGS=$cmu_saved_CPPFLAGS
11825 if test "$gssapi" != no; then
11826 # We need to find out which gssapi implementation we are
11827 # using. Supported alternatives are: MIT Kerberos 5,
11828 # Heimdal Kerberos 5 (http://www.pdc.kth.se/heimdal),
11829 # CyberSafe Kerberos 5 (http://www.cybersafe.com/)
11830 # and Sun SEAM (http://wwws.sun.com/software/security/kerberos/)
11832 # The choice is reflected in GSSAPIBASE_LIBS
11835 { echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
11836 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6; }
11837 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
11838 echo $ECHO_N "(cached) $ECHO_C" >&6
11840 ac_check_lib_save_LIBS=$LIBS
11841 LIBS="-lresolv $LIBS"
11842 cat >conftest.$ac_ext <<_ACEOF
11845 cat confdefs.h >>conftest.$ac_ext
11846 cat >>conftest.$ac_ext <<_ACEOF
11847 /* end confdefs.h. */
11849 /* Override any GCC internal prototype to avoid an error.
11850 Use char because int might match the return type of a GCC
11851 builtin and then its argument prototype would still apply. */
11855 char res_search ();
11859 return res_search ();
11864 rm -f conftest.$ac_objext conftest$ac_exeext
11865 if { (ac_try="$ac_link"
11866 case "(($ac_try" in
11867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11868 *) ac_try_echo=$ac_try;;
11870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11871 (eval "$ac_link") 2>conftest.er1
11873 grep -v '^ *+' conftest.er1 >conftest.err
11875 cat conftest.err >&5
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); } && {
11878 test -z "$ac_c_werror_flag" ||
11879 test ! -s conftest.err
11880 } && test -s conftest$ac_exeext &&
11881 $as_test_x conftest$ac_exeext; then
11882 ac_cv_lib_resolv_res_search=yes
11884 echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.$ac_ext >&5
11887 ac_cv_lib_resolv_res_search=no
11890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11891 conftest$ac_exeext conftest.$ac_ext
11892 LIBS=$ac_check_lib_save_LIBS
11894 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
11895 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6; }
11896 if test $ac_cv_lib_resolv_res_search = yes; then
11897 cat >>confdefs.h <<_ACEOF
11898 #define HAVE_LIBRESOLV 1
11901 LIBS="-lresolv $LIBS"
11905 if test -d ${gssapi}; then
11906 gssapi_dir="${gssapi}/lib"
11907 GSSAPIBASE_LIBS="-L$gssapi_dir"
11908 GSSAPIBASE_STATIC_LIBS="-L$gssapi_dir"
11910 # FIXME: This is only used for building cyrus, and then only as
11911 # a real hack. it needs to be fixed.
11912 gssapi_dir="/usr/local/lib"
11915 # Check a full link against the Heimdal libraries.
11916 # If this fails, check a full link against the MIT libraries.
11917 # If this fails, check a full link against the CyberSafe libraries.
11918 # If this fails, check a full link against the Solaris 8 and up libgss.
11920 if test "$gss_impl" = "auto" -o "$gss_impl" = "heimdal"; then
11922 { echo "$as_me:$LINENO: checking for gss_unwrap in -lgssapi" >&5
11923 echo $ECHO_N "checking for gss_unwrap in -lgssapi... $ECHO_C" >&6; }
11924 if test "${ac_cv_lib_gssapi_gss_unwrap+set}" = set; then
11925 echo $ECHO_N "(cached) $ECHO_C" >&6
11927 ac_check_lib_save_LIBS=$LIBS
11928 LIBS="-lgssapi ${GSSAPIBASE_LIBS} -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err ${LIB_SOCKET} $LIBS"
11929 cat >conftest.$ac_ext <<_ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h. */
11936 /* Override any GCC internal prototype to avoid an error.
11937 Use char because int might match the return type of a GCC
11938 builtin and then its argument prototype would still apply. */
11942 char gss_unwrap ();
11946 return gss_unwrap ();
11951 rm -f conftest.$ac_objext conftest$ac_exeext
11952 if { (ac_try="$ac_link"
11953 case "(($ac_try" in
11954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11955 *) ac_try_echo=$ac_try;;
11957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11958 (eval "$ac_link") 2>conftest.er1
11960 grep -v '^ *+' conftest.er1 >conftest.err
11962 cat conftest.err >&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); } && {
11965 test -z "$ac_c_werror_flag" ||
11966 test ! -s conftest.err
11967 } && test -s conftest$ac_exeext &&
11968 $as_test_x conftest$ac_exeext; then
11969 ac_cv_lib_gssapi_gss_unwrap=yes
11971 echo "$as_me: failed program was:" >&5
11972 sed 's/^/| /' conftest.$ac_ext >&5
11974 ac_cv_lib_gssapi_gss_unwrap=no
11977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11978 conftest$ac_exeext conftest.$ac_ext
11979 LIBS=$ac_check_lib_save_LIBS
11981 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_unwrap" >&5
11982 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_unwrap" >&6; }
11983 if test $ac_cv_lib_gssapi_gss_unwrap = yes; then
11989 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
11994 if test "$gss_impl" = "auto" -o "$gss_impl" = "mit"; then
11995 # check for libkrb5support first
11996 { echo "$as_me:$LINENO: checking for krb5int_getspecific in -lkrb5support" >&5
11997 echo $ECHO_N "checking for krb5int_getspecific in -lkrb5support... $ECHO_C" >&6; }
11998 if test "${ac_cv_lib_krb5support_krb5int_getspecific+set}" = set; then
11999 echo $ECHO_N "(cached) $ECHO_C" >&6
12001 ac_check_lib_save_LIBS=$LIBS
12002 LIBS="-lkrb5support ${LIB_SOCKET} $LIBS"
12003 cat >conftest.$ac_ext <<_ACEOF
12006 cat confdefs.h >>conftest.$ac_ext
12007 cat >>conftest.$ac_ext <<_ACEOF
12008 /* end confdefs.h. */
12010 /* Override any GCC internal prototype to avoid an error.
12011 Use char because int might match the return type of a GCC
12012 builtin and then its argument prototype would still apply. */
12016 char krb5int_getspecific ();
12020 return krb5int_getspecific ();
12025 rm -f conftest.$ac_objext conftest$ac_exeext
12026 if { (ac_try="$ac_link"
12027 case "(($ac_try" in
12028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029 *) ac_try_echo=$ac_try;;
12031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12032 (eval "$ac_link") 2>conftest.er1
12034 grep -v '^ *+' conftest.er1 >conftest.err
12036 cat conftest.err >&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); } && {
12039 test -z "$ac_c_werror_flag" ||
12040 test ! -s conftest.err
12041 } && test -s conftest$ac_exeext &&
12042 $as_test_x conftest$ac_exeext; then
12043 ac_cv_lib_krb5support_krb5int_getspecific=yes
12045 echo "$as_me: failed program was:" >&5
12046 sed 's/^/| /' conftest.$ac_ext >&5
12048 ac_cv_lib_krb5support_krb5int_getspecific=no
12051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12052 conftest$ac_exeext conftest.$ac_ext
12053 LIBS=$ac_check_lib_save_LIBS
12055 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
12056 echo "${ECHO_T}$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
12057 if test $ac_cv_lib_krb5support_krb5int_getspecific = yes; then
12058 K5SUP=-lkrb5support K5SUPSTATIC=$gssapi_dir/libkrb5support.a
12063 { echo "$as_me:$LINENO: checking for gss_unwrap in -lgssapi_krb5" >&5
12064 echo $ECHO_N "checking for gss_unwrap in -lgssapi_krb5... $ECHO_C" >&6; }
12065 if test "${ac_cv_lib_gssapi_krb5_gss_unwrap+set}" = set; then
12066 echo $ECHO_N "(cached) $ECHO_C" >&6
12068 ac_check_lib_save_LIBS=$LIBS
12069 LIBS="-lgssapi_krb5 ${GSSAPIBASE_LIBS} -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP} ${LIB_SOCKET} $LIBS"
12070 cat >conftest.$ac_ext <<_ACEOF
12073 cat confdefs.h >>conftest.$ac_ext
12074 cat >>conftest.$ac_ext <<_ACEOF
12075 /* end confdefs.h. */
12077 /* Override any GCC internal prototype to avoid an error.
12078 Use char because int might match the return type of a GCC
12079 builtin and then its argument prototype would still apply. */
12083 char gss_unwrap ();
12087 return gss_unwrap ();
12092 rm -f conftest.$ac_objext conftest$ac_exeext
12093 if { (ac_try="$ac_link"
12094 case "(($ac_try" in
12095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12096 *) ac_try_echo=$ac_try;;
12098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12099 (eval "$ac_link") 2>conftest.er1
12101 grep -v '^ *+' conftest.er1 >conftest.err
12103 cat conftest.err >&5
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); } && {
12106 test -z "$ac_c_werror_flag" ||
12107 test ! -s conftest.err
12108 } && test -s conftest$ac_exeext &&
12109 $as_test_x conftest$ac_exeext; then
12110 ac_cv_lib_gssapi_krb5_gss_unwrap=yes
12112 echo "$as_me: failed program was:" >&5
12113 sed 's/^/| /' conftest.$ac_ext >&5
12115 ac_cv_lib_gssapi_krb5_gss_unwrap=no
12118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12119 conftest$ac_exeext conftest.$ac_ext
12120 LIBS=$ac_check_lib_save_LIBS
12122 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_unwrap" >&5
12123 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_unwrap" >&6; }
12124 if test $ac_cv_lib_gssapi_krb5_gss_unwrap = yes; then
12130 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
12135 # For Cybersafe one has to set a platform define in order to make compilation work
12136 if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
12138 cmu_saved_CPPFLAGS=$CPPFLAGS
12139 cmu_saved_GSSAPIBASE_LIBS=$GSSAPIBASE_LIBS
12140 # FIXME - Note that the libraries are in .../lib64 for 64bit kernels
12141 if test -d "${gssapi}/appsec-rt/lib"; then
12142 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -L${gssapi}/appsec-rt/lib"
12144 CPPFLAGS="$CPPFLAGS -D$platform"
12145 if test -d "${gssapi}/appsec-sdk/include"; then
12146 CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
12151 # Check for CyberSafe with two libraries first, than fall back to a single
12152 # library (older CyberSafe)
12154 unset ac_cv_lib_gss_csf_gss_acq_user
12155 { echo "$as_me:$LINENO: checking for csf_gss_acq_user in -lgss" >&5
12156 echo $ECHO_N "checking for csf_gss_acq_user in -lgss... $ECHO_C" >&6; }
12157 if test "${ac_cv_lib_gss_csf_gss_acq_user+set}" = set; then
12158 echo $ECHO_N "(cached) $ECHO_C" >&6
12160 ac_check_lib_save_LIBS=$LIBS
12161 LIBS="-lgss ${GSSAPIBASE_LIBS} -lgss -lcstbk5 $LIBS"
12162 cat >conftest.$ac_ext <<_ACEOF
12165 cat confdefs.h >>conftest.$ac_ext
12166 cat >>conftest.$ac_ext <<_ACEOF
12167 /* end confdefs.h. */
12169 /* Override any GCC internal prototype to avoid an error.
12170 Use char because int might match the return type of a GCC
12171 builtin and then its argument prototype would still apply. */
12175 char csf_gss_acq_user ();
12179 return csf_gss_acq_user ();
12184 rm -f conftest.$ac_objext conftest$ac_exeext
12185 if { (ac_try="$ac_link"
12186 case "(($ac_try" in
12187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12188 *) ac_try_echo=$ac_try;;
12190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12191 (eval "$ac_link") 2>conftest.er1
12193 grep -v '^ *+' conftest.er1 >conftest.err
12195 cat conftest.err >&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); } && {
12198 test -z "$ac_c_werror_flag" ||
12199 test ! -s conftest.err
12200 } && test -s conftest$ac_exeext &&
12201 $as_test_x conftest$ac_exeext; then
12202 ac_cv_lib_gss_csf_gss_acq_user=yes
12204 echo "$as_me: failed program was:" >&5
12205 sed 's/^/| /' conftest.$ac_ext >&5
12207 ac_cv_lib_gss_csf_gss_acq_user=no
12210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12211 conftest$ac_exeext conftest.$ac_ext
12212 LIBS=$ac_check_lib_save_LIBS
12214 { echo "$as_me:$LINENO: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
12215 echo "${ECHO_T}$ac_cv_lib_gss_csf_gss_acq_user" >&6; }
12216 if test $ac_cv_lib_gss_csf_gss_acq_user = yes; then
12217 gss_impl="cybersafe03"
12219 unset ac_cv_lib_gss_csf_gss_acq_user;
12220 { echo "$as_me:$LINENO: checking for csf_gss_acq_user in -lgss" >&5
12221 echo $ECHO_N "checking for csf_gss_acq_user in -lgss... $ECHO_C" >&6; }
12222 if test "${ac_cv_lib_gss_csf_gss_acq_user+set}" = set; then
12223 echo $ECHO_N "(cached) $ECHO_C" >&6
12225 ac_check_lib_save_LIBS=$LIBS
12226 LIBS="-lgss $GSSAPIBASE_LIBS -lgss $LIBS"
12227 cat >conftest.$ac_ext <<_ACEOF
12230 cat confdefs.h >>conftest.$ac_ext
12231 cat >>conftest.$ac_ext <<_ACEOF
12232 /* end confdefs.h. */
12234 /* Override any GCC internal prototype to avoid an error.
12235 Use char because int might match the return type of a GCC
12236 builtin and then its argument prototype would still apply. */
12240 char csf_gss_acq_user ();
12244 return csf_gss_acq_user ();
12249 rm -f conftest.$ac_objext conftest$ac_exeext
12250 if { (ac_try="$ac_link"
12251 case "(($ac_try" in
12252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12253 *) ac_try_echo=$ac_try;;
12255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12256 (eval "$ac_link") 2>conftest.er1
12258 grep -v '^ *+' conftest.er1 >conftest.err
12260 cat conftest.err >&5
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); } && {
12263 test -z "$ac_c_werror_flag" ||
12264 test ! -s conftest.err
12265 } && test -s conftest$ac_exeext &&
12266 $as_test_x conftest$ac_exeext; then
12267 ac_cv_lib_gss_csf_gss_acq_user=yes
12269 echo "$as_me: failed program was:" >&5
12270 sed 's/^/| /' conftest.$ac_ext >&5
12272 ac_cv_lib_gss_csf_gss_acq_user=no
12275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12276 conftest$ac_exeext conftest.$ac_ext
12277 LIBS=$ac_check_lib_save_LIBS
12279 { echo "$as_me:$LINENO: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
12280 echo "${ECHO_T}$ac_cv_lib_gss_csf_gss_acq_user" >&6; }
12281 if test $ac_cv_lib_gss_csf_gss_acq_user = yes; then
12282 gss_impl="cybersafe"
12290 if test "$gss_failed" = "1"; then
12291 # Restore variables
12292 GSSAPIBASE_LIBS=$cmu_saved_GSSAPIBASE_LIBS
12293 CPPFLAGS=$cmu_saved_CPPFLAGS
12295 if test "$gss_impl" != "auto"; then
12301 if test "$gss_impl" = "auto" -o "$gss_impl" = "seam"; then
12303 { echo "$as_me:$LINENO: checking for gss_unwrap in -lgss" >&5
12304 echo $ECHO_N "checking for gss_unwrap in -lgss... $ECHO_C" >&6; }
12305 if test "${ac_cv_lib_gss_gss_unwrap+set}" = set; then
12306 echo $ECHO_N "(cached) $ECHO_C" >&6
12308 ac_check_lib_save_LIBS=$LIBS
12309 LIBS="-lgss -lgss $LIBS"
12310 cat >conftest.$ac_ext <<_ACEOF
12313 cat confdefs.h >>conftest.$ac_ext
12314 cat >>conftest.$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12317 /* Override any GCC internal prototype to avoid an error.
12318 Use char because int might match the return type of a GCC
12319 builtin and then its argument prototype would still apply. */
12323 char gss_unwrap ();
12327 return gss_unwrap ();
12332 rm -f conftest.$ac_objext conftest$ac_exeext
12333 if { (ac_try="$ac_link"
12334 case "(($ac_try" in
12335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12336 *) ac_try_echo=$ac_try;;
12338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12339 (eval "$ac_link") 2>conftest.er1
12341 grep -v '^ *+' conftest.er1 >conftest.err
12343 cat conftest.err >&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); } && {
12346 test -z "$ac_c_werror_flag" ||
12347 test ! -s conftest.err
12348 } && test -s conftest$ac_exeext &&
12349 $as_test_x conftest$ac_exeext; then
12350 ac_cv_lib_gss_gss_unwrap=yes
12352 echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12355 ac_cv_lib_gss_gss_unwrap=no
12358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12359 conftest$ac_exeext conftest.$ac_ext
12360 LIBS=$ac_check_lib_save_LIBS
12362 { echo "$as_me:$LINENO: result: $ac_cv_lib_gss_gss_unwrap" >&5
12363 echo "${ECHO_T}$ac_cv_lib_gss_gss_unwrap" >&6; }
12364 if test $ac_cv_lib_gss_gss_unwrap = yes; then
12370 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
12375 if test "$gss_impl" = "mit"; then
12376 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP}"
12377 GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_LIBS $gssapi_dir/libgssapi_krb5.a $gssapi_dir/libkrb5.a $gssapi_dir/libk5crypto.a $gssapi_dir/libcom_err.a ${K5SUPSTATIC}"
12378 elif test "$gss_impl" = "heimdal"; then
12379 CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL"
12380 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err"
12381 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}"
12382 elif test "$gss_impl" = "cybersafe03"; then
12383 # Version of CyberSafe with two libraries
12384 CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
12385 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss -lcstbk5"
12386 # there is no static libgss for CyberSafe
12387 GSSAPIBASE_STATIC_LIBS=none
12388 elif test "$gss_impl" = "cybersafe"; then
12389 CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
12390 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss"
12391 # there is no static libgss for CyberSafe
12392 GSSAPIBASE_STATIC_LIBS=none
12393 elif test "$gss_impl" = "seam"; then
12394 GSSAPIBASE_LIBS=-lgss
12395 # there is no static libgss on Solaris 8 and up
12396 GSSAPIBASE_STATIC_LIBS=none
12397 elif test "$gss_impl" = "failed"; then
12400 GSSAPIBASE_STATIC_LIBS=
12401 { echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - specified library not found" >&5
12402 echo "$as_me: WARNING: Disabling GSSAPI - specified library not found" >&2;}
12406 GSSAPIBASE_STATIC_LIBS=
12407 { echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - no library" >&5
12408 echo "$as_me: WARNING: Disabling GSSAPI - no library" >&2;}
12413 # Cybersafe defines both GSS_C_NT_HOSTBASED_SERVICE and GSS_C_NT_USER_NAME
12414 # in gssapi\rfckrb5.h
12416 if test "$gssapi" != "no"; then
12417 if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
12418 cat >conftest.$ac_ext <<_ACEOF
12421 cat confdefs.h >>conftest.$ac_ext
12422 cat >>conftest.$ac_ext <<_ACEOF
12423 /* end confdefs.h. */
12424 #include <gssapi/gssapi.h>
12425 #ifdef GSS_C_NT_HOSTBASED_SERVICE
12426 hostbased_service_gss_nt_yes
12429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12430 $EGREP "hostbased_service_gss_nt_yes" >/dev/null 2>&1; then
12432 cat >>confdefs.h <<\_ACEOF
12433 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
12437 { echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5
12438 echo "$as_me: WARNING: Cybersafe define not found" >&2;}
12443 elif test "$ac_cv_header_gssapi_h" = "yes"; then
12444 cat >conftest.$ac_ext <<_ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h. */
12450 #include <gssapi.h>
12453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12454 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
12456 cat >>confdefs.h <<\_ACEOF
12457 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
12463 elif test "$ac_cv_header_gssapi_gssapi_h"; then
12464 cat >conftest.$ac_ext <<_ACEOF
12467 cat confdefs.h >>conftest.$ac_ext
12468 cat >>conftest.$ac_ext <<_ACEOF
12469 /* end confdefs.h. */
12470 #include <gssapi/gssapi.h>
12473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12474 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
12476 cat >>confdefs.h <<\_ACEOF
12477 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
12485 if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
12486 cat >conftest.$ac_ext <<_ACEOF
12489 cat confdefs.h >>conftest.$ac_ext
12490 cat >>conftest.$ac_ext <<_ACEOF
12491 /* end confdefs.h. */
12492 #include <gssapi/gssapi.h>
12493 #ifdef GSS_C_NT_USER_NAME
12494 user_name_yes_gss_nt
12497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12498 $EGREP "user_name_yes_gss_nt" >/dev/null 2>&1; then
12500 cat >>confdefs.h <<\_ACEOF
12501 #define HAVE_GSS_C_NT_USER_NAME
12505 { echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5
12506 echo "$as_me: WARNING: Cybersafe define not found" >&2;}
12510 elif test "$ac_cv_header_gssapi_h" = "yes"; then
12511 cat >conftest.$ac_ext <<_ACEOF
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h. */
12517 #include <gssapi.h>
12520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12521 $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then
12523 cat >>confdefs.h <<\_ACEOF
12524 #define HAVE_GSS_C_NT_USER_NAME
12530 elif test "$ac_cv_header_gssapi_gssapi_h"; then
12531 cat >conftest.$ac_ext <<_ACEOF
12534 cat confdefs.h >>conftest.$ac_ext
12535 cat >>conftest.$ac_ext <<_ACEOF
12536 /* end confdefs.h. */
12537 #include <gssapi/gssapi.h>
12540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12541 $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then
12543 cat >>confdefs.h <<\_ACEOF
12544 #define HAVE_GSS_C_NT_USER_NAME
12554 { echo "$as_me:$LINENO: checking GSSAPI" >&5
12555 echo $ECHO_N "checking GSSAPI... $ECHO_C" >&6; }
12556 if test "$gssapi" != no; then
12557 { echo "$as_me:$LINENO: result: with implementation ${gss_impl}" >&5
12558 echo "${ECHO_T}with implementation ${gss_impl}" >&6; }
12559 { echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
12560 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6; }
12561 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
12562 echo $ECHO_N "(cached) $ECHO_C" >&6
12564 ac_check_lib_save_LIBS=$LIBS
12565 LIBS="-lresolv $LIBS"
12566 cat >conftest.$ac_ext <<_ACEOF
12569 cat confdefs.h >>conftest.$ac_ext
12570 cat >>conftest.$ac_ext <<_ACEOF
12571 /* end confdefs.h. */
12573 /* Override any GCC internal prototype to avoid an error.
12574 Use char because int might match the return type of a GCC
12575 builtin and then its argument prototype would still apply. */
12579 char res_search ();
12583 return res_search ();
12588 rm -f conftest.$ac_objext conftest$ac_exeext
12589 if { (ac_try="$ac_link"
12590 case "(($ac_try" in
12591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592 *) ac_try_echo=$ac_try;;
12594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595 (eval "$ac_link") 2>conftest.er1
12597 grep -v '^ *+' conftest.er1 >conftest.err
12599 cat conftest.err >&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); } && {
12602 test -z "$ac_c_werror_flag" ||
12603 test ! -s conftest.err
12604 } && test -s conftest$ac_exeext &&
12605 $as_test_x conftest$ac_exeext; then
12606 ac_cv_lib_resolv_res_search=yes
12608 echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12611 ac_cv_lib_resolv_res_search=no
12614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12615 conftest$ac_exeext conftest.$ac_ext
12616 LIBS=$ac_check_lib_save_LIBS
12618 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
12619 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6; }
12620 if test $ac_cv_lib_resolv_res_search = yes; then
12621 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lresolv"
12624 SASL_MECHS="$SASL_MECHS libgs2.la libgssapiv2.la"
12625 SASL_STATIC_OBJS="$SASL_STATIC_OBJS gs2.o gssapi.o"
12626 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/gs2.c ../plugins/gssapi.c"
12628 cmu_save_LIBS="$LIBS"
12629 LIBS="$LIBS $GSSAPIBASE_LIBS"
12631 for ac_func in gsskrb5_register_acceptor_identity
12633 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12634 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12636 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12637 echo $ECHO_N "(cached) $ECHO_C" >&6
12639 cat >conftest.$ac_ext <<_ACEOF
12642 cat confdefs.h >>conftest.$ac_ext
12643 cat >>conftest.$ac_ext <<_ACEOF
12644 /* end confdefs.h. */
12645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12647 #define $ac_func innocuous_$ac_func
12649 /* System header to define __stub macros and hopefully few prototypes,
12650 which can conflict with char $ac_func (); below.
12651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12652 <limits.h> exists even on freestanding compilers. */
12655 # include <limits.h>
12657 # include <assert.h>
12662 /* Override any GCC internal prototype to avoid an error.
12663 Use char because int might match the return type of a GCC
12664 builtin and then its argument prototype would still apply. */
12669 /* The GNU C library defines this for functions which it implements
12670 to always fail with ENOSYS. Some functions are actually named
12671 something starting with __ and the normal name is an alias. */
12672 #if defined __stub_$ac_func || defined __stub___$ac_func
12679 return $ac_func ();
12684 rm -f conftest.$ac_objext conftest$ac_exeext
12685 if { (ac_try="$ac_link"
12686 case "(($ac_try" in
12687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12688 *) ac_try_echo=$ac_try;;
12690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12691 (eval "$ac_link") 2>conftest.er1
12693 grep -v '^ *+' conftest.er1 >conftest.err
12695 cat conftest.err >&5
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); } && {
12698 test -z "$ac_c_werror_flag" ||
12699 test ! -s conftest.err
12700 } && test -s conftest$ac_exeext &&
12701 $as_test_x conftest$ac_exeext; then
12702 eval "$as_ac_var=yes"
12704 echo "$as_me: failed program was:" >&5
12705 sed 's/^/| /' conftest.$ac_ext >&5
12707 eval "$as_ac_var=no"
12710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12711 conftest$ac_exeext conftest.$ac_ext
12713 ac_res=`eval echo '${'$as_ac_var'}'`
12714 { echo "$as_me:$LINENO: result: $ac_res" >&5
12715 echo "${ECHO_T}$ac_res" >&6; }
12716 if test `eval echo '${'$as_ac_var'}'` = yes; then
12717 cat >>confdefs.h <<_ACEOF
12718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12724 LIBS="$cmu_save_LIBS"
12726 { echo "$as_me:$LINENO: result: disabled" >&5
12727 echo "${ECHO_T}disabled" >&6; }
12733 if test "$gssapi" != "no"; then
12735 cat >>confdefs.h <<\_ACEOF
12736 #define STATIC_GSSAPIV2
12740 if test "$gss_impl" = "mit"; then
12741 mutex_default="yes"
12743 { echo "$as_me:$LINENO: checking to use mutexes aroung GSS calls" >&5
12744 echo $ECHO_N "checking to use mutexes aroung GSS calls... $ECHO_C" >&6; }
12745 # Check whether --enable-gss_mutexes was given.
12746 if test "${enable_gss_mutexes+set}" = set; then
12747 enableval=$enable_gss_mutexes; use_gss_mutexes=$enableval
12749 use_gss_mutexes=$mutex_default
12752 if test $use_gss_mutexes = "yes"; then
12754 cat >>confdefs.h <<\_ACEOF
12755 #define GSS_USE_MUTEXES
12759 { echo "$as_me:$LINENO: result: $use_gss_mutexes" >&5
12760 echo "${ECHO_T}$use_gss_mutexes" >&6; }
12766 # Check whether --enable-plain was given.
12767 if test "${enable_plain+set}" = set; then
12768 enableval=$enable_plain; plain=$enableval
12775 if test "$plain" != no; then
12776 if test "$cmu_have_crypt" = yes; then
12777 PLAIN_LIBS=$LIB_CRYPT
12782 { echo "$as_me:$LINENO: checking PLAIN" >&5
12783 echo $ECHO_N "checking PLAIN... $ECHO_C" >&6; }
12784 if test "$plain" != no; then
12785 { echo "$as_me:$LINENO: result: enabled" >&5
12786 echo "${ECHO_T}enabled" >&6; }
12787 SASL_MECHS="$SASL_MECHS libplain.la"
12788 if test "$enable_static" = yes; then
12789 SASL_STATIC_OBJS="$SASL_STATIC_OBJS plain.o"
12790 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/plain.c"
12792 cat >>confdefs.h <<\_ACEOF
12793 #define STATIC_PLAIN
12798 { echo "$as_me:$LINENO: result: disabled" >&5
12799 echo "${ECHO_T}disabled" >&6; }
12803 # Check whether --enable-anon was given.
12804 if test "${enable_anon+set}" = set; then
12805 enableval=$enable_anon; anon=$enableval
12811 { echo "$as_me:$LINENO: checking ANONYMOUS" >&5
12812 echo $ECHO_N "checking ANONYMOUS... $ECHO_C" >&6; }
12813 if test "$anon" != no; then
12814 { echo "$as_me:$LINENO: result: enabled" >&5
12815 echo "${ECHO_T}enabled" >&6; }
12816 SASL_MECHS="$SASL_MECHS libanonymous.la"
12817 if test "$enable_static" = yes; then
12818 SASL_STATIC_OBJS="$SASL_STATIC_OBJS anonymous.o"
12819 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/anonymous.c"
12821 cat >>confdefs.h <<\_ACEOF
12822 #define STATIC_ANONYMOUS
12827 { echo "$as_me:$LINENO: result: disabled" >&5
12828 echo "${ECHO_T}disabled" >&6; }
12831 # Check whether --enable-login was given.
12832 if test "${enable_login+set}" = set; then
12833 enableval=$enable_login; login=$enableval
12839 { echo "$as_me:$LINENO: checking LOGIN" >&5
12840 echo $ECHO_N "checking LOGIN... $ECHO_C" >&6; }
12841 if test "$login" != no; then
12842 { echo "$as_me:$LINENO: result: enabled" >&5
12843 echo "${ECHO_T}enabled" >&6; }
12844 SASL_MECHS="$SASL_MECHS liblogin.la"
12845 if test "$enable_static" = yes; then
12846 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/login.c"
12847 SASL_STATIC_OBJS="$SASL_STATIC_OBJS login.o"
12849 cat >>confdefs.h <<\_ACEOF
12850 #define STATIC_LOGIN
12855 { echo "$as_me:$LINENO: result: disabled" >&5
12856 echo "${ECHO_T}disabled" >&6; }
12859 # Check whether --enable-ntlm was given.
12860 if test "${enable_ntlm+set}" = set; then
12861 enableval=$enable_ntlm; ntlm=$enableval
12867 if test "$with_openssl" = no; then
12868 { echo "$as_me:$LINENO: WARNING: OpenSSL not found -- NTLM will be disabled" >&5
12869 echo "$as_me: WARNING: OpenSSL not found -- NTLM will be disabled" >&2;}
12873 { echo "$as_me:$LINENO: checking NTLM" >&5
12874 echo $ECHO_N "checking NTLM... $ECHO_C" >&6; }
12875 if test "$ntlm" != no; then
12876 { echo "$as_me:$LINENO: result: enabled" >&5
12877 echo "${ECHO_T}enabled" >&6; }
12878 NTLM_LIBS="-lcrypto $LIB_RSAREF"
12881 SASL_MECHS="$SASL_MECHS libntlm.la"
12882 if test "$enable_static" = yes; then
12883 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/ntlm.c"
12884 SASL_STATIC_OBJS="$SASL_STATIC_OBJS ntlm.o"
12886 cat >>confdefs.h <<\_ACEOF
12887 #define STATIC_NTLM
12892 { echo "$as_me:$LINENO: result: disabled" >&5
12893 echo "${ECHO_T}disabled" >&6; }
12896 # Check whether --enable-passdss was given.
12897 if test "${enable_passdss+set}" = set; then
12898 enableval=$enable_passdss; passdss=$enableval
12904 if test "$with_openssl" = no; then
12905 { echo "$as_me:$LINENO: WARNING: OpenSSL not found -- PASSDSS will be disabled" >&5
12906 echo "$as_me: WARNING: OpenSSL not found -- PASSDSS will be disabled" >&2;}
12910 { echo "$as_me:$LINENO: checking PASSDSS" >&5
12911 echo $ECHO_N "checking PASSDSS... $ECHO_C" >&6; }
12912 if test "$passdss" != no; then
12913 { echo "$as_me:$LINENO: result: enabled" >&5
12914 echo "${ECHO_T}enabled" >&6; }
12915 PASSDSS_LIBS="-lcrypto $LIB_RSAREF"
12918 SASL_MECHS="$SASL_MECHS libpassdss.la"
12919 if test "$enable_static" = yes; then
12920 SASL_STATIC_OBJS="$SASL_STATIC_OBJS passdss.o"
12921 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/passdss.c"
12923 cat >>confdefs.h <<\_ACEOF
12924 #define STATIC_PASSDSS
12929 { echo "$as_me:$LINENO: result: disabled" >&5
12930 echo "${ECHO_T}disabled" >&6; }
12934 # make the option show up so people don't whine that it is only in the
12935 # saslauthd configure script --help
12937 # Check whether --with-ldap was given.
12938 if test "${with_ldap+set}" = set; then
12939 withval=$with_ldap;
12947 # Check whether --enable-sql was given.
12948 if test "${enable_sql+set}" = set; then
12949 enableval=$enable_sql; sql=$enableval
12955 { echo "$as_me:$LINENO: checking SQL" >&5
12956 echo $ECHO_N "checking SQL... $ECHO_C" >&6; }
12957 if test "$sql" != no; then
12958 { echo "$as_me:$LINENO: result: enabled" >&5
12959 echo "${ECHO_T}enabled" >&6; }
12960 SASL_MECHS="$SASL_MECHS libsql.la"
12961 if test "$enable_static" = yes; then
12962 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/sql.c"
12963 SASL_STATIC_OBJS="$SASL_STATIC_OBJS sql.o"
12965 cat >>confdefs.h <<\_ACEOF
12971 { echo "$as_me:$LINENO: result: disabled" >&5
12972 echo "${ECHO_T}disabled" >&6; }
12976 # Check whether --with-mysql was given.
12977 if test "${with_mysql+set}" = set; then
12978 withval=$with_mysql; with_mysql=$withval
12984 # find location of library
12985 # presuming if one given then correct
12986 if test "${with_mysql}" = "yes"; then
12987 with_mysql=notfound
12988 for mysqlloc in lib/mysql lib mysql/lib
12990 if test -f ${prefix}/${mysqlloc}/libmysqlclient.a; then
12991 with_mysql="${prefix}"
12993 elif test -f /usr/local/${mysqlloc}/libmysqlclient.a; then
12994 with_mysql="/usr/local"
12996 elif test -f /usr/${mysqlloc}/libmysqlclient.a; then
13005 case "$with_mysql" in
13007 notfound) { echo "$as_me:$LINENO: WARNING: MySQL Library not found" >&5
13008 echo "$as_me: WARNING: MySQL Library not found" >&2;}; true;;
13010 if test -d ${with_mysql}/lib/mysql; then
13012 # this is CMU ADD LIBPATH TO
13013 if test "$andrew_runpath_switch" = "none" ; then
13014 LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL}"
13016 LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/lib/mysql"
13019 elif test -d ${with_mysql}/mysql/lib; then
13021 # this is CMU ADD LIBPATH TO
13022 if test "$andrew_runpath_switch" = "none" ; then
13023 LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL}"
13025 LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/mysql/lib"
13028 elif test -d ${with_mysql}/lib; then
13030 # this is CMU ADD LIBPATH TO
13031 if test "$andrew_runpath_switch" = "none" ; then
13032 LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL}"
13034 LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/lib"
13039 # this is CMU ADD LIBPATH TO
13040 if test "$andrew_runpath_switch" = "none" ; then
13041 LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL}"
13043 LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}"
13048 LIB_MYSQL_DIR=$LIB_MYSQL
13049 LIB_MYSQL="$LIB_MYSQL -lmysqlclient"
13051 if test -d ${with_mysql}/include/mysql; then
13052 CPPFLAGS="${CPPFLAGS} -I${with_mysql}/include/mysql"
13053 elif test -d ${with_mysql}/mysql/include; then
13054 CPPFLAGS="${CPPFLAGS} -I${with_mysql}/mysql/include"
13055 elif test -d ${with_mysql}/include; then
13056 CPPFLAGS="${CPPFLAGS} -I${with_mysql}/include"
13058 CPPFLAGS="${CPPFLAGS} -I${with_mysql}"
13061 save_LDFLAGS=$LDFLAGS
13062 LDFLAGS="$LDFLAGS $LIB_MYSQL_DIR"
13063 { echo "$as_me:$LINENO: checking for mysql_select_db in -lmysqlclient" >&5
13064 echo $ECHO_N "checking for mysql_select_db in -lmysqlclient... $ECHO_C" >&6; }
13065 if test "${ac_cv_lib_mysqlclient_mysql_select_db+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13068 ac_check_lib_save_LIBS=$LIBS
13069 LIBS="-lmysqlclient $LIBS"
13070 cat >conftest.$ac_ext <<_ACEOF
13073 cat confdefs.h >>conftest.$ac_ext
13074 cat >>conftest.$ac_ext <<_ACEOF
13075 /* end confdefs.h. */
13077 /* Override any GCC internal prototype to avoid an error.
13078 Use char because int might match the return type of a GCC
13079 builtin and then its argument prototype would still apply. */
13083 char mysql_select_db ();
13087 return mysql_select_db ();
13092 rm -f conftest.$ac_objext conftest$ac_exeext
13093 if { (ac_try="$ac_link"
13094 case "(($ac_try" in
13095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096 *) ac_try_echo=$ac_try;;
13098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13099 (eval "$ac_link") 2>conftest.er1
13101 grep -v '^ *+' conftest.er1 >conftest.err
13103 cat conftest.err >&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); } && {
13106 test -z "$ac_c_werror_flag" ||
13107 test ! -s conftest.err
13108 } && test -s conftest$ac_exeext &&
13109 $as_test_x conftest$ac_exeext; then
13110 ac_cv_lib_mysqlclient_mysql_select_db=yes
13112 echo "$as_me: failed program was:" >&5
13113 sed 's/^/| /' conftest.$ac_ext >&5
13115 ac_cv_lib_mysqlclient_mysql_select_db=no
13118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13119 conftest$ac_exeext conftest.$ac_ext
13120 LIBS=$ac_check_lib_save_LIBS
13122 { echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_select_db" >&5
13123 echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_select_db" >&6; }
13124 if test $ac_cv_lib_mysqlclient_mysql_select_db = yes; then
13126 cat >>confdefs.h <<\_ACEOF
13131 { echo "$as_me:$LINENO: WARNING: MySQL library mysqlclient does not work" >&5
13132 echo "$as_me: WARNING: MySQL library mysqlclient does not work" >&2;}
13136 LDFLAGS=$save_LDFLAGS;;
13142 # Check whether --with-pgsql was given.
13143 if test "${with_pgsql+set}" = set; then
13144 withval=$with_pgsql; with_pgsql=$withval
13150 # find location of library
13151 # presuing if one given then correct
13152 if test "${with_pgsql}" = "yes"; then
13153 with_pgsql=notfound
13154 for pgsqlloc in lib/pgsql lib pgsql/lib
13156 if test -f ${prefix}/${pgsqlloc}/libpq.a; then
13157 with_pgsql="${prefix}"
13159 elif test -f /usr/local/${pgsqlloc}/libpq.a; then
13160 with_pgsql="/usr/local"
13162 elif test -f /usr/${pgsqlloc}/libpq.a; then
13171 case "$with_pgsql" in
13173 notfound) { echo "$as_me:$LINENO: WARNING: PostgreSQL Library not found" >&5
13174 echo "$as_me: WARNING: PostgreSQL Library not found" >&2;}; true;;
13176 if test -d ${with_pgsql}/lib/pgsql; then
13178 # this is CMU ADD LIBPATH TO
13179 if test "$andrew_runpath_switch" = "none" ; then
13180 LIB_PGSQL="-L${with_pgsql}/lib/pgsql ${LIB_PGSQL}"
13182 LIB_PGSQL="-L${with_pgsql}/lib/pgsql ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/lib/pgsql"
13185 elif test -d ${with_pgsql}/pgsql/lib; then
13187 # this is CMU ADD LIBPATH TO
13188 if test "$andrew_runpath_switch" = "none" ; then
13189 LIB_PGSQL="-L${with_pgsql}/pgsql/lib ${LIB_PGSQL}"
13191 LIB_PGSQL="-L${with_pgsql}/pgsql/lib ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/pgsql/lib"
13194 elif test -d ${with_pgsql}/lib; then
13196 # this is CMU ADD LIBPATH TO
13197 if test "$andrew_runpath_switch" = "none" ; then
13198 LIB_PGSQL="-L${with_pgsql}/lib ${LIB_PGSQL}"
13200 LIB_PGSQL="-L${with_pgsql}/lib ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/lib"
13205 # this is CMU ADD LIBPATH TO
13206 if test "$andrew_runpath_switch" = "none" ; then
13207 LIB_PGSQL="-L${with_pgsql} ${LIB_PGSQL}"
13209 LIB_PGSQL="-L${with_pgsql} ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}"
13214 LIB_PGSQL_DIR=$LIB_PGSQL
13215 LIB_PGSQL="$LIB_PGSQL -lpq"
13217 if test -d ${with_pgsql}/include/pgsql; then
13218 CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include/pgsql"
13219 elif test -d ${with_pgsql}/pgsql/include; then
13220 CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/pgsql/include"
13221 elif test -d ${with_pgsql}/include; then
13222 CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include"
13224 CPPFLAGS="${CPPFLAGS} -I${with_pgsql}"
13228 save_LDFLAGS=$LDFLAGS
13229 LDFLAGS="$LDFLAGS $LIB_PGSQL_DIR"
13230 { echo "$as_me:$LINENO: checking for PQsetdbLogin in -lpq" >&5
13231 echo $ECHO_N "checking for PQsetdbLogin in -lpq... $ECHO_C" >&6; }
13232 if test "${ac_cv_lib_pq_PQsetdbLogin+set}" = set; then
13233 echo $ECHO_N "(cached) $ECHO_C" >&6
13235 ac_check_lib_save_LIBS=$LIBS
13237 cat >conftest.$ac_ext <<_ACEOF
13240 cat confdefs.h >>conftest.$ac_ext
13241 cat >>conftest.$ac_ext <<_ACEOF
13242 /* end confdefs.h. */
13244 /* Override any GCC internal prototype to avoid an error.
13245 Use char because int might match the return type of a GCC
13246 builtin and then its argument prototype would still apply. */
13250 char PQsetdbLogin ();
13254 return PQsetdbLogin ();
13259 rm -f conftest.$ac_objext conftest$ac_exeext
13260 if { (ac_try="$ac_link"
13261 case "(($ac_try" in
13262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263 *) ac_try_echo=$ac_try;;
13265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13266 (eval "$ac_link") 2>conftest.er1
13268 grep -v '^ *+' conftest.er1 >conftest.err
13270 cat conftest.err >&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } && {
13273 test -z "$ac_c_werror_flag" ||
13274 test ! -s conftest.err
13275 } && test -s conftest$ac_exeext &&
13276 $as_test_x conftest$ac_exeext; then
13277 ac_cv_lib_pq_PQsetdbLogin=yes
13279 echo "$as_me: failed program was:" >&5
13280 sed 's/^/| /' conftest.$ac_ext >&5
13282 ac_cv_lib_pq_PQsetdbLogin=no
13285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13286 conftest$ac_exeext conftest.$ac_ext
13287 LIBS=$ac_check_lib_save_LIBS
13289 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQsetdbLogin" >&5
13290 echo "${ECHO_T}$ac_cv_lib_pq_PQsetdbLogin" >&6; }
13291 if test $ac_cv_lib_pq_PQsetdbLogin = yes; then
13293 cat >>confdefs.h <<\_ACEOF
13298 { echo "$as_me:$LINENO: WARNING: PostgreSQL Library pq does not work" >&5
13299 echo "$as_me: WARNING: PostgreSQL Library pq does not work" >&2;}
13303 LDFLAGS=$save_LDFLAGS;;
13309 # Check whether --with-sqlite was given.
13310 if test "${with_sqlite+set}" = set; then
13311 withval=$with_sqlite; with_sqlite=$withval
13317 # find location of library
13318 # presuing if one given then correct
13319 if test "${with_sqlite}" = "yes"; then
13320 with_sqlite=notfound
13321 for sqliteloc in lib
13323 if test -f ${prefix}/${sqliteloc}/libsqlite.a; then
13324 with_sqlite="${prefix}"
13326 elif test -f /usr/local/${sqliteloc}/libsqlite.a; then
13327 with_sqlite="/usr/local"
13329 elif test -f /usr/${sqliteloc}/libsqlite.a; then
13338 case "$with_sqlite" in
13340 notfound) { echo "$as_me:$LINENO: WARNING: SQLite Library not found" >&5
13341 echo "$as_me: WARNING: SQLite Library not found" >&2;}; true;;
13343 if test -d ${with_sqlite}/lib; then
13344 LIB_SQLITE="-L${with_sqlite}/lib -R${with_sqlite}/lib"
13346 LIB_SQLITE="-L${with_sqlite} -R${with_sqlite}"
13349 LIB_SQLITE_DIR=$LIB_SQLITE
13350 LIB_SQLITE="$LIB_SQLITE -lsqlite"
13352 if test -d ${with_sqlite}/include; then
13353 CPPFLAGS="${CPPFLAGS} -I${with_sqlite}/include"
13355 CPPFLAGS="${CPPFLAGS} -I${with_sqlite}"
13357 { echo "$as_me:$LINENO: checking for sqlite_open in -lsqlite" >&5
13358 echo $ECHO_N "checking for sqlite_open in -lsqlite... $ECHO_C" >&6; }
13359 if test "${ac_cv_lib_sqlite_sqlite_open+set}" = set; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
13362 ac_check_lib_save_LIBS=$LIBS
13363 LIBS="-lsqlite $LIB_SQLITE_DIR $LIBS"
13364 cat >conftest.$ac_ext <<_ACEOF
13367 cat confdefs.h >>conftest.$ac_ext
13368 cat >>conftest.$ac_ext <<_ACEOF
13369 /* end confdefs.h. */
13371 /* Override any GCC internal prototype to avoid an error.
13372 Use char because int might match the return type of a GCC
13373 builtin and then its argument prototype would still apply. */
13377 char sqlite_open ();
13381 return sqlite_open ();
13386 rm -f conftest.$ac_objext conftest$ac_exeext
13387 if { (ac_try="$ac_link"
13388 case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393 (eval "$ac_link") 2>conftest.er1
13395 grep -v '^ *+' conftest.er1 >conftest.err
13397 cat conftest.err >&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); } && {
13400 test -z "$ac_c_werror_flag" ||
13401 test ! -s conftest.err
13402 } && test -s conftest$ac_exeext &&
13403 $as_test_x conftest$ac_exeext; then
13404 ac_cv_lib_sqlite_sqlite_open=yes
13406 echo "$as_me: failed program was:" >&5
13407 sed 's/^/| /' conftest.$ac_ext >&5
13409 ac_cv_lib_sqlite_sqlite_open=no
13412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13413 conftest$ac_exeext conftest.$ac_ext
13414 LIBS=$ac_check_lib_save_LIBS
13416 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_open" >&5
13417 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_open" >&6; }
13418 if test $ac_cv_lib_sqlite_sqlite_open = yes; then
13420 cat >>confdefs.h <<\_ACEOF
13421 #define HAVE_SQLITE
13425 { echo "$as_me:$LINENO: WARNING: SQLite Library sqlite does not work" >&5
13426 echo "$as_me: WARNING: SQLite Library sqlite does not work" >&2;}
13434 if test "$sql" = yes -a "$with_pgsql" = no -a "$with_mysql" = no -a "$with_sqlite" = no; then
13435 { { echo "$as_me:$LINENO: error: --enable-sql chosen but neither Postgres nor MySQL nor SQLite found" >&5
13436 echo "$as_me: error: --enable-sql chosen but neither Postgres nor MySQL nor SQLite found" >&2;}
13437 { (exit 1); exit 1; }; }
13440 if test "$enable_shared" = yes; then
13442 cat >>confdefs.h <<\_ACEOF
13448 # Check whether --enable-ldapdb was given.
13449 if test "${enable_ldapdb+set}" = set; then
13450 enableval=$enable_ldapdb; ldapdb=$enableval
13455 { echo "$as_me:$LINENO: checking LDAPDB" >&5
13456 echo $ECHO_N "checking LDAPDB... $ECHO_C" >&6; }
13457 if test "$ldapdb" != no; then
13458 { echo "$as_me:$LINENO: result: enabled" >&5
13459 echo "${ECHO_T}enabled" >&6; }
13461 if test "$with_ldap" = no; then
13462 { { echo "$as_me:$LINENO: error: Cannot enable LDAPDB plugin: You need to specify --with-ldap" >&5
13463 echo "$as_me: error: Cannot enable LDAPDB plugin: You need to specify --with-ldap" >&2;}
13464 { (exit 1); exit 1; }; }
13467 save_CPPFLAGS=$CPPFLAGS
13468 save_LDFLAGS=$LDFLAGS
13470 if test -d $with_ldap; then
13471 CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
13473 # this is CMU ADD LIBPATH
13474 if test "$andrew_runpath_switch" = "none" ; then
13475 LDFLAGS="-L${with_ldap}/lib ${LDFLAGS}"
13477 LDFLAGS="-L${with_ldap}/lib $andrew_runpath_switch${with_ldap}/lib ${LDFLAGS}"
13484 for ac_header in ldap.h lber.h
13486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13491 echo $ECHO_N "(cached) $ECHO_C" >&6
13493 ac_res=`eval echo '${'$as_ac_Header'}'`
13494 { echo "$as_me:$LINENO: result: $ac_res" >&5
13495 echo "${ECHO_T}$ac_res" >&6; }
13497 # Is the header compilable?
13498 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13500 cat >conftest.$ac_ext <<_ACEOF
13503 cat confdefs.h >>conftest.$ac_ext
13504 cat >>conftest.$ac_ext <<_ACEOF
13505 /* end confdefs.h. */
13506 $ac_includes_default
13507 #include <$ac_header>
13509 rm -f conftest.$ac_objext
13510 if { (ac_try="$ac_compile"
13511 case "(($ac_try" in
13512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13513 *) ac_try_echo=$ac_try;;
13515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13516 (eval "$ac_compile") 2>conftest.er1
13518 grep -v '^ *+' conftest.er1 >conftest.err
13520 cat conftest.err >&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); } && {
13523 test -z "$ac_c_werror_flag" ||
13524 test ! -s conftest.err
13525 } && test -s conftest.$ac_objext; then
13526 ac_header_compiler=yes
13528 echo "$as_me: failed program was:" >&5
13529 sed 's/^/| /' conftest.$ac_ext >&5
13531 ac_header_compiler=no
13534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13535 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13536 echo "${ECHO_T}$ac_header_compiler" >&6; }
13538 # Is the header present?
13539 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13541 cat >conftest.$ac_ext <<_ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h. */
13547 #include <$ac_header>
13549 if { (ac_try="$ac_cpp conftest.$ac_ext"
13550 case "(($ac_try" in
13551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13552 *) ac_try_echo=$ac_try;;
13554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13557 grep -v '^ *+' conftest.er1 >conftest.err
13559 cat conftest.err >&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); } >/dev/null && {
13562 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13563 test ! -s conftest.err
13565 ac_header_preproc=yes
13567 echo "$as_me: failed program was:" >&5
13568 sed 's/^/| /' conftest.$ac_ext >&5
13570 ac_header_preproc=no
13573 rm -f conftest.err conftest.$ac_ext
13574 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13575 echo "${ECHO_T}$ac_header_preproc" >&6; }
13577 # So? What about this header?
13578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13580 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13581 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13583 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13584 ac_header_preproc=yes
13587 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13588 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13589 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13590 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13591 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13592 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13593 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13594 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13596 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13597 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13598 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13605 echo $ECHO_N "(cached) $ECHO_C" >&6
13607 eval "$as_ac_Header=\$ac_header_preproc"
13609 ac_res=`eval echo '${'$as_ac_Header'}'`
13610 { echo "$as_me:$LINENO: result: $ac_res" >&5
13611 echo "${ECHO_T}$ac_res" >&6; }
13614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13615 cat >>confdefs.h <<_ACEOF
13616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13624 if test $ac_cv_header_ldap_h = yes -a $ac_cv_header_lber_h = yes; then
13625 { echo "$as_me:$LINENO: checking OpenLDAP api" >&5
13626 echo $ECHO_N "checking OpenLDAP api... $ECHO_C" >&6; }
13627 if test "${cmu_cv_openldap_api+set}" = set; then
13628 echo $ECHO_N "(cached) $ECHO_C" >&6
13631 cat >conftest.$ac_ext <<_ACEOF
13634 cat confdefs.h >>conftest.$ac_ext
13635 cat >>conftest.$ac_ext <<_ACEOF
13636 /* end confdefs.h. */
13640 #ifdef LDAP_API_FEATURE_X_OPENLDAP
13641 char *__openldap_api = LDAP_API_FEATURE_X_OPENLDAP;
13645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13646 $EGREP "__openldap_api" >/dev/null 2>&1; then
13647 cmu_cv_openldap_api=yes
13649 cmu_cv_openldap_api=no
13654 { echo "$as_me:$LINENO: result: $cmu_cv_openldap_api" >&5
13655 echo "${ECHO_T}$cmu_cv_openldap_api" >&6; }
13658 if test "$cmu_cv_openldap_api" = yes; then
13659 { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap" >&5
13660 echo $ECHO_N "checking for ldap_initialize in -lldap... $ECHO_C" >&6; }
13661 if test "${ac_cv_lib_ldap_ldap_initialize+set}" = set; then
13662 echo $ECHO_N "(cached) $ECHO_C" >&6
13664 ac_check_lib_save_LIBS=$LIBS
13665 LIBS="-lldap -llber $LIBS"
13666 cat >conftest.$ac_ext <<_ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h. */
13673 /* Override any GCC internal prototype to avoid an error.
13674 Use char because int might match the return type of a GCC
13675 builtin and then its argument prototype would still apply. */
13679 char ldap_initialize ();
13683 return ldap_initialize ();
13688 rm -f conftest.$ac_objext conftest$ac_exeext
13689 if { (ac_try="$ac_link"
13690 case "(($ac_try" in
13691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13692 *) ac_try_echo=$ac_try;;
13694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13695 (eval "$ac_link") 2>conftest.er1
13697 grep -v '^ *+' conftest.er1 >conftest.err
13699 cat conftest.err >&5
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); } && {
13702 test -z "$ac_c_werror_flag" ||
13703 test ! -s conftest.err
13704 } && test -s conftest$ac_exeext &&
13705 $as_test_x conftest$ac_exeext; then
13706 ac_cv_lib_ldap_ldap_initialize=yes
13708 echo "$as_me: failed program was:" >&5
13709 sed 's/^/| /' conftest.$ac_ext >&5
13711 ac_cv_lib_ldap_ldap_initialize=no
13714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13715 conftest$ac_exeext conftest.$ac_ext
13716 LIBS=$ac_check_lib_save_LIBS
13718 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_initialize" >&5
13719 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_initialize" >&6; }
13720 if test $ac_cv_lib_ldap_ldap_initialize = yes; then
13721 cmu_link_openldap="-lldap -llber"
13723 cmu_link_openldap=no
13729 if test "$cmu_cv_openldap_api" = no -o "$cmu_link_openldap" = no; then
13730 { { echo "$as_me:$LINENO: error: Cannot enable LDAPDB plugin: Could not locate OpenLDAP" >&5
13731 echo "$as_me: error: Cannot enable LDAPDB plugin: Could not locate OpenLDAP" >&2;}
13732 { (exit 1); exit 1; }; }
13734 { echo "$as_me:$LINENO: checking OpenLDAP version" >&5
13735 echo $ECHO_N "checking OpenLDAP version... $ECHO_C" >&6; }
13736 if test "${cmu_cv_openldap_compat+set}" = set; then
13737 echo $ECHO_N "(cached) $ECHO_C" >&6
13740 cat >conftest.$ac_ext <<_ACEOF
13743 cat confdefs.h >>conftest.$ac_ext
13744 cat >>conftest.$ac_ext <<_ACEOF
13745 /* end confdefs.h. */
13749 /* Require 2.1.27+ and 2.2.6+ */
13750 #if LDAP_VENDOR_VERSION_MAJOR == 2 && LDAP_VENDOR_VERSION_MINOR == 1 && LDAP_VENDOR_VERSION_PATCH > 26
13751 char *__openldap_compat = "2.1.27 or better okay";
13752 #elif LDAP_VENDOR_VERSION_MAJOR == 2 && LDAP_VENDOR_VERSION_MINOR == 2 && LDAP_VENDOR_VERSION_PATCH > 5
13753 char *__openldap_compat = "2.2.6 or better okay";
13754 #elif LDAP_VENDOR_VERSION_MAJOR == 2 && LDAP_VENDOR_VERSION_MINOR > 2
13755 char *__openldap_compat = "2.3 or better okay"
13759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13760 $EGREP "__openldap_compat" >/dev/null 2>&1; then
13761 cmu_cv_openldap_compat=yes
13763 cmu_cv_openldap_compat=no
13768 { echo "$as_me:$LINENO: result: $cmu_cv_openldap_compat" >&5
13769 echo "${ECHO_T}$cmu_cv_openldap_compat" >&6; }
13772 if test "$cmu_cv_openldap_compat" = no; then
13773 { { echo "$as_me:$LINENO: error: Cannot enable LDAPDB plugin: OpenLDAP library located but incompatible" >&5
13774 echo "$as_me: error: Cannot enable LDAPDB plugin: OpenLDAP library located but incompatible" >&2;}
13775 { (exit 1); exit 1; }; }
13777 LIB_LDAP=$cmu_link_openldap
13780 SASL_MECHS="$SASL_MECHS libldapdb.la"
13781 if test "$enable_static" = yes; then
13782 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/ldapdb.c"
13783 SASL_STATIC_OBJS="$SASL_STATIC_OBJS ldapdb.o"
13785 cat >>confdefs.h <<\_ACEOF
13786 #define STATIC_LDAPDB
13793 if test "$cmu_cv_openldap_compat" != yes; then
13794 CPPFLAGS=$save_CPPFLAGS
13795 LDFLAGS=$save_LDFLAGS
13798 { echo "$as_me:$LINENO: result: disabled" >&5
13799 echo "${ECHO_T}disabled" >&6; }
13808 # Check whether --with-plugindir was given.
13809 if test "${with_plugindir+set}" = set; then
13810 withval=$with_plugindir; plugindir=$withval
13812 plugindir=/usr/lib/sasl2
13816 cat >>confdefs.h <<_ACEOF
13817 #define PLUGINDIR "$plugindir"
13823 # Check whether --with-configdir was given.
13824 if test "${with_configdir+set}" = set; then
13825 withval=$with_configdir; configdir=$withval
13827 configdir=$plugindir:/etc/sasl2
13831 cat >>confdefs.h <<_ACEOF
13832 #define CONFIGDIR "$configdir"
13838 # Check whether --with-rc4 was given.
13839 if test "${with_rc4+set}" = set; then
13840 withval=$with_rc4; with_rc4=$withval
13846 if test "$with_rc4" != no; then
13848 cat >>confdefs.h <<\_ACEOF
13854 building_for_macosx=no
13857 # Check whether --enable-macos-framework was given.
13858 if test "${enable_macos_framework+set}" = set; then
13859 enableval=$enable_macos_framework; building_for_macosx=no
13861 building_for_macosx=yes
13866 if test "$building_for_macosx" = yes; then
13875 { echo "$as_me:$LINENO: checking for dmalloc library" >&5
13876 echo $ECHO_N "checking for dmalloc library... $ECHO_C" >&6; }
13878 # Check whether --with-dmalloc was given.
13879 if test "${with_dmalloc+set}" = set; then
13880 withval=$with_dmalloc; with_dmalloc=$withval
13888 if test "$with_dmalloc" != "no"; then
13889 if test "$with_dmalloc" = "yes"; then
13890 with_dmalloc="/usr/local"
13893 if test -r "$with_dmalloc/libdmalloc.a"; then
13894 DMALLOC_LIBS="$with_dmalloc/libdmalloc.a"
13896 cat >>confdefs.h <<\_ACEOF
13897 #define WITH_DMALLOC
13900 { echo "$as_me:$LINENO: result: yes" >&5
13901 echo "${ECHO_T}yes" >&6; }
13902 elif test -r "$with_dmalloc/lib/libdmalloc.a"; then
13903 DMALLOC_LIBS="$with_dmalloc/lib/libdmalloc.a"
13905 cat >>confdefs.h <<\_ACEOF
13906 #define WITH_DMALLOC
13909 { echo "$as_me:$LINENO: result: yes" >&5
13910 echo "${ECHO_T}yes" >&6; }
13912 { { echo "$as_me:$LINENO: error: cannot find dmalloc library" >&5
13913 echo "$as_me: error: cannot find dmalloc library" >&2;}
13914 { (exit please check your installation.); exit please check your installation.; }; }
13917 { echo "$as_me:$LINENO: result: no" >&5
13918 echo "${ECHO_T}no" >&6; }
13923 { echo "$as_me:$LINENO: checking for sfio library" >&5
13924 echo $ECHO_N "checking for sfio library... $ECHO_C" >&6; }
13926 # Check whether --with-sfio was given.
13927 if test "${with_sfio+set}" = set; then
13928 withval=$with_sfio; with_sfio=$withval
13934 if test "$with_sfio" != "no"; then
13935 if test "$with_sfio" = "yes"; then
13936 with_sfio="/usr/local"
13943 if test -r "$with_sfio/sfio.h"; then SFIO_DIR=$with_sfio;
13944 SFIO_INC_DIR=$with_sfio
13945 elif test -r "$with_sfio/include/sfio.h"; then SFIO_DIR=$with_sfio;
13946 SFIO_INC_DIR=$with_sfio/include
13947 elif test -r "$with_sfio/include/sfio/sfio.h"; then SFIO_DIR=$with_sfio;
13948 SFIO_INC_DIR=$with_sfio/include/sfio
13951 if test -z "$SFIO_DIR"; then
13952 { { echo "$as_me:$LINENO: error: Cannot find sfio.h" >&5
13953 echo "$as_me: error: Cannot find sfio.h" >&2;}
13954 { (exit Please check your SFIO installation.); exit Please check your SFIO installation.; }; }
13958 str="$SFIO_DIR/lib/libsfio.*"
13959 for i in `echo $str`; do
13960 if test -r $i; then
13961 SFIO_LIBDIR=$SFIO_DIR/lib
13967 str="$SFIO_DIR/lib/sfio/libsfio.*"
13968 for i in `echo $str`; do
13969 if test -r $i; then
13970 SFIO_LIBDIR=$SFIO_DIR/lib/sfio
13976 if test -z "$SFIO_LIBDIR"; then
13977 { { echo "$as_me:$LINENO: error: Cannot find sfio library" >&5
13978 echo "$as_me: error: Cannot find sfio library" >&2;}
13979 { (exit Please check your SFIO installation.); exit Please check your SFIO installation.; }; }
13982 SFIO_INC_FLAGS="-I$SFIO_INC_DIR"
13983 SFIO_LIB_FLAGS="-L$SFIO_LIBDIR -lsfio"
13984 SMTPTEST_PROGRAM="smtptest"
13985 SASL_UTIL_LIBS_EXTRA=libsfsasl2.la
13986 SASL_UTIL_HEADERS_EXTRA=sfsasl.h
13988 { echo "$as_me:$LINENO: result: yes" >&5
13989 echo "${ECHO_T}yes" >&6; }
13991 { echo "$as_me:$LINENO: result: no" >&5
13992 echo "${ECHO_T}no" >&6; }
13995 SMTPTEST_PROGRAM=""
13996 SASL_UTIL_LIBS_EXTRA=""
13997 SASL_UTIL_HEADERS_EXTRA=""
14006 sasl_cv_getsubopt=no
14007 { echo "$as_me:$LINENO: checking for getsubopt" >&5
14008 echo $ECHO_N "checking for getsubopt... $ECHO_C" >&6; }
14009 if test "${ac_cv_func_getsubopt+set}" = set; then
14010 echo $ECHO_N "(cached) $ECHO_C" >&6
14012 cat >conftest.$ac_ext <<_ACEOF
14015 cat confdefs.h >>conftest.$ac_ext
14016 cat >>conftest.$ac_ext <<_ACEOF
14017 /* end confdefs.h. */
14018 /* Define getsubopt to an innocuous variant, in case <limits.h> declares getsubopt.
14019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14020 #define getsubopt innocuous_getsubopt
14022 /* System header to define __stub macros and hopefully few prototypes,
14023 which can conflict with char getsubopt (); below.
14024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14025 <limits.h> exists even on freestanding compilers. */
14028 # include <limits.h>
14030 # include <assert.h>
14035 /* Override any GCC internal prototype to avoid an error.
14036 Use char because int might match the return type of a GCC
14037 builtin and then its argument prototype would still apply. */
14042 /* The GNU C library defines this for functions which it implements
14043 to always fail with ENOSYS. Some functions are actually named
14044 something starting with __ and the normal name is an alias. */
14045 #if defined __stub_getsubopt || defined __stub___getsubopt
14052 return getsubopt ();
14057 rm -f conftest.$ac_objext conftest$ac_exeext
14058 if { (ac_try="$ac_link"
14059 case "(($ac_try" in
14060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14061 *) ac_try_echo=$ac_try;;
14063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14064 (eval "$ac_link") 2>conftest.er1
14066 grep -v '^ *+' conftest.er1 >conftest.err
14068 cat conftest.err >&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); } && {
14071 test -z "$ac_c_werror_flag" ||
14072 test ! -s conftest.err
14073 } && test -s conftest$ac_exeext &&
14074 $as_test_x conftest$ac_exeext; then
14075 ac_cv_func_getsubopt=yes
14077 echo "$as_me: failed program was:" >&5
14078 sed 's/^/| /' conftest.$ac_ext >&5
14080 ac_cv_func_getsubopt=no
14083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14084 conftest$ac_exeext conftest.$ac_ext
14086 { echo "$as_me:$LINENO: result: $ac_cv_func_getsubopt" >&5
14087 echo "${ECHO_T}$ac_cv_func_getsubopt" >&6; }
14088 if test $ac_cv_func_getsubopt = yes; then
14090 cat >>confdefs.h <<\_ACEOF
14091 #define HAVE_GETSUBOPT
14095 sasl_cv_getsubopt=yes
14098 if test $sasl_cv_getsubopt = yes; then
14099 case " $LIBOBJS " in
14100 *" getsubopt.$ac_objext "* ) ;;
14101 *) LIBOBJS="$LIBOBJS getsubopt.$ac_objext"
14105 GETSUBOPT="getsubopt.lo"
14109 sasl_cv_snprintf=no
14111 { echo "$as_me:$LINENO: checking for snprintf" >&5
14112 echo $ECHO_N "checking for snprintf... $ECHO_C" >&6; }
14113 if test "${ac_cv_func_snprintf+set}" = set; then
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
14116 cat >conftest.$ac_ext <<_ACEOF
14119 cat confdefs.h >>conftest.$ac_ext
14120 cat >>conftest.$ac_ext <<_ACEOF
14121 /* end confdefs.h. */
14122 /* Define snprintf to an innocuous variant, in case <limits.h> declares snprintf.
14123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14124 #define snprintf innocuous_snprintf
14126 /* System header to define __stub macros and hopefully few prototypes,
14127 which can conflict with char snprintf (); below.
14128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14129 <limits.h> exists even on freestanding compilers. */
14132 # include <limits.h>
14134 # include <assert.h>
14139 /* Override any GCC internal prototype to avoid an error.
14140 Use char because int might match the return type of a GCC
14141 builtin and then its argument prototype would still apply. */
14146 /* The GNU C library defines this for functions which it implements
14147 to always fail with ENOSYS. Some functions are actually named
14148 something starting with __ and the normal name is an alias. */
14149 #if defined __stub_snprintf || defined __stub___snprintf
14156 return snprintf ();
14161 rm -f conftest.$ac_objext conftest$ac_exeext
14162 if { (ac_try="$ac_link"
14163 case "(($ac_try" in
14164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14165 *) ac_try_echo=$ac_try;;
14167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14168 (eval "$ac_link") 2>conftest.er1
14170 grep -v '^ *+' conftest.er1 >conftest.err
14172 cat conftest.err >&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); } && {
14175 test -z "$ac_c_werror_flag" ||
14176 test ! -s conftest.err
14177 } && test -s conftest$ac_exeext &&
14178 $as_test_x conftest$ac_exeext; then
14179 ac_cv_func_snprintf=yes
14181 echo "$as_me: failed program was:" >&5
14182 sed 's/^/| /' conftest.$ac_ext >&5
14184 ac_cv_func_snprintf=no
14187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14188 conftest$ac_exeext conftest.$ac_ext
14190 { echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5
14191 echo "${ECHO_T}$ac_cv_func_snprintf" >&6; }
14192 if test $ac_cv_func_snprintf = yes; then
14194 cat >>confdefs.h <<\_ACEOF
14195 #define HAVE_SNPRINTF
14199 sasl_cv_snprintf=yes
14202 { echo "$as_me:$LINENO: checking for vsnprintf" >&5
14203 echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6; }
14204 if test "${ac_cv_func_vsnprintf+set}" = set; then
14205 echo $ECHO_N "(cached) $ECHO_C" >&6
14207 cat >conftest.$ac_ext <<_ACEOF
14210 cat confdefs.h >>conftest.$ac_ext
14211 cat >>conftest.$ac_ext <<_ACEOF
14212 /* end confdefs.h. */
14213 /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
14214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14215 #define vsnprintf innocuous_vsnprintf
14217 /* System header to define __stub macros and hopefully few prototypes,
14218 which can conflict with char vsnprintf (); below.
14219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14220 <limits.h> exists even on freestanding compilers. */
14223 # include <limits.h>
14225 # include <assert.h>
14230 /* Override any GCC internal prototype to avoid an error.
14231 Use char because int might match the return type of a GCC
14232 builtin and then its argument prototype would still apply. */
14237 /* The GNU C library defines this for functions which it implements
14238 to always fail with ENOSYS. Some functions are actually named
14239 something starting with __ and the normal name is an alias. */
14240 #if defined __stub_vsnprintf || defined __stub___vsnprintf
14247 return vsnprintf ();
14252 rm -f conftest.$ac_objext conftest$ac_exeext
14253 if { (ac_try="$ac_link"
14254 case "(($ac_try" in
14255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14256 *) ac_try_echo=$ac_try;;
14258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14259 (eval "$ac_link") 2>conftest.er1
14261 grep -v '^ *+' conftest.er1 >conftest.err
14263 cat conftest.err >&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); } && {
14266 test -z "$ac_c_werror_flag" ||
14267 test ! -s conftest.err
14268 } && test -s conftest$ac_exeext &&
14269 $as_test_x conftest$ac_exeext; then
14270 ac_cv_func_vsnprintf=yes
14272 echo "$as_me: failed program was:" >&5
14273 sed 's/^/| /' conftest.$ac_ext >&5
14275 ac_cv_func_vsnprintf=no
14278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14279 conftest$ac_exeext conftest.$ac_ext
14281 { echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
14282 echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6; }
14283 if test $ac_cv_func_vsnprintf = yes; then
14285 cat >>confdefs.h <<\_ACEOF
14286 #define HAVE_VSNPRINTF
14290 sasl_cv_snprintf=yes
14293 if test $sasl_cv_snprintf = yes; then
14294 case " $LIBOBJS " in
14295 *" snprintf.$ac_objext "* ) ;;
14296 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
14300 SNPRINTFOBJS="snprintf.o"
14301 LTSNPRINTFOBJS="snprintf.lo"
14307 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
14308 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
14309 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
14310 echo $ECHO_N "(cached) $ECHO_C" >&6
14312 ac_check_lib_save_LIBS=$LIBS
14313 LIBS="-lresolv $LIBS"
14314 cat >conftest.$ac_ext <<_ACEOF
14317 cat confdefs.h >>conftest.$ac_ext
14318 cat >>conftest.$ac_ext <<_ACEOF
14319 /* end confdefs.h. */
14321 /* Override any GCC internal prototype to avoid an error.
14322 Use char because int might match the return type of a GCC
14323 builtin and then its argument prototype would still apply. */
14331 return inet_aton ();
14336 rm -f conftest.$ac_objext conftest$ac_exeext
14337 if { (ac_try="$ac_link"
14338 case "(($ac_try" in
14339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14340 *) ac_try_echo=$ac_try;;
14342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14343 (eval "$ac_link") 2>conftest.er1
14345 grep -v '^ *+' conftest.er1 >conftest.err
14347 cat conftest.err >&5
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); } && {
14350 test -z "$ac_c_werror_flag" ||
14351 test ! -s conftest.err
14352 } && test -s conftest$ac_exeext &&
14353 $as_test_x conftest$ac_exeext; then
14354 ac_cv_lib_resolv_inet_aton=yes
14356 echo "$as_me: failed program was:" >&5
14357 sed 's/^/| /' conftest.$ac_ext >&5
14359 ac_cv_lib_resolv_inet_aton=no
14362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14363 conftest$ac_exeext conftest.$ac_ext
14364 LIBS=$ac_check_lib_save_LIBS
14366 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
14367 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
14368 if test $ac_cv_lib_resolv_inet_aton = yes; then
14369 cat >>confdefs.h <<_ACEOF
14370 #define HAVE_LIBRESOLV 1
14373 LIBS="-lresolv $LIBS"
14379 sasl_cv_getaddrinfo=yes
14381 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
14382 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
14383 if test "${ac_cv_func_getaddrinfo+set}" = set; then
14384 echo $ECHO_N "(cached) $ECHO_C" >&6
14386 cat >conftest.$ac_ext <<_ACEOF
14389 cat confdefs.h >>conftest.$ac_ext
14390 cat >>conftest.$ac_ext <<_ACEOF
14391 /* end confdefs.h. */
14392 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
14393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14394 #define getaddrinfo innocuous_getaddrinfo
14396 /* System header to define __stub macros and hopefully few prototypes,
14397 which can conflict with char getaddrinfo (); below.
14398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14399 <limits.h> exists even on freestanding compilers. */
14402 # include <limits.h>
14404 # include <assert.h>
14409 /* Override any GCC internal prototype to avoid an error.
14410 Use char because int might match the return type of a GCC
14411 builtin and then its argument prototype would still apply. */
14415 char getaddrinfo ();
14416 /* The GNU C library defines this for functions which it implements
14417 to always fail with ENOSYS. Some functions are actually named
14418 something starting with __ and the normal name is an alias. */
14419 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
14426 return getaddrinfo ();
14431 rm -f conftest.$ac_objext conftest$ac_exeext
14432 if { (ac_try="$ac_link"
14433 case "(($ac_try" in
14434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14435 *) ac_try_echo=$ac_try;;
14437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14438 (eval "$ac_link") 2>conftest.er1
14440 grep -v '^ *+' conftest.er1 >conftest.err
14442 cat conftest.err >&5
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); } && {
14445 test -z "$ac_c_werror_flag" ||
14446 test ! -s conftest.err
14447 } && test -s conftest$ac_exeext &&
14448 $as_test_x conftest$ac_exeext; then
14449 ac_cv_func_getaddrinfo=yes
14451 echo "$as_me: failed program was:" >&5
14452 sed 's/^/| /' conftest.$ac_ext >&5
14454 ac_cv_func_getaddrinfo=no
14457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14458 conftest$ac_exeext conftest.$ac_ext
14460 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
14461 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
14462 if test $ac_cv_func_getaddrinfo = yes; then
14463 ac_cv_lib_socket_getaddrinfo=no
14464 ac_cv_lib_inet6_getaddrinfo=no
14467 { echo "$as_me:$LINENO: checking for getaddrinfo in -lsocket" >&5
14468 echo $ECHO_N "checking for getaddrinfo in -lsocket... $ECHO_C" >&6; }
14469 if test "${ac_cv_lib_socket_getaddrinfo+set}" = set; then
14470 echo $ECHO_N "(cached) $ECHO_C" >&6
14472 ac_check_lib_save_LIBS=$LIBS
14473 LIBS="-lsocket $LIBS"
14474 cat >conftest.$ac_ext <<_ACEOF
14477 cat confdefs.h >>conftest.$ac_ext
14478 cat >>conftest.$ac_ext <<_ACEOF
14479 /* end confdefs.h. */
14481 /* Override any GCC internal prototype to avoid an error.
14482 Use char because int might match the return type of a GCC
14483 builtin and then its argument prototype would still apply. */
14487 char getaddrinfo ();
14491 return getaddrinfo ();
14496 rm -f conftest.$ac_objext conftest$ac_exeext
14497 if { (ac_try="$ac_link"
14498 case "(($ac_try" in
14499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14500 *) ac_try_echo=$ac_try;;
14502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14503 (eval "$ac_link") 2>conftest.er1
14505 grep -v '^ *+' conftest.er1 >conftest.err
14507 cat conftest.err >&5
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); } && {
14510 test -z "$ac_c_werror_flag" ||
14511 test ! -s conftest.err
14512 } && test -s conftest$ac_exeext &&
14513 $as_test_x conftest$ac_exeext; then
14514 ac_cv_lib_socket_getaddrinfo=yes
14516 echo "$as_me: failed program was:" >&5
14517 sed 's/^/| /' conftest.$ac_ext >&5
14519 ac_cv_lib_socket_getaddrinfo=no
14522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14523 conftest$ac_exeext conftest.$ac_ext
14524 LIBS=$ac_check_lib_save_LIBS
14526 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getaddrinfo" >&5
14527 echo "${ECHO_T}$ac_cv_lib_socket_getaddrinfo" >&6; }
14528 if test $ac_cv_lib_socket_getaddrinfo = yes; then
14529 LIBS="$LIBS -lsocket"
14530 ac_cv_lib_inet6_getaddrinfo=no
14533 { echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5
14534 echo $ECHO_N "checking whether your system has IPv6 directory... $ECHO_C" >&6; }
14535 if test "${ipv6_cv_dir+set}" = set; then
14536 echo $ECHO_N "(cached) $ECHO_C" >&6
14538 for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
14539 if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
14544 { echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5
14545 echo "${ECHO_T}$ipv6_cv_dir" >&6; }
14546 if test $ipv6_cv_dir = no; then
14547 ac_cv_lib_inet6_getaddrinfo=no
14549 if test x$ipv6_libinet6 = x; then
14551 SAVELDFLAGS="$LDFLAGS"
14552 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
14554 { echo "$as_me:$LINENO: checking for getaddrinfo in -linet6" >&5
14555 echo $ECHO_N "checking for getaddrinfo in -linet6... $ECHO_C" >&6; }
14556 if test "${ac_cv_lib_inet6_getaddrinfo+set}" = set; then
14557 echo $ECHO_N "(cached) $ECHO_C" >&6
14559 ac_check_lib_save_LIBS=$LIBS
14560 LIBS="-linet6 $LIBS"
14561 cat >conftest.$ac_ext <<_ACEOF
14564 cat confdefs.h >>conftest.$ac_ext
14565 cat >>conftest.$ac_ext <<_ACEOF
14566 /* end confdefs.h. */
14568 /* Override any GCC internal prototype to avoid an error.
14569 Use char because int might match the return type of a GCC
14570 builtin and then its argument prototype would still apply. */
14574 char getaddrinfo ();
14578 return getaddrinfo ();
14583 rm -f conftest.$ac_objext conftest$ac_exeext
14584 if { (ac_try="$ac_link"
14585 case "(($ac_try" in
14586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14587 *) ac_try_echo=$ac_try;;
14589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14590 (eval "$ac_link") 2>conftest.er1
14592 grep -v '^ *+' conftest.er1 >conftest.err
14594 cat conftest.err >&5
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); } && {
14597 test -z "$ac_c_werror_flag" ||
14598 test ! -s conftest.err
14599 } && test -s conftest$ac_exeext &&
14600 $as_test_x conftest$ac_exeext; then
14601 ac_cv_lib_inet6_getaddrinfo=yes
14603 echo "$as_me: failed program was:" >&5
14604 sed 's/^/| /' conftest.$ac_ext >&5
14606 ac_cv_lib_inet6_getaddrinfo=no
14609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14610 conftest$ac_exeext conftest.$ac_ext
14611 LIBS=$ac_check_lib_save_LIBS
14613 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getaddrinfo" >&5
14614 echo "${ECHO_T}$ac_cv_lib_inet6_getaddrinfo" >&6; }
14615 if test $ac_cv_lib_inet6_getaddrinfo = yes; then
14616 if test $ipv6_libinet6 = no; then
14618 LIBS="$LIBS -linet6"
14621 if test $ipv6_libinet6 = no; then
14622 LDFLAGS="$SAVELDFLAGS"
14628 ipv6_cv_getaddrinfo=no
14629 if test $ac_cv_func_getaddrinfo = yes -o $ac_cv_lib_socket_getaddrinfo = yes \
14630 -o $ac_cv_lib_inet6_getaddrinfo = yes
14632 ipv6_cv_getaddrinfo=yes
14634 if test $ipv6_cv_getaddrinfo = no; then
14635 if test getaddrinfo = getaddrinfo; then
14636 for ipv6_cv_pfx in o n; do
14637 cat >conftest.$ac_ext <<_ACEOF
14640 cat confdefs.h >>conftest.$ac_ext
14641 cat >>conftest.$ac_ext <<_ACEOF
14642 /* end confdefs.h. */
14646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14647 $EGREP "${ipv6_cv_pfx}getaddrinfo" >/dev/null 2>&1; then
14648 as_ac_var=`echo "ac_cv_func_${ipv6_cv_pfx}getaddrinfo" | $as_tr_sh`
14649 { echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}getaddrinfo" >&5
14650 echo $ECHO_N "checking for ${ipv6_cv_pfx}getaddrinfo... $ECHO_C" >&6; }
14651 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14652 echo $ECHO_N "(cached) $ECHO_C" >&6
14654 cat >conftest.$ac_ext <<_ACEOF
14657 cat confdefs.h >>conftest.$ac_ext
14658 cat >>conftest.$ac_ext <<_ACEOF
14659 /* end confdefs.h. */
14660 /* Define ${ipv6_cv_pfx}getaddrinfo to an innocuous variant, in case <limits.h> declares ${ipv6_cv_pfx}getaddrinfo.
14661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14662 #define ${ipv6_cv_pfx}getaddrinfo innocuous_${ipv6_cv_pfx}getaddrinfo
14664 /* System header to define __stub macros and hopefully few prototypes,
14665 which can conflict with char ${ipv6_cv_pfx}getaddrinfo (); below.
14666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14667 <limits.h> exists even on freestanding compilers. */
14670 # include <limits.h>
14672 # include <assert.h>
14675 #undef ${ipv6_cv_pfx}getaddrinfo
14677 /* Override any GCC internal prototype to avoid an error.
14678 Use char because int might match the return type of a GCC
14679 builtin and then its argument prototype would still apply. */
14683 char ${ipv6_cv_pfx}getaddrinfo ();
14684 /* The GNU C library defines this for functions which it implements
14685 to always fail with ENOSYS. Some functions are actually named
14686 something starting with __ and the normal name is an alias. */
14687 #if defined __stub_${ipv6_cv_pfx}getaddrinfo || defined __stub___${ipv6_cv_pfx}getaddrinfo
14694 return ${ipv6_cv_pfx}getaddrinfo ();
14699 rm -f conftest.$ac_objext conftest$ac_exeext
14700 if { (ac_try="$ac_link"
14701 case "(($ac_try" in
14702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14703 *) ac_try_echo=$ac_try;;
14705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14706 (eval "$ac_link") 2>conftest.er1
14708 grep -v '^ *+' conftest.er1 >conftest.err
14710 cat conftest.err >&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } && {
14713 test -z "$ac_c_werror_flag" ||
14714 test ! -s conftest.err
14715 } && test -s conftest$ac_exeext &&
14716 $as_test_x conftest$ac_exeext; then
14717 eval "$as_ac_var=yes"
14719 echo "$as_me: failed program was:" >&5
14720 sed 's/^/| /' conftest.$ac_ext >&5
14722 eval "$as_ac_var=no"
14725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14726 conftest$ac_exeext conftest.$ac_ext
14728 ac_res=`eval echo '${'$as_ac_var'}'`
14729 { echo "$as_me:$LINENO: result: $ac_res" >&5
14730 echo "${ECHO_T}$ac_res" >&6; }
14735 if eval test X\$ac_cv_func_${ipv6_cv_pfx}getaddrinfo = Xyes; then
14737 cat >>confdefs.h <<\_ACEOF
14738 #define HAVE_GETADDRINFO
14741 ipv6_cv_getaddrinfo=yes
14747 if test $ipv6_cv_getaddrinfo = yes; then
14749 { echo "$as_me:$LINENO: checking for gai_strerror" >&5
14750 echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6; }
14751 if test "${ac_cv_func_gai_strerror+set}" = set; then
14752 echo $ECHO_N "(cached) $ECHO_C" >&6
14754 cat >conftest.$ac_ext <<_ACEOF
14757 cat confdefs.h >>conftest.$ac_ext
14758 cat >>conftest.$ac_ext <<_ACEOF
14759 /* end confdefs.h. */
14760 /* Define gai_strerror to an innocuous variant, in case <limits.h> declares gai_strerror.
14761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14762 #define gai_strerror innocuous_gai_strerror
14764 /* System header to define __stub macros and hopefully few prototypes,
14765 which can conflict with char gai_strerror (); below.
14766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14767 <limits.h> exists even on freestanding compilers. */
14770 # include <limits.h>
14772 # include <assert.h>
14775 #undef gai_strerror
14777 /* Override any GCC internal prototype to avoid an error.
14778 Use char because int might match the return type of a GCC
14779 builtin and then its argument prototype would still apply. */
14783 char gai_strerror ();
14784 /* The GNU C library defines this for functions which it implements
14785 to always fail with ENOSYS. Some functions are actually named
14786 something starting with __ and the normal name is an alias. */
14787 #if defined __stub_gai_strerror || defined __stub___gai_strerror
14794 return gai_strerror ();
14799 rm -f conftest.$ac_objext conftest$ac_exeext
14800 if { (ac_try="$ac_link"
14801 case "(($ac_try" in
14802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14803 *) ac_try_echo=$ac_try;;
14805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14806 (eval "$ac_link") 2>conftest.er1
14808 grep -v '^ *+' conftest.er1 >conftest.err
14810 cat conftest.err >&5
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); } && {
14813 test -z "$ac_c_werror_flag" ||
14814 test ! -s conftest.err
14815 } && test -s conftest$ac_exeext &&
14816 $as_test_x conftest$ac_exeext; then
14817 ac_cv_func_gai_strerror=yes
14819 echo "$as_me: failed program was:" >&5
14820 sed 's/^/| /' conftest.$ac_ext >&5
14822 ac_cv_func_gai_strerror=no
14825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14826 conftest$ac_exeext conftest.$ac_ext
14828 { echo "$as_me:$LINENO: result: $ac_cv_func_gai_strerror" >&5
14829 echo "${ECHO_T}$ac_cv_func_gai_strerror" >&6; }
14830 if test $ac_cv_func_gai_strerror = yes; then
14831 ac_cv_lib_socket_gai_strerror=no
14832 ac_cv_lib_inet6_gai_strerror=no
14835 { echo "$as_me:$LINENO: checking for gai_strerror in -lsocket" >&5
14836 echo $ECHO_N "checking for gai_strerror in -lsocket... $ECHO_C" >&6; }
14837 if test "${ac_cv_lib_socket_gai_strerror+set}" = set; then
14838 echo $ECHO_N "(cached) $ECHO_C" >&6
14840 ac_check_lib_save_LIBS=$LIBS
14841 LIBS="-lsocket $LIBS"
14842 cat >conftest.$ac_ext <<_ACEOF
14845 cat confdefs.h >>conftest.$ac_ext
14846 cat >>conftest.$ac_ext <<_ACEOF
14847 /* end confdefs.h. */
14849 /* Override any GCC internal prototype to avoid an error.
14850 Use char because int might match the return type of a GCC
14851 builtin and then its argument prototype would still apply. */
14855 char gai_strerror ();
14859 return gai_strerror ();
14864 rm -f conftest.$ac_objext conftest$ac_exeext
14865 if { (ac_try="$ac_link"
14866 case "(($ac_try" in
14867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14868 *) ac_try_echo=$ac_try;;
14870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14871 (eval "$ac_link") 2>conftest.er1
14873 grep -v '^ *+' conftest.er1 >conftest.err
14875 cat conftest.err >&5
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); } && {
14878 test -z "$ac_c_werror_flag" ||
14879 test ! -s conftest.err
14880 } && test -s conftest$ac_exeext &&
14881 $as_test_x conftest$ac_exeext; then
14882 ac_cv_lib_socket_gai_strerror=yes
14884 echo "$as_me: failed program was:" >&5
14885 sed 's/^/| /' conftest.$ac_ext >&5
14887 ac_cv_lib_socket_gai_strerror=no
14890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14891 conftest$ac_exeext conftest.$ac_ext
14892 LIBS=$ac_check_lib_save_LIBS
14894 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gai_strerror" >&5
14895 echo "${ECHO_T}$ac_cv_lib_socket_gai_strerror" >&6; }
14896 if test $ac_cv_lib_socket_gai_strerror = yes; then
14897 LIBS="$LIBS -lsocket"
14898 ac_cv_lib_inet6_gai_strerror=no
14901 { echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5
14902 echo $ECHO_N "checking whether your system has IPv6 directory... $ECHO_C" >&6; }
14903 if test "${ipv6_cv_dir+set}" = set; then
14904 echo $ECHO_N "(cached) $ECHO_C" >&6
14906 for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
14907 if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
14912 { echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5
14913 echo "${ECHO_T}$ipv6_cv_dir" >&6; }
14914 if test $ipv6_cv_dir = no; then
14915 ac_cv_lib_inet6_gai_strerror=no
14917 if test x$ipv6_libinet6 = x; then
14919 SAVELDFLAGS="$LDFLAGS"
14920 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
14922 { echo "$as_me:$LINENO: checking for gai_strerror in -linet6" >&5
14923 echo $ECHO_N "checking for gai_strerror in -linet6... $ECHO_C" >&6; }
14924 if test "${ac_cv_lib_inet6_gai_strerror+set}" = set; then
14925 echo $ECHO_N "(cached) $ECHO_C" >&6
14927 ac_check_lib_save_LIBS=$LIBS
14928 LIBS="-linet6 $LIBS"
14929 cat >conftest.$ac_ext <<_ACEOF
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h. */
14936 /* Override any GCC internal prototype to avoid an error.
14937 Use char because int might match the return type of a GCC
14938 builtin and then its argument prototype would still apply. */
14942 char gai_strerror ();
14946 return gai_strerror ();
14951 rm -f conftest.$ac_objext conftest$ac_exeext
14952 if { (ac_try="$ac_link"
14953 case "(($ac_try" in
14954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14955 *) ac_try_echo=$ac_try;;
14957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14958 (eval "$ac_link") 2>conftest.er1
14960 grep -v '^ *+' conftest.er1 >conftest.err
14962 cat conftest.err >&5
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); } && {
14965 test -z "$ac_c_werror_flag" ||
14966 test ! -s conftest.err
14967 } && test -s conftest$ac_exeext &&
14968 $as_test_x conftest$ac_exeext; then
14969 ac_cv_lib_inet6_gai_strerror=yes
14971 echo "$as_me: failed program was:" >&5
14972 sed 's/^/| /' conftest.$ac_ext >&5
14974 ac_cv_lib_inet6_gai_strerror=no
14977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14978 conftest$ac_exeext conftest.$ac_ext
14979 LIBS=$ac_check_lib_save_LIBS
14981 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_gai_strerror" >&5
14982 echo "${ECHO_T}$ac_cv_lib_inet6_gai_strerror" >&6; }
14983 if test $ac_cv_lib_inet6_gai_strerror = yes; then
14984 if test $ipv6_libinet6 = no; then
14986 LIBS="$LIBS -linet6"
14989 if test $ipv6_libinet6 = no; then
14990 LDFLAGS="$SAVELDFLAGS"
14996 ipv6_cv_gai_strerror=no
14997 if test $ac_cv_func_gai_strerror = yes -o $ac_cv_lib_socket_gai_strerror = yes \
14998 -o $ac_cv_lib_inet6_gai_strerror = yes
15000 ipv6_cv_gai_strerror=yes
15002 if test $ipv6_cv_gai_strerror = no; then
15003 if test gai_strerror = getaddrinfo; then
15004 for ipv6_cv_pfx in o n; do
15005 cat >conftest.$ac_ext <<_ACEOF
15008 cat confdefs.h >>conftest.$ac_ext
15009 cat >>conftest.$ac_ext <<_ACEOF
15010 /* end confdefs.h. */
15014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15015 $EGREP "${ipv6_cv_pfx}gai_strerror" >/dev/null 2>&1; then
15016 as_ac_var=`echo "ac_cv_func_${ipv6_cv_pfx}gai_strerror" | $as_tr_sh`
15017 { echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}gai_strerror" >&5
15018 echo $ECHO_N "checking for ${ipv6_cv_pfx}gai_strerror... $ECHO_C" >&6; }
15019 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15020 echo $ECHO_N "(cached) $ECHO_C" >&6
15022 cat >conftest.$ac_ext <<_ACEOF
15025 cat confdefs.h >>conftest.$ac_ext
15026 cat >>conftest.$ac_ext <<_ACEOF
15027 /* end confdefs.h. */
15028 /* Define ${ipv6_cv_pfx}gai_strerror to an innocuous variant, in case <limits.h> declares ${ipv6_cv_pfx}gai_strerror.
15029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15030 #define ${ipv6_cv_pfx}gai_strerror innocuous_${ipv6_cv_pfx}gai_strerror
15032 /* System header to define __stub macros and hopefully few prototypes,
15033 which can conflict with char ${ipv6_cv_pfx}gai_strerror (); below.
15034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15035 <limits.h> exists even on freestanding compilers. */
15038 # include <limits.h>
15040 # include <assert.h>
15043 #undef ${ipv6_cv_pfx}gai_strerror
15045 /* Override any GCC internal prototype to avoid an error.
15046 Use char because int might match the return type of a GCC
15047 builtin and then its argument prototype would still apply. */
15051 char ${ipv6_cv_pfx}gai_strerror ();
15052 /* The GNU C library defines this for functions which it implements
15053 to always fail with ENOSYS. Some functions are actually named
15054 something starting with __ and the normal name is an alias. */
15055 #if defined __stub_${ipv6_cv_pfx}gai_strerror || defined __stub___${ipv6_cv_pfx}gai_strerror
15062 return ${ipv6_cv_pfx}gai_strerror ();
15067 rm -f conftest.$ac_objext conftest$ac_exeext
15068 if { (ac_try="$ac_link"
15069 case "(($ac_try" in
15070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071 *) ac_try_echo=$ac_try;;
15073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074 (eval "$ac_link") 2>conftest.er1
15076 grep -v '^ *+' conftest.er1 >conftest.err
15078 cat conftest.err >&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } && {
15081 test -z "$ac_c_werror_flag" ||
15082 test ! -s conftest.err
15083 } && test -s conftest$ac_exeext &&
15084 $as_test_x conftest$ac_exeext; then
15085 eval "$as_ac_var=yes"
15087 echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.$ac_ext >&5
15090 eval "$as_ac_var=no"
15093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15094 conftest$ac_exeext conftest.$ac_ext
15096 ac_res=`eval echo '${'$as_ac_var'}'`
15097 { echo "$as_me:$LINENO: result: $ac_res" >&5
15098 echo "${ECHO_T}$ac_res" >&6; }
15103 if eval test X\$ac_cv_func_${ipv6_cv_pfx}gai_strerror = Xyes; then
15105 cat >>confdefs.h <<\_ACEOF
15106 #define HAVE_GETADDRINFO
15109 ipv6_cv_gai_strerror=yes
15115 if test $ipv6_cv_gai_strerror = yes; then
15117 cat >>confdefs.h <<\_ACEOF
15118 #define HAVE_GETADDRINFO
15121 sasl_cv_getaddrinfo=no
15128 if test $sasl_cv_getaddrinfo = yes; then
15129 case " $LIBOBJS " in
15130 *" getaddrinfo.$ac_objext "* ) ;;
15131 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
15135 GETADDRINFOOBJS="getaddrinfo.o"
15136 LTGETADDRINFOOBJS="getaddrinfo.lo"
15142 sasl_cv_getnameinfo=no
15144 { echo "$as_me:$LINENO: checking for getnameinfo" >&5
15145 echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6; }
15146 if test "${ac_cv_func_getnameinfo+set}" = set; then
15147 echo $ECHO_N "(cached) $ECHO_C" >&6
15149 cat >conftest.$ac_ext <<_ACEOF
15152 cat confdefs.h >>conftest.$ac_ext
15153 cat >>conftest.$ac_ext <<_ACEOF
15154 /* end confdefs.h. */
15155 /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
15156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15157 #define getnameinfo innocuous_getnameinfo
15159 /* System header to define __stub macros and hopefully few prototypes,
15160 which can conflict with char getnameinfo (); below.
15161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15162 <limits.h> exists even on freestanding compilers. */
15165 # include <limits.h>
15167 # include <assert.h>
15172 /* Override any GCC internal prototype to avoid an error.
15173 Use char because int might match the return type of a GCC
15174 builtin and then its argument prototype would still apply. */
15178 char getnameinfo ();
15179 /* The GNU C library defines this for functions which it implements
15180 to always fail with ENOSYS. Some functions are actually named
15181 something starting with __ and the normal name is an alias. */
15182 #if defined __stub_getnameinfo || defined __stub___getnameinfo
15189 return getnameinfo ();
15194 rm -f conftest.$ac_objext conftest$ac_exeext
15195 if { (ac_try="$ac_link"
15196 case "(($ac_try" in
15197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15198 *) ac_try_echo=$ac_try;;
15200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15201 (eval "$ac_link") 2>conftest.er1
15203 grep -v '^ *+' conftest.er1 >conftest.err
15205 cat conftest.err >&5
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); } && {
15208 test -z "$ac_c_werror_flag" ||
15209 test ! -s conftest.err
15210 } && test -s conftest$ac_exeext &&
15211 $as_test_x conftest$ac_exeext; then
15212 ac_cv_func_getnameinfo=yes
15214 echo "$as_me: failed program was:" >&5
15215 sed 's/^/| /' conftest.$ac_ext >&5
15217 ac_cv_func_getnameinfo=no
15220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15221 conftest$ac_exeext conftest.$ac_ext
15223 { echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5
15224 echo "${ECHO_T}$ac_cv_func_getnameinfo" >&6; }
15225 if test $ac_cv_func_getnameinfo = yes; then
15226 ac_cv_lib_socket_getnameinfo=no
15227 ac_cv_lib_inet6_getnameinfo=no
15230 { echo "$as_me:$LINENO: checking for getnameinfo in -lsocket" >&5
15231 echo $ECHO_N "checking for getnameinfo in -lsocket... $ECHO_C" >&6; }
15232 if test "${ac_cv_lib_socket_getnameinfo+set}" = set; then
15233 echo $ECHO_N "(cached) $ECHO_C" >&6
15235 ac_check_lib_save_LIBS=$LIBS
15236 LIBS="-lsocket $LIBS"
15237 cat >conftest.$ac_ext <<_ACEOF
15240 cat confdefs.h >>conftest.$ac_ext
15241 cat >>conftest.$ac_ext <<_ACEOF
15242 /* end confdefs.h. */
15244 /* Override any GCC internal prototype to avoid an error.
15245 Use char because int might match the return type of a GCC
15246 builtin and then its argument prototype would still apply. */
15250 char getnameinfo ();
15254 return getnameinfo ();
15259 rm -f conftest.$ac_objext conftest$ac_exeext
15260 if { (ac_try="$ac_link"
15261 case "(($ac_try" in
15262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15263 *) ac_try_echo=$ac_try;;
15265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15266 (eval "$ac_link") 2>conftest.er1
15268 grep -v '^ *+' conftest.er1 >conftest.err
15270 cat conftest.err >&5
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); } && {
15273 test -z "$ac_c_werror_flag" ||
15274 test ! -s conftest.err
15275 } && test -s conftest$ac_exeext &&
15276 $as_test_x conftest$ac_exeext; then
15277 ac_cv_lib_socket_getnameinfo=yes
15279 echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15282 ac_cv_lib_socket_getnameinfo=no
15285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15286 conftest$ac_exeext conftest.$ac_ext
15287 LIBS=$ac_check_lib_save_LIBS
15289 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getnameinfo" >&5
15290 echo "${ECHO_T}$ac_cv_lib_socket_getnameinfo" >&6; }
15291 if test $ac_cv_lib_socket_getnameinfo = yes; then
15292 LIBS="$LIBS -lsocket"
15293 ac_cv_lib_inet6_getnameinfo=no
15296 { echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5
15297 echo $ECHO_N "checking whether your system has IPv6 directory... $ECHO_C" >&6; }
15298 if test "${ipv6_cv_dir+set}" = set; then
15299 echo $ECHO_N "(cached) $ECHO_C" >&6
15301 for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
15302 if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
15307 { echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5
15308 echo "${ECHO_T}$ipv6_cv_dir" >&6; }
15309 if test $ipv6_cv_dir = no; then
15310 ac_cv_lib_inet6_getnameinfo=no
15312 if test x$ipv6_libinet6 = x; then
15314 SAVELDFLAGS="$LDFLAGS"
15315 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
15317 { echo "$as_me:$LINENO: checking for getnameinfo in -linet6" >&5
15318 echo $ECHO_N "checking for getnameinfo in -linet6... $ECHO_C" >&6; }
15319 if test "${ac_cv_lib_inet6_getnameinfo+set}" = set; then
15320 echo $ECHO_N "(cached) $ECHO_C" >&6
15322 ac_check_lib_save_LIBS=$LIBS
15323 LIBS="-linet6 $LIBS"
15324 cat >conftest.$ac_ext <<_ACEOF
15327 cat confdefs.h >>conftest.$ac_ext
15328 cat >>conftest.$ac_ext <<_ACEOF
15329 /* end confdefs.h. */
15331 /* Override any GCC internal prototype to avoid an error.
15332 Use char because int might match the return type of a GCC
15333 builtin and then its argument prototype would still apply. */
15337 char getnameinfo ();
15341 return getnameinfo ();
15346 rm -f conftest.$ac_objext conftest$ac_exeext
15347 if { (ac_try="$ac_link"
15348 case "(($ac_try" in
15349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15350 *) ac_try_echo=$ac_try;;
15352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15353 (eval "$ac_link") 2>conftest.er1
15355 grep -v '^ *+' conftest.er1 >conftest.err
15357 cat conftest.err >&5
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); } && {
15360 test -z "$ac_c_werror_flag" ||
15361 test ! -s conftest.err
15362 } && test -s conftest$ac_exeext &&
15363 $as_test_x conftest$ac_exeext; then
15364 ac_cv_lib_inet6_getnameinfo=yes
15366 echo "$as_me: failed program was:" >&5
15367 sed 's/^/| /' conftest.$ac_ext >&5
15369 ac_cv_lib_inet6_getnameinfo=no
15372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15373 conftest$ac_exeext conftest.$ac_ext
15374 LIBS=$ac_check_lib_save_LIBS
15376 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getnameinfo" >&5
15377 echo "${ECHO_T}$ac_cv_lib_inet6_getnameinfo" >&6; }
15378 if test $ac_cv_lib_inet6_getnameinfo = yes; then
15379 if test $ipv6_libinet6 = no; then
15381 LIBS="$LIBS -linet6"
15384 if test $ipv6_libinet6 = no; then
15385 LDFLAGS="$SAVELDFLAGS"
15391 ipv6_cv_getnameinfo=no
15392 if test $ac_cv_func_getnameinfo = yes -o $ac_cv_lib_socket_getnameinfo = yes \
15393 -o $ac_cv_lib_inet6_getnameinfo = yes
15395 ipv6_cv_getnameinfo=yes
15397 if test $ipv6_cv_getnameinfo = no; then
15398 if test getnameinfo = getaddrinfo; then
15399 for ipv6_cv_pfx in o n; do
15400 cat >conftest.$ac_ext <<_ACEOF
15403 cat confdefs.h >>conftest.$ac_ext
15404 cat >>conftest.$ac_ext <<_ACEOF
15405 /* end confdefs.h. */
15409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15410 $EGREP "${ipv6_cv_pfx}getnameinfo" >/dev/null 2>&1; then
15411 as_ac_var=`echo "ac_cv_func_${ipv6_cv_pfx}getnameinfo" | $as_tr_sh`
15412 { echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}getnameinfo" >&5
15413 echo $ECHO_N "checking for ${ipv6_cv_pfx}getnameinfo... $ECHO_C" >&6; }
15414 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15415 echo $ECHO_N "(cached) $ECHO_C" >&6
15417 cat >conftest.$ac_ext <<_ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h. */
15423 /* Define ${ipv6_cv_pfx}getnameinfo to an innocuous variant, in case <limits.h> declares ${ipv6_cv_pfx}getnameinfo.
15424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15425 #define ${ipv6_cv_pfx}getnameinfo innocuous_${ipv6_cv_pfx}getnameinfo
15427 /* System header to define __stub macros and hopefully few prototypes,
15428 which can conflict with char ${ipv6_cv_pfx}getnameinfo (); below.
15429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15430 <limits.h> exists even on freestanding compilers. */
15433 # include <limits.h>
15435 # include <assert.h>
15438 #undef ${ipv6_cv_pfx}getnameinfo
15440 /* Override any GCC internal prototype to avoid an error.
15441 Use char because int might match the return type of a GCC
15442 builtin and then its argument prototype would still apply. */
15446 char ${ipv6_cv_pfx}getnameinfo ();
15447 /* The GNU C library defines this for functions which it implements
15448 to always fail with ENOSYS. Some functions are actually named
15449 something starting with __ and the normal name is an alias. */
15450 #if defined __stub_${ipv6_cv_pfx}getnameinfo || defined __stub___${ipv6_cv_pfx}getnameinfo
15457 return ${ipv6_cv_pfx}getnameinfo ();
15462 rm -f conftest.$ac_objext conftest$ac_exeext
15463 if { (ac_try="$ac_link"
15464 case "(($ac_try" in
15465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15466 *) ac_try_echo=$ac_try;;
15468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15469 (eval "$ac_link") 2>conftest.er1
15471 grep -v '^ *+' conftest.er1 >conftest.err
15473 cat conftest.err >&5
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); } && {
15476 test -z "$ac_c_werror_flag" ||
15477 test ! -s conftest.err
15478 } && test -s conftest$ac_exeext &&
15479 $as_test_x conftest$ac_exeext; then
15480 eval "$as_ac_var=yes"
15482 echo "$as_me: failed program was:" >&5
15483 sed 's/^/| /' conftest.$ac_ext >&5
15485 eval "$as_ac_var=no"
15488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15489 conftest$ac_exeext conftest.$ac_ext
15491 ac_res=`eval echo '${'$as_ac_var'}'`
15492 { echo "$as_me:$LINENO: result: $ac_res" >&5
15493 echo "${ECHO_T}$ac_res" >&6; }
15498 if eval test X\$ac_cv_func_${ipv6_cv_pfx}getnameinfo = Xyes; then
15500 cat >>confdefs.h <<\_ACEOF
15501 #define HAVE_GETADDRINFO
15504 ipv6_cv_getnameinfo=yes
15510 if test $ipv6_cv_getnameinfo = yes; then
15512 cat >>confdefs.h <<\_ACEOF
15513 #define HAVE_GETNAMEINFO
15517 sasl_cv_getnameinfo=yes
15519 if test $sasl_cv_getnameinfo = yes; then
15520 case " $LIBOBJS " in
15521 *" getnameinfo.$ac_objext "* ) ;;
15522 *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
15526 GETNAMEINFOOBJS="getnameinfo.o"
15527 LTGETNAMEINFOOBJS="getnameinfo.lo"
15532 LTLIBOBJS=`echo "$LIBOBJS" | sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
15535 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15536 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
15537 if test "${ac_cv_c_const+set}" = set; then
15538 echo $ECHO_N "(cached) $ECHO_C" >&6
15540 cat >conftest.$ac_ext <<_ACEOF
15543 cat confdefs.h >>conftest.$ac_ext
15544 cat >>conftest.$ac_ext <<_ACEOF
15545 /* end confdefs.h. */
15550 /* FIXME: Include the comments suggested by Paul. */
15551 #ifndef __cplusplus
15552 /* Ultrix mips cc rejects this. */
15553 typedef int charset[2];
15555 /* SunOS 4.1.1 cc rejects this. */
15556 char const *const *pcpcc;
15558 /* NEC SVR4.0.2 mips cc rejects this. */
15559 struct point {int x, y;};
15560 static struct point const zero = {0,0};
15561 /* AIX XL C 1.02.0.0 rejects this.
15562 It does not let you subtract one const X* pointer from another in
15563 an arm of an if-expression whose if-part is not a constant
15565 const char *g = "string";
15566 pcpcc = &g + (g ? g-g : 0);
15567 /* HPUX 7.0 cc rejects these. */
15569 ppc = (char**) pcpcc;
15570 pcpcc = (char const *const *) ppc;
15571 { /* SCO 3.2v4 cc rejects this. */
15573 char const *s = 0 ? (char *) 0 : (char const *) 0;
15578 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15579 int x[] = {25, 17};
15580 const int *foo = &x[0];
15583 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15584 typedef const int *iptr;
15588 { /* AIX XL C 1.02.0.0 rejects this saying
15589 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15590 struct s { int j; const int *ap[3]; };
15591 struct s *b; b->j = 5;
15593 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15594 const int foo = 10;
15595 if (!foo) return 0;
15597 return !cs[0] && !zero.x;
15604 rm -f conftest.$ac_objext
15605 if { (ac_try="$ac_compile"
15606 case "(($ac_try" in
15607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15608 *) ac_try_echo=$ac_try;;
15610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15611 (eval "$ac_compile") 2>conftest.er1
15613 grep -v '^ *+' conftest.er1 >conftest.err
15615 cat conftest.err >&5
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); } && {
15618 test -z "$ac_c_werror_flag" ||
15619 test ! -s conftest.err
15620 } && test -s conftest.$ac_objext; then
15623 echo "$as_me: failed program was:" >&5
15624 sed 's/^/| /' conftest.$ac_ext >&5
15629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15631 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15632 echo "${ECHO_T}$ac_cv_c_const" >&6; }
15633 if test $ac_cv_c_const = no; then
15635 cat >>confdefs.h <<\_ACEOF
15641 { echo "$as_me:$LINENO: checking for inline" >&5
15642 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
15643 if test "${ac_cv_c_inline+set}" = set; then
15644 echo $ECHO_N "(cached) $ECHO_C" >&6
15647 for ac_kw in inline __inline__ __inline; do
15648 cat >conftest.$ac_ext <<_ACEOF
15651 cat confdefs.h >>conftest.$ac_ext
15652 cat >>conftest.$ac_ext <<_ACEOF
15653 /* end confdefs.h. */
15654 #ifndef __cplusplus
15656 static $ac_kw foo_t static_foo () {return 0; }
15657 $ac_kw foo_t foo () {return 0; }
15661 rm -f conftest.$ac_objext
15662 if { (ac_try="$ac_compile"
15663 case "(($ac_try" in
15664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15665 *) ac_try_echo=$ac_try;;
15667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15668 (eval "$ac_compile") 2>conftest.er1
15670 grep -v '^ *+' conftest.er1 >conftest.err
15672 cat conftest.err >&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); } && {
15675 test -z "$ac_c_werror_flag" ||
15676 test ! -s conftest.err
15677 } && test -s conftest.$ac_objext; then
15678 ac_cv_c_inline=$ac_kw
15680 echo "$as_me: failed program was:" >&5
15681 sed 's/^/| /' conftest.$ac_ext >&5
15686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15687 test "$ac_cv_c_inline" != no && break
15691 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15692 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
15695 case $ac_cv_c_inline in
15698 case $ac_cv_c_inline in
15700 *) ac_val=$ac_cv_c_inline;;
15702 cat >>confdefs.h <<_ACEOF
15703 #ifndef __cplusplus
15704 #define inline $ac_val
15710 { echo "$as_me:$LINENO: checking for mode_t" >&5
15711 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
15712 if test "${ac_cv_type_mode_t+set}" = set; then
15713 echo $ECHO_N "(cached) $ECHO_C" >&6
15715 cat >conftest.$ac_ext <<_ACEOF
15718 cat confdefs.h >>conftest.$ac_ext
15719 cat >>conftest.$ac_ext <<_ACEOF
15720 /* end confdefs.h. */
15721 $ac_includes_default
15722 typedef mode_t ac__type_new_;
15726 if ((ac__type_new_ *) 0)
15728 if (sizeof (ac__type_new_))
15734 rm -f conftest.$ac_objext
15735 if { (ac_try="$ac_compile"
15736 case "(($ac_try" in
15737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15738 *) ac_try_echo=$ac_try;;
15740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15741 (eval "$ac_compile") 2>conftest.er1
15743 grep -v '^ *+' conftest.er1 >conftest.err
15745 cat conftest.err >&5
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); } && {
15748 test -z "$ac_c_werror_flag" ||
15749 test ! -s conftest.err
15750 } && test -s conftest.$ac_objext; then
15751 ac_cv_type_mode_t=yes
15753 echo "$as_me: failed program was:" >&5
15754 sed 's/^/| /' conftest.$ac_ext >&5
15756 ac_cv_type_mode_t=no
15759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15761 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
15762 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
15763 if test $ac_cv_type_mode_t = yes; then
15767 cat >>confdefs.h <<_ACEOF
15773 { echo "$as_me:$LINENO: checking for pid_t" >&5
15774 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
15775 if test "${ac_cv_type_pid_t+set}" = set; then
15776 echo $ECHO_N "(cached) $ECHO_C" >&6
15778 cat >conftest.$ac_ext <<_ACEOF
15781 cat confdefs.h >>conftest.$ac_ext
15782 cat >>conftest.$ac_ext <<_ACEOF
15783 /* end confdefs.h. */
15784 $ac_includes_default
15785 typedef pid_t ac__type_new_;
15789 if ((ac__type_new_ *) 0)
15791 if (sizeof (ac__type_new_))
15797 rm -f conftest.$ac_objext
15798 if { (ac_try="$ac_compile"
15799 case "(($ac_try" in
15800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15801 *) ac_try_echo=$ac_try;;
15803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15804 (eval "$ac_compile") 2>conftest.er1
15806 grep -v '^ *+' conftest.er1 >conftest.err
15808 cat conftest.err >&5
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); } && {
15811 test -z "$ac_c_werror_flag" ||
15812 test ! -s conftest.err
15813 } && test -s conftest.$ac_objext; then
15814 ac_cv_type_pid_t=yes
15816 echo "$as_me: failed program was:" >&5
15817 sed 's/^/| /' conftest.$ac_ext >&5
15819 ac_cv_type_pid_t=no
15822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15824 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15825 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
15826 if test $ac_cv_type_pid_t = yes; then
15830 cat >>confdefs.h <<_ACEOF
15836 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15837 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
15838 if test "${ac_cv_type_signal+set}" = set; then
15839 echo $ECHO_N "(cached) $ECHO_C" >&6
15841 cat >conftest.$ac_ext <<_ACEOF
15844 cat confdefs.h >>conftest.$ac_ext
15845 cat >>conftest.$ac_ext <<_ACEOF
15846 /* end confdefs.h. */
15847 #include <sys/types.h>
15848 #include <signal.h>
15853 return *(signal (0, 0)) (0) == 1;
15858 rm -f conftest.$ac_objext
15859 if { (ac_try="$ac_compile"
15860 case "(($ac_try" in
15861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15862 *) ac_try_echo=$ac_try;;
15864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15865 (eval "$ac_compile") 2>conftest.er1
15867 grep -v '^ *+' conftest.er1 >conftest.err
15869 cat conftest.err >&5
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); } && {
15872 test -z "$ac_c_werror_flag" ||
15873 test ! -s conftest.err
15874 } && test -s conftest.$ac_objext; then
15875 ac_cv_type_signal=int
15877 echo "$as_me: failed program was:" >&5
15878 sed 's/^/| /' conftest.$ac_ext >&5
15880 ac_cv_type_signal=void
15883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15885 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15886 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
15888 cat >>confdefs.h <<_ACEOF
15889 #define RETSIGTYPE $ac_cv_type_signal
15894 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15895 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15896 if test "${ac_cv_header_time+set}" = set; then
15897 echo $ECHO_N "(cached) $ECHO_C" >&6
15899 cat >conftest.$ac_ext <<_ACEOF
15902 cat confdefs.h >>conftest.$ac_ext
15903 cat >>conftest.$ac_ext <<_ACEOF
15904 /* end confdefs.h. */
15905 #include <sys/types.h>
15906 #include <sys/time.h>
15912 if ((struct tm *) 0)
15918 rm -f conftest.$ac_objext
15919 if { (ac_try="$ac_compile"
15920 case "(($ac_try" in
15921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15922 *) ac_try_echo=$ac_try;;
15924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15925 (eval "$ac_compile") 2>conftest.er1
15927 grep -v '^ *+' conftest.er1 >conftest.err
15929 cat conftest.err >&5
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); } && {
15932 test -z "$ac_c_werror_flag" ||
15933 test ! -s conftest.err
15934 } && test -s conftest.$ac_objext; then
15935 ac_cv_header_time=yes
15937 echo "$as_me: failed program was:" >&5
15938 sed 's/^/| /' conftest.$ac_ext >&5
15940 ac_cv_header_time=no
15943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15945 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15946 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15947 if test $ac_cv_header_time = yes; then
15949 cat >>confdefs.h <<\_ACEOF
15950 #define TIME_WITH_SYS_TIME 1
15955 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15956 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15957 if test "${ac_cv_header_stdc+set}" = set; then
15958 echo $ECHO_N "(cached) $ECHO_C" >&6
15960 cat >conftest.$ac_ext <<_ACEOF
15963 cat confdefs.h >>conftest.$ac_ext
15964 cat >>conftest.$ac_ext <<_ACEOF
15965 /* end confdefs.h. */
15966 #include <stdlib.h>
15967 #include <stdarg.h>
15968 #include <string.h>
15979 rm -f conftest.$ac_objext
15980 if { (ac_try="$ac_compile"
15981 case "(($ac_try" in
15982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15983 *) ac_try_echo=$ac_try;;
15985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15986 (eval "$ac_compile") 2>conftest.er1
15988 grep -v '^ *+' conftest.er1 >conftest.err
15990 cat conftest.err >&5
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); } && {
15993 test -z "$ac_c_werror_flag" ||
15994 test ! -s conftest.err
15995 } && test -s conftest.$ac_objext; then
15996 ac_cv_header_stdc=yes
15998 echo "$as_me: failed program was:" >&5
15999 sed 's/^/| /' conftest.$ac_ext >&5
16001 ac_cv_header_stdc=no
16004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16006 if test $ac_cv_header_stdc = yes; then
16007 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16008 cat >conftest.$ac_ext <<_ACEOF
16011 cat confdefs.h >>conftest.$ac_ext
16012 cat >>conftest.$ac_ext <<_ACEOF
16013 /* end confdefs.h. */
16014 #include <string.h>
16017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16018 $EGREP "memchr" >/dev/null 2>&1; then
16021 ac_cv_header_stdc=no
16027 if test $ac_cv_header_stdc = yes; then
16028 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16029 cat >conftest.$ac_ext <<_ACEOF
16032 cat confdefs.h >>conftest.$ac_ext
16033 cat >>conftest.$ac_ext <<_ACEOF
16034 /* end confdefs.h. */
16035 #include <stdlib.h>
16038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16039 $EGREP "free" >/dev/null 2>&1; then
16042 ac_cv_header_stdc=no
16048 if test $ac_cv_header_stdc = yes; then
16049 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16050 if test "$cross_compiling" = yes; then
16053 cat >conftest.$ac_ext <<_ACEOF
16056 cat confdefs.h >>conftest.$ac_ext
16057 cat >>conftest.$ac_ext <<_ACEOF
16058 /* end confdefs.h. */
16060 #include <stdlib.h>
16061 #if ((' ' & 0x0FF) == 0x020)
16062 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16063 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16065 # define ISLOWER(c) \
16066 (('a' <= (c) && (c) <= 'i') \
16067 || ('j' <= (c) && (c) <= 'r') \
16068 || ('s' <= (c) && (c) <= 'z'))
16069 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16072 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16077 for (i = 0; i < 256; i++)
16078 if (XOR (islower (i), ISLOWER (i))
16079 || toupper (i) != TOUPPER (i))
16084 rm -f conftest$ac_exeext
16085 if { (ac_try="$ac_link"
16086 case "(($ac_try" in
16087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16088 *) ac_try_echo=$ac_try;;
16090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16091 (eval "$ac_link") 2>&5
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16095 { (case "(($ac_try" in
16096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16097 *) ac_try_echo=$ac_try;;
16099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16100 (eval "$ac_try") 2>&5
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); }; }; then
16106 echo "$as_me: program exited with status $ac_status" >&5
16107 echo "$as_me: failed program was:" >&5
16108 sed 's/^/| /' conftest.$ac_ext >&5
16110 ( exit $ac_status )
16111 ac_cv_header_stdc=no
16113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16119 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16120 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
16121 if test $ac_cv_header_stdc = yes; then
16123 cat >>confdefs.h <<\_ACEOF
16124 #define STDC_HEADERS 1
16134 ac_header_dirent=no
16135 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16136 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16137 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
16138 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
16139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16140 echo $ECHO_N "(cached) $ECHO_C" >&6
16142 cat >conftest.$ac_ext <<_ACEOF
16145 cat confdefs.h >>conftest.$ac_ext
16146 cat >>conftest.$ac_ext <<_ACEOF
16147 /* end confdefs.h. */
16148 #include <sys/types.h>
16160 rm -f conftest.$ac_objext
16161 if { (ac_try="$ac_compile"
16162 case "(($ac_try" in
16163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16164 *) ac_try_echo=$ac_try;;
16166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16167 (eval "$ac_compile") 2>conftest.er1
16169 grep -v '^ *+' conftest.er1 >conftest.err
16171 cat conftest.err >&5
16172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 (exit $ac_status); } && {
16174 test -z "$ac_c_werror_flag" ||
16175 test ! -s conftest.err
16176 } && test -s conftest.$ac_objext; then
16177 eval "$as_ac_Header=yes"
16179 echo "$as_me: failed program was:" >&5
16180 sed 's/^/| /' conftest.$ac_ext >&5
16182 eval "$as_ac_Header=no"
16185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16187 ac_res=`eval echo '${'$as_ac_Header'}'`
16188 { echo "$as_me:$LINENO: result: $ac_res" >&5
16189 echo "${ECHO_T}$ac_res" >&6; }
16190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16191 cat >>confdefs.h <<_ACEOF
16192 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16195 ac_header_dirent=$ac_hdr; break
16199 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16200 if test $ac_header_dirent = dirent.h; then
16201 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16202 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16203 if test "${ac_cv_search_opendir+set}" = set; then
16204 echo $ECHO_N "(cached) $ECHO_C" >&6
16206 ac_func_search_save_LIBS=$LIBS
16207 cat >conftest.$ac_ext <<_ACEOF
16210 cat confdefs.h >>conftest.$ac_ext
16211 cat >>conftest.$ac_ext <<_ACEOF
16212 /* end confdefs.h. */
16214 /* Override any GCC internal prototype to avoid an error.
16215 Use char because int might match the return type of a GCC
16216 builtin and then its argument prototype would still apply. */
16229 for ac_lib in '' dir; do
16230 if test -z "$ac_lib"; then
16231 ac_res="none required"
16234 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16236 rm -f conftest.$ac_objext conftest$ac_exeext
16237 if { (ac_try="$ac_link"
16238 case "(($ac_try" in
16239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240 *) ac_try_echo=$ac_try;;
16242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16243 (eval "$ac_link") 2>conftest.er1
16245 grep -v '^ *+' conftest.er1 >conftest.err
16247 cat conftest.err >&5
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); } && {
16250 test -z "$ac_c_werror_flag" ||
16251 test ! -s conftest.err
16252 } && test -s conftest$ac_exeext &&
16253 $as_test_x conftest$ac_exeext; then
16254 ac_cv_search_opendir=$ac_res
16256 echo "$as_me: failed program was:" >&5
16257 sed 's/^/| /' conftest.$ac_ext >&5
16262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16264 if test "${ac_cv_search_opendir+set}" = set; then
16268 if test "${ac_cv_search_opendir+set}" = set; then
16271 ac_cv_search_opendir=no
16273 rm conftest.$ac_ext
16274 LIBS=$ac_func_search_save_LIBS
16276 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16277 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16278 ac_res=$ac_cv_search_opendir
16279 if test "$ac_res" != no; then
16280 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16285 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16286 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16287 if test "${ac_cv_search_opendir+set}" = set; then
16288 echo $ECHO_N "(cached) $ECHO_C" >&6
16290 ac_func_search_save_LIBS=$LIBS
16291 cat >conftest.$ac_ext <<_ACEOF
16294 cat confdefs.h >>conftest.$ac_ext
16295 cat >>conftest.$ac_ext <<_ACEOF
16296 /* end confdefs.h. */
16298 /* Override any GCC internal prototype to avoid an error.
16299 Use char because int might match the return type of a GCC
16300 builtin and then its argument prototype would still apply. */
16313 for ac_lib in '' x; do
16314 if test -z "$ac_lib"; then
16315 ac_res="none required"
16318 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16320 rm -f conftest.$ac_objext conftest$ac_exeext
16321 if { (ac_try="$ac_link"
16322 case "(($ac_try" in
16323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16324 *) ac_try_echo=$ac_try;;
16326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16327 (eval "$ac_link") 2>conftest.er1
16329 grep -v '^ *+' conftest.er1 >conftest.err
16331 cat conftest.err >&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); } && {
16334 test -z "$ac_c_werror_flag" ||
16335 test ! -s conftest.err
16336 } && test -s conftest$ac_exeext &&
16337 $as_test_x conftest$ac_exeext; then
16338 ac_cv_search_opendir=$ac_res
16340 echo "$as_me: failed program was:" >&5
16341 sed 's/^/| /' conftest.$ac_ext >&5
16346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16348 if test "${ac_cv_search_opendir+set}" = set; then
16352 if test "${ac_cv_search_opendir+set}" = set; then
16355 ac_cv_search_opendir=no
16357 rm conftest.$ac_ext
16358 LIBS=$ac_func_search_save_LIBS
16360 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16361 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16362 ac_res=$ac_cv_search_opendir
16363 if test "$ac_res" != no; then
16364 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16370 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
16371 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
16372 if test "${ac_cv_header_sys_wait_h+set}" = set; then
16373 echo $ECHO_N "(cached) $ECHO_C" >&6
16375 cat >conftest.$ac_ext <<_ACEOF
16378 cat confdefs.h >>conftest.$ac_ext
16379 cat >>conftest.$ac_ext <<_ACEOF
16380 /* end confdefs.h. */
16381 #include <sys/types.h>
16382 #include <sys/wait.h>
16383 #ifndef WEXITSTATUS
16384 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16387 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16395 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16400 rm -f conftest.$ac_objext
16401 if { (ac_try="$ac_compile"
16402 case "(($ac_try" in
16403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404 *) ac_try_echo=$ac_try;;
16406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16407 (eval "$ac_compile") 2>conftest.er1
16409 grep -v '^ *+' conftest.er1 >conftest.err
16411 cat conftest.err >&5
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); } && {
16414 test -z "$ac_c_werror_flag" ||
16415 test ! -s conftest.err
16416 } && test -s conftest.$ac_objext; then
16417 ac_cv_header_sys_wait_h=yes
16419 echo "$as_me: failed program was:" >&5
16420 sed 's/^/| /' conftest.$ac_ext >&5
16422 ac_cv_header_sys_wait_h=no
16425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16427 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
16428 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
16429 if test $ac_cv_header_sys_wait_h = yes; then
16431 cat >>confdefs.h <<\_ACEOF
16432 #define HAVE_SYS_WAIT_H 1
16454 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
16456 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16461 echo $ECHO_N "(cached) $ECHO_C" >&6
16463 ac_res=`eval echo '${'$as_ac_Header'}'`
16464 { echo "$as_me:$LINENO: result: $ac_res" >&5
16465 echo "${ECHO_T}$ac_res" >&6; }
16467 # Is the header compilable?
16468 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16470 cat >conftest.$ac_ext <<_ACEOF
16473 cat confdefs.h >>conftest.$ac_ext
16474 cat >>conftest.$ac_ext <<_ACEOF
16475 /* end confdefs.h. */
16476 $ac_includes_default
16477 #include <$ac_header>
16479 rm -f conftest.$ac_objext
16480 if { (ac_try="$ac_compile"
16481 case "(($ac_try" in
16482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16483 *) ac_try_echo=$ac_try;;
16485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16486 (eval "$ac_compile") 2>conftest.er1
16488 grep -v '^ *+' conftest.er1 >conftest.err
16490 cat conftest.err >&5
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); } && {
16493 test -z "$ac_c_werror_flag" ||
16494 test ! -s conftest.err
16495 } && test -s conftest.$ac_objext; then
16496 ac_header_compiler=yes
16498 echo "$as_me: failed program was:" >&5
16499 sed 's/^/| /' conftest.$ac_ext >&5
16501 ac_header_compiler=no
16504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16505 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16506 echo "${ECHO_T}$ac_header_compiler" >&6; }
16508 # Is the header present?
16509 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16511 cat >conftest.$ac_ext <<_ACEOF
16514 cat confdefs.h >>conftest.$ac_ext
16515 cat >>conftest.$ac_ext <<_ACEOF
16516 /* end confdefs.h. */
16517 #include <$ac_header>
16519 if { (ac_try="$ac_cpp conftest.$ac_ext"
16520 case "(($ac_try" in
16521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16522 *) ac_try_echo=$ac_try;;
16524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16527 grep -v '^ *+' conftest.er1 >conftest.err
16529 cat conftest.err >&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); } >/dev/null && {
16532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16533 test ! -s conftest.err
16535 ac_header_preproc=yes
16537 echo "$as_me: failed program was:" >&5
16538 sed 's/^/| /' conftest.$ac_ext >&5
16540 ac_header_preproc=no
16543 rm -f conftest.err conftest.$ac_ext
16544 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16545 echo "${ECHO_T}$ac_header_preproc" >&6; }
16547 # So? What about this header?
16548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16550 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16551 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16553 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16554 ac_header_preproc=yes
16557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16558 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16560 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16561 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16562 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16563 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16564 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16567 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16568 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16572 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16575 echo $ECHO_N "(cached) $ECHO_C" >&6
16577 eval "$as_ac_Header=\$ac_header_preproc"
16579 ac_res=`eval echo '${'$as_ac_Header'}'`
16580 { echo "$as_me:$LINENO: result: $ac_res" >&5
16581 echo "${ECHO_T}$ac_res" >&6; }
16584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16585 cat >>confdefs.h <<_ACEOF
16586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16595 { echo "$as_me:$LINENO: checking whether you have ss_family in struct sockaddr_storage" >&5
16596 echo $ECHO_N "checking whether you have ss_family in struct sockaddr_storage... $ECHO_C" >&6; }
16597 if test "${ipv6_cv_ss_family+set}" = set; then
16598 echo $ECHO_N "(cached) $ECHO_C" >&6
16600 cat >conftest.$ac_ext <<_ACEOF
16603 cat confdefs.h >>conftest.$ac_ext
16604 cat >>conftest.$ac_ext <<_ACEOF
16605 /* end confdefs.h. */
16606 #include <sys/types.h>
16607 #include <sys/socket.h>
16611 struct sockaddr_storage ss; int i = ss.ss_family;
16616 rm -f conftest.$ac_objext
16617 if { (ac_try="$ac_compile"
16618 case "(($ac_try" in
16619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16620 *) ac_try_echo=$ac_try;;
16622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16623 (eval "$ac_compile") 2>conftest.er1
16625 grep -v '^ *+' conftest.er1 >conftest.err
16627 cat conftest.err >&5
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); } && {
16630 test -z "$ac_c_werror_flag" ||
16631 test ! -s conftest.err
16632 } && test -s conftest.$ac_objext; then
16633 ipv6_cv_ss_family=yes
16635 echo "$as_me: failed program was:" >&5
16636 sed 's/^/| /' conftest.$ac_ext >&5
16638 ipv6_cv_ss_family=no
16641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16643 if test $ipv6_cv_ss_family = yes; then
16645 cat >>confdefs.h <<\_ACEOF
16646 #define HAVE_SS_FAMILY
16652 { echo "$as_me:$LINENO: result: $ipv6_cv_ss_family" >&5
16653 echo "${ECHO_T}$ipv6_cv_ss_family" >&6; }
16655 { echo "$as_me:$LINENO: checking whether you have sa_len in struct sockaddr" >&5
16656 echo $ECHO_N "checking whether you have sa_len in struct sockaddr... $ECHO_C" >&6; }
16657 if test "${ipv6_cv_sa_len+set}" = set; then
16658 echo $ECHO_N "(cached) $ECHO_C" >&6
16660 cat >conftest.$ac_ext <<_ACEOF
16663 cat confdefs.h >>conftest.$ac_ext
16664 cat >>conftest.$ac_ext <<_ACEOF
16665 /* end confdefs.h. */
16666 #include <sys/types.h>
16667 #include <sys/socket.h>
16671 struct sockaddr sa; int i = sa.sa_len;
16676 rm -f conftest.$ac_objext
16677 if { (ac_try="$ac_compile"
16678 case "(($ac_try" in
16679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16680 *) ac_try_echo=$ac_try;;
16682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16683 (eval "$ac_compile") 2>conftest.er1
16685 grep -v '^ *+' conftest.er1 >conftest.err
16687 cat conftest.err >&5
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); } && {
16690 test -z "$ac_c_werror_flag" ||
16691 test ! -s conftest.err
16692 } && test -s conftest.$ac_objext; then
16695 echo "$as_me: failed program was:" >&5
16696 sed 's/^/| /' conftest.$ac_ext >&5
16701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16703 if test $ipv6_cv_sa_len = yes; then
16705 cat >>confdefs.h <<\_ACEOF
16706 #define HAVE_SOCKADDR_SA_LEN
16712 { echo "$as_me:$LINENO: result: $ipv6_cv_sa_len" >&5
16713 echo "${ECHO_T}$ipv6_cv_sa_len" >&6; }
16715 { echo "$as_me:$LINENO: checking for socklen_t" >&5
16716 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
16717 if test "${ipv6_cv_socklen_t+set}" = set; then
16718 echo $ECHO_N "(cached) $ECHO_C" >&6
16720 cat >conftest.$ac_ext <<_ACEOF
16723 cat confdefs.h >>conftest.$ac_ext
16724 cat >>conftest.$ac_ext <<_ACEOF
16725 /* end confdefs.h. */
16726 #include <sys/types.h>
16727 #include <sys/socket.h>
16736 rm -f conftest.$ac_objext conftest$ac_exeext
16737 if { (ac_try="$ac_link"
16738 case "(($ac_try" in
16739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16740 *) ac_try_echo=$ac_try;;
16742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16743 (eval "$ac_link") 2>conftest.er1
16745 grep -v '^ *+' conftest.er1 >conftest.err
16747 cat conftest.err >&5
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); } && {
16750 test -z "$ac_c_werror_flag" ||
16751 test ! -s conftest.err
16752 } && test -s conftest$ac_exeext &&
16753 $as_test_x conftest$ac_exeext; then
16754 ipv6_cv_socklen_t=yes
16756 echo "$as_me: failed program was:" >&5
16757 sed 's/^/| /' conftest.$ac_ext >&5
16759 ipv6_cv_socklen_t=no
16762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16763 conftest$ac_exeext conftest.$ac_ext
16765 if test $ipv6_cv_socklen_t = yes; then
16767 cat >>confdefs.h <<\_ACEOF
16768 #define HAVE_SOCKLEN_T
16774 { echo "$as_me:$LINENO: result: $ipv6_cv_socklen_t" >&5
16775 echo "${ECHO_T}$ipv6_cv_socklen_t" >&6; }
16796 for ac_func in gethostname getdomainname getpwnam getspnam gettimeofday inet_aton memcpy mkdir select socket strchr strdup strerror strspn strstr strtol jrand48
16798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16799 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16801 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16802 echo $ECHO_N "(cached) $ECHO_C" >&6
16804 cat >conftest.$ac_ext <<_ACEOF
16807 cat confdefs.h >>conftest.$ac_ext
16808 cat >>conftest.$ac_ext <<_ACEOF
16809 /* end confdefs.h. */
16810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16812 #define $ac_func innocuous_$ac_func
16814 /* System header to define __stub macros and hopefully few prototypes,
16815 which can conflict with char $ac_func (); below.
16816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16817 <limits.h> exists even on freestanding compilers. */
16820 # include <limits.h>
16822 # include <assert.h>
16827 /* Override any GCC internal prototype to avoid an error.
16828 Use char because int might match the return type of a GCC
16829 builtin and then its argument prototype would still apply. */
16834 /* The GNU C library defines this for functions which it implements
16835 to always fail with ENOSYS. Some functions are actually named
16836 something starting with __ and the normal name is an alias. */
16837 #if defined __stub_$ac_func || defined __stub___$ac_func
16844 return $ac_func ();
16849 rm -f conftest.$ac_objext conftest$ac_exeext
16850 if { (ac_try="$ac_link"
16851 case "(($ac_try" in
16852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16853 *) ac_try_echo=$ac_try;;
16855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16856 (eval "$ac_link") 2>conftest.er1
16858 grep -v '^ *+' conftest.er1 >conftest.err
16860 cat conftest.err >&5
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); } && {
16863 test -z "$ac_c_werror_flag" ||
16864 test ! -s conftest.err
16865 } && test -s conftest$ac_exeext &&
16866 $as_test_x conftest$ac_exeext; then
16867 eval "$as_ac_var=yes"
16869 echo "$as_me: failed program was:" >&5
16870 sed 's/^/| /' conftest.$ac_ext >&5
16872 eval "$as_ac_var=no"
16875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16876 conftest$ac_exeext conftest.$ac_ext
16878 ac_res=`eval echo '${'$as_ac_var'}'`
16879 { echo "$as_me:$LINENO: result: $ac_res" >&5
16880 echo "${ECHO_T}$ac_res" >&6; }
16881 if test `eval echo '${'$as_ac_var'}'` = yes; then
16882 cat >>confdefs.h <<_ACEOF
16883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16890 if test $enable_cmulocal = yes; then
16891 { echo "$as_me:$LINENO: WARNING: enabling CMU local kludges" >&5
16892 echo "$as_me: WARNING: enabling CMU local kludges" >&2;}
16894 cat >>confdefs.h <<\_ACEOF
16895 #define KRB4_IGNORE_IP_ADDRESS
16899 cat >>confdefs.h <<_ACEOF
16900 #define PREFER_MECH "KERBEROS_V4"
16905 cat >conftest.$ac_ext <<_ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h. */
16911 #include <sys/socket.h>
16914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16915 $EGREP "sockaddr_storage" >/dev/null 2>&1; then
16918 cat >>confdefs.h <<\_ACEOF
16919 #define HAVE_STRUCT_SOCKADDR_STORAGE
16928 subdirs="$subdirs saslauthd"
16937 ac_config_headers="$ac_config_headers config.h"
16940 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"
16942 cat >confcache <<\_ACEOF
16943 # This file is a shell script that caches the results of configure
16944 # tests run on this system so they can be shared between configure
16945 # scripts and configure runs, see configure's option --config-cache.
16946 # It is not useful on other systems. If it contains results you don't
16947 # want to keep, you may remove or edit it.
16949 # config.status only pays attention to the cache file if you give it
16950 # the --recheck option to rerun configure.
16952 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16953 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16954 # following values.
16958 # The following way of writing the cache mishandles newlines in values,
16959 # but we know of no workaround that is simple, portable, and efficient.
16960 # So, we kill variables containing newlines.
16961 # Ultrix sh set writes to stderr and can't be redirected directly,
16962 # and sets the high bit in the cache file unless we assign to the vars.
16964 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16965 eval ac_val=\$$ac_var
16969 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16970 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16973 _ | IFS | as_nl) ;; #(
16974 *) $as_unset $ac_var ;;
16980 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16981 *${as_nl}ac_space=\ *)
16982 # `set' does not quote correctly, so add quotes (double-quote
16983 # substitution turns \\\\ into \\, and sed turns \\ into \).
16986 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16989 # `set' quotes correctly as required by POSIX, so do not add quotes.
16990 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16999 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17001 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17003 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17004 if test -w "$cache_file"; then
17005 test "x$cache_file" != "x/dev/null" &&
17006 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
17007 echo "$as_me: updating cache $cache_file" >&6;}
17008 cat confcache >$cache_file
17010 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17011 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17016 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17017 # Let make expand exec_prefix.
17018 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17020 DEFS=-DHAVE_CONFIG_H
17024 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17025 # 1. Remove the extension, and $U if already installed.
17026 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17027 ac_i=`echo "$ac_i" | sed "$ac_script"`
17028 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17029 # will be set to the directory where LIBOBJS objects are built.
17030 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17031 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17033 LIBOBJS=$ac_libobjs
17035 LTLIBOBJS=$ac_ltlibobjs
17038 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17039 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17040 Usually this means the macro was only invoked conditionally." >&5
17041 echo "$as_me: error: conditional \"AMDEP\" was never defined.
17042 Usually this means the macro was only invoked conditionally." >&2;}
17043 { (exit 1); exit 1; }; }
17045 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17046 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17047 Usually this means the macro was only invoked conditionally." >&5
17048 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17049 Usually this means the macro was only invoked conditionally." >&2;}
17050 { (exit 1); exit 1; }; }
17052 if test -z "${JAVA_TRUE}" && test -z "${JAVA_FALSE}"; then
17053 { { echo "$as_me:$LINENO: error: conditional \"JAVA\" was never defined.
17054 Usually this means the macro was only invoked conditionally." >&5
17055 echo "$as_me: error: conditional \"JAVA\" was never defined.
17056 Usually this means the macro was only invoked conditionally." >&2;}
17057 { (exit 1); exit 1; }; }
17059 if test -z "${SAMPLE_TRUE}" && test -z "${SAMPLE_FALSE}"; then
17060 { { echo "$as_me:$LINENO: error: conditional \"SAMPLE\" was never defined.
17061 Usually this means the macro was only invoked conditionally." >&5
17062 echo "$as_me: error: conditional \"SAMPLE\" was never defined.
17063 Usually this means the macro was only invoked conditionally." >&2;}
17064 { (exit 1); exit 1; }; }
17066 if test -z "${NO_SASL_DB_MANS_TRUE}" && test -z "${NO_SASL_DB_MANS_FALSE}"; then
17067 { { echo "$as_me:$LINENO: error: conditional \"NO_SASL_DB_MANS\" was never defined.
17068 Usually this means the macro was only invoked conditionally." >&5
17069 echo "$as_me: error: conditional \"NO_SASL_DB_MANS\" was never defined.
17070 Usually this means the macro was only invoked conditionally." >&2;}
17071 { (exit 1); exit 1; }; }
17073 if test -z "${SASLAUTHD_TRUE}" && test -z "${SASLAUTHD_FALSE}"; then
17074 { { echo "$as_me:$LINENO: error: conditional \"SASLAUTHD\" was never defined.
17075 Usually this means the macro was only invoked conditionally." >&5
17076 echo "$as_me: error: conditional \"SASLAUTHD\" was never defined.
17077 Usually this means the macro was only invoked conditionally." >&2;}
17078 { (exit 1); exit 1; }; }
17080 if test -z "${PWCHECK_TRUE}" && test -z "${PWCHECK_FALSE}"; then
17081 { { echo "$as_me:$LINENO: error: conditional \"PWCHECK\" was never defined.
17082 Usually this means the macro was only invoked conditionally." >&5
17083 echo "$as_me: error: conditional \"PWCHECK\" was never defined.
17084 Usually this means the macro was only invoked conditionally." >&2;}
17085 { (exit 1); exit 1; }; }
17087 if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then
17088 { { echo "$as_me:$LINENO: error: conditional \"MACOSX\" was never defined.
17089 Usually this means the macro was only invoked conditionally." >&5
17090 echo "$as_me: error: conditional \"MACOSX\" was never defined.
17091 Usually this means the macro was only invoked conditionally." >&2;}
17092 { (exit 1); exit 1; }; }
17095 : ${CONFIG_STATUS=./config.status}
17096 ac_clean_files_save=$ac_clean_files
17097 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17098 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17099 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17100 cat >$CONFIG_STATUS <<_ACEOF
17102 # Generated by $as_me.
17103 # Run this file to recreate the current configuration.
17104 # Compiler output produced by configure, useful for debugging
17105 # configure, is in config.log if it exists.
17108 ac_cs_recheck=false
17110 SHELL=\${CONFIG_SHELL-$SHELL}
17113 cat >>$CONFIG_STATUS <<\_ACEOF
17114 ## --------------------- ##
17115 ## M4sh Initialization. ##
17116 ## --------------------- ##
17118 # Be more Bourne compatible
17119 DUALCASE=1; export DUALCASE # for MKS sh
17120 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17123 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17124 # is contrary to our usage. Disable this feature.
17125 alias -g '${1+"$@"}'='"$@"'
17126 setopt NO_GLOB_SUBST
17128 case `(set -o) 2>/dev/null` in
17129 *posix*) set -o posix ;;
17138 # Avoid depending upon Character Ranges.
17139 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17140 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17141 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17142 as_cr_digits='0123456789'
17143 as_cr_alnum=$as_cr_Letters$as_cr_digits
17145 # The user is always right.
17146 if test "${PATH_SEPARATOR+set}" != set; then
17147 echo "#! /bin/sh" >conf$$.sh
17148 echo "exit 0" >>conf$$.sh
17150 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17158 # Support unset when possible.
17159 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17167 # We need space, tab and new line, in precisely that order. Quoting is
17168 # there to prevent editors from complaining about space-tab.
17169 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17170 # splitting by setting IFS to empty value.)
17175 # Find who we are. Look in the path if we contain no directory separator.
17177 *[\\/]* ) as_myself=$0 ;;
17178 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17179 for as_dir in $PATH
17182 test -z "$as_dir" && as_dir=.
17183 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17189 # We did not find ourselves, most probably we were run as `sh COMMAND'
17190 # in which case we are not to be found in the path.
17191 if test "x$as_myself" = x; then
17194 if test ! -f "$as_myself"; then
17195 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17196 { (exit 1); exit 1; }
17199 # Work around bugs in pre-3.0 UWIN ksh.
17200 for as_var in ENV MAIL MAILPATH
17201 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17209 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17210 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17211 LC_TELEPHONE LC_TIME
17213 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17214 eval $as_var=C; export $as_var
17216 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17220 # Required to use basename.
17221 if expr a : '\(a\)' >/dev/null 2>&1 &&
17222 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17228 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17229 as_basename=basename
17235 # Name of the executable.
17236 as_me=`$as_basename -- "$0" ||
17237 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17238 X"$0" : 'X\(//\)$' \| \
17239 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17241 sed '/^.*\/\([^/][^/]*\)\/*$/{
17260 as_lineno_1=$LINENO
17261 as_lineno_2=$LINENO
17262 test "x$as_lineno_1" != "x$as_lineno_2" &&
17263 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17265 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17266 # uniformly replaced by the line number. The first 'sed' inserts a
17267 # line-number line after each line using $LINENO; the second 'sed'
17268 # does the real work. The second script uses 'N' to pair each
17269 # line-number line with the line containing $LINENO, and appends
17270 # trailing '-' during substitution so that $LINENO is not a special
17271 # case at line end.
17272 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17273 # scripts with optimization help from Paolo Bonzini. Blame Lee
17274 # E. McMahon (1931-1989) for sed's syntax. :-)
17286 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17289 ' >$as_me.lineno &&
17290 chmod +x "$as_me.lineno" ||
17291 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17292 { (exit 1); exit 1; }; }
17294 # Don't try to exec as it changes $[0], causing all sort of problems
17295 # (the dirname of $[0] is not the place where we might find the
17296 # original and so on. Autoconf is especially sensitive to this).
17297 . "./$as_me.lineno"
17298 # Exit status is that of the last command.
17303 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17309 ECHO_C= ECHO_N= ECHO_T=
17310 case `echo -n x` in
17312 case `echo 'x\c'` in
17313 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17320 if expr a : '\(a\)' >/dev/null 2>&1 &&
17321 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17327 rm -f conf$$ conf$$.exe conf$$.file
17328 if test -d conf$$.dir; then
17329 rm -f conf$$.dir/conf$$.file
17335 if ln -s conf$$.file conf$$ 2>/dev/null; then
17337 # ... but there are two gotchas:
17338 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17339 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17340 # In both cases, we have to default to `cp -p'.
17341 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17343 elif ln conf$$.file conf$$ 2>/dev/null; then
17348 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17349 rmdir conf$$.dir 2>/dev/null
17351 if mkdir -p . 2>/dev/null; then
17354 test -d ./-p && rmdir ./-p
17358 if test -x / >/dev/null 2>&1; then
17359 as_test_x='test -x'
17361 if ls -dL / >/dev/null 2>&1; then
17368 if test -d "$1"; then
17374 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17375 ???[sx]*):;;*)false;;esac;fi
17379 as_executable_p=$as_test_x
17381 # Sed expression to map a string onto a valid CPP name.
17382 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17384 # Sed expression to map a string onto a valid variable name.
17385 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17390 # Save the log message, to keep $[0] and so on meaningful, and to
17391 # report actual input values of CONFIG_FILES etc. instead of their
17392 # values after options handling.
17394 This file was extended by $as_me, which was
17395 generated by GNU Autoconf 2.61. Invocation command line was
17397 CONFIG_FILES = $CONFIG_FILES
17398 CONFIG_HEADERS = $CONFIG_HEADERS
17399 CONFIG_LINKS = $CONFIG_LINKS
17400 CONFIG_COMMANDS = $CONFIG_COMMANDS
17403 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17408 cat >>$CONFIG_STATUS <<_ACEOF
17409 # Files that config.status was made for.
17410 config_files="$ac_config_files"
17411 config_headers="$ac_config_headers"
17412 config_commands="$ac_config_commands"
17416 cat >>$CONFIG_STATUS <<\_ACEOF
17418 \`$as_me' instantiates files from templates according to the
17419 current configuration.
17421 Usage: $0 [OPTIONS] [FILE]...
17423 -h, --help print this help, then exit
17424 -V, --version print version number and configuration settings, then exit
17425 -q, --quiet do not print progress messages
17426 -d, --debug don't remove temporary files
17427 --recheck update $as_me by reconfiguring in the same conditions
17428 --file=FILE[:TEMPLATE]
17429 instantiate the configuration file FILE
17430 --header=FILE[:TEMPLATE]
17431 instantiate the configuration header FILE
17433 Configuration files:
17436 Configuration headers:
17439 Configuration commands:
17442 Report bugs to <bug-autoconf@gnu.org>."
17445 cat >>$CONFIG_STATUS <<_ACEOF
17448 configured by $0, generated by GNU Autoconf 2.61,
17449 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17451 Copyright (C) 2006 Free Software Foundation, Inc.
17452 This config.status script is free software; the Free Software Foundation
17453 gives unlimited permission to copy, distribute and modify it."
17461 cat >>$CONFIG_STATUS <<\_ACEOF
17462 # If no file are specified by the user, then we need to provide default
17463 # value. By we need to know if files were specified by the user.
17469 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17470 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17481 # Handling of the options.
17482 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17484 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17485 echo "$ac_cs_version"; exit ;;
17486 --debug | --debu | --deb | --de | --d | -d )
17488 --file | --fil | --fi | --f )
17490 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17491 ac_need_defaults=false;;
17492 --header | --heade | --head | --hea )
17494 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17495 ac_need_defaults=false;;
17497 # Conflict between --help and --header
17498 { echo "$as_me: error: ambiguous option: $1
17499 Try \`$0 --help' for more information." >&2
17500 { (exit 1); exit 1; }; };;
17501 --help | --hel | -h )
17502 echo "$ac_cs_usage"; exit ;;
17503 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17504 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17507 # This is an error.
17508 -*) { echo "$as_me: error: unrecognized option: $1
17509 Try \`$0 --help' for more information." >&2
17510 { (exit 1); exit 1; }; } ;;
17512 *) ac_config_targets="$ac_config_targets $1"
17513 ac_need_defaults=false ;;
17519 ac_configure_extra_args=
17521 if $ac_cs_silent; then
17523 ac_configure_extra_args="$ac_configure_extra_args --silent"
17527 cat >>$CONFIG_STATUS <<_ACEOF
17528 if \$ac_cs_recheck; then
17529 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17530 CONFIG_SHELL=$SHELL
17531 export CONFIG_SHELL
17532 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17536 cat >>$CONFIG_STATUS <<\_ACEOF
17540 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17541 ## Running $as_me. ##
17547 cat >>$CONFIG_STATUS <<_ACEOF
17551 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17555 cat >>$CONFIG_STATUS <<\_ACEOF
17557 # Handling of arguments.
17558 for ac_config_target in $ac_config_targets
17560 case $ac_config_target in
17561 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17562 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17563 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17564 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17565 "sasldb/Makefile") CONFIG_FILES="$CONFIG_FILES sasldb/Makefile" ;;
17566 "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
17567 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
17568 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
17569 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17570 "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
17571 "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
17572 "java/CyrusSasl/Makefile") CONFIG_FILES="$CONFIG_FILES java/CyrusSasl/Makefile" ;;
17573 "java/Test/Makefile") CONFIG_FILES="$CONFIG_FILES java/Test/Makefile" ;;
17574 "java/javax/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/Makefile" ;;
17575 "java/javax/security/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/security/Makefile" ;;
17576 "java/javax/security/auth/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/security/auth/Makefile" ;;
17577 "java/javax/security/auth/callback/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/security/auth/callback/Makefile" ;;
17578 "pwcheck/Makefile") CONFIG_FILES="$CONFIG_FILES pwcheck/Makefile" ;;
17579 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
17581 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17582 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17583 { (exit 1); exit 1; }; };;
17588 # If the user did not use the arguments to specify the items to instantiate,
17589 # then the envvar interface is used. Set only those that are not.
17590 # We use the long form for the default assignment because of an extremely
17591 # bizarre bug on SunOS 4.1.3.
17592 if $ac_need_defaults; then
17593 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17594 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17595 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17598 # Have a temporary directory for convenience. Make it in the build tree
17599 # simply because there is no reason against having it here, and in addition,
17600 # creating and moving files from /tmp can sometimes cause problems.
17601 # Hook for its removal unless debugging.
17602 # Note that there is a small window in which the directory will not be cleaned:
17603 # after its creation but before its name has been assigned to `$tmp'.
17607 trap 'exit_status=$?
17608 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17610 trap '{ (exit 1); exit 1; }' 1 2 13 15
17612 # Create a (secure) tmp directory for tmp files.
17615 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17616 test -n "$tmp" && test -d "$tmp"
17619 tmp=./conf$$-$RANDOM
17620 (umask 077 && mkdir "$tmp")
17623 echo "$me: cannot create a temporary directory in ." >&2
17624 { (exit 1); exit 1; }
17628 # Set up the sed scripts for CONFIG_FILES section.
17631 # No need to generate the scripts if there are no CONFIG_FILES.
17632 # This happens for instance when ./config.status config.h
17633 if test -n "$CONFIG_FILES"; then
17640 for ac_last_try in false false false false false :; do
17641 cat >conf$$subs.sed <<_ACEOF
17642 SHELL!$SHELL$ac_delim
17643 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
17644 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
17645 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
17646 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
17647 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
17648 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
17649 exec_prefix!$exec_prefix$ac_delim
17650 prefix!$prefix$ac_delim
17651 program_transform_name!$program_transform_name$ac_delim
17652 bindir!$bindir$ac_delim
17653 sbindir!$sbindir$ac_delim
17654 libexecdir!$libexecdir$ac_delim
17655 datarootdir!$datarootdir$ac_delim
17656 datadir!$datadir$ac_delim
17657 sysconfdir!$sysconfdir$ac_delim
17658 sharedstatedir!$sharedstatedir$ac_delim
17659 localstatedir!$localstatedir$ac_delim
17660 includedir!$includedir$ac_delim
17661 oldincludedir!$oldincludedir$ac_delim
17662 docdir!$docdir$ac_delim
17663 infodir!$infodir$ac_delim
17664 htmldir!$htmldir$ac_delim
17665 dvidir!$dvidir$ac_delim
17666 pdfdir!$pdfdir$ac_delim
17667 psdir!$psdir$ac_delim
17668 libdir!$libdir$ac_delim
17669 localedir!$localedir$ac_delim
17670 mandir!$mandir$ac_delim
17671 DEFS!$DEFS$ac_delim
17672 ECHO_C!$ECHO_C$ac_delim
17673 ECHO_N!$ECHO_N$ac_delim
17674 ECHO_T!$ECHO_T$ac_delim
17675 LIBS!$LIBS$ac_delim
17676 build_alias!$build_alias$ac_delim
17677 host_alias!$host_alias$ac_delim
17678 target_alias!$target_alias$ac_delim
17679 build!$build$ac_delim
17680 build_cpu!$build_cpu$ac_delim
17681 build_vendor!$build_vendor$ac_delim
17682 build_os!$build_os$ac_delim
17683 host!$host$ac_delim
17684 host_cpu!$host_cpu$ac_delim
17685 host_vendor!$host_vendor$ac_delim
17686 host_os!$host_os$ac_delim
17687 target!$target$ac_delim
17688 target_cpu!$target_cpu$ac_delim
17689 target_vendor!$target_vendor$ac_delim
17690 target_os!$target_os$ac_delim
17691 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
17692 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
17693 INSTALL_DATA!$INSTALL_DATA$ac_delim
17694 am__isrc!$am__isrc$ac_delim
17695 CYGPATH_W!$CYGPATH_W$ac_delim
17696 PACKAGE!$PACKAGE$ac_delim
17697 VERSION!$VERSION$ac_delim
17698 ACLOCAL!$ACLOCAL$ac_delim
17699 AUTOCONF!$AUTOCONF$ac_delim
17700 AUTOMAKE!$AUTOMAKE$ac_delim
17701 AUTOHEADER!$AUTOHEADER$ac_delim
17702 MAKEINFO!$MAKEINFO$ac_delim
17703 install_sh!$install_sh$ac_delim
17704 STRIP!$STRIP$ac_delim
17705 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
17706 mkdir_p!$mkdir_p$ac_delim
17708 SET_MAKE!$SET_MAKE$ac_delim
17709 am__leading_dot!$am__leading_dot$ac_delim
17710 AMTAR!$AMTAR$ac_delim
17711 am__tar!$am__tar$ac_delim
17712 am__untar!$am__untar$ac_delim
17714 CFLAGS!$CFLAGS$ac_delim
17715 LDFLAGS!$LDFLAGS$ac_delim
17716 CPPFLAGS!$CPPFLAGS$ac_delim
17717 ac_ct_CC!$ac_ct_CC$ac_delim
17718 EXEEXT!$EXEEXT$ac_delim
17719 OBJEXT!$OBJEXT$ac_delim
17720 DEPDIR!$DEPDIR$ac_delim
17721 am__include!$am__include$ac_delim
17722 am__quote!$am__quote$ac_delim
17723 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
17724 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
17725 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
17726 CCDEPMODE!$CCDEPMODE$ac_delim
17727 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
17728 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
17730 LN_S!$LN_S$ac_delim
17731 RANLIB!$RANLIB$ac_delim
17732 LIBTOOL!$LIBTOOL$ac_delim
17733 PURECOV!$PURECOV$ac_delim
17734 PURIFY!$PURIFY$ac_delim
17735 JAVAC!$JAVAC$ac_delim
17736 JAVAH!$JAVAH$ac_delim
17737 JAVADOC!$JAVADOC$ac_delim
17738 JAVA_TRUE!$JAVA_TRUE$ac_delim
17741 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
17743 elif $ac_last_try; then
17744 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17745 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17746 { (exit 1); exit 1; }; }
17748 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17752 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17753 if test -n "$ac_eof"; then
17754 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17755 ac_eof=`expr $ac_eof + 1`
17758 cat >>$CONFIG_STATUS <<_ACEOF
17759 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
17760 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17763 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17764 s/^/s,@/; s/!/@,|#_!!_#|/
17767 s/'"$ac_delim"'$/,g/; t
17769 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17770 ' >>$CONFIG_STATUS <conf$$subs.sed
17771 rm -f conf$$subs.sed
17772 cat >>$CONFIG_STATUS <<_ACEOF
17778 for ac_last_try in false false false false false :; do
17779 cat >conf$$subs.sed <<_ACEOF
17780 JAVA_FALSE!$JAVA_FALSE$ac_delim
17781 JAVA_INCLUDES!$JAVA_INCLUDES$ac_delim
17782 JAVAROOT!$JAVAROOT$ac_delim
17783 SAMPLE_TRUE!$SAMPLE_TRUE$ac_delim
17784 SAMPLE_FALSE!$SAMPLE_FALSE$ac_delim
17785 LIB_SOCKET!$LIB_SOCKET$ac_delim
17786 GREP!$GREP$ac_delim
17787 EGREP!$EGREP$ac_delim
17788 SASL_DB_UTILS!$SASL_DB_UTILS$ac_delim
17789 SASL_DB_MANS!$SASL_DB_MANS$ac_delim
17790 SASL_DB_BACKEND!$SASL_DB_BACKEND$ac_delim
17791 SASL_DB_BACKEND_STATIC!$SASL_DB_BACKEND_STATIC$ac_delim
17792 SASL_DB_INC!$SASL_DB_INC$ac_delim
17793 SASL_DB_LIB!$SASL_DB_LIB$ac_delim
17794 NO_SASL_DB_MANS_TRUE!$NO_SASL_DB_MANS_TRUE$ac_delim
17795 NO_SASL_DB_MANS_FALSE!$NO_SASL_DB_MANS_FALSE$ac_delim
17796 SASL_DL_LIB!$SASL_DL_LIB$ac_delim
17798 SASLAUTHD_TRUE!$SASLAUTHD_TRUE$ac_delim
17799 SASLAUTHD_FALSE!$SASLAUTHD_FALSE$ac_delim
17800 PWCHECKMETH!$PWCHECKMETH$ac_delim
17801 PWCHECK_TRUE!$PWCHECK_TRUE$ac_delim
17802 PWCHECK_FALSE!$PWCHECK_FALSE$ac_delim
17803 IPCTYPE!$IPCTYPE$ac_delim
17804 LIB_DOOR!$LIB_DOOR$ac_delim
17805 CMU_LIB_SUBDIR!$CMU_LIB_SUBDIR$ac_delim
17806 LIB_DES!$LIB_DES$ac_delim
17807 OTP_LIBS!$OTP_LIBS$ac_delim
17808 SRP_LIBS!$SRP_LIBS$ac_delim
17809 SASL_KRB_LIB!$SASL_KRB_LIB$ac_delim
17810 LIB_CRYPT!$LIB_CRYPT$ac_delim
17811 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
17812 GSSAPIBASE_LIBS!$GSSAPIBASE_LIBS$ac_delim
17813 PLAIN_LIBS!$PLAIN_LIBS$ac_delim
17814 NTLM_LIBS!$NTLM_LIBS$ac_delim
17815 PASSDSS_LIBS!$PASSDSS_LIBS$ac_delim
17816 LIB_MYSQL!$LIB_MYSQL$ac_delim
17817 LIB_PGSQL!$LIB_PGSQL$ac_delim
17818 LIB_SQLITE!$LIB_SQLITE$ac_delim
17819 LIB_LDAP!$LIB_LDAP$ac_delim
17820 SASL_MECHS!$SASL_MECHS$ac_delim
17821 SASL_STATIC_SRCS!$SASL_STATIC_SRCS$ac_delim
17822 SASL_STATIC_OBJS!$SASL_STATIC_OBJS$ac_delim
17823 SASL_STATIC_LIBS!$SASL_STATIC_LIBS$ac_delim
17824 plugindir!$plugindir$ac_delim
17825 configdir!$configdir$ac_delim
17826 MACOSX_TRUE!$MACOSX_TRUE$ac_delim
17827 MACOSX_FALSE!$MACOSX_FALSE$ac_delim
17828 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
17829 SFIO_INC_FLAGS!$SFIO_INC_FLAGS$ac_delim
17830 SFIO_LIB_FLAGS!$SFIO_LIB_FLAGS$ac_delim
17831 SMTPTEST_PROGRAM!$SMTPTEST_PROGRAM$ac_delim
17832 SASL_UTIL_LIBS_EXTRA!$SASL_UTIL_LIBS_EXTRA$ac_delim
17833 SASL_UTIL_HEADERS_EXTRA!$SASL_UTIL_HEADERS_EXTRA$ac_delim
17834 LIBOBJS!$LIBOBJS$ac_delim
17835 GETSUBOPT!$GETSUBOPT$ac_delim
17836 SNPRINTFOBJS!$SNPRINTFOBJS$ac_delim
17837 LTSNPRINTFOBJS!$LTSNPRINTFOBJS$ac_delim
17838 GETADDRINFOOBJS!$GETADDRINFOOBJS$ac_delim
17839 LTGETADDRINFOOBJS!$LTGETADDRINFOOBJS$ac_delim
17840 GETNAMEINFOOBJS!$GETNAMEINFOOBJS$ac_delim
17841 LTGETNAMEINFOOBJS!$LTGETNAMEINFOOBJS$ac_delim
17842 LTLIBOBJS!$LTLIBOBJS$ac_delim
17843 DIRS!$DIRS$ac_delim
17844 subdirs!$subdirs$ac_delim
17847 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 65; then
17849 elif $ac_last_try; then
17850 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17851 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17852 { (exit 1); exit 1; }; }
17854 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17858 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17859 if test -n "$ac_eof"; then
17860 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17861 ac_eof=`expr $ac_eof + 1`
17864 cat >>$CONFIG_STATUS <<_ACEOF
17865 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
17866 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
17869 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17870 s/^/s,@/; s/!/@,|#_!!_#|/
17873 s/'"$ac_delim"'$/,g/; t
17875 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17876 ' >>$CONFIG_STATUS <conf$$subs.sed
17877 rm -f conf$$subs.sed
17878 cat >>$CONFIG_STATUS <<_ACEOF
17885 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17886 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17887 # trailing colons and then remove the whole line if VPATH becomes empty
17888 # (actually we leave an empty line to preserve line numbers).
17889 if test "x$srcdir" = x.; then
17890 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17891 s/:*\$(srcdir):*/:/
17892 s/:*\${srcdir}:*/:/
17894 s/^\([^=]*=[ ]*\):*/\1/
17900 cat >>$CONFIG_STATUS <<\_ACEOF
17901 fi # test -n "$CONFIG_FILES"
17904 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
17907 :[FHLC]) ac_mode=$ac_tag; continue;;
17909 case $ac_mode$ac_tag in
17911 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17912 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17913 { (exit 1); exit 1; }; };;
17914 :[FH]-) ac_tag=-:-;;
17915 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17932 -) ac_f="$tmp/stdin";;
17933 *) # Look for the file first in the build tree, then in the source tree
17934 # (if the path is not absolute). The absolute path cannot be DOS-style,
17935 # because $ac_f cannot contain `:'.
17939 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17941 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17942 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17943 { (exit 1); exit 1; }; };;
17945 ac_file_inputs="$ac_file_inputs $ac_f"
17948 # Let's still pretend it is `configure' which instantiates (i.e., don't
17949 # use $as_me), people would be surprised to read:
17950 # /* config.h. Generated by config.status. */
17951 configure_input="Generated from "`IFS=:
17952 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
17953 if test x"$ac_file" != x-; then
17954 configure_input="$ac_file. $configure_input"
17955 { echo "$as_me:$LINENO: creating $ac_file" >&5
17956 echo "$as_me: creating $ac_file" >&6;}
17960 *:-:* | *:-) cat >"$tmp/stdin";;
17965 ac_dir=`$as_dirname -- "$ac_file" ||
17966 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17967 X"$ac_file" : 'X\(//\)[^/]' \| \
17968 X"$ac_file" : 'X\(//\)$' \| \
17969 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17975 /^X\(\/\/\)[^/].*/{
17990 -*) as_dir=./$as_dir;;
17992 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17996 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17997 *) as_qdir=$as_dir;;
17999 as_dirs="'$as_qdir' $as_dirs"
18000 as_dir=`$as_dirname -- "$as_dir" ||
18001 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18002 X"$as_dir" : 'X\(//\)[^/]' \| \
18003 X"$as_dir" : 'X\(//\)$' \| \
18004 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18010 /^X\(\/\/\)[^/].*/{
18023 test -d "$as_dir" && break
18025 test -z "$as_dirs" || eval "mkdir $as_dirs"
18026 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18027 echo "$as_me: error: cannot create directory $as_dir" >&2;}
18028 { (exit 1); exit 1; }; }; }
18032 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18034 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18035 # A ".." for each directory in $ac_dir_suffix.
18036 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
18037 case $ac_top_builddir_sub in
18038 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18039 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18042 ac_abs_top_builddir=$ac_pwd
18043 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18044 # for backward compatibility:
18045 ac_top_builddir=$ac_top_build_prefix
18048 .) # We are building in place.
18050 ac_top_srcdir=$ac_top_builddir_sub
18051 ac_abs_top_srcdir=$ac_pwd ;;
18052 [\\/]* | ?:[\\/]* ) # Absolute name.
18053 ac_srcdir=$srcdir$ac_dir_suffix;
18054 ac_top_srcdir=$srcdir
18055 ac_abs_top_srcdir=$srcdir ;;
18056 *) # Relative name.
18057 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18058 ac_top_srcdir=$ac_top_build_prefix$srcdir
18059 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18061 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18071 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18072 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18074 ac_MKDIR_P=$MKDIR_P
18076 [\\/$]* | ?:[\\/]* ) ;;
18077 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18081 cat >>$CONFIG_STATUS <<\_ACEOF
18082 # If the template does not know about datarootdir, expand it.
18083 # FIXME: This hack should be removed a few years after 2.60.
18084 ac_datarootdir_hack=; ac_datarootdir_seen=
18086 case `sed -n '/datarootdir/ {
18095 ' $ac_file_inputs` in
18096 *datarootdir*) ac_datarootdir_seen=yes;;
18097 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18098 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18099 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18101 cat >>$CONFIG_STATUS <<_ACEOF
18102 ac_datarootdir_hack='
18103 s&@datadir@&$datadir&g
18104 s&@docdir@&$docdir&g
18105 s&@infodir@&$infodir&g
18106 s&@localedir@&$localedir&g
18107 s&@mandir@&$mandir&g
18108 s&\\\${datarootdir}&$datarootdir&g' ;;
18112 # Neutralize VPATH when `$srcdir' = `.'.
18113 # Shell code in configure.ac might set extrasub.
18114 # FIXME: do we really want to maintain this feature?
18115 cat >>$CONFIG_STATUS <<_ACEOF
18119 cat >>$CONFIG_STATUS <<\_ACEOF
18121 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18122 s&@configure_input@&$configure_input&;t t
18123 s&@top_builddir@&$ac_top_builddir_sub&;t t
18124 s&@srcdir@&$ac_srcdir&;t t
18125 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18126 s&@top_srcdir@&$ac_top_srcdir&;t t
18127 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18128 s&@builddir@&$ac_builddir&;t t
18129 s&@abs_builddir@&$ac_abs_builddir&;t t
18130 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18131 s&@INSTALL@&$ac_INSTALL&;t t
18132 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18133 $ac_datarootdir_hack
18134 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
18136 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18137 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18138 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18139 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18140 which seems to be undefined. Please make sure it is defined." >&5
18141 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18142 which seems to be undefined. Please make sure it is defined." >&2;}
18146 -) cat "$tmp/out"; rm -f "$tmp/out";;
18147 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
18156 # Transform confdefs.h into a sed script `conftest.defines', that
18157 # substitutes the proper values into config.h.in to produce config.h.
18158 rm -f conftest.defines conftest.tail
18159 # First, append a space to every undef/define line, to ease matching.
18160 echo 's/$/ /' >conftest.defines
18161 # Then, protect against being on the right side of a sed subst, or in
18162 # an unquoted here document, in config.status. If some macros were
18163 # called several times there might be several #defines for the same
18164 # symbol, which is useless. But do not sort them, since the last
18165 # AC_DEFINE must be honored.
18166 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18167 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
18168 # NAME is the cpp macro being defined, VALUE is the value it is being given.
18169 # PARAMS is the parameter list in the macro definition--in most cases, it's
18170 # just an empty string.
18171 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
18172 ac_dB='\\)[ (].*,\\1define\\2'
18180 s/^[ ]*#[ ]*define[ ][ ]*//
18185 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
18186 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
18187 ' >>conftest.defines
18189 # Remove the space that was appended to ease matching.
18190 # Then replace #undef with comments. This is necessary, for
18191 # example, in the case of _POSIX_SOURCE, which is predefined and required
18192 # on some systems where configure will not decide to define it.
18193 # (The regexp can be short, since the line contains either #define or #undef.)
18195 s,^[ #]*u.*,/* & */,' >>conftest.defines
18197 # Break up conftest.defines:
18198 ac_max_sed_lines=50
18200 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
18201 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
18202 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
18204 ac_in='$ac_file_inputs'
18205 ac_out='"$tmp/out1"'
18206 ac_nxt='"$tmp/out2"'
18210 # Write a here document:
18211 cat >>$CONFIG_STATUS <<_ACEOF
18212 # First, check the format of the line:
18213 cat >"\$tmp/defines.sed" <<\\CEOF
18214 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
18215 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
18219 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
18221 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
18222 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
18223 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
18224 grep . conftest.tail >/dev/null || break
18225 rm -f conftest.defines
18226 mv conftest.tail conftest.defines
18228 rm -f conftest.defines conftest.tail
18230 echo "ac_result=$ac_in" >>$CONFIG_STATUS
18231 cat >>$CONFIG_STATUS <<\_ACEOF
18232 if test x"$ac_file" != x-; then
18233 echo "/* $configure_input */" >"$tmp/config.h"
18234 cat "$ac_result" >>"$tmp/config.h"
18235 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
18236 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18237 echo "$as_me: $ac_file is unchanged" >&6;}
18240 mv "$tmp/config.h" $ac_file
18243 echo "/* $configure_input */"
18247 # Compute $ac_file's index in $config_headers.
18249 for _am_header in $config_headers :; do
18250 case $_am_header in
18251 $ac_file | $ac_file:* )
18254 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18257 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
18258 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18259 X$ac_file : 'X\(//\)[^/]' \| \
18260 X$ac_file : 'X\(//\)$' \| \
18261 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
18263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18267 /^X\(\/\/\)[^/].*/{
18279 s/.*/./; q'`/stamp-h$_am_stamp_count
18282 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
18283 echo "$as_me: executing $ac_file commands" >&6;}
18288 case $ac_file$ac_mode in
18289 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18290 # Strip MF so we end up with the name of the file.
18291 mf=`echo "$mf" | sed -e 's/:.*$//'`
18292 # Check whether this is an Automake generated Makefile or not.
18293 # We used to match only the files named `Makefile.in', but
18294 # some people rename them; so instead we look at the file content.
18295 # Grep'ing the first line is not enough: some people post-process
18296 # each Makefile.in and add a new line on top of each file to say so.
18297 # Grep'ing the whole file is not good either: AIX grep has a line
18298 # limit of 2048, but all sed's we know have understand at least 4000.
18299 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
18300 dirpart=`$as_dirname -- "$mf" ||
18301 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18302 X"$mf" : 'X\(//\)[^/]' \| \
18303 X"$mf" : 'X\(//\)$' \| \
18304 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18310 /^X\(\/\/\)[^/].*/{
18326 # Extract the definition of DEPDIR, am__include, and am__quote
18327 # from the Makefile without running `make'.
18328 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18329 test -z "$DEPDIR" && continue
18330 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18331 test -z "am__include" && continue
18332 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18333 # When using ansi2knr, U may be empty or an underscore; expand it
18334 U=`sed -n 's/^U = //p' < "$mf"`
18335 # Find all dependency output files, they are included files with
18336 # $(DEPDIR) in their names. We invoke sed twice because it is the
18337 # simplest approach to changing $(DEPDIR) to its actual value in the
18339 for file in `sed -n "
18340 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18341 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18342 # Make sure the directory exists.
18343 test -f "$dirpart/$file" && continue
18344 fdir=`$as_dirname -- "$file" ||
18345 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18346 X"$file" : 'X\(//\)[^/]' \| \
18347 X"$file" : 'X\(//\)$' \| \
18348 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18354 /^X\(\/\/\)[^/].*/{
18367 { as_dir=$dirpart/$fdir
18369 -*) as_dir=./$as_dir;;
18371 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18375 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
18376 *) as_qdir=$as_dir;;
18378 as_dirs="'$as_qdir' $as_dirs"
18379 as_dir=`$as_dirname -- "$as_dir" ||
18380 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18381 X"$as_dir" : 'X\(//\)[^/]' \| \
18382 X"$as_dir" : 'X\(//\)$' \| \
18383 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18389 /^X\(\/\/\)[^/].*/{
18402 test -d "$as_dir" && break
18404 test -z "$as_dirs" || eval "mkdir $as_dirs"
18405 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18406 echo "$as_me: error: cannot create directory $as_dir" >&2;}
18407 { (exit 1); exit 1; }; }; }
18408 # echo "creating $dirpart/$file"
18409 echo '# dummy' > "$dirpart/$file"
18418 { (exit 0); exit 0; }
18420 chmod +x $CONFIG_STATUS
18421 ac_clean_files=$ac_clean_files_save
18424 # configure is writing to config.log, and then calls config.status.
18425 # config.status does its own redirection, appending to config.log.
18426 # Unfortunately, on DOS this fails, as config.log is still kept open
18427 # by configure, so config.status won't be able to write to it; its
18428 # output is simply discarded. So we exec the FD to /dev/null,
18429 # effectively closing config.log, so it can be properly (re)opened and
18430 # appended to by config.status. When coming back to configure, we
18431 # need to make the FD available again.
18432 if test "$no_create" != yes; then
18434 ac_config_status_args=
18435 test "$silent" = yes &&
18436 ac_config_status_args="$ac_config_status_args --quiet"
18438 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18440 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18441 # would make configure fail if this is the last instruction.
18442 $ac_cs_success || { (exit 1); exit 1; }
18446 # CONFIG_SUBDIRS section.
18448 if test "$no_recursion" != yes; then
18450 # Remove --cache-file and --srcdir arguments so they do not pile up.
18451 ac_sub_configure_args=
18453 eval "set x $ac_configure_args"
18457 if test -n "$ac_prev"; then
18462 -cache-file | --cache-file | --cache-fil | --cache-fi \
18463 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18464 ac_prev=cache_file ;;
18465 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18466 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18469 --config-cache | -C)
18471 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18473 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18475 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18477 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18481 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18483 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
18487 # Always prepend --prefix to ensure using the same prefix
18488 # in subdir configurations.
18489 ac_arg="--prefix=$prefix"
18491 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18493 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
18496 if test "$silent" = yes; then
18497 ac_sub_configure_args="--silent $ac_sub_configure_args"
18501 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18503 # Do not complain, so a configure script can configure whichever
18504 # parts of a large source tree are present.
18505 test -d "$srcdir/$ac_dir" || continue
18507 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
18508 echo "$as_me:$LINENO: $ac_msg" >&5
18512 -*) as_dir=./$as_dir;;
18514 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18518 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
18519 *) as_qdir=$as_dir;;
18521 as_dirs="'$as_qdir' $as_dirs"
18522 as_dir=`$as_dirname -- "$as_dir" ||
18523 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18524 X"$as_dir" : 'X\(//\)[^/]' \| \
18525 X"$as_dir" : 'X\(//\)$' \| \
18526 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18532 /^X\(\/\/\)[^/].*/{
18545 test -d "$as_dir" && break
18547 test -z "$as_dirs" || eval "mkdir $as_dirs"
18548 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18549 echo "$as_me: error: cannot create directory $as_dir" >&2;}
18550 { (exit 1); exit 1; }; }; }
18554 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18556 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18557 # A ".." for each directory in $ac_dir_suffix.
18558 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
18559 case $ac_top_builddir_sub in
18560 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18561 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18564 ac_abs_top_builddir=$ac_pwd
18565 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18566 # for backward compatibility:
18567 ac_top_builddir=$ac_top_build_prefix
18570 .) # We are building in place.
18572 ac_top_srcdir=$ac_top_builddir_sub
18573 ac_abs_top_srcdir=$ac_pwd ;;
18574 [\\/]* | ?:[\\/]* ) # Absolute name.
18575 ac_srcdir=$srcdir$ac_dir_suffix;
18576 ac_top_srcdir=$srcdir
18577 ac_abs_top_srcdir=$srcdir ;;
18578 *) # Relative name.
18579 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18580 ac_top_srcdir=$ac_top_build_prefix$srcdir
18581 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18583 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18588 # Check for guested configure; otherwise get Cygnus style configure.
18589 if test -f "$ac_srcdir/configure.gnu"; then
18590 ac_sub_configure=$ac_srcdir/configure.gnu
18591 elif test -f "$ac_srcdir/configure"; then
18592 ac_sub_configure=$ac_srcdir/configure
18593 elif test -f "$ac_srcdir/configure.in"; then
18594 # This should be Cygnus configure.
18595 ac_sub_configure=$ac_aux_dir/configure
18597 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18598 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18602 # The recursion is here.
18603 if test -n "$ac_sub_configure"; then
18604 # Make the cache file name correct relative to the subdirectory.
18605 case $cache_file in
18606 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18607 *) # Relative name.
18608 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
18611 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18612 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18613 # The eval makes quoting arguments work.
18614 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
18615 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
18616 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18617 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18618 { (exit 1); exit 1; }; }
18626 echo Configuration Complete. Type \'make\' to build.