try to get libtool building
[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
218 (
219   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
220     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
221     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
222     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
223     PATH=/empty FPATH=/empty; export PATH FPATH
224     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
225       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" )) || { (exit 1); exit 1; }
226 ") 2> /dev/null; then
227   :
228 else
229   as_candidate_shells=
230     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
231 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
232 do
233   IFS=$as_save_IFS
234   test -z "$as_dir" && as_dir=.
235   case $as_dir in
236          /*)
237            for as_base in sh bash ksh sh5; do
238              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
239            done;;
240        esac
241 done
242 IFS=$as_save_IFS
243
244
245       for as_shell in $as_candidate_shells $SHELL; do
246          # Try only shells that exist, to save several forks.
247          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
248                 { ("$as_shell") 2> /dev/null <<\_ASEOF
249 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
250   emulate sh
251   NULLCMD=:
252   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
253   # is contrary to our usage.  Disable this feature.
254   alias -g '${1+"$@"}'='"$@"'
255   setopt NO_GLOB_SUBST
256 else
257   case `(set -o) 2>/dev/null` in
258   *posix*) set -o posix ;;
259 esac
260
261 fi
262
263
264 :
265 _ASEOF
266 }; then
267   CONFIG_SHELL=$as_shell
268                as_have_required=yes
269                if { "$as_shell" 2> /dev/null <<\_ASEOF
270 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
271   emulate sh
272   NULLCMD=:
273   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
274   # is contrary to our usage.  Disable this feature.
275   alias -g '${1+"$@"}'='"$@"'
276   setopt NO_GLOB_SUBST
277 else
278   case `(set -o) 2>/dev/null` in
279   *posix*) set -o posix ;;
280 esac
281
282 fi
283
284
285 :
286 (as_func_return () {
287   (exit $1)
288 }
289 as_func_success () {
290   as_func_return 0
291 }
292 as_func_failure () {
293   as_func_return 1
294 }
295 as_func_ret_success () {
296   return 0
297 }
298 as_func_ret_failure () {
299   return 1
300 }
301
302 exitcode=0
303 if as_func_success; then
304   :
305 else
306   exitcode=1
307   echo as_func_success failed.
308 fi
309
310 if as_func_failure; then
311   exitcode=1
312   echo as_func_failure succeeded.
313 fi
314
315 if as_func_ret_success; then
316   :
317 else
318   exitcode=1
319   echo as_func_ret_success failed.
320 fi
321
322 if as_func_ret_failure; then
323   exitcode=1
324   echo as_func_ret_failure succeeded.
325 fi
326
327 if ( set x; as_func_ret_success y && test x = "$1" ); then
328   :
329 else
330   exitcode=1
331   echo positional parameters were not saved.
332 fi
333
334 test $exitcode = 0) || { (exit 1); exit 1; }
335
336 (
337   as_lineno_1=$LINENO
338   as_lineno_2=$LINENO
339   test "x$as_lineno_1" != "x$as_lineno_2" &&
340   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
341
342 (
343   test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
344     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
345     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
346     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
347     PATH=/empty FPATH=/empty; export PATH FPATH
348     test "X`printf %s $ECHO`" = "X$ECHO" \
349       || test "X`print -r -- $ECHO`" = "X$ECHO" )) || { (exit 1); exit 1; }
350
351 _ASEOF
352 }; then
353   break
354 fi
355
356 fi
357
358       done
359
360       if test "x$CONFIG_SHELL" != x; then
361   for as_var in BASH_ENV ENV
362         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
363         done
364         export CONFIG_SHELL
365         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
366 fi
367
368
369     if test $as_have_required = no; then
370   echo This script requires a shell more modern than all the
371       echo shells that I found on your system.  Please install a
372       echo modern shell, or manually run the script under such a
373       echo shell if you do have one.
374       { (exit 1); exit 1; }
375 fi
376
377
378 fi
379
380 fi
381
382
383
384 (eval "as_func_return () {
385   (exit \$1)
386 }
387 as_func_success () {
388   as_func_return 0
389 }
390 as_func_failure () {
391   as_func_return 1
392 }
393 as_func_ret_success () {
394   return 0
395 }
396 as_func_ret_failure () {
397   return 1
398 }
399
400 exitcode=0
401 if as_func_success; then
402   :
403 else
404   exitcode=1
405   echo as_func_success failed.
406 fi
407
408 if as_func_failure; then
409   exitcode=1
410   echo as_func_failure succeeded.
411 fi
412
413 if as_func_ret_success; then
414   :
415 else
416   exitcode=1
417   echo as_func_ret_success failed.
418 fi
419
420 if as_func_ret_failure; then
421   exitcode=1
422   echo as_func_ret_failure succeeded.
423 fi
424
425 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
426   :
427 else
428   exitcode=1
429   echo positional parameters were not saved.
430 fi
431
432 test \$exitcode = 0") || {
433   echo No shell found that supports shell functions.
434   echo Please tell autoconf@gnu.org about your system,
435   echo including any error possibly output before this
436   echo message
437 }
438
439
440
441   as_lineno_1=$LINENO
442   as_lineno_2=$LINENO
443   test "x$as_lineno_1" != "x$as_lineno_2" &&
444   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
445
446   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
447   # uniformly replaced by the line number.  The first 'sed' inserts a
448   # line-number line after each line using $LINENO; the second 'sed'
449   # does the real work.  The second script uses 'N' to pair each
450   # line-number line with the line containing $LINENO, and appends
451   # trailing '-' during substitution so that $LINENO is not a special
452   # case at line end.
453   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
454   # scripts with optimization help from Paolo Bonzini.  Blame Lee
455   # E. McMahon (1931-1989) for sed's syntax.  :-)
456   sed -n '
457     p
458     /[$]LINENO/=
459   ' <$as_myself |
460     sed '
461       s/[$]LINENO.*/&-/
462       t lineno
463       b
464       :lineno
465       N
466       :loop
467       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
468       t loop
469       s/-\n.*//
470     ' >$as_me.lineno &&
471   chmod +x "$as_me.lineno" ||
472     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
473    { (exit 1); exit 1; }; }
474
475   # Don't try to exec as it changes $[0], causing all sort of problems
476   # (the dirname of $[0] is not the place where we might find the
477   # original and so on.  Autoconf is especially sensitive to this).
478   . "./$as_me.lineno"
479   # Exit status is that of the last command.
480   exit
481 }
482
483
484 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
485   as_dirname=dirname
486 else
487   as_dirname=false
488 fi
489
490 ECHO_C= ECHO_N= ECHO_T=
491 case `echo -n x` in
492 -n*)
493   case `echo 'x\c'` in
494   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
495   *)   ECHO_C='\c';;
496   esac;;
497 *)
498   ECHO_N='-n';;
499 esac
500
501 if expr a : '\(a\)' >/dev/null 2>&1 &&
502    test "X`expr 00001 : '.*\(...\)'`" = X001; then
503   as_expr=expr
504 else
505   as_expr=false
506 fi
507
508 rm -f conf$$ conf$$.exe conf$$.file
509 if test -d conf$$.dir; then
510   rm -f conf$$.dir/conf$$.file
511 else
512   rm -f conf$$.dir
513   mkdir conf$$.dir
514 fi
515 echo >conf$$.file
516 if ln -s conf$$.file conf$$ 2>/dev/null; then
517   as_ln_s='ln -s'
518   # ... but there are two gotchas:
519   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
520   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
521   # In both cases, we have to default to `cp -p'.
522   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
523     as_ln_s='cp -p'
524 elif ln conf$$.file conf$$ 2>/dev/null; then
525   as_ln_s=ln
526 else
527   as_ln_s='cp -p'
528 fi
529 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
530 rmdir conf$$.dir 2>/dev/null
531
532 if mkdir -p . 2>/dev/null; then
533   as_mkdir_p=:
534 else
535   test -d ./-p && rmdir ./-p
536   as_mkdir_p=false
537 fi
538
539 if test -x / >/dev/null 2>&1; then
540   as_test_x='test -x'
541 else
542   if ls -dL / >/dev/null 2>&1; then
543     as_ls_L_option=L
544   else
545     as_ls_L_option=
546   fi
547   as_test_x='
548     eval sh -c '\''
549       if test -d "$1"; then
550         test -d "$1/.";
551       else
552         case $1 in
553         -*)set "./$1";;
554         esac;
555         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
556         ???[sx]*):;;*)false;;esac;fi
557     '\'' sh
558   '
559 fi
560 as_executable_p=$as_test_x
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568
569 SHELL=${CONFIG_SHELL-/bin/sh}
570
571
572 exec 7<&0 </dev/null 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590 SHELL=${CONFIG_SHELL-/bin/sh}
591
592 # Identity of this package.
593 PACKAGE_NAME=
594 PACKAGE_TARNAME=
595 PACKAGE_VERSION=
596 PACKAGE_STRING=
597 PACKAGE_BUGREPORT=
598
599 ac_unique_file="lib/saslint.h"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 #  include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #  include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='SHELL
637 PATH_SEPARATOR
638 PACKAGE_NAME
639 PACKAGE_TARNAME
640 PACKAGE_VERSION
641 PACKAGE_STRING
642 PACKAGE_BUGREPORT
643 exec_prefix
644 prefix
645 program_transform_name
646 bindir
647 sbindir
648 libexecdir
649 datarootdir
650 datadir
651 sysconfdir
652 sharedstatedir
653 localstatedir
654 includedir
655 oldincludedir
656 docdir
657 infodir
658 htmldir
659 dvidir
660 pdfdir
661 psdir
662 libdir
663 localedir
664 mandir
665 DEFS
666 ECHO_C
667 ECHO_N
668 ECHO_T
669 LIBS
670 build_alias
671 host_alias
672 target_alias
673 build
674 build_cpu
675 build_vendor
676 build_os
677 host
678 host_cpu
679 host_vendor
680 host_os
681 target
682 target_cpu
683 target_vendor
684 target_os
685 INSTALL_PROGRAM
686 INSTALL_SCRIPT
687 INSTALL_DATA
688 am__isrc
689 CYGPATH_W
690 PACKAGE
691 VERSION
692 ACLOCAL
693 AUTOCONF
694 AUTOMAKE
695 AUTOHEADER
696 MAKEINFO
697 install_sh
698 STRIP
699 INSTALL_STRIP_PROGRAM
700 mkdir_p
701 AWK
702 SET_MAKE
703 am__leading_dot
704 AMTAR
705 am__tar
706 am__untar
707 CC
708 CFLAGS
709 LDFLAGS
710 CPPFLAGS
711 ac_ct_CC
712 EXEEXT
713 OBJEXT
714 DEPDIR
715 am__include
716 am__quote
717 AMDEP_TRUE
718 AMDEP_FALSE
719 AMDEPBACKSLASH
720 CCDEPMODE
721 am__fastdepCC_TRUE
722 am__fastdepCC_FALSE
723 CPP
724 LN_S
725 LIBTOOL
726 SED
727 GREP
728 EGREP
729 FGREP
730 LD
731 DUMPBIN
732 ac_ct_DUMPBIN
733 NM
734 OBJDUMP
735 AR
736 RANLIB
737 DSYMUTIL
738 NMEDIT
739 LIPO
740 OTOOL
741 OTOOL64
742 PURECOV
743 PURIFY
744 JAVAC
745 JAVAH
746 JAVADOC
747 JAVA_TRUE
748 JAVA_FALSE
749 JAVA_INCLUDES
750 JAVAROOT
751 SAMPLE_TRUE
752 SAMPLE_FALSE
753 LIB_SOCKET
754 SASL_DB_UTILS
755 SASL_DB_MANS
756 SASL_DB_BACKEND
757 SASL_DB_BACKEND_STATIC
758 SASL_DB_INC
759 SASL_DB_LIB
760 NO_SASL_DB_MANS_TRUE
761 NO_SASL_DB_MANS_FALSE
762 SASL_DL_LIB
763 SASLAUTHD_TRUE
764 SASLAUTHD_FALSE
765 PWCHECKMETH
766 PWCHECK_TRUE
767 PWCHECK_FALSE
768 IPCTYPE
769 LIB_DOOR
770 CMU_LIB_SUBDIR
771 LIB_DES
772 OTP_LIBS
773 SRP_LIBS
774 SASL_KRB_LIB
775 LIB_CRYPT
776 GSSAPI_LIBS
777 GSSAPIBASE_LIBS
778 PLAIN_LIBS
779 NTLM_LIBS
780 PASSDSS_LIBS
781 LIB_MYSQL
782 LIB_PGSQL
783 LIB_SQLITE
784 LIB_LDAP
785 SASL_MECHS
786 SASL_STATIC_SRCS
787 SASL_STATIC_OBJS
788 SASL_STATIC_LIBS
789 plugindir
790 configdir
791 MACOSX_TRUE
792 MACOSX_FALSE
793 DMALLOC_LIBS
794 SFIO_INC_FLAGS
795 SFIO_LIB_FLAGS
796 SMTPTEST_PROGRAM
797 SASL_UTIL_LIBS_EXTRA
798 SASL_UTIL_HEADERS_EXTRA
799 LIBOBJS
800 GETSUBOPT
801 SNPRINTFOBJS
802 LTSNPRINTFOBJS
803 GETADDRINFOOBJS
804 LTGETADDRINFOOBJS
805 GETNAMEINFOOBJS
806 LTGETNAMEINFOOBJS
807 LTLIBOBJS
808 DIRS
809 subdirs'
810 ac_subst_files=''
811       ac_precious_vars='build_alias
812 host_alias
813 target_alias
814 CC
815 CFLAGS
816 LDFLAGS
817 LIBS
818 CPPFLAGS
819 CPP'
820 ac_subdirs_all='saslauthd'
821
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
827 cache_file=/dev/null
828 exec_prefix=NONE
829 no_create=
830 no_recursion=
831 prefix=NONE
832 program_prefix=NONE
833 program_suffix=NONE
834 program_transform_name=s,x,x,
835 silent=
836 site=
837 srcdir=
838 verbose=
839 x_includes=NONE
840 x_libraries=NONE
841
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 includedir='${prefix}/include'
857 oldincludedir='/usr/include'
858 docdir='${datarootdir}/doc/${PACKAGE}'
859 infodir='${datarootdir}/info'
860 htmldir='${docdir}'
861 dvidir='${docdir}'
862 pdfdir='${docdir}'
863 psdir='${docdir}'
864 libdir='${exec_prefix}/lib'
865 localedir='${datarootdir}/locale'
866 mandir='${datarootdir}/man'
867
868 ac_prev=
869 ac_dashdash=
870 for ac_option
871 do
872   # If the previous option needs an argument, assign it.
873   if test -n "$ac_prev"; then
874     eval $ac_prev=\$ac_option
875     ac_prev=
876     continue
877   fi
878
879   case $ac_option in
880   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881   *)    ac_optarg=yes ;;
882   esac
883
884   # Accept the important Cygnus configure options, so we can diagnose typos.
885
886   case $ac_dashdash$ac_option in
887   --)
888     ac_dashdash=yes ;;
889
890   -bindir | --bindir | --bindi | --bind | --bin | --bi)
891     ac_prev=bindir ;;
892   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893     bindir=$ac_optarg ;;
894
895   -build | --build | --buil | --bui | --bu)
896     ac_prev=build_alias ;;
897   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898     build_alias=$ac_optarg ;;
899
900   -cache-file | --cache-file | --cache-fil | --cache-fi \
901   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902     ac_prev=cache_file ;;
903   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905     cache_file=$ac_optarg ;;
906
907   --config-cache | -C)
908     cache_file=config.cache ;;
909
910   -datadir | --datadir | --datadi | --datad)
911     ac_prev=datadir ;;
912   -datadir=* | --datadir=* | --datadi=* | --datad=*)
913     datadir=$ac_optarg ;;
914
915   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916   | --dataroo | --dataro | --datar)
917     ac_prev=datarootdir ;;
918   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920     datarootdir=$ac_optarg ;;
921
922   -disable-* | --disable-*)
923     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924     # Reject names that are not valid shell variable names.
925     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
926       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927    { (exit 1); exit 1; }; }
928     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
929     eval enable_$ac_feature=no ;;
930
931   -docdir | --docdir | --docdi | --doc | --do)
932     ac_prev=docdir ;;
933   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934     docdir=$ac_optarg ;;
935
936   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937     ac_prev=dvidir ;;
938   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939     dvidir=$ac_optarg ;;
940
941   -enable-* | --enable-*)
942     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943     # Reject names that are not valid shell variable names.
944     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
945       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
946    { (exit 1); exit 1; }; }
947     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
948     eval enable_$ac_feature=\$ac_optarg ;;
949
950   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952   | --exec | --exe | --ex)
953     ac_prev=exec_prefix ;;
954   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956   | --exec=* | --exe=* | --ex=*)
957     exec_prefix=$ac_optarg ;;
958
959   -gas | --gas | --ga | --g)
960     # Obsolete; use --with-gas.
961     with_gas=yes ;;
962
963   -help | --help | --hel | --he | -h)
964     ac_init_help=long ;;
965   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966     ac_init_help=recursive ;;
967   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968     ac_init_help=short ;;
969
970   -host | --host | --hos | --ho)
971     ac_prev=host_alias ;;
972   -host=* | --host=* | --hos=* | --ho=*)
973     host_alias=$ac_optarg ;;
974
975   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976     ac_prev=htmldir ;;
977   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978   | --ht=*)
979     htmldir=$ac_optarg ;;
980
981   -includedir | --includedir | --includedi | --included | --include \
982   | --includ | --inclu | --incl | --inc)
983     ac_prev=includedir ;;
984   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985   | --includ=* | --inclu=* | --incl=* | --inc=*)
986     includedir=$ac_optarg ;;
987
988   -infodir | --infodir | --infodi | --infod | --info | --inf)
989     ac_prev=infodir ;;
990   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991     infodir=$ac_optarg ;;
992
993   -libdir | --libdir | --libdi | --libd)
994     ac_prev=libdir ;;
995   -libdir=* | --libdir=* | --libdi=* | --libd=*)
996     libdir=$ac_optarg ;;
997
998   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999   | --libexe | --libex | --libe)
1000     ac_prev=libexecdir ;;
1001   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002   | --libexe=* | --libex=* | --libe=*)
1003     libexecdir=$ac_optarg ;;
1004
1005   -localedir | --localedir | --localedi | --localed | --locale)
1006     ac_prev=localedir ;;
1007   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008     localedir=$ac_optarg ;;
1009
1010   -localstatedir | --localstatedir | --localstatedi | --localstated \
1011   | --localstate | --localstat | --localsta | --localst | --locals)
1012     ac_prev=localstatedir ;;
1013   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015     localstatedir=$ac_optarg ;;
1016
1017   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018     ac_prev=mandir ;;
1019   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020     mandir=$ac_optarg ;;
1021
1022   -nfp | --nfp | --nf)
1023     # Obsolete; use --without-fp.
1024     with_fp=no ;;
1025
1026   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027   | --no-cr | --no-c | -n)
1028     no_create=yes ;;
1029
1030   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032     no_recursion=yes ;;
1033
1034   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036   | --oldin | --oldi | --old | --ol | --o)
1037     ac_prev=oldincludedir ;;
1038   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041     oldincludedir=$ac_optarg ;;
1042
1043   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044     ac_prev=prefix ;;
1045   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046     prefix=$ac_optarg ;;
1047
1048   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049   | --program-pre | --program-pr | --program-p)
1050     ac_prev=program_prefix ;;
1051   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053     program_prefix=$ac_optarg ;;
1054
1055   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056   | --program-suf | --program-su | --program-s)
1057     ac_prev=program_suffix ;;
1058   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060     program_suffix=$ac_optarg ;;
1061
1062   -program-transform-name | --program-transform-name \
1063   | --program-transform-nam | --program-transform-na \
1064   | --program-transform-n | --program-transform- \
1065   | --program-transform | --program-transfor \
1066   | --program-transfo | --program-transf \
1067   | --program-trans | --program-tran \
1068   | --progr-tra | --program-tr | --program-t)
1069     ac_prev=program_transform_name ;;
1070   -program-transform-name=* | --program-transform-name=* \
1071   | --program-transform-nam=* | --program-transform-na=* \
1072   | --program-transform-n=* | --program-transform-=* \
1073   | --program-transform=* | --program-transfor=* \
1074   | --program-transfo=* | --program-transf=* \
1075   | --program-trans=* | --program-tran=* \
1076   | --progr-tra=* | --program-tr=* | --program-t=*)
1077     program_transform_name=$ac_optarg ;;
1078
1079   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080     ac_prev=pdfdir ;;
1081   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082     pdfdir=$ac_optarg ;;
1083
1084   -psdir | --psdir | --psdi | --psd | --ps)
1085     ac_prev=psdir ;;
1086   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087     psdir=$ac_optarg ;;
1088
1089   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090   | -silent | --silent | --silen | --sile | --sil)
1091     silent=yes ;;
1092
1093   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094     ac_prev=sbindir ;;
1095   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096   | --sbi=* | --sb=*)
1097     sbindir=$ac_optarg ;;
1098
1099   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101   | --sharedst | --shareds | --shared | --share | --shar \
1102   | --sha | --sh)
1103     ac_prev=sharedstatedir ;;
1104   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107   | --sha=* | --sh=*)
1108     sharedstatedir=$ac_optarg ;;
1109
1110   -site | --site | --sit)
1111     ac_prev=site ;;
1112   -site=* | --site=* | --sit=*)
1113     site=$ac_optarg ;;
1114
1115   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116     ac_prev=srcdir ;;
1117   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118     srcdir=$ac_optarg ;;
1119
1120   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121   | --syscon | --sysco | --sysc | --sys | --sy)
1122     ac_prev=sysconfdir ;;
1123   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125     sysconfdir=$ac_optarg ;;
1126
1127   -target | --target | --targe | --targ | --tar | --ta | --t)
1128     ac_prev=target_alias ;;
1129   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130     target_alias=$ac_optarg ;;
1131
1132   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133     verbose=yes ;;
1134
1135   -version | --version | --versio | --versi | --vers | -V)
1136     ac_init_version=: ;;
1137
1138   -with-* | --with-*)
1139     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140     # Reject names that are not valid shell variable names.
1141     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1142       { echo "$as_me: error: invalid package name: $ac_package" >&2
1143    { (exit 1); exit 1; }; }
1144     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1145     eval with_$ac_package=\$ac_optarg ;;
1146
1147   -without-* | --without-*)
1148     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149     # Reject names that are not valid shell variable names.
1150     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1151       { echo "$as_me: error: invalid package name: $ac_package" >&2
1152    { (exit 1); exit 1; }; }
1153     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1154     eval with_$ac_package=no ;;
1155
1156   --x)
1157     # Obsolete; use --with-x.
1158     with_x=yes ;;
1159
1160   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161   | --x-incl | --x-inc | --x-in | --x-i)
1162     ac_prev=x_includes ;;
1163   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165     x_includes=$ac_optarg ;;
1166
1167   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169     ac_prev=x_libraries ;;
1170   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172     x_libraries=$ac_optarg ;;
1173
1174   -*) { echo "$as_me: error: unrecognized option: $ac_option
1175 Try \`$0 --help' for more information." >&2
1176    { (exit 1); exit 1; }; }
1177     ;;
1178
1179   *=*)
1180     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181     # Reject names that are not valid shell variable names.
1182     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1183       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1184    { (exit 1); exit 1; }; }
1185     eval $ac_envvar=\$ac_optarg
1186     export $ac_envvar ;;
1187
1188   *)
1189     # FIXME: should be removed in autoconf 3.0.
1190     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1194     ;;
1195
1196   esac
1197 done
1198
1199 if test -n "$ac_prev"; then
1200   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201   { echo "$as_me: error: missing argument to $ac_option" >&2
1202    { (exit 1); exit 1; }; }
1203 fi
1204
1205 # Be sure to have absolute directory names.
1206 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207                 datadir sysconfdir sharedstatedir localstatedir includedir \
1208                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209                 libdir localedir mandir
1210 do
1211   eval ac_val=\$$ac_var
1212   case $ac_val in
1213     [\\/$]* | ?:[\\/]* )  continue;;
1214     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215   esac
1216   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1217    { (exit 1); exit 1; }; }
1218 done
1219
1220 # There might be people who depend on the old broken behavior: `$host'
1221 # used to hold the argument of --host etc.
1222 # FIXME: To remove some day.
1223 build=$build_alias
1224 host=$host_alias
1225 target=$target_alias
1226
1227 # FIXME: To remove some day.
1228 if test "x$host_alias" != x; then
1229   if test "x$build_alias" = x; then
1230     cross_compiling=maybe
1231     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1232     If a cross compiler is detected then cross compile mode will be used." >&2
1233   elif test "x$build_alias" != "x$host_alias"; then
1234     cross_compiling=yes
1235   fi
1236 fi
1237
1238 ac_tool_prefix=
1239 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240
1241 test "$silent" = yes && exec 6>/dev/null
1242
1243
1244 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245 ac_ls_di=`ls -di .` &&
1246 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1247   { echo "$as_me: error: Working directory cannot be determined" >&2
1248    { (exit 1); exit 1; }; }
1249 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250   { echo "$as_me: error: pwd does not report name of working directory" >&2
1251    { (exit 1); exit 1; }; }
1252
1253
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256   ac_srcdir_defaulted=yes
1257   # Try the directory containing this script, then the parent directory.
1258   ac_confdir=`$as_dirname -- "$0" ||
1259 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260          X"$0" : 'X\(//\)[^/]' \| \
1261          X"$0" : 'X\(//\)$' \| \
1262          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1263 echo X"$0" |
1264     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\/\)[^/].*/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\/\)$/{
1273             s//\1/
1274             q
1275           }
1276           /^X\(\/\).*/{
1277             s//\1/
1278             q
1279           }
1280           s/.*/./; q'`
1281   srcdir=$ac_confdir
1282   if test ! -r "$srcdir/$ac_unique_file"; then
1283     srcdir=..
1284   fi
1285 else
1286   ac_srcdir_defaulted=no
1287 fi
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1291    { (exit 1); exit 1; }; }
1292 fi
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 ac_abs_confdir=`(
1295         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1296    { (exit 1); exit 1; }; }
1297         pwd)`
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300   srcdir=.
1301 fi
1302 # Remove unnecessary trailing slashes from srcdir.
1303 # Double slashes in file names in object file debugging info
1304 # mess up M-x gdb in Emacs.
1305 case $srcdir in
1306 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 esac
1308 for ac_var in $ac_precious_vars; do
1309   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310   eval ac_env_${ac_var}_value=\$${ac_var}
1311   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 done
1314
1315 #
1316 # Report the --help message.
1317 #
1318 if test "$ac_init_help" = "long"; then
1319   # Omit some internal or obsolete options to make the list less imposing.
1320   # This message is too long to be a string in the A/UX 3.1 sh.
1321   cat <<_ACEOF
1322 \`configure' configures this package to adapt to many kinds of systems.
1323
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
1325
1326 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327 VAR=VALUE.  See below for descriptions of some of the useful variables.
1328
1329 Defaults for the options are specified in brackets.
1330
1331 Configuration:
1332   -h, --help              display this help and exit
1333       --help=short        display options specific to this package
1334       --help=recursive    display the short help of all the included packages
1335   -V, --version           display version information and exit
1336   -q, --quiet, --silent   do not print \`checking...' messages
1337       --cache-file=FILE   cache test results in FILE [disabled]
1338   -C, --config-cache      alias for \`--cache-file=config.cache'
1339   -n, --no-create         do not create output files
1340       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1341
1342 Installation directories:
1343   --prefix=PREFIX         install architecture-independent files in PREFIX
1344                           [$ac_default_prefix]
1345   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1346                           [PREFIX]
1347
1348 By default, \`make install' will install all the files in
1349 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1350 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351 for instance \`--prefix=\$HOME'.
1352
1353 For better control, use the options below.
1354
1355 Fine tuning of the installation directories:
1356   --bindir=DIR           user executables [EPREFIX/bin]
1357   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1358   --libexecdir=DIR       program executables [EPREFIX/libexec]
1359   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1360   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1361   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1362   --libdir=DIR           object code libraries [EPREFIX/lib]
1363   --includedir=DIR       C header files [PREFIX/include]
1364   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1365   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1366   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1367   --infodir=DIR          info documentation [DATAROOTDIR/info]
1368   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1369   --mandir=DIR           man documentation [DATAROOTDIR/man]
1370   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1371   --htmldir=DIR          html documentation [DOCDIR]
1372   --dvidir=DIR           dvi documentation [DOCDIR]
1373   --pdfdir=DIR           pdf documentation [DOCDIR]
1374   --psdir=DIR            ps documentation [DOCDIR]
1375 _ACEOF
1376
1377   cat <<\_ACEOF
1378
1379 Program names:
1380   --program-prefix=PREFIX            prepend PREFIX to installed program names
1381   --program-suffix=SUFFIX            append SUFFIX to installed program names
1382   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1383
1384 System types:
1385   --build=BUILD     configure for building on BUILD [guessed]
1386   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1387   --target=TARGET   configure for building compilers for TARGET [HOST]
1388 _ACEOF
1389 fi
1390
1391 if test -n "$ac_init_help"; then
1392
1393   cat <<\_ACEOF
1394
1395 Optional Features:
1396   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1397   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1398   --enable-cmulocal       enable local mods for CMU [[no]]
1399   --enable-sample         compile sample code [[yes]]
1400   --disable-dependency-tracking  speeds up one-time build
1401   --enable-dependency-tracking   do not reject slow dependency extractors
1402   --enable-static[=PKGS]  build static libraries [default=no]
1403   --enable-shared[=PKGS]  build shared libraries [default=yes]
1404   --enable-fast-install[=PKGS]
1405                           optimize for fast installation [default=yes]
1406   --disable-libtool-lock  avoid locking (might break parallel builds)
1407   --enable-staticdlopen   try dynamic plugins when we are a static libsasl [no]
1408   --enable-java           compile Java support [no]
1409   --enable-keep-db-open   keep handle to Berkeley DB open for improved performance [no]
1410   --enable-alwaystrue     enable the alwaystrue password verifier (discouraged)
1411   --enable-checkapop      enable use of sasl_checkapop [yes]
1412   --enable-cram           enable CRAM-MD5 authentication [yes]
1413   --enable-digest         enable DIGEST-MD5 authentication [yes]
1414   --enable-otp            enable OTP authentication [yes]
1415   --enable-srp            enable SRP authentication [no]
1416   --enable-srp-setpass    enable setting SRP secrets with saslpasswd [no]
1417   --enable-krb4           enable KERBEROS_V4 authentication [no]
1418   --enable-gssapi=<DIR>   enable GSSAPI authentication [yes]
1419   --enable-gss_mutexes     use mutexes around calls to the GSS library
1420   --enable-plain          enable PLAIN authentication yes
1421   --enable-anon           enable ANONYMOUS authentication [yes]
1422   --enable-login          enable unsupported LOGIN authentication [no]
1423   --enable-ntlm           enable unsupported NTLM authentication [no]
1424   --enable-passdss        enable PASSDSS authentication (experimental) [no]
1425   --enable-sql            enable SQL auxprop [no]
1426   --enable-ldapdb         enable LDAPDB plugin no
1427   --disable-macos-framework       disable building and installing replacement SASL2 Framework for MacOS X-provided SASL Framework [no]
1428
1429 Optional Packages:
1430   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1431   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1432
1433   --with-pic              try to use only PIC/non-PIC objects [default=use
1434                           both]
1435   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1436   --with-purecov          link with purecov
1437   --with-purify           link with purify
1438   --with-javabase=PATH    set path to find jni.h in /usr/java/include
1439   --with-dbpath=PATH      set the DB path to use /etc/sasldb2
1440   --with-dblib=DBLIB      set the DB library to use berkeley
1441   --with-bdb-libdir=DIR   Berkeley DB lib files are in DIR
1442   --with-bdb-incdir=DIR   Berkeley DB include files are in DIR
1443   --with-gdbm=PATH        use gdbm from PATH
1444   --with-devrandom=PATH   set the path to /dev/random [/dev/random]
1445   --with-pam=DIR          use PAM (rooted in DIR) [yes]
1446   --with-saslauthd=DIR    enable use of the saslauth daemon using state dir DIR
1447   --with-authdaemond=PATH enable use of authdaemon with default socket=PATH [yes]
1448   --with-pwcheck=DIR     enable deprecated pwcheck daemon using statedir DIR
1449   --with-ipctype={unix,doors}    use ipctype [unix]
1450   --with-lib-subdir=DIR   Find libraries in DIR instead of lib
1451   --with-openssl=PATH     use OpenSSL from PATH
1452   --with-des=DIR          with DES (look in DIR) yes
1453   --with-opie=PATH        use OPIE (One Time Passwords in Everything) from PATH
1454   --with-gss_impl={heimdal|mit|cybersafe|seam|auto}
1455                           choose specific GSSAPI implementation [[auto]]
1456   --with-ldap=DIR         use LDAP (in DIR) for saslauthd no
1457   --with-mysql=PATH       use MySQL from PATH
1458   --with-pgsql=PATH       use PostgreSQL from PATH
1459   --with-sqlite=PATH       use SQLite from PATH
1460   --with-plugindir=DIR    set the directory where plugins will
1461                           be found [/usr/lib/sasl2]
1462    --with-configdir=DIR    set the directory where config files will
1463                           be found /usr/lib/sasl2
1464   --with-rc4              use internal rc4 routines [yes]
1465   --with-dmalloc=DIR      with DMALLOC support (for test applications) [no]
1466   --with-sfio=DIR         with SFIO support (for smtptest/libsfsasl) [no]
1467
1468 Some influential environment variables:
1469   CC          C compiler command
1470   CFLAGS      C compiler flags
1471   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1472               nonstandard directory <lib dir>
1473   LIBS        libraries to pass to the linker, e.g. -l<library>
1474   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1475               you have headers in a nonstandard directory <include dir>
1476   CPP         C preprocessor
1477
1478 Use these variables to override the choices made by `configure' or to help
1479 it to find libraries and programs with nonstandard names/locations.
1480
1481 _ACEOF
1482 ac_status=$?
1483 fi
1484
1485 if test "$ac_init_help" = "recursive"; then
1486   # If there are subdirs, report their specific --help.
1487   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488     test -d "$ac_dir" || continue
1489     ac_builddir=.
1490
1491 case "$ac_dir" in
1492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 *)
1494   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1495   # A ".." for each directory in $ac_dir_suffix.
1496   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1497   case $ac_top_builddir_sub in
1498   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1500   esac ;;
1501 esac
1502 ac_abs_top_builddir=$ac_pwd
1503 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504 # for backward compatibility:
1505 ac_top_builddir=$ac_top_build_prefix
1506
1507 case $srcdir in
1508   .)  # We are building in place.
1509     ac_srcdir=.
1510     ac_top_srcdir=$ac_top_builddir_sub
1511     ac_abs_top_srcdir=$ac_pwd ;;
1512   [\\/]* | ?:[\\/]* )  # Absolute name.
1513     ac_srcdir=$srcdir$ac_dir_suffix;
1514     ac_top_srcdir=$srcdir
1515     ac_abs_top_srcdir=$srcdir ;;
1516   *) # Relative name.
1517     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518     ac_top_srcdir=$ac_top_build_prefix$srcdir
1519     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1520 esac
1521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1522
1523     cd "$ac_dir" || { ac_status=$?; continue; }
1524     # Check for guested configure.
1525     if test -f "$ac_srcdir/configure.gnu"; then
1526       echo &&
1527       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528     elif test -f "$ac_srcdir/configure"; then
1529       echo &&
1530       $SHELL "$ac_srcdir/configure" --help=recursive
1531     else
1532       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1533     fi || ac_status=$?
1534     cd "$ac_pwd" || { ac_status=$?; break; }
1535   done
1536 fi
1537
1538 test -n "$ac_init_help" && exit $ac_status
1539 if $ac_init_version; then
1540   cat <<\_ACEOF
1541 configure
1542 generated by GNU Autoconf 2.61
1543
1544 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1545 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1546 This configure script is free software; the Free Software Foundation
1547 gives unlimited permission to copy, distribute and modify it.
1548 _ACEOF
1549   exit
1550 fi
1551 cat >config.log <<_ACEOF
1552 This file contains any messages produced by compilers while
1553 running configure, to aid debugging if configure makes a mistake.
1554
1555 It was created by $as_me, which was
1556 generated by GNU Autoconf 2.61.  Invocation command line was
1557
1558   $ $0 $@
1559
1560 _ACEOF
1561 exec 5>>config.log
1562 {
1563 cat <<_ASUNAME
1564 ## --------- ##
1565 ## Platform. ##
1566 ## --------- ##
1567
1568 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1569 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1570 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1571 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1572 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1573
1574 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1575 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1576
1577 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1578 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1579 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1580 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1581 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1582 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1583 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1584
1585 _ASUNAME
1586
1587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588 for as_dir in $PATH
1589 do
1590   IFS=$as_save_IFS
1591   test -z "$as_dir" && as_dir=.
1592   echo "PATH: $as_dir"
1593 done
1594 IFS=$as_save_IFS
1595
1596 } >&5
1597
1598 cat >&5 <<_ACEOF
1599
1600
1601 ## ----------- ##
1602 ## Core tests. ##
1603 ## ----------- ##
1604
1605 _ACEOF
1606
1607
1608 # Keep a trace of the command line.
1609 # Strip out --no-create and --no-recursion so they do not pile up.
1610 # Strip out --silent because we don't want to record it for future runs.
1611 # Also quote any args containing shell meta-characters.
1612 # Make two passes to allow for proper duplicate-argument suppression.
1613 ac_configure_args=
1614 ac_configure_args0=
1615 ac_configure_args1=
1616 ac_must_keep_next=false
1617 for ac_pass in 1 2
1618 do
1619   for ac_arg
1620   do
1621     case $ac_arg in
1622     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1623     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1624     | -silent | --silent | --silen | --sile | --sil)
1625       continue ;;
1626     *\'*)
1627       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1628     esac
1629     case $ac_pass in
1630     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1631     2)
1632       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1633       if test $ac_must_keep_next = true; then
1634         ac_must_keep_next=false # Got value, back to normal.
1635       else
1636         case $ac_arg in
1637           *=* | --config-cache | -C | -disable-* | --disable-* \
1638           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1639           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1640           | -with-* | --with-* | -without-* | --without-* | --x)
1641             case "$ac_configure_args0 " in
1642               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1643             esac
1644             ;;
1645           -* ) ac_must_keep_next=true ;;
1646         esac
1647       fi
1648       ac_configure_args="$ac_configure_args '$ac_arg'"
1649       ;;
1650     esac
1651   done
1652 done
1653 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1654 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1655
1656 # When interrupted or exit'd, cleanup temporary files, and complete
1657 # config.log.  We remove comments because anyway the quotes in there
1658 # would cause problems or look ugly.
1659 # WARNING: Use '\'' to represent an apostrophe within the trap.
1660 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1661 trap 'exit_status=$?
1662   # Save into config.log some information that might help in debugging.
1663   {
1664     echo
1665
1666     cat <<\_ASBOX
1667 ## ---------------- ##
1668 ## Cache variables. ##
1669 ## ---------------- ##
1670 _ASBOX
1671     echo
1672     # The following way of writing the cache mishandles newlines in values,
1673 (
1674   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1675     eval ac_val=\$$ac_var
1676     case $ac_val in #(
1677     *${as_nl}*)
1678       case $ac_var in #(
1679       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1680 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1681       esac
1682       case $ac_var in #(
1683       _ | IFS | as_nl) ;; #(
1684       *) $as_unset $ac_var ;;
1685       esac ;;
1686     esac
1687   done
1688   (set) 2>&1 |
1689     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1690     *${as_nl}ac_space=\ *)
1691       sed -n \
1692         "s/'\''/'\''\\\\'\'''\''/g;
1693           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1694       ;; #(
1695     *)
1696       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1697       ;;
1698     esac |
1699     sort
1700 )
1701     echo
1702
1703     cat <<\_ASBOX
1704 ## ----------------- ##
1705 ## Output variables. ##
1706 ## ----------------- ##
1707 _ASBOX
1708     echo
1709     for ac_var in $ac_subst_vars
1710     do
1711       eval ac_val=\$$ac_var
1712       case $ac_val in
1713       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1714       esac
1715       echo "$ac_var='\''$ac_val'\''"
1716     done | sort
1717     echo
1718
1719     if test -n "$ac_subst_files"; then
1720       cat <<\_ASBOX
1721 ## ------------------- ##
1722 ## File substitutions. ##
1723 ## ------------------- ##
1724 _ASBOX
1725       echo
1726       for ac_var in $ac_subst_files
1727       do
1728         eval ac_val=\$$ac_var
1729         case $ac_val in
1730         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1731         esac
1732         echo "$ac_var='\''$ac_val'\''"
1733       done | sort
1734       echo
1735     fi
1736
1737     if test -s confdefs.h; then
1738       cat <<\_ASBOX
1739 ## ----------- ##
1740 ## confdefs.h. ##
1741 ## ----------- ##
1742 _ASBOX
1743       echo
1744       cat confdefs.h
1745       echo
1746     fi
1747     test "$ac_signal" != 0 &&
1748       echo "$as_me: caught signal $ac_signal"
1749     echo "$as_me: exit $exit_status"
1750   } >&5
1751   rm -f core *.core core.conftest.* &&
1752     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1753     exit $exit_status
1754 ' 0
1755 for ac_signal in 1 2 13 15; do
1756   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1757 done
1758 ac_signal=0
1759
1760 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1761 rm -f -r conftest* confdefs.h
1762
1763 # Predefined preprocessor variables.
1764
1765 cat >>confdefs.h <<_ACEOF
1766 #define PACKAGE_NAME "$PACKAGE_NAME"
1767 _ACEOF
1768
1769
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1772 _ACEOF
1773
1774
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1777 _ACEOF
1778
1779
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_STRING "$PACKAGE_STRING"
1782 _ACEOF
1783
1784
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1787 _ACEOF
1788
1789
1790 # Let the site file select an alternate cache file if it wants to.
1791 # Prefer explicitly selected file to automatically selected ones.
1792 if test -n "$CONFIG_SITE"; then
1793   set x "$CONFIG_SITE"
1794 elif test "x$prefix" != xNONE; then
1795   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1796 else
1797   set x "$ac_default_prefix/share/config.site" \
1798         "$ac_default_prefix/etc/config.site"
1799 fi
1800 shift
1801 for ac_site_file
1802 do
1803   if test -r "$ac_site_file"; then
1804     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1805 echo "$as_me: loading site script $ac_site_file" >&6;}
1806     sed 's/^/| /' "$ac_site_file" >&5
1807     . "$ac_site_file"
1808   fi
1809 done
1810
1811 if test -r "$cache_file"; then
1812   # Some versions of bash will fail to source /dev/null (special
1813   # files actually), so we avoid doing that.
1814   if test -f "$cache_file"; then
1815     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1816 echo "$as_me: loading cache $cache_file" >&6;}
1817     case $cache_file in
1818       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1819       *)                      . "./$cache_file";;
1820     esac
1821   fi
1822 else
1823   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1824 echo "$as_me: creating cache $cache_file" >&6;}
1825   >$cache_file
1826 fi
1827
1828 # Check that the precious variables saved in the cache have kept the same
1829 # value.
1830 ac_cache_corrupted=false
1831 for ac_var in $ac_precious_vars; do
1832   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1833   eval ac_new_set=\$ac_env_${ac_var}_set
1834   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1835   eval ac_new_val=\$ac_env_${ac_var}_value
1836   case $ac_old_set,$ac_new_set in
1837     set,)
1838       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1839 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1840       ac_cache_corrupted=: ;;
1841     ,set)
1842       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1843 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1844       ac_cache_corrupted=: ;;
1845     ,);;
1846     *)
1847       if test "x$ac_old_val" != "x$ac_new_val"; then
1848         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1849 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1850         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1851 echo "$as_me:   former value:  $ac_old_val" >&2;}
1852         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1853 echo "$as_me:   current value: $ac_new_val" >&2;}
1854         ac_cache_corrupted=:
1855       fi;;
1856   esac
1857   # Pass precious variables to config.status.
1858   if test "$ac_new_set" = set; then
1859     case $ac_new_val in
1860     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1861     *) ac_arg=$ac_var=$ac_new_val ;;
1862     esac
1863     case " $ac_configure_args " in
1864       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1865       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1866     esac
1867   fi
1868 done
1869 if $ac_cache_corrupted; then
1870   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1871 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1872   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1873 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1874    { (exit 1); exit 1; }; }
1875 fi
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893 ac_ext=c
1894 ac_cpp='$CPP $CPPFLAGS'
1895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1898
1899
1900
1901
1902 if test $cache_file = "/dev/null"; then
1903 cache_file="./config.cache"
1904 if test -r "$cache_file"; then
1905   # Some versions of bash will fail to source /dev/null (special
1906   # files actually), so we avoid doing that.
1907   if test -f "$cache_file"; then
1908     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1909 echo "$as_me: loading cache $cache_file" >&6;}
1910     case $cache_file in
1911       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1912       *)                      . "./$cache_file";;
1913     esac
1914   fi
1915 else
1916   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1917 echo "$as_me: creating cache $cache_file" >&6;}
1918   >$cache_file
1919 fi
1920
1921 fi
1922
1923 ac_aux_dir=
1924 for ac_dir in config "$srcdir"/config; do
1925   if test -f "$ac_dir/install-sh"; then
1926     ac_aux_dir=$ac_dir
1927     ac_install_sh="$ac_aux_dir/install-sh -c"
1928     break
1929   elif test -f "$ac_dir/install.sh"; then
1930     ac_aux_dir=$ac_dir
1931     ac_install_sh="$ac_aux_dir/install.sh -c"
1932     break
1933   elif test -f "$ac_dir/shtool"; then
1934     ac_aux_dir=$ac_dir
1935     ac_install_sh="$ac_aux_dir/shtool install -c"
1936     break
1937   fi
1938 done
1939 if test -z "$ac_aux_dir"; then
1940   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1941 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1942    { (exit 1); exit 1; }; }
1943 fi
1944
1945 # These three variables are undocumented and unsupported,
1946 # and are intended to be withdrawn in a future Autoconf release.
1947 # They can cause serious problems if a builder's source tree is in a directory
1948 # whose full name contains unusual characters.
1949 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1950 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1951 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1952
1953
1954 # Make sure we can run config.sub.
1955 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1956   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1957 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1958    { (exit 1); exit 1; }; }
1959
1960 { echo "$as_me:$LINENO: checking build system type" >&5
1961 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1962 if test "${ac_cv_build+set}" = set; then
1963   echo $ECHO_N "(cached) $ECHO_C" >&6
1964 else
1965   ac_build_alias=$build_alias
1966 test "x$ac_build_alias" = x &&
1967   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1968 test "x$ac_build_alias" = x &&
1969   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1970 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1971    { (exit 1); exit 1; }; }
1972 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1973   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1974 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1975    { (exit 1); exit 1; }; }
1976
1977 fi
1978 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1979 echo "${ECHO_T}$ac_cv_build" >&6; }
1980 case $ac_cv_build in
1981 *-*-*) ;;
1982 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1983 echo "$as_me: error: invalid value of canonical build" >&2;}
1984    { (exit 1); exit 1; }; };;
1985 esac
1986 build=$ac_cv_build
1987 ac_save_IFS=$IFS; IFS='-'
1988 set x $ac_cv_build
1989 shift
1990 build_cpu=$1
1991 build_vendor=$2
1992 shift; shift
1993 # Remember, the first character of IFS is used to create $*,
1994 # except with old shells:
1995 build_os=$*
1996 IFS=$ac_save_IFS
1997 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1998
1999
2000 { echo "$as_me:$LINENO: checking host system type" >&5
2001 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2002 if test "${ac_cv_host+set}" = set; then
2003   echo $ECHO_N "(cached) $ECHO_C" >&6
2004 else
2005   if test "x$host_alias" = x; then
2006   ac_cv_host=$ac_cv_build
2007 else
2008   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2009     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2010 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2011    { (exit 1); exit 1; }; }
2012 fi
2013
2014 fi
2015 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2016 echo "${ECHO_T}$ac_cv_host" >&6; }
2017 case $ac_cv_host in
2018 *-*-*) ;;
2019 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2020 echo "$as_me: error: invalid value of canonical host" >&2;}
2021    { (exit 1); exit 1; }; };;
2022 esac
2023 host=$ac_cv_host
2024 ac_save_IFS=$IFS; IFS='-'
2025 set x $ac_cv_host
2026 shift
2027 host_cpu=$1
2028 host_vendor=$2
2029 shift; shift
2030 # Remember, the first character of IFS is used to create $*,
2031 # except with old shells:
2032 host_os=$*
2033 IFS=$ac_save_IFS
2034 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2035
2036
2037 { echo "$as_me:$LINENO: checking target system type" >&5
2038 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2039 if test "${ac_cv_target+set}" = set; then
2040   echo $ECHO_N "(cached) $ECHO_C" >&6
2041 else
2042   if test "x$target_alias" = x; then
2043   ac_cv_target=$ac_cv_host
2044 else
2045   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2046     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2047 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2048    { (exit 1); exit 1; }; }
2049 fi
2050
2051 fi
2052 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2053 echo "${ECHO_T}$ac_cv_target" >&6; }
2054 case $ac_cv_target in
2055 *-*-*) ;;
2056 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2057 echo "$as_me: error: invalid value of canonical target" >&2;}
2058    { (exit 1); exit 1; }; };;
2059 esac
2060 target=$ac_cv_target
2061 ac_save_IFS=$IFS; IFS='-'
2062 set x $ac_cv_target
2063 shift
2064 target_cpu=$1
2065 target_vendor=$2
2066 shift; shift
2067 # Remember, the first character of IFS is used to create $*,
2068 # except with old shells:
2069 target_os=$*
2070 IFS=$ac_save_IFS
2071 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2072
2073
2074 # The aliases save the names the user supplied, while $host etc.
2075 # will get canonicalized.
2076 test -n "$target_alias" &&
2077   test "$program_prefix$program_suffix$program_transform_name" = \
2078     NONENONEs,x,x, &&
2079   program_prefix=${target_alias}-
2080
2081 am__api_version='1.10'
2082
2083 # Find a good install program.  We prefer a C program (faster),
2084 # so one script is as good as another.  But avoid the broken or
2085 # incompatible versions:
2086 # SysV /etc/install, /usr/sbin/install
2087 # SunOS /usr/etc/install
2088 # IRIX /sbin/install
2089 # AIX /bin/install
2090 # AmigaOS /C/install, which installs bootblocks on floppy discs
2091 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2092 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2093 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2094 # OS/2's system install, which has a completely different semantic
2095 # ./install, which can be erroneously created by make from ./install.sh.
2096 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2097 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2098 if test -z "$INSTALL"; then
2099 if test "${ac_cv_path_install+set}" = set; then
2100   echo $ECHO_N "(cached) $ECHO_C" >&6
2101 else
2102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 for as_dir in $PATH
2104 do
2105   IFS=$as_save_IFS
2106   test -z "$as_dir" && as_dir=.
2107   # Account for people who put trailing slashes in PATH elements.
2108 case $as_dir/ in
2109   ./ | .// | /cC/* | \
2110   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2111   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2112   /usr/ucb/* ) ;;
2113   *)
2114     # OSF1 and SCO ODT 3.0 have their own names for install.
2115     # Don't use installbsd from OSF since it installs stuff as root
2116     # by default.
2117     for ac_prog in ginstall scoinst install; do
2118       for ac_exec_ext in '' $ac_executable_extensions; do
2119         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2120           if test $ac_prog = install &&
2121             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2122             # AIX install.  It has an incompatible calling convention.
2123             :
2124           elif test $ac_prog = install &&
2125             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2126             # program-specific install script used by HP pwplus--don't use.
2127             :
2128           else
2129             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2130             break 3
2131           fi
2132         fi
2133       done
2134     done
2135     ;;
2136 esac
2137 done
2138 IFS=$as_save_IFS
2139
2140
2141 fi
2142   if test "${ac_cv_path_install+set}" = set; then
2143     INSTALL=$ac_cv_path_install
2144   else
2145     # As a last resort, use the slow shell script.  Don't cache a
2146     # value for INSTALL within a source directory, because that will
2147     # break other packages using the cache if that directory is
2148     # removed, or if the value is a relative name.
2149     INSTALL=$ac_install_sh
2150   fi
2151 fi
2152 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2153 echo "${ECHO_T}$INSTALL" >&6; }
2154
2155 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2156 # It thinks the first close brace ends the variable substitution.
2157 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2158
2159 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2160
2161 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2162
2163 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2164 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2165 # Just in case
2166 sleep 1
2167 echo timestamp > conftest.file
2168 # Do `set' in a subshell so we don't clobber the current shell's
2169 # arguments.  Must try -L first in case configure is actually a
2170 # symlink; some systems play weird games with the mod time of symlinks
2171 # (eg FreeBSD returns the mod time of the symlink's containing
2172 # directory).
2173 if (
2174    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2175    if test "$*" = "X"; then
2176       # -L didn't work.
2177       set X `ls -t $srcdir/configure conftest.file`
2178    fi
2179    rm -f conftest.file
2180    if test "$*" != "X $srcdir/configure conftest.file" \
2181       && test "$*" != "X conftest.file $srcdir/configure"; then
2182
2183       # If neither matched, then we have a broken ls.  This can happen
2184       # if, for instance, CONFIG_SHELL is bash and it inherits a
2185       # broken ls alias from the environment.  This has actually
2186       # happened.  Such a system could not be considered "sane".
2187       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2188 alias in your environment" >&5
2189 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2190 alias in your environment" >&2;}
2191    { (exit 1); exit 1; }; }
2192    fi
2193
2194    test "$2" = conftest.file
2195    )
2196 then
2197    # Ok.
2198    :
2199 else
2200    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2201 Check your system clock" >&5
2202 echo "$as_me: error: newly created file is older than distributed files!
2203 Check your system clock" >&2;}
2204    { (exit 1); exit 1; }; }
2205 fi
2206 { echo "$as_me:$LINENO: result: yes" >&5
2207 echo "${ECHO_T}yes" >&6; }
2208 test "$program_prefix" != NONE &&
2209   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2210 # Use a double $ so make ignores it.
2211 test "$program_suffix" != NONE &&
2212   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2213 # Double any \ or $.  echo might interpret backslashes.
2214 # By default was `s,x,x', remove it if useless.
2215 cat <<\_ACEOF >conftest.sed
2216 s/[\\$]/&&/g;s/;s,x,x,$//
2217 _ACEOF
2218 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2219 rm -f conftest.sed
2220
2221 # expand $ac_aux_dir to an absolute path
2222 am_aux_dir=`cd $ac_aux_dir && pwd`
2223
2224 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2225 # Use eval to expand $SHELL
2226 if eval "$MISSING --run true"; then
2227   am_missing_run="$MISSING --run "
2228 else
2229   am_missing_run=
2230   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2231 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2232 fi
2233
2234 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2235 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2236 if test -z "$MKDIR_P"; then
2237   if test "${ac_cv_path_mkdir+set}" = set; then
2238   echo $ECHO_N "(cached) $ECHO_C" >&6
2239 else
2240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2242 do
2243   IFS=$as_save_IFS
2244   test -z "$as_dir" && as_dir=.
2245   for ac_prog in mkdir gmkdir; do
2246          for ac_exec_ext in '' $ac_executable_extensions; do
2247            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2248            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2249              'mkdir (GNU coreutils) '* | \
2250              'mkdir (coreutils) '* | \
2251              'mkdir (fileutils) '4.1*)
2252                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2253                break 3;;
2254            esac
2255          done
2256        done
2257 done
2258 IFS=$as_save_IFS
2259
2260 fi
2261
2262   if test "${ac_cv_path_mkdir+set}" = set; then
2263     MKDIR_P="$ac_cv_path_mkdir -p"
2264   else
2265     # As a last resort, use the slow shell script.  Don't cache a
2266     # value for MKDIR_P within a source directory, because that will
2267     # break other packages using the cache if that directory is
2268     # removed, or if the value is a relative name.
2269     test -d ./--version && rmdir ./--version
2270     MKDIR_P="$ac_install_sh -d"
2271   fi
2272 fi
2273 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2274 echo "${ECHO_T}$MKDIR_P" >&6; }
2275
2276 mkdir_p="$MKDIR_P"
2277 case $mkdir_p in
2278   [\\/$]* | ?:[\\/]*) ;;
2279   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2280 esac
2281
2282 for ac_prog in gawk mawk nawk awk
2283 do
2284   # Extract the first word of "$ac_prog", so it can be a program name with args.
2285 set dummy $ac_prog; ac_word=$2
2286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2288 if test "${ac_cv_prog_AWK+set}" = set; then
2289   echo $ECHO_N "(cached) $ECHO_C" >&6
2290 else
2291   if test -n "$AWK"; then
2292   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2293 else
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 for as_dir in $PATH
2296 do
2297   IFS=$as_save_IFS
2298   test -z "$as_dir" && as_dir=.
2299   for ac_exec_ext in '' $ac_executable_extensions; do
2300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2301     ac_cv_prog_AWK="$ac_prog"
2302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2303     break 2
2304   fi
2305 done
2306 done
2307 IFS=$as_save_IFS
2308
2309 fi
2310 fi
2311 AWK=$ac_cv_prog_AWK
2312 if test -n "$AWK"; then
2313   { echo "$as_me:$LINENO: result: $AWK" >&5
2314 echo "${ECHO_T}$AWK" >&6; }
2315 else
2316   { echo "$as_me:$LINENO: result: no" >&5
2317 echo "${ECHO_T}no" >&6; }
2318 fi
2319
2320
2321   test -n "$AWK" && break
2322 done
2323
2324 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2325 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2326 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2327 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2328   echo $ECHO_N "(cached) $ECHO_C" >&6
2329 else
2330   cat >conftest.make <<\_ACEOF
2331 SHELL = /bin/sh
2332 all:
2333         @echo '@@@%%%=$(MAKE)=@@@%%%'
2334 _ACEOF
2335 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2336 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2337   *@@@%%%=?*=@@@%%%*)
2338     eval ac_cv_prog_make_${ac_make}_set=yes;;
2339   *)
2340     eval ac_cv_prog_make_${ac_make}_set=no;;
2341 esac
2342 rm -f conftest.make
2343 fi
2344 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2345   { echo "$as_me:$LINENO: result: yes" >&5
2346 echo "${ECHO_T}yes" >&6; }
2347   SET_MAKE=
2348 else
2349   { echo "$as_me:$LINENO: result: no" >&5
2350 echo "${ECHO_T}no" >&6; }
2351   SET_MAKE="MAKE=${MAKE-make}"
2352 fi
2353
2354 rm -rf .tst 2>/dev/null
2355 mkdir .tst 2>/dev/null
2356 if test -d .tst; then
2357   am__leading_dot=.
2358 else
2359   am__leading_dot=_
2360 fi
2361 rmdir .tst 2>/dev/null
2362
2363 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2364   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2365   # is not polluted with repeated "-I."
2366   am__isrc=' -I$(srcdir)'
2367   # test to see if srcdir already configured
2368   if test -f $srcdir/config.status; then
2369     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2370 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2371    { (exit 1); exit 1; }; }
2372   fi
2373 fi
2374
2375 # test whether we have cygpath
2376 if test -z "$CYGPATH_W"; then
2377   if (cygpath --version) >/dev/null 2>/dev/null; then
2378     CYGPATH_W='cygpath -w'
2379   else
2380     CYGPATH_W=echo
2381   fi
2382 fi
2383
2384
2385 # Define the identity of the package.
2386  PACKAGE=cyrus-sasl
2387  VERSION=2.1.23
2388
2389
2390 cat >>confdefs.h <<_ACEOF
2391 #define PACKAGE "$PACKAGE"
2392 _ACEOF
2393
2394
2395 cat >>confdefs.h <<_ACEOF
2396 #define VERSION "$VERSION"
2397 _ACEOF
2398
2399 # Some tools Automake needs.
2400
2401 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2402
2403
2404 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2405
2406
2407 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2408
2409
2410 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2411
2412
2413 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2414
2415 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2416
2417 # Installed binaries are usually stripped using `strip' when the user
2418 # run `make install-strip'.  However `strip' might not be the right
2419 # tool to use in cross-compilation environments, therefore Automake
2420 # will honor the `STRIP' environment variable to overrule this program.
2421 if test "$cross_compiling" != no; then
2422   if test -n "$ac_tool_prefix"; then
2423   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2424 set dummy ${ac_tool_prefix}strip; ac_word=$2
2425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2427 if test "${ac_cv_prog_STRIP+set}" = set; then
2428   echo $ECHO_N "(cached) $ECHO_C" >&6
2429 else
2430   if test -n "$STRIP"; then
2431   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2432 else
2433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 for as_dir in $PATH
2435 do
2436   IFS=$as_save_IFS
2437   test -z "$as_dir" && as_dir=.
2438   for ac_exec_ext in '' $ac_executable_extensions; do
2439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2440     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2442     break 2
2443   fi
2444 done
2445 done
2446 IFS=$as_save_IFS
2447
2448 fi
2449 fi
2450 STRIP=$ac_cv_prog_STRIP
2451 if test -n "$STRIP"; then
2452   { echo "$as_me:$LINENO: result: $STRIP" >&5
2453 echo "${ECHO_T}$STRIP" >&6; }
2454 else
2455   { echo "$as_me:$LINENO: result: no" >&5
2456 echo "${ECHO_T}no" >&6; }
2457 fi
2458
2459
2460 fi
2461 if test -z "$ac_cv_prog_STRIP"; then
2462   ac_ct_STRIP=$STRIP
2463   # Extract the first word of "strip", so it can be a program name with args.
2464 set dummy strip; ac_word=$2
2465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2467 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2468   echo $ECHO_N "(cached) $ECHO_C" >&6
2469 else
2470   if test -n "$ac_ct_STRIP"; then
2471   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2472 else
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 for as_dir in $PATH
2475 do
2476   IFS=$as_save_IFS
2477   test -z "$as_dir" && as_dir=.
2478   for ac_exec_ext in '' $ac_executable_extensions; do
2479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480     ac_cv_prog_ac_ct_STRIP="strip"
2481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482     break 2
2483   fi
2484 done
2485 done
2486 IFS=$as_save_IFS
2487
2488 fi
2489 fi
2490 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2491 if test -n "$ac_ct_STRIP"; then
2492   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2493 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2494 else
2495   { echo "$as_me:$LINENO: result: no" >&5
2496 echo "${ECHO_T}no" >&6; }
2497 fi
2498
2499   if test "x$ac_ct_STRIP" = x; then
2500     STRIP=":"
2501   else
2502     case $cross_compiling:$ac_tool_warned in
2503 yes:)
2504 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2505 whose name does not start with the host triplet.  If you think this
2506 configuration is useful to you, please write to autoconf@gnu.org." >&5
2507 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2508 whose name does not start with the host triplet.  If you think this
2509 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2510 ac_tool_warned=yes ;;
2511 esac
2512     STRIP=$ac_ct_STRIP
2513   fi
2514 else
2515   STRIP="$ac_cv_prog_STRIP"
2516 fi
2517
2518 fi
2519 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2520
2521 # We need awk for the "check" target.  The system "awk" is bad on
2522 # some platforms.
2523 # Always define AMTAR for backward compatibility.
2524
2525 AMTAR=${AMTAR-"${am_missing_run}tar"}
2526
2527 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2528
2529
2530
2531
2532
2533
2534
2535         ACLOCAL="$ACLOCAL -I \$(top_srcdir)/cmulocal"
2536
2537
2538 # and include our config dir scripts
2539 ACLOCAL="$ACLOCAL -I \$(top_srcdir)/config"
2540
2541 DIRS=""
2542
2543 # Check whether --enable-cmulocal was given.
2544 if test "${enable_cmulocal+set}" = set; then
2545   enableval=$enable_cmulocal;
2546 else
2547   enable_cmulocal=no
2548 fi
2549
2550
2551 # Check whether --enable-sample was given.
2552 if test "${enable_sample+set}" = set; then
2553   enableval=$enable_sample; enable_sample=yes
2554 fi
2555
2556
2557 ac_ext=c
2558 ac_cpp='$CPP $CPPFLAGS'
2559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2562 if test -n "$ac_tool_prefix"; then
2563   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2564 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2567 if test "${ac_cv_prog_CC+set}" = set; then
2568   echo $ECHO_N "(cached) $ECHO_C" >&6
2569 else
2570   if test -n "$CC"; then
2571   ac_cv_prog_CC="$CC" # Let the user override the test.
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH
2575 do
2576   IFS=$as_save_IFS
2577   test -z "$as_dir" && as_dir=.
2578   for ac_exec_ext in '' $ac_executable_extensions; do
2579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2580     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2582     break 2
2583   fi
2584 done
2585 done
2586 IFS=$as_save_IFS
2587
2588 fi
2589 fi
2590 CC=$ac_cv_prog_CC
2591 if test -n "$CC"; then
2592   { echo "$as_me:$LINENO: result: $CC" >&5
2593 echo "${ECHO_T}$CC" >&6; }
2594 else
2595   { echo "$as_me:$LINENO: result: no" >&5
2596 echo "${ECHO_T}no" >&6; }
2597 fi
2598
2599
2600 fi
2601 if test -z "$ac_cv_prog_CC"; then
2602   ac_ct_CC=$CC
2603   # Extract the first word of "gcc", so it can be a program name with args.
2604 set dummy gcc; ac_word=$2
2605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2607 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2608   echo $ECHO_N "(cached) $ECHO_C" >&6
2609 else
2610   if test -n "$ac_ct_CC"; then
2611   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2612 else
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 for as_dir in $PATH
2615 do
2616   IFS=$as_save_IFS
2617   test -z "$as_dir" && as_dir=.
2618   for ac_exec_ext in '' $ac_executable_extensions; do
2619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2620     ac_cv_prog_ac_ct_CC="gcc"
2621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2622     break 2
2623   fi
2624 done
2625 done
2626 IFS=$as_save_IFS
2627
2628 fi
2629 fi
2630 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2631 if test -n "$ac_ct_CC"; then
2632   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2633 echo "${ECHO_T}$ac_ct_CC" >&6; }
2634 else
2635   { echo "$as_me:$LINENO: result: no" >&5
2636 echo "${ECHO_T}no" >&6; }
2637 fi
2638
2639   if test "x$ac_ct_CC" = x; then
2640     CC=""
2641   else
2642     case $cross_compiling:$ac_tool_warned in
2643 yes:)
2644 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2645 whose name does not start with the host triplet.  If you think this
2646 configuration is useful to you, please write to autoconf@gnu.org." >&5
2647 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2648 whose name does not start with the host triplet.  If you think this
2649 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2650 ac_tool_warned=yes ;;
2651 esac
2652     CC=$ac_ct_CC
2653   fi
2654 else
2655   CC="$ac_cv_prog_CC"
2656 fi
2657
2658 if test -z "$CC"; then
2659           if test -n "$ac_tool_prefix"; then
2660     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2661 set dummy ${ac_tool_prefix}cc; ac_word=$2
2662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2664 if test "${ac_cv_prog_CC+set}" = set; then
2665   echo $ECHO_N "(cached) $ECHO_C" >&6
2666 else
2667   if test -n "$CC"; then
2668   ac_cv_prog_CC="$CC" # Let the user override the test.
2669 else
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 for as_dir in $PATH
2672 do
2673   IFS=$as_save_IFS
2674   test -z "$as_dir" && as_dir=.
2675   for ac_exec_ext in '' $ac_executable_extensions; do
2676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2677     ac_cv_prog_CC="${ac_tool_prefix}cc"
2678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2679     break 2
2680   fi
2681 done
2682 done
2683 IFS=$as_save_IFS
2684
2685 fi
2686 fi
2687 CC=$ac_cv_prog_CC
2688 if test -n "$CC"; then
2689   { echo "$as_me:$LINENO: result: $CC" >&5
2690 echo "${ECHO_T}$CC" >&6; }
2691 else
2692   { echo "$as_me:$LINENO: result: no" >&5
2693 echo "${ECHO_T}no" >&6; }
2694 fi
2695
2696
2697   fi
2698 fi
2699 if test -z "$CC"; then
2700   # Extract the first word of "cc", so it can be a program name with args.
2701 set dummy cc; ac_word=$2
2702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2704 if test "${ac_cv_prog_CC+set}" = set; then
2705   echo $ECHO_N "(cached) $ECHO_C" >&6
2706 else
2707   if test -n "$CC"; then
2708   ac_cv_prog_CC="$CC" # Let the user override the test.
2709 else
2710   ac_prog_rejected=no
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 for as_dir in $PATH
2713 do
2714   IFS=$as_save_IFS
2715   test -z "$as_dir" && as_dir=.
2716   for ac_exec_ext in '' $ac_executable_extensions; do
2717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2718     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2719        ac_prog_rejected=yes
2720        continue
2721      fi
2722     ac_cv_prog_CC="cc"
2723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2724     break 2
2725   fi
2726 done
2727 done
2728 IFS=$as_save_IFS
2729
2730 if test $ac_prog_rejected = yes; then
2731   # We found a bogon in the path, so make sure we never use it.
2732   set dummy $ac_cv_prog_CC
2733   shift
2734   if test $# != 0; then
2735     # We chose a different compiler from the bogus one.
2736     # However, it has the same basename, so the bogon will be chosen
2737     # first if we set CC to just the basename; use the full file name.
2738     shift
2739     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2740   fi
2741 fi
2742 fi
2743 fi
2744 CC=$ac_cv_prog_CC
2745 if test -n "$CC"; then
2746   { echo "$as_me:$LINENO: result: $CC" >&5
2747 echo "${ECHO_T}$CC" >&6; }
2748 else
2749   { echo "$as_me:$LINENO: result: no" >&5
2750 echo "${ECHO_T}no" >&6; }
2751 fi
2752
2753
2754 fi
2755 if test -z "$CC"; then
2756   if test -n "$ac_tool_prefix"; then
2757   for ac_prog in cl.exe
2758   do
2759     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2760 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2763 if test "${ac_cv_prog_CC+set}" = set; then
2764   echo $ECHO_N "(cached) $ECHO_C" >&6
2765 else
2766   if test -n "$CC"; then
2767   ac_cv_prog_CC="$CC" # Let the user override the test.
2768 else
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 for as_dir in $PATH
2771 do
2772   IFS=$as_save_IFS
2773   test -z "$as_dir" && as_dir=.
2774   for ac_exec_ext in '' $ac_executable_extensions; do
2775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2776     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778     break 2
2779   fi
2780 done
2781 done
2782 IFS=$as_save_IFS
2783
2784 fi
2785 fi
2786 CC=$ac_cv_prog_CC
2787 if test -n "$CC"; then
2788   { echo "$as_me:$LINENO: result: $CC" >&5
2789 echo "${ECHO_T}$CC" >&6; }
2790 else
2791   { echo "$as_me:$LINENO: result: no" >&5
2792 echo "${ECHO_T}no" >&6; }
2793 fi
2794
2795
2796     test -n "$CC" && break
2797   done
2798 fi
2799 if test -z "$CC"; then
2800   ac_ct_CC=$CC
2801   for ac_prog in cl.exe
2802 do
2803   # Extract the first word of "$ac_prog", so it can be a program name with args.
2804 set dummy $ac_prog; ac_word=$2
2805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2807 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2808   echo $ECHO_N "(cached) $ECHO_C" >&6
2809 else
2810   if test -n "$ac_ct_CC"; then
2811   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2812 else
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 for as_dir in $PATH
2815 do
2816   IFS=$as_save_IFS
2817   test -z "$as_dir" && as_dir=.
2818   for ac_exec_ext in '' $ac_executable_extensions; do
2819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2820     ac_cv_prog_ac_ct_CC="$ac_prog"
2821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2822     break 2
2823   fi
2824 done
2825 done
2826 IFS=$as_save_IFS
2827
2828 fi
2829 fi
2830 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2831 if test -n "$ac_ct_CC"; then
2832   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2833 echo "${ECHO_T}$ac_ct_CC" >&6; }
2834 else
2835   { echo "$as_me:$LINENO: result: no" >&5
2836 echo "${ECHO_T}no" >&6; }
2837 fi
2838
2839
2840   test -n "$ac_ct_CC" && break
2841 done
2842
2843   if test "x$ac_ct_CC" = x; then
2844     CC=""
2845   else
2846     case $cross_compiling:$ac_tool_warned in
2847 yes:)
2848 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2849 whose name does not start with the host triplet.  If you think this
2850 configuration is useful to you, please write to autoconf@gnu.org." >&5
2851 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2852 whose name does not start with the host triplet.  If you think this
2853 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2854 ac_tool_warned=yes ;;
2855 esac
2856     CC=$ac_ct_CC
2857   fi
2858 fi
2859
2860 fi
2861
2862
2863 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2864 See \`config.log' for more details." >&5
2865 echo "$as_me: error: no acceptable C compiler found in \$PATH
2866 See \`config.log' for more details." >&2;}
2867    { (exit 1); exit 1; }; }
2868
2869 # Provide some information about the compiler.
2870 echo "$as_me:$LINENO: checking for C compiler version" >&5
2871 ac_compiler=`set X $ac_compile; echo $2`
2872 { (ac_try="$ac_compiler --version >&5"
2873 case "(($ac_try" in
2874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875   *) ac_try_echo=$ac_try;;
2876 esac
2877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878   (eval "$ac_compiler --version >&5") 2>&5
2879   ac_status=$?
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); }
2882 { (ac_try="$ac_compiler -v >&5"
2883 case "(($ac_try" in
2884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885   *) ac_try_echo=$ac_try;;
2886 esac
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888   (eval "$ac_compiler -v >&5") 2>&5
2889   ac_status=$?
2890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891   (exit $ac_status); }
2892 { (ac_try="$ac_compiler -V >&5"
2893 case "(($ac_try" in
2894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895   *) ac_try_echo=$ac_try;;
2896 esac
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898   (eval "$ac_compiler -V >&5") 2>&5
2899   ac_status=$?
2900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901   (exit $ac_status); }
2902
2903 cat >conftest.$ac_ext <<_ACEOF
2904 /* confdefs.h.  */
2905 _ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h.  */
2909
2910 int
2911 main ()
2912 {
2913
2914   ;
2915   return 0;
2916 }
2917 _ACEOF
2918 ac_clean_files_save=$ac_clean_files
2919 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2920 # Try to create an executable without -o first, disregard a.out.
2921 # It will help us diagnose broken compilers, and finding out an intuition
2922 # of exeext.
2923 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2924 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2925 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2926 #
2927 # List of possible output files, starting from the most likely.
2928 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2929 # only as a last resort.  b.out is created by i960 compilers.
2930 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2931 #
2932 # The IRIX 6 linker writes into existing files which may not be
2933 # executable, retaining their permissions.  Remove them first so a
2934 # subsequent execution test works.
2935 ac_rmfiles=
2936 for ac_file in $ac_files
2937 do
2938   case $ac_file in
2939     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2940     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2941   esac
2942 done
2943 rm -f $ac_rmfiles
2944
2945 if { (ac_try="$ac_link_default"
2946 case "(($ac_try" in
2947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948   *) ac_try_echo=$ac_try;;
2949 esac
2950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2951   (eval "$ac_link_default") 2>&5
2952   ac_status=$?
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); }; then
2955   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2956 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2957 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2958 # so that the user can short-circuit this test for compilers unknown to
2959 # Autoconf.
2960 for ac_file in $ac_files ''
2961 do
2962   test -f "$ac_file" || continue
2963   case $ac_file in
2964     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2965         ;;
2966     [ab].out )
2967         # We found the default executable, but exeext='' is most
2968         # certainly right.
2969         break;;
2970     *.* )
2971         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2972         then :; else
2973            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2974         fi
2975         # We set ac_cv_exeext here because the later test for it is not
2976         # safe: cross compilers may not add the suffix if given an `-o'
2977         # argument, so we may need to know it at that point already.
2978         # Even if this section looks crufty: it has the advantage of
2979         # actually working.
2980         break;;
2981     * )
2982         break;;
2983   esac
2984 done
2985 test "$ac_cv_exeext" = no && ac_cv_exeext=
2986
2987 else
2988   ac_file=''
2989 fi
2990
2991 { echo "$as_me:$LINENO: result: $ac_file" >&5
2992 echo "${ECHO_T}$ac_file" >&6; }
2993 if test -z "$ac_file"; then
2994   echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
2996
2997 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2998 See \`config.log' for more details." >&5
2999 echo "$as_me: error: C compiler cannot create executables
3000 See \`config.log' for more details." >&2;}
3001    { (exit 77); exit 77; }; }
3002 fi
3003
3004 ac_exeext=$ac_cv_exeext
3005
3006 # Check that the compiler produces executables we can run.  If not, either
3007 # the compiler is broken, or we cross compile.
3008 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3009 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3010 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3011 # If not cross compiling, check that we can run a simple program.
3012 if test "$cross_compiling" != yes; then
3013   if { ac_try='./$ac_file'
3014   { (case "(($ac_try" in
3015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016   *) ac_try_echo=$ac_try;;
3017 esac
3018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019   (eval "$ac_try") 2>&5
3020   ac_status=$?
3021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022   (exit $ac_status); }; }; then
3023     cross_compiling=no
3024   else
3025     if test "$cross_compiling" = maybe; then
3026         cross_compiling=yes
3027     else
3028         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3029 If you meant to cross compile, use \`--host'.
3030 See \`config.log' for more details." >&5
3031 echo "$as_me: error: cannot run C compiled programs.
3032 If you meant to cross compile, use \`--host'.
3033 See \`config.log' for more details." >&2;}
3034    { (exit 1); exit 1; }; }
3035     fi
3036   fi
3037 fi
3038 { echo "$as_me:$LINENO: result: yes" >&5
3039 echo "${ECHO_T}yes" >&6; }
3040
3041 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3042 ac_clean_files=$ac_clean_files_save
3043 # Check that the compiler produces executables we can run.  If not, either
3044 # the compiler is broken, or we cross compile.
3045 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3046 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3047 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3048 echo "${ECHO_T}$cross_compiling" >&6; }
3049
3050 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3051 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3052 if { (ac_try="$ac_link"
3053 case "(($ac_try" in
3054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055   *) ac_try_echo=$ac_try;;
3056 esac
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058   (eval "$ac_link") 2>&5
3059   ac_status=$?
3060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061   (exit $ac_status); }; then
3062   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3063 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3064 # work properly (i.e., refer to `conftest.exe'), while it won't with
3065 # `rm'.
3066 for ac_file in conftest.exe conftest conftest.*; do
3067   test -f "$ac_file" || continue
3068   case $ac_file in
3069     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3070     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3071           break;;
3072     * ) break;;
3073   esac
3074 done
3075 else
3076   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3077 See \`config.log' for more details." >&5
3078 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3079 See \`config.log' for more details." >&2;}
3080    { (exit 1); exit 1; }; }
3081 fi
3082
3083 rm -f conftest$ac_cv_exeext
3084 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3085 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3086
3087 rm -f conftest.$ac_ext
3088 EXEEXT=$ac_cv_exeext
3089 ac_exeext=$EXEEXT
3090 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3091 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3092 if test "${ac_cv_objext+set}" = set; then
3093   echo $ECHO_N "(cached) $ECHO_C" >&6
3094 else
3095   cat >conftest.$ac_ext <<_ACEOF
3096 /* confdefs.h.  */
3097 _ACEOF
3098 cat confdefs.h >>conftest.$ac_ext
3099 cat >>conftest.$ac_ext <<_ACEOF
3100 /* end confdefs.h.  */
3101
3102 int
3103 main ()
3104 {
3105
3106   ;
3107   return 0;
3108 }
3109 _ACEOF
3110 rm -f conftest.o conftest.obj
3111 if { (ac_try="$ac_compile"
3112 case "(($ac_try" in
3113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114   *) ac_try_echo=$ac_try;;
3115 esac
3116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117   (eval "$ac_compile") 2>&5
3118   ac_status=$?
3119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120   (exit $ac_status); }; then
3121   for ac_file in conftest.o conftest.obj conftest.*; do
3122   test -f "$ac_file" || continue;
3123   case $ac_file in
3124     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3125     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3126        break;;
3127   esac
3128 done
3129 else
3130   echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3132
3133 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3134 See \`config.log' for more details." >&5
3135 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3136 See \`config.log' for more details." >&2;}
3137    { (exit 1); exit 1; }; }
3138 fi
3139
3140 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3141 fi
3142 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3143 echo "${ECHO_T}$ac_cv_objext" >&6; }
3144 OBJEXT=$ac_cv_objext
3145 ac_objext=$OBJEXT
3146 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3147 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3148 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3149   echo $ECHO_N "(cached) $ECHO_C" >&6
3150 else
3151   cat >conftest.$ac_ext <<_ACEOF
3152 /* confdefs.h.  */
3153 _ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h.  */
3157
3158 int
3159 main ()
3160 {
3161 #ifndef __GNUC__
3162        choke me
3163 #endif
3164
3165   ;
3166   return 0;
3167 }
3168 _ACEOF
3169 rm -f conftest.$ac_objext
3170 if { (ac_try="$ac_compile"
3171 case "(($ac_try" in
3172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173   *) ac_try_echo=$ac_try;;
3174 esac
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176   (eval "$ac_compile") 2>conftest.er1
3177   ac_status=$?
3178   grep -v '^ *+' conftest.er1 >conftest.err
3179   rm -f conftest.er1
3180   cat conftest.err >&5
3181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182   (exit $ac_status); } && {
3183          test -z "$ac_c_werror_flag" ||
3184          test ! -s conftest.err
3185        } && test -s conftest.$ac_objext; then
3186   ac_compiler_gnu=yes
3187 else
3188   echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3190
3191         ac_compiler_gnu=no
3192 fi
3193
3194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3196
3197 fi
3198 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3199 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3200 GCC=`test $ac_compiler_gnu = yes && echo yes`
3201 ac_test_CFLAGS=${CFLAGS+set}
3202 ac_save_CFLAGS=$CFLAGS
3203 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3204 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3205 if test "${ac_cv_prog_cc_g+set}" = set; then
3206   echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208   ac_save_c_werror_flag=$ac_c_werror_flag
3209    ac_c_werror_flag=yes
3210    ac_cv_prog_cc_g=no
3211    CFLAGS="-g"
3212    cat >conftest.$ac_ext <<_ACEOF
3213 /* confdefs.h.  */
3214 _ACEOF
3215 cat confdefs.h >>conftest.$ac_ext
3216 cat >>conftest.$ac_ext <<_ACEOF
3217 /* end confdefs.h.  */
3218
3219 int
3220 main ()
3221 {
3222
3223   ;
3224   return 0;
3225 }
3226 _ACEOF
3227 rm -f conftest.$ac_objext
3228 if { (ac_try="$ac_compile"
3229 case "(($ac_try" in
3230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231   *) ac_try_echo=$ac_try;;
3232 esac
3233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3234   (eval "$ac_compile") 2>conftest.er1
3235   ac_status=$?
3236   grep -v '^ *+' conftest.er1 >conftest.err
3237   rm -f conftest.er1
3238   cat conftest.err >&5
3239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240   (exit $ac_status); } && {
3241          test -z "$ac_c_werror_flag" ||
3242          test ! -s conftest.err
3243        } && test -s conftest.$ac_objext; then
3244   ac_cv_prog_cc_g=yes
3245 else
3246   echo "$as_me: failed program was:" >&5
3247 sed 's/^/| /' conftest.$ac_ext >&5
3248
3249         CFLAGS=""
3250       cat >conftest.$ac_ext <<_ACEOF
3251 /* confdefs.h.  */
3252 _ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h.  */
3256
3257 int
3258 main ()
3259 {
3260
3261   ;
3262   return 0;
3263 }
3264 _ACEOF
3265 rm -f conftest.$ac_objext
3266 if { (ac_try="$ac_compile"
3267 case "(($ac_try" in
3268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269   *) ac_try_echo=$ac_try;;
3270 esac
3271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272   (eval "$ac_compile") 2>conftest.er1
3273   ac_status=$?
3274   grep -v '^ *+' conftest.er1 >conftest.err
3275   rm -f conftest.er1
3276   cat conftest.err >&5
3277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278   (exit $ac_status); } && {
3279          test -z "$ac_c_werror_flag" ||
3280          test ! -s conftest.err
3281        } && test -s conftest.$ac_objext; then
3282   :
3283 else
3284   echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3286
3287         ac_c_werror_flag=$ac_save_c_werror_flag
3288          CFLAGS="-g"
3289          cat >conftest.$ac_ext <<_ACEOF
3290 /* confdefs.h.  */
3291 _ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h.  */
3295
3296 int
3297 main ()
3298 {
3299
3300   ;
3301   return 0;
3302 }
3303 _ACEOF
3304 rm -f conftest.$ac_objext
3305 if { (ac_try="$ac_compile"
3306 case "(($ac_try" in
3307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308   *) ac_try_echo=$ac_try;;
3309 esac
3310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3311   (eval "$ac_compile") 2>conftest.er1
3312   ac_status=$?
3313   grep -v '^ *+' conftest.er1 >conftest.err
3314   rm -f conftest.er1
3315   cat conftest.err >&5
3316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317   (exit $ac_status); } && {
3318          test -z "$ac_c_werror_flag" ||
3319          test ! -s conftest.err
3320        } && test -s conftest.$ac_objext; then
3321   ac_cv_prog_cc_g=yes
3322 else
3323   echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3325
3326
3327 fi
3328
3329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330 fi
3331
3332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 fi
3334
3335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336    ac_c_werror_flag=$ac_save_c_werror_flag
3337 fi
3338 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3339 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3340 if test "$ac_test_CFLAGS" = set; then
3341   CFLAGS=$ac_save_CFLAGS
3342 elif test $ac_cv_prog_cc_g = yes; then
3343   if test "$GCC" = yes; then
3344     CFLAGS="-g -O2"
3345   else
3346     CFLAGS="-g"
3347   fi
3348 else
3349   if test "$GCC" = yes; then
3350     CFLAGS="-O2"
3351   else
3352     CFLAGS=
3353   fi
3354 fi
3355 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3356 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3357 if test "${ac_cv_prog_cc_c89+set}" = set; then
3358   echo $ECHO_N "(cached) $ECHO_C" >&6
3359 else
3360   ac_cv_prog_cc_c89=no
3361 ac_save_CC=$CC
3362 cat >conftest.$ac_ext <<_ACEOF
3363 /* confdefs.h.  */
3364 _ACEOF
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.h.  */
3368 #include <stdarg.h>
3369 #include <stdio.h>
3370 #include <sys/types.h>
3371 #include <sys/stat.h>
3372 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3373 struct buf { int x; };
3374 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3375 static char *e (p, i)
3376      char **p;
3377      int i;
3378 {
3379   return p[i];
3380 }
3381 static char *f (char * (*g) (char **, int), char **p, ...)
3382 {
3383   char *s;
3384   va_list v;
3385   va_start (v,p);
3386   s = g (p, va_arg (v,int));
3387   va_end (v);
3388   return s;
3389 }
3390
3391 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3392    function prototypes and stuff, but not '\xHH' hex character constants.
3393    These don't provoke an error unfortunately, instead are silently treated
3394    as 'x'.  The following induces an error, until -std is added to get
3395    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3396    array size at least.  It's necessary to write '\x00'==0 to get something
3397    that's true only with -std.  */
3398 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3399
3400 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3401    inside strings and character constants.  */
3402 #define FOO(x) 'x'
3403 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3404
3405 int test (int i, double x);
3406 struct s1 {int (*f) (int a);};
3407 struct s2 {int (*f) (double a);};
3408 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3409 int argc;
3410 char **argv;
3411 int
3412 main ()
3413 {
3414 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3415   ;
3416   return 0;
3417 }
3418 _ACEOF
3419 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3420         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3421 do
3422   CC="$ac_save_CC $ac_arg"
3423   rm -f conftest.$ac_objext
3424 if { (ac_try="$ac_compile"
3425 case "(($ac_try" in
3426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427   *) ac_try_echo=$ac_try;;
3428 esac
3429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3430   (eval "$ac_compile") 2>conftest.er1
3431   ac_status=$?
3432   grep -v '^ *+' conftest.er1 >conftest.err
3433   rm -f conftest.er1
3434   cat conftest.err >&5
3435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436   (exit $ac_status); } && {
3437          test -z "$ac_c_werror_flag" ||
3438          test ! -s conftest.err
3439        } && test -s conftest.$ac_objext; then
3440   ac_cv_prog_cc_c89=$ac_arg
3441 else
3442   echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.$ac_ext >&5
3444
3445
3446 fi
3447
3448 rm -f core conftest.err conftest.$ac_objext
3449   test "x$ac_cv_prog_cc_c89" != "xno" && break
3450 done
3451 rm -f conftest.$ac_ext
3452 CC=$ac_save_CC
3453
3454 fi
3455 # AC_CACHE_VAL
3456 case "x$ac_cv_prog_cc_c89" in
3457   x)
3458     { echo "$as_me:$LINENO: result: none needed" >&5
3459 echo "${ECHO_T}none needed" >&6; } ;;
3460   xno)
3461     { echo "$as_me:$LINENO: result: unsupported" >&5
3462 echo "${ECHO_T}unsupported" >&6; } ;;
3463   *)
3464     CC="$CC $ac_cv_prog_cc_c89"
3465     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3466 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3467 esac
3468
3469
3470 ac_ext=c
3471 ac_cpp='$CPP $CPPFLAGS'
3472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3475 DEPDIR="${am__leading_dot}deps"
3476
3477 ac_config_commands="$ac_config_commands depfiles"
3478
3479
3480 am_make=${MAKE-make}
3481 cat > confinc << 'END'
3482 am__doit:
3483         @echo done
3484 .PHONY: am__doit
3485 END
3486 # If we don't find an include directive, just comment out the code.
3487 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3488 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3489 am__include="#"
3490 am__quote=
3491 _am_result=none
3492 # First try GNU make style include.
3493 echo "include confinc" > confmf
3494 # We grep out `Entering directory' and `Leaving directory'
3495 # messages which can occur if `w' ends up in MAKEFLAGS.
3496 # In particular we don't look at `^make:' because GNU make might
3497 # be invoked under some other name (usually "gmake"), in which
3498 # case it prints its new name instead of `make'.
3499 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3500    am__include=include
3501    am__quote=
3502    _am_result=GNU
3503 fi
3504 # Now try BSD make style include.
3505 if test "$am__include" = "#"; then
3506    echo '.include "confinc"' > confmf
3507    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3508       am__include=.include
3509       am__quote="\""
3510       _am_result=BSD
3511    fi
3512 fi
3513
3514
3515 { echo "$as_me:$LINENO: result: $_am_result" >&5
3516 echo "${ECHO_T}$_am_result" >&6; }
3517 rm -f confinc confmf
3518
3519 # Check whether --enable-dependency-tracking was given.
3520 if test "${enable_dependency_tracking+set}" = set; then
3521   enableval=$enable_dependency_tracking;
3522 fi
3523
3524 if test "x$enable_dependency_tracking" != xno; then
3525   am_depcomp="$ac_aux_dir/depcomp"
3526   AMDEPBACKSLASH='\'
3527 fi
3528  if test "x$enable_dependency_tracking" != xno; then
3529   AMDEP_TRUE=
3530   AMDEP_FALSE='#'
3531 else
3532   AMDEP_TRUE='#'
3533   AMDEP_FALSE=
3534 fi
3535
3536
3537
3538 depcc="$CC"   am_compiler_list=
3539
3540 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3541 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3542 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3543   echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3546   # We make a subdir and do the tests there.  Otherwise we can end up
3547   # making bogus files that we don't know about and never remove.  For
3548   # instance it was reported that on HP-UX the gcc test will end up
3549   # making a dummy file named `D' -- because `-MD' means `put the output
3550   # in D'.
3551   mkdir conftest.dir
3552   # Copy depcomp to subdir because otherwise we won't find it if we're
3553   # using a relative directory.
3554   cp "$am_depcomp" conftest.dir
3555   cd conftest.dir
3556   # We will build objects and dependencies in a subdirectory because
3557   # it helps to detect inapplicable dependency modes.  For instance
3558   # both Tru64's cc and ICC support -MD to output dependencies as a
3559   # side effect of compilation, but ICC will put the dependencies in
3560   # the current directory while Tru64 will put them in the object
3561   # directory.
3562   mkdir sub
3563
3564   am_cv_CC_dependencies_compiler_type=none
3565   if test "$am_compiler_list" = ""; then
3566      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3567   fi
3568   for depmode in $am_compiler_list; do
3569     # Setup a source with many dependencies, because some compilers
3570     # like to wrap large dependency lists on column 80 (with \), and
3571     # we should not choose a depcomp mode which is confused by this.
3572     #
3573     # We need to recreate these files for each test, as the compiler may
3574     # overwrite some of them when testing with obscure command lines.
3575     # This happens at least with the AIX C compiler.
3576     : > sub/conftest.c
3577     for i in 1 2 3 4 5 6; do
3578       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3579       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3580       # Solaris 8's {/usr,}/bin/sh.
3581       touch sub/conftst$i.h
3582     done
3583     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3584
3585     case $depmode in
3586     nosideeffect)
3587       # after this tag, mechanisms are not by side-effect, so they'll
3588       # only be used when explicitly requested
3589       if test "x$enable_dependency_tracking" = xyes; then
3590         continue
3591       else
3592         break
3593       fi
3594       ;;
3595     none) break ;;
3596     esac
3597     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3598     # mode.  It turns out that the SunPro C++ compiler does not properly
3599     # handle `-M -o', and we need to detect this.
3600     if depmode=$depmode \
3601        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3602        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3603        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3604          >/dev/null 2>conftest.err &&
3605        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3606        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3607        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3608        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3609       # icc doesn't choke on unknown options, it will just issue warnings
3610       # or remarks (even with -Werror).  So we grep stderr for any message
3611       # that says an option was ignored or not supported.
3612       # When given -MP, icc 7.0 and 7.1 complain thusly:
3613       #   icc: Command line warning: ignoring option '-M'; no argument required
3614       # The diagnosis changed in icc 8.0:
3615       #   icc: Command line remark: option '-MP' not supported
3616       if (grep 'ignoring option' conftest.err ||
3617           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3618         am_cv_CC_dependencies_compiler_type=$depmode
3619         break
3620       fi
3621     fi
3622   done
3623
3624   cd ..
3625   rm -rf conftest.dir
3626 else
3627   am_cv_CC_dependencies_compiler_type=none
3628 fi
3629
3630 fi
3631 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3632 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3633 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3634
3635  if
3636   test "x$enable_dependency_tracking" != xno \
3637   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3638   am__fastdepCC_TRUE=
3639   am__fastdepCC_FALSE='#'
3640 else
3641   am__fastdepCC_TRUE='#'
3642   am__fastdepCC_FALSE=
3643 fi
3644
3645
3646 ac_ext=c
3647 ac_cpp='$CPP $CPPFLAGS'
3648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3652 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3653 # On Suns, sometimes $CPP names a directory.
3654 if test -n "$CPP" && test -d "$CPP"; then
3655   CPP=
3656 fi
3657 if test -z "$CPP"; then
3658   if test "${ac_cv_prog_CPP+set}" = set; then
3659   echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661       # Double quotes because CPP needs to be expanded
3662     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3663     do
3664       ac_preproc_ok=false
3665 for ac_c_preproc_warn_flag in '' yes
3666 do
3667   # Use a header file that comes with gcc, so configuring glibc
3668   # with a fresh cross-compiler works.
3669   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3670   # <limits.h> exists even on freestanding compilers.
3671   # On the NeXT, cc -E runs the code through the compiler's parser,
3672   # not just through cpp. "Syntax error" is here to catch this case.
3673   cat >conftest.$ac_ext <<_ACEOF
3674 /* confdefs.h.  */
3675 _ACEOF
3676 cat confdefs.h >>conftest.$ac_ext
3677 cat >>conftest.$ac_ext <<_ACEOF
3678 /* end confdefs.h.  */
3679 #ifdef __STDC__
3680 # include <limits.h>
3681 #else
3682 # include <assert.h>
3683 #endif
3684                      Syntax error
3685 _ACEOF
3686 if { (ac_try="$ac_cpp conftest.$ac_ext"
3687 case "(($ac_try" in
3688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689   *) ac_try_echo=$ac_try;;
3690 esac
3691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3692   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3693   ac_status=$?
3694   grep -v '^ *+' conftest.er1 >conftest.err
3695   rm -f conftest.er1
3696   cat conftest.err >&5
3697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698   (exit $ac_status); } >/dev/null && {
3699          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3700          test ! -s conftest.err
3701        }; then
3702   :
3703 else
3704   echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.$ac_ext >&5
3706
3707   # Broken: fails on valid input.
3708 continue
3709 fi
3710
3711 rm -f conftest.err conftest.$ac_ext
3712
3713   # OK, works on sane cases.  Now check whether nonexistent headers
3714   # can be detected and how.
3715   cat >conftest.$ac_ext <<_ACEOF
3716 /* confdefs.h.  */
3717 _ACEOF
3718 cat confdefs.h >>conftest.$ac_ext
3719 cat >>conftest.$ac_ext <<_ACEOF
3720 /* end confdefs.h.  */
3721 #include <ac_nonexistent.h>
3722 _ACEOF
3723 if { (ac_try="$ac_cpp conftest.$ac_ext"
3724 case "(($ac_try" in
3725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726   *) ac_try_echo=$ac_try;;
3727 esac
3728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3729   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3730   ac_status=$?
3731   grep -v '^ *+' conftest.er1 >conftest.err
3732   rm -f conftest.er1
3733   cat conftest.err >&5
3734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735   (exit $ac_status); } >/dev/null && {
3736          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3737          test ! -s conftest.err
3738        }; then
3739   # Broken: success on invalid input.
3740 continue
3741 else
3742   echo "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.$ac_ext >&5
3744
3745   # Passes both tests.
3746 ac_preproc_ok=:
3747 break
3748 fi
3749
3750 rm -f conftest.err conftest.$ac_ext
3751
3752 done
3753 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3754 rm -f conftest.err conftest.$ac_ext
3755 if $ac_preproc_ok; then
3756   break
3757 fi
3758
3759     done
3760     ac_cv_prog_CPP=$CPP
3761
3762 fi
3763   CPP=$ac_cv_prog_CPP
3764 else
3765   ac_cv_prog_CPP=$CPP
3766 fi
3767 { echo "$as_me:$LINENO: result: $CPP" >&5
3768 echo "${ECHO_T}$CPP" >&6; }
3769 ac_preproc_ok=false
3770 for ac_c_preproc_warn_flag in '' yes
3771 do
3772   # Use a header file that comes with gcc, so configuring glibc
3773   # with a fresh cross-compiler works.
3774   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3775   # <limits.h> exists even on freestanding compilers.
3776   # On the NeXT, cc -E runs the code through the compiler's parser,
3777   # not just through cpp. "Syntax error" is here to catch this case.
3778   cat >conftest.$ac_ext <<_ACEOF
3779 /* confdefs.h.  */
3780 _ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h.  */
3784 #ifdef __STDC__
3785 # include <limits.h>
3786 #else
3787 # include <assert.h>
3788 #endif
3789                      Syntax error
3790 _ACEOF
3791 if { (ac_try="$ac_cpp conftest.$ac_ext"
3792 case "(($ac_try" in
3793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794   *) ac_try_echo=$ac_try;;
3795 esac
3796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3797   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3798   ac_status=$?
3799   grep -v '^ *+' conftest.er1 >conftest.err
3800   rm -f conftest.er1
3801   cat conftest.err >&5
3802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803   (exit $ac_status); } >/dev/null && {
3804          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3805          test ! -s conftest.err
3806        }; then
3807   :
3808 else
3809   echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3811
3812   # Broken: fails on valid input.
3813 continue
3814 fi
3815
3816 rm -f conftest.err conftest.$ac_ext
3817
3818   # OK, works on sane cases.  Now check whether nonexistent headers
3819   # can be detected and how.
3820   cat >conftest.$ac_ext <<_ACEOF
3821 /* confdefs.h.  */
3822 _ACEOF
3823 cat confdefs.h >>conftest.$ac_ext
3824 cat >>conftest.$ac_ext <<_ACEOF
3825 /* end confdefs.h.  */
3826 #include <ac_nonexistent.h>
3827 _ACEOF
3828 if { (ac_try="$ac_cpp conftest.$ac_ext"
3829 case "(($ac_try" in
3830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831   *) ac_try_echo=$ac_try;;
3832 esac
3833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3834   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3835   ac_status=$?
3836   grep -v '^ *+' conftest.er1 >conftest.err
3837   rm -f conftest.er1
3838   cat conftest.err >&5
3839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840   (exit $ac_status); } >/dev/null && {
3841          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3842          test ! -s conftest.err
3843        }; then
3844   # Broken: success on invalid input.
3845 continue
3846 else
3847   echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3849
3850   # Passes both tests.
3851 ac_preproc_ok=:
3852 break
3853 fi
3854
3855 rm -f conftest.err conftest.$ac_ext
3856
3857 done
3858 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3859 rm -f conftest.err conftest.$ac_ext
3860 if $ac_preproc_ok; then
3861   :
3862 else
3863   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3864 See \`config.log' for more details." >&5
3865 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3866 See \`config.log' for more details." >&2;}
3867    { (exit 1); exit 1; }; }
3868 fi
3869
3870 ac_ext=c
3871 ac_cpp='$CPP $CPPFLAGS'
3872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3875
3876 for ac_prog in gawk mawk nawk awk
3877 do
3878   # Extract the first word of "$ac_prog", so it can be a program name with args.
3879 set dummy $ac_prog; ac_word=$2
3880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3882 if test "${ac_cv_prog_AWK+set}" = set; then
3883   echo $ECHO_N "(cached) $ECHO_C" >&6
3884 else
3885   if test -n "$AWK"; then
3886   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3887 else
3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 for as_dir in $PATH
3890 do
3891   IFS=$as_save_IFS
3892   test -z "$as_dir" && as_dir=.
3893   for ac_exec_ext in '' $ac_executable_extensions; do
3894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3895     ac_cv_prog_AWK="$ac_prog"
3896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3897     break 2
3898   fi
3899 done
3900 done
3901 IFS=$as_save_IFS
3902
3903 fi
3904 fi
3905 AWK=$ac_cv_prog_AWK
3906 if test -n "$AWK"; then
3907   { echo "$as_me:$LINENO: result: $AWK" >&5
3908 echo "${ECHO_T}$AWK" >&6; }
3909 else
3910   { echo "$as_me:$LINENO: result: no" >&5
3911 echo "${ECHO_T}no" >&6; }
3912 fi
3913
3914
3915   test -n "$AWK" && break
3916 done
3917
3918 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3919 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3920 LN_S=$as_ln_s
3921 if test "$LN_S" = "ln -s"; then
3922   { echo "$as_me:$LINENO: result: yes" >&5
3923 echo "${ECHO_T}yes" >&6; }
3924 else
3925   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3926 echo "${ECHO_T}no, using $LN_S" >&6; }
3927 fi
3928
3929 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3930 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3931 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3932 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3933   echo $ECHO_N "(cached) $ECHO_C" >&6
3934 else
3935   cat >conftest.make <<\_ACEOF
3936 SHELL = /bin/sh
3937 all:
3938         @echo '@@@%%%=$(MAKE)=@@@%%%'
3939 _ACEOF
3940 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3941 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3942   *@@@%%%=?*=@@@%%%*)
3943     eval ac_cv_prog_make_${ac_make}_set=yes;;
3944   *)
3945     eval ac_cv_prog_make_${ac_make}_set=no;;
3946 esac
3947 rm -f conftest.make
3948 fi
3949 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3950   { echo "$as_me:$LINENO: result: yes" >&5
3951 echo "${ECHO_T}yes" >&6; }
3952   SET_MAKE=
3953 else
3954   { echo "$as_me:$LINENO: result: no" >&5
3955 echo "${ECHO_T}no" >&6; }
3956   SET_MAKE="MAKE=${MAKE-make}"
3957 fi
3958
3959 # Find a good install program.  We prefer a C program (faster),
3960 # so one script is as good as another.  But avoid the broken or
3961 # incompatible versions:
3962 # SysV /etc/install, /usr/sbin/install
3963 # SunOS /usr/etc/install
3964 # IRIX /sbin/install
3965 # AIX /bin/install
3966 # AmigaOS /C/install, which installs bootblocks on floppy discs
3967 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3968 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3969 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3970 # OS/2's system install, which has a completely different semantic
3971 # ./install, which can be erroneously created by make from ./install.sh.
3972 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3973 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3974 if test -z "$INSTALL"; then
3975 if test "${ac_cv_path_install+set}" = set; then
3976   echo $ECHO_N "(cached) $ECHO_C" >&6
3977 else
3978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH
3980 do
3981   IFS=$as_save_IFS
3982   test -z "$as_dir" && as_dir=.
3983   # Account for people who put trailing slashes in PATH elements.
3984 case $as_dir/ in
3985   ./ | .// | /cC/* | \
3986   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3987   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3988   /usr/ucb/* ) ;;
3989   *)
3990     # OSF1 and SCO ODT 3.0 have their own names for install.
3991     # Don't use installbsd from OSF since it installs stuff as root
3992     # by default.
3993     for ac_prog in ginstall scoinst install; do
3994       for ac_exec_ext in '' $ac_executable_extensions; do
3995         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3996           if test $ac_prog = install &&
3997             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3998             # AIX install.  It has an incompatible calling convention.
3999             :
4000           elif test $ac_prog = install &&
4001             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4002             # program-specific install script used by HP pwplus--don't use.
4003             :
4004           else
4005             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4006             break 3
4007           fi
4008         fi
4009       done
4010     done
4011     ;;
4012 esac
4013 done
4014 IFS=$as_save_IFS
4015
4016
4017 fi
4018   if test "${ac_cv_path_install+set}" = set; then
4019     INSTALL=$ac_cv_path_install
4020   else
4021     # As a last resort, use the slow shell script.  Don't cache a
4022     # value for INSTALL within a source directory, because that will
4023     # break other packages using the cache if that directory is
4024     # removed, or if the value is a relative name.
4025     INSTALL=$ac_install_sh
4026   fi
4027 fi
4028 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4029 echo "${ECHO_T}$INSTALL" >&6; }
4030
4031 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4032 # It thinks the first close brace ends the variable substitution.
4033 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4034
4035 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4036
4037 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4038
4039
4040
4041 { echo "$as_me:$LINENO: checking for __attribute__" >&5
4042 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
4043 if test "${ac_cv___attribute__+set}" = set; then
4044   echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046
4047 cat >conftest.$ac_ext <<_ACEOF
4048 /* confdefs.h.  */
4049 _ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h.  */
4053
4054 #include <stdlib.h>
4055
4056 int
4057 main ()
4058 {
4059
4060 static void foo(void) __attribute__ ((noreturn));
4061
4062 static void
4063 foo(void)
4064 {
4065   exit(1);
4066 }
4067
4068   ;
4069   return 0;
4070 }
4071 _ACEOF
4072 rm -f conftest.$ac_objext
4073 if { (ac_try="$ac_compile"
4074 case "(($ac_try" in
4075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076   *) ac_try_echo=$ac_try;;
4077 esac
4078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079   (eval "$ac_compile") 2>conftest.er1
4080   ac_status=$?
4081   grep -v '^ *+' conftest.er1 >conftest.err
4082   rm -f conftest.er1
4083   cat conftest.err >&5
4084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085   (exit $ac_status); } && {
4086          test -z "$ac_c_werror_flag" ||
4087          test ! -s conftest.err
4088        } && test -s conftest.$ac_objext; then
4089   ac_cv___attribute__=yes
4090 else
4091   echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4093
4094         ac_cv___attribute__=no
4095 fi
4096
4097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4098 fi
4099
4100 if test "$ac_cv___attribute__" = "yes"; then
4101
4102 cat >>confdefs.h <<\_ACEOF
4103 #define HAVE___ATTRIBUTE__ 1
4104 _ACEOF
4105
4106 fi
4107 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
4108 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
4109
4110
4111
4112    # CMU GUESS RUNPATH SWITCH
4113   { echo "$as_me:$LINENO: checking for runpath switch" >&5
4114 echo $ECHO_N "checking for runpath switch... $ECHO_C" >&6; }
4115 if test "${andrew_runpath_switch+set}" = set; then
4116   echo $ECHO_N "(cached) $ECHO_C" >&6
4117 else
4118
4119     # first, try -R
4120     SAVE_LDFLAGS="${LDFLAGS}"
4121     LDFLAGS="-R /usr/lib"
4122     cat >conftest.$ac_ext <<_ACEOF
4123 /* confdefs.h.  */
4124 _ACEOF
4125 cat confdefs.h >>conftest.$ac_ext
4126 cat >>conftest.$ac_ext <<_ACEOF
4127 /* end confdefs.h.  */
4128
4129 int
4130 main ()
4131 {
4132
4133   ;
4134   return 0;
4135 }
4136 _ACEOF
4137 rm -f conftest.$ac_objext conftest$ac_exeext
4138 if { (ac_try="$ac_link"
4139 case "(($ac_try" in
4140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141   *) ac_try_echo=$ac_try;;
4142 esac
4143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4144   (eval "$ac_link") 2>conftest.er1
4145   ac_status=$?
4146   grep -v '^ *+' conftest.er1 >conftest.err
4147   rm -f conftest.er1
4148   cat conftest.err >&5
4149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150   (exit $ac_status); } && {
4151          test -z "$ac_c_werror_flag" ||
4152          test ! -s conftest.err
4153        } && test -s conftest$ac_exeext &&
4154        $as_test_x conftest$ac_exeext; then
4155   andrew_runpath_switch="-R"
4156 else
4157   echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4159
4160
4161         LDFLAGS="-Wl,-rpath,/usr/lib"
4162     cat >conftest.$ac_ext <<_ACEOF
4163 /* confdefs.h.  */
4164 _ACEOF
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h.  */
4168
4169 int
4170 main ()
4171 {
4172
4173   ;
4174   return 0;
4175 }
4176 _ACEOF
4177 rm -f conftest.$ac_objext conftest$ac_exeext
4178 if { (ac_try="$ac_link"
4179 case "(($ac_try" in
4180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181   *) ac_try_echo=$ac_try;;
4182 esac
4183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4184   (eval "$ac_link") 2>conftest.er1
4185   ac_status=$?
4186   grep -v '^ *+' conftest.er1 >conftest.err
4187   rm -f conftest.er1
4188   cat conftest.err >&5
4189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190   (exit $ac_status); } && {
4191          test -z "$ac_c_werror_flag" ||
4192          test ! -s conftest.err
4193        } && test -s conftest$ac_exeext &&
4194        $as_test_x conftest$ac_exeext; then
4195   andrew_runpath_switch="-Wl,-rpath,"
4196 else
4197   echo "$as_me: failed program was:" >&5
4198 sed 's/^/| /' conftest.$ac_ext >&5
4199
4200         andrew_runpath_switch="none"
4201 fi
4202
4203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4204       conftest$ac_exeext conftest.$ac_ext
4205
4206 fi
4207
4208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4209       conftest$ac_exeext conftest.$ac_ext
4210   LDFLAGS="${SAVE_LDFLAGS}"
4211
4212 fi
4213 { echo "$as_me:$LINENO: result: $andrew_runpath_switch" >&5
4214 echo "${ECHO_T}$andrew_runpath_switch" >&6; }
4215
4216
4217 # Check whether --with-staticsasl was given.
4218 if test "${with_staticsasl+set}" = set; then
4219   withval=$with_staticsasl;
4220 fi
4221
4222 if test "$with_staticsasl" = yes; then
4223         enable_shared=yes
4224         enable_static=yes
4225 fi
4226
4227 save_target=$target
4228 if test -z "$target"; then
4229         target="NONE"
4230 fi
4231
4232 # new libtool
4233 # Check whether --enable-static was given.
4234 if test "${enable_static+set}" = set; then
4235   enableval=$enable_static; p=${PACKAGE-default}
4236     case $enableval in
4237     yes) enable_static=yes ;;
4238     no) enable_static=no ;;
4239     *)
4240      enable_static=no
4241       # Look at the argument we got.  We use all the common list separators.
4242       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4243       for pkg in $enableval; do
4244         IFS="$lt_save_ifs"
4245         if test "X$pkg" = "X$p"; then
4246           enable_static=yes
4247         fi
4248       done
4249       IFS="$lt_save_ifs"
4250       ;;
4251     esac
4252 else
4253   enable_static=no
4254 fi
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264 case `pwd` in
4265   *\ * | *\     *)
4266     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4267 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4268 esac
4269
4270
4271
4272 macro_version='2.2.10'
4273 macro_revision='1.3175'
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287 ltmain="$ac_aux_dir/ltmain.sh"
4288
4289 # Backslashify metacharacters that are still active within
4290 # double-quoted strings.
4291 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4292
4293 # Same as above, but do not quote variable references.
4294 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4295
4296 # Sed substitution to delay expansion of an escaped shell variable in a
4297 # double_quote_subst'ed string.
4298 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4299
4300 # Sed substitution to delay expansion of an escaped single quote.
4301 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4302
4303 # Sed substitution to avoid accidental globbing in evaled expressions
4304 no_glob_subst='s/\*/\\\*/g'
4305
4306 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4307 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4308 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4309
4310 { echo "$as_me:$LINENO: checking how to print strings" >&5
4311 echo $ECHO_N "checking how to print strings... $ECHO_C" >&6; }
4312 # Test print first, because it will be a builtin if present.
4313 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4314    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4315   ECHO='print -r --'
4316 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4317   ECHO='printf %s\n'
4318 else
4319   # Use this function as a fallback that always works.
4320   func_fallback_echo ()
4321   {
4322     eval 'cat <<_LTECHO_EOF
4323 $1
4324 _LTECHO_EOF'
4325   }
4326   ECHO='func_fallback_echo'
4327 fi
4328
4329 # func_echo_all arg...
4330 # Invoke $ECHO with all args, space-separated.
4331 func_echo_all ()
4332 {
4333     $ECHO ""
4334 }
4335
4336 case "$ECHO" in
4337   printf*) { echo "$as_me:$LINENO: result: printf" >&5
4338 echo "${ECHO_T}printf" >&6; } ;;
4339   print*) { echo "$as_me:$LINENO: result: print -r" >&5
4340 echo "${ECHO_T}print -r" >&6; } ;;
4341   *) { echo "$as_me:$LINENO: result: cat" >&5
4342 echo "${ECHO_T}cat" >&6; } ;;
4343 esac
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4359 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4360 if test "${ac_cv_path_SED+set}" = set; then
4361   echo $ECHO_N "(cached) $ECHO_C" >&6
4362 else
4363             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4364      for ac_i in 1 2 3 4 5 6 7; do
4365        ac_script="$ac_script$as_nl$ac_script"
4366      done
4367      echo "$ac_script" | sed 99q >conftest.sed
4368      $as_unset ac_script || ac_script=
4369      # Extract the first word of "sed gsed" to use in msg output
4370 if test -z "$SED"; then
4371 set dummy sed gsed; ac_prog_name=$2
4372 if test "${ac_cv_path_SED+set}" = set; then
4373   echo $ECHO_N "(cached) $ECHO_C" >&6
4374 else
4375   ac_path_SED_found=false
4376 # Loop through the user's path and test for each of PROGNAME-LIST
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 for as_dir in $PATH
4379 do
4380   IFS=$as_save_IFS
4381   test -z "$as_dir" && as_dir=.
4382   for ac_prog in sed gsed; do
4383   for ac_exec_ext in '' $ac_executable_extensions; do
4384     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4385     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4386     # Check for GNU ac_path_SED and select it if it is found.
4387   # Check for GNU $ac_path_SED
4388 case `"$ac_path_SED" --version 2>&1` in
4389 *GNU*)
4390   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4391 *)
4392   ac_count=0
4393   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4394   while :
4395   do
4396     cat "conftest.in" "conftest.in" >"conftest.tmp"
4397     mv "conftest.tmp" "conftest.in"
4398     cp "conftest.in" "conftest.nl"
4399     echo '' >> "conftest.nl"
4400     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4401     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4402     ac_count=`expr $ac_count + 1`
4403     if test $ac_count -gt ${ac_path_SED_max-0}; then
4404       # Best one so far, save it but keep looking for a better one
4405       ac_cv_path_SED="$ac_path_SED"
4406       ac_path_SED_max=$ac_count
4407     fi
4408     # 10*(2^10) chars as input seems more than enough
4409     test $ac_count -gt 10 && break
4410   done
4411   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4412 esac
4413
4414
4415     $ac_path_SED_found && break 3
4416   done
4417 done
4418
4419 done
4420 IFS=$as_save_IFS
4421
4422
4423 fi
4424
4425 SED="$ac_cv_path_SED"
4426 if test -z "$SED"; then
4427   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
4428 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
4429    { (exit 1); exit 1; }; }
4430 fi
4431
4432 else
4433   ac_cv_path_SED=$SED
4434 fi
4435
4436 fi
4437 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4438 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4439  SED="$ac_cv_path_SED"
4440   rm -f conftest.sed
4441
4442 test -z "$SED" && SED=sed
4443 Xsed="$SED -e 1s/^X//"
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4456 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4457 if test "${ac_cv_path_GREP+set}" = set; then
4458   echo $ECHO_N "(cached) $ECHO_C" >&6
4459 else
4460   # Extract the first word of "grep ggrep" to use in msg output
4461 if test -z "$GREP"; then
4462 set dummy grep ggrep; ac_prog_name=$2
4463 if test "${ac_cv_path_GREP+set}" = set; then
4464   echo $ECHO_N "(cached) $ECHO_C" >&6
4465 else
4466   ac_path_GREP_found=false
4467 # Loop through the user's path and test for each of PROGNAME-LIST
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4470 do
4471   IFS=$as_save_IFS
4472   test -z "$as_dir" && as_dir=.
4473   for ac_prog in grep ggrep; do
4474   for ac_exec_ext in '' $ac_executable_extensions; do
4475     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4476     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4477     # Check for GNU ac_path_GREP and select it if it is found.
4478   # Check for GNU $ac_path_GREP
4479 case `"$ac_path_GREP" --version 2>&1` in
4480 *GNU*)
4481   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4482 *)
4483   ac_count=0
4484   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4485   while :
4486   do
4487     cat "conftest.in" "conftest.in" >"conftest.tmp"
4488     mv "conftest.tmp" "conftest.in"
4489     cp "conftest.in" "conftest.nl"
4490     echo 'GREP' >> "conftest.nl"
4491     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4492     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4493     ac_count=`expr $ac_count + 1`
4494     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4495       # Best one so far, save it but keep looking for a better one
4496       ac_cv_path_GREP="$ac_path_GREP"
4497       ac_path_GREP_max=$ac_count
4498     fi
4499     # 10*(2^10) chars as input seems more than enough
4500     test $ac_count -gt 10 && break
4501   done
4502   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4503 esac
4504
4505
4506     $ac_path_GREP_found && break 3
4507   done
4508 done
4509
4510 done
4511 IFS=$as_save_IFS
4512
4513
4514 fi
4515
4516 GREP="$ac_cv_path_GREP"
4517 if test -z "$GREP"; then
4518   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4519 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4520    { (exit 1); exit 1; }; }
4521 fi
4522
4523 else
4524   ac_cv_path_GREP=$GREP
4525 fi
4526
4527
4528 fi
4529 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4530 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4531  GREP="$ac_cv_path_GREP"
4532
4533
4534 { echo "$as_me:$LINENO: checking for egrep" >&5
4535 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4536 if test "${ac_cv_path_EGREP+set}" = set; then
4537   echo $ECHO_N "(cached) $ECHO_C" >&6
4538 else
4539   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4540    then ac_cv_path_EGREP="$GREP -E"
4541    else
4542      # Extract the first word of "egrep" to use in msg output
4543 if test -z "$EGREP"; then
4544 set dummy egrep; ac_prog_name=$2
4545 if test "${ac_cv_path_EGREP+set}" = set; then
4546   echo $ECHO_N "(cached) $ECHO_C" >&6
4547 else
4548   ac_path_EGREP_found=false
4549 # Loop through the user's path and test for each of PROGNAME-LIST
4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4552 do
4553   IFS=$as_save_IFS
4554   test -z "$as_dir" && as_dir=.
4555   for ac_prog in egrep; do
4556   for ac_exec_ext in '' $ac_executable_extensions; do
4557     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4558     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4559     # Check for GNU ac_path_EGREP and select it if it is found.
4560   # Check for GNU $ac_path_EGREP
4561 case `"$ac_path_EGREP" --version 2>&1` in
4562 *GNU*)
4563   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4564 *)
4565   ac_count=0
4566   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4567   while :
4568   do
4569     cat "conftest.in" "conftest.in" >"conftest.tmp"
4570     mv "conftest.tmp" "conftest.in"
4571     cp "conftest.in" "conftest.nl"
4572     echo 'EGREP' >> "conftest.nl"
4573     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4574     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4575     ac_count=`expr $ac_count + 1`
4576     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4577       # Best one so far, save it but keep looking for a better one
4578       ac_cv_path_EGREP="$ac_path_EGREP"
4579       ac_path_EGREP_max=$ac_count
4580     fi
4581     # 10*(2^10) chars as input seems more than enough
4582     test $ac_count -gt 10 && break
4583   done
4584   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4585 esac
4586
4587
4588     $ac_path_EGREP_found && break 3
4589   done
4590 done
4591
4592 done
4593 IFS=$as_save_IFS
4594
4595
4596 fi
4597
4598 EGREP="$ac_cv_path_EGREP"
4599 if test -z "$EGREP"; then
4600   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4601 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4602    { (exit 1); exit 1; }; }
4603 fi
4604
4605 else
4606   ac_cv_path_EGREP=$EGREP
4607 fi
4608
4609
4610    fi
4611 fi
4612 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4613 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4614  EGREP="$ac_cv_path_EGREP"
4615
4616
4617 { echo "$as_me:$LINENO: checking for fgrep" >&5
4618 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
4619 if test "${ac_cv_path_FGREP+set}" = set; then
4620   echo $ECHO_N "(cached) $ECHO_C" >&6
4621 else
4622   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4623    then ac_cv_path_FGREP="$GREP -F"
4624    else
4625      # Extract the first word of "fgrep" to use in msg output
4626 if test -z "$FGREP"; then
4627 set dummy fgrep; ac_prog_name=$2
4628 if test "${ac_cv_path_FGREP+set}" = set; then
4629   echo $ECHO_N "(cached) $ECHO_C" >&6
4630 else
4631   ac_path_FGREP_found=false
4632 # Loop through the user's path and test for each of PROGNAME-LIST
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4635 do
4636   IFS=$as_save_IFS
4637   test -z "$as_dir" && as_dir=.
4638   for ac_prog in fgrep; do
4639   for ac_exec_ext in '' $ac_executable_extensions; do
4640     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4641     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4642     # Check for GNU ac_path_FGREP and select it if it is found.
4643   # Check for GNU $ac_path_FGREP
4644 case `"$ac_path_FGREP" --version 2>&1` in
4645 *GNU*)
4646   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4647 *)
4648   ac_count=0
4649   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4650   while :
4651   do
4652     cat "conftest.in" "conftest.in" >"conftest.tmp"
4653     mv "conftest.tmp" "conftest.in"
4654     cp "conftest.in" "conftest.nl"
4655     echo 'FGREP' >> "conftest.nl"
4656     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4657     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4658     ac_count=`expr $ac_count + 1`
4659     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4660       # Best one so far, save it but keep looking for a better one
4661       ac_cv_path_FGREP="$ac_path_FGREP"
4662       ac_path_FGREP_max=$ac_count
4663     fi
4664     # 10*(2^10) chars as input seems more than enough
4665     test $ac_count -gt 10 && break
4666   done
4667   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4668 esac
4669
4670
4671     $ac_path_FGREP_found && break 3
4672   done
4673 done
4674
4675 done
4676 IFS=$as_save_IFS
4677
4678
4679 fi
4680
4681 FGREP="$ac_cv_path_FGREP"
4682 if test -z "$FGREP"; then
4683   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4684 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4685    { (exit 1); exit 1; }; }
4686 fi
4687
4688 else
4689   ac_cv_path_FGREP=$FGREP
4690 fi
4691
4692
4693    fi
4694 fi
4695 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4696 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
4697  FGREP="$ac_cv_path_FGREP"
4698
4699
4700 test -z "$GREP" && GREP=grep
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720 # Check whether --with-gnu-ld was given.
4721 if test "${with_gnu_ld+set}" = set; then
4722   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4723 else
4724   with_gnu_ld=no
4725 fi
4726
4727 ac_prog=ld
4728 if test "$GCC" = yes; then
4729   # Check if gcc -print-prog-name=ld gives a path.
4730   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4731 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4732   case $host in
4733   *-*-mingw*)
4734     # gcc leaves a trailing carriage return which upsets mingw
4735     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4736   *)
4737     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4738   esac
4739   case $ac_prog in
4740     # Accept absolute paths.
4741     [\\/]* | ?:[\\/]*)
4742       re_direlt='/[^/][^/]*/\.\./'
4743       # Canonicalize the pathname of ld
4744       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4745       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4746         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4747       done
4748       test -z "$LD" && LD="$ac_prog"
4749       ;;
4750   "")
4751     # If it fails, then pretend we aren't using GCC.
4752     ac_prog=ld
4753     ;;
4754   *)
4755     # If it is relative, then search for the first ld in PATH.
4756     with_gnu_ld=unknown
4757     ;;
4758   esac
4759 elif test "$with_gnu_ld" = yes; then
4760   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4761 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4762 else
4763   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4764 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4765 fi
4766 if test "${lt_cv_path_LD+set}" = set; then
4767   echo $ECHO_N "(cached) $ECHO_C" >&6
4768 else
4769   if test -z "$LD"; then
4770   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4771   for ac_dir in $PATH; do
4772     IFS="$lt_save_ifs"
4773     test -z "$ac_dir" && ac_dir=.
4774     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4775       lt_cv_path_LD="$ac_dir/$ac_prog"
4776       # Check to see if the program is GNU ld.  I'd rather use --version,
4777       # but apparently some variants of GNU ld only accept -v.
4778       # Break only if it was the GNU/non-GNU ld that we prefer.
4779       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4780       *GNU* | *'with BFD'*)
4781         test "$with_gnu_ld" != no && break
4782         ;;
4783       *)
4784         test "$with_gnu_ld" != yes && break
4785         ;;
4786       esac
4787     fi
4788   done
4789   IFS="$lt_save_ifs"
4790 else
4791   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4792 fi
4793 fi
4794
4795 LD="$lt_cv_path_LD"
4796 if test -n "$LD"; then
4797   { echo "$as_me:$LINENO: result: $LD" >&5
4798 echo "${ECHO_T}$LD" >&6; }
4799 else
4800   { echo "$as_me:$LINENO: result: no" >&5
4801 echo "${ECHO_T}no" >&6; }
4802 fi
4803 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4804 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4805    { (exit 1); exit 1; }; }
4806 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4807 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4808 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4809   echo $ECHO_N "(cached) $ECHO_C" >&6
4810 else
4811   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4812 case `$LD -v 2>&1 </dev/null` in
4813 *GNU* | *'with BFD'*)
4814   lt_cv_prog_gnu_ld=yes
4815   ;;
4816 *)
4817   lt_cv_prog_gnu_ld=no
4818   ;;
4819 esac
4820 fi
4821 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4822 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4823 with_gnu_ld=$lt_cv_prog_gnu_ld
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4834 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4835 if test "${lt_cv_path_NM+set}" = set; then
4836   echo $ECHO_N "(cached) $ECHO_C" >&6
4837 else
4838   if test -n "$NM"; then
4839   # Let the user override the test.
4840   lt_cv_path_NM="$NM"
4841 else
4842   lt_nm_to_check="${ac_tool_prefix}nm"
4843   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4844     lt_nm_to_check="$lt_nm_to_check nm"
4845   fi
4846   for lt_tmp_nm in $lt_nm_to_check; do
4847     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4848     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4849       IFS="$lt_save_ifs"
4850       test -z "$ac_dir" && ac_dir=.
4851       tmp_nm="$ac_dir/$lt_tmp_nm"
4852       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4853         # Check to see if the nm accepts a BSD-compat flag.
4854         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4855         #   nm: unknown option "B" ignored
4856         # Tru64's nm complains that /dev/null is an invalid object file
4857         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4858         */dev/null* | *'Invalid file or object type'*)
4859           lt_cv_path_NM="$tmp_nm -B"
4860           break
4861           ;;
4862         *)
4863           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4864           */dev/null*)
4865             lt_cv_path_NM="$tmp_nm -p"
4866             break
4867             ;;
4868           *)
4869             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4870             continue # so that we can try to find one that supports BSD flags
4871             ;;
4872           esac
4873           ;;
4874         esac
4875       fi
4876     done
4877     IFS="$lt_save_ifs"
4878   done
4879   : ${lt_cv_path_NM=no}
4880 fi
4881 fi
4882 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4883 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4884 if test "$lt_cv_path_NM" != "no"; then
4885   NM="$lt_cv_path_NM"
4886 else
4887   # Didn't find any BSD compatible name lister, look for dumpbin.
4888   if test -n "$DUMPBIN"; then :
4889     # Let the user override the test.
4890   else
4891     if test -n "$ac_tool_prefix"; then
4892   for ac_prog in dumpbin "link -dump"
4893   do
4894     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4895 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4898 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4899   echo $ECHO_N "(cached) $ECHO_C" >&6
4900 else
4901   if test -n "$DUMPBIN"; then
4902   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4903 else
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 for as_dir in $PATH
4906 do
4907   IFS=$as_save_IFS
4908   test -z "$as_dir" && as_dir=.
4909   for ac_exec_ext in '' $ac_executable_extensions; do
4910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4911     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4913     break 2
4914   fi
4915 done
4916 done
4917 IFS=$as_save_IFS
4918
4919 fi
4920 fi
4921 DUMPBIN=$ac_cv_prog_DUMPBIN
4922 if test -n "$DUMPBIN"; then
4923   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4924 echo "${ECHO_T}$DUMPBIN" >&6; }
4925 else
4926   { echo "$as_me:$LINENO: result: no" >&5
4927 echo "${ECHO_T}no" >&6; }
4928 fi
4929
4930
4931     test -n "$DUMPBIN" && break
4932   done
4933 fi
4934 if test -z "$DUMPBIN"; then
4935   ac_ct_DUMPBIN=$DUMPBIN
4936   for ac_prog in dumpbin "link -dump"
4937 do
4938   # Extract the first word of "$ac_prog", so it can be a program name with args.
4939 set dummy $ac_prog; ac_word=$2
4940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4942 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4943   echo $ECHO_N "(cached) $ECHO_C" >&6
4944 else
4945   if test -n "$ac_ct_DUMPBIN"; then
4946   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4947 else
4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 for as_dir in $PATH
4950 do
4951   IFS=$as_save_IFS
4952   test -z "$as_dir" && as_dir=.
4953   for ac_exec_ext in '' $ac_executable_extensions; do
4954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4955     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4957     break 2
4958   fi
4959 done
4960 done
4961 IFS=$as_save_IFS
4962
4963 fi
4964 fi
4965 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4966 if test -n "$ac_ct_DUMPBIN"; then
4967   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4968 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4969 else
4970   { echo "$as_me:$LINENO: result: no" >&5
4971 echo "${ECHO_T}no" >&6; }
4972 fi
4973
4974
4975   test -n "$ac_ct_DUMPBIN" && break
4976 done
4977
4978   if test "x$ac_ct_DUMPBIN" = x; then
4979     DUMPBIN=":"
4980   else
4981     case $cross_compiling:$ac_tool_warned in
4982 yes:)
4983 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4984 whose name does not start with the host triplet.  If you think this
4985 configuration is useful to you, please write to autoconf@gnu.org." >&5
4986 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4987 whose name does not start with the host triplet.  If you think this
4988 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4989 ac_tool_warned=yes ;;
4990 esac
4991     DUMPBIN=$ac_ct_DUMPBIN
4992   fi
4993 fi
4994
4995     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4996     *COFF*)
4997       DUMPBIN="$DUMPBIN -symbols"
4998       ;;
4999     *)
5000       DUMPBIN=:
5001       ;;
5002     esac
5003   fi
5004
5005   if test "$DUMPBIN" != ":"; then
5006     NM="$DUMPBIN"
5007   fi
5008 fi
5009 test -z "$NM" && NM=nm
5010
5011
5012
5013
5014
5015
5016 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5017 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5018 if test "${lt_cv_nm_interface+set}" = set; then
5019   echo $ECHO_N "(cached) $ECHO_C" >&6
5020 else
5021   lt_cv_nm_interface="BSD nm"
5022   echo "int some_variable = 0;" > conftest.$ac_ext
5023   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5024   (eval "$ac_compile" 2>conftest.err)
5025   cat conftest.err >&5
5026   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5027   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5028   cat conftest.err >&5
5029   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5030   cat conftest.out >&5
5031   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5032     lt_cv_nm_interface="MS dumpbin"
5033   fi
5034   rm -f conftest*
5035 fi
5036 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5037 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5038
5039 # find the maximum length of command line arguments
5040 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5041 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5042 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5043   echo $ECHO_N "(cached) $ECHO_C" >&6
5044 else
5045     i=0
5046   teststring="ABCD"
5047
5048   case $build_os in
5049   msdosdjgpp*)
5050     # On DJGPP, this test can blow up pretty badly due to problems in libc
5051     # (any single argument exceeding 2000 bytes causes a buffer overrun
5052     # during glob expansion).  Even if it were fixed, the result of this
5053     # check would be larger than it should be.
5054     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5055     ;;
5056
5057   gnu*)
5058     # Under GNU Hurd, this test is not required because there is
5059     # no limit to the length of command line arguments.
5060     # Libtool will interpret -1 as no limit whatsoever
5061     lt_cv_sys_max_cmd_len=-1;
5062     ;;
5063
5064   cygwin* | mingw* | cegcc*)
5065     # On Win9x/ME, this test blows up -- it succeeds, but takes
5066     # about 5 minutes as the teststring grows exponentially.
5067     # Worse, since 9x/ME are not pre-emptively multitasking,
5068     # you end up with a "frozen" computer, even though with patience
5069     # the test eventually succeeds (with a max line length of 256k).
5070     # Instead, let's just punt: use the minimum linelength reported by
5071     # all of the supported platforms: 8192 (on NT/2K/XP).
5072     lt_cv_sys_max_cmd_len=8192;
5073     ;;
5074
5075   mint*)
5076     # On MiNT this can take a long time and run out of memory.
5077     lt_cv_sys_max_cmd_len=8192;
5078     ;;
5079
5080   amigaos*)
5081     # On AmigaOS with pdksh, this test takes hours, literally.
5082     # So we just punt and use a minimum line length of 8192.
5083     lt_cv_sys_max_cmd_len=8192;
5084     ;;
5085
5086   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5087     # This has been around since 386BSD, at least.  Likely further.
5088     if test -x /sbin/sysctl; then
5089       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5090     elif test -x /usr/sbin/sysctl; then
5091       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5092     else
5093       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5094     fi
5095     # And add a safety zone
5096     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5097     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5098     ;;
5099
5100   interix*)
5101     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5102     lt_cv_sys_max_cmd_len=196608
5103     ;;
5104
5105   osf*)
5106     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5107     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5108     # nice to cause kernel panics so lets avoid the loop below.
5109     # First set a reasonable default.
5110     lt_cv_sys_max_cmd_len=16384
5111     #
5112     if test -x /sbin/sysconfig; then
5113       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5114         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5115       esac
5116     fi
5117     ;;
5118   sco3.2v5*)
5119     lt_cv_sys_max_cmd_len=102400
5120     ;;
5121   sysv5* | sco5v6* | sysv4.2uw2*)
5122     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5123     if test -n "$kargmax"; then
5124       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5125     else
5126       lt_cv_sys_max_cmd_len=32768
5127     fi
5128     ;;
5129   *)
5130     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5131     if test -n "$lt_cv_sys_max_cmd_len"; then
5132       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5133       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5134     else
5135       # Make teststring a little bigger before we do anything with it.
5136       # a 1K string should be a reasonable start.
5137       for i in 1 2 3 4 5 6 7 8 ; do
5138         teststring=$teststring$teststring
5139       done
5140       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5141       # If test is not a shell built-in, we'll probably end up computing a
5142       # maximum length that is only half of the actual maximum length, but
5143       # we can't tell.
5144       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5145                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5146               test $i != 17 # 1/2 MB should be enough
5147       do
5148         i=`expr $i + 1`
5149         teststring=$teststring$teststring
5150       done
5151       # Only check the string length outside the loop.
5152       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5153       teststring=
5154       # Add a significant safety factor because C++ compilers can tack on
5155       # massive amounts of additional arguments before passing them to the
5156       # linker.  It appears as though 1/2 is a usable value.
5157       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5158     fi
5159     ;;
5160   esac
5161
5162 fi
5163
5164 if test -n $lt_cv_sys_max_cmd_len ; then
5165   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5166 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5167 else
5168   { echo "$as_me:$LINENO: result: none" >&5
5169 echo "${ECHO_T}none" >&6; }
5170 fi
5171 max_cmd_len=$lt_cv_sys_max_cmd_len
5172
5173
5174
5175
5176
5177
5178 : ${CP="cp -f"}
5179 : ${MV="mv -f"}
5180 : ${RM="rm -f"}
5181
5182 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5183 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
5184 # Try some XSI features
5185 xsi_shell=no
5186 ( _lt_dummy="a/b/c"
5187   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5188       = c,a/b,, \
5189     && eval 'test $(( 1 + 1 )) -eq 2 \
5190     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5191   && xsi_shell=yes
5192 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
5193 echo "${ECHO_T}$xsi_shell" >&6; }
5194
5195
5196 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5197 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
5198 lt_shell_append=no
5199 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5200     >/dev/null 2>&1 \
5201   && lt_shell_append=yes
5202 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5203 echo "${ECHO_T}$lt_shell_append" >&6; }
5204
5205
5206 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5207   lt_unset=unset
5208 else
5209   lt_unset=false
5210 fi
5211
5212
5213
5214
5215
5216 # test EBCDIC or ASCII
5217 case `echo X|tr X '\101'` in
5218  A) # ASCII based system
5219     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5220   lt_SP2NL='tr \040 \012'
5221   lt_NL2SP='tr \015\012 \040\040'
5222   ;;
5223  *) # EBCDIC based system
5224   lt_SP2NL='tr \100 \n'
5225   lt_NL2SP='tr \r\n \100\100'
5226   ;;
5227 esac
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5238 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5239 if test "${lt_cv_ld_reload_flag+set}" = set; then
5240   echo $ECHO_N "(cached) $ECHO_C" >&6
5241 else
5242   lt_cv_ld_reload_flag='-r'
5243 fi
5244 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5245 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5246 reload_flag=$lt_cv_ld_reload_flag
5247 case $reload_flag in
5248 "" | " "*) ;;
5249 *) reload_flag=" $reload_flag" ;;
5250 esac
5251 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5252 case $host_os in
5253   darwin*)
5254     if test "$GCC" = yes; then
5255       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5256     else
5257       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5258     fi
5259     ;;
5260 esac
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270 if test -n "$ac_tool_prefix"; then
5271   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5272 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5275 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5276   echo $ECHO_N "(cached) $ECHO_C" >&6
5277 else
5278   if test -n "$OBJDUMP"; then
5279   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5280 else
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 for as_dir in $PATH
5283 do
5284   IFS=$as_save_IFS
5285   test -z "$as_dir" && as_dir=.
5286   for ac_exec_ext in '' $ac_executable_extensions; do
5287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5288     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5290     break 2
5291   fi
5292 done
5293 done
5294 IFS=$as_save_IFS
5295
5296 fi
5297 fi
5298 OBJDUMP=$ac_cv_prog_OBJDUMP
5299 if test -n "$OBJDUMP"; then
5300   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5301 echo "${ECHO_T}$OBJDUMP" >&6; }
5302 else
5303   { echo "$as_me:$LINENO: result: no" >&5
5304 echo "${ECHO_T}no" >&6; }
5305 fi
5306
5307
5308 fi
5309 if test -z "$ac_cv_prog_OBJDUMP"; then
5310   ac_ct_OBJDUMP=$OBJDUMP
5311   # Extract the first word of "objdump", so it can be a program name with args.
5312 set dummy objdump; ac_word=$2
5313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5315 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5316   echo $ECHO_N "(cached) $ECHO_C" >&6
5317 else
5318   if test -n "$ac_ct_OBJDUMP"; then
5319   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5320 else
5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 for as_dir in $PATH
5323 do
5324   IFS=$as_save_IFS
5325   test -z "$as_dir" && as_dir=.
5326   for ac_exec_ext in '' $ac_executable_extensions; do
5327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5328     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5330     break 2
5331   fi
5332 done
5333 done
5334 IFS=$as_save_IFS
5335
5336 fi
5337 fi
5338 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5339 if test -n "$ac_ct_OBJDUMP"; then
5340   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5341 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5342 else
5343   { echo "$as_me:$LINENO: result: no" >&5
5344 echo "${ECHO_T}no" >&6; }
5345 fi
5346
5347   if test "x$ac_ct_OBJDUMP" = x; then
5348     OBJDUMP="false"
5349   else
5350     case $cross_compiling:$ac_tool_warned in
5351 yes:)
5352 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5353 whose name does not start with the host triplet.  If you think this
5354 configuration is useful to you, please write to autoconf@gnu.org." >&5
5355 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5356 whose name does not start with the host triplet.  If you think this
5357 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5358 ac_tool_warned=yes ;;
5359 esac
5360     OBJDUMP=$ac_ct_OBJDUMP
5361   fi
5362 else
5363   OBJDUMP="$ac_cv_prog_OBJDUMP"
5364 fi
5365
5366 test -z "$OBJDUMP" && OBJDUMP=objdump
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5377 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5378 if test "${lt_cv_deplibs_check_method+set}" = set; then
5379   echo $ECHO_N "(cached) $ECHO_C" >&6
5380 else
5381   lt_cv_file_magic_cmd='$MAGIC_CMD'
5382 lt_cv_file_magic_test_file=
5383 lt_cv_deplibs_check_method='unknown'
5384 # Need to set the preceding variable on all platforms that support
5385 # interlibrary dependencies.
5386 # 'none' -- dependencies not supported.
5387 # `unknown' -- same as none, but documents that we really don't know.
5388 # 'pass_all' -- all dependencies passed with no checks.
5389 # 'test_compile' -- check by making test program.
5390 # 'file_magic [[regex]]' -- check by looking for files in library path
5391 # which responds to the $file_magic_cmd with a given extended regex.
5392 # If you have `file' or equivalent on your system and you're not sure
5393 # whether `pass_all' will *always* work, you probably want this one.
5394
5395 case $host_os in
5396 aix[4-9]*)
5397   lt_cv_deplibs_check_method=pass_all
5398   ;;
5399
5400 beos*)
5401   lt_cv_deplibs_check_method=pass_all
5402   ;;
5403
5404 bsdi[45]*)
5405   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5406   lt_cv_file_magic_cmd='/usr/bin/file -L'
5407   lt_cv_file_magic_test_file=/shlib/libc.so
5408   ;;
5409
5410 cygwin*)
5411   # func_win32_libid is a shell function defined in ltmain.sh
5412   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5413   lt_cv_file_magic_cmd='func_win32_libid'
5414   ;;
5415
5416 mingw* | pw32*)
5417   # Base MSYS/MinGW do not provide the 'file' command needed by
5418   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5419   # unless we find 'file', for example because we are cross-compiling.
5420   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5421   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5422     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5423     lt_cv_file_magic_cmd='func_win32_libid'
5424   else
5425     # Keep this pattern in sync with the one in func_win32_libid.
5426     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5427     lt_cv_file_magic_cmd='$OBJDUMP -f'
5428   fi
5429   ;;
5430
5431 cegcc*)
5432   # use the weaker test based on 'objdump'. See mingw*.
5433   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5434   lt_cv_file_magic_cmd='$OBJDUMP -f'
5435   ;;
5436
5437 darwin* | rhapsody*)
5438   lt_cv_deplibs_check_method=pass_all
5439   ;;
5440
5441 freebsd* | dragonfly*)
5442   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5443     case $host_cpu in
5444     i*86 )
5445       # Not sure whether the presence of OpenBSD here was a mistake.
5446       # Let's accept both of them until this is cleared up.
5447       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5448       lt_cv_file_magic_cmd=/usr/bin/file
5449       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5450       ;;
5451     esac
5452   else
5453     lt_cv_deplibs_check_method=pass_all
5454   fi
5455   ;;
5456
5457 gnu*)
5458   lt_cv_deplibs_check_method=pass_all
5459   ;;
5460
5461 haiku*)
5462   lt_cv_deplibs_check_method=pass_all
5463   ;;
5464
5465 hpux10.20* | hpux11*)
5466   lt_cv_file_magic_cmd=/usr/bin/file
5467   case $host_cpu in
5468   ia64*)
5469     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5470     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5471     ;;
5472   hppa*64*)
5473     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5474     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5475     ;;
5476   *)
5477     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5478     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5479     ;;
5480   esac
5481   ;;
5482
5483 interix[3-9]*)
5484   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5485   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5486   ;;
5487
5488 irix5* | irix6* | nonstopux*)
5489   case $LD in
5490   *-32|*"-32 ") libmagic=32-bit;;
5491   *-n32|*"-n32 ") libmagic=N32;;
5492   *-64|*"-64 ") libmagic=64-bit;;
5493   *) libmagic=never-match;;
5494   esac
5495   lt_cv_deplibs_check_method=pass_all
5496   ;;
5497
5498 # This must be Linux ELF.
5499 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5500   lt_cv_deplibs_check_method=pass_all
5501   ;;
5502
5503 netbsd*)
5504   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5505     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5506   else
5507     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5508   fi
5509   ;;
5510
5511 newos6*)
5512   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5513   lt_cv_file_magic_cmd=/usr/bin/file
5514   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5515   ;;
5516
5517 *nto* | *qnx*)
5518   lt_cv_deplibs_check_method=pass_all
5519   ;;
5520
5521 openbsd*)
5522   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5523     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5524   else
5525     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5526   fi
5527   ;;
5528
5529 osf3* | osf4* | osf5*)
5530   lt_cv_deplibs_check_method=pass_all
5531   ;;
5532
5533 rdos*)
5534   lt_cv_deplibs_check_method=pass_all
5535   ;;
5536
5537 solaris*)
5538   lt_cv_deplibs_check_method=pass_all
5539   ;;
5540
5541 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5542   lt_cv_deplibs_check_method=pass_all
5543   ;;
5544
5545 sysv4 | sysv4.3*)
5546   case $host_vendor in
5547   motorola)
5548     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5549     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5550     ;;
5551   ncr)
5552     lt_cv_deplibs_check_method=pass_all
5553     ;;
5554   sequent)
5555     lt_cv_file_magic_cmd='/bin/file'
5556     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5557     ;;
5558   sni)
5559     lt_cv_file_magic_cmd='/bin/file'
5560     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5561     lt_cv_file_magic_test_file=/lib/libc.so
5562     ;;
5563   siemens)
5564     lt_cv_deplibs_check_method=pass_all
5565     ;;
5566   pc)
5567     lt_cv_deplibs_check_method=pass_all
5568     ;;
5569   esac
5570   ;;
5571
5572 tpf*)
5573   lt_cv_deplibs_check_method=pass_all
5574   ;;
5575 esac
5576
5577 fi
5578 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5579 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5580 file_magic_cmd=$lt_cv_file_magic_cmd
5581 deplibs_check_method=$lt_cv_deplibs_check_method
5582 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595 if test -n "$ac_tool_prefix"; then
5596   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5597 set dummy ${ac_tool_prefix}ar; ac_word=$2
5598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5600 if test "${ac_cv_prog_AR+set}" = set; then
5601   echo $ECHO_N "(cached) $ECHO_C" >&6
5602 else
5603   if test -n "$AR"; then
5604   ac_cv_prog_AR="$AR" # Let the user override the test.
5605 else
5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607 for as_dir in $PATH
5608 do
5609   IFS=$as_save_IFS
5610   test -z "$as_dir" && as_dir=.
5611   for ac_exec_ext in '' $ac_executable_extensions; do
5612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5613     ac_cv_prog_AR="${ac_tool_prefix}ar"
5614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5615     break 2
5616   fi
5617 done
5618 done
5619 IFS=$as_save_IFS
5620
5621 fi
5622 fi
5623 AR=$ac_cv_prog_AR
5624 if test -n "$AR"; then
5625   { echo "$as_me:$LINENO: result: $AR" >&5
5626 echo "${ECHO_T}$AR" >&6; }
5627 else
5628   { echo "$as_me:$LINENO: result: no" >&5
5629 echo "${ECHO_T}no" >&6; }
5630 fi
5631
5632
5633 fi
5634 if test -z "$ac_cv_prog_AR"; then
5635   ac_ct_AR=$AR
5636   # Extract the first word of "ar", so it can be a program name with args.
5637 set dummy ar; ac_word=$2
5638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5640 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5641   echo $ECHO_N "(cached) $ECHO_C" >&6
5642 else
5643   if test -n "$ac_ct_AR"; then
5644   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5645 else
5646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 for as_dir in $PATH
5648 do
5649   IFS=$as_save_IFS
5650   test -z "$as_dir" && as_dir=.
5651   for ac_exec_ext in '' $ac_executable_extensions; do
5652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5653     ac_cv_prog_ac_ct_AR="ar"
5654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5655     break 2
5656   fi
5657 done
5658 done
5659 IFS=$as_save_IFS
5660
5661 fi
5662 fi
5663 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5664 if test -n "$ac_ct_AR"; then
5665   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5666 echo "${ECHO_T}$ac_ct_AR" >&6; }
5667 else
5668   { echo "$as_me:$LINENO: result: no" >&5
5669 echo "${ECHO_T}no" >&6; }
5670 fi
5671
5672   if test "x$ac_ct_AR" = x; then
5673     AR="false"
5674   else
5675     case $cross_compiling:$ac_tool_warned in
5676 yes:)
5677 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5678 whose name does not start with the host triplet.  If you think this
5679 configuration is useful to you, please write to autoconf@gnu.org." >&5
5680 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5681 whose name does not start with the host triplet.  If you think this
5682 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5683 ac_tool_warned=yes ;;
5684 esac
5685     AR=$ac_ct_AR
5686   fi
5687 else
5688   AR="$ac_cv_prog_AR"
5689 fi
5690
5691 test -z "$AR" && AR=ar
5692 test -z "$AR_FLAGS" && AR_FLAGS=cru
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704 if test -n "$ac_tool_prefix"; then
5705   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5706 set dummy ${ac_tool_prefix}strip; ac_word=$2
5707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5709 if test "${ac_cv_prog_STRIP+set}" = set; then
5710   echo $ECHO_N "(cached) $ECHO_C" >&6
5711 else
5712   if test -n "$STRIP"; then
5713   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5714 else
5715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716 for as_dir in $PATH
5717 do
5718   IFS=$as_save_IFS
5719   test -z "$as_dir" && as_dir=.
5720   for ac_exec_ext in '' $ac_executable_extensions; do
5721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5722     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5724     break 2
5725   fi
5726 done
5727 done
5728 IFS=$as_save_IFS
5729
5730 fi
5731 fi
5732 STRIP=$ac_cv_prog_STRIP
5733 if test -n "$STRIP"; then
5734   { echo "$as_me:$LINENO: result: $STRIP" >&5
5735 echo "${ECHO_T}$STRIP" >&6; }
5736 else
5737   { echo "$as_me:$LINENO: result: no" >&5
5738 echo "${ECHO_T}no" >&6; }
5739 fi
5740
5741
5742 fi
5743 if test -z "$ac_cv_prog_STRIP"; then
5744   ac_ct_STRIP=$STRIP
5745   # Extract the first word of "strip", so it can be a program name with args.
5746 set dummy strip; ac_word=$2
5747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5749 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5750   echo $ECHO_N "(cached) $ECHO_C" >&6
5751 else
5752   if test -n "$ac_ct_STRIP"; then
5753   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5754 else
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756 for as_dir in $PATH
5757 do
5758   IFS=$as_save_IFS
5759   test -z "$as_dir" && as_dir=.
5760   for ac_exec_ext in '' $ac_executable_extensions; do
5761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5762     ac_cv_prog_ac_ct_STRIP="strip"
5763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5764     break 2
5765   fi
5766 done
5767 done
5768 IFS=$as_save_IFS
5769
5770 fi
5771 fi
5772 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5773 if test -n "$ac_ct_STRIP"; then
5774   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5775 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5776 else
5777   { echo "$as_me:$LINENO: result: no" >&5
5778 echo "${ECHO_T}no" >&6; }
5779 fi
5780
5781   if test "x$ac_ct_STRIP" = x; then
5782     STRIP=":"
5783   else
5784     case $cross_compiling:$ac_tool_warned in
5785 yes:)
5786 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5787 whose name does not start with the host triplet.  If you think this
5788 configuration is useful to you, please write to autoconf@gnu.org." >&5
5789 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5790 whose name does not start with the host triplet.  If you think this
5791 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5792 ac_tool_warned=yes ;;
5793 esac
5794     STRIP=$ac_ct_STRIP
5795   fi
5796 else
5797   STRIP="$ac_cv_prog_STRIP"
5798 fi
5799
5800 test -z "$STRIP" && STRIP=:
5801
5802
5803
5804
5805
5806
5807 if test -n "$ac_tool_prefix"; then
5808   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5809 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5812 if test "${ac_cv_prog_RANLIB+set}" = set; then
5813   echo $ECHO_N "(cached) $ECHO_C" >&6
5814 else
5815   if test -n "$RANLIB"; then
5816   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5817 else
5818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 for as_dir in $PATH
5820 do
5821   IFS=$as_save_IFS
5822   test -z "$as_dir" && as_dir=.
5823   for ac_exec_ext in '' $ac_executable_extensions; do
5824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5825     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5827     break 2
5828   fi
5829 done
5830 done
5831 IFS=$as_save_IFS
5832
5833 fi
5834 fi
5835 RANLIB=$ac_cv_prog_RANLIB
5836 if test -n "$RANLIB"; then
5837   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5838 echo "${ECHO_T}$RANLIB" >&6; }
5839 else
5840   { echo "$as_me:$LINENO: result: no" >&5
5841 echo "${ECHO_T}no" >&6; }
5842 fi
5843
5844
5845 fi
5846 if test -z "$ac_cv_prog_RANLIB"; then
5847   ac_ct_RANLIB=$RANLIB
5848   # Extract the first word of "ranlib", so it can be a program name with args.
5849 set dummy ranlib; ac_word=$2
5850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5852 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5853   echo $ECHO_N "(cached) $ECHO_C" >&6
5854 else
5855   if test -n "$ac_ct_RANLIB"; then
5856   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5857 else
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 for as_dir in $PATH
5860 do
5861   IFS=$as_save_IFS
5862   test -z "$as_dir" && as_dir=.
5863   for ac_exec_ext in '' $ac_executable_extensions; do
5864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5865     ac_cv_prog_ac_ct_RANLIB="ranlib"
5866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867     break 2
5868   fi
5869 done
5870 done
5871 IFS=$as_save_IFS
5872
5873 fi
5874 fi
5875 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5876 if test -n "$ac_ct_RANLIB"; then
5877   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5878 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5879 else
5880   { echo "$as_me:$LINENO: result: no" >&5
5881 echo "${ECHO_T}no" >&6; }
5882 fi
5883
5884   if test "x$ac_ct_RANLIB" = x; then
5885     RANLIB=":"
5886   else
5887     case $cross_compiling:$ac_tool_warned in
5888 yes:)
5889 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5890 whose name does not start with the host triplet.  If you think this
5891 configuration is useful to you, please write to autoconf@gnu.org." >&5
5892 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5893 whose name does not start with the host triplet.  If you think this
5894 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5895 ac_tool_warned=yes ;;
5896 esac
5897     RANLIB=$ac_ct_RANLIB
5898   fi
5899 else
5900   RANLIB="$ac_cv_prog_RANLIB"
5901 fi
5902
5903 test -z "$RANLIB" && RANLIB=:
5904
5905
5906
5907
5908
5909
5910 # Determine commands to create old-style static archives.
5911 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5912 old_postinstall_cmds='chmod 644 $oldlib'
5913 old_postuninstall_cmds=
5914
5915 if test -n "$RANLIB"; then
5916   case $host_os in
5917   openbsd*)
5918     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5919     ;;
5920   *)
5921     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5922     ;;
5923   esac
5924   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5925 fi
5926
5927 case $host_os in
5928   darwin*)
5929     lock_old_archive_extraction=yes ;;
5930   *)
5931     lock_old_archive_extraction=no ;;
5932 esac
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972 # If no C compiler was specified, use CC.
5973 LTCC=${LTCC-"$CC"}
5974
5975 # If no C compiler flags were specified, use CFLAGS.
5976 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5977
5978 # Allow CC to be a program name with arguments.
5979 compiler=$CC
5980
5981
5982 # Check for command to grab the raw symbol name followed by C symbol from nm.
5983 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5984 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5985 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5986   echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988
5989 # These are sane defaults that work on at least a few old systems.
5990 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5991
5992 # Character class describing NM global symbol codes.
5993 symcode='[BCDEGRST]'
5994
5995 # Regexp to match symbols that can be accessed directly from C.
5996 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5997
5998 # Define system-specific variables.
5999 case $host_os in
6000 aix*)
6001   symcode='[BCDT]'
6002   ;;
6003 cygwin* | mingw* | pw32* | cegcc*)
6004   symcode='[ABCDGISTW]'
6005   ;;
6006 hpux*)
6007   if test "$host_cpu" = ia64; then
6008     symcode='[ABCDEGRST]'
6009   fi
6010   ;;
6011 irix* | nonstopux*)
6012   symcode='[BCDEGRST]'
6013   ;;
6014 osf*)
6015   symcode='[BCDEGQRST]'
6016   ;;
6017 solaris*)
6018   symcode='[BDRT]'
6019   ;;
6020 sco3.2v5*)
6021   symcode='[DT]'
6022   ;;
6023 sysv4.2uw2*)
6024   symcode='[DT]'
6025   ;;
6026 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6027   symcode='[ABDT]'
6028   ;;
6029 sysv4)
6030   symcode='[DFNSTU]'
6031   ;;
6032 esac
6033
6034 # If we're using GNU nm, then use its standard symbol codes.
6035 case `$NM -V 2>&1` in
6036 *GNU* | *'with BFD'*)
6037   symcode='[ABCDGIRSTW]' ;;
6038 esac
6039
6040 # Transform an extracted symbol line into a proper C declaration.
6041 # Some systems (esp. on ia64) link data and code symbols differently,
6042 # so use this general approach.
6043 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6044
6045 # Transform an extracted symbol line into symbol name and symbol address
6046 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6047 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6048
6049 # Handle CRLF in mingw tool chain
6050 opt_cr=
6051 case $build_os in
6052 mingw*)
6053   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6054   ;;
6055 esac
6056
6057 # Try without a prefix underscore, then with it.
6058 for ac_symprfx in "" "_"; do
6059
6060   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6061   symxfrm="\\1 $ac_symprfx\\2 \\2"
6062
6063   # Write the raw and C identifiers.
6064   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6065     # Fake it for dumpbin and say T for any non-static function
6066     # and D for any global variable.
6067     # Also find C++ and __fastcall symbols from MSVC++,
6068     # which start with @ or ?.
6069     lt_cv_sys_global_symbol_pipe="$AWK '"\
6070 "     {last_section=section; section=\$ 3};"\
6071 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6072 "     \$ 0!~/External *\|/{next};"\
6073 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6074 "     {if(hide[section]) next};"\
6075 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6076 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6077 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6078 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6079 "     ' prfx=^$ac_symprfx"
6080   else
6081     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6082   fi
6083
6084   # Check to see that the pipe works correctly.
6085   pipe_works=no
6086
6087   rm -f conftest*
6088   cat > conftest.$ac_ext <<_LT_EOF
6089 #ifdef __cplusplus
6090 extern "C" {
6091 #endif
6092 char nm_test_var;
6093 void nm_test_func(void);
6094 void nm_test_func(void){}
6095 #ifdef __cplusplus
6096 }
6097 #endif
6098 int main(){nm_test_var='a';nm_test_func();return(0);}
6099 _LT_EOF
6100
6101   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6102   (eval $ac_compile) 2>&5
6103   ac_status=$?
6104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105   (exit $ac_status); }; then
6106     # Now try to grab the symbols.
6107     nlist=conftest.nm
6108     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\"") >&5
6109   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6110   ac_status=$?
6111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112   (exit $ac_status); } && test -s "$nlist"; then
6113       # Try sorting and uniquifying the output.
6114       if sort "$nlist" | uniq > "$nlist"T; then
6115         mv -f "$nlist"T "$nlist"
6116       else
6117         rm -f "$nlist"T
6118       fi
6119
6120       # Make sure that we snagged all the symbols we need.
6121       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6122         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6123           cat <<_LT_EOF > conftest.$ac_ext
6124 #ifdef __cplusplus
6125 extern "C" {
6126 #endif
6127
6128 _LT_EOF
6129           # Now generate the symbol file.
6130           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6131
6132           cat <<_LT_EOF >> conftest.$ac_ext
6133
6134 /* The mapping between symbol names and symbols.  */
6135 const struct {
6136   const char *name;
6137   void       *address;
6138 }
6139 lt__PROGRAM__LTX_preloaded_symbols[] =
6140 {
6141   { "@PROGRAM@", (void *) 0 },
6142 _LT_EOF
6143           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6144           cat <<\_LT_EOF >> conftest.$ac_ext
6145   {0, (void *) 0}
6146 };
6147
6148 /* This works around a problem in FreeBSD linker */
6149 #ifdef FREEBSD_WORKAROUND
6150 static const void *lt_preloaded_setup() {
6151   return lt__PROGRAM__LTX_preloaded_symbols;
6152 }
6153 #endif
6154
6155 #ifdef __cplusplus
6156 }
6157 #endif
6158 _LT_EOF
6159           # Now try linking the two files.
6160           mv conftest.$ac_objext conftstm.$ac_objext
6161           lt_save_LIBS="$LIBS"
6162           lt_save_CFLAGS="$CFLAGS"
6163           LIBS="conftstm.$ac_objext"
6164           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6165           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6166   (eval $ac_link) 2>&5
6167   ac_status=$?
6168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6170             pipe_works=yes
6171           fi
6172           LIBS="$lt_save_LIBS"
6173           CFLAGS="$lt_save_CFLAGS"
6174         else
6175           echo "cannot find nm_test_func in $nlist" >&5
6176         fi
6177       else
6178         echo "cannot find nm_test_var in $nlist" >&5
6179       fi
6180     else
6181       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6182     fi
6183   else
6184     echo "$progname: failed program was:" >&5
6185     cat conftest.$ac_ext >&5
6186   fi
6187   rm -rf conftest* conftst*
6188
6189   # Do not use the global_symbol_pipe unless it works.
6190   if test "$pipe_works" = yes; then
6191     break
6192   else
6193     lt_cv_sys_global_symbol_pipe=
6194   fi
6195 done
6196
6197 fi
6198
6199 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6200   lt_cv_sys_global_symbol_to_cdecl=
6201 fi
6202 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6203   { echo "$as_me:$LINENO: result: failed" >&5
6204 echo "${ECHO_T}failed" >&6; }
6205 else
6206   { echo "$as_me:$LINENO: result: ok" >&5
6207 echo "${ECHO_T}ok" >&6; }
6208 fi
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231 # Check whether --enable-libtool-lock was given.
6232 if test "${enable_libtool_lock+set}" = set; then
6233   enableval=$enable_libtool_lock;
6234 fi
6235
6236 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6237
6238 # Some flags need to be propagated to the compiler or linker for good
6239 # libtool support.
6240 case $host in
6241 ia64-*-hpux*)
6242   # Find out which ABI we are using.
6243   echo 'int i;' > conftest.$ac_ext
6244   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6245   (eval $ac_compile) 2>&5
6246   ac_status=$?
6247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248   (exit $ac_status); }; then
6249     case `/usr/bin/file conftest.$ac_objext` in
6250       *ELF-32*)
6251         HPUX_IA64_MODE="32"
6252         ;;
6253       *ELF-64*)
6254         HPUX_IA64_MODE="64"
6255         ;;
6256     esac
6257   fi
6258   rm -rf conftest*
6259   ;;
6260 *-*-irix6*)
6261   # Find out which ABI we are using.
6262   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6263   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6264   (eval $ac_compile) 2>&5
6265   ac_status=$?
6266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267   (exit $ac_status); }; then
6268     if test "$lt_cv_prog_gnu_ld" = yes; then
6269       case `/usr/bin/file conftest.$ac_objext` in
6270         *32-bit*)
6271           LD="${LD-ld} -melf32bsmip"
6272           ;;
6273         *N32*)
6274           LD="${LD-ld} -melf32bmipn32"
6275           ;;
6276         *64-bit*)
6277           LD="${LD-ld} -melf64bmip"
6278         ;;
6279       esac
6280     else
6281       case `/usr/bin/file conftest.$ac_objext` in
6282         *32-bit*)
6283           LD="${LD-ld} -32"
6284           ;;
6285         *N32*)
6286           LD="${LD-ld} -n32"
6287           ;;
6288         *64-bit*)
6289           LD="${LD-ld} -64"
6290           ;;
6291       esac
6292     fi
6293   fi
6294   rm -rf conftest*
6295   ;;
6296
6297 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6298 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6299   # Find out which ABI we are using.
6300   echo 'int i;' > conftest.$ac_ext
6301   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6302   (eval $ac_compile) 2>&5
6303   ac_status=$?
6304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305   (exit $ac_status); }; then
6306     case `/usr/bin/file conftest.o` in
6307       *32-bit*)
6308         case $host in
6309           x86_64-*kfreebsd*-gnu)
6310             LD="${LD-ld} -m elf_i386_fbsd"
6311             ;;
6312           x86_64-*linux*)
6313             LD="${LD-ld} -m elf_i386"
6314             ;;
6315           ppc64-*linux*|powerpc64-*linux*)
6316             LD="${LD-ld} -m elf32ppclinux"
6317             ;;
6318           s390x-*linux*)
6319             LD="${LD-ld} -m elf_s390"
6320             ;;
6321           sparc64-*linux*)
6322             LD="${LD-ld} -m elf32_sparc"
6323             ;;
6324         esac
6325         ;;
6326       *64-bit*)
6327         case $host in
6328           x86_64-*kfreebsd*-gnu)
6329             LD="${LD-ld} -m elf_x86_64_fbsd"
6330             ;;
6331           x86_64-*linux*)
6332             LD="${LD-ld} -m elf_x86_64"
6333             ;;
6334           ppc*-*linux*|powerpc*-*linux*)
6335             LD="${LD-ld} -m elf64ppc"
6336             ;;
6337           s390*-*linux*|s390*-*tpf*)
6338             LD="${LD-ld} -m elf64_s390"
6339             ;;
6340           sparc*-*linux*)
6341             LD="${LD-ld} -m elf64_sparc"
6342             ;;
6343         esac
6344         ;;
6345     esac
6346   fi
6347   rm -rf conftest*
6348   ;;
6349
6350 *-*-sco3.2v5*)
6351   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6352   SAVE_CFLAGS="$CFLAGS"
6353   CFLAGS="$CFLAGS -belf"
6354   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6355 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6356 if test "${lt_cv_cc_needs_belf+set}" = set; then
6357   echo $ECHO_N "(cached) $ECHO_C" >&6
6358 else
6359   ac_ext=c
6360 ac_cpp='$CPP $CPPFLAGS'
6361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6364
6365      cat >conftest.$ac_ext <<_ACEOF
6366 /* confdefs.h.  */
6367 _ACEOF
6368 cat confdefs.h >>conftest.$ac_ext
6369 cat >>conftest.$ac_ext <<_ACEOF
6370 /* end confdefs.h.  */
6371
6372 int
6373 main ()
6374 {
6375
6376   ;
6377   return 0;
6378 }
6379 _ACEOF
6380 rm -f conftest.$ac_objext conftest$ac_exeext
6381 if { (ac_try="$ac_link"
6382 case "(($ac_try" in
6383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384   *) ac_try_echo=$ac_try;;
6385 esac
6386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387   (eval "$ac_link") 2>conftest.er1
6388   ac_status=$?
6389   grep -v '^ *+' conftest.er1 >conftest.err
6390   rm -f conftest.er1
6391   cat conftest.err >&5
6392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393   (exit $ac_status); } && {
6394          test -z "$ac_c_werror_flag" ||
6395          test ! -s conftest.err
6396        } && test -s conftest$ac_exeext &&
6397        $as_test_x conftest$ac_exeext; then
6398   lt_cv_cc_needs_belf=yes
6399 else
6400   echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6402
6403         lt_cv_cc_needs_belf=no
6404 fi
6405
6406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6407       conftest$ac_exeext conftest.$ac_ext
6408      ac_ext=c
6409 ac_cpp='$CPP $CPPFLAGS'
6410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6413
6414 fi
6415 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6416 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6417   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6418     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6419     CFLAGS="$SAVE_CFLAGS"
6420   fi
6421   ;;
6422 sparc*-*solaris*)
6423   # Find out which ABI we are using.
6424   echo 'int i;' > conftest.$ac_ext
6425   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6426   (eval $ac_compile) 2>&5
6427   ac_status=$?
6428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429   (exit $ac_status); }; then
6430     case `/usr/bin/file conftest.o` in
6431     *64-bit*)
6432       case $lt_cv_prog_gnu_ld in
6433       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6434       *)
6435         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6436           LD="${LD-ld} -64"
6437         fi
6438         ;;
6439       esac
6440       ;;
6441     esac
6442   fi
6443   rm -rf conftest*
6444   ;;
6445 esac
6446
6447 need_locks="$enable_libtool_lock"
6448
6449
6450   case $host_os in
6451     rhapsody* | darwin*)
6452     if test -n "$ac_tool_prefix"; then
6453   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6454 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6457 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6458   echo $ECHO_N "(cached) $ECHO_C" >&6
6459 else
6460   if test -n "$DSYMUTIL"; then
6461   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6462 else
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464 for as_dir in $PATH
6465 do
6466   IFS=$as_save_IFS
6467   test -z "$as_dir" && as_dir=.
6468   for ac_exec_ext in '' $ac_executable_extensions; do
6469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6470     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6472     break 2
6473   fi
6474 done
6475 done
6476 IFS=$as_save_IFS
6477
6478 fi
6479 fi
6480 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6481 if test -n "$DSYMUTIL"; then
6482   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6483 echo "${ECHO_T}$DSYMUTIL" >&6; }
6484 else
6485   { echo "$as_me:$LINENO: result: no" >&5
6486 echo "${ECHO_T}no" >&6; }
6487 fi
6488
6489
6490 fi
6491 if test -z "$ac_cv_prog_DSYMUTIL"; then
6492   ac_ct_DSYMUTIL=$DSYMUTIL
6493   # Extract the first word of "dsymutil", so it can be a program name with args.
6494 set dummy dsymutil; ac_word=$2
6495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6497 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6498   echo $ECHO_N "(cached) $ECHO_C" >&6
6499 else
6500   if test -n "$ac_ct_DSYMUTIL"; then
6501   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6502 else
6503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504 for as_dir in $PATH
6505 do
6506   IFS=$as_save_IFS
6507   test -z "$as_dir" && as_dir=.
6508   for ac_exec_ext in '' $ac_executable_extensions; do
6509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6510     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6512     break 2
6513   fi
6514 done
6515 done
6516 IFS=$as_save_IFS
6517
6518 fi
6519 fi
6520 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6521 if test -n "$ac_ct_DSYMUTIL"; then
6522   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6523 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
6524 else
6525   { echo "$as_me:$LINENO: result: no" >&5
6526 echo "${ECHO_T}no" >&6; }
6527 fi
6528
6529   if test "x$ac_ct_DSYMUTIL" = x; then
6530     DSYMUTIL=":"
6531   else
6532     case $cross_compiling:$ac_tool_warned in
6533 yes:)
6534 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6535 whose name does not start with the host triplet.  If you think this
6536 configuration is useful to you, please write to autoconf@gnu.org." >&5
6537 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6538 whose name does not start with the host triplet.  If you think this
6539 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6540 ac_tool_warned=yes ;;
6541 esac
6542     DSYMUTIL=$ac_ct_DSYMUTIL
6543   fi
6544 else
6545   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6546 fi
6547
6548     if test -n "$ac_tool_prefix"; then
6549   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6550 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6553 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6554   echo $ECHO_N "(cached) $ECHO_C" >&6
6555 else
6556   if test -n "$NMEDIT"; then
6557   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6558 else
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560 for as_dir in $PATH
6561 do
6562   IFS=$as_save_IFS
6563   test -z "$as_dir" && as_dir=.
6564   for ac_exec_ext in '' $ac_executable_extensions; do
6565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6566     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6568     break 2
6569   fi
6570 done
6571 done
6572 IFS=$as_save_IFS
6573
6574 fi
6575 fi
6576 NMEDIT=$ac_cv_prog_NMEDIT
6577 if test -n "$NMEDIT"; then
6578   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
6579 echo "${ECHO_T}$NMEDIT" >&6; }
6580 else
6581   { echo "$as_me:$LINENO: result: no" >&5
6582 echo "${ECHO_T}no" >&6; }
6583 fi
6584
6585
6586 fi
6587 if test -z "$ac_cv_prog_NMEDIT"; then
6588   ac_ct_NMEDIT=$NMEDIT
6589   # Extract the first word of "nmedit", so it can be a program name with args.
6590 set dummy nmedit; ac_word=$2
6591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6593 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6594   echo $ECHO_N "(cached) $ECHO_C" >&6
6595 else
6596   if test -n "$ac_ct_NMEDIT"; then
6597   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6598 else
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 for as_dir in $PATH
6601 do
6602   IFS=$as_save_IFS
6603   test -z "$as_dir" && as_dir=.
6604   for ac_exec_ext in '' $ac_executable_extensions; do
6605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6606     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6608     break 2
6609   fi
6610 done
6611 done
6612 IFS=$as_save_IFS
6613
6614 fi
6615 fi
6616 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6617 if test -n "$ac_ct_NMEDIT"; then
6618   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6619 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
6620 else
6621   { echo "$as_me:$LINENO: result: no" >&5
6622 echo "${ECHO_T}no" >&6; }
6623 fi
6624
6625   if test "x$ac_ct_NMEDIT" = x; then
6626     NMEDIT=":"
6627   else
6628     case $cross_compiling:$ac_tool_warned in
6629 yes:)
6630 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6631 whose name does not start with the host triplet.  If you think this
6632 configuration is useful to you, please write to autoconf@gnu.org." >&5
6633 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6634 whose name does not start with the host triplet.  If you think this
6635 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6636 ac_tool_warned=yes ;;
6637 esac
6638     NMEDIT=$ac_ct_NMEDIT
6639   fi
6640 else
6641   NMEDIT="$ac_cv_prog_NMEDIT"
6642 fi
6643
6644     if test -n "$ac_tool_prefix"; then
6645   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6646 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6649 if test "${ac_cv_prog_LIPO+set}" = set; then
6650   echo $ECHO_N "(cached) $ECHO_C" >&6
6651 else
6652   if test -n "$LIPO"; then
6653   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6654 else
6655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656 for as_dir in $PATH
6657 do
6658   IFS=$as_save_IFS
6659   test -z "$as_dir" && as_dir=.
6660   for ac_exec_ext in '' $ac_executable_extensions; do
6661   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6662     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6664     break 2
6665   fi
6666 done
6667 done
6668 IFS=$as_save_IFS
6669
6670 fi
6671 fi
6672 LIPO=$ac_cv_prog_LIPO
6673 if test -n "$LIPO"; then
6674   { echo "$as_me:$LINENO: result: $LIPO" >&5
6675 echo "${ECHO_T}$LIPO" >&6; }
6676 else
6677   { echo "$as_me:$LINENO: result: no" >&5
6678 echo "${ECHO_T}no" >&6; }
6679 fi
6680
6681
6682 fi
6683 if test -z "$ac_cv_prog_LIPO"; then
6684   ac_ct_LIPO=$LIPO
6685   # Extract the first word of "lipo", so it can be a program name with args.
6686 set dummy lipo; ac_word=$2
6687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6689 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6690   echo $ECHO_N "(cached) $ECHO_C" >&6
6691 else
6692   if test -n "$ac_ct_LIPO"; then
6693   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6694 else
6695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696 for as_dir in $PATH
6697 do
6698   IFS=$as_save_IFS
6699   test -z "$as_dir" && as_dir=.
6700   for ac_exec_ext in '' $ac_executable_extensions; do
6701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6702     ac_cv_prog_ac_ct_LIPO="lipo"
6703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6704     break 2
6705   fi
6706 done
6707 done
6708 IFS=$as_save_IFS
6709
6710 fi
6711 fi
6712 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6713 if test -n "$ac_ct_LIPO"; then
6714   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6715 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
6716 else
6717   { echo "$as_me:$LINENO: result: no" >&5
6718 echo "${ECHO_T}no" >&6; }
6719 fi
6720
6721   if test "x$ac_ct_LIPO" = x; then
6722     LIPO=":"
6723   else
6724     case $cross_compiling:$ac_tool_warned in
6725 yes:)
6726 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6727 whose name does not start with the host triplet.  If you think this
6728 configuration is useful to you, please write to autoconf@gnu.org." >&5
6729 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6730 whose name does not start with the host triplet.  If you think this
6731 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6732 ac_tool_warned=yes ;;
6733 esac
6734     LIPO=$ac_ct_LIPO
6735   fi
6736 else
6737   LIPO="$ac_cv_prog_LIPO"
6738 fi
6739
6740     if test -n "$ac_tool_prefix"; then
6741   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6742 set dummy ${ac_tool_prefix}otool; ac_word=$2
6743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6745 if test "${ac_cv_prog_OTOOL+set}" = set; then
6746   echo $ECHO_N "(cached) $ECHO_C" >&6
6747 else
6748   if test -n "$OTOOL"; then
6749   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6750 else
6751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752 for as_dir in $PATH
6753 do
6754   IFS=$as_save_IFS
6755   test -z "$as_dir" && as_dir=.
6756   for ac_exec_ext in '' $ac_executable_extensions; do
6757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6758     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6760     break 2
6761   fi
6762 done
6763 done
6764 IFS=$as_save_IFS
6765
6766 fi
6767 fi
6768 OTOOL=$ac_cv_prog_OTOOL
6769 if test -n "$OTOOL"; then
6770   { echo "$as_me:$LINENO: result: $OTOOL" >&5
6771 echo "${ECHO_T}$OTOOL" >&6; }
6772 else
6773   { echo "$as_me:$LINENO: result: no" >&5
6774 echo "${ECHO_T}no" >&6; }
6775 fi
6776
6777
6778 fi
6779 if test -z "$ac_cv_prog_OTOOL"; then
6780   ac_ct_OTOOL=$OTOOL
6781   # Extract the first word of "otool", so it can be a program name with args.
6782 set dummy otool; ac_word=$2
6783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6785 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6786   echo $ECHO_N "(cached) $ECHO_C" >&6
6787 else
6788   if test -n "$ac_ct_OTOOL"; then
6789   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6790 else
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 for as_dir in $PATH
6793 do
6794   IFS=$as_save_IFS
6795   test -z "$as_dir" && as_dir=.
6796   for ac_exec_ext in '' $ac_executable_extensions; do
6797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6798     ac_cv_prog_ac_ct_OTOOL="otool"
6799     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6800     break 2
6801   fi
6802 done
6803 done
6804 IFS=$as_save_IFS
6805
6806 fi
6807 fi
6808 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6809 if test -n "$ac_ct_OTOOL"; then
6810   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6811 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
6812 else
6813   { echo "$as_me:$LINENO: result: no" >&5
6814 echo "${ECHO_T}no" >&6; }
6815 fi
6816
6817   if test "x$ac_ct_OTOOL" = x; then
6818     OTOOL=":"
6819   else
6820     case $cross_compiling:$ac_tool_warned in
6821 yes:)
6822 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6823 whose name does not start with the host triplet.  If you think this
6824 configuration is useful to you, please write to autoconf@gnu.org." >&5
6825 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6826 whose name does not start with the host triplet.  If you think this
6827 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6828 ac_tool_warned=yes ;;
6829 esac
6830     OTOOL=$ac_ct_OTOOL
6831   fi
6832 else
6833   OTOOL="$ac_cv_prog_OTOOL"
6834 fi
6835
6836     if test -n "$ac_tool_prefix"; then
6837   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6838 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6841 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6842   echo $ECHO_N "(cached) $ECHO_C" >&6
6843 else
6844   if test -n "$OTOOL64"; then
6845   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6846 else
6847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848 for as_dir in $PATH
6849 do
6850   IFS=$as_save_IFS
6851   test -z "$as_dir" && as_dir=.
6852   for ac_exec_ext in '' $ac_executable_extensions; do
6853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6854     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6856     break 2
6857   fi
6858 done
6859 done
6860 IFS=$as_save_IFS
6861
6862 fi
6863 fi
6864 OTOOL64=$ac_cv_prog_OTOOL64
6865 if test -n "$OTOOL64"; then
6866   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
6867 echo "${ECHO_T}$OTOOL64" >&6; }
6868 else
6869   { echo "$as_me:$LINENO: result: no" >&5
6870 echo "${ECHO_T}no" >&6; }
6871 fi
6872
6873
6874 fi
6875 if test -z "$ac_cv_prog_OTOOL64"; then
6876   ac_ct_OTOOL64=$OTOOL64
6877   # Extract the first word of "otool64", so it can be a program name with args.
6878 set dummy otool64; ac_word=$2
6879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6881 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6882   echo $ECHO_N "(cached) $ECHO_C" >&6
6883 else
6884   if test -n "$ac_ct_OTOOL64"; then
6885   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6886 else
6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 for as_dir in $PATH
6889 do
6890   IFS=$as_save_IFS
6891   test -z "$as_dir" && as_dir=.
6892   for ac_exec_ext in '' $ac_executable_extensions; do
6893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6894     ac_cv_prog_ac_ct_OTOOL64="otool64"
6895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6896     break 2
6897   fi
6898 done
6899 done
6900 IFS=$as_save_IFS
6901
6902 fi
6903 fi
6904 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6905 if test -n "$ac_ct_OTOOL64"; then
6906   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6907 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6908 else
6909   { echo "$as_me:$LINENO: result: no" >&5
6910 echo "${ECHO_T}no" >&6; }
6911 fi
6912
6913   if test "x$ac_ct_OTOOL64" = x; then
6914     OTOOL64=":"
6915   else
6916     case $cross_compiling:$ac_tool_warned in
6917 yes:)
6918 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6919 whose name does not start with the host triplet.  If you think this
6920 configuration is useful to you, please write to autoconf@gnu.org." >&5
6921 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6922 whose name does not start with the host triplet.  If you think this
6923 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6924 ac_tool_warned=yes ;;
6925 esac
6926     OTOOL64=$ac_ct_OTOOL64
6927   fi
6928 else
6929   OTOOL64="$ac_cv_prog_OTOOL64"
6930 fi
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6959 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6960 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6961   echo $ECHO_N "(cached) $ECHO_C" >&6
6962 else
6963   lt_cv_apple_cc_single_mod=no
6964       if test -z "${LT_MULTI_MODULE}"; then
6965         # By default we will add the -single_module flag. You can override
6966         # by either setting the environment variable LT_MULTI_MODULE
6967         # non-empty at configure time, or by adding -multi_module to the
6968         # link flags.
6969         rm -rf libconftest.dylib*
6970         echo "int foo(void){return 1;}" > conftest.c
6971         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6972 -dynamiclib -Wl,-single_module conftest.c" >&5
6973         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6974           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6975         _lt_result=$?
6976         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6977           lt_cv_apple_cc_single_mod=yes
6978         else
6979           cat conftest.err >&5
6980         fi
6981         rm -rf libconftest.dylib*
6982         rm -f conftest.*
6983       fi
6984 fi
6985 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6986 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6987     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6988 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6989 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6990   echo $ECHO_N "(cached) $ECHO_C" >&6
6991 else
6992   lt_cv_ld_exported_symbols_list=no
6993       save_LDFLAGS=$LDFLAGS
6994       echo "_main" > conftest.sym
6995       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6996       cat >conftest.$ac_ext <<_ACEOF
6997 /* confdefs.h.  */
6998 _ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h.  */
7002
7003 int
7004 main ()
7005 {
7006
7007   ;
7008   return 0;
7009 }
7010 _ACEOF
7011 rm -f conftest.$ac_objext conftest$ac_exeext
7012 if { (ac_try="$ac_link"
7013 case "(($ac_try" in
7014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7015   *) ac_try_echo=$ac_try;;
7016 esac
7017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7018   (eval "$ac_link") 2>conftest.er1
7019   ac_status=$?
7020   grep -v '^ *+' conftest.er1 >conftest.err
7021   rm -f conftest.er1
7022   cat conftest.err >&5
7023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024   (exit $ac_status); } && {
7025          test -z "$ac_c_werror_flag" ||
7026          test ! -s conftest.err
7027        } && test -s conftest$ac_exeext &&
7028        $as_test_x conftest$ac_exeext; then
7029   lt_cv_ld_exported_symbols_list=yes
7030 else
7031   echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.$ac_ext >&5
7033
7034         lt_cv_ld_exported_symbols_list=no
7035 fi
7036
7037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7038       conftest$ac_exeext conftest.$ac_ext
7039         LDFLAGS="$save_LDFLAGS"
7040
7041 fi
7042 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7043 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7044     { echo "$as_me:$LINENO: checking for -force_load linker flag" >&5
7045 echo $ECHO_N "checking for -force_load linker flag... $ECHO_C" >&6; }
7046 if test "${lt_cv_ld_force_load+set}" = set; then
7047   echo $ECHO_N "(cached) $ECHO_C" >&6
7048 else
7049   lt_cv_ld_force_load=no
7050       cat > conftest.c << _LT_EOF
7051 int forced_loaded() { return 2;}
7052 _LT_EOF
7053       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7054       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7055       echo "$AR cru libconftest.a conftest.o" >&5
7056       $AR cru libconftest.a conftest.o 2>&5
7057       echo "$RANLIB libconftest.a" >&5
7058       $RANLIB libconftest.a 2>&5
7059       cat > conftest.c << _LT_EOF
7060 int main() { return 0;}
7061 _LT_EOF
7062       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7063       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7064       _lt_result=$?
7065       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7066         lt_cv_ld_force_load=yes
7067       else
7068         cat conftest.err >&5
7069       fi
7070         rm -f conftest.err libconftest.a conftest conftest.c
7071         rm -rf conftest.dSYM
7072
7073 fi
7074 { echo "$as_me:$LINENO: result: $lt_cv_ld_force_load" >&5
7075 echo "${ECHO_T}$lt_cv_ld_force_load" >&6; }
7076     case $host_os in
7077     rhapsody* | darwin1.[012])
7078       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7079     darwin1.*)
7080       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7081     darwin*) # darwin 5.x on
7082       # if running on 10.5 or later, the deployment target defaults
7083       # to the OS version, if on x86, and 10.4, the deployment
7084       # target defaults to 10.4. Don't you love it?
7085       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7086         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7087           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7088         10.[012]*)
7089           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7090         10.*)
7091           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7092       esac
7093     ;;
7094   esac
7095     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7096       _lt_dar_single_mod='$single_module'
7097     fi
7098     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7099       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7100     else
7101       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7102     fi
7103     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7104       _lt_dsymutil='~$DSYMUTIL $lib || :'
7105     else
7106       _lt_dsymutil=
7107     fi
7108     ;;
7109   esac
7110
7111
7112 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7113 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7114 if test "${ac_cv_header_stdc+set}" = set; then
7115   echo $ECHO_N "(cached) $ECHO_C" >&6
7116 else
7117   cat >conftest.$ac_ext <<_ACEOF
7118 /* confdefs.h.  */
7119 _ACEOF
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h.  */
7123 #include <stdlib.h>
7124 #include <stdarg.h>
7125 #include <string.h>
7126 #include <float.h>
7127
7128 int
7129 main ()
7130 {
7131
7132   ;
7133   return 0;
7134 }
7135 _ACEOF
7136 rm -f conftest.$ac_objext
7137 if { (ac_try="$ac_compile"
7138 case "(($ac_try" in
7139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7140   *) ac_try_echo=$ac_try;;
7141 esac
7142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7143   (eval "$ac_compile") 2>conftest.er1
7144   ac_status=$?
7145   grep -v '^ *+' conftest.er1 >conftest.err
7146   rm -f conftest.er1
7147   cat conftest.err >&5
7148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149   (exit $ac_status); } && {
7150          test -z "$ac_c_werror_flag" ||
7151          test ! -s conftest.err
7152        } && test -s conftest.$ac_objext; then
7153   ac_cv_header_stdc=yes
7154 else
7155   echo "$as_me: failed program was:" >&5
7156 sed 's/^/| /' conftest.$ac_ext >&5
7157
7158         ac_cv_header_stdc=no
7159 fi
7160
7161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7162
7163 if test $ac_cv_header_stdc = yes; then
7164   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 #include <string.h>
7172
7173 _ACEOF
7174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7175   $EGREP "memchr" >/dev/null 2>&1; then
7176   :
7177 else
7178   ac_cv_header_stdc=no
7179 fi
7180 rm -f -r conftest*
7181
7182 fi
7183
7184 if test $ac_cv_header_stdc = yes; then
7185   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7186   cat >conftest.$ac_ext <<_ACEOF
7187 /* confdefs.h.  */
7188 _ACEOF
7189 cat confdefs.h >>conftest.$ac_ext
7190 cat >>conftest.$ac_ext <<_ACEOF
7191 /* end confdefs.h.  */
7192 #include <stdlib.h>
7193
7194 _ACEOF
7195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7196   $EGREP "free" >/dev/null 2>&1; then
7197   :
7198 else
7199   ac_cv_header_stdc=no
7200 fi
7201 rm -f -r conftest*
7202
7203 fi
7204
7205 if test $ac_cv_header_stdc = yes; then
7206   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7207   if test "$cross_compiling" = yes; then
7208   :
7209 else
7210   cat >conftest.$ac_ext <<_ACEOF
7211 /* confdefs.h.  */
7212 _ACEOF
7213 cat confdefs.h >>conftest.$ac_ext
7214 cat >>conftest.$ac_ext <<_ACEOF
7215 /* end confdefs.h.  */
7216 #include <ctype.h>
7217 #include <stdlib.h>
7218 #if ((' ' & 0x0FF) == 0x020)
7219 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7220 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7221 #else
7222 # define ISLOWER(c) \
7223                    (('a' <= (c) && (c) <= 'i') \
7224                      || ('j' <= (c) && (c) <= 'r') \
7225                      || ('s' <= (c) && (c) <= 'z'))
7226 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7227 #endif
7228
7229 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7230 int
7231 main ()
7232 {
7233   int i;
7234   for (i = 0; i < 256; i++)
7235     if (XOR (islower (i), ISLOWER (i))
7236         || toupper (i) != TOUPPER (i))
7237       return 2;
7238   return 0;
7239 }
7240 _ACEOF
7241 rm -f conftest$ac_exeext
7242 if { (ac_try="$ac_link"
7243 case "(($ac_try" in
7244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7245   *) ac_try_echo=$ac_try;;
7246 esac
7247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7248   (eval "$ac_link") 2>&5
7249   ac_status=$?
7250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7252   { (case "(($ac_try" in
7253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7254   *) ac_try_echo=$ac_try;;
7255 esac
7256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7257   (eval "$ac_try") 2>&5
7258   ac_status=$?
7259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260   (exit $ac_status); }; }; then
7261   :
7262 else
7263   echo "$as_me: program exited with status $ac_status" >&5
7264 echo "$as_me: failed program was:" >&5
7265 sed 's/^/| /' conftest.$ac_ext >&5
7266
7267 ( exit $ac_status )
7268 ac_cv_header_stdc=no
7269 fi
7270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7271 fi
7272
7273
7274 fi
7275 fi
7276 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7277 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7278 if test $ac_cv_header_stdc = yes; then
7279
7280 cat >>confdefs.h <<\_ACEOF
7281 #define STDC_HEADERS 1
7282 _ACEOF
7283
7284 fi
7285
7286 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7297                   inttypes.h stdint.h unistd.h
7298 do
7299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7303   echo $ECHO_N "(cached) $ECHO_C" >&6
7304 else
7305   cat >conftest.$ac_ext <<_ACEOF
7306 /* confdefs.h.  */
7307 _ACEOF
7308 cat confdefs.h >>conftest.$ac_ext
7309 cat >>conftest.$ac_ext <<_ACEOF
7310 /* end confdefs.h.  */
7311 $ac_includes_default
7312
7313 #include <$ac_header>
7314 _ACEOF
7315 rm -f conftest.$ac_objext
7316 if { (ac_try="$ac_compile"
7317 case "(($ac_try" in
7318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7319   *) ac_try_echo=$ac_try;;
7320 esac
7321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7322   (eval "$ac_compile") 2>conftest.er1
7323   ac_status=$?
7324   grep -v '^ *+' conftest.er1 >conftest.err
7325   rm -f conftest.er1
7326   cat conftest.err >&5
7327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328   (exit $ac_status); } && {
7329          test -z "$ac_c_werror_flag" ||
7330          test ! -s conftest.err
7331        } && test -s conftest.$ac_objext; then
7332   eval "$as_ac_Header=yes"
7333 else
7334   echo "$as_me: failed program was:" >&5
7335 sed 's/^/| /' conftest.$ac_ext >&5
7336
7337         eval "$as_ac_Header=no"
7338 fi
7339
7340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7341 fi
7342 ac_res=`eval echo '${'$as_ac_Header'}'`
7343                { echo "$as_me:$LINENO: result: $ac_res" >&5
7344 echo "${ECHO_T}$ac_res" >&6; }
7345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7346   cat >>confdefs.h <<_ACEOF
7347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7348 _ACEOF
7349
7350 fi
7351
7352 done
7353
7354
7355
7356 for ac_header in dlfcn.h
7357 do
7358 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7362   echo $ECHO_N "(cached) $ECHO_C" >&6
7363 else
7364   cat >conftest.$ac_ext <<_ACEOF
7365 /* confdefs.h.  */
7366 _ACEOF
7367 cat confdefs.h >>conftest.$ac_ext
7368 cat >>conftest.$ac_ext <<_ACEOF
7369 /* end confdefs.h.  */
7370 $ac_includes_default
7371
7372 #include <$ac_header>
7373 _ACEOF
7374 rm -f conftest.$ac_objext
7375 if { (ac_try="$ac_compile"
7376 case "(($ac_try" in
7377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7378   *) ac_try_echo=$ac_try;;
7379 esac
7380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7381   (eval "$ac_compile") 2>conftest.er1
7382   ac_status=$?
7383   grep -v '^ *+' conftest.er1 >conftest.err
7384   rm -f conftest.er1
7385   cat conftest.err >&5
7386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387   (exit $ac_status); } && {
7388          test -z "$ac_c_werror_flag" ||
7389          test ! -s conftest.err
7390        } && test -s conftest.$ac_objext; then
7391   eval "$as_ac_Header=yes"
7392 else
7393   echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7395
7396         eval "$as_ac_Header=no"
7397 fi
7398
7399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7400 fi
7401 ac_res=`eval echo '${'$as_ac_Header'}'`
7402                { echo "$as_me:$LINENO: result: $ac_res" >&5
7403 echo "${ECHO_T}$ac_res" >&6; }
7404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7405   cat >>confdefs.h <<_ACEOF
7406 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7407 _ACEOF
7408
7409 fi
7410
7411 done
7412
7413
7414
7415
7416
7417 # Set options
7418
7419
7420
7421         enable_dlopen=no
7422
7423
7424   enable_win32_dll=no
7425
7426
7427             # Check whether --enable-shared was given.
7428 if test "${enable_shared+set}" = set; then
7429   enableval=$enable_shared; p=${PACKAGE-default}
7430     case $enableval in
7431     yes) enable_shared=yes ;;
7432     no) enable_shared=no ;;
7433     *)
7434       enable_shared=no
7435       # Look at the argument we got.  We use all the common list separators.
7436       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7437       for pkg in $enableval; do
7438         IFS="$lt_save_ifs"
7439         if test "X$pkg" = "X$p"; then
7440           enable_shared=yes
7441         fi
7442       done
7443       IFS="$lt_save_ifs"
7444       ;;
7445     esac
7446 else
7447   enable_shared=yes
7448 fi
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460 # Check whether --with-pic was given.
7461 if test "${with_pic+set}" = set; then
7462   withval=$with_pic; pic_mode="$withval"
7463 else
7464   pic_mode=default
7465 fi
7466
7467
7468 test -z "$pic_mode" && pic_mode=default
7469
7470
7471
7472
7473
7474
7475
7476   # Check whether --enable-fast-install was given.
7477 if test "${enable_fast_install+set}" = set; then
7478   enableval=$enable_fast_install; p=${PACKAGE-default}
7479     case $enableval in
7480     yes) enable_fast_install=yes ;;
7481     no) enable_fast_install=no ;;
7482     *)
7483       enable_fast_install=no
7484       # Look at the argument we got.  We use all the common list separators.
7485       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7486       for pkg in $enableval; do
7487         IFS="$lt_save_ifs"
7488         if test "X$pkg" = "X$p"; then
7489           enable_fast_install=yes
7490         fi
7491       done
7492       IFS="$lt_save_ifs"
7493       ;;
7494     esac
7495 else
7496   enable_fast_install=yes
7497 fi
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509 # This can be used to rebuild libtool when needed
7510 LIBTOOL_DEPS="$ltmain"
7511
7512 # Always use our own libtool.
7513 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540 test -z "$LN_S" && LN_S="ln -s"
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555 if test -n "${ZSH_VERSION+set}" ; then
7556    setopt NO_GLOB_SUBST
7557 fi
7558
7559 { echo "$as_me:$LINENO: checking for objdir" >&5
7560 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7561 if test "${lt_cv_objdir+set}" = set; then
7562   echo $ECHO_N "(cached) $ECHO_C" >&6
7563 else
7564   rm -f .libs 2>/dev/null
7565 mkdir .libs 2>/dev/null
7566 if test -d .libs; then
7567   lt_cv_objdir=.libs
7568 else
7569   # MS-DOS does not allow filenames that begin with a dot.
7570   lt_cv_objdir=_libs
7571 fi
7572 rmdir .libs 2>/dev/null
7573 fi
7574 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7575 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7576 objdir=$lt_cv_objdir
7577
7578
7579
7580
7581
7582 cat >>confdefs.h <<_ACEOF
7583 #define LT_OBJDIR "$lt_cv_objdir/"
7584 _ACEOF
7585
7586
7587
7588
7589 case $host_os in
7590 aix3*)
7591   # AIX sometimes has problems with the GCC collect2 program.  For some
7592   # reason, if we set the COLLECT_NAMES environment variable, the problems
7593   # vanish in a puff of smoke.
7594   if test "X${COLLECT_NAMES+set}" != Xset; then
7595     COLLECT_NAMES=
7596     export COLLECT_NAMES
7597   fi
7598   ;;
7599 esac
7600
7601 # Global variables:
7602 ofile=libtool
7603 can_build_shared=yes
7604
7605 # All known linkers require a `.a' archive for static linking (except MSVC,
7606 # which needs '.lib').
7607 libext=a
7608
7609 with_gnu_ld="$lt_cv_prog_gnu_ld"
7610
7611 old_CC="$CC"
7612 old_CFLAGS="$CFLAGS"
7613
7614 # Set sane defaults for various variables
7615 test -z "$CC" && CC=cc
7616 test -z "$LTCC" && LTCC=$CC
7617 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7618 test -z "$LD" && LD=ld
7619 test -z "$ac_objext" && ac_objext=o
7620
7621 for cc_temp in $compiler""; do
7622   case $cc_temp in
7623     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7624     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7625     \-*) ;;
7626     *) break;;
7627   esac
7628 done
7629 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7630
7631
7632 # Only perform the check for file, if the check method requires it
7633 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7634 case $deplibs_check_method in
7635 file_magic*)
7636   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7637     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7638 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7639 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7640   echo $ECHO_N "(cached) $ECHO_C" >&6
7641 else
7642   case $MAGIC_CMD in
7643 [\\/*] |  ?:[\\/]*)
7644   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7645   ;;
7646 *)
7647   lt_save_MAGIC_CMD="$MAGIC_CMD"
7648   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7649   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7650   for ac_dir in $ac_dummy; do
7651     IFS="$lt_save_ifs"
7652     test -z "$ac_dir" && ac_dir=.
7653     if test -f $ac_dir/${ac_tool_prefix}file; then
7654       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7655       if test -n "$file_magic_test_file"; then
7656         case $deplibs_check_method in
7657         "file_magic "*)
7658           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7659           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7660           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7661             $EGREP "$file_magic_regex" > /dev/null; then
7662             :
7663           else
7664             cat <<_LT_EOF 1>&2
7665
7666 *** Warning: the command libtool uses to detect shared libraries,
7667 *** $file_magic_cmd, produces output that libtool cannot recognize.
7668 *** The result is that libtool may fail to recognize shared libraries
7669 *** as such.  This will affect the creation of libtool libraries that
7670 *** depend on shared libraries, but programs linked with such libtool
7671 *** libraries will work regardless of this problem.  Nevertheless, you
7672 *** may want to report the problem to your system manager and/or to
7673 *** bug-libtool@gnu.org
7674
7675 _LT_EOF
7676           fi ;;
7677         esac
7678       fi
7679       break
7680     fi
7681   done
7682   IFS="$lt_save_ifs"
7683   MAGIC_CMD="$lt_save_MAGIC_CMD"
7684   ;;
7685 esac
7686 fi
7687
7688 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7689 if test -n "$MAGIC_CMD"; then
7690   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7691 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7692 else
7693   { echo "$as_me:$LINENO: result: no" >&5
7694 echo "${ECHO_T}no" >&6; }
7695 fi
7696
7697
7698
7699
7700
7701 if test -z "$lt_cv_path_MAGIC_CMD"; then
7702   if test -n "$ac_tool_prefix"; then
7703     { echo "$as_me:$LINENO: checking for file" >&5
7704 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7705 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7706   echo $ECHO_N "(cached) $ECHO_C" >&6
7707 else
7708   case $MAGIC_CMD in
7709 [\\/*] |  ?:[\\/]*)
7710   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7711   ;;
7712 *)
7713   lt_save_MAGIC_CMD="$MAGIC_CMD"
7714   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7715   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7716   for ac_dir in $ac_dummy; do
7717     IFS="$lt_save_ifs"
7718     test -z "$ac_dir" && ac_dir=.
7719     if test -f $ac_dir/file; then
7720       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7721       if test -n "$file_magic_test_file"; then
7722         case $deplibs_check_method in
7723         "file_magic "*)
7724           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7725           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7726           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7727             $EGREP "$file_magic_regex" > /dev/null; then
7728             :
7729           else
7730             cat <<_LT_EOF 1>&2
7731
7732 *** Warning: the command libtool uses to detect shared libraries,
7733 *** $file_magic_cmd, produces output that libtool cannot recognize.
7734 *** The result is that libtool may fail to recognize shared libraries
7735 *** as such.  This will affect the creation of libtool libraries that
7736 *** depend on shared libraries, but programs linked with such libtool
7737 *** libraries will work regardless of this problem.  Nevertheless, you
7738 *** may want to report the problem to your system manager and/or to
7739 *** bug-libtool@gnu.org
7740
7741 _LT_EOF
7742           fi ;;
7743         esac
7744       fi
7745       break
7746     fi
7747   done
7748   IFS="$lt_save_ifs"
7749   MAGIC_CMD="$lt_save_MAGIC_CMD"
7750   ;;
7751 esac
7752 fi
7753
7754 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7755 if test -n "$MAGIC_CMD"; then
7756   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7757 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7758 else
7759   { echo "$as_me:$LINENO: result: no" >&5
7760 echo "${ECHO_T}no" >&6; }
7761 fi
7762
7763
7764   else
7765     MAGIC_CMD=:
7766   fi
7767 fi
7768
7769   fi
7770   ;;
7771 esac
7772
7773 # Use C for the default configuration in the libtool script
7774
7775 lt_save_CC="$CC"
7776 ac_ext=c
7777 ac_cpp='$CPP $CPPFLAGS'
7778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7781
7782
7783 # Source file extension for C test sources.
7784 ac_ext=c
7785
7786 # Object file extension for compiled C test sources.
7787 objext=o
7788 objext=$objext
7789
7790 # Code to be used in simple compile tests
7791 lt_simple_compile_test_code="int some_variable = 0;"
7792
7793 # Code to be used in simple link tests
7794 lt_simple_link_test_code='int main(){return(0);}'
7795
7796
7797
7798
7799
7800
7801
7802 # If no C compiler was specified, use CC.
7803 LTCC=${LTCC-"$CC"}
7804
7805 # If no C compiler flags were specified, use CFLAGS.
7806 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7807
7808 # Allow CC to be a program name with arguments.
7809 compiler=$CC
7810
7811 # Save the default compiler, since it gets overwritten when the other
7812 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7813 compiler_DEFAULT=$CC
7814
7815 # save warnings/boilerplate of simple test code
7816 ac_outfile=conftest.$ac_objext
7817 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7818 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7819 _lt_compiler_boilerplate=`cat conftest.err`
7820 $RM conftest*
7821
7822 ac_outfile=conftest.$ac_objext
7823 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7824 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7825 _lt_linker_boilerplate=`cat conftest.err`
7826 $RM -r conftest*
7827
7828
7829 ## CAVEAT EMPTOR:
7830 ## There is no encapsulation within the following macros, do not change
7831 ## the running order or otherwise move them around unless you know exactly
7832 ## what you are doing...
7833 if test -n "$compiler"; then
7834
7835 lt_prog_compiler_no_builtin_flag=
7836
7837 if test "$GCC" = yes; then
7838   case $cc_basename in
7839   nvcc*)
7840     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7841   *)
7842     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7843   esac
7844
7845   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7846 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7847 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7848   echo $ECHO_N "(cached) $ECHO_C" >&6
7849 else
7850   lt_cv_prog_compiler_rtti_exceptions=no
7851    ac_outfile=conftest.$ac_objext
7852    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7853    lt_compiler_flag="-fno-rtti -fno-exceptions"
7854    # Insert the option either (1) after the last *FLAGS variable, or
7855    # (2) before a word containing "conftest.", or (3) at the end.
7856    # Note that $ac_compile itself does not contain backslashes and begins
7857    # with a dollar sign (not a hyphen), so the echo should work correctly.
7858    # The option is referenced via a variable to avoid confusing sed.
7859    lt_compile=`echo "$ac_compile" | $SED \
7860    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7861    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7862    -e 's:$: $lt_compiler_flag:'`
7863    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7864    (eval "$lt_compile" 2>conftest.err)
7865    ac_status=$?
7866    cat conftest.err >&5
7867    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868    if (exit $ac_status) && test -s "$ac_outfile"; then
7869      # The compiler can only warn and ignore the option if not recognized
7870      # So say no if there are warnings other than the usual output.
7871      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7872      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7873      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7874        lt_cv_prog_compiler_rtti_exceptions=yes
7875      fi
7876    fi
7877    $RM conftest*
7878
7879 fi
7880 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7881 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7882
7883 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7884     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7885 else
7886     :
7887 fi
7888
7889 fi
7890
7891
7892
7893
7894
7895
7896   lt_prog_compiler_wl=
7897 lt_prog_compiler_pic=
7898 lt_prog_compiler_static=
7899
7900 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7901 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7902
7903   if test "$GCC" = yes; then
7904     lt_prog_compiler_wl='-Wl,'
7905     lt_prog_compiler_static='-static'
7906
7907     case $host_os in
7908       aix*)
7909       # All AIX code is PIC.
7910       if test "$host_cpu" = ia64; then
7911         # AIX 5 now supports IA64 processor
7912         lt_prog_compiler_static='-Bstatic'
7913       fi
7914       ;;
7915
7916     amigaos*)
7917       case $host_cpu in
7918       powerpc)
7919             # see comment about AmigaOS4 .so support
7920             lt_prog_compiler_pic='-fPIC'
7921         ;;
7922       m68k)
7923             # FIXME: we need at least 68020 code to build shared libraries, but
7924             # adding the `-m68020' flag to GCC prevents building anything better,
7925             # like `-m68040'.
7926             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7927         ;;
7928       esac
7929       ;;
7930
7931     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7932       # PIC is the default for these OSes.
7933       ;;
7934
7935     mingw* | cygwin* | pw32* | os2* | cegcc*)
7936       # This hack is so that the source file can tell whether it is being
7937       # built for inclusion in a dll (and should export symbols for example).
7938       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7939       # (--disable-auto-import) libraries
7940       lt_prog_compiler_pic='-DDLL_EXPORT'
7941       ;;
7942
7943     darwin* | rhapsody*)
7944       # PIC is the default on this platform
7945       # Common symbols not allowed in MH_DYLIB files
7946       lt_prog_compiler_pic='-fno-common'
7947       ;;
7948
7949     haiku*)
7950       # PIC is the default for Haiku.
7951       # The "-static" flag exists, but is broken.
7952       lt_prog_compiler_static=
7953       ;;
7954
7955     hpux*)
7956       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7957       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7958       # sets the default TLS model and affects inlining.
7959       case $host_cpu in
7960       hppa*64*)
7961         # +Z the default
7962         ;;
7963       *)
7964         lt_prog_compiler_pic='-fPIC'
7965         ;;
7966       esac
7967       ;;
7968
7969     interix[3-9]*)
7970       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7971       # Instead, we relocate shared libraries at runtime.
7972       ;;
7973
7974     msdosdjgpp*)
7975       # Just because we use GCC doesn't mean we suddenly get shared libraries
7976       # on systems that don't support them.
7977       lt_prog_compiler_can_build_shared=no
7978       enable_shared=no
7979       ;;
7980
7981     *nto* | *qnx*)
7982       # QNX uses GNU C++, but need to define -shared option too, otherwise
7983       # it will coredump.
7984       lt_prog_compiler_pic='-fPIC -shared'
7985       ;;
7986
7987     sysv4*MP*)
7988       if test -d /usr/nec; then
7989         lt_prog_compiler_pic=-Kconform_pic
7990       fi
7991       ;;
7992
7993     *)
7994       lt_prog_compiler_pic='-fPIC'
7995       ;;
7996     esac
7997
7998     case $cc_basename in
7999     nvcc*) # Cuda Compiler Driver 2.2
8000       lt_prog_compiler_wl='-Xlinker '
8001       lt_prog_compiler_pic='-Xcompiler -fPIC'
8002       ;;
8003     esac
8004   else
8005     # PORTME Check for flag to pass linker flags through the system compiler.
8006     case $host_os in
8007     aix*)
8008       lt_prog_compiler_wl='-Wl,'
8009       if test "$host_cpu" = ia64; then
8010         # AIX 5 now supports IA64 processor
8011         lt_prog_compiler_static='-Bstatic'
8012       else
8013         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8014       fi
8015       ;;
8016
8017     mingw* | cygwin* | pw32* | os2* | cegcc*)
8018       # This hack is so that the source file can tell whether it is being
8019       # built for inclusion in a dll (and should export symbols for example).
8020       lt_prog_compiler_pic='-DDLL_EXPORT'
8021       ;;
8022
8023     hpux9* | hpux10* | hpux11*)
8024       lt_prog_compiler_wl='-Wl,'
8025       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8026       # not for PA HP-UX.
8027       case $host_cpu in
8028       hppa*64*|ia64*)
8029         # +Z the default
8030         ;;
8031       *)
8032         lt_prog_compiler_pic='+Z'
8033         ;;
8034       esac
8035       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8036       lt_prog_compiler_static='${wl}-a ${wl}archive'
8037       ;;
8038
8039     irix5* | irix6* | nonstopux*)
8040       lt_prog_compiler_wl='-Wl,'
8041       # PIC (with -KPIC) is the default.
8042       lt_prog_compiler_static='-non_shared'
8043       ;;
8044
8045     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8046       case $cc_basename in
8047       # old Intel for x86_64 which still supported -KPIC.
8048       ecc*)
8049         lt_prog_compiler_wl='-Wl,'
8050         lt_prog_compiler_pic='-KPIC'
8051         lt_prog_compiler_static='-static'
8052         ;;
8053       # icc used to be incompatible with GCC.
8054       # ICC 10 doesn't accept -KPIC any more.
8055       icc* | ifort*)
8056         lt_prog_compiler_wl='-Wl,'
8057         lt_prog_compiler_pic='-fPIC'
8058         lt_prog_compiler_static='-static'
8059         ;;
8060       # Lahey Fortran 8.1.
8061       lf95*)
8062         lt_prog_compiler_wl='-Wl,'
8063         lt_prog_compiler_pic='--shared'
8064         lt_prog_compiler_static='--static'
8065         ;;
8066       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8067         # Portland Group compilers (*not* the Pentium gcc compiler,
8068         # which looks to be a dead project)
8069         lt_prog_compiler_wl='-Wl,'
8070         lt_prog_compiler_pic='-fpic'
8071         lt_prog_compiler_static='-Bstatic'
8072         ;;
8073       ccc*)
8074         lt_prog_compiler_wl='-Wl,'
8075         # All Alpha code is PIC.
8076         lt_prog_compiler_static='-non_shared'
8077         ;;
8078       xl* | bgxl* | bgf* | mpixl*)
8079         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8080         lt_prog_compiler_wl='-Wl,'
8081         lt_prog_compiler_pic='-qpic'
8082         lt_prog_compiler_static='-qstaticlink'
8083         ;;
8084       *)
8085         case `$CC -V 2>&1 | sed 5q` in
8086         *Sun\ F* | *Sun*Fortran*)
8087           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8088           lt_prog_compiler_pic='-KPIC'
8089           lt_prog_compiler_static='-Bstatic'
8090           lt_prog_compiler_wl=''
8091           ;;
8092         *Sun\ C*)
8093           # Sun C 5.9
8094           lt_prog_compiler_pic='-KPIC'
8095           lt_prog_compiler_static='-Bstatic'
8096           lt_prog_compiler_wl='-Wl,'
8097           ;;
8098         esac
8099         ;;
8100       esac
8101       ;;
8102
8103     newsos6)
8104       lt_prog_compiler_pic='-KPIC'
8105       lt_prog_compiler_static='-Bstatic'
8106       ;;
8107
8108     *nto* | *qnx*)
8109       # QNX uses GNU C++, but need to define -shared option too, otherwise
8110       # it will coredump.
8111       lt_prog_compiler_pic='-fPIC -shared'
8112       ;;
8113
8114     osf3* | osf4* | osf5*)
8115       lt_prog_compiler_wl='-Wl,'
8116       # All OSF/1 code is PIC.
8117       lt_prog_compiler_static='-non_shared'
8118       ;;
8119
8120     rdos*)
8121       lt_prog_compiler_static='-non_shared'
8122       ;;
8123
8124     solaris*)
8125       lt_prog_compiler_pic='-KPIC'
8126       lt_prog_compiler_static='-Bstatic'
8127       case $cc_basename in
8128       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8129         lt_prog_compiler_wl='-Qoption ld ';;
8130       *)
8131         lt_prog_compiler_wl='-Wl,';;
8132       esac
8133       ;;
8134
8135     sunos4*)
8136       lt_prog_compiler_wl='-Qoption ld '
8137       lt_prog_compiler_pic='-PIC'
8138       lt_prog_compiler_static='-Bstatic'
8139       ;;
8140
8141     sysv4 | sysv4.2uw2* | sysv4.3*)
8142       lt_prog_compiler_wl='-Wl,'
8143       lt_prog_compiler_pic='-KPIC'
8144       lt_prog_compiler_static='-Bstatic'
8145       ;;
8146
8147     sysv4*MP*)
8148       if test -d /usr/nec ;then
8149         lt_prog_compiler_pic='-Kconform_pic'
8150         lt_prog_compiler_static='-Bstatic'
8151       fi
8152       ;;
8153
8154     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8155       lt_prog_compiler_wl='-Wl,'
8156       lt_prog_compiler_pic='-KPIC'
8157       lt_prog_compiler_static='-Bstatic'
8158       ;;
8159
8160     unicos*)
8161       lt_prog_compiler_wl='-Wl,'
8162       lt_prog_compiler_can_build_shared=no
8163       ;;
8164
8165     uts4*)
8166       lt_prog_compiler_pic='-pic'
8167       lt_prog_compiler_static='-Bstatic'
8168       ;;
8169
8170     *)
8171       lt_prog_compiler_can_build_shared=no
8172       ;;
8173     esac
8174   fi
8175
8176 case $host_os in
8177   # For platforms which do not support PIC, -DPIC is meaningless:
8178   *djgpp*)
8179     lt_prog_compiler_pic=
8180     ;;
8181   *)
8182     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8183     ;;
8184 esac
8185 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8186 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8187
8188
8189
8190
8191
8192
8193 #
8194 # Check to make sure the PIC flag actually works.
8195 #
8196 if test -n "$lt_prog_compiler_pic"; then
8197   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8198 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8199 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8200   echo $ECHO_N "(cached) $ECHO_C" >&6
8201 else
8202   lt_cv_prog_compiler_pic_works=no
8203    ac_outfile=conftest.$ac_objext
8204    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8205    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8206    # Insert the option either (1) after the last *FLAGS variable, or
8207    # (2) before a word containing "conftest.", or (3) at the end.
8208    # Note that $ac_compile itself does not contain backslashes and begins
8209    # with a dollar sign (not a hyphen), so the echo should work correctly.
8210    # The option is referenced via a variable to avoid confusing sed.
8211    lt_compile=`echo "$ac_compile" | $SED \
8212    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8213    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8214    -e 's:$: $lt_compiler_flag:'`
8215    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8216    (eval "$lt_compile" 2>conftest.err)
8217    ac_status=$?
8218    cat conftest.err >&5
8219    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220    if (exit $ac_status) && test -s "$ac_outfile"; then
8221      # The compiler can only warn and ignore the option if not recognized
8222      # So say no if there are warnings other than the usual output.
8223      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8224      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8225      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8226        lt_cv_prog_compiler_pic_works=yes
8227      fi
8228    fi
8229    $RM conftest*
8230
8231 fi
8232 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8233 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8234
8235 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8236     case $lt_prog_compiler_pic in
8237      "" | " "*) ;;
8238      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8239      esac
8240 else
8241     lt_prog_compiler_pic=
8242      lt_prog_compiler_can_build_shared=no
8243 fi
8244
8245 fi
8246
8247
8248
8249
8250
8251
8252 #
8253 # Check to make sure the static flag actually works.
8254 #
8255 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8256 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8257 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8258 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8259   echo $ECHO_N "(cached) $ECHO_C" >&6
8260 else
8261   lt_cv_prog_compiler_static_works=no
8262    save_LDFLAGS="$LDFLAGS"
8263    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8264    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8265    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8266      # The linker can only warn and ignore the option if not recognized
8267      # So say no if there are warnings
8268      if test -s conftest.err; then
8269        # Append any errors to the config.log.
8270        cat conftest.err 1>&5
8271        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8272        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8273        if diff conftest.exp conftest.er2 >/dev/null; then
8274          lt_cv_prog_compiler_static_works=yes
8275        fi
8276      else
8277        lt_cv_prog_compiler_static_works=yes
8278      fi
8279    fi
8280    $RM -r conftest*
8281    LDFLAGS="$save_LDFLAGS"
8282
8283 fi
8284 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8285 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8286
8287 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8288     :
8289 else
8290     lt_prog_compiler_static=
8291 fi
8292
8293
8294
8295
8296
8297
8298
8299   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8300 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8301 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8302   echo $ECHO_N "(cached) $ECHO_C" >&6
8303 else
8304   lt_cv_prog_compiler_c_o=no
8305    $RM -r conftest 2>/dev/null
8306    mkdir conftest
8307    cd conftest
8308    mkdir out
8309    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8310
8311    lt_compiler_flag="-o out/conftest2.$ac_objext"
8312    # Insert the option either (1) after the last *FLAGS variable, or
8313    # (2) before a word containing "conftest.", or (3) at the end.
8314    # Note that $ac_compile itself does not contain backslashes and begins
8315    # with a dollar sign (not a hyphen), so the echo should work correctly.
8316    lt_compile=`echo "$ac_compile" | $SED \
8317    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8318    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8319    -e 's:$: $lt_compiler_flag:'`
8320    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8321    (eval "$lt_compile" 2>out/conftest.err)
8322    ac_status=$?
8323    cat out/conftest.err >&5
8324    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8326    then
8327      # The compiler can only warn and ignore the option if not recognized
8328      # So say no if there are warnings
8329      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8330      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8331      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8332        lt_cv_prog_compiler_c_o=yes
8333      fi
8334    fi
8335    chmod u+w . 2>&5
8336    $RM conftest*
8337    # SGI C++ compiler will create directory out/ii_files/ for
8338    # template instantiation
8339    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8340    $RM out/* && rmdir out
8341    cd ..
8342    $RM -r conftest
8343    $RM conftest*
8344
8345 fi
8346 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8347 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8348
8349
8350
8351
8352
8353
8354   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8355 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8356 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8357   echo $ECHO_N "(cached) $ECHO_C" >&6
8358 else
8359   lt_cv_prog_compiler_c_o=no
8360    $RM -r conftest 2>/dev/null
8361    mkdir conftest
8362    cd conftest
8363    mkdir out
8364    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8365
8366    lt_compiler_flag="-o out/conftest2.$ac_objext"
8367    # Insert the option either (1) after the last *FLAGS variable, or
8368    # (2) before a word containing "conftest.", or (3) at the end.
8369    # Note that $ac_compile itself does not contain backslashes and begins
8370    # with a dollar sign (not a hyphen), so the echo should work correctly.
8371    lt_compile=`echo "$ac_compile" | $SED \
8372    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8373    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8374    -e 's:$: $lt_compiler_flag:'`
8375    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8376    (eval "$lt_compile" 2>out/conftest.err)
8377    ac_status=$?
8378    cat out/conftest.err >&5
8379    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8381    then
8382      # The compiler can only warn and ignore the option if not recognized
8383      # So say no if there are warnings
8384      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8385      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8386      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8387        lt_cv_prog_compiler_c_o=yes
8388      fi
8389    fi
8390    chmod u+w . 2>&5
8391    $RM conftest*
8392    # SGI C++ compiler will create directory out/ii_files/ for
8393    # template instantiation
8394    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8395    $RM out/* && rmdir out
8396    cd ..
8397    $RM -r conftest
8398    $RM conftest*
8399
8400 fi
8401 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8402 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8403
8404
8405
8406
8407 hard_links="nottested"
8408 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8409   # do not overwrite the value of need_locks provided by the user
8410   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8411 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8412   hard_links=yes
8413   $RM conftest*
8414   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8415   touch conftest.a
8416   ln conftest.a conftest.b 2>&5 || hard_links=no
8417   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8418   { echo "$as_me:$LINENO: result: $hard_links" >&5
8419 echo "${ECHO_T}$hard_links" >&6; }
8420   if test "$hard_links" = no; then
8421     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8422 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8423     need_locks=warn
8424   fi
8425 else
8426   need_locks=no
8427 fi
8428
8429
8430
8431
8432
8433
8434   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8435 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8436
8437   runpath_var=
8438   allow_undefined_flag=
8439   always_export_symbols=no
8440   archive_cmds=
8441   archive_expsym_cmds=
8442   compiler_needs_object=no
8443   enable_shared_with_static_runtimes=no
8444   export_dynamic_flag_spec=
8445   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8446   hardcode_automatic=no
8447   hardcode_direct=no
8448   hardcode_direct_absolute=no
8449   hardcode_libdir_flag_spec=
8450   hardcode_libdir_flag_spec_ld=
8451   hardcode_libdir_separator=
8452   hardcode_minus_L=no
8453   hardcode_shlibpath_var=unsupported
8454   inherit_rpath=no
8455   link_all_deplibs=unknown
8456   module_cmds=
8457   module_expsym_cmds=
8458   old_archive_from_new_cmds=
8459   old_archive_from_expsyms_cmds=
8460   thread_safe_flag_spec=
8461   whole_archive_flag_spec=
8462   # include_expsyms should be a list of space-separated symbols to be *always*
8463   # included in the symbol list
8464   include_expsyms=
8465   # exclude_expsyms can be an extended regexp of symbols to exclude
8466   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8467   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8468   # as well as any symbol that contains `d'.
8469   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8470   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8471   # platforms (ab)use it in PIC code, but their linkers get confused if
8472   # the symbol is explicitly referenced.  Since portable code cannot
8473   # rely on this symbol name, it's probably fine to never include it in
8474   # preloaded symbol tables.
8475   # Exclude shared library initialization/finalization symbols.
8476   extract_expsyms_cmds=
8477
8478   case $host_os in
8479   cygwin* | mingw* | pw32* | cegcc*)
8480     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8481     # When not using gcc, we currently assume that we are using
8482     # Microsoft Visual C++.
8483     if test "$GCC" != yes; then
8484       with_gnu_ld=no
8485     fi
8486     ;;
8487   interix*)
8488     # we just hope/assume this is gcc and not c89 (= MSVC++)
8489     with_gnu_ld=yes
8490     ;;
8491   openbsd*)
8492     with_gnu_ld=no
8493     ;;
8494   esac
8495
8496   ld_shlibs=yes
8497
8498   # On some targets, GNU ld is compatible enough with the native linker
8499   # that we're better off using the native interface for both.
8500   lt_use_gnu_ld_interface=no
8501   if test "$with_gnu_ld" = yes; then
8502     case $host_os in
8503       aix*)
8504         # The AIX port of GNU ld has always aspired to compatibility
8505         # with the native linker.  However, as the warning in the GNU ld
8506         # block says, versions before 2.19.5* couldn't really create working
8507         # shared libraries, regardless of the interface used.
8508         case `$LD -v 2>&1` in
8509           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8510           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8511           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8512           *)
8513             lt_use_gnu_ld_interface=yes
8514             ;;
8515         esac
8516         ;;
8517       *)
8518         lt_use_gnu_ld_interface=yes
8519         ;;
8520     esac
8521   fi
8522
8523   if test "$lt_use_gnu_ld_interface" = yes; then
8524     # If archive_cmds runs LD, not CC, wlarc should be empty
8525     wlarc='${wl}'
8526
8527     # Set some defaults for GNU ld with shared library support. These
8528     # are reset later if shared libraries are not supported. Putting them
8529     # here allows them to be overridden if necessary.
8530     runpath_var=LD_RUN_PATH
8531     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8532     export_dynamic_flag_spec='${wl}--export-dynamic'
8533     # ancient GNU ld didn't support --whole-archive et. al.
8534     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8535       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8536     else
8537       whole_archive_flag_spec=
8538     fi
8539     supports_anon_versioning=no
8540     case `$LD -v 2>&1` in
8541       *GNU\ gold*) supports_anon_versioning=yes ;;
8542       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8543       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8544       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8545       *\ 2.11.*) ;; # other 2.11 versions
8546       *) supports_anon_versioning=yes ;;
8547     esac
8548
8549     # See if GNU ld supports shared libraries.
8550     case $host_os in
8551     aix[3-9]*)
8552       # On AIX/PPC, the GNU linker is very broken
8553       if test "$host_cpu" != ia64; then
8554         ld_shlibs=no
8555         cat <<_LT_EOF 1>&2
8556
8557 *** Warning: the GNU linker, at least up to release 2.19, is reported
8558 *** to be unable to reliably create shared libraries on AIX.
8559 *** Therefore, libtool is disabling shared libraries support.  If you
8560 *** really care for shared libraries, you may want to install binutils
8561 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8562 *** You will then need to restart the configuration process.
8563
8564 _LT_EOF
8565       fi
8566       ;;
8567
8568     amigaos*)
8569       case $host_cpu in
8570       powerpc)
8571             # see comment about AmigaOS4 .so support
8572             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8573             archive_expsym_cmds=''
8574         ;;
8575       m68k)
8576             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8577             hardcode_libdir_flag_spec='-L$libdir'
8578             hardcode_minus_L=yes
8579         ;;
8580       esac
8581       ;;
8582
8583     beos*)
8584       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8585         allow_undefined_flag=unsupported
8586         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8587         # support --undefined.  This deserves some investigation.  FIXME
8588         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8589       else
8590         ld_shlibs=no
8591       fi
8592       ;;
8593
8594     cygwin* | mingw* | pw32* | cegcc*)
8595       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8596       # as there is no search path for DLLs.
8597       hardcode_libdir_flag_spec='-L$libdir'
8598       export_dynamic_flag_spec='${wl}--export-all-symbols'
8599       allow_undefined_flag=unsupported
8600       always_export_symbols=no
8601       enable_shared_with_static_runtimes=yes
8602       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8603
8604       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8605         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8606         # If the export-symbols file already is a .def file (1st line
8607         # is EXPORTS), use it as is; otherwise, prepend...
8608         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8609           cp $export_symbols $output_objdir/$soname.def;
8610         else
8611           echo EXPORTS > $output_objdir/$soname.def;
8612           cat $export_symbols >> $output_objdir/$soname.def;
8613         fi~
8614         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8615       else
8616         ld_shlibs=no
8617       fi
8618       ;;
8619
8620     haiku*)
8621       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8622       link_all_deplibs=yes
8623       ;;
8624
8625     interix[3-9]*)
8626       hardcode_direct=no
8627       hardcode_shlibpath_var=no
8628       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8629       export_dynamic_flag_spec='${wl}-E'
8630       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8631       # Instead, shared libraries are loaded at an image base (0x10000000 by
8632       # default) and relocated if they conflict, which is a slow very memory
8633       # consuming and fragmenting process.  To avoid this, we pick a random,
8634       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8635       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8636       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8637       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8638       ;;
8639
8640     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8641       tmp_diet=no
8642       if test "$host_os" = linux-dietlibc; then
8643         case $cc_basename in
8644           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8645         esac
8646       fi
8647       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8648          && test "$tmp_diet" = no
8649       then
8650         tmp_addflag=
8651         tmp_sharedflag='-shared'
8652         case $cc_basename,$host_cpu in
8653         pgcc*)                          # Portland Group C compiler
8654           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8655           tmp_addflag=' $pic_flag'
8656           ;;
8657         pgf77* | pgf90* | pgf95* | pgfortran*)
8658                                         # Portland Group f77 and f90 compilers
8659           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8660           tmp_addflag=' $pic_flag -Mnomain' ;;
8661         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8662           tmp_addflag=' -i_dynamic' ;;
8663         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8664           tmp_addflag=' -i_dynamic -nofor_main' ;;
8665         ifc* | ifort*)                  # Intel Fortran compiler
8666           tmp_addflag=' -nofor_main' ;;
8667         lf95*)                          # Lahey Fortran 8.1
8668           whole_archive_flag_spec=
8669           tmp_sharedflag='--shared' ;;
8670         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8671           tmp_sharedflag='-qmkshrobj'
8672           tmp_addflag= ;;
8673         nvcc*)  # Cuda Compiler Driver 2.2
8674           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8675           compiler_needs_object=yes
8676           ;;
8677         esac
8678         case `$CC -V 2>&1 | sed 5q` in
8679         *Sun\ C*)                       # Sun C 5.9
8680           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8681           compiler_needs_object=yes
8682           tmp_sharedflag='-G' ;;
8683         *Sun\ F*)                       # Sun Fortran 8.3
8684           tmp_sharedflag='-G' ;;
8685         esac
8686         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8687
8688         if test "x$supports_anon_versioning" = xyes; then
8689           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8690             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8691             echo "local: *; };" >> $output_objdir/$libname.ver~
8692             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8693         fi
8694
8695         case $cc_basename in
8696         xlf* | bgf* | bgxlf* | mpixlf*)
8697           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8698           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8699           hardcode_libdir_flag_spec=
8700           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8701           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8702           if test "x$supports_anon_versioning" = xyes; then
8703             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8704               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8705               echo "local: *; };" >> $output_objdir/$libname.ver~
8706               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8707           fi
8708           ;;
8709         esac
8710       else
8711         ld_shlibs=no
8712       fi
8713       ;;
8714
8715     netbsd*)
8716       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8717         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8718         wlarc=
8719       else
8720         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8721         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8722       fi
8723       ;;
8724
8725     solaris*)
8726       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8727         ld_shlibs=no
8728         cat <<_LT_EOF 1>&2
8729
8730 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8731 *** create shared libraries on Solaris systems.  Therefore, libtool
8732 *** is disabling shared libraries support.  We urge you to upgrade GNU
8733 *** binutils to release 2.9.1 or newer.  Another option is to modify
8734 *** your PATH or compiler configuration so that the native linker is
8735 *** used, and then restart.
8736
8737 _LT_EOF
8738       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8739         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8740         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8741       else
8742         ld_shlibs=no
8743       fi
8744       ;;
8745
8746     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8747       case `$LD -v 2>&1` in
8748         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8749         ld_shlibs=no
8750         cat <<_LT_EOF 1>&2
8751
8752 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8753 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8754 *** is disabling shared libraries support.  We urge you to upgrade GNU
8755 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8756 *** your PATH or compiler configuration so that the native linker is
8757 *** used, and then restart.
8758
8759 _LT_EOF
8760         ;;
8761         *)
8762           # For security reasons, it is highly recommended that you always
8763           # use absolute paths for naming shared libraries, and exclude the
8764           # DT_RUNPATH tag from executables and libraries.  But doing so
8765           # requires that you compile everything twice, which is a pain.
8766           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8767             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8768             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8769             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8770           else
8771             ld_shlibs=no
8772           fi
8773         ;;
8774       esac
8775       ;;
8776
8777     sunos4*)
8778       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8779       wlarc=
8780       hardcode_direct=yes
8781       hardcode_shlibpath_var=no
8782       ;;
8783
8784     *)
8785       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8786         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8787         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8788       else
8789         ld_shlibs=no
8790       fi
8791       ;;
8792     esac
8793
8794     if test "$ld_shlibs" = no; then
8795       runpath_var=
8796       hardcode_libdir_flag_spec=
8797       export_dynamic_flag_spec=
8798       whole_archive_flag_spec=
8799     fi
8800   else
8801     # PORTME fill in a description of your system's linker (not GNU ld)
8802     case $host_os in
8803     aix3*)
8804       allow_undefined_flag=unsupported
8805       always_export_symbols=yes
8806       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8807       # Note: this linker hardcodes the directories in LIBPATH if there
8808       # are no directories specified by -L.
8809       hardcode_minus_L=yes
8810       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8811         # Neither direct hardcoding nor static linking is supported with a
8812         # broken collect2.
8813         hardcode_direct=unsupported
8814       fi
8815       ;;
8816
8817     aix[4-9]*)
8818       if test "$host_cpu" = ia64; then
8819         # On IA64, the linker does run time linking by default, so we don't
8820         # have to do anything special.
8821         aix_use_runtimelinking=no
8822         exp_sym_flag='-Bexport'
8823         no_entry_flag=""
8824       else
8825         # If we're using GNU nm, then we don't want the "-C" option.
8826         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8827         # Also, AIX nm treats weak defined symbols like other global
8828         # defined symbols, whereas GNU nm marks them as "W".
8829         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8830           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8831         else
8832           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8833         fi
8834         aix_use_runtimelinking=no
8835
8836         # Test if we are trying to use run time linking or normal
8837         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8838         # need to do runtime linking.
8839         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8840           for ld_flag in $LDFLAGS; do
8841           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8842             aix_use_runtimelinking=yes
8843             break
8844           fi
8845           done
8846           ;;
8847         esac
8848
8849         exp_sym_flag='-bexport'
8850         no_entry_flag='-bnoentry'
8851       fi
8852
8853       # When large executables or shared objects are built, AIX ld can
8854       # have problems creating the table of contents.  If linking a library
8855       # or program results in "error TOC overflow" add -mminimal-toc to
8856       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8857       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8858
8859       archive_cmds=''
8860       hardcode_direct=yes
8861       hardcode_direct_absolute=yes
8862       hardcode_libdir_separator=':'
8863       link_all_deplibs=yes
8864       file_list_spec='${wl}-f,'
8865
8866       if test "$GCC" = yes; then
8867         case $host_os in aix4.[012]|aix4.[012].*)
8868         # We only want to do this on AIX 4.2 and lower, the check
8869         # below for broken collect2 doesn't work under 4.3+
8870           collect2name=`${CC} -print-prog-name=collect2`
8871           if test -f "$collect2name" &&
8872            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8873           then
8874           # We have reworked collect2
8875           :
8876           else
8877           # We have old collect2
8878           hardcode_direct=unsupported
8879           # It fails to find uninstalled libraries when the uninstalled
8880           # path is not listed in the libpath.  Setting hardcode_minus_L
8881           # to unsupported forces relinking
8882           hardcode_minus_L=yes
8883           hardcode_libdir_flag_spec='-L$libdir'
8884           hardcode_libdir_separator=
8885           fi
8886           ;;
8887         esac
8888         shared_flag='-shared'
8889         if test "$aix_use_runtimelinking" = yes; then
8890           shared_flag="$shared_flag "'${wl}-G'
8891         fi
8892       else
8893         # not using gcc
8894         if test "$host_cpu" = ia64; then
8895         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8896         # chokes on -Wl,-G. The following line is correct:
8897           shared_flag='-G'
8898         else
8899           if test "$aix_use_runtimelinking" = yes; then
8900             shared_flag='${wl}-G'
8901           else
8902             shared_flag='${wl}-bM:SRE'
8903           fi
8904         fi
8905       fi
8906
8907       export_dynamic_flag_spec='${wl}-bexpall'
8908       # It seems that -bexpall does not export symbols beginning with
8909       # underscore (_), so it is better to generate a list of symbols to export.
8910       always_export_symbols=yes
8911       if test "$aix_use_runtimelinking" = yes; then
8912         # Warning - without using the other runtime loading flags (-brtl),
8913         # -berok will link without error, but may produce a broken library.
8914         allow_undefined_flag='-berok'
8915         # Determine the default libpath from the value encoded in an
8916         # empty executable.
8917         cat >conftest.$ac_ext <<_ACEOF
8918 /* confdefs.h.  */
8919 _ACEOF
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h.  */
8923
8924 int
8925 main ()
8926 {
8927
8928   ;
8929   return 0;
8930 }
8931 _ACEOF
8932 rm -f conftest.$ac_objext conftest$ac_exeext
8933 if { (ac_try="$ac_link"
8934 case "(($ac_try" in
8935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8936   *) ac_try_echo=$ac_try;;
8937 esac
8938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8939   (eval "$ac_link") 2>conftest.er1
8940   ac_status=$?
8941   grep -v '^ *+' conftest.er1 >conftest.err
8942   rm -f conftest.er1
8943   cat conftest.err >&5
8944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945   (exit $ac_status); } && {
8946          test -z "$ac_c_werror_flag" ||
8947          test ! -s conftest.err
8948        } && test -s conftest$ac_exeext &&
8949        $as_test_x conftest$ac_exeext; then
8950
8951 lt_aix_libpath_sed='
8952     /Import File Strings/,/^$/ {
8953         /^0/ {
8954             s/^0  *\(.*\)$/\1/
8955             p
8956         }
8957     }'
8958 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8959 # Check for a 64-bit object if we didn't find anything.
8960 if test -z "$aix_libpath"; then
8961   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8962 fi
8963 else
8964   echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8966
8967
8968 fi
8969
8970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8971       conftest$ac_exeext conftest.$ac_ext
8972 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8973
8974         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8975         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8976       else
8977         if test "$host_cpu" = ia64; then
8978           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8979           allow_undefined_flag="-z nodefs"
8980           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8981         else
8982          # Determine the default libpath from the value encoded in an
8983          # empty executable.
8984          cat >conftest.$ac_ext <<_ACEOF
8985 /* confdefs.h.  */
8986 _ACEOF
8987 cat confdefs.h >>conftest.$ac_ext
8988 cat >>conftest.$ac_ext <<_ACEOF
8989 /* end confdefs.h.  */
8990
8991 int
8992 main ()
8993 {
8994
8995   ;
8996   return 0;
8997 }
8998 _ACEOF
8999 rm -f conftest.$ac_objext conftest$ac_exeext
9000 if { (ac_try="$ac_link"
9001 case "(($ac_try" in
9002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9003   *) ac_try_echo=$ac_try;;
9004 esac
9005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9006   (eval "$ac_link") 2>conftest.er1
9007   ac_status=$?
9008   grep -v '^ *+' conftest.er1 >conftest.err
9009   rm -f conftest.er1
9010   cat conftest.err >&5
9011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012   (exit $ac_status); } && {
9013          test -z "$ac_c_werror_flag" ||
9014          test ! -s conftest.err
9015        } && test -s conftest$ac_exeext &&
9016        $as_test_x conftest$ac_exeext; then
9017
9018 lt_aix_libpath_sed='
9019     /Import File Strings/,/^$/ {
9020         /^0/ {
9021             s/^0  *\(.*\)$/\1/
9022             p
9023         }
9024     }'
9025 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9026 # Check for a 64-bit object if we didn't find anything.
9027 if test -z "$aix_libpath"; then
9028   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9029 fi
9030 else
9031   echo "$as_me: failed program was:" >&5
9032 sed 's/^/| /' conftest.$ac_ext >&5
9033
9034
9035 fi
9036
9037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9038       conftest$ac_exeext conftest.$ac_ext
9039 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9040
9041          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9042           # Warning - without using the other run time loading flags,
9043           # -berok will link without error, but may produce a broken library.
9044           no_undefined_flag=' ${wl}-bernotok'
9045           allow_undefined_flag=' ${wl}-berok'
9046           if test "$with_gnu_ld" = yes; then
9047             # We only use this code for GNU lds that support --whole-archive.
9048             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9049           else
9050             # Exported symbols can be pulled into shared objects from archives
9051             whole_archive_flag_spec='$convenience'
9052           fi
9053           archive_cmds_need_lc=yes
9054           # This is similar to how AIX traditionally builds its shared libraries.
9055           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9056         fi
9057       fi
9058       ;;
9059
9060     amigaos*)
9061       case $host_cpu in
9062       powerpc)
9063             # see comment about AmigaOS4 .so support
9064             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9065             archive_expsym_cmds=''
9066         ;;
9067       m68k)
9068             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9069             hardcode_libdir_flag_spec='-L$libdir'
9070             hardcode_minus_L=yes
9071         ;;
9072       esac
9073       ;;
9074
9075     bsdi[45]*)
9076       export_dynamic_flag_spec=-rdynamic
9077       ;;
9078
9079     cygwin* | mingw* | pw32* | cegcc*)
9080       # When not using gcc, we currently assume that we are using
9081       # Microsoft Visual C++.
9082       # hardcode_libdir_flag_spec is actually meaningless, as there is
9083       # no search path for DLLs.
9084       hardcode_libdir_flag_spec=' '
9085       allow_undefined_flag=unsupported
9086       # Tell ltmain to make .lib files, not .a files.
9087       libext=lib
9088       # Tell ltmain to make .dll files, not .so files.
9089       shrext_cmds=".dll"
9090       # FIXME: Setting linknames here is a bad hack.
9091       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9092       # The linker will automatically build a .lib file if we build a DLL.
9093       old_archive_from_new_cmds='true'
9094       # FIXME: Should let the user specify the lib program.
9095       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9096       fix_srcfile_path='`cygpath -w "$srcfile"`'
9097       enable_shared_with_static_runtimes=yes
9098       ;;
9099
9100     darwin* | rhapsody*)
9101
9102
9103   archive_cmds_need_lc=no
9104   hardcode_direct=no
9105   hardcode_automatic=yes
9106   hardcode_shlibpath_var=unsupported
9107   if test "$lt_cv_ld_force_load" = "yes"; then
9108     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9109   else
9110     whole_archive_flag_spec=''
9111   fi
9112   link_all_deplibs=yes
9113   allow_undefined_flag="$_lt_dar_allow_undefined"
9114   case $cc_basename in
9115      ifort*) _lt_dar_can_shared=yes ;;
9116      *) _lt_dar_can_shared=$GCC ;;
9117   esac
9118   if test "$_lt_dar_can_shared" = "yes"; then
9119     output_verbose_link_cmd=func_echo_all
9120     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9121     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9122     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9123     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9124
9125   else
9126   ld_shlibs=no
9127   fi
9128
9129       ;;
9130
9131     dgux*)
9132       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9133       hardcode_libdir_flag_spec='-L$libdir'
9134       hardcode_shlibpath_var=no
9135       ;;
9136
9137     freebsd1*)
9138       ld_shlibs=no
9139       ;;
9140
9141     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9142     # support.  Future versions do this automatically, but an explicit c++rt0.o
9143     # does not break anything, and helps significantly (at the cost of a little
9144     # extra space).
9145     freebsd2.2*)
9146       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9147       hardcode_libdir_flag_spec='-R$libdir'
9148       hardcode_direct=yes
9149       hardcode_shlibpath_var=no
9150       ;;
9151
9152     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9153     freebsd2*)
9154       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9155       hardcode_direct=yes
9156       hardcode_minus_L=yes
9157       hardcode_shlibpath_var=no
9158       ;;
9159
9160     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9161     freebsd* | dragonfly*)
9162       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9163       hardcode_libdir_flag_spec='-R$libdir'
9164       hardcode_direct=yes
9165       hardcode_shlibpath_var=no
9166       ;;
9167
9168     hpux9*)
9169       if test "$GCC" = yes; then
9170         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9171       else
9172         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9173       fi
9174       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9175       hardcode_libdir_separator=:
9176       hardcode_direct=yes
9177
9178       # hardcode_minus_L: Not really in the search PATH,
9179       # but as the default location of the library.
9180       hardcode_minus_L=yes
9181       export_dynamic_flag_spec='${wl}-E'
9182       ;;
9183
9184     hpux10*)
9185       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9186         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9187       else
9188         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9189       fi
9190       if test "$with_gnu_ld" = no; then
9191         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9192         hardcode_libdir_flag_spec_ld='+b $libdir'
9193         hardcode_libdir_separator=:
9194         hardcode_direct=yes
9195         hardcode_direct_absolute=yes
9196         export_dynamic_flag_spec='${wl}-E'
9197         # hardcode_minus_L: Not really in the search PATH,
9198         # but as the default location of the library.
9199         hardcode_minus_L=yes
9200       fi
9201       ;;
9202
9203     hpux11*)
9204       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9205         case $host_cpu in
9206         hppa*64*)
9207           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9208           ;;
9209         ia64*)
9210           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9211           ;;
9212         *)
9213           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9214           ;;
9215         esac
9216       else
9217         case $host_cpu in
9218         hppa*64*)
9219           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9220           ;;
9221         ia64*)
9222           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9223           ;;
9224         *)
9225
9226           # Older versions of the 11.00 compiler do not understand -b yet
9227           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9228           { echo "$as_me:$LINENO: checking if $CC understands -b" >&5
9229 echo $ECHO_N "checking if $CC understands -b... $ECHO_C" >&6; }
9230 if test "${lt_cv_prog_compiler__b+set}" = set; then
9231   echo $ECHO_N "(cached) $ECHO_C" >&6
9232 else
9233   lt_cv_prog_compiler__b=no
9234    save_LDFLAGS="$LDFLAGS"
9235    LDFLAGS="$LDFLAGS -b"
9236    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9237    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9238      # The linker can only warn and ignore the option if not recognized
9239      # So say no if there are warnings
9240      if test -s conftest.err; then
9241        # Append any errors to the config.log.
9242        cat conftest.err 1>&5
9243        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9244        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9245        if diff conftest.exp conftest.er2 >/dev/null; then
9246          lt_cv_prog_compiler__b=yes
9247        fi
9248      else
9249        lt_cv_prog_compiler__b=yes
9250      fi
9251    fi
9252    $RM -r conftest*
9253    LDFLAGS="$save_LDFLAGS"
9254
9255 fi
9256 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler__b" >&5
9257 echo "${ECHO_T}$lt_cv_prog_compiler__b" >&6; }
9258
9259 if test x"$lt_cv_prog_compiler__b" = xyes; then
9260     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9261 else
9262     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9263 fi
9264
9265           ;;
9266         esac
9267       fi
9268       if test "$with_gnu_ld" = no; then
9269         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9270         hardcode_libdir_separator=:
9271
9272         case $host_cpu in
9273         hppa*64*|ia64*)
9274           hardcode_direct=no
9275           hardcode_shlibpath_var=no
9276           ;;
9277         *)
9278           hardcode_direct=yes
9279           hardcode_direct_absolute=yes
9280           export_dynamic_flag_spec='${wl}-E'
9281
9282           # hardcode_minus_L: Not really in the search PATH,
9283           # but as the default location of the library.
9284           hardcode_minus_L=yes
9285           ;;
9286         esac
9287       fi
9288       ;;
9289
9290     irix5* | irix6* | nonstopux*)
9291       if test "$GCC" = yes; then
9292         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9293         # Try to use the -exported_symbol ld option, if it does not
9294         # work, assume that -exports_file does not work either and
9295         # implicitly export all symbols.
9296         save_LDFLAGS="$LDFLAGS"
9297         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9298         cat >conftest.$ac_ext <<_ACEOF
9299 int foo(void) {}
9300 _ACEOF
9301 rm -f conftest.$ac_objext conftest$ac_exeext
9302 if { (ac_try="$ac_link"
9303 case "(($ac_try" in
9304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9305   *) ac_try_echo=$ac_try;;
9306 esac
9307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9308   (eval "$ac_link") 2>conftest.er1
9309   ac_status=$?
9310   grep -v '^ *+' conftest.er1 >conftest.err
9311   rm -f conftest.er1
9312   cat conftest.err >&5
9313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314   (exit $ac_status); } && {
9315          test -z "$ac_c_werror_flag" ||
9316          test ! -s conftest.err
9317        } && test -s conftest$ac_exeext &&
9318        $as_test_x conftest$ac_exeext; then
9319   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9320
9321 else
9322   echo "$as_me: failed program was:" >&5
9323 sed 's/^/| /' conftest.$ac_ext >&5
9324
9325
9326 fi
9327
9328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9329       conftest$ac_exeext conftest.$ac_ext
9330         LDFLAGS="$save_LDFLAGS"
9331       else
9332         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9333         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9334       fi
9335       archive_cmds_need_lc='no'
9336       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9337       hardcode_libdir_separator=:
9338       inherit_rpath=yes
9339       link_all_deplibs=yes
9340       ;;
9341
9342     netbsd*)
9343       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9344         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9345       else
9346         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9347       fi
9348       hardcode_libdir_flag_spec='-R$libdir'
9349       hardcode_direct=yes
9350       hardcode_shlibpath_var=no
9351       ;;
9352
9353     newsos6)
9354       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9355       hardcode_direct=yes
9356       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9357       hardcode_libdir_separator=:
9358       hardcode_shlibpath_var=no
9359       ;;
9360
9361     *nto* | *qnx*)
9362       ;;
9363
9364     openbsd*)
9365       if test -f /usr/libexec/ld.so; then
9366         hardcode_direct=yes
9367         hardcode_shlibpath_var=no
9368         hardcode_direct_absolute=yes
9369         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9370           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9371           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9372           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9373           export_dynamic_flag_spec='${wl}-E'
9374         else
9375           case $host_os in
9376            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9377              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9378              hardcode_libdir_flag_spec='-R$libdir'
9379              ;;
9380            *)
9381              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9382              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9383              ;;
9384           esac
9385         fi
9386       else
9387         ld_shlibs=no
9388       fi
9389       ;;
9390
9391     os2*)
9392       hardcode_libdir_flag_spec='-L$libdir'
9393       hardcode_minus_L=yes
9394       allow_undefined_flag=unsupported
9395       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9396       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9397       ;;
9398
9399     osf3*)
9400       if test "$GCC" = yes; then
9401         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9402         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9403       else
9404         allow_undefined_flag=' -expect_unresolved \*'
9405         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9406       fi
9407       archive_cmds_need_lc='no'
9408       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9409       hardcode_libdir_separator=:
9410       ;;
9411
9412     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9413       if test "$GCC" = yes; then
9414         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9415         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9416         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9417       else
9418         allow_undefined_flag=' -expect_unresolved \*'
9419         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9420         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9421         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9422
9423         # Both c and cxx compiler support -rpath directly
9424         hardcode_libdir_flag_spec='-rpath $libdir'
9425       fi
9426       archive_cmds_need_lc='no'
9427       hardcode_libdir_separator=:
9428       ;;
9429
9430     solaris*)
9431       no_undefined_flag=' -z defs'
9432       if test "$GCC" = yes; then
9433         wlarc='${wl}'
9434         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9435         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9436           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9437       else
9438         case `$CC -V 2>&1` in
9439         *"Compilers 5.0"*)
9440           wlarc=''
9441           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9442           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9443           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9444           ;;
9445         *)
9446           wlarc='${wl}'
9447           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9448           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9449           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9450           ;;
9451         esac
9452       fi
9453       hardcode_libdir_flag_spec='-R$libdir'
9454       hardcode_shlibpath_var=no
9455       case $host_os in
9456       solaris2.[0-5] | solaris2.[0-5].*) ;;
9457       *)
9458         # The compiler driver will combine and reorder linker options,
9459         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9460         # but is careful enough not to reorder.
9461         # Supported since Solaris 2.6 (maybe 2.5.1?)
9462         if test "$GCC" = yes; then
9463           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9464         else
9465           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9466         fi
9467         ;;
9468       esac
9469       link_all_deplibs=yes
9470       ;;
9471
9472     sunos4*)
9473       if test "x$host_vendor" = xsequent; then
9474         # Use $CC to link under sequent, because it throws in some extra .o
9475         # files that make .init and .fini sections work.
9476         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9477       else
9478         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9479       fi
9480       hardcode_libdir_flag_spec='-L$libdir'
9481       hardcode_direct=yes
9482       hardcode_minus_L=yes
9483       hardcode_shlibpath_var=no
9484       ;;
9485
9486     sysv4)
9487       case $host_vendor in
9488         sni)
9489           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9490           hardcode_direct=yes # is this really true???
9491         ;;
9492         siemens)
9493           ## LD is ld it makes a PLAMLIB
9494           ## CC just makes a GrossModule.
9495           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9496           reload_cmds='$CC -r -o $output$reload_objs'
9497           hardcode_direct=no
9498         ;;
9499         motorola)
9500           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9501           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9502         ;;
9503       esac
9504       runpath_var='LD_RUN_PATH'
9505       hardcode_shlibpath_var=no
9506       ;;
9507
9508     sysv4.3*)
9509       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9510       hardcode_shlibpath_var=no
9511       export_dynamic_flag_spec='-Bexport'
9512       ;;
9513
9514     sysv4*MP*)
9515       if test -d /usr/nec; then
9516         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9517         hardcode_shlibpath_var=no
9518         runpath_var=LD_RUN_PATH
9519         hardcode_runpath_var=yes
9520         ld_shlibs=yes
9521       fi
9522       ;;
9523
9524     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9525       no_undefined_flag='${wl}-z,text'
9526       archive_cmds_need_lc=no
9527       hardcode_shlibpath_var=no
9528       runpath_var='LD_RUN_PATH'
9529
9530       if test "$GCC" = yes; then
9531         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9532         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9533       else
9534         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9535         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9536       fi
9537       ;;
9538
9539     sysv5* | sco3.2v5* | sco5v6*)
9540       # Note: We can NOT use -z defs as we might desire, because we do not
9541       # link with -lc, and that would cause any symbols used from libc to
9542       # always be unresolved, which means just about no library would
9543       # ever link correctly.  If we're not using GNU ld we use -z text
9544       # though, which does catch some bad symbols but isn't as heavy-handed
9545       # as -z defs.
9546       no_undefined_flag='${wl}-z,text'
9547       allow_undefined_flag='${wl}-z,nodefs'
9548       archive_cmds_need_lc=no
9549       hardcode_shlibpath_var=no
9550       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9551       hardcode_libdir_separator=':'
9552       link_all_deplibs=yes
9553       export_dynamic_flag_spec='${wl}-Bexport'
9554       runpath_var='LD_RUN_PATH'
9555
9556       if test "$GCC" = yes; then
9557         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9558         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9559       else
9560         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9561         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9562       fi
9563       ;;
9564
9565     uts4*)
9566       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9567       hardcode_libdir_flag_spec='-L$libdir'
9568       hardcode_shlibpath_var=no
9569       ;;
9570
9571     *)
9572       ld_shlibs=no
9573       ;;
9574     esac
9575
9576     if test x$host_vendor = xsni; then
9577       case $host in
9578       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9579         export_dynamic_flag_spec='${wl}-Blargedynsym'
9580         ;;
9581       esac
9582     fi
9583   fi
9584
9585 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9586 echo "${ECHO_T}$ld_shlibs" >&6; }
9587 test "$ld_shlibs" = no && can_build_shared=no
9588
9589 with_gnu_ld=$with_gnu_ld
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605 #
9606 # Do we need to explicitly link libc?
9607 #
9608 case "x$archive_cmds_need_lc" in
9609 x|xyes)
9610   # Assume -lc should be added
9611   archive_cmds_need_lc=yes
9612
9613   if test "$enable_shared" = yes && test "$GCC" = yes; then
9614     case $archive_cmds in
9615     *'~'*)
9616       # FIXME: we may have to deal with multi-command sequences.
9617       ;;
9618     '$CC '*)
9619       # Test whether the compiler implicitly links with -lc since on some
9620       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9621       # to ld, don't add -lc before -lgcc.
9622       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9623 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9624 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9625   echo $ECHO_N "(cached) $ECHO_C" >&6
9626 else
9627   $RM conftest*
9628         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9629
9630         if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9631   (eval $ac_compile) 2>&5
9632   ac_status=$?
9633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634   (exit $ac_status); } 2>conftest.err; then
9635           soname=conftest
9636           lib=conftest
9637           libobjs=conftest.$ac_objext
9638           deplibs=
9639           wl=$lt_prog_compiler_wl
9640           pic_flag=$lt_prog_compiler_pic
9641           compiler_flags=-v
9642           linker_flags=-v
9643           verstring=
9644           output_objdir=.
9645           libname=conftest
9646           lt_save_allow_undefined_flag=$allow_undefined_flag
9647           allow_undefined_flag=
9648           if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9649   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9650   ac_status=$?
9651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652   (exit $ac_status); }
9653           then
9654             lt_cv_archive_cmds_need_lc=no
9655           else
9656             lt_cv_archive_cmds_need_lc=yes
9657           fi
9658           allow_undefined_flag=$lt_save_allow_undefined_flag
9659         else
9660           cat conftest.err 1>&5
9661         fi
9662         $RM conftest*
9663
9664 fi
9665 { echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9666 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6; }
9667       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9668       ;;
9669     esac
9670   fi
9671   ;;
9672 esac
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9831 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9832
9833 if test "$GCC" = yes; then
9834   case $host_os in
9835     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9836     *) lt_awk_arg="/^libraries:/" ;;
9837   esac
9838   case $host_os in
9839     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9840     *) lt_sed_strip_eq="s,=/,/,g" ;;
9841   esac
9842   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9843   case $lt_search_path_spec in
9844   *\;*)
9845     # if the path contains ";" then we assume it to be the separator
9846     # otherwise default to the standard path separator (i.e. ":") - it is
9847     # assumed that no part of a normal pathname contains ";" but that should
9848     # okay in the real world where ";" in dirpaths is itself problematic.
9849     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9850     ;;
9851   *)
9852     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9853     ;;
9854   esac
9855   # Ok, now we have the path, separated by spaces, we can step through it
9856   # and add multilib dir if necessary.
9857   lt_tmp_lt_search_path_spec=
9858   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9859   for lt_sys_path in $lt_search_path_spec; do
9860     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9861       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9862     else
9863       test -d "$lt_sys_path" && \
9864         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9865     fi
9866   done
9867   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9868 BEGIN {RS=" "; FS="/|\n";} {
9869   lt_foo="";
9870   lt_count=0;
9871   for (lt_i = NF; lt_i > 0; lt_i--) {
9872     if ($lt_i != "" && $lt_i != ".") {
9873       if ($lt_i == "..") {
9874         lt_count++;
9875       } else {
9876         if (lt_count == 0) {
9877           lt_foo="/" $lt_i lt_foo;
9878         } else {
9879           lt_count--;
9880         }
9881       }
9882     }
9883   }
9884   if (lt_foo != "") { lt_freq[lt_foo]++; }
9885   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9886 }'`
9887   # AWK program above erroneously prepends '/' to C:/dos/paths
9888   # for these hosts.
9889   case $host_os in
9890     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9891       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9892   esac
9893   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9894 else
9895   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9896 fi
9897 library_names_spec=
9898 libname_spec='lib$name'
9899 soname_spec=
9900 shrext_cmds=".so"
9901 postinstall_cmds=
9902 postuninstall_cmds=
9903 finish_cmds=
9904 finish_eval=
9905 shlibpath_var=
9906 shlibpath_overrides_runpath=unknown
9907 version_type=none
9908 dynamic_linker="$host_os ld.so"
9909 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9910 need_lib_prefix=unknown
9911 hardcode_into_libs=no
9912
9913 # when you set need_version to no, make sure it does not cause -set_version
9914 # flags to be left without arguments
9915 need_version=unknown
9916
9917 case $host_os in
9918 aix3*)
9919   version_type=linux
9920   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9921   shlibpath_var=LIBPATH
9922
9923   # AIX 3 has no versioning support, so we append a major version to the name.
9924   soname_spec='${libname}${release}${shared_ext}$major'
9925   ;;
9926
9927 aix[4-9]*)
9928   version_type=linux
9929   need_lib_prefix=no
9930   need_version=no
9931   hardcode_into_libs=yes
9932   if test "$host_cpu" = ia64; then
9933     # AIX 5 supports IA64
9934     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9935     shlibpath_var=LD_LIBRARY_PATH
9936   else
9937     # With GCC up to 2.95.x, collect2 would create an import file
9938     # for dependence libraries.  The import file would start with
9939     # the line `#! .'.  This would cause the generated library to
9940     # depend on `.', always an invalid library.  This was fixed in
9941     # development snapshots of GCC prior to 3.0.
9942     case $host_os in
9943       aix4 | aix4.[01] | aix4.[01].*)
9944       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9945            echo ' yes '
9946            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9947         :
9948       else
9949         can_build_shared=no
9950       fi
9951       ;;
9952     esac
9953     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9954     # soname into executable. Probably we can add versioning support to
9955     # collect2, so additional links can be useful in future.
9956     if test "$aix_use_runtimelinking" = yes; then
9957       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9958       # instead of lib<name>.a to let people know that these are not
9959       # typical AIX shared libraries.
9960       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9961     else
9962       # We preserve .a as extension for shared libraries through AIX4.2
9963       # and later when we are not doing run time linking.
9964       library_names_spec='${libname}${release}.a $libname.a'
9965       soname_spec='${libname}${release}${shared_ext}$major'
9966     fi
9967     shlibpath_var=LIBPATH
9968   fi
9969   ;;
9970
9971 amigaos*)
9972   case $host_cpu in
9973   powerpc)
9974     # Since July 2007 AmigaOS4 officially supports .so libraries.
9975     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9976     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9977     ;;
9978   m68k)
9979     library_names_spec='$libname.ixlibrary $libname.a'
9980     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9981     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9982     ;;
9983   esac
9984   ;;
9985
9986 beos*)
9987   library_names_spec='${libname}${shared_ext}'
9988   dynamic_linker="$host_os ld.so"
9989   shlibpath_var=LIBRARY_PATH
9990   ;;
9991
9992 bsdi[45]*)
9993   version_type=linux
9994   need_version=no
9995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9996   soname_spec='${libname}${release}${shared_ext}$major'
9997   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9998   shlibpath_var=LD_LIBRARY_PATH
9999   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10000   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10001   # the default ld.so.conf also contains /usr/contrib/lib and
10002   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10003   # libtool to hard-code these into programs
10004   ;;
10005
10006 cygwin* | mingw* | pw32* | cegcc*)
10007   version_type=windows
10008   shrext_cmds=".dll"
10009   need_version=no
10010   need_lib_prefix=no
10011
10012   case $GCC,$host_os in
10013   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10014     library_names_spec='$libname.dll.a'
10015     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10016     postinstall_cmds='base_file=`basename \${file}`~
10017       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10018       dldir=$destdir/`dirname \$dlpath`~
10019       test -d \$dldir || mkdir -p \$dldir~
10020       $install_prog $dir/$dlname \$dldir/$dlname~
10021       chmod a+x \$dldir/$dlname~
10022       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10023         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10024       fi'
10025     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10026       dlpath=$dir/\$dldll~
10027        $RM \$dlpath'
10028     shlibpath_overrides_runpath=yes
10029
10030     case $host_os in
10031     cygwin*)
10032       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10033       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10034
10035       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10036       ;;
10037     mingw* | cegcc*)
10038       # MinGW DLLs use traditional 'lib' prefix
10039       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10040       ;;
10041     pw32*)
10042       # pw32 DLLs use 'pw' prefix rather than 'lib'
10043       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10044       ;;
10045     esac
10046     ;;
10047
10048   *)
10049     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10050     ;;
10051   esac
10052   dynamic_linker='Win32 ld.exe'
10053   # FIXME: first we should search . and the directory the executable is in
10054   shlibpath_var=PATH
10055   ;;
10056
10057 darwin* | rhapsody*)
10058   dynamic_linker="$host_os dyld"
10059   version_type=darwin
10060   need_lib_prefix=no
10061   need_version=no
10062   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10063   soname_spec='${libname}${release}${major}$shared_ext'
10064   shlibpath_overrides_runpath=yes
10065   shlibpath_var=DYLD_LIBRARY_PATH
10066   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10067
10068   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10069   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10070   ;;
10071
10072 dgux*)
10073   version_type=linux
10074   need_lib_prefix=no
10075   need_version=no
10076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10077   soname_spec='${libname}${release}${shared_ext}$major'
10078   shlibpath_var=LD_LIBRARY_PATH
10079   ;;
10080
10081 freebsd1*)
10082   dynamic_linker=no
10083   ;;
10084
10085 freebsd* | dragonfly*)
10086   # DragonFly does not have aout.  When/if they implement a new
10087   # versioning mechanism, adjust this.
10088   if test -x /usr/bin/objformat; then
10089     objformat=`/usr/bin/objformat`
10090   else
10091     case $host_os in
10092     freebsd[123]*) objformat=aout ;;
10093     *) objformat=elf ;;
10094     esac
10095   fi
10096   version_type=freebsd-$objformat
10097   case $version_type in
10098     freebsd-elf*)
10099       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10100       need_version=no
10101       need_lib_prefix=no
10102       ;;
10103     freebsd-*)
10104       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10105       need_version=yes
10106       ;;
10107   esac
10108   shlibpath_var=LD_LIBRARY_PATH
10109   case $host_os in
10110   freebsd2*)
10111     shlibpath_overrides_runpath=yes
10112     ;;
10113   freebsd3.[01]* | freebsdelf3.[01]*)
10114     shlibpath_overrides_runpath=yes
10115     hardcode_into_libs=yes
10116     ;;
10117   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10118   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10119     shlibpath_overrides_runpath=no
10120     hardcode_into_libs=yes
10121     ;;
10122   *) # from 4.6 on, and DragonFly
10123     shlibpath_overrides_runpath=yes
10124     hardcode_into_libs=yes
10125     ;;
10126   esac
10127   ;;
10128
10129 gnu*)
10130   version_type=linux
10131   need_lib_prefix=no
10132   need_version=no
10133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10134   soname_spec='${libname}${release}${shared_ext}$major'
10135   shlibpath_var=LD_LIBRARY_PATH
10136   hardcode_into_libs=yes
10137   ;;
10138
10139 haiku*)
10140   version_type=linux
10141   need_lib_prefix=no
10142   need_version=no
10143   dynamic_linker="$host_os runtime_loader"
10144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10145   soname_spec='${libname}${release}${shared_ext}$major'
10146   shlibpath_var=LIBRARY_PATH
10147   shlibpath_overrides_runpath=yes
10148   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10149   hardcode_into_libs=yes
10150   ;;
10151
10152 hpux9* | hpux10* | hpux11*)
10153   # Give a soname corresponding to the major version so that dld.sl refuses to
10154   # link against other versions.
10155   version_type=sunos
10156   need_lib_prefix=no
10157   need_version=no
10158   case $host_cpu in
10159   ia64*)
10160     shrext_cmds='.so'
10161     hardcode_into_libs=yes
10162     dynamic_linker="$host_os dld.so"
10163     shlibpath_var=LD_LIBRARY_PATH
10164     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10165     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10166     soname_spec='${libname}${release}${shared_ext}$major'
10167     if test "X$HPUX_IA64_MODE" = X32; then
10168       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10169     else
10170       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10171     fi
10172     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10173     ;;
10174   hppa*64*)
10175     shrext_cmds='.sl'
10176     hardcode_into_libs=yes
10177     dynamic_linker="$host_os dld.sl"
10178     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10179     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10180     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10181     soname_spec='${libname}${release}${shared_ext}$major'
10182     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10183     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10184     ;;
10185   *)
10186     shrext_cmds='.sl'
10187     dynamic_linker="$host_os dld.sl"
10188     shlibpath_var=SHLIB_PATH
10189     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10190     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10191     soname_spec='${libname}${release}${shared_ext}$major'
10192     ;;
10193   esac
10194   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10195   postinstall_cmds='chmod 555 $lib'
10196   # or fails outright, so override atomically:
10197   install_override_mode=555
10198   ;;
10199
10200 interix[3-9]*)
10201   version_type=linux
10202   need_lib_prefix=no
10203   need_version=no
10204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10205   soname_spec='${libname}${release}${shared_ext}$major'
10206   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10207   shlibpath_var=LD_LIBRARY_PATH
10208   shlibpath_overrides_runpath=no
10209   hardcode_into_libs=yes
10210   ;;
10211
10212 irix5* | irix6* | nonstopux*)
10213   case $host_os in
10214     nonstopux*) version_type=nonstopux ;;
10215     *)
10216         if test "$lt_cv_prog_gnu_ld" = yes; then
10217                 version_type=linux
10218         else
10219                 version_type=irix
10220         fi ;;
10221   esac
10222   need_lib_prefix=no
10223   need_version=no
10224   soname_spec='${libname}${release}${shared_ext}$major'
10225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10226   case $host_os in
10227   irix5* | nonstopux*)
10228     libsuff= shlibsuff=
10229     ;;
10230   *)
10231     case $LD in # libtool.m4 will add one of these switches to LD
10232     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10233       libsuff= shlibsuff= libmagic=32-bit;;
10234     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10235       libsuff=32 shlibsuff=N32 libmagic=N32;;
10236     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10237       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10238     *) libsuff= shlibsuff= libmagic=never-match;;
10239     esac
10240     ;;
10241   esac
10242   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10243   shlibpath_overrides_runpath=no
10244   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10245   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10246   hardcode_into_libs=yes
10247   ;;
10248
10249 # No shared lib support for Linux oldld, aout, or coff.
10250 linux*oldld* | linux*aout* | linux*coff*)
10251   dynamic_linker=no
10252   ;;
10253
10254 # This must be Linux ELF.
10255 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10256   version_type=linux
10257   need_lib_prefix=no
10258   need_version=no
10259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10260   soname_spec='${libname}${release}${shared_ext}$major'
10261   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10262   shlibpath_var=LD_LIBRARY_PATH
10263   shlibpath_overrides_runpath=no
10264
10265   # Some binutils ld are patched to set DT_RUNPATH
10266   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10267   echo $ECHO_N "(cached) $ECHO_C" >&6
10268 else
10269   lt_cv_shlibpath_overrides_runpath=no
10270     save_LDFLAGS=$LDFLAGS
10271     save_libdir=$libdir
10272     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10273          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10274     cat >conftest.$ac_ext <<_ACEOF
10275 /* confdefs.h.  */
10276 _ACEOF
10277 cat confdefs.h >>conftest.$ac_ext
10278 cat >>conftest.$ac_ext <<_ACEOF
10279 /* end confdefs.h.  */
10280
10281 int
10282 main ()
10283 {
10284
10285   ;
10286   return 0;
10287 }
10288 _ACEOF
10289 rm -f conftest.$ac_objext conftest$ac_exeext
10290 if { (ac_try="$ac_link"
10291 case "(($ac_try" in
10292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293   *) ac_try_echo=$ac_try;;
10294 esac
10295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10296   (eval "$ac_link") 2>conftest.er1
10297   ac_status=$?
10298   grep -v '^ *+' conftest.er1 >conftest.err
10299   rm -f conftest.er1
10300   cat conftest.err >&5
10301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302   (exit $ac_status); } && {
10303          test -z "$ac_c_werror_flag" ||
10304          test ! -s conftest.err
10305        } && test -s conftest$ac_exeext &&
10306        $as_test_x conftest$ac_exeext; then
10307   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10308   lt_cv_shlibpath_overrides_runpath=yes
10309 fi
10310
10311 else
10312   echo "$as_me: failed program was:" >&5
10313 sed 's/^/| /' conftest.$ac_ext >&5
10314
10315
10316 fi
10317
10318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10319       conftest$ac_exeext conftest.$ac_ext
10320     LDFLAGS=$save_LDFLAGS
10321     libdir=$save_libdir
10322
10323 fi
10324
10325   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10326
10327   # This implies no fast_install, which is unacceptable.
10328   # Some rework will be needed to allow for fast_install
10329   # before this can be enabled.
10330   hardcode_into_libs=yes
10331
10332   # Append ld.so.conf contents to the search path
10333   if test -f /etc/ld.so.conf; then
10334     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10335     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10336   fi
10337
10338   # We used to test for /lib/ld.so.1 and disable shared libraries on
10339   # powerpc, because MkLinux only supported shared libraries with the
10340   # GNU dynamic linker.  Since this was broken with cross compilers,
10341   # most powerpc-linux boxes support dynamic linking these days and
10342   # people can always --disable-shared, the test was removed, and we
10343   # assume the GNU/Linux dynamic linker is in use.
10344   dynamic_linker='GNU/Linux ld.so'
10345   ;;
10346
10347 netbsd*)
10348   version_type=sunos
10349   need_lib_prefix=no
10350   need_version=no
10351   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10352     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10353     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10354     dynamic_linker='NetBSD (a.out) ld.so'
10355   else
10356     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10357     soname_spec='${libname}${release}${shared_ext}$major'
10358     dynamic_linker='NetBSD ld.elf_so'
10359   fi
10360   shlibpath_var=LD_LIBRARY_PATH
10361   shlibpath_overrides_runpath=yes
10362   hardcode_into_libs=yes
10363   ;;
10364
10365 newsos6)
10366   version_type=linux
10367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10368   shlibpath_var=LD_LIBRARY_PATH
10369   shlibpath_overrides_runpath=yes
10370   ;;
10371
10372 *nto* | *qnx*)
10373   version_type=qnx
10374   need_lib_prefix=no
10375   need_version=no
10376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10377   soname_spec='${libname}${release}${shared_ext}$major'
10378   shlibpath_var=LD_LIBRARY_PATH
10379   shlibpath_overrides_runpath=no
10380   hardcode_into_libs=yes
10381   dynamic_linker='ldqnx.so'
10382   ;;
10383
10384 openbsd*)
10385   version_type=sunos
10386   sys_lib_dlsearch_path_spec="/usr/lib"
10387   need_lib_prefix=no
10388   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10389   case $host_os in
10390     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10391     *)                          need_version=no  ;;
10392   esac
10393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10394   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10395   shlibpath_var=LD_LIBRARY_PATH
10396   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10397     case $host_os in
10398       openbsd2.[89] | openbsd2.[89].*)
10399         shlibpath_overrides_runpath=no
10400         ;;
10401       *)
10402         shlibpath_overrides_runpath=yes
10403         ;;
10404       esac
10405   else
10406     shlibpath_overrides_runpath=yes
10407   fi
10408   ;;
10409
10410 os2*)
10411   libname_spec='$name'
10412   shrext_cmds=".dll"
10413   need_lib_prefix=no
10414   library_names_spec='$libname${shared_ext} $libname.a'
10415   dynamic_linker='OS/2 ld.exe'
10416   shlibpath_var=LIBPATH
10417   ;;
10418
10419 osf3* | osf4* | osf5*)
10420   version_type=osf
10421   need_lib_prefix=no
10422   need_version=no
10423   soname_spec='${libname}${release}${shared_ext}$major'
10424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10425   shlibpath_var=LD_LIBRARY_PATH
10426   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10427   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10428   ;;
10429
10430 rdos*)
10431   dynamic_linker=no
10432   ;;
10433
10434 solaris*)
10435   version_type=linux
10436   need_lib_prefix=no
10437   need_version=no
10438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10439   soname_spec='${libname}${release}${shared_ext}$major'
10440   shlibpath_var=LD_LIBRARY_PATH
10441   shlibpath_overrides_runpath=yes
10442   hardcode_into_libs=yes
10443   # ldd complains unless libraries are executable
10444   postinstall_cmds='chmod +x $lib'
10445   ;;
10446
10447 sunos4*)
10448   version_type=sunos
10449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10450   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10451   shlibpath_var=LD_LIBRARY_PATH
10452   shlibpath_overrides_runpath=yes
10453   if test "$with_gnu_ld" = yes; then
10454     need_lib_prefix=no
10455   fi
10456   need_version=yes
10457   ;;
10458
10459 sysv4 | sysv4.3*)
10460   version_type=linux
10461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10462   soname_spec='${libname}${release}${shared_ext}$major'
10463   shlibpath_var=LD_LIBRARY_PATH
10464   case $host_vendor in
10465     sni)
10466       shlibpath_overrides_runpath=no
10467       need_lib_prefix=no
10468       runpath_var=LD_RUN_PATH
10469       ;;
10470     siemens)
10471       need_lib_prefix=no
10472       ;;
10473     motorola)
10474       need_lib_prefix=no
10475       need_version=no
10476       shlibpath_overrides_runpath=no
10477       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10478       ;;
10479   esac
10480   ;;
10481
10482 sysv4*MP*)
10483   if test -d /usr/nec ;then
10484     version_type=linux
10485     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10486     soname_spec='$libname${shared_ext}.$major'
10487     shlibpath_var=LD_LIBRARY_PATH
10488   fi
10489   ;;
10490
10491 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10492   version_type=freebsd-elf
10493   need_lib_prefix=no
10494   need_version=no
10495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10496   soname_spec='${libname}${release}${shared_ext}$major'
10497   shlibpath_var=LD_LIBRARY_PATH
10498   shlibpath_overrides_runpath=yes
10499   hardcode_into_libs=yes
10500   if test "$with_gnu_ld" = yes; then
10501     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10502   else
10503     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10504     case $host_os in
10505       sco3.2v5*)
10506         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10507         ;;
10508     esac
10509   fi
10510   sys_lib_dlsearch_path_spec='/usr/lib'
10511   ;;
10512
10513 tpf*)
10514   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10515   version_type=linux
10516   need_lib_prefix=no
10517   need_version=no
10518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10519   shlibpath_var=LD_LIBRARY_PATH
10520   shlibpath_overrides_runpath=no
10521   hardcode_into_libs=yes
10522   ;;
10523
10524 uts4*)
10525   version_type=linux
10526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10527   soname_spec='${libname}${release}${shared_ext}$major'
10528   shlibpath_var=LD_LIBRARY_PATH
10529   ;;
10530
10531 *)
10532   dynamic_linker=no
10533   ;;
10534 esac
10535 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10536 echo "${ECHO_T}$dynamic_linker" >&6; }
10537 test "$dynamic_linker" = no && can_build_shared=no
10538
10539 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10540 if test "$GCC" = yes; then
10541   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10542 fi
10543
10544 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10545   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10546 fi
10547 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10548   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10549 fi
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10643 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10644 hardcode_action=
10645 if test -n "$hardcode_libdir_flag_spec" ||
10646    test -n "$runpath_var" ||
10647    test "X$hardcode_automatic" = "Xyes" ; then
10648
10649   # We can hardcode non-existent directories.
10650   if test "$hardcode_direct" != no &&
10651      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10652      # have to relink, otherwise we might link with an installed library
10653      # when we should be linking with a yet-to-be-installed one
10654      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10655      test "$hardcode_minus_L" != no; then
10656     # Linking always hardcodes the temporary library directory.
10657     hardcode_action=relink
10658   else
10659     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10660     hardcode_action=immediate
10661   fi
10662 else
10663   # We cannot hardcode anything, or else we can only hardcode existing
10664   # directories.
10665   hardcode_action=unsupported
10666 fi
10667 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10668 echo "${ECHO_T}$hardcode_action" >&6; }
10669
10670 if test "$hardcode_action" = relink ||
10671    test "$inherit_rpath" = yes; then
10672   # Fast installation is not supported
10673   enable_fast_install=no
10674 elif test "$shlibpath_overrides_runpath" = yes ||
10675      test "$enable_shared" = no; then
10676   # Fast installation is not necessary
10677   enable_fast_install=needless
10678 fi
10679
10680
10681
10682
10683
10684
10685   if test "x$enable_dlopen" != xyes; then
10686   enable_dlopen=unknown
10687   enable_dlopen_self=unknown
10688   enable_dlopen_self_static=unknown
10689 else
10690   lt_cv_dlopen=no
10691   lt_cv_dlopen_libs=
10692
10693   case $host_os in
10694   beos*)
10695     lt_cv_dlopen="load_add_on"
10696     lt_cv_dlopen_libs=
10697     lt_cv_dlopen_self=yes
10698     ;;
10699
10700   mingw* | pw32* | cegcc*)
10701     lt_cv_dlopen="LoadLibrary"
10702     lt_cv_dlopen_libs=
10703     ;;
10704
10705   cygwin*)
10706     lt_cv_dlopen="dlopen"
10707     lt_cv_dlopen_libs=
10708     ;;
10709
10710   darwin*)
10711   # if libdl is installed we need to link against it
10712     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10713 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10714 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10715   echo $ECHO_N "(cached) $ECHO_C" >&6
10716 else
10717   ac_check_lib_save_LIBS=$LIBS
10718 LIBS="-ldl  $LIBS"
10719 cat >conftest.$ac_ext <<_ACEOF
10720 /* confdefs.h.  */
10721 _ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h.  */
10725
10726 /* Override any GCC internal prototype to avoid an error.
10727    Use char because int might match the return type of a GCC
10728    builtin and then its argument prototype would still apply.  */
10729 #ifdef __cplusplus
10730 extern "C"
10731 #endif
10732 char dlopen ();
10733 int
10734 main ()
10735 {
10736 return dlopen ();
10737   ;
10738   return 0;
10739 }
10740 _ACEOF
10741 rm -f conftest.$ac_objext conftest$ac_exeext
10742 if { (ac_try="$ac_link"
10743 case "(($ac_try" in
10744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745   *) ac_try_echo=$ac_try;;
10746 esac
10747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10748   (eval "$ac_link") 2>conftest.er1
10749   ac_status=$?
10750   grep -v '^ *+' conftest.er1 >conftest.err
10751   rm -f conftest.er1
10752   cat conftest.err >&5
10753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754   (exit $ac_status); } && {
10755          test -z "$ac_c_werror_flag" ||
10756          test ! -s conftest.err
10757        } && test -s conftest$ac_exeext &&
10758        $as_test_x conftest$ac_exeext; then
10759   ac_cv_lib_dl_dlopen=yes
10760 else
10761   echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10763
10764         ac_cv_lib_dl_dlopen=no
10765 fi
10766
10767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10768       conftest$ac_exeext conftest.$ac_ext
10769 LIBS=$ac_check_lib_save_LIBS
10770 fi
10771 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10772 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10773 if test $ac_cv_lib_dl_dlopen = yes; then
10774   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10775 else
10776
10777     lt_cv_dlopen="dyld"
10778     lt_cv_dlopen_libs=
10779     lt_cv_dlopen_self=yes
10780
10781 fi
10782
10783     ;;
10784
10785   *)
10786     { echo "$as_me:$LINENO: checking for shl_load" >&5
10787 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10788 if test "${ac_cv_func_shl_load+set}" = set; then
10789   echo $ECHO_N "(cached) $ECHO_C" >&6
10790 else
10791   cat >conftest.$ac_ext <<_ACEOF
10792 /* confdefs.h.  */
10793 _ACEOF
10794 cat confdefs.h >>conftest.$ac_ext
10795 cat >>conftest.$ac_ext <<_ACEOF
10796 /* end confdefs.h.  */
10797 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10798    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10799 #define shl_load innocuous_shl_load
10800
10801 /* System header to define __stub macros and hopefully few prototypes,
10802     which can conflict with char shl_load (); below.
10803     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10804     <limits.h> exists even on freestanding compilers.  */
10805
10806 #ifdef __STDC__
10807 # include <limits.h>
10808 #else
10809 # include <assert.h>
10810 #endif
10811
10812 #undef shl_load
10813
10814 /* Override any GCC internal prototype to avoid an error.
10815    Use char because int might match the return type of a GCC
10816    builtin and then its argument prototype would still apply.  */
10817 #ifdef __cplusplus
10818 extern "C"
10819 #endif
10820 char shl_load ();
10821 /* The GNU C library defines this for functions which it implements
10822     to always fail with ENOSYS.  Some functions are actually named
10823     something starting with __ and the normal name is an alias.  */
10824 #if defined __stub_shl_load || defined __stub___shl_load
10825 choke me
10826 #endif
10827
10828 int
10829 main ()
10830 {
10831 return shl_load ();
10832   ;
10833   return 0;
10834 }
10835 _ACEOF
10836 rm -f conftest.$ac_objext conftest$ac_exeext
10837 if { (ac_try="$ac_link"
10838 case "(($ac_try" in
10839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840   *) ac_try_echo=$ac_try;;
10841 esac
10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843   (eval "$ac_link") 2>conftest.er1
10844   ac_status=$?
10845   grep -v '^ *+' conftest.er1 >conftest.err
10846   rm -f conftest.er1
10847   cat conftest.err >&5
10848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849   (exit $ac_status); } && {
10850          test -z "$ac_c_werror_flag" ||
10851          test ! -s conftest.err
10852        } && test -s conftest$ac_exeext &&
10853        $as_test_x conftest$ac_exeext; then
10854   ac_cv_func_shl_load=yes
10855 else
10856   echo "$as_me: failed program was:" >&5
10857 sed 's/^/| /' conftest.$ac_ext >&5
10858
10859         ac_cv_func_shl_load=no
10860 fi
10861
10862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10863       conftest$ac_exeext conftest.$ac_ext
10864 fi
10865 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10866 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10867 if test $ac_cv_func_shl_load = yes; then
10868   lt_cv_dlopen="shl_load"
10869 else
10870   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10871 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10872 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10873   echo $ECHO_N "(cached) $ECHO_C" >&6
10874 else
10875   ac_check_lib_save_LIBS=$LIBS
10876 LIBS="-ldld  $LIBS"
10877 cat >conftest.$ac_ext <<_ACEOF
10878 /* confdefs.h.  */
10879 _ACEOF
10880 cat confdefs.h >>conftest.$ac_ext
10881 cat >>conftest.$ac_ext <<_ACEOF
10882 /* end confdefs.h.  */
10883
10884 /* Override any GCC internal prototype to avoid an error.
10885    Use char because int might match the return type of a GCC
10886    builtin and then its argument prototype would still apply.  */
10887 #ifdef __cplusplus
10888 extern "C"
10889 #endif
10890 char shl_load ();
10891 int
10892 main ()
10893 {
10894 return shl_load ();
10895   ;
10896   return 0;
10897 }
10898 _ACEOF
10899 rm -f conftest.$ac_objext conftest$ac_exeext
10900 if { (ac_try="$ac_link"
10901 case "(($ac_try" in
10902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10903   *) ac_try_echo=$ac_try;;
10904 esac
10905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10906   (eval "$ac_link") 2>conftest.er1
10907   ac_status=$?
10908   grep -v '^ *+' conftest.er1 >conftest.err
10909   rm -f conftest.er1
10910   cat conftest.err >&5
10911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912   (exit $ac_status); } && {
10913          test -z "$ac_c_werror_flag" ||
10914          test ! -s conftest.err
10915        } && test -s conftest$ac_exeext &&
10916        $as_test_x conftest$ac_exeext; then
10917   ac_cv_lib_dld_shl_load=yes
10918 else
10919   echo "$as_me: failed program was:" >&5
10920 sed 's/^/| /' conftest.$ac_ext >&5
10921
10922         ac_cv_lib_dld_shl_load=no
10923 fi
10924
10925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10926       conftest$ac_exeext conftest.$ac_ext
10927 LIBS=$ac_check_lib_save_LIBS
10928 fi
10929 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10930 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10931 if test $ac_cv_lib_dld_shl_load = yes; then
10932   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10933 else
10934   { echo "$as_me:$LINENO: checking for dlopen" >&5
10935 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10936 if test "${ac_cv_func_dlopen+set}" = set; then
10937   echo $ECHO_N "(cached) $ECHO_C" >&6
10938 else
10939   cat >conftest.$ac_ext <<_ACEOF
10940 /* confdefs.h.  */
10941 _ACEOF
10942 cat confdefs.h >>conftest.$ac_ext
10943 cat >>conftest.$ac_ext <<_ACEOF
10944 /* end confdefs.h.  */
10945 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10946    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10947 #define dlopen innocuous_dlopen
10948
10949 /* System header to define __stub macros and hopefully few prototypes,
10950     which can conflict with char dlopen (); below.
10951     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10952     <limits.h> exists even on freestanding compilers.  */
10953
10954 #ifdef __STDC__
10955 # include <limits.h>
10956 #else
10957 # include <assert.h>
10958 #endif
10959
10960 #undef dlopen
10961
10962 /* Override any GCC internal prototype to avoid an error.
10963    Use char because int might match the return type of a GCC
10964    builtin and then its argument prototype would still apply.  */
10965 #ifdef __cplusplus
10966 extern "C"
10967 #endif
10968 char dlopen ();
10969 /* The GNU C library defines this for functions which it implements
10970     to always fail with ENOSYS.  Some functions are actually named
10971     something starting with __ and the normal name is an alias.  */
10972 #if defined __stub_dlopen || defined __stub___dlopen
10973 choke me
10974 #endif
10975
10976 int
10977 main ()
10978 {
10979 return dlopen ();
10980   ;
10981   return 0;
10982 }
10983 _ACEOF
10984 rm -f conftest.$ac_objext conftest$ac_exeext
10985 if { (ac_try="$ac_link"
10986 case "(($ac_try" in
10987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10988   *) ac_try_echo=$ac_try;;
10989 esac
10990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10991   (eval "$ac_link") 2>conftest.er1
10992   ac_status=$?
10993   grep -v '^ *+' conftest.er1 >conftest.err
10994   rm -f conftest.er1
10995   cat conftest.err >&5
10996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997   (exit $ac_status); } && {
10998          test -z "$ac_c_werror_flag" ||
10999          test ! -s conftest.err
11000        } && test -s conftest$ac_exeext &&
11001        $as_test_x conftest$ac_exeext; then
11002   ac_cv_func_dlopen=yes
11003 else
11004   echo "$as_me: failed program was:" >&5
11005 sed 's/^/| /' conftest.$ac_ext >&5
11006
11007         ac_cv_func_dlopen=no
11008 fi
11009
11010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11011       conftest$ac_exeext conftest.$ac_ext
11012 fi
11013 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11014 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11015 if test $ac_cv_func_dlopen = yes; then
11016   lt_cv_dlopen="dlopen"
11017 else
11018   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11019 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11020 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11021   echo $ECHO_N "(cached) $ECHO_C" >&6
11022 else
11023   ac_check_lib_save_LIBS=$LIBS
11024 LIBS="-ldl  $LIBS"
11025 cat >conftest.$ac_ext <<_ACEOF
11026 /* confdefs.h.  */
11027 _ACEOF
11028 cat confdefs.h >>conftest.$ac_ext
11029 cat >>conftest.$ac_ext <<_ACEOF
11030 /* end confdefs.h.  */
11031
11032 /* Override any GCC internal prototype to avoid an error.
11033    Use char because int might match the return type of a GCC
11034    builtin and then its argument prototype would still apply.  */
11035 #ifdef __cplusplus
11036 extern "C"
11037 #endif
11038 char dlopen ();
11039 int
11040 main ()
11041 {
11042 return dlopen ();
11043   ;
11044   return 0;
11045 }
11046 _ACEOF
11047 rm -f conftest.$ac_objext conftest$ac_exeext
11048 if { (ac_try="$ac_link"
11049 case "(($ac_try" in
11050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11051   *) ac_try_echo=$ac_try;;
11052 esac
11053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11054   (eval "$ac_link") 2>conftest.er1
11055   ac_status=$?
11056   grep -v '^ *+' conftest.er1 >conftest.err
11057   rm -f conftest.er1
11058   cat conftest.err >&5
11059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060   (exit $ac_status); } && {
11061          test -z "$ac_c_werror_flag" ||
11062          test ! -s conftest.err
11063        } && test -s conftest$ac_exeext &&
11064        $as_test_x conftest$ac_exeext; then
11065   ac_cv_lib_dl_dlopen=yes
11066 else
11067   echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.$ac_ext >&5
11069
11070         ac_cv_lib_dl_dlopen=no
11071 fi
11072
11073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11074       conftest$ac_exeext conftest.$ac_ext
11075 LIBS=$ac_check_lib_save_LIBS
11076 fi
11077 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11078 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11079 if test $ac_cv_lib_dl_dlopen = yes; then
11080   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11081 else
11082   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11083 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11084 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11085   echo $ECHO_N "(cached) $ECHO_C" >&6
11086 else
11087   ac_check_lib_save_LIBS=$LIBS
11088 LIBS="-lsvld  $LIBS"
11089 cat >conftest.$ac_ext <<_ACEOF
11090 /* confdefs.h.  */
11091 _ACEOF
11092 cat confdefs.h >>conftest.$ac_ext
11093 cat >>conftest.$ac_ext <<_ACEOF
11094 /* end confdefs.h.  */
11095
11096 /* Override any GCC internal prototype to avoid an error.
11097    Use char because int might match the return type of a GCC
11098    builtin and then its argument prototype would still apply.  */
11099 #ifdef __cplusplus
11100 extern "C"
11101 #endif
11102 char dlopen ();
11103 int
11104 main ()
11105 {
11106 return dlopen ();
11107   ;
11108   return 0;
11109 }
11110 _ACEOF
11111 rm -f conftest.$ac_objext conftest$ac_exeext
11112 if { (ac_try="$ac_link"
11113 case "(($ac_try" in
11114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11115   *) ac_try_echo=$ac_try;;
11116 esac
11117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11118   (eval "$ac_link") 2>conftest.er1
11119   ac_status=$?
11120   grep -v '^ *+' conftest.er1 >conftest.err
11121   rm -f conftest.er1
11122   cat conftest.err >&5
11123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124   (exit $ac_status); } && {
11125          test -z "$ac_c_werror_flag" ||
11126          test ! -s conftest.err
11127        } && test -s conftest$ac_exeext &&
11128        $as_test_x conftest$ac_exeext; then
11129   ac_cv_lib_svld_dlopen=yes
11130 else
11131   echo "$as_me: failed program was:" >&5
11132 sed 's/^/| /' conftest.$ac_ext >&5
11133
11134         ac_cv_lib_svld_dlopen=no
11135 fi
11136
11137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11138       conftest$ac_exeext conftest.$ac_ext
11139 LIBS=$ac_check_lib_save_LIBS
11140 fi
11141 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11142 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11143 if test $ac_cv_lib_svld_dlopen = yes; then
11144   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11145 else
11146   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11147 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11148 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11149   echo $ECHO_N "(cached) $ECHO_C" >&6
11150 else
11151   ac_check_lib_save_LIBS=$LIBS
11152 LIBS="-ldld  $LIBS"
11153 cat >conftest.$ac_ext <<_ACEOF
11154 /* confdefs.h.  */
11155 _ACEOF
11156 cat confdefs.h >>conftest.$ac_ext
11157 cat >>conftest.$ac_ext <<_ACEOF
11158 /* end confdefs.h.  */
11159
11160 /* Override any GCC internal prototype to avoid an error.
11161    Use char because int might match the return type of a GCC
11162    builtin and then its argument prototype would still apply.  */
11163 #ifdef __cplusplus
11164 extern "C"
11165 #endif
11166 char dld_link ();
11167 int
11168 main ()
11169 {
11170 return dld_link ();
11171   ;
11172   return 0;
11173 }
11174 _ACEOF
11175 rm -f conftest.$ac_objext conftest$ac_exeext
11176 if { (ac_try="$ac_link"
11177 case "(($ac_try" in
11178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11179   *) ac_try_echo=$ac_try;;
11180 esac
11181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11182   (eval "$ac_link") 2>conftest.er1
11183   ac_status=$?
11184   grep -v '^ *+' conftest.er1 >conftest.err
11185   rm -f conftest.er1
11186   cat conftest.err >&5
11187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188   (exit $ac_status); } && {
11189          test -z "$ac_c_werror_flag" ||
11190          test ! -s conftest.err
11191        } && test -s conftest$ac_exeext &&
11192        $as_test_x conftest$ac_exeext; then
11193   ac_cv_lib_dld_dld_link=yes
11194 else
11195   echo "$as_me: failed program was:" >&5
11196 sed 's/^/| /' conftest.$ac_ext >&5
11197
11198         ac_cv_lib_dld_dld_link=no
11199 fi
11200
11201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11202       conftest$ac_exeext conftest.$ac_ext
11203 LIBS=$ac_check_lib_save_LIBS
11204 fi
11205 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11206 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11207 if test $ac_cv_lib_dld_dld_link = yes; then
11208   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11209 fi
11210
11211
11212 fi
11213
11214
11215 fi
11216
11217
11218 fi
11219
11220
11221 fi
11222
11223
11224 fi
11225
11226     ;;
11227   esac
11228
11229   if test "x$lt_cv_dlopen" != xno; then
11230     enable_dlopen=yes
11231   else
11232     enable_dlopen=no
11233   fi
11234
11235   case $lt_cv_dlopen in
11236   dlopen)
11237     save_CPPFLAGS="$CPPFLAGS"
11238     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11239
11240     save_LDFLAGS="$LDFLAGS"
11241     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11242
11243     save_LIBS="$LIBS"
11244     LIBS="$lt_cv_dlopen_libs $LIBS"
11245
11246     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11247 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11248 if test "${lt_cv_dlopen_self+set}" = set; then
11249   echo $ECHO_N "(cached) $ECHO_C" >&6
11250 else
11251           if test "$cross_compiling" = yes; then :
11252   lt_cv_dlopen_self=cross
11253 else
11254   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11255   lt_status=$lt_dlunknown
11256   cat > conftest.$ac_ext <<_LT_EOF
11257 #line $LINENO "configure"
11258 #include "confdefs.h"
11259
11260 #if HAVE_DLFCN_H
11261 #include <dlfcn.h>
11262 #endif
11263
11264 #include <stdio.h>
11265
11266 #ifdef RTLD_GLOBAL
11267 #  define LT_DLGLOBAL           RTLD_GLOBAL
11268 #else
11269 #  ifdef DL_GLOBAL
11270 #    define LT_DLGLOBAL         DL_GLOBAL
11271 #  else
11272 #    define LT_DLGLOBAL         0
11273 #  endif
11274 #endif
11275
11276 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11277    find out it does not work in some platform. */
11278 #ifndef LT_DLLAZY_OR_NOW
11279 #  ifdef RTLD_LAZY
11280 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11281 #  else
11282 #    ifdef DL_LAZY
11283 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11284 #    else
11285 #      ifdef RTLD_NOW
11286 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11287 #      else
11288 #        ifdef DL_NOW
11289 #          define LT_DLLAZY_OR_NOW      DL_NOW
11290 #        else
11291 #          define LT_DLLAZY_OR_NOW      0
11292 #        endif
11293 #      endif
11294 #    endif
11295 #  endif
11296 #endif
11297
11298 /* When -fvisbility=hidden is used, assume the code has been annotated
11299    correspondingly for the symbols needed.  */
11300 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11301 void fnord () __attribute__((visibility("default")));
11302 #endif
11303
11304 void fnord () { int i=42; }
11305 int main ()
11306 {
11307   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11308   int status = $lt_dlunknown;
11309
11310   if (self)
11311     {
11312       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11313       else
11314         {
11315           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11316           else puts (dlerror ());
11317         }
11318       /* dlclose (self); */
11319     }
11320   else
11321     puts (dlerror ());
11322
11323   return status;
11324 }
11325 _LT_EOF
11326   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11327   (eval $ac_link) 2>&5
11328   ac_status=$?
11329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11331     (./conftest; exit; ) >&5 2>/dev/null
11332     lt_status=$?
11333     case x$lt_status in
11334       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11335       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11336       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11337     esac
11338   else :
11339     # compilation failed
11340     lt_cv_dlopen_self=no
11341   fi
11342 fi
11343 rm -fr conftest*
11344
11345
11346 fi
11347 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11348 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11349
11350     if test "x$lt_cv_dlopen_self" = xyes; then
11351       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11352       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11353 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11354 if test "${lt_cv_dlopen_self_static+set}" = set; then
11355   echo $ECHO_N "(cached) $ECHO_C" >&6
11356 else
11357           if test "$cross_compiling" = yes; then :
11358   lt_cv_dlopen_self_static=cross
11359 else
11360   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11361   lt_status=$lt_dlunknown
11362   cat > conftest.$ac_ext <<_LT_EOF
11363 #line $LINENO "configure"
11364 #include "confdefs.h"
11365
11366 #if HAVE_DLFCN_H
11367 #include <dlfcn.h>
11368 #endif
11369
11370 #include <stdio.h>
11371
11372 #ifdef RTLD_GLOBAL
11373 #  define LT_DLGLOBAL           RTLD_GLOBAL
11374 #else
11375 #  ifdef DL_GLOBAL
11376 #    define LT_DLGLOBAL         DL_GLOBAL
11377 #  else
11378 #    define LT_DLGLOBAL         0
11379 #  endif
11380 #endif
11381
11382 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11383    find out it does not work in some platform. */
11384 #ifndef LT_DLLAZY_OR_NOW
11385 #  ifdef RTLD_LAZY
11386 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11387 #  else
11388 #    ifdef DL_LAZY
11389 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11390 #    else
11391 #      ifdef RTLD_NOW
11392 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11393 #      else
11394 #        ifdef DL_NOW
11395 #          define LT_DLLAZY_OR_NOW      DL_NOW
11396 #        else
11397 #          define LT_DLLAZY_OR_NOW      0
11398 #        endif
11399 #      endif
11400 #    endif
11401 #  endif
11402 #endif
11403
11404 /* When -fvisbility=hidden is used, assume the code has been annotated
11405    correspondingly for the symbols needed.  */
11406 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11407 void fnord () __attribute__((visibility("default")));
11408 #endif
11409
11410 void fnord () { int i=42; }
11411 int main ()
11412 {
11413   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11414   int status = $lt_dlunknown;
11415
11416   if (self)
11417     {
11418       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11419       else
11420         {
11421           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11422           else puts (dlerror ());
11423         }
11424       /* dlclose (self); */
11425     }
11426   else
11427     puts (dlerror ());
11428
11429   return status;
11430 }
11431 _LT_EOF
11432   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11433   (eval $ac_link) 2>&5
11434   ac_status=$?
11435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11437     (./conftest; exit; ) >&5 2>/dev/null
11438     lt_status=$?
11439     case x$lt_status in
11440       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11441       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11442       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11443     esac
11444   else :
11445     # compilation failed
11446     lt_cv_dlopen_self_static=no
11447   fi
11448 fi
11449 rm -fr conftest*
11450
11451
11452 fi
11453 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11454 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11455     fi
11456
11457     CPPFLAGS="$save_CPPFLAGS"
11458     LDFLAGS="$save_LDFLAGS"
11459     LIBS="$save_LIBS"
11460     ;;
11461   esac
11462
11463   case $lt_cv_dlopen_self in
11464   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11465   *) enable_dlopen_self=unknown ;;
11466   esac
11467
11468   case $lt_cv_dlopen_self_static in
11469   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11470   *) enable_dlopen_self_static=unknown ;;
11471   esac
11472 fi
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490 striplib=
11491 old_striplib=
11492 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11493 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11494 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11495   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11496   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11497   { echo "$as_me:$LINENO: result: yes" >&5
11498 echo "${ECHO_T}yes" >&6; }
11499 else
11500 # FIXME - insert some real tests, host_os isn't really good enough
11501   case $host_os in
11502   darwin*)
11503     if test -n "$STRIP" ; then
11504       striplib="$STRIP -x"
11505       old_striplib="$STRIP -S"
11506       { echo "$as_me:$LINENO: result: yes" >&5
11507 echo "${ECHO_T}yes" >&6; }
11508     else
11509       { echo "$as_me:$LINENO: result: no" >&5
11510 echo "${ECHO_T}no" >&6; }
11511     fi
11512     ;;
11513   *)
11514     { echo "$as_me:$LINENO: result: no" >&5
11515 echo "${ECHO_T}no" >&6; }
11516     ;;
11517   esac
11518 fi
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531   # Report which library types will actually be built
11532   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11533 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11534   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11535 echo "${ECHO_T}$can_build_shared" >&6; }
11536
11537   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11538 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11539   test "$can_build_shared" = "no" && enable_shared=no
11540
11541   # On AIX, shared libraries and static libraries use the same namespace, and
11542   # are all built from PIC.
11543   case $host_os in
11544   aix3*)
11545     test "$enable_shared" = yes && enable_static=no
11546     if test -n "$RANLIB"; then
11547       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11548       postinstall_cmds='$RANLIB $lib'
11549     fi
11550     ;;
11551
11552   aix[4-9]*)
11553     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11554       test "$enable_shared" = yes && enable_static=no
11555     fi
11556     ;;
11557   esac
11558   { echo "$as_me:$LINENO: result: $enable_shared" >&5
11559 echo "${ECHO_T}$enable_shared" >&6; }
11560
11561   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11562 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11563   # Make sure either enable_shared or enable_static is yes.
11564   test "$enable_shared" = yes || enable_static=yes
11565   { echo "$as_me:$LINENO: result: $enable_static" >&5
11566 echo "${ECHO_T}$enable_static" >&6; }
11567
11568
11569
11570
11571 fi
11572 ac_ext=c
11573 ac_cpp='$CPP $CPPFLAGS'
11574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11577
11578 CC="$lt_save_CC"
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592         ac_config_commands="$ac_config_commands libtool"
11593
11594
11595
11596
11597 # Only expand once:
11598
11599
11600
11601 target=$save_target
11602
11603 if test "$enable_static" = yes; then
11604         SASL_STATIC_LIBS=libsasl2.a
11605 else
11606         SASL_STATIC_LIBS=
11607 fi
11608
11609 # Check whether --enable-staticdlopen was given.
11610 if test "${enable_staticdlopen+set}" = set; then
11611   enableval=$enable_staticdlopen; enable_staticdlopen=$enableval
11612 else
11613   enable_staticdlopen=no
11614 fi
11615
11616
11617 if test "$enable_staticdlopen" = yes; then
11618
11619 cat >>confdefs.h <<\_ACEOF
11620 #define TRY_DLOPEN_WHEN_STATIC
11621 _ACEOF
11622
11623 fi
11624
11625 if test "$ac_cv_c_compiler_gnu" = yes; then
11626   CFLAGS="-Wall -W ${CFLAGS}"
11627 fi
11628
11629
11630 # Check whether --with-purecov was given.
11631 if test "${with_purecov+set}" = set; then
11632   withval=$with_purecov;
11633 fi
11634
11635 if test "$with_purecov" = yes; then
11636   for ac_prog in purecov
11637 do
11638   # Extract the first word of "$ac_prog", so it can be a program name with args.
11639 set dummy $ac_prog; ac_word=$2
11640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11642 if test "${ac_cv_prog_PURECOV+set}" = set; then
11643   echo $ECHO_N "(cached) $ECHO_C" >&6
11644 else
11645   if test -n "$PURECOV"; then
11646   ac_cv_prog_PURECOV="$PURECOV" # Let the user override the test.
11647 else
11648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11649 for as_dir in $PATH
11650 do
11651   IFS=$as_save_IFS
11652   test -z "$as_dir" && as_dir=.
11653   for ac_exec_ext in '' $ac_executable_extensions; do
11654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11655     ac_cv_prog_PURECOV="$ac_prog"
11656     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11657     break 2
11658   fi
11659 done
11660 done
11661 IFS=$as_save_IFS
11662
11663 fi
11664 fi
11665 PURECOV=$ac_cv_prog_PURECOV
11666 if test -n "$PURECOV"; then
11667   { echo "$as_me:$LINENO: result: $PURECOV" >&5
11668 echo "${ECHO_T}$PURECOV" >&6; }
11669 else
11670   { echo "$as_me:$LINENO: result: no" >&5
11671 echo "${ECHO_T}no" >&6; }
11672 fi
11673
11674
11675   test -n "$PURECOV" && break
11676 done
11677
11678 fi
11679
11680 # Check whether --with-purify was given.
11681 if test "${with_purify+set}" = set; then
11682   withval=$with_purify;
11683 fi
11684
11685 if test "$with_purify" = yes; then
11686   for ac_prog in purify
11687 do
11688   # Extract the first word of "$ac_prog", so it can be a program name with args.
11689 set dummy $ac_prog; ac_word=$2
11690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11692 if test "${ac_cv_prog_PURIFY+set}" = set; then
11693   echo $ECHO_N "(cached) $ECHO_C" >&6
11694 else
11695   if test -n "$PURIFY"; then
11696   ac_cv_prog_PURIFY="$PURIFY" # Let the user override the test.
11697 else
11698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11699 for as_dir in $PATH
11700 do
11701   IFS=$as_save_IFS
11702   test -z "$as_dir" && as_dir=.
11703   for ac_exec_ext in '' $ac_executable_extensions; do
11704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11705     ac_cv_prog_PURIFY="$ac_prog"
11706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11707     break 2
11708   fi
11709 done
11710 done
11711 IFS=$as_save_IFS
11712
11713 fi
11714 fi
11715 PURIFY=$ac_cv_prog_PURIFY
11716 if test -n "$PURIFY"; then
11717   { echo "$as_me:$LINENO: result: $PURIFY" >&5
11718 echo "${ECHO_T}$PURIFY" >&6; }
11719 else
11720   { echo "$as_me:$LINENO: result: no" >&5
11721 echo "${ECHO_T}no" >&6; }
11722 fi
11723
11724
11725   test -n "$PURIFY" && break
11726 done
11727
11728 fi
11729
11730 # Check whether --enable-java was given.
11731 if test "${enable_java+set}" = set; then
11732   enableval=$enable_java; enable_java=$enableval
11733 else
11734   enable_java=no
11735 fi
11736
11737 if test "$enable_java" = yes; then
11738   # Extract the first word of "javac", so it can be a program name with args.
11739 set dummy javac; ac_word=$2
11740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11742 if test "${ac_cv_path_JAVAC+set}" = set; then
11743   echo $ECHO_N "(cached) $ECHO_C" >&6
11744 else
11745   case $JAVAC in
11746   [\\/]* | ?:[\\/]*)
11747   ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
11748   ;;
11749   *)
11750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11751 for as_dir in $PATH
11752 do
11753   IFS=$as_save_IFS
11754   test -z "$as_dir" && as_dir=.
11755   for ac_exec_ext in '' $ac_executable_extensions; do
11756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11757     ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
11758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11759     break 2
11760   fi
11761 done
11762 done
11763 IFS=$as_save_IFS
11764
11765   test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="no"
11766   ;;
11767 esac
11768 fi
11769 JAVAC=$ac_cv_path_JAVAC
11770 if test -n "$JAVAC"; then
11771   { echo "$as_me:$LINENO: result: $JAVAC" >&5
11772 echo "${ECHO_T}$JAVAC" >&6; }
11773 else
11774   { echo "$as_me:$LINENO: result: no" >&5
11775 echo "${ECHO_T}no" >&6; }
11776 fi
11777
11778
11779   for ac_prog in javah kaffeh
11780 do
11781   # Extract the first word of "$ac_prog", so it can be a program name with args.
11782 set dummy $ac_prog; ac_word=$2
11783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11785 if test "${ac_cv_path_JAVAH+set}" = set; then
11786   echo $ECHO_N "(cached) $ECHO_C" >&6
11787 else
11788   case $JAVAH in
11789   [\\/]* | ?:[\\/]*)
11790   ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.
11791   ;;
11792   *)
11793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11794 for as_dir in $PATH
11795 do
11796   IFS=$as_save_IFS
11797   test -z "$as_dir" && as_dir=.
11798   for ac_exec_ext in '' $ac_executable_extensions; do
11799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11800     ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext"
11801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11802     break 2
11803   fi
11804 done
11805 done
11806 IFS=$as_save_IFS
11807
11808   ;;
11809 esac
11810 fi
11811 JAVAH=$ac_cv_path_JAVAH
11812 if test -n "$JAVAH"; then
11813   { echo "$as_me:$LINENO: result: $JAVAH" >&5
11814 echo "${ECHO_T}$JAVAH" >&6; }
11815 else
11816   { echo "$as_me:$LINENO: result: no" >&5
11817 echo "${ECHO_T}no" >&6; }
11818 fi
11819
11820
11821   test -n "$JAVAH" && break
11822 done
11823 test -n "$JAVAH" || JAVAH="no"
11824
11825   for ac_prog in javadoc
11826 do
11827   # Extract the first word of "$ac_prog", so it can be a program name with args.
11828 set dummy $ac_prog; ac_word=$2
11829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11831 if test "${ac_cv_prog_JAVADOC+set}" = set; then
11832   echo $ECHO_N "(cached) $ECHO_C" >&6
11833 else
11834   if test -n "$JAVADOC"; then
11835   ac_cv_prog_JAVADOC="$JAVADOC" # Let the user override the test.
11836 else
11837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11838 for as_dir in $PATH
11839 do
11840   IFS=$as_save_IFS
11841   test -z "$as_dir" && as_dir=.
11842   for ac_exec_ext in '' $ac_executable_extensions; do
11843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11844     ac_cv_prog_JAVADOC="$ac_prog"
11845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11846     break 2
11847   fi
11848 done
11849 done
11850 IFS=$as_save_IFS
11851
11852 fi
11853 fi
11854 JAVADOC=$ac_cv_prog_JAVADOC
11855 if test -n "$JAVADOC"; then
11856   { echo "$as_me:$LINENO: result: $JAVADOC" >&5
11857 echo "${ECHO_T}$JAVADOC" >&6; }
11858 else
11859   { echo "$as_me:$LINENO: result: no" >&5
11860 echo "${ECHO_T}no" >&6; }
11861 fi
11862
11863
11864   test -n "$JAVADOC" && break
11865 done
11866 test -n "$JAVADOC" || JAVADOC=":"
11867
11868   if test "$JAVAC" = "no" -o "$JAVAH" = "no"; then
11869     { echo "$as_me:$LINENO: WARNING: Disabling Java support" >&5
11870 echo "$as_me: WARNING: Disabling Java support" >&2;}
11871     enable_java=no
11872   fi
11873 else
11874 # Make distcheck work
11875   JAVAC="true"
11876   JAVAH="true"
11877   JAVADOC="true"
11878 fi
11879  if test "$enable_java" = yes; then
11880   JAVA_TRUE=
11881   JAVA_FALSE='#'
11882 else
11883   JAVA_TRUE='#'
11884   JAVA_FALSE=
11885 fi
11886
11887
11888 if test "$enable_java" = yes; then
11889   { echo "$as_me:$LINENO: checking JNI cpp flags" >&5
11890 echo $ECHO_N "checking JNI cpp flags... $ECHO_C" >&6; }
11891   if test "${sasl_cv_java_includes+set}" = set; then
11892   echo $ECHO_N "(cached) $ECHO_C" >&6
11893 else
11894
11895   if test `echo $JAVAH | sed 's,.*/,,'` = "kaffeh"; then
11896     sasl_cv_java_includes=-I`echo $JAVAH | sed -e 's,/bin.*,/include/kaffe,'`
11897   else
11898     java_base=`echo $JAVAC | sed 's,/bin.*,'','`
11899
11900
11901 # Check whether --with-javabase was given.
11902 if test "${with_javabase+set}" = set; then
11903   withval=$with_javabase; java_base=$withval
11904 fi
11905
11906
11907
11908     sasl_cv_java_includes=''
11909     for dir in `find ${java_base}/include -follow -type d -print | grep -v green_threads`; do
11910       sasl_cv_java_includes="${sasl_cv_java_includes} -I$dir"
11911     done
11912   fi
11913
11914   sasl_cv_java_includes="${sasl_cv_java_includes} -I$javapath/include"
11915 fi
11916
11917
11918   JAVA_INCLUDES=$sasl_cv_java_includes
11919
11920   { echo "$as_me:$LINENO: result: ok" >&5
11921 echo "${ECHO_T}ok" >&6; }
11922
11923   JAVAROOT=".."
11924
11925   JAVAC=`echo "$JAVAC" | sed 's,.*/,,'`
11926   JAVAH=`echo "$JAVAH" | sed 's,.*/,,'`
11927 fi
11928
11929  if test "$enable_sample" = yes; then
11930   SAMPLE_TRUE=
11931   SAMPLE_FALSE='#'
11932 else
11933   SAMPLE_TRUE='#'
11934   SAMPLE_FALSE=
11935 fi
11936
11937
11938
11939         save_LIBS="$LIBS"
11940         LIB_SOCKET=""
11941         { echo "$as_me:$LINENO: checking for connect" >&5
11942 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
11943 if test "${ac_cv_func_connect+set}" = set; then
11944   echo $ECHO_N "(cached) $ECHO_C" >&6
11945 else
11946   cat >conftest.$ac_ext <<_ACEOF
11947 /* confdefs.h.  */
11948 _ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h.  */
11952 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
11953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11954 #define connect innocuous_connect
11955
11956 /* System header to define __stub macros and hopefully few prototypes,
11957     which can conflict with char connect (); below.
11958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11959     <limits.h> exists even on freestanding compilers.  */
11960
11961 #ifdef __STDC__
11962 # include <limits.h>
11963 #else
11964 # include <assert.h>
11965 #endif
11966
11967 #undef connect
11968
11969 /* Override any GCC internal prototype to avoid an error.
11970    Use char because int might match the return type of a GCC
11971    builtin and then its argument prototype would still apply.  */
11972 #ifdef __cplusplus
11973 extern "C"
11974 #endif
11975 char connect ();
11976 /* The GNU C library defines this for functions which it implements
11977     to always fail with ENOSYS.  Some functions are actually named
11978     something starting with __ and the normal name is an alias.  */
11979 #if defined __stub_connect || defined __stub___connect
11980 choke me
11981 #endif
11982
11983 int
11984 main ()
11985 {
11986 return connect ();
11987   ;
11988   return 0;
11989 }
11990 _ACEOF
11991 rm -f conftest.$ac_objext conftest$ac_exeext
11992 if { (ac_try="$ac_link"
11993 case "(($ac_try" in
11994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995   *) ac_try_echo=$ac_try;;
11996 esac
11997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11998   (eval "$ac_link") 2>conftest.er1
11999   ac_status=$?
12000   grep -v '^ *+' conftest.er1 >conftest.err
12001   rm -f conftest.er1
12002   cat conftest.err >&5
12003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004   (exit $ac_status); } && {
12005          test -z "$ac_c_werror_flag" ||
12006          test ! -s conftest.err
12007        } && test -s conftest$ac_exeext &&
12008        $as_test_x conftest$ac_exeext; then
12009   ac_cv_func_connect=yes
12010 else
12011   echo "$as_me: failed program was:" >&5
12012 sed 's/^/| /' conftest.$ac_ext >&5
12013
12014         ac_cv_func_connect=no
12015 fi
12016
12017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12018       conftest$ac_exeext conftest.$ac_ext
12019 fi
12020 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12021 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
12022 if test $ac_cv_func_connect = yes; then
12023   :
12024 else
12025   { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
12026 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
12027 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
12028   echo $ECHO_N "(cached) $ECHO_C" >&6
12029 else
12030   ac_check_lib_save_LIBS=$LIBS
12031 LIBS="-lnsl  $LIBS"
12032 cat >conftest.$ac_ext <<_ACEOF
12033 /* confdefs.h.  */
12034 _ACEOF
12035 cat confdefs.h >>conftest.$ac_ext
12036 cat >>conftest.$ac_ext <<_ACEOF
12037 /* end confdefs.h.  */
12038
12039 /* Override any GCC internal prototype to avoid an error.
12040    Use char because int might match the return type of a GCC
12041    builtin and then its argument prototype would still apply.  */
12042 #ifdef __cplusplus
12043 extern "C"
12044 #endif
12045 char gethostbyname ();
12046 int
12047 main ()
12048 {
12049 return gethostbyname ();
12050   ;
12051   return 0;
12052 }
12053 _ACEOF
12054 rm -f conftest.$ac_objext conftest$ac_exeext
12055 if { (ac_try="$ac_link"
12056 case "(($ac_try" in
12057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12058   *) ac_try_echo=$ac_try;;
12059 esac
12060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12061   (eval "$ac_link") 2>conftest.er1
12062   ac_status=$?
12063   grep -v '^ *+' conftest.er1 >conftest.err
12064   rm -f conftest.er1
12065   cat conftest.err >&5
12066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067   (exit $ac_status); } && {
12068          test -z "$ac_c_werror_flag" ||
12069          test ! -s conftest.err
12070        } && test -s conftest$ac_exeext &&
12071        $as_test_x conftest$ac_exeext; then
12072   ac_cv_lib_nsl_gethostbyname=yes
12073 else
12074   echo "$as_me: failed program was:" >&5
12075 sed 's/^/| /' conftest.$ac_ext >&5
12076
12077         ac_cv_lib_nsl_gethostbyname=no
12078 fi
12079
12080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12081       conftest$ac_exeext conftest.$ac_ext
12082 LIBS=$ac_check_lib_save_LIBS
12083 fi
12084 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
12085 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
12086 if test $ac_cv_lib_nsl_gethostbyname = yes; then
12087   LIB_SOCKET="-lnsl $LIB_SOCKET"
12088 fi
12089
12090                 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
12091 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
12092 if test "${ac_cv_lib_socket_connect+set}" = set; then
12093   echo $ECHO_N "(cached) $ECHO_C" >&6
12094 else
12095   ac_check_lib_save_LIBS=$LIBS
12096 LIBS="-lsocket  $LIBS"
12097 cat >conftest.$ac_ext <<_ACEOF
12098 /* confdefs.h.  */
12099 _ACEOF
12100 cat confdefs.h >>conftest.$ac_ext
12101 cat >>conftest.$ac_ext <<_ACEOF
12102 /* end confdefs.h.  */
12103
12104 /* Override any GCC internal prototype to avoid an error.
12105    Use char because int might match the return type of a GCC
12106    builtin and then its argument prototype would still apply.  */
12107 #ifdef __cplusplus
12108 extern "C"
12109 #endif
12110 char connect ();
12111 int
12112 main ()
12113 {
12114 return connect ();
12115   ;
12116   return 0;
12117 }
12118 _ACEOF
12119 rm -f conftest.$ac_objext conftest$ac_exeext
12120 if { (ac_try="$ac_link"
12121 case "(($ac_try" in
12122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12123   *) ac_try_echo=$ac_try;;
12124 esac
12125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12126   (eval "$ac_link") 2>conftest.er1
12127   ac_status=$?
12128   grep -v '^ *+' conftest.er1 >conftest.err
12129   rm -f conftest.er1
12130   cat conftest.err >&5
12131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132   (exit $ac_status); } && {
12133          test -z "$ac_c_werror_flag" ||
12134          test ! -s conftest.err
12135        } && test -s conftest$ac_exeext &&
12136        $as_test_x conftest$ac_exeext; then
12137   ac_cv_lib_socket_connect=yes
12138 else
12139   echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12141
12142         ac_cv_lib_socket_connect=no
12143 fi
12144
12145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12146       conftest$ac_exeext conftest.$ac_ext
12147 LIBS=$ac_check_lib_save_LIBS
12148 fi
12149 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
12150 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
12151 if test $ac_cv_lib_socket_connect = yes; then
12152   LIB_SOCKET="-lsocket $LIB_SOCKET"
12153 fi
12154
12155
12156 fi
12157
12158         LIBS="$LIB_SOCKET $save_LIBS"
12159         { echo "$as_me:$LINENO: checking for res_search" >&5
12160 echo $ECHO_N "checking for res_search... $ECHO_C" >&6; }
12161 if test "${ac_cv_func_res_search+set}" = set; then
12162   echo $ECHO_N "(cached) $ECHO_C" >&6
12163 else
12164   cat >conftest.$ac_ext <<_ACEOF
12165 /* confdefs.h.  */
12166 _ACEOF
12167 cat confdefs.h >>conftest.$ac_ext
12168 cat >>conftest.$ac_ext <<_ACEOF
12169 /* end confdefs.h.  */
12170 /* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
12171    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12172 #define res_search innocuous_res_search
12173
12174 /* System header to define __stub macros and hopefully few prototypes,
12175     which can conflict with char res_search (); below.
12176     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12177     <limits.h> exists even on freestanding compilers.  */
12178
12179 #ifdef __STDC__
12180 # include <limits.h>
12181 #else
12182 # include <assert.h>
12183 #endif
12184
12185 #undef res_search
12186
12187 /* Override any GCC internal prototype to avoid an error.
12188    Use char because int might match the return type of a GCC
12189    builtin and then its argument prototype would still apply.  */
12190 #ifdef __cplusplus
12191 extern "C"
12192 #endif
12193 char res_search ();
12194 /* The GNU C library defines this for functions which it implements
12195     to always fail with ENOSYS.  Some functions are actually named
12196     something starting with __ and the normal name is an alias.  */
12197 #if defined __stub_res_search || defined __stub___res_search
12198 choke me
12199 #endif
12200
12201 int
12202 main ()
12203 {
12204 return res_search ();
12205   ;
12206   return 0;
12207 }
12208 _ACEOF
12209 rm -f conftest.$ac_objext conftest$ac_exeext
12210 if { (ac_try="$ac_link"
12211 case "(($ac_try" in
12212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213   *) ac_try_echo=$ac_try;;
12214 esac
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216   (eval "$ac_link") 2>conftest.er1
12217   ac_status=$?
12218   grep -v '^ *+' conftest.er1 >conftest.err
12219   rm -f conftest.er1
12220   cat conftest.err >&5
12221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222   (exit $ac_status); } && {
12223          test -z "$ac_c_werror_flag" ||
12224          test ! -s conftest.err
12225        } && test -s conftest$ac_exeext &&
12226        $as_test_x conftest$ac_exeext; then
12227   ac_cv_func_res_search=yes
12228 else
12229   echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12231
12232         ac_cv_func_res_search=no
12233 fi
12234
12235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12236       conftest$ac_exeext conftest.$ac_ext
12237 fi
12238 { echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
12239 echo "${ECHO_T}$ac_cv_func_res_search" >&6; }
12240 if test $ac_cv_func_res_search = yes; then
12241   :
12242 else
12243   LIBS="-lresolv $LIB_SOCKET $save_LIBS"
12244                 cat >conftest.$ac_ext <<_ACEOF
12245 /* confdefs.h.  */
12246 _ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h.  */
12250
12251 #include <sys/types.h>
12252 #include <netinet/in.h>
12253 #include <arpa/nameser.h>
12254 #ifdef HAVE_ARPA_NAMESER_COMPAT_H
12255 #include <arpa/nameser_compat.h>
12256 #endif
12257 #include <resolv.h>
12258 int
12259 main ()
12260 {
12261
12262 const char host[12]="openafs.org";
12263 u_char ans[1024];
12264 res_search( host, C_IN, T_MX, (u_char *)&ans, sizeof(ans));
12265 return 0;
12266
12267   ;
12268   return 0;
12269 }
12270 _ACEOF
12271 rm -f conftest.$ac_objext conftest$ac_exeext
12272 if { (ac_try="$ac_link"
12273 case "(($ac_try" in
12274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12275   *) ac_try_echo=$ac_try;;
12276 esac
12277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12278   (eval "$ac_link") 2>conftest.er1
12279   ac_status=$?
12280   grep -v '^ *+' conftest.er1 >conftest.err
12281   rm -f conftest.er1
12282   cat conftest.err >&5
12283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284   (exit $ac_status); } && {
12285          test -z "$ac_c_werror_flag" ||
12286          test ! -s conftest.err
12287        } && test -s conftest$ac_exeext &&
12288        $as_test_x conftest$ac_exeext; then
12289   LIB_SOCKET="-lresolv $LIB_SOCKET"
12290 else
12291   echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.$ac_ext >&5
12293
12294
12295 fi
12296
12297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12298       conftest$ac_exeext conftest.$ac_ext
12299
12300 fi
12301
12302         LIBS="$LIB_SOCKET $save_LIBS"
12303
12304
12305 for ac_func in dn_expand dns_lookup
12306 do
12307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12308 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12310 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12311   echo $ECHO_N "(cached) $ECHO_C" >&6
12312 else
12313   cat >conftest.$ac_ext <<_ACEOF
12314 /* confdefs.h.  */
12315 _ACEOF
12316 cat confdefs.h >>conftest.$ac_ext
12317 cat >>conftest.$ac_ext <<_ACEOF
12318 /* end confdefs.h.  */
12319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12320    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12321 #define $ac_func innocuous_$ac_func
12322
12323 /* System header to define __stub macros and hopefully few prototypes,
12324     which can conflict with char $ac_func (); below.
12325     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12326     <limits.h> exists even on freestanding compilers.  */
12327
12328 #ifdef __STDC__
12329 # include <limits.h>
12330 #else
12331 # include <assert.h>
12332 #endif
12333
12334 #undef $ac_func
12335
12336 /* Override any GCC internal prototype to avoid an error.
12337    Use char because int might match the return type of a GCC
12338    builtin and then its argument prototype would still apply.  */
12339 #ifdef __cplusplus
12340 extern "C"
12341 #endif
12342 char $ac_func ();
12343 /* The GNU C library defines this for functions which it implements
12344     to always fail with ENOSYS.  Some functions are actually named
12345     something starting with __ and the normal name is an alias.  */
12346 #if defined __stub_$ac_func || defined __stub___$ac_func
12347 choke me
12348 #endif
12349
12350 int
12351 main ()
12352 {
12353 return $ac_func ();
12354   ;
12355   return 0;
12356 }
12357 _ACEOF
12358 rm -f conftest.$ac_objext conftest$ac_exeext
12359 if { (ac_try="$ac_link"
12360 case "(($ac_try" in
12361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12362   *) ac_try_echo=$ac_try;;
12363 esac
12364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12365   (eval "$ac_link") 2>conftest.er1
12366   ac_status=$?
12367   grep -v '^ *+' conftest.er1 >conftest.err
12368   rm -f conftest.er1
12369   cat conftest.err >&5
12370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371   (exit $ac_status); } && {
12372          test -z "$ac_c_werror_flag" ||
12373          test ! -s conftest.err
12374        } && test -s conftest$ac_exeext &&
12375        $as_test_x conftest$ac_exeext; then
12376   eval "$as_ac_var=yes"
12377 else
12378   echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12380
12381         eval "$as_ac_var=no"
12382 fi
12383
12384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12385       conftest$ac_exeext conftest.$ac_ext
12386 fi
12387 ac_res=`eval echo '${'$as_ac_var'}'`
12388                { echo "$as_me:$LINENO: result: $ac_res" >&5
12389 echo "${ECHO_T}$ac_res" >&6; }
12390 if test `eval echo '${'$as_ac_var'}'` = yes; then
12391   cat >>confdefs.h <<_ACEOF
12392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12393 _ACEOF
12394
12395 fi
12396 done
12397
12398         LIBS="$save_LIBS"
12399
12400
12401
12402
12403
12404 # Check whether --with-dbpath was given.
12405 if test "${with_dbpath+set}" = set; then
12406   withval=$with_dbpath; dbpath=$withval
12407 else
12408   dbpath=/etc/sasldb2
12409 fi
12410
12411 { echo "$as_me:$LINENO: checking DB path to use" >&5
12412 echo $ECHO_N "checking DB path to use... $ECHO_C" >&6; }
12413 { echo "$as_me:$LINENO: result: $dbpath" >&5
12414 echo "${ECHO_T}$dbpath" >&6; }
12415
12416 cat >>confdefs.h <<_ACEOF
12417 #define SASL_DB_PATH "$dbpath"
12418 _ACEOF
12419
12420
12421 cmu_save_LIBS="$LIBS"
12422
12423 # Check whether --with-dblib was given.
12424 if test "${with_dblib+set}" = set; then
12425   withval=$with_dblib; dblib=$withval
12426 else
12427   dblib=auto_detect
12428 fi
12429
12430
12431
12432
12433 # Check whether --with-bdb-libdir was given.
12434 if test "${with_bdb_libdir+set}" = set; then
12435   withval=$with_bdb_libdir; with_bdb_lib=$withval
12436 else
12437    test "${with_bdb_lib+set}" = set || with_bdb_lib=none
12438 fi
12439
12440
12441 # Check whether --with-bdb-incdir was given.
12442 if test "${with_bdb_incdir+set}" = set; then
12443   withval=$with_bdb_incdir; with_bdb_inc=$withval
12444 else
12445    test "${with_bdb_inc+set}" = set || with_bdb_inc=none
12446 fi
12447
12448
12449
12450 SASL_DB_LIB=""
12451
12452 case "$dblib" in
12453   berkeley)
12454
12455
12456
12457         cmu_save_CPPFLAGS=$CPPFLAGS
12458
12459         if test -d $with_bdb_inc; then
12460             CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
12461             BDB_INCADD="-I$with_bdb_inc"
12462         else
12463             BDB_INCADD=""
12464         fi
12465
12466                         if test "${ac_cv_header_db_h+set}" = set; then
12467   { echo "$as_me:$LINENO: checking for db.h" >&5
12468 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
12469 if test "${ac_cv_header_db_h+set}" = set; then
12470   echo $ECHO_N "(cached) $ECHO_C" >&6
12471 fi
12472 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
12473 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
12474 else
12475   # Is the header compilable?
12476 { echo "$as_me:$LINENO: checking db.h usability" >&5
12477 echo $ECHO_N "checking db.h usability... $ECHO_C" >&6; }
12478 cat >conftest.$ac_ext <<_ACEOF
12479 /* confdefs.h.  */
12480 _ACEOF
12481 cat confdefs.h >>conftest.$ac_ext
12482 cat >>conftest.$ac_ext <<_ACEOF
12483 /* end confdefs.h.  */
12484 $ac_includes_default
12485 #include <db.h>
12486 _ACEOF
12487 rm -f conftest.$ac_objext
12488 if { (ac_try="$ac_compile"
12489 case "(($ac_try" in
12490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12491   *) ac_try_echo=$ac_try;;
12492 esac
12493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12494   (eval "$ac_compile") 2>conftest.er1
12495   ac_status=$?
12496   grep -v '^ *+' conftest.er1 >conftest.err
12497   rm -f conftest.er1
12498   cat conftest.err >&5
12499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500   (exit $ac_status); } && {
12501          test -z "$ac_c_werror_flag" ||
12502          test ! -s conftest.err
12503        } && test -s conftest.$ac_objext; then
12504   ac_header_compiler=yes
12505 else
12506   echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.$ac_ext >&5
12508
12509         ac_header_compiler=no
12510 fi
12511
12512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12513 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12514 echo "${ECHO_T}$ac_header_compiler" >&6; }
12515
12516 # Is the header present?
12517 { echo "$as_me:$LINENO: checking db.h presence" >&5
12518 echo $ECHO_N "checking db.h presence... $ECHO_C" >&6; }
12519 cat >conftest.$ac_ext <<_ACEOF
12520 /* confdefs.h.  */
12521 _ACEOF
12522 cat confdefs.h >>conftest.$ac_ext
12523 cat >>conftest.$ac_ext <<_ACEOF
12524 /* end confdefs.h.  */
12525 #include <db.h>
12526 _ACEOF
12527 if { (ac_try="$ac_cpp conftest.$ac_ext"
12528 case "(($ac_try" in
12529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530   *) ac_try_echo=$ac_try;;
12531 esac
12532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12534   ac_status=$?
12535   grep -v '^ *+' conftest.er1 >conftest.err
12536   rm -f conftest.er1
12537   cat conftest.err >&5
12538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539   (exit $ac_status); } >/dev/null && {
12540          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12541          test ! -s conftest.err
12542        }; then
12543   ac_header_preproc=yes
12544 else
12545   echo "$as_me: failed program was:" >&5
12546 sed 's/^/| /' conftest.$ac_ext >&5
12547
12548   ac_header_preproc=no
12549 fi
12550
12551 rm -f conftest.err conftest.$ac_ext
12552 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12553 echo "${ECHO_T}$ac_header_preproc" >&6; }
12554
12555 # So?  What about this header?
12556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12557   yes:no: )
12558     { echo "$as_me:$LINENO: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&5
12559 echo "$as_me: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12560     { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the compiler's result" >&5
12561 echo "$as_me: WARNING: db.h: proceeding with the compiler's result" >&2;}
12562     ac_header_preproc=yes
12563     ;;
12564   no:yes:* )
12565     { echo "$as_me:$LINENO: WARNING: db.h: present but cannot be compiled" >&5
12566 echo "$as_me: WARNING: db.h: present but cannot be compiled" >&2;}
12567     { echo "$as_me:$LINENO: WARNING: db.h:     check for missing prerequisite headers?" >&5
12568 echo "$as_me: WARNING: db.h:     check for missing prerequisite headers?" >&2;}
12569     { echo "$as_me:$LINENO: WARNING: db.h: see the Autoconf documentation" >&5
12570 echo "$as_me: WARNING: db.h: see the Autoconf documentation" >&2;}
12571     { echo "$as_me:$LINENO: WARNING: db.h:     section \"Present But Cannot Be Compiled\"" >&5
12572 echo "$as_me: WARNING: db.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12573     { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5
12574 echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;}
12575     { echo "$as_me:$LINENO: WARNING: db.h: in the future, the compiler will take precedence" >&5
12576 echo "$as_me: WARNING: db.h: in the future, the compiler will take precedence" >&2;}
12577
12578     ;;
12579 esac
12580 { echo "$as_me:$LINENO: checking for db.h" >&5
12581 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
12582 if test "${ac_cv_header_db_h+set}" = set; then
12583   echo $ECHO_N "(cached) $ECHO_C" >&6
12584 else
12585   ac_cv_header_db_h=$ac_header_preproc
12586 fi
12587 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
12588 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
12589
12590 fi
12591 if test $ac_cv_header_db_h = yes; then
12592
12593         BDB_SAVE_LDFLAGS=$LDFLAGS
12594
12595         if test -d $with_bdb_lib; then
12596
12597   # this is CMU ADD LIBPATH TO
12598   if test "$andrew_runpath_switch" = "none" ; then
12599         LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
12600   else
12601         LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
12602   fi
12603
12604
12605   # this is CMU ADD LIBPATH TO
12606   if test "$andrew_runpath_switch" = "none" ; then
12607         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
12608   else
12609         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
12610   fi
12611
12612         else
12613             BDB_LIBADD=""
12614         fi
12615
12616         saved_LIBS=$LIBS
12617         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
12618           do
12619             LIBS="$saved_LIBS -l$dbname"
12620             cat >conftest.$ac_ext <<_ACEOF
12621 /* confdefs.h.  */
12622 _ACEOF
12623 cat confdefs.h >>conftest.$ac_ext
12624 cat >>conftest.$ac_ext <<_ACEOF
12625 /* end confdefs.h.  */
12626 #include <db.h>
12627 int
12628 main ()
12629 {
12630 db_create(NULL, NULL, 0);
12631   ;
12632   return 0;
12633 }
12634 _ACEOF
12635 rm -f conftest.$ac_objext conftest$ac_exeext
12636 if { (ac_try="$ac_link"
12637 case "(($ac_try" in
12638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639   *) ac_try_echo=$ac_try;;
12640 esac
12641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642   (eval "$ac_link") 2>conftest.er1
12643   ac_status=$?
12644   grep -v '^ *+' conftest.er1 >conftest.err
12645   rm -f conftest.er1
12646   cat conftest.err >&5
12647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648   (exit $ac_status); } && {
12649          test -z "$ac_c_werror_flag" ||
12650          test ! -s conftest.err
12651        } && test -s conftest$ac_exeext &&
12652        $as_test_x conftest$ac_exeext; then
12653   BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
12654 else
12655   echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.$ac_ext >&5
12657
12658         dblib="no"
12659 fi
12660
12661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12662       conftest$ac_exeext conftest.$ac_ext
12663             if test "$dblib" = "berkeley"; then break; fi
12664           done
12665         if test "$dblib" = "no"; then
12666             LIBS="$saved_LIBS -ldb"
12667             cat >conftest.$ac_ext <<_ACEOF
12668 /* confdefs.h.  */
12669 _ACEOF
12670 cat confdefs.h >>conftest.$ac_ext
12671 cat >>conftest.$ac_ext <<_ACEOF
12672 /* end confdefs.h.  */
12673 #include <db.h>
12674 int
12675 main ()
12676 {
12677 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
12678   ;
12679   return 0;
12680 }
12681 _ACEOF
12682 rm -f conftest.$ac_objext conftest$ac_exeext
12683 if { (ac_try="$ac_link"
12684 case "(($ac_try" in
12685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12686   *) ac_try_echo=$ac_try;;
12687 esac
12688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12689   (eval "$ac_link") 2>conftest.er1
12690   ac_status=$?
12691   grep -v '^ *+' conftest.er1 >conftest.err
12692   rm -f conftest.er1
12693   cat conftest.err >&5
12694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695   (exit $ac_status); } && {
12696          test -z "$ac_c_werror_flag" ||
12697          test ! -s conftest.err
12698        } && test -s conftest$ac_exeext &&
12699        $as_test_x conftest$ac_exeext; then
12700   BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
12701 else
12702   echo "$as_me: failed program was:" >&5
12703 sed 's/^/| /' conftest.$ac_ext >&5
12704
12705         dblib="no"
12706 fi
12707
12708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12709       conftest$ac_exeext conftest.$ac_ext
12710         fi
12711         LIBS=$saved_LIBS
12712
12713         LDFLAGS=$BDB_SAVE_LDFLAGS
12714
12715 else
12716   dblib="no"
12717 fi
12718
12719
12720
12721         CPPFLAGS=$cmu_save_CPPFLAGS
12722
12723         CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
12724         SASL_DB_INC=$BDB_INCADD
12725         SASL_DB_LIB="${BDB_LIBADD}"
12726         ;;
12727   gdbm)
12728
12729 # Check whether --with-gdbm was given.
12730 if test "${with_gdbm+set}" = set; then
12731   withval=$with_gdbm; with_gdbm="${withval}"
12732 fi
12733
12734
12735         case "$with_gdbm" in
12736            ""|yes)
12737                if test "${ac_cv_header_gdbm_h+set}" = set; then
12738   { echo "$as_me:$LINENO: checking for gdbm.h" >&5
12739 echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6; }
12740 if test "${ac_cv_header_gdbm_h+set}" = set; then
12741   echo $ECHO_N "(cached) $ECHO_C" >&6
12742 fi
12743 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
12744 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
12745 else
12746   # Is the header compilable?
12747 { echo "$as_me:$LINENO: checking gdbm.h usability" >&5
12748 echo $ECHO_N "checking gdbm.h usability... $ECHO_C" >&6; }
12749 cat >conftest.$ac_ext <<_ACEOF
12750 /* confdefs.h.  */
12751 _ACEOF
12752 cat confdefs.h >>conftest.$ac_ext
12753 cat >>conftest.$ac_ext <<_ACEOF
12754 /* end confdefs.h.  */
12755 $ac_includes_default
12756 #include <gdbm.h>
12757 _ACEOF
12758 rm -f conftest.$ac_objext
12759 if { (ac_try="$ac_compile"
12760 case "(($ac_try" in
12761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12762   *) ac_try_echo=$ac_try;;
12763 esac
12764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12765   (eval "$ac_compile") 2>conftest.er1
12766   ac_status=$?
12767   grep -v '^ *+' conftest.er1 >conftest.err
12768   rm -f conftest.er1
12769   cat conftest.err >&5
12770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771   (exit $ac_status); } && {
12772          test -z "$ac_c_werror_flag" ||
12773          test ! -s conftest.err
12774        } && test -s conftest.$ac_objext; then
12775   ac_header_compiler=yes
12776 else
12777   echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12779
12780         ac_header_compiler=no
12781 fi
12782
12783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12784 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12785 echo "${ECHO_T}$ac_header_compiler" >&6; }
12786
12787 # Is the header present?
12788 { echo "$as_me:$LINENO: checking gdbm.h presence" >&5
12789 echo $ECHO_N "checking gdbm.h presence... $ECHO_C" >&6; }
12790 cat >conftest.$ac_ext <<_ACEOF
12791 /* confdefs.h.  */
12792 _ACEOF
12793 cat confdefs.h >>conftest.$ac_ext
12794 cat >>conftest.$ac_ext <<_ACEOF
12795 /* end confdefs.h.  */
12796 #include <gdbm.h>
12797 _ACEOF
12798 if { (ac_try="$ac_cpp conftest.$ac_ext"
12799 case "(($ac_try" in
12800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801   *) ac_try_echo=$ac_try;;
12802 esac
12803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12804   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12805   ac_status=$?
12806   grep -v '^ *+' conftest.er1 >conftest.err
12807   rm -f conftest.er1
12808   cat conftest.err >&5
12809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810   (exit $ac_status); } >/dev/null && {
12811          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12812          test ! -s conftest.err
12813        }; then
12814   ac_header_preproc=yes
12815 else
12816   echo "$as_me: failed program was:" >&5
12817 sed 's/^/| /' conftest.$ac_ext >&5
12818
12819   ac_header_preproc=no
12820 fi
12821
12822 rm -f conftest.err conftest.$ac_ext
12823 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12824 echo "${ECHO_T}$ac_header_preproc" >&6; }
12825
12826 # So?  What about this header?
12827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12828   yes:no: )
12829     { echo "$as_me:$LINENO: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12830 echo "$as_me: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12831     { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the compiler's result" >&5
12832 echo "$as_me: WARNING: gdbm.h: proceeding with the compiler's result" >&2;}
12833     ac_header_preproc=yes
12834     ;;
12835   no:yes:* )
12836     { echo "$as_me:$LINENO: WARNING: gdbm.h: present but cannot be compiled" >&5
12837 echo "$as_me: WARNING: gdbm.h: present but cannot be compiled" >&2;}
12838     { echo "$as_me:$LINENO: WARNING: gdbm.h:     check for missing prerequisite headers?" >&5
12839 echo "$as_me: WARNING: gdbm.h:     check for missing prerequisite headers?" >&2;}
12840     { echo "$as_me:$LINENO: WARNING: gdbm.h: see the Autoconf documentation" >&5
12841 echo "$as_me: WARNING: gdbm.h: see the Autoconf documentation" >&2;}
12842     { echo "$as_me:$LINENO: WARNING: gdbm.h:     section \"Present But Cannot Be Compiled\"" >&5
12843 echo "$as_me: WARNING: gdbm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12844     { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5
12845 echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;}
12846     { echo "$as_me:$LINENO: WARNING: gdbm.h: in the future, the compiler will take precedence" >&5
12847 echo "$as_me: WARNING: gdbm.h: in the future, the compiler will take precedence" >&2;}
12848
12849     ;;
12850 esac
12851 { echo "$as_me:$LINENO: checking for gdbm.h" >&5
12852 echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6; }
12853 if test "${ac_cv_header_gdbm_h+set}" = set; then
12854   echo $ECHO_N "(cached) $ECHO_C" >&6
12855 else
12856   ac_cv_header_gdbm_h=$ac_header_preproc
12857 fi
12858 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
12859 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
12860
12861 fi
12862 if test $ac_cv_header_gdbm_h = yes; then
12863
12864                         { echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
12865 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6; }
12866 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
12867   echo $ECHO_N "(cached) $ECHO_C" >&6
12868 else
12869   ac_check_lib_save_LIBS=$LIBS
12870 LIBS="-lgdbm  $LIBS"
12871 cat >conftest.$ac_ext <<_ACEOF
12872 /* confdefs.h.  */
12873 _ACEOF
12874 cat confdefs.h >>conftest.$ac_ext
12875 cat >>conftest.$ac_ext <<_ACEOF
12876 /* end confdefs.h.  */
12877
12878 /* Override any GCC internal prototype to avoid an error.
12879    Use char because int might match the return type of a GCC
12880    builtin and then its argument prototype would still apply.  */
12881 #ifdef __cplusplus
12882 extern "C"
12883 #endif
12884 char gdbm_open ();
12885 int
12886 main ()
12887 {
12888 return gdbm_open ();
12889   ;
12890   return 0;
12891 }
12892 _ACEOF
12893 rm -f conftest.$ac_objext conftest$ac_exeext
12894 if { (ac_try="$ac_link"
12895 case "(($ac_try" in
12896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897   *) ac_try_echo=$ac_try;;
12898 esac
12899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900   (eval "$ac_link") 2>conftest.er1
12901   ac_status=$?
12902   grep -v '^ *+' conftest.er1 >conftest.err
12903   rm -f conftest.er1
12904   cat conftest.err >&5
12905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906   (exit $ac_status); } && {
12907          test -z "$ac_c_werror_flag" ||
12908          test ! -s conftest.err
12909        } && test -s conftest$ac_exeext &&
12910        $as_test_x conftest$ac_exeext; then
12911   ac_cv_lib_gdbm_gdbm_open=yes
12912 else
12913   echo "$as_me: failed program was:" >&5
12914 sed 's/^/| /' conftest.$ac_ext >&5
12915
12916         ac_cv_lib_gdbm_gdbm_open=no
12917 fi
12918
12919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12920       conftest$ac_exeext conftest.$ac_ext
12921 LIBS=$ac_check_lib_save_LIBS
12922 fi
12923 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
12924 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6; }
12925 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
12926   SASL_DB_LIB="-lgdbm"
12927 else
12928   dblib="no"
12929 fi
12930
12931 else
12932   dblib="no"
12933 fi
12934
12935
12936                ;;
12937            *)
12938                if test -d $with_gdbm; then
12939                  CPPFLAGS="${CPPFLAGS} -I${with_gdbm}/include"
12940                  LDFLAGS="${LDFLAGS} -L${with_gdbm}/lib"
12941                  SASL_DB_LIB="-lgdbm"
12942                else
12943                  with_gdbm="no"
12944                fi
12945        esac
12946         ;;
12947   ndbm)
12948                         if test "${ac_cv_header_ndbm_h+set}" = set; then
12949   { echo "$as_me:$LINENO: checking for ndbm.h" >&5
12950 echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6; }
12951 if test "${ac_cv_header_ndbm_h+set}" = set; then
12952   echo $ECHO_N "(cached) $ECHO_C" >&6
12953 fi
12954 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
12955 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
12956 else
12957   # Is the header compilable?
12958 { echo "$as_me:$LINENO: checking ndbm.h usability" >&5
12959 echo $ECHO_N "checking ndbm.h usability... $ECHO_C" >&6; }
12960 cat >conftest.$ac_ext <<_ACEOF
12961 /* confdefs.h.  */
12962 _ACEOF
12963 cat confdefs.h >>conftest.$ac_ext
12964 cat >>conftest.$ac_ext <<_ACEOF
12965 /* end confdefs.h.  */
12966 $ac_includes_default
12967 #include <ndbm.h>
12968 _ACEOF
12969 rm -f conftest.$ac_objext
12970 if { (ac_try="$ac_compile"
12971 case "(($ac_try" in
12972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12973   *) ac_try_echo=$ac_try;;
12974 esac
12975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12976   (eval "$ac_compile") 2>conftest.er1
12977   ac_status=$?
12978   grep -v '^ *+' conftest.er1 >conftest.err
12979   rm -f conftest.er1
12980   cat conftest.err >&5
12981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982   (exit $ac_status); } && {
12983          test -z "$ac_c_werror_flag" ||
12984          test ! -s conftest.err
12985        } && test -s conftest.$ac_objext; then
12986   ac_header_compiler=yes
12987 else
12988   echo "$as_me: failed program was:" >&5
12989 sed 's/^/| /' conftest.$ac_ext >&5
12990
12991         ac_header_compiler=no
12992 fi
12993
12994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12995 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12996 echo "${ECHO_T}$ac_header_compiler" >&6; }
12997
12998 # Is the header present?
12999 { echo "$as_me:$LINENO: checking ndbm.h presence" >&5
13000 echo $ECHO_N "checking ndbm.h presence... $ECHO_C" >&6; }
13001 cat >conftest.$ac_ext <<_ACEOF
13002 /* confdefs.h.  */
13003 _ACEOF
13004 cat confdefs.h >>conftest.$ac_ext
13005 cat >>conftest.$ac_ext <<_ACEOF
13006 /* end confdefs.h.  */
13007 #include <ndbm.h>
13008 _ACEOF
13009 if { (ac_try="$ac_cpp conftest.$ac_ext"
13010 case "(($ac_try" in
13011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13012   *) ac_try_echo=$ac_try;;
13013 esac
13014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13015   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13016   ac_status=$?
13017   grep -v '^ *+' conftest.er1 >conftest.err
13018   rm -f conftest.er1
13019   cat conftest.err >&5
13020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021   (exit $ac_status); } >/dev/null && {
13022          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13023          test ! -s conftest.err
13024        }; then
13025   ac_header_preproc=yes
13026 else
13027   echo "$as_me: failed program was:" >&5
13028 sed 's/^/| /' conftest.$ac_ext >&5
13029
13030   ac_header_preproc=no
13031 fi
13032
13033 rm -f conftest.err conftest.$ac_ext
13034 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13035 echo "${ECHO_T}$ac_header_preproc" >&6; }
13036
13037 # So?  What about this header?
13038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13039   yes:no: )
13040     { echo "$as_me:$LINENO: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13041 echo "$as_me: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13042     { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the compiler's result" >&5
13043 echo "$as_me: WARNING: ndbm.h: proceeding with the compiler's result" >&2;}
13044     ac_header_preproc=yes
13045     ;;
13046   no:yes:* )
13047     { echo "$as_me:$LINENO: WARNING: ndbm.h: present but cannot be compiled" >&5
13048 echo "$as_me: WARNING: ndbm.h: present but cannot be compiled" >&2;}
13049     { echo "$as_me:$LINENO: WARNING: ndbm.h:     check for missing prerequisite headers?" >&5
13050 echo "$as_me: WARNING: ndbm.h:     check for missing prerequisite headers?" >&2;}
13051     { echo "$as_me:$LINENO: WARNING: ndbm.h: see the Autoconf documentation" >&5
13052 echo "$as_me: WARNING: ndbm.h: see the Autoconf documentation" >&2;}
13053     { echo "$as_me:$LINENO: WARNING: ndbm.h:     section \"Present But Cannot Be Compiled\"" >&5
13054 echo "$as_me: WARNING: ndbm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13055     { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the preprocessor's result" >&5
13056 echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result" >&2;}
13057     { echo "$as_me:$LINENO: WARNING: ndbm.h: in the future, the compiler will take precedence" >&5
13058 echo "$as_me: WARNING: ndbm.h: in the future, the compiler will take precedence" >&2;}
13059
13060     ;;
13061 esac
13062 { echo "$as_me:$LINENO: checking for ndbm.h" >&5
13063 echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6; }
13064 if test "${ac_cv_header_ndbm_h+set}" = set; then
13065   echo $ECHO_N "(cached) $ECHO_C" >&6
13066 else
13067   ac_cv_header_ndbm_h=$ac_header_preproc
13068 fi
13069 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
13070 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
13071
13072 fi
13073 if test $ac_cv_header_ndbm_h = yes; then
13074
13075                         { echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
13076 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6; }
13077 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
13078   echo $ECHO_N "(cached) $ECHO_C" >&6
13079 else
13080   ac_check_lib_save_LIBS=$LIBS
13081 LIBS="-lndbm  $LIBS"
13082 cat >conftest.$ac_ext <<_ACEOF
13083 /* confdefs.h.  */
13084 _ACEOF
13085 cat confdefs.h >>conftest.$ac_ext
13086 cat >>conftest.$ac_ext <<_ACEOF
13087 /* end confdefs.h.  */
13088
13089 /* Override any GCC internal prototype to avoid an error.
13090    Use char because int might match the return type of a GCC
13091    builtin and then its argument prototype would still apply.  */
13092 #ifdef __cplusplus
13093 extern "C"
13094 #endif
13095 char dbm_open ();
13096 int
13097 main ()
13098 {
13099 return dbm_open ();
13100   ;
13101   return 0;
13102 }
13103 _ACEOF
13104 rm -f conftest.$ac_objext conftest$ac_exeext
13105 if { (ac_try="$ac_link"
13106 case "(($ac_try" in
13107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108   *) ac_try_echo=$ac_try;;
13109 esac
13110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111   (eval "$ac_link") 2>conftest.er1
13112   ac_status=$?
13113   grep -v '^ *+' conftest.er1 >conftest.err
13114   rm -f conftest.er1
13115   cat conftest.err >&5
13116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117   (exit $ac_status); } && {
13118          test -z "$ac_c_werror_flag" ||
13119          test ! -s conftest.err
13120        } && test -s conftest$ac_exeext &&
13121        $as_test_x conftest$ac_exeext; then
13122   ac_cv_lib_ndbm_dbm_open=yes
13123 else
13124   echo "$as_me: failed program was:" >&5
13125 sed 's/^/| /' conftest.$ac_ext >&5
13126
13127         ac_cv_lib_ndbm_dbm_open=no
13128 fi
13129
13130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13131       conftest$ac_exeext conftest.$ac_ext
13132 LIBS=$ac_check_lib_save_LIBS
13133 fi
13134 { echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
13135 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6; }
13136 if test $ac_cv_lib_ndbm_dbm_open = yes; then
13137   SASL_DB_LIB="-lndbm"
13138 else
13139
13140                                 { echo "$as_me:$LINENO: checking for dbm_open" >&5
13141 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6; }
13142 if test "${ac_cv_func_dbm_open+set}" = set; then
13143   echo $ECHO_N "(cached) $ECHO_C" >&6
13144 else
13145   cat >conftest.$ac_ext <<_ACEOF
13146 /* confdefs.h.  */
13147 _ACEOF
13148 cat confdefs.h >>conftest.$ac_ext
13149 cat >>conftest.$ac_ext <<_ACEOF
13150 /* end confdefs.h.  */
13151 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
13152    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13153 #define dbm_open innocuous_dbm_open
13154
13155 /* System header to define __stub macros and hopefully few prototypes,
13156     which can conflict with char dbm_open (); below.
13157     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13158     <limits.h> exists even on freestanding compilers.  */
13159
13160 #ifdef __STDC__
13161 # include <limits.h>
13162 #else
13163 # include <assert.h>
13164 #endif
13165
13166 #undef dbm_open
13167
13168 /* Override any GCC internal prototype to avoid an error.
13169    Use char because int might match the return type of a GCC
13170    builtin and then its argument prototype would still apply.  */
13171 #ifdef __cplusplus
13172 extern "C"
13173 #endif
13174 char dbm_open ();
13175 /* The GNU C library defines this for functions which it implements
13176     to always fail with ENOSYS.  Some functions are actually named
13177     something starting with __ and the normal name is an alias.  */
13178 #if defined __stub_dbm_open || defined __stub___dbm_open
13179 choke me
13180 #endif
13181
13182 int
13183 main ()
13184 {
13185 return dbm_open ();
13186   ;
13187   return 0;
13188 }
13189 _ACEOF
13190 rm -f conftest.$ac_objext conftest$ac_exeext
13191 if { (ac_try="$ac_link"
13192 case "(($ac_try" in
13193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13194   *) ac_try_echo=$ac_try;;
13195 esac
13196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13197   (eval "$ac_link") 2>conftest.er1
13198   ac_status=$?
13199   grep -v '^ *+' conftest.er1 >conftest.err
13200   rm -f conftest.er1
13201   cat conftest.err >&5
13202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203   (exit $ac_status); } && {
13204          test -z "$ac_c_werror_flag" ||
13205          test ! -s conftest.err
13206        } && test -s conftest$ac_exeext &&
13207        $as_test_x conftest$ac_exeext; then
13208   ac_cv_func_dbm_open=yes
13209 else
13210   echo "$as_me: failed program was:" >&5
13211 sed 's/^/| /' conftest.$ac_ext >&5
13212
13213         ac_cv_func_dbm_open=no
13214 fi
13215
13216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13217       conftest$ac_exeext conftest.$ac_ext
13218 fi
13219 { echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
13220 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6; }
13221 if test $ac_cv_func_dbm_open = yes; then
13222   :
13223 else
13224   dblib="no"
13225 fi
13226
13227 fi
13228
13229 else
13230   dblib="no"
13231 fi
13232
13233
13234         ;;
13235   auto_detect)
13236
13237
13238
13239         cmu_save_CPPFLAGS=$CPPFLAGS
13240
13241         if test -d $with_bdb_inc; then
13242             CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
13243             BDB_INCADD="-I$with_bdb_inc"
13244         else
13245             BDB_INCADD=""
13246         fi
13247
13248                         if test "${ac_cv_header_db_h+set}" = set; then
13249   { echo "$as_me:$LINENO: checking for db.h" >&5
13250 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
13251 if test "${ac_cv_header_db_h+set}" = set; then
13252   echo $ECHO_N "(cached) $ECHO_C" >&6
13253 fi
13254 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
13255 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
13256 else
13257   # Is the header compilable?
13258 { echo "$as_me:$LINENO: checking db.h usability" >&5
13259 echo $ECHO_N "checking db.h usability... $ECHO_C" >&6; }
13260 cat >conftest.$ac_ext <<_ACEOF
13261 /* confdefs.h.  */
13262 _ACEOF
13263 cat confdefs.h >>conftest.$ac_ext
13264 cat >>conftest.$ac_ext <<_ACEOF
13265 /* end confdefs.h.  */
13266 $ac_includes_default
13267 #include <db.h>
13268 _ACEOF
13269 rm -f conftest.$ac_objext
13270 if { (ac_try="$ac_compile"
13271 case "(($ac_try" in
13272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13273   *) ac_try_echo=$ac_try;;
13274 esac
13275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13276   (eval "$ac_compile") 2>conftest.er1
13277   ac_status=$?
13278   grep -v '^ *+' conftest.er1 >conftest.err
13279   rm -f conftest.er1
13280   cat conftest.err >&5
13281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282   (exit $ac_status); } && {
13283          test -z "$ac_c_werror_flag" ||
13284          test ! -s conftest.err
13285        } && test -s conftest.$ac_objext; then
13286   ac_header_compiler=yes
13287 else
13288   echo "$as_me: failed program was:" >&5
13289 sed 's/^/| /' conftest.$ac_ext >&5
13290
13291         ac_header_compiler=no
13292 fi
13293
13294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13296 echo "${ECHO_T}$ac_header_compiler" >&6; }
13297
13298 # Is the header present?
13299 { echo "$as_me:$LINENO: checking db.h presence" >&5
13300 echo $ECHO_N "checking db.h presence... $ECHO_C" >&6; }
13301 cat >conftest.$ac_ext <<_ACEOF
13302 /* confdefs.h.  */
13303 _ACEOF
13304 cat confdefs.h >>conftest.$ac_ext
13305 cat >>conftest.$ac_ext <<_ACEOF
13306 /* end confdefs.h.  */
13307 #include <db.h>
13308 _ACEOF
13309 if { (ac_try="$ac_cpp conftest.$ac_ext"
13310 case "(($ac_try" in
13311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13312   *) ac_try_echo=$ac_try;;
13313 esac
13314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13315   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13316   ac_status=$?
13317   grep -v '^ *+' conftest.er1 >conftest.err
13318   rm -f conftest.er1
13319   cat conftest.err >&5
13320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321   (exit $ac_status); } >/dev/null && {
13322          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13323          test ! -s conftest.err
13324        }; then
13325   ac_header_preproc=yes
13326 else
13327   echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.$ac_ext >&5
13329
13330   ac_header_preproc=no
13331 fi
13332
13333 rm -f conftest.err conftest.$ac_ext
13334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13335 echo "${ECHO_T}$ac_header_preproc" >&6; }
13336
13337 # So?  What about this header?
13338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13339   yes:no: )
13340     { echo "$as_me:$LINENO: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&5
13341 echo "$as_me: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13342     { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the compiler's result" >&5
13343 echo "$as_me: WARNING: db.h: proceeding with the compiler's result" >&2;}
13344     ac_header_preproc=yes
13345     ;;
13346   no:yes:* )
13347     { echo "$as_me:$LINENO: WARNING: db.h: present but cannot be compiled" >&5
13348 echo "$as_me: WARNING: db.h: present but cannot be compiled" >&2;}
13349     { echo "$as_me:$LINENO: WARNING: db.h:     check for missing prerequisite headers?" >&5
13350 echo "$as_me: WARNING: db.h:     check for missing prerequisite headers?" >&2;}
13351     { echo "$as_me:$LINENO: WARNING: db.h: see the Autoconf documentation" >&5
13352 echo "$as_me: WARNING: db.h: see the Autoconf documentation" >&2;}
13353     { echo "$as_me:$LINENO: WARNING: db.h:     section \"Present But Cannot Be Compiled\"" >&5
13354 echo "$as_me: WARNING: db.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13355     { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5
13356 echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;}
13357     { echo "$as_me:$LINENO: WARNING: db.h: in the future, the compiler will take precedence" >&5
13358 echo "$as_me: WARNING: db.h: in the future, the compiler will take precedence" >&2;}
13359
13360     ;;
13361 esac
13362 { echo "$as_me:$LINENO: checking for db.h" >&5
13363 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
13364 if test "${ac_cv_header_db_h+set}" = set; then
13365   echo $ECHO_N "(cached) $ECHO_C" >&6
13366 else
13367   ac_cv_header_db_h=$ac_header_preproc
13368 fi
13369 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
13370 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
13371
13372 fi
13373 if test $ac_cv_header_db_h = yes; then
13374
13375         BDB_SAVE_LDFLAGS=$LDFLAGS
13376
13377         if test -d $with_bdb_lib; then
13378
13379   # this is CMU ADD LIBPATH TO
13380   if test "$andrew_runpath_switch" = "none" ; then
13381         LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
13382   else
13383         LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
13384   fi
13385
13386
13387   # this is CMU ADD LIBPATH TO
13388   if test "$andrew_runpath_switch" = "none" ; then
13389         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
13390   else
13391         BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
13392   fi
13393
13394         else
13395             BDB_LIBADD=""
13396         fi
13397
13398         saved_LIBS=$LIBS
13399         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
13400           do
13401             LIBS="$saved_LIBS -l$dbname"
13402             cat >conftest.$ac_ext <<_ACEOF
13403 /* confdefs.h.  */
13404 _ACEOF
13405 cat confdefs.h >>conftest.$ac_ext
13406 cat >>conftest.$ac_ext <<_ACEOF
13407 /* end confdefs.h.  */
13408 #include <db.h>
13409 int
13410 main ()
13411 {
13412 db_create(NULL, NULL, 0);
13413   ;
13414   return 0;
13415 }
13416 _ACEOF
13417 rm -f conftest.$ac_objext conftest$ac_exeext
13418 if { (ac_try="$ac_link"
13419 case "(($ac_try" in
13420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421   *) ac_try_echo=$ac_try;;
13422 esac
13423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13424   (eval "$ac_link") 2>conftest.er1
13425   ac_status=$?
13426   grep -v '^ *+' conftest.er1 >conftest.err
13427   rm -f conftest.er1
13428   cat conftest.err >&5
13429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430   (exit $ac_status); } && {
13431          test -z "$ac_c_werror_flag" ||
13432          test ! -s conftest.err
13433        } && test -s conftest$ac_exeext &&
13434        $as_test_x conftest$ac_exeext; then
13435   BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
13436 else
13437   echo "$as_me: failed program was:" >&5
13438 sed 's/^/| /' conftest.$ac_ext >&5
13439
13440         dblib="no"
13441 fi
13442
13443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13444       conftest$ac_exeext conftest.$ac_ext
13445             if test "$dblib" = "berkeley"; then break; fi
13446           done
13447         if test "$dblib" = "no"; then
13448             LIBS="$saved_LIBS -ldb"
13449             cat >conftest.$ac_ext <<_ACEOF
13450 /* confdefs.h.  */
13451 _ACEOF
13452 cat confdefs.h >>conftest.$ac_ext
13453 cat >>conftest.$ac_ext <<_ACEOF
13454 /* end confdefs.h.  */
13455 #include <db.h>
13456 int
13457 main ()
13458 {
13459 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
13460   ;
13461   return 0;
13462 }
13463 _ACEOF
13464 rm -f conftest.$ac_objext conftest$ac_exeext
13465 if { (ac_try="$ac_link"
13466 case "(($ac_try" in
13467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13468   *) ac_try_echo=$ac_try;;
13469 esac
13470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13471   (eval "$ac_link") 2>conftest.er1
13472   ac_status=$?
13473   grep -v '^ *+' conftest.er1 >conftest.err
13474   rm -f conftest.er1
13475   cat conftest.err >&5
13476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477   (exit $ac_status); } && {
13478          test -z "$ac_c_werror_flag" ||
13479          test ! -s conftest.err
13480        } && test -s conftest$ac_exeext &&
13481        $as_test_x conftest$ac_exeext; then
13482   BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
13483 else
13484   echo "$as_me: failed program was:" >&5
13485 sed 's/^/| /' conftest.$ac_ext >&5
13486
13487         dblib="no"
13488 fi
13489
13490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13491       conftest$ac_exeext conftest.$ac_ext
13492         fi
13493         LIBS=$saved_LIBS
13494
13495         LDFLAGS=$BDB_SAVE_LDFLAGS
13496
13497 else
13498   dblib="no"
13499 fi
13500
13501
13502
13503         CPPFLAGS=$cmu_save_CPPFLAGS
13504
13505         if test "$dblib" = no; then
13506                   if test "${ac_cv_header_ndbm_h+set}" = set; then
13507   { echo "$as_me:$LINENO: checking for ndbm.h" >&5
13508 echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6; }
13509 if test "${ac_cv_header_ndbm_h+set}" = set; then
13510   echo $ECHO_N "(cached) $ECHO_C" >&6
13511 fi
13512 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
13513 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
13514 else
13515   # Is the header compilable?
13516 { echo "$as_me:$LINENO: checking ndbm.h usability" >&5
13517 echo $ECHO_N "checking ndbm.h usability... $ECHO_C" >&6; }
13518 cat >conftest.$ac_ext <<_ACEOF
13519 /* confdefs.h.  */
13520 _ACEOF
13521 cat confdefs.h >>conftest.$ac_ext
13522 cat >>conftest.$ac_ext <<_ACEOF
13523 /* end confdefs.h.  */
13524 $ac_includes_default
13525 #include <ndbm.h>
13526 _ACEOF
13527 rm -f conftest.$ac_objext
13528 if { (ac_try="$ac_compile"
13529 case "(($ac_try" in
13530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13531   *) ac_try_echo=$ac_try;;
13532 esac
13533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13534   (eval "$ac_compile") 2>conftest.er1
13535   ac_status=$?
13536   grep -v '^ *+' conftest.er1 >conftest.err
13537   rm -f conftest.er1
13538   cat conftest.err >&5
13539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540   (exit $ac_status); } && {
13541          test -z "$ac_c_werror_flag" ||
13542          test ! -s conftest.err
13543        } && test -s conftest.$ac_objext; then
13544   ac_header_compiler=yes
13545 else
13546   echo "$as_me: failed program was:" >&5
13547 sed 's/^/| /' conftest.$ac_ext >&5
13548
13549         ac_header_compiler=no
13550 fi
13551
13552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13553 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13554 echo "${ECHO_T}$ac_header_compiler" >&6; }
13555
13556 # Is the header present?
13557 { echo "$as_me:$LINENO: checking ndbm.h presence" >&5
13558 echo $ECHO_N "checking ndbm.h presence... $ECHO_C" >&6; }
13559 cat >conftest.$ac_ext <<_ACEOF
13560 /* confdefs.h.  */
13561 _ACEOF
13562 cat confdefs.h >>conftest.$ac_ext
13563 cat >>conftest.$ac_ext <<_ACEOF
13564 /* end confdefs.h.  */
13565 #include <ndbm.h>
13566 _ACEOF
13567 if { (ac_try="$ac_cpp conftest.$ac_ext"
13568 case "(($ac_try" in
13569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13570   *) ac_try_echo=$ac_try;;
13571 esac
13572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13573   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13574   ac_status=$?
13575   grep -v '^ *+' conftest.er1 >conftest.err
13576   rm -f conftest.er1
13577   cat conftest.err >&5
13578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579   (exit $ac_status); } >/dev/null && {
13580          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13581          test ! -s conftest.err
13582        }; then
13583   ac_header_preproc=yes
13584 else
13585   echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.$ac_ext >&5
13587
13588   ac_header_preproc=no
13589 fi
13590
13591 rm -f conftest.err conftest.$ac_ext
13592 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13593 echo "${ECHO_T}$ac_header_preproc" >&6; }
13594
13595 # So?  What about this header?
13596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13597   yes:no: )
13598     { echo "$as_me:$LINENO: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13599 echo "$as_me: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13600     { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the compiler's result" >&5
13601 echo "$as_me: WARNING: ndbm.h: proceeding with the compiler's result" >&2;}
13602     ac_header_preproc=yes
13603     ;;
13604   no:yes:* )
13605     { echo "$as_me:$LINENO: WARNING: ndbm.h: present but cannot be compiled" >&5
13606 echo "$as_me: WARNING: ndbm.h: present but cannot be compiled" >&2;}
13607     { echo "$as_me:$LINENO: WARNING: ndbm.h:     check for missing prerequisite headers?" >&5
13608 echo "$as_me: WARNING: ndbm.h:     check for missing prerequisite headers?" >&2;}
13609     { echo "$as_me:$LINENO: WARNING: ndbm.h: see the Autoconf documentation" >&5
13610 echo "$as_me: WARNING: ndbm.h: see the Autoconf documentation" >&2;}
13611     { echo "$as_me:$LINENO: WARNING: ndbm.h:     section \"Present But Cannot Be Compiled\"" >&5
13612 echo "$as_me: WARNING: ndbm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13613     { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the preprocessor's result" >&5
13614 echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result" >&2;}
13615     { echo "$as_me:$LINENO: WARNING: ndbm.h: in the future, the compiler will take precedence" >&5
13616 echo "$as_me: WARNING: ndbm.h: in the future, the compiler will take precedence" >&2;}
13617
13618     ;;
13619 esac
13620 { echo "$as_me:$LINENO: checking for ndbm.h" >&5
13621 echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6; }
13622 if test "${ac_cv_header_ndbm_h+set}" = set; then
13623   echo $ECHO_N "(cached) $ECHO_C" >&6
13624 else
13625   ac_cv_header_ndbm_h=$ac_header_preproc
13626 fi
13627 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
13628 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
13629
13630 fi
13631 if test $ac_cv_header_ndbm_h = yes; then
13632
13633                 { echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
13634 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6; }
13635 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
13636   echo $ECHO_N "(cached) $ECHO_C" >&6
13637 else
13638   ac_check_lib_save_LIBS=$LIBS
13639 LIBS="-lndbm  $LIBS"
13640 cat >conftest.$ac_ext <<_ACEOF
13641 /* confdefs.h.  */
13642 _ACEOF
13643 cat confdefs.h >>conftest.$ac_ext
13644 cat >>conftest.$ac_ext <<_ACEOF
13645 /* end confdefs.h.  */
13646
13647 /* Override any GCC internal prototype to avoid an error.
13648    Use char because int might match the return type of a GCC
13649    builtin and then its argument prototype would still apply.  */
13650 #ifdef __cplusplus
13651 extern "C"
13652 #endif
13653 char dbm_open ();
13654 int
13655 main ()
13656 {
13657 return dbm_open ();
13658   ;
13659   return 0;
13660 }
13661 _ACEOF
13662 rm -f conftest.$ac_objext conftest$ac_exeext
13663 if { (ac_try="$ac_link"
13664 case "(($ac_try" in
13665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13666   *) ac_try_echo=$ac_try;;
13667 esac
13668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13669   (eval "$ac_link") 2>conftest.er1
13670   ac_status=$?
13671   grep -v '^ *+' conftest.er1 >conftest.err
13672   rm -f conftest.er1
13673   cat conftest.err >&5
13674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675   (exit $ac_status); } && {
13676          test -z "$ac_c_werror_flag" ||
13677          test ! -s conftest.err
13678        } && test -s conftest$ac_exeext &&
13679        $as_test_x conftest$ac_exeext; then
13680   ac_cv_lib_ndbm_dbm_open=yes
13681 else
13682   echo "$as_me: failed program was:" >&5
13683 sed 's/^/| /' conftest.$ac_ext >&5
13684
13685         ac_cv_lib_ndbm_dbm_open=no
13686 fi
13687
13688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13689       conftest$ac_exeext conftest.$ac_ext
13690 LIBS=$ac_check_lib_save_LIBS
13691 fi
13692 { echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
13693 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6; }
13694 if test $ac_cv_lib_ndbm_dbm_open = yes; then
13695   dblib="ndbm"; SASL_DB_LIB="-lndbm"
13696 else
13697   dblib="weird"
13698 fi
13699
13700 else
13701   dblib="no"
13702 fi
13703
13704
13705           if test "$dblib" = "weird"; then
13706                         { echo "$as_me:$LINENO: checking for dbm_open" >&5
13707 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6; }
13708 if test "${ac_cv_func_dbm_open+set}" = set; then
13709   echo $ECHO_N "(cached) $ECHO_C" >&6
13710 else
13711   cat >conftest.$ac_ext <<_ACEOF
13712 /* confdefs.h.  */
13713 _ACEOF
13714 cat confdefs.h >>conftest.$ac_ext
13715 cat >>conftest.$ac_ext <<_ACEOF
13716 /* end confdefs.h.  */
13717 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
13718    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13719 #define dbm_open innocuous_dbm_open
13720
13721 /* System header to define __stub macros and hopefully few prototypes,
13722     which can conflict with char dbm_open (); below.
13723     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13724     <limits.h> exists even on freestanding compilers.  */
13725
13726 #ifdef __STDC__
13727 # include <limits.h>
13728 #else
13729 # include <assert.h>
13730 #endif
13731
13732 #undef dbm_open
13733
13734 /* Override any GCC internal prototype to avoid an error.
13735    Use char because int might match the return type of a GCC
13736    builtin and then its argument prototype would still apply.  */
13737 #ifdef __cplusplus
13738 extern "C"
13739 #endif
13740 char dbm_open ();
13741 /* The GNU C library defines this for functions which it implements
13742     to always fail with ENOSYS.  Some functions are actually named
13743     something starting with __ and the normal name is an alias.  */
13744 #if defined __stub_dbm_open || defined __stub___dbm_open
13745 choke me
13746 #endif
13747
13748 int
13749 main ()
13750 {
13751 return dbm_open ();
13752   ;
13753   return 0;
13754 }
13755 _ACEOF
13756 rm -f conftest.$ac_objext conftest$ac_exeext
13757 if { (ac_try="$ac_link"
13758 case "(($ac_try" in
13759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13760   *) ac_try_echo=$ac_try;;
13761 esac
13762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13763   (eval "$ac_link") 2>conftest.er1
13764   ac_status=$?
13765   grep -v '^ *+' conftest.er1 >conftest.err
13766   rm -f conftest.er1
13767   cat conftest.err >&5
13768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769   (exit $ac_status); } && {
13770          test -z "$ac_c_werror_flag" ||
13771          test ! -s conftest.err
13772        } && test -s conftest$ac_exeext &&
13773        $as_test_x conftest$ac_exeext; then
13774   ac_cv_func_dbm_open=yes
13775 else
13776   echo "$as_me: failed program was:" >&5
13777 sed 's/^/| /' conftest.$ac_ext >&5
13778
13779         ac_cv_func_dbm_open=no
13780 fi
13781
13782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13783       conftest$ac_exeext conftest.$ac_ext
13784 fi
13785 { echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
13786 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6; }
13787 if test $ac_cv_func_dbm_open = yes; then
13788   dblib="ndbm"
13789 else
13790   dblib="no"
13791 fi
13792
13793           fi
13794
13795           if test "$dblib" = no; then
13796                     if test "${ac_cv_header_gdbm_h+set}" = set; then
13797   { echo "$as_me:$LINENO: checking for gdbm.h" >&5
13798 echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6; }
13799 if test "${ac_cv_header_gdbm_h+set}" = set; then
13800   echo $ECHO_N "(cached) $ECHO_C" >&6
13801 fi
13802 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
13803 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
13804 else
13805   # Is the header compilable?
13806 { echo "$as_me:$LINENO: checking gdbm.h usability" >&5
13807 echo $ECHO_N "checking gdbm.h usability... $ECHO_C" >&6; }
13808 cat >conftest.$ac_ext <<_ACEOF
13809 /* confdefs.h.  */
13810 _ACEOF
13811 cat confdefs.h >>conftest.$ac_ext
13812 cat >>conftest.$ac_ext <<_ACEOF
13813 /* end confdefs.h.  */
13814 $ac_includes_default
13815 #include <gdbm.h>
13816 _ACEOF
13817 rm -f conftest.$ac_objext
13818 if { (ac_try="$ac_compile"
13819 case "(($ac_try" in
13820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13821   *) ac_try_echo=$ac_try;;
13822 esac
13823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13824   (eval "$ac_compile") 2>conftest.er1
13825   ac_status=$?
13826   grep -v '^ *+' conftest.er1 >conftest.err
13827   rm -f conftest.er1
13828   cat conftest.err >&5
13829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830   (exit $ac_status); } && {
13831          test -z "$ac_c_werror_flag" ||
13832          test ! -s conftest.err
13833        } && test -s conftest.$ac_objext; then
13834   ac_header_compiler=yes
13835 else
13836   echo "$as_me: failed program was:" >&5
13837 sed 's/^/| /' conftest.$ac_ext >&5
13838
13839         ac_header_compiler=no
13840 fi
13841
13842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13843 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13844 echo "${ECHO_T}$ac_header_compiler" >&6; }
13845
13846 # Is the header present?
13847 { echo "$as_me:$LINENO: checking gdbm.h presence" >&5
13848 echo $ECHO_N "checking gdbm.h presence... $ECHO_C" >&6; }
13849 cat >conftest.$ac_ext <<_ACEOF
13850 /* confdefs.h.  */
13851 _ACEOF
13852 cat confdefs.h >>conftest.$ac_ext
13853 cat >>conftest.$ac_ext <<_ACEOF
13854 /* end confdefs.h.  */
13855 #include <gdbm.h>
13856 _ACEOF
13857 if { (ac_try="$ac_cpp conftest.$ac_ext"
13858 case "(($ac_try" in
13859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13860   *) ac_try_echo=$ac_try;;
13861 esac
13862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13863   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13864   ac_status=$?
13865   grep -v '^ *+' conftest.er1 >conftest.err
13866   rm -f conftest.er1
13867   cat conftest.err >&5
13868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869   (exit $ac_status); } >/dev/null && {
13870          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13871          test ! -s conftest.err
13872        }; then
13873   ac_header_preproc=yes
13874 else
13875   echo "$as_me: failed program was:" >&5
13876 sed 's/^/| /' conftest.$ac_ext >&5
13877
13878   ac_header_preproc=no
13879 fi
13880
13881 rm -f conftest.err conftest.$ac_ext
13882 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13883 echo "${ECHO_T}$ac_header_preproc" >&6; }
13884
13885 # So?  What about this header?
13886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13887   yes:no: )
13888     { echo "$as_me:$LINENO: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13889 echo "$as_me: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13890     { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the compiler's result" >&5
13891 echo "$as_me: WARNING: gdbm.h: proceeding with the compiler's result" >&2;}
13892     ac_header_preproc=yes
13893     ;;
13894   no:yes:* )
13895     { echo "$as_me:$LINENO: WARNING: gdbm.h: present but cannot be compiled" >&5
13896 echo "$as_me: WARNING: gdbm.h: present but cannot be compiled" >&2;}
13897     { echo "$as_me:$LINENO: WARNING: gdbm.h:     check for missing prerequisite headers?" >&5
13898 echo "$as_me: WARNING: gdbm.h:     check for missing prerequisite headers?" >&2;}
13899     { echo "$as_me:$LINENO: WARNING: gdbm.h: see the Autoconf documentation" >&5
13900 echo "$as_me: WARNING: gdbm.h: see the Autoconf documentation" >&2;}
13901     { echo "$as_me:$LINENO: WARNING: gdbm.h:     section \"Present But Cannot Be Compiled\"" >&5
13902 echo "$as_me: WARNING: gdbm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13903     { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5
13904 echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;}
13905     { echo "$as_me:$LINENO: WARNING: gdbm.h: in the future, the compiler will take precedence" >&5
13906 echo "$as_me: WARNING: gdbm.h: in the future, the compiler will take precedence" >&2;}
13907
13908     ;;
13909 esac
13910 { echo "$as_me:$LINENO: checking for gdbm.h" >&5
13911 echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6; }
13912 if test "${ac_cv_header_gdbm_h+set}" = set; then
13913   echo $ECHO_N "(cached) $ECHO_C" >&6
13914 else
13915   ac_cv_header_gdbm_h=$ac_header_preproc
13916 fi
13917 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
13918 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
13919
13920 fi
13921 if test $ac_cv_header_gdbm_h = yes; then
13922
13923                 { echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
13924 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6; }
13925 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
13926   echo $ECHO_N "(cached) $ECHO_C" >&6
13927 else
13928   ac_check_lib_save_LIBS=$LIBS
13929 LIBS="-lgdbm  $LIBS"
13930 cat >conftest.$ac_ext <<_ACEOF
13931 /* confdefs.h.  */
13932 _ACEOF
13933 cat confdefs.h >>conftest.$ac_ext
13934 cat >>conftest.$ac_ext <<_ACEOF
13935 /* end confdefs.h.  */
13936
13937 /* Override any GCC internal prototype to avoid an error.
13938    Use char because int might match the return type of a GCC
13939    builtin and then its argument prototype would still apply.  */
13940 #ifdef __cplusplus
13941 extern "C"
13942 #endif
13943 char gdbm_open ();
13944 int
13945 main ()
13946 {
13947 return gdbm_open ();
13948   ;
13949   return 0;
13950 }
13951 _ACEOF
13952 rm -f conftest.$ac_objext conftest$ac_exeext
13953 if { (ac_try="$ac_link"
13954 case "(($ac_try" in
13955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13956   *) ac_try_echo=$ac_try;;
13957 esac
13958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13959   (eval "$ac_link") 2>conftest.er1
13960   ac_status=$?
13961   grep -v '^ *+' conftest.er1 >conftest.err
13962   rm -f conftest.er1
13963   cat conftest.err >&5
13964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965   (exit $ac_status); } && {
13966          test -z "$ac_c_werror_flag" ||
13967          test ! -s conftest.err
13968        } && test -s conftest$ac_exeext &&
13969        $as_test_x conftest$ac_exeext; then
13970   ac_cv_lib_gdbm_gdbm_open=yes
13971 else
13972   echo "$as_me: failed program was:" >&5
13973 sed 's/^/| /' conftest.$ac_ext >&5
13974
13975         ac_cv_lib_gdbm_gdbm_open=no
13976 fi
13977
13978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13979       conftest$ac_exeext conftest.$ac_ext
13980 LIBS=$ac_check_lib_save_LIBS
13981 fi
13982 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
13983 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6; }
13984 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
13985   dblib="gdbm";
13986                                              SASL_DB_LIB="-lgdbm"
13987 else
13988   dblib="no"
13989 fi
13990
13991 else
13992   dblib="no"
13993 fi
13994
13995
13996           fi
13997         else
13998                   CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
13999           SASL_DB_INC=$BDB_INCADD
14000           SASL_DB_LIB="${BDB_LIBADD}"
14001         fi
14002         ;;
14003   none)
14004         ;;
14005   no)
14006         ;;
14007   *)
14008         { echo "$as_me:$LINENO: WARNING: Bad DB library implementation specified;" >&5
14009 echo "$as_me: WARNING: Bad DB library implementation specified;" >&2;}
14010         { { echo "$as_me:$LINENO: error: Use either \"berkeley\", \"gdbm\", \"ndbm\" or \"none\"" >&5
14011 echo "$as_me: error: Use either \"berkeley\", \"gdbm\", \"ndbm\" or \"none\"" >&2;}
14012    { (exit 1); exit 1; }; }
14013         dblib=no
14014         ;;
14015 esac
14016 LIBS="$cmu_save_LIBS"
14017
14018 { echo "$as_me:$LINENO: checking DB library to use" >&5
14019 echo $ECHO_N "checking DB library to use... $ECHO_C" >&6; }
14020 { echo "$as_me:$LINENO: result: $dblib" >&5
14021 echo "${ECHO_T}$dblib" >&6; }
14022
14023 SASL_DB_BACKEND="db_${dblib}.lo"
14024 SASL_DB_BACKEND_STATIC="db_${dblib}.o allockey.o"
14025 SASL_DB_BACKEND_STATIC_SRCS="../sasldb/db_${dblib}.c ../sasldb/allockey.c"
14026 SASL_DB_UTILS="saslpasswd2 sasldblistusers2"
14027 SASL_DB_MANS="saslpasswd2.8 sasldblistusers2.8"
14028
14029 case "$dblib" in
14030   gdbm)
14031     SASL_MECHS="$SASL_MECHS libsasldb.la"
14032
14033 cat >>confdefs.h <<\_ACEOF
14034 #define SASL_GDBM
14035 _ACEOF
14036
14037     ;;
14038   ndbm)
14039     SASL_MECHS="$SASL_MECHS libsasldb.la"
14040
14041 cat >>confdefs.h <<\_ACEOF
14042 #define SASL_NDBM
14043 _ACEOF
14044
14045     ;;
14046   berkeley)
14047     SASL_MECHS="$SASL_MECHS libsasldb.la"
14048
14049 cat >>confdefs.h <<\_ACEOF
14050 #define SASL_BERKELEYDB
14051 _ACEOF
14052
14053     ;;
14054   *)
14055     { echo "$as_me:$LINENO: WARNING: Disabling SASL authentication database support" >&5
14056 echo "$as_me: WARNING: Disabling SASL authentication database support" >&2;}
14057             SASL_DB_BACKEND="db_none.lo"
14058     SASL_DB_BACKEND_STATIC="db_none.o"
14059     SASL_DB_BACKEND_STATIC_SRCS="../sasldb/db_none.c"
14060     SASL_DB_UTILS=""
14061     SASL_DB_MANS=""
14062     SASL_DB_LIB=""
14063     ;;
14064 esac
14065
14066 if test "$enable_static" = yes; then
14067     if test "$dblib" != "none"; then
14068       SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/sasldb.c $SASL_DB_BACKEND_STATIC_SRCS"
14069       SASL_STATIC_OBJS="$SASL_STATIC_OBJS sasldb.o $SASL_DB_BACKEND_STATIC"
14070
14071 cat >>confdefs.h <<\_ACEOF
14072 #define STATIC_SASLDB
14073 _ACEOF
14074
14075     else
14076       SASL_STATIC_OBJS="$SASL_STATIC_OBJS $SASL_DB_BACKEND_STATIC"
14077       SASL_STATIC_SRCS="$SASL_STATIC_SRCS $SASL_DB_BACKEND_STATIC_SRCS"
14078     fi
14079 fi
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089 # Do we not install the SASL DB man pages?
14090  if test "x$SASL_DB_MANS" = "x"; then
14091   NO_SASL_DB_MANS_TRUE=
14092   NO_SASL_DB_MANS_FALSE='#'
14093 else
14094   NO_SASL_DB_MANS_TRUE='#'
14095   NO_SASL_DB_MANS_FALSE=
14096 fi
14097
14098
14099 # Check whether --enable-keep_db_open was given.
14100 if test "${enable_keep_db_open+set}" = set; then
14101   enableval=$enable_keep_db_open; keep_db_open=$enableval
14102 else
14103   keep_db_open=no
14104 fi
14105
14106
14107 # Disable if Berkeley DB is not used
14108 if test "$dblib" != berkeley; then
14109   keep_db_open=no
14110 fi
14111
14112 if test "$keep_db_open" = yes; then
14113
14114 cat >>confdefs.h <<\_ACEOF
14115 #define KEEP_DB_OPEN
14116 _ACEOF
14117
14118 fi
14119 { echo "$as_me:$LINENO: checking if Berkeley DB handle is kept open in SASLDB" >&5
14120 echo $ECHO_N "checking if Berkeley DB handle is kept open in SASLDB... $ECHO_C" >&6; }
14121 { echo "$as_me:$LINENO: result: $keep_db_open" >&5
14122 echo "${ECHO_T}$keep_db_open" >&6; }
14123
14124 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14125 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14126 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14127   echo $ECHO_N "(cached) $ECHO_C" >&6
14128 else
14129   ac_check_lib_save_LIBS=$LIBS
14130 LIBS="-ldl  $LIBS"
14131 cat >conftest.$ac_ext <<_ACEOF
14132 /* confdefs.h.  */
14133 _ACEOF
14134 cat confdefs.h >>conftest.$ac_ext
14135 cat >>conftest.$ac_ext <<_ACEOF
14136 /* end confdefs.h.  */
14137
14138 /* Override any GCC internal prototype to avoid an error.
14139    Use char because int might match the return type of a GCC
14140    builtin and then its argument prototype would still apply.  */
14141 #ifdef __cplusplus
14142 extern "C"
14143 #endif
14144 char dlopen ();
14145 int
14146 main ()
14147 {
14148 return dlopen ();
14149   ;
14150   return 0;
14151 }
14152 _ACEOF
14153 rm -f conftest.$ac_objext conftest$ac_exeext
14154 if { (ac_try="$ac_link"
14155 case "(($ac_try" in
14156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14157   *) ac_try_echo=$ac_try;;
14158 esac
14159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14160   (eval "$ac_link") 2>conftest.er1
14161   ac_status=$?
14162   grep -v '^ *+' conftest.er1 >conftest.err
14163   rm -f conftest.er1
14164   cat conftest.err >&5
14165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166   (exit $ac_status); } && {
14167          test -z "$ac_c_werror_flag" ||
14168          test ! -s conftest.err
14169        } && test -s conftest$ac_exeext &&
14170        $as_test_x conftest$ac_exeext; then
14171   ac_cv_lib_dl_dlopen=yes
14172 else
14173   echo "$as_me: failed program was:" >&5
14174 sed 's/^/| /' conftest.$ac_ext >&5
14175
14176         ac_cv_lib_dl_dlopen=no
14177 fi
14178
14179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14180       conftest$ac_exeext conftest.$ac_ext
14181 LIBS=$ac_check_lib_save_LIBS
14182 fi
14183 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14184 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
14185 if test $ac_cv_lib_dl_dlopen = yes; then
14186   SASL_DL_LIB="-ldl"
14187 else
14188   SASL_DL_LIB=""
14189 fi
14190
14191
14192
14193
14194
14195 # Check whether --with-devrandom was given.
14196 if test "${with_devrandom+set}" = set; then
14197   withval=$with_devrandom; devrandom=$withval
14198 else
14199   devrandom=/dev/random
14200 fi
14201
14202 { echo "$as_me:$LINENO: checking /dev/random to use" >&5
14203 echo $ECHO_N "checking /dev/random to use... $ECHO_C" >&6; }
14204 { echo "$as_me:$LINENO: result: $devrandom" >&5
14205 echo "${ECHO_T}$devrandom" >&6; }
14206
14207 cat >>confdefs.h <<_ACEOF
14208 #define SASL_DEV_RANDOM "$devrandom"
14209 _ACEOF
14210
14211
14212
14213 for ac_prog in nm
14214 do
14215   # Extract the first word of "$ac_prog", so it can be a program name with args.
14216 set dummy $ac_prog; ac_word=$2
14217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14219 if test "${ac_cv_prog_NM+set}" = set; then
14220   echo $ECHO_N "(cached) $ECHO_C" >&6
14221 else
14222   if test -n "$NM"; then
14223   ac_cv_prog_NM="$NM" # Let the user override the test.
14224 else
14225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14226 for as_dir in $PATH
14227 do
14228   IFS=$as_save_IFS
14229   test -z "$as_dir" && as_dir=.
14230   for ac_exec_ext in '' $ac_executable_extensions; do
14231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14232     ac_cv_prog_NM="$ac_prog"
14233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14234     break 2
14235   fi
14236 done
14237 done
14238 IFS=$as_save_IFS
14239
14240 fi
14241 fi
14242 NM=$ac_cv_prog_NM
14243 if test -n "$NM"; then
14244   { echo "$as_me:$LINENO: result: $NM" >&5
14245 echo "${ECHO_T}$NM" >&6; }
14246 else
14247   { echo "$as_me:$LINENO: result: no" >&5
14248 echo "${ECHO_T}no" >&6; }
14249 fi
14250
14251
14252   test -n "$NM" && break
14253 done
14254
14255
14256 { echo "$as_me:$LINENO: checking for underscore before symbols" >&5
14257 echo $ECHO_N "checking for underscore before symbols... $ECHO_C" >&6; }
14258 if test "${sasl_cv_uscore+set}" = set; then
14259   echo $ECHO_N "(cached) $ECHO_C" >&6
14260 else
14261
14262     echo "main(){int i=1;}
14263     foo(){int i=6;}" > conftest.c
14264     ${CC} -o a.out conftest.c > /dev/null
14265     if (${NM} a.out | grep _foo) > /dev/null; then
14266       sasl_cv_uscore=yes
14267     else
14268       sasl_cv_uscore=no
14269     fi
14270 fi
14271
14272 { echo "$as_me:$LINENO: result: $sasl_cv_uscore" >&5
14273 echo "${ECHO_T}$sasl_cv_uscore" >&6; }
14274 rm -f conftest.c a.out
14275
14276 if test $sasl_cv_uscore = yes; then
14277   if test $ac_cv_lib_dl_dlopen = yes ; then
14278         { echo "$as_me:$LINENO: checking whether dlsym adds the underscore for us" >&5
14279 echo $ECHO_N "checking whether dlsym adds the underscore for us... $ECHO_C" >&6; }
14280         cmu_save_LIBS="$LIBS"
14281         LIBS="$LIBS $SASL_DL_LIB"
14282         if test "${sasl_cv_dlsym_adds_uscore+set}" = set; then
14283   echo $ECHO_N "(cached) $ECHO_C" >&6
14284 else
14285   if test "$cross_compiling" = yes; then
14286   { echo "$as_me:$LINENO: WARNING: cross-compiler" >&5
14287 echo "$as_me: WARNING: cross-compiler" >&2;}
14288 else
14289   cat >conftest.$ac_ext <<_ACEOF
14290 /* confdefs.h.  */
14291 _ACEOF
14292 cat confdefs.h >>conftest.$ac_ext
14293 cat >>conftest.$ac_ext <<_ACEOF
14294 /* end confdefs.h.  */
14295
14296 #include <dlfcn.h>
14297 #include <stdio.h>
14298 foo() { int i=0;}
14299 main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
14300     if(self) { ptr1=dlsym(self,"foo"); ptr2=dlsym(self,"_foo");
14301     if(ptr1 && !ptr2) exit(0); } exit(1); }
14302
14303 _ACEOF
14304 rm -f conftest$ac_exeext
14305 if { (ac_try="$ac_link"
14306 case "(($ac_try" in
14307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14308   *) ac_try_echo=$ac_try;;
14309 esac
14310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14311   (eval "$ac_link") 2>&5
14312   ac_status=$?
14313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14315   { (case "(($ac_try" in
14316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14317   *) ac_try_echo=$ac_try;;
14318 esac
14319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14320   (eval "$ac_try") 2>&5
14321   ac_status=$?
14322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323   (exit $ac_status); }; }; then
14324   sasl_cv_dlsym_adds_uscore=yes
14325 else
14326   echo "$as_me: program exited with status $ac_status" >&5
14327 echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14329
14330 ( exit $ac_status )
14331 sasl_cv_dlsym_adds_uscore=no
14332
14333 cat >>confdefs.h <<\_ACEOF
14334 #define DLSYM_NEEDS_UNDERSCORE
14335 _ACEOF
14336
14337 fi
14338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14339 fi
14340
14341
14342 fi
14343
14344         LIBS="$cmu_save_LIBS"
14345       { echo "$as_me:$LINENO: result: $sasl_cv_dlsym_adds_uscore" >&5
14346 echo "${ECHO_T}$sasl_cv_dlsym_adds_uscore" >&6; }
14347   fi
14348 fi
14349
14350
14351 for ac_func in syslog
14352 do
14353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14354 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14356 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14357   echo $ECHO_N "(cached) $ECHO_C" >&6
14358 else
14359   cat >conftest.$ac_ext <<_ACEOF
14360 /* confdefs.h.  */
14361 _ACEOF
14362 cat confdefs.h >>conftest.$ac_ext
14363 cat >>conftest.$ac_ext <<_ACEOF
14364 /* end confdefs.h.  */
14365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14366    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14367 #define $ac_func innocuous_$ac_func
14368
14369 /* System header to define __stub macros and hopefully few prototypes,
14370     which can conflict with char $ac_func (); below.
14371     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14372     <limits.h> exists even on freestanding compilers.  */
14373
14374 #ifdef __STDC__
14375 # include <limits.h>
14376 #else
14377 # include <assert.h>
14378 #endif
14379
14380 #undef $ac_func
14381
14382 /* Override any GCC internal prototype to avoid an error.
14383    Use char because int might match the return type of a GCC
14384    builtin and then its argument prototype would still apply.  */
14385 #ifdef __cplusplus
14386 extern "C"
14387 #endif
14388 char $ac_func ();
14389 /* The GNU C library defines this for functions which it implements
14390     to always fail with ENOSYS.  Some functions are actually named
14391     something starting with __ and the normal name is an alias.  */
14392 #if defined __stub_$ac_func || defined __stub___$ac_func
14393 choke me
14394 #endif
14395
14396 int
14397 main ()
14398 {
14399 return $ac_func ();
14400   ;
14401   return 0;
14402 }
14403 _ACEOF
14404 rm -f conftest.$ac_objext conftest$ac_exeext
14405 if { (ac_try="$ac_link"
14406 case "(($ac_try" in
14407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14408   *) ac_try_echo=$ac_try;;
14409 esac
14410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14411   (eval "$ac_link") 2>conftest.er1
14412   ac_status=$?
14413   grep -v '^ *+' conftest.er1 >conftest.err
14414   rm -f conftest.er1
14415   cat conftest.err >&5
14416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417   (exit $ac_status); } && {
14418          test -z "$ac_c_werror_flag" ||
14419          test ! -s conftest.err
14420        } && test -s conftest$ac_exeext &&
14421        $as_test_x conftest$ac_exeext; then
14422   eval "$as_ac_var=yes"
14423 else
14424   echo "$as_me: failed program was:" >&5
14425 sed 's/^/| /' conftest.$ac_ext >&5
14426
14427         eval "$as_ac_var=no"
14428 fi
14429
14430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14431       conftest$ac_exeext conftest.$ac_ext
14432 fi
14433 ac_res=`eval echo '${'$as_ac_var'}'`
14434                { echo "$as_me:$LINENO: result: $ac_res" >&5
14435 echo "${ECHO_T}$ac_res" >&6; }
14436 if test `eval echo '${'$as_ac_var'}'` = yes; then
14437   cat >>confdefs.h <<_ACEOF
14438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14439 _ACEOF
14440
14441 fi
14442 done
14443
14444
14445
14446 # Check whether --with-pam was given.
14447 if test "${with_pam+set}" = set; then
14448   withval=$with_pam; with_pam=$withval
14449 else
14450   with_pam=yes
14451 fi
14452
14453 if test "$with_pam" != no; then
14454   if test -d $with_pam; then
14455     CPPFLAGS="$CPPFLAGS -I${with_pam}/include"
14456     LDFLAGS="$LDFLAGS -L${with_pam}/lib"
14457   fi
14458
14459
14460 for ac_header in security/pam_appl.h pam/pam_appl.h
14461 do
14462 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14464   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14467   echo $ECHO_N "(cached) $ECHO_C" >&6
14468 fi
14469 ac_res=`eval echo '${'$as_ac_Header'}'`
14470                { echo "$as_me:$LINENO: result: $ac_res" >&5
14471 echo "${ECHO_T}$ac_res" >&6; }
14472 else
14473   # Is the header compilable?
14474 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14475 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14476 cat >conftest.$ac_ext <<_ACEOF
14477 /* confdefs.h.  */
14478 _ACEOF
14479 cat confdefs.h >>conftest.$ac_ext
14480 cat >>conftest.$ac_ext <<_ACEOF
14481 /* end confdefs.h.  */
14482 $ac_includes_default
14483 #include <$ac_header>
14484 _ACEOF
14485 rm -f conftest.$ac_objext
14486 if { (ac_try="$ac_compile"
14487 case "(($ac_try" in
14488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14489   *) ac_try_echo=$ac_try;;
14490 esac
14491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14492   (eval "$ac_compile") 2>conftest.er1
14493   ac_status=$?
14494   grep -v '^ *+' conftest.er1 >conftest.err
14495   rm -f conftest.er1
14496   cat conftest.err >&5
14497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498   (exit $ac_status); } && {
14499          test -z "$ac_c_werror_flag" ||
14500          test ! -s conftest.err
14501        } && test -s conftest.$ac_objext; then
14502   ac_header_compiler=yes
14503 else
14504   echo "$as_me: failed program was:" >&5
14505 sed 's/^/| /' conftest.$ac_ext >&5
14506
14507         ac_header_compiler=no
14508 fi
14509
14510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14511 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14512 echo "${ECHO_T}$ac_header_compiler" >&6; }
14513
14514 # Is the header present?
14515 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14516 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14517 cat >conftest.$ac_ext <<_ACEOF
14518 /* confdefs.h.  */
14519 _ACEOF
14520 cat confdefs.h >>conftest.$ac_ext
14521 cat >>conftest.$ac_ext <<_ACEOF
14522 /* end confdefs.h.  */
14523 #include <$ac_header>
14524 _ACEOF
14525 if { (ac_try="$ac_cpp conftest.$ac_ext"
14526 case "(($ac_try" in
14527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14528   *) ac_try_echo=$ac_try;;
14529 esac
14530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14531   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14532   ac_status=$?
14533   grep -v '^ *+' conftest.er1 >conftest.err
14534   rm -f conftest.er1
14535   cat conftest.err >&5
14536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537   (exit $ac_status); } >/dev/null && {
14538          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14539          test ! -s conftest.err
14540        }; then
14541   ac_header_preproc=yes
14542 else
14543   echo "$as_me: failed program was:" >&5
14544 sed 's/^/| /' conftest.$ac_ext >&5
14545
14546   ac_header_preproc=no
14547 fi
14548
14549 rm -f conftest.err conftest.$ac_ext
14550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14551 echo "${ECHO_T}$ac_header_preproc" >&6; }
14552
14553 # So?  What about this header?
14554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14555   yes:no: )
14556     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14558     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14559 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14560     ac_header_preproc=yes
14561     ;;
14562   no:yes:* )
14563     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14565     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14566 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14567     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14568 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14569     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14570 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14571     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14573     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14574 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14575
14576     ;;
14577 esac
14578 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14581   echo $ECHO_N "(cached) $ECHO_C" >&6
14582 else
14583   eval "$as_ac_Header=\$ac_header_preproc"
14584 fi
14585 ac_res=`eval echo '${'$as_ac_Header'}'`
14586                { echo "$as_me:$LINENO: result: $ac_res" >&5
14587 echo "${ECHO_T}$ac_res" >&6; }
14588
14589 fi
14590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14591   cat >>confdefs.h <<_ACEOF
14592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14593 _ACEOF
14594
14595 fi
14596
14597 done
14598
14599   cmu_save_LIBS="$LIBS"
14600   { echo "$as_me:$LINENO: checking for pam_start" >&5
14601 echo $ECHO_N "checking for pam_start... $ECHO_C" >&6; }
14602 if test "${ac_cv_func_pam_start+set}" = set; then
14603   echo $ECHO_N "(cached) $ECHO_C" >&6
14604 else
14605   cat >conftest.$ac_ext <<_ACEOF
14606 /* confdefs.h.  */
14607 _ACEOF
14608 cat confdefs.h >>conftest.$ac_ext
14609 cat >>conftest.$ac_ext <<_ACEOF
14610 /* end confdefs.h.  */
14611 /* Define pam_start to an innocuous variant, in case <limits.h> declares pam_start.
14612    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14613 #define pam_start innocuous_pam_start
14614
14615 /* System header to define __stub macros and hopefully few prototypes,
14616     which can conflict with char pam_start (); below.
14617     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14618     <limits.h> exists even on freestanding compilers.  */
14619
14620 #ifdef __STDC__
14621 # include <limits.h>
14622 #else
14623 # include <assert.h>
14624 #endif
14625
14626 #undef pam_start
14627
14628 /* Override any GCC internal prototype to avoid an error.
14629    Use char because int might match the return type of a GCC
14630    builtin and then its argument prototype would still apply.  */
14631 #ifdef __cplusplus
14632 extern "C"
14633 #endif
14634 char pam_start ();
14635 /* The GNU C library defines this for functions which it implements
14636     to always fail with ENOSYS.  Some functions are actually named
14637     something starting with __ and the normal name is an alias.  */
14638 #if defined __stub_pam_start || defined __stub___pam_start
14639 choke me
14640 #endif
14641
14642 int
14643 main ()
14644 {
14645 return pam_start ();
14646   ;
14647   return 0;
14648 }
14649 _ACEOF
14650 rm -f conftest.$ac_objext conftest$ac_exeext
14651 if { (ac_try="$ac_link"
14652 case "(($ac_try" in
14653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14654   *) ac_try_echo=$ac_try;;
14655 esac
14656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14657   (eval "$ac_link") 2>conftest.er1
14658   ac_status=$?
14659   grep -v '^ *+' conftest.er1 >conftest.err
14660   rm -f conftest.er1
14661   cat conftest.err >&5
14662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663   (exit $ac_status); } && {
14664          test -z "$ac_c_werror_flag" ||
14665          test ! -s conftest.err
14666        } && test -s conftest$ac_exeext &&
14667        $as_test_x conftest$ac_exeext; then
14668   ac_cv_func_pam_start=yes
14669 else
14670   echo "$as_me: failed program was:" >&5
14671 sed 's/^/| /' conftest.$ac_ext >&5
14672
14673         ac_cv_func_pam_start=no
14674 fi
14675
14676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14677       conftest$ac_exeext conftest.$ac_ext
14678 fi
14679 { echo "$as_me:$LINENO: result: $ac_cv_func_pam_start" >&5
14680 echo "${ECHO_T}$ac_cv_func_pam_start" >&6; }
14681 if test $ac_cv_func_pam_start = yes; then
14682   :
14683 else
14684   LIBS="-lpam $LIBS"
14685         cat >conftest.$ac_ext <<_ACEOF
14686 /* confdefs.h.  */
14687 _ACEOF
14688 cat confdefs.h >>conftest.$ac_ext
14689 cat >>conftest.$ac_ext <<_ACEOF
14690 /* end confdefs.h.  */
14691
14692 #include <sys/types.h>
14693 #ifdef HAVE_PAM_PAM_APPL_H
14694 #include <pam/pam_appl.h>
14695 #endif
14696 #ifdef HAVE_SECURITY_PAM_H
14697 #include <security/pam_appl.h>
14698 #endif
14699 int
14700 main ()
14701 {
14702
14703 const char *service="foo";
14704 const char *user="bar";
14705 pam_handle_t *pamh;
14706 struct pam_conv *conv;
14707 int baz;
14708 baz = pam_start(service, user, conv, &pamh);
14709 return 0;
14710
14711   ;
14712   return 0;
14713 }
14714 _ACEOF
14715 rm -f conftest.$ac_objext conftest$ac_exeext
14716 if { (ac_try="$ac_link"
14717 case "(($ac_try" in
14718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719   *) ac_try_echo=$ac_try;;
14720 esac
14721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14722   (eval "$ac_link") 2>conftest.er1
14723   ac_status=$?
14724   grep -v '^ *+' conftest.er1 >conftest.err
14725   rm -f conftest.er1
14726   cat conftest.err >&5
14727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728   (exit $ac_status); } && {
14729          test -z "$ac_c_werror_flag" ||
14730          test ! -s conftest.err
14731        } && test -s conftest$ac_exeext &&
14732        $as_test_x conftest$ac_exeext; then
14733   LIBPAM="-lpam"
14734 else
14735   echo "$as_me: failed program was:" >&5
14736 sed 's/^/| /' conftest.$ac_ext >&5
14737
14738
14739 fi
14740
14741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14742       conftest$ac_exeext conftest.$ac_ext
14743
14744 fi
14745
14746   LIBS="$cmu_save_LIBS $LIBPAM"
14747 fi
14748
14749
14750 # Check whether --with-saslauthd was given.
14751 if test "${with_saslauthd+set}" = set; then
14752   withval=$with_saslauthd; with_saslauthd=$withval
14753 else
14754   with_saslauthd=yes
14755 fi
14756
14757 if test "$with_saslauthd" != no; then
14758   if test "$with_saslauthd" = yes; then
14759     with_saslauthd="/var/state/saslauthd"
14760   fi
14761
14762 cat >>confdefs.h <<\_ACEOF
14763 #define HAVE_SASLAUTHD
14764 _ACEOF
14765
14766
14767 cat >>confdefs.h <<_ACEOF
14768 #define PATH_SASLAUTHD_RUNDIR "$with_saslauthd"
14769 _ACEOF
14770
14771 fi
14772  if test "$with_saslauthd" != no; then
14773   SASLAUTHD_TRUE=
14774   SASLAUTHD_FALSE='#'
14775 else
14776   SASLAUTHD_TRUE='#'
14777   SASLAUTHD_FALSE=
14778 fi
14779
14780 { echo "$as_me:$LINENO: checking if I should include saslauthd" >&5
14781 echo $ECHO_N "checking if I should include saslauthd... $ECHO_C" >&6; }
14782 { echo "$as_me:$LINENO: result: $with_saslauthd" >&5
14783 echo "${ECHO_T}$with_saslauthd" >&6; }
14784
14785
14786 # Check whether --with-authdaemond was given.
14787 if test "${with_authdaemond+set}" = set; then
14788   withval=$with_authdaemond; with_authdaemon=$withval
14789 else
14790   with_authdaemon=yes
14791 fi
14792
14793 if test "$with_authdaemon" != no; then
14794   if test "$with_authdaemon" = yes; then
14795     with_authdaemon="/dev/null"
14796   fi
14797
14798 cat >>confdefs.h <<\_ACEOF
14799 #define HAVE_AUTHDAEMON
14800 _ACEOF
14801
14802
14803 cat >>confdefs.h <<_ACEOF
14804 #define PATH_AUTHDAEMON_SOCKET "$with_authdaemon"
14805 _ACEOF
14806
14807 fi
14808 { echo "$as_me:$LINENO: checking to include Courier authdaemond support" >&5
14809 echo $ECHO_N "checking to include Courier authdaemond support... $ECHO_C" >&6; }
14810 { echo "$as_me:$LINENO: result: $with_authdaemon" >&5
14811 echo "${ECHO_T}$with_authdaemon" >&6; }
14812
14813
14814 # Check whether --with-pwcheck was given.
14815 if test "${with_pwcheck+set}" = set; then
14816   withval=$with_pwcheck; with_pwcheck=$withval
14817 else
14818   with_pwcheck=no
14819 fi
14820
14821 if test "$with_pwcheck" != no; then
14822    if test "$with_pwcheck" = yes; then
14823      with_pwcheck=/var/pwcheck
14824    fi
14825
14826 cat >>confdefs.h <<\_ACEOF
14827 #define HAVE_PWCHECK
14828 _ACEOF
14829
14830
14831 cat >>confdefs.h <<_ACEOF
14832 #define PWCHECKDIR "$with_pwcheck"
14833 _ACEOF
14834
14835    { echo "$as_me:$LINENO: checking for getspnam" >&5
14836 echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; }
14837 if test "${ac_cv_func_getspnam+set}" = set; then
14838   echo $ECHO_N "(cached) $ECHO_C" >&6
14839 else
14840   cat >conftest.$ac_ext <<_ACEOF
14841 /* confdefs.h.  */
14842 _ACEOF
14843 cat confdefs.h >>conftest.$ac_ext
14844 cat >>conftest.$ac_ext <<_ACEOF
14845 /* end confdefs.h.  */
14846 /* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
14847    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14848 #define getspnam innocuous_getspnam
14849
14850 /* System header to define __stub macros and hopefully few prototypes,
14851     which can conflict with char getspnam (); below.
14852     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14853     <limits.h> exists even on freestanding compilers.  */
14854
14855 #ifdef __STDC__
14856 # include <limits.h>
14857 #else
14858 # include <assert.h>
14859 #endif
14860
14861 #undef getspnam
14862
14863 /* Override any GCC internal prototype to avoid an error.
14864    Use char because int might match the return type of a GCC
14865    builtin and then its argument prototype would still apply.  */
14866 #ifdef __cplusplus
14867 extern "C"
14868 #endif
14869 char getspnam ();
14870 /* The GNU C library defines this for functions which it implements
14871     to always fail with ENOSYS.  Some functions are actually named
14872     something starting with __ and the normal name is an alias.  */
14873 #if defined __stub_getspnam || defined __stub___getspnam
14874 choke me
14875 #endif
14876
14877 int
14878 main ()
14879 {
14880 return getspnam ();
14881   ;
14882   return 0;
14883 }
14884 _ACEOF
14885 rm -f conftest.$ac_objext conftest$ac_exeext
14886 if { (ac_try="$ac_link"
14887 case "(($ac_try" in
14888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889   *) ac_try_echo=$ac_try;;
14890 esac
14891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14892   (eval "$ac_link") 2>conftest.er1
14893   ac_status=$?
14894   grep -v '^ *+' conftest.er1 >conftest.err
14895   rm -f conftest.er1
14896   cat conftest.err >&5
14897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898   (exit $ac_status); } && {
14899          test -z "$ac_c_werror_flag" ||
14900          test ! -s conftest.err
14901        } && test -s conftest$ac_exeext &&
14902        $as_test_x conftest$ac_exeext; then
14903   ac_cv_func_getspnam=yes
14904 else
14905   echo "$as_me: failed program was:" >&5
14906 sed 's/^/| /' conftest.$ac_ext >&5
14907
14908         ac_cv_func_getspnam=no
14909 fi
14910
14911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14912       conftest$ac_exeext conftest.$ac_ext
14913 fi
14914 { echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
14915 echo "${ECHO_T}$ac_cv_func_getspnam" >&6; }
14916 if test $ac_cv_func_getspnam = yes; then
14917   PWCHECKMETH="getspnam"
14918 else
14919   PWCHECKMETH="getpwnam"
14920 fi
14921
14922
14923 fi
14924  if test "$with_pwcheck" != no; then
14925   PWCHECK_TRUE=
14926   PWCHECK_FALSE='#'
14927 else
14928   PWCHECK_TRUE='#'
14929   PWCHECK_FALSE=
14930 fi
14931
14932 { echo "$as_me:$LINENO: checking if I should include pwcheck" >&5
14933 echo $ECHO_N "checking if I should include pwcheck... $ECHO_C" >&6; }
14934 { echo "$as_me:$LINENO: result: $with_pwcheck" >&5
14935 echo "${ECHO_T}$with_pwcheck" >&6; }
14936
14937
14938 # Check whether --with-ipctype was given.
14939 if test "${with_ipctype+set}" = set; then
14940   withval=$with_ipctype; with_ipctype=$withval
14941 else
14942   with_ipctype="unix"
14943 fi
14944
14945 IPCTYPE=$with_ipctype
14946
14947 LIB_DOOR=
14948 if test "$with_ipctype" = "doors"; then
14949    LIB_DOOR="-ldoor"
14950
14951 cat >>confdefs.h <<\_ACEOF
14952 #define USE_DOORS
14953 _ACEOF
14954
14955 fi
14956
14957
14958 # Check whether --enable-alwaystrue was given.
14959 if test "${enable_alwaystrue+set}" = set; then
14960   enableval=$enable_alwaystrue; enable_alwaystrue=$enableval
14961 else
14962   enable_alwaystrue=no
14963 fi
14964
14965 if test "$enable_alwaystrue" = yes; then
14966
14967 cat >>confdefs.h <<\_ACEOF
14968 #define HAVE_ALWAYSTRUE
14969 _ACEOF
14970
14971 fi
14972 { echo "$as_me:$LINENO: checking if I should include the alwaystrue verifier" >&5
14973 echo $ECHO_N "checking if I should include the alwaystrue verifier... $ECHO_C" >&6; }
14974 { echo "$as_me:$LINENO: result: $enable_alwaystrue" >&5
14975 echo "${ECHO_T}$enable_alwaystrue" >&6; }
14976
14977 # Check whether --enable-checkapop was given.
14978 if test "${enable_checkapop+set}" = set; then
14979   enableval=$enable_checkapop; checkapop=$enableval
14980 else
14981   checkapop=yes
14982 fi
14983
14984
14985 { echo "$as_me:$LINENO: checking if we should enable sasl_checkapop" >&5
14986 echo $ECHO_N "checking if we should enable sasl_checkapop... $ECHO_C" >&6; }
14987 if test "$checkapop" != no; then
14988   { echo "$as_me:$LINENO: result: enabled" >&5
14989 echo "${ECHO_T}enabled" >&6; }
14990
14991 cat >>confdefs.h <<\_ACEOF
14992 #define DO_SASL_CHECKAPOP
14993 _ACEOF
14994
14995 else
14996   { echo "$as_me:$LINENO: result: disabled" >&5
14997 echo "${ECHO_T}disabled" >&6; }
14998 fi
14999
15000 # Check whether --enable-cram was given.
15001 if test "${enable_cram+set}" = set; then
15002   enableval=$enable_cram; cram=$enableval
15003 else
15004   cram=yes
15005 fi
15006
15007
15008 { echo "$as_me:$LINENO: checking CRAM-MD5" >&5
15009 echo $ECHO_N "checking CRAM-MD5... $ECHO_C" >&6; }
15010 if test "$cram" != no; then
15011   { echo "$as_me:$LINENO: result: enabled" >&5
15012 echo "${ECHO_T}enabled" >&6; }
15013   SASL_MECHS="$SASL_MECHS libcrammd5.la"
15014   if test "$enable_static" = yes; then
15015     SASL_STATIC_OBJS="$SASL_STATIC_OBJS cram.o"
15016     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/cram.c"
15017
15018 cat >>confdefs.h <<\_ACEOF
15019 #define STATIC_CRAMMD5
15020 _ACEOF
15021
15022   fi
15023 else
15024   { echo "$as_me:$LINENO: result: disabled" >&5
15025 echo "${ECHO_T}disabled" >&6; }
15026 fi
15027
15028
15029 # Check whether --with-lib-subdir was given.
15030 if test "${with_lib_subdir+set}" = set; then
15031   withval=$with_lib_subdir;
15032 fi
15033
15034 { echo "$as_me:$LINENO: checking for long" >&5
15035 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
15036 if test "${ac_cv_type_long+set}" = set; then
15037   echo $ECHO_N "(cached) $ECHO_C" >&6
15038 else
15039   cat >conftest.$ac_ext <<_ACEOF
15040 /* confdefs.h.  */
15041 _ACEOF
15042 cat confdefs.h >>conftest.$ac_ext
15043 cat >>conftest.$ac_ext <<_ACEOF
15044 /* end confdefs.h.  */
15045 $ac_includes_default
15046 typedef long ac__type_new_;
15047 int
15048 main ()
15049 {
15050 if ((ac__type_new_ *) 0)
15051   return 0;
15052 if (sizeof (ac__type_new_))
15053   return 0;
15054   ;
15055   return 0;
15056 }
15057 _ACEOF
15058 rm -f conftest.$ac_objext
15059 if { (ac_try="$ac_compile"
15060 case "(($ac_try" in
15061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15062   *) ac_try_echo=$ac_try;;
15063 esac
15064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15065   (eval "$ac_compile") 2>conftest.er1
15066   ac_status=$?
15067   grep -v '^ *+' conftest.er1 >conftest.err
15068   rm -f conftest.er1
15069   cat conftest.err >&5
15070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071   (exit $ac_status); } && {
15072          test -z "$ac_c_werror_flag" ||
15073          test ! -s conftest.err
15074        } && test -s conftest.$ac_objext; then
15075   ac_cv_type_long=yes
15076 else
15077   echo "$as_me: failed program was:" >&5
15078 sed 's/^/| /' conftest.$ac_ext >&5
15079
15080         ac_cv_type_long=no
15081 fi
15082
15083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15084 fi
15085 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15086 echo "${ECHO_T}$ac_cv_type_long" >&6; }
15087
15088 # The cast to long int works around a bug in the HP C Compiler
15089 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15090 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15091 # This bug is HP SR number 8606223364.
15092 { echo "$as_me:$LINENO: checking size of long" >&5
15093 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
15094 if test "${ac_cv_sizeof_long+set}" = set; then
15095   echo $ECHO_N "(cached) $ECHO_C" >&6
15096 else
15097   if test "$cross_compiling" = yes; then
15098   # Depending upon the size, compute the lo and hi bounds.
15099 cat >conftest.$ac_ext <<_ACEOF
15100 /* confdefs.h.  */
15101 _ACEOF
15102 cat confdefs.h >>conftest.$ac_ext
15103 cat >>conftest.$ac_ext <<_ACEOF
15104 /* end confdefs.h.  */
15105 $ac_includes_default
15106    typedef long ac__type_sizeof_;
15107 int
15108 main ()
15109 {
15110 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15111 test_array [0] = 0
15112
15113   ;
15114   return 0;
15115 }
15116 _ACEOF
15117 rm -f conftest.$ac_objext
15118 if { (ac_try="$ac_compile"
15119 case "(($ac_try" in
15120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15121   *) ac_try_echo=$ac_try;;
15122 esac
15123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15124   (eval "$ac_compile") 2>conftest.er1
15125   ac_status=$?
15126   grep -v '^ *+' conftest.er1 >conftest.err
15127   rm -f conftest.er1
15128   cat conftest.err >&5
15129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130   (exit $ac_status); } && {
15131          test -z "$ac_c_werror_flag" ||
15132          test ! -s conftest.err
15133        } && test -s conftest.$ac_objext; then
15134   ac_lo=0 ac_mid=0
15135   while :; do
15136     cat >conftest.$ac_ext <<_ACEOF
15137 /* confdefs.h.  */
15138 _ACEOF
15139 cat confdefs.h >>conftest.$ac_ext
15140 cat >>conftest.$ac_ext <<_ACEOF
15141 /* end confdefs.h.  */
15142 $ac_includes_default
15143    typedef long ac__type_sizeof_;
15144 int
15145 main ()
15146 {
15147 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15148 test_array [0] = 0
15149
15150   ;
15151   return 0;
15152 }
15153 _ACEOF
15154 rm -f conftest.$ac_objext
15155 if { (ac_try="$ac_compile"
15156 case "(($ac_try" in
15157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158   *) ac_try_echo=$ac_try;;
15159 esac
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161   (eval "$ac_compile") 2>conftest.er1
15162   ac_status=$?
15163   grep -v '^ *+' conftest.er1 >conftest.err
15164   rm -f conftest.er1
15165   cat conftest.err >&5
15166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167   (exit $ac_status); } && {
15168          test -z "$ac_c_werror_flag" ||
15169          test ! -s conftest.err
15170        } && test -s conftest.$ac_objext; then
15171   ac_hi=$ac_mid; break
15172 else
15173   echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15175
15176         ac_lo=`expr $ac_mid + 1`
15177                         if test $ac_lo -le $ac_mid; then
15178                           ac_lo= ac_hi=
15179                           break
15180                         fi
15181                         ac_mid=`expr 2 '*' $ac_mid + 1`
15182 fi
15183
15184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15185   done
15186 else
15187   echo "$as_me: failed program was:" >&5
15188 sed 's/^/| /' conftest.$ac_ext >&5
15189
15190         cat >conftest.$ac_ext <<_ACEOF
15191 /* confdefs.h.  */
15192 _ACEOF
15193 cat confdefs.h >>conftest.$ac_ext
15194 cat >>conftest.$ac_ext <<_ACEOF
15195 /* end confdefs.h.  */
15196 $ac_includes_default
15197    typedef long ac__type_sizeof_;
15198 int
15199 main ()
15200 {
15201 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15202 test_array [0] = 0
15203
15204   ;
15205   return 0;
15206 }
15207 _ACEOF
15208 rm -f conftest.$ac_objext
15209 if { (ac_try="$ac_compile"
15210 case "(($ac_try" in
15211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15212   *) ac_try_echo=$ac_try;;
15213 esac
15214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15215   (eval "$ac_compile") 2>conftest.er1
15216   ac_status=$?
15217   grep -v '^ *+' conftest.er1 >conftest.err
15218   rm -f conftest.er1
15219   cat conftest.err >&5
15220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221   (exit $ac_status); } && {
15222          test -z "$ac_c_werror_flag" ||
15223          test ! -s conftest.err
15224        } && test -s conftest.$ac_objext; then
15225   ac_hi=-1 ac_mid=-1
15226   while :; do
15227     cat >conftest.$ac_ext <<_ACEOF
15228 /* confdefs.h.  */
15229 _ACEOF
15230 cat confdefs.h >>conftest.$ac_ext
15231 cat >>conftest.$ac_ext <<_ACEOF
15232 /* end confdefs.h.  */
15233 $ac_includes_default
15234    typedef long ac__type_sizeof_;
15235 int
15236 main ()
15237 {
15238 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15239 test_array [0] = 0
15240
15241   ;
15242   return 0;
15243 }
15244 _ACEOF
15245 rm -f conftest.$ac_objext
15246 if { (ac_try="$ac_compile"
15247 case "(($ac_try" in
15248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15249   *) ac_try_echo=$ac_try;;
15250 esac
15251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15252   (eval "$ac_compile") 2>conftest.er1
15253   ac_status=$?
15254   grep -v '^ *+' conftest.er1 >conftest.err
15255   rm -f conftest.er1
15256   cat conftest.err >&5
15257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258   (exit $ac_status); } && {
15259          test -z "$ac_c_werror_flag" ||
15260          test ! -s conftest.err
15261        } && test -s conftest.$ac_objext; then
15262   ac_lo=$ac_mid; break
15263 else
15264   echo "$as_me: failed program was:" >&5
15265 sed 's/^/| /' conftest.$ac_ext >&5
15266
15267         ac_hi=`expr '(' $ac_mid ')' - 1`
15268                         if test $ac_mid -le $ac_hi; then
15269                           ac_lo= ac_hi=
15270                           break
15271                         fi
15272                         ac_mid=`expr 2 '*' $ac_mid`
15273 fi
15274
15275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15276   done
15277 else
15278   echo "$as_me: failed program was:" >&5
15279 sed 's/^/| /' conftest.$ac_ext >&5
15280
15281         ac_lo= ac_hi=
15282 fi
15283
15284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15285 fi
15286
15287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15288 # Binary search between lo and hi bounds.
15289 while test "x$ac_lo" != "x$ac_hi"; do
15290   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15291   cat >conftest.$ac_ext <<_ACEOF
15292 /* confdefs.h.  */
15293 _ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h.  */
15297 $ac_includes_default
15298    typedef long ac__type_sizeof_;
15299 int
15300 main ()
15301 {
15302 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15303 test_array [0] = 0
15304
15305   ;
15306   return 0;
15307 }
15308 _ACEOF
15309 rm -f conftest.$ac_objext
15310 if { (ac_try="$ac_compile"
15311 case "(($ac_try" in
15312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15313   *) ac_try_echo=$ac_try;;
15314 esac
15315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15316   (eval "$ac_compile") 2>conftest.er1
15317   ac_status=$?
15318   grep -v '^ *+' conftest.er1 >conftest.err
15319   rm -f conftest.er1
15320   cat conftest.err >&5
15321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322   (exit $ac_status); } && {
15323          test -z "$ac_c_werror_flag" ||
15324          test ! -s conftest.err
15325        } && test -s conftest.$ac_objext; then
15326   ac_hi=$ac_mid
15327 else
15328   echo "$as_me: failed program was:" >&5
15329 sed 's/^/| /' conftest.$ac_ext >&5
15330
15331         ac_lo=`expr '(' $ac_mid ')' + 1`
15332 fi
15333
15334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15335 done
15336 case $ac_lo in
15337 ?*) ac_cv_sizeof_long=$ac_lo;;
15338 '') if test "$ac_cv_type_long" = yes; then
15339      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
15340 See \`config.log' for more details." >&5
15341 echo "$as_me: error: cannot compute sizeof (long)
15342 See \`config.log' for more details." >&2;}
15343    { (exit 77); exit 77; }; }
15344    else
15345      ac_cv_sizeof_long=0
15346    fi ;;
15347 esac
15348 else
15349   cat >conftest.$ac_ext <<_ACEOF
15350 /* confdefs.h.  */
15351 _ACEOF
15352 cat confdefs.h >>conftest.$ac_ext
15353 cat >>conftest.$ac_ext <<_ACEOF
15354 /* end confdefs.h.  */
15355 $ac_includes_default
15356    typedef long ac__type_sizeof_;
15357 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15358 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15359 #include <stdio.h>
15360 #include <stdlib.h>
15361 int
15362 main ()
15363 {
15364
15365   FILE *f = fopen ("conftest.val", "w");
15366   if (! f)
15367     return 1;
15368   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15369     {
15370       long int i = longval ();
15371       if (i != ((long int) (sizeof (ac__type_sizeof_))))
15372         return 1;
15373       fprintf (f, "%ld\n", i);
15374     }
15375   else
15376     {
15377       unsigned long int i = ulongval ();
15378       if (i != ((long int) (sizeof (ac__type_sizeof_))))
15379         return 1;
15380       fprintf (f, "%lu\n", i);
15381     }
15382   return ferror (f) || fclose (f) != 0;
15383
15384   ;
15385   return 0;
15386 }
15387 _ACEOF
15388 rm -f conftest$ac_exeext
15389 if { (ac_try="$ac_link"
15390 case "(($ac_try" in
15391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15392   *) ac_try_echo=$ac_try;;
15393 esac
15394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15395   (eval "$ac_link") 2>&5
15396   ac_status=$?
15397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15399   { (case "(($ac_try" in
15400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15401   *) ac_try_echo=$ac_try;;
15402 esac
15403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15404   (eval "$ac_try") 2>&5
15405   ac_status=$?
15406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407   (exit $ac_status); }; }; then
15408   ac_cv_sizeof_long=`cat conftest.val`
15409 else
15410   echo "$as_me: program exited with status $ac_status" >&5
15411 echo "$as_me: failed program was:" >&5
15412 sed 's/^/| /' conftest.$ac_ext >&5
15413
15414 ( exit $ac_status )
15415 if test "$ac_cv_type_long" = yes; then
15416      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
15417 See \`config.log' for more details." >&5
15418 echo "$as_me: error: cannot compute sizeof (long)
15419 See \`config.log' for more details." >&2;}
15420    { (exit 77); exit 77; }; }
15421    else
15422      ac_cv_sizeof_long=0
15423    fi
15424 fi
15425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15426 fi
15427 rm -f conftest.val
15428 fi
15429 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15430 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
15431
15432
15433
15434 cat >>confdefs.h <<_ACEOF
15435 #define SIZEOF_LONG $ac_cv_sizeof_long
15436 _ACEOF
15437
15438
15439 { echo "$as_me:$LINENO: checking what directory libraries are found in" >&5
15440 echo $ECHO_N "checking what directory libraries are found in... $ECHO_C" >&6; }
15441 if test "${ac_cv_cmu_lib_subdir+set}" = set; then
15442   echo $ECHO_N "(cached) $ECHO_C" >&6
15443 else
15444   test "X$with_lib_subdir" = "Xyes" && with_lib_subdir=
15445 test "X$with_lib_subdir" = "Xno" && with_lib_subdir=
15446 if test "X$with_lib_subdir" = "X" ; then
15447   ac_cv_cmu_lib_subdir=lib
15448   if test $ac_cv_sizeof_long -eq 4 ; then
15449     test -d /usr/lib32 && ac_cv_cmu_lib_subdir=lib32
15450   fi
15451   if test $ac_cv_sizeof_long -eq 8 ; then
15452     test -d /usr/lib64 && ac_cv_cmu_lib_subdir=lib64
15453   fi
15454 else
15455   ac_cv_cmu_lib_subdir=$with_lib_subdir
15456 fi
15457 fi
15458 { echo "$as_me:$LINENO: result: $ac_cv_cmu_lib_subdir" >&5
15459 echo "${ECHO_T}$ac_cv_cmu_lib_subdir" >&6; }
15460 CMU_LIB_SUBDIR=$ac_cv_cmu_lib_subdir
15461
15462
15463
15464
15465
15466 # Check whether --with-openssl was given.
15467 if test "${with_openssl+set}" = set; then
15468   withval=$with_openssl; with_openssl=$withval
15469 else
15470   with_openssl="yes"
15471 fi
15472
15473
15474         save_CPPFLAGS=$CPPFLAGS
15475         save_LDFLAGS=$LDFLAGS
15476
15477         if test -d $with_openssl; then
15478           CPPFLAGS="${CPPFLAGS} -I${with_openssl}/include"
15479
15480   # this is CMU ADD LIBPATH
15481   if test "$andrew_runpath_switch" = "none" ; then
15482         LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
15483   else
15484         LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR $andrew_runpath_switch${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
15485   fi
15486
15487         fi
15488
15489 case "$with_openssl" in
15490         no)
15491           with_openssl="no";;
15492         *)
15493                                   LIB_RSAREF=""
15494                 { echo "$as_me:$LINENO: checking for RSAPublicEncrypt in -lrsaref" >&5
15495 echo $ECHO_N "checking for RSAPublicEncrypt in -lrsaref... $ECHO_C" >&6; }
15496 if test "${ac_cv_lib_rsaref_RSAPublicEncrypt+set}" = set; then
15497   echo $ECHO_N "(cached) $ECHO_C" >&6
15498 else
15499   ac_check_lib_save_LIBS=$LIBS
15500 LIBS="-lrsaref  $LIBS"
15501 cat >conftest.$ac_ext <<_ACEOF
15502 /* confdefs.h.  */
15503 _ACEOF
15504 cat confdefs.h >>conftest.$ac_ext
15505 cat >>conftest.$ac_ext <<_ACEOF
15506 /* end confdefs.h.  */
15507
15508 /* Override any GCC internal prototype to avoid an error.
15509    Use char because int might match the return type of a GCC
15510    builtin and then its argument prototype would still apply.  */
15511 #ifdef __cplusplus
15512 extern "C"
15513 #endif
15514 char RSAPublicEncrypt ();
15515 int
15516 main ()
15517 {
15518 return RSAPublicEncrypt ();
15519   ;
15520   return 0;
15521 }
15522 _ACEOF
15523 rm -f conftest.$ac_objext conftest$ac_exeext
15524 if { (ac_try="$ac_link"
15525 case "(($ac_try" in
15526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15527   *) ac_try_echo=$ac_try;;
15528 esac
15529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15530   (eval "$ac_link") 2>conftest.er1
15531   ac_status=$?
15532   grep -v '^ *+' conftest.er1 >conftest.err
15533   rm -f conftest.er1
15534   cat conftest.err >&5
15535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536   (exit $ac_status); } && {
15537          test -z "$ac_c_werror_flag" ||
15538          test ! -s conftest.err
15539        } && test -s conftest$ac_exeext &&
15540        $as_test_x conftest$ac_exeext; then
15541   ac_cv_lib_rsaref_RSAPublicEncrypt=yes
15542 else
15543   echo "$as_me: failed program was:" >&5
15544 sed 's/^/| /' conftest.$ac_ext >&5
15545
15546         ac_cv_lib_rsaref_RSAPublicEncrypt=no
15547 fi
15548
15549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15550       conftest$ac_exeext conftest.$ac_ext
15551 LIBS=$ac_check_lib_save_LIBS
15552 fi
15553 { echo "$as_me:$LINENO: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5
15554 echo "${ECHO_T}$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6; }
15555 if test $ac_cv_lib_rsaref_RSAPublicEncrypt = yes; then
15556   cmu_have_rsaref=yes;
15557                         { echo "$as_me:$LINENO: checking for RSAPublicEncrypt in -lRSAglue" >&5
15558 echo $ECHO_N "checking for RSAPublicEncrypt in -lRSAglue... $ECHO_C" >&6; }
15559 if test "${ac_cv_lib_RSAglue_RSAPublicEncrypt+set}" = set; then
15560   echo $ECHO_N "(cached) $ECHO_C" >&6
15561 else
15562   ac_check_lib_save_LIBS=$LIBS
15563 LIBS="-lRSAglue  $LIBS"
15564 cat >conftest.$ac_ext <<_ACEOF
15565 /* confdefs.h.  */
15566 _ACEOF
15567 cat confdefs.h >>conftest.$ac_ext
15568 cat >>conftest.$ac_ext <<_ACEOF
15569 /* end confdefs.h.  */
15570
15571 /* Override any GCC internal prototype to avoid an error.
15572    Use char because int might match the return type of a GCC
15573    builtin and then its argument prototype would still apply.  */
15574 #ifdef __cplusplus
15575 extern "C"
15576 #endif
15577 char RSAPublicEncrypt ();
15578 int
15579 main ()
15580 {
15581 return RSAPublicEncrypt ();
15582   ;
15583   return 0;
15584 }
15585 _ACEOF
15586 rm -f conftest.$ac_objext conftest$ac_exeext
15587 if { (ac_try="$ac_link"
15588 case "(($ac_try" in
15589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15590   *) ac_try_echo=$ac_try;;
15591 esac
15592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15593   (eval "$ac_link") 2>conftest.er1
15594   ac_status=$?
15595   grep -v '^ *+' conftest.er1 >conftest.err
15596   rm -f conftest.er1
15597   cat conftest.err >&5
15598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599   (exit $ac_status); } && {
15600          test -z "$ac_c_werror_flag" ||
15601          test ! -s conftest.err
15602        } && test -s conftest$ac_exeext &&
15603        $as_test_x conftest$ac_exeext; then
15604   ac_cv_lib_RSAglue_RSAPublicEncrypt=yes
15605 else
15606   echo "$as_me: failed program was:" >&5
15607 sed 's/^/| /' conftest.$ac_ext >&5
15608
15609         ac_cv_lib_RSAglue_RSAPublicEncrypt=no
15610 fi
15611
15612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15613       conftest$ac_exeext conftest.$ac_ext
15614 LIBS=$ac_check_lib_save_LIBS
15615 fi
15616 { echo "$as_me:$LINENO: result: $ac_cv_lib_RSAglue_RSAPublicEncrypt" >&5
15617 echo "${ECHO_T}$ac_cv_lib_RSAglue_RSAPublicEncrypt" >&6; }
15618 if test $ac_cv_lib_RSAglue_RSAPublicEncrypt = yes; then
15619   LIB_RSAREF="-lRSAglue -lrsaref"
15620 else
15621   LIB_RSAREF="-lrsaref"
15622 fi
15623
15624 else
15625   cmu_have_rsaref=no
15626 fi
15627
15628
15629                 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
15630   { echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
15631 echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6; }
15632 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
15633   echo $ECHO_N "(cached) $ECHO_C" >&6
15634 fi
15635 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
15636 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6; }
15637 else
15638   # Is the header compilable?
15639 { echo "$as_me:$LINENO: checking openssl/evp.h usability" >&5
15640 echo $ECHO_N "checking openssl/evp.h usability... $ECHO_C" >&6; }
15641 cat >conftest.$ac_ext <<_ACEOF
15642 /* confdefs.h.  */
15643 _ACEOF
15644 cat confdefs.h >>conftest.$ac_ext
15645 cat >>conftest.$ac_ext <<_ACEOF
15646 /* end confdefs.h.  */
15647 $ac_includes_default
15648 #include <openssl/evp.h>
15649 _ACEOF
15650 rm -f conftest.$ac_objext
15651 if { (ac_try="$ac_compile"
15652 case "(($ac_try" in
15653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15654   *) ac_try_echo=$ac_try;;
15655 esac
15656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15657   (eval "$ac_compile") 2>conftest.er1
15658   ac_status=$?
15659   grep -v '^ *+' conftest.er1 >conftest.err
15660   rm -f conftest.er1
15661   cat conftest.err >&5
15662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663   (exit $ac_status); } && {
15664          test -z "$ac_c_werror_flag" ||
15665          test ! -s conftest.err
15666        } && test -s conftest.$ac_objext; then
15667   ac_header_compiler=yes
15668 else
15669   echo "$as_me: failed program was:" >&5
15670 sed 's/^/| /' conftest.$ac_ext >&5
15671
15672         ac_header_compiler=no
15673 fi
15674
15675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15676 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15677 echo "${ECHO_T}$ac_header_compiler" >&6; }
15678
15679 # Is the header present?
15680 { echo "$as_me:$LINENO: checking openssl/evp.h presence" >&5
15681 echo $ECHO_N "checking openssl/evp.h presence... $ECHO_C" >&6; }
15682 cat >conftest.$ac_ext <<_ACEOF
15683 /* confdefs.h.  */
15684 _ACEOF
15685 cat confdefs.h >>conftest.$ac_ext
15686 cat >>conftest.$ac_ext <<_ACEOF
15687 /* end confdefs.h.  */
15688 #include <openssl/evp.h>
15689 _ACEOF
15690 if { (ac_try="$ac_cpp conftest.$ac_ext"
15691 case "(($ac_try" in
15692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15693   *) ac_try_echo=$ac_try;;
15694 esac
15695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15696   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15697   ac_status=$?
15698   grep -v '^ *+' conftest.er1 >conftest.err
15699   rm -f conftest.er1
15700   cat conftest.err >&5
15701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702   (exit $ac_status); } >/dev/null && {
15703          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15704          test ! -s conftest.err
15705        }; then
15706   ac_header_preproc=yes
15707 else
15708   echo "$as_me: failed program was:" >&5
15709 sed 's/^/| /' conftest.$ac_ext >&5
15710
15711   ac_header_preproc=no
15712 fi
15713
15714 rm -f conftest.err conftest.$ac_ext
15715 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15716 echo "${ECHO_T}$ac_header_preproc" >&6; }
15717
15718 # So?  What about this header?
15719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15720   yes:no: )
15721     { echo "$as_me:$LINENO: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&5
15722 echo "$as_me: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15723     { echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the compiler's result" >&5
15724 echo "$as_me: WARNING: openssl/evp.h: proceeding with the compiler's result" >&2;}
15725     ac_header_preproc=yes
15726     ;;
15727   no:yes:* )
15728     { echo "$as_me:$LINENO: WARNING: openssl/evp.h: present but cannot be compiled" >&5
15729 echo "$as_me: WARNING: openssl/evp.h: present but cannot be compiled" >&2;}
15730     { echo "$as_me:$LINENO: WARNING: openssl/evp.h:     check for missing prerequisite headers?" >&5
15731 echo "$as_me: WARNING: openssl/evp.h:     check for missing prerequisite headers?" >&2;}
15732     { echo "$as_me:$LINENO: WARNING: openssl/evp.h: see the Autoconf documentation" >&5
15733 echo "$as_me: WARNING: openssl/evp.h: see the Autoconf documentation" >&2;}
15734     { echo "$as_me:$LINENO: WARNING: openssl/evp.h:     section \"Present But Cannot Be Compiled\"" >&5
15735 echo "$as_me: WARNING: openssl/evp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15736     { echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&5
15737 echo "$as_me: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&2;}
15738     { echo "$as_me:$LINENO: WARNING: openssl/evp.h: in the future, the compiler will take precedence" >&5
15739 echo "$as_me: WARNING: openssl/evp.h: in the future, the compiler will take precedence" >&2;}
15740
15741     ;;
15742 esac
15743 { echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
15744 echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6; }
15745 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
15746   echo $ECHO_N "(cached) $ECHO_C" >&6
15747 else
15748   ac_cv_header_openssl_evp_h=$ac_header_preproc
15749 fi
15750 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
15751 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6; }
15752
15753 fi
15754 if test $ac_cv_header_openssl_evp_h = yes; then
15755
15756                         { echo "$as_me:$LINENO: checking for EVP_DigestInit in -lcrypto" >&5
15757 echo $ECHO_N "checking for EVP_DigestInit in -lcrypto... $ECHO_C" >&6; }
15758 if test "${ac_cv_lib_crypto_EVP_DigestInit+set}" = set; then
15759   echo $ECHO_N "(cached) $ECHO_C" >&6
15760 else
15761   ac_check_lib_save_LIBS=$LIBS
15762 LIBS="-lcrypto $LIB_RSAREF $LIBS"
15763 cat >conftest.$ac_ext <<_ACEOF
15764 /* confdefs.h.  */
15765 _ACEOF
15766 cat confdefs.h >>conftest.$ac_ext
15767 cat >>conftest.$ac_ext <<_ACEOF
15768 /* end confdefs.h.  */
15769
15770 /* Override any GCC internal prototype to avoid an error.
15771    Use char because int might match the return type of a GCC
15772    builtin and then its argument prototype would still apply.  */
15773 #ifdef __cplusplus
15774 extern "C"
15775 #endif
15776 char EVP_DigestInit ();
15777 int
15778 main ()
15779 {
15780 return EVP_DigestInit ();
15781   ;
15782   return 0;
15783 }
15784 _ACEOF
15785 rm -f conftest.$ac_objext conftest$ac_exeext
15786 if { (ac_try="$ac_link"
15787 case "(($ac_try" in
15788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15789   *) ac_try_echo=$ac_try;;
15790 esac
15791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15792   (eval "$ac_link") 2>conftest.er1
15793   ac_status=$?
15794   grep -v '^ *+' conftest.er1 >conftest.err
15795   rm -f conftest.er1
15796   cat conftest.err >&5
15797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798   (exit $ac_status); } && {
15799          test -z "$ac_c_werror_flag" ||
15800          test ! -s conftest.err
15801        } && test -s conftest$ac_exeext &&
15802        $as_test_x conftest$ac_exeext; then
15803   ac_cv_lib_crypto_EVP_DigestInit=yes
15804 else
15805   echo "$as_me: failed program was:" >&5
15806 sed 's/^/| /' conftest.$ac_ext >&5
15807
15808         ac_cv_lib_crypto_EVP_DigestInit=no
15809 fi
15810
15811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15812       conftest$ac_exeext conftest.$ac_ext
15813 LIBS=$ac_check_lib_save_LIBS
15814 fi
15815 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_EVP_DigestInit" >&5
15816 echo "${ECHO_T}$ac_cv_lib_crypto_EVP_DigestInit" >&6; }
15817 if test $ac_cv_lib_crypto_EVP_DigestInit = yes; then
15818   with_openssl="yes"
15819 else
15820   with_openssl="no"
15821 fi
15822
15823 else
15824   with_openssl=no
15825 fi
15826
15827
15828                 ;;
15829 esac
15830
15831         if test "$with_openssl" != "no"; then
15832
15833 cat >>confdefs.h <<\_ACEOF
15834 #define HAVE_OPENSSL
15835 _ACEOF
15836
15837         else
15838                 CPPFLAGS=$save_CPPFLAGS
15839                 LDFLAGS=$save_LDFLAGS
15840         fi
15841
15842 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
15843 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
15844 { echo "$as_me:$LINENO: result: $with_openssl" >&5
15845 echo "${ECHO_T}$with_openssl" >&6; }
15846
15847
15848
15849 # Check whether --with-des was given.
15850 if test "${with_des+set}" = set; then
15851   withval=$with_des; with_des=$withval
15852 else
15853   with_des=yes
15854 fi
15855
15856
15857 LIB_DES=""
15858 if test "$with_des" != no; then
15859   if test -d $with_des; then
15860     CPPFLAGS="$CPPFLAGS -I${with_des}/include"
15861     LDFLAGS="$LDFLAGS -L${with_des}/lib"
15862   fi
15863
15864   if test "$with_openssl" != no; then
15865         { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -lcrypto" >&5
15866 echo $ECHO_N "checking for des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
15867 if test "${ac_cv_lib_crypto_des_cbc_encrypt+set}" = set; then
15868   echo $ECHO_N "(cached) $ECHO_C" >&6
15869 else
15870   ac_check_lib_save_LIBS=$LIBS
15871 LIBS="-lcrypto $LIB_RSAREF $LIBS"
15872 cat >conftest.$ac_ext <<_ACEOF
15873 /* confdefs.h.  */
15874 _ACEOF
15875 cat confdefs.h >>conftest.$ac_ext
15876 cat >>conftest.$ac_ext <<_ACEOF
15877 /* end confdefs.h.  */
15878
15879 /* Override any GCC internal prototype to avoid an error.
15880    Use char because int might match the return type of a GCC
15881    builtin and then its argument prototype would still apply.  */
15882 #ifdef __cplusplus
15883 extern "C"
15884 #endif
15885 char des_cbc_encrypt ();
15886 int
15887 main ()
15888 {
15889 return des_cbc_encrypt ();
15890   ;
15891   return 0;
15892 }
15893 _ACEOF
15894 rm -f conftest.$ac_objext conftest$ac_exeext
15895 if { (ac_try="$ac_link"
15896 case "(($ac_try" in
15897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15898   *) ac_try_echo=$ac_try;;
15899 esac
15900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15901   (eval "$ac_link") 2>conftest.er1
15902   ac_status=$?
15903   grep -v '^ *+' conftest.er1 >conftest.err
15904   rm -f conftest.er1
15905   cat conftest.err >&5
15906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907   (exit $ac_status); } && {
15908          test -z "$ac_c_werror_flag" ||
15909          test ! -s conftest.err
15910        } && test -s conftest$ac_exeext &&
15911        $as_test_x conftest$ac_exeext; then
15912   ac_cv_lib_crypto_des_cbc_encrypt=yes
15913 else
15914   echo "$as_me: failed program was:" >&5
15915 sed 's/^/| /' conftest.$ac_ext >&5
15916
15917         ac_cv_lib_crypto_des_cbc_encrypt=no
15918 fi
15919
15920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15921       conftest$ac_exeext conftest.$ac_ext
15922 LIBS=$ac_check_lib_save_LIBS
15923 fi
15924 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
15925 echo "${ECHO_T}$ac_cv_lib_crypto_des_cbc_encrypt" >&6; }
15926 if test $ac_cv_lib_crypto_des_cbc_encrypt = yes; then
15927
15928         if test "${ac_cv_header_openssl_des_h+set}" = set; then
15929   { echo "$as_me:$LINENO: checking for openssl/des.h" >&5
15930 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6; }
15931 if test "${ac_cv_header_openssl_des_h+set}" = set; then
15932   echo $ECHO_N "(cached) $ECHO_C" >&6
15933 fi
15934 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
15935 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
15936 else
15937   # Is the header compilable?
15938 { echo "$as_me:$LINENO: checking openssl/des.h usability" >&5
15939 echo $ECHO_N "checking openssl/des.h usability... $ECHO_C" >&6; }
15940 cat >conftest.$ac_ext <<_ACEOF
15941 /* confdefs.h.  */
15942 _ACEOF
15943 cat confdefs.h >>conftest.$ac_ext
15944 cat >>conftest.$ac_ext <<_ACEOF
15945 /* end confdefs.h.  */
15946 $ac_includes_default
15947 #include <openssl/des.h>
15948 _ACEOF
15949 rm -f conftest.$ac_objext
15950 if { (ac_try="$ac_compile"
15951 case "(($ac_try" in
15952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15953   *) ac_try_echo=$ac_try;;
15954 esac
15955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15956   (eval "$ac_compile") 2>conftest.er1
15957   ac_status=$?
15958   grep -v '^ *+' conftest.er1 >conftest.err
15959   rm -f conftest.er1
15960   cat conftest.err >&5
15961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962   (exit $ac_status); } && {
15963          test -z "$ac_c_werror_flag" ||
15964          test ! -s conftest.err
15965        } && test -s conftest.$ac_objext; then
15966   ac_header_compiler=yes
15967 else
15968   echo "$as_me: failed program was:" >&5
15969 sed 's/^/| /' conftest.$ac_ext >&5
15970
15971         ac_header_compiler=no
15972 fi
15973
15974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15976 echo "${ECHO_T}$ac_header_compiler" >&6; }
15977
15978 # Is the header present?
15979 { echo "$as_me:$LINENO: checking openssl/des.h presence" >&5
15980 echo $ECHO_N "checking openssl/des.h presence... $ECHO_C" >&6; }
15981 cat >conftest.$ac_ext <<_ACEOF
15982 /* confdefs.h.  */
15983 _ACEOF
15984 cat confdefs.h >>conftest.$ac_ext
15985 cat >>conftest.$ac_ext <<_ACEOF
15986 /* end confdefs.h.  */
15987 #include <openssl/des.h>
15988 _ACEOF
15989 if { (ac_try="$ac_cpp conftest.$ac_ext"
15990 case "(($ac_try" in
15991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15992   *) ac_try_echo=$ac_try;;
15993 esac
15994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15995   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15996   ac_status=$?
15997   grep -v '^ *+' conftest.er1 >conftest.err
15998   rm -f conftest.er1
15999   cat conftest.err >&5
16000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001   (exit $ac_status); } >/dev/null && {
16002          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16003          test ! -s conftest.err
16004        }; then
16005   ac_header_preproc=yes
16006 else
16007   echo "$as_me: failed program was:" >&5
16008 sed 's/^/| /' conftest.$ac_ext >&5
16009
16010   ac_header_preproc=no
16011 fi
16012
16013 rm -f conftest.err conftest.$ac_ext
16014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16015 echo "${ECHO_T}$ac_header_preproc" >&6; }
16016
16017 # So?  What about this header?
16018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16019   yes:no: )
16020     { echo "$as_me:$LINENO: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&5
16021 echo "$as_me: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16022     { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the compiler's result" >&5
16023 echo "$as_me: WARNING: openssl/des.h: proceeding with the compiler's result" >&2;}
16024     ac_header_preproc=yes
16025     ;;
16026   no:yes:* )
16027     { echo "$as_me:$LINENO: WARNING: openssl/des.h: present but cannot be compiled" >&5
16028 echo "$as_me: WARNING: openssl/des.h: present but cannot be compiled" >&2;}
16029     { echo "$as_me:$LINENO: WARNING: openssl/des.h:     check for missing prerequisite headers?" >&5
16030 echo "$as_me: WARNING: openssl/des.h:     check for missing prerequisite headers?" >&2;}
16031     { echo "$as_me:$LINENO: WARNING: openssl/des.h: see the Autoconf documentation" >&5
16032 echo "$as_me: WARNING: openssl/des.h: see the Autoconf documentation" >&2;}
16033     { echo "$as_me:$LINENO: WARNING: openssl/des.h:     section \"Present But Cannot Be Compiled\"" >&5
16034 echo "$as_me: WARNING: openssl/des.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16035     { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
16036 echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
16037     { echo "$as_me:$LINENO: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&5
16038 echo "$as_me: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&2;}
16039
16040     ;;
16041 esac
16042 { echo "$as_me:$LINENO: checking for openssl/des.h" >&5
16043 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6; }
16044 if test "${ac_cv_header_openssl_des_h+set}" = set; then
16045   echo $ECHO_N "(cached) $ECHO_C" >&6
16046 else
16047   ac_cv_header_openssl_des_h=$ac_header_preproc
16048 fi
16049 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
16050 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
16051
16052 fi
16053 if test $ac_cv_header_openssl_des_h = yes; then
16054
16055 cat >>confdefs.h <<\_ACEOF
16056 #define WITH_SSL_DES
16057 _ACEOF
16058
16059                                        LIB_DES="-lcrypto";
16060                                        with_des=yes
16061 else
16062   with_des=no
16063 fi
16064
16065
16066 else
16067   with_des=no
16068 fi
16069
16070
16071         if test "$with_des" = no; then
16072       { echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
16073 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
16074 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
16075   echo $ECHO_N "(cached) $ECHO_C" >&6
16076 else
16077   ac_check_lib_save_LIBS=$LIBS
16078 LIBS="-lcrypto $LIB_RSAREF $LIBS"
16079 cat >conftest.$ac_ext <<_ACEOF
16080 /* confdefs.h.  */
16081 _ACEOF
16082 cat confdefs.h >>conftest.$ac_ext
16083 cat >>conftest.$ac_ext <<_ACEOF
16084 /* end confdefs.h.  */
16085
16086 /* Override any GCC internal prototype to avoid an error.
16087    Use char because int might match the return type of a GCC
16088    builtin and then its argument prototype would still apply.  */
16089 #ifdef __cplusplus
16090 extern "C"
16091 #endif
16092 char DES_cbc_encrypt ();
16093 int
16094 main ()
16095 {
16096 return DES_cbc_encrypt ();
16097   ;
16098   return 0;
16099 }
16100 _ACEOF
16101 rm -f conftest.$ac_objext conftest$ac_exeext
16102 if { (ac_try="$ac_link"
16103 case "(($ac_try" in
16104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16105   *) ac_try_echo=$ac_try;;
16106 esac
16107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16108   (eval "$ac_link") 2>conftest.er1
16109   ac_status=$?
16110   grep -v '^ *+' conftest.er1 >conftest.err
16111   rm -f conftest.er1
16112   cat conftest.err >&5
16113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114   (exit $ac_status); } && {
16115          test -z "$ac_c_werror_flag" ||
16116          test ! -s conftest.err
16117        } && test -s conftest$ac_exeext &&
16118        $as_test_x conftest$ac_exeext; then
16119   ac_cv_lib_crypto_DES_cbc_encrypt=yes
16120 else
16121   echo "$as_me: failed program was:" >&5
16122 sed 's/^/| /' conftest.$ac_ext >&5
16123
16124         ac_cv_lib_crypto_DES_cbc_encrypt=no
16125 fi
16126
16127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16128       conftest$ac_exeext conftest.$ac_ext
16129 LIBS=$ac_check_lib_save_LIBS
16130 fi
16131 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
16132 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
16133 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
16134
16135         if test "${ac_cv_header_openssl_des_h+set}" = set; then
16136   { echo "$as_me:$LINENO: checking for openssl/des.h" >&5
16137 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6; }
16138 if test "${ac_cv_header_openssl_des_h+set}" = set; then
16139   echo $ECHO_N "(cached) $ECHO_C" >&6
16140 fi
16141 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
16142 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
16143 else
16144   # Is the header compilable?
16145 { echo "$as_me:$LINENO: checking openssl/des.h usability" >&5
16146 echo $ECHO_N "checking openssl/des.h usability... $ECHO_C" >&6; }
16147 cat >conftest.$ac_ext <<_ACEOF
16148 /* confdefs.h.  */
16149 _ACEOF
16150 cat confdefs.h >>conftest.$ac_ext
16151 cat >>conftest.$ac_ext <<_ACEOF
16152 /* end confdefs.h.  */
16153 $ac_includes_default
16154 #include <openssl/des.h>
16155 _ACEOF
16156 rm -f conftest.$ac_objext
16157 if { (ac_try="$ac_compile"
16158 case "(($ac_try" in
16159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16160   *) ac_try_echo=$ac_try;;
16161 esac
16162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16163   (eval "$ac_compile") 2>conftest.er1
16164   ac_status=$?
16165   grep -v '^ *+' conftest.er1 >conftest.err
16166   rm -f conftest.er1
16167   cat conftest.err >&5
16168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169   (exit $ac_status); } && {
16170          test -z "$ac_c_werror_flag" ||
16171          test ! -s conftest.err
16172        } && test -s conftest.$ac_objext; then
16173   ac_header_compiler=yes
16174 else
16175   echo "$as_me: failed program was:" >&5
16176 sed 's/^/| /' conftest.$ac_ext >&5
16177
16178         ac_header_compiler=no
16179 fi
16180
16181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16182 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16183 echo "${ECHO_T}$ac_header_compiler" >&6; }
16184
16185 # Is the header present?
16186 { echo "$as_me:$LINENO: checking openssl/des.h presence" >&5
16187 echo $ECHO_N "checking openssl/des.h presence... $ECHO_C" >&6; }
16188 cat >conftest.$ac_ext <<_ACEOF
16189 /* confdefs.h.  */
16190 _ACEOF
16191 cat confdefs.h >>conftest.$ac_ext
16192 cat >>conftest.$ac_ext <<_ACEOF
16193 /* end confdefs.h.  */
16194 #include <openssl/des.h>
16195 _ACEOF
16196 if { (ac_try="$ac_cpp conftest.$ac_ext"
16197 case "(($ac_try" in
16198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16199   *) ac_try_echo=$ac_try;;
16200 esac
16201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16202   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16203   ac_status=$?
16204   grep -v '^ *+' conftest.er1 >conftest.err
16205   rm -f conftest.er1
16206   cat conftest.err >&5
16207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208   (exit $ac_status); } >/dev/null && {
16209          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16210          test ! -s conftest.err
16211        }; then
16212   ac_header_preproc=yes
16213 else
16214   echo "$as_me: failed program was:" >&5
16215 sed 's/^/| /' conftest.$ac_ext >&5
16216
16217   ac_header_preproc=no
16218 fi
16219
16220 rm -f conftest.err conftest.$ac_ext
16221 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16222 echo "${ECHO_T}$ac_header_preproc" >&6; }
16223
16224 # So?  What about this header?
16225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16226   yes:no: )
16227     { echo "$as_me:$LINENO: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&5
16228 echo "$as_me: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16229     { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the compiler's result" >&5
16230 echo "$as_me: WARNING: openssl/des.h: proceeding with the compiler's result" >&2;}
16231     ac_header_preproc=yes
16232     ;;
16233   no:yes:* )
16234     { echo "$as_me:$LINENO: WARNING: openssl/des.h: present but cannot be compiled" >&5
16235 echo "$as_me: WARNING: openssl/des.h: present but cannot be compiled" >&2;}
16236     { echo "$as_me:$LINENO: WARNING: openssl/des.h:     check for missing prerequisite headers?" >&5
16237 echo "$as_me: WARNING: openssl/des.h:     check for missing prerequisite headers?" >&2;}
16238     { echo "$as_me:$LINENO: WARNING: openssl/des.h: see the Autoconf documentation" >&5
16239 echo "$as_me: WARNING: openssl/des.h: see the Autoconf documentation" >&2;}
16240     { echo "$as_me:$LINENO: WARNING: openssl/des.h:     section \"Present But Cannot Be Compiled\"" >&5
16241 echo "$as_me: WARNING: openssl/des.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16242     { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
16243 echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
16244     { echo "$as_me:$LINENO: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&5
16245 echo "$as_me: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&2;}
16246
16247     ;;
16248 esac
16249 { echo "$as_me:$LINENO: checking for openssl/des.h" >&5
16250 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6; }
16251 if test "${ac_cv_header_openssl_des_h+set}" = set; then
16252   echo $ECHO_N "(cached) $ECHO_C" >&6
16253 else
16254   ac_cv_header_openssl_des_h=$ac_header_preproc
16255 fi
16256 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
16257 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
16258
16259 fi
16260 if test $ac_cv_header_openssl_des_h = yes; then
16261
16262 cat >>confdefs.h <<\_ACEOF
16263 #define WITH_SSL_DES
16264 _ACEOF
16265
16266                                        LIB_DES="-lcrypto";
16267                                        with_des=yes
16268 else
16269   with_des=no
16270 fi
16271
16272
16273 else
16274   with_des=no
16275 fi
16276
16277     fi
16278   fi
16279
16280   if test "$with_des" = no; then
16281     { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
16282 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
16283 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
16284   echo $ECHO_N "(cached) $ECHO_C" >&6
16285 else
16286   ac_check_lib_save_LIBS=$LIBS
16287 LIBS="-ldes  $LIBS"
16288 cat >conftest.$ac_ext <<_ACEOF
16289 /* confdefs.h.  */
16290 _ACEOF
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h.  */
16294
16295 /* Override any GCC internal prototype to avoid an error.
16296    Use char because int might match the return type of a GCC
16297    builtin and then its argument prototype would still apply.  */
16298 #ifdef __cplusplus
16299 extern "C"
16300 #endif
16301 char des_cbc_encrypt ();
16302 int
16303 main ()
16304 {
16305 return des_cbc_encrypt ();
16306   ;
16307   return 0;
16308 }
16309 _ACEOF
16310 rm -f conftest.$ac_objext conftest$ac_exeext
16311 if { (ac_try="$ac_link"
16312 case "(($ac_try" in
16313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16314   *) ac_try_echo=$ac_try;;
16315 esac
16316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16317   (eval "$ac_link") 2>conftest.er1
16318   ac_status=$?
16319   grep -v '^ *+' conftest.er1 >conftest.err
16320   rm -f conftest.er1
16321   cat conftest.err >&5
16322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323   (exit $ac_status); } && {
16324          test -z "$ac_c_werror_flag" ||
16325          test ! -s conftest.err
16326        } && test -s conftest$ac_exeext &&
16327        $as_test_x conftest$ac_exeext; then
16328   ac_cv_lib_des_des_cbc_encrypt=yes
16329 else
16330   echo "$as_me: failed program was:" >&5
16331 sed 's/^/| /' conftest.$ac_ext >&5
16332
16333         ac_cv_lib_des_des_cbc_encrypt=no
16334 fi
16335
16336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16337       conftest$ac_exeext conftest.$ac_ext
16338 LIBS=$ac_check_lib_save_LIBS
16339 fi
16340 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16341 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
16342 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
16343   LIB_DES="-ldes";
16344                                         with_des=yes
16345 else
16346   with_des=no
16347 fi
16348
16349   fi
16350
16351   if test "$with_des" = no; then
16352      { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
16353 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
16354 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
16355   echo $ECHO_N "(cached) $ECHO_C" >&6
16356 else
16357   ac_check_lib_save_LIBS=$LIBS
16358 LIBS="-ldes425  $LIBS"
16359 cat >conftest.$ac_ext <<_ACEOF
16360 /* confdefs.h.  */
16361 _ACEOF
16362 cat confdefs.h >>conftest.$ac_ext
16363 cat >>conftest.$ac_ext <<_ACEOF
16364 /* end confdefs.h.  */
16365
16366 /* Override any GCC internal prototype to avoid an error.
16367    Use char because int might match the return type of a GCC
16368    builtin and then its argument prototype would still apply.  */
16369 #ifdef __cplusplus
16370 extern "C"
16371 #endif
16372 char des_cbc_encrypt ();
16373 int
16374 main ()
16375 {
16376 return des_cbc_encrypt ();
16377   ;
16378   return 0;
16379 }
16380 _ACEOF
16381 rm -f conftest.$ac_objext conftest$ac_exeext
16382 if { (ac_try="$ac_link"
16383 case "(($ac_try" in
16384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16385   *) ac_try_echo=$ac_try;;
16386 esac
16387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16388   (eval "$ac_link") 2>conftest.er1
16389   ac_status=$?
16390   grep -v '^ *+' conftest.er1 >conftest.err
16391   rm -f conftest.er1
16392   cat conftest.err >&5
16393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394   (exit $ac_status); } && {
16395          test -z "$ac_c_werror_flag" ||
16396          test ! -s conftest.err
16397        } && test -s conftest$ac_exeext &&
16398        $as_test_x conftest$ac_exeext; then
16399   ac_cv_lib_des425_des_cbc_encrypt=yes
16400 else
16401   echo "$as_me: failed program was:" >&5
16402 sed 's/^/| /' conftest.$ac_ext >&5
16403
16404         ac_cv_lib_des425_des_cbc_encrypt=no
16405 fi
16406
16407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16408       conftest$ac_exeext conftest.$ac_ext
16409 LIBS=$ac_check_lib_save_LIBS
16410 fi
16411 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
16412 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
16413 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
16414   LIB_DES="-ldes425";
16415                                        with_des=yes
16416 else
16417   with_des=no
16418 fi
16419
16420   fi
16421
16422   if test "$with_des" = no; then
16423      { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes524" >&5
16424 echo $ECHO_N "checking for des_cbc_encrypt in -ldes524... $ECHO_C" >&6; }
16425 if test "${ac_cv_lib_des524_des_cbc_encrypt+set}" = set; then
16426   echo $ECHO_N "(cached) $ECHO_C" >&6
16427 else
16428   ac_check_lib_save_LIBS=$LIBS
16429 LIBS="-ldes524  $LIBS"
16430 cat >conftest.$ac_ext <<_ACEOF
16431 /* confdefs.h.  */
16432 _ACEOF
16433 cat confdefs.h >>conftest.$ac_ext
16434 cat >>conftest.$ac_ext <<_ACEOF
16435 /* end confdefs.h.  */
16436
16437 /* Override any GCC internal prototype to avoid an error.
16438    Use char because int might match the return type of a GCC
16439    builtin and then its argument prototype would still apply.  */
16440 #ifdef __cplusplus
16441 extern "C"
16442 #endif
16443 char des_cbc_encrypt ();
16444 int
16445 main ()
16446 {
16447 return des_cbc_encrypt ();
16448   ;
16449   return 0;
16450 }
16451 _ACEOF
16452 rm -f conftest.$ac_objext conftest$ac_exeext
16453 if { (ac_try="$ac_link"
16454 case "(($ac_try" in
16455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16456   *) ac_try_echo=$ac_try;;
16457 esac
16458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16459   (eval "$ac_link") 2>conftest.er1
16460   ac_status=$?
16461   grep -v '^ *+' conftest.er1 >conftest.err
16462   rm -f conftest.er1
16463   cat conftest.err >&5
16464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465   (exit $ac_status); } && {
16466          test -z "$ac_c_werror_flag" ||
16467          test ! -s conftest.err
16468        } && test -s conftest$ac_exeext &&
16469        $as_test_x conftest$ac_exeext; then
16470   ac_cv_lib_des524_des_cbc_encrypt=yes
16471 else
16472   echo "$as_me: failed program was:" >&5
16473 sed 's/^/| /' conftest.$ac_ext >&5
16474
16475         ac_cv_lib_des524_des_cbc_encrypt=no
16476 fi
16477
16478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16479       conftest$ac_exeext conftest.$ac_ext
16480 LIBS=$ac_check_lib_save_LIBS
16481 fi
16482 { echo "$as_me:$LINENO: result: $ac_cv_lib_des524_des_cbc_encrypt" >&5
16483 echo "${ECHO_T}$ac_cv_lib_des524_des_cbc_encrypt" >&6; }
16484 if test $ac_cv_lib_des524_des_cbc_encrypt = yes; then
16485   LIB_DES="-ldes524";
16486                                        with_des=yes
16487 else
16488   with_des=no
16489 fi
16490
16491   fi
16492
16493   if test "$with_des" = no; then
16494
16495             LIB_RSAREF=""
16496     { echo "$as_me:$LINENO: checking for RSAPublicEncrypt in -lrsaref" >&5
16497 echo $ECHO_N "checking for RSAPublicEncrypt in -lrsaref... $ECHO_C" >&6; }
16498 if test "${ac_cv_lib_rsaref_RSAPublicEncrypt+set}" = set; then
16499   echo $ECHO_N "(cached) $ECHO_C" >&6
16500 else
16501   ac_check_lib_save_LIBS=$LIBS
16502 LIBS="-lrsaref  $LIBS"
16503 cat >conftest.$ac_ext <<_ACEOF
16504 /* confdefs.h.  */
16505 _ACEOF
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h.  */
16509
16510 /* Override any GCC internal prototype to avoid an error.
16511    Use char because int might match the return type of a GCC
16512    builtin and then its argument prototype would still apply.  */
16513 #ifdef __cplusplus
16514 extern "C"
16515 #endif
16516 char RSAPublicEncrypt ();
16517 int
16518 main ()
16519 {
16520 return RSAPublicEncrypt ();
16521   ;
16522   return 0;
16523 }
16524 _ACEOF
16525 rm -f conftest.$ac_objext conftest$ac_exeext
16526 if { (ac_try="$ac_link"
16527 case "(($ac_try" in
16528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16529   *) ac_try_echo=$ac_try;;
16530 esac
16531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16532   (eval "$ac_link") 2>conftest.er1
16533   ac_status=$?
16534   grep -v '^ *+' conftest.er1 >conftest.err
16535   rm -f conftest.er1
16536   cat conftest.err >&5
16537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538   (exit $ac_status); } && {
16539          test -z "$ac_c_werror_flag" ||
16540          test ! -s conftest.err
16541        } && test -s conftest$ac_exeext &&
16542        $as_test_x conftest$ac_exeext; then
16543   ac_cv_lib_rsaref_RSAPublicEncrypt=yes
16544 else
16545   echo "$as_me: failed program was:" >&5
16546 sed 's/^/| /' conftest.$ac_ext >&5
16547
16548         ac_cv_lib_rsaref_RSAPublicEncrypt=no
16549 fi
16550
16551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16552       conftest$ac_exeext conftest.$ac_ext
16553 LIBS=$ac_check_lib_save_LIBS
16554 fi
16555 { echo "$as_me:$LINENO: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5
16556 echo "${ECHO_T}$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6; }
16557 if test $ac_cv_lib_rsaref_RSAPublicEncrypt = yes; then
16558   LIB_RSAREF="-lRSAglue -lrsaref"; cmu_have_rsaref=yes
16559 else
16560   cmu_have_rsaref=no
16561 fi
16562
16563
16564     { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -lcrypto" >&5
16565 echo $ECHO_N "checking for des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
16566 if test "${ac_cv_lib_crypto_des_cbc_encrypt+set}" = set; then
16567   echo $ECHO_N "(cached) $ECHO_C" >&6
16568 else
16569   ac_check_lib_save_LIBS=$LIBS
16570 LIBS="-lcrypto $LIB_RSAREF $LIBS"
16571 cat >conftest.$ac_ext <<_ACEOF
16572 /* confdefs.h.  */
16573 _ACEOF
16574 cat confdefs.h >>conftest.$ac_ext
16575 cat >>conftest.$ac_ext <<_ACEOF
16576 /* end confdefs.h.  */
16577
16578 /* Override any GCC internal prototype to avoid an error.
16579    Use char because int might match the return type of a GCC
16580    builtin and then its argument prototype would still apply.  */
16581 #ifdef __cplusplus
16582 extern "C"
16583 #endif
16584 char des_cbc_encrypt ();
16585 int
16586 main ()
16587 {
16588 return des_cbc_encrypt ();
16589   ;
16590   return 0;
16591 }
16592 _ACEOF
16593 rm -f conftest.$ac_objext conftest$ac_exeext
16594 if { (ac_try="$ac_link"
16595 case "(($ac_try" in
16596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16597   *) ac_try_echo=$ac_try;;
16598 esac
16599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16600   (eval "$ac_link") 2>conftest.er1
16601   ac_status=$?
16602   grep -v '^ *+' conftest.er1 >conftest.err
16603   rm -f conftest.er1
16604   cat conftest.err >&5
16605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606   (exit $ac_status); } && {
16607          test -z "$ac_c_werror_flag" ||
16608          test ! -s conftest.err
16609        } && test -s conftest$ac_exeext &&
16610        $as_test_x conftest$ac_exeext; then
16611   ac_cv_lib_crypto_des_cbc_encrypt=yes
16612 else
16613   echo "$as_me: failed program was:" >&5
16614 sed 's/^/| /' conftest.$ac_ext >&5
16615
16616         ac_cv_lib_crypto_des_cbc_encrypt=no
16617 fi
16618
16619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16620       conftest$ac_exeext conftest.$ac_ext
16621 LIBS=$ac_check_lib_save_LIBS
16622 fi
16623 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
16624 echo "${ECHO_T}$ac_cv_lib_crypto_des_cbc_encrypt" >&6; }
16625 if test $ac_cv_lib_crypto_des_cbc_encrypt = yes; then
16626
16627         if test "${ac_cv_header_openssl_des_h+set}" = set; then
16628   { echo "$as_me:$LINENO: checking for openssl/des.h" >&5
16629 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6; }
16630 if test "${ac_cv_header_openssl_des_h+set}" = set; then
16631   echo $ECHO_N "(cached) $ECHO_C" >&6
16632 fi
16633 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
16634 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
16635 else
16636   # Is the header compilable?
16637 { echo "$as_me:$LINENO: checking openssl/des.h usability" >&5
16638 echo $ECHO_N "checking openssl/des.h usability... $ECHO_C" >&6; }
16639 cat >conftest.$ac_ext <<_ACEOF
16640 /* confdefs.h.  */
16641 _ACEOF
16642 cat confdefs.h >>conftest.$ac_ext
16643 cat >>conftest.$ac_ext <<_ACEOF
16644 /* end confdefs.h.  */
16645 $ac_includes_default
16646 #include <openssl/des.h>
16647 _ACEOF
16648 rm -f conftest.$ac_objext
16649 if { (ac_try="$ac_compile"
16650 case "(($ac_try" in
16651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16652   *) ac_try_echo=$ac_try;;
16653 esac
16654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16655   (eval "$ac_compile") 2>conftest.er1
16656   ac_status=$?
16657   grep -v '^ *+' conftest.er1 >conftest.err
16658   rm -f conftest.er1
16659   cat conftest.err >&5
16660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661   (exit $ac_status); } && {
16662          test -z "$ac_c_werror_flag" ||
16663          test ! -s conftest.err
16664        } && test -s conftest.$ac_objext; then
16665   ac_header_compiler=yes
16666 else
16667   echo "$as_me: failed program was:" >&5
16668 sed 's/^/| /' conftest.$ac_ext >&5
16669
16670         ac_header_compiler=no
16671 fi
16672
16673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16674 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16675 echo "${ECHO_T}$ac_header_compiler" >&6; }
16676
16677 # Is the header present?
16678 { echo "$as_me:$LINENO: checking openssl/des.h presence" >&5
16679 echo $ECHO_N "checking openssl/des.h presence... $ECHO_C" >&6; }
16680 cat >conftest.$ac_ext <<_ACEOF
16681 /* confdefs.h.  */
16682 _ACEOF
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h.  */
16686 #include <openssl/des.h>
16687 _ACEOF
16688 if { (ac_try="$ac_cpp conftest.$ac_ext"
16689 case "(($ac_try" in
16690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16691   *) ac_try_echo=$ac_try;;
16692 esac
16693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16694   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16695   ac_status=$?
16696   grep -v '^ *+' conftest.er1 >conftest.err
16697   rm -f conftest.er1
16698   cat conftest.err >&5
16699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700   (exit $ac_status); } >/dev/null && {
16701          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16702          test ! -s conftest.err
16703        }; then
16704   ac_header_preproc=yes
16705 else
16706   echo "$as_me: failed program was:" >&5
16707 sed 's/^/| /' conftest.$ac_ext >&5
16708
16709   ac_header_preproc=no
16710 fi
16711
16712 rm -f conftest.err conftest.$ac_ext
16713 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16714 echo "${ECHO_T}$ac_header_preproc" >&6; }
16715
16716 # So?  What about this header?
16717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16718   yes:no: )
16719     { echo "$as_me:$LINENO: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&5
16720 echo "$as_me: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16721     { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the compiler's result" >&5
16722 echo "$as_me: WARNING: openssl/des.h: proceeding with the compiler's result" >&2;}
16723     ac_header_preproc=yes
16724     ;;
16725   no:yes:* )
16726     { echo "$as_me:$LINENO: WARNING: openssl/des.h: present but cannot be compiled" >&5
16727 echo "$as_me: WARNING: openssl/des.h: present but cannot be compiled" >&2;}
16728     { echo "$as_me:$LINENO: WARNING: openssl/des.h:     check for missing prerequisite headers?" >&5
16729 echo "$as_me: WARNING: openssl/des.h:     check for missing prerequisite headers?" >&2;}
16730     { echo "$as_me:$LINENO: WARNING: openssl/des.h: see the Autoconf documentation" >&5
16731 echo "$as_me: WARNING: openssl/des.h: see the Autoconf documentation" >&2;}
16732     { echo "$as_me:$LINENO: WARNING: openssl/des.h:     section \"Present But Cannot Be Compiled\"" >&5
16733 echo "$as_me: WARNING: openssl/des.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16734     { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
16735 echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
16736     { echo "$as_me:$LINENO: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&5
16737 echo "$as_me: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&2;}
16738
16739     ;;
16740 esac
16741 { echo "$as_me:$LINENO: checking for openssl/des.h" >&5
16742 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6; }
16743 if test "${ac_cv_header_openssl_des_h+set}" = set; then
16744   echo $ECHO_N "(cached) $ECHO_C" >&6
16745 else
16746   ac_cv_header_openssl_des_h=$ac_header_preproc
16747 fi
16748 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
16749 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
16750
16751 fi
16752 if test $ac_cv_header_openssl_des_h = yes; then
16753
16754 cat >>confdefs.h <<\_ACEOF
16755 #define WITH_SSL_DES
16756 _ACEOF
16757
16758                                         LIB_DES="-lcrypto";
16759                                         with_des=yes
16760 else
16761   with_des=no
16762 fi
16763
16764
16765 else
16766   with_des=no
16767 fi
16768
16769   fi
16770 fi
16771
16772 if test "$with_des" != no; then
16773
16774 cat >>confdefs.h <<\_ACEOF
16775 #define WITH_DES
16776 _ACEOF
16777
16778 fi
16779
16780
16781
16782
16783 # Check whether --enable-digest was given.
16784 if test "${enable_digest+set}" = set; then
16785   enableval=$enable_digest; digest=$enableval
16786 else
16787   digest=yes
16788 fi
16789
16790
16791 if test "$digest" != no; then
16792     if test -d $digest; then
16793     CPPFLAGS="$CPPFLAGS -I$digest/include"
16794     LDFLAGS="$LDFLAGS -L$digest/lib"
16795   fi
16796   if test "$with_des" = no; then
16797     { echo "$as_me:$LINENO: WARNING: No DES support for DIGEST-MD5" >&5
16798 echo "$as_me: WARNING: No DES support for DIGEST-MD5" >&2;}
16799   fi
16800 fi
16801
16802 { echo "$as_me:$LINENO: checking DIGEST-MD5" >&5
16803 echo $ECHO_N "checking DIGEST-MD5... $ECHO_C" >&6; }
16804 if test "$digest" != no; then
16805   { echo "$as_me:$LINENO: result: enabled" >&5
16806 echo "${ECHO_T}enabled" >&6; }
16807   SASL_MECHS="$SASL_MECHS libdigestmd5.la"
16808   if test "$enable_static" = yes; then
16809     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/digestmd5.c"
16810     SASL_STATIC_OBJS="$SASL_STATIC_OBJS digestmd5.o"
16811
16812 cat >>confdefs.h <<\_ACEOF
16813 #define STATIC_DIGESTMD5
16814 _ACEOF
16815
16816   fi
16817 else
16818   { echo "$as_me:$LINENO: result: disabled" >&5
16819 echo "${ECHO_T}disabled" >&6; }
16820 fi
16821
16822 # Check whether --enable-otp was given.
16823 if test "${enable_otp+set}" = set; then
16824   enableval=$enable_otp; otp=$enableval
16825 else
16826   otp=yes
16827 fi
16828
16829
16830 if test "$with_openssl" = no; then
16831   { echo "$as_me:$LINENO: WARNING: OpenSSL not found -- OTP will be disabled" >&5
16832 echo "$as_me: WARNING: OpenSSL not found -- OTP will be disabled" >&2;}
16833   otp=no
16834 fi
16835
16836 { echo "$as_me:$LINENO: checking OTP" >&5
16837 echo $ECHO_N "checking OTP... $ECHO_C" >&6; }
16838 if test "$otp" != no; then
16839   { echo "$as_me:$LINENO: result: enabled" >&5
16840 echo "${ECHO_T}enabled" >&6; }
16841   OTP_LIBS="-lcrypto $LIB_RSAREF"
16842
16843   SASL_MECHS="$SASL_MECHS libotp.la"
16844   if test "$enable_static" = yes; then
16845     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/otp.c"
16846     SASL_STATIC_OBJS="$SASL_STATIC_OBJS otp.o"
16847
16848 cat >>confdefs.h <<\_ACEOF
16849 #define STATIC_OTP
16850 _ACEOF
16851
16852   fi
16853
16854
16855 # Check whether --with-with-opie was given.
16856 if test "${with_with_opie+set}" = set; then
16857   withval=$with_with_opie; with_opie="${withval}"
16858 fi
16859
16860
16861   case "$with_opie" in
16862         ""|yes)
16863                 { echo "$as_me:$LINENO: checking for opiechallenge in -lopie" >&5
16864 echo $ECHO_N "checking for opiechallenge in -lopie... $ECHO_C" >&6; }
16865 if test "${ac_cv_lib_opie_opiechallenge+set}" = set; then
16866   echo $ECHO_N "(cached) $ECHO_C" >&6
16867 else
16868   ac_check_lib_save_LIBS=$LIBS
16869 LIBS="-lopie  $LIBS"
16870 cat >conftest.$ac_ext <<_ACEOF
16871 /* confdefs.h.  */
16872 _ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h.  */
16876
16877 /* Override any GCC internal prototype to avoid an error.
16878    Use char because int might match the return type of a GCC
16879    builtin and then its argument prototype would still apply.  */
16880 #ifdef __cplusplus
16881 extern "C"
16882 #endif
16883 char opiechallenge ();
16884 int
16885 main ()
16886 {
16887 return opiechallenge ();
16888   ;
16889   return 0;
16890 }
16891 _ACEOF
16892 rm -f conftest.$ac_objext conftest$ac_exeext
16893 if { (ac_try="$ac_link"
16894 case "(($ac_try" in
16895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896   *) ac_try_echo=$ac_try;;
16897 esac
16898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899   (eval "$ac_link") 2>conftest.er1
16900   ac_status=$?
16901   grep -v '^ *+' conftest.er1 >conftest.err
16902   rm -f conftest.er1
16903   cat conftest.err >&5
16904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905   (exit $ac_status); } && {
16906          test -z "$ac_c_werror_flag" ||
16907          test ! -s conftest.err
16908        } && test -s conftest$ac_exeext &&
16909        $as_test_x conftest$ac_exeext; then
16910   ac_cv_lib_opie_opiechallenge=yes
16911 else
16912   echo "$as_me: failed program was:" >&5
16913 sed 's/^/| /' conftest.$ac_ext >&5
16914
16915         ac_cv_lib_opie_opiechallenge=no
16916 fi
16917
16918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16919       conftest$ac_exeext conftest.$ac_ext
16920 LIBS=$ac_check_lib_save_LIBS
16921 fi
16922 { echo "$as_me:$LINENO: result: $ac_cv_lib_opie_opiechallenge" >&5
16923 echo "${ECHO_T}$ac_cv_lib_opie_opiechallenge" >&6; }
16924 if test $ac_cv_lib_opie_opiechallenge = yes; then
16925
16926                         if test "${ac_cv_header_opie_h+set}" = set; then
16927   { echo "$as_me:$LINENO: checking for opie.h" >&5
16928 echo $ECHO_N "checking for opie.h... $ECHO_C" >&6; }
16929 if test "${ac_cv_header_opie_h+set}" = set; then
16930   echo $ECHO_N "(cached) $ECHO_C" >&6
16931 fi
16932 { echo "$as_me:$LINENO: result: $ac_cv_header_opie_h" >&5
16933 echo "${ECHO_T}$ac_cv_header_opie_h" >&6; }
16934 else
16935   # Is the header compilable?
16936 { echo "$as_me:$LINENO: checking opie.h usability" >&5
16937 echo $ECHO_N "checking opie.h usability... $ECHO_C" >&6; }
16938 cat >conftest.$ac_ext <<_ACEOF
16939 /* confdefs.h.  */
16940 _ACEOF
16941 cat confdefs.h >>conftest.$ac_ext
16942 cat >>conftest.$ac_ext <<_ACEOF
16943 /* end confdefs.h.  */
16944 $ac_includes_default
16945 #include <opie.h>
16946 _ACEOF
16947 rm -f conftest.$ac_objext
16948 if { (ac_try="$ac_compile"
16949 case "(($ac_try" in
16950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16951   *) ac_try_echo=$ac_try;;
16952 esac
16953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16954   (eval "$ac_compile") 2>conftest.er1
16955   ac_status=$?
16956   grep -v '^ *+' conftest.er1 >conftest.err
16957   rm -f conftest.er1
16958   cat conftest.err >&5
16959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960   (exit $ac_status); } && {
16961          test -z "$ac_c_werror_flag" ||
16962          test ! -s conftest.err
16963        } && test -s conftest.$ac_objext; then
16964   ac_header_compiler=yes
16965 else
16966   echo "$as_me: failed program was:" >&5
16967 sed 's/^/| /' conftest.$ac_ext >&5
16968
16969         ac_header_compiler=no
16970 fi
16971
16972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16974 echo "${ECHO_T}$ac_header_compiler" >&6; }
16975
16976 # Is the header present?
16977 { echo "$as_me:$LINENO: checking opie.h presence" >&5
16978 echo $ECHO_N "checking opie.h presence... $ECHO_C" >&6; }
16979 cat >conftest.$ac_ext <<_ACEOF
16980 /* confdefs.h.  */
16981 _ACEOF
16982 cat confdefs.h >>conftest.$ac_ext
16983 cat >>conftest.$ac_ext <<_ACEOF
16984 /* end confdefs.h.  */
16985 #include <opie.h>
16986 _ACEOF
16987 if { (ac_try="$ac_cpp conftest.$ac_ext"
16988 case "(($ac_try" in
16989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16990   *) ac_try_echo=$ac_try;;
16991 esac
16992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16993   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16994   ac_status=$?
16995   grep -v '^ *+' conftest.er1 >conftest.err
16996   rm -f conftest.er1
16997   cat conftest.err >&5
16998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999   (exit $ac_status); } >/dev/null && {
17000          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17001          test ! -s conftest.err
17002        }; then
17003   ac_header_preproc=yes
17004 else
17005   echo "$as_me: failed program was:" >&5
17006 sed 's/^/| /' conftest.$ac_ext >&5
17007
17008   ac_header_preproc=no
17009 fi
17010
17011 rm -f conftest.err conftest.$ac_ext
17012 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17013 echo "${ECHO_T}$ac_header_preproc" >&6; }
17014
17015 # So?  What about this header?
17016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17017   yes:no: )
17018     { echo "$as_me:$LINENO: WARNING: opie.h: accepted by the compiler, rejected by the preprocessor!" >&5
17019 echo "$as_me: WARNING: opie.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17020     { echo "$as_me:$LINENO: WARNING: opie.h: proceeding with the compiler's result" >&5
17021 echo "$as_me: WARNING: opie.h: proceeding with the compiler's result" >&2;}
17022     ac_header_preproc=yes
17023     ;;
17024   no:yes:* )
17025     { echo "$as_me:$LINENO: WARNING: opie.h: present but cannot be compiled" >&5
17026 echo "$as_me: WARNING: opie.h: present but cannot be compiled" >&2;}
17027     { echo "$as_me:$LINENO: WARNING: opie.h:     check for missing prerequisite headers?" >&5
17028 echo "$as_me: WARNING: opie.h:     check for missing prerequisite headers?" >&2;}
17029     { echo "$as_me:$LINENO: WARNING: opie.h: see the Autoconf documentation" >&5
17030 echo "$as_me: WARNING: opie.h: see the Autoconf documentation" >&2;}
17031     { echo "$as_me:$LINENO: WARNING: opie.h:     section \"Present But Cannot Be Compiled\"" >&5
17032 echo "$as_me: WARNING: opie.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17033     { echo "$as_me:$LINENO: WARNING: opie.h: proceeding with the preprocessor's result" >&5
17034 echo "$as_me: WARNING: opie.h: proceeding with the preprocessor's result" >&2;}
17035     { echo "$as_me:$LINENO: WARNING: opie.h: in the future, the compiler will take precedence" >&5
17036 echo "$as_me: WARNING: opie.h: in the future, the compiler will take precedence" >&2;}
17037
17038     ;;
17039 esac
17040 { echo "$as_me:$LINENO: checking for opie.h" >&5
17041 echo $ECHO_N "checking for opie.h... $ECHO_C" >&6; }
17042 if test "${ac_cv_header_opie_h+set}" = set; then
17043   echo $ECHO_N "(cached) $ECHO_C" >&6
17044 else
17045   ac_cv_header_opie_h=$ac_header_preproc
17046 fi
17047 { echo "$as_me:$LINENO: result: $ac_cv_header_opie_h" >&5
17048 echo "${ECHO_T}$ac_cv_header_opie_h" >&6; }
17049
17050 fi
17051 if test $ac_cv_header_opie_h = yes; then
17052   with_opie="yes"
17053 else
17054   with_opie="no"
17055 fi
17056
17057
17058 else
17059   with_opie="no"
17060 fi
17061
17062                 ;;
17063         *)
17064                 if test -d $with_opie; then
17065                   CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
17066                   LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
17067                 else
17068                   with_opie="no"
17069                 fi
17070                 ;;
17071   esac
17072
17073   { echo "$as_me:$LINENO: checking for OPIE" >&5
17074 echo $ECHO_N "checking for OPIE... $ECHO_C" >&6; }
17075   { echo "$as_me:$LINENO: result: $with_opie" >&5
17076 echo "${ECHO_T}$with_opie" >&6; }
17077
17078   if test "$with_opie" != no; then
17079
17080 cat >>confdefs.h <<\_ACEOF
17081 #define HAVE_OPIE
17082 _ACEOF
17083
17084     OTP_LIBS="$OTP_LIBS -lopie"
17085   fi
17086
17087
17088
17089 else
17090   { echo "$as_me:$LINENO: result: disabled" >&5
17091 echo "${ECHO_T}disabled" >&6; }
17092 fi
17093
17094 # Check whether --enable-srp was given.
17095 if test "${enable_srp+set}" = set; then
17096   enableval=$enable_srp; srp=$enableval
17097 else
17098   srp=no
17099 fi
17100
17101
17102 if test "$with_openssl" = no; then
17103   { echo "$as_me:$LINENO: WARNING: OpenSSL not found -- SRP will be disabled" >&5
17104 echo "$as_me: WARNING: OpenSSL not found -- SRP will be disabled" >&2;}
17105   srp=no
17106 fi
17107
17108 { echo "$as_me:$LINENO: checking SRP" >&5
17109 echo $ECHO_N "checking SRP... $ECHO_C" >&6; }
17110 if test "$srp" != no; then
17111   { echo "$as_me:$LINENO: result: enabled" >&5
17112 echo "${ECHO_T}enabled" >&6; }
17113   SRP_LIBS="-lcrypto $LIB_RSAREF"
17114
17115   SASL_MECHS="$SASL_MECHS libsrp.la"
17116   if test "$enable_static" = yes; then
17117     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/srp.c"
17118     SASL_STATIC_OBJS="$SASL_STATIC_OBJS srp.o"
17119
17120 cat >>confdefs.h <<\_ACEOF
17121 #define STATIC_SRP
17122 _ACEOF
17123
17124   fi
17125
17126   # Check whether --enable-srp_setpass was given.
17127 if test "${enable_srp_setpass+set}" = set; then
17128   enableval=$enable_srp_setpass; srp_setpass=$enableval
17129 else
17130   srp_setpass=no
17131 fi
17132
17133
17134   { echo "$as_me:$LINENO: checking if we should enable setting SRP secrets with saslpasswd" >&5
17135 echo $ECHO_N "checking if we should enable setting SRP secrets with saslpasswd... $ECHO_C" >&6; }
17136   if test "$srp_setpass" != no; then
17137     { echo "$as_me:$LINENO: result: enabled" >&5
17138 echo "${ECHO_T}enabled" >&6; }
17139
17140 cat >>confdefs.h <<\_ACEOF
17141 #define DO_SRP_SETPASS
17142 _ACEOF
17143
17144   else
17145     { echo "$as_me:$LINENO: result: disabled" >&5
17146 echo "${ECHO_T}disabled" >&6; }
17147   fi
17148
17149
17150 else
17151   { echo "$as_me:$LINENO: result: disabled" >&5
17152 echo "${ECHO_T}disabled" >&6; }
17153 fi
17154
17155
17156
17157
17158   # Check whether --enable-krb4 was given.
17159 if test "${enable_krb4+set}" = set; then
17160   enableval=$enable_krb4; krb4=$enableval
17161 else
17162   krb4=no
17163 fi
17164
17165
17166   if test "$krb4" != no; then
17167
17168 { echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
17169 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6; }
17170 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
17171   echo $ECHO_N "(cached) $ECHO_C" >&6
17172 else
17173   ac_check_lib_save_LIBS=$LIBS
17174 LIBS="-lresolv  $LIBS"
17175 cat >conftest.$ac_ext <<_ACEOF
17176 /* confdefs.h.  */
17177 _ACEOF
17178 cat confdefs.h >>conftest.$ac_ext
17179 cat >>conftest.$ac_ext <<_ACEOF
17180 /* end confdefs.h.  */
17181
17182 /* Override any GCC internal prototype to avoid an error.
17183    Use char because int might match the return type of a GCC
17184    builtin and then its argument prototype would still apply.  */
17185 #ifdef __cplusplus
17186 extern "C"
17187 #endif
17188 char res_search ();
17189 int
17190 main ()
17191 {
17192 return res_search ();
17193   ;
17194   return 0;
17195 }
17196 _ACEOF
17197 rm -f conftest.$ac_objext conftest$ac_exeext
17198 if { (ac_try="$ac_link"
17199 case "(($ac_try" in
17200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17201   *) ac_try_echo=$ac_try;;
17202 esac
17203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17204   (eval "$ac_link") 2>conftest.er1
17205   ac_status=$?
17206   grep -v '^ *+' conftest.er1 >conftest.err
17207   rm -f conftest.er1
17208   cat conftest.err >&5
17209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210   (exit $ac_status); } && {
17211          test -z "$ac_c_werror_flag" ||
17212          test ! -s conftest.err
17213        } && test -s conftest$ac_exeext &&
17214        $as_test_x conftest$ac_exeext; then
17215   ac_cv_lib_resolv_res_search=yes
17216 else
17217   echo "$as_me: failed program was:" >&5
17218 sed 's/^/| /' conftest.$ac_ext >&5
17219
17220         ac_cv_lib_resolv_res_search=no
17221 fi
17222
17223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17224       conftest$ac_exeext conftest.$ac_ext
17225 LIBS=$ac_check_lib_save_LIBS
17226 fi
17227 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
17228 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6; }
17229 if test $ac_cv_lib_resolv_res_search = yes; then
17230   cat >>confdefs.h <<_ACEOF
17231 #define HAVE_LIBRESOLV 1
17232 _ACEOF
17233
17234   LIBS="-lresolv $LIBS"
17235
17236 fi
17237
17238
17239             if test -d ${krb4}; then
17240        { echo "$as_me:$LINENO: checking for Kerberos includes" >&5
17241 echo $ECHO_N "checking for Kerberos includes... $ECHO_C" >&6; }
17242 if test "${cyrus_krbinclude+set}" = set; then
17243   echo $ECHO_N "(cached) $ECHO_C" >&6
17244 else
17245
17246          for krbhloc in include/kerberosIV include/kerberos include
17247          do
17248            if test -f ${krb4}/${krbhloc}/krb.h ; then
17249              cyrus_krbinclude=${krb4}/${krbhloc}
17250              break
17251            fi
17252          done
17253
17254 fi
17255 { echo "$as_me:$LINENO: result: $cyrus_krbinclude" >&5
17256 echo "${ECHO_T}$cyrus_krbinclude" >&6; }
17257
17258        if test -n "${cyrus_krbinclude}"; then
17259          CPPFLAGS="$CPPFLAGS -I${cyrus_krbinclude}"
17260        fi
17261        LDFLAGS="$LDFLAGS -L$krb4/lib"
17262     fi
17263
17264     if test "$with_des" != no; then
17265       if test "${ac_cv_header_krb_h+set}" = set; then
17266   { echo "$as_me:$LINENO: checking for krb.h" >&5
17267 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
17268 if test "${ac_cv_header_krb_h+set}" = set; then
17269   echo $ECHO_N "(cached) $ECHO_C" >&6
17270 fi
17271 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
17272 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
17273 else
17274   # Is the header compilable?
17275 { echo "$as_me:$LINENO: checking krb.h usability" >&5
17276 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6; }
17277 cat >conftest.$ac_ext <<_ACEOF
17278 /* confdefs.h.  */
17279 _ACEOF
17280 cat confdefs.h >>conftest.$ac_ext
17281 cat >>conftest.$ac_ext <<_ACEOF
17282 /* end confdefs.h.  */
17283 $ac_includes_default
17284 #include <krb.h>
17285 _ACEOF
17286 rm -f conftest.$ac_objext
17287 if { (ac_try="$ac_compile"
17288 case "(($ac_try" in
17289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17290   *) ac_try_echo=$ac_try;;
17291 esac
17292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17293   (eval "$ac_compile") 2>conftest.er1
17294   ac_status=$?
17295   grep -v '^ *+' conftest.er1 >conftest.err
17296   rm -f conftest.er1
17297   cat conftest.err >&5
17298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299   (exit $ac_status); } && {
17300          test -z "$ac_c_werror_flag" ||
17301          test ! -s conftest.err
17302        } && test -s conftest.$ac_objext; then
17303   ac_header_compiler=yes
17304 else
17305   echo "$as_me: failed program was:" >&5
17306 sed 's/^/| /' conftest.$ac_ext >&5
17307
17308         ac_header_compiler=no
17309 fi
17310
17311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17312 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17313 echo "${ECHO_T}$ac_header_compiler" >&6; }
17314
17315 # Is the header present?
17316 { echo "$as_me:$LINENO: checking krb.h presence" >&5
17317 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6; }
17318 cat >conftest.$ac_ext <<_ACEOF
17319 /* confdefs.h.  */
17320 _ACEOF
17321 cat confdefs.h >>conftest.$ac_ext
17322 cat >>conftest.$ac_ext <<_ACEOF
17323 /* end confdefs.h.  */
17324 #include <krb.h>
17325 _ACEOF
17326 if { (ac_try="$ac_cpp conftest.$ac_ext"
17327 case "(($ac_try" in
17328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17329   *) ac_try_echo=$ac_try;;
17330 esac
17331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17332   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17333   ac_status=$?
17334   grep -v '^ *+' conftest.er1 >conftest.err
17335   rm -f conftest.er1
17336   cat conftest.err >&5
17337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338   (exit $ac_status); } >/dev/null && {
17339          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17340          test ! -s conftest.err
17341        }; then
17342   ac_header_preproc=yes
17343 else
17344   echo "$as_me: failed program was:" >&5
17345 sed 's/^/| /' conftest.$ac_ext >&5
17346
17347   ac_header_preproc=no
17348 fi
17349
17350 rm -f conftest.err conftest.$ac_ext
17351 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17352 echo "${ECHO_T}$ac_header_preproc" >&6; }
17353
17354 # So?  What about this header?
17355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17356   yes:no: )
17357     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
17358 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17359     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the compiler's result" >&5
17360 echo "$as_me: WARNING: krb.h: proceeding with the compiler's result" >&2;}
17361     ac_header_preproc=yes
17362     ;;
17363   no:yes:* )
17364     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
17365 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
17366     { echo "$as_me:$LINENO: WARNING: krb.h:     check for missing prerequisite headers?" >&5
17367 echo "$as_me: WARNING: krb.h:     check for missing prerequisite headers?" >&2;}
17368     { echo "$as_me:$LINENO: WARNING: krb.h: see the Autoconf documentation" >&5
17369 echo "$as_me: WARNING: krb.h: see the Autoconf documentation" >&2;}
17370     { echo "$as_me:$LINENO: WARNING: krb.h:     section \"Present But Cannot Be Compiled\"" >&5
17371 echo "$as_me: WARNING: krb.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17372     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
17373 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
17374     { echo "$as_me:$LINENO: WARNING: krb.h: in the future, the compiler will take precedence" >&5
17375 echo "$as_me: WARNING: krb.h: in the future, the compiler will take precedence" >&2;}
17376
17377     ;;
17378 esac
17379 { echo "$as_me:$LINENO: checking for krb.h" >&5
17380 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
17381 if test "${ac_cv_header_krb_h+set}" = set; then
17382   echo $ECHO_N "(cached) $ECHO_C" >&6
17383 else
17384   ac_cv_header_krb_h=$ac_header_preproc
17385 fi
17386 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
17387 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
17388
17389 fi
17390 if test $ac_cv_header_krb_h = yes; then
17391
17392         { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17393 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
17394 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17395   echo $ECHO_N "(cached) $ECHO_C" >&6
17396 else
17397   ac_check_lib_save_LIBS=$LIBS
17398 LIBS="-lcom_err  $LIBS"
17399 cat >conftest.$ac_ext <<_ACEOF
17400 /* confdefs.h.  */
17401 _ACEOF
17402 cat confdefs.h >>conftest.$ac_ext
17403 cat >>conftest.$ac_ext <<_ACEOF
17404 /* end confdefs.h.  */
17405
17406 /* Override any GCC internal prototype to avoid an error.
17407    Use char because int might match the return type of a GCC
17408    builtin and then its argument prototype would still apply.  */
17409 #ifdef __cplusplus
17410 extern "C"
17411 #endif
17412 char com_err ();
17413 int
17414 main ()
17415 {
17416 return com_err ();
17417   ;
17418   return 0;
17419 }
17420 _ACEOF
17421 rm -f conftest.$ac_objext conftest$ac_exeext
17422 if { (ac_try="$ac_link"
17423 case "(($ac_try" in
17424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17425   *) ac_try_echo=$ac_try;;
17426 esac
17427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17428   (eval "$ac_link") 2>conftest.er1
17429   ac_status=$?
17430   grep -v '^ *+' conftest.er1 >conftest.err
17431   rm -f conftest.er1
17432   cat conftest.err >&5
17433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434   (exit $ac_status); } && {
17435          test -z "$ac_c_werror_flag" ||
17436          test ! -s conftest.err
17437        } && test -s conftest$ac_exeext &&
17438        $as_test_x conftest$ac_exeext; then
17439   ac_cv_lib_com_err_com_err=yes
17440 else
17441   echo "$as_me: failed program was:" >&5
17442 sed 's/^/| /' conftest.$ac_ext >&5
17443
17444         ac_cv_lib_com_err_com_err=no
17445 fi
17446
17447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17448       conftest$ac_exeext conftest.$ac_ext
17449 LIBS=$ac_check_lib_save_LIBS
17450 fi
17451 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17452 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
17453 if test $ac_cv_lib_com_err_com_err = yes; then
17454
17455           { echo "$as_me:$LINENO: checking for krb_mk_priv in -lkrb" >&5
17456 echo $ECHO_N "checking for krb_mk_priv in -lkrb... $ECHO_C" >&6; }
17457 if test "${ac_cv_lib_krb_krb_mk_priv+set}" = set; then
17458   echo $ECHO_N "(cached) $ECHO_C" >&6
17459 else
17460   ac_check_lib_save_LIBS=$LIBS
17461 LIBS="-lkrb $LIB_DES -lcom_err $LIBS"
17462 cat >conftest.$ac_ext <<_ACEOF
17463 /* confdefs.h.  */
17464 _ACEOF
17465 cat confdefs.h >>conftest.$ac_ext
17466 cat >>conftest.$ac_ext <<_ACEOF
17467 /* end confdefs.h.  */
17468
17469 /* Override any GCC internal prototype to avoid an error.
17470    Use char because int might match the return type of a GCC
17471    builtin and then its argument prototype would still apply.  */
17472 #ifdef __cplusplus
17473 extern "C"
17474 #endif
17475 char krb_mk_priv ();
17476 int
17477 main ()
17478 {
17479 return krb_mk_priv ();
17480   ;
17481   return 0;
17482 }
17483 _ACEOF
17484 rm -f conftest.$ac_objext conftest$ac_exeext
17485 if { (ac_try="$ac_link"
17486 case "(($ac_try" in
17487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17488   *) ac_try_echo=$ac_try;;
17489 esac
17490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17491   (eval "$ac_link") 2>conftest.er1
17492   ac_status=$?
17493   grep -v '^ *+' conftest.er1 >conftest.err
17494   rm -f conftest.er1
17495   cat conftest.err >&5
17496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497   (exit $ac_status); } && {
17498          test -z "$ac_c_werror_flag" ||
17499          test ! -s conftest.err
17500        } && test -s conftest$ac_exeext &&
17501        $as_test_x conftest$ac_exeext; then
17502   ac_cv_lib_krb_krb_mk_priv=yes
17503 else
17504   echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17506
17507         ac_cv_lib_krb_krb_mk_priv=no
17508 fi
17509
17510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17511       conftest$ac_exeext conftest.$ac_ext
17512 LIBS=$ac_check_lib_save_LIBS
17513 fi
17514 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_mk_priv" >&5
17515 echo "${ECHO_T}$ac_cv_lib_krb_krb_mk_priv" >&6; }
17516 if test $ac_cv_lib_krb_krb_mk_priv = yes; then
17517   COM_ERR="-lcom_err"; SASL_KRB_LIB="-lkrb"; krb4lib="yes"
17518 else
17519   krb4lib=no
17520 fi
17521
17522 else
17523
17524           { echo "$as_me:$LINENO: checking for krb_mk_priv in -lkrb" >&5
17525 echo $ECHO_N "checking for krb_mk_priv in -lkrb... $ECHO_C" >&6; }
17526 if test "${ac_cv_lib_krb_krb_mk_priv+set}" = set; then
17527   echo $ECHO_N "(cached) $ECHO_C" >&6
17528 else
17529   ac_check_lib_save_LIBS=$LIBS
17530 LIBS="-lkrb $LIB_DES $LIBS"
17531 cat >conftest.$ac_ext <<_ACEOF
17532 /* confdefs.h.  */
17533 _ACEOF
17534 cat confdefs.h >>conftest.$ac_ext
17535 cat >>conftest.$ac_ext <<_ACEOF
17536 /* end confdefs.h.  */
17537
17538 /* Override any GCC internal prototype to avoid an error.
17539    Use char because int might match the return type of a GCC
17540    builtin and then its argument prototype would still apply.  */
17541 #ifdef __cplusplus
17542 extern "C"
17543 #endif
17544 char krb_mk_priv ();
17545 int
17546 main ()
17547 {
17548 return krb_mk_priv ();
17549   ;
17550   return 0;
17551 }
17552 _ACEOF
17553 rm -f conftest.$ac_objext conftest$ac_exeext
17554 if { (ac_try="$ac_link"
17555 case "(($ac_try" in
17556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17557   *) ac_try_echo=$ac_try;;
17558 esac
17559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17560   (eval "$ac_link") 2>conftest.er1
17561   ac_status=$?
17562   grep -v '^ *+' conftest.er1 >conftest.err
17563   rm -f conftest.er1
17564   cat conftest.err >&5
17565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566   (exit $ac_status); } && {
17567          test -z "$ac_c_werror_flag" ||
17568          test ! -s conftest.err
17569        } && test -s conftest$ac_exeext &&
17570        $as_test_x conftest$ac_exeext; then
17571   ac_cv_lib_krb_krb_mk_priv=yes
17572 else
17573   echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17575
17576         ac_cv_lib_krb_krb_mk_priv=no
17577 fi
17578
17579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17580       conftest$ac_exeext conftest.$ac_ext
17581 LIBS=$ac_check_lib_save_LIBS
17582 fi
17583 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_mk_priv" >&5
17584 echo "${ECHO_T}$ac_cv_lib_krb_krb_mk_priv" >&6; }
17585 if test $ac_cv_lib_krb_krb_mk_priv = yes; then
17586   COM_ERR=""; SASL_KRB_LIB="-lkrb"; krb4lib="yes"
17587 else
17588   krb4lib=no
17589 fi
17590
17591 fi
17592
17593 else
17594   krb4="no"
17595 fi
17596
17597
17598
17599       if test "$krb4" != "no" -a "$krb4lib" = "no"; then
17600         { echo "$as_me:$LINENO: checking for krb_mk_priv in -lkrb4" >&5
17601 echo $ECHO_N "checking for krb_mk_priv in -lkrb4... $ECHO_C" >&6; }
17602 if test "${ac_cv_lib_krb4_krb_mk_priv+set}" = set; then
17603   echo $ECHO_N "(cached) $ECHO_C" >&6
17604 else
17605   ac_check_lib_save_LIBS=$LIBS
17606 LIBS="-lkrb4 $LIB_DES $LIBS"
17607 cat >conftest.$ac_ext <<_ACEOF
17608 /* confdefs.h.  */
17609 _ACEOF
17610 cat confdefs.h >>conftest.$ac_ext
17611 cat >>conftest.$ac_ext <<_ACEOF
17612 /* end confdefs.h.  */
17613
17614 /* Override any GCC internal prototype to avoid an error.
17615    Use char because int might match the return type of a GCC
17616    builtin and then its argument prototype would still apply.  */
17617 #ifdef __cplusplus
17618 extern "C"
17619 #endif
17620 char krb_mk_priv ();
17621 int
17622 main ()
17623 {
17624 return krb_mk_priv ();
17625   ;
17626   return 0;
17627 }
17628 _ACEOF
17629 rm -f conftest.$ac_objext conftest$ac_exeext
17630 if { (ac_try="$ac_link"
17631 case "(($ac_try" in
17632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17633   *) ac_try_echo=$ac_try;;
17634 esac
17635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17636   (eval "$ac_link") 2>conftest.er1
17637   ac_status=$?
17638   grep -v '^ *+' conftest.er1 >conftest.err
17639   rm -f conftest.er1
17640   cat conftest.err >&5
17641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642   (exit $ac_status); } && {
17643          test -z "$ac_c_werror_flag" ||
17644          test ! -s conftest.err
17645        } && test -s conftest$ac_exeext &&
17646        $as_test_x conftest$ac_exeext; then
17647   ac_cv_lib_krb4_krb_mk_priv=yes
17648 else
17649   echo "$as_me: failed program was:" >&5
17650 sed 's/^/| /' conftest.$ac_ext >&5
17651
17652         ac_cv_lib_krb4_krb_mk_priv=no
17653 fi
17654
17655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17656       conftest$ac_exeext conftest.$ac_ext
17657 LIBS=$ac_check_lib_save_LIBS
17658 fi
17659 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_mk_priv" >&5
17660 echo "${ECHO_T}$ac_cv_lib_krb4_krb_mk_priv" >&6; }
17661 if test $ac_cv_lib_krb4_krb_mk_priv = yes; then
17662   COM_ERR=""; SASL_KRB_LIB="-lkrb4"; krb4=yes
17663 else
17664   krb4=no
17665 fi
17666
17667       fi
17668       if test "$krb4" = no; then
17669           { echo "$as_me:$LINENO: WARNING: No Kerberos V4 found" >&5
17670 echo "$as_me: WARNING: No Kerberos V4 found" >&2;}
17671       fi
17672     else
17673       { echo "$as_me:$LINENO: WARNING: No DES library found for Kerberos V4 support" >&5
17674 echo "$as_me: WARNING: No DES library found for Kerberos V4 support" >&2;}
17675       krb4=no
17676     fi
17677   fi
17678
17679   if test "$krb4" != no; then
17680     cmu_save_LIBS="$LIBS"
17681     LIBS="$LIBS $SASL_KRB_LIB"
17682
17683 for ac_func in krb_get_err_text
17684 do
17685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17686 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17688 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17689   echo $ECHO_N "(cached) $ECHO_C" >&6
17690 else
17691   cat >conftest.$ac_ext <<_ACEOF
17692 /* confdefs.h.  */
17693 _ACEOF
17694 cat confdefs.h >>conftest.$ac_ext
17695 cat >>conftest.$ac_ext <<_ACEOF
17696 /* end confdefs.h.  */
17697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17698    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17699 #define $ac_func innocuous_$ac_func
17700
17701 /* System header to define __stub macros and hopefully few prototypes,
17702     which can conflict with char $ac_func (); below.
17703     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17704     <limits.h> exists even on freestanding compilers.  */
17705
17706 #ifdef __STDC__
17707 # include <limits.h>
17708 #else
17709 # include <assert.h>
17710 #endif
17711
17712 #undef $ac_func
17713
17714 /* Override any GCC internal prototype to avoid an error.
17715    Use char because int might match the return type of a GCC
17716    builtin and then its argument prototype would still apply.  */
17717 #ifdef __cplusplus
17718 extern "C"
17719 #endif
17720 char $ac_func ();
17721 /* The GNU C library defines this for functions which it implements
17722     to always fail with ENOSYS.  Some functions are actually named
17723     something starting with __ and the normal name is an alias.  */
17724 #if defined __stub_$ac_func || defined __stub___$ac_func
17725 choke me
17726 #endif
17727
17728 int
17729 main ()
17730 {
17731 return $ac_func ();
17732   ;
17733   return 0;
17734 }
17735 _ACEOF
17736 rm -f conftest.$ac_objext conftest$ac_exeext
17737 if { (ac_try="$ac_link"
17738 case "(($ac_try" in
17739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17740   *) ac_try_echo=$ac_try;;
17741 esac
17742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17743   (eval "$ac_link") 2>conftest.er1
17744   ac_status=$?
17745   grep -v '^ *+' conftest.er1 >conftest.err
17746   rm -f conftest.er1
17747   cat conftest.err >&5
17748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749   (exit $ac_status); } && {
17750          test -z "$ac_c_werror_flag" ||
17751          test ! -s conftest.err
17752        } && test -s conftest$ac_exeext &&
17753        $as_test_x conftest$ac_exeext; then
17754   eval "$as_ac_var=yes"
17755 else
17756   echo "$as_me: failed program was:" >&5
17757 sed 's/^/| /' conftest.$ac_ext >&5
17758
17759         eval "$as_ac_var=no"
17760 fi
17761
17762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17763       conftest$ac_exeext conftest.$ac_ext
17764 fi
17765 ac_res=`eval echo '${'$as_ac_var'}'`
17766                { echo "$as_me:$LINENO: result: $ac_res" >&5
17767 echo "${ECHO_T}$ac_res" >&6; }
17768 if test `eval echo '${'$as_ac_var'}'` = yes; then
17769   cat >>confdefs.h <<_ACEOF
17770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17771 _ACEOF
17772
17773 fi
17774 done
17775
17776     LIBS="$cmu_save_LIBS"
17777   fi
17778
17779   { echo "$as_me:$LINENO: checking KERBEROS_V4" >&5
17780 echo $ECHO_N "checking KERBEROS_V4... $ECHO_C" >&6; }
17781   if test "$krb4" != no; then
17782     { echo "$as_me:$LINENO: result: enabled" >&5
17783 echo "${ECHO_T}enabled" >&6; }
17784     SASL_MECHS="$SASL_MECHS libkerberos4.la"
17785     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/kerberos4.c"
17786     SASL_STATIC_OBJS="$SASL_STATIC_OBJS kerberos4.o"
17787
17788 cat >>confdefs.h <<\_ACEOF
17789 #define STATIC_KERBEROS4
17790 _ACEOF
17791
17792
17793 cat >>confdefs.h <<\_ACEOF
17794 #define HAVE_KRB
17795 _ACEOF
17796
17797     SASL_KRB_LIB="$SASL_KRB_LIB $LIB_DES $COM_ERR"
17798   else
17799     { echo "$as_me:$LINENO: result: disabled" >&5
17800 echo "${ECHO_T}disabled" >&6; }
17801   fi
17802
17803
17804 { echo "$as_me:$LINENO: checking for crypt" >&5
17805 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
17806 if test "${ac_cv_func_crypt+set}" = set; then
17807   echo $ECHO_N "(cached) $ECHO_C" >&6
17808 else
17809   cat >conftest.$ac_ext <<_ACEOF
17810 /* confdefs.h.  */
17811 _ACEOF
17812 cat confdefs.h >>conftest.$ac_ext
17813 cat >>conftest.$ac_ext <<_ACEOF
17814 /* end confdefs.h.  */
17815 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
17816    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17817 #define crypt innocuous_crypt
17818
17819 /* System header to define __stub macros and hopefully few prototypes,
17820     which can conflict with char crypt (); below.
17821     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17822     <limits.h> exists even on freestanding compilers.  */
17823
17824 #ifdef __STDC__
17825 # include <limits.h>
17826 #else
17827 # include <assert.h>
17828 #endif
17829
17830 #undef crypt
17831
17832 /* Override any GCC internal prototype to avoid an error.
17833    Use char because int might match the return type of a GCC
17834    builtin and then its argument prototype would still apply.  */
17835 #ifdef __cplusplus
17836 extern "C"
17837 #endif
17838 char crypt ();
17839 /* The GNU C library defines this for functions which it implements
17840     to always fail with ENOSYS.  Some functions are actually named
17841     something starting with __ and the normal name is an alias.  */
17842 #if defined __stub_crypt || defined __stub___crypt
17843 choke me
17844 #endif
17845
17846 int
17847 main ()
17848 {
17849 return crypt ();
17850   ;
17851   return 0;
17852 }
17853 _ACEOF
17854 rm -f conftest.$ac_objext conftest$ac_exeext
17855 if { (ac_try="$ac_link"
17856 case "(($ac_try" in
17857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858   *) ac_try_echo=$ac_try;;
17859 esac
17860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861   (eval "$ac_link") 2>conftest.er1
17862   ac_status=$?
17863   grep -v '^ *+' conftest.er1 >conftest.err
17864   rm -f conftest.er1
17865   cat conftest.err >&5
17866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867   (exit $ac_status); } && {
17868          test -z "$ac_c_werror_flag" ||
17869          test ! -s conftest.err
17870        } && test -s conftest$ac_exeext &&
17871        $as_test_x conftest$ac_exeext; then
17872   ac_cv_func_crypt=yes
17873 else
17874   echo "$as_me: failed program was:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17876
17877         ac_cv_func_crypt=no
17878 fi
17879
17880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17881       conftest$ac_exeext conftest.$ac_ext
17882 fi
17883 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
17884 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
17885 if test $ac_cv_func_crypt = yes; then
17886   cmu_have_crypt=yes
17887 else
17888   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17889 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17890 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17891   echo $ECHO_N "(cached) $ECHO_C" >&6
17892 else
17893   ac_check_lib_save_LIBS=$LIBS
17894 LIBS="-lcrypt  $LIBS"
17895 cat >conftest.$ac_ext <<_ACEOF
17896 /* confdefs.h.  */
17897 _ACEOF
17898 cat confdefs.h >>conftest.$ac_ext
17899 cat >>conftest.$ac_ext <<_ACEOF
17900 /* end confdefs.h.  */
17901
17902 /* Override any GCC internal prototype to avoid an error.
17903    Use char because int might match the return type of a GCC
17904    builtin and then its argument prototype would still apply.  */
17905 #ifdef __cplusplus
17906 extern "C"
17907 #endif
17908 char crypt ();
17909 int
17910 main ()
17911 {
17912 return crypt ();
17913   ;
17914   return 0;
17915 }
17916 _ACEOF
17917 rm -f conftest.$ac_objext conftest$ac_exeext
17918 if { (ac_try="$ac_link"
17919 case "(($ac_try" in
17920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17921   *) ac_try_echo=$ac_try;;
17922 esac
17923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17924   (eval "$ac_link") 2>conftest.er1
17925   ac_status=$?
17926   grep -v '^ *+' conftest.er1 >conftest.err
17927   rm -f conftest.er1
17928   cat conftest.err >&5
17929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930   (exit $ac_status); } && {
17931          test -z "$ac_c_werror_flag" ||
17932          test ! -s conftest.err
17933        } && test -s conftest$ac_exeext &&
17934        $as_test_x conftest$ac_exeext; then
17935   ac_cv_lib_crypt_crypt=yes
17936 else
17937   echo "$as_me: failed program was:" >&5
17938 sed 's/^/| /' conftest.$ac_ext >&5
17939
17940         ac_cv_lib_crypt_crypt=no
17941 fi
17942
17943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17944       conftest$ac_exeext conftest.$ac_ext
17945 LIBS=$ac_check_lib_save_LIBS
17946 fi
17947 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17948 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17949 if test $ac_cv_lib_crypt_crypt = yes; then
17950   LIB_CRYPT="-lcrypt"; cmu_have_crypt=yes
17951 else
17952   cmu_have_crypt=no
17953 fi
17954
17955 fi
17956
17957
17958
17959
17960
17961 # Check whether --enable-gssapi was given.
17962 if test "${enable_gssapi+set}" = set; then
17963   enableval=$enable_gssapi; gssapi=$enableval
17964 else
17965   gssapi=yes
17966 fi
17967
17968
17969 # Check whether --with-gss_impl was given.
17970 if test "${with_gss_impl+set}" = set; then
17971   withval=$with_gss_impl; gss_impl=$withval
17972 else
17973   gss_impl=auto
17974 fi
17975
17976
17977 if test "$gssapi" != no; then
17978   platform=
17979   case "${host}" in
17980     *-*-linux*)
17981       platform=__linux
17982       ;;
17983     *-*-hpux*)
17984       platform=__hpux
17985       ;;
17986     *-*-irix*)
17987       platform=__irix
17988       ;;
17989     *-*-solaris2*)
17990 # When should we use __sunos?
17991       platform=__solaris
17992       ;;
17993     *-*-aix*)
17994 ###_AIX
17995       platform=__aix
17996       ;;
17997     *)
17998       { 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
17999 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;}
18000       if test "$gss_impl" = "cybersafe"; then
18001         { { echo "$as_me:$LINENO: error: CyberSafe was forced, cannot continue as platform is not supported" >&5
18002 echo "$as_me: error: CyberSafe was forced, cannot continue as platform is not supported" >&2;}
18003    { (exit 1); exit 1; }; }
18004       fi
18005       ;;
18006   esac
18007
18008   cmu_saved_CPPFLAGS=$CPPFLAGS
18009
18010   if test -d ${gssapi}; then
18011     CPPFLAGS="$CPPFLAGS -I$gssapi/include"
18012 # We want to keep -I in our CPPFLAGS, but only if we succeed
18013     cmu_saved_CPPFLAGS=$CPPFLAGS
18014 ### I am not sure how useful is this (and whether this is required at all
18015 ### especially when we have to provide two -L flags for new CyberSafe
18016     LDFLAGS="$LDFLAGS -L$gssapi/lib"
18017
18018     if test -n "$platform"; then
18019       if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
18020         CPPFLAGS="$CPPFLAGS -D$platform"
18021         if test -d "${gssapi}/appsec-sdk/include"; then
18022           CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
18023         fi
18024       fi
18025     fi
18026   fi
18027   if test "${ac_cv_header_gssapi_h+set}" = set; then
18028   { echo "$as_me:$LINENO: checking for gssapi.h" >&5
18029 echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
18030 if test "${ac_cv_header_gssapi_h+set}" = set; then
18031   echo $ECHO_N "(cached) $ECHO_C" >&6
18032 fi
18033 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
18034 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
18035 else
18036   # Is the header compilable?
18037 { echo "$as_me:$LINENO: checking gssapi.h usability" >&5
18038 echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; }
18039 cat >conftest.$ac_ext <<_ACEOF
18040 /* confdefs.h.  */
18041 _ACEOF
18042 cat confdefs.h >>conftest.$ac_ext
18043 cat >>conftest.$ac_ext <<_ACEOF
18044 /* end confdefs.h.  */
18045 $ac_includes_default
18046 #include <gssapi.h>
18047 _ACEOF
18048 rm -f conftest.$ac_objext
18049 if { (ac_try="$ac_compile"
18050 case "(($ac_try" in
18051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18052   *) ac_try_echo=$ac_try;;
18053 esac
18054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18055   (eval "$ac_compile") 2>conftest.er1
18056   ac_status=$?
18057   grep -v '^ *+' conftest.er1 >conftest.err
18058   rm -f conftest.er1
18059   cat conftest.err >&5
18060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061   (exit $ac_status); } && {
18062          test -z "$ac_c_werror_flag" ||
18063          test ! -s conftest.err
18064        } && test -s conftest.$ac_objext; then
18065   ac_header_compiler=yes
18066 else
18067   echo "$as_me: failed program was:" >&5
18068 sed 's/^/| /' conftest.$ac_ext >&5
18069
18070         ac_header_compiler=no
18071 fi
18072
18073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18075 echo "${ECHO_T}$ac_header_compiler" >&6; }
18076
18077 # Is the header present?
18078 { echo "$as_me:$LINENO: checking gssapi.h presence" >&5
18079 echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; }
18080 cat >conftest.$ac_ext <<_ACEOF
18081 /* confdefs.h.  */
18082 _ACEOF
18083 cat confdefs.h >>conftest.$ac_ext
18084 cat >>conftest.$ac_ext <<_ACEOF
18085 /* end confdefs.h.  */
18086 #include <gssapi.h>
18087 _ACEOF
18088 if { (ac_try="$ac_cpp conftest.$ac_ext"
18089 case "(($ac_try" in
18090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18091   *) ac_try_echo=$ac_try;;
18092 esac
18093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18094   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18095   ac_status=$?
18096   grep -v '^ *+' conftest.er1 >conftest.err
18097   rm -f conftest.er1
18098   cat conftest.err >&5
18099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100   (exit $ac_status); } >/dev/null && {
18101          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18102          test ! -s conftest.err
18103        }; then
18104   ac_header_preproc=yes
18105 else
18106   echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18108
18109   ac_header_preproc=no
18110 fi
18111
18112 rm -f conftest.err conftest.$ac_ext
18113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18114 echo "${ECHO_T}$ac_header_preproc" >&6; }
18115
18116 # So?  What about this header?
18117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18118   yes:no: )
18119     { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
18120 echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18121     { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
18122 echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
18123     ac_header_preproc=yes
18124     ;;
18125   no:yes:* )
18126     { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
18127 echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
18128     { echo "$as_me:$LINENO: WARNING: gssapi.h:     check for missing prerequisite headers?" >&5
18129 echo "$as_me: WARNING: gssapi.h:     check for missing prerequisite headers?" >&2;}
18130     { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
18131 echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
18132     { echo "$as_me:$LINENO: WARNING: gssapi.h:     section \"Present But Cannot Be Compiled\"" >&5
18133 echo "$as_me: WARNING: gssapi.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18134     { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
18135 echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
18136     { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
18137 echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
18138
18139     ;;
18140 esac
18141 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
18142 echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
18143 if test "${ac_cv_header_gssapi_h+set}" = set; then
18144   echo $ECHO_N "(cached) $ECHO_C" >&6
18145 else
18146   ac_cv_header_gssapi_h=$ac_header_preproc
18147 fi
18148 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
18149 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
18150
18151 fi
18152 if test $ac_cv_header_gssapi_h = yes; then
18153
18154 cat >>confdefs.h <<\_ACEOF
18155 #define HAVE_GSSAPI_H
18156 _ACEOF
18157
18158 else
18159   if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then
18160   { echo "$as_me:$LINENO: checking for gssapi/gssapi.h" >&5
18161 echo $ECHO_N "checking for gssapi/gssapi.h... $ECHO_C" >&6; }
18162 if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then
18163   echo $ECHO_N "(cached) $ECHO_C" >&6
18164 fi
18165 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5
18166 echo "${ECHO_T}$ac_cv_header_gssapi_gssapi_h" >&6; }
18167 else
18168   # Is the header compilable?
18169 { echo "$as_me:$LINENO: checking gssapi/gssapi.h usability" >&5
18170 echo $ECHO_N "checking gssapi/gssapi.h usability... $ECHO_C" >&6; }
18171 cat >conftest.$ac_ext <<_ACEOF
18172 /* confdefs.h.  */
18173 _ACEOF
18174 cat confdefs.h >>conftest.$ac_ext
18175 cat >>conftest.$ac_ext <<_ACEOF
18176 /* end confdefs.h.  */
18177 $ac_includes_default
18178 #include <gssapi/gssapi.h>
18179 _ACEOF
18180 rm -f conftest.$ac_objext
18181 if { (ac_try="$ac_compile"
18182 case "(($ac_try" in
18183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18184   *) ac_try_echo=$ac_try;;
18185 esac
18186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18187   (eval "$ac_compile") 2>conftest.er1
18188   ac_status=$?
18189   grep -v '^ *+' conftest.er1 >conftest.err
18190   rm -f conftest.er1
18191   cat conftest.err >&5
18192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193   (exit $ac_status); } && {
18194          test -z "$ac_c_werror_flag" ||
18195          test ! -s conftest.err
18196        } && test -s conftest.$ac_objext; then
18197   ac_header_compiler=yes
18198 else
18199   echo "$as_me: failed program was:" >&5
18200 sed 's/^/| /' conftest.$ac_ext >&5
18201
18202         ac_header_compiler=no
18203 fi
18204
18205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18207 echo "${ECHO_T}$ac_header_compiler" >&6; }
18208
18209 # Is the header present?
18210 { echo "$as_me:$LINENO: checking gssapi/gssapi.h presence" >&5
18211 echo $ECHO_N "checking gssapi/gssapi.h presence... $ECHO_C" >&6; }
18212 cat >conftest.$ac_ext <<_ACEOF
18213 /* confdefs.h.  */
18214 _ACEOF
18215 cat confdefs.h >>conftest.$ac_ext
18216 cat >>conftest.$ac_ext <<_ACEOF
18217 /* end confdefs.h.  */
18218 #include <gssapi/gssapi.h>
18219 _ACEOF
18220 if { (ac_try="$ac_cpp conftest.$ac_ext"
18221 case "(($ac_try" in
18222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18223   *) ac_try_echo=$ac_try;;
18224 esac
18225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18226   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18227   ac_status=$?
18228   grep -v '^ *+' conftest.er1 >conftest.err
18229   rm -f conftest.er1
18230   cat conftest.err >&5
18231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232   (exit $ac_status); } >/dev/null && {
18233          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18234          test ! -s conftest.err
18235        }; then
18236   ac_header_preproc=yes
18237 else
18238   echo "$as_me: failed program was:" >&5
18239 sed 's/^/| /' conftest.$ac_ext >&5
18240
18241   ac_header_preproc=no
18242 fi
18243
18244 rm -f conftest.err conftest.$ac_ext
18245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18246 echo "${ECHO_T}$ac_header_preproc" >&6; }
18247
18248 # So?  What about this header?
18249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18250   yes:no: )
18251     { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
18252 echo "$as_me: WARNING: gssapi/gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18253     { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: proceeding with the compiler's result" >&5
18254 echo "$as_me: WARNING: gssapi/gssapi.h: proceeding with the compiler's result" >&2;}
18255     ac_header_preproc=yes
18256     ;;
18257   no:yes:* )
18258     { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: present but cannot be compiled" >&5
18259 echo "$as_me: WARNING: gssapi/gssapi.h: present but cannot be compiled" >&2;}
18260     { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h:     check for missing prerequisite headers?" >&5
18261 echo "$as_me: WARNING: gssapi/gssapi.h:     check for missing prerequisite headers?" >&2;}
18262     { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: see the Autoconf documentation" >&5
18263 echo "$as_me: WARNING: gssapi/gssapi.h: see the Autoconf documentation" >&2;}
18264     { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h:     section \"Present But Cannot Be Compiled\"" >&5
18265 echo "$as_me: WARNING: gssapi/gssapi.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18266     { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: proceeding with the preprocessor's result" >&5
18267 echo "$as_me: WARNING: gssapi/gssapi.h: proceeding with the preprocessor's result" >&2;}
18268     { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: in the future, the compiler will take precedence" >&5
18269 echo "$as_me: WARNING: gssapi/gssapi.h: in the future, the compiler will take precedence" >&2;}
18270
18271     ;;
18272 esac
18273 { echo "$as_me:$LINENO: checking for gssapi/gssapi.h" >&5
18274 echo $ECHO_N "checking for gssapi/gssapi.h... $ECHO_C" >&6; }
18275 if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then
18276   echo $ECHO_N "(cached) $ECHO_C" >&6
18277 else
18278   ac_cv_header_gssapi_gssapi_h=$ac_header_preproc
18279 fi
18280 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5
18281 echo "${ECHO_T}$ac_cv_header_gssapi_gssapi_h" >&6; }
18282
18283 fi
18284 if test $ac_cv_header_gssapi_gssapi_h = yes; then
18285   :
18286 else
18287   { echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - no include files found" >&5
18288 echo "$as_me: WARNING: Disabling GSSAPI - no include files found" >&2;}; gssapi=no
18289 fi
18290
18291
18292 fi
18293
18294
18295
18296   CPPFLAGS=$cmu_saved_CPPFLAGS
18297
18298 fi
18299
18300 if test "$gssapi" != no; then
18301   # We need to find out which gssapi implementation we are
18302   # using. Supported alternatives are: MIT Kerberos 5,
18303   # Heimdal Kerberos 5 (http://www.pdc.kth.se/heimdal),
18304   # CyberSafe Kerberos 5 (http://www.cybersafe.com/)
18305   # and Sun SEAM (http://wwws.sun.com/software/security/kerberos/)
18306   #
18307   # The choice is reflected in GSSAPIBASE_LIBS
18308
18309
18310 { echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
18311 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6; }
18312 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
18313   echo $ECHO_N "(cached) $ECHO_C" >&6
18314 else
18315   ac_check_lib_save_LIBS=$LIBS
18316 LIBS="-lresolv  $LIBS"
18317 cat >conftest.$ac_ext <<_ACEOF
18318 /* confdefs.h.  */
18319 _ACEOF
18320 cat confdefs.h >>conftest.$ac_ext
18321 cat >>conftest.$ac_ext <<_ACEOF
18322 /* end confdefs.h.  */
18323
18324 /* Override any GCC internal prototype to avoid an error.
18325    Use char because int might match the return type of a GCC
18326    builtin and then its argument prototype would still apply.  */
18327 #ifdef __cplusplus
18328 extern "C"
18329 #endif
18330 char res_search ();
18331 int
18332 main ()
18333 {
18334 return res_search ();
18335   ;
18336   return 0;
18337 }
18338 _ACEOF
18339 rm -f conftest.$ac_objext conftest$ac_exeext
18340 if { (ac_try="$ac_link"
18341 case "(($ac_try" in
18342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18343   *) ac_try_echo=$ac_try;;
18344 esac
18345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18346   (eval "$ac_link") 2>conftest.er1
18347   ac_status=$?
18348   grep -v '^ *+' conftest.er1 >conftest.err
18349   rm -f conftest.er1
18350   cat conftest.err >&5
18351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352   (exit $ac_status); } && {
18353          test -z "$ac_c_werror_flag" ||
18354          test ! -s conftest.err
18355        } && test -s conftest$ac_exeext &&
18356        $as_test_x conftest$ac_exeext; then
18357   ac_cv_lib_resolv_res_search=yes
18358 else
18359   echo "$as_me: failed program was:" >&5
18360 sed 's/^/| /' conftest.$ac_ext >&5
18361
18362         ac_cv_lib_resolv_res_search=no
18363 fi
18364
18365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18366       conftest$ac_exeext conftest.$ac_ext
18367 LIBS=$ac_check_lib_save_LIBS
18368 fi
18369 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
18370 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6; }
18371 if test $ac_cv_lib_resolv_res_search = yes; then
18372   cat >>confdefs.h <<_ACEOF
18373 #define HAVE_LIBRESOLV 1
18374 _ACEOF
18375
18376   LIBS="-lresolv $LIBS"
18377
18378 fi
18379
18380   if test -d ${gssapi}; then
18381      gssapi_dir="${gssapi}/lib"
18382      GSSAPIBASE_LIBS="-L$gssapi_dir"
18383      GSSAPIBASE_STATIC_LIBS="-L$gssapi_dir"
18384   else
18385      # FIXME: This is only used for building cyrus, and then only as
18386      # a real hack.  it needs to be fixed.
18387      gssapi_dir="/usr/local/lib"
18388   fi
18389
18390   # Check a full link against the Heimdal libraries.
18391   # If this fails, check a full link against the MIT libraries.
18392   # If this fails, check a full link against the CyberSafe libraries.
18393   # If this fails, check a full link against the Solaris 8 and up libgss.
18394
18395   if test "$gss_impl" = "auto" -o "$gss_impl" = "heimdal"; then
18396     gss_failed=0
18397     { echo "$as_me:$LINENO: checking for gss_unwrap in -lgssapi" >&5
18398 echo $ECHO_N "checking for gss_unwrap in -lgssapi... $ECHO_C" >&6; }
18399 if test "${ac_cv_lib_gssapi_gss_unwrap+set}" = set; then
18400   echo $ECHO_N "(cached) $ECHO_C" >&6
18401 else
18402   ac_check_lib_save_LIBS=$LIBS
18403 LIBS="-lgssapi ${GSSAPIBASE_LIBS} -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err ${LIB_SOCKET} $LIBS"
18404 cat >conftest.$ac_ext <<_ACEOF
18405 /* confdefs.h.  */
18406 _ACEOF
18407 cat confdefs.h >>conftest.$ac_ext
18408 cat >>conftest.$ac_ext <<_ACEOF
18409 /* end confdefs.h.  */
18410
18411 /* Override any GCC internal prototype to avoid an error.
18412    Use char because int might match the return type of a GCC
18413    builtin and then its argument prototype would still apply.  */
18414 #ifdef __cplusplus
18415 extern "C"
18416 #endif
18417 char gss_unwrap ();
18418 int
18419 main ()
18420 {
18421 return gss_unwrap ();
18422   ;
18423   return 0;
18424 }
18425 _ACEOF
18426 rm -f conftest.$ac_objext conftest$ac_exeext
18427 if { (ac_try="$ac_link"
18428 case "(($ac_try" in
18429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18430   *) ac_try_echo=$ac_try;;
18431 esac
18432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18433   (eval "$ac_link") 2>conftest.er1
18434   ac_status=$?
18435   grep -v '^ *+' conftest.er1 >conftest.err
18436   rm -f conftest.er1
18437   cat conftest.err >&5
18438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439   (exit $ac_status); } && {
18440          test -z "$ac_c_werror_flag" ||
18441          test ! -s conftest.err
18442        } && test -s conftest$ac_exeext &&
18443        $as_test_x conftest$ac_exeext; then
18444   ac_cv_lib_gssapi_gss_unwrap=yes
18445 else
18446   echo "$as_me: failed program was:" >&5
18447 sed 's/^/| /' conftest.$ac_ext >&5
18448
18449         ac_cv_lib_gssapi_gss_unwrap=no
18450 fi
18451
18452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18453       conftest$ac_exeext conftest.$ac_ext
18454 LIBS=$ac_check_lib_save_LIBS
18455 fi
18456 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_unwrap" >&5
18457 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_unwrap" >&6; }
18458 if test $ac_cv_lib_gssapi_gss_unwrap = yes; then
18459   gss_impl="heimdal"
18460 else
18461   gss_failed=1
18462 fi
18463
18464     if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
18465       gss_impl="failed"
18466     fi
18467   fi
18468
18469   if test "$gss_impl" = "auto" -o "$gss_impl" = "mit"; then
18470     # check for libkrb5support first
18471     { echo "$as_me:$LINENO: checking for krb5int_getspecific in -lkrb5support" >&5
18472 echo $ECHO_N "checking for krb5int_getspecific in -lkrb5support... $ECHO_C" >&6; }
18473 if test "${ac_cv_lib_krb5support_krb5int_getspecific+set}" = set; then
18474   echo $ECHO_N "(cached) $ECHO_C" >&6
18475 else
18476   ac_check_lib_save_LIBS=$LIBS
18477 LIBS="-lkrb5support ${LIB_SOCKET} $LIBS"
18478 cat >conftest.$ac_ext <<_ACEOF
18479 /* confdefs.h.  */
18480 _ACEOF
18481 cat confdefs.h >>conftest.$ac_ext
18482 cat >>conftest.$ac_ext <<_ACEOF
18483 /* end confdefs.h.  */
18484
18485 /* Override any GCC internal prototype to avoid an error.
18486    Use char because int might match the return type of a GCC
18487    builtin and then its argument prototype would still apply.  */
18488 #ifdef __cplusplus
18489 extern "C"
18490 #endif
18491 char krb5int_getspecific ();
18492 int
18493 main ()
18494 {
18495 return krb5int_getspecific ();
18496   ;
18497   return 0;
18498 }
18499 _ACEOF
18500 rm -f conftest.$ac_objext conftest$ac_exeext
18501 if { (ac_try="$ac_link"
18502 case "(($ac_try" in
18503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18504   *) ac_try_echo=$ac_try;;
18505 esac
18506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18507   (eval "$ac_link") 2>conftest.er1
18508   ac_status=$?
18509   grep -v '^ *+' conftest.er1 >conftest.err
18510   rm -f conftest.er1
18511   cat conftest.err >&5
18512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513   (exit $ac_status); } && {
18514          test -z "$ac_c_werror_flag" ||
18515          test ! -s conftest.err
18516        } && test -s conftest$ac_exeext &&
18517        $as_test_x conftest$ac_exeext; then
18518   ac_cv_lib_krb5support_krb5int_getspecific=yes
18519 else
18520   echo "$as_me: failed program was:" >&5
18521 sed 's/^/| /' conftest.$ac_ext >&5
18522
18523         ac_cv_lib_krb5support_krb5int_getspecific=no
18524 fi
18525
18526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18527       conftest$ac_exeext conftest.$ac_ext
18528 LIBS=$ac_check_lib_save_LIBS
18529 fi
18530 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
18531 echo "${ECHO_T}$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
18532 if test $ac_cv_lib_krb5support_krb5int_getspecific = yes; then
18533   K5SUP=-lkrb5support K5SUPSTATIC=$gssapi_dir/libkrb5support.a
18534 fi
18535
18536
18537     gss_failed=0
18538     { echo "$as_me:$LINENO: checking for gss_unwrap in -lgssapi_krb5" >&5
18539 echo $ECHO_N "checking for gss_unwrap in -lgssapi_krb5... $ECHO_C" >&6; }
18540 if test "${ac_cv_lib_gssapi_krb5_gss_unwrap+set}" = set; then
18541   echo $ECHO_N "(cached) $ECHO_C" >&6
18542 else
18543   ac_check_lib_save_LIBS=$LIBS
18544 LIBS="-lgssapi_krb5 ${GSSAPIBASE_LIBS} -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP} ${LIB_SOCKET} $LIBS"
18545 cat >conftest.$ac_ext <<_ACEOF
18546 /* confdefs.h.  */
18547 _ACEOF
18548 cat confdefs.h >>conftest.$ac_ext
18549 cat >>conftest.$ac_ext <<_ACEOF
18550 /* end confdefs.h.  */
18551
18552 /* Override any GCC internal prototype to avoid an error.
18553    Use char because int might match the return type of a GCC
18554    builtin and then its argument prototype would still apply.  */
18555 #ifdef __cplusplus
18556 extern "C"
18557 #endif
18558 char gss_unwrap ();
18559 int
18560 main ()
18561 {
18562 return gss_unwrap ();
18563   ;
18564   return 0;
18565 }
18566 _ACEOF
18567 rm -f conftest.$ac_objext conftest$ac_exeext
18568 if { (ac_try="$ac_link"
18569 case "(($ac_try" in
18570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18571   *) ac_try_echo=$ac_try;;
18572 esac
18573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18574   (eval "$ac_link") 2>conftest.er1
18575   ac_status=$?
18576   grep -v '^ *+' conftest.er1 >conftest.err
18577   rm -f conftest.er1
18578   cat conftest.err >&5
18579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580   (exit $ac_status); } && {
18581          test -z "$ac_c_werror_flag" ||
18582          test ! -s conftest.err
18583        } && test -s conftest$ac_exeext &&
18584        $as_test_x conftest$ac_exeext; then
18585   ac_cv_lib_gssapi_krb5_gss_unwrap=yes
18586 else
18587   echo "$as_me: failed program was:" >&5
18588 sed 's/^/| /' conftest.$ac_ext >&5
18589
18590         ac_cv_lib_gssapi_krb5_gss_unwrap=no
18591 fi
18592
18593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18594       conftest$ac_exeext conftest.$ac_ext
18595 LIBS=$ac_check_lib_save_LIBS
18596 fi
18597 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_unwrap" >&5
18598 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_unwrap" >&6; }
18599 if test $ac_cv_lib_gssapi_krb5_gss_unwrap = yes; then
18600   gss_impl="mit"
18601 else
18602   gss_failed=1
18603 fi
18604
18605     if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
18606       gss_impl="failed"
18607     fi
18608   fi
18609
18610   # For Cybersafe one has to set a platform define in order to make compilation work
18611   if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
18612
18613     cmu_saved_CPPFLAGS=$CPPFLAGS
18614     cmu_saved_GSSAPIBASE_LIBS=$GSSAPIBASE_LIBS
18615 # FIXME - Note that the libraries are in .../lib64 for 64bit kernels
18616     if test -d "${gssapi}/appsec-rt/lib"; then
18617       GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -L${gssapi}/appsec-rt/lib"
18618     fi
18619     CPPFLAGS="$CPPFLAGS -D$platform"
18620     if test -d "${gssapi}/appsec-sdk/include"; then
18621       CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
18622     fi
18623
18624     gss_failed=0
18625
18626 # Check for CyberSafe with two libraries first, than fall back to a single
18627 # library (older CyberSafe)
18628
18629     unset ac_cv_lib_gss_csf_gss_acq_user
18630     { echo "$as_me:$LINENO: checking for csf_gss_acq_user in -lgss" >&5
18631 echo $ECHO_N "checking for csf_gss_acq_user in -lgss... $ECHO_C" >&6; }
18632 if test "${ac_cv_lib_gss_csf_gss_acq_user+set}" = set; then
18633   echo $ECHO_N "(cached) $ECHO_C" >&6
18634 else
18635   ac_check_lib_save_LIBS=$LIBS
18636 LIBS="-lgss ${GSSAPIBASE_LIBS} -lgss -lcstbk5 $LIBS"
18637 cat >conftest.$ac_ext <<_ACEOF
18638 /* confdefs.h.  */
18639 _ACEOF
18640 cat confdefs.h >>conftest.$ac_ext
18641 cat >>conftest.$ac_ext <<_ACEOF
18642 /* end confdefs.h.  */
18643
18644 /* Override any GCC internal prototype to avoid an error.
18645    Use char because int might match the return type of a GCC
18646    builtin and then its argument prototype would still apply.  */
18647 #ifdef __cplusplus
18648 extern "C"
18649 #endif
18650 char csf_gss_acq_user ();
18651 int
18652 main ()
18653 {
18654 return csf_gss_acq_user ();
18655   ;
18656   return 0;
18657 }
18658 _ACEOF
18659 rm -f conftest.$ac_objext conftest$ac_exeext
18660 if { (ac_try="$ac_link"
18661 case "(($ac_try" in
18662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18663   *) ac_try_echo=$ac_try;;
18664 esac
18665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18666   (eval "$ac_link") 2>conftest.er1
18667   ac_status=$?
18668   grep -v '^ *+' conftest.er1 >conftest.err
18669   rm -f conftest.er1
18670   cat conftest.err >&5
18671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672   (exit $ac_status); } && {
18673          test -z "$ac_c_werror_flag" ||
18674          test ! -s conftest.err
18675        } && test -s conftest$ac_exeext &&
18676        $as_test_x conftest$ac_exeext; then
18677   ac_cv_lib_gss_csf_gss_acq_user=yes
18678 else
18679   echo "$as_me: failed program was:" >&5
18680 sed 's/^/| /' conftest.$ac_ext >&5
18681
18682         ac_cv_lib_gss_csf_gss_acq_user=no
18683 fi
18684
18685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18686       conftest$ac_exeext conftest.$ac_ext
18687 LIBS=$ac_check_lib_save_LIBS
18688 fi
18689 { echo "$as_me:$LINENO: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
18690 echo "${ECHO_T}$ac_cv_lib_gss_csf_gss_acq_user" >&6; }
18691 if test $ac_cv_lib_gss_csf_gss_acq_user = yes; then
18692   gss_impl="cybersafe03"
18693 else
18694   unset ac_cv_lib_gss_csf_gss_acq_user;
18695                   { echo "$as_me:$LINENO: checking for csf_gss_acq_user in -lgss" >&5
18696 echo $ECHO_N "checking for csf_gss_acq_user in -lgss... $ECHO_C" >&6; }
18697 if test "${ac_cv_lib_gss_csf_gss_acq_user+set}" = set; then
18698   echo $ECHO_N "(cached) $ECHO_C" >&6
18699 else
18700   ac_check_lib_save_LIBS=$LIBS
18701 LIBS="-lgss $GSSAPIBASE_LIBS -lgss $LIBS"
18702 cat >conftest.$ac_ext <<_ACEOF
18703 /* confdefs.h.  */
18704 _ACEOF
18705 cat confdefs.h >>conftest.$ac_ext
18706 cat >>conftest.$ac_ext <<_ACEOF
18707 /* end confdefs.h.  */
18708
18709 /* Override any GCC internal prototype to avoid an error.
18710    Use char because int might match the return type of a GCC
18711    builtin and then its argument prototype would still apply.  */
18712 #ifdef __cplusplus
18713 extern "C"
18714 #endif
18715 char csf_gss_acq_user ();
18716 int
18717 main ()
18718 {
18719 return csf_gss_acq_user ();
18720   ;
18721   return 0;
18722 }
18723 _ACEOF
18724 rm -f conftest.$ac_objext conftest$ac_exeext
18725 if { (ac_try="$ac_link"
18726 case "(($ac_try" in
18727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18728   *) ac_try_echo=$ac_try;;
18729 esac
18730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18731   (eval "$ac_link") 2>conftest.er1
18732   ac_status=$?
18733   grep -v '^ *+' conftest.er1 >conftest.err
18734   rm -f conftest.er1
18735   cat conftest.err >&5
18736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737   (exit $ac_status); } && {
18738          test -z "$ac_c_werror_flag" ||
18739          test ! -s conftest.err
18740        } && test -s conftest$ac_exeext &&
18741        $as_test_x conftest$ac_exeext; then
18742   ac_cv_lib_gss_csf_gss_acq_user=yes
18743 else
18744   echo "$as_me: failed program was:" >&5
18745 sed 's/^/| /' conftest.$ac_ext >&5
18746
18747         ac_cv_lib_gss_csf_gss_acq_user=no
18748 fi
18749
18750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18751       conftest$ac_exeext conftest.$ac_ext
18752 LIBS=$ac_check_lib_save_LIBS
18753 fi
18754 { echo "$as_me:$LINENO: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
18755 echo "${ECHO_T}$ac_cv_lib_gss_csf_gss_acq_user" >&6; }
18756 if test $ac_cv_lib_gss_csf_gss_acq_user = yes; then
18757   gss_impl="cybersafe"
18758 else
18759   gss_failed=1
18760 fi
18761
18762 fi
18763
18764
18765     if test "$gss_failed" = "1"; then
18766 # Restore variables
18767       GSSAPIBASE_LIBS=$cmu_saved_GSSAPIBASE_LIBS
18768       CPPFLAGS=$cmu_saved_CPPFLAGS
18769
18770       if test "$gss_impl" != "auto"; then
18771         gss_impl="failed"
18772       fi
18773     fi
18774   fi
18775
18776   if test "$gss_impl" = "auto" -o "$gss_impl" = "seam"; then
18777     gss_failed=0
18778     { echo "$as_me:$LINENO: checking for gss_unwrap in -lgss" >&5
18779 echo $ECHO_N "checking for gss_unwrap in -lgss... $ECHO_C" >&6; }
18780 if test "${ac_cv_lib_gss_gss_unwrap+set}" = set; then
18781   echo $ECHO_N "(cached) $ECHO_C" >&6
18782 else
18783   ac_check_lib_save_LIBS=$LIBS
18784 LIBS="-lgss -lgss $LIBS"
18785 cat >conftest.$ac_ext <<_ACEOF
18786 /* confdefs.h.  */
18787 _ACEOF
18788 cat confdefs.h >>conftest.$ac_ext
18789 cat >>conftest.$ac_ext <<_ACEOF
18790 /* end confdefs.h.  */
18791
18792 /* Override any GCC internal prototype to avoid an error.
18793    Use char because int might match the return type of a GCC
18794    builtin and then its argument prototype would still apply.  */
18795 #ifdef __cplusplus
18796 extern "C"
18797 #endif
18798 char gss_unwrap ();
18799 int
18800 main ()
18801 {
18802 return gss_unwrap ();
18803   ;
18804   return 0;
18805 }
18806 _ACEOF
18807 rm -f conftest.$ac_objext conftest$ac_exeext
18808 if { (ac_try="$ac_link"
18809 case "(($ac_try" in
18810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18811   *) ac_try_echo=$ac_try;;
18812 esac
18813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18814   (eval "$ac_link") 2>conftest.er1
18815   ac_status=$?
18816   grep -v '^ *+' conftest.er1 >conftest.err
18817   rm -f conftest.er1
18818   cat conftest.err >&5
18819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820   (exit $ac_status); } && {
18821          test -z "$ac_c_werror_flag" ||
18822          test ! -s conftest.err
18823        } && test -s conftest$ac_exeext &&
18824        $as_test_x conftest$ac_exeext; then
18825   ac_cv_lib_gss_gss_unwrap=yes
18826 else
18827   echo "$as_me: failed program was:" >&5
18828 sed 's/^/| /' conftest.$ac_ext >&5
18829
18830         ac_cv_lib_gss_gss_unwrap=no
18831 fi
18832
18833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18834       conftest$ac_exeext conftest.$ac_ext
18835 LIBS=$ac_check_lib_save_LIBS
18836 fi
18837 { echo "$as_me:$LINENO: result: $ac_cv_lib_gss_gss_unwrap" >&5
18838 echo "${ECHO_T}$ac_cv_lib_gss_gss_unwrap" >&6; }
18839 if test $ac_cv_lib_gss_gss_unwrap = yes; then
18840   gss_impl="seam"
18841 else
18842   gss_failed=1
18843 fi
18844
18845     if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
18846       gss_impl="failed"
18847     fi
18848   fi
18849
18850   if test "$gss_impl" = "mit"; then
18851     GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP}"
18852     GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_LIBS $gssapi_dir/libgssapi_krb5.a $gssapi_dir/libkrb5.a $gssapi_dir/libk5crypto.a $gssapi_dir/libcom_err.a ${K5SUPSTATIC}"
18853   elif test "$gss_impl" = "heimdal"; then
18854     CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL"
18855     GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err"
18856     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}"
18857   elif test "$gss_impl" = "cybersafe03"; then
18858 # Version of CyberSafe with two libraries
18859     CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
18860     GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss -lcstbk5"
18861     # there is no static libgss for CyberSafe
18862     GSSAPIBASE_STATIC_LIBS=none
18863   elif test "$gss_impl" = "cybersafe"; then
18864     CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
18865     GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss"
18866     # there is no static libgss for CyberSafe
18867     GSSAPIBASE_STATIC_LIBS=none
18868   elif test "$gss_impl" = "seam"; then
18869     GSSAPIBASE_LIBS=-lgss
18870     # there is no static libgss on Solaris 8 and up
18871     GSSAPIBASE_STATIC_LIBS=none
18872   elif test "$gss_impl" = "failed"; then
18873     gssapi="no"
18874     GSSAPIBASE_LIBS=
18875     GSSAPIBASE_STATIC_LIBS=
18876     { echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - specified library not found" >&5
18877 echo "$as_me: WARNING: Disabling GSSAPI - specified library not found" >&2;}
18878   else
18879     gssapi="no"
18880     GSSAPIBASE_LIBS=
18881     GSSAPIBASE_STATIC_LIBS=
18882     { echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - no library" >&5
18883 echo "$as_me: WARNING: Disabling GSSAPI - no library" >&2;}
18884   fi
18885 fi
18886
18887 #
18888 # Cybersafe defines both GSS_C_NT_HOSTBASED_SERVICE and GSS_C_NT_USER_NAME
18889 # in gssapi\rfckrb5.h
18890 #
18891 if test "$gssapi" != "no"; then
18892   if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
18893     cat >conftest.$ac_ext <<_ACEOF
18894 /* confdefs.h.  */
18895 _ACEOF
18896 cat confdefs.h >>conftest.$ac_ext
18897 cat >>conftest.$ac_ext <<_ACEOF
18898 /* end confdefs.h.  */
18899 #include <gssapi/gssapi.h>
18900                   #ifdef GSS_C_NT_HOSTBASED_SERVICE
18901                     hostbased_service_gss_nt_yes
18902                   #endif
18903 _ACEOF
18904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18905   $EGREP "hostbased_service_gss_nt_yes" >/dev/null 2>&1; then
18906
18907 cat >>confdefs.h <<\_ACEOF
18908 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
18909 _ACEOF
18910
18911 else
18912   { echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5
18913 echo "$as_me: WARNING: Cybersafe define not found" >&2;}
18914 fi
18915 rm -f -r conftest*
18916
18917
18918   elif test "$ac_cv_header_gssapi_h" = "yes"; then
18919     cat >conftest.$ac_ext <<_ACEOF
18920 /* confdefs.h.  */
18921 _ACEOF
18922 cat confdefs.h >>conftest.$ac_ext
18923 cat >>conftest.$ac_ext <<_ACEOF
18924 /* end confdefs.h.  */
18925 #include <gssapi.h>
18926
18927 _ACEOF
18928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18929   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
18930
18931 cat >>confdefs.h <<\_ACEOF
18932 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
18933 _ACEOF
18934
18935 fi
18936 rm -f -r conftest*
18937
18938   elif test "$ac_cv_header_gssapi_gssapi_h"; then
18939     cat >conftest.$ac_ext <<_ACEOF
18940 /* confdefs.h.  */
18941 _ACEOF
18942 cat confdefs.h >>conftest.$ac_ext
18943 cat >>conftest.$ac_ext <<_ACEOF
18944 /* end confdefs.h.  */
18945 #include <gssapi/gssapi.h>
18946
18947 _ACEOF
18948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18949   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
18950
18951 cat >>confdefs.h <<\_ACEOF
18952 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
18953 _ACEOF
18954
18955 fi
18956 rm -f -r conftest*
18957
18958   fi
18959
18960   if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
18961     cat >conftest.$ac_ext <<_ACEOF
18962 /* confdefs.h.  */
18963 _ACEOF
18964 cat confdefs.h >>conftest.$ac_ext
18965 cat >>conftest.$ac_ext <<_ACEOF
18966 /* end confdefs.h.  */
18967 #include <gssapi/gssapi.h>
18968                   #ifdef GSS_C_NT_USER_NAME
18969                    user_name_yes_gss_nt
18970                   #endif
18971 _ACEOF
18972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18973   $EGREP "user_name_yes_gss_nt" >/dev/null 2>&1; then
18974
18975 cat >>confdefs.h <<\_ACEOF
18976 #define HAVE_GSS_C_NT_USER_NAME
18977 _ACEOF
18978
18979 else
18980   { echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5
18981 echo "$as_me: WARNING: Cybersafe define not found" >&2;}
18982 fi
18983 rm -f -r conftest*
18984
18985   elif test "$ac_cv_header_gssapi_h" = "yes"; then
18986     cat >conftest.$ac_ext <<_ACEOF
18987 /* confdefs.h.  */
18988 _ACEOF
18989 cat confdefs.h >>conftest.$ac_ext
18990 cat >>conftest.$ac_ext <<_ACEOF
18991 /* end confdefs.h.  */
18992 #include <gssapi.h>
18993
18994 _ACEOF
18995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18996   $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then
18997
18998 cat >>confdefs.h <<\_ACEOF
18999 #define HAVE_GSS_C_NT_USER_NAME
19000 _ACEOF
19001
19002 fi
19003 rm -f -r conftest*
19004
19005   elif test "$ac_cv_header_gssapi_gssapi_h"; then
19006     cat >conftest.$ac_ext <<_ACEOF
19007 /* confdefs.h.  */
19008 _ACEOF
19009 cat confdefs.h >>conftest.$ac_ext
19010 cat >>conftest.$ac_ext <<_ACEOF
19011 /* end confdefs.h.  */
19012 #include <gssapi/gssapi.h>
19013
19014 _ACEOF
19015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19016   $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then
19017
19018 cat >>confdefs.h <<\_ACEOF
19019 #define HAVE_GSS_C_NT_USER_NAME
19020 _ACEOF
19021
19022 fi
19023 rm -f -r conftest*
19024
19025   fi
19026 fi
19027
19028 GSSAPI_LIBS=""
19029 { echo "$as_me:$LINENO: checking GSSAPI" >&5
19030 echo $ECHO_N "checking GSSAPI... $ECHO_C" >&6; }
19031 if test "$gssapi" != no; then
19032   { echo "$as_me:$LINENO: result: with implementation ${gss_impl}" >&5
19033 echo "${ECHO_T}with implementation ${gss_impl}" >&6; }
19034   { echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
19035 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6; }
19036 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
19037   echo $ECHO_N "(cached) $ECHO_C" >&6
19038 else
19039   ac_check_lib_save_LIBS=$LIBS
19040 LIBS="-lresolv  $LIBS"
19041 cat >conftest.$ac_ext <<_ACEOF
19042 /* confdefs.h.  */
19043 _ACEOF
19044 cat confdefs.h >>conftest.$ac_ext
19045 cat >>conftest.$ac_ext <<_ACEOF
19046 /* end confdefs.h.  */
19047
19048 /* Override any GCC internal prototype to avoid an error.
19049    Use char because int might match the return type of a GCC
19050    builtin and then its argument prototype would still apply.  */
19051 #ifdef __cplusplus
19052 extern "C"
19053 #endif
19054 char res_search ();
19055 int
19056 main ()
19057 {
19058 return res_search ();
19059   ;
19060   return 0;
19061 }
19062 _ACEOF
19063 rm -f conftest.$ac_objext conftest$ac_exeext
19064 if { (ac_try="$ac_link"
19065 case "(($ac_try" in
19066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19067   *) ac_try_echo=$ac_try;;
19068 esac
19069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19070   (eval "$ac_link") 2>conftest.er1
19071   ac_status=$?
19072   grep -v '^ *+' conftest.er1 >conftest.err
19073   rm -f conftest.er1
19074   cat conftest.err >&5
19075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076   (exit $ac_status); } && {
19077          test -z "$ac_c_werror_flag" ||
19078          test ! -s conftest.err
19079        } && test -s conftest$ac_exeext &&
19080        $as_test_x conftest$ac_exeext; then
19081   ac_cv_lib_resolv_res_search=yes
19082 else
19083   echo "$as_me: failed program was:" >&5
19084 sed 's/^/| /' conftest.$ac_ext >&5
19085
19086         ac_cv_lib_resolv_res_search=no
19087 fi
19088
19089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19090       conftest$ac_exeext conftest.$ac_ext
19091 LIBS=$ac_check_lib_save_LIBS
19092 fi
19093 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
19094 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6; }
19095 if test $ac_cv_lib_resolv_res_search = yes; then
19096   GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lresolv"
19097 fi
19098
19099   SASL_MECHS="$SASL_MECHS libgs2.la libgssapiv2.la"
19100   SASL_STATIC_OBJS="$SASL_STATIC_OBJS gs2.o gssapi.o"
19101   SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/gs2.c ../plugins/gssapi.c"
19102
19103   cmu_save_LIBS="$LIBS"
19104   LIBS="$LIBS $GSSAPIBASE_LIBS"
19105
19106 for ac_func in gsskrb5_register_acceptor_identity
19107 do
19108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19109 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19111 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19112   echo $ECHO_N "(cached) $ECHO_C" >&6
19113 else
19114   cat >conftest.$ac_ext <<_ACEOF
19115 /* confdefs.h.  */
19116 _ACEOF
19117 cat confdefs.h >>conftest.$ac_ext
19118 cat >>conftest.$ac_ext <<_ACEOF
19119 /* end confdefs.h.  */
19120 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19121    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19122 #define $ac_func innocuous_$ac_func
19123
19124 /* System header to define __stub macros and hopefully few prototypes,
19125     which can conflict with char $ac_func (); below.
19126     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19127     <limits.h> exists even on freestanding compilers.  */
19128
19129 #ifdef __STDC__
19130 # include <limits.h>
19131 #else
19132 # include <assert.h>
19133 #endif
19134
19135 #undef $ac_func
19136
19137 /* Override any GCC internal prototype to avoid an error.
19138    Use char because int might match the return type of a GCC
19139    builtin and then its argument prototype would still apply.  */
19140 #ifdef __cplusplus
19141 extern "C"
19142 #endif
19143 char $ac_func ();
19144 /* The GNU C library defines this for functions which it implements
19145     to always fail with ENOSYS.  Some functions are actually named
19146     something starting with __ and the normal name is an alias.  */
19147 #if defined __stub_$ac_func || defined __stub___$ac_func
19148 choke me
19149 #endif
19150
19151 int
19152 main ()
19153 {
19154 return $ac_func ();
19155   ;
19156   return 0;
19157 }
19158 _ACEOF
19159 rm -f conftest.$ac_objext conftest$ac_exeext
19160 if { (ac_try="$ac_link"
19161 case "(($ac_try" in
19162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19163   *) ac_try_echo=$ac_try;;
19164 esac
19165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19166   (eval "$ac_link") 2>conftest.er1
19167   ac_status=$?
19168   grep -v '^ *+' conftest.er1 >conftest.err
19169   rm -f conftest.er1
19170   cat conftest.err >&5
19171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172   (exit $ac_status); } && {
19173          test -z "$ac_c_werror_flag" ||
19174          test ! -s conftest.err
19175        } && test -s conftest$ac_exeext &&
19176        $as_test_x conftest$ac_exeext; then
19177   eval "$as_ac_var=yes"
19178 else
19179   echo "$as_me: failed program was:" >&5
19180 sed 's/^/| /' conftest.$ac_ext >&5
19181
19182         eval "$as_ac_var=no"
19183 fi
19184
19185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19186       conftest$ac_exeext conftest.$ac_ext
19187 fi
19188 ac_res=`eval echo '${'$as_ac_var'}'`
19189                { echo "$as_me:$LINENO: result: $ac_res" >&5
19190 echo "${ECHO_T}$ac_res" >&6; }
19191 if test `eval echo '${'$as_ac_var'}'` = yes; then
19192   cat >>confdefs.h <<_ACEOF
19193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19194 _ACEOF
19195
19196 fi
19197 done
19198
19199   LIBS="$cmu_save_LIBS"
19200 else
19201   { echo "$as_me:$LINENO: result: disabled" >&5
19202 echo "${ECHO_T}disabled" >&6; }
19203 fi
19204
19205
19206
19207
19208 if test "$gssapi" != "no"; then
19209
19210 cat >>confdefs.h <<\_ACEOF
19211 #define STATIC_GSSAPIV2
19212 _ACEOF
19213
19214   mutex_default="no"
19215   if test "$gss_impl" = "mit"; then
19216      mutex_default="yes"
19217   fi
19218   { echo "$as_me:$LINENO: checking to use mutexes aroung GSS calls" >&5
19219 echo $ECHO_N "checking to use mutexes aroung GSS calls... $ECHO_C" >&6; }
19220   # Check whether --enable-gss_mutexes was given.
19221 if test "${enable_gss_mutexes+set}" = set; then
19222   enableval=$enable_gss_mutexes; use_gss_mutexes=$enableval
19223 else
19224   use_gss_mutexes=$mutex_default
19225 fi
19226
19227   if test $use_gss_mutexes = "yes"; then
19228
19229 cat >>confdefs.h <<\_ACEOF
19230 #define GSS_USE_MUTEXES
19231 _ACEOF
19232
19233   fi
19234   { echo "$as_me:$LINENO: result: $use_gss_mutexes" >&5
19235 echo "${ECHO_T}$use_gss_mutexes" >&6; }
19236 fi
19237
19238
19239
19240
19241  # Check whether --enable-plain was given.
19242 if test "${enable_plain+set}" = set; then
19243   enableval=$enable_plain; plain=$enableval
19244 else
19245   plain=yes
19246 fi
19247
19248
19249  PLAIN_LIBS=""
19250  if test "$plain" != no; then
19251     if test "$cmu_have_crypt" = yes; then
19252     PLAIN_LIBS=$LIB_CRYPT
19253   fi
19254  fi
19255
19256
19257  { echo "$as_me:$LINENO: checking PLAIN" >&5
19258 echo $ECHO_N "checking PLAIN... $ECHO_C" >&6; }
19259  if test "$plain" != no; then
19260   { echo "$as_me:$LINENO: result: enabled" >&5
19261 echo "${ECHO_T}enabled" >&6; }
19262   SASL_MECHS="$SASL_MECHS libplain.la"
19263   if test "$enable_static" = yes; then
19264     SASL_STATIC_OBJS="$SASL_STATIC_OBJS plain.o"
19265     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/plain.c"
19266
19267 cat >>confdefs.h <<\_ACEOF
19268 #define STATIC_PLAIN
19269 _ACEOF
19270
19271   fi
19272  else
19273   { echo "$as_me:$LINENO: result: disabled" >&5
19274 echo "${ECHO_T}disabled" >&6; }
19275  fi
19276
19277
19278 # Check whether --enable-anon was given.
19279 if test "${enable_anon+set}" = set; then
19280   enableval=$enable_anon; anon=$enableval
19281 else
19282   anon=yes
19283 fi
19284
19285
19286 { echo "$as_me:$LINENO: checking ANONYMOUS" >&5
19287 echo $ECHO_N "checking ANONYMOUS... $ECHO_C" >&6; }
19288 if test "$anon" != no; then
19289   { echo "$as_me:$LINENO: result: enabled" >&5
19290 echo "${ECHO_T}enabled" >&6; }
19291   SASL_MECHS="$SASL_MECHS libanonymous.la"
19292   if test "$enable_static" = yes; then
19293     SASL_STATIC_OBJS="$SASL_STATIC_OBJS anonymous.o"
19294     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/anonymous.c"
19295
19296 cat >>confdefs.h <<\_ACEOF
19297 #define STATIC_ANONYMOUS
19298 _ACEOF
19299
19300   fi
19301 else
19302   { echo "$as_me:$LINENO: result: disabled" >&5
19303 echo "${ECHO_T}disabled" >&6; }
19304 fi
19305
19306 # Check whether --enable-login was given.
19307 if test "${enable_login+set}" = set; then
19308   enableval=$enable_login; login=$enableval
19309 else
19310   login=no
19311 fi
19312
19313
19314 { echo "$as_me:$LINENO: checking LOGIN" >&5
19315 echo $ECHO_N "checking LOGIN... $ECHO_C" >&6; }
19316 if test "$login" != no; then
19317   { echo "$as_me:$LINENO: result: enabled" >&5
19318 echo "${ECHO_T}enabled" >&6; }
19319   SASL_MECHS="$SASL_MECHS liblogin.la"
19320   if test "$enable_static" = yes; then
19321     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/login.c"
19322     SASL_STATIC_OBJS="$SASL_STATIC_OBJS login.o"
19323
19324 cat >>confdefs.h <<\_ACEOF
19325 #define STATIC_LOGIN
19326 _ACEOF
19327
19328   fi
19329 else
19330   { echo "$as_me:$LINENO: result: disabled" >&5
19331 echo "${ECHO_T}disabled" >&6; }
19332 fi
19333
19334 # Check whether --enable-ntlm was given.
19335 if test "${enable_ntlm+set}" = set; then
19336   enableval=$enable_ntlm; ntlm=$enableval
19337 else
19338   ntlm=no
19339 fi
19340
19341
19342 if test "$with_openssl" = no; then
19343   { echo "$as_me:$LINENO: WARNING: OpenSSL not found -- NTLM will be disabled" >&5
19344 echo "$as_me: WARNING: OpenSSL not found -- NTLM will be disabled" >&2;}
19345   ntlm=no
19346 fi
19347
19348 { echo "$as_me:$LINENO: checking NTLM" >&5
19349 echo $ECHO_N "checking NTLM... $ECHO_C" >&6; }
19350 if test "$ntlm" != no; then
19351   { echo "$as_me:$LINENO: result: enabled" >&5
19352 echo "${ECHO_T}enabled" >&6; }
19353   NTLM_LIBS="-lcrypto $LIB_RSAREF"
19354
19355
19356   SASL_MECHS="$SASL_MECHS libntlm.la"
19357   if test "$enable_static" = yes; then
19358     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/ntlm.c"
19359     SASL_STATIC_OBJS="$SASL_STATIC_OBJS ntlm.o"
19360
19361 cat >>confdefs.h <<\_ACEOF
19362 #define STATIC_NTLM
19363 _ACEOF
19364
19365   fi
19366 else
19367   { echo "$as_me:$LINENO: result: disabled" >&5
19368 echo "${ECHO_T}disabled" >&6; }
19369 fi
19370
19371 # Check whether --enable-passdss was given.
19372 if test "${enable_passdss+set}" = set; then
19373   enableval=$enable_passdss; passdss=$enableval
19374 else
19375   passdss=no
19376 fi
19377
19378
19379 if test "$with_openssl" = no; then
19380   { echo "$as_me:$LINENO: WARNING: OpenSSL not found -- PASSDSS will be disabled" >&5
19381 echo "$as_me: WARNING: OpenSSL not found -- PASSDSS will be disabled" >&2;}
19382   passdss=no
19383 fi
19384
19385 { echo "$as_me:$LINENO: checking PASSDSS" >&5
19386 echo $ECHO_N "checking PASSDSS... $ECHO_C" >&6; }
19387 if test "$passdss" != no; then
19388   { echo "$as_me:$LINENO: result: enabled" >&5
19389 echo "${ECHO_T}enabled" >&6; }
19390   PASSDSS_LIBS="-lcrypto $LIB_RSAREF"
19391
19392
19393   SASL_MECHS="$SASL_MECHS libpassdss.la"
19394   if test "$enable_static" = yes; then
19395     SASL_STATIC_OBJS="$SASL_STATIC_OBJS passdss.o"
19396     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/passdss.c"
19397
19398 cat >>confdefs.h <<\_ACEOF
19399 #define STATIC_PASSDSS
19400 _ACEOF
19401
19402   fi
19403 else
19404   { echo "$as_me:$LINENO: result: disabled" >&5
19405 echo "${ECHO_T}disabled" >&6; }
19406 fi
19407
19408
19409 # make the option show up so people don't whine that it is only in the
19410 # saslauthd configure script --help
19411
19412 # Check whether --with-ldap was given.
19413 if test "${with_ldap+set}" = set; then
19414   withval=$with_ldap;
19415 else
19416   with_ldap=no
19417 fi
19418
19419
19420
19421
19422 # Check whether --enable-sql was given.
19423 if test "${enable_sql+set}" = set; then
19424   enableval=$enable_sql; sql=$enableval
19425 else
19426   sql=no
19427 fi
19428
19429
19430 { echo "$as_me:$LINENO: checking SQL" >&5
19431 echo $ECHO_N "checking SQL... $ECHO_C" >&6; }
19432 if test "$sql" != no; then
19433   { echo "$as_me:$LINENO: result: enabled" >&5
19434 echo "${ECHO_T}enabled" >&6; }
19435   SASL_MECHS="$SASL_MECHS libsql.la"
19436   if test "$enable_static" = yes; then
19437     SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/sql.c"
19438     SASL_STATIC_OBJS="$SASL_STATIC_OBJS sql.o"
19439
19440 cat >>confdefs.h <<\_ACEOF
19441 #define STATIC_SQL
19442 _ACEOF
19443
19444   fi
19445 else
19446   { echo "$as_me:$LINENO: result: disabled" >&5
19447 echo "${ECHO_T}disabled" >&6; }
19448 fi
19449
19450
19451 # Check whether --with-mysql was given.
19452 if test "${with_mysql+set}" = set; then
19453   withval=$with_mysql; with_mysql=$withval
19454 else
19455   with_mysql=$sql
19456 fi
19457
19458
19459 # find location of library
19460 # presuming if one given then correct
19461 if test "${with_mysql}" = "yes"; then
19462   with_mysql=notfound
19463   for mysqlloc in lib/mysql lib mysql/lib
19464   do
19465     if test -f ${prefix}/${mysqlloc}/libmysqlclient.a; then
19466       with_mysql="${prefix}"
19467       break
19468     elif test -f /usr/local/${mysqlloc}/libmysqlclient.a; then
19469       with_mysql="/usr/local"
19470       break
19471     elif test -f /usr/${mysqlloc}/libmysqlclient.a; then
19472       with_mysql="/usr"
19473       break
19474     fi
19475   done
19476 fi
19477
19478 LIB_MYSQL=""
19479
19480 case "$with_mysql" in
19481     no) true;;
19482     notfound) { echo "$as_me:$LINENO: WARNING: MySQL Library not found" >&5
19483 echo "$as_me: WARNING: MySQL Library not found" >&2;}; true;;
19484     *)
19485      if test -d ${with_mysql}/lib/mysql; then
19486
19487   # this is CMU ADD LIBPATH TO
19488   if test "$andrew_runpath_switch" = "none" ; then
19489         LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL}"
19490   else
19491         LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/lib/mysql"
19492   fi
19493
19494      elif test -d ${with_mysql}/mysql/lib; then
19495
19496   # this is CMU ADD LIBPATH TO
19497   if test "$andrew_runpath_switch" = "none" ; then
19498         LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL}"
19499   else
19500         LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/mysql/lib"
19501   fi
19502
19503      elif test -d ${with_mysql}/lib; then
19504
19505   # this is CMU ADD LIBPATH TO
19506   if test "$andrew_runpath_switch" = "none" ; then
19507         LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL}"
19508   else
19509         LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/lib"
19510   fi
19511
19512      else
19513
19514   # this is CMU ADD LIBPATH TO
19515   if test "$andrew_runpath_switch" = "none" ; then
19516         LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL}"
19517   else
19518         LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}"
19519   fi
19520
19521      fi
19522
19523      LIB_MYSQL_DIR=$LIB_MYSQL
19524      LIB_MYSQL="$LIB_MYSQL -lmysqlclient"
19525
19526      if test -d ${with_mysql}/include/mysql; then
19527          CPPFLAGS="${CPPFLAGS} -I${with_mysql}/include/mysql"
19528      elif test -d ${with_mysql}/mysql/include; then
19529          CPPFLAGS="${CPPFLAGS} -I${with_mysql}/mysql/include"
19530      elif test -d ${with_mysql}/include; then
19531          CPPFLAGS="${CPPFLAGS} -I${with_mysql}/include"
19532      else
19533          CPPFLAGS="${CPPFLAGS} -I${with_mysql}"
19534      fi
19535
19536        save_LDFLAGS=$LDFLAGS
19537        LDFLAGS="$LDFLAGS $LIB_MYSQL_DIR"
19538        { echo "$as_me:$LINENO: checking for mysql_select_db in -lmysqlclient" >&5
19539 echo $ECHO_N "checking for mysql_select_db in -lmysqlclient... $ECHO_C" >&6; }
19540 if test "${ac_cv_lib_mysqlclient_mysql_select_db+set}" = set; then
19541   echo $ECHO_N "(cached) $ECHO_C" >&6
19542 else
19543   ac_check_lib_save_LIBS=$LIBS
19544 LIBS="-lmysqlclient  $LIBS"
19545 cat >conftest.$ac_ext <<_ACEOF
19546 /* confdefs.h.  */
19547 _ACEOF
19548 cat confdefs.h >>conftest.$ac_ext
19549 cat >>conftest.$ac_ext <<_ACEOF
19550 /* end confdefs.h.  */
19551
19552 /* Override any GCC internal prototype to avoid an error.
19553    Use char because int might match the return type of a GCC
19554    builtin and then its argument prototype would still apply.  */
19555 #ifdef __cplusplus
19556 extern "C"
19557 #endif
19558 char mysql_select_db ();
19559 int
19560 main ()
19561 {
19562 return mysql_select_db ();
19563   ;
19564   return 0;
19565 }
19566 _ACEOF
19567 rm -f conftest.$ac_objext conftest$ac_exeext
19568 if { (ac_try="$ac_link"
19569 case "(($ac_try" in
19570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19571   *) ac_try_echo=$ac_try;;
19572 esac
19573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19574   (eval "$ac_link") 2>conftest.er1
19575   ac_status=$?
19576   grep -v '^ *+' conftest.er1 >conftest.err
19577   rm -f conftest.er1
19578   cat conftest.err >&5
19579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580   (exit $ac_status); } && {
19581          test -z "$ac_c_werror_flag" ||
19582          test ! -s conftest.err
19583        } && test -s conftest$ac_exeext &&
19584        $as_test_x conftest$ac_exeext; then
19585   ac_cv_lib_mysqlclient_mysql_select_db=yes
19586 else
19587   echo "$as_me: failed program was:" >&5
19588 sed 's/^/| /' conftest.$ac_ext >&5
19589
19590         ac_cv_lib_mysqlclient_mysql_select_db=no
19591 fi
19592
19593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19594       conftest$ac_exeext conftest.$ac_ext
19595 LIBS=$ac_check_lib_save_LIBS
19596 fi
19597 { echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_select_db" >&5
19598 echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_select_db" >&6; }
19599 if test $ac_cv_lib_mysqlclient_mysql_select_db = yes; then
19600
19601 cat >>confdefs.h <<\_ACEOF
19602 #define HAVE_MYSQL
19603 _ACEOF
19604
19605 else
19606   { echo "$as_me:$LINENO: WARNING: MySQL library mysqlclient does not work" >&5
19607 echo "$as_me: WARNING: MySQL library mysqlclient does not work" >&2;}
19608             with_mysql=no
19609 fi
19610
19611        LDFLAGS=$save_LDFLAGS;;
19612
19613 esac
19614
19615
19616
19617 # Check whether --with-pgsql was given.
19618 if test "${with_pgsql+set}" = set; then
19619   withval=$with_pgsql; with_pgsql=$withval
19620 else
19621   with_pgsql=$sql
19622 fi
19623
19624
19625 # find location of library
19626 # presuing if one given then correct
19627 if test "${with_pgsql}" = "yes"; then
19628   with_pgsql=notfound
19629   for pgsqlloc in lib/pgsql lib pgsql/lib
19630   do
19631     if test -f ${prefix}/${pgsqlloc}/libpq.a; then
19632       with_pgsql="${prefix}"
19633       break
19634     elif test -f /usr/local/${pgsqlloc}/libpq.a; then
19635       with_pgsql="/usr/local"
19636       break
19637     elif test -f /usr/${pgsqlloc}/libpq.a; then
19638       with_pgsql="/usr"
19639       break
19640     fi
19641   done
19642 fi
19643
19644 LIB_PGSQL=""
19645
19646 case "$with_pgsql" in
19647     no) true;;
19648     notfound) { echo "$as_me:$LINENO: WARNING: PostgreSQL Library not found" >&5
19649 echo "$as_me: WARNING: PostgreSQL Library not found" >&2;}; true;;
19650     *)
19651      if test -d ${with_pgsql}/lib/pgsql; then
19652
19653   # this is CMU ADD LIBPATH TO
19654   if test "$andrew_runpath_switch" = "none" ; then
19655         LIB_PGSQL="-L${with_pgsql}/lib/pgsql ${LIB_PGSQL}"
19656   else
19657         LIB_PGSQL="-L${with_pgsql}/lib/pgsql ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/lib/pgsql"
19658   fi
19659
19660      elif test -d ${with_pgsql}/pgsql/lib; then
19661
19662   # this is CMU ADD LIBPATH TO
19663   if test "$andrew_runpath_switch" = "none" ; then
19664         LIB_PGSQL="-L${with_pgsql}/pgsql/lib ${LIB_PGSQL}"
19665   else
19666         LIB_PGSQL="-L${with_pgsql}/pgsql/lib ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/pgsql/lib"
19667   fi
19668
19669      elif test -d ${with_pgsql}/lib; then
19670
19671   # this is CMU ADD LIBPATH TO
19672   if test "$andrew_runpath_switch" = "none" ; then
19673         LIB_PGSQL="-L${with_pgsql}/lib ${LIB_PGSQL}"
19674   else
19675         LIB_PGSQL="-L${with_pgsql}/lib ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/lib"
19676   fi
19677
19678      else
19679
19680   # this is CMU ADD LIBPATH TO
19681   if test "$andrew_runpath_switch" = "none" ; then
19682         LIB_PGSQL="-L${with_pgsql} ${LIB_PGSQL}"
19683   else
19684         LIB_PGSQL="-L${with_pgsql} ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}"
19685   fi
19686
19687      fi
19688
19689      LIB_PGSQL_DIR=$LIB_PGSQL
19690      LIB_PGSQL="$LIB_PGSQL -lpq"
19691
19692      if test -d ${with_pgsql}/include/pgsql; then
19693          CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include/pgsql"
19694      elif test -d ${with_pgsql}/pgsql/include; then
19695          CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/pgsql/include"
19696      elif test -d ${with_pgsql}/include; then
19697          CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include"
19698      else
19699          CPPFLAGS="${CPPFLAGS} -I${with_pgsql}"
19700      fi
19701
19702
19703        save_LDFLAGS=$LDFLAGS
19704        LDFLAGS="$LDFLAGS $LIB_PGSQL_DIR"
19705        { echo "$as_me:$LINENO: checking for PQsetdbLogin in -lpq" >&5
19706 echo $ECHO_N "checking for PQsetdbLogin in -lpq... $ECHO_C" >&6; }
19707 if test "${ac_cv_lib_pq_PQsetdbLogin+set}" = set; then
19708   echo $ECHO_N "(cached) $ECHO_C" >&6
19709 else
19710   ac_check_lib_save_LIBS=$LIBS
19711 LIBS="-lpq  $LIBS"
19712 cat >conftest.$ac_ext <<_ACEOF
19713 /* confdefs.h.  */
19714 _ACEOF
19715 cat confdefs.h >>conftest.$ac_ext
19716 cat >>conftest.$ac_ext <<_ACEOF
19717 /* end confdefs.h.  */
19718
19719 /* Override any GCC internal prototype to avoid an error.
19720    Use char because int might match the return type of a GCC
19721    builtin and then its argument prototype would still apply.  */
19722 #ifdef __cplusplus
19723 extern "C"
19724 #endif
19725 char PQsetdbLogin ();
19726 int
19727 main ()
19728 {
19729 return PQsetdbLogin ();
19730   ;
19731   return 0;
19732 }
19733 _ACEOF
19734 rm -f conftest.$ac_objext conftest$ac_exeext
19735 if { (ac_try="$ac_link"
19736 case "(($ac_try" in
19737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19738   *) ac_try_echo=$ac_try;;
19739 esac
19740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19741   (eval "$ac_link") 2>conftest.er1
19742   ac_status=$?
19743   grep -v '^ *+' conftest.er1 >conftest.err
19744   rm -f conftest.er1
19745   cat conftest.err >&5
19746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747   (exit $ac_status); } && {
19748          test -z "$ac_c_werror_flag" ||
19749          test ! -s conftest.err
19750        } && test -s conftest$ac_exeext &&
19751        $as_test_x conftest$ac_exeext; then
19752   ac_cv_lib_pq_PQsetdbLogin=yes
19753 else
19754   echo "$as_me: failed program was:" >&5
19755 sed 's/^/| /' conftest.$ac_ext >&5
19756
19757         ac_cv_lib_pq_PQsetdbLogin=no
19758 fi
19759
19760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19761       conftest$ac_exeext conftest.$ac_ext
19762 LIBS=$ac_check_lib_save_LIBS
19763 fi
19764 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQsetdbLogin" >&5
19765 echo "${ECHO_T}$ac_cv_lib_pq_PQsetdbLogin" >&6; }
19766 if test $ac_cv_lib_pq_PQsetdbLogin = yes; then
19767
19768 cat >>confdefs.h <<\_ACEOF
19769 #define HAVE_PGSQL
19770 _ACEOF
19771
19772 else
19773   { echo "$as_me:$LINENO: WARNING: PostgreSQL Library pq does not work" >&5
19774 echo "$as_me: WARNING: PostgreSQL Library pq does not work" >&2;}
19775             with_pgsql=no
19776 fi
19777
19778        LDFLAGS=$save_LDFLAGS;;
19779
19780 esac
19781
19782
19783
19784 # Check whether --with-sqlite was given.
19785 if test "${with_sqlite+set}" = set; then
19786   withval=$with_sqlite; with_sqlite=$withval
19787 else
19788   with_sqlite=$sql
19789 fi
19790
19791
19792 # find location of library
19793 # presuing if one given then correct
19794 if test "${with_sqlite}" = "yes"; then
19795   with_sqlite=notfound
19796   for sqliteloc in lib
19797   do
19798     if test -f ${prefix}/${sqliteloc}/libsqlite.a; then
19799       with_sqlite="${prefix}"
19800       break
19801     elif test -f /usr/local/${sqliteloc}/libsqlite.a; then
19802       with_sqlite="/usr/local"
19803       break
19804     elif test -f /usr/${sqliteloc}/libsqlite.a; then
19805       with_sqlite="/usr"
19806       break
19807     fi
19808   done
19809 fi
19810
19811 LIB_SQLITE=""
19812
19813 case "$with_sqlite" in
19814     no) true;;
19815     notfound) { echo "$as_me:$LINENO: WARNING: SQLite Library not found" >&5
19816 echo "$as_me: WARNING: SQLite Library not found" >&2;}; true;;
19817     *)
19818      if test -d ${with_sqlite}/lib; then
19819          LIB_SQLITE="-L${with_sqlite}/lib -R${with_sqlite}/lib"
19820      else
19821          LIB_SQLITE="-L${with_sqlite} -R${with_sqlite}"
19822      fi
19823
19824      LIB_SQLITE_DIR=$LIB_SQLITE
19825      LIB_SQLITE="$LIB_SQLITE -lsqlite"
19826
19827      if test -d ${with_sqlite}/include; then
19828          CPPFLAGS="${CPPFLAGS} -I${with_sqlite}/include"
19829      else
19830          CPPFLAGS="${CPPFLAGS} -I${with_sqlite}"
19831      fi
19832        { echo "$as_me:$LINENO: checking for sqlite_open in -lsqlite" >&5
19833 echo $ECHO_N "checking for sqlite_open in -lsqlite... $ECHO_C" >&6; }
19834 if test "${ac_cv_lib_sqlite_sqlite_open+set}" = set; then
19835   echo $ECHO_N "(cached) $ECHO_C" >&6
19836 else
19837   ac_check_lib_save_LIBS=$LIBS
19838 LIBS="-lsqlite $LIB_SQLITE_DIR $LIBS"
19839 cat >conftest.$ac_ext <<_ACEOF
19840 /* confdefs.h.  */
19841 _ACEOF
19842 cat confdefs.h >>conftest.$ac_ext
19843 cat >>conftest.$ac_ext <<_ACEOF
19844 /* end confdefs.h.  */
19845
19846 /* Override any GCC internal prototype to avoid an error.
19847    Use char because int might match the return type of a GCC
19848    builtin and then its argument prototype would still apply.  */
19849 #ifdef __cplusplus
19850 extern "C"
19851 #endif
19852 char sqlite_open ();
19853 int
19854 main ()
19855 {
19856 return sqlite_open ();
19857   ;
19858   return 0;
19859 }
19860 _ACEOF
19861 rm -f conftest.$ac_objext conftest$ac_exeext
19862 if { (ac_try="$ac_link"
19863 case "(($ac_try" in
19864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19865   *) ac_try_echo=$ac_try;;
19866 esac
19867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19868   (eval "$ac_link") 2>conftest.er1
19869   ac_status=$?
19870   grep -v '^ *+' conftest.er1 >conftest.err
19871   rm -f conftest.er1
19872   cat conftest.err >&5
19873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874   (exit $ac_status); } && {
19875          test -z "$ac_c_werror_flag" ||
19876          test ! -s conftest.err
19877        } && test -s conftest$ac_exeext &&
19878        $as_test_x conftest$ac_exeext; then
19879   ac_cv_lib_sqlite_sqlite_open=yes
19880 else
19881   echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19883
19884         ac_cv_lib_sqlite_sqlite_open=no
19885 fi
19886
19887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19888       conftest$ac_exeext conftest.$ac_ext
19889 LIBS=$ac_check_lib_save_LIBS
19890 fi
19891 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_open" >&5
19892 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_open" >&6; }
19893 if test $ac_cv_lib_sqlite_sqlite_open = yes; then
19894
19895 cat >>confdefs.h <<\_ACEOF
19896 #define HAVE_SQLITE
19897 _ACEOF
19898
19899 else
19900   { echo "$as_me:$LINENO: WARNING: SQLite Library sqlite does not work" >&5
19901 echo "$as_me: WARNING: SQLite Library sqlite does not work" >&2;}
19902             with_sqlite=no
19903 fi
19904 ;;
19905
19906 esac
19907
19908
19909 if test "$sql" = yes -a "$with_pgsql" = no -a "$with_mysql" = no -a "$with_sqlite" = no; then
19910     { { echo "$as_me:$LINENO: error: --enable-sql chosen but neither Postgres nor MySQL nor SQLite found" >&5
19911 echo "$as_me: error: --enable-sql chosen but neither Postgres nor MySQL nor SQLite found" >&2;}
19912    { (exit 1); exit 1; }; }
19913 fi
19914
19915 if test "$enable_shared" = yes; then
19916
19917 cat >>confdefs.h <<\_ACEOF
19918 #define DO_DLOPEN
19919 _ACEOF
19920
19921 fi
19922
19923 # Check whether --enable-ldapdb was given.
19924 if test "${enable_ldapdb+set}" = set; then
19925   enableval=$enable_ldapdb; ldapdb=$enableval
19926 else
19927   ldapdb=no
19928 fi
19929
19930 { echo "$as_me:$LINENO: checking LDAPDB" >&5
19931 echo $ECHO_N "checking LDAPDB... $ECHO_C" >&6; }
19932 if test "$ldapdb" != no; then
19933     { echo "$as_me:$LINENO: result: enabled" >&5
19934 echo "${ECHO_T}enabled" >&6; }
19935
19936     if test "$with_ldap" = no; then
19937         { { echo "$as_me:$LINENO: error: Cannot enable LDAPDB plugin: You need to specify --with-ldap" >&5
19938 echo "$as_me: error: Cannot enable LDAPDB plugin: You need to specify --with-ldap" >&2;}
19939    { (exit 1); exit 1; }; }
19940     fi
19941
19942     save_CPPFLAGS=$CPPFLAGS
19943     save_LDFLAGS=$LDFLAGS
19944
19945     if test -d $with_ldap; then
19946         CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
19947
19948   # this is CMU ADD LIBPATH
19949   if test "$andrew_runpath_switch" = "none" ; then
19950         LDFLAGS="-L${with_ldap}/lib ${LDFLAGS}"
19951   else
19952         LDFLAGS="-L${with_ldap}/lib $andrew_runpath_switch${with_ldap}/lib ${LDFLAGS}"
19953   fi
19954
19955     fi
19956
19957
19958
19959 for ac_header in ldap.h lber.h
19960 do
19961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19963   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19966   echo $ECHO_N "(cached) $ECHO_C" >&6
19967 fi
19968 ac_res=`eval echo '${'$as_ac_Header'}'`
19969                { echo "$as_me:$LINENO: result: $ac_res" >&5
19970 echo "${ECHO_T}$ac_res" >&6; }
19971 else
19972   # Is the header compilable?
19973 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19975 cat >conftest.$ac_ext <<_ACEOF
19976 /* confdefs.h.  */
19977 _ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h.  */
19981 $ac_includes_default
19982 #include <$ac_header>
19983 _ACEOF
19984 rm -f conftest.$ac_objext
19985 if { (ac_try="$ac_compile"
19986 case "(($ac_try" in
19987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19988   *) ac_try_echo=$ac_try;;
19989 esac
19990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19991   (eval "$ac_compile") 2>conftest.er1
19992   ac_status=$?
19993   grep -v '^ *+' conftest.er1 >conftest.err
19994   rm -f conftest.er1
19995   cat conftest.err >&5
19996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997   (exit $ac_status); } && {
19998          test -z "$ac_c_werror_flag" ||
19999          test ! -s conftest.err
20000        } && test -s conftest.$ac_objext; then
20001   ac_header_compiler=yes
20002 else
20003   echo "$as_me: failed program was:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20005
20006         ac_header_compiler=no
20007 fi
20008
20009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20010 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20011 echo "${ECHO_T}$ac_header_compiler" >&6; }
20012
20013 # Is the header present?
20014 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20015 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20016 cat >conftest.$ac_ext <<_ACEOF
20017 /* confdefs.h.  */
20018 _ACEOF
20019 cat confdefs.h >>conftest.$ac_ext
20020 cat >>conftest.$ac_ext <<_ACEOF
20021 /* end confdefs.h.  */
20022 #include <$ac_header>
20023 _ACEOF
20024 if { (ac_try="$ac_cpp conftest.$ac_ext"
20025 case "(($ac_try" in
20026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027   *) ac_try_echo=$ac_try;;
20028 esac
20029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20030   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20031   ac_status=$?
20032   grep -v '^ *+' conftest.er1 >conftest.err
20033   rm -f conftest.er1
20034   cat conftest.err >&5
20035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036   (exit $ac_status); } >/dev/null && {
20037          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20038          test ! -s conftest.err
20039        }; then
20040   ac_header_preproc=yes
20041 else
20042   echo "$as_me: failed program was:" >&5
20043 sed 's/^/| /' conftest.$ac_ext >&5
20044
20045   ac_header_preproc=no
20046 fi
20047
20048 rm -f conftest.err conftest.$ac_ext
20049 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20050 echo "${ECHO_T}$ac_header_preproc" >&6; }
20051
20052 # So?  What about this header?
20053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20054   yes:no: )
20055     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20056 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20057     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20058 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20059     ac_header_preproc=yes
20060     ;;
20061   no:yes:* )
20062     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20064     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20065 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20066     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20067 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20068     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20069 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20070     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20072     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20073 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20074
20075     ;;
20076 esac
20077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20080   echo $ECHO_N "(cached) $ECHO_C" >&6
20081 else
20082   eval "$as_ac_Header=\$ac_header_preproc"
20083 fi
20084 ac_res=`eval echo '${'$as_ac_Header'}'`
20085                { echo "$as_me:$LINENO: result: $ac_res" >&5
20086 echo "${ECHO_T}$ac_res" >&6; }
20087
20088 fi
20089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20090   cat >>confdefs.h <<_ACEOF
20091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20092 _ACEOF
20093
20094 fi
20095
20096 done
20097
20098
20099     if test $ac_cv_header_ldap_h = yes -a $ac_cv_header_lber_h = yes; then
20100         { echo "$as_me:$LINENO: checking OpenLDAP api" >&5
20101 echo $ECHO_N "checking OpenLDAP api... $ECHO_C" >&6; }
20102 if test "${cmu_cv_openldap_api+set}" = set; then
20103   echo $ECHO_N "(cached) $ECHO_C" >&6
20104 else
20105
20106     cat >conftest.$ac_ext <<_ACEOF
20107 /* confdefs.h.  */
20108 _ACEOF
20109 cat confdefs.h >>conftest.$ac_ext
20110 cat >>conftest.$ac_ext <<_ACEOF
20111 /* end confdefs.h.  */
20112
20113 #include <ldap.h>
20114
20115 #ifdef LDAP_API_FEATURE_X_OPENLDAP
20116 char *__openldap_api = LDAP_API_FEATURE_X_OPENLDAP;
20117 #endif
20118
20119 _ACEOF
20120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20121   $EGREP "__openldap_api" >/dev/null 2>&1; then
20122   cmu_cv_openldap_api=yes
20123 else
20124   cmu_cv_openldap_api=no
20125 fi
20126 rm -f -r conftest*
20127
20128 fi
20129 { echo "$as_me:$LINENO: result: $cmu_cv_openldap_api" >&5
20130 echo "${ECHO_T}$cmu_cv_openldap_api" >&6; }
20131
20132
20133         if test "$cmu_cv_openldap_api" = yes; then
20134             { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap" >&5
20135 echo $ECHO_N "checking for ldap_initialize in -lldap... $ECHO_C" >&6; }
20136 if test "${ac_cv_lib_ldap_ldap_initialize+set}" = set; then
20137   echo $ECHO_N "(cached) $ECHO_C" >&6
20138 else
20139   ac_check_lib_save_LIBS=$LIBS
20140 LIBS="-lldap -llber $LIBS"
20141 cat >conftest.$ac_ext <<_ACEOF
20142 /* confdefs.h.  */
20143 _ACEOF
20144 cat confdefs.h >>conftest.$ac_ext
20145 cat >>conftest.$ac_ext <<_ACEOF
20146 /* end confdefs.h.  */
20147
20148 /* Override any GCC internal prototype to avoid an error.
20149    Use char because int might match the return type of a GCC
20150    builtin and then its argument prototype would still apply.  */
20151 #ifdef __cplusplus
20152 extern "C"
20153 #endif
20154 char ldap_initialize ();
20155 int
20156 main ()
20157 {
20158 return ldap_initialize ();
20159   ;
20160   return 0;
20161 }
20162 _ACEOF
20163 rm -f conftest.$ac_objext conftest$ac_exeext
20164 if { (ac_try="$ac_link"
20165 case "(($ac_try" in
20166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167   *) ac_try_echo=$ac_try;;
20168 esac
20169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170   (eval "$ac_link") 2>conftest.er1
20171   ac_status=$?
20172   grep -v '^ *+' conftest.er1 >conftest.err
20173   rm -f conftest.er1
20174   cat conftest.err >&5
20175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176   (exit $ac_status); } && {
20177          test -z "$ac_c_werror_flag" ||
20178          test ! -s conftest.err
20179        } && test -s conftest$ac_exeext &&
20180        $as_test_x conftest$ac_exeext; then
20181   ac_cv_lib_ldap_ldap_initialize=yes
20182 else
20183   echo "$as_me: failed program was:" >&5
20184 sed 's/^/| /' conftest.$ac_ext >&5
20185
20186         ac_cv_lib_ldap_ldap_initialize=no
20187 fi
20188
20189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20190       conftest$ac_exeext conftest.$ac_ext
20191 LIBS=$ac_check_lib_save_LIBS
20192 fi
20193 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_initialize" >&5
20194 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_initialize" >&6; }
20195 if test $ac_cv_lib_ldap_ldap_initialize = yes; then
20196    cmu_link_openldap="-lldap -llber"
20197 else
20198    cmu_link_openldap=no
20199 fi
20200
20201         fi
20202     fi
20203
20204     if test "$cmu_cv_openldap_api" = no -o "$cmu_link_openldap" = no; then
20205         { { echo "$as_me:$LINENO: error: Cannot enable LDAPDB plugin: Could not locate OpenLDAP" >&5
20206 echo "$as_me: error: Cannot enable LDAPDB plugin: Could not locate OpenLDAP" >&2;}
20207    { (exit 1); exit 1; }; }
20208     else
20209         { echo "$as_me:$LINENO: checking OpenLDAP version" >&5
20210 echo $ECHO_N "checking OpenLDAP version... $ECHO_C" >&6; }
20211 if test "${cmu_cv_openldap_compat+set}" = set; then
20212   echo $ECHO_N "(cached) $ECHO_C" >&6
20213 else
20214
20215     cat >conftest.$ac_ext <<_ACEOF
20216 /* confdefs.h.  */
20217 _ACEOF
20218 cat confdefs.h >>conftest.$ac_ext
20219 cat >>conftest.$ac_ext <<_ACEOF
20220 /* end confdefs.h.  */
20221
20222 #include <ldap.h>
20223
20224 /* Require 2.1.27+ and 2.2.6+ */
20225 #if LDAP_VENDOR_VERSION_MAJOR == 2  && LDAP_VENDOR_VERSION_MINOR == 1 && LDAP_VENDOR_VERSION_PATCH > 26
20226 char *__openldap_compat = "2.1.27 or better okay";
20227 #elif LDAP_VENDOR_VERSION_MAJOR == 2  && LDAP_VENDOR_VERSION_MINOR == 2 && LDAP_VENDOR_VERSION_PATCH > 5
20228 char *__openldap_compat = "2.2.6 or better okay";
20229 #elif LDAP_VENDOR_VERSION_MAJOR == 2  && LDAP_VENDOR_VERSION_MINOR > 2
20230 char *__openldap_compat = "2.3 or better okay"
20231 #endif
20232
20233 _ACEOF
20234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20235   $EGREP "__openldap_compat" >/dev/null 2>&1; then
20236   cmu_cv_openldap_compat=yes
20237 else
20238   cmu_cv_openldap_compat=no
20239 fi
20240 rm -f -r conftest*
20241
20242 fi
20243 { echo "$as_me:$LINENO: result: $cmu_cv_openldap_compat" >&5
20244 echo "${ECHO_T}$cmu_cv_openldap_compat" >&6; }
20245
20246
20247         if test "$cmu_cv_openldap_compat" = no; then
20248             { { echo "$as_me:$LINENO: error: Cannot enable LDAPDB plugin: OpenLDAP library located but incompatible" >&5
20249 echo "$as_me: error: Cannot enable LDAPDB plugin: OpenLDAP library located but incompatible" >&2;}
20250    { (exit 1); exit 1; }; }
20251         else
20252             LIB_LDAP=$cmu_link_openldap
20253
20254
20255             SASL_MECHS="$SASL_MECHS libldapdb.la"
20256             if test "$enable_static" = yes; then
20257                 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/ldapdb.c"
20258                 SASL_STATIC_OBJS="$SASL_STATIC_OBJS ldapdb.o"
20259
20260 cat >>confdefs.h <<\_ACEOF
20261 #define STATIC_LDAPDB
20262 _ACEOF
20263
20264             fi
20265         fi
20266     fi
20267
20268     if test "$cmu_cv_openldap_compat" != yes; then
20269         CPPFLAGS=$save_CPPFLAGS
20270         LDFLAGS=$save_LDFLAGS
20271     fi
20272 else
20273     { echo "$as_me:$LINENO: result: disabled" >&5
20274 echo "${ECHO_T}disabled" >&6; }
20275 fi
20276
20277
20278
20279
20280
20281
20282
20283 # Check whether --with-plugindir was given.
20284 if test "${with_plugindir+set}" = set; then
20285   withval=$with_plugindir; plugindir=$withval
20286 else
20287   plugindir=/usr/lib/sasl2
20288 fi
20289
20290
20291 cat >>confdefs.h <<_ACEOF
20292 #define PLUGINDIR "$plugindir"
20293 _ACEOF
20294
20295
20296
20297
20298 # Check whether --with-configdir was given.
20299 if test "${with_configdir+set}" = set; then
20300   withval=$with_configdir; configdir=$withval
20301 else
20302   configdir=$plugindir:/etc/sasl2
20303 fi
20304
20305
20306 cat >>confdefs.h <<_ACEOF
20307 #define CONFIGDIR "$configdir"
20308 _ACEOF
20309
20310
20311
20312
20313 # Check whether --with-rc4 was given.
20314 if test "${with_rc4+set}" = set; then
20315   withval=$with_rc4; with_rc4=$withval
20316 else
20317   with_rc4=yes
20318 fi
20319
20320
20321 if test "$with_rc4" != no; then
20322
20323 cat >>confdefs.h <<\_ACEOF
20324 #define WITH_RC4
20325 _ACEOF
20326
20327 fi
20328
20329 building_for_macosx=no
20330 case "$host_os" in
20331         darwin*)
20332 # Check whether --enable-macos-framework was given.
20333 if test "${enable_macos_framework+set}" = set; then
20334   enableval=$enable_macos_framework; building_for_macosx=no
20335 else
20336   building_for_macosx=yes
20337 fi
20338
20339         ;;
20340 esac
20341  if test "$building_for_macosx" = yes; then
20342   MACOSX_TRUE=
20343   MACOSX_FALSE='#'
20344 else
20345   MACOSX_TRUE='#'
20346   MACOSX_FALSE=
20347 fi
20348
20349
20350 { echo "$as_me:$LINENO: checking for dmalloc library" >&5
20351 echo $ECHO_N "checking for dmalloc library... $ECHO_C" >&6; }
20352
20353 # Check whether --with-dmalloc was given.
20354 if test "${with_dmalloc+set}" = set; then
20355   withval=$with_dmalloc; with_dmalloc=$withval
20356 else
20357   with_dmalloc=no
20358 fi
20359
20360
20361 DMALLOC_LIBS=""
20362
20363 if test "$with_dmalloc" != "no"; then
20364    if test "$with_dmalloc" = "yes"; then
20365         with_dmalloc="/usr/local"
20366    fi
20367
20368    if test -r "$with_dmalloc/libdmalloc.a"; then
20369         DMALLOC_LIBS="$with_dmalloc/libdmalloc.a"
20370
20371 cat >>confdefs.h <<\_ACEOF
20372 #define WITH_DMALLOC
20373 _ACEOF
20374
20375         { echo "$as_me:$LINENO: result: yes" >&5
20376 echo "${ECHO_T}yes" >&6; }
20377    elif test -r "$with_dmalloc/lib/libdmalloc.a"; then
20378         DMALLOC_LIBS="$with_dmalloc/lib/libdmalloc.a"
20379
20380 cat >>confdefs.h <<\_ACEOF
20381 #define WITH_DMALLOC
20382 _ACEOF
20383
20384         { echo "$as_me:$LINENO: result: yes" >&5
20385 echo "${ECHO_T}yes" >&6; }
20386    else
20387         { { echo "$as_me:$LINENO: error: cannot find dmalloc library" >&5
20388 echo "$as_me: error: cannot find dmalloc library" >&2;}
20389    { (exit please check your installation.); exit please check your installation.; }; }
20390    fi
20391 else
20392    { echo "$as_me:$LINENO: result: no" >&5
20393 echo "${ECHO_T}no" >&6; }
20394 fi
20395
20396
20397
20398 { echo "$as_me:$LINENO: checking for sfio library" >&5
20399 echo $ECHO_N "checking for sfio library... $ECHO_C" >&6; }
20400
20401 # Check whether --with-sfio was given.
20402 if test "${with_sfio+set}" = set; then
20403   withval=$with_sfio; with_sfio=$withval
20404 else
20405   with_sfio=no
20406 fi
20407
20408
20409 if test "$with_sfio" != "no"; then
20410    if test "$with_sfio" = "yes"; then
20411         with_sfio="/usr/local"
20412    fi
20413
20414
20415
20416
20417
20418    if test -r "$with_sfio/sfio.h"; then SFIO_DIR=$with_sfio;
20419                                               SFIO_INC_DIR=$with_sfio
20420    elif test -r "$with_sfio/include/sfio.h"; then SFIO_DIR=$with_sfio;
20421                                               SFIO_INC_DIR=$with_sfio/include
20422    elif test -r "$with_sfio/include/sfio/sfio.h"; then SFIO_DIR=$with_sfio;
20423                                               SFIO_INC_DIR=$with_sfio/include/sfio
20424    fi
20425
20426    if test -z "$SFIO_DIR"; then
20427         { { echo "$as_me:$LINENO: error: Cannot find sfio.h" >&5
20428 echo "$as_me: error: Cannot find sfio.h" >&2;}
20429    { (exit Please check your SFIO installation.); exit Please check your SFIO installation.; }; }
20430    fi
20431
20432
20433                 str="$SFIO_DIR/lib/libsfio.*"
20434                 for i in `echo $str`; do
20435                         if test -r $i; then
20436                                 SFIO_LIBDIR=$SFIO_DIR/lib
20437                                 break 2
20438                         fi
20439                 done
20440
20441
20442                 str="$SFIO_DIR/lib/sfio/libsfio.*"
20443                 for i in `echo $str`; do
20444                         if test -r $i; then
20445                                 SFIO_LIBDIR=$SFIO_DIR/lib/sfio
20446                                 break 2
20447                         fi
20448                 done
20449
20450
20451    if test -z "$SFIO_LIBDIR"; then
20452         { { echo "$as_me:$LINENO: error: Cannot find sfio library" >&5
20453 echo "$as_me: error: Cannot find sfio library" >&2;}
20454    { (exit Please check your SFIO installation.); exit Please check your SFIO installation.; }; }
20455    fi
20456
20457    SFIO_INC_FLAGS="-I$SFIO_INC_DIR"
20458    SFIO_LIB_FLAGS="-L$SFIO_LIBDIR -lsfio"
20459    SMTPTEST_PROGRAM="smtptest"
20460    SASL_UTIL_LIBS_EXTRA=libsfsasl2.la
20461    SASL_UTIL_HEADERS_EXTRA=sfsasl.h
20462
20463    { echo "$as_me:$LINENO: result: yes" >&5
20464 echo "${ECHO_T}yes" >&6; }
20465 else
20466    { echo "$as_me:$LINENO: result: no" >&5
20467 echo "${ECHO_T}no" >&6; }
20468    SFIO_INC_FLAGS=""
20469    SFIO_LIB_FLAGS=""
20470    SMTPTEST_PROGRAM=""
20471    SASL_UTIL_LIBS_EXTRA=""
20472    SASL_UTIL_HEADERS_EXTRA=""
20473 fi
20474
20475
20476
20477
20478
20479
20480
20481 sasl_cv_getsubopt=no
20482 { echo "$as_me:$LINENO: checking for getsubopt" >&5
20483 echo $ECHO_N "checking for getsubopt... $ECHO_C" >&6; }
20484 if test "${ac_cv_func_getsubopt+set}" = set; then
20485   echo $ECHO_N "(cached) $ECHO_C" >&6
20486 else
20487   cat >conftest.$ac_ext <<_ACEOF
20488 /* confdefs.h.  */
20489 _ACEOF
20490 cat confdefs.h >>conftest.$ac_ext
20491 cat >>conftest.$ac_ext <<_ACEOF
20492 /* end confdefs.h.  */
20493 /* Define getsubopt to an innocuous variant, in case <limits.h> declares getsubopt.
20494    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20495 #define getsubopt innocuous_getsubopt
20496
20497 /* System header to define __stub macros and hopefully few prototypes,
20498     which can conflict with char getsubopt (); below.
20499     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20500     <limits.h> exists even on freestanding compilers.  */
20501
20502 #ifdef __STDC__
20503 # include <limits.h>
20504 #else
20505 # include <assert.h>
20506 #endif
20507
20508 #undef getsubopt
20509
20510 /* Override any GCC internal prototype to avoid an error.
20511    Use char because int might match the return type of a GCC
20512    builtin and then its argument prototype would still apply.  */
20513 #ifdef __cplusplus
20514 extern "C"
20515 #endif
20516 char getsubopt ();
20517 /* The GNU C library defines this for functions which it implements
20518     to always fail with ENOSYS.  Some functions are actually named
20519     something starting with __ and the normal name is an alias.  */
20520 #if defined __stub_getsubopt || defined __stub___getsubopt
20521 choke me
20522 #endif
20523
20524 int
20525 main ()
20526 {
20527 return getsubopt ();
20528   ;
20529   return 0;
20530 }
20531 _ACEOF
20532 rm -f conftest.$ac_objext conftest$ac_exeext
20533 if { (ac_try="$ac_link"
20534 case "(($ac_try" in
20535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20536   *) ac_try_echo=$ac_try;;
20537 esac
20538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20539   (eval "$ac_link") 2>conftest.er1
20540   ac_status=$?
20541   grep -v '^ *+' conftest.er1 >conftest.err
20542   rm -f conftest.er1
20543   cat conftest.err >&5
20544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545   (exit $ac_status); } && {
20546          test -z "$ac_c_werror_flag" ||
20547          test ! -s conftest.err
20548        } && test -s conftest$ac_exeext &&
20549        $as_test_x conftest$ac_exeext; then
20550   ac_cv_func_getsubopt=yes
20551 else
20552   echo "$as_me: failed program was:" >&5
20553 sed 's/^/| /' conftest.$ac_ext >&5
20554
20555         ac_cv_func_getsubopt=no
20556 fi
20557
20558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20559       conftest$ac_exeext conftest.$ac_ext
20560 fi
20561 { echo "$as_me:$LINENO: result: $ac_cv_func_getsubopt" >&5
20562 echo "${ECHO_T}$ac_cv_func_getsubopt" >&6; }
20563 if test $ac_cv_func_getsubopt = yes; then
20564
20565 cat >>confdefs.h <<\_ACEOF
20566 #define HAVE_GETSUBOPT
20567 _ACEOF
20568
20569 else
20570   sasl_cv_getsubopt=yes
20571 fi
20572
20573 if test $sasl_cv_getsubopt = yes; then
20574         case " $LIBOBJS " in
20575   *" getsubopt.$ac_objext "* ) ;;
20576   *) LIBOBJS="$LIBOBJS getsubopt.$ac_objext"
20577  ;;
20578 esac
20579
20580         GETSUBOPT="getsubopt.lo"
20581 fi
20582
20583
20584 sasl_cv_snprintf=no
20585 SNPRINTFOBJS=""
20586 { echo "$as_me:$LINENO: checking for snprintf" >&5
20587 echo $ECHO_N "checking for snprintf... $ECHO_C" >&6; }
20588 if test "${ac_cv_func_snprintf+set}" = set; then
20589   echo $ECHO_N "(cached) $ECHO_C" >&6
20590 else
20591   cat >conftest.$ac_ext <<_ACEOF
20592 /* confdefs.h.  */
20593 _ACEOF
20594 cat confdefs.h >>conftest.$ac_ext
20595 cat >>conftest.$ac_ext <<_ACEOF
20596 /* end confdefs.h.  */
20597 /* Define snprintf to an innocuous variant, in case <limits.h> declares snprintf.
20598    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20599 #define snprintf innocuous_snprintf
20600
20601 /* System header to define __stub macros and hopefully few prototypes,
20602     which can conflict with char snprintf (); below.
20603     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20604     <limits.h> exists even on freestanding compilers.  */
20605
20606 #ifdef __STDC__
20607 # include <limits.h>
20608 #else
20609 # include <assert.h>
20610 #endif
20611
20612 #undef snprintf
20613
20614 /* Override any GCC internal prototype to avoid an error.
20615    Use char because int might match the return type of a GCC
20616    builtin and then its argument prototype would still apply.  */
20617 #ifdef __cplusplus
20618 extern "C"
20619 #endif
20620 char snprintf ();
20621 /* The GNU C library defines this for functions which it implements
20622     to always fail with ENOSYS.  Some functions are actually named
20623     something starting with __ and the normal name is an alias.  */
20624 #if defined __stub_snprintf || defined __stub___snprintf
20625 choke me
20626 #endif
20627
20628 int
20629 main ()
20630 {
20631 return snprintf ();
20632   ;
20633   return 0;
20634 }
20635 _ACEOF
20636 rm -f conftest.$ac_objext conftest$ac_exeext
20637 if { (ac_try="$ac_link"
20638 case "(($ac_try" in
20639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20640   *) ac_try_echo=$ac_try;;
20641 esac
20642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20643   (eval "$ac_link") 2>conftest.er1
20644   ac_status=$?
20645   grep -v '^ *+' conftest.er1 >conftest.err
20646   rm -f conftest.er1
20647   cat conftest.err >&5
20648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649   (exit $ac_status); } && {
20650          test -z "$ac_c_werror_flag" ||
20651          test ! -s conftest.err
20652        } && test -s conftest$ac_exeext &&
20653        $as_test_x conftest$ac_exeext; then
20654   ac_cv_func_snprintf=yes
20655 else
20656   echo "$as_me: failed program was:" >&5
20657 sed 's/^/| /' conftest.$ac_ext >&5
20658
20659         ac_cv_func_snprintf=no
20660 fi
20661
20662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20663       conftest$ac_exeext conftest.$ac_ext
20664 fi
20665 { echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5
20666 echo "${ECHO_T}$ac_cv_func_snprintf" >&6; }
20667 if test $ac_cv_func_snprintf = yes; then
20668
20669 cat >>confdefs.h <<\_ACEOF
20670 #define HAVE_SNPRINTF
20671 _ACEOF
20672
20673 else
20674   sasl_cv_snprintf=yes
20675 fi
20676
20677 { echo "$as_me:$LINENO: checking for vsnprintf" >&5
20678 echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6; }
20679 if test "${ac_cv_func_vsnprintf+set}" = set; then
20680   echo $ECHO_N "(cached) $ECHO_C" >&6
20681 else
20682   cat >conftest.$ac_ext <<_ACEOF
20683 /* confdefs.h.  */
20684 _ACEOF
20685 cat confdefs.h >>conftest.$ac_ext
20686 cat >>conftest.$ac_ext <<_ACEOF
20687 /* end confdefs.h.  */
20688 /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
20689    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20690 #define vsnprintf innocuous_vsnprintf
20691
20692 /* System header to define __stub macros and hopefully few prototypes,
20693     which can conflict with char vsnprintf (); below.
20694     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20695     <limits.h> exists even on freestanding compilers.  */
20696
20697 #ifdef __STDC__
20698 # include <limits.h>
20699 #else
20700 # include <assert.h>
20701 #endif
20702
20703 #undef vsnprintf
20704
20705 /* Override any GCC internal prototype to avoid an error.
20706    Use char because int might match the return type of a GCC
20707    builtin and then its argument prototype would still apply.  */
20708 #ifdef __cplusplus
20709 extern "C"
20710 #endif
20711 char vsnprintf ();
20712 /* The GNU C library defines this for functions which it implements
20713     to always fail with ENOSYS.  Some functions are actually named
20714     something starting with __ and the normal name is an alias.  */
20715 #if defined __stub_vsnprintf || defined __stub___vsnprintf
20716 choke me
20717 #endif
20718
20719 int
20720 main ()
20721 {
20722 return vsnprintf ();
20723   ;
20724   return 0;
20725 }
20726 _ACEOF
20727 rm -f conftest.$ac_objext conftest$ac_exeext
20728 if { (ac_try="$ac_link"
20729 case "(($ac_try" in
20730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20731   *) ac_try_echo=$ac_try;;
20732 esac
20733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20734   (eval "$ac_link") 2>conftest.er1
20735   ac_status=$?
20736   grep -v '^ *+' conftest.er1 >conftest.err
20737   rm -f conftest.er1
20738   cat conftest.err >&5
20739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740   (exit $ac_status); } && {
20741          test -z "$ac_c_werror_flag" ||
20742          test ! -s conftest.err
20743        } && test -s conftest$ac_exeext &&
20744        $as_test_x conftest$ac_exeext; then
20745   ac_cv_func_vsnprintf=yes
20746 else
20747   echo "$as_me: failed program was:" >&5
20748 sed 's/^/| /' conftest.$ac_ext >&5
20749
20750         ac_cv_func_vsnprintf=no
20751 fi
20752
20753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20754       conftest$ac_exeext conftest.$ac_ext
20755 fi
20756 { echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
20757 echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6; }
20758 if test $ac_cv_func_vsnprintf = yes; then
20759
20760 cat >>confdefs.h <<\_ACEOF
20761 #define HAVE_VSNPRINTF
20762 _ACEOF
20763
20764 else
20765   sasl_cv_snprintf=yes
20766 fi
20767
20768 if test $sasl_cv_snprintf = yes; then
20769         case " $LIBOBJS " in
20770   *" snprintf.$ac_objext "* ) ;;
20771   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20772  ;;
20773 esac
20774
20775         SNPRINTFOBJS="snprintf.o"
20776         LTSNPRINTFOBJS="snprintf.lo"
20777 fi
20778
20779
20780
20781
20782 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20783 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
20784 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20785   echo $ECHO_N "(cached) $ECHO_C" >&6
20786 else
20787   ac_check_lib_save_LIBS=$LIBS
20788 LIBS="-lresolv  $LIBS"
20789 cat >conftest.$ac_ext <<_ACEOF
20790 /* confdefs.h.  */
20791 _ACEOF
20792 cat confdefs.h >>conftest.$ac_ext
20793 cat >>conftest.$ac_ext <<_ACEOF
20794 /* end confdefs.h.  */
20795
20796 /* Override any GCC internal prototype to avoid an error.
20797    Use char because int might match the return type of a GCC
20798    builtin and then its argument prototype would still apply.  */
20799 #ifdef __cplusplus
20800 extern "C"
20801 #endif
20802 char inet_aton ();
20803 int
20804 main ()
20805 {
20806 return inet_aton ();
20807   ;
20808   return 0;
20809 }
20810 _ACEOF
20811 rm -f conftest.$ac_objext conftest$ac_exeext
20812 if { (ac_try="$ac_link"
20813 case "(($ac_try" in
20814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20815   *) ac_try_echo=$ac_try;;
20816 esac
20817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20818   (eval "$ac_link") 2>conftest.er1
20819   ac_status=$?
20820   grep -v '^ *+' conftest.er1 >conftest.err
20821   rm -f conftest.er1
20822   cat conftest.err >&5
20823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824   (exit $ac_status); } && {
20825          test -z "$ac_c_werror_flag" ||
20826          test ! -s conftest.err
20827        } && test -s conftest$ac_exeext &&
20828        $as_test_x conftest$ac_exeext; then
20829   ac_cv_lib_resolv_inet_aton=yes
20830 else
20831   echo "$as_me: failed program was:" >&5
20832 sed 's/^/| /' conftest.$ac_ext >&5
20833
20834         ac_cv_lib_resolv_inet_aton=no
20835 fi
20836
20837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20838       conftest$ac_exeext conftest.$ac_ext
20839 LIBS=$ac_check_lib_save_LIBS
20840 fi
20841 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20842 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
20843 if test $ac_cv_lib_resolv_inet_aton = yes; then
20844   cat >>confdefs.h <<_ACEOF
20845 #define HAVE_LIBRESOLV 1
20846 _ACEOF
20847
20848   LIBS="-lresolv $LIBS"
20849
20850 fi
20851
20852
20853 GETADDRINFOOBJS=""
20854 sasl_cv_getaddrinfo=yes
20855
20856 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
20857 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
20858 if test "${ac_cv_func_getaddrinfo+set}" = set; then
20859   echo $ECHO_N "(cached) $ECHO_C" >&6
20860 else
20861   cat >conftest.$ac_ext <<_ACEOF
20862 /* confdefs.h.  */
20863 _ACEOF
20864 cat confdefs.h >>conftest.$ac_ext
20865 cat >>conftest.$ac_ext <<_ACEOF
20866 /* end confdefs.h.  */
20867 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
20868    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20869 #define getaddrinfo innocuous_getaddrinfo
20870
20871 /* System header to define __stub macros and hopefully few prototypes,
20872     which can conflict with char getaddrinfo (); below.
20873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20874     <limits.h> exists even on freestanding compilers.  */
20875
20876 #ifdef __STDC__
20877 # include <limits.h>
20878 #else
20879 # include <assert.h>
20880 #endif
20881
20882 #undef getaddrinfo
20883
20884 /* Override any GCC internal prototype to avoid an error.
20885    Use char because int might match the return type of a GCC
20886    builtin and then its argument prototype would still apply.  */
20887 #ifdef __cplusplus
20888 extern "C"
20889 #endif
20890 char getaddrinfo ();
20891 /* The GNU C library defines this for functions which it implements
20892     to always fail with ENOSYS.  Some functions are actually named
20893     something starting with __ and the normal name is an alias.  */
20894 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
20895 choke me
20896 #endif
20897
20898 int
20899 main ()
20900 {
20901 return getaddrinfo ();
20902   ;
20903   return 0;
20904 }
20905 _ACEOF
20906 rm -f conftest.$ac_objext conftest$ac_exeext
20907 if { (ac_try="$ac_link"
20908 case "(($ac_try" in
20909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20910   *) ac_try_echo=$ac_try;;
20911 esac
20912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20913   (eval "$ac_link") 2>conftest.er1
20914   ac_status=$?
20915   grep -v '^ *+' conftest.er1 >conftest.err
20916   rm -f conftest.er1
20917   cat conftest.err >&5
20918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919   (exit $ac_status); } && {
20920          test -z "$ac_c_werror_flag" ||
20921          test ! -s conftest.err
20922        } && test -s conftest$ac_exeext &&
20923        $as_test_x conftest$ac_exeext; then
20924   ac_cv_func_getaddrinfo=yes
20925 else
20926   echo "$as_me: failed program was:" >&5
20927 sed 's/^/| /' conftest.$ac_ext >&5
20928
20929         ac_cv_func_getaddrinfo=no
20930 fi
20931
20932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20933       conftest$ac_exeext conftest.$ac_ext
20934 fi
20935 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
20936 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
20937 if test $ac_cv_func_getaddrinfo = yes; then
20938     ac_cv_lib_socket_getaddrinfo=no
20939   ac_cv_lib_inet6_getaddrinfo=no
20940
20941 else
20942     { echo "$as_me:$LINENO: checking for getaddrinfo in -lsocket" >&5
20943 echo $ECHO_N "checking for getaddrinfo in -lsocket... $ECHO_C" >&6; }
20944 if test "${ac_cv_lib_socket_getaddrinfo+set}" = set; then
20945   echo $ECHO_N "(cached) $ECHO_C" >&6
20946 else
20947   ac_check_lib_save_LIBS=$LIBS
20948 LIBS="-lsocket  $LIBS"
20949 cat >conftest.$ac_ext <<_ACEOF
20950 /* confdefs.h.  */
20951 _ACEOF
20952 cat confdefs.h >>conftest.$ac_ext
20953 cat >>conftest.$ac_ext <<_ACEOF
20954 /* end confdefs.h.  */
20955
20956 /* Override any GCC internal prototype to avoid an error.
20957    Use char because int might match the return type of a GCC
20958    builtin and then its argument prototype would still apply.  */
20959 #ifdef __cplusplus
20960 extern "C"
20961 #endif
20962 char getaddrinfo ();
20963 int
20964 main ()
20965 {
20966 return getaddrinfo ();
20967   ;
20968   return 0;
20969 }
20970 _ACEOF
20971 rm -f conftest.$ac_objext conftest$ac_exeext
20972 if { (ac_try="$ac_link"
20973 case "(($ac_try" in
20974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20975   *) ac_try_echo=$ac_try;;
20976 esac
20977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20978   (eval "$ac_link") 2>conftest.er1
20979   ac_status=$?
20980   grep -v '^ *+' conftest.er1 >conftest.err
20981   rm -f conftest.er1
20982   cat conftest.err >&5
20983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984   (exit $ac_status); } && {
20985          test -z "$ac_c_werror_flag" ||
20986          test ! -s conftest.err
20987        } && test -s conftest$ac_exeext &&
20988        $as_test_x conftest$ac_exeext; then
20989   ac_cv_lib_socket_getaddrinfo=yes
20990 else
20991   echo "$as_me: failed program was:" >&5
20992 sed 's/^/| /' conftest.$ac_ext >&5
20993
20994         ac_cv_lib_socket_getaddrinfo=no
20995 fi
20996
20997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20998       conftest$ac_exeext conftest.$ac_ext
20999 LIBS=$ac_check_lib_save_LIBS
21000 fi
21001 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getaddrinfo" >&5
21002 echo "${ECHO_T}$ac_cv_lib_socket_getaddrinfo" >&6; }
21003 if test $ac_cv_lib_socket_getaddrinfo = yes; then
21004       LIBS="$LIBS -lsocket"
21005     ac_cv_lib_inet6_getaddrinfo=no
21006
21007 else
21008       { echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5
21009 echo $ECHO_N "checking whether your system has IPv6 directory... $ECHO_C" >&6; }
21010     if test "${ipv6_cv_dir+set}" = set; then
21011   echo $ECHO_N "(cached) $ECHO_C" >&6
21012 else
21013         for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
21014         if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
21015           break
21016         fi
21017       done
21018 fi
21019     { echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5
21020 echo "${ECHO_T}$ipv6_cv_dir" >&6; }
21021     if test $ipv6_cv_dir = no; then
21022       ac_cv_lib_inet6_getaddrinfo=no
21023     else
21024       if test x$ipv6_libinet6 = x; then
21025         ipv6_libinet6=no
21026         SAVELDFLAGS="$LDFLAGS"
21027         LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
21028       fi
21029       { echo "$as_me:$LINENO: checking for getaddrinfo in -linet6" >&5
21030 echo $ECHO_N "checking for getaddrinfo in -linet6... $ECHO_C" >&6; }
21031 if test "${ac_cv_lib_inet6_getaddrinfo+set}" = set; then
21032   echo $ECHO_N "(cached) $ECHO_C" >&6
21033 else
21034   ac_check_lib_save_LIBS=$LIBS
21035 LIBS="-linet6  $LIBS"
21036 cat >conftest.$ac_ext <<_ACEOF
21037 /* confdefs.h.  */
21038 _ACEOF
21039 cat confdefs.h >>conftest.$ac_ext
21040 cat >>conftest.$ac_ext <<_ACEOF
21041 /* end confdefs.h.  */
21042
21043 /* Override any GCC internal prototype to avoid an error.
21044    Use char because int might match the return type of a GCC
21045    builtin and then its argument prototype would still apply.  */
21046 #ifdef __cplusplus
21047 extern "C"
21048 #endif
21049 char getaddrinfo ();
21050 int
21051 main ()
21052 {
21053 return getaddrinfo ();
21054   ;
21055   return 0;
21056 }
21057 _ACEOF
21058 rm -f conftest.$ac_objext conftest$ac_exeext
21059 if { (ac_try="$ac_link"
21060 case "(($ac_try" in
21061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21062   *) ac_try_echo=$ac_try;;
21063 esac
21064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21065   (eval "$ac_link") 2>conftest.er1
21066   ac_status=$?
21067   grep -v '^ *+' conftest.er1 >conftest.err
21068   rm -f conftest.er1
21069   cat conftest.err >&5
21070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071   (exit $ac_status); } && {
21072          test -z "$ac_c_werror_flag" ||
21073          test ! -s conftest.err
21074        } && test -s conftest$ac_exeext &&
21075        $as_test_x conftest$ac_exeext; then
21076   ac_cv_lib_inet6_getaddrinfo=yes
21077 else
21078   echo "$as_me: failed program was:" >&5
21079 sed 's/^/| /' conftest.$ac_ext >&5
21080
21081         ac_cv_lib_inet6_getaddrinfo=no
21082 fi
21083
21084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21085       conftest$ac_exeext conftest.$ac_ext
21086 LIBS=$ac_check_lib_save_LIBS
21087 fi
21088 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getaddrinfo" >&5
21089 echo "${ECHO_T}$ac_cv_lib_inet6_getaddrinfo" >&6; }
21090 if test $ac_cv_lib_inet6_getaddrinfo = yes; then
21091         if test $ipv6_libinet6 = no; then
21092           ipv6_libinet6=yes
21093           LIBS="$LIBS -linet6"
21094         fi
21095 fi
21096       if test $ipv6_libinet6 = no; then
21097         LDFLAGS="$SAVELDFLAGS"
21098       fi
21099     fi
21100 fi
21101
21102 fi
21103 ipv6_cv_getaddrinfo=no
21104 if test $ac_cv_func_getaddrinfo = yes -o $ac_cv_lib_socket_getaddrinfo = yes \
21105      -o $ac_cv_lib_inet6_getaddrinfo = yes
21106 then
21107   ipv6_cv_getaddrinfo=yes
21108 fi
21109 if test $ipv6_cv_getaddrinfo = no; then
21110   if test getaddrinfo = getaddrinfo; then
21111     for ipv6_cv_pfx in o n; do
21112       cat >conftest.$ac_ext <<_ACEOF
21113 /* confdefs.h.  */
21114 _ACEOF
21115 cat confdefs.h >>conftest.$ac_ext
21116 cat >>conftest.$ac_ext <<_ACEOF
21117 /* end confdefs.h.  */
21118 #include <netdb.h>
21119
21120 _ACEOF
21121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21122   $EGREP "${ipv6_cv_pfx}getaddrinfo" >/dev/null 2>&1; then
21123   as_ac_var=`echo "ac_cv_func_${ipv6_cv_pfx}getaddrinfo" | $as_tr_sh`
21124 { echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}getaddrinfo" >&5
21125 echo $ECHO_N "checking for ${ipv6_cv_pfx}getaddrinfo... $ECHO_C" >&6; }
21126 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21127   echo $ECHO_N "(cached) $ECHO_C" >&6
21128 else
21129   cat >conftest.$ac_ext <<_ACEOF
21130 /* confdefs.h.  */
21131 _ACEOF
21132 cat confdefs.h >>conftest.$ac_ext
21133 cat >>conftest.$ac_ext <<_ACEOF
21134 /* end confdefs.h.  */
21135 /* Define ${ipv6_cv_pfx}getaddrinfo to an innocuous variant, in case <limits.h> declares ${ipv6_cv_pfx}getaddrinfo.
21136    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21137 #define ${ipv6_cv_pfx}getaddrinfo innocuous_${ipv6_cv_pfx}getaddrinfo
21138
21139 /* System header to define __stub macros and hopefully few prototypes,
21140     which can conflict with char ${ipv6_cv_pfx}getaddrinfo (); below.
21141     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21142     <limits.h> exists even on freestanding compilers.  */
21143
21144 #ifdef __STDC__
21145 # include <limits.h>
21146 #else
21147 # include <assert.h>
21148 #endif
21149
21150 #undef ${ipv6_cv_pfx}getaddrinfo
21151
21152 /* Override any GCC internal prototype to avoid an error.
21153    Use char because int might match the return type of a GCC
21154    builtin and then its argument prototype would still apply.  */
21155 #ifdef __cplusplus
21156 extern "C"
21157 #endif
21158 char ${ipv6_cv_pfx}getaddrinfo ();
21159 /* The GNU C library defines this for functions which it implements
21160     to always fail with ENOSYS.  Some functions are actually named
21161     something starting with __ and the normal name is an alias.  */
21162 #if defined __stub_${ipv6_cv_pfx}getaddrinfo || defined __stub___${ipv6_cv_pfx}getaddrinfo
21163 choke me
21164 #endif
21165
21166 int
21167 main ()
21168 {
21169 return ${ipv6_cv_pfx}getaddrinfo ();
21170   ;
21171   return 0;
21172 }
21173 _ACEOF
21174 rm -f conftest.$ac_objext conftest$ac_exeext
21175 if { (ac_try="$ac_link"
21176 case "(($ac_try" in
21177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21178   *) ac_try_echo=$ac_try;;
21179 esac
21180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21181   (eval "$ac_link") 2>conftest.er1
21182   ac_status=$?
21183   grep -v '^ *+' conftest.er1 >conftest.err
21184   rm -f conftest.er1
21185   cat conftest.err >&5
21186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187   (exit $ac_status); } && {
21188          test -z "$ac_c_werror_flag" ||
21189          test ! -s conftest.err
21190        } && test -s conftest$ac_exeext &&
21191        $as_test_x conftest$ac_exeext; then
21192   eval "$as_ac_var=yes"
21193 else
21194   echo "$as_me: failed program was:" >&5
21195 sed 's/^/| /' conftest.$ac_ext >&5
21196
21197         eval "$as_ac_var=no"
21198 fi
21199
21200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21201       conftest$ac_exeext conftest.$ac_ext
21202 fi
21203 ac_res=`eval echo '${'$as_ac_var'}'`
21204                { echo "$as_me:$LINENO: result: $ac_res" >&5
21205 echo "${ECHO_T}$ac_res" >&6; }
21206
21207 fi
21208 rm -f -r conftest*
21209
21210       if eval test X\$ac_cv_func_${ipv6_cv_pfx}getaddrinfo = Xyes; then
21211
21212 cat >>confdefs.h <<\_ACEOF
21213 #define HAVE_GETADDRINFO
21214 _ACEOF
21215
21216         ipv6_cv_getaddrinfo=yes
21217         break
21218       fi
21219     done
21220   fi
21221 fi
21222 if test $ipv6_cv_getaddrinfo = yes; then
21223
21224 { echo "$as_me:$LINENO: checking for gai_strerror" >&5
21225 echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6; }
21226 if test "${ac_cv_func_gai_strerror+set}" = set; then
21227   echo $ECHO_N "(cached) $ECHO_C" >&6
21228 else
21229   cat >conftest.$ac_ext <<_ACEOF
21230 /* confdefs.h.  */
21231 _ACEOF
21232 cat confdefs.h >>conftest.$ac_ext
21233 cat >>conftest.$ac_ext <<_ACEOF
21234 /* end confdefs.h.  */
21235 /* Define gai_strerror to an innocuous variant, in case <limits.h> declares gai_strerror.
21236    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21237 #define gai_strerror innocuous_gai_strerror
21238
21239 /* System header to define __stub macros and hopefully few prototypes,
21240     which can conflict with char gai_strerror (); below.
21241     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21242     <limits.h> exists even on freestanding compilers.  */
21243
21244 #ifdef __STDC__
21245 # include <limits.h>
21246 #else
21247 # include <assert.h>
21248 #endif
21249
21250 #undef gai_strerror
21251
21252 /* Override any GCC internal prototype to avoid an error.
21253    Use char because int might match the return type of a GCC
21254    builtin and then its argument prototype would still apply.  */
21255 #ifdef __cplusplus
21256 extern "C"
21257 #endif
21258 char gai_strerror ();
21259 /* The GNU C library defines this for functions which it implements
21260     to always fail with ENOSYS.  Some functions are actually named
21261     something starting with __ and the normal name is an alias.  */
21262 #if defined __stub_gai_strerror || defined __stub___gai_strerror
21263 choke me
21264 #endif
21265
21266 int
21267 main ()
21268 {
21269 return gai_strerror ();
21270   ;
21271   return 0;
21272 }
21273 _ACEOF
21274 rm -f conftest.$ac_objext conftest$ac_exeext
21275 if { (ac_try="$ac_link"
21276 case "(($ac_try" in
21277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21278   *) ac_try_echo=$ac_try;;
21279 esac
21280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21281   (eval "$ac_link") 2>conftest.er1
21282   ac_status=$?
21283   grep -v '^ *+' conftest.er1 >conftest.err
21284   rm -f conftest.er1
21285   cat conftest.err >&5
21286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287   (exit $ac_status); } && {
21288          test -z "$ac_c_werror_flag" ||
21289          test ! -s conftest.err
21290        } && test -s conftest$ac_exeext &&
21291        $as_test_x conftest$ac_exeext; then
21292   ac_cv_func_gai_strerror=yes
21293 else
21294   echo "$as_me: failed program was:" >&5
21295 sed 's/^/| /' conftest.$ac_ext >&5
21296
21297         ac_cv_func_gai_strerror=no
21298 fi
21299
21300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21301       conftest$ac_exeext conftest.$ac_ext
21302 fi
21303 { echo "$as_me:$LINENO: result: $ac_cv_func_gai_strerror" >&5
21304 echo "${ECHO_T}$ac_cv_func_gai_strerror" >&6; }
21305 if test $ac_cv_func_gai_strerror = yes; then
21306     ac_cv_lib_socket_gai_strerror=no
21307   ac_cv_lib_inet6_gai_strerror=no
21308
21309 else
21310     { echo "$as_me:$LINENO: checking for gai_strerror in -lsocket" >&5
21311 echo $ECHO_N "checking for gai_strerror in -lsocket... $ECHO_C" >&6; }
21312 if test "${ac_cv_lib_socket_gai_strerror+set}" = set; then
21313   echo $ECHO_N "(cached) $ECHO_C" >&6
21314 else
21315   ac_check_lib_save_LIBS=$LIBS
21316 LIBS="-lsocket  $LIBS"
21317 cat >conftest.$ac_ext <<_ACEOF
21318 /* confdefs.h.  */
21319 _ACEOF
21320 cat confdefs.h >>conftest.$ac_ext
21321 cat >>conftest.$ac_ext <<_ACEOF
21322 /* end confdefs.h.  */
21323
21324 /* Override any GCC internal prototype to avoid an error.
21325    Use char because int might match the return type of a GCC
21326    builtin and then its argument prototype would still apply.  */
21327 #ifdef __cplusplus
21328 extern "C"
21329 #endif
21330 char gai_strerror ();
21331 int
21332 main ()
21333 {
21334 return gai_strerror ();
21335   ;
21336   return 0;
21337 }
21338 _ACEOF
21339 rm -f conftest.$ac_objext conftest$ac_exeext
21340 if { (ac_try="$ac_link"
21341 case "(($ac_try" in
21342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21343   *) ac_try_echo=$ac_try;;
21344 esac
21345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21346   (eval "$ac_link") 2>conftest.er1
21347   ac_status=$?
21348   grep -v '^ *+' conftest.er1 >conftest.err
21349   rm -f conftest.er1
21350   cat conftest.err >&5
21351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352   (exit $ac_status); } && {
21353          test -z "$ac_c_werror_flag" ||
21354          test ! -s conftest.err
21355        } && test -s conftest$ac_exeext &&
21356        $as_test_x conftest$ac_exeext; then
21357   ac_cv_lib_socket_gai_strerror=yes
21358 else
21359   echo "$as_me: failed program was:" >&5
21360 sed 's/^/| /' conftest.$ac_ext >&5
21361
21362         ac_cv_lib_socket_gai_strerror=no
21363 fi
21364
21365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21366       conftest$ac_exeext conftest.$ac_ext
21367 LIBS=$ac_check_lib_save_LIBS
21368 fi
21369 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gai_strerror" >&5
21370 echo "${ECHO_T}$ac_cv_lib_socket_gai_strerror" >&6; }
21371 if test $ac_cv_lib_socket_gai_strerror = yes; then
21372       LIBS="$LIBS -lsocket"
21373     ac_cv_lib_inet6_gai_strerror=no
21374
21375 else
21376       { echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5
21377 echo $ECHO_N "checking whether your system has IPv6 directory... $ECHO_C" >&6; }
21378     if test "${ipv6_cv_dir+set}" = set; then
21379   echo $ECHO_N "(cached) $ECHO_C" >&6
21380 else
21381         for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
21382         if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
21383           break
21384         fi
21385       done
21386 fi
21387     { echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5
21388 echo "${ECHO_T}$ipv6_cv_dir" >&6; }
21389     if test $ipv6_cv_dir = no; then
21390       ac_cv_lib_inet6_gai_strerror=no
21391     else
21392       if test x$ipv6_libinet6 = x; then
21393         ipv6_libinet6=no
21394         SAVELDFLAGS="$LDFLAGS"
21395         LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
21396       fi
21397       { echo "$as_me:$LINENO: checking for gai_strerror in -linet6" >&5
21398 echo $ECHO_N "checking for gai_strerror in -linet6... $ECHO_C" >&6; }
21399 if test "${ac_cv_lib_inet6_gai_strerror+set}" = set; then
21400   echo $ECHO_N "(cached) $ECHO_C" >&6
21401 else
21402   ac_check_lib_save_LIBS=$LIBS
21403 LIBS="-linet6  $LIBS"
21404 cat >conftest.$ac_ext <<_ACEOF
21405 /* confdefs.h.  */
21406 _ACEOF
21407 cat confdefs.h >>conftest.$ac_ext
21408 cat >>conftest.$ac_ext <<_ACEOF
21409 /* end confdefs.h.  */
21410
21411 /* Override any GCC internal prototype to avoid an error.
21412    Use char because int might match the return type of a GCC
21413    builtin and then its argument prototype would still apply.  */
21414 #ifdef __cplusplus
21415 extern "C"
21416 #endif
21417 char gai_strerror ();
21418 int
21419 main ()
21420 {
21421 return gai_strerror ();
21422   ;
21423   return 0;
21424 }
21425 _ACEOF
21426 rm -f conftest.$ac_objext conftest$ac_exeext
21427 if { (ac_try="$ac_link"
21428 case "(($ac_try" in
21429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21430   *) ac_try_echo=$ac_try;;
21431 esac
21432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21433   (eval "$ac_link") 2>conftest.er1
21434   ac_status=$?
21435   grep -v '^ *+' conftest.er1 >conftest.err
21436   rm -f conftest.er1
21437   cat conftest.err >&5
21438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439   (exit $ac_status); } && {
21440          test -z "$ac_c_werror_flag" ||
21441          test ! -s conftest.err
21442        } && test -s conftest$ac_exeext &&
21443        $as_test_x conftest$ac_exeext; then
21444   ac_cv_lib_inet6_gai_strerror=yes
21445 else
21446   echo "$as_me: failed program was:" >&5
21447 sed 's/^/| /' conftest.$ac_ext >&5
21448
21449         ac_cv_lib_inet6_gai_strerror=no
21450 fi
21451
21452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21453       conftest$ac_exeext conftest.$ac_ext
21454 LIBS=$ac_check_lib_save_LIBS
21455 fi
21456 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_gai_strerror" >&5
21457 echo "${ECHO_T}$ac_cv_lib_inet6_gai_strerror" >&6; }
21458 if test $ac_cv_lib_inet6_gai_strerror = yes; then
21459         if test $ipv6_libinet6 = no; then
21460           ipv6_libinet6=yes
21461           LIBS="$LIBS -linet6"
21462         fi
21463 fi
21464       if test $ipv6_libinet6 = no; then
21465         LDFLAGS="$SAVELDFLAGS"
21466       fi
21467     fi
21468 fi
21469
21470 fi
21471 ipv6_cv_gai_strerror=no
21472 if test $ac_cv_func_gai_strerror = yes -o $ac_cv_lib_socket_gai_strerror = yes \
21473      -o $ac_cv_lib_inet6_gai_strerror = yes
21474 then
21475   ipv6_cv_gai_strerror=yes
21476 fi
21477 if test $ipv6_cv_gai_strerror = no; then
21478   if test gai_strerror = getaddrinfo; then
21479     for ipv6_cv_pfx in o n; do
21480       cat >conftest.$ac_ext <<_ACEOF
21481 /* confdefs.h.  */
21482 _ACEOF
21483 cat confdefs.h >>conftest.$ac_ext
21484 cat >>conftest.$ac_ext <<_ACEOF
21485 /* end confdefs.h.  */
21486 #include <netdb.h>
21487
21488 _ACEOF
21489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21490   $EGREP "${ipv6_cv_pfx}gai_strerror" >/dev/null 2>&1; then
21491   as_ac_var=`echo "ac_cv_func_${ipv6_cv_pfx}gai_strerror" | $as_tr_sh`
21492 { echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}gai_strerror" >&5
21493 echo $ECHO_N "checking for ${ipv6_cv_pfx}gai_strerror... $ECHO_C" >&6; }
21494 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21495   echo $ECHO_N "(cached) $ECHO_C" >&6
21496 else
21497   cat >conftest.$ac_ext <<_ACEOF
21498 /* confdefs.h.  */
21499 _ACEOF
21500 cat confdefs.h >>conftest.$ac_ext
21501 cat >>conftest.$ac_ext <<_ACEOF
21502 /* end confdefs.h.  */
21503 /* Define ${ipv6_cv_pfx}gai_strerror to an innocuous variant, in case <limits.h> declares ${ipv6_cv_pfx}gai_strerror.
21504    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21505 #define ${ipv6_cv_pfx}gai_strerror innocuous_${ipv6_cv_pfx}gai_strerror
21506
21507 /* System header to define __stub macros and hopefully few prototypes,
21508     which can conflict with char ${ipv6_cv_pfx}gai_strerror (); below.
21509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21510     <limits.h> exists even on freestanding compilers.  */
21511
21512 #ifdef __STDC__
21513 # include <limits.h>
21514 #else
21515 # include <assert.h>
21516 #endif
21517
21518 #undef ${ipv6_cv_pfx}gai_strerror
21519
21520 /* Override any GCC internal prototype to avoid an error.
21521    Use char because int might match the return type of a GCC
21522    builtin and then its argument prototype would still apply.  */
21523 #ifdef __cplusplus
21524 extern "C"
21525 #endif
21526 char ${ipv6_cv_pfx}gai_strerror ();
21527 /* The GNU C library defines this for functions which it implements
21528     to always fail with ENOSYS.  Some functions are actually named
21529     something starting with __ and the normal name is an alias.  */
21530 #if defined __stub_${ipv6_cv_pfx}gai_strerror || defined __stub___${ipv6_cv_pfx}gai_strerror
21531 choke me
21532 #endif
21533
21534 int
21535 main ()
21536 {
21537 return ${ipv6_cv_pfx}gai_strerror ();
21538   ;
21539   return 0;
21540 }
21541 _ACEOF
21542 rm -f conftest.$ac_objext conftest$ac_exeext
21543 if { (ac_try="$ac_link"
21544 case "(($ac_try" in
21545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21546   *) ac_try_echo=$ac_try;;
21547 esac
21548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21549   (eval "$ac_link") 2>conftest.er1
21550   ac_status=$?
21551   grep -v '^ *+' conftest.er1 >conftest.err
21552   rm -f conftest.er1
21553   cat conftest.err >&5
21554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555   (exit $ac_status); } && {
21556          test -z "$ac_c_werror_flag" ||
21557          test ! -s conftest.err
21558        } && test -s conftest$ac_exeext &&
21559        $as_test_x conftest$ac_exeext; then
21560   eval "$as_ac_var=yes"
21561 else
21562   echo "$as_me: failed program was:" >&5
21563 sed 's/^/| /' conftest.$ac_ext >&5
21564
21565         eval "$as_ac_var=no"
21566 fi
21567
21568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21569       conftest$ac_exeext conftest.$ac_ext
21570 fi
21571 ac_res=`eval echo '${'$as_ac_var'}'`
21572                { echo "$as_me:$LINENO: result: $ac_res" >&5
21573 echo "${ECHO_T}$ac_res" >&6; }
21574
21575 fi
21576 rm -f -r conftest*
21577
21578       if eval test X\$ac_cv_func_${ipv6_cv_pfx}gai_strerror = Xyes; then
21579
21580 cat >>confdefs.h <<\_ACEOF
21581 #define HAVE_GETADDRINFO
21582 _ACEOF
21583
21584         ipv6_cv_gai_strerror=yes
21585         break
21586       fi
21587     done
21588   fi
21589 fi
21590 if test $ipv6_cv_gai_strerror = yes; then
21591
21592 cat >>confdefs.h <<\_ACEOF
21593 #define HAVE_GETADDRINFO
21594 _ACEOF
21595
21596                 sasl_cv_getaddrinfo=no
21597 else
21598   :
21599 fi
21600 else
21601   :
21602 fi
21603 if test $sasl_cv_getaddrinfo = yes; then
21604     case " $LIBOBJS " in
21605   *" getaddrinfo.$ac_objext "* ) ;;
21606   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21607  ;;
21608 esac
21609
21610     GETADDRINFOOBJS="getaddrinfo.o"
21611     LTGETADDRINFOOBJS="getaddrinfo.lo"
21612 fi
21613
21614
21615
21616 GETNAMEINFOOBJS=""
21617 sasl_cv_getnameinfo=no
21618
21619 { echo "$as_me:$LINENO: checking for getnameinfo" >&5
21620 echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6; }
21621 if test "${ac_cv_func_getnameinfo+set}" = set; then
21622   echo $ECHO_N "(cached) $ECHO_C" >&6
21623 else
21624   cat >conftest.$ac_ext <<_ACEOF
21625 /* confdefs.h.  */
21626 _ACEOF
21627 cat confdefs.h >>conftest.$ac_ext
21628 cat >>conftest.$ac_ext <<_ACEOF
21629 /* end confdefs.h.  */
21630 /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
21631    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21632 #define getnameinfo innocuous_getnameinfo
21633
21634 /* System header to define __stub macros and hopefully few prototypes,
21635     which can conflict with char getnameinfo (); below.
21636     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21637     <limits.h> exists even on freestanding compilers.  */
21638
21639 #ifdef __STDC__
21640 # include <limits.h>
21641 #else
21642 # include <assert.h>
21643 #endif
21644
21645 #undef getnameinfo
21646
21647 /* Override any GCC internal prototype to avoid an error.
21648    Use char because int might match the return type of a GCC
21649    builtin and then its argument prototype would still apply.  */
21650 #ifdef __cplusplus
21651 extern "C"
21652 #endif
21653 char getnameinfo ();
21654 /* The GNU C library defines this for functions which it implements
21655     to always fail with ENOSYS.  Some functions are actually named
21656     something starting with __ and the normal name is an alias.  */
21657 #if defined __stub_getnameinfo || defined __stub___getnameinfo
21658 choke me
21659 #endif
21660
21661 int
21662 main ()
21663 {
21664 return getnameinfo ();
21665   ;
21666   return 0;
21667 }
21668 _ACEOF
21669 rm -f conftest.$ac_objext conftest$ac_exeext
21670 if { (ac_try="$ac_link"
21671 case "(($ac_try" in
21672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21673   *) ac_try_echo=$ac_try;;
21674 esac
21675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21676   (eval "$ac_link") 2>conftest.er1
21677   ac_status=$?
21678   grep -v '^ *+' conftest.er1 >conftest.err
21679   rm -f conftest.er1
21680   cat conftest.err >&5
21681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21682   (exit $ac_status); } && {
21683          test -z "$ac_c_werror_flag" ||
21684          test ! -s conftest.err
21685        } && test -s conftest$ac_exeext &&
21686        $as_test_x conftest$ac_exeext; then
21687   ac_cv_func_getnameinfo=yes
21688 else
21689   echo "$as_me: failed program was:" >&5
21690 sed 's/^/| /' conftest.$ac_ext >&5
21691
21692         ac_cv_func_getnameinfo=no
21693 fi
21694
21695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21696       conftest$ac_exeext conftest.$ac_ext
21697 fi
21698 { echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5
21699 echo "${ECHO_T}$ac_cv_func_getnameinfo" >&6; }
21700 if test $ac_cv_func_getnameinfo = yes; then
21701     ac_cv_lib_socket_getnameinfo=no
21702   ac_cv_lib_inet6_getnameinfo=no
21703
21704 else
21705     { echo "$as_me:$LINENO: checking for getnameinfo in -lsocket" >&5
21706 echo $ECHO_N "checking for getnameinfo in -lsocket... $ECHO_C" >&6; }
21707 if test "${ac_cv_lib_socket_getnameinfo+set}" = set; then
21708   echo $ECHO_N "(cached) $ECHO_C" >&6
21709 else
21710   ac_check_lib_save_LIBS=$LIBS
21711 LIBS="-lsocket  $LIBS"
21712 cat >conftest.$ac_ext <<_ACEOF
21713 /* confdefs.h.  */
21714 _ACEOF
21715 cat confdefs.h >>conftest.$ac_ext
21716 cat >>conftest.$ac_ext <<_ACEOF
21717 /* end confdefs.h.  */
21718
21719 /* Override any GCC internal prototype to avoid an error.
21720    Use char because int might match the return type of a GCC
21721    builtin and then its argument prototype would still apply.  */
21722 #ifdef __cplusplus
21723 extern "C"
21724 #endif
21725 char getnameinfo ();
21726 int
21727 main ()
21728 {
21729 return getnameinfo ();
21730   ;
21731   return 0;
21732 }
21733 _ACEOF
21734 rm -f conftest.$ac_objext conftest$ac_exeext
21735 if { (ac_try="$ac_link"
21736 case "(($ac_try" in
21737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21738   *) ac_try_echo=$ac_try;;
21739 esac
21740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21741   (eval "$ac_link") 2>conftest.er1
21742   ac_status=$?
21743   grep -v '^ *+' conftest.er1 >conftest.err
21744   rm -f conftest.er1
21745   cat conftest.err >&5
21746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747   (exit $ac_status); } && {
21748          test -z "$ac_c_werror_flag" ||
21749          test ! -s conftest.err
21750        } && test -s conftest$ac_exeext &&
21751        $as_test_x conftest$ac_exeext; then
21752   ac_cv_lib_socket_getnameinfo=yes
21753 else
21754   echo "$as_me: failed program was:" >&5
21755 sed 's/^/| /' conftest.$ac_ext >&5
21756
21757         ac_cv_lib_socket_getnameinfo=no
21758 fi
21759
21760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21761       conftest$ac_exeext conftest.$ac_ext
21762 LIBS=$ac_check_lib_save_LIBS
21763 fi
21764 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getnameinfo" >&5
21765 echo "${ECHO_T}$ac_cv_lib_socket_getnameinfo" >&6; }
21766 if test $ac_cv_lib_socket_getnameinfo = yes; then
21767       LIBS="$LIBS -lsocket"
21768     ac_cv_lib_inet6_getnameinfo=no
21769
21770 else
21771       { echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5
21772 echo $ECHO_N "checking whether your system has IPv6 directory... $ECHO_C" >&6; }
21773     if test "${ipv6_cv_dir+set}" = set; then
21774   echo $ECHO_N "(cached) $ECHO_C" >&6
21775 else
21776         for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
21777         if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
21778           break
21779         fi
21780       done
21781 fi
21782     { echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5
21783 echo "${ECHO_T}$ipv6_cv_dir" >&6; }
21784     if test $ipv6_cv_dir = no; then
21785       ac_cv_lib_inet6_getnameinfo=no
21786     else
21787       if test x$ipv6_libinet6 = x; then
21788         ipv6_libinet6=no
21789         SAVELDFLAGS="$LDFLAGS"
21790         LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
21791       fi
21792       { echo "$as_me:$LINENO: checking for getnameinfo in -linet6" >&5
21793 echo $ECHO_N "checking for getnameinfo in -linet6... $ECHO_C" >&6; }
21794 if test "${ac_cv_lib_inet6_getnameinfo+set}" = set; then
21795   echo $ECHO_N "(cached) $ECHO_C" >&6
21796 else
21797   ac_check_lib_save_LIBS=$LIBS
21798 LIBS="-linet6  $LIBS"
21799 cat >conftest.$ac_ext <<_ACEOF
21800 /* confdefs.h.  */
21801 _ACEOF
21802 cat confdefs.h >>conftest.$ac_ext
21803 cat >>conftest.$ac_ext <<_ACEOF
21804 /* end confdefs.h.  */
21805
21806 /* Override any GCC internal prototype to avoid an error.
21807    Use char because int might match the return type of a GCC
21808    builtin and then its argument prototype would still apply.  */
21809 #ifdef __cplusplus
21810 extern "C"
21811 #endif
21812 char getnameinfo ();
21813 int
21814 main ()
21815 {
21816 return getnameinfo ();
21817   ;
21818   return 0;
21819 }
21820 _ACEOF
21821 rm -f conftest.$ac_objext conftest$ac_exeext
21822 if { (ac_try="$ac_link"
21823 case "(($ac_try" in
21824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21825   *) ac_try_echo=$ac_try;;
21826 esac
21827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21828   (eval "$ac_link") 2>conftest.er1
21829   ac_status=$?
21830   grep -v '^ *+' conftest.er1 >conftest.err
21831   rm -f conftest.er1
21832   cat conftest.err >&5
21833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834   (exit $ac_status); } && {
21835          test -z "$ac_c_werror_flag" ||
21836          test ! -s conftest.err
21837        } && test -s conftest$ac_exeext &&
21838        $as_test_x conftest$ac_exeext; then
21839   ac_cv_lib_inet6_getnameinfo=yes
21840 else
21841   echo "$as_me: failed program was:" >&5
21842 sed 's/^/| /' conftest.$ac_ext >&5
21843
21844         ac_cv_lib_inet6_getnameinfo=no
21845 fi
21846
21847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21848       conftest$ac_exeext conftest.$ac_ext
21849 LIBS=$ac_check_lib_save_LIBS
21850 fi
21851 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getnameinfo" >&5
21852 echo "${ECHO_T}$ac_cv_lib_inet6_getnameinfo" >&6; }
21853 if test $ac_cv_lib_inet6_getnameinfo = yes; then
21854         if test $ipv6_libinet6 = no; then
21855           ipv6_libinet6=yes
21856           LIBS="$LIBS -linet6"
21857         fi
21858 fi
21859       if test $ipv6_libinet6 = no; then
21860         LDFLAGS="$SAVELDFLAGS"
21861       fi
21862     fi
21863 fi
21864
21865 fi
21866 ipv6_cv_getnameinfo=no
21867 if test $ac_cv_func_getnameinfo = yes -o $ac_cv_lib_socket_getnameinfo = yes \
21868      -o $ac_cv_lib_inet6_getnameinfo = yes
21869 then
21870   ipv6_cv_getnameinfo=yes
21871 fi
21872 if test $ipv6_cv_getnameinfo = no; then
21873   if test getnameinfo = getaddrinfo; then
21874     for ipv6_cv_pfx in o n; do
21875       cat >conftest.$ac_ext <<_ACEOF
21876 /* confdefs.h.  */
21877 _ACEOF
21878 cat confdefs.h >>conftest.$ac_ext
21879 cat >>conftest.$ac_ext <<_ACEOF
21880 /* end confdefs.h.  */
21881 #include <netdb.h>
21882
21883 _ACEOF
21884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21885   $EGREP "${ipv6_cv_pfx}getnameinfo" >/dev/null 2>&1; then
21886   as_ac_var=`echo "ac_cv_func_${ipv6_cv_pfx}getnameinfo" | $as_tr_sh`
21887 { echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}getnameinfo" >&5
21888 echo $ECHO_N "checking for ${ipv6_cv_pfx}getnameinfo... $ECHO_C" >&6; }
21889 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21890   echo $ECHO_N "(cached) $ECHO_C" >&6
21891 else
21892   cat >conftest.$ac_ext <<_ACEOF
21893 /* confdefs.h.  */
21894 _ACEOF
21895 cat confdefs.h >>conftest.$ac_ext
21896 cat >>conftest.$ac_ext <<_ACEOF
21897 /* end confdefs.h.  */
21898 /* Define ${ipv6_cv_pfx}getnameinfo to an innocuous variant, in case <limits.h> declares ${ipv6_cv_pfx}getnameinfo.
21899    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21900 #define ${ipv6_cv_pfx}getnameinfo innocuous_${ipv6_cv_pfx}getnameinfo
21901
21902 /* System header to define __stub macros and hopefully few prototypes,
21903     which can conflict with char ${ipv6_cv_pfx}getnameinfo (); below.
21904     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21905     <limits.h> exists even on freestanding compilers.  */
21906
21907 #ifdef __STDC__
21908 # include <limits.h>
21909 #else
21910 # include <assert.h>
21911 #endif
21912
21913 #undef ${ipv6_cv_pfx}getnameinfo
21914
21915 /* Override any GCC internal prototype to avoid an error.
21916    Use char because int might match the return type of a GCC
21917    builtin and then its argument prototype would still apply.  */
21918 #ifdef __cplusplus
21919 extern "C"
21920 #endif
21921 char ${ipv6_cv_pfx}getnameinfo ();
21922 /* The GNU C library defines this for functions which it implements
21923     to always fail with ENOSYS.  Some functions are actually named
21924     something starting with __ and the normal name is an alias.  */
21925 #if defined __stub_${ipv6_cv_pfx}getnameinfo || defined __stub___${ipv6_cv_pfx}getnameinfo
21926 choke me
21927 #endif
21928
21929 int
21930 main ()
21931 {
21932 return ${ipv6_cv_pfx}getnameinfo ();
21933   ;
21934   return 0;
21935 }
21936 _ACEOF
21937 rm -f conftest.$ac_objext conftest$ac_exeext
21938 if { (ac_try="$ac_link"
21939 case "(($ac_try" in
21940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21941   *) ac_try_echo=$ac_try;;
21942 esac
21943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21944   (eval "$ac_link") 2>conftest.er1
21945   ac_status=$?
21946   grep -v '^ *+' conftest.er1 >conftest.err
21947   rm -f conftest.er1
21948   cat conftest.err >&5
21949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950   (exit $ac_status); } && {
21951          test -z "$ac_c_werror_flag" ||
21952          test ! -s conftest.err
21953        } && test -s conftest$ac_exeext &&
21954        $as_test_x conftest$ac_exeext; then
21955   eval "$as_ac_var=yes"
21956 else
21957   echo "$as_me: failed program was:" >&5
21958 sed 's/^/| /' conftest.$ac_ext >&5
21959
21960         eval "$as_ac_var=no"
21961 fi
21962
21963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21964       conftest$ac_exeext conftest.$ac_ext
21965 fi
21966 ac_res=`eval echo '${'$as_ac_var'}'`
21967                { echo "$as_me:$LINENO: result: $ac_res" >&5
21968 echo "${ECHO_T}$ac_res" >&6; }
21969
21970 fi
21971 rm -f -r conftest*
21972
21973       if eval test X\$ac_cv_func_${ipv6_cv_pfx}getnameinfo = Xyes; then
21974
21975 cat >>confdefs.h <<\_ACEOF
21976 #define HAVE_GETADDRINFO
21977 _ACEOF
21978
21979         ipv6_cv_getnameinfo=yes
21980         break
21981       fi
21982     done
21983   fi
21984 fi
21985 if test $ipv6_cv_getnameinfo = yes; then
21986
21987 cat >>confdefs.h <<\_ACEOF
21988 #define HAVE_GETNAMEINFO
21989 _ACEOF
21990
21991 else
21992   sasl_cv_getnameinfo=yes
21993 fi
21994 if test $sasl_cv_getnameinfo = yes; then
21995         case " $LIBOBJS " in
21996   *" getnameinfo.$ac_objext "* ) ;;
21997   *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
21998  ;;
21999 esac
22000
22001         GETNAMEINFOOBJS="getnameinfo.o"
22002         LTGETNAMEINFOOBJS="getnameinfo.lo"
22003 fi
22004
22005
22006
22007 LTLIBOBJS=`echo "$LIBOBJS" | sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
22008
22009
22010 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22011 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22012 if test "${ac_cv_c_const+set}" = set; then
22013   echo $ECHO_N "(cached) $ECHO_C" >&6
22014 else
22015   cat >conftest.$ac_ext <<_ACEOF
22016 /* confdefs.h.  */
22017 _ACEOF
22018 cat confdefs.h >>conftest.$ac_ext
22019 cat >>conftest.$ac_ext <<_ACEOF
22020 /* end confdefs.h.  */
22021
22022 int
22023 main ()
22024 {
22025 /* FIXME: Include the comments suggested by Paul. */
22026 #ifndef __cplusplus
22027   /* Ultrix mips cc rejects this.  */
22028   typedef int charset[2];
22029   const charset cs;
22030   /* SunOS 4.1.1 cc rejects this.  */
22031   char const *const *pcpcc;
22032   char **ppc;
22033   /* NEC SVR4.0.2 mips cc rejects this.  */
22034   struct point {int x, y;};
22035   static struct point const zero = {0,0};
22036   /* AIX XL C 1.02.0.0 rejects this.
22037      It does not let you subtract one const X* pointer from another in
22038      an arm of an if-expression whose if-part is not a constant
22039      expression */
22040   const char *g = "string";
22041   pcpcc = &g + (g ? g-g : 0);
22042   /* HPUX 7.0 cc rejects these. */
22043   ++pcpcc;
22044   ppc = (char**) pcpcc;
22045   pcpcc = (char const *const *) ppc;
22046   { /* SCO 3.2v4 cc rejects this.  */
22047     char *t;
22048     char const *s = 0 ? (char *) 0 : (char const *) 0;
22049
22050     *t++ = 0;
22051     if (s) return 0;
22052   }
22053   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22054     int x[] = {25, 17};
22055     const int *foo = &x[0];
22056     ++foo;
22057   }
22058   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22059     typedef const int *iptr;
22060     iptr p = 0;
22061     ++p;
22062   }
22063   { /* AIX XL C 1.02.0.0 rejects this saying
22064        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22065     struct s { int j; const int *ap[3]; };
22066     struct s *b; b->j = 5;
22067   }
22068   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22069     const int foo = 10;
22070     if (!foo) return 0;
22071   }
22072   return !cs[0] && !zero.x;
22073 #endif
22074
22075   ;
22076   return 0;
22077 }
22078 _ACEOF
22079 rm -f conftest.$ac_objext
22080 if { (ac_try="$ac_compile"
22081 case "(($ac_try" in
22082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22083   *) ac_try_echo=$ac_try;;
22084 esac
22085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22086   (eval "$ac_compile") 2>conftest.er1
22087   ac_status=$?
22088   grep -v '^ *+' conftest.er1 >conftest.err
22089   rm -f conftest.er1
22090   cat conftest.err >&5
22091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22092   (exit $ac_status); } && {
22093          test -z "$ac_c_werror_flag" ||
22094          test ! -s conftest.err
22095        } && test -s conftest.$ac_objext; then
22096   ac_cv_c_const=yes
22097 else
22098   echo "$as_me: failed program was:" >&5
22099 sed 's/^/| /' conftest.$ac_ext >&5
22100
22101         ac_cv_c_const=no
22102 fi
22103
22104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22105 fi
22106 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22107 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22108 if test $ac_cv_c_const = no; then
22109
22110 cat >>confdefs.h <<\_ACEOF
22111 #define const
22112 _ACEOF
22113
22114 fi
22115
22116 { echo "$as_me:$LINENO: checking for inline" >&5
22117 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
22118 if test "${ac_cv_c_inline+set}" = set; then
22119   echo $ECHO_N "(cached) $ECHO_C" >&6
22120 else
22121   ac_cv_c_inline=no
22122 for ac_kw in inline __inline__ __inline; do
22123   cat >conftest.$ac_ext <<_ACEOF
22124 /* confdefs.h.  */
22125 _ACEOF
22126 cat confdefs.h >>conftest.$ac_ext
22127 cat >>conftest.$ac_ext <<_ACEOF
22128 /* end confdefs.h.  */
22129 #ifndef __cplusplus
22130 typedef int foo_t;
22131 static $ac_kw foo_t static_foo () {return 0; }
22132 $ac_kw foo_t foo () {return 0; }
22133 #endif
22134
22135 _ACEOF
22136 rm -f conftest.$ac_objext
22137 if { (ac_try="$ac_compile"
22138 case "(($ac_try" in
22139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22140   *) ac_try_echo=$ac_try;;
22141 esac
22142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22143   (eval "$ac_compile") 2>conftest.er1
22144   ac_status=$?
22145   grep -v '^ *+' conftest.er1 >conftest.err
22146   rm -f conftest.er1
22147   cat conftest.err >&5
22148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149   (exit $ac_status); } && {
22150          test -z "$ac_c_werror_flag" ||
22151          test ! -s conftest.err
22152        } && test -s conftest.$ac_objext; then
22153   ac_cv_c_inline=$ac_kw
22154 else
22155   echo "$as_me: failed program was:" >&5
22156 sed 's/^/| /' conftest.$ac_ext >&5
22157
22158
22159 fi
22160
22161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22162   test "$ac_cv_c_inline" != no && break
22163 done
22164
22165 fi
22166 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22167 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
22168
22169
22170 case $ac_cv_c_inline in
22171   inline | yes) ;;
22172   *)
22173     case $ac_cv_c_inline in
22174       no) ac_val=;;
22175       *) ac_val=$ac_cv_c_inline;;
22176     esac
22177     cat >>confdefs.h <<_ACEOF
22178 #ifndef __cplusplus
22179 #define inline $ac_val
22180 #endif
22181 _ACEOF
22182     ;;
22183 esac
22184
22185 { echo "$as_me:$LINENO: checking for mode_t" >&5
22186 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22187 if test "${ac_cv_type_mode_t+set}" = set; then
22188   echo $ECHO_N "(cached) $ECHO_C" >&6
22189 else
22190   cat >conftest.$ac_ext <<_ACEOF
22191 /* confdefs.h.  */
22192 _ACEOF
22193 cat confdefs.h >>conftest.$ac_ext
22194 cat >>conftest.$ac_ext <<_ACEOF
22195 /* end confdefs.h.  */
22196 $ac_includes_default
22197 typedef mode_t ac__type_new_;
22198 int
22199 main ()
22200 {
22201 if ((ac__type_new_ *) 0)
22202   return 0;
22203 if (sizeof (ac__type_new_))
22204   return 0;
22205   ;
22206   return 0;
22207 }
22208 _ACEOF
22209 rm -f conftest.$ac_objext
22210 if { (ac_try="$ac_compile"
22211 case "(($ac_try" in
22212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22213   *) ac_try_echo=$ac_try;;
22214 esac
22215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22216   (eval "$ac_compile") 2>conftest.er1
22217   ac_status=$?
22218   grep -v '^ *+' conftest.er1 >conftest.err
22219   rm -f conftest.er1
22220   cat conftest.err >&5
22221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222   (exit $ac_status); } && {
22223          test -z "$ac_c_werror_flag" ||
22224          test ! -s conftest.err
22225        } && test -s conftest.$ac_objext; then
22226   ac_cv_type_mode_t=yes
22227 else
22228   echo "$as_me: failed program was:" >&5
22229 sed 's/^/| /' conftest.$ac_ext >&5
22230
22231         ac_cv_type_mode_t=no
22232 fi
22233
22234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22235 fi
22236 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22237 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
22238 if test $ac_cv_type_mode_t = yes; then
22239   :
22240 else
22241
22242 cat >>confdefs.h <<_ACEOF
22243 #define mode_t int
22244 _ACEOF
22245
22246 fi
22247
22248 { echo "$as_me:$LINENO: checking for pid_t" >&5
22249 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22250 if test "${ac_cv_type_pid_t+set}" = set; then
22251   echo $ECHO_N "(cached) $ECHO_C" >&6
22252 else
22253   cat >conftest.$ac_ext <<_ACEOF
22254 /* confdefs.h.  */
22255 _ACEOF
22256 cat confdefs.h >>conftest.$ac_ext
22257 cat >>conftest.$ac_ext <<_ACEOF
22258 /* end confdefs.h.  */
22259 $ac_includes_default
22260 typedef pid_t ac__type_new_;
22261 int
22262 main ()
22263 {
22264 if ((ac__type_new_ *) 0)
22265   return 0;
22266 if (sizeof (ac__type_new_))
22267   return 0;
22268   ;
22269   return 0;
22270 }
22271 _ACEOF
22272 rm -f conftest.$ac_objext
22273 if { (ac_try="$ac_compile"
22274 case "(($ac_try" in
22275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22276   *) ac_try_echo=$ac_try;;
22277 esac
22278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22279   (eval "$ac_compile") 2>conftest.er1
22280   ac_status=$?
22281   grep -v '^ *+' conftest.er1 >conftest.err
22282   rm -f conftest.er1
22283   cat conftest.err >&5
22284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285   (exit $ac_status); } && {
22286          test -z "$ac_c_werror_flag" ||
22287          test ! -s conftest.err
22288        } && test -s conftest.$ac_objext; then
22289   ac_cv_type_pid_t=yes
22290 else
22291   echo "$as_me: failed program was:" >&5
22292 sed 's/^/| /' conftest.$ac_ext >&5
22293
22294         ac_cv_type_pid_t=no
22295 fi
22296
22297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22298 fi
22299 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22300 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22301 if test $ac_cv_type_pid_t = yes; then
22302   :
22303 else
22304
22305 cat >>confdefs.h <<_ACEOF
22306 #define pid_t int
22307 _ACEOF
22308
22309 fi
22310
22311 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22312 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22313 if test "${ac_cv_type_signal+set}" = set; then
22314   echo $ECHO_N "(cached) $ECHO_C" >&6
22315 else
22316   cat >conftest.$ac_ext <<_ACEOF
22317 /* confdefs.h.  */
22318 _ACEOF
22319 cat confdefs.h >>conftest.$ac_ext
22320 cat >>conftest.$ac_ext <<_ACEOF
22321 /* end confdefs.h.  */
22322 #include <sys/types.h>
22323 #include <signal.h>
22324
22325 int
22326 main ()
22327 {
22328 return *(signal (0, 0)) (0) == 1;
22329   ;
22330   return 0;
22331 }
22332 _ACEOF
22333 rm -f conftest.$ac_objext
22334 if { (ac_try="$ac_compile"
22335 case "(($ac_try" in
22336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22337   *) ac_try_echo=$ac_try;;
22338 esac
22339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22340   (eval "$ac_compile") 2>conftest.er1
22341   ac_status=$?
22342   grep -v '^ *+' conftest.er1 >conftest.err
22343   rm -f conftest.er1
22344   cat conftest.err >&5
22345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346   (exit $ac_status); } && {
22347          test -z "$ac_c_werror_flag" ||
22348          test ! -s conftest.err
22349        } && test -s conftest.$ac_objext; then
22350   ac_cv_type_signal=int
22351 else
22352   echo "$as_me: failed program was:" >&5
22353 sed 's/^/| /' conftest.$ac_ext >&5
22354
22355         ac_cv_type_signal=void
22356 fi
22357
22358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22359 fi
22360 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22361 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22362
22363 cat >>confdefs.h <<_ACEOF
22364 #define RETSIGTYPE $ac_cv_type_signal
22365 _ACEOF
22366
22367
22368
22369 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22370 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22371 if test "${ac_cv_header_time+set}" = set; then
22372   echo $ECHO_N "(cached) $ECHO_C" >&6
22373 else
22374   cat >conftest.$ac_ext <<_ACEOF
22375 /* confdefs.h.  */
22376 _ACEOF
22377 cat confdefs.h >>conftest.$ac_ext
22378 cat >>conftest.$ac_ext <<_ACEOF
22379 /* end confdefs.h.  */
22380 #include <sys/types.h>
22381 #include <sys/time.h>
22382 #include <time.h>
22383
22384 int
22385 main ()
22386 {
22387 if ((struct tm *) 0)
22388 return 0;
22389   ;
22390   return 0;
22391 }
22392 _ACEOF
22393 rm -f conftest.$ac_objext
22394 if { (ac_try="$ac_compile"
22395 case "(($ac_try" in
22396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22397   *) ac_try_echo=$ac_try;;
22398 esac
22399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22400   (eval "$ac_compile") 2>conftest.er1
22401   ac_status=$?
22402   grep -v '^ *+' conftest.er1 >conftest.err
22403   rm -f conftest.er1
22404   cat conftest.err >&5
22405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406   (exit $ac_status); } && {
22407          test -z "$ac_c_werror_flag" ||
22408          test ! -s conftest.err
22409        } && test -s conftest.$ac_objext; then
22410   ac_cv_header_time=yes
22411 else
22412   echo "$as_me: failed program was:" >&5
22413 sed 's/^/| /' conftest.$ac_ext >&5
22414
22415         ac_cv_header_time=no
22416 fi
22417
22418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22419 fi
22420 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22421 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22422 if test $ac_cv_header_time = yes; then
22423
22424 cat >>confdefs.h <<\_ACEOF
22425 #define TIME_WITH_SYS_TIME 1
22426 _ACEOF
22427
22428 fi
22429
22430 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22431 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22432 if test "${ac_cv_header_stdc+set}" = set; then
22433   echo $ECHO_N "(cached) $ECHO_C" >&6
22434 else
22435   cat >conftest.$ac_ext <<_ACEOF
22436 /* confdefs.h.  */
22437 _ACEOF
22438 cat confdefs.h >>conftest.$ac_ext
22439 cat >>conftest.$ac_ext <<_ACEOF
22440 /* end confdefs.h.  */
22441 #include <stdlib.h>
22442 #include <stdarg.h>
22443 #include <string.h>
22444 #include <float.h>
22445
22446 int
22447 main ()
22448 {
22449
22450   ;
22451   return 0;
22452 }
22453 _ACEOF
22454 rm -f conftest.$ac_objext
22455 if { (ac_try="$ac_compile"
22456 case "(($ac_try" in
22457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22458   *) ac_try_echo=$ac_try;;
22459 esac
22460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22461   (eval "$ac_compile") 2>conftest.er1
22462   ac_status=$?
22463   grep -v '^ *+' conftest.er1 >conftest.err
22464   rm -f conftest.er1
22465   cat conftest.err >&5
22466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467   (exit $ac_status); } && {
22468          test -z "$ac_c_werror_flag" ||
22469          test ! -s conftest.err
22470        } && test -s conftest.$ac_objext; then
22471   ac_cv_header_stdc=yes
22472 else
22473   echo "$as_me: failed program was:" >&5
22474 sed 's/^/| /' conftest.$ac_ext >&5
22475
22476         ac_cv_header_stdc=no
22477 fi
22478
22479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22480
22481 if test $ac_cv_header_stdc = yes; then
22482   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22483   cat >conftest.$ac_ext <<_ACEOF
22484 /* confdefs.h.  */
22485 _ACEOF
22486 cat confdefs.h >>conftest.$ac_ext
22487 cat >>conftest.$ac_ext <<_ACEOF
22488 /* end confdefs.h.  */
22489 #include <string.h>
22490
22491 _ACEOF
22492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22493   $EGREP "memchr" >/dev/null 2>&1; then
22494   :
22495 else
22496   ac_cv_header_stdc=no
22497 fi
22498 rm -f -r conftest*
22499
22500 fi
22501
22502 if test $ac_cv_header_stdc = yes; then
22503   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22504   cat >conftest.$ac_ext <<_ACEOF
22505 /* confdefs.h.  */
22506 _ACEOF
22507 cat confdefs.h >>conftest.$ac_ext
22508 cat >>conftest.$ac_ext <<_ACEOF
22509 /* end confdefs.h.  */
22510 #include <stdlib.h>
22511
22512 _ACEOF
22513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22514   $EGREP "free" >/dev/null 2>&1; then
22515   :
22516 else
22517   ac_cv_header_stdc=no
22518 fi
22519 rm -f -r conftest*
22520
22521 fi
22522
22523 if test $ac_cv_header_stdc = yes; then
22524   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22525   if test "$cross_compiling" = yes; then
22526   :
22527 else
22528   cat >conftest.$ac_ext <<_ACEOF
22529 /* confdefs.h.  */
22530 _ACEOF
22531 cat confdefs.h >>conftest.$ac_ext
22532 cat >>conftest.$ac_ext <<_ACEOF
22533 /* end confdefs.h.  */
22534 #include <ctype.h>
22535 #include <stdlib.h>
22536 #if ((' ' & 0x0FF) == 0x020)
22537 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22538 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22539 #else
22540 # define ISLOWER(c) \
22541                    (('a' <= (c) && (c) <= 'i') \
22542                      || ('j' <= (c) && (c) <= 'r') \
22543                      || ('s' <= (c) && (c) <= 'z'))
22544 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22545 #endif
22546
22547 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22548 int
22549 main ()
22550 {
22551   int i;
22552   for (i = 0; i < 256; i++)
22553     if (XOR (islower (i), ISLOWER (i))
22554         || toupper (i) != TOUPPER (i))
22555       return 2;
22556   return 0;
22557 }
22558 _ACEOF
22559 rm -f conftest$ac_exeext
22560 if { (ac_try="$ac_link"
22561 case "(($ac_try" in
22562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22563   *) ac_try_echo=$ac_try;;
22564 esac
22565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22566   (eval "$ac_link") 2>&5
22567   ac_status=$?
22568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22570   { (case "(($ac_try" in
22571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22572   *) ac_try_echo=$ac_try;;
22573 esac
22574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22575   (eval "$ac_try") 2>&5
22576   ac_status=$?
22577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578   (exit $ac_status); }; }; then
22579   :
22580 else
22581   echo "$as_me: program exited with status $ac_status" >&5
22582 echo "$as_me: failed program was:" >&5
22583 sed 's/^/| /' conftest.$ac_ext >&5
22584
22585 ( exit $ac_status )
22586 ac_cv_header_stdc=no
22587 fi
22588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22589 fi
22590
22591
22592 fi
22593 fi
22594 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22595 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
22596 if test $ac_cv_header_stdc = yes; then
22597
22598 cat >>confdefs.h <<\_ACEOF
22599 #define STDC_HEADERS 1
22600 _ACEOF
22601
22602 fi
22603
22604
22605
22606
22607
22608
22609 ac_header_dirent=no
22610 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22611   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22612 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22613 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22615   echo $ECHO_N "(cached) $ECHO_C" >&6
22616 else
22617   cat >conftest.$ac_ext <<_ACEOF
22618 /* confdefs.h.  */
22619 _ACEOF
22620 cat confdefs.h >>conftest.$ac_ext
22621 cat >>conftest.$ac_ext <<_ACEOF
22622 /* end confdefs.h.  */
22623 #include <sys/types.h>
22624 #include <$ac_hdr>
22625
22626 int
22627 main ()
22628 {
22629 if ((DIR *) 0)
22630 return 0;
22631   ;
22632   return 0;
22633 }
22634 _ACEOF
22635 rm -f conftest.$ac_objext
22636 if { (ac_try="$ac_compile"
22637 case "(($ac_try" in
22638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22639   *) ac_try_echo=$ac_try;;
22640 esac
22641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22642   (eval "$ac_compile") 2>conftest.er1
22643   ac_status=$?
22644   grep -v '^ *+' conftest.er1 >conftest.err
22645   rm -f conftest.er1
22646   cat conftest.err >&5
22647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648   (exit $ac_status); } && {
22649          test -z "$ac_c_werror_flag" ||
22650          test ! -s conftest.err
22651        } && test -s conftest.$ac_objext; then
22652   eval "$as_ac_Header=yes"
22653 else
22654   echo "$as_me: failed program was:" >&5
22655 sed 's/^/| /' conftest.$ac_ext >&5
22656
22657         eval "$as_ac_Header=no"
22658 fi
22659
22660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22661 fi
22662 ac_res=`eval echo '${'$as_ac_Header'}'`
22663                { echo "$as_me:$LINENO: result: $ac_res" >&5
22664 echo "${ECHO_T}$ac_res" >&6; }
22665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22666   cat >>confdefs.h <<_ACEOF
22667 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22668 _ACEOF
22669
22670 ac_header_dirent=$ac_hdr; break
22671 fi
22672
22673 done
22674 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22675 if test $ac_header_dirent = dirent.h; then
22676   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22677 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22678 if test "${ac_cv_search_opendir+set}" = set; then
22679   echo $ECHO_N "(cached) $ECHO_C" >&6
22680 else
22681   ac_func_search_save_LIBS=$LIBS
22682 cat >conftest.$ac_ext <<_ACEOF
22683 /* confdefs.h.  */
22684 _ACEOF
22685 cat confdefs.h >>conftest.$ac_ext
22686 cat >>conftest.$ac_ext <<_ACEOF
22687 /* end confdefs.h.  */
22688
22689 /* Override any GCC internal prototype to avoid an error.
22690    Use char because int might match the return type of a GCC
22691    builtin and then its argument prototype would still apply.  */
22692 #ifdef __cplusplus
22693 extern "C"
22694 #endif
22695 char opendir ();
22696 int
22697 main ()
22698 {
22699 return opendir ();
22700   ;
22701   return 0;
22702 }
22703 _ACEOF
22704 for ac_lib in '' dir; do
22705   if test -z "$ac_lib"; then
22706     ac_res="none required"
22707   else
22708     ac_res=-l$ac_lib
22709     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22710   fi
22711   rm -f conftest.$ac_objext conftest$ac_exeext
22712 if { (ac_try="$ac_link"
22713 case "(($ac_try" in
22714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22715   *) ac_try_echo=$ac_try;;
22716 esac
22717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22718   (eval "$ac_link") 2>conftest.er1
22719   ac_status=$?
22720   grep -v '^ *+' conftest.er1 >conftest.err
22721   rm -f conftest.er1
22722   cat conftest.err >&5
22723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724   (exit $ac_status); } && {
22725          test -z "$ac_c_werror_flag" ||
22726          test ! -s conftest.err
22727        } && test -s conftest$ac_exeext &&
22728        $as_test_x conftest$ac_exeext; then
22729   ac_cv_search_opendir=$ac_res
22730 else
22731   echo "$as_me: failed program was:" >&5
22732 sed 's/^/| /' conftest.$ac_ext >&5
22733
22734
22735 fi
22736
22737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22738       conftest$ac_exeext
22739   if test "${ac_cv_search_opendir+set}" = set; then
22740   break
22741 fi
22742 done
22743 if test "${ac_cv_search_opendir+set}" = set; then
22744   :
22745 else
22746   ac_cv_search_opendir=no
22747 fi
22748 rm conftest.$ac_ext
22749 LIBS=$ac_func_search_save_LIBS
22750 fi
22751 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22752 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22753 ac_res=$ac_cv_search_opendir
22754 if test "$ac_res" != no; then
22755   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22756
22757 fi
22758
22759 else
22760   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22761 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22762 if test "${ac_cv_search_opendir+set}" = set; then
22763   echo $ECHO_N "(cached) $ECHO_C" >&6
22764 else
22765   ac_func_search_save_LIBS=$LIBS
22766 cat >conftest.$ac_ext <<_ACEOF
22767 /* confdefs.h.  */
22768 _ACEOF
22769 cat confdefs.h >>conftest.$ac_ext
22770 cat >>conftest.$ac_ext <<_ACEOF
22771 /* end confdefs.h.  */
22772
22773 /* Override any GCC internal prototype to avoid an error.
22774    Use char because int might match the return type of a GCC
22775    builtin and then its argument prototype would still apply.  */
22776 #ifdef __cplusplus
22777 extern "C"
22778 #endif
22779 char opendir ();
22780 int
22781 main ()
22782 {
22783 return opendir ();
22784   ;
22785   return 0;
22786 }
22787 _ACEOF
22788 for ac_lib in '' x; do
22789   if test -z "$ac_lib"; then
22790     ac_res="none required"
22791   else
22792     ac_res=-l$ac_lib
22793     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22794   fi
22795   rm -f conftest.$ac_objext conftest$ac_exeext
22796 if { (ac_try="$ac_link"
22797 case "(($ac_try" in
22798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22799   *) ac_try_echo=$ac_try;;
22800 esac
22801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22802   (eval "$ac_link") 2>conftest.er1
22803   ac_status=$?
22804   grep -v '^ *+' conftest.er1 >conftest.err
22805   rm -f conftest.er1
22806   cat conftest.err >&5
22807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22808   (exit $ac_status); } && {
22809          test -z "$ac_c_werror_flag" ||
22810          test ! -s conftest.err
22811        } && test -s conftest$ac_exeext &&
22812        $as_test_x conftest$ac_exeext; then
22813   ac_cv_search_opendir=$ac_res
22814 else
22815   echo "$as_me: failed program was:" >&5
22816 sed 's/^/| /' conftest.$ac_ext >&5
22817
22818
22819 fi
22820
22821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22822       conftest$ac_exeext
22823   if test "${ac_cv_search_opendir+set}" = set; then
22824   break
22825 fi
22826 done
22827 if test "${ac_cv_search_opendir+set}" = set; then
22828   :
22829 else
22830   ac_cv_search_opendir=no
22831 fi
22832 rm conftest.$ac_ext
22833 LIBS=$ac_func_search_save_LIBS
22834 fi
22835 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22836 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22837 ac_res=$ac_cv_search_opendir
22838 if test "$ac_res" != no; then
22839   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22840
22841 fi
22842
22843 fi
22844
22845 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22846 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22847 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22848   echo $ECHO_N "(cached) $ECHO_C" >&6
22849 else
22850   cat >conftest.$ac_ext <<_ACEOF
22851 /* confdefs.h.  */
22852 _ACEOF
22853 cat confdefs.h >>conftest.$ac_ext
22854 cat >>conftest.$ac_ext <<_ACEOF
22855 /* end confdefs.h.  */
22856 #include <sys/types.h>
22857 #include <sys/wait.h>
22858 #ifndef WEXITSTATUS
22859 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22860 #endif
22861 #ifndef WIFEXITED
22862 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22863 #endif
22864
22865 int
22866 main ()
22867 {
22868   int s;
22869   wait (&s);
22870   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22871   ;
22872   return 0;
22873 }
22874 _ACEOF
22875 rm -f conftest.$ac_objext
22876 if { (ac_try="$ac_compile"
22877 case "(($ac_try" in
22878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22879   *) ac_try_echo=$ac_try;;
22880 esac
22881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22882   (eval "$ac_compile") 2>conftest.er1
22883   ac_status=$?
22884   grep -v '^ *+' conftest.er1 >conftest.err
22885   rm -f conftest.er1
22886   cat conftest.err >&5
22887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888   (exit $ac_status); } && {
22889          test -z "$ac_c_werror_flag" ||
22890          test ! -s conftest.err
22891        } && test -s conftest.$ac_objext; then
22892   ac_cv_header_sys_wait_h=yes
22893 else
22894   echo "$as_me: failed program was:" >&5
22895 sed 's/^/| /' conftest.$ac_ext >&5
22896
22897         ac_cv_header_sys_wait_h=no
22898 fi
22899
22900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22901 fi
22902 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22903 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22904 if test $ac_cv_header_sys_wait_h = yes; then
22905
22906 cat >>confdefs.h <<\_ACEOF
22907 #define HAVE_SYS_WAIT_H 1
22908 _ACEOF
22909
22910 fi
22911
22912
22913
22914
22915
22916
22917
22918
22919
22920
22921
22922
22923
22924
22925
22926
22927
22928
22929 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
22930 do
22931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22933   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22936   echo $ECHO_N "(cached) $ECHO_C" >&6
22937 fi
22938 ac_res=`eval echo '${'$as_ac_Header'}'`
22939                { echo "$as_me:$LINENO: result: $ac_res" >&5
22940 echo "${ECHO_T}$ac_res" >&6; }
22941 else
22942   # Is the header compilable?
22943 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22945 cat >conftest.$ac_ext <<_ACEOF
22946 /* confdefs.h.  */
22947 _ACEOF
22948 cat confdefs.h >>conftest.$ac_ext
22949 cat >>conftest.$ac_ext <<_ACEOF
22950 /* end confdefs.h.  */
22951 $ac_includes_default
22952 #include <$ac_header>
22953 _ACEOF
22954 rm -f conftest.$ac_objext
22955 if { (ac_try="$ac_compile"
22956 case "(($ac_try" in
22957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22958   *) ac_try_echo=$ac_try;;
22959 esac
22960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22961   (eval "$ac_compile") 2>conftest.er1
22962   ac_status=$?
22963   grep -v '^ *+' conftest.er1 >conftest.err
22964   rm -f conftest.er1
22965   cat conftest.err >&5
22966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967   (exit $ac_status); } && {
22968          test -z "$ac_c_werror_flag" ||
22969          test ! -s conftest.err
22970        } && test -s conftest.$ac_objext; then
22971   ac_header_compiler=yes
22972 else
22973   echo "$as_me: failed program was:" >&5
22974 sed 's/^/| /' conftest.$ac_ext >&5
22975
22976         ac_header_compiler=no
22977 fi
22978
22979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22980 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22981 echo "${ECHO_T}$ac_header_compiler" >&6; }
22982
22983 # Is the header present?
22984 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22986 cat >conftest.$ac_ext <<_ACEOF
22987 /* confdefs.h.  */
22988 _ACEOF
22989 cat confdefs.h >>conftest.$ac_ext
22990 cat >>conftest.$ac_ext <<_ACEOF
22991 /* end confdefs.h.  */
22992 #include <$ac_header>
22993 _ACEOF
22994 if { (ac_try="$ac_cpp conftest.$ac_ext"
22995 case "(($ac_try" in
22996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22997   *) ac_try_echo=$ac_try;;
22998 esac
22999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23000   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23001   ac_status=$?
23002   grep -v '^ *+' conftest.er1 >conftest.err
23003   rm -f conftest.er1
23004   cat conftest.err >&5
23005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006   (exit $ac_status); } >/dev/null && {
23007          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23008          test ! -s conftest.err
23009        }; then
23010   ac_header_preproc=yes
23011 else
23012   echo "$as_me: failed program was:" >&5
23013 sed 's/^/| /' conftest.$ac_ext >&5
23014
23015   ac_header_preproc=no
23016 fi
23017
23018 rm -f conftest.err conftest.$ac_ext
23019 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23020 echo "${ECHO_T}$ac_header_preproc" >&6; }
23021
23022 # So?  What about this header?
23023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23024   yes:no: )
23025     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23029     ac_header_preproc=yes
23030     ;;
23031   no:yes:* )
23032     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23034     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23035 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23036     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23038     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23039 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23040     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23042     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23044
23045     ;;
23046 esac
23047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23050   echo $ECHO_N "(cached) $ECHO_C" >&6
23051 else
23052   eval "$as_ac_Header=\$ac_header_preproc"
23053 fi
23054 ac_res=`eval echo '${'$as_ac_Header'}'`
23055                { echo "$as_me:$LINENO: result: $ac_res" >&5
23056 echo "${ECHO_T}$ac_res" >&6; }
23057
23058 fi
23059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23060   cat >>confdefs.h <<_ACEOF
23061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23062 _ACEOF
23063
23064 fi
23065
23066 done
23067
23068
23069
23070 { echo "$as_me:$LINENO: checking whether you have ss_family in struct sockaddr_storage" >&5
23071 echo $ECHO_N "checking whether you have ss_family in struct sockaddr_storage... $ECHO_C" >&6; }
23072 if test "${ipv6_cv_ss_family+set}" = set; then
23073   echo $ECHO_N "(cached) $ECHO_C" >&6
23074 else
23075   cat >conftest.$ac_ext <<_ACEOF
23076 /* confdefs.h.  */
23077 _ACEOF
23078 cat confdefs.h >>conftest.$ac_ext
23079 cat >>conftest.$ac_ext <<_ACEOF
23080 /* end confdefs.h.  */
23081 #include <sys/types.h>
23082 #include <sys/socket.h>
23083 int
23084 main ()
23085 {
23086 struct sockaddr_storage ss; int i = ss.ss_family;
23087   ;
23088   return 0;
23089 }
23090 _ACEOF
23091 rm -f conftest.$ac_objext
23092 if { (ac_try="$ac_compile"
23093 case "(($ac_try" in
23094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23095   *) ac_try_echo=$ac_try;;
23096 esac
23097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23098   (eval "$ac_compile") 2>conftest.er1
23099   ac_status=$?
23100   grep -v '^ *+' conftest.er1 >conftest.err
23101   rm -f conftest.er1
23102   cat conftest.err >&5
23103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104   (exit $ac_status); } && {
23105          test -z "$ac_c_werror_flag" ||
23106          test ! -s conftest.err
23107        } && test -s conftest.$ac_objext; then
23108   ipv6_cv_ss_family=yes
23109 else
23110   echo "$as_me: failed program was:" >&5
23111 sed 's/^/| /' conftest.$ac_ext >&5
23112
23113         ipv6_cv_ss_family=no
23114 fi
23115
23116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23117 fi
23118 if test $ipv6_cv_ss_family = yes; then
23119
23120 cat >>confdefs.h <<\_ACEOF
23121 #define HAVE_SS_FAMILY
23122 _ACEOF
23123
23124 else
23125   :
23126 fi
23127 { echo "$as_me:$LINENO: result: $ipv6_cv_ss_family" >&5
23128 echo "${ECHO_T}$ipv6_cv_ss_family" >&6; }
23129
23130 { echo "$as_me:$LINENO: checking whether you have sa_len in struct sockaddr" >&5
23131 echo $ECHO_N "checking whether you have sa_len in struct sockaddr... $ECHO_C" >&6; }
23132 if test "${ipv6_cv_sa_len+set}" = set; then
23133   echo $ECHO_N "(cached) $ECHO_C" >&6
23134 else
23135   cat >conftest.$ac_ext <<_ACEOF
23136 /* confdefs.h.  */
23137 _ACEOF
23138 cat confdefs.h >>conftest.$ac_ext
23139 cat >>conftest.$ac_ext <<_ACEOF
23140 /* end confdefs.h.  */
23141 #include <sys/types.h>
23142 #include <sys/socket.h>
23143 int
23144 main ()
23145 {
23146 struct sockaddr sa; int i = sa.sa_len;
23147   ;
23148   return 0;
23149 }
23150 _ACEOF
23151 rm -f conftest.$ac_objext
23152 if { (ac_try="$ac_compile"
23153 case "(($ac_try" in
23154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23155   *) ac_try_echo=$ac_try;;
23156 esac
23157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23158   (eval "$ac_compile") 2>conftest.er1
23159   ac_status=$?
23160   grep -v '^ *+' conftest.er1 >conftest.err
23161   rm -f conftest.er1
23162   cat conftest.err >&5
23163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164   (exit $ac_status); } && {
23165          test -z "$ac_c_werror_flag" ||
23166          test ! -s conftest.err
23167        } && test -s conftest.$ac_objext; then
23168   ipv6_cv_sa_len=yes
23169 else
23170   echo "$as_me: failed program was:" >&5
23171 sed 's/^/| /' conftest.$ac_ext >&5
23172
23173         ipv6_cv_sa_len=no
23174 fi
23175
23176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23177 fi
23178 if test $ipv6_cv_sa_len = yes; then
23179
23180 cat >>confdefs.h <<\_ACEOF
23181 #define HAVE_SOCKADDR_SA_LEN
23182 _ACEOF
23183
23184 else
23185   :
23186 fi
23187 { echo "$as_me:$LINENO: result: $ipv6_cv_sa_len" >&5
23188 echo "${ECHO_T}$ipv6_cv_sa_len" >&6; }
23189
23190 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23191 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23192 if test "${ipv6_cv_socklen_t+set}" = set; then
23193   echo $ECHO_N "(cached) $ECHO_C" >&6
23194 else
23195   cat >conftest.$ac_ext <<_ACEOF
23196 /* confdefs.h.  */
23197 _ACEOF
23198 cat confdefs.h >>conftest.$ac_ext
23199 cat >>conftest.$ac_ext <<_ACEOF
23200 /* end confdefs.h.  */
23201 #include <sys/types.h>
23202 #include <sys/socket.h>
23203 int
23204 main ()
23205 {
23206 socklen_t len = 0;
23207   ;
23208   return 0;
23209 }
23210 _ACEOF
23211 rm -f conftest.$ac_objext conftest$ac_exeext
23212 if { (ac_try="$ac_link"
23213 case "(($ac_try" in
23214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23215   *) ac_try_echo=$ac_try;;
23216 esac
23217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23218   (eval "$ac_link") 2>conftest.er1
23219   ac_status=$?
23220   grep -v '^ *+' conftest.er1 >conftest.err
23221   rm -f conftest.er1
23222   cat conftest.err >&5
23223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224   (exit $ac_status); } && {
23225          test -z "$ac_c_werror_flag" ||
23226          test ! -s conftest.err
23227        } && test -s conftest$ac_exeext &&
23228        $as_test_x conftest$ac_exeext; then
23229   ipv6_cv_socklen_t=yes
23230 else
23231   echo "$as_me: failed program was:" >&5
23232 sed 's/^/| /' conftest.$ac_ext >&5
23233
23234         ipv6_cv_socklen_t=no
23235 fi
23236
23237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23238       conftest$ac_exeext conftest.$ac_ext
23239 fi
23240 if test $ipv6_cv_socklen_t = yes; then
23241
23242 cat >>confdefs.h <<\_ACEOF
23243 #define HAVE_SOCKLEN_T
23244 _ACEOF
23245
23246 else
23247   :
23248 fi
23249 { echo "$as_me:$LINENO: result: $ipv6_cv_socklen_t" >&5
23250 echo "${ECHO_T}$ipv6_cv_socklen_t" >&6; }
23251
23252 #AC_FUNC_MEMCMP
23253 #AC_FUNC_VPRINTF
23254
23255
23256
23257
23258
23259
23260
23261
23262
23263
23264
23265
23266
23267
23268
23269
23270
23271 for ac_func in gethostname getdomainname getpwnam getspnam gettimeofday inet_aton memcpy mkdir select socket strchr strdup strerror strspn strstr strtol jrand48
23272 do
23273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23274 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23276 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23277   echo $ECHO_N "(cached) $ECHO_C" >&6
23278 else
23279   cat >conftest.$ac_ext <<_ACEOF
23280 /* confdefs.h.  */
23281 _ACEOF
23282 cat confdefs.h >>conftest.$ac_ext
23283 cat >>conftest.$ac_ext <<_ACEOF
23284 /* end confdefs.h.  */
23285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23286    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23287 #define $ac_func innocuous_$ac_func
23288
23289 /* System header to define __stub macros and hopefully few prototypes,
23290     which can conflict with char $ac_func (); below.
23291     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23292     <limits.h> exists even on freestanding compilers.  */
23293
23294 #ifdef __STDC__
23295 # include <limits.h>
23296 #else
23297 # include <assert.h>
23298 #endif
23299
23300 #undef $ac_func
23301
23302 /* Override any GCC internal prototype to avoid an error.
23303    Use char because int might match the return type of a GCC
23304    builtin and then its argument prototype would still apply.  */
23305 #ifdef __cplusplus
23306 extern "C"
23307 #endif
23308 char $ac_func ();
23309 /* The GNU C library defines this for functions which it implements
23310     to always fail with ENOSYS.  Some functions are actually named
23311     something starting with __ and the normal name is an alias.  */
23312 #if defined __stub_$ac_func || defined __stub___$ac_func
23313 choke me
23314 #endif
23315
23316 int
23317 main ()
23318 {
23319 return $ac_func ();
23320   ;
23321   return 0;
23322 }
23323 _ACEOF
23324 rm -f conftest.$ac_objext conftest$ac_exeext
23325 if { (ac_try="$ac_link"
23326 case "(($ac_try" in
23327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23328   *) ac_try_echo=$ac_try;;
23329 esac
23330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23331   (eval "$ac_link") 2>conftest.er1
23332   ac_status=$?
23333   grep -v '^ *+' conftest.er1 >conftest.err
23334   rm -f conftest.er1
23335   cat conftest.err >&5
23336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337   (exit $ac_status); } && {
23338          test -z "$ac_c_werror_flag" ||
23339          test ! -s conftest.err
23340        } && test -s conftest$ac_exeext &&
23341        $as_test_x conftest$ac_exeext; then
23342   eval "$as_ac_var=yes"
23343 else
23344   echo "$as_me: failed program was:" >&5
23345 sed 's/^/| /' conftest.$ac_ext >&5
23346
23347         eval "$as_ac_var=no"
23348 fi
23349
23350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23351       conftest$ac_exeext conftest.$ac_ext
23352 fi
23353 ac_res=`eval echo '${'$as_ac_var'}'`
23354                { echo "$as_me:$LINENO: result: $ac_res" >&5
23355 echo "${ECHO_T}$ac_res" >&6; }
23356 if test `eval echo '${'$as_ac_var'}'` = yes; then
23357   cat >>confdefs.h <<_ACEOF
23358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23359 _ACEOF
23360
23361 fi
23362 done
23363
23364
23365 if test $enable_cmulocal = yes; then
23366     { echo "$as_me:$LINENO: WARNING: enabling CMU local kludges" >&5
23367 echo "$as_me: WARNING: enabling CMU local kludges" >&2;}
23368
23369 cat >>confdefs.h <<\_ACEOF
23370 #define KRB4_IGNORE_IP_ADDRESS
23371 _ACEOF
23372
23373
23374 cat >>confdefs.h <<_ACEOF
23375 #define PREFER_MECH "KERBEROS_V4"
23376 _ACEOF
23377
23378 fi
23379
23380 cat >conftest.$ac_ext <<_ACEOF
23381 /* confdefs.h.  */
23382 _ACEOF
23383 cat confdefs.h >>conftest.$ac_ext
23384 cat >>conftest.$ac_ext <<_ACEOF
23385 /* end confdefs.h.  */
23386 #include <sys/socket.h>
23387
23388 _ACEOF
23389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23390   $EGREP "sockaddr_storage" >/dev/null 2>&1; then
23391
23392
23393 cat >>confdefs.h <<\_ACEOF
23394 #define HAVE_STRUCT_SOCKADDR_STORAGE
23395 _ACEOF
23396
23397 fi
23398 rm -f -r conftest*
23399
23400
23401
23402
23403 subdirs="$subdirs saslauthd"
23404
23405
23406
23407
23408
23409
23410
23411
23412 ac_config_headers="$ac_config_headers config.h"
23413
23414
23415 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"
23416
23417 cat >confcache <<\_ACEOF
23418 # This file is a shell script that caches the results of configure
23419 # tests run on this system so they can be shared between configure
23420 # scripts and configure runs, see configure's option --config-cache.
23421 # It is not useful on other systems.  If it contains results you don't
23422 # want to keep, you may remove or edit it.
23423 #
23424 # config.status only pays attention to the cache file if you give it
23425 # the --recheck option to rerun configure.
23426 #
23427 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23428 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23429 # following values.
23430
23431 _ACEOF
23432
23433 # The following way of writing the cache mishandles newlines in values,
23434 # but we know of no workaround that is simple, portable, and efficient.
23435 # So, we kill variables containing newlines.
23436 # Ultrix sh set writes to stderr and can't be redirected directly,
23437 # and sets the high bit in the cache file unless we assign to the vars.
23438 (
23439   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23440     eval ac_val=\$$ac_var
23441     case $ac_val in #(
23442     *${as_nl}*)
23443       case $ac_var in #(
23444       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23445 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23446       esac
23447       case $ac_var in #(
23448       _ | IFS | as_nl) ;; #(
23449       *) $as_unset $ac_var ;;
23450       esac ;;
23451     esac
23452   done
23453
23454   (set) 2>&1 |
23455     case $as_nl`(ac_space=' '; set) 2>&1` in #(
23456     *${as_nl}ac_space=\ *)
23457       # `set' does not quote correctly, so add quotes (double-quote
23458       # substitution turns \\\\ into \\, and sed turns \\ into \).
23459       sed -n \
23460         "s/'/'\\\\''/g;
23461           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23462       ;; #(
23463     *)
23464       # `set' quotes correctly as required by POSIX, so do not add quotes.
23465       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23466       ;;
23467     esac |
23468     sort
23469 ) |
23470   sed '
23471      /^ac_cv_env_/b end
23472      t clear
23473      :clear
23474      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23475      t end
23476      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23477      :end' >>confcache
23478 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23479   if test -w "$cache_file"; then
23480     test "x$cache_file" != "x/dev/null" &&
23481       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23482 echo "$as_me: updating cache $cache_file" >&6;}
23483     cat confcache >$cache_file
23484   else
23485     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23486 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23487   fi
23488 fi
23489 rm -f confcache
23490
23491 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23492 # Let make expand exec_prefix.
23493 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23494
23495 DEFS=-DHAVE_CONFIG_H
23496
23497 ac_libobjs=
23498 ac_ltlibobjs=
23499 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23500   # 1. Remove the extension, and $U if already installed.
23501   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23502   ac_i=`echo "$ac_i" | sed "$ac_script"`
23503   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23504   #    will be set to the directory where LIBOBJS objects are built.
23505   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23506   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23507 done
23508 LIBOBJS=$ac_libobjs
23509
23510 LTLIBOBJS=$ac_ltlibobjs
23511
23512
23513 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23514   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23515 Usually this means the macro was only invoked conditionally." >&5
23516 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23517 Usually this means the macro was only invoked conditionally." >&2;}
23518    { (exit 1); exit 1; }; }
23519 fi
23520 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23521   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23522 Usually this means the macro was only invoked conditionally." >&5
23523 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23524 Usually this means the macro was only invoked conditionally." >&2;}
23525    { (exit 1); exit 1; }; }
23526 fi
23527 if test -z "${JAVA_TRUE}" && test -z "${JAVA_FALSE}"; then
23528   { { echo "$as_me:$LINENO: error: conditional \"JAVA\" was never defined.
23529 Usually this means the macro was only invoked conditionally." >&5
23530 echo "$as_me: error: conditional \"JAVA\" was never defined.
23531 Usually this means the macro was only invoked conditionally." >&2;}
23532    { (exit 1); exit 1; }; }
23533 fi
23534 if test -z "${SAMPLE_TRUE}" && test -z "${SAMPLE_FALSE}"; then
23535   { { echo "$as_me:$LINENO: error: conditional \"SAMPLE\" was never defined.
23536 Usually this means the macro was only invoked conditionally." >&5
23537 echo "$as_me: error: conditional \"SAMPLE\" was never defined.
23538 Usually this means the macro was only invoked conditionally." >&2;}
23539    { (exit 1); exit 1; }; }
23540 fi
23541 if test -z "${NO_SASL_DB_MANS_TRUE}" && test -z "${NO_SASL_DB_MANS_FALSE}"; then
23542   { { echo "$as_me:$LINENO: error: conditional \"NO_SASL_DB_MANS\" was never defined.
23543 Usually this means the macro was only invoked conditionally." >&5
23544 echo "$as_me: error: conditional \"NO_SASL_DB_MANS\" was never defined.
23545 Usually this means the macro was only invoked conditionally." >&2;}
23546    { (exit 1); exit 1; }; }
23547 fi
23548 if test -z "${SASLAUTHD_TRUE}" && test -z "${SASLAUTHD_FALSE}"; then
23549   { { echo "$as_me:$LINENO: error: conditional \"SASLAUTHD\" was never defined.
23550 Usually this means the macro was only invoked conditionally." >&5
23551 echo "$as_me: error: conditional \"SASLAUTHD\" was never defined.
23552 Usually this means the macro was only invoked conditionally." >&2;}
23553    { (exit 1); exit 1; }; }
23554 fi
23555 if test -z "${PWCHECK_TRUE}" && test -z "${PWCHECK_FALSE}"; then
23556   { { echo "$as_me:$LINENO: error: conditional \"PWCHECK\" was never defined.
23557 Usually this means the macro was only invoked conditionally." >&5
23558 echo "$as_me: error: conditional \"PWCHECK\" was never defined.
23559 Usually this means the macro was only invoked conditionally." >&2;}
23560    { (exit 1); exit 1; }; }
23561 fi
23562 if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then
23563   { { echo "$as_me:$LINENO: error: conditional \"MACOSX\" was never defined.
23564 Usually this means the macro was only invoked conditionally." >&5
23565 echo "$as_me: error: conditional \"MACOSX\" was never defined.
23566 Usually this means the macro was only invoked conditionally." >&2;}
23567    { (exit 1); exit 1; }; }
23568 fi
23569
23570 : ${CONFIG_STATUS=./config.status}
23571 ac_clean_files_save=$ac_clean_files
23572 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23573 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23574 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23575 cat >$CONFIG_STATUS <<_ACEOF
23576 #! $SHELL
23577 # Generated by $as_me.
23578 # Run this file to recreate the current configuration.
23579 # Compiler output produced by configure, useful for debugging
23580 # configure, is in config.log if it exists.
23581
23582 debug=false
23583 ac_cs_recheck=false
23584 ac_cs_silent=false
23585 SHELL=\${CONFIG_SHELL-$SHELL}
23586 _ACEOF
23587
23588 cat >>$CONFIG_STATUS <<\_ACEOF
23589 ## --------------------- ##
23590 ## M4sh Initialization.  ##
23591 ## --------------------- ##
23592
23593 # Be more Bourne compatible
23594 DUALCASE=1; export DUALCASE # for MKS sh
23595 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23596   emulate sh
23597   NULLCMD=:
23598   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23599   # is contrary to our usage.  Disable this feature.
23600   alias -g '${1+"$@"}'='"$@"'
23601   setopt NO_GLOB_SUBST
23602 else
23603   case `(set -o) 2>/dev/null` in
23604   *posix*) set -o posix ;;
23605 esac
23606
23607 fi
23608
23609
23610
23611
23612 # PATH needs CR
23613 # Avoid depending upon Character Ranges.
23614 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23615 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23616 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23617 as_cr_digits='0123456789'
23618 as_cr_alnum=$as_cr_Letters$as_cr_digits
23619
23620 # The user is always right.
23621 if test "${PATH_SEPARATOR+set}" != set; then
23622   echo "#! /bin/sh" >conf$$.sh
23623   echo  "exit 0"   >>conf$$.sh
23624   chmod +x conf$$.sh
23625   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23626     PATH_SEPARATOR=';'
23627   else
23628     PATH_SEPARATOR=:
23629   fi
23630   rm -f conf$$.sh
23631 fi
23632
23633 # Support unset when possible.
23634 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23635   as_unset=unset
23636 else
23637   as_unset=false
23638 fi
23639
23640
23641 # IFS
23642 # We need space, tab and new line, in precisely that order.  Quoting is
23643 # there to prevent editors from complaining about space-tab.
23644 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23645 # splitting by setting IFS to empty value.)
23646 as_nl='
23647 '
23648 IFS=" ""        $as_nl"
23649
23650 # Find who we are.  Look in the path if we contain no directory separator.
23651 case $0 in
23652   *[\\/]* ) as_myself=$0 ;;
23653   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23654 for as_dir in $PATH
23655 do
23656   IFS=$as_save_IFS
23657   test -z "$as_dir" && as_dir=.
23658   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23659 done
23660 IFS=$as_save_IFS
23661
23662      ;;
23663 esac
23664 # We did not find ourselves, most probably we were run as `sh COMMAND'
23665 # in which case we are not to be found in the path.
23666 if test "x$as_myself" = x; then
23667   as_myself=$0
23668 fi
23669 if test ! -f "$as_myself"; then
23670   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23671   { (exit 1); exit 1; }
23672 fi
23673
23674 # Work around bugs in pre-3.0 UWIN ksh.
23675 for as_var in ENV MAIL MAILPATH
23676 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23677 done
23678 PS1='$ '
23679 PS2='> '
23680 PS4='+ '
23681
23682 # NLS nuisances.
23683 for as_var in \
23684   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23685   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23686   LC_TELEPHONE LC_TIME
23687 do
23688   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23689     eval $as_var=C; export $as_var
23690   else
23691     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23692   fi
23693 done
23694
23695 # Required to use basename.
23696 if expr a : '\(a\)' >/dev/null 2>&1 &&
23697    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23698   as_expr=expr
23699 else
23700   as_expr=false
23701 fi
23702
23703 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23704   as_basename=basename
23705 else
23706   as_basename=false
23707 fi
23708
23709
23710 # Name of the executable.
23711 as_me=`$as_basename -- "$0" ||
23712 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23713          X"$0" : 'X\(//\)$' \| \
23714          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23715 echo X/"$0" |
23716     sed '/^.*\/\([^/][^/]*\)\/*$/{
23717             s//\1/
23718             q
23719           }
23720           /^X\/\(\/\/\)$/{
23721             s//\1/
23722             q
23723           }
23724           /^X\/\(\/\).*/{
23725             s//\1/
23726             q
23727           }
23728           s/.*/./; q'`
23729
23730 # CDPATH.
23731 $as_unset CDPATH
23732
23733
23734
23735   as_lineno_1=$LINENO
23736   as_lineno_2=$LINENO
23737   test "x$as_lineno_1" != "x$as_lineno_2" &&
23738   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23739
23740   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23741   # uniformly replaced by the line number.  The first 'sed' inserts a
23742   # line-number line after each line using $LINENO; the second 'sed'
23743   # does the real work.  The second script uses 'N' to pair each
23744   # line-number line with the line containing $LINENO, and appends
23745   # trailing '-' during substitution so that $LINENO is not a special
23746   # case at line end.
23747   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23748   # scripts with optimization help from Paolo Bonzini.  Blame Lee
23749   # E. McMahon (1931-1989) for sed's syntax.  :-)
23750   sed -n '
23751     p
23752     /[$]LINENO/=
23753   ' <$as_myself |
23754     sed '
23755       s/[$]LINENO.*/&-/
23756       t lineno
23757       b
23758       :lineno
23759       N
23760       :loop
23761       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23762       t loop
23763       s/-\n.*//
23764     ' >$as_me.lineno &&
23765   chmod +x "$as_me.lineno" ||
23766     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23767    { (exit 1); exit 1; }; }
23768
23769   # Don't try to exec as it changes $[0], causing all sort of problems
23770   # (the dirname of $[0] is not the place where we might find the
23771   # original and so on.  Autoconf is especially sensitive to this).
23772   . "./$as_me.lineno"
23773   # Exit status is that of the last command.
23774   exit
23775 }
23776
23777
23778 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23779   as_dirname=dirname
23780 else
23781   as_dirname=false
23782 fi
23783
23784 ECHO_C= ECHO_N= ECHO_T=
23785 case `echo -n x` in
23786 -n*)
23787   case `echo 'x\c'` in
23788   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23789   *)   ECHO_C='\c';;
23790   esac;;
23791 *)
23792   ECHO_N='-n';;
23793 esac
23794
23795 if expr a : '\(a\)' >/dev/null 2>&1 &&
23796    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23797   as_expr=expr
23798 else
23799   as_expr=false
23800 fi
23801
23802 rm -f conf$$ conf$$.exe conf$$.file
23803 if test -d conf$$.dir; then
23804   rm -f conf$$.dir/conf$$.file
23805 else
23806   rm -f conf$$.dir
23807   mkdir conf$$.dir
23808 fi
23809 echo >conf$$.file
23810 if ln -s conf$$.file conf$$ 2>/dev/null; then
23811   as_ln_s='ln -s'
23812   # ... but there are two gotchas:
23813   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23814   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23815   # In both cases, we have to default to `cp -p'.
23816   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23817     as_ln_s='cp -p'
23818 elif ln conf$$.file conf$$ 2>/dev/null; then
23819   as_ln_s=ln
23820 else
23821   as_ln_s='cp -p'
23822 fi
23823 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23824 rmdir conf$$.dir 2>/dev/null
23825
23826 if mkdir -p . 2>/dev/null; then
23827   as_mkdir_p=:
23828 else
23829   test -d ./-p && rmdir ./-p
23830   as_mkdir_p=false
23831 fi
23832
23833 if test -x / >/dev/null 2>&1; then
23834   as_test_x='test -x'
23835 else
23836   if ls -dL / >/dev/null 2>&1; then
23837     as_ls_L_option=L
23838   else
23839     as_ls_L_option=
23840   fi
23841   as_test_x='
23842     eval sh -c '\''
23843       if test -d "$1"; then
23844         test -d "$1/.";
23845       else
23846         case $1 in
23847         -*)set "./$1";;
23848         esac;
23849         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23850         ???[sx]*):;;*)false;;esac;fi
23851     '\'' sh
23852   '
23853 fi
23854 as_executable_p=$as_test_x
23855
23856 # Sed expression to map a string onto a valid CPP name.
23857 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23858
23859 # Sed expression to map a string onto a valid variable name.
23860 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23861
23862
23863 exec 6>&1
23864
23865 # Save the log message, to keep $[0] and so on meaningful, and to
23866 # report actual input values of CONFIG_FILES etc. instead of their
23867 # values after options handling.
23868 ac_log="
23869 This file was extended by $as_me, which was
23870 generated by GNU Autoconf 2.61.  Invocation command line was
23871
23872   CONFIG_FILES    = $CONFIG_FILES
23873   CONFIG_HEADERS  = $CONFIG_HEADERS
23874   CONFIG_LINKS    = $CONFIG_LINKS
23875   CONFIG_COMMANDS = $CONFIG_COMMANDS
23876   $ $0 $@
23877
23878 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23879 "
23880
23881 _ACEOF
23882
23883 cat >>$CONFIG_STATUS <<_ACEOF
23884 # Files that config.status was made for.
23885 config_files="$ac_config_files"
23886 config_headers="$ac_config_headers"
23887 config_commands="$ac_config_commands"
23888
23889 _ACEOF
23890
23891 cat >>$CONFIG_STATUS <<\_ACEOF
23892 ac_cs_usage="\
23893 \`$as_me' instantiates files from templates according to the
23894 current configuration.
23895
23896 Usage: $0 [OPTIONS] [FILE]...
23897
23898   -h, --help       print this help, then exit
23899   -V, --version    print version number and configuration settings, then exit
23900   -q, --quiet      do not print progress messages
23901   -d, --debug      don't remove temporary files
23902       --recheck    update $as_me by reconfiguring in the same conditions
23903   --file=FILE[:TEMPLATE]
23904                    instantiate the configuration file FILE
23905   --header=FILE[:TEMPLATE]
23906                    instantiate the configuration header FILE
23907
23908 Configuration files:
23909 $config_files
23910
23911 Configuration headers:
23912 $config_headers
23913
23914 Configuration commands:
23915 $config_commands
23916
23917 Report bugs to <bug-autoconf@gnu.org>."
23918
23919 _ACEOF
23920 cat >>$CONFIG_STATUS <<_ACEOF
23921 ac_cs_version="\\
23922 config.status
23923 configured by $0, generated by GNU Autoconf 2.61,
23924   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23925
23926 Copyright (C) 2006 Free Software Foundation, Inc.
23927 This config.status script is free software; the Free Software Foundation
23928 gives unlimited permission to copy, distribute and modify it."
23929
23930 ac_pwd='$ac_pwd'
23931 srcdir='$srcdir'
23932 INSTALL='$INSTALL'
23933 MKDIR_P='$MKDIR_P'
23934 _ACEOF
23935
23936 cat >>$CONFIG_STATUS <<\_ACEOF
23937 # If no file are specified by the user, then we need to provide default
23938 # value.  By we need to know if files were specified by the user.
23939 ac_need_defaults=:
23940 while test $# != 0
23941 do
23942   case $1 in
23943   --*=*)
23944     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23945     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23946     ac_shift=:
23947     ;;
23948   *)
23949     ac_option=$1
23950     ac_optarg=$2
23951     ac_shift=shift
23952     ;;
23953   esac
23954
23955   case $ac_option in
23956   # Handling of the options.
23957   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23958     ac_cs_recheck=: ;;
23959   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23960     echo "$ac_cs_version"; exit ;;
23961   --debug | --debu | --deb | --de | --d | -d )
23962     debug=: ;;
23963   --file | --fil | --fi | --f )
23964     $ac_shift
23965     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23966     ac_need_defaults=false;;
23967   --header | --heade | --head | --hea )
23968     $ac_shift
23969     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23970     ac_need_defaults=false;;
23971   --he | --h)
23972     # Conflict between --help and --header
23973     { echo "$as_me: error: ambiguous option: $1
23974 Try \`$0 --help' for more information." >&2
23975    { (exit 1); exit 1; }; };;
23976   --help | --hel | -h )
23977     echo "$ac_cs_usage"; exit ;;
23978   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23979   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23980     ac_cs_silent=: ;;
23981
23982   # This is an error.
23983   -*) { echo "$as_me: error: unrecognized option: $1
23984 Try \`$0 --help' for more information." >&2
23985    { (exit 1); exit 1; }; } ;;
23986
23987   *) ac_config_targets="$ac_config_targets $1"
23988      ac_need_defaults=false ;;
23989
23990   esac
23991   shift
23992 done
23993
23994 ac_configure_extra_args=
23995
23996 if $ac_cs_silent; then
23997   exec 6>/dev/null
23998   ac_configure_extra_args="$ac_configure_extra_args --silent"
23999 fi
24000
24001 _ACEOF
24002 cat >>$CONFIG_STATUS <<_ACEOF
24003 if \$ac_cs_recheck; then
24004   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24005   CONFIG_SHELL=$SHELL
24006   export CONFIG_SHELL
24007   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24008 fi
24009
24010 _ACEOF
24011 cat >>$CONFIG_STATUS <<\_ACEOF
24012 exec 5>>config.log
24013 {
24014   echo
24015   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24016 ## Running $as_me. ##
24017 _ASBOX
24018   echo "$ac_log"
24019 } >&5
24020
24021 _ACEOF
24022 cat >>$CONFIG_STATUS <<_ACEOF
24023 #
24024 # INIT-COMMANDS
24025 #
24026 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24027
24028
24029 # The HP-UX ksh and POSIX shell print the target directory to stdout
24030 # if CDPATH is set.
24031 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24032
24033 sed_quote_subst='$sed_quote_subst'
24034 double_quote_subst='$double_quote_subst'
24035 delay_variable_subst='$delay_variable_subst'
24036 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
24037 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
24038 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
24039 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
24040 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
24041 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
24042 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
24043 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
24044 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
24045 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
24046 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
24047 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
24048 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
24049 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
24050 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
24051 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
24052 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
24053 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
24054 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
24055 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
24056 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
24057 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
24058 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
24059 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
24060 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
24061 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
24062 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
24063 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
24064 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
24065 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
24066 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
24067 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
24068 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
24069 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
24070 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
24071 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
24072 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
24073 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24074 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24075 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
24076 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
24077 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
24078 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
24079 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
24080 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
24081 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
24082 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
24083 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
24084 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
24085 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
24086 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
24087 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
24088 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
24089 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
24090 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
24091 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
24092 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
24093 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
24094 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
24095 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
24096 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
24097 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
24098 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
24099 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
24100 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24101 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
24102 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
24103 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
24104 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
24105 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
24106 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
24107 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24108 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
24109 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24110 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
24111 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24112 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
24113 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
24114 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
24115 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
24116 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
24117 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
24118 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
24119 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
24120 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
24121 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24122 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24123 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24124 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24125 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
24126 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24127 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24128 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24129 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24130 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24131 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24132 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24133 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24134 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24135 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24136 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24137 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24138 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24139 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24140 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24141 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24142 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24143 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24144 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24145 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24146 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24147 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24148 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24149 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
24150 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24151 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24152 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24153 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24154 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24155 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24156
24157 LTCC='$LTCC'
24158 LTCFLAGS='$LTCFLAGS'
24159 compiler='$compiler_DEFAULT'
24160
24161 # A function that is used when there is no print builtin or printf.
24162 func_fallback_echo ()
24163 {
24164   eval 'cat <<_LTECHO_EOF
24165 \$1
24166 _LTECHO_EOF'
24167 }
24168
24169 # Quote evaled strings.
24170 for var in SHELL \
24171 ECHO \
24172 SED \
24173 GREP \
24174 EGREP \
24175 FGREP \
24176 LD \
24177 NM \
24178 LN_S \
24179 lt_SP2NL \
24180 lt_NL2SP \
24181 reload_flag \
24182 OBJDUMP \
24183 deplibs_check_method \
24184 file_magic_cmd \
24185 AR \
24186 AR_FLAGS \
24187 STRIP \
24188 RANLIB \
24189 CC \
24190 CFLAGS \
24191 compiler \
24192 lt_cv_sys_global_symbol_pipe \
24193 lt_cv_sys_global_symbol_to_cdecl \
24194 lt_cv_sys_global_symbol_to_c_name_address \
24195 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24196 lt_prog_compiler_no_builtin_flag \
24197 lt_prog_compiler_wl \
24198 lt_prog_compiler_pic \
24199 lt_prog_compiler_static \
24200 lt_cv_prog_compiler_c_o \
24201 need_locks \
24202 DSYMUTIL \
24203 NMEDIT \
24204 LIPO \
24205 OTOOL \
24206 OTOOL64 \
24207 shrext_cmds \
24208 export_dynamic_flag_spec \
24209 whole_archive_flag_spec \
24210 compiler_needs_object \
24211 with_gnu_ld \
24212 allow_undefined_flag \
24213 no_undefined_flag \
24214 hardcode_libdir_flag_spec \
24215 hardcode_libdir_flag_spec_ld \
24216 hardcode_libdir_separator \
24217 fix_srcfile_path \
24218 exclude_expsyms \
24219 include_expsyms \
24220 file_list_spec \
24221 variables_saved_for_relink \
24222 libname_spec \
24223 library_names_spec \
24224 soname_spec \
24225 install_override_mode \
24226 finish_eval \
24227 old_striplib \
24228 striplib; do
24229     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24230     *[\\\\\\\`\\"\\\$]*)
24231       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
24232       ;;
24233     *)
24234       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24235       ;;
24236     esac
24237 done
24238
24239 # Double-quote double-evaled strings.
24240 for var in reload_cmds \
24241 old_postinstall_cmds \
24242 old_postuninstall_cmds \
24243 old_archive_cmds \
24244 extract_expsyms_cmds \
24245 old_archive_from_new_cmds \
24246 old_archive_from_expsyms_cmds \
24247 archive_cmds \
24248 archive_expsym_cmds \
24249 module_cmds \
24250 module_expsym_cmds \
24251 export_symbols_cmds \
24252 prelink_cmds \
24253 postinstall_cmds \
24254 postuninstall_cmds \
24255 finish_cmds \
24256 sys_lib_search_path_spec \
24257 sys_lib_dlsearch_path_spec; do
24258     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24259     *[\\\\\\\`\\"\\\$]*)
24260       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
24261       ;;
24262     *)
24263       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24264       ;;
24265     esac
24266 done
24267
24268 ac_aux_dir='$ac_aux_dir'
24269 xsi_shell='$xsi_shell'
24270 lt_shell_append='$lt_shell_append'
24271
24272 # See if we are running on zsh, and set the options which allow our
24273 # commands through without removal of \ escapes INIT.
24274 if test -n "\${ZSH_VERSION+set}" ; then
24275    setopt NO_GLOB_SUBST
24276 fi
24277
24278
24279     PACKAGE='$PACKAGE'
24280     VERSION='$VERSION'
24281     TIMESTAMP='$TIMESTAMP'
24282     RM='$RM'
24283     ofile='$ofile'
24284
24285
24286
24287
24288 _ACEOF
24289
24290 cat >>$CONFIG_STATUS <<\_ACEOF
24291
24292 # Handling of arguments.
24293 for ac_config_target in $ac_config_targets
24294 do
24295   case $ac_config_target in
24296     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24297     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24298     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24299     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24300     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24301     "sasldb/Makefile") CONFIG_FILES="$CONFIG_FILES sasldb/Makefile" ;;
24302     "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
24303     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
24304     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
24305     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24306     "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
24307     "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
24308     "java/CyrusSasl/Makefile") CONFIG_FILES="$CONFIG_FILES java/CyrusSasl/Makefile" ;;
24309     "java/Test/Makefile") CONFIG_FILES="$CONFIG_FILES java/Test/Makefile" ;;
24310     "java/javax/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/Makefile" ;;
24311     "java/javax/security/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/security/Makefile" ;;
24312     "java/javax/security/auth/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/security/auth/Makefile" ;;
24313     "java/javax/security/auth/callback/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/security/auth/callback/Makefile" ;;
24314     "pwcheck/Makefile") CONFIG_FILES="$CONFIG_FILES pwcheck/Makefile" ;;
24315     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24316
24317   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24318 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24319    { (exit 1); exit 1; }; };;
24320   esac
24321 done
24322
24323
24324 # If the user did not use the arguments to specify the items to instantiate,
24325 # then the envvar interface is used.  Set only those that are not.
24326 # We use the long form for the default assignment because of an extremely
24327 # bizarre bug on SunOS 4.1.3.
24328 if $ac_need_defaults; then
24329   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24330   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24331   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24332 fi
24333
24334 # Have a temporary directory for convenience.  Make it in the build tree
24335 # simply because there is no reason against having it here, and in addition,
24336 # creating and moving files from /tmp can sometimes cause problems.
24337 # Hook for its removal unless debugging.
24338 # Note that there is a small window in which the directory will not be cleaned:
24339 # after its creation but before its name has been assigned to `$tmp'.
24340 $debug ||
24341 {
24342   tmp=
24343   trap 'exit_status=$?
24344   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24345 ' 0
24346   trap '{ (exit 1); exit 1; }' 1 2 13 15
24347 }
24348 # Create a (secure) tmp directory for tmp files.
24349
24350 {
24351   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24352   test -n "$tmp" && test -d "$tmp"
24353 }  ||
24354 {
24355   tmp=./conf$$-$RANDOM
24356   (umask 077 && mkdir "$tmp")
24357 } ||
24358 {
24359    echo "$me: cannot create a temporary directory in ." >&2
24360    { (exit 1); exit 1; }
24361 }
24362
24363 #
24364 # Set up the sed scripts for CONFIG_FILES section.
24365 #
24366
24367 # No need to generate the scripts if there are no CONFIG_FILES.
24368 # This happens for instance when ./config.status config.h
24369 if test -n "$CONFIG_FILES"; then
24370
24371 _ACEOF
24372
24373
24374
24375 ac_delim='%!_!# '
24376 for ac_last_try in false false false false false :; do
24377   cat >conf$$subs.sed <<_ACEOF
24378 SHELL!$SHELL$ac_delim
24379 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24380 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24381 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24382 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24383 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24384 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24385 exec_prefix!$exec_prefix$ac_delim
24386 prefix!$prefix$ac_delim
24387 program_transform_name!$program_transform_name$ac_delim
24388 bindir!$bindir$ac_delim
24389 sbindir!$sbindir$ac_delim
24390 libexecdir!$libexecdir$ac_delim
24391 datarootdir!$datarootdir$ac_delim
24392 datadir!$datadir$ac_delim
24393 sysconfdir!$sysconfdir$ac_delim
24394 sharedstatedir!$sharedstatedir$ac_delim
24395 localstatedir!$localstatedir$ac_delim
24396 includedir!$includedir$ac_delim
24397 oldincludedir!$oldincludedir$ac_delim
24398 docdir!$docdir$ac_delim
24399 infodir!$infodir$ac_delim
24400 htmldir!$htmldir$ac_delim
24401 dvidir!$dvidir$ac_delim
24402 pdfdir!$pdfdir$ac_delim
24403 psdir!$psdir$ac_delim
24404 libdir!$libdir$ac_delim
24405 localedir!$localedir$ac_delim
24406 mandir!$mandir$ac_delim
24407 DEFS!$DEFS$ac_delim
24408 ECHO_C!$ECHO_C$ac_delim
24409 ECHO_N!$ECHO_N$ac_delim
24410 ECHO_T!$ECHO_T$ac_delim
24411 LIBS!$LIBS$ac_delim
24412 build_alias!$build_alias$ac_delim
24413 host_alias!$host_alias$ac_delim
24414 target_alias!$target_alias$ac_delim
24415 build!$build$ac_delim
24416 build_cpu!$build_cpu$ac_delim
24417 build_vendor!$build_vendor$ac_delim
24418 build_os!$build_os$ac_delim
24419 host!$host$ac_delim
24420 host_cpu!$host_cpu$ac_delim
24421 host_vendor!$host_vendor$ac_delim
24422 host_os!$host_os$ac_delim
24423 target!$target$ac_delim
24424 target_cpu!$target_cpu$ac_delim
24425 target_vendor!$target_vendor$ac_delim
24426 target_os!$target_os$ac_delim
24427 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24428 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24429 INSTALL_DATA!$INSTALL_DATA$ac_delim
24430 am__isrc!$am__isrc$ac_delim
24431 CYGPATH_W!$CYGPATH_W$ac_delim
24432 PACKAGE!$PACKAGE$ac_delim
24433 VERSION!$VERSION$ac_delim
24434 ACLOCAL!$ACLOCAL$ac_delim
24435 AUTOCONF!$AUTOCONF$ac_delim
24436 AUTOMAKE!$AUTOMAKE$ac_delim
24437 AUTOHEADER!$AUTOHEADER$ac_delim
24438 MAKEINFO!$MAKEINFO$ac_delim
24439 install_sh!$install_sh$ac_delim
24440 STRIP!$STRIP$ac_delim
24441 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24442 mkdir_p!$mkdir_p$ac_delim
24443 AWK!$AWK$ac_delim
24444 SET_MAKE!$SET_MAKE$ac_delim
24445 am__leading_dot!$am__leading_dot$ac_delim
24446 AMTAR!$AMTAR$ac_delim
24447 am__tar!$am__tar$ac_delim
24448 am__untar!$am__untar$ac_delim
24449 CC!$CC$ac_delim
24450 CFLAGS!$CFLAGS$ac_delim
24451 LDFLAGS!$LDFLAGS$ac_delim
24452 CPPFLAGS!$CPPFLAGS$ac_delim
24453 ac_ct_CC!$ac_ct_CC$ac_delim
24454 EXEEXT!$EXEEXT$ac_delim
24455 OBJEXT!$OBJEXT$ac_delim
24456 DEPDIR!$DEPDIR$ac_delim
24457 am__include!$am__include$ac_delim
24458 am__quote!$am__quote$ac_delim
24459 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24460 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24461 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24462 CCDEPMODE!$CCDEPMODE$ac_delim
24463 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24464 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24465 CPP!$CPP$ac_delim
24466 LN_S!$LN_S$ac_delim
24467 LIBTOOL!$LIBTOOL$ac_delim
24468 SED!$SED$ac_delim
24469 GREP!$GREP$ac_delim
24470 EGREP!$EGREP$ac_delim
24471 FGREP!$FGREP$ac_delim
24472 LD!$LD$ac_delim
24473 DUMPBIN!$DUMPBIN$ac_delim
24474 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
24475 _ACEOF
24476
24477   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24478     break
24479   elif $ac_last_try; then
24480     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24481 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24482    { (exit 1); exit 1; }; }
24483   else
24484     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24485   fi
24486 done
24487
24488 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24489 if test -n "$ac_eof"; then
24490   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24491   ac_eof=`expr $ac_eof + 1`
24492 fi
24493
24494 cat >>$CONFIG_STATUS <<_ACEOF
24495 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24496 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24497 _ACEOF
24498 sed '
24499 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24500 s/^/s,@/; s/!/@,|#_!!_#|/
24501 :n
24502 t n
24503 s/'"$ac_delim"'$/,g/; t
24504 s/$/\\/; p
24505 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24506 ' >>$CONFIG_STATUS <conf$$subs.sed
24507 rm -f conf$$subs.sed
24508 cat >>$CONFIG_STATUS <<_ACEOF
24509 CEOF$ac_eof
24510 _ACEOF
24511
24512
24513 ac_delim='%!_!# '
24514 for ac_last_try in false false false false false :; do
24515   cat >conf$$subs.sed <<_ACEOF
24516 NM!$NM$ac_delim
24517 OBJDUMP!$OBJDUMP$ac_delim
24518 AR!$AR$ac_delim
24519 RANLIB!$RANLIB$ac_delim
24520 DSYMUTIL!$DSYMUTIL$ac_delim
24521 NMEDIT!$NMEDIT$ac_delim
24522 LIPO!$LIPO$ac_delim
24523 OTOOL!$OTOOL$ac_delim
24524 OTOOL64!$OTOOL64$ac_delim
24525 PURECOV!$PURECOV$ac_delim
24526 PURIFY!$PURIFY$ac_delim
24527 JAVAC!$JAVAC$ac_delim
24528 JAVAH!$JAVAH$ac_delim
24529 JAVADOC!$JAVADOC$ac_delim
24530 JAVA_TRUE!$JAVA_TRUE$ac_delim
24531 JAVA_FALSE!$JAVA_FALSE$ac_delim
24532 JAVA_INCLUDES!$JAVA_INCLUDES$ac_delim
24533 JAVAROOT!$JAVAROOT$ac_delim
24534 SAMPLE_TRUE!$SAMPLE_TRUE$ac_delim
24535 SAMPLE_FALSE!$SAMPLE_FALSE$ac_delim
24536 LIB_SOCKET!$LIB_SOCKET$ac_delim
24537 SASL_DB_UTILS!$SASL_DB_UTILS$ac_delim
24538 SASL_DB_MANS!$SASL_DB_MANS$ac_delim
24539 SASL_DB_BACKEND!$SASL_DB_BACKEND$ac_delim
24540 SASL_DB_BACKEND_STATIC!$SASL_DB_BACKEND_STATIC$ac_delim
24541 SASL_DB_INC!$SASL_DB_INC$ac_delim
24542 SASL_DB_LIB!$SASL_DB_LIB$ac_delim
24543 NO_SASL_DB_MANS_TRUE!$NO_SASL_DB_MANS_TRUE$ac_delim
24544 NO_SASL_DB_MANS_FALSE!$NO_SASL_DB_MANS_FALSE$ac_delim
24545 SASL_DL_LIB!$SASL_DL_LIB$ac_delim
24546 SASLAUTHD_TRUE!$SASLAUTHD_TRUE$ac_delim
24547 SASLAUTHD_FALSE!$SASLAUTHD_FALSE$ac_delim
24548 PWCHECKMETH!$PWCHECKMETH$ac_delim
24549 PWCHECK_TRUE!$PWCHECK_TRUE$ac_delim
24550 PWCHECK_FALSE!$PWCHECK_FALSE$ac_delim
24551 IPCTYPE!$IPCTYPE$ac_delim
24552 LIB_DOOR!$LIB_DOOR$ac_delim
24553 CMU_LIB_SUBDIR!$CMU_LIB_SUBDIR$ac_delim
24554 LIB_DES!$LIB_DES$ac_delim
24555 OTP_LIBS!$OTP_LIBS$ac_delim
24556 SRP_LIBS!$SRP_LIBS$ac_delim
24557 SASL_KRB_LIB!$SASL_KRB_LIB$ac_delim
24558 LIB_CRYPT!$LIB_CRYPT$ac_delim
24559 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
24560 GSSAPIBASE_LIBS!$GSSAPIBASE_LIBS$ac_delim
24561 PLAIN_LIBS!$PLAIN_LIBS$ac_delim
24562 NTLM_LIBS!$NTLM_LIBS$ac_delim
24563 PASSDSS_LIBS!$PASSDSS_LIBS$ac_delim
24564 LIB_MYSQL!$LIB_MYSQL$ac_delim
24565 LIB_PGSQL!$LIB_PGSQL$ac_delim
24566 LIB_SQLITE!$LIB_SQLITE$ac_delim
24567 LIB_LDAP!$LIB_LDAP$ac_delim
24568 SASL_MECHS!$SASL_MECHS$ac_delim
24569 SASL_STATIC_SRCS!$SASL_STATIC_SRCS$ac_delim
24570 SASL_STATIC_OBJS!$SASL_STATIC_OBJS$ac_delim
24571 SASL_STATIC_LIBS!$SASL_STATIC_LIBS$ac_delim
24572 plugindir!$plugindir$ac_delim
24573 configdir!$configdir$ac_delim
24574 MACOSX_TRUE!$MACOSX_TRUE$ac_delim
24575 MACOSX_FALSE!$MACOSX_FALSE$ac_delim
24576 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
24577 SFIO_INC_FLAGS!$SFIO_INC_FLAGS$ac_delim
24578 SFIO_LIB_FLAGS!$SFIO_LIB_FLAGS$ac_delim
24579 SMTPTEST_PROGRAM!$SMTPTEST_PROGRAM$ac_delim
24580 SASL_UTIL_LIBS_EXTRA!$SASL_UTIL_LIBS_EXTRA$ac_delim
24581 SASL_UTIL_HEADERS_EXTRA!$SASL_UTIL_HEADERS_EXTRA$ac_delim
24582 LIBOBJS!$LIBOBJS$ac_delim
24583 GETSUBOPT!$GETSUBOPT$ac_delim
24584 SNPRINTFOBJS!$SNPRINTFOBJS$ac_delim
24585 LTSNPRINTFOBJS!$LTSNPRINTFOBJS$ac_delim
24586 GETADDRINFOOBJS!$GETADDRINFOOBJS$ac_delim
24587 LTGETADDRINFOOBJS!$LTGETADDRINFOOBJS$ac_delim
24588 GETNAMEINFOOBJS!$GETNAMEINFOOBJS$ac_delim
24589 LTGETNAMEINFOOBJS!$LTGETNAMEINFOOBJS$ac_delim
24590 LTLIBOBJS!$LTLIBOBJS$ac_delim
24591 DIRS!$DIRS$ac_delim
24592 subdirs!$subdirs$ac_delim
24593 _ACEOF
24594
24595   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
24596     break
24597   elif $ac_last_try; then
24598     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24599 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24600    { (exit 1); exit 1; }; }
24601   else
24602     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24603   fi
24604 done
24605
24606 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24607 if test -n "$ac_eof"; then
24608   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24609   ac_eof=`expr $ac_eof + 1`
24610 fi
24611
24612 cat >>$CONFIG_STATUS <<_ACEOF
24613 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24614 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24615 _ACEOF
24616 sed '
24617 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24618 s/^/s,@/; s/!/@,|#_!!_#|/
24619 :n
24620 t n
24621 s/'"$ac_delim"'$/,g/; t
24622 s/$/\\/; p
24623 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24624 ' >>$CONFIG_STATUS <conf$$subs.sed
24625 rm -f conf$$subs.sed
24626 cat >>$CONFIG_STATUS <<_ACEOF
24627 :end
24628 s/|#_!!_#|//g
24629 CEOF$ac_eof
24630 _ACEOF
24631
24632
24633 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24634 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24635 # trailing colons and then remove the whole line if VPATH becomes empty
24636 # (actually we leave an empty line to preserve line numbers).
24637 if test "x$srcdir" = x.; then
24638   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24639 s/:*\$(srcdir):*/:/
24640 s/:*\${srcdir}:*/:/
24641 s/:*@srcdir@:*/:/
24642 s/^\([^=]*=[     ]*\):*/\1/
24643 s/:*$//
24644 s/^[^=]*=[       ]*$//
24645 }'
24646 fi
24647
24648 cat >>$CONFIG_STATUS <<\_ACEOF
24649 fi # test -n "$CONFIG_FILES"
24650
24651
24652 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
24653 do
24654   case $ac_tag in
24655   :[FHLC]) ac_mode=$ac_tag; continue;;
24656   esac
24657   case $ac_mode$ac_tag in
24658   :[FHL]*:*);;
24659   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24660 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24661    { (exit 1); exit 1; }; };;
24662   :[FH]-) ac_tag=-:-;;
24663   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24664   esac
24665   ac_save_IFS=$IFS
24666   IFS=:
24667   set x $ac_tag
24668   IFS=$ac_save_IFS
24669   shift
24670   ac_file=$1
24671   shift
24672
24673   case $ac_mode in
24674   :L) ac_source=$1;;
24675   :[FH])
24676     ac_file_inputs=
24677     for ac_f
24678     do
24679       case $ac_f in
24680       -) ac_f="$tmp/stdin";;
24681       *) # Look for the file first in the build tree, then in the source tree
24682          # (if the path is not absolute).  The absolute path cannot be DOS-style,
24683          # because $ac_f cannot contain `:'.
24684          test -f "$ac_f" ||
24685            case $ac_f in
24686            [\\/$]*) false;;
24687            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24688            esac ||
24689            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24690 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24691    { (exit 1); exit 1; }; };;
24692       esac
24693       ac_file_inputs="$ac_file_inputs $ac_f"
24694     done
24695
24696     # Let's still pretend it is `configure' which instantiates (i.e., don't
24697     # use $as_me), people would be surprised to read:
24698     #    /* config.h.  Generated by config.status.  */
24699     configure_input="Generated from "`IFS=:
24700           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24701     if test x"$ac_file" != x-; then
24702       configure_input="$ac_file.  $configure_input"
24703       { echo "$as_me:$LINENO: creating $ac_file" >&5
24704 echo "$as_me: creating $ac_file" >&6;}
24705     fi
24706
24707     case $ac_tag in
24708     *:-:* | *:-) cat >"$tmp/stdin";;
24709     esac
24710     ;;
24711   esac
24712
24713   ac_dir=`$as_dirname -- "$ac_file" ||
24714 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24715          X"$ac_file" : 'X\(//\)[^/]' \| \
24716          X"$ac_file" : 'X\(//\)$' \| \
24717          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24718 echo X"$ac_file" |
24719     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24720             s//\1/
24721             q
24722           }
24723           /^X\(\/\/\)[^/].*/{
24724             s//\1/
24725             q
24726           }
24727           /^X\(\/\/\)$/{
24728             s//\1/
24729             q
24730           }
24731           /^X\(\/\).*/{
24732             s//\1/
24733             q
24734           }
24735           s/.*/./; q'`
24736   { as_dir="$ac_dir"
24737   case $as_dir in #(
24738   -*) as_dir=./$as_dir;;
24739   esac
24740   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24741     as_dirs=
24742     while :; do
24743       case $as_dir in #(
24744       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24745       *) as_qdir=$as_dir;;
24746       esac
24747       as_dirs="'$as_qdir' $as_dirs"
24748       as_dir=`$as_dirname -- "$as_dir" ||
24749 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24750          X"$as_dir" : 'X\(//\)[^/]' \| \
24751          X"$as_dir" : 'X\(//\)$' \| \
24752          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24753 echo X"$as_dir" |
24754     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24755             s//\1/
24756             q
24757           }
24758           /^X\(\/\/\)[^/].*/{
24759             s//\1/
24760             q
24761           }
24762           /^X\(\/\/\)$/{
24763             s//\1/
24764             q
24765           }
24766           /^X\(\/\).*/{
24767             s//\1/
24768             q
24769           }
24770           s/.*/./; q'`
24771       test -d "$as_dir" && break
24772     done
24773     test -z "$as_dirs" || eval "mkdir $as_dirs"
24774   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24775 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24776    { (exit 1); exit 1; }; }; }
24777   ac_builddir=.
24778
24779 case "$ac_dir" in
24780 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24781 *)
24782   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24783   # A ".." for each directory in $ac_dir_suffix.
24784   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24785   case $ac_top_builddir_sub in
24786   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24787   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24788   esac ;;
24789 esac
24790 ac_abs_top_builddir=$ac_pwd
24791 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24792 # for backward compatibility:
24793 ac_top_builddir=$ac_top_build_prefix
24794
24795 case $srcdir in
24796   .)  # We are building in place.
24797     ac_srcdir=.
24798     ac_top_srcdir=$ac_top_builddir_sub
24799     ac_abs_top_srcdir=$ac_pwd ;;
24800   [\\/]* | ?:[\\/]* )  # Absolute name.
24801     ac_srcdir=$srcdir$ac_dir_suffix;
24802     ac_top_srcdir=$srcdir
24803     ac_abs_top_srcdir=$srcdir ;;
24804   *) # Relative name.
24805     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24806     ac_top_srcdir=$ac_top_build_prefix$srcdir
24807     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24808 esac
24809 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24810
24811
24812   case $ac_mode in
24813   :F)
24814   #
24815   # CONFIG_FILE
24816   #
24817
24818   case $INSTALL in
24819   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24820   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24821   esac
24822   ac_MKDIR_P=$MKDIR_P
24823   case $MKDIR_P in
24824   [\\/$]* | ?:[\\/]* ) ;;
24825   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24826   esac
24827 _ACEOF
24828
24829 cat >>$CONFIG_STATUS <<\_ACEOF
24830 # If the template does not know about datarootdir, expand it.
24831 # FIXME: This hack should be removed a few years after 2.60.
24832 ac_datarootdir_hack=; ac_datarootdir_seen=
24833
24834 case `sed -n '/datarootdir/ {
24835   p
24836   q
24837 }
24838 /@datadir@/p
24839 /@docdir@/p
24840 /@infodir@/p
24841 /@localedir@/p
24842 /@mandir@/p
24843 ' $ac_file_inputs` in
24844 *datarootdir*) ac_datarootdir_seen=yes;;
24845 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24846   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24847 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24848 _ACEOF
24849 cat >>$CONFIG_STATUS <<_ACEOF
24850   ac_datarootdir_hack='
24851   s&@datadir@&$datadir&g
24852   s&@docdir@&$docdir&g
24853   s&@infodir@&$infodir&g
24854   s&@localedir@&$localedir&g
24855   s&@mandir@&$mandir&g
24856     s&\\\${datarootdir}&$datarootdir&g' ;;
24857 esac
24858 _ACEOF
24859
24860 # Neutralize VPATH when `$srcdir' = `.'.
24861 # Shell code in configure.ac might set extrasub.
24862 # FIXME: do we really want to maintain this feature?
24863 cat >>$CONFIG_STATUS <<_ACEOF
24864   sed "$ac_vpsub
24865 $extrasub
24866 _ACEOF
24867 cat >>$CONFIG_STATUS <<\_ACEOF
24868 :t
24869 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24870 s&@configure_input@&$configure_input&;t t
24871 s&@top_builddir@&$ac_top_builddir_sub&;t t
24872 s&@srcdir@&$ac_srcdir&;t t
24873 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24874 s&@top_srcdir@&$ac_top_srcdir&;t t
24875 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24876 s&@builddir@&$ac_builddir&;t t
24877 s&@abs_builddir@&$ac_abs_builddir&;t t
24878 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24879 s&@INSTALL@&$ac_INSTALL&;t t
24880 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24881 $ac_datarootdir_hack
24882 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24883
24884 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24885   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24886   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24887   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24888 which seems to be undefined.  Please make sure it is defined." >&5
24889 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24890 which seems to be undefined.  Please make sure it is defined." >&2;}
24891
24892   rm -f "$tmp/stdin"
24893   case $ac_file in
24894   -) cat "$tmp/out"; rm -f "$tmp/out";;
24895   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24896   esac
24897  ;;
24898   :H)
24899   #
24900   # CONFIG_HEADER
24901   #
24902 _ACEOF
24903
24904 # Transform confdefs.h into a sed script `conftest.defines', that
24905 # substitutes the proper values into config.h.in to produce config.h.
24906 rm -f conftest.defines conftest.tail
24907 # First, append a space to every undef/define line, to ease matching.
24908 echo 's/$/ /' >conftest.defines
24909 # Then, protect against being on the right side of a sed subst, or in
24910 # an unquoted here document, in config.status.  If some macros were
24911 # called several times there might be several #defines for the same
24912 # symbol, which is useless.  But do not sort them, since the last
24913 # AC_DEFINE must be honored.
24914 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24915 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24916 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24917 # PARAMS is the parameter list in the macro definition--in most cases, it's
24918 # just an empty string.
24919 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
24920 ac_dB='\\)[      (].*,\\1define\\2'
24921 ac_dC=' '
24922 ac_dD=' ,'
24923
24924 uniq confdefs.h |
24925   sed -n '
24926         t rset
24927         :rset
24928         s/^[     ]*#[    ]*define[       ][      ]*//
24929         t ok
24930         d
24931         :ok
24932         s/[\\&,]/\\&/g
24933         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24934         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24935   ' >>conftest.defines
24936
24937 # Remove the space that was appended to ease matching.
24938 # Then replace #undef with comments.  This is necessary, for
24939 # example, in the case of _POSIX_SOURCE, which is predefined and required
24940 # on some systems where configure will not decide to define it.
24941 # (The regexp can be short, since the line contains either #define or #undef.)
24942 echo 's/ $//
24943 s,^[     #]*u.*,/* & */,' >>conftest.defines
24944
24945 # Break up conftest.defines:
24946 ac_max_sed_lines=50
24947
24948 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24949 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24950 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24951 # et cetera.
24952 ac_in='$ac_file_inputs'
24953 ac_out='"$tmp/out1"'
24954 ac_nxt='"$tmp/out2"'
24955
24956 while :
24957 do
24958   # Write a here document:
24959     cat >>$CONFIG_STATUS <<_ACEOF
24960     # First, check the format of the line:
24961     cat >"\$tmp/defines.sed" <<\\CEOF
24962 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
24963 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
24964 b
24965 :def
24966 _ACEOF
24967   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24968   echo 'CEOF
24969     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24970   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24971   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24972   grep . conftest.tail >/dev/null || break
24973   rm -f conftest.defines
24974   mv conftest.tail conftest.defines
24975 done
24976 rm -f conftest.defines conftest.tail
24977
24978 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24979 cat >>$CONFIG_STATUS <<\_ACEOF
24980   if test x"$ac_file" != x-; then
24981     echo "/* $configure_input  */" >"$tmp/config.h"
24982     cat "$ac_result" >>"$tmp/config.h"
24983     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24984       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24985 echo "$as_me: $ac_file is unchanged" >&6;}
24986     else
24987       rm -f $ac_file
24988       mv "$tmp/config.h" $ac_file
24989     fi
24990   else
24991     echo "/* $configure_input  */"
24992     cat "$ac_result"
24993   fi
24994   rm -f "$tmp/out12"
24995 # Compute $ac_file's index in $config_headers.
24996 _am_stamp_count=1
24997 for _am_header in $config_headers :; do
24998   case $_am_header in
24999     $ac_file | $ac_file:* )
25000       break ;;
25001     * )
25002       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25003   esac
25004 done
25005 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
25006 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25007          X$ac_file : 'X\(//\)[^/]' \| \
25008          X$ac_file : 'X\(//\)$' \| \
25009          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
25010 echo X$ac_file |
25011     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25012             s//\1/
25013             q
25014           }
25015           /^X\(\/\/\)[^/].*/{
25016             s//\1/
25017             q
25018           }
25019           /^X\(\/\/\)$/{
25020             s//\1/
25021             q
25022           }
25023           /^X\(\/\).*/{
25024             s//\1/
25025             q
25026           }
25027           s/.*/./; q'`/stamp-h$_am_stamp_count
25028  ;;
25029
25030   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25031 echo "$as_me: executing $ac_file commands" >&6;}
25032  ;;
25033   esac
25034
25035
25036   case $ac_file$ac_mode in
25037     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25038   # Strip MF so we end up with the name of the file.
25039   mf=`echo "$mf" | sed -e 's/:.*$//'`
25040   # Check whether this is an Automake generated Makefile or not.
25041   # We used to match only the files named `Makefile.in', but
25042   # some people rename them; so instead we look at the file content.
25043   # Grep'ing the first line is not enough: some people post-process
25044   # each Makefile.in and add a new line on top of each file to say so.
25045   # Grep'ing the whole file is not good either: AIX grep has a line
25046   # limit of 2048, but all sed's we know have understand at least 4000.
25047   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
25048     dirpart=`$as_dirname -- "$mf" ||
25049 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25050          X"$mf" : 'X\(//\)[^/]' \| \
25051          X"$mf" : 'X\(//\)$' \| \
25052          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25053 echo X"$mf" |
25054     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25055             s//\1/
25056             q
25057           }
25058           /^X\(\/\/\)[^/].*/{
25059             s//\1/
25060             q
25061           }
25062           /^X\(\/\/\)$/{
25063             s//\1/
25064             q
25065           }
25066           /^X\(\/\).*/{
25067             s//\1/
25068             q
25069           }
25070           s/.*/./; q'`
25071   else
25072     continue
25073   fi
25074   # Extract the definition of DEPDIR, am__include, and am__quote
25075   # from the Makefile without running `make'.
25076   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25077   test -z "$DEPDIR" && continue
25078   am__include=`sed -n 's/^am__include = //p' < "$mf"`
25079   test -z "am__include" && continue
25080   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25081   # When using ansi2knr, U may be empty or an underscore; expand it
25082   U=`sed -n 's/^U = //p' < "$mf"`
25083   # Find all dependency output files, they are included files with
25084   # $(DEPDIR) in their names.  We invoke sed twice because it is the
25085   # simplest approach to changing $(DEPDIR) to its actual value in the
25086   # expansion.
25087   for file in `sed -n "
25088     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25089        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25090     # Make sure the directory exists.
25091     test -f "$dirpart/$file" && continue
25092     fdir=`$as_dirname -- "$file" ||
25093 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25094          X"$file" : 'X\(//\)[^/]' \| \
25095          X"$file" : 'X\(//\)$' \| \
25096          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25097 echo X"$file" |
25098     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25099             s//\1/
25100             q
25101           }
25102           /^X\(\/\/\)[^/].*/{
25103             s//\1/
25104             q
25105           }
25106           /^X\(\/\/\)$/{
25107             s//\1/
25108             q
25109           }
25110           /^X\(\/\).*/{
25111             s//\1/
25112             q
25113           }
25114           s/.*/./; q'`
25115     { as_dir=$dirpart/$fdir
25116   case $as_dir in #(
25117   -*) as_dir=./$as_dir;;
25118   esac
25119   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25120     as_dirs=
25121     while :; do
25122       case $as_dir in #(
25123       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25124       *) as_qdir=$as_dir;;
25125       esac
25126       as_dirs="'$as_qdir' $as_dirs"
25127       as_dir=`$as_dirname -- "$as_dir" ||
25128 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25129          X"$as_dir" : 'X\(//\)[^/]' \| \
25130          X"$as_dir" : 'X\(//\)$' \| \
25131          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25132 echo X"$as_dir" |
25133     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25134             s//\1/
25135             q
25136           }
25137           /^X\(\/\/\)[^/].*/{
25138             s//\1/
25139             q
25140           }
25141           /^X\(\/\/\)$/{
25142             s//\1/
25143             q
25144           }
25145           /^X\(\/\).*/{
25146             s//\1/
25147             q
25148           }
25149           s/.*/./; q'`
25150       test -d "$as_dir" && break
25151     done
25152     test -z "$as_dirs" || eval "mkdir $as_dirs"
25153   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25154 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25155    { (exit 1); exit 1; }; }; }
25156     # echo "creating $dirpart/$file"
25157     echo '# dummy' > "$dirpart/$file"
25158   done
25159 done
25160  ;;
25161     "libtool":C)
25162
25163     # See if we are running on zsh, and set the options which allow our
25164     # commands through without removal of \ escapes.
25165     if test -n "${ZSH_VERSION+set}" ; then
25166       setopt NO_GLOB_SUBST
25167     fi
25168
25169     cfgfile="${ofile}T"
25170     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25171     $RM "$cfgfile"
25172
25173     cat <<_LT_EOF >> "$cfgfile"
25174 #! $SHELL
25175
25176 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
25177 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
25178 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25179 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
25180 #
25181 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
25182 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
25183 #                 Inc.
25184 #   Written by Gordon Matzigkeit, 1996
25185 #
25186 #   This file is part of GNU Libtool.
25187 #
25188 # GNU Libtool is free software; you can redistribute it and/or
25189 # modify it under the terms of the GNU General Public License as
25190 # published by the Free Software Foundation; either version 2 of
25191 # the License, or (at your option) any later version.
25192 #
25193 # As a special exception to the GNU General Public License,
25194 # if you distribute this file as part of a program or library that
25195 # is built using GNU Libtool, you may include this file under the
25196 # same distribution terms that you use for the rest of that program.
25197 #
25198 # GNU Libtool is distributed in the hope that it will be useful,
25199 # but WITHOUT ANY WARRANTY; without even the implied warranty of
25200 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25201 # GNU General Public License for more details.
25202 #
25203 # You should have received a copy of the GNU General Public License
25204 # along with GNU Libtool; see the file COPYING.  If not, a copy
25205 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
25206 # obtained by writing to the Free Software Foundation, Inc.,
25207 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25208
25209
25210 # The names of the tagged configurations supported by this script.
25211 available_tags=""
25212
25213 # ### BEGIN LIBTOOL CONFIG
25214
25215 # Whether or not to build static libraries.
25216 build_old_libs=$enable_static
25217
25218 # Which release of libtool.m4 was used?
25219 macro_version=$macro_version
25220 macro_revision=$macro_revision
25221
25222 # Whether or not to build shared libraries.
25223 build_libtool_libs=$enable_shared
25224
25225 # What type of objects to build.
25226 pic_mode=$pic_mode
25227
25228 # Whether or not to optimize for fast installation.
25229 fast_install=$enable_fast_install
25230
25231 # Shell to use when invoking shell scripts.
25232 SHELL=$lt_SHELL
25233
25234 # An echo program that protects backslashes.
25235 ECHO=$lt_ECHO
25236
25237 # The host system.
25238 host_alias=$host_alias
25239 host=$host
25240 host_os=$host_os
25241
25242 # The build system.
25243 build_alias=$build_alias
25244 build=$build
25245 build_os=$build_os
25246
25247 # A sed program that does not truncate output.
25248 SED=$lt_SED
25249
25250 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
25251 Xsed="\$SED -e 1s/^X//"
25252
25253 # A grep program that handles long lines.
25254 GREP=$lt_GREP
25255
25256 # An ERE matcher.
25257 EGREP=$lt_EGREP
25258
25259 # A literal string matcher.
25260 FGREP=$lt_FGREP
25261
25262 # A BSD- or MS-compatible name lister.
25263 NM=$lt_NM
25264
25265 # Whether we need soft or hard links.
25266 LN_S=$lt_LN_S
25267
25268 # What is the maximum length of a command?
25269 max_cmd_len=$max_cmd_len
25270
25271 # Object file suffix (normally "o").
25272 objext=$ac_objext
25273
25274 # Executable file suffix (normally "").
25275 exeext=$exeext
25276
25277 # whether the shell understands "unset".
25278 lt_unset=$lt_unset
25279
25280 # turn spaces into newlines.
25281 SP2NL=$lt_lt_SP2NL
25282
25283 # turn newlines into spaces.
25284 NL2SP=$lt_lt_NL2SP
25285
25286 # An object symbol dumper.
25287 OBJDUMP=$lt_OBJDUMP
25288
25289 # Method to check whether dependent libraries are shared objects.
25290 deplibs_check_method=$lt_deplibs_check_method
25291
25292 # Command to use when deplibs_check_method == "file_magic".
25293 file_magic_cmd=$lt_file_magic_cmd
25294
25295 # The archiver.
25296 AR=$lt_AR
25297 AR_FLAGS=$lt_AR_FLAGS
25298
25299 # A symbol stripping program.
25300 STRIP=$lt_STRIP
25301
25302 # Commands used to install an old-style archive.
25303 RANLIB=$lt_RANLIB
25304 old_postinstall_cmds=$lt_old_postinstall_cmds
25305 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25306
25307 # Whether to use a lock for old archive extraction.
25308 lock_old_archive_extraction=$lock_old_archive_extraction
25309
25310 # A C compiler.
25311 LTCC=$lt_CC
25312
25313 # LTCC compiler flags.
25314 LTCFLAGS=$lt_CFLAGS
25315
25316 # Take the output of nm and produce a listing of raw symbols and C names.
25317 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25318
25319 # Transform the output of nm in a proper C declaration.
25320 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25321
25322 # Transform the output of nm in a C name address pair.
25323 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25324
25325 # Transform the output of nm in a C name address pair when lib prefix is needed.
25326 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25327
25328 # The name of the directory that contains temporary libtool files.
25329 objdir=$objdir
25330
25331 # Used to examine libraries when file_magic_cmd begins with "file".
25332 MAGIC_CMD=$MAGIC_CMD
25333
25334 # Must we lock files when doing compilation?
25335 need_locks=$lt_need_locks
25336
25337 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25338 DSYMUTIL=$lt_DSYMUTIL
25339
25340 # Tool to change global to local symbols on Mac OS X.
25341 NMEDIT=$lt_NMEDIT
25342
25343 # Tool to manipulate fat objects and archives on Mac OS X.
25344 LIPO=$lt_LIPO
25345
25346 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
25347 OTOOL=$lt_OTOOL
25348
25349 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25350 OTOOL64=$lt_OTOOL64
25351
25352 # Old archive suffix (normally "a").
25353 libext=$libext
25354
25355 # Shared library suffix (normally ".so").
25356 shrext_cmds=$lt_shrext_cmds
25357
25358 # The commands to extract the exported symbol list from a shared archive.
25359 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25360
25361 # Variables whose values should be saved in libtool wrapper scripts and
25362 # restored at link time.
25363 variables_saved_for_relink=$lt_variables_saved_for_relink
25364
25365 # Do we need the "lib" prefix for modules?
25366 need_lib_prefix=$need_lib_prefix
25367
25368 # Do we need a version for libraries?
25369 need_version=$need_version
25370
25371 # Library versioning type.
25372 version_type=$version_type
25373
25374 # Shared library runtime path variable.
25375 runpath_var=$runpath_var
25376
25377 # Shared library path variable.
25378 shlibpath_var=$shlibpath_var
25379
25380 # Is shlibpath searched before the hard-coded library search path?
25381 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25382
25383 # Format of library name prefix.
25384 libname_spec=$lt_libname_spec
25385
25386 # List of archive names.  First name is the real one, the rest are links.
25387 # The last name is the one that the linker finds with -lNAME
25388 library_names_spec=$lt_library_names_spec
25389
25390 # The coded name of the library, if different from the real name.
25391 soname_spec=$lt_soname_spec
25392
25393 # Permission mode override for installation of shared libraries.
25394 install_override_mode=$lt_install_override_mode
25395
25396 # Command to use after installation of a shared archive.
25397 postinstall_cmds=$lt_postinstall_cmds
25398
25399 # Command to use after uninstallation of a shared archive.
25400 postuninstall_cmds=$lt_postuninstall_cmds
25401
25402 # Commands used to finish a libtool library installation in a directory.
25403 finish_cmds=$lt_finish_cmds
25404
25405 # As "finish_cmds", except a single script fragment to be evaled but
25406 # not shown.
25407 finish_eval=$lt_finish_eval
25408
25409 # Whether we should hardcode library paths into libraries.
25410 hardcode_into_libs=$hardcode_into_libs
25411
25412 # Compile-time system search path for libraries.
25413 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25414
25415 # Run-time system search path for libraries.
25416 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25417
25418 # Whether dlopen is supported.
25419 dlopen_support=$enable_dlopen
25420
25421 # Whether dlopen of programs is supported.
25422 dlopen_self=$enable_dlopen_self
25423
25424 # Whether dlopen of statically linked programs is supported.
25425 dlopen_self_static=$enable_dlopen_self_static
25426
25427 # Commands to strip libraries.
25428 old_striplib=$lt_old_striplib
25429 striplib=$lt_striplib
25430
25431
25432 # The linker used to build libraries.
25433 LD=$lt_LD
25434
25435 # How to create reloadable object files.
25436 reload_flag=$lt_reload_flag
25437 reload_cmds=$lt_reload_cmds
25438
25439 # Commands used to build an old-style archive.
25440 old_archive_cmds=$lt_old_archive_cmds
25441
25442 # A language specific compiler.
25443 CC=$lt_compiler
25444
25445 # Is the compiler the GNU compiler?
25446 with_gcc=$GCC
25447
25448 # Compiler flag to turn off builtin functions.
25449 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25450
25451 # How to pass a linker flag through the compiler.
25452 wl=$lt_lt_prog_compiler_wl
25453
25454 # Additional compiler flags for building library objects.
25455 pic_flag=$lt_lt_prog_compiler_pic
25456
25457 # Compiler flag to prevent dynamic linking.
25458 link_static_flag=$lt_lt_prog_compiler_static
25459
25460 # Does compiler simultaneously support -c and -o options?
25461 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25462
25463 # Whether or not to add -lc for building shared libraries.
25464 build_libtool_need_lc=$archive_cmds_need_lc
25465
25466 # Whether or not to disallow shared libs when runtime libs are static.
25467 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25468
25469 # Compiler flag to allow reflexive dlopens.
25470 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25471
25472 # Compiler flag to generate shared objects directly from archives.
25473 whole_archive_flag_spec=$lt_whole_archive_flag_spec
25474
25475 # Whether the compiler copes with passing no objects directly.
25476 compiler_needs_object=$lt_compiler_needs_object
25477
25478 # Create an old-style archive from a shared archive.
25479 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25480
25481 # Create a temporary old-style archive to link instead of a shared archive.
25482 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25483
25484 # Commands used to build a shared archive.
25485 archive_cmds=$lt_archive_cmds
25486 archive_expsym_cmds=$lt_archive_expsym_cmds
25487
25488 # Commands used to build a loadable module if different from building
25489 # a shared archive.
25490 module_cmds=$lt_module_cmds
25491 module_expsym_cmds=$lt_module_expsym_cmds
25492
25493 # Whether we are building with GNU ld or not.
25494 with_gnu_ld=$lt_with_gnu_ld
25495
25496 # Flag that allows shared libraries with undefined symbols to be built.
25497 allow_undefined_flag=$lt_allow_undefined_flag
25498
25499 # Flag that enforces no undefined symbols.
25500 no_undefined_flag=$lt_no_undefined_flag
25501
25502 # Flag to hardcode \$libdir into a binary during linking.
25503 # This must work even if \$libdir does not exist
25504 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25505
25506 # If ld is used when linking, flag to hardcode \$libdir into a binary
25507 # during linking.  This must work even if \$libdir does not exist.
25508 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
25509
25510 # Whether we need a single "-rpath" flag with a separated argument.
25511 hardcode_libdir_separator=$lt_hardcode_libdir_separator
25512
25513 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25514 # DIR into the resulting binary.
25515 hardcode_direct=$hardcode_direct
25516
25517 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25518 # DIR into the resulting binary and the resulting library dependency is
25519 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
25520 # library is relocated.
25521 hardcode_direct_absolute=$hardcode_direct_absolute
25522
25523 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25524 # into the resulting binary.
25525 hardcode_minus_L=$hardcode_minus_L
25526
25527 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25528 # into the resulting binary.
25529 hardcode_shlibpath_var=$hardcode_shlibpath_var
25530
25531 # Set to "yes" if building a shared library automatically hardcodes DIR
25532 # into the library and all subsequent libraries and executables linked
25533 # against it.
25534 hardcode_automatic=$hardcode_automatic
25535
25536 # Set to yes if linker adds runtime paths of dependent libraries
25537 # to runtime path list.
25538 inherit_rpath=$inherit_rpath
25539
25540 # Whether libtool must link a program against all its dependency libraries.
25541 link_all_deplibs=$link_all_deplibs
25542
25543 # Fix the shell variable \$srcfile for the compiler.
25544 fix_srcfile_path=$lt_fix_srcfile_path
25545
25546 # Set to "yes" if exported symbols are required.
25547 always_export_symbols=$always_export_symbols
25548
25549 # The commands to list exported symbols.
25550 export_symbols_cmds=$lt_export_symbols_cmds
25551
25552 # Symbols that should not be listed in the preloaded symbols.
25553 exclude_expsyms=$lt_exclude_expsyms
25554
25555 # Symbols that must always be exported.
25556 include_expsyms=$lt_include_expsyms
25557
25558 # Commands necessary for linking programs (against libraries) with templates.
25559 prelink_cmds=$lt_prelink_cmds
25560
25561 # Specify filename containing input files.
25562 file_list_spec=$lt_file_list_spec
25563
25564 # How to hardcode a shared library path into an executable.
25565 hardcode_action=$hardcode_action
25566
25567 # ### END LIBTOOL CONFIG
25568
25569 _LT_EOF
25570
25571   case $host_os in
25572   aix3*)
25573     cat <<\_LT_EOF >> "$cfgfile"
25574 # AIX sometimes has problems with the GCC collect2 program.  For some
25575 # reason, if we set the COLLECT_NAMES environment variable, the problems
25576 # vanish in a puff of smoke.
25577 if test "X${COLLECT_NAMES+set}" != Xset; then
25578   COLLECT_NAMES=
25579   export COLLECT_NAMES
25580 fi
25581 _LT_EOF
25582     ;;
25583   esac
25584
25585
25586 ltmain="$ac_aux_dir/ltmain.sh"
25587
25588
25589   # We use sed instead of cat because bash on DJGPP gets confused if
25590   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
25591   # text mode, it properly converts lines to CR/LF.  This bash problem
25592   # is reportedly fixed, but why not run on old versions too?
25593   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
25594     || (rm -f "$cfgfile"; exit 1)
25595
25596   case $xsi_shell in
25597   yes)
25598     cat << \_LT_EOF >> "$cfgfile"
25599
25600 # func_dirname file append nondir_replacement
25601 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
25602 # otherwise set result to NONDIR_REPLACEMENT.
25603 func_dirname ()
25604 {
25605   case ${1} in
25606     */*) func_dirname_result="${1%/*}${2}" ;;
25607     *  ) func_dirname_result="${3}" ;;
25608   esac
25609 }
25610
25611 # func_basename file
25612 func_basename ()
25613 {
25614   func_basename_result="${1##*/}"
25615 }
25616
25617 # func_dirname_and_basename file append nondir_replacement
25618 # perform func_basename and func_dirname in a single function
25619 # call:
25620 #   dirname:  Compute the dirname of FILE.  If nonempty,
25621 #             add APPEND to the result, otherwise set result
25622 #             to NONDIR_REPLACEMENT.
25623 #             value returned in "$func_dirname_result"
25624 #   basename: Compute filename of FILE.
25625 #             value retuned in "$func_basename_result"
25626 # Implementation must be kept synchronized with func_dirname
25627 # and func_basename. For efficiency, we do not delegate to
25628 # those functions but instead duplicate the functionality here.
25629 func_dirname_and_basename ()
25630 {
25631   case ${1} in
25632     */*) func_dirname_result="${1%/*}${2}" ;;
25633     *  ) func_dirname_result="${3}" ;;
25634   esac
25635   func_basename_result="${1##*/}"
25636 }
25637
25638 # func_stripname prefix suffix name
25639 # strip PREFIX and SUFFIX off of NAME.
25640 # PREFIX and SUFFIX must not contain globbing or regex special
25641 # characters, hashes, percent signs, but SUFFIX may contain a leading
25642 # dot (in which case that matches only a dot).
25643 func_stripname ()
25644 {
25645   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
25646   # positional parameters, so assign one to ordinary parameter first.
25647   func_stripname_result=${3}
25648   func_stripname_result=${func_stripname_result#"${1}"}
25649   func_stripname_result=${func_stripname_result%"${2}"}
25650 }
25651
25652 # func_opt_split
25653 func_opt_split ()
25654 {
25655   func_opt_split_opt=${1%%=*}
25656   func_opt_split_arg=${1#*=}
25657 }
25658
25659 # func_lo2o object
25660 func_lo2o ()
25661 {
25662   case ${1} in
25663     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
25664     *)    func_lo2o_result=${1} ;;
25665   esac
25666 }
25667
25668 # func_xform libobj-or-source
25669 func_xform ()
25670 {
25671   func_xform_result=${1%.*}.lo
25672 }
25673
25674 # func_arith arithmetic-term...
25675 func_arith ()
25676 {
25677   func_arith_result=$(( $* ))
25678 }
25679
25680 # func_len string
25681 # STRING may not start with a hyphen.
25682 func_len ()
25683 {
25684   func_len_result=${#1}
25685 }
25686
25687 _LT_EOF
25688     ;;
25689   *) # Bourne compatible functions.
25690     cat << \_LT_EOF >> "$cfgfile"
25691
25692 # func_dirname file append nondir_replacement
25693 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
25694 # otherwise set result to NONDIR_REPLACEMENT.
25695 func_dirname ()
25696 {
25697   # Extract subdirectory from the argument.
25698   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
25699   if test "X$func_dirname_result" = "X${1}"; then
25700     func_dirname_result="${3}"
25701   else
25702     func_dirname_result="$func_dirname_result${2}"
25703   fi
25704 }
25705
25706 # func_basename file
25707 func_basename ()
25708 {
25709   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
25710 }
25711
25712
25713 # func_stripname prefix suffix name
25714 # strip PREFIX and SUFFIX off of NAME.
25715 # PREFIX and SUFFIX must not contain globbing or regex special
25716 # characters, hashes, percent signs, but SUFFIX may contain a leading
25717 # dot (in which case that matches only a dot).
25718 # func_strip_suffix prefix name
25719 func_stripname ()
25720 {
25721   case ${2} in
25722     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
25723     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
25724   esac
25725 }
25726
25727 # sed scripts:
25728 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
25729 my_sed_long_arg='1s/^-[^=]*=//'
25730
25731 # func_opt_split
25732 func_opt_split ()
25733 {
25734   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
25735   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
25736 }
25737
25738 # func_lo2o object
25739 func_lo2o ()
25740 {
25741   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
25742 }
25743
25744 # func_xform libobj-or-source
25745 func_xform ()
25746 {
25747   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
25748 }
25749
25750 # func_arith arithmetic-term...
25751 func_arith ()
25752 {
25753   func_arith_result=`expr "$@"`
25754 }
25755
25756 # func_len string
25757 # STRING may not start with a hyphen.
25758 func_len ()
25759 {
25760   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
25761 }
25762
25763 _LT_EOF
25764 esac
25765
25766 case $lt_shell_append in
25767   yes)
25768     cat << \_LT_EOF >> "$cfgfile"
25769
25770 # func_append var value
25771 # Append VALUE to the end of shell variable VAR.
25772 func_append ()
25773 {
25774   eval "$1+=\$2"
25775 }
25776 _LT_EOF
25777     ;;
25778   *)
25779     cat << \_LT_EOF >> "$cfgfile"
25780
25781 # func_append var value
25782 # Append VALUE to the end of shell variable VAR.
25783 func_append ()
25784 {
25785   eval "$1=\$$1\$2"
25786 }
25787
25788 _LT_EOF
25789     ;;
25790   esac
25791
25792
25793   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
25794     || (rm -f "$cfgfile"; exit 1)
25795
25796   mv -f "$cfgfile" "$ofile" ||
25797     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25798   chmod +x "$ofile"
25799
25800  ;;
25801
25802   esac
25803 done # for ac_tag
25804
25805
25806 { (exit 0); exit 0; }
25807 _ACEOF
25808 chmod +x $CONFIG_STATUS
25809 ac_clean_files=$ac_clean_files_save
25810
25811
25812 # configure is writing to config.log, and then calls config.status.
25813 # config.status does its own redirection, appending to config.log.
25814 # Unfortunately, on DOS this fails, as config.log is still kept open
25815 # by configure, so config.status won't be able to write to it; its
25816 # output is simply discarded.  So we exec the FD to /dev/null,
25817 # effectively closing config.log, so it can be properly (re)opened and
25818 # appended to by config.status.  When coming back to configure, we
25819 # need to make the FD available again.
25820 if test "$no_create" != yes; then
25821   ac_cs_success=:
25822   ac_config_status_args=
25823   test "$silent" = yes &&
25824     ac_config_status_args="$ac_config_status_args --quiet"
25825   exec 5>/dev/null
25826   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25827   exec 5>>config.log
25828   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25829   # would make configure fail if this is the last instruction.
25830   $ac_cs_success || { (exit 1); exit 1; }
25831 fi
25832
25833 #
25834 # CONFIG_SUBDIRS section.
25835 #
25836 if test "$no_recursion" != yes; then
25837
25838   # Remove --cache-file and --srcdir arguments so they do not pile up.
25839   ac_sub_configure_args=
25840   ac_prev=
25841   eval "set x $ac_configure_args"
25842   shift
25843   for ac_arg
25844   do
25845     if test -n "$ac_prev"; then
25846       ac_prev=
25847       continue
25848     fi
25849     case $ac_arg in
25850     -cache-file | --cache-file | --cache-fil | --cache-fi \
25851     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25852       ac_prev=cache_file ;;
25853     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25854     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25855     | --c=*)
25856       ;;
25857     --config-cache | -C)
25858       ;;
25859     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25860       ac_prev=srcdir ;;
25861     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25862       ;;
25863     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25864       ac_prev=prefix ;;
25865     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25866       ;;
25867     *)
25868       case $ac_arg in
25869       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25870       esac
25871       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
25872     esac
25873   done
25874
25875   # Always prepend --prefix to ensure using the same prefix
25876   # in subdir configurations.
25877   ac_arg="--prefix=$prefix"
25878   case $ac_arg in
25879   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25880   esac
25881   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
25882
25883   # Pass --silent
25884   if test "$silent" = yes; then
25885     ac_sub_configure_args="--silent $ac_sub_configure_args"
25886   fi
25887
25888   ac_popdir=`pwd`
25889   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25890
25891     # Do not complain, so a configure script can configure whichever
25892     # parts of a large source tree are present.
25893     test -d "$srcdir/$ac_dir" || continue
25894
25895     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
25896     echo "$as_me:$LINENO: $ac_msg" >&5
25897     echo "$ac_msg" >&6
25898     { as_dir="$ac_dir"
25899   case $as_dir in #(
25900   -*) as_dir=./$as_dir;;
25901   esac
25902   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25903     as_dirs=
25904     while :; do
25905       case $as_dir in #(
25906       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25907       *) as_qdir=$as_dir;;
25908       esac
25909       as_dirs="'$as_qdir' $as_dirs"
25910       as_dir=`$as_dirname -- "$as_dir" ||
25911 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25912          X"$as_dir" : 'X\(//\)[^/]' \| \
25913          X"$as_dir" : 'X\(//\)$' \| \
25914          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25915 echo X"$as_dir" |
25916     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25917             s//\1/
25918             q
25919           }
25920           /^X\(\/\/\)[^/].*/{
25921             s//\1/
25922             q
25923           }
25924           /^X\(\/\/\)$/{
25925             s//\1/
25926             q
25927           }
25928           /^X\(\/\).*/{
25929             s//\1/
25930             q
25931           }
25932           s/.*/./; q'`
25933       test -d "$as_dir" && break
25934     done
25935     test -z "$as_dirs" || eval "mkdir $as_dirs"
25936   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25937 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25938    { (exit 1); exit 1; }; }; }
25939     ac_builddir=.
25940
25941 case "$ac_dir" in
25942 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25943 *)
25944   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25945   # A ".." for each directory in $ac_dir_suffix.
25946   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25947   case $ac_top_builddir_sub in
25948   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25949   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25950   esac ;;
25951 esac
25952 ac_abs_top_builddir=$ac_pwd
25953 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25954 # for backward compatibility:
25955 ac_top_builddir=$ac_top_build_prefix
25956
25957 case $srcdir in
25958   .)  # We are building in place.
25959     ac_srcdir=.
25960     ac_top_srcdir=$ac_top_builddir_sub
25961     ac_abs_top_srcdir=$ac_pwd ;;
25962   [\\/]* | ?:[\\/]* )  # Absolute name.
25963     ac_srcdir=$srcdir$ac_dir_suffix;
25964     ac_top_srcdir=$srcdir
25965     ac_abs_top_srcdir=$srcdir ;;
25966   *) # Relative name.
25967     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25968     ac_top_srcdir=$ac_top_build_prefix$srcdir
25969     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25970 esac
25971 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25972
25973
25974     cd "$ac_dir"
25975
25976     # Check for guested configure; otherwise get Cygnus style configure.
25977     if test -f "$ac_srcdir/configure.gnu"; then
25978       ac_sub_configure=$ac_srcdir/configure.gnu
25979     elif test -f "$ac_srcdir/configure"; then
25980       ac_sub_configure=$ac_srcdir/configure
25981     elif test -f "$ac_srcdir/configure.in"; then
25982       # This should be Cygnus configure.
25983       ac_sub_configure=$ac_aux_dir/configure
25984     else
25985       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25986 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25987       ac_sub_configure=
25988     fi
25989
25990     # The recursion is here.
25991     if test -n "$ac_sub_configure"; then
25992       # Make the cache file name correct relative to the subdirectory.
25993       case $cache_file in
25994       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25995       *) # Relative name.
25996         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
25997       esac
25998
25999       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26000 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26001       # The eval makes quoting arguments work.
26002       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
26003            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
26004         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26005 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26006    { (exit 1); exit 1; }; }
26007     fi
26008
26009     cd "$ac_popdir"
26010   done
26011 fi
26012
26013
26014 echo Configuration Complete.  Type \'make\' to build.