add gs2 to plugins
[cyrus-sasl.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
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 ## --------------------- ##
12
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
16   emulate sh
17   NULLCMD=:
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+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
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
39
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
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
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.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
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
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
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
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
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 \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
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 ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
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
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
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
241   emulate sh
242   NULLCMD=:
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+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
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+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
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; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
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
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
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; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
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
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
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
434   # case at line end.
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.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
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; }; }
456
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).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
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 ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
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'"
546
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'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
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`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="lib/saslint.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 build
654 build_cpu
655 build_vendor
656 build_os
657 host
658 host_cpu
659 host_vendor
660 host_os
661 target
662 target_cpu
663 target_vendor
664 target_os
665 INSTALL_PROGRAM
666 INSTALL_SCRIPT
667 INSTALL_DATA
668 am__isrc
669 CYGPATH_W
670 PACKAGE
671 VERSION
672 ACLOCAL
673 AUTOCONF
674 AUTOMAKE
675 AUTOHEADER
676 MAKEINFO
677 install_sh
678 STRIP
679 INSTALL_STRIP_PROGRAM
680 mkdir_p
681 AWK
682 SET_MAKE
683 am__leading_dot
684 AMTAR
685 am__tar
686 am__untar
687 CC
688 CFLAGS
689 LDFLAGS
690 CPPFLAGS
691 ac_ct_CC
692 EXEEXT
693 OBJEXT
694 DEPDIR
695 am__include
696 am__quote
697 AMDEP_TRUE
698 AMDEP_FALSE
699 AMDEPBACKSLASH
700 CCDEPMODE
701 am__fastdepCC_TRUE
702 am__fastdepCC_FALSE
703 CPP
704 LN_S
705 RANLIB
706 LIBTOOL
707 PURECOV
708 PURIFY
709 JAVAC
710 JAVAH
711 JAVADOC
712 JAVA_TRUE
713 JAVA_FALSE
714 JAVA_INCLUDES
715 JAVAROOT
716 SAMPLE_TRUE
717 SAMPLE_FALSE
718 LIB_SOCKET
719 GREP
720 EGREP
721 SASL_DB_UTILS
722 SASL_DB_MANS
723 SASL_DB_BACKEND
724 SASL_DB_BACKEND_STATIC
725 SASL_DB_INC
726 SASL_DB_LIB
727 NO_SASL_DB_MANS_TRUE
728 NO_SASL_DB_MANS_FALSE
729 SASL_DL_LIB
730 NM
731 SASLAUTHD_TRUE
732 SASLAUTHD_FALSE
733 PWCHECKMETH
734 PWCHECK_TRUE
735 PWCHECK_FALSE
736 IPCTYPE
737 LIB_DOOR
738 CMU_LIB_SUBDIR
739 LIB_DES
740 OTP_LIBS
741 SRP_LIBS
742 SASL_KRB_LIB
743 LIB_CRYPT
744 GSSAPI_LIBS
745 GSSAPIBASE_LIBS
746 PLAIN_LIBS
747 NTLM_LIBS
748 PASSDSS_LIBS
749 LIB_MYSQL
750 LIB_PGSQL
751 LIB_SQLITE
752 LIB_LDAP
753 SASL_MECHS
754 SASL_STATIC_SRCS
755 SASL_STATIC_OBJS
756 SASL_STATIC_LIBS
757 plugindir
758 configdir
759 MACOSX_TRUE
760 MACOSX_FALSE
761 DMALLOC_LIBS
762 SFIO_INC_FLAGS
763 SFIO_LIB_FLAGS
764 SMTPTEST_PROGRAM
765 SASL_UTIL_LIBS_EXTRA
766 SASL_UTIL_HEADERS_EXTRA
767 LIBOBJS
768 GETSUBOPT
769 SNPRINTFOBJS
770 LTSNPRINTFOBJS
771 GETADDRINFOOBJS
772 LTGETADDRINFOOBJS
773 GETNAMEINFOOBJS
774 LTGETNAMEINFOOBJS
775 LTLIBOBJS
776 DIRS
777 subdirs'
778 ac_subst_files=''
779       ac_precious_vars='build_alias
780 host_alias
781 target_alias
782 CC
783 CFLAGS
784 LDFLAGS
785 LIBS
786 CPPFLAGS
787 CPP'
788 ac_subdirs_all='saslauthd'
789
790 # Initialize some variables set by options.
791 ac_init_help=
792 ac_init_version=false
793 # The variables have the same names as the options, with
794 # dashes changed to underlines.
795 cache_file=/dev/null
796 exec_prefix=NONE
797 no_create=
798 no_recursion=
799 prefix=NONE
800 program_prefix=NONE
801 program_suffix=NONE
802 program_transform_name=s,x,x,
803 silent=
804 site=
805 srcdir=
806 verbose=
807 x_includes=NONE
808 x_libraries=NONE
809
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'
828 htmldir='${docdir}'
829 dvidir='${docdir}'
830 pdfdir='${docdir}'
831 psdir='${docdir}'
832 libdir='${exec_prefix}/lib'
833 localedir='${datarootdir}/locale'
834 mandir='${datarootdir}/man'
835
836 ac_prev=
837 ac_dashdash=
838 for ac_option
839 do
840   # If the previous option needs an argument, assign it.
841   if test -n "$ac_prev"; then
842     eval $ac_prev=\$ac_option
843     ac_prev=
844     continue
845   fi
846
847   case $ac_option in
848   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849   *)    ac_optarg=yes ;;
850   esac
851
852   # Accept the important Cygnus configure options, so we can diagnose typos.
853
854   case $ac_dashdash$ac_option in
855   --)
856     ac_dashdash=yes ;;
857
858   -bindir | --bindir | --bindi | --bind | --bin | --bi)
859     ac_prev=bindir ;;
860   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
861     bindir=$ac_optarg ;;
862
863   -build | --build | --buil | --bui | --bu)
864     ac_prev=build_alias ;;
865   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
866     build_alias=$ac_optarg ;;
867
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 ;;
874
875   --config-cache | -C)
876     cache_file=config.cache ;;
877
878   -datadir | --datadir | --datadi | --datad)
879     ac_prev=datadir ;;
880   -datadir=* | --datadir=* | --datadi=* | --datad=*)
881     datadir=$ac_optarg ;;
882
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 ;;
889
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 ;;
898
899   -docdir | --docdir | --docdi | --doc | --do)
900     ac_prev=docdir ;;
901   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902     docdir=$ac_optarg ;;
903
904   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905     ac_prev=dvidir ;;
906   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907     dvidir=$ac_optarg ;;
908
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 ;;
917
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 ;;
926
927   -gas | --gas | --ga | --g)
928     # Obsolete; use --with-gas.
929     with_gas=yes ;;
930
931   -help | --help | --hel | --he | -h)
932     ac_init_help=long ;;
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 ;;
937
938   -host | --host | --hos | --ho)
939     ac_prev=host_alias ;;
940   -host=* | --host=* | --hos=* | --ho=*)
941     host_alias=$ac_optarg ;;
942
943   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
944     ac_prev=htmldir ;;
945   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
946   | --ht=*)
947     htmldir=$ac_optarg ;;
948
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 ;;
955
956   -infodir | --infodir | --infodi | --infod | --info | --inf)
957     ac_prev=infodir ;;
958   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
959     infodir=$ac_optarg ;;
960
961   -libdir | --libdir | --libdi | --libd)
962     ac_prev=libdir ;;
963   -libdir=* | --libdir=* | --libdi=* | --libd=*)
964     libdir=$ac_optarg ;;
965
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 ;;
972
973   -localedir | --localedir | --localedi | --localed | --locale)
974     ac_prev=localedir ;;
975   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
976     localedir=$ac_optarg ;;
977
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 ;;
984
985   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
986     ac_prev=mandir ;;
987   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
988     mandir=$ac_optarg ;;
989
990   -nfp | --nfp | --nf)
991     # Obsolete; use --without-fp.
992     with_fp=no ;;
993
994   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
995   | --no-cr | --no-c | -n)
996     no_create=yes ;;
997
998   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000     no_recursion=yes ;;
1001
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 ;;
1010
1011   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1012     ac_prev=prefix ;;
1013   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1014     prefix=$ac_optarg ;;
1015
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 ;;
1022
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 ;;
1029
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 ;;
1046
1047   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1048     ac_prev=pdfdir ;;
1049   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1050     pdfdir=$ac_optarg ;;
1051
1052   -psdir | --psdir | --psdi | --psd | --ps)
1053     ac_prev=psdir ;;
1054   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1055     psdir=$ac_optarg ;;
1056
1057   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058   | -silent | --silent | --silen | --sile | --sil)
1059     silent=yes ;;
1060
1061   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1062     ac_prev=sbindir ;;
1063   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1064   | --sbi=* | --sb=*)
1065     sbindir=$ac_optarg ;;
1066
1067   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1068   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1069   | --sharedst | --shareds | --shared | --share | --shar \
1070   | --sha | --sh)
1071     ac_prev=sharedstatedir ;;
1072   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1073   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1074   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1075   | --sha=* | --sh=*)
1076     sharedstatedir=$ac_optarg ;;
1077
1078   -site | --site | --sit)
1079     ac_prev=site ;;
1080   -site=* | --site=* | --sit=*)
1081     site=$ac_optarg ;;
1082
1083   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1084     ac_prev=srcdir ;;
1085   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1086     srcdir=$ac_optarg ;;
1087
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 ;;
1094
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 ;;
1099
1100   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1101     verbose=yes ;;
1102
1103   -version | --version | --versio | --versi | --vers | -V)
1104     ac_init_version=: ;;
1105
1106   -with-* | --with-*)
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 ;;
1114
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 ;;
1123
1124   --x)
1125     # Obsolete; use --with-x.
1126     with_x=yes ;;
1127
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 ;;
1134
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 ;;
1141
1142   -*) { echo "$as_me: error: unrecognized option: $ac_option
1143 Try \`$0 --help' for more information." >&2
1144    { (exit 1); exit 1; }; }
1145     ;;
1146
1147   *=*)
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 ;;
1155
1156   *)
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}
1162     ;;
1163
1164   esac
1165 done
1166
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; }; }
1171 fi
1172
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
1178 do
1179   eval ac_val=\$$ac_var
1180   case $ac_val in
1181     [\\/$]* | ?:[\\/]* )  continue;;
1182     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1183   esac
1184   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1185    { (exit 1); exit 1; }; }
1186 done
1187
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.
1191 build=$build_alias
1192 host=$host_alias
1193 target=$target_alias
1194
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
1202     cross_compiling=yes
1203   fi
1204 fi
1205
1206 ac_tool_prefix=
1207 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1208
1209 test "$silent" = yes && exec 6>/dev/null
1210
1211
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; }; }
1220
1221
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 ||
1231 echo X"$0" |
1232     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1233             s//\1/
1234             q
1235           }
1236           /^X\(\/\/\)[^/].*/{
1237             s//\1/
1238             q
1239           }
1240           /^X\(\/\/\)$/{
1241             s//\1/
1242             q
1243           }
1244           /^X\(\/\).*/{
1245             s//\1/
1246             q
1247           }
1248           s/.*/./; q'`
1249   srcdir=$ac_confdir
1250   if test ! -r "$srcdir/$ac_unique_file"; then
1251     srcdir=..
1252   fi
1253 else
1254   ac_srcdir_defaulted=no
1255 fi
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; }; }
1260 fi
1261 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1262 ac_abs_confdir=`(
1263         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1264    { (exit 1); exit 1; }; }
1265         pwd)`
1266 # When building in place, set srcdir=.
1267 if test "$ac_abs_confdir" = "$ac_pwd"; then
1268   srcdir=.
1269 fi
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.
1273 case $srcdir in
1274 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1275 esac
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}
1281 done
1282
1283 #
1284 # Report the --help message.
1285 #
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.
1289   cat <<_ACEOF
1290 \`configure' configures this package to adapt to many kinds of systems.
1291
1292 Usage: $0 [OPTION]... [VAR=VALUE]...
1293
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.
1296
1297 Defaults for the options are specified in brackets.
1298
1299 Configuration:
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 \`..']
1309
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
1314                           [PREFIX]
1315
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'.
1320
1321 For better control, use the options below.
1322
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]
1343 _ACEOF
1344
1345   cat <<\_ACEOF
1346
1347 Program names:
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
1351
1352 System types:
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]
1356 _ACEOF
1357 fi
1358
1359 if test -n "$ac_init_help"; then
1360
1361   cat <<\_ACEOF
1362
1363 Optional Features:
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]
1395
1396 Optional Packages:
1397   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1398   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1399
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]
1432
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>
1441   CPP         C preprocessor
1442
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.
1445
1446 _ACEOF
1447 ac_status=$?
1448 fi
1449
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
1454     ac_builddir=.
1455
1456 case "$ac_dir" in
1457 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1458 *)
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/ ;;
1465   esac ;;
1466 esac
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
1471
1472 case $srcdir in
1473   .)  # We are building in place.
1474     ac_srcdir=.
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 ;;
1481   *) # Relative name.
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 ;;
1485 esac
1486 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1487
1488     cd "$ac_dir" || { ac_status=$?; continue; }
1489     # Check for guested configure.
1490     if test -f "$ac_srcdir/configure.gnu"; then
1491       echo &&
1492       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1493     elif test -f "$ac_srcdir/configure"; then
1494       echo &&
1495       $SHELL "$ac_srcdir/configure" --help=recursive
1496     else
1497       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1498     fi || ac_status=$?
1499     cd "$ac_pwd" || { ac_status=$?; break; }
1500   done
1501 fi
1502
1503 test -n "$ac_init_help" && exit $ac_status
1504 if $ac_init_version; then
1505   cat <<\_ACEOF
1506 configure
1507 generated by GNU Autoconf 2.61
1508
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.
1513 _ACEOF
1514   exit
1515 fi
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.
1519
1520 It was created by $as_me, which was
1521 generated by GNU Autoconf 2.61.  Invocation command line was
1522
1523   $ $0 $@
1524
1525 _ACEOF
1526 exec 5>>config.log
1527 {
1528 cat <<_ASUNAME
1529 ## --------- ##
1530 ## Platform. ##
1531 ## --------- ##
1532
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`
1538
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`
1541
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`
1549
1550 _ASUNAME
1551
1552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1553 for as_dir in $PATH
1554 do
1555   IFS=$as_save_IFS
1556   test -z "$as_dir" && as_dir=.
1557   echo "PATH: $as_dir"
1558 done
1559 IFS=$as_save_IFS
1560
1561 } >&5
1562
1563 cat >&5 <<_ACEOF
1564
1565
1566 ## ----------- ##
1567 ## Core tests. ##
1568 ## ----------- ##
1569
1570 _ACEOF
1571
1572
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.
1578 ac_configure_args=
1579 ac_configure_args0=
1580 ac_configure_args1=
1581 ac_must_keep_next=false
1582 for ac_pass in 1 2
1583 do
1584   for ac_arg
1585   do
1586     case $ac_arg in
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)
1590       continue ;;
1591     *\'*)
1592       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1593     esac
1594     case $ac_pass in
1595     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1596     2)
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.
1600       else
1601         case $ac_arg in
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 ;;
1608             esac
1609             ;;
1610           -* ) ac_must_keep_next=true ;;
1611         esac
1612       fi
1613       ac_configure_args="$ac_configure_args '$ac_arg'"
1614       ;;
1615     esac
1616   done
1617 done
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; }
1620
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.
1628   {
1629     echo
1630
1631     cat <<\_ASBOX
1632 ## ---------------- ##
1633 ## Cache variables. ##
1634 ## ---------------- ##
1635 _ASBOX
1636     echo
1637     # The following way of writing the cache mishandles newlines in values,
1638 (
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
1641     case $ac_val in #(
1642     *${as_nl}*)
1643       case $ac_var in #(
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;} ;;
1646       esac
1647       case $ac_var in #(
1648       _ | IFS | as_nl) ;; #(
1649       *) $as_unset $ac_var ;;
1650       esac ;;
1651     esac
1652   done
1653   (set) 2>&1 |
1654     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1655     *${as_nl}ac_space=\ *)
1656       sed -n \
1657         "s/'\''/'\''\\\\'\'''\''/g;
1658           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1659       ;; #(
1660     *)
1661       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1662       ;;
1663     esac |
1664     sort
1665 )
1666     echo
1667
1668     cat <<\_ASBOX
1669 ## ----------------- ##
1670 ## Output variables. ##
1671 ## ----------------- ##
1672 _ASBOX
1673     echo
1674     for ac_var in $ac_subst_vars
1675     do
1676       eval ac_val=\$$ac_var
1677       case $ac_val in
1678       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1679       esac
1680       echo "$ac_var='\''$ac_val'\''"
1681     done | sort
1682     echo
1683
1684     if test -n "$ac_subst_files"; then
1685       cat <<\_ASBOX
1686 ## ------------------- ##
1687 ## File substitutions. ##
1688 ## ------------------- ##
1689 _ASBOX
1690       echo
1691       for ac_var in $ac_subst_files
1692       do
1693         eval ac_val=\$$ac_var
1694         case $ac_val in
1695         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1696         esac
1697         echo "$ac_var='\''$ac_val'\''"
1698       done | sort
1699       echo
1700     fi
1701
1702     if test -s confdefs.h; then
1703       cat <<\_ASBOX
1704 ## ----------- ##
1705 ## confdefs.h. ##
1706 ## ----------- ##
1707 _ASBOX
1708       echo
1709       cat confdefs.h
1710       echo
1711     fi
1712     test "$ac_signal" != 0 &&
1713       echo "$as_me: caught signal $ac_signal"
1714     echo "$as_me: exit $exit_status"
1715   } >&5
1716   rm -f core *.core core.conftest.* &&
1717     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1718     exit $exit_status
1719 ' 0
1720 for ac_signal in 1 2 13 15; do
1721   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1722 done
1723 ac_signal=0
1724
1725 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1726 rm -f -r conftest* confdefs.h
1727
1728 # Predefined preprocessor variables.
1729
1730 cat >>confdefs.h <<_ACEOF
1731 #define PACKAGE_NAME "$PACKAGE_NAME"
1732 _ACEOF
1733
1734
1735 cat >>confdefs.h <<_ACEOF
1736 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1737 _ACEOF
1738
1739
1740 cat >>confdefs.h <<_ACEOF
1741 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1742 _ACEOF
1743
1744
1745 cat >>confdefs.h <<_ACEOF
1746 #define PACKAGE_STRING "$PACKAGE_STRING"
1747 _ACEOF
1748
1749
1750 cat >>confdefs.h <<_ACEOF
1751 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1752 _ACEOF
1753
1754
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"
1761 else
1762   set x "$ac_default_prefix/share/config.site" \
1763         "$ac_default_prefix/etc/config.site"
1764 fi
1765 shift
1766 for ac_site_file
1767 do
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
1772     . "$ac_site_file"
1773   fi
1774 done
1775
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;}
1782     case $cache_file in
1783       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1784       *)                      . "./$cache_file";;
1785     esac
1786   fi
1787 else
1788   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1789 echo "$as_me: creating cache $cache_file" >&6;}
1790   >$cache_file
1791 fi
1792
1793 # Check that the precious variables saved in the cache have kept the same
1794 # value.
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
1802     set,)
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=: ;;
1806     ,set)
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=: ;;
1810     ,);;
1811     *)
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=:
1820       fi;;
1821   esac
1822   # Pass precious variables to config.status.
1823   if test "$ac_new_set" = set; then
1824     case $ac_new_val in
1825     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1826     *) ac_arg=$ac_var=$ac_new_val ;;
1827     esac
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'" ;;
1831     esac
1832   fi
1833 done
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; }; }
1840 fi
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858 ac_ext=c
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
1863
1864
1865
1866
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;}
1875     case $cache_file in
1876       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1877       *)                      . "./$cache_file";;
1878     esac
1879   fi
1880 else
1881   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1882 echo "$as_me: creating cache $cache_file" >&6;}
1883   >$cache_file
1884 fi
1885
1886 fi
1887
1888 ac_aux_dir=
1889 for ac_dir in config "$srcdir"/config; do
1890   if test -f "$ac_dir/install-sh"; then
1891     ac_aux_dir=$ac_dir
1892     ac_install_sh="$ac_aux_dir/install-sh -c"
1893     break
1894   elif test -f "$ac_dir/install.sh"; then
1895     ac_aux_dir=$ac_dir
1896     ac_install_sh="$ac_aux_dir/install.sh -c"
1897     break
1898   elif test -f "$ac_dir/shtool"; then
1899     ac_aux_dir=$ac_dir
1900     ac_install_sh="$ac_aux_dir/shtool install -c"
1901     break
1902   fi
1903 done
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; }; }
1908 fi
1909
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.
1917
1918
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; }; }
1924
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
1929 else
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; }; }
1941
1942 fi
1943 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1944 echo "${ECHO_T}$ac_cv_build" >&6; }
1945 case $ac_cv_build in
1946 *-*-*) ;;
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; }; };;
1950 esac
1951 build=$ac_cv_build
1952 ac_save_IFS=$IFS; IFS='-'
1953 set x $ac_cv_build
1954 shift
1955 build_cpu=$1
1956 build_vendor=$2
1957 shift; shift
1958 # Remember, the first character of IFS is used to create $*,
1959 # except with old shells:
1960 build_os=$*
1961 IFS=$ac_save_IFS
1962 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1963
1964
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
1969 else
1970   if test "x$host_alias" = x; then
1971   ac_cv_host=$ac_cv_build
1972 else
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; }; }
1977 fi
1978
1979 fi
1980 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1981 echo "${ECHO_T}$ac_cv_host" >&6; }
1982 case $ac_cv_host in
1983 *-*-*) ;;
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; }; };;
1987 esac
1988 host=$ac_cv_host
1989 ac_save_IFS=$IFS; IFS='-'
1990 set x $ac_cv_host
1991 shift
1992 host_cpu=$1
1993 host_vendor=$2
1994 shift; shift
1995 # Remember, the first character of IFS is used to create $*,
1996 # except with old shells:
1997 host_os=$*
1998 IFS=$ac_save_IFS
1999 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2000
2001
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
2006 else
2007   if test "x$target_alias" = x; then
2008   ac_cv_target=$ac_cv_host
2009 else
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; }; }
2014 fi
2015
2016 fi
2017 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2018 echo "${ECHO_T}$ac_cv_target" >&6; }
2019 case $ac_cv_target in
2020 *-*-*) ;;
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; }; };;
2024 esac
2025 target=$ac_cv_target
2026 ac_save_IFS=$IFS; IFS='-'
2027 set x $ac_cv_target
2028 shift
2029 target_cpu=$1
2030 target_vendor=$2
2031 shift; shift
2032 # Remember, the first character of IFS is used to create $*,
2033 # except with old shells:
2034 target_os=$*
2035 IFS=$ac_save_IFS
2036 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2037
2038
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" = \
2043     NONENONEs,x,x, &&
2044   program_prefix=${target_alias}-
2045
2046 am__api_version='1.10'
2047
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
2054 # AIX /bin/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
2066 else
2067   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068 for as_dir in $PATH
2069 do
2070   IFS=$as_save_IFS
2071   test -z "$as_dir" && as_dir=.
2072   # Account for people who put trailing slashes in PATH elements.
2073 case $as_dir/ in
2074   ./ | .// | /cC/* | \
2075   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2076   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2077   /usr/ucb/* ) ;;
2078   *)
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
2081     # by default.
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.
2088             :
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.
2092             :
2093           else
2094             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2095             break 3
2096           fi
2097         fi
2098       done
2099     done
2100     ;;
2101 esac
2102 done
2103 IFS=$as_save_IFS
2104
2105
2106 fi
2107   if test "${ac_cv_path_install+set}" = set; then
2108     INSTALL=$ac_cv_path_install
2109   else
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
2115   fi
2116 fi
2117 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2118 echo "${ECHO_T}$INSTALL" >&6; }
2119
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}'
2123
2124 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2125
2126 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2127
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; }
2130 # Just in case
2131 sleep 1
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
2137 # directory).
2138 if (
2139    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2140    if test "$*" = "X"; then
2141       # -L didn't work.
2142       set X `ls -t $srcdir/configure conftest.file`
2143    fi
2144    rm -f conftest.file
2145    if test "$*" != "X $srcdir/configure conftest.file" \
2146       && test "$*" != "X conftest.file $srcdir/configure"; then
2147
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; }; }
2157    fi
2158
2159    test "$2" = conftest.file
2160    )
2161 then
2162    # Ok.
2163    :
2164 else
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; }; }
2170 fi
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,$//
2182 _ACEOF
2183 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2184 rm -f conftest.sed
2185
2186 # expand $ac_aux_dir to an absolute path
2187 am_aux_dir=`cd $ac_aux_dir && pwd`
2188
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 "
2193 else
2194   am_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;}
2197 fi
2198
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
2204 else
2205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2207 do
2208   IFS=$as_save_IFS
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
2218                break 3;;
2219            esac
2220          done
2221        done
2222 done
2223 IFS=$as_save_IFS
2224
2225 fi
2226
2227   if test "${ac_cv_path_mkdir+set}" = set; then
2228     MKDIR_P="$ac_cv_path_mkdir -p"
2229   else
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"
2236   fi
2237 fi
2238 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2239 echo "${ECHO_T}$MKDIR_P" >&6; }
2240
2241 mkdir_p="$MKDIR_P"
2242 case $mkdir_p in
2243   [\\/$]* | ?:[\\/]*) ;;
2244   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2245 esac
2246
2247 for ac_prog in gawk mawk nawk awk
2248 do
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
2255 else
2256   if test -n "$AWK"; then
2257   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2258 else
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 for as_dir in $PATH
2261 do
2262   IFS=$as_save_IFS
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
2268     break 2
2269   fi
2270 done
2271 done
2272 IFS=$as_save_IFS
2273
2274 fi
2275 fi
2276 AWK=$ac_cv_prog_AWK
2277 if test -n "$AWK"; then
2278   { echo "$as_me:$LINENO: result: $AWK" >&5
2279 echo "${ECHO_T}$AWK" >&6; }
2280 else
2281   { echo "$as_me:$LINENO: result: no" >&5
2282 echo "${ECHO_T}no" >&6; }
2283 fi
2284
2285
2286   test -n "$AWK" && break
2287 done
2288
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
2294 else
2295   cat >conftest.make <<\_ACEOF
2296 SHELL = /bin/sh
2297 all:
2298         @echo '@@@%%%=$(MAKE)=@@@%%%'
2299 _ACEOF
2300 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2301 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2302   *@@@%%%=?*=@@@%%%*)
2303     eval ac_cv_prog_make_${ac_make}_set=yes;;
2304   *)
2305     eval ac_cv_prog_make_${ac_make}_set=no;;
2306 esac
2307 rm -f conftest.make
2308 fi
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; }
2312   SET_MAKE=
2313 else
2314   { echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6; }
2316   SET_MAKE="MAKE=${MAKE-make}"
2317 fi
2318
2319 rm -rf .tst 2>/dev/null
2320 mkdir .tst 2>/dev/null
2321 if test -d .tst; then
2322   am__leading_dot=.
2323 else
2324   am__leading_dot=_
2325 fi
2326 rmdir .tst 2>/dev/null
2327
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; }; }
2337   fi
2338 fi
2339
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'
2344   else
2345     CYGPATH_W=echo
2346   fi
2347 fi
2348
2349
2350 # Define the identity of the package.
2351  PACKAGE=cyrus-sasl
2352  VERSION=2.1.23
2353
2354
2355 cat >>confdefs.h <<_ACEOF
2356 #define PACKAGE "$PACKAGE"
2357 _ACEOF
2358
2359
2360 cat >>confdefs.h <<_ACEOF
2361 #define VERSION "$VERSION"
2362 _ACEOF
2363
2364 # Some tools Automake needs.
2365
2366 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2367
2368
2369 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2370
2371
2372 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2373
2374
2375 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2376
2377
2378 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2379
2380 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2381
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
2394 else
2395   if test -n "$STRIP"; then
2396   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2397 else
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 for as_dir in $PATH
2400 do
2401   IFS=$as_save_IFS
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
2407     break 2
2408   fi
2409 done
2410 done
2411 IFS=$as_save_IFS
2412
2413 fi
2414 fi
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; }
2419 else
2420   { echo "$as_me:$LINENO: result: no" >&5
2421 echo "${ECHO_T}no" >&6; }
2422 fi
2423
2424
2425 fi
2426 if test -z "$ac_cv_prog_STRIP"; then
2427   ac_ct_STRIP=$STRIP
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
2434 else
2435   if test -n "$ac_ct_STRIP"; then
2436   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2437 else
2438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439 for as_dir in $PATH
2440 do
2441   IFS=$as_save_IFS
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
2447     break 2
2448   fi
2449 done
2450 done
2451 IFS=$as_save_IFS
2452
2453 fi
2454 fi
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; }
2459 else
2460   { echo "$as_me:$LINENO: result: no" >&5
2461 echo "${ECHO_T}no" >&6; }
2462 fi
2463
2464   if test "x$ac_ct_STRIP" = x; then
2465     STRIP=":"
2466   else
2467     case $cross_compiling:$ac_tool_warned in
2468 yes:)
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 ;;
2476 esac
2477     STRIP=$ac_ct_STRIP
2478   fi
2479 else
2480   STRIP="$ac_cv_prog_STRIP"
2481 fi
2482
2483 fi
2484 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2485
2486 # We need awk for the "check" target.  The system "awk" is bad on
2487 # some platforms.
2488 # Always define AMTAR for backward compatibility.
2489
2490 AMTAR=${AMTAR-"${am_missing_run}tar"}
2491
2492 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2493
2494
2495
2496
2497
2498
2499
2500         ACLOCAL="$ACLOCAL -I \$(top_srcdir)/cmulocal"
2501
2502
2503 # and include our config dir scripts
2504 ACLOCAL="$ACLOCAL -I \$(top_srcdir)/config"
2505
2506 DIRS=""
2507
2508 # Check whether --enable-cmulocal was given.
2509 if test "${enable_cmulocal+set}" = set; then
2510   enableval=$enable_cmulocal;
2511 else
2512   enable_cmulocal=no
2513 fi
2514
2515
2516 # Check whether --enable-sample was given.
2517 if test "${enable_sample+set}" = set; then
2518   enableval=$enable_sample; enable_sample=yes
2519 fi
2520
2521
2522 ac_ext=c
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
2534 else
2535   if test -n "$CC"; then
2536   ac_cv_prog_CC="$CC" # Let the user override the test.
2537 else
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 for as_dir in $PATH
2540 do
2541   IFS=$as_save_IFS
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
2547     break 2
2548   fi
2549 done
2550 done
2551 IFS=$as_save_IFS
2552
2553 fi
2554 fi
2555 CC=$ac_cv_prog_CC
2556 if test -n "$CC"; then
2557   { echo "$as_me:$LINENO: result: $CC" >&5
2558 echo "${ECHO_T}$CC" >&6; }
2559 else
2560   { echo "$as_me:$LINENO: result: no" >&5
2561 echo "${ECHO_T}no" >&6; }
2562 fi
2563
2564
2565 fi
2566 if test -z "$ac_cv_prog_CC"; then
2567   ac_ct_CC=$CC
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
2574 else
2575   if test -n "$ac_ct_CC"; then
2576   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2577 else
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579 for as_dir in $PATH
2580 do
2581   IFS=$as_save_IFS
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
2587     break 2
2588   fi
2589 done
2590 done
2591 IFS=$as_save_IFS
2592
2593 fi
2594 fi
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; }
2599 else
2600   { echo "$as_me:$LINENO: result: no" >&5
2601 echo "${ECHO_T}no" >&6; }
2602 fi
2603
2604   if test "x$ac_ct_CC" = x; then
2605     CC=""
2606   else
2607     case $cross_compiling:$ac_tool_warned in
2608 yes:)
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 ;;
2616 esac
2617     CC=$ac_ct_CC
2618   fi
2619 else
2620   CC="$ac_cv_prog_CC"
2621 fi
2622
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
2631 else
2632   if test -n "$CC"; then
2633   ac_cv_prog_CC="$CC" # Let the user override the test.
2634 else
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 for as_dir in $PATH
2637 do
2638   IFS=$as_save_IFS
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
2644     break 2
2645   fi
2646 done
2647 done
2648 IFS=$as_save_IFS
2649
2650 fi
2651 fi
2652 CC=$ac_cv_prog_CC
2653 if test -n "$CC"; then
2654   { echo "$as_me:$LINENO: result: $CC" >&5
2655 echo "${ECHO_T}$CC" >&6; }
2656 else
2657   { echo "$as_me:$LINENO: result: no" >&5
2658 echo "${ECHO_T}no" >&6; }
2659 fi
2660
2661
2662   fi
2663 fi
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
2671 else
2672   if test -n "$CC"; then
2673   ac_cv_prog_CC="$CC" # Let the user override the test.
2674 else
2675   ac_prog_rejected=no
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 for as_dir in $PATH
2678 do
2679   IFS=$as_save_IFS
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
2685        continue
2686      fi
2687     ac_cv_prog_CC="cc"
2688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2689     break 2
2690   fi
2691 done
2692 done
2693 IFS=$as_save_IFS
2694
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
2698   shift
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.
2703     shift
2704     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2705   fi
2706 fi
2707 fi
2708 fi
2709 CC=$ac_cv_prog_CC
2710 if test -n "$CC"; then
2711   { echo "$as_me:$LINENO: result: $CC" >&5
2712 echo "${ECHO_T}$CC" >&6; }
2713 else
2714   { echo "$as_me:$LINENO: result: no" >&5
2715 echo "${ECHO_T}no" >&6; }
2716 fi
2717
2718
2719 fi
2720 if test -z "$CC"; then
2721   if test -n "$ac_tool_prefix"; then
2722   for ac_prog in cl.exe
2723   do
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
2730 else
2731   if test -n "$CC"; then
2732   ac_cv_prog_CC="$CC" # Let the user override the test.
2733 else
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH
2736 do
2737   IFS=$as_save_IFS
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
2743     break 2
2744   fi
2745 done
2746 done
2747 IFS=$as_save_IFS
2748
2749 fi
2750 fi
2751 CC=$ac_cv_prog_CC
2752 if test -n "$CC"; then
2753   { echo "$as_me:$LINENO: result: $CC" >&5
2754 echo "${ECHO_T}$CC" >&6; }
2755 else
2756   { echo "$as_me:$LINENO: result: no" >&5
2757 echo "${ECHO_T}no" >&6; }
2758 fi
2759
2760
2761     test -n "$CC" && break
2762   done
2763 fi
2764 if test -z "$CC"; then
2765   ac_ct_CC=$CC
2766   for ac_prog in cl.exe
2767 do
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
2774 else
2775   if test -n "$ac_ct_CC"; then
2776   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2777 else
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 for as_dir in $PATH
2780 do
2781   IFS=$as_save_IFS
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
2787     break 2
2788   fi
2789 done
2790 done
2791 IFS=$as_save_IFS
2792
2793 fi
2794 fi
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; }
2799 else
2800   { echo "$as_me:$LINENO: result: no" >&5
2801 echo "${ECHO_T}no" >&6; }
2802 fi
2803
2804
2805   test -n "$ac_ct_CC" && break
2806 done
2807
2808   if test "x$ac_ct_CC" = x; then
2809     CC=""
2810   else
2811     case $cross_compiling:$ac_tool_warned in
2812 yes:)
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 ;;
2820 esac
2821     CC=$ac_ct_CC
2822   fi
2823 fi
2824
2825 fi
2826
2827
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; }; }
2833
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"
2838 case "(($ac_try" in
2839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840   *) ac_try_echo=$ac_try;;
2841 esac
2842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2843   (eval "$ac_compiler --version >&5") 2>&5
2844   ac_status=$?
2845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846   (exit $ac_status); }
2847 { (ac_try="$ac_compiler -v >&5"
2848 case "(($ac_try" in
2849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850   *) ac_try_echo=$ac_try;;
2851 esac
2852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2853   (eval "$ac_compiler -v >&5") 2>&5
2854   ac_status=$?
2855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856   (exit $ac_status); }
2857 { (ac_try="$ac_compiler -V >&5"
2858 case "(($ac_try" in
2859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860   *) ac_try_echo=$ac_try;;
2861 esac
2862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2863   (eval "$ac_compiler -V >&5") 2>&5
2864   ac_status=$?
2865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866   (exit $ac_status); }
2867
2868 cat >conftest.$ac_ext <<_ACEOF
2869 /* confdefs.h.  */
2870 _ACEOF
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h.  */
2874
2875 int
2876 main ()
2877 {
2878
2879   ;
2880   return 0;
2881 }
2882 _ACEOF
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
2887 # of exeext.
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[^ ]*//'`
2891 #
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'
2896 #
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.
2900 ac_rmfiles=
2901 for ac_file in $ac_files
2902 do
2903   case $ac_file in
2904     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2905     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2906   esac
2907 done
2908 rm -f $ac_rmfiles
2909
2910 if { (ac_try="$ac_link_default"
2911 case "(($ac_try" in
2912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913   *) ac_try_echo=$ac_try;;
2914 esac
2915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2916   (eval "$ac_link_default") 2>&5
2917   ac_status=$?
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
2924 # Autoconf.
2925 for ac_file in $ac_files ''
2926 do
2927   test -f "$ac_file" || continue
2928   case $ac_file in
2929     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2930         ;;
2931     [ab].out )
2932         # We found the default executable, but exeext='' is most
2933         # certainly right.
2934         break;;
2935     *.* )
2936         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2937         then :; else
2938            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2939         fi
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
2944         # actually working.
2945         break;;
2946     * )
2947         break;;
2948   esac
2949 done
2950 test "$ac_cv_exeext" = no && ac_cv_exeext=
2951
2952 else
2953   ac_file=''
2954 fi
2955
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
2961
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; }; }
2967 fi
2968
2969 ac_exeext=$ac_cv_exeext
2970
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;;
2982 esac
2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984   (eval "$ac_try") 2>&5
2985   ac_status=$?
2986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987   (exit $ac_status); }; }; then
2988     cross_compiling=no
2989   else
2990     if test "$cross_compiling" = maybe; then
2991         cross_compiling=yes
2992     else
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; }; }
3000     fi
3001   fi
3002 fi
3003 { echo "$as_me:$LINENO: result: yes" >&5
3004 echo "${ECHO_T}yes" >&6; }
3005
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; }
3014
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"
3018 case "(($ac_try" in
3019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020   *) ac_try_echo=$ac_try;;
3021 esac
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023   (eval "$ac_link") 2>&5
3024   ac_status=$?
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
3030 # `rm'.
3031 for ac_file in conftest.exe conftest conftest.*; do
3032   test -f "$ac_file" || continue
3033   case $ac_file in
3034     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3035     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3036           break;;
3037     * ) break;;
3038   esac
3039 done
3040 else
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; }; }
3046 fi
3047
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; }
3051
3052 rm -f conftest.$ac_ext
3053 EXEEXT=$ac_cv_exeext
3054 ac_exeext=$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
3059 else
3060   cat >conftest.$ac_ext <<_ACEOF
3061 /* confdefs.h.  */
3062 _ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h.  */
3066
3067 int
3068 main ()
3069 {
3070
3071   ;
3072   return 0;
3073 }
3074 _ACEOF
3075 rm -f conftest.o conftest.obj
3076 if { (ac_try="$ac_compile"
3077 case "(($ac_try" in
3078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079   *) ac_try_echo=$ac_try;;
3080 esac
3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082   (eval "$ac_compile") 2>&5
3083   ac_status=$?
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;
3088   case $ac_file in
3089     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3090     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3091        break;;
3092   esac
3093 done
3094 else
3095   echo "$as_me: failed program was:" >&5
3096 sed 's/^/| /' conftest.$ac_ext >&5
3097
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; }; }
3103 fi
3104
3105 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3106 fi
3107 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3108 echo "${ECHO_T}$ac_cv_objext" >&6; }
3109 OBJEXT=$ac_cv_objext
3110 ac_objext=$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
3115 else
3116   cat >conftest.$ac_ext <<_ACEOF
3117 /* confdefs.h.  */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h.  */
3122
3123 int
3124 main ()
3125 {
3126 #ifndef __GNUC__
3127        choke me
3128 #endif
3129
3130   ;
3131   return 0;
3132 }
3133 _ACEOF
3134 rm -f conftest.$ac_objext
3135 if { (ac_try="$ac_compile"
3136 case "(($ac_try" in
3137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138   *) ac_try_echo=$ac_try;;
3139 esac
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141   (eval "$ac_compile") 2>conftest.er1
3142   ac_status=$?
3143   grep -v '^ *+' conftest.er1 >conftest.err
3144   rm -f conftest.er1
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
3151   ac_compiler_gnu=yes
3152 else
3153   echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3155
3156         ac_compiler_gnu=no
3157 fi
3158
3159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3160 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3161
3162 fi
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
3172 else
3173   ac_save_c_werror_flag=$ac_c_werror_flag
3174    ac_c_werror_flag=yes
3175    ac_cv_prog_cc_g=no
3176    CFLAGS="-g"
3177    cat >conftest.$ac_ext <<_ACEOF
3178 /* confdefs.h.  */
3179 _ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h.  */
3183
3184 int
3185 main ()
3186 {
3187
3188   ;
3189   return 0;
3190 }
3191 _ACEOF
3192 rm -f conftest.$ac_objext
3193 if { (ac_try="$ac_compile"
3194 case "(($ac_try" in
3195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196   *) ac_try_echo=$ac_try;;
3197 esac
3198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199   (eval "$ac_compile") 2>conftest.er1
3200   ac_status=$?
3201   grep -v '^ *+' conftest.er1 >conftest.err
3202   rm -f conftest.er1
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
3209   ac_cv_prog_cc_g=yes
3210 else
3211   echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3213
3214         CFLAGS=""
3215       cat >conftest.$ac_ext <<_ACEOF
3216 /* confdefs.h.  */
3217 _ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h.  */
3221
3222 int
3223 main ()
3224 {
3225
3226   ;
3227   return 0;
3228 }
3229 _ACEOF
3230 rm -f conftest.$ac_objext
3231 if { (ac_try="$ac_compile"
3232 case "(($ac_try" in
3233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234   *) ac_try_echo=$ac_try;;
3235 esac
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237   (eval "$ac_compile") 2>conftest.er1
3238   ac_status=$?
3239   grep -v '^ *+' conftest.er1 >conftest.err
3240   rm -f conftest.er1
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
3247   :
3248 else
3249   echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3251
3252         ac_c_werror_flag=$ac_save_c_werror_flag
3253          CFLAGS="-g"
3254          cat >conftest.$ac_ext <<_ACEOF
3255 /* confdefs.h.  */
3256 _ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h.  */
3260
3261 int
3262 main ()
3263 {
3264
3265   ;
3266   return 0;
3267 }
3268 _ACEOF
3269 rm -f conftest.$ac_objext
3270 if { (ac_try="$ac_compile"
3271 case "(($ac_try" in
3272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273   *) ac_try_echo=$ac_try;;
3274 esac
3275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3276   (eval "$ac_compile") 2>conftest.er1
3277   ac_status=$?
3278   grep -v '^ *+' conftest.er1 >conftest.err
3279   rm -f conftest.er1
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
3286   ac_cv_prog_cc_g=yes
3287 else
3288   echo "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.$ac_ext >&5
3290
3291
3292 fi
3293
3294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3295 fi
3296
3297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3298 fi
3299
3300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3301    ac_c_werror_flag=$ac_save_c_werror_flag
3302 fi
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
3309     CFLAGS="-g -O2"
3310   else
3311     CFLAGS="-g"
3312   fi
3313 else
3314   if test "$GCC" = yes; then
3315     CFLAGS="-O2"
3316   else
3317     CFLAGS=
3318   fi
3319 fi
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
3324 else
3325   ac_cv_prog_cc_c89=no
3326 ac_save_CC=$CC
3327 cat >conftest.$ac_ext <<_ACEOF
3328 /* confdefs.h.  */
3329 _ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h.  */
3333 #include <stdarg.h>
3334 #include <stdio.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)
3341      char **p;
3342      int i;
3343 {
3344   return p[i];
3345 }
3346 static char *f (char * (*g) (char **, int), char **p, ...)
3347 {
3348   char *s;
3349   va_list v;
3350   va_start (v,p);
3351   s = g (p, va_arg (v,int));
3352   va_end (v);
3353   return s;
3354 }
3355
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];
3364
3365 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3366    inside strings and character constants.  */
3367 #define FOO(x) 'x'
3368 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3369
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);
3374 int argc;
3375 char **argv;
3376 int
3377 main ()
3378 {
3379 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3380   ;
3381   return 0;
3382 }
3383 _ACEOF
3384 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3385         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3386 do
3387   CC="$ac_save_CC $ac_arg"
3388   rm -f conftest.$ac_objext
3389 if { (ac_try="$ac_compile"
3390 case "(($ac_try" in
3391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392   *) ac_try_echo=$ac_try;;
3393 esac
3394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395   (eval "$ac_compile") 2>conftest.er1
3396   ac_status=$?
3397   grep -v '^ *+' conftest.er1 >conftest.err
3398   rm -f conftest.er1
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
3406 else
3407   echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3409
3410
3411 fi
3412
3413 rm -f core conftest.err conftest.$ac_objext
3414   test "x$ac_cv_prog_cc_c89" != "xno" && break
3415 done
3416 rm -f conftest.$ac_ext
3417 CC=$ac_save_CC
3418
3419 fi
3420 # AC_CACHE_VAL
3421 case "x$ac_cv_prog_cc_c89" in
3422   x)
3423     { echo "$as_me:$LINENO: result: none needed" >&5
3424 echo "${ECHO_T}none needed" >&6; } ;;
3425   xno)
3426     { echo "$as_me:$LINENO: result: unsupported" >&5
3427 echo "${ECHO_T}unsupported" >&6; } ;;
3428   *)
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; } ;;
3432 esac
3433
3434
3435 ac_ext=c
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"
3441
3442 ac_config_commands="$ac_config_commands depfiles"
3443
3444
3445 am_make=${MAKE-make}
3446 cat > confinc << 'END'
3447 am__doit:
3448         @echo done
3449 .PHONY: am__doit
3450 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; }
3454 am__include="#"
3455 am__quote=
3456 _am_result=none
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
3465    am__include=include
3466    am__quote=
3467    _am_result=GNU
3468 fi
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
3474       am__quote="\""
3475       _am_result=BSD
3476    fi
3477 fi
3478
3479
3480 { echo "$as_me:$LINENO: result: $_am_result" >&5
3481 echo "${ECHO_T}$_am_result" >&6; }
3482 rm -f confinc confmf
3483
3484 # Check whether --enable-dependency-tracking was given.
3485 if test "${enable_dependency_tracking+set}" = set; then
3486   enableval=$enable_dependency_tracking;
3487 fi
3488
3489 if test "x$enable_dependency_tracking" != xno; then
3490   am_depcomp="$ac_aux_dir/depcomp"
3491   AMDEPBACKSLASH='\'
3492 fi
3493  if test "x$enable_dependency_tracking" != xno; then
3494   AMDEP_TRUE=
3495   AMDEP_FALSE='#'
3496 else
3497   AMDEP_TRUE='#'
3498   AMDEP_FALSE=
3499 fi
3500
3501
3502
3503 depcc="$CC"   am_compiler_list=
3504
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
3509 else
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
3515   # in D'.
3516   mkdir conftest.dir
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
3520   cd 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
3526   # directory.
3527   mkdir sub
3528
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`
3532   fi
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.
3537     #
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.
3541     : > sub/conftest.c
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
3547     done
3548     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3549
3550     case $depmode in
3551     nosideeffect)
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
3555         continue
3556       else
3557         break
3558       fi
3559       ;;
3560     none) break ;;
3561     esac
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
3584         break
3585       fi
3586     fi
3587   done
3588
3589   cd ..
3590   rm -rf conftest.dir
3591 else
3592   am_cv_CC_dependencies_compiler_type=none
3593 fi
3594
3595 fi
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
3599
3600  if
3601   test "x$enable_dependency_tracking" != xno \
3602   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3603   am__fastdepCC_TRUE=
3604   am__fastdepCC_FALSE='#'
3605 else
3606   am__fastdepCC_TRUE='#'
3607   am__fastdepCC_FALSE=
3608 fi
3609
3610
3611 ac_ext=c
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
3620   CPP=
3621 fi
3622 if test -z "$CPP"; then
3623   if test "${ac_cv_prog_CPP+set}" = set; then
3624   echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626       # Double quotes because CPP needs to be expanded
3627     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3628     do
3629       ac_preproc_ok=false
3630 for ac_c_preproc_warn_flag in '' yes
3631 do
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
3639 /* confdefs.h.  */
3640 _ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h.  */
3644 #ifdef __STDC__
3645 # include <limits.h>
3646 #else
3647 # include <assert.h>
3648 #endif
3649                      Syntax error
3650 _ACEOF
3651 if { (ac_try="$ac_cpp conftest.$ac_ext"
3652 case "(($ac_try" in
3653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654   *) ac_try_echo=$ac_try;;
3655 esac
3656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3657   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3658   ac_status=$?
3659   grep -v '^ *+' conftest.er1 >conftest.err
3660   rm -f conftest.er1
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
3666        }; then
3667   :
3668 else
3669   echo "$as_me: failed program was:" >&5
3670 sed 's/^/| /' conftest.$ac_ext >&5
3671
3672   # Broken: fails on valid input.
3673 continue
3674 fi
3675
3676 rm -f conftest.err conftest.$ac_ext
3677
3678   # OK, works on sane cases.  Now check whether nonexistent headers
3679   # can be detected and how.
3680   cat >conftest.$ac_ext <<_ACEOF
3681 /* confdefs.h.  */
3682 _ACEOF
3683 cat confdefs.h >>conftest.$ac_ext
3684 cat >>conftest.$ac_ext <<_ACEOF
3685 /* end confdefs.h.  */
3686 #include <ac_nonexistent.h>
3687 _ACEOF
3688 if { (ac_try="$ac_cpp conftest.$ac_ext"
3689 case "(($ac_try" in
3690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691   *) ac_try_echo=$ac_try;;
3692 esac
3693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3694   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3695   ac_status=$?
3696   grep -v '^ *+' conftest.er1 >conftest.err
3697   rm -f conftest.er1
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
3703        }; then
3704   # Broken: success on invalid input.
3705 continue
3706 else
3707   echo "$as_me: failed program was:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3709
3710   # Passes both tests.
3711 ac_preproc_ok=:
3712 break
3713 fi
3714
3715 rm -f conftest.err conftest.$ac_ext
3716
3717 done
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
3721   break
3722 fi
3723
3724     done
3725     ac_cv_prog_CPP=$CPP
3726
3727 fi
3728   CPP=$ac_cv_prog_CPP
3729 else
3730   ac_cv_prog_CPP=$CPP
3731 fi
3732 { echo "$as_me:$LINENO: result: $CPP" >&5
3733 echo "${ECHO_T}$CPP" >&6; }
3734 ac_preproc_ok=false
3735 for ac_c_preproc_warn_flag in '' yes
3736 do
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
3744 /* confdefs.h.  */
3745 _ACEOF
3746 cat confdefs.h >>conftest.$ac_ext
3747 cat >>conftest.$ac_ext <<_ACEOF
3748 /* end confdefs.h.  */
3749 #ifdef __STDC__
3750 # include <limits.h>
3751 #else
3752 # include <assert.h>
3753 #endif
3754                      Syntax error
3755 _ACEOF
3756 if { (ac_try="$ac_cpp conftest.$ac_ext"
3757 case "(($ac_try" in
3758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759   *) ac_try_echo=$ac_try;;
3760 esac
3761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3762   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3763   ac_status=$?
3764   grep -v '^ *+' conftest.er1 >conftest.err
3765   rm -f conftest.er1
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
3771        }; then
3772   :
3773 else
3774   echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.$ac_ext >&5
3776
3777   # Broken: fails on valid input.
3778 continue
3779 fi
3780
3781 rm -f conftest.err conftest.$ac_ext
3782
3783   # OK, works on sane cases.  Now check whether nonexistent headers
3784   # can be detected and how.
3785   cat >conftest.$ac_ext <<_ACEOF
3786 /* confdefs.h.  */
3787 _ACEOF
3788 cat confdefs.h >>conftest.$ac_ext
3789 cat >>conftest.$ac_ext <<_ACEOF
3790 /* end confdefs.h.  */
3791 #include <ac_nonexistent.h>
3792 _ACEOF
3793 if { (ac_try="$ac_cpp conftest.$ac_ext"
3794 case "(($ac_try" in
3795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796   *) ac_try_echo=$ac_try;;
3797 esac
3798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3799   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3800   ac_status=$?
3801   grep -v '^ *+' conftest.er1 >conftest.err
3802   rm -f conftest.er1
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
3808        }; then
3809   # Broken: success on invalid input.
3810 continue
3811 else
3812   echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3814
3815   # Passes both tests.
3816 ac_preproc_ok=:
3817 break
3818 fi
3819
3820 rm -f conftest.err conftest.$ac_ext
3821
3822 done
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
3826   :
3827 else
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; }; }
3833 fi
3834
3835 ac_ext=c
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
3840
3841 for ac_prog in gawk mawk nawk awk
3842 do
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
3849 else
3850   if test -n "$AWK"; then
3851   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3852 else
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 for as_dir in $PATH
3855 do
3856   IFS=$as_save_IFS
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
3862     break 2
3863   fi
3864 done
3865 done
3866 IFS=$as_save_IFS
3867
3868 fi
3869 fi
3870 AWK=$ac_cv_prog_AWK
3871 if test -n "$AWK"; then
3872   { echo "$as_me:$LINENO: result: $AWK" >&5
3873 echo "${ECHO_T}$AWK" >&6; }
3874 else
3875   { echo "$as_me:$LINENO: result: no" >&5
3876 echo "${ECHO_T}no" >&6; }
3877 fi
3878
3879
3880   test -n "$AWK" && break
3881 done
3882
3883 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3884 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3885 LN_S=$as_ln_s
3886 if test "$LN_S" = "ln -s"; then
3887   { echo "$as_me:$LINENO: result: yes" >&5
3888 echo "${ECHO_T}yes" >&6; }
3889 else
3890   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3891 echo "${ECHO_T}no, using $LN_S" >&6; }
3892 fi
3893
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
3899 else
3900   cat >conftest.make <<\_ACEOF
3901 SHELL = /bin/sh
3902 all:
3903         @echo '@@@%%%=$(MAKE)=@@@%%%'
3904 _ACEOF
3905 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3906 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3907   *@@@%%%=?*=@@@%%%*)
3908     eval ac_cv_prog_make_${ac_make}_set=yes;;
3909   *)
3910     eval ac_cv_prog_make_${ac_make}_set=no;;
3911 esac
3912 rm -f conftest.make
3913 fi
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; }
3917   SET_MAKE=
3918 else
3919   { echo "$as_me:$LINENO: result: no" >&5
3920 echo "${ECHO_T}no" >&6; }
3921   SET_MAKE="MAKE=${MAKE-make}"
3922 fi
3923
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
3930 # AIX /bin/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
3942 else
3943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 for as_dir in $PATH
3945 do
3946   IFS=$as_save_IFS
3947   test -z "$as_dir" && as_dir=.
3948   # Account for people who put trailing slashes in PATH elements.
3949 case $as_dir/ in
3950   ./ | .// | /cC/* | \
3951   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3952   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3953   /usr/ucb/* ) ;;
3954   *)
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
3957     # by default.
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.
3964             :
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.
3968             :
3969           else
3970             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3971             break 3
3972           fi
3973         fi
3974       done
3975     done
3976     ;;
3977 esac
3978 done
3979 IFS=$as_save_IFS
3980
3981
3982 fi
3983   if test "${ac_cv_path_install+set}" = set; then
3984     INSTALL=$ac_cv_path_install
3985   else
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
3991   fi
3992 fi
3993 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3994 echo "${ECHO_T}$INSTALL" >&6; }
3995
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}'
3999
4000 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4001
4002 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4003
4004
4005
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
4010 else
4011
4012 cat >conftest.$ac_ext <<_ACEOF
4013 /* confdefs.h.  */
4014 _ACEOF
4015 cat confdefs.h >>conftest.$ac_ext
4016 cat >>conftest.$ac_ext <<_ACEOF
4017 /* end confdefs.h.  */
4018
4019 #include <stdlib.h>
4020
4021 int
4022 main ()
4023 {
4024
4025 static void foo(void) __attribute__ ((noreturn));
4026
4027 static void
4028 foo(void)
4029 {
4030   exit(1);
4031 }
4032
4033   ;
4034   return 0;
4035 }
4036 _ACEOF
4037 rm -f conftest.$ac_objext
4038 if { (ac_try="$ac_compile"
4039 case "(($ac_try" in
4040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041   *) ac_try_echo=$ac_try;;
4042 esac
4043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4044   (eval "$ac_compile") 2>conftest.er1
4045   ac_status=$?
4046   grep -v '^ *+' conftest.er1 >conftest.err
4047   rm -f conftest.er1
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
4055 else
4056   echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4058
4059         ac_cv___attribute__=no
4060 fi
4061
4062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063 fi
4064
4065 if test "$ac_cv___attribute__" = "yes"; then
4066
4067 cat >>confdefs.h <<\_ACEOF
4068 #define HAVE___ATTRIBUTE__ 1
4069 _ACEOF
4070
4071 fi
4072 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
4073 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
4074
4075
4076
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
4082 else
4083
4084     # first, try -R
4085     SAVE_LDFLAGS="${LDFLAGS}"
4086     LDFLAGS="-R /usr/lib"
4087     cat >conftest.$ac_ext <<_ACEOF
4088 /* confdefs.h.  */
4089 _ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h.  */
4093
4094 int
4095 main ()
4096 {
4097
4098   ;
4099   return 0;
4100 }
4101 _ACEOF
4102 rm -f conftest.$ac_objext conftest$ac_exeext
4103 if { (ac_try="$ac_link"
4104 case "(($ac_try" in
4105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106   *) ac_try_echo=$ac_try;;
4107 esac
4108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4109   (eval "$ac_link") 2>conftest.er1
4110   ac_status=$?
4111   grep -v '^ *+' conftest.er1 >conftest.err
4112   rm -f conftest.er1
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"
4121 else
4122   echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4124
4125
4126         LDFLAGS="-Wl,-rpath,/usr/lib"
4127     cat >conftest.$ac_ext <<_ACEOF
4128 /* confdefs.h.  */
4129 _ACEOF
4130 cat confdefs.h >>conftest.$ac_ext
4131 cat >>conftest.$ac_ext <<_ACEOF
4132 /* end confdefs.h.  */
4133
4134 int
4135 main ()
4136 {
4137
4138   ;
4139   return 0;
4140 }
4141 _ACEOF
4142 rm -f conftest.$ac_objext conftest$ac_exeext
4143 if { (ac_try="$ac_link"
4144 case "(($ac_try" in
4145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4146   *) ac_try_echo=$ac_try;;
4147 esac
4148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4149   (eval "$ac_link") 2>conftest.er1
4150   ac_status=$?
4151   grep -v '^ *+' conftest.er1 >conftest.err
4152   rm -f conftest.er1
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,"
4161 else
4162   echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.$ac_ext >&5
4164
4165         andrew_runpath_switch="none"
4166 fi
4167
4168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4169       conftest$ac_exeext conftest.$ac_ext
4170
4171 fi
4172
4173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4174       conftest$ac_exeext conftest.$ac_ext
4175   LDFLAGS="${SAVE_LDFLAGS}"
4176
4177 fi
4178 { echo "$as_me:$LINENO: result: $andrew_runpath_switch" >&5
4179 echo "${ECHO_T}$andrew_runpath_switch" >&6; }
4180
4181
4182 # Check whether --with-staticsasl was given.
4183 if test "${with_staticsasl+set}" = set; then
4184   withval=$with_staticsasl;
4185 fi
4186
4187 if test "$with_staticsasl" = yes; then
4188         enable_shared=yes
4189         enable_static=yes
4190 fi
4191
4192 save_target=$target
4193 if test -z "$target"; then
4194         target="NONE"
4195 fi
4196
4197 # new libtool
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 ;;
4204 *)
4205   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
4210       enable_static=yes
4211     fi
4212   done
4213   IFS="$ac_save_ifs"
4214   ;;
4215 esac
4216 else
4217   enable_static=no
4218 fi
4219
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 ;;
4226 *)
4227   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
4232       enable_shared=yes
4233     fi
4234   done
4235   IFS="$ac_save_ifs"
4236   ;;
4237 esac
4238 else
4239   enable_shared=yes
4240 fi
4241
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 ;;
4248 *)
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
4255     fi
4256   done
4257   IFS="$ac_save_ifs"
4258   ;;
4259 esac
4260 else
4261   enable_fast_install=yes
4262 fi
4263
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
4271 else
4272   if test -n "$RANLIB"; then
4273   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4274 else
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 for as_dir in $PATH
4277 do
4278   IFS=$as_save_IFS
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
4284     break 2
4285   fi
4286 done
4287 done
4288 IFS=$as_save_IFS
4289
4290 fi
4291 fi
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; }
4296 else
4297   { echo "$as_me:$LINENO: result: no" >&5
4298 echo "${ECHO_T}no" >&6; }
4299 fi
4300
4301
4302 fi
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
4311 else
4312   if test -n "$ac_ct_RANLIB"; then
4313   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4314 else
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH
4317 do
4318   IFS=$as_save_IFS
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
4324     break 2
4325   fi
4326 done
4327 done
4328 IFS=$as_save_IFS
4329
4330 fi
4331 fi
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; }
4336 else
4337   { echo "$as_me:$LINENO: result: no" >&5
4338 echo "${ECHO_T}no" >&6; }
4339 fi
4340
4341   if test "x$ac_ct_RANLIB" = x; then
4342     RANLIB=":"
4343   else
4344     case $cross_compiling:$ac_tool_warned in
4345 yes:)
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 ;;
4353 esac
4354     RANLIB=$ac_ct_RANLIB
4355   fi
4356 else
4357   RANLIB="$ac_cv_prog_RANLIB"
4358 fi
4359
4360
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
4364 else
4365   with_gnu_ld=no
4366 fi
4367
4368 ac_prog=ld
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`
4374   case "$ac_prog" in
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%/%"`
4382       done
4383       test -z "$LD" && LD="$ac_prog"
4384       ;;
4385   "")
4386     # If it fails, then pretend we aren't using GCC.
4387     ac_prog=ld
4388     ;;
4389   *)
4390     # If it is relative, then search for the first ld in PATH.
4391     with_gnu_ld=unknown
4392     ;;
4393   esac
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; }
4397 else
4398   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4399 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4400 fi
4401 if test "${ac_cv_path_LD+set}" = set; then
4402   echo $ECHO_N "(cached) $ECHO_C" >&6
4403 else
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
4415       else
4416         test "$with_gnu_ld" != yes && break
4417       fi
4418     fi
4419   done
4420   IFS="$ac_save_ifs"
4421 else
4422   ac_cv_path_LD="$LD" # Let the user override the test with a path.
4423 fi
4424 fi
4425
4426 LD="$ac_cv_path_LD"
4427 if test -n "$LD"; then
4428   { echo "$as_me:$LINENO: result: $LD" >&5
4429 echo "${ECHO_T}$LD" >&6; }
4430 else
4431   { echo "$as_me:$LINENO: result: no" >&5
4432 echo "${ECHO_T}no" >&6; }
4433 fi
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
4441 else
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
4445 else
4446   ac_cv_prog_gnu_ld=no
4447 fi
4448 fi
4449 { echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4450 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
4451
4452
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
4457 else
4458   if test -n "$NM"; then
4459   # Let the user override the test.
4460   ac_cv_path_NM="$NM"
4461 else
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"
4471         break
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"
4474         break
4475       else
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
4478       fi
4479     fi
4480   done
4481   IFS="$ac_save_ifs"
4482   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
4483 fi
4484 fi
4485
4486 NM="$ac_cv_path_NM"
4487 { echo "$as_me:$LINENO: result: $NM" >&5
4488 echo "${ECHO_T}$NM" >&6; }
4489
4490
4491 case "$target" in
4492 NONE) lt_target="$host" ;;
4493 *) lt_target="$target" ;;
4494 esac
4495
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"
4503
4504
4505 # Check whether --enable-libtool-lock was given.
4506 if test "${enable_libtool_lock+set}" = set; then
4507   enableval=$enable_libtool_lock;
4508 fi
4509
4510 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4511 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4512
4513 # Some flags need to be propagated to the compiler or linker for good
4514 # libtool support.
4515 case "$lt_target" in
4516 *-*-irix6*)
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
4521   ac_status=$?
4522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523   (exit $ac_status); }; then
4524     case "`/usr/bin/file conftest.o`" in
4525     *32-bit*)
4526       LD="${LD-ld} -32"
4527       ;;
4528     *N32*)
4529       LD="${LD-ld} -n32"
4530       ;;
4531     *64-bit*)
4532       LD="${LD-ld} -64"
4533       ;;
4534     esac
4535   fi
4536   rm -rf conftest*
4537   ;;
4538
4539 *-*-sco3.2v5*)
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
4547 else
4548   cat >conftest.$ac_ext <<_ACEOF
4549 /* confdefs.h.  */
4550 _ACEOF
4551 cat confdefs.h >>conftest.$ac_ext
4552 cat >>conftest.$ac_ext <<_ACEOF
4553 /* end confdefs.h.  */
4554
4555 int
4556 main ()
4557 {
4558
4559   ;
4560   return 0;
4561 }
4562 _ACEOF
4563 rm -f conftest.$ac_objext conftest$ac_exeext
4564 if { (ac_try="$ac_link"
4565 case "(($ac_try" in
4566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567   *) ac_try_echo=$ac_try;;
4568 esac
4569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4570   (eval "$ac_link") 2>conftest.er1
4571   ac_status=$?
4572   grep -v '^ *+' conftest.er1 >conftest.err
4573   rm -f conftest.er1
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
4582 else
4583   echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4585
4586         lt_cv_cc_needs_belf=no
4587 fi
4588
4589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4590       conftest$ac_exeext conftest.$ac_ext
4591 fi
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"
4597   fi
4598   ;;
4599
4600
4601 esac
4602
4603
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.
4611 #
4612 # config.status only pays attention to the cache file if you give it
4613 # the --recheck option to rerun configure.
4614 #
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
4617 # following values.
4618
4619 _ACEOF
4620
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.
4626 (
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
4629     case $ac_val in #(
4630     *${as_nl}*)
4631       case $ac_var in #(
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;} ;;
4634       esac
4635       case $ac_var in #(
4636       _ | IFS | as_nl) ;; #(
4637       *) $as_unset $ac_var ;;
4638       esac ;;
4639     esac
4640   done
4641
4642   (set) 2>&1 |
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 \).
4647       sed -n \
4648         "s/'/'\\\\''/g;
4649           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4650       ;; #(
4651     *)
4652       # `set' quotes correctly as required by POSIX, so do not add quotes.
4653       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4654       ;;
4655     esac |
4656     sort
4657 ) |
4658   sed '
4659      /^ac_cv_env_/b end
4660      t clear
4661      :clear
4662      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4663      t end
4664      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4665      :end' >>confcache
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
4672   else
4673     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
4674 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4675   fi
4676 fi
4677 rm -f confcache
4678
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; }; }
4689
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;}
4697     case $cache_file in
4698       [\\/]* | ?:[\\/]* ) . "$cache_file";;
4699       *)                      . "./$cache_file";;
4700     esac
4701   fi
4702 else
4703   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4704 echo "$as_me: creating cache $cache_file" >&6;}
4705   >$cache_file
4706 fi
4707
4708
4709 # This can be used to rebuild libtool when needed
4710 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
4711
4712 # Always use our own libtool.
4713 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4714
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
4718
4719
4720 target=$save_target
4721
4722 if test "$enable_static" = yes; then
4723         SASL_STATIC_LIBS=libsasl2.a
4724 else
4725         SASL_STATIC_LIBS=
4726 fi
4727
4728 # Check whether --enable-staticdlopen was given.
4729 if test "${enable_staticdlopen+set}" = set; then
4730   enableval=$enable_staticdlopen; enable_staticdlopen=$enableval
4731 else
4732   enable_staticdlopen=no
4733 fi
4734
4735
4736 if test "$enable_staticdlopen" = yes; then
4737
4738 cat >>confdefs.h <<\_ACEOF
4739 #define TRY_DLOPEN_WHEN_STATIC
4740 _ACEOF
4741
4742 fi
4743
4744 if test "$ac_cv_c_compiler_gnu" = yes; then
4745   CFLAGS="-Wall -W ${CFLAGS}"
4746 fi
4747
4748
4749 # Check whether --with-purecov was given.
4750 if test "${with_purecov+set}" = set; then
4751   withval=$with_purecov;
4752 fi
4753
4754 if test "$with_purecov" = yes; then
4755   for ac_prog in purecov
4756 do
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
4763 else
4764   if test -n "$PURECOV"; then
4765   ac_cv_prog_PURECOV="$PURECOV" # Let the user override the test.
4766 else
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 for as_dir in $PATH
4769 do
4770   IFS=$as_save_IFS
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
4776     break 2
4777   fi
4778 done
4779 done
4780 IFS=$as_save_IFS
4781
4782 fi
4783 fi
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; }
4788 else
4789   { echo "$as_me:$LINENO: result: no" >&5
4790 echo "${ECHO_T}no" >&6; }
4791 fi
4792
4793
4794   test -n "$PURECOV" && break
4795 done
4796
4797 fi
4798
4799 # Check whether --with-purify was given.
4800 if test "${with_purify+set}" = set; then
4801   withval=$with_purify;
4802 fi
4803
4804 if test "$with_purify" = yes; then
4805   for ac_prog in purify
4806 do
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
4813 else
4814   if test -n "$PURIFY"; then
4815   ac_cv_prog_PURIFY="$PURIFY" # Let the user override the test.
4816 else
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 for as_dir in $PATH
4819 do
4820   IFS=$as_save_IFS
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
4826     break 2
4827   fi
4828 done
4829 done
4830 IFS=$as_save_IFS
4831
4832 fi
4833 fi
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; }
4838 else
4839   { echo "$as_me:$LINENO: result: no" >&5
4840 echo "${ECHO_T}no" >&6; }
4841 fi
4842
4843
4844   test -n "$PURIFY" && break
4845 done
4846
4847 fi
4848
4849 # Check whether --enable-java was given.
4850 if test "${enable_java+set}" = set; then
4851   enableval=$enable_java; enable_java=$enableval
4852 else
4853   enable_java=no
4854 fi
4855
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
4863 else
4864   case $JAVAC in
4865   [\\/]* | ?:[\\/]*)
4866   ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
4867   ;;
4868   *)
4869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4871 do
4872   IFS=$as_save_IFS
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
4878     break 2
4879   fi
4880 done
4881 done
4882 IFS=$as_save_IFS
4883
4884   test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="no"
4885   ;;
4886 esac
4887 fi
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; }
4892 else
4893   { echo "$as_me:$LINENO: result: no" >&5
4894 echo "${ECHO_T}no" >&6; }
4895 fi
4896
4897
4898   for ac_prog in javah kaffeh
4899 do
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
4906 else
4907   case $JAVAH in
4908   [\\/]* | ?:[\\/]*)
4909   ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.
4910   ;;
4911   *)
4912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH
4914 do
4915   IFS=$as_save_IFS
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
4921     break 2
4922   fi
4923 done
4924 done
4925 IFS=$as_save_IFS
4926
4927   ;;
4928 esac
4929 fi
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; }
4934 else
4935   { echo "$as_me:$LINENO: result: no" >&5
4936 echo "${ECHO_T}no" >&6; }
4937 fi
4938
4939
4940   test -n "$JAVAH" && break
4941 done
4942 test -n "$JAVAH" || JAVAH="no"
4943
4944   for ac_prog in javadoc
4945 do
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
4952 else
4953   if test -n "$JAVADOC"; then
4954   ac_cv_prog_JAVADOC="$JAVADOC" # Let the user override the test.
4955 else
4956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957 for as_dir in $PATH
4958 do
4959   IFS=$as_save_IFS
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
4965     break 2
4966   fi
4967 done
4968 done
4969 IFS=$as_save_IFS
4970
4971 fi
4972 fi
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; }
4977 else
4978   { echo "$as_me:$LINENO: result: no" >&5
4979 echo "${ECHO_T}no" >&6; }
4980 fi
4981
4982
4983   test -n "$JAVADOC" && break
4984 done
4985 test -n "$JAVADOC" || JAVADOC=":"
4986
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;}
4990     enable_java=no
4991   fi
4992 else
4993 # Make distcheck work
4994   JAVAC="true"
4995   JAVAH="true"
4996   JAVADOC="true"
4997 fi
4998  if test "$enable_java" = yes; then
4999   JAVA_TRUE=
5000   JAVA_FALSE='#'
5001 else
5002   JAVA_TRUE='#'
5003   JAVA_FALSE=
5004 fi
5005
5006
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
5012 else
5013
5014   if test `echo $JAVAH | sed 's,.*/,,'` = "kaffeh"; then
5015     sasl_cv_java_includes=-I`echo $JAVAH | sed -e 's,/bin.*,/include/kaffe,'`
5016   else
5017     java_base=`echo $JAVAC | sed 's,/bin.*,'','`
5018
5019
5020 # Check whether --with-javabase was given.
5021 if test "${with_javabase+set}" = set; then
5022   withval=$with_javabase; java_base=$withval
5023 fi
5024
5025
5026
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"
5030     done
5031   fi
5032
5033   sasl_cv_java_includes="${sasl_cv_java_includes} -I$javapath/include"
5034 fi
5035
5036
5037   JAVA_INCLUDES=$sasl_cv_java_includes
5038
5039   { echo "$as_me:$LINENO: result: ok" >&5
5040 echo "${ECHO_T}ok" >&6; }
5041
5042   JAVAROOT=".."
5043
5044   JAVAC=`echo "$JAVAC" | sed 's,.*/,,'`
5045   JAVAH=`echo "$JAVAH" | sed 's,.*/,,'`
5046 fi
5047
5048  if test "$enable_sample" = yes; then
5049   SAMPLE_TRUE=
5050   SAMPLE_FALSE='#'
5051 else
5052   SAMPLE_TRUE='#'
5053   SAMPLE_FALSE=
5054 fi
5055
5056
5057
5058         save_LIBS="$LIBS"
5059         LIB_SOCKET=""
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
5064 else
5065   cat >conftest.$ac_ext <<_ACEOF
5066 /* confdefs.h.  */
5067 _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
5074
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.  */
5079
5080 #ifdef __STDC__
5081 # include <limits.h>
5082 #else
5083 # include <assert.h>
5084 #endif
5085
5086 #undef connect
5087
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.  */
5091 #ifdef __cplusplus
5092 extern "C"
5093 #endif
5094 char connect ();
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
5099 choke me
5100 #endif
5101
5102 int
5103 main ()
5104 {
5105 return connect ();
5106   ;
5107   return 0;
5108 }
5109 _ACEOF
5110 rm -f conftest.$ac_objext conftest$ac_exeext
5111 if { (ac_try="$ac_link"
5112 case "(($ac_try" in
5113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114   *) ac_try_echo=$ac_try;;
5115 esac
5116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5117   (eval "$ac_link") 2>conftest.er1
5118   ac_status=$?
5119   grep -v '^ *+' conftest.er1 >conftest.err
5120   rm -f conftest.er1
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
5129 else
5130   echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5132
5133         ac_cv_func_connect=no
5134 fi
5135
5136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5137       conftest$ac_exeext conftest.$ac_ext
5138 fi
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
5142   :
5143 else
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
5148 else
5149   ac_check_lib_save_LIBS=$LIBS
5150 LIBS="-lnsl  $LIBS"
5151 cat >conftest.$ac_ext <<_ACEOF
5152 /* confdefs.h.  */
5153 _ACEOF
5154 cat confdefs.h >>conftest.$ac_ext
5155 cat >>conftest.$ac_ext <<_ACEOF
5156 /* end confdefs.h.  */
5157
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.  */
5161 #ifdef __cplusplus
5162 extern "C"
5163 #endif
5164 char gethostbyname ();
5165 int
5166 main ()
5167 {
5168 return gethostbyname ();
5169   ;
5170   return 0;
5171 }
5172 _ACEOF
5173 rm -f conftest.$ac_objext conftest$ac_exeext
5174 if { (ac_try="$ac_link"
5175 case "(($ac_try" in
5176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177   *) ac_try_echo=$ac_try;;
5178 esac
5179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5180   (eval "$ac_link") 2>conftest.er1
5181   ac_status=$?
5182   grep -v '^ *+' conftest.er1 >conftest.err
5183   rm -f conftest.er1
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
5192 else
5193   echo "$as_me: failed program was:" >&5
5194 sed 's/^/| /' conftest.$ac_ext >&5
5195
5196         ac_cv_lib_nsl_gethostbyname=no
5197 fi
5198
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
5202 fi
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"
5207 fi
5208
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
5213 else
5214   ac_check_lib_save_LIBS=$LIBS
5215 LIBS="-lsocket  $LIBS"
5216 cat >conftest.$ac_ext <<_ACEOF
5217 /* confdefs.h.  */
5218 _ACEOF
5219 cat confdefs.h >>conftest.$ac_ext
5220 cat >>conftest.$ac_ext <<_ACEOF
5221 /* end confdefs.h.  */
5222
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.  */
5226 #ifdef __cplusplus
5227 extern "C"
5228 #endif
5229 char connect ();
5230 int
5231 main ()
5232 {
5233 return connect ();
5234   ;
5235   return 0;
5236 }
5237 _ACEOF
5238 rm -f conftest.$ac_objext conftest$ac_exeext
5239 if { (ac_try="$ac_link"
5240 case "(($ac_try" in
5241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242   *) ac_try_echo=$ac_try;;
5243 esac
5244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5245   (eval "$ac_link") 2>conftest.er1
5246   ac_status=$?
5247   grep -v '^ *+' conftest.er1 >conftest.err
5248   rm -f conftest.er1
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
5257 else
5258   echo "$as_me: failed program was:" >&5
5259 sed 's/^/| /' conftest.$ac_ext >&5
5260
5261         ac_cv_lib_socket_connect=no
5262 fi
5263
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
5267 fi
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"
5272 fi
5273
5274
5275 fi
5276
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
5282 else
5283   cat >conftest.$ac_ext <<_ACEOF
5284 /* confdefs.h.  */
5285 _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
5292
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.  */
5297
5298 #ifdef __STDC__
5299 # include <limits.h>
5300 #else
5301 # include <assert.h>
5302 #endif
5303
5304 #undef res_search
5305
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.  */
5309 #ifdef __cplusplus
5310 extern "C"
5311 #endif
5312 char res_search ();
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
5317 choke me
5318 #endif
5319
5320 int
5321 main ()
5322 {
5323 return res_search ();
5324   ;
5325   return 0;
5326 }
5327 _ACEOF
5328 rm -f conftest.$ac_objext conftest$ac_exeext
5329 if { (ac_try="$ac_link"
5330 case "(($ac_try" in
5331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332   *) ac_try_echo=$ac_try;;
5333 esac
5334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5335   (eval "$ac_link") 2>conftest.er1
5336   ac_status=$?
5337   grep -v '^ *+' conftest.er1 >conftest.err
5338   rm -f conftest.er1
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
5347 else
5348   echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5350
5351         ac_cv_func_res_search=no
5352 fi
5353
5354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5355       conftest$ac_exeext conftest.$ac_ext
5356 fi
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
5360   :
5361 else
5362   LIBS="-lresolv $LIB_SOCKET $save_LIBS"
5363                 cat >conftest.$ac_ext <<_ACEOF
5364 /* confdefs.h.  */
5365 _ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h.  */
5369
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>
5375 #endif
5376 #include <resolv.h>
5377 int
5378 main ()
5379 {
5380
5381 const char host[12]="openafs.org";
5382 u_char ans[1024];
5383 res_search( host, C_IN, T_MX, (u_char *)&ans, sizeof(ans));
5384 return 0;
5385
5386   ;
5387   return 0;
5388 }
5389 _ACEOF
5390 rm -f conftest.$ac_objext conftest$ac_exeext
5391 if { (ac_try="$ac_link"
5392 case "(($ac_try" in
5393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5394   *) ac_try_echo=$ac_try;;
5395 esac
5396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5397   (eval "$ac_link") 2>conftest.er1
5398   ac_status=$?
5399   grep -v '^ *+' conftest.er1 >conftest.err
5400   rm -f conftest.er1
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"
5409 else
5410   echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5412
5413
5414 fi
5415
5416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5417       conftest$ac_exeext conftest.$ac_ext
5418
5419 fi
5420
5421         LIBS="$LIB_SOCKET $save_LIBS"
5422
5423
5424 for ac_func in dn_expand dns_lookup
5425 do
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
5431 else
5432   cat >conftest.$ac_ext <<_ACEOF
5433 /* confdefs.h.  */
5434 _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
5441
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.  */
5446
5447 #ifdef __STDC__
5448 # include <limits.h>
5449 #else
5450 # include <assert.h>
5451 #endif
5452
5453 #undef $ac_func
5454
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.  */
5458 #ifdef __cplusplus
5459 extern "C"
5460 #endif
5461 char $ac_func ();
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
5466 choke me
5467 #endif
5468
5469 int
5470 main ()
5471 {
5472 return $ac_func ();
5473   ;
5474   return 0;
5475 }
5476 _ACEOF
5477 rm -f conftest.$ac_objext conftest$ac_exeext
5478 if { (ac_try="$ac_link"
5479 case "(($ac_try" in
5480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5481   *) ac_try_echo=$ac_try;;
5482 esac
5483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5484   (eval "$ac_link") 2>conftest.er1
5485   ac_status=$?
5486   grep -v '^ *+' conftest.er1 >conftest.err
5487   rm -f conftest.er1
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"
5496 else
5497   echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5499
5500         eval "$as_ac_var=no"
5501 fi
5502
5503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5504       conftest$ac_exeext conftest.$ac_ext
5505 fi
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
5512 _ACEOF
5513
5514 fi
5515 done
5516
5517         LIBS="$save_LIBS"
5518
5519
5520
5521
5522
5523 # Check whether --with-dbpath was given.
5524 if test "${with_dbpath+set}" = set; then
5525   withval=$with_dbpath; dbpath=$withval
5526 else
5527   dbpath=/etc/sasldb2
5528 fi
5529
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; }
5534
5535 cat >>confdefs.h <<_ACEOF
5536 #define SASL_DB_PATH "$dbpath"
5537 _ACEOF
5538
5539
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
5544 else
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
5550 else
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
5555 do
5556   IFS=$as_save_IFS
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
5565 *GNU*)
5566   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5567 *)
5568   ac_count=0
5569   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5570   while :
5571   do
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
5583     fi
5584     # 10*(2^10) chars as input seems more than enough
5585     test $ac_count -gt 10 && break
5586   done
5587   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5588 esac
5589
5590
5591     $ac_path_GREP_found && break 3
5592   done
5593 done
5594
5595 done
5596 IFS=$as_save_IFS
5597
5598
5599 fi
5600
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; }; }
5606 fi
5607
5608 else
5609   ac_cv_path_GREP=$GREP
5610 fi
5611
5612
5613 fi
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"
5617
5618
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
5623 else
5624   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5625    then ac_cv_path_EGREP="$GREP -E"
5626    else
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
5632 else
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
5637 do
5638   IFS=$as_save_IFS
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
5647 *GNU*)
5648   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5649 *)
5650   ac_count=0
5651   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5652   while :
5653   do
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
5665     fi
5666     # 10*(2^10) chars as input seems more than enough
5667     test $ac_count -gt 10 && break
5668   done
5669   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5670 esac
5671
5672
5673     $ac_path_EGREP_found && break 3
5674   done
5675 done
5676
5677 done
5678 IFS=$as_save_IFS
5679
5680
5681 fi
5682
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; }; }
5688 fi
5689
5690 else
5691   ac_cv_path_EGREP=$EGREP
5692 fi
5693
5694
5695    fi
5696 fi
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"
5700
5701
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
5706 else
5707   cat >conftest.$ac_ext <<_ACEOF
5708 /* confdefs.h.  */
5709 _ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h.  */
5713 #include <stdlib.h>
5714 #include <stdarg.h>
5715 #include <string.h>
5716 #include <float.h>
5717
5718 int
5719 main ()
5720 {
5721
5722   ;
5723   return 0;
5724 }
5725 _ACEOF
5726 rm -f conftest.$ac_objext
5727 if { (ac_try="$ac_compile"
5728 case "(($ac_try" in
5729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5730   *) ac_try_echo=$ac_try;;
5731 esac
5732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5733   (eval "$ac_compile") 2>conftest.er1
5734   ac_status=$?
5735   grep -v '^ *+' conftest.er1 >conftest.err
5736   rm -f conftest.er1
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
5744 else
5745   echo "$as_me: failed program was:" >&5
5746 sed 's/^/| /' conftest.$ac_ext >&5
5747
5748         ac_cv_header_stdc=no
5749 fi
5750
5751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5752
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
5756 /* confdefs.h.  */
5757 _ACEOF
5758 cat confdefs.h >>conftest.$ac_ext
5759 cat >>conftest.$ac_ext <<_ACEOF
5760 /* end confdefs.h.  */
5761 #include <string.h>
5762
5763 _ACEOF
5764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5765   $EGREP "memchr" >/dev/null 2>&1; then
5766   :
5767 else
5768   ac_cv_header_stdc=no
5769 fi
5770 rm -f -r conftest*
5771
5772 fi
5773
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
5777 /* confdefs.h.  */
5778 _ACEOF
5779 cat confdefs.h >>conftest.$ac_ext
5780 cat >>conftest.$ac_ext <<_ACEOF
5781 /* end confdefs.h.  */
5782 #include <stdlib.h>
5783
5784 _ACEOF
5785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5786   $EGREP "free" >/dev/null 2>&1; then
5787   :
5788 else
5789   ac_cv_header_stdc=no
5790 fi
5791 rm -f -r conftest*
5792
5793 fi
5794
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
5798   :
5799 else
5800   cat >conftest.$ac_ext <<_ACEOF
5801 /* confdefs.h.  */
5802 _ACEOF
5803 cat confdefs.h >>conftest.$ac_ext
5804 cat >>conftest.$ac_ext <<_ACEOF
5805 /* end confdefs.h.  */
5806 #include <ctype.h>
5807 #include <stdlib.h>
5808 #if ((' ' & 0x0FF) == 0x020)
5809 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5810 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5811 #else
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))
5817 #endif
5818
5819 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5820 int
5821 main ()
5822 {
5823   int i;
5824   for (i = 0; i < 256; i++)
5825     if (XOR (islower (i), ISLOWER (i))
5826         || toupper (i) != TOUPPER (i))
5827       return 2;
5828   return 0;
5829 }
5830 _ACEOF
5831 rm -f conftest$ac_exeext
5832 if { (ac_try="$ac_link"
5833 case "(($ac_try" in
5834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835   *) ac_try_echo=$ac_try;;
5836 esac
5837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5838   (eval "$ac_link") 2>&5
5839   ac_status=$?
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;;
5845 esac
5846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847   (eval "$ac_try") 2>&5
5848   ac_status=$?
5849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850   (exit $ac_status); }; }; then
5851   :
5852 else
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
5856
5857 ( exit $ac_status )
5858 ac_cv_header_stdc=no
5859 fi
5860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5861 fi
5862
5863
5864 fi
5865 fi
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
5869
5870 cat >>confdefs.h <<\_ACEOF
5871 #define STDC_HEADERS 1
5872 _ACEOF
5873
5874 fi
5875
5876 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5877
5878
5879
5880
5881
5882
5883
5884
5885
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
5888 do
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
5894 else
5895   cat >conftest.$ac_ext <<_ACEOF
5896 /* confdefs.h.  */
5897 _ACEOF
5898 cat confdefs.h >>conftest.$ac_ext
5899 cat >>conftest.$ac_ext <<_ACEOF
5900 /* end confdefs.h.  */
5901 $ac_includes_default
5902
5903 #include <$ac_header>
5904 _ACEOF
5905 rm -f conftest.$ac_objext
5906 if { (ac_try="$ac_compile"
5907 case "(($ac_try" in
5908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909   *) ac_try_echo=$ac_try;;
5910 esac
5911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5912   (eval "$ac_compile") 2>conftest.er1
5913   ac_status=$?
5914   grep -v '^ *+' conftest.er1 >conftest.err
5915   rm -f conftest.er1
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"
5923 else
5924   echo "$as_me: failed program was:" >&5
5925 sed 's/^/| /' conftest.$ac_ext >&5
5926
5927         eval "$as_ac_Header=no"
5928 fi
5929
5930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5931 fi
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
5938 _ACEOF
5939
5940 fi
5941
5942 done
5943
5944
5945
5946 cmu_save_LIBS="$LIBS"
5947
5948 # Check whether --with-dblib was given.
5949 if test "${with_dblib+set}" = set; then
5950   withval=$with_dblib; dblib=$withval
5951 else
5952   dblib=auto_detect
5953 fi
5954
5955
5956
5957
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
5961 else
5962    test "${with_bdb_lib+set}" = set || with_bdb_lib=none
5963 fi
5964
5965
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
5969 else
5970    test "${with_bdb_inc+set}" = set || with_bdb_inc=none
5971 fi
5972
5973
5974
5975 SASL_DB_LIB=""
5976
5977 case "$dblib" in
5978   berkeley)
5979
5980
5981
5982         cmu_save_CPPFLAGS=$CPPFLAGS
5983
5984         if test -d $with_bdb_inc; then
5985             CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
5986             BDB_INCADD="-I$with_bdb_inc"
5987         else
5988             BDB_INCADD=""
5989         fi
5990
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
5996 fi
5997 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
5998 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
5999 else
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
6004 /* confdefs.h.  */
6005 _ACEOF
6006 cat confdefs.h >>conftest.$ac_ext
6007 cat >>conftest.$ac_ext <<_ACEOF
6008 /* end confdefs.h.  */
6009 $ac_includes_default
6010 #include <db.h>
6011 _ACEOF
6012 rm -f conftest.$ac_objext
6013 if { (ac_try="$ac_compile"
6014 case "(($ac_try" in
6015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6016   *) ac_try_echo=$ac_try;;
6017 esac
6018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6019   (eval "$ac_compile") 2>conftest.er1
6020   ac_status=$?
6021   grep -v '^ *+' conftest.er1 >conftest.err
6022   rm -f conftest.er1
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
6030 else
6031   echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6033
6034         ac_header_compiler=no
6035 fi
6036
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; }
6040
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
6045 /* confdefs.h.  */
6046 _ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h.  */
6050 #include <db.h>
6051 _ACEOF
6052 if { (ac_try="$ac_cpp conftest.$ac_ext"
6053 case "(($ac_try" in
6054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6055   *) ac_try_echo=$ac_try;;
6056 esac
6057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6058   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6059   ac_status=$?
6060   grep -v '^ *+' conftest.er1 >conftest.err
6061   rm -f conftest.er1
6062   cat conftest.err >&5
6063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064   (exit $ac_status); } >/dev/null && {
6065          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6066          test ! -s conftest.err
6067        }; then
6068   ac_header_preproc=yes
6069 else
6070   echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6072
6073   ac_header_preproc=no
6074 fi
6075
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; }
6079
6080 # So?  What about this header?
6081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6082   yes:no: )
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
6088     ;;
6089   no: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;}
6102
6103     ;;
6104 esac
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
6109 else
6110   ac_cv_header_db_h=$ac_header_preproc
6111 fi
6112 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
6113 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
6114
6115 fi
6116 if test $ac_cv_header_db_h = yes; then
6117
6118         BDB_SAVE_LDFLAGS=$LDFLAGS
6119
6120         if test -d $with_bdb_lib; then
6121
6122   # this is CMU ADD LIBPATH TO
6123   if test "$andrew_runpath_switch" = "none" ; then
6124         LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
6125   else
6126         LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
6127   fi
6128
6129
6130   # this is CMU ADD LIBPATH TO
6131   if test "$andrew_runpath_switch" = "none" ; then
6132         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
6133   else
6134         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
6135   fi
6136
6137         else
6138             BDB_LIBADD=""
6139         fi
6140
6141         saved_LIBS=$LIBS
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
6143           do
6144             LIBS="$saved_LIBS -l$dbname"
6145             cat >conftest.$ac_ext <<_ACEOF
6146 /* confdefs.h.  */
6147 _ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h.  */
6151 #include <db.h>
6152 int
6153 main ()
6154 {
6155 db_create(NULL, NULL, 0);
6156   ;
6157   return 0;
6158 }
6159 _ACEOF
6160 rm -f conftest.$ac_objext conftest$ac_exeext
6161 if { (ac_try="$ac_link"
6162 case "(($ac_try" in
6163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164   *) ac_try_echo=$ac_try;;
6165 esac
6166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6167   (eval "$ac_link") 2>conftest.er1
6168   ac_status=$?
6169   grep -v '^ *+' conftest.er1 >conftest.err
6170   rm -f conftest.er1
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
6179 else
6180   echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.$ac_ext >&5
6182
6183         dblib="no"
6184 fi
6185
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
6189           done
6190         if test "$dblib" = "no"; then
6191             LIBS="$saved_LIBS -ldb"
6192             cat >conftest.$ac_ext <<_ACEOF
6193 /* confdefs.h.  */
6194 _ACEOF
6195 cat confdefs.h >>conftest.$ac_ext
6196 cat >>conftest.$ac_ext <<_ACEOF
6197 /* end confdefs.h.  */
6198 #include <db.h>
6199 int
6200 main ()
6201 {
6202 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
6203   ;
6204   return 0;
6205 }
6206 _ACEOF
6207 rm -f conftest.$ac_objext conftest$ac_exeext
6208 if { (ac_try="$ac_link"
6209 case "(($ac_try" in
6210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211   *) ac_try_echo=$ac_try;;
6212 esac
6213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6214   (eval "$ac_link") 2>conftest.er1
6215   ac_status=$?
6216   grep -v '^ *+' conftest.er1 >conftest.err
6217   rm -f conftest.er1
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
6226 else
6227   echo "$as_me: failed program was:" >&5
6228 sed 's/^/| /' conftest.$ac_ext >&5
6229
6230         dblib="no"
6231 fi
6232
6233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6234       conftest$ac_exeext conftest.$ac_ext
6235         fi
6236         LIBS=$saved_LIBS
6237
6238         LDFLAGS=$BDB_SAVE_LDFLAGS
6239
6240 else
6241   dblib="no"
6242 fi
6243
6244
6245
6246         CPPFLAGS=$cmu_save_CPPFLAGS
6247
6248         CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
6249         SASL_DB_INC=$BDB_INCADD
6250         SASL_DB_LIB="${BDB_LIBADD}"
6251         ;;
6252   gdbm)
6253
6254 # Check whether --with-gdbm was given.
6255 if test "${with_gdbm+set}" = set; then
6256   withval=$with_gdbm; with_gdbm="${withval}"
6257 fi
6258
6259
6260         case "$with_gdbm" in
6261            ""|yes)
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
6267 fi
6268 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
6269 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
6270 else
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
6275 /* confdefs.h.  */
6276 _ACEOF
6277 cat confdefs.h >>conftest.$ac_ext
6278 cat >>conftest.$ac_ext <<_ACEOF
6279 /* end confdefs.h.  */
6280 $ac_includes_default
6281 #include <gdbm.h>
6282 _ACEOF
6283 rm -f conftest.$ac_objext
6284 if { (ac_try="$ac_compile"
6285 case "(($ac_try" in
6286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6287   *) ac_try_echo=$ac_try;;
6288 esac
6289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6290   (eval "$ac_compile") 2>conftest.er1
6291   ac_status=$?
6292   grep -v '^ *+' conftest.er1 >conftest.err
6293   rm -f conftest.er1
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
6301 else
6302   echo "$as_me: failed program was:" >&5
6303 sed 's/^/| /' conftest.$ac_ext >&5
6304
6305         ac_header_compiler=no
6306 fi
6307
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; }
6311
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
6316 /* confdefs.h.  */
6317 _ACEOF
6318 cat confdefs.h >>conftest.$ac_ext
6319 cat >>conftest.$ac_ext <<_ACEOF
6320 /* end confdefs.h.  */
6321 #include <gdbm.h>
6322 _ACEOF
6323 if { (ac_try="$ac_cpp conftest.$ac_ext"
6324 case "(($ac_try" in
6325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326   *) ac_try_echo=$ac_try;;
6327 esac
6328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6329   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6330   ac_status=$?
6331   grep -v '^ *+' conftest.er1 >conftest.err
6332   rm -f conftest.er1
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
6338        }; then
6339   ac_header_preproc=yes
6340 else
6341   echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6343
6344   ac_header_preproc=no
6345 fi
6346
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; }
6350
6351 # So?  What about this header?
6352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6353   yes:no: )
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
6359     ;;
6360   no: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;}
6373
6374     ;;
6375 esac
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
6380 else
6381   ac_cv_header_gdbm_h=$ac_header_preproc
6382 fi
6383 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
6384 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
6385
6386 fi
6387 if test $ac_cv_header_gdbm_h = yes; then
6388
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
6393 else
6394   ac_check_lib_save_LIBS=$LIBS
6395 LIBS="-lgdbm  $LIBS"
6396 cat >conftest.$ac_ext <<_ACEOF
6397 /* confdefs.h.  */
6398 _ACEOF
6399 cat confdefs.h >>conftest.$ac_ext
6400 cat >>conftest.$ac_ext <<_ACEOF
6401 /* end confdefs.h.  */
6402
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.  */
6406 #ifdef __cplusplus
6407 extern "C"
6408 #endif
6409 char gdbm_open ();
6410 int
6411 main ()
6412 {
6413 return gdbm_open ();
6414   ;
6415   return 0;
6416 }
6417 _ACEOF
6418 rm -f conftest.$ac_objext conftest$ac_exeext
6419 if { (ac_try="$ac_link"
6420 case "(($ac_try" in
6421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422   *) ac_try_echo=$ac_try;;
6423 esac
6424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6425   (eval "$ac_link") 2>conftest.er1
6426   ac_status=$?
6427   grep -v '^ *+' conftest.er1 >conftest.err
6428   rm -f conftest.er1
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
6437 else
6438   echo "$as_me: failed program was:" >&5
6439 sed 's/^/| /' conftest.$ac_ext >&5
6440
6441         ac_cv_lib_gdbm_gdbm_open=no
6442 fi
6443
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
6447 fi
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"
6452 else
6453   dblib="no"
6454 fi
6455
6456 else
6457   dblib="no"
6458 fi
6459
6460
6461                ;;
6462            *)
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"
6467                else
6468                  with_gdbm="no"
6469                fi
6470        esac
6471         ;;
6472   ndbm)
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
6478 fi
6479 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
6480 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
6481 else
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
6486 /* confdefs.h.  */
6487 _ACEOF
6488 cat confdefs.h >>conftest.$ac_ext
6489 cat >>conftest.$ac_ext <<_ACEOF
6490 /* end confdefs.h.  */
6491 $ac_includes_default
6492 #include <ndbm.h>
6493 _ACEOF
6494 rm -f conftest.$ac_objext
6495 if { (ac_try="$ac_compile"
6496 case "(($ac_try" in
6497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6498   *) ac_try_echo=$ac_try;;
6499 esac
6500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6501   (eval "$ac_compile") 2>conftest.er1
6502   ac_status=$?
6503   grep -v '^ *+' conftest.er1 >conftest.err
6504   rm -f conftest.er1
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
6512 else
6513   echo "$as_me: failed program was:" >&5
6514 sed 's/^/| /' conftest.$ac_ext >&5
6515
6516         ac_header_compiler=no
6517 fi
6518
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; }
6522
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
6527 /* confdefs.h.  */
6528 _ACEOF
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h.  */
6532 #include <ndbm.h>
6533 _ACEOF
6534 if { (ac_try="$ac_cpp conftest.$ac_ext"
6535 case "(($ac_try" in
6536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537   *) ac_try_echo=$ac_try;;
6538 esac
6539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6541   ac_status=$?
6542   grep -v '^ *+' conftest.er1 >conftest.err
6543   rm -f conftest.er1
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
6549        }; then
6550   ac_header_preproc=yes
6551 else
6552   echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6554
6555   ac_header_preproc=no
6556 fi
6557
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; }
6561
6562 # So?  What about this header?
6563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6564   yes:no: )
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
6570     ;;
6571   no: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;}
6584
6585     ;;
6586 esac
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
6591 else
6592   ac_cv_header_ndbm_h=$ac_header_preproc
6593 fi
6594 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
6595 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
6596
6597 fi
6598 if test $ac_cv_header_ndbm_h = yes; then
6599
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
6604 else
6605   ac_check_lib_save_LIBS=$LIBS
6606 LIBS="-lndbm  $LIBS"
6607 cat >conftest.$ac_ext <<_ACEOF
6608 /* confdefs.h.  */
6609 _ACEOF
6610 cat confdefs.h >>conftest.$ac_ext
6611 cat >>conftest.$ac_ext <<_ACEOF
6612 /* end confdefs.h.  */
6613
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.  */
6617 #ifdef __cplusplus
6618 extern "C"
6619 #endif
6620 char dbm_open ();
6621 int
6622 main ()
6623 {
6624 return dbm_open ();
6625   ;
6626   return 0;
6627 }
6628 _ACEOF
6629 rm -f conftest.$ac_objext conftest$ac_exeext
6630 if { (ac_try="$ac_link"
6631 case "(($ac_try" in
6632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6633   *) ac_try_echo=$ac_try;;
6634 esac
6635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6636   (eval "$ac_link") 2>conftest.er1
6637   ac_status=$?
6638   grep -v '^ *+' conftest.er1 >conftest.err
6639   rm -f conftest.er1
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
6648 else
6649   echo "$as_me: failed program was:" >&5
6650 sed 's/^/| /' conftest.$ac_ext >&5
6651
6652         ac_cv_lib_ndbm_dbm_open=no
6653 fi
6654
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
6658 fi
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"
6663 else
6664
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
6669 else
6670   cat >conftest.$ac_ext <<_ACEOF
6671 /* confdefs.h.  */
6672 _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
6679
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.  */
6684
6685 #ifdef __STDC__
6686 # include <limits.h>
6687 #else
6688 # include <assert.h>
6689 #endif
6690
6691 #undef dbm_open
6692
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.  */
6696 #ifdef __cplusplus
6697 extern "C"
6698 #endif
6699 char dbm_open ();
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
6704 choke me
6705 #endif
6706
6707 int
6708 main ()
6709 {
6710 return dbm_open ();
6711   ;
6712   return 0;
6713 }
6714 _ACEOF
6715 rm -f conftest.$ac_objext conftest$ac_exeext
6716 if { (ac_try="$ac_link"
6717 case "(($ac_try" in
6718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6719   *) ac_try_echo=$ac_try;;
6720 esac
6721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6722   (eval "$ac_link") 2>conftest.er1
6723   ac_status=$?
6724   grep -v '^ *+' conftest.er1 >conftest.err
6725   rm -f conftest.er1
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
6734 else
6735   echo "$as_me: failed program was:" >&5
6736 sed 's/^/| /' conftest.$ac_ext >&5
6737
6738         ac_cv_func_dbm_open=no
6739 fi
6740
6741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6742       conftest$ac_exeext conftest.$ac_ext
6743 fi
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
6747   :
6748 else
6749   dblib="no"
6750 fi
6751
6752 fi
6753
6754 else
6755   dblib="no"
6756 fi
6757
6758
6759         ;;
6760   auto_detect)
6761
6762
6763
6764         cmu_save_CPPFLAGS=$CPPFLAGS
6765
6766         if test -d $with_bdb_inc; then
6767             CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
6768             BDB_INCADD="-I$with_bdb_inc"
6769         else
6770             BDB_INCADD=""
6771         fi
6772
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
6778 fi
6779 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
6780 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
6781 else
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
6786 /* confdefs.h.  */
6787 _ACEOF
6788 cat confdefs.h >>conftest.$ac_ext
6789 cat >>conftest.$ac_ext <<_ACEOF
6790 /* end confdefs.h.  */
6791 $ac_includes_default
6792 #include <db.h>
6793 _ACEOF
6794 rm -f conftest.$ac_objext
6795 if { (ac_try="$ac_compile"
6796 case "(($ac_try" in
6797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6798   *) ac_try_echo=$ac_try;;
6799 esac
6800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6801   (eval "$ac_compile") 2>conftest.er1
6802   ac_status=$?
6803   grep -v '^ *+' conftest.er1 >conftest.err
6804   rm -f conftest.er1
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
6812 else
6813   echo "$as_me: failed program was:" >&5
6814 sed 's/^/| /' conftest.$ac_ext >&5
6815
6816         ac_header_compiler=no
6817 fi
6818
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; }
6822
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
6827 /* confdefs.h.  */
6828 _ACEOF
6829 cat confdefs.h >>conftest.$ac_ext
6830 cat >>conftest.$ac_ext <<_ACEOF
6831 /* end confdefs.h.  */
6832 #include <db.h>
6833 _ACEOF
6834 if { (ac_try="$ac_cpp conftest.$ac_ext"
6835 case "(($ac_try" in
6836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6837   *) ac_try_echo=$ac_try;;
6838 esac
6839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6840   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6841   ac_status=$?
6842   grep -v '^ *+' conftest.er1 >conftest.err
6843   rm -f conftest.er1
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
6849        }; then
6850   ac_header_preproc=yes
6851 else
6852   echo "$as_me: failed program was:" >&5
6853 sed 's/^/| /' conftest.$ac_ext >&5
6854
6855   ac_header_preproc=no
6856 fi
6857
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; }
6861
6862 # So?  What about this header?
6863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6864   yes:no: )
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
6870     ;;
6871   no: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;}
6884
6885     ;;
6886 esac
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
6891 else
6892   ac_cv_header_db_h=$ac_header_preproc
6893 fi
6894 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
6895 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
6896
6897 fi
6898 if test $ac_cv_header_db_h = yes; then
6899
6900         BDB_SAVE_LDFLAGS=$LDFLAGS
6901
6902         if test -d $with_bdb_lib; then
6903
6904   # this is CMU ADD LIBPATH TO
6905   if test "$andrew_runpath_switch" = "none" ; then
6906         LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
6907   else
6908         LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
6909   fi
6910
6911
6912   # this is CMU ADD LIBPATH TO
6913   if test "$andrew_runpath_switch" = "none" ; then
6914         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
6915   else
6916         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
6917   fi
6918
6919         else
6920             BDB_LIBADD=""
6921         fi
6922
6923         saved_LIBS=$LIBS
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
6925           do
6926             LIBS="$saved_LIBS -l$dbname"
6927             cat >conftest.$ac_ext <<_ACEOF
6928 /* confdefs.h.  */
6929 _ACEOF
6930 cat confdefs.h >>conftest.$ac_ext
6931 cat >>conftest.$ac_ext <<_ACEOF
6932 /* end confdefs.h.  */
6933 #include <db.h>
6934 int
6935 main ()
6936 {
6937 db_create(NULL, NULL, 0);
6938   ;
6939   return 0;
6940 }
6941 _ACEOF
6942 rm -f conftest.$ac_objext conftest$ac_exeext
6943 if { (ac_try="$ac_link"
6944 case "(($ac_try" in
6945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6946   *) ac_try_echo=$ac_try;;
6947 esac
6948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6949   (eval "$ac_link") 2>conftest.er1
6950   ac_status=$?
6951   grep -v '^ *+' conftest.er1 >conftest.err
6952   rm -f conftest.er1
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
6961 else
6962   echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6964
6965         dblib="no"
6966 fi
6967
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
6971           done
6972         if test "$dblib" = "no"; then
6973             LIBS="$saved_LIBS -ldb"
6974             cat >conftest.$ac_ext <<_ACEOF
6975 /* confdefs.h.  */
6976 _ACEOF
6977 cat confdefs.h >>conftest.$ac_ext
6978 cat >>conftest.$ac_ext <<_ACEOF
6979 /* end confdefs.h.  */
6980 #include <db.h>
6981 int
6982 main ()
6983 {
6984 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
6985   ;
6986   return 0;
6987 }
6988 _ACEOF
6989 rm -f conftest.$ac_objext conftest$ac_exeext
6990 if { (ac_try="$ac_link"
6991 case "(($ac_try" in
6992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6993   *) ac_try_echo=$ac_try;;
6994 esac
6995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6996   (eval "$ac_link") 2>conftest.er1
6997   ac_status=$?
6998   grep -v '^ *+' conftest.er1 >conftest.err
6999   rm -f conftest.er1
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
7008 else
7009   echo "$as_me: failed program was:" >&5
7010 sed 's/^/| /' conftest.$ac_ext >&5
7011
7012         dblib="no"
7013 fi
7014
7015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7016       conftest$ac_exeext conftest.$ac_ext
7017         fi
7018         LIBS=$saved_LIBS
7019
7020         LDFLAGS=$BDB_SAVE_LDFLAGS
7021
7022 else
7023   dblib="no"
7024 fi
7025
7026
7027
7028         CPPFLAGS=$cmu_save_CPPFLAGS
7029
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
7036 fi
7037 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
7038 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
7039 else
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
7044 /* confdefs.h.  */
7045 _ACEOF
7046 cat confdefs.h >>conftest.$ac_ext
7047 cat >>conftest.$ac_ext <<_ACEOF
7048 /* end confdefs.h.  */
7049 $ac_includes_default
7050 #include <ndbm.h>
7051 _ACEOF
7052 rm -f conftest.$ac_objext
7053 if { (ac_try="$ac_compile"
7054 case "(($ac_try" in
7055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7056   *) ac_try_echo=$ac_try;;
7057 esac
7058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7059   (eval "$ac_compile") 2>conftest.er1
7060   ac_status=$?
7061   grep -v '^ *+' conftest.er1 >conftest.err
7062   rm -f conftest.er1
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
7070 else
7071   echo "$as_me: failed program was:" >&5
7072 sed 's/^/| /' conftest.$ac_ext >&5
7073
7074         ac_header_compiler=no
7075 fi
7076
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; }
7080
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
7085 /* confdefs.h.  */
7086 _ACEOF
7087 cat confdefs.h >>conftest.$ac_ext
7088 cat >>conftest.$ac_ext <<_ACEOF
7089 /* end confdefs.h.  */
7090 #include <ndbm.h>
7091 _ACEOF
7092 if { (ac_try="$ac_cpp conftest.$ac_ext"
7093 case "(($ac_try" in
7094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7095   *) ac_try_echo=$ac_try;;
7096 esac
7097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7098   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7099   ac_status=$?
7100   grep -v '^ *+' conftest.er1 >conftest.err
7101   rm -f conftest.er1
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
7107        }; then
7108   ac_header_preproc=yes
7109 else
7110   echo "$as_me: failed program was:" >&5
7111 sed 's/^/| /' conftest.$ac_ext >&5
7112
7113   ac_header_preproc=no
7114 fi
7115
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; }
7119
7120 # So?  What about this header?
7121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7122   yes:no: )
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
7128     ;;
7129   no: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;}
7142
7143     ;;
7144 esac
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
7149 else
7150   ac_cv_header_ndbm_h=$ac_header_preproc
7151 fi
7152 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
7153 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
7154
7155 fi
7156 if test $ac_cv_header_ndbm_h = yes; then
7157
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
7162 else
7163   ac_check_lib_save_LIBS=$LIBS
7164 LIBS="-lndbm  $LIBS"
7165 cat >conftest.$ac_ext <<_ACEOF
7166 /* confdefs.h.  */
7167 _ACEOF
7168 cat confdefs.h >>conftest.$ac_ext
7169 cat >>conftest.$ac_ext <<_ACEOF
7170 /* end confdefs.h.  */
7171
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.  */
7175 #ifdef __cplusplus
7176 extern "C"
7177 #endif
7178 char dbm_open ();
7179 int
7180 main ()
7181 {
7182 return dbm_open ();
7183   ;
7184   return 0;
7185 }
7186 _ACEOF
7187 rm -f conftest.$ac_objext conftest$ac_exeext
7188 if { (ac_try="$ac_link"
7189 case "(($ac_try" in
7190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7191   *) ac_try_echo=$ac_try;;
7192 esac
7193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7194   (eval "$ac_link") 2>conftest.er1
7195   ac_status=$?
7196   grep -v '^ *+' conftest.er1 >conftest.err
7197   rm -f conftest.er1
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
7206 else
7207   echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7209
7210         ac_cv_lib_ndbm_dbm_open=no
7211 fi
7212
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
7216 fi
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"
7221 else
7222   dblib="weird"
7223 fi
7224
7225 else
7226   dblib="no"
7227 fi
7228
7229
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
7235 else
7236   cat >conftest.$ac_ext <<_ACEOF
7237 /* confdefs.h.  */
7238 _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
7245
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.  */
7250
7251 #ifdef __STDC__
7252 # include <limits.h>
7253 #else
7254 # include <assert.h>
7255 #endif
7256
7257 #undef dbm_open
7258
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.  */
7262 #ifdef __cplusplus
7263 extern "C"
7264 #endif
7265 char dbm_open ();
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
7270 choke me
7271 #endif
7272
7273 int
7274 main ()
7275 {
7276 return dbm_open ();
7277   ;
7278   return 0;
7279 }
7280 _ACEOF
7281 rm -f conftest.$ac_objext conftest$ac_exeext
7282 if { (ac_try="$ac_link"
7283 case "(($ac_try" in
7284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7285   *) ac_try_echo=$ac_try;;
7286 esac
7287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7288   (eval "$ac_link") 2>conftest.er1
7289   ac_status=$?
7290   grep -v '^ *+' conftest.er1 >conftest.err
7291   rm -f conftest.er1
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
7300 else
7301   echo "$as_me: failed program was:" >&5
7302 sed 's/^/| /' conftest.$ac_ext >&5
7303
7304         ac_cv_func_dbm_open=no
7305 fi
7306
7307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7308       conftest$ac_exeext conftest.$ac_ext
7309 fi
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
7313   dblib="ndbm"
7314 else
7315   dblib="no"
7316 fi
7317
7318           fi
7319
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
7326 fi
7327 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
7328 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
7329 else
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
7334 /* confdefs.h.  */
7335 _ACEOF
7336 cat confdefs.h >>conftest.$ac_ext
7337 cat >>conftest.$ac_ext <<_ACEOF
7338 /* end confdefs.h.  */
7339 $ac_includes_default
7340 #include <gdbm.h>
7341 _ACEOF
7342 rm -f conftest.$ac_objext
7343 if { (ac_try="$ac_compile"
7344 case "(($ac_try" in
7345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7346   *) ac_try_echo=$ac_try;;
7347 esac
7348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7349   (eval "$ac_compile") 2>conftest.er1
7350   ac_status=$?
7351   grep -v '^ *+' conftest.er1 >conftest.err
7352   rm -f conftest.er1
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
7360 else
7361   echo "$as_me: failed program was:" >&5
7362 sed 's/^/| /' conftest.$ac_ext >&5
7363
7364         ac_header_compiler=no
7365 fi
7366
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; }
7370
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
7375 /* confdefs.h.  */
7376 _ACEOF
7377 cat confdefs.h >>conftest.$ac_ext
7378 cat >>conftest.$ac_ext <<_ACEOF
7379 /* end confdefs.h.  */
7380 #include <gdbm.h>
7381 _ACEOF
7382 if { (ac_try="$ac_cpp conftest.$ac_ext"
7383 case "(($ac_try" in
7384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7385   *) ac_try_echo=$ac_try;;
7386 esac
7387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7388   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7389   ac_status=$?
7390   grep -v '^ *+' conftest.er1 >conftest.err
7391   rm -f conftest.er1
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
7397        }; then
7398   ac_header_preproc=yes
7399 else
7400   echo "$as_me: failed program was:" >&5
7401 sed 's/^/| /' conftest.$ac_ext >&5
7402
7403   ac_header_preproc=no
7404 fi
7405
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; }
7409
7410 # So?  What about this header?
7411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7412   yes:no: )
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
7418     ;;
7419   no: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;}
7432
7433     ;;
7434 esac
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
7439 else
7440   ac_cv_header_gdbm_h=$ac_header_preproc
7441 fi
7442 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
7443 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
7444
7445 fi
7446 if test $ac_cv_header_gdbm_h = yes; then
7447
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
7452 else
7453   ac_check_lib_save_LIBS=$LIBS
7454 LIBS="-lgdbm  $LIBS"
7455 cat >conftest.$ac_ext <<_ACEOF
7456 /* confdefs.h.  */
7457 _ACEOF
7458 cat confdefs.h >>conftest.$ac_ext
7459 cat >>conftest.$ac_ext <<_ACEOF
7460 /* end confdefs.h.  */
7461
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.  */
7465 #ifdef __cplusplus
7466 extern "C"
7467 #endif
7468 char gdbm_open ();
7469 int
7470 main ()
7471 {
7472 return gdbm_open ();
7473   ;
7474   return 0;
7475 }
7476 _ACEOF
7477 rm -f conftest.$ac_objext conftest$ac_exeext
7478 if { (ac_try="$ac_link"
7479 case "(($ac_try" in
7480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7481   *) ac_try_echo=$ac_try;;
7482 esac
7483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7484   (eval "$ac_link") 2>conftest.er1
7485   ac_status=$?
7486   grep -v '^ *+' conftest.er1 >conftest.err
7487   rm -f conftest.er1
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
7496 else
7497   echo "$as_me: failed program was:" >&5
7498 sed 's/^/| /' conftest.$ac_ext >&5
7499
7500         ac_cv_lib_gdbm_gdbm_open=no
7501 fi
7502
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
7506 fi
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
7510   dblib="gdbm";
7511                                              SASL_DB_LIB="-lgdbm"
7512 else
7513   dblib="no"
7514 fi
7515
7516 else
7517   dblib="no"
7518 fi
7519
7520
7521           fi
7522         else
7523                   CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
7524           SASL_DB_INC=$BDB_INCADD
7525           SASL_DB_LIB="${BDB_LIBADD}"
7526         fi
7527         ;;
7528   none)
7529         ;;
7530   no)
7531         ;;
7532   *)
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; }; }
7538         dblib=no
7539         ;;
7540 esac
7541 LIBS="$cmu_save_LIBS"
7542
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; }
7547
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"
7553
7554 case "$dblib" in
7555   gdbm)
7556     SASL_MECHS="$SASL_MECHS libsasldb.la"
7557
7558 cat >>confdefs.h <<\_ACEOF
7559 #define SASL_GDBM
7560 _ACEOF
7561
7562     ;;
7563   ndbm)
7564     SASL_MECHS="$SASL_MECHS libsasldb.la"
7565
7566 cat >>confdefs.h <<\_ACEOF
7567 #define SASL_NDBM
7568 _ACEOF
7569
7570     ;;
7571   berkeley)
7572     SASL_MECHS="$SASL_MECHS libsasldb.la"
7573
7574 cat >>confdefs.h <<\_ACEOF
7575 #define SASL_BERKELEYDB
7576 _ACEOF
7577
7578     ;;
7579   *)
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"
7585     SASL_DB_UTILS=""
7586     SASL_DB_MANS=""
7587     SASL_DB_LIB=""
7588     ;;
7589 esac
7590
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"
7595
7596 cat >>confdefs.h <<\_ACEOF
7597 #define STATIC_SASLDB
7598 _ACEOF
7599
7600     else
7601       SASL_STATIC_OBJS="$SASL_STATIC_OBJS $SASL_DB_BACKEND_STATIC"
7602       SASL_STATIC_SRCS="$SASL_STATIC_SRCS $SASL_DB_BACKEND_STATIC_SRCS"
7603     fi
7604 fi
7605
7606
7607
7608
7609
7610
7611
7612
7613
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='#'
7618 else
7619   NO_SASL_DB_MANS_TRUE='#'
7620   NO_SASL_DB_MANS_FALSE=
7621 fi
7622
7623
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
7627 else
7628   keep_db_open=no
7629 fi
7630
7631
7632 # Disable if Berkeley DB is not used
7633 if test "$dblib" != berkeley; then
7634   keep_db_open=no
7635 fi
7636
7637 if test "$keep_db_open" = yes; then
7638
7639 cat >>confdefs.h <<\_ACEOF
7640 #define KEEP_DB_OPEN
7641 _ACEOF
7642
7643 fi
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; }
7648
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
7653 else
7654   ac_check_lib_save_LIBS=$LIBS
7655 LIBS="-ldl  $LIBS"
7656 cat >conftest.$ac_ext <<_ACEOF
7657 /* confdefs.h.  */
7658 _ACEOF
7659 cat confdefs.h >>conftest.$ac_ext
7660 cat >>conftest.$ac_ext <<_ACEOF
7661 /* end confdefs.h.  */
7662
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.  */
7666 #ifdef __cplusplus
7667 extern "C"
7668 #endif
7669 char dlopen ();
7670 int
7671 main ()
7672 {
7673 return dlopen ();
7674   ;
7675   return 0;
7676 }
7677 _ACEOF
7678 rm -f conftest.$ac_objext conftest$ac_exeext
7679 if { (ac_try="$ac_link"
7680 case "(($ac_try" in
7681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7682   *) ac_try_echo=$ac_try;;
7683 esac
7684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7685   (eval "$ac_link") 2>conftest.er1
7686   ac_status=$?
7687   grep -v '^ *+' conftest.er1 >conftest.err
7688   rm -f conftest.er1
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
7697 else
7698   echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.$ac_ext >&5
7700
7701         ac_cv_lib_dl_dlopen=no
7702 fi
7703
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
7707 fi
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
7711   SASL_DL_LIB="-ldl"
7712 else
7713   SASL_DL_LIB=""
7714 fi
7715
7716
7717
7718
7719
7720 # Check whether --with-devrandom was given.
7721 if test "${with_devrandom+set}" = set; then
7722   withval=$with_devrandom; devrandom=$withval
7723 else
7724   devrandom=/dev/random
7725 fi
7726
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; }
7731
7732 cat >>confdefs.h <<_ACEOF
7733 #define SASL_DEV_RANDOM "$devrandom"
7734 _ACEOF
7735
7736
7737
7738 for ac_prog in nm
7739 do
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
7746 else
7747   if test -n "$NM"; then
7748   ac_cv_prog_NM="$NM" # Let the user override the test.
7749 else
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 for as_dir in $PATH
7752 do
7753   IFS=$as_save_IFS
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
7759     break 2
7760   fi
7761 done
7762 done
7763 IFS=$as_save_IFS
7764
7765 fi
7766 fi
7767 NM=$ac_cv_prog_NM
7768 if test -n "$NM"; then
7769   { echo "$as_me:$LINENO: result: $NM" >&5
7770 echo "${ECHO_T}$NM" >&6; }
7771 else
7772   { echo "$as_me:$LINENO: result: no" >&5
7773 echo "${ECHO_T}no" >&6; }
7774 fi
7775
7776
7777   test -n "$NM" && break
7778 done
7779
7780
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
7785 else
7786
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
7791       sasl_cv_uscore=yes
7792     else
7793       sasl_cv_uscore=no
7794     fi
7795 fi
7796
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
7800
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
7809 else
7810   if test "$cross_compiling" = yes; then
7811   { echo "$as_me:$LINENO: WARNING: cross-compiler" >&5
7812 echo "$as_me: WARNING: cross-compiler" >&2;}
7813 else
7814   cat >conftest.$ac_ext <<_ACEOF
7815 /* confdefs.h.  */
7816 _ACEOF
7817 cat confdefs.h >>conftest.$ac_ext
7818 cat >>conftest.$ac_ext <<_ACEOF
7819 /* end confdefs.h.  */
7820
7821 #include <dlfcn.h>
7822 #include <stdio.h>
7823 foo() { int i=0;}
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); }
7827
7828 _ACEOF
7829 rm -f conftest$ac_exeext
7830 if { (ac_try="$ac_link"
7831 case "(($ac_try" in
7832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833   *) ac_try_echo=$ac_try;;
7834 esac
7835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7836   (eval "$ac_link") 2>&5
7837   ac_status=$?
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;;
7843 esac
7844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7845   (eval "$ac_try") 2>&5
7846   ac_status=$?
7847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848   (exit $ac_status); }; }; then
7849   sasl_cv_dlsym_adds_uscore=yes
7850 else
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
7854
7855 ( exit $ac_status )
7856 sasl_cv_dlsym_adds_uscore=no
7857
7858 cat >>confdefs.h <<\_ACEOF
7859 #define DLSYM_NEEDS_UNDERSCORE
7860 _ACEOF
7861
7862 fi
7863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7864 fi
7865
7866
7867 fi
7868
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; }
7872   fi
7873 fi
7874
7875
7876 for ac_func in syslog
7877 do
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
7883 else
7884   cat >conftest.$ac_ext <<_ACEOF
7885 /* confdefs.h.  */
7886 _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
7893
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.  */
7898
7899 #ifdef __STDC__
7900 # include <limits.h>
7901 #else
7902 # include <assert.h>
7903 #endif
7904
7905 #undef $ac_func
7906
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.  */
7910 #ifdef __cplusplus
7911 extern "C"
7912 #endif
7913 char $ac_func ();
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
7918 choke me
7919 #endif
7920
7921 int
7922 main ()
7923 {
7924 return $ac_func ();
7925   ;
7926   return 0;
7927 }
7928 _ACEOF
7929 rm -f conftest.$ac_objext conftest$ac_exeext
7930 if { (ac_try="$ac_link"
7931 case "(($ac_try" in
7932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7933   *) ac_try_echo=$ac_try;;
7934 esac
7935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7936   (eval "$ac_link") 2>conftest.er1
7937   ac_status=$?
7938   grep -v '^ *+' conftest.er1 >conftest.err
7939   rm -f conftest.er1
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"
7948 else
7949   echo "$as_me: failed program was:" >&5
7950 sed 's/^/| /' conftest.$ac_ext >&5
7951
7952         eval "$as_ac_var=no"
7953 fi
7954
7955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7956       conftest$ac_exeext conftest.$ac_ext
7957 fi
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
7964 _ACEOF
7965
7966 fi
7967 done
7968
7969
7970
7971 # Check whether --with-pam was given.
7972 if test "${with_pam+set}" = set; then
7973   withval=$with_pam; with_pam=$withval
7974 else
7975   with_pam=yes
7976 fi
7977
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"
7982   fi
7983
7984
7985 for ac_header in security/pam_appl.h pam/pam_appl.h
7986 do
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
7993 fi
7994 ac_res=`eval echo '${'$as_ac_Header'}'`
7995                { echo "$as_me:$LINENO: result: $ac_res" >&5
7996 echo "${ECHO_T}$ac_res" >&6; }
7997 else
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
8002 /* confdefs.h.  */
8003 _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>
8009 _ACEOF
8010 rm -f conftest.$ac_objext
8011 if { (ac_try="$ac_compile"
8012 case "(($ac_try" in
8013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8014   *) ac_try_echo=$ac_try;;
8015 esac
8016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8017   (eval "$ac_compile") 2>conftest.er1
8018   ac_status=$?
8019   grep -v '^ *+' conftest.er1 >conftest.err
8020   rm -f conftest.er1
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
8028 else
8029   echo "$as_me: failed program was:" >&5
8030 sed 's/^/| /' conftest.$ac_ext >&5
8031
8032         ac_header_compiler=no
8033 fi
8034
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; }
8038
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
8043 /* confdefs.h.  */
8044 _ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h.  */
8048 #include <$ac_header>
8049 _ACEOF
8050 if { (ac_try="$ac_cpp conftest.$ac_ext"
8051 case "(($ac_try" in
8052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053   *) ac_try_echo=$ac_try;;
8054 esac
8055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8057   ac_status=$?
8058   grep -v '^ *+' conftest.er1 >conftest.err
8059   rm -f conftest.er1
8060   cat conftest.err >&5
8061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062   (exit $ac_status); } >/dev/null && {
8063          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8064          test ! -s conftest.err
8065        }; then
8066   ac_header_preproc=yes
8067 else
8068   echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8070
8071   ac_header_preproc=no
8072 fi
8073
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; }
8077
8078 # So?  What about this header?
8079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8080   yes:no: )
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
8086     ;;
8087   no: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;}
8100
8101     ;;
8102 esac
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
8107 else
8108   eval "$as_ac_Header=\$ac_header_preproc"
8109 fi
8110 ac_res=`eval echo '${'$as_ac_Header'}'`
8111                { echo "$as_me:$LINENO: result: $ac_res" >&5
8112 echo "${ECHO_T}$ac_res" >&6; }
8113
8114 fi
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
8118 _ACEOF
8119
8120 fi
8121
8122 done
8123
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
8129 else
8130   cat >conftest.$ac_ext <<_ACEOF
8131 /* confdefs.h.  */
8132 _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
8139
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.  */
8144
8145 #ifdef __STDC__
8146 # include <limits.h>
8147 #else
8148 # include <assert.h>
8149 #endif
8150
8151 #undef pam_start
8152
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.  */
8156 #ifdef __cplusplus
8157 extern "C"
8158 #endif
8159 char pam_start ();
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
8164 choke me
8165 #endif
8166
8167 int
8168 main ()
8169 {
8170 return pam_start ();
8171   ;
8172   return 0;
8173 }
8174 _ACEOF
8175 rm -f conftest.$ac_objext conftest$ac_exeext
8176 if { (ac_try="$ac_link"
8177 case "(($ac_try" in
8178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179   *) ac_try_echo=$ac_try;;
8180 esac
8181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8182   (eval "$ac_link") 2>conftest.er1
8183   ac_status=$?
8184   grep -v '^ *+' conftest.er1 >conftest.err
8185   rm -f conftest.er1
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
8194 else
8195   echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8197
8198         ac_cv_func_pam_start=no
8199 fi
8200
8201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8202       conftest$ac_exeext conftest.$ac_ext
8203 fi
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
8207   :
8208 else
8209   LIBS="-lpam $LIBS"
8210         cat >conftest.$ac_ext <<_ACEOF
8211 /* confdefs.h.  */
8212 _ACEOF
8213 cat confdefs.h >>conftest.$ac_ext
8214 cat >>conftest.$ac_ext <<_ACEOF
8215 /* end confdefs.h.  */
8216
8217 #include <sys/types.h>
8218 #ifdef HAVE_PAM_PAM_APPL_H
8219 #include <pam/pam_appl.h>
8220 #endif
8221 #ifdef HAVE_SECURITY_PAM_H
8222 #include <security/pam_appl.h>
8223 #endif
8224 int
8225 main ()
8226 {
8227
8228 const char *service="foo";
8229 const char *user="bar";
8230 pam_handle_t *pamh;
8231 struct pam_conv *conv;
8232 int baz;
8233 baz = pam_start(service, user, conv, &pamh);
8234 return 0;
8235
8236   ;
8237   return 0;
8238 }
8239 _ACEOF
8240 rm -f conftest.$ac_objext conftest$ac_exeext
8241 if { (ac_try="$ac_link"
8242 case "(($ac_try" in
8243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244   *) ac_try_echo=$ac_try;;
8245 esac
8246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8247   (eval "$ac_link") 2>conftest.er1
8248   ac_status=$?
8249   grep -v '^ *+' conftest.er1 >conftest.err
8250   rm -f conftest.er1
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
8258   LIBPAM="-lpam"
8259 else
8260   echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.$ac_ext >&5
8262
8263
8264 fi
8265
8266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8267       conftest$ac_exeext conftest.$ac_ext
8268
8269 fi
8270
8271   LIBS="$cmu_save_LIBS $LIBPAM"
8272 fi
8273
8274
8275 # Check whether --with-saslauthd was given.
8276 if test "${with_saslauthd+set}" = set; then
8277   withval=$with_saslauthd; with_saslauthd=$withval
8278 else
8279   with_saslauthd=yes
8280 fi
8281
8282 if test "$with_saslauthd" != no; then
8283   if test "$with_saslauthd" = yes; then
8284     with_saslauthd="/var/state/saslauthd"
8285   fi
8286
8287 cat >>confdefs.h <<\_ACEOF
8288 #define HAVE_SASLAUTHD
8289 _ACEOF
8290
8291
8292 cat >>confdefs.h <<_ACEOF
8293 #define PATH_SASLAUTHD_RUNDIR "$with_saslauthd"
8294 _ACEOF
8295
8296 fi
8297  if test "$with_saslauthd" != no; then
8298   SASLAUTHD_TRUE=
8299   SASLAUTHD_FALSE='#'
8300 else
8301   SASLAUTHD_TRUE='#'
8302   SASLAUTHD_FALSE=
8303 fi
8304
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; }
8309
8310
8311 # Check whether --with-authdaemond was given.
8312 if test "${with_authdaemond+set}" = set; then
8313   withval=$with_authdaemond; with_authdaemon=$withval
8314 else
8315   with_authdaemon=yes
8316 fi
8317
8318 if test "$with_authdaemon" != no; then
8319   if test "$with_authdaemon" = yes; then
8320     with_authdaemon="/dev/null"
8321   fi
8322
8323 cat >>confdefs.h <<\_ACEOF
8324 #define HAVE_AUTHDAEMON
8325 _ACEOF
8326
8327
8328 cat >>confdefs.h <<_ACEOF
8329 #define PATH_AUTHDAEMON_SOCKET "$with_authdaemon"
8330 _ACEOF
8331
8332 fi
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; }
8337
8338
8339 # Check whether --with-pwcheck was given.
8340 if test "${with_pwcheck+set}" = set; then
8341   withval=$with_pwcheck; with_pwcheck=$withval
8342 else
8343   with_pwcheck=no
8344 fi
8345
8346 if test "$with_pwcheck" != no; then
8347    if test "$with_pwcheck" = yes; then
8348      with_pwcheck=/var/pwcheck
8349    fi
8350
8351 cat >>confdefs.h <<\_ACEOF
8352 #define HAVE_PWCHECK
8353 _ACEOF
8354
8355
8356 cat >>confdefs.h <<_ACEOF
8357 #define PWCHECKDIR "$with_pwcheck"
8358 _ACEOF
8359
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
8364 else
8365   cat >conftest.$ac_ext <<_ACEOF
8366 /* confdefs.h.  */
8367 _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
8374
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.  */
8379
8380 #ifdef __STDC__
8381 # include <limits.h>
8382 #else
8383 # include <assert.h>
8384 #endif
8385
8386 #undef getspnam
8387
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.  */
8391 #ifdef __cplusplus
8392 extern "C"
8393 #endif
8394 char getspnam ();
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
8399 choke me
8400 #endif
8401
8402 int
8403 main ()
8404 {
8405 return getspnam ();
8406   ;
8407   return 0;
8408 }
8409 _ACEOF
8410 rm -f conftest.$ac_objext conftest$ac_exeext
8411 if { (ac_try="$ac_link"
8412 case "(($ac_try" in
8413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8414   *) ac_try_echo=$ac_try;;
8415 esac
8416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8417   (eval "$ac_link") 2>conftest.er1
8418   ac_status=$?
8419   grep -v '^ *+' conftest.er1 >conftest.err
8420   rm -f conftest.er1
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
8429 else
8430   echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.$ac_ext >&5
8432
8433         ac_cv_func_getspnam=no
8434 fi
8435
8436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8437       conftest$ac_exeext conftest.$ac_ext
8438 fi
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"
8443 else
8444   PWCHECKMETH="getpwnam"
8445 fi
8446
8447
8448 fi
8449  if test "$with_pwcheck" != no; then
8450   PWCHECK_TRUE=
8451   PWCHECK_FALSE='#'
8452 else
8453   PWCHECK_TRUE='#'
8454   PWCHECK_FALSE=
8455 fi
8456
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; }
8461
8462
8463 # Check whether --with-ipctype was given.
8464 if test "${with_ipctype+set}" = set; then
8465   withval=$with_ipctype; with_ipctype=$withval
8466 else
8467   with_ipctype="unix"
8468 fi
8469
8470 IPCTYPE=$with_ipctype
8471
8472 LIB_DOOR=
8473 if test "$with_ipctype" = "doors"; then
8474    LIB_DOOR="-ldoor"
8475
8476 cat >>confdefs.h <<\_ACEOF
8477 #define USE_DOORS
8478 _ACEOF
8479
8480 fi
8481
8482
8483 # Check whether --enable-alwaystrue was given.
8484 if test "${enable_alwaystrue+set}" = set; then
8485   enableval=$enable_alwaystrue; enable_alwaystrue=$enableval
8486 else
8487   enable_alwaystrue=no
8488 fi
8489
8490 if test "$enable_alwaystrue" = yes; then
8491
8492 cat >>confdefs.h <<\_ACEOF
8493 #define HAVE_ALWAYSTRUE
8494 _ACEOF
8495
8496 fi
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; }
8501
8502 # Check whether --enable-checkapop was given.
8503 if test "${enable_checkapop+set}" = set; then
8504   enableval=$enable_checkapop; checkapop=$enableval
8505 else
8506   checkapop=yes
8507 fi
8508
8509
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; }
8515
8516 cat >>confdefs.h <<\_ACEOF
8517 #define DO_SASL_CHECKAPOP
8518 _ACEOF
8519
8520 else
8521   { echo "$as_me:$LINENO: result: disabled" >&5
8522 echo "${ECHO_T}disabled" >&6; }
8523 fi
8524
8525 # Check whether --enable-cram was given.
8526 if test "${enable_cram+set}" = set; then
8527   enableval=$enable_cram; cram=$enableval
8528 else
8529   cram=yes
8530 fi
8531
8532
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"
8542
8543 cat >>confdefs.h <<\_ACEOF
8544 #define STATIC_CRAMMD5
8545 _ACEOF
8546
8547   fi
8548 else
8549   { echo "$as_me:$LINENO: result: disabled" >&5
8550 echo "${ECHO_T}disabled" >&6; }
8551 fi
8552
8553
8554 # Check whether --with-lib-subdir was given.
8555 if test "${with_lib_subdir+set}" = set; then
8556   withval=$with_lib_subdir;
8557 fi
8558
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
8563 else
8564   cat >conftest.$ac_ext <<_ACEOF
8565 /* confdefs.h.  */
8566 _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_;
8572 int
8573 main ()
8574 {
8575 if ((ac__type_new_ *) 0)
8576   return 0;
8577 if (sizeof (ac__type_new_))
8578   return 0;
8579   ;
8580   return 0;
8581 }
8582 _ACEOF
8583 rm -f conftest.$ac_objext
8584 if { (ac_try="$ac_compile"
8585 case "(($ac_try" in
8586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8587   *) ac_try_echo=$ac_try;;
8588 esac
8589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8590   (eval "$ac_compile") 2>conftest.er1
8591   ac_status=$?
8592   grep -v '^ *+' conftest.er1 >conftest.err
8593   rm -f conftest.er1
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
8600   ac_cv_type_long=yes
8601 else
8602   echo "$as_me: failed program was:" >&5
8603 sed 's/^/| /' conftest.$ac_ext >&5
8604
8605         ac_cv_type_long=no
8606 fi
8607
8608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8609 fi
8610 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
8611 echo "${ECHO_T}$ac_cv_type_long" >&6; }
8612
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
8621 else
8622   if test "$cross_compiling" = yes; then
8623   # Depending upon the size, compute the lo and hi bounds.
8624 cat >conftest.$ac_ext <<_ACEOF
8625 /* confdefs.h.  */
8626 _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_;
8632 int
8633 main ()
8634 {
8635 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8636 test_array [0] = 0
8637
8638   ;
8639   return 0;
8640 }
8641 _ACEOF
8642 rm -f conftest.$ac_objext
8643 if { (ac_try="$ac_compile"
8644 case "(($ac_try" in
8645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8646   *) ac_try_echo=$ac_try;;
8647 esac
8648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8649   (eval "$ac_compile") 2>conftest.er1
8650   ac_status=$?
8651   grep -v '^ *+' conftest.er1 >conftest.err
8652   rm -f conftest.er1
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
8659   ac_lo=0 ac_mid=0
8660   while :; do
8661     cat >conftest.$ac_ext <<_ACEOF
8662 /* confdefs.h.  */
8663 _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_;
8669 int
8670 main ()
8671 {
8672 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8673 test_array [0] = 0
8674
8675   ;
8676   return 0;
8677 }
8678 _ACEOF
8679 rm -f conftest.$ac_objext
8680 if { (ac_try="$ac_compile"
8681 case "(($ac_try" in
8682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8683   *) ac_try_echo=$ac_try;;
8684 esac
8685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8686   (eval "$ac_compile") 2>conftest.er1
8687   ac_status=$?
8688   grep -v '^ *+' conftest.er1 >conftest.err
8689   rm -f conftest.er1
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
8697 else
8698   echo "$as_me: failed program was:" >&5
8699 sed 's/^/| /' conftest.$ac_ext >&5
8700
8701         ac_lo=`expr $ac_mid + 1`
8702                         if test $ac_lo -le $ac_mid; then
8703                           ac_lo= ac_hi=
8704                           break
8705                         fi
8706                         ac_mid=`expr 2 '*' $ac_mid + 1`
8707 fi
8708
8709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8710   done
8711 else
8712   echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8714
8715         cat >conftest.$ac_ext <<_ACEOF
8716 /* confdefs.h.  */
8717 _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_;
8723 int
8724 main ()
8725 {
8726 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8727 test_array [0] = 0
8728
8729   ;
8730   return 0;
8731 }
8732 _ACEOF
8733 rm -f conftest.$ac_objext
8734 if { (ac_try="$ac_compile"
8735 case "(($ac_try" in
8736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8737   *) ac_try_echo=$ac_try;;
8738 esac
8739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8740   (eval "$ac_compile") 2>conftest.er1
8741   ac_status=$?
8742   grep -v '^ *+' conftest.er1 >conftest.err
8743   rm -f conftest.er1
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
8750   ac_hi=-1 ac_mid=-1
8751   while :; do
8752     cat >conftest.$ac_ext <<_ACEOF
8753 /* confdefs.h.  */
8754 _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_;
8760 int
8761 main ()
8762 {
8763 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8764 test_array [0] = 0
8765
8766   ;
8767   return 0;
8768 }
8769 _ACEOF
8770 rm -f conftest.$ac_objext
8771 if { (ac_try="$ac_compile"
8772 case "(($ac_try" in
8773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8774   *) ac_try_echo=$ac_try;;
8775 esac
8776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8777   (eval "$ac_compile") 2>conftest.er1
8778   ac_status=$?
8779   grep -v '^ *+' conftest.er1 >conftest.err
8780   rm -f conftest.er1
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
8788 else
8789   echo "$as_me: failed program was:" >&5
8790 sed 's/^/| /' conftest.$ac_ext >&5
8791
8792         ac_hi=`expr '(' $ac_mid ')' - 1`
8793                         if test $ac_mid -le $ac_hi; then
8794                           ac_lo= ac_hi=
8795                           break
8796                         fi
8797                         ac_mid=`expr 2 '*' $ac_mid`
8798 fi
8799
8800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8801   done
8802 else
8803   echo "$as_me: failed program was:" >&5
8804 sed 's/^/| /' conftest.$ac_ext >&5
8805
8806         ac_lo= ac_hi=
8807 fi
8808
8809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8810 fi
8811
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
8817 /* confdefs.h.  */
8818 _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_;
8824 int
8825 main ()
8826 {
8827 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8828 test_array [0] = 0
8829
8830   ;
8831   return 0;
8832 }
8833 _ACEOF
8834 rm -f conftest.$ac_objext
8835 if { (ac_try="$ac_compile"
8836 case "(($ac_try" in
8837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8838   *) ac_try_echo=$ac_try;;
8839 esac
8840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8841   (eval "$ac_compile") 2>conftest.er1
8842   ac_status=$?
8843   grep -v '^ *+' conftest.er1 >conftest.err
8844   rm -f conftest.er1
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
8851   ac_hi=$ac_mid
8852 else
8853   echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8855
8856         ac_lo=`expr '(' $ac_mid ')' + 1`
8857 fi
8858
8859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8860 done
8861 case $ac_lo in
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; }; }
8869    else
8870      ac_cv_sizeof_long=0
8871    fi ;;
8872 esac
8873 else
8874   cat >conftest.$ac_ext <<_ACEOF
8875 /* confdefs.h.  */
8876 _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_)); }
8884 #include <stdio.h>
8885 #include <stdlib.h>
8886 int
8887 main ()
8888 {
8889
8890   FILE *f = fopen ("conftest.val", "w");
8891   if (! f)
8892     return 1;
8893   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8894     {
8895       long int i = longval ();
8896       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8897         return 1;
8898       fprintf (f, "%ld\n", i);
8899     }
8900   else
8901     {
8902       unsigned long int i = ulongval ();
8903       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8904         return 1;
8905       fprintf (f, "%lu\n", i);
8906     }
8907   return ferror (f) || fclose (f) != 0;
8908
8909   ;
8910   return 0;
8911 }
8912 _ACEOF
8913 rm -f conftest$ac_exeext
8914 if { (ac_try="$ac_link"
8915 case "(($ac_try" in
8916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8917   *) ac_try_echo=$ac_try;;
8918 esac
8919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8920   (eval "$ac_link") 2>&5
8921   ac_status=$?
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;;
8927 esac
8928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8929   (eval "$ac_try") 2>&5
8930   ac_status=$?
8931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932   (exit $ac_status); }; }; then
8933   ac_cv_sizeof_long=`cat conftest.val`
8934 else
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
8938
8939 ( exit $ac_status )
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; }; }
8946    else
8947      ac_cv_sizeof_long=0
8948    fi
8949 fi
8950 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8951 fi
8952 rm -f conftest.val
8953 fi
8954 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8955 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8956
8957
8958
8959 cat >>confdefs.h <<_ACEOF
8960 #define SIZEOF_LONG $ac_cv_sizeof_long
8961 _ACEOF
8962
8963
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
8968 else
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
8975   fi
8976   if test $ac_cv_sizeof_long -eq 8 ; then
8977     test -d /usr/lib64 && ac_cv_cmu_lib_subdir=lib64
8978   fi
8979 else
8980   ac_cv_cmu_lib_subdir=$with_lib_subdir
8981 fi
8982 fi
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
8986
8987
8988
8989
8990
8991 # Check whether --with-openssl was given.
8992 if test "${with_openssl+set}" = set; then
8993   withval=$with_openssl; with_openssl=$withval
8994 else
8995   with_openssl="yes"
8996 fi
8997
8998
8999         save_CPPFLAGS=$CPPFLAGS
9000         save_LDFLAGS=$LDFLAGS
9001
9002         if test -d $with_openssl; then
9003           CPPFLAGS="${CPPFLAGS} -I${with_openssl}/include"
9004
9005   # this is CMU ADD LIBPATH
9006   if test "$andrew_runpath_switch" = "none" ; then
9007         LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
9008   else
9009         LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR $andrew_runpath_switch${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
9010   fi
9011
9012         fi
9013
9014 case "$with_openssl" in
9015         no)
9016           with_openssl="no";;
9017         *)
9018                                   LIB_RSAREF=""
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
9023 else
9024   ac_check_lib_save_LIBS=$LIBS
9025 LIBS="-lrsaref  $LIBS"
9026 cat >conftest.$ac_ext <<_ACEOF
9027 /* confdefs.h.  */
9028 _ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h.  */
9032
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.  */
9036 #ifdef __cplusplus
9037 extern "C"
9038 #endif
9039 char RSAPublicEncrypt ();
9040 int
9041 main ()
9042 {
9043 return RSAPublicEncrypt ();
9044   ;
9045   return 0;
9046 }
9047 _ACEOF
9048 rm -f conftest.$ac_objext conftest$ac_exeext
9049 if { (ac_try="$ac_link"
9050 case "(($ac_try" in
9051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9052   *) ac_try_echo=$ac_try;;
9053 esac
9054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9055   (eval "$ac_link") 2>conftest.er1
9056   ac_status=$?
9057   grep -v '^ *+' conftest.er1 >conftest.err
9058   rm -f conftest.er1
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
9067 else
9068   echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9070
9071         ac_cv_lib_rsaref_RSAPublicEncrypt=no
9072 fi
9073
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
9077 fi
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
9086 else
9087   ac_check_lib_save_LIBS=$LIBS
9088 LIBS="-lRSAglue  $LIBS"
9089 cat >conftest.$ac_ext <<_ACEOF
9090 /* confdefs.h.  */
9091 _ACEOF
9092 cat confdefs.h >>conftest.$ac_ext
9093 cat >>conftest.$ac_ext <<_ACEOF
9094 /* end confdefs.h.  */
9095
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.  */
9099 #ifdef __cplusplus
9100 extern "C"
9101 #endif
9102 char RSAPublicEncrypt ();
9103 int
9104 main ()
9105 {
9106 return RSAPublicEncrypt ();
9107   ;
9108   return 0;
9109 }
9110 _ACEOF
9111 rm -f conftest.$ac_objext conftest$ac_exeext
9112 if { (ac_try="$ac_link"
9113 case "(($ac_try" in
9114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9115   *) ac_try_echo=$ac_try;;
9116 esac
9117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9118   (eval "$ac_link") 2>conftest.er1
9119   ac_status=$?
9120   grep -v '^ *+' conftest.er1 >conftest.err
9121   rm -f conftest.er1
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
9130 else
9131   echo "$as_me: failed program was:" >&5
9132 sed 's/^/| /' conftest.$ac_ext >&5
9133
9134         ac_cv_lib_RSAglue_RSAPublicEncrypt=no
9135 fi
9136
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
9140 fi
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"
9145 else
9146   LIB_RSAREF="-lrsaref"
9147 fi
9148
9149 else
9150   cmu_have_rsaref=no
9151 fi
9152
9153
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
9159 fi
9160 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
9161 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6; }
9162 else
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
9167 /* confdefs.h.  */
9168 _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>
9174 _ACEOF
9175 rm -f conftest.$ac_objext
9176 if { (ac_try="$ac_compile"
9177 case "(($ac_try" in
9178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9179   *) ac_try_echo=$ac_try;;
9180 esac
9181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9182   (eval "$ac_compile") 2>conftest.er1
9183   ac_status=$?
9184   grep -v '^ *+' conftest.er1 >conftest.err
9185   rm -f conftest.er1
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
9193 else
9194   echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.$ac_ext >&5
9196
9197         ac_header_compiler=no
9198 fi
9199
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; }
9203
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
9208 /* confdefs.h.  */
9209 _ACEOF
9210 cat confdefs.h >>conftest.$ac_ext
9211 cat >>conftest.$ac_ext <<_ACEOF
9212 /* end confdefs.h.  */
9213 #include <openssl/evp.h>
9214 _ACEOF
9215 if { (ac_try="$ac_cpp conftest.$ac_ext"
9216 case "(($ac_try" in
9217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9218   *) ac_try_echo=$ac_try;;
9219 esac
9220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9221   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9222   ac_status=$?
9223   grep -v '^ *+' conftest.er1 >conftest.err
9224   rm -f conftest.er1
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
9230        }; then
9231   ac_header_preproc=yes
9232 else
9233   echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9235
9236   ac_header_preproc=no
9237 fi
9238
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; }
9242
9243 # So?  What about this header?
9244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9245   yes:no: )
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
9251     ;;
9252   no: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;}
9265
9266     ;;
9267 esac
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
9272 else
9273   ac_cv_header_openssl_evp_h=$ac_header_preproc
9274 fi
9275 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
9276 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6; }
9277
9278 fi
9279 if test $ac_cv_header_openssl_evp_h = yes; then
9280
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
9285 else
9286   ac_check_lib_save_LIBS=$LIBS
9287 LIBS="-lcrypto $LIB_RSAREF $LIBS"
9288 cat >conftest.$ac_ext <<_ACEOF
9289 /* confdefs.h.  */
9290 _ACEOF
9291 cat confdefs.h >>conftest.$ac_ext
9292 cat >>conftest.$ac_ext <<_ACEOF
9293 /* end confdefs.h.  */
9294
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.  */
9298 #ifdef __cplusplus
9299 extern "C"
9300 #endif
9301 char EVP_DigestInit ();
9302 int
9303 main ()
9304 {
9305 return EVP_DigestInit ();
9306   ;
9307   return 0;
9308 }
9309 _ACEOF
9310 rm -f conftest.$ac_objext conftest$ac_exeext
9311 if { (ac_try="$ac_link"
9312 case "(($ac_try" in
9313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9314   *) ac_try_echo=$ac_try;;
9315 esac
9316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9317   (eval "$ac_link") 2>conftest.er1
9318   ac_status=$?
9319   grep -v '^ *+' conftest.er1 >conftest.err
9320   rm -f conftest.er1
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
9329 else
9330   echo "$as_me: failed program was:" >&5
9331 sed 's/^/| /' conftest.$ac_ext >&5
9332
9333         ac_cv_lib_crypto_EVP_DigestInit=no
9334 fi
9335
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
9339 fi
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
9343   with_openssl="yes"
9344 else
9345   with_openssl="no"
9346 fi
9347
9348 else
9349   with_openssl=no
9350 fi
9351
9352
9353                 ;;
9354 esac
9355
9356         if test "$with_openssl" != "no"; then
9357
9358 cat >>confdefs.h <<\_ACEOF
9359 #define HAVE_OPENSSL
9360 _ACEOF
9361
9362         else
9363                 CPPFLAGS=$save_CPPFLAGS
9364                 LDFLAGS=$save_LDFLAGS
9365         fi
9366
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; }
9371
9372
9373
9374 # Check whether --with-des was given.
9375 if test "${with_des+set}" = set; then
9376   withval=$with_des; with_des=$withval
9377 else
9378   with_des=yes
9379 fi
9380
9381
9382 LIB_DES=""
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"
9387   fi
9388
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
9394 else
9395   ac_check_lib_save_LIBS=$LIBS
9396 LIBS="-lcrypto $LIB_RSAREF $LIBS"
9397 cat >conftest.$ac_ext <<_ACEOF
9398 /* confdefs.h.  */
9399 _ACEOF
9400 cat confdefs.h >>conftest.$ac_ext
9401 cat >>conftest.$ac_ext <<_ACEOF
9402 /* end confdefs.h.  */
9403
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.  */
9407 #ifdef __cplusplus
9408 extern "C"
9409 #endif
9410 char des_cbc_encrypt ();
9411 int
9412 main ()
9413 {
9414 return des_cbc_encrypt ();
9415   ;
9416   return 0;
9417 }
9418 _ACEOF
9419 rm -f conftest.$ac_objext conftest$ac_exeext
9420 if { (ac_try="$ac_link"
9421 case "(($ac_try" in
9422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9423   *) ac_try_echo=$ac_try;;
9424 esac
9425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9426   (eval "$ac_link") 2>conftest.er1
9427   ac_status=$?
9428   grep -v '^ *+' conftest.er1 >conftest.err
9429   rm -f conftest.er1
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
9438 else
9439   echo "$as_me: failed program was:" >&5
9440 sed 's/^/| /' conftest.$ac_ext >&5
9441
9442         ac_cv_lib_crypto_des_cbc_encrypt=no
9443 fi
9444
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
9448 fi
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
9452
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
9458 fi
9459 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
9460 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
9461 else
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
9466 /* confdefs.h.  */
9467 _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>
9473 _ACEOF
9474 rm -f conftest.$ac_objext
9475 if { (ac_try="$ac_compile"
9476 case "(($ac_try" in
9477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9478   *) ac_try_echo=$ac_try;;
9479 esac
9480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9481   (eval "$ac_compile") 2>conftest.er1
9482   ac_status=$?
9483   grep -v '^ *+' conftest.er1 >conftest.err
9484   rm -f conftest.er1
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
9492 else
9493   echo "$as_me: failed program was:" >&5
9494 sed 's/^/| /' conftest.$ac_ext >&5
9495
9496         ac_header_compiler=no
9497 fi
9498
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; }
9502
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
9507 /* confdefs.h.  */
9508 _ACEOF
9509 cat confdefs.h >>conftest.$ac_ext
9510 cat >>conftest.$ac_ext <<_ACEOF
9511 /* end confdefs.h.  */
9512 #include <openssl/des.h>
9513 _ACEOF
9514 if { (ac_try="$ac_cpp conftest.$ac_ext"
9515 case "(($ac_try" in
9516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9517   *) ac_try_echo=$ac_try;;
9518 esac
9519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9520   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9521   ac_status=$?
9522   grep -v '^ *+' conftest.er1 >conftest.err
9523   rm -f conftest.er1
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
9529        }; then
9530   ac_header_preproc=yes
9531 else
9532   echo "$as_me: failed program was:" >&5
9533 sed 's/^/| /' conftest.$ac_ext >&5
9534
9535   ac_header_preproc=no
9536 fi
9537
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; }
9541
9542 # So?  What about this header?
9543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9544   yes:no: )
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
9550     ;;
9551   no: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;}
9564
9565     ;;
9566 esac
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
9571 else
9572   ac_cv_header_openssl_des_h=$ac_header_preproc
9573 fi
9574 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
9575 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
9576
9577 fi
9578 if test $ac_cv_header_openssl_des_h = yes; then
9579
9580 cat >>confdefs.h <<\_ACEOF
9581 #define WITH_SSL_DES
9582 _ACEOF
9583
9584                                        LIB_DES="-lcrypto";
9585                                        with_des=yes
9586 else
9587   with_des=no
9588 fi
9589
9590
9591 else
9592   with_des=no
9593 fi
9594
9595
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
9601 else
9602   ac_check_lib_save_LIBS=$LIBS
9603 LIBS="-lcrypto $LIB_RSAREF $LIBS"
9604 cat >conftest.$ac_ext <<_ACEOF
9605 /* confdefs.h.  */
9606 _ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h.  */
9610
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.  */
9614 #ifdef __cplusplus
9615 extern "C"
9616 #endif
9617 char DES_cbc_encrypt ();
9618 int
9619 main ()
9620 {
9621 return DES_cbc_encrypt ();
9622   ;
9623   return 0;
9624 }
9625 _ACEOF
9626 rm -f conftest.$ac_objext conftest$ac_exeext
9627 if { (ac_try="$ac_link"
9628 case "(($ac_try" in
9629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9630   *) ac_try_echo=$ac_try;;
9631 esac
9632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9633   (eval "$ac_link") 2>conftest.er1
9634   ac_status=$?
9635   grep -v '^ *+' conftest.er1 >conftest.err
9636   rm -f conftest.er1
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
9645 else
9646   echo "$as_me: failed program was:" >&5
9647 sed 's/^/| /' conftest.$ac_ext >&5
9648
9649         ac_cv_lib_crypto_DES_cbc_encrypt=no
9650 fi
9651
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
9655 fi
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
9659
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
9665 fi
9666 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
9667 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
9668 else
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
9673 /* confdefs.h.  */
9674 _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>
9680 _ACEOF
9681 rm -f conftest.$ac_objext
9682 if { (ac_try="$ac_compile"
9683 case "(($ac_try" in
9684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685   *) ac_try_echo=$ac_try;;
9686 esac
9687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688   (eval "$ac_compile") 2>conftest.er1
9689   ac_status=$?
9690   grep -v '^ *+' conftest.er1 >conftest.err
9691   rm -f conftest.er1
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
9699 else
9700   echo "$as_me: failed program was:" >&5
9701 sed 's/^/| /' conftest.$ac_ext >&5
9702
9703         ac_header_compiler=no
9704 fi
9705
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; }
9709
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
9714 /* confdefs.h.  */
9715 _ACEOF
9716 cat confdefs.h >>conftest.$ac_ext
9717 cat >>conftest.$ac_ext <<_ACEOF
9718 /* end confdefs.h.  */
9719 #include <openssl/des.h>
9720 _ACEOF
9721 if { (ac_try="$ac_cpp conftest.$ac_ext"
9722 case "(($ac_try" in
9723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9724   *) ac_try_echo=$ac_try;;
9725 esac
9726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9727   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9728   ac_status=$?
9729   grep -v '^ *+' conftest.er1 >conftest.err
9730   rm -f conftest.er1
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
9736        }; then
9737   ac_header_preproc=yes
9738 else
9739   echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.$ac_ext >&5
9741
9742   ac_header_preproc=no
9743 fi
9744
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; }
9748
9749 # So?  What about this header?
9750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9751   yes:no: )
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
9757     ;;
9758   no: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;}
9771
9772     ;;
9773 esac
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
9778 else
9779   ac_cv_header_openssl_des_h=$ac_header_preproc
9780 fi
9781 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
9782 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
9783
9784 fi
9785 if test $ac_cv_header_openssl_des_h = yes; then
9786
9787 cat >>confdefs.h <<\_ACEOF
9788 #define WITH_SSL_DES
9789 _ACEOF
9790
9791                                        LIB_DES="-lcrypto";
9792                                        with_des=yes
9793 else
9794   with_des=no
9795 fi
9796
9797
9798 else
9799   with_des=no
9800 fi
9801
9802     fi
9803   fi
9804
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
9810 else
9811   ac_check_lib_save_LIBS=$LIBS
9812 LIBS="-ldes  $LIBS"
9813 cat >conftest.$ac_ext <<_ACEOF
9814 /* confdefs.h.  */
9815 _ACEOF
9816 cat confdefs.h >>conftest.$ac_ext
9817 cat >>conftest.$ac_ext <<_ACEOF
9818 /* end confdefs.h.  */
9819
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.  */
9823 #ifdef __cplusplus
9824 extern "C"
9825 #endif
9826 char des_cbc_encrypt ();
9827 int
9828 main ()
9829 {
9830 return des_cbc_encrypt ();
9831   ;
9832   return 0;
9833 }
9834 _ACEOF
9835 rm -f conftest.$ac_objext conftest$ac_exeext
9836 if { (ac_try="$ac_link"
9837 case "(($ac_try" in
9838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839   *) ac_try_echo=$ac_try;;
9840 esac
9841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842   (eval "$ac_link") 2>conftest.er1
9843   ac_status=$?
9844   grep -v '^ *+' conftest.er1 >conftest.err
9845   rm -f conftest.er1
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
9854 else
9855   echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.$ac_ext >&5
9857
9858         ac_cv_lib_des_des_cbc_encrypt=no
9859 fi
9860
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
9864 fi
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
9868   LIB_DES="-ldes";
9869                                         with_des=yes
9870 else
9871   with_des=no
9872 fi
9873
9874   fi
9875
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
9881 else
9882   ac_check_lib_save_LIBS=$LIBS
9883 LIBS="-ldes425  $LIBS"
9884 cat >conftest.$ac_ext <<_ACEOF
9885 /* confdefs.h.  */
9886 _ACEOF
9887 cat confdefs.h >>conftest.$ac_ext
9888 cat >>conftest.$ac_ext <<_ACEOF
9889 /* end confdefs.h.  */
9890
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.  */
9894 #ifdef __cplusplus
9895 extern "C"
9896 #endif
9897 char des_cbc_encrypt ();
9898 int
9899 main ()
9900 {
9901 return des_cbc_encrypt ();
9902   ;
9903   return 0;
9904 }
9905 _ACEOF
9906 rm -f conftest.$ac_objext conftest$ac_exeext
9907 if { (ac_try="$ac_link"
9908 case "(($ac_try" in
9909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910   *) ac_try_echo=$ac_try;;
9911 esac
9912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913   (eval "$ac_link") 2>conftest.er1
9914   ac_status=$?
9915   grep -v '^ *+' conftest.er1 >conftest.err
9916   rm -f conftest.er1
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
9925 else
9926   echo "$as_me: failed program was:" >&5
9927 sed 's/^/| /' conftest.$ac_ext >&5
9928
9929         ac_cv_lib_des425_des_cbc_encrypt=no
9930 fi
9931
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
9935 fi
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
9939   LIB_DES="-ldes425";
9940                                        with_des=yes
9941 else
9942   with_des=no
9943 fi
9944
9945   fi
9946
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
9952 else
9953   ac_check_lib_save_LIBS=$LIBS
9954 LIBS="-ldes524  $LIBS"
9955 cat >conftest.$ac_ext <<_ACEOF
9956 /* confdefs.h.  */
9957 _ACEOF
9958 cat confdefs.h >>conftest.$ac_ext
9959 cat >>conftest.$ac_ext <<_ACEOF
9960 /* end confdefs.h.  */
9961
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.  */
9965 #ifdef __cplusplus
9966 extern "C"
9967 #endif
9968 char des_cbc_encrypt ();
9969 int
9970 main ()
9971 {
9972 return des_cbc_encrypt ();
9973   ;
9974   return 0;
9975 }
9976 _ACEOF
9977 rm -f conftest.$ac_objext conftest$ac_exeext
9978 if { (ac_try="$ac_link"
9979 case "(($ac_try" in
9980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981   *) ac_try_echo=$ac_try;;
9982 esac
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984   (eval "$ac_link") 2>conftest.er1
9985   ac_status=$?
9986   grep -v '^ *+' conftest.er1 >conftest.err
9987   rm -f conftest.er1
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
9996 else
9997   echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
9999
10000         ac_cv_lib_des524_des_cbc_encrypt=no
10001 fi
10002
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
10006 fi
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";
10011                                        with_des=yes
10012 else
10013   with_des=no
10014 fi
10015
10016   fi
10017
10018   if test "$with_des" = no; then
10019
10020             LIB_RSAREF=""
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
10025 else
10026   ac_check_lib_save_LIBS=$LIBS
10027 LIBS="-lrsaref  $LIBS"
10028 cat >conftest.$ac_ext <<_ACEOF
10029 /* confdefs.h.  */
10030 _ACEOF
10031 cat confdefs.h >>conftest.$ac_ext
10032 cat >>conftest.$ac_ext <<_ACEOF
10033 /* end confdefs.h.  */
10034
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.  */
10038 #ifdef __cplusplus
10039 extern "C"
10040 #endif
10041 char RSAPublicEncrypt ();
10042 int
10043 main ()
10044 {
10045 return RSAPublicEncrypt ();
10046   ;
10047   return 0;
10048 }
10049 _ACEOF
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;;
10055 esac
10056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057   (eval "$ac_link") 2>conftest.er1
10058   ac_status=$?
10059   grep -v '^ *+' conftest.er1 >conftest.err
10060   rm -f conftest.er1
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
10069 else
10070   echo "$as_me: failed program was:" >&5
10071 sed 's/^/| /' conftest.$ac_ext >&5
10072
10073         ac_cv_lib_rsaref_RSAPublicEncrypt=no
10074 fi
10075
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
10079 fi
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
10084 else
10085   cmu_have_rsaref=no
10086 fi
10087
10088
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
10093 else
10094   ac_check_lib_save_LIBS=$LIBS
10095 LIBS="-lcrypto $LIB_RSAREF $LIBS"
10096 cat >conftest.$ac_ext <<_ACEOF
10097 /* confdefs.h.  */
10098 _ACEOF
10099 cat confdefs.h >>conftest.$ac_ext
10100 cat >>conftest.$ac_ext <<_ACEOF
10101 /* end confdefs.h.  */
10102
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.  */
10106 #ifdef __cplusplus
10107 extern "C"
10108 #endif
10109 char des_cbc_encrypt ();
10110 int
10111 main ()
10112 {
10113 return des_cbc_encrypt ();
10114   ;
10115   return 0;
10116 }
10117 _ACEOF
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;;
10123 esac
10124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125   (eval "$ac_link") 2>conftest.er1
10126   ac_status=$?
10127   grep -v '^ *+' conftest.er1 >conftest.err
10128   rm -f conftest.er1
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
10137 else
10138   echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10140
10141         ac_cv_lib_crypto_des_cbc_encrypt=no
10142 fi
10143
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
10147 fi
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
10151
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
10157 fi
10158 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
10159 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
10160 else
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
10165 /* confdefs.h.  */
10166 _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>
10172 _ACEOF
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;;
10178 esac
10179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10180   (eval "$ac_compile") 2>conftest.er1
10181   ac_status=$?
10182   grep -v '^ *+' conftest.er1 >conftest.err
10183   rm -f conftest.er1
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
10191 else
10192   echo "$as_me: failed program was:" >&5
10193 sed 's/^/| /' conftest.$ac_ext >&5
10194
10195         ac_header_compiler=no
10196 fi
10197
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; }
10201
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
10206 /* confdefs.h.  */
10207 _ACEOF
10208 cat confdefs.h >>conftest.$ac_ext
10209 cat >>conftest.$ac_ext <<_ACEOF
10210 /* end confdefs.h.  */
10211 #include <openssl/des.h>
10212 _ACEOF
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;;
10217 esac
10218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10219   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10220   ac_status=$?
10221   grep -v '^ *+' conftest.er1 >conftest.err
10222   rm -f conftest.er1
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
10228        }; then
10229   ac_header_preproc=yes
10230 else
10231   echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10233
10234   ac_header_preproc=no
10235 fi
10236
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; }
10240
10241 # So?  What about this header?
10242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10243   yes:no: )
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
10249     ;;
10250   no: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;}
10263
10264     ;;
10265 esac
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
10270 else
10271   ac_cv_header_openssl_des_h=$ac_header_preproc
10272 fi
10273 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
10274 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
10275
10276 fi
10277 if test $ac_cv_header_openssl_des_h = yes; then
10278
10279 cat >>confdefs.h <<\_ACEOF
10280 #define WITH_SSL_DES
10281 _ACEOF
10282
10283                                         LIB_DES="-lcrypto";
10284                                         with_des=yes
10285 else
10286   with_des=no
10287 fi
10288
10289
10290 else
10291   with_des=no
10292 fi
10293
10294   fi
10295 fi
10296
10297 if test "$with_des" != no; then
10298
10299 cat >>confdefs.h <<\_ACEOF
10300 #define WITH_DES
10301 _ACEOF
10302
10303 fi
10304
10305
10306
10307
10308 # Check whether --enable-digest was given.
10309 if test "${enable_digest+set}" = set; then
10310   enableval=$enable_digest; digest=$enableval
10311 else
10312   digest=yes
10313 fi
10314
10315
10316 if test "$digest" != no; then
10317     if test -d $digest; then
10318     CPPFLAGS="$CPPFLAGS -I$digest/include"
10319     LDFLAGS="$LDFLAGS -L$digest/lib"
10320   fi
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;}
10324   fi
10325 fi
10326
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"
10336
10337 cat >>confdefs.h <<\_ACEOF
10338 #define STATIC_DIGESTMD5
10339 _ACEOF
10340
10341   fi
10342 else
10343   { echo "$as_me:$LINENO: result: disabled" >&5
10344 echo "${ECHO_T}disabled" >&6; }
10345 fi
10346
10347 # Check whether --enable-otp was given.
10348 if test "${enable_otp+set}" = set; then
10349   enableval=$enable_otp; otp=$enableval
10350 else
10351   otp=yes
10352 fi
10353
10354
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;}
10358   otp=no
10359 fi
10360
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"
10367
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"
10372
10373 cat >>confdefs.h <<\_ACEOF
10374 #define STATIC_OTP
10375 _ACEOF
10376
10377   fi
10378
10379
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}"
10383 fi
10384
10385
10386   case "$with_opie" in
10387         ""|yes)
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
10392 else
10393   ac_check_lib_save_LIBS=$LIBS
10394 LIBS="-lopie  $LIBS"
10395 cat >conftest.$ac_ext <<_ACEOF
10396 /* confdefs.h.  */
10397 _ACEOF
10398 cat confdefs.h >>conftest.$ac_ext
10399 cat >>conftest.$ac_ext <<_ACEOF
10400 /* end confdefs.h.  */
10401
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.  */
10405 #ifdef __cplusplus
10406 extern "C"
10407 #endif
10408 char opiechallenge ();
10409 int
10410 main ()
10411 {
10412 return opiechallenge ();
10413   ;
10414   return 0;
10415 }
10416 _ACEOF
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;;
10422 esac
10423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10424   (eval "$ac_link") 2>conftest.er1
10425   ac_status=$?
10426   grep -v '^ *+' conftest.er1 >conftest.err
10427   rm -f conftest.er1
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
10436 else
10437   echo "$as_me: failed program was:" >&5
10438 sed 's/^/| /' conftest.$ac_ext >&5
10439
10440         ac_cv_lib_opie_opiechallenge=no
10441 fi
10442
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
10446 fi
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
10450
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
10456 fi
10457 { echo "$as_me:$LINENO: result: $ac_cv_header_opie_h" >&5
10458 echo "${ECHO_T}$ac_cv_header_opie_h" >&6; }
10459 else
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
10464 /* confdefs.h.  */
10465 _ACEOF
10466 cat confdefs.h >>conftest.$ac_ext
10467 cat >>conftest.$ac_ext <<_ACEOF
10468 /* end confdefs.h.  */
10469 $ac_includes_default
10470 #include <opie.h>
10471 _ACEOF
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;;
10477 esac
10478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10479   (eval "$ac_compile") 2>conftest.er1
10480   ac_status=$?
10481   grep -v '^ *+' conftest.er1 >conftest.err
10482   rm -f conftest.er1
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
10490 else
10491   echo "$as_me: failed program was:" >&5
10492 sed 's/^/| /' conftest.$ac_ext >&5
10493
10494         ac_header_compiler=no
10495 fi
10496
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; }
10500
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
10505 /* confdefs.h.  */
10506 _ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h.  */
10510 #include <opie.h>
10511 _ACEOF
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;;
10516 esac
10517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10518   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10519   ac_status=$?
10520   grep -v '^ *+' conftest.er1 >conftest.err
10521   rm -f conftest.er1
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
10527        }; then
10528   ac_header_preproc=yes
10529 else
10530   echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.$ac_ext >&5
10532
10533   ac_header_preproc=no
10534 fi
10535
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; }
10539
10540 # So?  What about this header?
10541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10542   yes:no: )
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
10548     ;;
10549   no: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;}
10562
10563     ;;
10564 esac
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
10569 else
10570   ac_cv_header_opie_h=$ac_header_preproc
10571 fi
10572 { echo "$as_me:$LINENO: result: $ac_cv_header_opie_h" >&5
10573 echo "${ECHO_T}$ac_cv_header_opie_h" >&6; }
10574
10575 fi
10576 if test $ac_cv_header_opie_h = yes; then
10577   with_opie="yes"
10578 else
10579   with_opie="no"
10580 fi
10581
10582
10583 else
10584   with_opie="no"
10585 fi
10586
10587                 ;;
10588         *)
10589                 if test -d $with_opie; then
10590                   CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
10591                   LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
10592                 else
10593                   with_opie="no"
10594                 fi
10595                 ;;
10596   esac
10597
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; }
10602
10603   if test "$with_opie" != no; then
10604
10605 cat >>confdefs.h <<\_ACEOF
10606 #define HAVE_OPIE
10607 _ACEOF
10608
10609     OTP_LIBS="$OTP_LIBS -lopie"
10610   fi
10611
10612
10613
10614 else
10615   { echo "$as_me:$LINENO: result: disabled" >&5
10616 echo "${ECHO_T}disabled" >&6; }
10617 fi
10618
10619 # Check whether --enable-srp was given.
10620 if test "${enable_srp+set}" = set; then
10621   enableval=$enable_srp; srp=$enableval
10622 else
10623   srp=no
10624 fi
10625
10626
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;}
10630   srp=no
10631 fi
10632
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"
10639
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"
10644
10645 cat >>confdefs.h <<\_ACEOF
10646 #define STATIC_SRP
10647 _ACEOF
10648
10649   fi
10650
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
10654 else
10655   srp_setpass=no
10656 fi
10657
10658
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; }
10664
10665 cat >>confdefs.h <<\_ACEOF
10666 #define DO_SRP_SETPASS
10667 _ACEOF
10668
10669   else
10670     { echo "$as_me:$LINENO: result: disabled" >&5
10671 echo "${ECHO_T}disabled" >&6; }
10672   fi
10673
10674
10675 else
10676   { echo "$as_me:$LINENO: result: disabled" >&5
10677 echo "${ECHO_T}disabled" >&6; }
10678 fi
10679
10680
10681
10682
10683   # Check whether --enable-krb4 was given.
10684 if test "${enable_krb4+set}" = set; then
10685   enableval=$enable_krb4; krb4=$enableval
10686 else
10687   krb4=no
10688 fi
10689
10690
10691   if test "$krb4" != no; then
10692
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
10697 else
10698   ac_check_lib_save_LIBS=$LIBS
10699 LIBS="-lresolv  $LIBS"
10700 cat >conftest.$ac_ext <<_ACEOF
10701 /* confdefs.h.  */
10702 _ACEOF
10703 cat confdefs.h >>conftest.$ac_ext
10704 cat >>conftest.$ac_ext <<_ACEOF
10705 /* end confdefs.h.  */
10706
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.  */
10710 #ifdef __cplusplus
10711 extern "C"
10712 #endif
10713 char res_search ();
10714 int
10715 main ()
10716 {
10717 return res_search ();
10718   ;
10719   return 0;
10720 }
10721 _ACEOF
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;;
10727 esac
10728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10729   (eval "$ac_link") 2>conftest.er1
10730   ac_status=$?
10731   grep -v '^ *+' conftest.er1 >conftest.err
10732   rm -f conftest.er1
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
10741 else
10742   echo "$as_me: failed program was:" >&5
10743 sed 's/^/| /' conftest.$ac_ext >&5
10744
10745         ac_cv_lib_resolv_res_search=no
10746 fi
10747
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
10751 fi
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
10757 _ACEOF
10758
10759   LIBS="-lresolv $LIBS"
10760
10761 fi
10762
10763
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
10769 else
10770
10771          for krbhloc in include/kerberosIV include/kerberos include
10772          do
10773            if test -f ${krb4}/${krbhloc}/krb.h ; then
10774              cyrus_krbinclude=${krb4}/${krbhloc}
10775              break
10776            fi
10777          done
10778
10779 fi
10780 { echo "$as_me:$LINENO: result: $cyrus_krbinclude" >&5
10781 echo "${ECHO_T}$cyrus_krbinclude" >&6; }
10782
10783        if test -n "${cyrus_krbinclude}"; then
10784          CPPFLAGS="$CPPFLAGS -I${cyrus_krbinclude}"
10785        fi
10786        LDFLAGS="$LDFLAGS -L$krb4/lib"
10787     fi
10788
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
10795 fi
10796 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
10797 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
10798 else
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
10803 /* confdefs.h.  */
10804 _ACEOF
10805 cat confdefs.h >>conftest.$ac_ext
10806 cat >>conftest.$ac_ext <<_ACEOF
10807 /* end confdefs.h.  */
10808 $ac_includes_default
10809 #include <krb.h>
10810 _ACEOF
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;;
10816 esac
10817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10818   (eval "$ac_compile") 2>conftest.er1
10819   ac_status=$?
10820   grep -v '^ *+' conftest.er1 >conftest.err
10821   rm -f conftest.er1
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
10829 else
10830   echo "$as_me: failed program was:" >&5
10831 sed 's/^/| /' conftest.$ac_ext >&5
10832
10833         ac_header_compiler=no
10834 fi
10835
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; }
10839
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
10844 /* confdefs.h.  */
10845 _ACEOF
10846 cat confdefs.h >>conftest.$ac_ext
10847 cat >>conftest.$ac_ext <<_ACEOF
10848 /* end confdefs.h.  */
10849 #include <krb.h>
10850 _ACEOF
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;;
10855 esac
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10858   ac_status=$?
10859   grep -v '^ *+' conftest.er1 >conftest.err
10860   rm -f conftest.er1
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
10866        }; then
10867   ac_header_preproc=yes
10868 else
10869   echo "$as_me: failed program was:" >&5
10870 sed 's/^/| /' conftest.$ac_ext >&5
10871
10872   ac_header_preproc=no
10873 fi
10874
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; }
10878
10879 # So?  What about this header?
10880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10881   yes:no: )
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
10887     ;;
10888   no: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;}
10901
10902     ;;
10903 esac
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
10908 else
10909   ac_cv_header_krb_h=$ac_header_preproc
10910 fi
10911 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
10912 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
10913
10914 fi
10915 if test $ac_cv_header_krb_h = yes; then
10916
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
10921 else
10922   ac_check_lib_save_LIBS=$LIBS
10923 LIBS="-lcom_err  $LIBS"
10924 cat >conftest.$ac_ext <<_ACEOF
10925 /* confdefs.h.  */
10926 _ACEOF
10927 cat confdefs.h >>conftest.$ac_ext
10928 cat >>conftest.$ac_ext <<_ACEOF
10929 /* end confdefs.h.  */
10930
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.  */
10934 #ifdef __cplusplus
10935 extern "C"
10936 #endif
10937 char com_err ();
10938 int
10939 main ()
10940 {
10941 return com_err ();
10942   ;
10943   return 0;
10944 }
10945 _ACEOF
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;;
10951 esac
10952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953   (eval "$ac_link") 2>conftest.er1
10954   ac_status=$?
10955   grep -v '^ *+' conftest.er1 >conftest.err
10956   rm -f conftest.er1
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
10965 else
10966   echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10968
10969         ac_cv_lib_com_err_com_err=no
10970 fi
10971
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
10975 fi
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
10979
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
10984 else
10985   ac_check_lib_save_LIBS=$LIBS
10986 LIBS="-lkrb $LIB_DES -lcom_err $LIBS"
10987 cat >conftest.$ac_ext <<_ACEOF
10988 /* confdefs.h.  */
10989 _ACEOF
10990 cat confdefs.h >>conftest.$ac_ext
10991 cat >>conftest.$ac_ext <<_ACEOF
10992 /* end confdefs.h.  */
10993
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.  */
10997 #ifdef __cplusplus
10998 extern "C"
10999 #endif
11000 char krb_mk_priv ();
11001 int
11002 main ()
11003 {
11004 return krb_mk_priv ();
11005   ;
11006   return 0;
11007 }
11008 _ACEOF
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;;
11014 esac
11015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11016   (eval "$ac_link") 2>conftest.er1
11017   ac_status=$?
11018   grep -v '^ *+' conftest.er1 >conftest.err
11019   rm -f conftest.er1
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
11028 else
11029   echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11031
11032         ac_cv_lib_krb_krb_mk_priv=no
11033 fi
11034
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
11038 fi
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"
11043 else
11044   krb4lib=no
11045 fi
11046
11047 else
11048
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
11053 else
11054   ac_check_lib_save_LIBS=$LIBS
11055 LIBS="-lkrb $LIB_DES $LIBS"
11056 cat >conftest.$ac_ext <<_ACEOF
11057 /* confdefs.h.  */
11058 _ACEOF
11059 cat confdefs.h >>conftest.$ac_ext
11060 cat >>conftest.$ac_ext <<_ACEOF
11061 /* end confdefs.h.  */
11062
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.  */
11066 #ifdef __cplusplus
11067 extern "C"
11068 #endif
11069 char krb_mk_priv ();
11070 int
11071 main ()
11072 {
11073 return krb_mk_priv ();
11074   ;
11075   return 0;
11076 }
11077 _ACEOF
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;;
11083 esac
11084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11085   (eval "$ac_link") 2>conftest.er1
11086   ac_status=$?
11087   grep -v '^ *+' conftest.er1 >conftest.err
11088   rm -f conftest.er1
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
11097 else
11098   echo "$as_me: failed program was:" >&5
11099 sed 's/^/| /' conftest.$ac_ext >&5
11100
11101         ac_cv_lib_krb_krb_mk_priv=no
11102 fi
11103
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
11107 fi
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"
11112 else
11113   krb4lib=no
11114 fi
11115
11116 fi
11117
11118 else
11119   krb4="no"
11120 fi
11121
11122
11123
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
11129 else
11130   ac_check_lib_save_LIBS=$LIBS
11131 LIBS="-lkrb4 $LIB_DES $LIBS"
11132 cat >conftest.$ac_ext <<_ACEOF
11133 /* confdefs.h.  */
11134 _ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h.  */
11138
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.  */
11142 #ifdef __cplusplus
11143 extern "C"
11144 #endif
11145 char krb_mk_priv ();
11146 int
11147 main ()
11148 {
11149 return krb_mk_priv ();
11150   ;
11151   return 0;
11152 }
11153 _ACEOF
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;;
11159 esac
11160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11161   (eval "$ac_link") 2>conftest.er1
11162   ac_status=$?
11163   grep -v '^ *+' conftest.er1 >conftest.err
11164   rm -f conftest.er1
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
11173 else
11174   echo "$as_me: failed program was:" >&5
11175 sed 's/^/| /' conftest.$ac_ext >&5
11176
11177         ac_cv_lib_krb4_krb_mk_priv=no
11178 fi
11179
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
11183 fi
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
11188 else
11189   krb4=no
11190 fi
11191
11192       fi
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;}
11196       fi
11197     else
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;}
11200       krb4=no
11201     fi
11202   fi
11203
11204   if test "$krb4" != no; then
11205     cmu_save_LIBS="$LIBS"
11206     LIBS="$LIBS $SASL_KRB_LIB"
11207
11208 for ac_func in krb_get_err_text
11209 do
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
11215 else
11216   cat >conftest.$ac_ext <<_ACEOF
11217 /* confdefs.h.  */
11218 _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
11225
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.  */
11230
11231 #ifdef __STDC__
11232 # include <limits.h>
11233 #else
11234 # include <assert.h>
11235 #endif
11236
11237 #undef $ac_func
11238
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.  */
11242 #ifdef __cplusplus
11243 extern "C"
11244 #endif
11245 char $ac_func ();
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
11250 choke me
11251 #endif
11252
11253 int
11254 main ()
11255 {
11256 return $ac_func ();
11257   ;
11258   return 0;
11259 }
11260 _ACEOF
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;;
11266 esac
11267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11268   (eval "$ac_link") 2>conftest.er1
11269   ac_status=$?
11270   grep -v '^ *+' conftest.er1 >conftest.err
11271   rm -f conftest.er1
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"
11280 else
11281   echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11283
11284         eval "$as_ac_var=no"
11285 fi
11286
11287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11288       conftest$ac_exeext conftest.$ac_ext
11289 fi
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
11296 _ACEOF
11297
11298 fi
11299 done
11300
11301     LIBS="$cmu_save_LIBS"
11302   fi
11303
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"
11312
11313 cat >>confdefs.h <<\_ACEOF
11314 #define STATIC_KERBEROS4
11315 _ACEOF
11316
11317
11318 cat >>confdefs.h <<\_ACEOF
11319 #define HAVE_KRB
11320 _ACEOF
11321
11322     SASL_KRB_LIB="$SASL_KRB_LIB $LIB_DES $COM_ERR"
11323   else
11324     { echo "$as_me:$LINENO: result: disabled" >&5
11325 echo "${ECHO_T}disabled" >&6; }
11326   fi
11327
11328
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
11333 else
11334   cat >conftest.$ac_ext <<_ACEOF
11335 /* confdefs.h.  */
11336 _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
11343
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.  */
11348
11349 #ifdef __STDC__
11350 # include <limits.h>
11351 #else
11352 # include <assert.h>
11353 #endif
11354
11355 #undef crypt
11356
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.  */
11360 #ifdef __cplusplus
11361 extern "C"
11362 #endif
11363 char crypt ();
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
11368 choke me
11369 #endif
11370
11371 int
11372 main ()
11373 {
11374 return crypt ();
11375   ;
11376   return 0;
11377 }
11378 _ACEOF
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;;
11384 esac
11385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11386   (eval "$ac_link") 2>conftest.er1
11387   ac_status=$?
11388   grep -v '^ *+' conftest.er1 >conftest.err
11389   rm -f conftest.er1
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
11398 else
11399   echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.$ac_ext >&5
11401
11402         ac_cv_func_crypt=no
11403 fi
11404
11405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11406       conftest$ac_exeext conftest.$ac_ext
11407 fi
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
11411   cmu_have_crypt=yes
11412 else
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
11417 else
11418   ac_check_lib_save_LIBS=$LIBS
11419 LIBS="-lcrypt  $LIBS"
11420 cat >conftest.$ac_ext <<_ACEOF
11421 /* confdefs.h.  */
11422 _ACEOF
11423 cat confdefs.h >>conftest.$ac_ext
11424 cat >>conftest.$ac_ext <<_ACEOF
11425 /* end confdefs.h.  */
11426
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.  */
11430 #ifdef __cplusplus
11431 extern "C"
11432 #endif
11433 char crypt ();
11434 int
11435 main ()
11436 {
11437 return crypt ();
11438   ;
11439   return 0;
11440 }
11441 _ACEOF
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;;
11447 esac
11448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11449   (eval "$ac_link") 2>conftest.er1
11450   ac_status=$?
11451   grep -v '^ *+' conftest.er1 >conftest.err
11452   rm -f conftest.er1
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
11461 else
11462   echo "$as_me: failed program was:" >&5
11463 sed 's/^/| /' conftest.$ac_ext >&5
11464
11465         ac_cv_lib_crypt_crypt=no
11466 fi
11467
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
11471 fi
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
11476 else
11477   cmu_have_crypt=no
11478 fi
11479
11480 fi
11481
11482
11483
11484
11485
11486 # Check whether --enable-gssapi was given.
11487 if test "${enable_gssapi+set}" = set; then
11488   enableval=$enable_gssapi; gssapi=$enableval
11489 else
11490   gssapi=yes
11491 fi
11492
11493
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
11497 else
11498   gss_impl=auto
11499 fi
11500
11501
11502 if test "$gssapi" != no; then
11503   platform=
11504   case "${host}" in
11505     *-*-linux*)
11506       platform=__linux
11507       ;;
11508     *-*-hpux*)
11509       platform=__hpux
11510       ;;
11511     *-*-irix*)
11512       platform=__irix
11513       ;;
11514     *-*-solaris2*)
11515 # When should we use __sunos?
11516       platform=__solaris
11517       ;;
11518     *-*-aix*)
11519 ###_AIX
11520       platform=__aix
11521       ;;
11522     *)
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; }; }
11529       fi
11530       ;;
11531   esac
11532
11533   cmu_saved_CPPFLAGS=$CPPFLAGS
11534
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"
11542
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"
11548         fi
11549       fi
11550     fi
11551   fi
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
11557 fi
11558 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
11559 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
11560 else
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
11565 /* confdefs.h.  */
11566 _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>
11572 _ACEOF
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;;
11578 esac
11579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11580   (eval "$ac_compile") 2>conftest.er1
11581   ac_status=$?
11582   grep -v '^ *+' conftest.er1 >conftest.err
11583   rm -f conftest.er1
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
11591 else
11592   echo "$as_me: failed program was:" >&5
11593 sed 's/^/| /' conftest.$ac_ext >&5
11594
11595         ac_header_compiler=no
11596 fi
11597
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; }
11601
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
11606 /* confdefs.h.  */
11607 _ACEOF
11608 cat confdefs.h >>conftest.$ac_ext
11609 cat >>conftest.$ac_ext <<_ACEOF
11610 /* end confdefs.h.  */
11611 #include <gssapi.h>
11612 _ACEOF
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;;
11617 esac
11618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11619   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11620   ac_status=$?
11621   grep -v '^ *+' conftest.er1 >conftest.err
11622   rm -f conftest.er1
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
11628        }; then
11629   ac_header_preproc=yes
11630 else
11631   echo "$as_me: failed program was:" >&5
11632 sed 's/^/| /' conftest.$ac_ext >&5
11633
11634   ac_header_preproc=no
11635 fi
11636
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; }
11640
11641 # So?  What about this header?
11642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11643   yes:no: )
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
11649     ;;
11650   no: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;}
11663
11664     ;;
11665 esac
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
11670 else
11671   ac_cv_header_gssapi_h=$ac_header_preproc
11672 fi
11673 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
11674 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
11675
11676 fi
11677 if test $ac_cv_header_gssapi_h = yes; then
11678
11679 cat >>confdefs.h <<\_ACEOF
11680 #define HAVE_GSSAPI_H
11681 _ACEOF
11682
11683 else
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
11689 fi
11690 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5
11691 echo "${ECHO_T}$ac_cv_header_gssapi_gssapi_h" >&6; }
11692 else
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
11697 /* confdefs.h.  */
11698 _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>
11704 _ACEOF
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;;
11710 esac
11711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11712   (eval "$ac_compile") 2>conftest.er1
11713   ac_status=$?
11714   grep -v '^ *+' conftest.er1 >conftest.err
11715   rm -f conftest.er1
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
11723 else
11724   echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.$ac_ext >&5
11726
11727         ac_header_compiler=no
11728 fi
11729
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; }
11733
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
11738 /* confdefs.h.  */
11739 _ACEOF
11740 cat confdefs.h >>conftest.$ac_ext
11741 cat >>conftest.$ac_ext <<_ACEOF
11742 /* end confdefs.h.  */
11743 #include <gssapi/gssapi.h>
11744 _ACEOF
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;;
11749 esac
11750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11751   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11752   ac_status=$?
11753   grep -v '^ *+' conftest.er1 >conftest.err
11754   rm -f conftest.er1
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
11760        }; then
11761   ac_header_preproc=yes
11762 else
11763   echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.$ac_ext >&5
11765
11766   ac_header_preproc=no
11767 fi
11768
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; }
11772
11773 # So?  What about this header?
11774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11775   yes:no: )
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
11781     ;;
11782   no: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;}
11795
11796     ;;
11797 esac
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
11802 else
11803   ac_cv_header_gssapi_gssapi_h=$ac_header_preproc
11804 fi
11805 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5
11806 echo "${ECHO_T}$ac_cv_header_gssapi_gssapi_h" >&6; }
11807
11808 fi
11809 if test $ac_cv_header_gssapi_gssapi_h = yes; then
11810   :
11811 else
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
11814 fi
11815
11816
11817 fi
11818
11819
11820
11821   CPPFLAGS=$cmu_saved_CPPFLAGS
11822
11823 fi
11824
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/)
11831   #
11832   # The choice is reflected in GSSAPIBASE_LIBS
11833
11834
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
11839 else
11840   ac_check_lib_save_LIBS=$LIBS
11841 LIBS="-lresolv  $LIBS"
11842 cat >conftest.$ac_ext <<_ACEOF
11843 /* confdefs.h.  */
11844 _ACEOF
11845 cat confdefs.h >>conftest.$ac_ext
11846 cat >>conftest.$ac_ext <<_ACEOF
11847 /* end confdefs.h.  */
11848
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.  */
11852 #ifdef __cplusplus
11853 extern "C"
11854 #endif
11855 char res_search ();
11856 int
11857 main ()
11858 {
11859 return res_search ();
11860   ;
11861   return 0;
11862 }
11863 _ACEOF
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;;
11869 esac
11870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11871   (eval "$ac_link") 2>conftest.er1
11872   ac_status=$?
11873   grep -v '^ *+' conftest.er1 >conftest.err
11874   rm -f conftest.er1
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
11883 else
11884   echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.$ac_ext >&5
11886
11887         ac_cv_lib_resolv_res_search=no
11888 fi
11889
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
11893 fi
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
11899 _ACEOF
11900
11901   LIBS="-lresolv $LIBS"
11902
11903 fi
11904
11905   if test -d ${gssapi}; then
11906      gssapi_dir="${gssapi}/lib"
11907      GSSAPIBASE_LIBS="-L$gssapi_dir"
11908      GSSAPIBASE_STATIC_LIBS="-L$gssapi_dir"
11909   else
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"
11913   fi
11914
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.
11919
11920   if test "$gss_impl" = "auto" -o "$gss_impl" = "heimdal"; then
11921     gss_failed=0
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
11926 else
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
11930 /* confdefs.h.  */
11931 _ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h.  */
11935
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.  */
11939 #ifdef __cplusplus
11940 extern "C"
11941 #endif
11942 char gss_unwrap ();
11943 int
11944 main ()
11945 {
11946 return gss_unwrap ();
11947   ;
11948   return 0;
11949 }
11950 _ACEOF
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;;
11956 esac
11957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11958   (eval "$ac_link") 2>conftest.er1
11959   ac_status=$?
11960   grep -v '^ *+' conftest.er1 >conftest.err
11961   rm -f conftest.er1
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
11970 else
11971   echo "$as_me: failed program was:" >&5
11972 sed 's/^/| /' conftest.$ac_ext >&5
11973
11974         ac_cv_lib_gssapi_gss_unwrap=no
11975 fi
11976
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
11980 fi
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
11984   gss_impl="heimdal"
11985 else
11986   gss_failed=1
11987 fi
11988
11989     if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
11990       gss_impl="failed"
11991     fi
11992   fi
11993
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
12000 else
12001   ac_check_lib_save_LIBS=$LIBS
12002 LIBS="-lkrb5support ${LIB_SOCKET} $LIBS"
12003 cat >conftest.$ac_ext <<_ACEOF
12004 /* confdefs.h.  */
12005 _ACEOF
12006 cat confdefs.h >>conftest.$ac_ext
12007 cat >>conftest.$ac_ext <<_ACEOF
12008 /* end confdefs.h.  */
12009
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.  */
12013 #ifdef __cplusplus
12014 extern "C"
12015 #endif
12016 char krb5int_getspecific ();
12017 int
12018 main ()
12019 {
12020 return krb5int_getspecific ();
12021   ;
12022   return 0;
12023 }
12024 _ACEOF
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;;
12030 esac
12031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12032   (eval "$ac_link") 2>conftest.er1
12033   ac_status=$?
12034   grep -v '^ *+' conftest.er1 >conftest.err
12035   rm -f conftest.er1
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
12044 else
12045   echo "$as_me: failed program was:" >&5
12046 sed 's/^/| /' conftest.$ac_ext >&5
12047
12048         ac_cv_lib_krb5support_krb5int_getspecific=no
12049 fi
12050
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
12054 fi
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
12059 fi
12060
12061
12062     gss_failed=0
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
12067 else
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
12071 /* confdefs.h.  */
12072 _ACEOF
12073 cat confdefs.h >>conftest.$ac_ext
12074 cat >>conftest.$ac_ext <<_ACEOF
12075 /* end confdefs.h.  */
12076
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.  */
12080 #ifdef __cplusplus
12081 extern "C"
12082 #endif
12083 char gss_unwrap ();
12084 int
12085 main ()
12086 {
12087 return gss_unwrap ();
12088   ;
12089   return 0;
12090 }
12091 _ACEOF
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;;
12097 esac
12098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12099   (eval "$ac_link") 2>conftest.er1
12100   ac_status=$?
12101   grep -v '^ *+' conftest.er1 >conftest.err
12102   rm -f conftest.er1
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
12111 else
12112   echo "$as_me: failed program was:" >&5
12113 sed 's/^/| /' conftest.$ac_ext >&5
12114
12115         ac_cv_lib_gssapi_krb5_gss_unwrap=no
12116 fi
12117
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
12121 fi
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
12125   gss_impl="mit"
12126 else
12127   gss_failed=1
12128 fi
12129
12130     if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
12131       gss_impl="failed"
12132     fi
12133   fi
12134
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
12137
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"
12143     fi
12144     CPPFLAGS="$CPPFLAGS -D$platform"
12145     if test -d "${gssapi}/appsec-sdk/include"; then
12146       CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
12147     fi
12148
12149     gss_failed=0
12150
12151 # Check for CyberSafe with two libraries first, than fall back to a single
12152 # library (older CyberSafe)
12153
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
12159 else
12160   ac_check_lib_save_LIBS=$LIBS
12161 LIBS="-lgss ${GSSAPIBASE_LIBS} -lgss -lcstbk5 $LIBS"
12162 cat >conftest.$ac_ext <<_ACEOF
12163 /* confdefs.h.  */
12164 _ACEOF
12165 cat confdefs.h >>conftest.$ac_ext
12166 cat >>conftest.$ac_ext <<_ACEOF
12167 /* end confdefs.h.  */
12168
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.  */
12172 #ifdef __cplusplus
12173 extern "C"
12174 #endif
12175 char csf_gss_acq_user ();
12176 int
12177 main ()
12178 {
12179 return csf_gss_acq_user ();
12180   ;
12181   return 0;
12182 }
12183 _ACEOF
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;;
12189 esac
12190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12191   (eval "$ac_link") 2>conftest.er1
12192   ac_status=$?
12193   grep -v '^ *+' conftest.er1 >conftest.err
12194   rm -f conftest.er1
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
12203 else
12204   echo "$as_me: failed program was:" >&5
12205 sed 's/^/| /' conftest.$ac_ext >&5
12206
12207         ac_cv_lib_gss_csf_gss_acq_user=no
12208 fi
12209
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
12213 fi
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"
12218 else
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
12224 else
12225   ac_check_lib_save_LIBS=$LIBS
12226 LIBS="-lgss $GSSAPIBASE_LIBS -lgss $LIBS"
12227 cat >conftest.$ac_ext <<_ACEOF
12228 /* confdefs.h.  */
12229 _ACEOF
12230 cat confdefs.h >>conftest.$ac_ext
12231 cat >>conftest.$ac_ext <<_ACEOF
12232 /* end confdefs.h.  */
12233
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.  */
12237 #ifdef __cplusplus
12238 extern "C"
12239 #endif
12240 char csf_gss_acq_user ();
12241 int
12242 main ()
12243 {
12244 return csf_gss_acq_user ();
12245   ;
12246   return 0;
12247 }
12248 _ACEOF
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;;
12254 esac
12255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12256   (eval "$ac_link") 2>conftest.er1
12257   ac_status=$?
12258   grep -v '^ *+' conftest.er1 >conftest.err
12259   rm -f conftest.er1
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
12268 else
12269   echo "$as_me: failed program was:" >&5
12270 sed 's/^/| /' conftest.$ac_ext >&5
12271
12272         ac_cv_lib_gss_csf_gss_acq_user=no
12273 fi
12274
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
12278 fi
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"
12283 else
12284   gss_failed=1
12285 fi
12286
12287 fi
12288
12289
12290     if test "$gss_failed" = "1"; then
12291 # Restore variables
12292       GSSAPIBASE_LIBS=$cmu_saved_GSSAPIBASE_LIBS
12293       CPPFLAGS=$cmu_saved_CPPFLAGS
12294
12295       if test "$gss_impl" != "auto"; then
12296         gss_impl="failed"
12297       fi
12298     fi
12299   fi
12300
12301   if test "$gss_impl" = "auto" -o "$gss_impl" = "seam"; then
12302     gss_failed=0
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
12307 else
12308   ac_check_lib_save_LIBS=$LIBS
12309 LIBS="-lgss -lgss $LIBS"
12310 cat >conftest.$ac_ext <<_ACEOF
12311 /* confdefs.h.  */
12312 _ACEOF
12313 cat confdefs.h >>conftest.$ac_ext
12314 cat >>conftest.$ac_ext <<_ACEOF
12315 /* end confdefs.h.  */
12316
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.  */
12320 #ifdef __cplusplus
12321 extern "C"
12322 #endif
12323 char gss_unwrap ();
12324 int
12325 main ()
12326 {
12327 return gss_unwrap ();
12328   ;
12329   return 0;
12330 }
12331 _ACEOF
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;;
12337 esac
12338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12339   (eval "$ac_link") 2>conftest.er1
12340   ac_status=$?
12341   grep -v '^ *+' conftest.er1 >conftest.err
12342   rm -f conftest.er1
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
12351 else
12352   echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12354
12355         ac_cv_lib_gss_gss_unwrap=no
12356 fi
12357
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
12361 fi
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
12365   gss_impl="seam"
12366 else
12367   gss_failed=1
12368 fi
12369
12370     if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
12371       gss_impl="failed"
12372     fi
12373   fi
12374
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
12398     gssapi="no"
12399     GSSAPIBASE_LIBS=
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;}
12403   else
12404     gssapi="no"
12405     GSSAPIBASE_LIBS=
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;}
12409   fi
12410 fi
12411
12412 #
12413 # Cybersafe defines both GSS_C_NT_HOSTBASED_SERVICE and GSS_C_NT_USER_NAME
12414 # in gssapi\rfckrb5.h
12415 #
12416 if test "$gssapi" != "no"; then
12417   if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
12418     cat >conftest.$ac_ext <<_ACEOF
12419 /* confdefs.h.  */
12420 _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
12427                   #endif
12428 _ACEOF
12429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12430   $EGREP "hostbased_service_gss_nt_yes" >/dev/null 2>&1; then
12431
12432 cat >>confdefs.h <<\_ACEOF
12433 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
12434 _ACEOF
12435
12436 else
12437   { echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5
12438 echo "$as_me: WARNING: Cybersafe define not found" >&2;}
12439 fi
12440 rm -f -r conftest*
12441
12442
12443   elif test "$ac_cv_header_gssapi_h" = "yes"; then
12444     cat >conftest.$ac_ext <<_ACEOF
12445 /* confdefs.h.  */
12446 _ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h.  */
12450 #include <gssapi.h>
12451
12452 _ACEOF
12453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12454   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
12455
12456 cat >>confdefs.h <<\_ACEOF
12457 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
12458 _ACEOF
12459
12460 fi
12461 rm -f -r conftest*
12462
12463   elif test "$ac_cv_header_gssapi_gssapi_h"; then
12464     cat >conftest.$ac_ext <<_ACEOF
12465 /* confdefs.h.  */
12466 _ACEOF
12467 cat confdefs.h >>conftest.$ac_ext
12468 cat >>conftest.$ac_ext <<_ACEOF
12469 /* end confdefs.h.  */
12470 #include <gssapi/gssapi.h>
12471
12472 _ACEOF
12473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12474   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
12475
12476 cat >>confdefs.h <<\_ACEOF
12477 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
12478 _ACEOF
12479
12480 fi
12481 rm -f -r conftest*
12482
12483   fi
12484
12485   if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
12486     cat >conftest.$ac_ext <<_ACEOF
12487 /* confdefs.h.  */
12488 _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
12495                   #endif
12496 _ACEOF
12497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12498   $EGREP "user_name_yes_gss_nt" >/dev/null 2>&1; then
12499
12500 cat >>confdefs.h <<\_ACEOF
12501 #define HAVE_GSS_C_NT_USER_NAME
12502 _ACEOF
12503
12504 else
12505   { echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5
12506 echo "$as_me: WARNING: Cybersafe define not found" >&2;}
12507 fi
12508 rm -f -r conftest*
12509
12510   elif test "$ac_cv_header_gssapi_h" = "yes"; then
12511     cat >conftest.$ac_ext <<_ACEOF
12512 /* confdefs.h.  */
12513 _ACEOF
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h.  */
12517 #include <gssapi.h>
12518
12519 _ACEOF
12520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12521   $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then
12522
12523 cat >>confdefs.h <<\_ACEOF
12524 #define HAVE_GSS_C_NT_USER_NAME
12525 _ACEOF
12526
12527 fi
12528 rm -f -r conftest*
12529
12530   elif test "$ac_cv_header_gssapi_gssapi_h"; then
12531     cat >conftest.$ac_ext <<_ACEOF
12532 /* confdefs.h.  */
12533 _ACEOF
12534 cat confdefs.h >>conftest.$ac_ext
12535 cat >>conftest.$ac_ext <<_ACEOF
12536 /* end confdefs.h.  */
12537 #include <gssapi/gssapi.h>
12538
12539 _ACEOF
12540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12541   $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then
12542
12543 cat >>confdefs.h <<\_ACEOF
12544 #define HAVE_GSS_C_NT_USER_NAME
12545 _ACEOF
12546
12547 fi
12548 rm -f -r conftest*
12549
12550   fi
12551 fi
12552
12553 GSSAPI_LIBS=""
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
12563 else
12564   ac_check_lib_save_LIBS=$LIBS
12565 LIBS="-lresolv  $LIBS"
12566 cat >conftest.$ac_ext <<_ACEOF
12567 /* confdefs.h.  */
12568 _ACEOF
12569 cat confdefs.h >>conftest.$ac_ext
12570 cat >>conftest.$ac_ext <<_ACEOF
12571 /* end confdefs.h.  */
12572
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.  */
12576 #ifdef __cplusplus
12577 extern "C"
12578 #endif
12579 char res_search ();
12580 int
12581 main ()
12582 {
12583 return res_search ();
12584   ;
12585   return 0;
12586 }
12587 _ACEOF
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;;
12593 esac
12594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595   (eval "$ac_link") 2>conftest.er1
12596   ac_status=$?
12597   grep -v '^ *+' conftest.er1 >conftest.err
12598   rm -f conftest.er1
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
12607 else
12608   echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12610
12611         ac_cv_lib_resolv_res_search=no
12612 fi
12613
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
12617 fi
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"
12622 fi
12623
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"
12627
12628   cmu_save_LIBS="$LIBS"
12629   LIBS="$LIBS $GSSAPIBASE_LIBS"
12630
12631 for ac_func in gsskrb5_register_acceptor_identity
12632 do
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
12638 else
12639   cat >conftest.$ac_ext <<_ACEOF
12640 /* confdefs.h.  */
12641 _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
12648
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.  */
12653
12654 #ifdef __STDC__
12655 # include <limits.h>
12656 #else
12657 # include <assert.h>
12658 #endif
12659
12660 #undef $ac_func
12661
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.  */
12665 #ifdef __cplusplus
12666 extern "C"
12667 #endif
12668 char $ac_func ();
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
12673 choke me
12674 #endif
12675
12676 int
12677 main ()
12678 {
12679 return $ac_func ();
12680   ;
12681   return 0;
12682 }
12683 _ACEOF
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;;
12689 esac
12690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12691   (eval "$ac_link") 2>conftest.er1
12692   ac_status=$?
12693   grep -v '^ *+' conftest.er1 >conftest.err
12694   rm -f conftest.er1
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"
12703 else
12704   echo "$as_me: failed program was:" >&5
12705 sed 's/^/| /' conftest.$ac_ext >&5
12706
12707         eval "$as_ac_var=no"
12708 fi
12709
12710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12711       conftest$ac_exeext conftest.$ac_ext
12712 fi
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
12719 _ACEOF
12720
12721 fi
12722 done
12723
12724   LIBS="$cmu_save_LIBS"
12725 else
12726   { echo "$as_me:$LINENO: result: disabled" >&5
12727 echo "${ECHO_T}disabled" >&6; }
12728 fi
12729
12730
12731
12732
12733 if test "$gssapi" != "no"; then
12734
12735 cat >>confdefs.h <<\_ACEOF
12736 #define STATIC_GSSAPIV2
12737 _ACEOF
12738
12739   mutex_default="no"
12740   if test "$gss_impl" = "mit"; then
12741      mutex_default="yes"
12742   fi
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
12748 else
12749   use_gss_mutexes=$mutex_default
12750 fi
12751
12752   if test $use_gss_mutexes = "yes"; then
12753
12754 cat >>confdefs.h <<\_ACEOF
12755 #define GSS_USE_MUTEXES
12756 _ACEOF
12757
12758   fi
12759   { echo "$as_me:$LINENO: result: $use_gss_mutexes" >&5
12760 echo "${ECHO_T}$use_gss_mutexes" >&6; }
12761 fi
12762
12763
12764
12765
12766  # Check whether --enable-plain was given.
12767 if test "${enable_plain+set}" = set; then
12768   enableval=$enable_plain; plain=$enableval
12769 else
12770   plain=yes
12771 fi
12772
12773
12774  PLAIN_LIBS=""
12775  if test "$plain" != no; then
12776     if test "$cmu_have_crypt" = yes; then
12777     PLAIN_LIBS=$LIB_CRYPT
12778   fi
12779  fi
12780
12781
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"
12791
12792 cat >>confdefs.h <<\_ACEOF
12793 #define STATIC_PLAIN
12794 _ACEOF
12795
12796   fi
12797  else
12798   { echo "$as_me:$LINENO: result: disabled" >&5
12799 echo "${ECHO_T}disabled" >&6; }
12800  fi
12801
12802
12803 # Check whether --enable-anon was given.
12804 if test "${enable_anon+set}" = set; then
12805   enableval=$enable_anon; anon=$enableval
12806 else
12807   anon=yes
12808 fi
12809
12810
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"
12820
12821 cat >>confdefs.h <<\_ACEOF
12822 #define STATIC_ANONYMOUS
12823 _ACEOF
12824
12825   fi
12826 else
12827   { echo "$as_me:$LINENO: result: disabled" >&5
12828 echo "${ECHO_T}disabled" >&6; }
12829 fi
12830
12831 # Check whether --enable-login was given.
12832 if test "${enable_login+set}" = set; then
12833   enableval=$enable_login; login=$enableval
12834 else
12835   login=no
12836 fi
12837
12838
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"
12848
12849 cat >>confdefs.h <<\_ACEOF
12850 #define STATIC_LOGIN
12851 _ACEOF
12852
12853   fi
12854 else
12855   { echo "$as_me:$LINENO: result: disabled" >&5
12856 echo "${ECHO_T}disabled" >&6; }
12857 fi
12858
12859 # Check whether --enable-ntlm was given.
12860 if test "${enable_ntlm+set}" = set; then
12861   enableval=$enable_ntlm; ntlm=$enableval
12862 else
12863   ntlm=no
12864 fi
12865
12866
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;}
12870   ntlm=no
12871 fi
12872
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"
12879
12880
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"
12885
12886 cat >>confdefs.h <<\_ACEOF
12887 #define STATIC_NTLM
12888 _ACEOF
12889
12890   fi
12891 else
12892   { echo "$as_me:$LINENO: result: disabled" >&5
12893 echo "${ECHO_T}disabled" >&6; }
12894 fi
12895
12896 # Check whether --enable-passdss was given.
12897 if test "${enable_passdss+set}" = set; then
12898   enableval=$enable_passdss; passdss=$enableval
12899 else
12900   passdss=no
12901 fi
12902
12903
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;}
12907   passdss=no
12908 fi
12909
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"
12916
12917
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"
12922
12923 cat >>confdefs.h <<\_ACEOF
12924 #define STATIC_PASSDSS
12925 _ACEOF
12926
12927   fi
12928 else
12929   { echo "$as_me:$LINENO: result: disabled" >&5
12930 echo "${ECHO_T}disabled" >&6; }
12931 fi
12932
12933
12934 # make the option show up so people don't whine that it is only in the
12935 # saslauthd configure script --help
12936
12937 # Check whether --with-ldap was given.
12938 if test "${with_ldap+set}" = set; then
12939   withval=$with_ldap;
12940 else
12941   with_ldap=no
12942 fi
12943
12944
12945
12946
12947 # Check whether --enable-sql was given.
12948 if test "${enable_sql+set}" = set; then
12949   enableval=$enable_sql; sql=$enableval
12950 else
12951   sql=no
12952 fi
12953
12954
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"
12964
12965 cat >>confdefs.h <<\_ACEOF
12966 #define STATIC_SQL
12967 _ACEOF
12968
12969   fi
12970 else
12971   { echo "$as_me:$LINENO: result: disabled" >&5
12972 echo "${ECHO_T}disabled" >&6; }
12973 fi
12974
12975
12976 # Check whether --with-mysql was given.
12977 if test "${with_mysql+set}" = set; then
12978   withval=$with_mysql; with_mysql=$withval
12979 else
12980   with_mysql=$sql
12981 fi
12982
12983
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
12989   do
12990     if test -f ${prefix}/${mysqlloc}/libmysqlclient.a; then
12991       with_mysql="${prefix}"
12992       break
12993     elif test -f /usr/local/${mysqlloc}/libmysqlclient.a; then
12994       with_mysql="/usr/local"
12995       break
12996     elif test -f /usr/${mysqlloc}/libmysqlclient.a; then
12997       with_mysql="/usr"
12998       break
12999     fi
13000   done
13001 fi
13002
13003 LIB_MYSQL=""
13004
13005 case "$with_mysql" in
13006     no) true;;
13007     notfound) { echo "$as_me:$LINENO: WARNING: MySQL Library not found" >&5
13008 echo "$as_me: WARNING: MySQL Library not found" >&2;}; true;;
13009     *)
13010      if test -d ${with_mysql}/lib/mysql; then
13011
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}"
13015   else
13016         LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/lib/mysql"
13017   fi
13018
13019      elif test -d ${with_mysql}/mysql/lib; then
13020
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}"
13024   else
13025         LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/mysql/lib"
13026   fi
13027
13028      elif test -d ${with_mysql}/lib; then
13029
13030   # this is CMU ADD LIBPATH TO
13031   if test "$andrew_runpath_switch" = "none" ; then
13032         LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL}"
13033   else
13034         LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/lib"
13035   fi
13036
13037      else
13038
13039   # this is CMU ADD LIBPATH TO
13040   if test "$andrew_runpath_switch" = "none" ; then
13041         LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL}"
13042   else
13043         LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}"
13044   fi
13045
13046      fi
13047
13048      LIB_MYSQL_DIR=$LIB_MYSQL
13049      LIB_MYSQL="$LIB_MYSQL -lmysqlclient"
13050
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"
13057      else
13058          CPPFLAGS="${CPPFLAGS} -I${with_mysql}"
13059      fi
13060
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
13067 else
13068   ac_check_lib_save_LIBS=$LIBS
13069 LIBS="-lmysqlclient  $LIBS"
13070 cat >conftest.$ac_ext <<_ACEOF
13071 /* confdefs.h.  */
13072 _ACEOF
13073 cat confdefs.h >>conftest.$ac_ext
13074 cat >>conftest.$ac_ext <<_ACEOF
13075 /* end confdefs.h.  */
13076
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.  */
13080 #ifdef __cplusplus
13081 extern "C"
13082 #endif
13083 char mysql_select_db ();
13084 int
13085 main ()
13086 {
13087 return mysql_select_db ();
13088   ;
13089   return 0;
13090 }
13091 _ACEOF
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;;
13097 esac
13098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13099   (eval "$ac_link") 2>conftest.er1
13100   ac_status=$?
13101   grep -v '^ *+' conftest.er1 >conftest.err
13102   rm -f conftest.er1
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
13111 else
13112   echo "$as_me: failed program was:" >&5
13113 sed 's/^/| /' conftest.$ac_ext >&5
13114
13115         ac_cv_lib_mysqlclient_mysql_select_db=no
13116 fi
13117
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
13121 fi
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
13125
13126 cat >>confdefs.h <<\_ACEOF
13127 #define HAVE_MYSQL
13128 _ACEOF
13129
13130 else
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;}
13133             with_mysql=no
13134 fi
13135
13136        LDFLAGS=$save_LDFLAGS;;
13137
13138 esac
13139
13140
13141
13142 # Check whether --with-pgsql was given.
13143 if test "${with_pgsql+set}" = set; then
13144   withval=$with_pgsql; with_pgsql=$withval
13145 else
13146   with_pgsql=$sql
13147 fi
13148
13149
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
13155   do
13156     if test -f ${prefix}/${pgsqlloc}/libpq.a; then
13157       with_pgsql="${prefix}"
13158       break
13159     elif test -f /usr/local/${pgsqlloc}/libpq.a; then
13160       with_pgsql="/usr/local"
13161       break
13162     elif test -f /usr/${pgsqlloc}/libpq.a; then
13163       with_pgsql="/usr"
13164       break
13165     fi
13166   done
13167 fi
13168
13169 LIB_PGSQL=""
13170
13171 case "$with_pgsql" in
13172     no) true;;
13173     notfound) { echo "$as_me:$LINENO: WARNING: PostgreSQL Library not found" >&5
13174 echo "$as_me: WARNING: PostgreSQL Library not found" >&2;}; true;;
13175     *)
13176      if test -d ${with_pgsql}/lib/pgsql; then
13177
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}"
13181   else
13182         LIB_PGSQL="-L${with_pgsql}/lib/pgsql ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/lib/pgsql"
13183   fi
13184
13185      elif test -d ${with_pgsql}/pgsql/lib; then
13186
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}"
13190   else
13191         LIB_PGSQL="-L${with_pgsql}/pgsql/lib ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/pgsql/lib"
13192   fi
13193
13194      elif test -d ${with_pgsql}/lib; then
13195
13196   # this is CMU ADD LIBPATH TO
13197   if test "$andrew_runpath_switch" = "none" ; then
13198         LIB_PGSQL="-L${with_pgsql}/lib ${LIB_PGSQL}"
13199   else
13200         LIB_PGSQL="-L${with_pgsql}/lib ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/lib"
13201   fi
13202
13203      else
13204
13205   # this is CMU ADD LIBPATH TO
13206   if test "$andrew_runpath_switch" = "none" ; then
13207         LIB_PGSQL="-L${with_pgsql} ${LIB_PGSQL}"
13208   else
13209         LIB_PGSQL="-L${with_pgsql} ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}"
13210   fi
13211
13212      fi
13213
13214      LIB_PGSQL_DIR=$LIB_PGSQL
13215      LIB_PGSQL="$LIB_PGSQL -lpq"
13216
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"
13223      else
13224          CPPFLAGS="${CPPFLAGS} -I${with_pgsql}"
13225      fi
13226
13227
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
13234 else
13235   ac_check_lib_save_LIBS=$LIBS
13236 LIBS="-lpq  $LIBS"
13237 cat >conftest.$ac_ext <<_ACEOF
13238 /* confdefs.h.  */
13239 _ACEOF
13240 cat confdefs.h >>conftest.$ac_ext
13241 cat >>conftest.$ac_ext <<_ACEOF
13242 /* end confdefs.h.  */
13243
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.  */
13247 #ifdef __cplusplus
13248 extern "C"
13249 #endif
13250 char PQsetdbLogin ();
13251 int
13252 main ()
13253 {
13254 return PQsetdbLogin ();
13255   ;
13256   return 0;
13257 }
13258 _ACEOF
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;;
13264 esac
13265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13266   (eval "$ac_link") 2>conftest.er1
13267   ac_status=$?
13268   grep -v '^ *+' conftest.er1 >conftest.err
13269   rm -f conftest.er1
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
13278 else
13279   echo "$as_me: failed program was:" >&5
13280 sed 's/^/| /' conftest.$ac_ext >&5
13281
13282         ac_cv_lib_pq_PQsetdbLogin=no
13283 fi
13284
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
13288 fi
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
13292
13293 cat >>confdefs.h <<\_ACEOF
13294 #define HAVE_PGSQL
13295 _ACEOF
13296
13297 else
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;}
13300             with_pgsql=no
13301 fi
13302
13303        LDFLAGS=$save_LDFLAGS;;
13304
13305 esac
13306
13307
13308
13309 # Check whether --with-sqlite was given.
13310 if test "${with_sqlite+set}" = set; then
13311   withval=$with_sqlite; with_sqlite=$withval
13312 else
13313   with_sqlite=$sql
13314 fi
13315
13316
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
13322   do
13323     if test -f ${prefix}/${sqliteloc}/libsqlite.a; then
13324       with_sqlite="${prefix}"
13325       break
13326     elif test -f /usr/local/${sqliteloc}/libsqlite.a; then
13327       with_sqlite="/usr/local"
13328       break
13329     elif test -f /usr/${sqliteloc}/libsqlite.a; then
13330       with_sqlite="/usr"
13331       break
13332     fi
13333   done
13334 fi
13335
13336 LIB_SQLITE=""
13337
13338 case "$with_sqlite" in
13339     no) true;;
13340     notfound) { echo "$as_me:$LINENO: WARNING: SQLite Library not found" >&5
13341 echo "$as_me: WARNING: SQLite Library not found" >&2;}; true;;
13342     *)
13343      if test -d ${with_sqlite}/lib; then
13344          LIB_SQLITE="-L${with_sqlite}/lib -R${with_sqlite}/lib"
13345      else
13346          LIB_SQLITE="-L${with_sqlite} -R${with_sqlite}"
13347      fi
13348
13349      LIB_SQLITE_DIR=$LIB_SQLITE
13350      LIB_SQLITE="$LIB_SQLITE -lsqlite"
13351
13352      if test -d ${with_sqlite}/include; then
13353          CPPFLAGS="${CPPFLAGS} -I${with_sqlite}/include"
13354      else
13355          CPPFLAGS="${CPPFLAGS} -I${with_sqlite}"
13356      fi
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
13361 else
13362   ac_check_lib_save_LIBS=$LIBS
13363 LIBS="-lsqlite $LIB_SQLITE_DIR $LIBS"
13364 cat >conftest.$ac_ext <<_ACEOF
13365 /* confdefs.h.  */
13366 _ACEOF
13367 cat confdefs.h >>conftest.$ac_ext
13368 cat >>conftest.$ac_ext <<_ACEOF
13369 /* end confdefs.h.  */
13370
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.  */
13374 #ifdef __cplusplus
13375 extern "C"
13376 #endif
13377 char sqlite_open ();
13378 int
13379 main ()
13380 {
13381 return sqlite_open ();
13382   ;
13383   return 0;
13384 }
13385 _ACEOF
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;;
13391 esac
13392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393   (eval "$ac_link") 2>conftest.er1
13394   ac_status=$?
13395   grep -v '^ *+' conftest.er1 >conftest.err
13396   rm -f conftest.er1
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
13405 else
13406   echo "$as_me: failed program was:" >&5
13407 sed 's/^/| /' conftest.$ac_ext >&5
13408
13409         ac_cv_lib_sqlite_sqlite_open=no
13410 fi
13411
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
13415 fi
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
13419
13420 cat >>confdefs.h <<\_ACEOF
13421 #define HAVE_SQLITE
13422 _ACEOF
13423
13424 else
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;}
13427             with_sqlite=no
13428 fi
13429 ;;
13430
13431 esac
13432
13433
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; }; }
13438 fi
13439
13440 if test "$enable_shared" = yes; then
13441
13442 cat >>confdefs.h <<\_ACEOF
13443 #define DO_DLOPEN
13444 _ACEOF
13445
13446 fi
13447
13448 # Check whether --enable-ldapdb was given.
13449 if test "${enable_ldapdb+set}" = set; then
13450   enableval=$enable_ldapdb; ldapdb=$enableval
13451 else
13452   ldapdb=no
13453 fi
13454
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; }
13460
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; }; }
13465     fi
13466
13467     save_CPPFLAGS=$CPPFLAGS
13468     save_LDFLAGS=$LDFLAGS
13469
13470     if test -d $with_ldap; then
13471         CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
13472
13473   # this is CMU ADD LIBPATH
13474   if test "$andrew_runpath_switch" = "none" ; then
13475         LDFLAGS="-L${with_ldap}/lib ${LDFLAGS}"
13476   else
13477         LDFLAGS="-L${with_ldap}/lib $andrew_runpath_switch${with_ldap}/lib ${LDFLAGS}"
13478   fi
13479
13480     fi
13481
13482
13483
13484 for ac_header in ldap.h lber.h
13485 do
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
13492 fi
13493 ac_res=`eval echo '${'$as_ac_Header'}'`
13494                { echo "$as_me:$LINENO: result: $ac_res" >&5
13495 echo "${ECHO_T}$ac_res" >&6; }
13496 else
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
13501 /* confdefs.h.  */
13502 _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>
13508 _ACEOF
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;;
13514 esac
13515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13516   (eval "$ac_compile") 2>conftest.er1
13517   ac_status=$?
13518   grep -v '^ *+' conftest.er1 >conftest.err
13519   rm -f conftest.er1
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
13527 else
13528   echo "$as_me: failed program was:" >&5
13529 sed 's/^/| /' conftest.$ac_ext >&5
13530
13531         ac_header_compiler=no
13532 fi
13533
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; }
13537
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
13542 /* confdefs.h.  */
13543 _ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h.  */
13547 #include <$ac_header>
13548 _ACEOF
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;;
13553 esac
13554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13555   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13556   ac_status=$?
13557   grep -v '^ *+' conftest.er1 >conftest.err
13558   rm -f conftest.er1
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
13564        }; then
13565   ac_header_preproc=yes
13566 else
13567   echo "$as_me: failed program was:" >&5
13568 sed 's/^/| /' conftest.$ac_ext >&5
13569
13570   ac_header_preproc=no
13571 fi
13572
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; }
13576
13577 # So?  What about this header?
13578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13579   yes:no: )
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
13585     ;;
13586   no: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;}
13599
13600     ;;
13601 esac
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
13606 else
13607   eval "$as_ac_Header=\$ac_header_preproc"
13608 fi
13609 ac_res=`eval echo '${'$as_ac_Header'}'`
13610                { echo "$as_me:$LINENO: result: $ac_res" >&5
13611 echo "${ECHO_T}$ac_res" >&6; }
13612
13613 fi
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
13617 _ACEOF
13618
13619 fi
13620
13621 done
13622
13623
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
13629 else
13630
13631     cat >conftest.$ac_ext <<_ACEOF
13632 /* confdefs.h.  */
13633 _ACEOF
13634 cat confdefs.h >>conftest.$ac_ext
13635 cat >>conftest.$ac_ext <<_ACEOF
13636 /* end confdefs.h.  */
13637
13638 #include <ldap.h>
13639
13640 #ifdef LDAP_API_FEATURE_X_OPENLDAP
13641 char *__openldap_api = LDAP_API_FEATURE_X_OPENLDAP;
13642 #endif
13643
13644 _ACEOF
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
13648 else
13649   cmu_cv_openldap_api=no
13650 fi
13651 rm -f -r conftest*
13652
13653 fi
13654 { echo "$as_me:$LINENO: result: $cmu_cv_openldap_api" >&5
13655 echo "${ECHO_T}$cmu_cv_openldap_api" >&6; }
13656
13657
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
13663 else
13664   ac_check_lib_save_LIBS=$LIBS
13665 LIBS="-lldap -llber $LIBS"
13666 cat >conftest.$ac_ext <<_ACEOF
13667 /* confdefs.h.  */
13668 _ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h.  */
13672
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.  */
13676 #ifdef __cplusplus
13677 extern "C"
13678 #endif
13679 char ldap_initialize ();
13680 int
13681 main ()
13682 {
13683 return ldap_initialize ();
13684   ;
13685   return 0;
13686 }
13687 _ACEOF
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;;
13693 esac
13694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13695   (eval "$ac_link") 2>conftest.er1
13696   ac_status=$?
13697   grep -v '^ *+' conftest.er1 >conftest.err
13698   rm -f conftest.er1
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
13707 else
13708   echo "$as_me: failed program was:" >&5
13709 sed 's/^/| /' conftest.$ac_ext >&5
13710
13711         ac_cv_lib_ldap_ldap_initialize=no
13712 fi
13713
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
13717 fi
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"
13722 else
13723    cmu_link_openldap=no
13724 fi
13725
13726         fi
13727     fi
13728
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; }; }
13733     else
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
13738 else
13739
13740     cat >conftest.$ac_ext <<_ACEOF
13741 /* confdefs.h.  */
13742 _ACEOF
13743 cat confdefs.h >>conftest.$ac_ext
13744 cat >>conftest.$ac_ext <<_ACEOF
13745 /* end confdefs.h.  */
13746
13747 #include <ldap.h>
13748
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"
13756 #endif
13757
13758 _ACEOF
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
13762 else
13763   cmu_cv_openldap_compat=no
13764 fi
13765 rm -f -r conftest*
13766
13767 fi
13768 { echo "$as_me:$LINENO: result: $cmu_cv_openldap_compat" >&5
13769 echo "${ECHO_T}$cmu_cv_openldap_compat" >&6; }
13770
13771
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; }; }
13776         else
13777             LIB_LDAP=$cmu_link_openldap
13778
13779
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"
13784
13785 cat >>confdefs.h <<\_ACEOF
13786 #define STATIC_LDAPDB
13787 _ACEOF
13788
13789             fi
13790         fi
13791     fi
13792
13793     if test "$cmu_cv_openldap_compat" != yes; then
13794         CPPFLAGS=$save_CPPFLAGS
13795         LDFLAGS=$save_LDFLAGS
13796     fi
13797 else
13798     { echo "$as_me:$LINENO: result: disabled" >&5
13799 echo "${ECHO_T}disabled" >&6; }
13800 fi
13801
13802
13803
13804
13805
13806
13807
13808 # Check whether --with-plugindir was given.
13809 if test "${with_plugindir+set}" = set; then
13810   withval=$with_plugindir; plugindir=$withval
13811 else
13812   plugindir=/usr/lib/sasl2
13813 fi
13814
13815
13816 cat >>confdefs.h <<_ACEOF
13817 #define PLUGINDIR "$plugindir"
13818 _ACEOF
13819
13820
13821
13822
13823 # Check whether --with-configdir was given.
13824 if test "${with_configdir+set}" = set; then
13825   withval=$with_configdir; configdir=$withval
13826 else
13827   configdir=$plugindir:/etc/sasl2
13828 fi
13829
13830
13831 cat >>confdefs.h <<_ACEOF
13832 #define CONFIGDIR "$configdir"
13833 _ACEOF
13834
13835
13836
13837
13838 # Check whether --with-rc4 was given.
13839 if test "${with_rc4+set}" = set; then
13840   withval=$with_rc4; with_rc4=$withval
13841 else
13842   with_rc4=yes
13843 fi
13844
13845
13846 if test "$with_rc4" != no; then
13847
13848 cat >>confdefs.h <<\_ACEOF
13849 #define WITH_RC4
13850 _ACEOF
13851
13852 fi
13853
13854 building_for_macosx=no
13855 case "$host_os" in
13856         darwin*)
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
13860 else
13861   building_for_macosx=yes
13862 fi
13863
13864         ;;
13865 esac
13866  if test "$building_for_macosx" = yes; then
13867   MACOSX_TRUE=
13868   MACOSX_FALSE='#'
13869 else
13870   MACOSX_TRUE='#'
13871   MACOSX_FALSE=
13872 fi
13873
13874
13875 { echo "$as_me:$LINENO: checking for dmalloc library" >&5
13876 echo $ECHO_N "checking for dmalloc library... $ECHO_C" >&6; }
13877
13878 # Check whether --with-dmalloc was given.
13879 if test "${with_dmalloc+set}" = set; then
13880   withval=$with_dmalloc; with_dmalloc=$withval
13881 else
13882   with_dmalloc=no
13883 fi
13884
13885
13886 DMALLOC_LIBS=""
13887
13888 if test "$with_dmalloc" != "no"; then
13889    if test "$with_dmalloc" = "yes"; then
13890         with_dmalloc="/usr/local"
13891    fi
13892
13893    if test -r "$with_dmalloc/libdmalloc.a"; then
13894         DMALLOC_LIBS="$with_dmalloc/libdmalloc.a"
13895
13896 cat >>confdefs.h <<\_ACEOF
13897 #define WITH_DMALLOC
13898 _ACEOF
13899
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"
13904
13905 cat >>confdefs.h <<\_ACEOF
13906 #define WITH_DMALLOC
13907 _ACEOF
13908
13909         { echo "$as_me:$LINENO: result: yes" >&5
13910 echo "${ECHO_T}yes" >&6; }
13911    else
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.; }; }
13915    fi
13916 else
13917    { echo "$as_me:$LINENO: result: no" >&5
13918 echo "${ECHO_T}no" >&6; }
13919 fi
13920
13921
13922
13923 { echo "$as_me:$LINENO: checking for sfio library" >&5
13924 echo $ECHO_N "checking for sfio library... $ECHO_C" >&6; }
13925
13926 # Check whether --with-sfio was given.
13927 if test "${with_sfio+set}" = set; then
13928   withval=$with_sfio; with_sfio=$withval
13929 else
13930   with_sfio=no
13931 fi
13932
13933
13934 if test "$with_sfio" != "no"; then
13935    if test "$with_sfio" = "yes"; then
13936         with_sfio="/usr/local"
13937    fi
13938
13939
13940
13941
13942
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
13949    fi
13950
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.; }; }
13955    fi
13956
13957
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
13962                                 break 2
13963                         fi
13964                 done
13965
13966
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
13971                                 break 2
13972                         fi
13973                 done
13974
13975
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.; }; }
13980    fi
13981
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
13987
13988    { echo "$as_me:$LINENO: result: yes" >&5
13989 echo "${ECHO_T}yes" >&6; }
13990 else
13991    { echo "$as_me:$LINENO: result: no" >&5
13992 echo "${ECHO_T}no" >&6; }
13993    SFIO_INC_FLAGS=""
13994    SFIO_LIB_FLAGS=""
13995    SMTPTEST_PROGRAM=""
13996    SASL_UTIL_LIBS_EXTRA=""
13997    SASL_UTIL_HEADERS_EXTRA=""
13998 fi
13999
14000
14001
14002
14003
14004
14005
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
14011 else
14012   cat >conftest.$ac_ext <<_ACEOF
14013 /* confdefs.h.  */
14014 _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
14021
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.  */
14026
14027 #ifdef __STDC__
14028 # include <limits.h>
14029 #else
14030 # include <assert.h>
14031 #endif
14032
14033 #undef getsubopt
14034
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.  */
14038 #ifdef __cplusplus
14039 extern "C"
14040 #endif
14041 char getsubopt ();
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
14046 choke me
14047 #endif
14048
14049 int
14050 main ()
14051 {
14052 return getsubopt ();
14053   ;
14054   return 0;
14055 }
14056 _ACEOF
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;;
14062 esac
14063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14064   (eval "$ac_link") 2>conftest.er1
14065   ac_status=$?
14066   grep -v '^ *+' conftest.er1 >conftest.err
14067   rm -f conftest.er1
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
14076 else
14077   echo "$as_me: failed program was:" >&5
14078 sed 's/^/| /' conftest.$ac_ext >&5
14079
14080         ac_cv_func_getsubopt=no
14081 fi
14082
14083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14084       conftest$ac_exeext conftest.$ac_ext
14085 fi
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
14089
14090 cat >>confdefs.h <<\_ACEOF
14091 #define HAVE_GETSUBOPT
14092 _ACEOF
14093
14094 else
14095   sasl_cv_getsubopt=yes
14096 fi
14097
14098 if test $sasl_cv_getsubopt = yes; then
14099         case " $LIBOBJS " in
14100   *" getsubopt.$ac_objext "* ) ;;
14101   *) LIBOBJS="$LIBOBJS getsubopt.$ac_objext"
14102  ;;
14103 esac
14104
14105         GETSUBOPT="getsubopt.lo"
14106 fi
14107
14108
14109 sasl_cv_snprintf=no
14110 SNPRINTFOBJS=""
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
14115 else
14116   cat >conftest.$ac_ext <<_ACEOF
14117 /* confdefs.h.  */
14118 _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
14125
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.  */
14130
14131 #ifdef __STDC__
14132 # include <limits.h>
14133 #else
14134 # include <assert.h>
14135 #endif
14136
14137 #undef snprintf
14138
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.  */
14142 #ifdef __cplusplus
14143 extern "C"
14144 #endif
14145 char snprintf ();
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
14150 choke me
14151 #endif
14152
14153 int
14154 main ()
14155 {
14156 return snprintf ();
14157   ;
14158   return 0;
14159 }
14160 _ACEOF
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;;
14166 esac
14167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14168   (eval "$ac_link") 2>conftest.er1
14169   ac_status=$?
14170   grep -v '^ *+' conftest.er1 >conftest.err
14171   rm -f conftest.er1
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
14180 else
14181   echo "$as_me: failed program was:" >&5
14182 sed 's/^/| /' conftest.$ac_ext >&5
14183
14184         ac_cv_func_snprintf=no
14185 fi
14186
14187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14188       conftest$ac_exeext conftest.$ac_ext
14189 fi
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
14193
14194 cat >>confdefs.h <<\_ACEOF
14195 #define HAVE_SNPRINTF
14196 _ACEOF
14197
14198 else
14199   sasl_cv_snprintf=yes
14200 fi
14201
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
14206 else
14207   cat >conftest.$ac_ext <<_ACEOF
14208 /* confdefs.h.  */
14209 _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
14216
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.  */
14221
14222 #ifdef __STDC__
14223 # include <limits.h>
14224 #else
14225 # include <assert.h>
14226 #endif
14227
14228 #undef vsnprintf
14229
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.  */
14233 #ifdef __cplusplus
14234 extern "C"
14235 #endif
14236 char vsnprintf ();
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
14241 choke me
14242 #endif
14243
14244 int
14245 main ()
14246 {
14247 return vsnprintf ();
14248   ;
14249   return 0;
14250 }
14251 _ACEOF
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;;
14257 esac
14258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14259   (eval "$ac_link") 2>conftest.er1
14260   ac_status=$?
14261   grep -v '^ *+' conftest.er1 >conftest.err
14262   rm -f conftest.er1
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
14271 else
14272   echo "$as_me: failed program was:" >&5
14273 sed 's/^/| /' conftest.$ac_ext >&5
14274
14275         ac_cv_func_vsnprintf=no
14276 fi
14277
14278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14279       conftest$ac_exeext conftest.$ac_ext
14280 fi
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
14284
14285 cat >>confdefs.h <<\_ACEOF
14286 #define HAVE_VSNPRINTF
14287 _ACEOF
14288
14289 else
14290   sasl_cv_snprintf=yes
14291 fi
14292
14293 if test $sasl_cv_snprintf = yes; then
14294         case " $LIBOBJS " in
14295   *" snprintf.$ac_objext "* ) ;;
14296   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
14297  ;;
14298 esac
14299
14300         SNPRINTFOBJS="snprintf.o"
14301         LTSNPRINTFOBJS="snprintf.lo"
14302 fi
14303
14304
14305
14306
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
14311 else
14312   ac_check_lib_save_LIBS=$LIBS
14313 LIBS="-lresolv  $LIBS"
14314 cat >conftest.$ac_ext <<_ACEOF
14315 /* confdefs.h.  */
14316 _ACEOF
14317 cat confdefs.h >>conftest.$ac_ext
14318 cat >>conftest.$ac_ext <<_ACEOF
14319 /* end confdefs.h.  */
14320
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.  */
14324 #ifdef __cplusplus
14325 extern "C"
14326 #endif
14327 char inet_aton ();
14328 int
14329 main ()
14330 {
14331 return inet_aton ();
14332   ;
14333   return 0;
14334 }
14335 _ACEOF
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;;
14341 esac
14342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14343   (eval "$ac_link") 2>conftest.er1
14344   ac_status=$?
14345   grep -v '^ *+' conftest.er1 >conftest.err
14346   rm -f conftest.er1
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
14355 else
14356   echo "$as_me: failed program was:" >&5
14357 sed 's/^/| /' conftest.$ac_ext >&5
14358
14359         ac_cv_lib_resolv_inet_aton=no
14360 fi
14361
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
14365 fi
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
14371 _ACEOF
14372
14373   LIBS="-lresolv $LIBS"
14374
14375 fi
14376
14377
14378 GETADDRINFOOBJS=""
14379 sasl_cv_getaddrinfo=yes
14380
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
14385 else
14386   cat >conftest.$ac_ext <<_ACEOF
14387 /* confdefs.h.  */
14388 _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
14395
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.  */
14400
14401 #ifdef __STDC__
14402 # include <limits.h>
14403 #else
14404 # include <assert.h>
14405 #endif
14406
14407 #undef getaddrinfo
14408
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.  */
14412 #ifdef __cplusplus
14413 extern "C"
14414 #endif
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
14420 choke me
14421 #endif
14422
14423 int
14424 main ()
14425 {
14426 return getaddrinfo ();
14427   ;
14428   return 0;
14429 }
14430 _ACEOF
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;;
14436 esac
14437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14438   (eval "$ac_link") 2>conftest.er1
14439   ac_status=$?
14440   grep -v '^ *+' conftest.er1 >conftest.err
14441   rm -f conftest.er1
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
14450 else
14451   echo "$as_me: failed program was:" >&5
14452 sed 's/^/| /' conftest.$ac_ext >&5
14453
14454         ac_cv_func_getaddrinfo=no
14455 fi
14456
14457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14458       conftest$ac_exeext conftest.$ac_ext
14459 fi
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
14465
14466 else
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
14471 else
14472   ac_check_lib_save_LIBS=$LIBS
14473 LIBS="-lsocket  $LIBS"
14474 cat >conftest.$ac_ext <<_ACEOF
14475 /* confdefs.h.  */
14476 _ACEOF
14477 cat confdefs.h >>conftest.$ac_ext
14478 cat >>conftest.$ac_ext <<_ACEOF
14479 /* end confdefs.h.  */
14480
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.  */
14484 #ifdef __cplusplus
14485 extern "C"
14486 #endif
14487 char getaddrinfo ();
14488 int
14489 main ()
14490 {
14491 return getaddrinfo ();
14492   ;
14493   return 0;
14494 }
14495 _ACEOF
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;;
14501 esac
14502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14503   (eval "$ac_link") 2>conftest.er1
14504   ac_status=$?
14505   grep -v '^ *+' conftest.er1 >conftest.err
14506   rm -f conftest.er1
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
14515 else
14516   echo "$as_me: failed program was:" >&5
14517 sed 's/^/| /' conftest.$ac_ext >&5
14518
14519         ac_cv_lib_socket_getaddrinfo=no
14520 fi
14521
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
14525 fi
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
14531
14532 else
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
14537 else
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
14540           break
14541         fi
14542       done
14543 fi
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
14548     else
14549       if test x$ipv6_libinet6 = x; then
14550         ipv6_libinet6=no
14551         SAVELDFLAGS="$LDFLAGS"
14552         LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
14553       fi
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
14558 else
14559   ac_check_lib_save_LIBS=$LIBS
14560 LIBS="-linet6  $LIBS"
14561 cat >conftest.$ac_ext <<_ACEOF
14562 /* confdefs.h.  */
14563 _ACEOF
14564 cat confdefs.h >>conftest.$ac_ext
14565 cat >>conftest.$ac_ext <<_ACEOF
14566 /* end confdefs.h.  */
14567
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.  */
14571 #ifdef __cplusplus
14572 extern "C"
14573 #endif
14574 char getaddrinfo ();
14575 int
14576 main ()
14577 {
14578 return getaddrinfo ();
14579   ;
14580   return 0;
14581 }
14582 _ACEOF
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;;
14588 esac
14589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14590   (eval "$ac_link") 2>conftest.er1
14591   ac_status=$?
14592   grep -v '^ *+' conftest.er1 >conftest.err
14593   rm -f conftest.er1
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
14602 else
14603   echo "$as_me: failed program was:" >&5
14604 sed 's/^/| /' conftest.$ac_ext >&5
14605
14606         ac_cv_lib_inet6_getaddrinfo=no
14607 fi
14608
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
14612 fi
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
14617           ipv6_libinet6=yes
14618           LIBS="$LIBS -linet6"
14619         fi
14620 fi
14621       if test $ipv6_libinet6 = no; then
14622         LDFLAGS="$SAVELDFLAGS"
14623       fi
14624     fi
14625 fi
14626
14627 fi
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
14631 then
14632   ipv6_cv_getaddrinfo=yes
14633 fi
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
14638 /* confdefs.h.  */
14639 _ACEOF
14640 cat confdefs.h >>conftest.$ac_ext
14641 cat >>conftest.$ac_ext <<_ACEOF
14642 /* end confdefs.h.  */
14643 #include <netdb.h>
14644
14645 _ACEOF
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
14653 else
14654   cat >conftest.$ac_ext <<_ACEOF
14655 /* confdefs.h.  */
14656 _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
14663
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.  */
14668
14669 #ifdef __STDC__
14670 # include <limits.h>
14671 #else
14672 # include <assert.h>
14673 #endif
14674
14675 #undef ${ipv6_cv_pfx}getaddrinfo
14676
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.  */
14680 #ifdef __cplusplus
14681 extern "C"
14682 #endif
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
14688 choke me
14689 #endif
14690
14691 int
14692 main ()
14693 {
14694 return ${ipv6_cv_pfx}getaddrinfo ();
14695   ;
14696   return 0;
14697 }
14698 _ACEOF
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;;
14704 esac
14705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14706   (eval "$ac_link") 2>conftest.er1
14707   ac_status=$?
14708   grep -v '^ *+' conftest.er1 >conftest.err
14709   rm -f conftest.er1
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"
14718 else
14719   echo "$as_me: failed program was:" >&5
14720 sed 's/^/| /' conftest.$ac_ext >&5
14721
14722         eval "$as_ac_var=no"
14723 fi
14724
14725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14726       conftest$ac_exeext conftest.$ac_ext
14727 fi
14728 ac_res=`eval echo '${'$as_ac_var'}'`
14729                { echo "$as_me:$LINENO: result: $ac_res" >&5
14730 echo "${ECHO_T}$ac_res" >&6; }
14731
14732 fi
14733 rm -f -r conftest*
14734
14735       if eval test X\$ac_cv_func_${ipv6_cv_pfx}getaddrinfo = Xyes; then
14736
14737 cat >>confdefs.h <<\_ACEOF
14738 #define HAVE_GETADDRINFO
14739 _ACEOF
14740
14741         ipv6_cv_getaddrinfo=yes
14742         break
14743       fi
14744     done
14745   fi
14746 fi
14747 if test $ipv6_cv_getaddrinfo = yes; then
14748
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
14753 else
14754   cat >conftest.$ac_ext <<_ACEOF
14755 /* confdefs.h.  */
14756 _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
14763
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.  */
14768
14769 #ifdef __STDC__
14770 # include <limits.h>
14771 #else
14772 # include <assert.h>
14773 #endif
14774
14775 #undef gai_strerror
14776
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.  */
14780 #ifdef __cplusplus
14781 extern "C"
14782 #endif
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
14788 choke me
14789 #endif
14790
14791 int
14792 main ()
14793 {
14794 return gai_strerror ();
14795   ;
14796   return 0;
14797 }
14798 _ACEOF
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;;
14804 esac
14805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14806   (eval "$ac_link") 2>conftest.er1
14807   ac_status=$?
14808   grep -v '^ *+' conftest.er1 >conftest.err
14809   rm -f conftest.er1
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
14818 else
14819   echo "$as_me: failed program was:" >&5
14820 sed 's/^/| /' conftest.$ac_ext >&5
14821
14822         ac_cv_func_gai_strerror=no
14823 fi
14824
14825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14826       conftest$ac_exeext conftest.$ac_ext
14827 fi
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
14833
14834 else
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
14839 else
14840   ac_check_lib_save_LIBS=$LIBS
14841 LIBS="-lsocket  $LIBS"
14842 cat >conftest.$ac_ext <<_ACEOF
14843 /* confdefs.h.  */
14844 _ACEOF
14845 cat confdefs.h >>conftest.$ac_ext
14846 cat >>conftest.$ac_ext <<_ACEOF
14847 /* end confdefs.h.  */
14848
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.  */
14852 #ifdef __cplusplus
14853 extern "C"
14854 #endif
14855 char gai_strerror ();
14856 int
14857 main ()
14858 {
14859 return gai_strerror ();
14860   ;
14861   return 0;
14862 }
14863 _ACEOF
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;;
14869 esac
14870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14871   (eval "$ac_link") 2>conftest.er1
14872   ac_status=$?
14873   grep -v '^ *+' conftest.er1 >conftest.err
14874   rm -f conftest.er1
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
14883 else
14884   echo "$as_me: failed program was:" >&5
14885 sed 's/^/| /' conftest.$ac_ext >&5
14886
14887         ac_cv_lib_socket_gai_strerror=no
14888 fi
14889
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
14893 fi
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
14899
14900 else
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
14905 else
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
14908           break
14909         fi
14910       done
14911 fi
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
14916     else
14917       if test x$ipv6_libinet6 = x; then
14918         ipv6_libinet6=no
14919         SAVELDFLAGS="$LDFLAGS"
14920         LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
14921       fi
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
14926 else
14927   ac_check_lib_save_LIBS=$LIBS
14928 LIBS="-linet6  $LIBS"
14929 cat >conftest.$ac_ext <<_ACEOF
14930 /* confdefs.h.  */
14931 _ACEOF
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h.  */
14935
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.  */
14939 #ifdef __cplusplus
14940 extern "C"
14941 #endif
14942 char gai_strerror ();
14943 int
14944 main ()
14945 {
14946 return gai_strerror ();
14947   ;
14948   return 0;
14949 }
14950 _ACEOF
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;;
14956 esac
14957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14958   (eval "$ac_link") 2>conftest.er1
14959   ac_status=$?
14960   grep -v '^ *+' conftest.er1 >conftest.err
14961   rm -f conftest.er1
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
14970 else
14971   echo "$as_me: failed program was:" >&5
14972 sed 's/^/| /' conftest.$ac_ext >&5
14973
14974         ac_cv_lib_inet6_gai_strerror=no
14975 fi
14976
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
14980 fi
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
14985           ipv6_libinet6=yes
14986           LIBS="$LIBS -linet6"
14987         fi
14988 fi
14989       if test $ipv6_libinet6 = no; then
14990         LDFLAGS="$SAVELDFLAGS"
14991       fi
14992     fi
14993 fi
14994
14995 fi
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
14999 then
15000   ipv6_cv_gai_strerror=yes
15001 fi
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
15006 /* confdefs.h.  */
15007 _ACEOF
15008 cat confdefs.h >>conftest.$ac_ext
15009 cat >>conftest.$ac_ext <<_ACEOF
15010 /* end confdefs.h.  */
15011 #include <netdb.h>
15012
15013 _ACEOF
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
15021 else
15022   cat >conftest.$ac_ext <<_ACEOF
15023 /* confdefs.h.  */
15024 _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
15031
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.  */
15036
15037 #ifdef __STDC__
15038 # include <limits.h>
15039 #else
15040 # include <assert.h>
15041 #endif
15042
15043 #undef ${ipv6_cv_pfx}gai_strerror
15044
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.  */
15048 #ifdef __cplusplus
15049 extern "C"
15050 #endif
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
15056 choke me
15057 #endif
15058
15059 int
15060 main ()
15061 {
15062 return ${ipv6_cv_pfx}gai_strerror ();
15063   ;
15064   return 0;
15065 }
15066 _ACEOF
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;;
15072 esac
15073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074   (eval "$ac_link") 2>conftest.er1
15075   ac_status=$?
15076   grep -v '^ *+' conftest.er1 >conftest.err
15077   rm -f conftest.er1
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"
15086 else
15087   echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.$ac_ext >&5
15089
15090         eval "$as_ac_var=no"
15091 fi
15092
15093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15094       conftest$ac_exeext conftest.$ac_ext
15095 fi
15096 ac_res=`eval echo '${'$as_ac_var'}'`
15097                { echo "$as_me:$LINENO: result: $ac_res" >&5
15098 echo "${ECHO_T}$ac_res" >&6; }
15099
15100 fi
15101 rm -f -r conftest*
15102
15103       if eval test X\$ac_cv_func_${ipv6_cv_pfx}gai_strerror = Xyes; then
15104
15105 cat >>confdefs.h <<\_ACEOF
15106 #define HAVE_GETADDRINFO
15107 _ACEOF
15108
15109         ipv6_cv_gai_strerror=yes
15110         break
15111       fi
15112     done
15113   fi
15114 fi
15115 if test $ipv6_cv_gai_strerror = yes; then
15116
15117 cat >>confdefs.h <<\_ACEOF
15118 #define HAVE_GETADDRINFO
15119 _ACEOF
15120
15121                 sasl_cv_getaddrinfo=no
15122 else
15123   :
15124 fi
15125 else
15126   :
15127 fi
15128 if test $sasl_cv_getaddrinfo = yes; then
15129     case " $LIBOBJS " in
15130   *" getaddrinfo.$ac_objext "* ) ;;
15131   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
15132  ;;
15133 esac
15134
15135     GETADDRINFOOBJS="getaddrinfo.o"
15136     LTGETADDRINFOOBJS="getaddrinfo.lo"
15137 fi
15138
15139
15140
15141 GETNAMEINFOOBJS=""
15142 sasl_cv_getnameinfo=no
15143
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
15148 else
15149   cat >conftest.$ac_ext <<_ACEOF
15150 /* confdefs.h.  */
15151 _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
15158
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.  */
15163
15164 #ifdef __STDC__
15165 # include <limits.h>
15166 #else
15167 # include <assert.h>
15168 #endif
15169
15170 #undef getnameinfo
15171
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.  */
15175 #ifdef __cplusplus
15176 extern "C"
15177 #endif
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
15183 choke me
15184 #endif
15185
15186 int
15187 main ()
15188 {
15189 return getnameinfo ();
15190   ;
15191   return 0;
15192 }
15193 _ACEOF
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;;
15199 esac
15200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15201   (eval "$ac_link") 2>conftest.er1
15202   ac_status=$?
15203   grep -v '^ *+' conftest.er1 >conftest.err
15204   rm -f conftest.er1
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
15213 else
15214   echo "$as_me: failed program was:" >&5
15215 sed 's/^/| /' conftest.$ac_ext >&5
15216
15217         ac_cv_func_getnameinfo=no
15218 fi
15219
15220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15221       conftest$ac_exeext conftest.$ac_ext
15222 fi
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
15228
15229 else
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
15234 else
15235   ac_check_lib_save_LIBS=$LIBS
15236 LIBS="-lsocket  $LIBS"
15237 cat >conftest.$ac_ext <<_ACEOF
15238 /* confdefs.h.  */
15239 _ACEOF
15240 cat confdefs.h >>conftest.$ac_ext
15241 cat >>conftest.$ac_ext <<_ACEOF
15242 /* end confdefs.h.  */
15243
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.  */
15247 #ifdef __cplusplus
15248 extern "C"
15249 #endif
15250 char getnameinfo ();
15251 int
15252 main ()
15253 {
15254 return getnameinfo ();
15255   ;
15256   return 0;
15257 }
15258 _ACEOF
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;;
15264 esac
15265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15266   (eval "$ac_link") 2>conftest.er1
15267   ac_status=$?
15268   grep -v '^ *+' conftest.er1 >conftest.err
15269   rm -f conftest.er1
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
15278 else
15279   echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15281
15282         ac_cv_lib_socket_getnameinfo=no
15283 fi
15284
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
15288 fi
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
15294
15295 else
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
15300 else
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
15303           break
15304         fi
15305       done
15306 fi
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
15311     else
15312       if test x$ipv6_libinet6 = x; then
15313         ipv6_libinet6=no
15314         SAVELDFLAGS="$LDFLAGS"
15315         LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
15316       fi
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
15321 else
15322   ac_check_lib_save_LIBS=$LIBS
15323 LIBS="-linet6  $LIBS"
15324 cat >conftest.$ac_ext <<_ACEOF
15325 /* confdefs.h.  */
15326 _ACEOF
15327 cat confdefs.h >>conftest.$ac_ext
15328 cat >>conftest.$ac_ext <<_ACEOF
15329 /* end confdefs.h.  */
15330
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.  */
15334 #ifdef __cplusplus
15335 extern "C"
15336 #endif
15337 char getnameinfo ();
15338 int
15339 main ()
15340 {
15341 return getnameinfo ();
15342   ;
15343   return 0;
15344 }
15345 _ACEOF
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;;
15351 esac
15352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15353   (eval "$ac_link") 2>conftest.er1
15354   ac_status=$?
15355   grep -v '^ *+' conftest.er1 >conftest.err
15356   rm -f conftest.er1
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
15365 else
15366   echo "$as_me: failed program was:" >&5
15367 sed 's/^/| /' conftest.$ac_ext >&5
15368
15369         ac_cv_lib_inet6_getnameinfo=no
15370 fi
15371
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
15375 fi
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
15380           ipv6_libinet6=yes
15381           LIBS="$LIBS -linet6"
15382         fi
15383 fi
15384       if test $ipv6_libinet6 = no; then
15385         LDFLAGS="$SAVELDFLAGS"
15386       fi
15387     fi
15388 fi
15389
15390 fi
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
15394 then
15395   ipv6_cv_getnameinfo=yes
15396 fi
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
15401 /* confdefs.h.  */
15402 _ACEOF
15403 cat confdefs.h >>conftest.$ac_ext
15404 cat >>conftest.$ac_ext <<_ACEOF
15405 /* end confdefs.h.  */
15406 #include <netdb.h>
15407
15408 _ACEOF
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
15416 else
15417   cat >conftest.$ac_ext <<_ACEOF
15418 /* confdefs.h.  */
15419 _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
15426
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.  */
15431
15432 #ifdef __STDC__
15433 # include <limits.h>
15434 #else
15435 # include <assert.h>
15436 #endif
15437
15438 #undef ${ipv6_cv_pfx}getnameinfo
15439
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.  */
15443 #ifdef __cplusplus
15444 extern "C"
15445 #endif
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
15451 choke me
15452 #endif
15453
15454 int
15455 main ()
15456 {
15457 return ${ipv6_cv_pfx}getnameinfo ();
15458   ;
15459   return 0;
15460 }
15461 _ACEOF
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;;
15467 esac
15468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15469   (eval "$ac_link") 2>conftest.er1
15470   ac_status=$?
15471   grep -v '^ *+' conftest.er1 >conftest.err
15472   rm -f conftest.er1
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"
15481 else
15482   echo "$as_me: failed program was:" >&5
15483 sed 's/^/| /' conftest.$ac_ext >&5
15484
15485         eval "$as_ac_var=no"
15486 fi
15487
15488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15489       conftest$ac_exeext conftest.$ac_ext
15490 fi
15491 ac_res=`eval echo '${'$as_ac_var'}'`
15492                { echo "$as_me:$LINENO: result: $ac_res" >&5
15493 echo "${ECHO_T}$ac_res" >&6; }
15494
15495 fi
15496 rm -f -r conftest*
15497
15498       if eval test X\$ac_cv_func_${ipv6_cv_pfx}getnameinfo = Xyes; then
15499
15500 cat >>confdefs.h <<\_ACEOF
15501 #define HAVE_GETADDRINFO
15502 _ACEOF
15503
15504         ipv6_cv_getnameinfo=yes
15505         break
15506       fi
15507     done
15508   fi
15509 fi
15510 if test $ipv6_cv_getnameinfo = yes; then
15511
15512 cat >>confdefs.h <<\_ACEOF
15513 #define HAVE_GETNAMEINFO
15514 _ACEOF
15515
15516 else
15517   sasl_cv_getnameinfo=yes
15518 fi
15519 if test $sasl_cv_getnameinfo = yes; then
15520         case " $LIBOBJS " in
15521   *" getnameinfo.$ac_objext "* ) ;;
15522   *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
15523  ;;
15524 esac
15525
15526         GETNAMEINFOOBJS="getnameinfo.o"
15527         LTGETNAMEINFOOBJS="getnameinfo.lo"
15528 fi
15529
15530
15531
15532 LTLIBOBJS=`echo "$LIBOBJS" | sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
15533
15534
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
15539 else
15540   cat >conftest.$ac_ext <<_ACEOF
15541 /* confdefs.h.  */
15542 _ACEOF
15543 cat confdefs.h >>conftest.$ac_ext
15544 cat >>conftest.$ac_ext <<_ACEOF
15545 /* end confdefs.h.  */
15546
15547 int
15548 main ()
15549 {
15550 /* FIXME: Include the comments suggested by Paul. */
15551 #ifndef __cplusplus
15552   /* Ultrix mips cc rejects this.  */
15553   typedef int charset[2];
15554   const charset cs;
15555   /* SunOS 4.1.1 cc rejects this.  */
15556   char const *const *pcpcc;
15557   char **ppc;
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
15564      expression */
15565   const char *g = "string";
15566   pcpcc = &g + (g ? g-g : 0);
15567   /* HPUX 7.0 cc rejects these. */
15568   ++pcpcc;
15569   ppc = (char**) pcpcc;
15570   pcpcc = (char const *const *) ppc;
15571   { /* SCO 3.2v4 cc rejects this.  */
15572     char *t;
15573     char const *s = 0 ? (char *) 0 : (char const *) 0;
15574
15575     *t++ = 0;
15576     if (s) return 0;
15577   }
15578   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15579     int x[] = {25, 17};
15580     const int *foo = &x[0];
15581     ++foo;
15582   }
15583   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15584     typedef const int *iptr;
15585     iptr p = 0;
15586     ++p;
15587   }
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;
15592   }
15593   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15594     const int foo = 10;
15595     if (!foo) return 0;
15596   }
15597   return !cs[0] && !zero.x;
15598 #endif
15599
15600   ;
15601   return 0;
15602 }
15603 _ACEOF
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;;
15609 esac
15610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15611   (eval "$ac_compile") 2>conftest.er1
15612   ac_status=$?
15613   grep -v '^ *+' conftest.er1 >conftest.err
15614   rm -f conftest.er1
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
15621   ac_cv_c_const=yes
15622 else
15623   echo "$as_me: failed program was:" >&5
15624 sed 's/^/| /' conftest.$ac_ext >&5
15625
15626         ac_cv_c_const=no
15627 fi
15628
15629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15630 fi
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
15634
15635 cat >>confdefs.h <<\_ACEOF
15636 #define const
15637 _ACEOF
15638
15639 fi
15640
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
15645 else
15646   ac_cv_c_inline=no
15647 for ac_kw in inline __inline__ __inline; do
15648   cat >conftest.$ac_ext <<_ACEOF
15649 /* confdefs.h.  */
15650 _ACEOF
15651 cat confdefs.h >>conftest.$ac_ext
15652 cat >>conftest.$ac_ext <<_ACEOF
15653 /* end confdefs.h.  */
15654 #ifndef __cplusplus
15655 typedef int foo_t;
15656 static $ac_kw foo_t static_foo () {return 0; }
15657 $ac_kw foo_t foo () {return 0; }
15658 #endif
15659
15660 _ACEOF
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;;
15666 esac
15667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15668   (eval "$ac_compile") 2>conftest.er1
15669   ac_status=$?
15670   grep -v '^ *+' conftest.er1 >conftest.err
15671   rm -f conftest.er1
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
15679 else
15680   echo "$as_me: failed program was:" >&5
15681 sed 's/^/| /' conftest.$ac_ext >&5
15682
15683
15684 fi
15685
15686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15687   test "$ac_cv_c_inline" != no && break
15688 done
15689
15690 fi
15691 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15692 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
15693
15694
15695 case $ac_cv_c_inline in
15696   inline | yes) ;;
15697   *)
15698     case $ac_cv_c_inline in
15699       no) ac_val=;;
15700       *) ac_val=$ac_cv_c_inline;;
15701     esac
15702     cat >>confdefs.h <<_ACEOF
15703 #ifndef __cplusplus
15704 #define inline $ac_val
15705 #endif
15706 _ACEOF
15707     ;;
15708 esac
15709
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
15714 else
15715   cat >conftest.$ac_ext <<_ACEOF
15716 /* confdefs.h.  */
15717 _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_;
15723 int
15724 main ()
15725 {
15726 if ((ac__type_new_ *) 0)
15727   return 0;
15728 if (sizeof (ac__type_new_))
15729   return 0;
15730   ;
15731   return 0;
15732 }
15733 _ACEOF
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;;
15739 esac
15740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15741   (eval "$ac_compile") 2>conftest.er1
15742   ac_status=$?
15743   grep -v '^ *+' conftest.er1 >conftest.err
15744   rm -f conftest.er1
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
15752 else
15753   echo "$as_me: failed program was:" >&5
15754 sed 's/^/| /' conftest.$ac_ext >&5
15755
15756         ac_cv_type_mode_t=no
15757 fi
15758
15759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15760 fi
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
15764   :
15765 else
15766
15767 cat >>confdefs.h <<_ACEOF
15768 #define mode_t int
15769 _ACEOF
15770
15771 fi
15772
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
15777 else
15778   cat >conftest.$ac_ext <<_ACEOF
15779 /* confdefs.h.  */
15780 _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_;
15786 int
15787 main ()
15788 {
15789 if ((ac__type_new_ *) 0)
15790   return 0;
15791 if (sizeof (ac__type_new_))
15792   return 0;
15793   ;
15794   return 0;
15795 }
15796 _ACEOF
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;;
15802 esac
15803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15804   (eval "$ac_compile") 2>conftest.er1
15805   ac_status=$?
15806   grep -v '^ *+' conftest.er1 >conftest.err
15807   rm -f conftest.er1
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
15815 else
15816   echo "$as_me: failed program was:" >&5
15817 sed 's/^/| /' conftest.$ac_ext >&5
15818
15819         ac_cv_type_pid_t=no
15820 fi
15821
15822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15823 fi
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
15827   :
15828 else
15829
15830 cat >>confdefs.h <<_ACEOF
15831 #define pid_t int
15832 _ACEOF
15833
15834 fi
15835
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
15840 else
15841   cat >conftest.$ac_ext <<_ACEOF
15842 /* confdefs.h.  */
15843 _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>
15849
15850 int
15851 main ()
15852 {
15853 return *(signal (0, 0)) (0) == 1;
15854   ;
15855   return 0;
15856 }
15857 _ACEOF
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;;
15863 esac
15864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15865   (eval "$ac_compile") 2>conftest.er1
15866   ac_status=$?
15867   grep -v '^ *+' conftest.er1 >conftest.err
15868   rm -f conftest.er1
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
15876 else
15877   echo "$as_me: failed program was:" >&5
15878 sed 's/^/| /' conftest.$ac_ext >&5
15879
15880         ac_cv_type_signal=void
15881 fi
15882
15883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15884 fi
15885 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15886 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
15887
15888 cat >>confdefs.h <<_ACEOF
15889 #define RETSIGTYPE $ac_cv_type_signal
15890 _ACEOF
15891
15892
15893
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
15898 else
15899   cat >conftest.$ac_ext <<_ACEOF
15900 /* confdefs.h.  */
15901 _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>
15907 #include <time.h>
15908
15909 int
15910 main ()
15911 {
15912 if ((struct tm *) 0)
15913 return 0;
15914   ;
15915   return 0;
15916 }
15917 _ACEOF
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;;
15923 esac
15924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15925   (eval "$ac_compile") 2>conftest.er1
15926   ac_status=$?
15927   grep -v '^ *+' conftest.er1 >conftest.err
15928   rm -f conftest.er1
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
15936 else
15937   echo "$as_me: failed program was:" >&5
15938 sed 's/^/| /' conftest.$ac_ext >&5
15939
15940         ac_cv_header_time=no
15941 fi
15942
15943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15944 fi
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
15948
15949 cat >>confdefs.h <<\_ACEOF
15950 #define TIME_WITH_SYS_TIME 1
15951 _ACEOF
15952
15953 fi
15954
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
15959 else
15960   cat >conftest.$ac_ext <<_ACEOF
15961 /* confdefs.h.  */
15962 _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>
15969 #include <float.h>
15970
15971 int
15972 main ()
15973 {
15974
15975   ;
15976   return 0;
15977 }
15978 _ACEOF
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;;
15984 esac
15985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15986   (eval "$ac_compile") 2>conftest.er1
15987   ac_status=$?
15988   grep -v '^ *+' conftest.er1 >conftest.err
15989   rm -f conftest.er1
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
15997 else
15998   echo "$as_me: failed program was:" >&5
15999 sed 's/^/| /' conftest.$ac_ext >&5
16000
16001         ac_cv_header_stdc=no
16002 fi
16003
16004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16005
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
16009 /* confdefs.h.  */
16010 _ACEOF
16011 cat confdefs.h >>conftest.$ac_ext
16012 cat >>conftest.$ac_ext <<_ACEOF
16013 /* end confdefs.h.  */
16014 #include <string.h>
16015
16016 _ACEOF
16017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16018   $EGREP "memchr" >/dev/null 2>&1; then
16019   :
16020 else
16021   ac_cv_header_stdc=no
16022 fi
16023 rm -f -r conftest*
16024
16025 fi
16026
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
16030 /* confdefs.h.  */
16031 _ACEOF
16032 cat confdefs.h >>conftest.$ac_ext
16033 cat >>conftest.$ac_ext <<_ACEOF
16034 /* end confdefs.h.  */
16035 #include <stdlib.h>
16036
16037 _ACEOF
16038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16039   $EGREP "free" >/dev/null 2>&1; then
16040   :
16041 else
16042   ac_cv_header_stdc=no
16043 fi
16044 rm -f -r conftest*
16045
16046 fi
16047
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
16051   :
16052 else
16053   cat >conftest.$ac_ext <<_ACEOF
16054 /* confdefs.h.  */
16055 _ACEOF
16056 cat confdefs.h >>conftest.$ac_ext
16057 cat >>conftest.$ac_ext <<_ACEOF
16058 /* end confdefs.h.  */
16059 #include <ctype.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))
16064 #else
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))
16070 #endif
16071
16072 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16073 int
16074 main ()
16075 {
16076   int i;
16077   for (i = 0; i < 256; i++)
16078     if (XOR (islower (i), ISLOWER (i))
16079         || toupper (i) != TOUPPER (i))
16080       return 2;
16081   return 0;
16082 }
16083 _ACEOF
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;;
16089 esac
16090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16091   (eval "$ac_link") 2>&5
16092   ac_status=$?
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;;
16098 esac
16099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16100   (eval "$ac_try") 2>&5
16101   ac_status=$?
16102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103   (exit $ac_status); }; }; then
16104   :
16105 else
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
16109
16110 ( exit $ac_status )
16111 ac_cv_header_stdc=no
16112 fi
16113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16114 fi
16115
16116
16117 fi
16118 fi
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
16122
16123 cat >>confdefs.h <<\_ACEOF
16124 #define STDC_HEADERS 1
16125 _ACEOF
16126
16127 fi
16128
16129
16130
16131
16132
16133
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
16141 else
16142   cat >conftest.$ac_ext <<_ACEOF
16143 /* confdefs.h.  */
16144 _ACEOF
16145 cat confdefs.h >>conftest.$ac_ext
16146 cat >>conftest.$ac_ext <<_ACEOF
16147 /* end confdefs.h.  */
16148 #include <sys/types.h>
16149 #include <$ac_hdr>
16150
16151 int
16152 main ()
16153 {
16154 if ((DIR *) 0)
16155 return 0;
16156   ;
16157   return 0;
16158 }
16159 _ACEOF
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;;
16165 esac
16166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16167   (eval "$ac_compile") 2>conftest.er1
16168   ac_status=$?
16169   grep -v '^ *+' conftest.er1 >conftest.err
16170   rm -f conftest.er1
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"
16178 else
16179   echo "$as_me: failed program was:" >&5
16180 sed 's/^/| /' conftest.$ac_ext >&5
16181
16182         eval "$as_ac_Header=no"
16183 fi
16184
16185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16186 fi
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
16193 _ACEOF
16194
16195 ac_header_dirent=$ac_hdr; break
16196 fi
16197
16198 done
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
16205 else
16206   ac_func_search_save_LIBS=$LIBS
16207 cat >conftest.$ac_ext <<_ACEOF
16208 /* confdefs.h.  */
16209 _ACEOF
16210 cat confdefs.h >>conftest.$ac_ext
16211 cat >>conftest.$ac_ext <<_ACEOF
16212 /* end confdefs.h.  */
16213
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.  */
16217 #ifdef __cplusplus
16218 extern "C"
16219 #endif
16220 char opendir ();
16221 int
16222 main ()
16223 {
16224 return opendir ();
16225   ;
16226   return 0;
16227 }
16228 _ACEOF
16229 for ac_lib in '' dir; do
16230   if test -z "$ac_lib"; then
16231     ac_res="none required"
16232   else
16233     ac_res=-l$ac_lib
16234     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16235   fi
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;;
16241 esac
16242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16243   (eval "$ac_link") 2>conftest.er1
16244   ac_status=$?
16245   grep -v '^ *+' conftest.er1 >conftest.err
16246   rm -f conftest.er1
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
16255 else
16256   echo "$as_me: failed program was:" >&5
16257 sed 's/^/| /' conftest.$ac_ext >&5
16258
16259
16260 fi
16261
16262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16263       conftest$ac_exeext
16264   if test "${ac_cv_search_opendir+set}" = set; then
16265   break
16266 fi
16267 done
16268 if test "${ac_cv_search_opendir+set}" = set; then
16269   :
16270 else
16271   ac_cv_search_opendir=no
16272 fi
16273 rm conftest.$ac_ext
16274 LIBS=$ac_func_search_save_LIBS
16275 fi
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"
16281
16282 fi
16283
16284 else
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
16289 else
16290   ac_func_search_save_LIBS=$LIBS
16291 cat >conftest.$ac_ext <<_ACEOF
16292 /* confdefs.h.  */
16293 _ACEOF
16294 cat confdefs.h >>conftest.$ac_ext
16295 cat >>conftest.$ac_ext <<_ACEOF
16296 /* end confdefs.h.  */
16297
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.  */
16301 #ifdef __cplusplus
16302 extern "C"
16303 #endif
16304 char opendir ();
16305 int
16306 main ()
16307 {
16308 return opendir ();
16309   ;
16310   return 0;
16311 }
16312 _ACEOF
16313 for ac_lib in '' x; do
16314   if test -z "$ac_lib"; then
16315     ac_res="none required"
16316   else
16317     ac_res=-l$ac_lib
16318     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16319   fi
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;;
16325 esac
16326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16327   (eval "$ac_link") 2>conftest.er1
16328   ac_status=$?
16329   grep -v '^ *+' conftest.er1 >conftest.err
16330   rm -f conftest.er1
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
16339 else
16340   echo "$as_me: failed program was:" >&5
16341 sed 's/^/| /' conftest.$ac_ext >&5
16342
16343
16344 fi
16345
16346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16347       conftest$ac_exeext
16348   if test "${ac_cv_search_opendir+set}" = set; then
16349   break
16350 fi
16351 done
16352 if test "${ac_cv_search_opendir+set}" = set; then
16353   :
16354 else
16355   ac_cv_search_opendir=no
16356 fi
16357 rm conftest.$ac_ext
16358 LIBS=$ac_func_search_save_LIBS
16359 fi
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"
16365
16366 fi
16367
16368 fi
16369
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
16374 else
16375   cat >conftest.$ac_ext <<_ACEOF
16376 /* confdefs.h.  */
16377 _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)
16385 #endif
16386 #ifndef WIFEXITED
16387 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16388 #endif
16389
16390 int
16391 main ()
16392 {
16393   int s;
16394   wait (&s);
16395   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16396   ;
16397   return 0;
16398 }
16399 _ACEOF
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;;
16405 esac
16406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16407   (eval "$ac_compile") 2>conftest.er1
16408   ac_status=$?
16409   grep -v '^ *+' conftest.er1 >conftest.err
16410   rm -f conftest.er1
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
16418 else
16419   echo "$as_me: failed program was:" >&5
16420 sed 's/^/| /' conftest.$ac_ext >&5
16421
16422         ac_cv_header_sys_wait_h=no
16423 fi
16424
16425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16426 fi
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
16430
16431 cat >>confdefs.h <<\_ACEOF
16432 #define HAVE_SYS_WAIT_H 1
16433 _ACEOF
16434
16435 fi
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
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
16455 do
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
16462 fi
16463 ac_res=`eval echo '${'$as_ac_Header'}'`
16464                { echo "$as_me:$LINENO: result: $ac_res" >&5
16465 echo "${ECHO_T}$ac_res" >&6; }
16466 else
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
16471 /* confdefs.h.  */
16472 _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>
16478 _ACEOF
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;;
16484 esac
16485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16486   (eval "$ac_compile") 2>conftest.er1
16487   ac_status=$?
16488   grep -v '^ *+' conftest.er1 >conftest.err
16489   rm -f conftest.er1
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
16497 else
16498   echo "$as_me: failed program was:" >&5
16499 sed 's/^/| /' conftest.$ac_ext >&5
16500
16501         ac_header_compiler=no
16502 fi
16503
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; }
16507
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
16512 /* confdefs.h.  */
16513 _ACEOF
16514 cat confdefs.h >>conftest.$ac_ext
16515 cat >>conftest.$ac_ext <<_ACEOF
16516 /* end confdefs.h.  */
16517 #include <$ac_header>
16518 _ACEOF
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;;
16523 esac
16524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16525   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16526   ac_status=$?
16527   grep -v '^ *+' conftest.er1 >conftest.err
16528   rm -f conftest.er1
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
16534        }; then
16535   ac_header_preproc=yes
16536 else
16537   echo "$as_me: failed program was:" >&5
16538 sed 's/^/| /' conftest.$ac_ext >&5
16539
16540   ac_header_preproc=no
16541 fi
16542
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; }
16546
16547 # So?  What about this header?
16548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16549   yes:no: )
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
16555     ;;
16556   no: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;}
16569
16570     ;;
16571 esac
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
16576 else
16577   eval "$as_ac_Header=\$ac_header_preproc"
16578 fi
16579 ac_res=`eval echo '${'$as_ac_Header'}'`
16580                { echo "$as_me:$LINENO: result: $ac_res" >&5
16581 echo "${ECHO_T}$ac_res" >&6; }
16582
16583 fi
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
16587 _ACEOF
16588
16589 fi
16590
16591 done
16592
16593
16594
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
16599 else
16600   cat >conftest.$ac_ext <<_ACEOF
16601 /* confdefs.h.  */
16602 _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>
16608 int
16609 main ()
16610 {
16611 struct sockaddr_storage ss; int i = ss.ss_family;
16612   ;
16613   return 0;
16614 }
16615 _ACEOF
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;;
16621 esac
16622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16623   (eval "$ac_compile") 2>conftest.er1
16624   ac_status=$?
16625   grep -v '^ *+' conftest.er1 >conftest.err
16626   rm -f conftest.er1
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
16634 else
16635   echo "$as_me: failed program was:" >&5
16636 sed 's/^/| /' conftest.$ac_ext >&5
16637
16638         ipv6_cv_ss_family=no
16639 fi
16640
16641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16642 fi
16643 if test $ipv6_cv_ss_family = yes; then
16644
16645 cat >>confdefs.h <<\_ACEOF
16646 #define HAVE_SS_FAMILY
16647 _ACEOF
16648
16649 else
16650   :
16651 fi
16652 { echo "$as_me:$LINENO: result: $ipv6_cv_ss_family" >&5
16653 echo "${ECHO_T}$ipv6_cv_ss_family" >&6; }
16654
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
16659 else
16660   cat >conftest.$ac_ext <<_ACEOF
16661 /* confdefs.h.  */
16662 _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>
16668 int
16669 main ()
16670 {
16671 struct sockaddr sa; int i = sa.sa_len;
16672   ;
16673   return 0;
16674 }
16675 _ACEOF
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;;
16681 esac
16682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16683   (eval "$ac_compile") 2>conftest.er1
16684   ac_status=$?
16685   grep -v '^ *+' conftest.er1 >conftest.err
16686   rm -f conftest.er1
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
16693   ipv6_cv_sa_len=yes
16694 else
16695   echo "$as_me: failed program was:" >&5
16696 sed 's/^/| /' conftest.$ac_ext >&5
16697
16698         ipv6_cv_sa_len=no
16699 fi
16700
16701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16702 fi
16703 if test $ipv6_cv_sa_len = yes; then
16704
16705 cat >>confdefs.h <<\_ACEOF
16706 #define HAVE_SOCKADDR_SA_LEN
16707 _ACEOF
16708
16709 else
16710   :
16711 fi
16712 { echo "$as_me:$LINENO: result: $ipv6_cv_sa_len" >&5
16713 echo "${ECHO_T}$ipv6_cv_sa_len" >&6; }
16714
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
16719 else
16720   cat >conftest.$ac_ext <<_ACEOF
16721 /* confdefs.h.  */
16722 _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>
16728 int
16729 main ()
16730 {
16731 socklen_t len = 0;
16732   ;
16733   return 0;
16734 }
16735 _ACEOF
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;;
16741 esac
16742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16743   (eval "$ac_link") 2>conftest.er1
16744   ac_status=$?
16745   grep -v '^ *+' conftest.er1 >conftest.err
16746   rm -f conftest.er1
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
16755 else
16756   echo "$as_me: failed program was:" >&5
16757 sed 's/^/| /' conftest.$ac_ext >&5
16758
16759         ipv6_cv_socklen_t=no
16760 fi
16761
16762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16763       conftest$ac_exeext conftest.$ac_ext
16764 fi
16765 if test $ipv6_cv_socklen_t = yes; then
16766
16767 cat >>confdefs.h <<\_ACEOF
16768 #define HAVE_SOCKLEN_T
16769 _ACEOF
16770
16771 else
16772   :
16773 fi
16774 { echo "$as_me:$LINENO: result: $ipv6_cv_socklen_t" >&5
16775 echo "${ECHO_T}$ipv6_cv_socklen_t" >&6; }
16776
16777 #AC_FUNC_MEMCMP
16778 #AC_FUNC_VPRINTF
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796 for ac_func in gethostname getdomainname getpwnam getspnam gettimeofday inet_aton memcpy mkdir select socket strchr strdup strerror strspn strstr strtol jrand48
16797 do
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
16803 else
16804   cat >conftest.$ac_ext <<_ACEOF
16805 /* confdefs.h.  */
16806 _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
16813
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.  */
16818
16819 #ifdef __STDC__
16820 # include <limits.h>
16821 #else
16822 # include <assert.h>
16823 #endif
16824
16825 #undef $ac_func
16826
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.  */
16830 #ifdef __cplusplus
16831 extern "C"
16832 #endif
16833 char $ac_func ();
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
16838 choke me
16839 #endif
16840
16841 int
16842 main ()
16843 {
16844 return $ac_func ();
16845   ;
16846   return 0;
16847 }
16848 _ACEOF
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;;
16854 esac
16855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16856   (eval "$ac_link") 2>conftest.er1
16857   ac_status=$?
16858   grep -v '^ *+' conftest.er1 >conftest.err
16859   rm -f conftest.er1
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"
16868 else
16869   echo "$as_me: failed program was:" >&5
16870 sed 's/^/| /' conftest.$ac_ext >&5
16871
16872         eval "$as_ac_var=no"
16873 fi
16874
16875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16876       conftest$ac_exeext conftest.$ac_ext
16877 fi
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
16884 _ACEOF
16885
16886 fi
16887 done
16888
16889
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;}
16893
16894 cat >>confdefs.h <<\_ACEOF
16895 #define KRB4_IGNORE_IP_ADDRESS
16896 _ACEOF
16897
16898
16899 cat >>confdefs.h <<_ACEOF
16900 #define PREFER_MECH "KERBEROS_V4"
16901 _ACEOF
16902
16903 fi
16904
16905 cat >conftest.$ac_ext <<_ACEOF
16906 /* confdefs.h.  */
16907 _ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h.  */
16911 #include <sys/socket.h>
16912
16913 _ACEOF
16914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16915   $EGREP "sockaddr_storage" >/dev/null 2>&1; then
16916
16917
16918 cat >>confdefs.h <<\_ACEOF
16919 #define HAVE_STRUCT_SOCKADDR_STORAGE
16920 _ACEOF
16921
16922 fi
16923 rm -f -r conftest*
16924
16925
16926
16927
16928 subdirs="$subdirs saslauthd"
16929
16930
16931
16932
16933
16934
16935
16936
16937 ac_config_headers="$ac_config_headers config.h"
16938
16939
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"
16941
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.
16948 #
16949 # config.status only pays attention to the cache file if you give it
16950 # the --recheck option to rerun configure.
16951 #
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.
16955
16956 _ACEOF
16957
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.
16963 (
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
16966     case $ac_val in #(
16967     *${as_nl}*)
16968       case $ac_var in #(
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;} ;;
16971       esac
16972       case $ac_var in #(
16973       _ | IFS | as_nl) ;; #(
16974       *) $as_unset $ac_var ;;
16975       esac ;;
16976     esac
16977   done
16978
16979   (set) 2>&1 |
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 \).
16984       sed -n \
16985         "s/'/'\\\\''/g;
16986           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16987       ;; #(
16988     *)
16989       # `set' quotes correctly as required by POSIX, so do not add quotes.
16990       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16991       ;;
16992     esac |
16993     sort
16994 ) |
16995   sed '
16996      /^ac_cv_env_/b end
16997      t clear
16998      :clear
16999      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17000      t end
17001      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17002      :end' >>confcache
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
17009   else
17010     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17011 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17012   fi
17013 fi
17014 rm -f confcache
17015
17016 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17017 # Let make expand exec_prefix.
17018 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17019
17020 DEFS=-DHAVE_CONFIG_H
17021
17022 ac_libobjs=
17023 ac_ltlibobjs=
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'
17032 done
17033 LIBOBJS=$ac_libobjs
17034
17035 LTLIBOBJS=$ac_ltlibobjs
17036
17037
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; }; }
17044 fi
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; }; }
17051 fi
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; }; }
17058 fi
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; }; }
17065 fi
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; }; }
17072 fi
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; }; }
17079 fi
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; }; }
17086 fi
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; }; }
17093 fi
17094
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
17101 #! $SHELL
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.
17106
17107 debug=false
17108 ac_cs_recheck=false
17109 ac_cs_silent=false
17110 SHELL=\${CONFIG_SHELL-$SHELL}
17111 _ACEOF
17112
17113 cat >>$CONFIG_STATUS <<\_ACEOF
17114 ## --------------------- ##
17115 ## M4sh Initialization.  ##
17116 ## --------------------- ##
17117
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
17121   emulate sh
17122   NULLCMD=:
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
17127 else
17128   case `(set -o) 2>/dev/null` in
17129   *posix*) set -o posix ;;
17130 esac
17131
17132 fi
17133
17134
17135
17136
17137 # PATH needs CR
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
17144
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
17149   chmod +x conf$$.sh
17150   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17151     PATH_SEPARATOR=';'
17152   else
17153     PATH_SEPARATOR=:
17154   fi
17155   rm -f conf$$.sh
17156 fi
17157
17158 # Support unset when possible.
17159 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17160   as_unset=unset
17161 else
17162   as_unset=false
17163 fi
17164
17165
17166 # IFS
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.)
17171 as_nl='
17172 '
17173 IFS=" ""        $as_nl"
17174
17175 # Find who we are.  Look in the path if we contain no directory separator.
17176 case $0 in
17177   *[\\/]* ) as_myself=$0 ;;
17178   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17179 for as_dir in $PATH
17180 do
17181   IFS=$as_save_IFS
17182   test -z "$as_dir" && as_dir=.
17183   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17184 done
17185 IFS=$as_save_IFS
17186
17187      ;;
17188 esac
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
17192   as_myself=$0
17193 fi
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; }
17197 fi
17198
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
17202 done
17203 PS1='$ '
17204 PS2='> '
17205 PS4='+ '
17206
17207 # NLS nuisances.
17208 for as_var in \
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
17212 do
17213   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17214     eval $as_var=C; export $as_var
17215   else
17216     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17217   fi
17218 done
17219
17220 # Required to use basename.
17221 if expr a : '\(a\)' >/dev/null 2>&1 &&
17222    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17223   as_expr=expr
17224 else
17225   as_expr=false
17226 fi
17227
17228 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17229   as_basename=basename
17230 else
17231   as_basename=false
17232 fi
17233
17234
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 ||
17240 echo X/"$0" |
17241     sed '/^.*\/\([^/][^/]*\)\/*$/{
17242             s//\1/
17243             q
17244           }
17245           /^X\/\(\/\/\)$/{
17246             s//\1/
17247             q
17248           }
17249           /^X\/\(\/\).*/{
17250             s//\1/
17251             q
17252           }
17253           s/.*/./; q'`
17254
17255 # CDPATH.
17256 $as_unset CDPATH
17257
17258
17259
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" || {
17264
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.  :-)
17275   sed -n '
17276     p
17277     /[$]LINENO/=
17278   ' <$as_myself |
17279     sed '
17280       s/[$]LINENO.*/&-/
17281       t lineno
17282       b
17283       :lineno
17284       N
17285       :loop
17286       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17287       t loop
17288       s/-\n.*//
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; }; }
17293
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.
17299   exit
17300 }
17301
17302
17303 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17304   as_dirname=dirname
17305 else
17306   as_dirname=false
17307 fi
17308
17309 ECHO_C= ECHO_N= ECHO_T=
17310 case `echo -n x` in
17311 -n*)
17312   case `echo 'x\c'` in
17313   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17314   *)   ECHO_C='\c';;
17315   esac;;
17316 *)
17317   ECHO_N='-n';;
17318 esac
17319
17320 if expr a : '\(a\)' >/dev/null 2>&1 &&
17321    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17322   as_expr=expr
17323 else
17324   as_expr=false
17325 fi
17326
17327 rm -f conf$$ conf$$.exe conf$$.file
17328 if test -d conf$$.dir; then
17329   rm -f conf$$.dir/conf$$.file
17330 else
17331   rm -f conf$$.dir
17332   mkdir conf$$.dir
17333 fi
17334 echo >conf$$.file
17335 if ln -s conf$$.file conf$$ 2>/dev/null; then
17336   as_ln_s='ln -s'
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 ||
17342     as_ln_s='cp -p'
17343 elif ln conf$$.file conf$$ 2>/dev/null; then
17344   as_ln_s=ln
17345 else
17346   as_ln_s='cp -p'
17347 fi
17348 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17349 rmdir conf$$.dir 2>/dev/null
17350
17351 if mkdir -p . 2>/dev/null; then
17352   as_mkdir_p=:
17353 else
17354   test -d ./-p && rmdir ./-p
17355   as_mkdir_p=false
17356 fi
17357
17358 if test -x / >/dev/null 2>&1; then
17359   as_test_x='test -x'
17360 else
17361   if ls -dL / >/dev/null 2>&1; then
17362     as_ls_L_option=L
17363   else
17364     as_ls_L_option=
17365   fi
17366   as_test_x='
17367     eval sh -c '\''
17368       if test -d "$1"; then
17369         test -d "$1/.";
17370       else
17371         case $1 in
17372         -*)set "./$1";;
17373         esac;
17374         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17375         ???[sx]*):;;*)false;;esac;fi
17376     '\'' sh
17377   '
17378 fi
17379 as_executable_p=$as_test_x
17380
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'"
17383
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'"
17386
17387
17388 exec 6>&1
17389
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.
17393 ac_log="
17394 This file was extended by $as_me, which was
17395 generated by GNU Autoconf 2.61.  Invocation command line was
17396
17397   CONFIG_FILES    = $CONFIG_FILES
17398   CONFIG_HEADERS  = $CONFIG_HEADERS
17399   CONFIG_LINKS    = $CONFIG_LINKS
17400   CONFIG_COMMANDS = $CONFIG_COMMANDS
17401   $ $0 $@
17402
17403 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17404 "
17405
17406 _ACEOF
17407
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"
17413
17414 _ACEOF
17415
17416 cat >>$CONFIG_STATUS <<\_ACEOF
17417 ac_cs_usage="\
17418 \`$as_me' instantiates files from templates according to the
17419 current configuration.
17420
17421 Usage: $0 [OPTIONS] [FILE]...
17422
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
17432
17433 Configuration files:
17434 $config_files
17435
17436 Configuration headers:
17437 $config_headers
17438
17439 Configuration commands:
17440 $config_commands
17441
17442 Report bugs to <bug-autoconf@gnu.org>."
17443
17444 _ACEOF
17445 cat >>$CONFIG_STATUS <<_ACEOF
17446 ac_cs_version="\\
17447 config.status
17448 configured by $0, generated by GNU Autoconf 2.61,
17449   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17450
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."
17454
17455 ac_pwd='$ac_pwd'
17456 srcdir='$srcdir'
17457 INSTALL='$INSTALL'
17458 MKDIR_P='$MKDIR_P'
17459 _ACEOF
17460
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.
17464 ac_need_defaults=:
17465 while test $# != 0
17466 do
17467   case $1 in
17468   --*=*)
17469     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17470     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17471     ac_shift=:
17472     ;;
17473   *)
17474     ac_option=$1
17475     ac_optarg=$2
17476     ac_shift=shift
17477     ;;
17478   esac
17479
17480   case $ac_option in
17481   # Handling of the options.
17482   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17483     ac_cs_recheck=: ;;
17484   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17485     echo "$ac_cs_version"; exit ;;
17486   --debug | --debu | --deb | --de | --d | -d )
17487     debug=: ;;
17488   --file | --fil | --fi | --f )
17489     $ac_shift
17490     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17491     ac_need_defaults=false;;
17492   --header | --heade | --head | --hea )
17493     $ac_shift
17494     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17495     ac_need_defaults=false;;
17496   --he | --h)
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)
17505     ac_cs_silent=: ;;
17506
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; }; } ;;
17511
17512   *) ac_config_targets="$ac_config_targets $1"
17513      ac_need_defaults=false ;;
17514
17515   esac
17516   shift
17517 done
17518
17519 ac_configure_extra_args=
17520
17521 if $ac_cs_silent; then
17522   exec 6>/dev/null
17523   ac_configure_extra_args="$ac_configure_extra_args --silent"
17524 fi
17525
17526 _ACEOF
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
17533 fi
17534
17535 _ACEOF
17536 cat >>$CONFIG_STATUS <<\_ACEOF
17537 exec 5>>config.log
17538 {
17539   echo
17540   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17541 ## Running $as_me. ##
17542 _ASBOX
17543   echo "$ac_log"
17544 } >&5
17545
17546 _ACEOF
17547 cat >>$CONFIG_STATUS <<_ACEOF
17548 #
17549 # INIT-COMMANDS
17550 #
17551 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17552
17553 _ACEOF
17554
17555 cat >>$CONFIG_STATUS <<\_ACEOF
17556
17557 # Handling of arguments.
17558 for ac_config_target in $ac_config_targets
17559 do
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" ;;
17580
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; }; };;
17584   esac
17585 done
17586
17587
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
17596 fi
17597
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'.
17604 $debug ||
17605 {
17606   tmp=
17607   trap 'exit_status=$?
17608   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17609 ' 0
17610   trap '{ (exit 1); exit 1; }' 1 2 13 15
17611 }
17612 # Create a (secure) tmp directory for tmp files.
17613
17614 {
17615   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17616   test -n "$tmp" && test -d "$tmp"
17617 }  ||
17618 {
17619   tmp=./conf$$-$RANDOM
17620   (umask 077 && mkdir "$tmp")
17621 } ||
17622 {
17623    echo "$me: cannot create a temporary directory in ." >&2
17624    { (exit 1); exit 1; }
17625 }
17626
17627 #
17628 # Set up the sed scripts for CONFIG_FILES section.
17629 #
17630
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
17634
17635 _ACEOF
17636
17637
17638
17639 ac_delim='%!_!# '
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
17707 AWK!$AWK$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
17713 CC!$CC$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
17729 CPP!$CPP$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
17739 _ACEOF
17740
17741   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
17742     break
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; }; }
17747   else
17748     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17749   fi
17750 done
17751
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`
17756 fi
17757
17758 cat >>$CONFIG_STATUS <<_ACEOF
17759 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
17760 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17761 _ACEOF
17762 sed '
17763 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17764 s/^/s,@/; s/!/@,|#_!!_#|/
17765 :n
17766 t n
17767 s/'"$ac_delim"'$/,g/; t
17768 s/$/\\/; p
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
17773 CEOF$ac_eof
17774 _ACEOF
17775
17776
17777 ac_delim='%!_!# '
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
17797 NM!$NM$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
17845 _ACEOF
17846
17847   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 65; then
17848     break
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; }; }
17853   else
17854     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17855   fi
17856 done
17857
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`
17862 fi
17863
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
17867 _ACEOF
17868 sed '
17869 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17870 s/^/s,@/; s/!/@,|#_!!_#|/
17871 :n
17872 t n
17873 s/'"$ac_delim"'$/,g/; t
17874 s/$/\\/; p
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
17879 :end
17880 s/|#_!!_#|//g
17881 CEOF$ac_eof
17882 _ACEOF
17883
17884
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}:*/:/
17893 s/:*@srcdir@:*/:/
17894 s/^\([^=]*=[     ]*\):*/\1/
17895 s/:*$//
17896 s/^[^=]*=[       ]*$//
17897 }'
17898 fi
17899
17900 cat >>$CONFIG_STATUS <<\_ACEOF
17901 fi # test -n "$CONFIG_FILES"
17902
17903
17904 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
17905 do
17906   case $ac_tag in
17907   :[FHLC]) ac_mode=$ac_tag; continue;;
17908   esac
17909   case $ac_mode$ac_tag in
17910   :[FHL]*:*);;
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;;
17916   esac
17917   ac_save_IFS=$IFS
17918   IFS=:
17919   set x $ac_tag
17920   IFS=$ac_save_IFS
17921   shift
17922   ac_file=$1
17923   shift
17924
17925   case $ac_mode in
17926   :L) ac_source=$1;;
17927   :[FH])
17928     ac_file_inputs=
17929     for ac_f
17930     do
17931       case $ac_f 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 `:'.
17936          test -f "$ac_f" ||
17937            case $ac_f in
17938            [\\/$]*) false;;
17939            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17940            esac ||
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; }; };;
17944       esac
17945       ac_file_inputs="$ac_file_inputs $ac_f"
17946     done
17947
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;}
17957     fi
17958
17959     case $ac_tag in
17960     *:-:* | *:-) cat >"$tmp/stdin";;
17961     esac
17962     ;;
17963   esac
17964
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 ||
17970 echo X"$ac_file" |
17971     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17972             s//\1/
17973             q
17974           }
17975           /^X\(\/\/\)[^/].*/{
17976             s//\1/
17977             q
17978           }
17979           /^X\(\/\/\)$/{
17980             s//\1/
17981             q
17982           }
17983           /^X\(\/\).*/{
17984             s//\1/
17985             q
17986           }
17987           s/.*/./; q'`
17988   { as_dir="$ac_dir"
17989   case $as_dir in #(
17990   -*) as_dir=./$as_dir;;
17991   esac
17992   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17993     as_dirs=
17994     while :; do
17995       case $as_dir in #(
17996       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17997       *) as_qdir=$as_dir;;
17998       esac
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 ||
18005 echo X"$as_dir" |
18006     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18007             s//\1/
18008             q
18009           }
18010           /^X\(\/\/\)[^/].*/{
18011             s//\1/
18012             q
18013           }
18014           /^X\(\/\/\)$/{
18015             s//\1/
18016             q
18017           }
18018           /^X\(\/\).*/{
18019             s//\1/
18020             q
18021           }
18022           s/.*/./; q'`
18023       test -d "$as_dir" && break
18024     done
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; }; }; }
18029   ac_builddir=.
18030
18031 case "$ac_dir" in
18032 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18033 *)
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/ ;;
18040   esac ;;
18041 esac
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
18046
18047 case $srcdir in
18048   .)  # We are building in place.
18049     ac_srcdir=.
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 ;;
18060 esac
18061 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18062
18063
18064   case $ac_mode in
18065   :F)
18066   #
18067   # CONFIG_FILE
18068   #
18069
18070   case $INSTALL in
18071   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18072   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18073   esac
18074   ac_MKDIR_P=$MKDIR_P
18075   case $MKDIR_P in
18076   [\\/$]* | ?:[\\/]* ) ;;
18077   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18078   esac
18079 _ACEOF
18080
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=
18085
18086 case `sed -n '/datarootdir/ {
18087   p
18088   q
18089 }
18090 /@datadir@/p
18091 /@docdir@/p
18092 /@infodir@/p
18093 /@localedir@/p
18094 /@mandir@/p
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;}
18100 _ACEOF
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' ;;
18109 esac
18110 _ACEOF
18111
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
18116   sed "$ac_vpsub
18117 $extrasub
18118 _ACEOF
18119 cat >>$CONFIG_STATUS <<\_ACEOF
18120 :t
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
18135
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;}
18143
18144   rm -f "$tmp/stdin"
18145   case $ac_file in
18146   -) cat "$tmp/out"; rm -f "$tmp/out";;
18147   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
18148   esac
18149  ;;
18150   :H)
18151   #
18152   # CONFIG_HEADER
18153   #
18154 _ACEOF
18155
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'
18173 ac_dC=' '
18174 ac_dD=' ,'
18175
18176 uniq confdefs.h |
18177   sed -n '
18178         t rset
18179         :rset
18180         s/^[     ]*#[    ]*define[       ][      ]*//
18181         t ok
18182         d
18183         :ok
18184         s/[\\&,]/\\&/g
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
18188
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.)
18194 echo 's/ $//
18195 s,^[     #]*u.*,/* & */,' >>conftest.defines
18196
18197 # Break up conftest.defines:
18198 ac_max_sed_lines=50
18199
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"
18203 # et cetera.
18204 ac_in='$ac_file_inputs'
18205 ac_out='"$tmp/out1"'
18206 ac_nxt='"$tmp/out2"'
18207
18208 while :
18209 do
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
18216 b
18217 :def
18218 _ACEOF
18219   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
18220   echo 'CEOF
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
18227 done
18228 rm -f conftest.defines conftest.tail
18229
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;}
18238     else
18239       rm -f $ac_file
18240       mv "$tmp/config.h" $ac_file
18241     fi
18242   else
18243     echo "/* $configure_input  */"
18244     cat "$ac_result"
18245   fi
18246   rm -f "$tmp/out12"
18247 # Compute $ac_file's index in $config_headers.
18248 _am_stamp_count=1
18249 for _am_header in $config_headers :; do
18250   case $_am_header in
18251     $ac_file | $ac_file:* )
18252       break ;;
18253     * )
18254       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18255   esac
18256 done
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 ||
18262 echo X$ac_file |
18263     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18264             s//\1/
18265             q
18266           }
18267           /^X\(\/\/\)[^/].*/{
18268             s//\1/
18269             q
18270           }
18271           /^X\(\/\/\)$/{
18272             s//\1/
18273             q
18274           }
18275           /^X\(\/\).*/{
18276             s//\1/
18277             q
18278           }
18279           s/.*/./; q'`/stamp-h$_am_stamp_count
18280  ;;
18281
18282   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
18283 echo "$as_me: executing $ac_file commands" >&6;}
18284  ;;
18285   esac
18286
18287
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 ||
18305 echo X"$mf" |
18306     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18307             s//\1/
18308             q
18309           }
18310           /^X\(\/\/\)[^/].*/{
18311             s//\1/
18312             q
18313           }
18314           /^X\(\/\/\)$/{
18315             s//\1/
18316             q
18317           }
18318           /^X\(\/\).*/{
18319             s//\1/
18320             q
18321           }
18322           s/.*/./; q'`
18323   else
18324     continue
18325   fi
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
18338   # expansion.
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 ||
18349 echo X"$file" |
18350     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18351             s//\1/
18352             q
18353           }
18354           /^X\(\/\/\)[^/].*/{
18355             s//\1/
18356             q
18357           }
18358           /^X\(\/\/\)$/{
18359             s//\1/
18360             q
18361           }
18362           /^X\(\/\).*/{
18363             s//\1/
18364             q
18365           }
18366           s/.*/./; q'`
18367     { as_dir=$dirpart/$fdir
18368   case $as_dir in #(
18369   -*) as_dir=./$as_dir;;
18370   esac
18371   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18372     as_dirs=
18373     while :; do
18374       case $as_dir in #(
18375       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
18376       *) as_qdir=$as_dir;;
18377       esac
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 ||
18384 echo X"$as_dir" |
18385     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18386             s//\1/
18387             q
18388           }
18389           /^X\(\/\/\)[^/].*/{
18390             s//\1/
18391             q
18392           }
18393           /^X\(\/\/\)$/{
18394             s//\1/
18395             q
18396           }
18397           /^X\(\/\).*/{
18398             s//\1/
18399             q
18400           }
18401           s/.*/./; q'`
18402       test -d "$as_dir" && break
18403     done
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"
18410   done
18411 done
18412  ;;
18413
18414   esac
18415 done # for ac_tag
18416
18417
18418 { (exit 0); exit 0; }
18419 _ACEOF
18420 chmod +x $CONFIG_STATUS
18421 ac_clean_files=$ac_clean_files_save
18422
18423
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
18433   ac_cs_success=:
18434   ac_config_status_args=
18435   test "$silent" = yes &&
18436     ac_config_status_args="$ac_config_status_args --quiet"
18437   exec 5>/dev/null
18438   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18439   exec 5>>config.log
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; }
18443 fi
18444
18445 #
18446 # CONFIG_SUBDIRS section.
18447 #
18448 if test "$no_recursion" != yes; then
18449
18450   # Remove --cache-file and --srcdir arguments so they do not pile up.
18451   ac_sub_configure_args=
18452   ac_prev=
18453   eval "set x $ac_configure_args"
18454   shift
18455   for ac_arg
18456   do
18457     if test -n "$ac_prev"; then
18458       ac_prev=
18459       continue
18460     fi
18461     case $ac_arg in
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=* \
18467     | --c=*)
18468       ;;
18469     --config-cache | -C)
18470       ;;
18471     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18472       ac_prev=srcdir ;;
18473     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18474       ;;
18475     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18476       ac_prev=prefix ;;
18477     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18478       ;;
18479     *)
18480       case $ac_arg in
18481       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18482       esac
18483       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
18484     esac
18485   done
18486
18487   # Always prepend --prefix to ensure using the same prefix
18488   # in subdir configurations.
18489   ac_arg="--prefix=$prefix"
18490   case $ac_arg in
18491   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18492   esac
18493   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
18494
18495   # Pass --silent
18496   if test "$silent" = yes; then
18497     ac_sub_configure_args="--silent $ac_sub_configure_args"
18498   fi
18499
18500   ac_popdir=`pwd`
18501   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18502
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
18506
18507     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
18508     echo "$as_me:$LINENO: $ac_msg" >&5
18509     echo "$ac_msg" >&6
18510     { as_dir="$ac_dir"
18511   case $as_dir in #(
18512   -*) as_dir=./$as_dir;;
18513   esac
18514   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18515     as_dirs=
18516     while :; do
18517       case $as_dir in #(
18518       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
18519       *) as_qdir=$as_dir;;
18520       esac
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 ||
18527 echo X"$as_dir" |
18528     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18529             s//\1/
18530             q
18531           }
18532           /^X\(\/\/\)[^/].*/{
18533             s//\1/
18534             q
18535           }
18536           /^X\(\/\/\)$/{
18537             s//\1/
18538             q
18539           }
18540           /^X\(\/\).*/{
18541             s//\1/
18542             q
18543           }
18544           s/.*/./; q'`
18545       test -d "$as_dir" && break
18546     done
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; }; }; }
18551     ac_builddir=.
18552
18553 case "$ac_dir" in
18554 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18555 *)
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/ ;;
18562   esac ;;
18563 esac
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
18568
18569 case $srcdir in
18570   .)  # We are building in place.
18571     ac_srcdir=.
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 ;;
18582 esac
18583 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18584
18585
18586     cd "$ac_dir"
18587
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
18596     else
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;}
18599       ac_sub_configure=
18600     fi
18601
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 ;;
18609       esac
18610
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; }; }
18619     fi
18620
18621     cd "$ac_popdir"
18622   done
18623 fi
18624
18625
18626 echo Configuration Complete.  Type \'make\' to build.