2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
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
230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
231 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
234 test -z "$as_dir" && as_dir=.
237 for as_base in sh bash ksh sh5; do
238 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
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
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+"$@"}'='"$@"'
257 case `(set -o) 2>/dev/null` in
258 *posix*) set -o posix ;;
267 CONFIG_SHELL=$as_shell
269 if { "$as_shell" 2> /dev/null <<\_ASEOF
270 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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+"$@"}'='"$@"'
278 case `(set -o) 2>/dev/null` in
279 *posix*) set -o posix ;;
295 as_func_ret_success () {
298 as_func_ret_failure () {
303 if as_func_success; then
307 echo as_func_success failed.
310 if as_func_failure; then
312 echo as_func_failure succeeded.
315 if as_func_ret_success; then
319 echo as_func_ret_success failed.
322 if as_func_ret_failure; then
324 echo as_func_ret_failure succeeded.
327 if ( set x; as_func_ret_success y && test x = "$1" ); then
331 echo positional parameters were not saved.
334 test $exitcode = 0) || { (exit 1); exit 1; }
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; }
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; }
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
365 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
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; }
384 (eval "as_func_return () {
393 as_func_ret_success () {
396 as_func_ret_failure () {
401 if as_func_success; then
405 echo as_func_success failed.
408 if as_func_failure; then
410 echo as_func_failure succeeded.
413 if as_func_ret_success; then
417 echo as_func_ret_success failed.
420 if as_func_ret_failure; then
422 echo as_func_ret_failure succeeded.
425 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 echo positional parameters were not saved.
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
443 test "x$as_lineno_1" != "x$as_lineno_2" &&
444 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
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
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. :-)
467 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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; }; }
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).
479 # Exit status is that of the last command.
484 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
490 ECHO_C= ECHO_N= ECHO_T=
494 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
501 if expr a : '\(a\)' >/dev/null 2>&1 &&
502 test "X`expr 00001 : '.*\(...\)'`" = X001; then
508 rm -f conf$$ conf$$.exe conf$$.file
509 if test -d conf$$.dir; then
510 rm -f conf$$.dir/conf$$.file
516 if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
524 elif ln conf$$.file conf$$ 2>/dev/null; then
529 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
530 rmdir conf$$.dir 2>/dev/null
532 if mkdir -p . 2>/dev/null; then
535 test -d ./-p && rmdir ./-p
539 if test -x / >/dev/null 2>&1; then
542 if ls -dL / >/dev/null 2>&1; then
549 if test -d "$1"; then
555 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
556 ???[sx]*):;;*)false;;esac;fi
560 as_executable_p=$as_test_x
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'"
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'"
569 SHELL=${CONFIG_SHELL-/bin/sh}
572 exec 7<&0 </dev/null 6>&1
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`
582 ac_default_prefix=/usr/local
584 ac_config_libobj_dir=.
590 SHELL=${CONFIG_SHELL-/bin/sh}
592 # Identity of this package.
599 ac_unique_file="lib/saslint.h"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
613 # ifdef HAVE_STDLIB_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
645 program_transform_name
699 INSTALL_STRIP_PROGRAM
757 SASL_DB_BACKEND_STATIC
761 NO_SASL_DB_MANS_FALSE
798 SASL_UTIL_HEADERS_EXTRA
811 ac_precious_vars='build_alias
820 ac_subdirs_all='saslauthd'
822 # Initialize some variables set by options.
824 ac_init_version=false
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
834 program_transform_name=s,x,x,
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'
864 libdir='${exec_prefix}/lib'
865 localedir='${datarootdir}/locale'
866 mandir='${datarootdir}/man'
872 # If the previous option needs an argument, assign it.
873 if test -n "$ac_prev"; then
874 eval $ac_prev=\$ac_option
880 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884 # Accept the important Cygnus configure options, so we can diagnose typos.
886 case $ac_dashdash$ac_option in
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 -build | --build | --buil | --bui | --bu)
896 ac_prev=build_alias ;;
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898 build_alias=$ac_optarg ;;
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 ;;
908 cache_file=config.cache ;;
910 -datadir | --datadir | --datadi | --datad)
912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
913 datadir=$ac_optarg ;;
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 ;;
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 ;;
931 -docdir | --docdir | --docdi | --doc | --do)
933 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
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 ;;
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 ;;
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
963 -help | --help | --hel | --he | -h)
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 ;;
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 htmldir=$ac_optarg ;;
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 ;;
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
993 -libdir | --libdir | --libdi | --libd)
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
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 ;;
1005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
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 ;;
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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 ;;
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1084 -psdir | --psdir | --psdi | --psd | --ps)
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 sbindir=$ac_optarg ;;
1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101 | --sharedst | --shareds | --shared | --share | --shar \
1103 ac_prev=sharedstatedir ;;
1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 sharedstatedir=$ac_optarg ;;
1110 -site | --site | --sit)
1112 -site=* | --site=* | --sit=*)
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118 srcdir=$ac_optarg ;;
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 ;;
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 ;;
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
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 ;;
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 ;;
1157 # Obsolete; use --with-x.
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 ;;
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 ;;
1174 -*) { echo "$as_me: error: unrecognized option: $ac_option
1175 Try \`$0 --help' for more information." >&2
1176 { (exit 1); exit 1; }; }
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 ;;
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}
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; }; }
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
1211 eval ac_val=\$$ac_var
1213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1217 { (exit 1); exit 1; }; }
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.
1225 target=$target_alias
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
1239 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241 test "$silent" = yes && exec 6>/dev/null
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; }; }
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 ||
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1286 ac_srcdir_defaulted=no
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; }; }
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1296 { (exit 1); exit 1; }; }
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
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.
1306 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
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}
1316 # Report the --help message.
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.
1322 \`configure' configures this package to adapt to many kinds of systems.
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
1329 Defaults for the options are specified in brackets.
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 \`..']
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
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'.
1353 For better control, use the options below.
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]
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
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]
1391 if test -n "$ac_init_help"; then
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]
1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1433 --with-pic try to use only PIC/non-PIC objects [default=use
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]
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>
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.
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
1492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
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/ ;;
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
1508 .) # We are building in place.
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 ;;
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 ;;
1521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523 cd "$ac_dir" || { ac_status=$?; continue; }
1524 # Check for guested configure.
1525 if test -f "$ac_srcdir/configure.gnu"; then
1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528 elif test -f "$ac_srcdir/configure"; then
1530 $SHELL "$ac_srcdir/configure" --help=recursive
1532 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534 cd "$ac_pwd" || { ac_status=$?; break; }
1538 test -n "$ac_init_help" && exit $ac_status
1539 if $ac_init_version; then
1542 generated by GNU Autoconf 2.61
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.
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.
1555 It was created by $as_me, which was
1556 generated by GNU Autoconf 2.61. Invocation command line was
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`
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`
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`
1587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591 test -z "$as_dir" && as_dir=.
1592 echo "PATH: $as_dir"
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.
1616 ac_must_keep_next=false
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)
1627 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1630 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
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.
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 ;;
1645 -* ) ac_must_keep_next=true ;;
1648 ac_configure_args="$ac_configure_args '$ac_arg'"
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; }
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.
1667 ## ---------------- ##
1668 ## Cache variables. ##
1669 ## ---------------- ##
1672 # The following way of writing the cache mishandles newlines in values,
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
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;} ;;
1683 _ | IFS | as_nl) ;; #(
1684 *) $as_unset $ac_var ;;
1689 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1690 *${as_nl}ac_space=\ *)
1692 "s/'\''/'\''\\\\'\'''\''/g;
1693 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1696 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1704 ## ----------------- ##
1705 ## Output variables. ##
1706 ## ----------------- ##
1709 for ac_var in $ac_subst_vars
1711 eval ac_val=\$$ac_var
1713 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1715 echo "$ac_var='\''$ac_val'\''"
1719 if test -n "$ac_subst_files"; then
1721 ## ------------------- ##
1722 ## File substitutions. ##
1723 ## ------------------- ##
1726 for ac_var in $ac_subst_files
1728 eval ac_val=\$$ac_var
1730 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1732 echo "$ac_var='\''$ac_val'\''"
1737 if test -s confdefs.h; then
1747 test "$ac_signal" != 0 &&
1748 echo "$as_me: caught signal $ac_signal"
1749 echo "$as_me: exit $exit_status"
1751 rm -f core *.core core.conftest.* &&
1752 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1755 for ac_signal in 1 2 13 15; do
1756 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1760 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1761 rm -f -r conftest* confdefs.h
1763 # Predefined preprocessor variables.
1765 cat >>confdefs.h <<_ACEOF
1766 #define PACKAGE_NAME "$PACKAGE_NAME"
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_STRING "$PACKAGE_STRING"
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
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"
1797 set x "$ac_default_prefix/share/config.site" \
1798 "$ac_default_prefix/etc/config.site"
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
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;}
1818 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1819 *) . "./$cache_file";;
1823 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1824 echo "$as_me: creating cache $cache_file" >&6;}
1828 # Check that the precious variables saved in the cache have kept the same
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
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=: ;;
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=: ;;
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=:
1857 # Pass precious variables to config.status.
1858 if test "$ac_new_set" = set; then
1860 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1861 *) ac_arg=$ac_var=$ac_new_val ;;
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'" ;;
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; }; }
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
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;}
1911 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1912 *) . "./$cache_file";;
1916 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1917 echo "$as_me: creating cache $cache_file" >&6;}
1924 for ac_dir in config "$srcdir"/config; do
1925 if test -f "$ac_dir/install-sh"; then
1927 ac_install_sh="$ac_aux_dir/install-sh -c"
1929 elif test -f "$ac_dir/install.sh"; then
1931 ac_install_sh="$ac_aux_dir/install.sh -c"
1933 elif test -f "$ac_dir/shtool"; then
1935 ac_install_sh="$ac_aux_dir/shtool install -c"
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; }; }
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.
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; }; }
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
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; }; }
1978 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1979 echo "${ECHO_T}$ac_cv_build" >&6; }
1980 case $ac_cv_build in
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; }; };;
1987 ac_save_IFS=$IFS; IFS='-'
1993 # Remember, the first character of IFS is used to create $*,
1994 # except with old shells:
1997 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
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
2005 if test "x$host_alias" = x; then
2006 ac_cv_host=$ac_cv_build
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; }; }
2015 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2016 echo "${ECHO_T}$ac_cv_host" >&6; }
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; }; };;
2024 ac_save_IFS=$IFS; IFS='-'
2030 # Remember, the first character of IFS is used to create $*,
2031 # except with old shells:
2034 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
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
2042 if test "x$target_alias" = x; then
2043 ac_cv_target=$ac_cv_host
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; }; }
2052 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2053 echo "${ECHO_T}$ac_cv_target" >&6; }
2054 case $ac_cv_target in
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; }; };;
2060 target=$ac_cv_target
2061 ac_save_IFS=$IFS; IFS='-'
2067 # Remember, the first character of IFS is used to create $*,
2068 # except with old shells:
2071 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
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" = \
2079 program_prefix=${target_alias}-
2081 am__api_version='1.10'
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
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
2102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106 test -z "$as_dir" && as_dir=.
2107 # Account for people who put trailing slashes in PATH elements.
2109 ./ | .// | /cC/* | \
2110 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2111 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
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
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.
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.
2129 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2142 if test "${ac_cv_path_install+set}" = set; then
2143 INSTALL=$ac_cv_path_install
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
2152 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2153 echo "${ECHO_T}$INSTALL" >&6; }
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}'
2159 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2161 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
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; }
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
2174 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2175 if test "$*" = "X"; then
2177 set X `ls -t $srcdir/configure conftest.file`
2180 if test "$*" != "X $srcdir/configure conftest.file" \
2181 && test "$*" != "X conftest.file $srcdir/configure"; then
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; }; }
2194 test "$2" = conftest.file
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; }; }
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,$//
2218 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2221 # expand $ac_aux_dir to an absolute path
2222 am_aux_dir=`cd $ac_aux_dir && pwd`
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 "
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;}
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
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
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
2262 if test "${ac_cv_path_mkdir+set}" = set; then
2263 MKDIR_P="$ac_cv_path_mkdir -p"
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"
2273 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2274 echo "${ECHO_T}$MKDIR_P" >&6; }
2278 [\\/$]* | ?:[\\/]*) ;;
2279 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2282 for ac_prog in gawk mawk nawk awk
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
2291 if test -n "$AWK"; then
2292 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2312 if test -n "$AWK"; then
2313 { echo "$as_me:$LINENO: result: $AWK" >&5
2314 echo "${ECHO_T}$AWK" >&6; }
2316 { echo "$as_me:$LINENO: result: no" >&5
2317 echo "${ECHO_T}no" >&6; }
2321 test -n "$AWK" && break
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
2330 cat >conftest.make <<\_ACEOF
2333 @echo '@@@%%%=$(MAKE)=@@@%%%'
2335 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2336 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2338 eval ac_cv_prog_make_${ac_make}_set=yes;;
2340 eval ac_cv_prog_make_${ac_make}_set=no;;
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; }
2349 { echo "$as_me:$LINENO: result: no" >&5
2350 echo "${ECHO_T}no" >&6; }
2351 SET_MAKE="MAKE=${MAKE-make}"
2354 rm -rf .tst 2>/dev/null
2355 mkdir .tst 2>/dev/null
2356 if test -d .tst; then
2361 rmdir .tst 2>/dev/null
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; }; }
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'
2385 # Define the identity of the package.
2390 cat >>confdefs.h <<_ACEOF
2391 #define PACKAGE "$PACKAGE"
2395 cat >>confdefs.h <<_ACEOF
2396 #define VERSION "$VERSION"
2399 # Some tools Automake needs.
2401 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2404 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2407 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2410 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2413 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2415 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
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
2430 if test -n "$STRIP"; then
2431 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
2455 { echo "$as_me:$LINENO: result: no" >&5
2456 echo "${ECHO_T}no" >&6; }
2461 if test -z "$ac_cv_prog_STRIP"; then
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
2470 if test -n "$ac_ct_STRIP"; then
2471 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
2495 { echo "$as_me:$LINENO: result: no" >&5
2496 echo "${ECHO_T}no" >&6; }
2499 if test "x$ac_ct_STRIP" = x; then
2502 case $cross_compiling:$ac_tool_warned in
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 ;;
2515 STRIP="$ac_cv_prog_STRIP"
2519 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2521 # We need awk for the "check" target. The system "awk" is bad on
2523 # Always define AMTAR for backward compatibility.
2525 AMTAR=${AMTAR-"${am_missing_run}tar"}
2527 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2535 ACLOCAL="$ACLOCAL -I \$(top_srcdir)/cmulocal"
2538 # and include our config dir scripts
2539 ACLOCAL="$ACLOCAL -I \$(top_srcdir)/config"
2543 # Check whether --enable-cmulocal was given.
2544 if test "${enable_cmulocal+set}" = set; then
2545 enableval=$enable_cmulocal;
2551 # Check whether --enable-sample was given.
2552 if test "${enable_sample+set}" = set; then
2553 enableval=$enable_sample; enable_sample=yes
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
2570 if test -n "$CC"; then
2571 ac_cv_prog_CC="$CC" # Let the user override the test.
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2591 if test -n "$CC"; then
2592 { echo "$as_me:$LINENO: result: $CC" >&5
2593 echo "${ECHO_T}$CC" >&6; }
2595 { echo "$as_me:$LINENO: result: no" >&5
2596 echo "${ECHO_T}no" >&6; }
2601 if test -z "$ac_cv_prog_CC"; then
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
2610 if test -n "$ac_ct_CC"; then
2611 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
2635 { echo "$as_me:$LINENO: result: no" >&5
2636 echo "${ECHO_T}no" >&6; }
2639 if test "x$ac_ct_CC" = x; then
2642 case $cross_compiling:$ac_tool_warned in
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 ;;
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
2667 if test -n "$CC"; then
2668 ac_cv_prog_CC="$CC" # Let the user override the test.
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2688 if test -n "$CC"; then
2689 { echo "$as_me:$LINENO: result: $CC" >&5
2690 echo "${ECHO_T}$CC" >&6; }
2692 { echo "$as_me:$LINENO: result: no" >&5
2693 echo "${ECHO_T}no" >&6; }
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
2707 if test -n "$CC"; then
2708 ac_cv_prog_CC="$CC" # Let the user override the test.
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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
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.
2739 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2745 if test -n "$CC"; then
2746 { echo "$as_me:$LINENO: result: $CC" >&5
2747 echo "${ECHO_T}$CC" >&6; }
2749 { echo "$as_me:$LINENO: result: no" >&5
2750 echo "${ECHO_T}no" >&6; }
2755 if test -z "$CC"; then
2756 if test -n "$ac_tool_prefix"; then
2757 for ac_prog in cl.exe
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
2766 if test -n "$CC"; then
2767 ac_cv_prog_CC="$CC" # Let the user override the test.
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2787 if test -n "$CC"; then
2788 { echo "$as_me:$LINENO: result: $CC" >&5
2789 echo "${ECHO_T}$CC" >&6; }
2791 { echo "$as_me:$LINENO: result: no" >&5
2792 echo "${ECHO_T}no" >&6; }
2796 test -n "$CC" && break
2799 if test -z "$CC"; then
2801 for ac_prog in cl.exe
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
2810 if test -n "$ac_ct_CC"; then
2811 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
2835 { echo "$as_me:$LINENO: result: no" >&5
2836 echo "${ECHO_T}no" >&6; }
2840 test -n "$ac_ct_CC" && break
2843 if test "x$ac_ct_CC" = x; then
2846 case $cross_compiling:$ac_tool_warned in
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 ;;
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; }; }
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"
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878 (eval "$ac_compiler --version >&5") 2>&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }
2882 { (ac_try="$ac_compiler -v >&5"
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_compiler -v >&5") 2>&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }
2892 { (ac_try="$ac_compiler -V >&5"
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_compiler -V >&5") 2>&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }
2903 cat >conftest.$ac_ext <<_ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
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
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[^ ]*//'`
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'
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.
2936 for ac_file in $ac_files
2939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2940 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2945 if { (ac_try="$ac_link_default"
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2951 (eval "$ac_link_default") 2>&5
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
2960 for ac_file in $ac_files ''
2962 test -f "$ac_file" || continue
2964 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2967 # We found the default executable, but exeext='' is most
2971 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2973 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
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
2985 test "$ac_cv_exeext" = no && ac_cv_exeext=
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
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; }; }
3004 ac_exeext=$ac_cv_exeext
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;;
3018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019 (eval "$ac_try") 2>&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }; }; then
3025 if test "$cross_compiling" = maybe; then
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; }; }
3038 { echo "$as_me:$LINENO: result: yes" >&5
3039 echo "${ECHO_T}yes" >&6; }
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; }
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"
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_link") 2>&5
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
3066 for ac_file in conftest.exe conftest conftest.*; do
3067 test -f "$ac_file" || continue
3069 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3070 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
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; }; }
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; }
3087 rm -f conftest.$ac_ext
3088 EXEEXT=$ac_cv_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
3095 cat >conftest.$ac_ext <<_ACEOF
3098 cat confdefs.h >>conftest.$ac_ext
3099 cat >>conftest.$ac_ext <<_ACEOF
3100 /* end confdefs.h. */
3110 rm -f conftest.o conftest.obj
3111 if { (ac_try="$ac_compile"
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117 (eval "$ac_compile") 2>&5
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;
3124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3125 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3130 echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
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; }; }
3140 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3142 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3143 echo "${ECHO_T}$ac_cv_objext" >&6; }
3144 OBJEXT=$ac_cv_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
3151 cat >conftest.$ac_ext <<_ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h. */
3169 rm -f conftest.$ac_objext
3170 if { (ac_try="$ac_compile"
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176 (eval "$ac_compile") 2>conftest.er1
3178 grep -v '^ *+' conftest.er1 >conftest.err
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
3188 echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195 ac_cv_c_compiler_gnu=$ac_compiler_gnu
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
3208 ac_save_c_werror_flag=$ac_c_werror_flag
3209 ac_c_werror_flag=yes
3212 cat >conftest.$ac_ext <<_ACEOF
3215 cat confdefs.h >>conftest.$ac_ext
3216 cat >>conftest.$ac_ext <<_ACEOF
3217 /* end confdefs.h. */
3227 rm -f conftest.$ac_objext
3228 if { (ac_try="$ac_compile"
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3234 (eval "$ac_compile") 2>conftest.er1
3236 grep -v '^ *+' conftest.er1 >conftest.err
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
3246 echo "$as_me: failed program was:" >&5
3247 sed 's/^/| /' conftest.$ac_ext >&5
3250 cat >conftest.$ac_ext <<_ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h. */
3265 rm -f conftest.$ac_objext
3266 if { (ac_try="$ac_compile"
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272 (eval "$ac_compile") 2>conftest.er1
3274 grep -v '^ *+' conftest.er1 >conftest.err
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
3284 echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3287 ac_c_werror_flag=$ac_save_c_werror_flag
3289 cat >conftest.$ac_ext <<_ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3304 rm -f conftest.$ac_objext
3305 if { (ac_try="$ac_compile"
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3311 (eval "$ac_compile") 2>conftest.er1
3313 grep -v '^ *+' conftest.er1 >conftest.err
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
3323 echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336 ac_c_werror_flag=$ac_save_c_werror_flag
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
3349 if test "$GCC" = yes; then
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
3360 ac_cv_prog_cc_c89=no
3362 cat >conftest.$ac_ext <<_ACEOF
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.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)
3381 static char *f (char * (*g) (char **, int), char **p, ...)
3386 s = g (p, va_arg (v,int));
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];
3400 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3401 inside strings and character constants. */
3403 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
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);
3414 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3419 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3420 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3422 CC="$ac_save_CC $ac_arg"
3423 rm -f conftest.$ac_objext
3424 if { (ac_try="$ac_compile"
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3430 (eval "$ac_compile") 2>conftest.er1
3432 grep -v '^ *+' conftest.er1 >conftest.err
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
3442 echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.$ac_ext >&5
3448 rm -f core conftest.err conftest.$ac_objext
3449 test "x$ac_cv_prog_cc_c89" != "xno" && break
3451 rm -f conftest.$ac_ext
3456 case "x$ac_cv_prog_cc_c89" in
3458 { echo "$as_me:$LINENO: result: none needed" >&5
3459 echo "${ECHO_T}none needed" >&6; } ;;
3461 { echo "$as_me:$LINENO: result: unsupported" >&5
3462 echo "${ECHO_T}unsupported" >&6; } ;;
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; } ;;
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"
3477 ac_config_commands="$ac_config_commands depfiles"
3480 am_make=${MAKE-make}
3481 cat > confinc << '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; }
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
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
3515 { echo "$as_me:$LINENO: result: $_am_result" >&5
3516 echo "${ECHO_T}$_am_result" >&6; }
3517 rm -f confinc confmf
3519 # Check whether --enable-dependency-tracking was given.
3520 if test "${enable_dependency_tracking+set}" = set; then
3521 enableval=$enable_dependency_tracking;
3524 if test "x$enable_dependency_tracking" != xno; then
3525 am_depcomp="$ac_aux_dir/depcomp"
3528 if test "x$enable_dependency_tracking" != xno; then
3538 depcc="$CC" am_compiler_list=
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
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
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
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
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`
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.
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.
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
3583 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
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
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
3627 am_cv_CC_dependencies_compiler_type=none
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
3636 test "x$enable_dependency_tracking" != xno \
3637 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3639 am__fastdepCC_FALSE='#'
3641 am__fastdepCC_TRUE='#'
3642 am__fastdepCC_FALSE=
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
3657 if test -z "$CPP"; then
3658 if test "${ac_cv_prog_CPP+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3661 # Double quotes because CPP needs to be expanded
3662 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3665 for ac_c_preproc_warn_flag in '' yes
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
3676 cat confdefs.h >>conftest.$ac_ext
3677 cat >>conftest.$ac_ext <<_ACEOF
3678 /* end confdefs.h. */
3680 # include <limits.h>
3682 # include <assert.h>
3686 if { (ac_try="$ac_cpp conftest.$ac_ext"
3688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689 *) ac_try_echo=$ac_try;;
3691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3694 grep -v '^ *+' conftest.er1 >conftest.err
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
3704 echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.$ac_ext >&5
3707 # Broken: fails on valid input.
3711 rm -f conftest.err conftest.$ac_ext
3713 # OK, works on sane cases. Now check whether nonexistent headers
3714 # can be detected and how.
3715 cat >conftest.$ac_ext <<_ACEOF
3718 cat confdefs.h >>conftest.$ac_ext
3719 cat >>conftest.$ac_ext <<_ACEOF
3720 /* end confdefs.h. */
3721 #include <ac_nonexistent.h>
3723 if { (ac_try="$ac_cpp conftest.$ac_ext"
3725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726 *) ac_try_echo=$ac_try;;
3728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3731 grep -v '^ *+' conftest.er1 >conftest.err
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
3739 # Broken: success on invalid input.
3742 echo "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.$ac_ext >&5
3745 # Passes both tests.
3750 rm -f conftest.err conftest.$ac_ext
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
3767 { echo "$as_me:$LINENO: result: $CPP" >&5
3768 echo "${ECHO_T}$CPP" >&6; }
3770 for ac_c_preproc_warn_flag in '' yes
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
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h. */
3785 # include <limits.h>
3787 # include <assert.h>
3791 if { (ac_try="$ac_cpp conftest.$ac_ext"
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3799 grep -v '^ *+' conftest.er1 >conftest.err
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
3809 echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3812 # Broken: fails on valid input.
3816 rm -f conftest.err conftest.$ac_ext
3818 # OK, works on sane cases. Now check whether nonexistent headers
3819 # can be detected and how.
3820 cat >conftest.$ac_ext <<_ACEOF
3823 cat confdefs.h >>conftest.$ac_ext
3824 cat >>conftest.$ac_ext <<_ACEOF
3825 /* end confdefs.h. */
3826 #include <ac_nonexistent.h>
3828 if { (ac_try="$ac_cpp conftest.$ac_ext"
3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831 *) ac_try_echo=$ac_try;;
3833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3836 grep -v '^ *+' conftest.er1 >conftest.err
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
3844 # Broken: success on invalid input.
3847 echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3850 # Passes both tests.
3855 rm -f conftest.err conftest.$ac_ext
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
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; }; }
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
3876 for ac_prog in gawk mawk nawk awk
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
3885 if test -n "$AWK"; then
3886 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
3906 if test -n "$AWK"; then
3907 { echo "$as_me:$LINENO: result: $AWK" >&5
3908 echo "${ECHO_T}$AWK" >&6; }
3910 { echo "$as_me:$LINENO: result: no" >&5
3911 echo "${ECHO_T}no" >&6; }
3915 test -n "$AWK" && break
3918 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3919 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3921 if test "$LN_S" = "ln -s"; then
3922 { echo "$as_me:$LINENO: result: yes" >&5
3923 echo "${ECHO_T}yes" >&6; }
3925 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3926 echo "${ECHO_T}no, using $LN_S" >&6; }
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
3935 cat >conftest.make <<\_ACEOF
3938 @echo '@@@%%%=$(MAKE)=@@@%%%'
3940 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3941 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3943 eval ac_cv_prog_make_${ac_make}_set=yes;;
3945 eval ac_cv_prog_make_${ac_make}_set=no;;
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; }
3954 { echo "$as_me:$LINENO: result: no" >&5
3955 echo "${ECHO_T}no" >&6; }
3956 SET_MAKE="MAKE=${MAKE-make}"
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
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
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 test -z "$as_dir" && as_dir=.
3983 # Account for people who put trailing slashes in PATH elements.
3985 ./ | .// | /cC/* | \
3986 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3987 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
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
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.
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.
4005 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4018 if test "${ac_cv_path_install+set}" = set; then
4019 INSTALL=$ac_cv_path_install
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
4028 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4029 echo "${ECHO_T}$INSTALL" >&6; }
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}'
4035 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4037 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
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
4047 cat >conftest.$ac_ext <<_ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h. */
4060 static void foo(void) __attribute__ ((noreturn));
4072 rm -f conftest.$ac_objext
4073 if { (ac_try="$ac_compile"
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079 (eval "$ac_compile") 2>conftest.er1
4081 grep -v '^ *+' conftest.er1 >conftest.err
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
4091 echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4094 ac_cv___attribute__=no
4097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4100 if test "$ac_cv___attribute__" = "yes"; then
4102 cat >>confdefs.h <<\_ACEOF
4103 #define HAVE___ATTRIBUTE__ 1
4107 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
4108 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
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
4120 SAVE_LDFLAGS="${LDFLAGS}"
4121 LDFLAGS="-R /usr/lib"
4122 cat >conftest.$ac_ext <<_ACEOF
4125 cat confdefs.h >>conftest.$ac_ext
4126 cat >>conftest.$ac_ext <<_ACEOF
4127 /* end confdefs.h. */
4137 rm -f conftest.$ac_objext conftest$ac_exeext
4138 if { (ac_try="$ac_link"
4140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141 *) ac_try_echo=$ac_try;;
4143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4144 (eval "$ac_link") 2>conftest.er1
4146 grep -v '^ *+' conftest.er1 >conftest.err
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"
4157 echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4161 LDFLAGS="-Wl,-rpath,/usr/lib"
4162 cat >conftest.$ac_ext <<_ACEOF
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h. */
4177 rm -f conftest.$ac_objext conftest$ac_exeext
4178 if { (ac_try="$ac_link"
4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4184 (eval "$ac_link") 2>conftest.er1
4186 grep -v '^ *+' conftest.er1 >conftest.err
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,"
4197 echo "$as_me: failed program was:" >&5
4198 sed 's/^/| /' conftest.$ac_ext >&5
4200 andrew_runpath_switch="none"
4203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4204 conftest$ac_exeext conftest.$ac_ext
4208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4209 conftest$ac_exeext conftest.$ac_ext
4210 LDFLAGS="${SAVE_LDFLAGS}"
4213 { echo "$as_me:$LINENO: result: $andrew_runpath_switch" >&5
4214 echo "${ECHO_T}$andrew_runpath_switch" >&6; }
4217 # Check whether --with-staticsasl was given.
4218 if test "${with_staticsasl+set}" = set; then
4219 withval=$with_staticsasl;
4222 if test "$with_staticsasl" = yes; then
4228 if test -z "$target"; then
4233 # Check whether --enable-static was given.
4234 if test "${enable_static+set}" = set; then
4235 enableval=$enable_static; p=${PACKAGE-default}
4237 yes) enable_static=yes ;;
4238 no) 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
4245 if test "X$pkg" = "X$p"; then
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;} ;;
4272 macro_version='2.2.10'
4273 macro_revision='1.3175'
4287 ltmain="$ac_aux_dir/ltmain.sh"
4289 # Backslashify metacharacters that are still active within
4290 # double-quoted strings.
4291 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4293 # Same as above, but do not quote variable references.
4294 double_quote_subst='s/\(["`\\]\)/\\\1/g'
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'
4300 # Sed substitution to delay expansion of an escaped single quote.
4301 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4303 # Sed substitution to avoid accidental globbing in evaled expressions
4304 no_glob_subst='s/\*/\\\*/g'
4306 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4307 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4308 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
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
4316 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4319 # Use this function as a fallback that always works.
4320 func_fallback_echo ()
4322 eval 'cat <<_LTECHO_EOF
4326 ECHO='func_fallback_echo'
4329 # func_echo_all arg...
4330 # Invoke $ECHO with all args, space-separated.
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; } ;;
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
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"
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
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
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
4390 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4393 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
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
4408 # 10*(2^10) chars as input seems more than enough
4409 test $ac_count -gt 10 && break
4411 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4415 $ac_path_SED_found && break 3
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; }; }
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"
4442 test -z "$SED" && SED=sed
4443 Xsed="$SED -e 1s/^X//"
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
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
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
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
4481 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4484 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
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
4499 # 10*(2^10) chars as input seems more than enough
4500 test $ac_count -gt 10 && break
4502 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4506 $ac_path_GREP_found && break 3
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; }; }
4524 ac_cv_path_GREP=$GREP
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"
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
4539 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4540 then ac_cv_path_EGREP="$GREP -E"
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
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
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
4563 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4566 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
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
4581 # 10*(2^10) chars as input seems more than enough
4582 test $ac_count -gt 10 && break
4584 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4588 $ac_path_EGREP_found && break 3
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; }; }
4606 ac_cv_path_EGREP=$EGREP
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"
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
4622 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4623 then ac_cv_path_FGREP="$GREP -F"
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
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
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
4646 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4649 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
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
4664 # 10*(2^10) chars as input seems more than enough
4665 test $ac_count -gt 10 && break
4667 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4671 $ac_path_FGREP_found && break 3
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; }; }
4689 ac_cv_path_FGREP=$FGREP
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"
4700 test -z "$GREP" && GREP=grep
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
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; }
4734 # gcc leaves a trailing carriage return which upsets mingw
4735 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4737 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4740 # Accept absolute paths.
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%/%"`
4748 test -z "$LD" && LD="$ac_prog"
4751 # If it fails, then pretend we aren't using GCC.
4755 # If it is relative, then search for the first ld in PATH.
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; }
4763 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4764 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4766 if test "${lt_cv_path_LD+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4769 if test -z "$LD"; then
4770 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4771 for ac_dir in $PATH; do
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
4784 test "$with_gnu_ld" != yes && break
4791 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4796 if test -n "$LD"; then
4797 { echo "$as_me:$LINENO: result: $LD" >&5
4798 echo "${ECHO_T}$LD" >&6; }
4800 { echo "$as_me:$LINENO: result: no" >&5
4801 echo "${ECHO_T}no" >&6; }
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
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
4817 lt_cv_prog_gnu_ld=no
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
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
4838 if test -n "$NM"; then
4839 # Let the user override the test.
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"
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
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"
4863 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4865 lt_cv_path_NM="$tmp_nm -p"
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
4879 : ${lt_cv_path_NM=no}
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
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.
4891 if test -n "$ac_tool_prefix"; then
4892 for ac_prog in dumpbin "link -dump"
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
4901 if test -n "$DUMPBIN"; then
4902 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
4926 { echo "$as_me:$LINENO: result: no" >&5
4927 echo "${ECHO_T}no" >&6; }
4931 test -n "$DUMPBIN" && break
4934 if test -z "$DUMPBIN"; then
4935 ac_ct_DUMPBIN=$DUMPBIN
4936 for ac_prog in dumpbin "link -dump"
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
4945 if test -n "$ac_ct_DUMPBIN"; then
4946 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
4970 { echo "$as_me:$LINENO: result: no" >&5
4971 echo "${ECHO_T}no" >&6; }
4975 test -n "$ac_ct_DUMPBIN" && break
4978 if test "x$ac_ct_DUMPBIN" = x; then
4981 case $cross_compiling:$ac_tool_warned in
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 ;;
4991 DUMPBIN=$ac_ct_DUMPBIN
4995 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4997 DUMPBIN="$DUMPBIN -symbols"
5005 if test "$DUMPBIN" != ":"; then
5009 test -z "$NM" && NM=nm
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
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"
5036 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5037 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
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
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
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;
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;
5076 # On MiNT this can take a long time and run out of memory.
5077 lt_cv_sys_max_cmd_len=8192;
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;
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`
5093 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
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`
5101 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5102 lt_cv_sys_max_cmd_len=196608
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
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 ;;
5119 lt_cv_sys_max_cmd_len=102400
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/.*[ ]//'`
5126 lt_cv_sys_max_cmd_len=32768
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`
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
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
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
5149 teststring=$teststring$teststring
5151 # Only check the string length outside the loop.
5152 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
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`
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; }
5168 { echo "$as_me:$LINENO: result: none" >&5
5169 echo "${ECHO_T}none" >&6; }
5171 max_cmd_len=$lt_cv_sys_max_cmd_len
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
5187 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5189 && eval 'test $(( 1 + 1 )) -eq 2 \
5190 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5192 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
5193 echo "${ECHO_T}$xsi_shell" >&6; }
5196 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5197 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
5199 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5201 && lt_shell_append=yes
5202 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5203 echo "${ECHO_T}$lt_shell_append" >&6; }
5206 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
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'
5223 *) # EBCDIC based system
5224 lt_SP2NL='tr \100 \n'
5225 lt_NL2SP='tr \r\n \100\100'
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
5242 lt_cv_ld_reload_flag='-r'
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
5249 *) reload_flag=" $reload_flag" ;;
5251 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5254 if test "$GCC" = yes; then
5255 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5257 reload_cmds='$LD$reload_flag -o $output$reload_objs'
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
5278 if test -n "$OBJDUMP"; then
5279 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
5303 { echo "$as_me:$LINENO: result: no" >&5
5304 echo "${ECHO_T}no" >&6; }
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
5318 if test -n "$ac_ct_OBJDUMP"; then
5319 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
5343 { echo "$as_me:$LINENO: result: no" >&5
5344 echo "${ECHO_T}no" >&6; }
5347 if test "x$ac_ct_OBJDUMP" = x; then
5350 case $cross_compiling:$ac_tool_warned in
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 ;;
5360 OBJDUMP=$ac_ct_OBJDUMP
5363 OBJDUMP="$ac_cv_prog_OBJDUMP"
5366 test -z "$OBJDUMP" && OBJDUMP=objdump
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
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.
5397 lt_cv_deplibs_check_method=pass_all
5401 lt_cv_deplibs_check_method=pass_all
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
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'
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'
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'
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'
5437 darwin* | rhapsody*)
5438 lt_cv_deplibs_check_method=pass_all
5441 freebsd* | dragonfly*)
5442 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
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.*`
5453 lt_cv_deplibs_check_method=pass_all
5458 lt_cv_deplibs_check_method=pass_all
5462 lt_cv_deplibs_check_method=pass_all
5465 hpux10.20* | hpux11*)
5466 lt_cv_file_magic_cmd=/usr/bin/file
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
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
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
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)$'
5488 irix5* | irix6* | nonstopux*)
5490 *-32|*"-32 ") libmagic=32-bit;;
5491 *-n32|*"-n32 ") libmagic=N32;;
5492 *-64|*"-64 ") libmagic=64-bit;;
5493 *) libmagic=never-match;;
5495 lt_cv_deplibs_check_method=pass_all
5498 # This must be Linux ELF.
5499 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5500 lt_cv_deplibs_check_method=pass_all
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)$'
5507 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
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
5518 lt_cv_deplibs_check_method=pass_all
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)$'
5525 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5529 osf3* | osf4* | osf5*)
5530 lt_cv_deplibs_check_method=pass_all
5534 lt_cv_deplibs_check_method=pass_all
5538 lt_cv_deplibs_check_method=pass_all
5541 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5542 lt_cv_deplibs_check_method=pass_all
5546 case $host_vendor in
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*`
5552 lt_cv_deplibs_check_method=pass_all
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 )'
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
5564 lt_cv_deplibs_check_method=pass_all
5567 lt_cv_deplibs_check_method=pass_all
5573 lt_cv_deplibs_check_method=pass_all
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
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
5603 if test -n "$AR"; then
5604 ac_cv_prog_AR="$AR" # Let the user override the test.
5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
5624 if test -n "$AR"; then
5625 { echo "$as_me:$LINENO: result: $AR" >&5
5626 echo "${ECHO_T}$AR" >&6; }
5628 { echo "$as_me:$LINENO: result: no" >&5
5629 echo "${ECHO_T}no" >&6; }
5634 if test -z "$ac_cv_prog_AR"; then
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
5643 if test -n "$ac_ct_AR"; then
5644 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
5668 { echo "$as_me:$LINENO: result: no" >&5
5669 echo "${ECHO_T}no" >&6; }
5672 if test "x$ac_ct_AR" = x; then
5675 case $cross_compiling:$ac_tool_warned in
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 ;;
5691 test -z "$AR" && AR=ar
5692 test -z "$AR_FLAGS" && AR_FLAGS=cru
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
5712 if test -n "$STRIP"; then
5713 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
5737 { echo "$as_me:$LINENO: result: no" >&5
5738 echo "${ECHO_T}no" >&6; }
5743 if test -z "$ac_cv_prog_STRIP"; then
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
5752 if test -n "$ac_ct_STRIP"; then
5753 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
5777 { echo "$as_me:$LINENO: result: no" >&5
5778 echo "${ECHO_T}no" >&6; }
5781 if test "x$ac_ct_STRIP" = x; then
5784 case $cross_compiling:$ac_tool_warned in
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 ;;
5797 STRIP="$ac_cv_prog_STRIP"
5800 test -z "$STRIP" && STRIP=:
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
5815 if test -n "$RANLIB"; then
5816 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
5840 { echo "$as_me:$LINENO: result: no" >&5
5841 echo "${ECHO_T}no" >&6; }
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
5855 if test -n "$ac_ct_RANLIB"; then
5856 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
5880 { echo "$as_me:$LINENO: result: no" >&5
5881 echo "${ECHO_T}no" >&6; }
5884 if test "x$ac_ct_RANLIB" = x; then
5887 case $cross_compiling:$ac_tool_warned in
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 ;;
5897 RANLIB=$ac_ct_RANLIB
5900 RANLIB="$ac_cv_prog_RANLIB"
5903 test -z "$RANLIB" && RANLIB=:
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=
5915 if test -n "$RANLIB"; then
5918 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5921 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5924 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5929 lock_old_archive_extraction=yes ;;
5931 lock_old_archive_extraction=no ;;
5972 # If no C compiler was specified, use CC.
5975 # If no C compiler flags were specified, use CFLAGS.
5976 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5978 # Allow CC to be a program name with arguments.
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
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?!! ;)]
5992 # Character class describing NM global symbol codes.
5993 symcode='[BCDEGRST]'
5995 # Regexp to match symbols that can be accessed directly from C.
5996 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5998 # Define system-specific variables.
6003 cygwin* | mingw* | pw32* | cegcc*)
6004 symcode='[ABCDGISTW]'
6007 if test "$host_cpu" = ia64; then
6008 symcode='[ABCDEGRST]'
6012 symcode='[BCDEGRST]'
6015 symcode='[BCDEGQRST]'
6026 sysv5* | sco5v6* | unixware* | OpenUNIX*)
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]' ;;
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'"
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'"
6049 # Handle CRLF in mingw tool chain
6053 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6057 # Try without a prefix underscore, then with it.
6058 for ac_symprfx in "" "_"; do
6060 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6061 symxfrm="\\1 $ac_symprfx\\2 \\2"
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"
6081 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6084 # Check to see that the pipe works correctly.
6088 cat > conftest.$ac_ext <<_LT_EOF
6093 void nm_test_func(void);
6094 void nm_test_func(void){}
6098 int main(){nm_test_var='a';nm_test_func();return(0);}
6101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6102 (eval $ac_compile) 2>&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); }; then
6106 # Now try to grab the symbols.
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
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"
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
6129 # Now generate the symbol file.
6130 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6132 cat <<_LT_EOF >> conftest.$ac_ext
6134 /* The mapping between symbol names and symbols. */
6139 lt__PROGRAM__LTX_preloaded_symbols[] =
6141 { "@PROGRAM@", (void *) 0 },
6143 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6144 cat <<\_LT_EOF >> conftest.$ac_ext
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;
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
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6172 LIBS="$lt_save_LIBS"
6173 CFLAGS="$lt_save_CFLAGS"
6175 echo "cannot find nm_test_func in $nlist" >&5
6178 echo "cannot find nm_test_var in $nlist" >&5
6181 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6184 echo "$progname: failed program was:" >&5
6185 cat conftest.$ac_ext >&5
6187 rm -rf conftest* conftst*
6189 # Do not use the global_symbol_pipe unless it works.
6190 if test "$pipe_works" = yes; then
6193 lt_cv_sys_global_symbol_pipe=
6199 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6200 lt_cv_sys_global_symbol_to_cdecl=
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; }
6206 { echo "$as_me:$LINENO: result: ok" >&5
6207 echo "${ECHO_T}ok" >&6; }
6231 # Check whether --enable-libtool-lock was given.
6232 if test "${enable_libtool_lock+set}" = set; then
6233 enableval=$enable_libtool_lock;
6236 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6238 # Some flags need to be propagated to the compiler or linker for good
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
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); }; then
6249 case `/usr/bin/file conftest.$ac_objext` in
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
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
6271 LD="${LD-ld} -melf32bsmip"
6274 LD="${LD-ld} -melf32bmipn32"
6277 LD="${LD-ld} -melf64bmip"
6281 case `/usr/bin/file conftest.$ac_objext` in
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
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); }; then
6306 case `/usr/bin/file conftest.o` in
6309 x86_64-*kfreebsd*-gnu)
6310 LD="${LD-ld} -m elf_i386_fbsd"
6313 LD="${LD-ld} -m elf_i386"
6315 ppc64-*linux*|powerpc64-*linux*)
6316 LD="${LD-ld} -m elf32ppclinux"
6319 LD="${LD-ld} -m elf_s390"
6322 LD="${LD-ld} -m elf32_sparc"
6328 x86_64-*kfreebsd*-gnu)
6329 LD="${LD-ld} -m elf_x86_64_fbsd"
6332 LD="${LD-ld} -m elf_x86_64"
6334 ppc*-*linux*|powerpc*-*linux*)
6335 LD="${LD-ld} -m elf64ppc"
6337 s390*-*linux*|s390*-*tpf*)
6338 LD="${LD-ld} -m elf64_s390"
6341 LD="${LD-ld} -m elf64_sparc"
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
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
6365 cat >conftest.$ac_ext <<_ACEOF
6368 cat confdefs.h >>conftest.$ac_ext
6369 cat >>conftest.$ac_ext <<_ACEOF
6370 /* end confdefs.h. */
6380 rm -f conftest.$ac_objext conftest$ac_exeext
6381 if { (ac_try="$ac_link"
6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387 (eval "$ac_link") 2>conftest.er1
6389 grep -v '^ *+' conftest.er1 >conftest.err
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
6400 echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6403 lt_cv_cc_needs_belf=no
6406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6407 conftest$ac_exeext conftest.$ac_ext
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
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"
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
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; then
6430 case `/usr/bin/file conftest.o` in
6432 case $lt_cv_prog_gnu_ld in
6433 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6435 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6447 need_locks="$enable_libtool_lock"
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
6460 if test -n "$DSYMUTIL"; then
6461 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6485 { echo "$as_me:$LINENO: result: no" >&5
6486 echo "${ECHO_T}no" >&6; }
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
6500 if test -n "$ac_ct_DSYMUTIL"; then
6501 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6525 { echo "$as_me:$LINENO: result: no" >&5
6526 echo "${ECHO_T}no" >&6; }
6529 if test "x$ac_ct_DSYMUTIL" = x; then
6532 case $cross_compiling:$ac_tool_warned in
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 ;;
6542 DSYMUTIL=$ac_ct_DSYMUTIL
6545 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
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
6556 if test -n "$NMEDIT"; then
6557 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6581 { echo "$as_me:$LINENO: result: no" >&5
6582 echo "${ECHO_T}no" >&6; }
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
6596 if test -n "$ac_ct_NMEDIT"; then
6597 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6621 { echo "$as_me:$LINENO: result: no" >&5
6622 echo "${ECHO_T}no" >&6; }
6625 if test "x$ac_ct_NMEDIT" = x; then
6628 case $cross_compiling:$ac_tool_warned in
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 ;;
6638 NMEDIT=$ac_ct_NMEDIT
6641 NMEDIT="$ac_cv_prog_NMEDIT"
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
6652 if test -n "$LIPO"; then
6653 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6677 { echo "$as_me:$LINENO: result: no" >&5
6678 echo "${ECHO_T}no" >&6; }
6683 if test -z "$ac_cv_prog_LIPO"; then
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
6692 if test -n "$ac_ct_LIPO"; then
6693 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6717 { echo "$as_me:$LINENO: result: no" >&5
6718 echo "${ECHO_T}no" >&6; }
6721 if test "x$ac_ct_LIPO" = x; then
6724 case $cross_compiling:$ac_tool_warned in
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 ;;
6737 LIPO="$ac_cv_prog_LIPO"
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
6748 if test -n "$OTOOL"; then
6749 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6773 { echo "$as_me:$LINENO: result: no" >&5
6774 echo "${ECHO_T}no" >&6; }
6779 if test -z "$ac_cv_prog_OTOOL"; then
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
6788 if test -n "$ac_ct_OTOOL"; then
6789 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6813 { echo "$as_me:$LINENO: result: no" >&5
6814 echo "${ECHO_T}no" >&6; }
6817 if test "x$ac_ct_OTOOL" = x; then
6820 case $cross_compiling:$ac_tool_warned in
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 ;;
6833 OTOOL="$ac_cv_prog_OTOOL"
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
6844 if test -n "$OTOOL64"; then
6845 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6869 { echo "$as_me:$LINENO: result: no" >&5
6870 echo "${ECHO_T}no" >&6; }
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
6884 if test -n "$ac_ct_OTOOL64"; then
6885 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
6909 { echo "$as_me:$LINENO: result: no" >&5
6910 echo "${ECHO_T}no" >&6; }
6913 if test "x$ac_ct_OTOOL64" = x; then
6916 case $cross_compiling:$ac_tool_warned in
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 ;;
6926 OTOOL64=$ac_ct_OTOOL64
6929 OTOOL64="$ac_cv_prog_OTOOL64"
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
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
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
6976 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6977 lt_cv_apple_cc_single_mod=yes
6979 cat conftest.err >&5
6981 rm -rf libconftest.dylib*
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
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
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h. */
7011 rm -f conftest.$ac_objext conftest$ac_exeext
7012 if { (ac_try="$ac_link"
7014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7015 *) ac_try_echo=$ac_try;;
7017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7018 (eval "$ac_link") 2>conftest.er1
7020 grep -v '^ *+' conftest.er1 >conftest.err
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
7031 echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.$ac_ext >&5
7034 lt_cv_ld_exported_symbols_list=no
7037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7038 conftest$ac_exeext conftest.$ac_ext
7039 LDFLAGS="$save_LDFLAGS"
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
7049 lt_cv_ld_force_load=no
7050 cat > conftest.c << _LT_EOF
7051 int forced_loaded() { return 2;}
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;}
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
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
7068 cat conftest.err >&5
7070 rm -f conftest.err libconftest.a conftest conftest.c
7071 rm -rf conftest.dSYM
7074 { echo "$as_me:$LINENO: result: $lt_cv_ld_force_load" >&5
7075 echo "${ECHO_T}$lt_cv_ld_force_load" >&6; }
7077 rhapsody* | darwin1.[012])
7078 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
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' ;;
7089 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7091 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7095 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7096 _lt_dar_single_mod='$single_module'
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'
7101 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7103 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7104 _lt_dsymutil='~$DSYMUTIL $lib || :'
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
7117 cat >conftest.$ac_ext <<_ACEOF
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h. */
7136 rm -f conftest.$ac_objext
7137 if { (ac_try="$ac_compile"
7139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7140 *) ac_try_echo=$ac_try;;
7142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7143 (eval "$ac_compile") 2>conftest.er1
7145 grep -v '^ *+' conftest.er1 >conftest.err
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
7155 echo "$as_me: failed program was:" >&5
7156 sed 's/^/| /' conftest.$ac_ext >&5
7158 ac_cv_header_stdc=no
7161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
7168 cat confdefs.h >>conftest.$ac_ext
7169 cat >>conftest.$ac_ext <<_ACEOF
7170 /* end confdefs.h. */
7174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7175 $EGREP "memchr" >/dev/null 2>&1; then
7178 ac_cv_header_stdc=no
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
7189 cat confdefs.h >>conftest.$ac_ext
7190 cat >>conftest.$ac_ext <<_ACEOF
7191 /* end confdefs.h. */
7195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7196 $EGREP "free" >/dev/null 2>&1; then
7199 ac_cv_header_stdc=no
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
7210 cat >conftest.$ac_ext <<_ACEOF
7213 cat confdefs.h >>conftest.$ac_ext
7214 cat >>conftest.$ac_ext <<_ACEOF
7215 /* end confdefs.h. */
7218 #if ((' ' & 0x0FF) == 0x020)
7219 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7220 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
7229 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7234 for (i = 0; i < 256; i++)
7235 if (XOR (islower (i), ISLOWER (i))
7236 || toupper (i) != TOUPPER (i))
7241 rm -f conftest$ac_exeext
7242 if { (ac_try="$ac_link"
7244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7245 *) ac_try_echo=$ac_try;;
7247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7248 (eval "$ac_link") 2>&5
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;;
7256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7257 (eval "$ac_try") 2>&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); }; }; then
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
7268 ac_cv_header_stdc=no
7270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
7280 cat >>confdefs.h <<\_ACEOF
7281 #define STDC_HEADERS 1
7286 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
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
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
7305 cat >conftest.$ac_ext <<_ACEOF
7308 cat confdefs.h >>conftest.$ac_ext
7309 cat >>conftest.$ac_ext <<_ACEOF
7310 /* end confdefs.h. */
7311 $ac_includes_default
7313 #include <$ac_header>
7315 rm -f conftest.$ac_objext
7316 if { (ac_try="$ac_compile"
7318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7319 *) ac_try_echo=$ac_try;;
7321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7322 (eval "$ac_compile") 2>conftest.er1
7324 grep -v '^ *+' conftest.er1 >conftest.err
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"
7334 echo "$as_me: failed program was:" >&5
7335 sed 's/^/| /' conftest.$ac_ext >&5
7337 eval "$as_ac_Header=no"
7340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
7356 for ac_header in dlfcn.h
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
7364 cat >conftest.$ac_ext <<_ACEOF
7367 cat confdefs.h >>conftest.$ac_ext
7368 cat >>conftest.$ac_ext <<_ACEOF
7369 /* end confdefs.h. */
7370 $ac_includes_default
7372 #include <$ac_header>
7374 rm -f conftest.$ac_objext
7375 if { (ac_try="$ac_compile"
7377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7378 *) ac_try_echo=$ac_try;;
7380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7381 (eval "$ac_compile") 2>conftest.er1
7383 grep -v '^ *+' conftest.er1 >conftest.err
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"
7393 echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7396 eval "$as_ac_Header=no"
7399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
7427 # Check whether --enable-shared was given.
7428 if test "${enable_shared+set}" = set; then
7429 enableval=$enable_shared; p=${PACKAGE-default}
7431 yes) enable_shared=yes ;;
7432 no) 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
7439 if test "X$pkg" = "X$p"; then
7460 # Check whether --with-pic was given.
7461 if test "${with_pic+set}" = set; then
7462 withval=$with_pic; pic_mode="$withval"
7468 test -z "$pic_mode" && pic_mode=default
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}
7480 yes) enable_fast_install=yes ;;
7481 no) enable_fast_install=no ;;
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
7488 if test "X$pkg" = "X$p"; then
7489 enable_fast_install=yes
7496 enable_fast_install=yes
7509 # This can be used to rebuild libtool when needed
7510 LIBTOOL_DEPS="$ltmain"
7512 # Always use our own libtool.
7513 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7540 test -z "$LN_S" && LN_S="ln -s"
7555 if test -n "${ZSH_VERSION+set}" ; then
7556 setopt NO_GLOB_SUBST
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
7564 rm -f .libs 2>/dev/null
7565 mkdir .libs 2>/dev/null
7566 if test -d .libs; then
7569 # MS-DOS does not allow filenames that begin with a dot.
7572 rmdir .libs 2>/dev/null
7574 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7575 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7576 objdir=$lt_cv_objdir
7582 cat >>confdefs.h <<_ACEOF
7583 #define LT_OBJDIR "$lt_cv_objdir/"
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
7596 export COLLECT_NAMES
7603 can_build_shared=yes
7605 # All known linkers require a `.a' archive for static linking (except MSVC,
7606 # which needs '.lib').
7609 with_gnu_ld="$lt_cv_prog_gnu_ld"
7612 old_CFLAGS="$CFLAGS"
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
7621 for cc_temp in $compiler""; do
7623 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7624 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7629 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
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
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
7644 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
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
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
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
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
7683 MAGIC_CMD="$lt_save_MAGIC_CMD"
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; }
7693 { echo "$as_me:$LINENO: result: no" >&5
7694 echo "${ECHO_T}no" >&6; }
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
7710 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
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
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
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
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
7749 MAGIC_CMD="$lt_save_MAGIC_CMD"
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; }
7759 { echo "$as_me:$LINENO: result: no" >&5
7760 echo "${ECHO_T}no" >&6; }
7773 # Use C for the default configuration in the libtool script
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
7783 # Source file extension for C test sources.
7786 # Object file extension for compiled C test sources.
7790 # Code to be used in simple compile tests
7791 lt_simple_compile_test_code="int some_variable = 0;"
7793 # Code to be used in simple link tests
7794 lt_simple_link_test_code='int main(){return(0);}'
7802 # If no C compiler was specified, use CC.
7805 # If no C compiler flags were specified, use CFLAGS.
7806 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7808 # Allow CC to be a program name with arguments.
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
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`
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`
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
7835 lt_prog_compiler_no_builtin_flag=
7837 if test "$GCC" = yes; then
7838 case $cc_basename in
7840 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7842 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
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
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)
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
7880 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7881 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
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"
7896 lt_prog_compiler_wl=
7897 lt_prog_compiler_pic=
7898 lt_prog_compiler_static=
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; }
7903 if test "$GCC" = yes; then
7904 lt_prog_compiler_wl='-Wl,'
7905 lt_prog_compiler_static='-static'
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'
7919 # see comment about AmigaOS4 .so support
7920 lt_prog_compiler_pic='-fPIC'
7923 # FIXME: we need at least 68020 code to build shared libraries, but
7924 # adding the `-m68020' flag to GCC prevents building anything better,
7926 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7931 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7932 # PIC is the default for these OSes.
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'
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'
7950 # PIC is the default for Haiku.
7951 # The "-static" flag exists, but is broken.
7952 lt_prog_compiler_static=
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.
7964 lt_prog_compiler_pic='-fPIC'
7970 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7971 # Instead, we relocate shared libraries at runtime.
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
7982 # QNX uses GNU C++, but need to define -shared option too, otherwise
7984 lt_prog_compiler_pic='-fPIC -shared'
7988 if test -d /usr/nec; then
7989 lt_prog_compiler_pic=-Kconform_pic
7994 lt_prog_compiler_pic='-fPIC'
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'
8005 # PORTME Check for flag to pass linker flags through the system compiler.
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'
8013 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
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'
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
8032 lt_prog_compiler_pic='+Z'
8035 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8036 lt_prog_compiler_static='${wl}-a ${wl}archive'
8039 irix5* | irix6* | nonstopux*)
8040 lt_prog_compiler_wl='-Wl,'
8041 # PIC (with -KPIC) is the default.
8042 lt_prog_compiler_static='-non_shared'
8045 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8046 case $cc_basename in
8047 # old Intel for x86_64 which still supported -KPIC.
8049 lt_prog_compiler_wl='-Wl,'
8050 lt_prog_compiler_pic='-KPIC'
8051 lt_prog_compiler_static='-static'
8053 # icc used to be incompatible with GCC.
8054 # ICC 10 doesn't accept -KPIC any more.
8056 lt_prog_compiler_wl='-Wl,'
8057 lt_prog_compiler_pic='-fPIC'
8058 lt_prog_compiler_static='-static'
8060 # Lahey Fortran 8.1.
8062 lt_prog_compiler_wl='-Wl,'
8063 lt_prog_compiler_pic='--shared'
8064 lt_prog_compiler_static='--static'
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'
8074 lt_prog_compiler_wl='-Wl,'
8075 # All Alpha code is PIC.
8076 lt_prog_compiler_static='-non_shared'
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'
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=''
8094 lt_prog_compiler_pic='-KPIC'
8095 lt_prog_compiler_static='-Bstatic'
8096 lt_prog_compiler_wl='-Wl,'
8104 lt_prog_compiler_pic='-KPIC'
8105 lt_prog_compiler_static='-Bstatic'
8109 # QNX uses GNU C++, but need to define -shared option too, otherwise
8111 lt_prog_compiler_pic='-fPIC -shared'
8114 osf3* | osf4* | osf5*)
8115 lt_prog_compiler_wl='-Wl,'
8116 # All OSF/1 code is PIC.
8117 lt_prog_compiler_static='-non_shared'
8121 lt_prog_compiler_static='-non_shared'
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 ';;
8131 lt_prog_compiler_wl='-Wl,';;
8136 lt_prog_compiler_wl='-Qoption ld '
8137 lt_prog_compiler_pic='-PIC'
8138 lt_prog_compiler_static='-Bstatic'
8141 sysv4 | sysv4.2uw2* | sysv4.3*)
8142 lt_prog_compiler_wl='-Wl,'
8143 lt_prog_compiler_pic='-KPIC'
8144 lt_prog_compiler_static='-Bstatic'
8148 if test -d /usr/nec ;then
8149 lt_prog_compiler_pic='-Kconform_pic'
8150 lt_prog_compiler_static='-Bstatic'
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'
8161 lt_prog_compiler_wl='-Wl,'
8162 lt_prog_compiler_can_build_shared=no
8166 lt_prog_compiler_pic='-pic'
8167 lt_prog_compiler_static='-Bstatic'
8171 lt_prog_compiler_can_build_shared=no
8177 # For platforms which do not support PIC, -DPIC is meaningless:
8179 lt_prog_compiler_pic=
8182 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8185 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8186 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8194 # Check to make sure the PIC flag actually works.
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
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)
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
8232 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8233 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8235 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8236 case $lt_prog_compiler_pic in
8238 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8241 lt_prog_compiler_pic=
8242 lt_prog_compiler_can_build_shared=no
8253 # Check to make sure the static flag actually works.
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
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
8277 lt_cv_prog_compiler_static_works=yes
8281 LDFLAGS="$save_LDFLAGS"
8284 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8285 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8287 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8290 lt_prog_compiler_static=
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
8304 lt_cv_prog_compiler_c_o=no
8305 $RM -r conftest 2>/dev/null
8309 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
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)
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
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
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
8346 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8347 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
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
8359 lt_cv_prog_compiler_c_o=no
8360 $RM -r conftest 2>/dev/null
8364 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
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)
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
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
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
8401 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8402 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
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; }
8414 ln conftest.a conftest.b 2>/dev/null && hard_links=no
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;}
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; }
8438 allow_undefined_flag=
8439 always_export_symbols=no
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
8448 hardcode_direct_absolute=no
8449 hardcode_libdir_flag_spec=
8450 hardcode_libdir_flag_spec_ld=
8451 hardcode_libdir_separator=
8453 hardcode_shlibpath_var=unsupported
8455 link_all_deplibs=unknown
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
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=
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
8488 # we just hope/assume this is gcc and not c89 (= MSVC++)
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
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]*) ;;
8513 lt_use_gnu_ld_interface=yes
8518 lt_use_gnu_ld_interface=yes
8523 if test "$lt_use_gnu_ld_interface" = yes; then
8524 # If archive_cmds runs LD, not CC, wlarc should be empty
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'
8537 whole_archive_flag_spec=
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 ;;
8549 # See if GNU ld supports shared libraries.
8552 # On AIX/PPC, the GNU linker is very broken
8553 if test "$host_cpu" != ia64; then
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.
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=''
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
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'
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'
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;
8611 echo EXPORTS > $output_objdir/$soname.def;
8612 cat $export_symbols >> $output_objdir/$soname.def;
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'
8621 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8622 link_all_deplibs=yes
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'
8640 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
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)
8647 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8648 && test "$tmp_diet" = no
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'
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'
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
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' ;;
8686 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
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'
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'
8716 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8717 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
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'
8726 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
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.
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'
8746 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8747 case `$LD -v 2>&1` in
8748 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
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.
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'
8778 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8781 hardcode_shlibpath_var=no
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'
8794 if test "$ld_shlibs" = no; then
8796 hardcode_libdir_flag_spec=
8797 export_dynamic_flag_spec=
8798 whole_archive_flag_spec=
8801 # PORTME fill in a description of your system's linker (not GNU ld)
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
8813 hardcode_direct=unsupported
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'
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'
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'
8834 aix_use_runtimelinking=no
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
8849 exp_sym_flag='-bexport'
8850 no_entry_flag='-bnoentry'
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.
8861 hardcode_direct_absolute=yes
8862 hardcode_libdir_separator=':'
8863 link_all_deplibs=yes
8864 file_list_spec='${wl}-f,'
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
8874 # We have reworked collect2
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=
8888 shared_flag='-shared'
8889 if test "$aix_use_runtimelinking" = yes; then
8890 shared_flag="$shared_flag "'${wl}-G'
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:
8899 if test "$aix_use_runtimelinking" = yes; then
8900 shared_flag='${wl}-G'
8902 shared_flag='${wl}-bM:SRE'
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
8917 cat >conftest.$ac_ext <<_ACEOF
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h. */
8932 rm -f conftest.$ac_objext conftest$ac_exeext
8933 if { (ac_try="$ac_link"
8935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8936 *) ac_try_echo=$ac_try;;
8938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8939 (eval "$ac_link") 2>conftest.er1
8941 grep -v '^ *+' conftest.er1 >conftest.err
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
8951 lt_aix_libpath_sed='
8952 /Import File Strings/,/^$/ {
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"`
8964 echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
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
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"
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"
8982 # Determine the default libpath from the value encoded in an
8984 cat >conftest.$ac_ext <<_ACEOF
8987 cat confdefs.h >>conftest.$ac_ext
8988 cat >>conftest.$ac_ext <<_ACEOF
8989 /* end confdefs.h. */
8999 rm -f conftest.$ac_objext conftest$ac_exeext
9000 if { (ac_try="$ac_link"
9002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9003 *) ac_try_echo=$ac_try;;
9005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9006 (eval "$ac_link") 2>conftest.er1
9008 grep -v '^ *+' conftest.er1 >conftest.err
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
9018 lt_aix_libpath_sed='
9019 /Import File Strings/,/^$/ {
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"`
9031 echo "$as_me: failed program was:" >&5
9032 sed 's/^/| /' conftest.$ac_ext >&5
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
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'
9050 # Exported symbols can be pulled into shared objects from archives
9051 whole_archive_flag_spec='$convenience'
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'
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=''
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
9076 export_dynamic_flag_spec=-rdynamic
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.
9088 # Tell ltmain to make .dll files, not .so files.
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
9100 darwin* | rhapsody*)
9103 archive_cmds_need_lc=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\"`'
9110 whole_archive_flag_spec=''
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 ;;
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}"
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
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
9146 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9147 hardcode_libdir_flag_spec='-R$libdir'
9149 hardcode_shlibpath_var=no
9152 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9154 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9156 hardcode_minus_L=yes
9157 hardcode_shlibpath_var=no
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'
9165 hardcode_shlibpath_var=no
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'
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'
9174 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9175 hardcode_libdir_separator=:
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'
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'
9188 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
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=:
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
9204 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9207 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9210 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9213 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9219 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9222 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
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
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
9249 lt_cv_prog_compiler__b=yes
9253 LDFLAGS="$save_LDFLAGS"
9256 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler__b" >&5
9257 echo "${ECHO_T}$lt_cv_prog_compiler__b" >&6; }
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'
9262 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9268 if test "$with_gnu_ld" = no; then
9269 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9270 hardcode_libdir_separator=:
9275 hardcode_shlibpath_var=no
9279 hardcode_direct_absolute=yes
9280 export_dynamic_flag_spec='${wl}-E'
9282 # hardcode_minus_L: Not really in the search PATH,
9283 # but as the default location of the library.
9284 hardcode_minus_L=yes
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
9301 rm -f conftest.$ac_objext conftest$ac_exeext
9302 if { (ac_try="$ac_link"
9304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9305 *) ac_try_echo=$ac_try;;
9307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9308 (eval "$ac_link") 2>conftest.er1
9310 grep -v '^ *+' conftest.er1 >conftest.err
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'
9322 echo "$as_me: failed program was:" >&5
9323 sed 's/^/| /' conftest.$ac_ext >&5
9328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9329 conftest$ac_exeext conftest.$ac_ext
9330 LDFLAGS="$save_LDFLAGS"
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'
9335 archive_cmds_need_lc='no'
9336 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9337 hardcode_libdir_separator=:
9339 link_all_deplibs=yes
9343 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9344 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9346 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9348 hardcode_libdir_flag_spec='-R$libdir'
9350 hardcode_shlibpath_var=no
9354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9356 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9357 hardcode_libdir_separator=:
9358 hardcode_shlibpath_var=no
9365 if test -f /usr/libexec/ld.so; then
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'
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'
9381 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9382 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
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'
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'
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'
9407 archive_cmds_need_lc='no'
9408 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9409 hardcode_libdir_separator=:
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'
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'
9423 # Both c and cxx compiler support -rpath directly
9424 hardcode_libdir_flag_spec='-rpath $libdir'
9426 archive_cmds_need_lc='no'
9427 hardcode_libdir_separator=:
9431 no_undefined_flag=' -z defs'
9432 if test "$GCC" = yes; then
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'
9438 case `$CC -V 2>&1` in
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'
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'
9453 hardcode_libdir_flag_spec='-R$libdir'
9454 hardcode_shlibpath_var=no
9456 solaris2.[0-5] | solaris2.[0-5].*) ;;
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'
9465 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9469 link_all_deplibs=yes
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'
9478 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9480 hardcode_libdir_flag_spec='-L$libdir'
9482 hardcode_minus_L=yes
9483 hardcode_shlibpath_var=no
9487 case $host_vendor in
9489 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9490 hardcode_direct=yes # is this really true???
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'
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
9504 runpath_var='LD_RUN_PATH'
9505 hardcode_shlibpath_var=no
9509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9510 hardcode_shlibpath_var=no
9511 export_dynamic_flag_spec='-Bexport'
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
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'
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'
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'
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
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'
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'
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'
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
9576 if test x$host_vendor = xsni; then
9578 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9579 export_dynamic_flag_spec='${wl}-Blargedynsym'
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
9589 with_gnu_ld=$with_gnu_ld
9606 # Do we need to explicitly link libc?
9608 case "x$archive_cmds_need_lc" in
9610 # Assume -lc should be added
9611 archive_cmds_need_lc=yes
9613 if test "$enable_shared" = yes && test "$GCC" = yes; then
9614 case $archive_cmds in
9616 # FIXME: we may have to deal with multi-command sequences.
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
9628 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9631 (eval $ac_compile) 2>&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); } 2>conftest.err; then
9637 libobjs=conftest.$ac_objext
9639 wl=$lt_prog_compiler_wl
9640 pic_flag=$lt_prog_compiler_pic
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
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); }
9654 lt_cv_archive_cmds_need_lc=no
9656 lt_cv_archive_cmds_need_lc=yes
9658 allow_undefined_flag=$lt_save_allow_undefined_flag
9660 cat conftest.err 1>&5
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
9830 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9831 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9833 if test "$GCC" = yes; then
9835 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9836 *) lt_awk_arg="/^libraries:/" ;;
9839 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9840 *) lt_sed_strip_eq="s,=/,/,g" ;;
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
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'`
9852 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
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"
9863 test -d "$lt_sys_path" && \
9864 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9867 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9868 BEGIN {RS=" "; FS="/|\n";} {
9871 for (lt_i = NF; lt_i > 0; lt_i--) {
9872 if ($lt_i != "" && $lt_i != ".") {
9873 if ($lt_i == "..") {
9876 if (lt_count == 0) {
9877 lt_foo="/" $lt_i lt_foo;
9884 if (lt_foo != "") { lt_freq[lt_foo]++; }
9885 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9887 # AWK program above erroneously prepends '/' to C:/dos/paths
9890 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9891 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9893 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9895 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9898 libname_spec='lib$name'
9906 shlibpath_overrides_runpath=unknown
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
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
9920 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9921 shlibpath_var=LIBPATH
9923 # AIX 3 has no versioning support, so we append a major version to the name.
9924 soname_spec='${libname}${release}${shared_ext}$major'
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
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.
9943 aix4 | aix4.[01] | aix4.[01].*)
9944 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9946 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
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}'
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'
9967 shlibpath_var=LIBPATH
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}'
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'
9987 library_names_spec='${libname}${shared_ext}'
9988 dynamic_linker="$host_os ld.so"
9989 shlibpath_var=LIBRARY_PATH
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
10006 cygwin* | mingw* | pw32* | cegcc*)
10007 version_type=windows
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 \$?;
10025 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10026 dlpath=$dir/\$dldll~
10028 shlibpath_overrides_runpath=yes
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}'
10035 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10038 # MinGW DLLs use traditional 'lib' prefix
10039 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
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}'
10049 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10052 dynamic_linker='Win32 ld.exe'
10053 # FIXME: first we should search . and the directory the executable is in
10057 darwin* | rhapsody*)
10058 dynamic_linker="$host_os dyld"
10059 version_type=darwin
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`'
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'
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
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`
10092 freebsd[123]*) objformat=aout ;;
10093 *) objformat=elf ;;
10096 version_type=freebsd-$objformat
10097 case $version_type in
10099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10104 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10108 shlibpath_var=LD_LIBRARY_PATH
10111 shlibpath_overrides_runpath=yes
10113 freebsd3.[01]* | freebsdelf3.[01]*)
10114 shlibpath_overrides_runpath=yes
10115 hardcode_into_libs=yes
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
10122 *) # from 4.6 on, and DragonFly
10123 shlibpath_overrides_runpath=yes
10124 hardcode_into_libs=yes
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
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
10152 hpux9* | hpux10* | hpux11*)
10153 # Give a soname corresponding to the major version so that dld.sl refuses to
10154 # link against other versions.
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"
10170 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10172 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
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
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'
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
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
10212 irix5* | irix6* | nonstopux*)
10214 nonstopux*) version_type=nonstopux ;;
10216 if test "$lt_cv_prog_gnu_ld" = yes; then
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}'
10227 irix5* | nonstopux*)
10228 libsuff= shlibsuff=
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;;
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
10249 # No shared lib support for Linux oldld, aout, or coff.
10250 linux*oldld* | linux*aout* | linux*coff*)
10254 # This must be Linux ELF.
10255 linux* | k*bsd*-gnu | kopensolaris*-gnu)
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
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
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
10277 cat confdefs.h >>conftest.$ac_ext
10278 cat >>conftest.$ac_ext <<_ACEOF
10279 /* end confdefs.h. */
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;;
10295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10296 (eval "$ac_link") 2>conftest.er1
10298 grep -v '^ *+' conftest.er1 >conftest.err
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
10312 echo "$as_me: failed program was:" >&5
10313 sed 's/^/| /' conftest.$ac_ext >&5
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
10325 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
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
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"
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'
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'
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'
10360 shlibpath_var=LD_LIBRARY_PATH
10361 shlibpath_overrides_runpath=yes
10362 hardcode_into_libs=yes
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
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'
10386 sys_lib_dlsearch_path_spec="/usr/lib"
10388 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10390 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10391 *) need_version=no ;;
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
10398 openbsd2.[89] | openbsd2.[89].*)
10399 shlibpath_overrides_runpath=no
10402 shlibpath_overrides_runpath=yes
10406 shlibpath_overrides_runpath=yes
10411 libname_spec='$name'
10414 library_names_spec='$libname${shared_ext} $libname.a'
10415 dynamic_linker='OS/2 ld.exe'
10416 shlibpath_var=LIBPATH
10419 osf3* | osf4* | osf5*)
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"
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'
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
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
10466 shlibpath_overrides_runpath=no
10468 runpath_var=LD_RUN_PATH
10476 shlibpath_overrides_runpath=no
10477 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10483 if test -d /usr/nec ;then
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
10491 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10492 version_type=freebsd-elf
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'
10503 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10506 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10510 sys_lib_dlsearch_path_spec='/usr/lib'
10514 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
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
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
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
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"
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"
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"
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; }
10645 if test -n "$hardcode_libdir_flag_spec" ||
10646 test -n "$runpath_var" ||
10647 test "X$hardcode_automatic" = "Xyes" ; then
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
10659 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10660 hardcode_action=immediate
10663 # We cannot hardcode anything, or else we can only hardcode existing
10665 hardcode_action=unsupported
10667 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10668 echo "${ECHO_T}$hardcode_action" >&6; }
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
10685 if test "x$enable_dlopen" != xyes; then
10686 enable_dlopen=unknown
10687 enable_dlopen_self=unknown
10688 enable_dlopen_self_static=unknown
10695 lt_cv_dlopen="load_add_on"
10697 lt_cv_dlopen_self=yes
10700 mingw* | pw32* | cegcc*)
10701 lt_cv_dlopen="LoadLibrary"
10706 lt_cv_dlopen="dlopen"
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
10717 ac_check_lib_save_LIBS=$LIBS
10719 cat >conftest.$ac_ext <<_ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h. */
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. */
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;;
10747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10748 (eval "$ac_link") 2>conftest.er1
10750 grep -v '^ *+' conftest.er1 >conftest.err
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
10761 echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10764 ac_cv_lib_dl_dlopen=no
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
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"
10777 lt_cv_dlopen="dyld"
10779 lt_cv_dlopen_self=yes
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
10791 cat >conftest.$ac_ext <<_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
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. */
10807 # include <limits.h>
10809 # include <assert.h>
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. */
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
10831 return shl_load ();
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;;
10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843 (eval "$ac_link") 2>conftest.er1
10845 grep -v '^ *+' conftest.er1 >conftest.err
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
10856 echo "$as_me: failed program was:" >&5
10857 sed 's/^/| /' conftest.$ac_ext >&5
10859 ac_cv_func_shl_load=no
10862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10863 conftest$ac_exeext conftest.$ac_ext
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"
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
10875 ac_check_lib_save_LIBS=$LIBS
10877 cat >conftest.$ac_ext <<_ACEOF
10880 cat confdefs.h >>conftest.$ac_ext
10881 cat >>conftest.$ac_ext <<_ACEOF
10882 /* end confdefs.h. */
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. */
10894 return shl_load ();
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;;
10905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10906 (eval "$ac_link") 2>conftest.er1
10908 grep -v '^ *+' conftest.er1 >conftest.err
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
10919 echo "$as_me: failed program was:" >&5
10920 sed 's/^/| /' conftest.$ac_ext >&5
10922 ac_cv_lib_dld_shl_load=no
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
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"
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
10939 cat >conftest.$ac_ext <<_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
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. */
10955 # include <limits.h>
10957 # include <assert.h>
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. */
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
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;;
10990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10991 (eval "$ac_link") 2>conftest.er1
10993 grep -v '^ *+' conftest.er1 >conftest.err
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
11004 echo "$as_me: failed program was:" >&5
11005 sed 's/^/| /' conftest.$ac_ext >&5
11007 ac_cv_func_dlopen=no
11010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11011 conftest$ac_exeext conftest.$ac_ext
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"
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
11023 ac_check_lib_save_LIBS=$LIBS
11025 cat >conftest.$ac_ext <<_ACEOF
11028 cat confdefs.h >>conftest.$ac_ext
11029 cat >>conftest.$ac_ext <<_ACEOF
11030 /* end confdefs.h. */
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. */
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;;
11053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11054 (eval "$ac_link") 2>conftest.er1
11056 grep -v '^ *+' conftest.er1 >conftest.err
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
11067 echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.$ac_ext >&5
11070 ac_cv_lib_dl_dlopen=no
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
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"
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
11087 ac_check_lib_save_LIBS=$LIBS
11088 LIBS="-lsvld $LIBS"
11089 cat >conftest.$ac_ext <<_ACEOF
11092 cat confdefs.h >>conftest.$ac_ext
11093 cat >>conftest.$ac_ext <<_ACEOF
11094 /* end confdefs.h. */
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. */
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;;
11117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11118 (eval "$ac_link") 2>conftest.er1
11120 grep -v '^ *+' conftest.er1 >conftest.err
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
11131 echo "$as_me: failed program was:" >&5
11132 sed 's/^/| /' conftest.$ac_ext >&5
11134 ac_cv_lib_svld_dlopen=no
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
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"
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
11151 ac_check_lib_save_LIBS=$LIBS
11153 cat >conftest.$ac_ext <<_ACEOF
11156 cat confdefs.h >>conftest.$ac_ext
11157 cat >>conftest.$ac_ext <<_ACEOF
11158 /* end confdefs.h. */
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. */
11170 return dld_link ();
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;;
11181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11182 (eval "$ac_link") 2>conftest.er1
11184 grep -v '^ *+' conftest.er1 >conftest.err
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
11195 echo "$as_me: failed program was:" >&5
11196 sed 's/^/| /' conftest.$ac_ext >&5
11198 ac_cv_lib_dld_dld_link=no
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
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"
11229 if test "x$lt_cv_dlopen" != xno; then
11235 case $lt_cv_dlopen in
11237 save_CPPFLAGS="$CPPFLAGS"
11238 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11240 save_LDFLAGS="$LDFLAGS"
11241 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11244 LIBS="$lt_cv_dlopen_libs $LIBS"
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
11251 if test "$cross_compiling" = yes; then :
11252 lt_cv_dlopen_self=cross
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"
11267 # define LT_DLGLOBAL RTLD_GLOBAL
11270 # define LT_DLGLOBAL DL_GLOBAL
11272 # define LT_DLGLOBAL 0
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
11280 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11283 # define LT_DLLAZY_OR_NOW DL_LAZY
11286 # define LT_DLLAZY_OR_NOW RTLD_NOW
11289 # define LT_DLLAZY_OR_NOW DL_NOW
11291 # define LT_DLLAZY_OR_NOW 0
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")));
11304 void fnord () { int i=42; }
11307 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11308 int status = $lt_dlunknown;
11312 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11315 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11316 else puts (dlerror ());
11318 /* dlclose (self); */
11326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11327 (eval $ac_link) 2>&5
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
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 ;;
11339 # compilation failed
11340 lt_cv_dlopen_self=no
11347 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11348 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
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
11357 if test "$cross_compiling" = yes; then :
11358 lt_cv_dlopen_self_static=cross
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"
11373 # define LT_DLGLOBAL RTLD_GLOBAL
11376 # define LT_DLGLOBAL DL_GLOBAL
11378 # define LT_DLGLOBAL 0
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
11386 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11389 # define LT_DLLAZY_OR_NOW DL_LAZY
11392 # define LT_DLLAZY_OR_NOW RTLD_NOW
11395 # define LT_DLLAZY_OR_NOW DL_NOW
11397 # define LT_DLLAZY_OR_NOW 0
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")));
11410 void fnord () { int i=42; }
11413 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11414 int status = $lt_dlunknown;
11418 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11421 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11422 else puts (dlerror ());
11424 /* dlclose (self); */
11432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11433 (eval $ac_link) 2>&5
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
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 ;;
11445 # compilation failed
11446 lt_cv_dlopen_self_static=no
11453 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11454 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11457 CPPFLAGS="$save_CPPFLAGS"
11458 LDFLAGS="$save_LDFLAGS"
11463 case $lt_cv_dlopen_self in
11464 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11465 *) enable_dlopen_self=unknown ;;
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 ;;
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; }
11500 # FIXME - insert some real tests, host_os isn't really good enough
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; }
11509 { echo "$as_me:$LINENO: result: no" >&5
11510 echo "${ECHO_T}no" >&6; }
11514 { echo "$as_me:$LINENO: result: no" >&5
11515 echo "${ECHO_T}no" >&6; }
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; }
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
11541 # On AIX, shared libraries and static libraries use the same namespace, and
11542 # are all built from PIC.
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'
11553 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11554 test "$enable_shared" = yes && enable_static=no
11558 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11559 echo "${ECHO_T}$enable_shared" >&6; }
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; }
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
11592 ac_config_commands="$ac_config_commands libtool"
11597 # Only expand once:
11601 target=$save_target
11603 if test "$enable_static" = yes; then
11604 SASL_STATIC_LIBS=libsasl2.a
11609 # Check whether --enable-staticdlopen was given.
11610 if test "${enable_staticdlopen+set}" = set; then
11611 enableval=$enable_staticdlopen; enable_staticdlopen=$enableval
11613 enable_staticdlopen=no
11617 if test "$enable_staticdlopen" = yes; then
11619 cat >>confdefs.h <<\_ACEOF
11620 #define TRY_DLOPEN_WHEN_STATIC
11625 if test "$ac_cv_c_compiler_gnu" = yes; then
11626 CFLAGS="-Wall -W ${CFLAGS}"
11630 # Check whether --with-purecov was given.
11631 if test "${with_purecov+set}" = set; then
11632 withval=$with_purecov;
11635 if test "$with_purecov" = yes; then
11636 for ac_prog in purecov
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
11645 if test -n "$PURECOV"; then
11646 ac_cv_prog_PURECOV="$PURECOV" # Let the user override the test.
11648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11649 for as_dir in $PATH
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
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; }
11670 { echo "$as_me:$LINENO: result: no" >&5
11671 echo "${ECHO_T}no" >&6; }
11675 test -n "$PURECOV" && break
11680 # Check whether --with-purify was given.
11681 if test "${with_purify+set}" = set; then
11682 withval=$with_purify;
11685 if test "$with_purify" = yes; then
11686 for ac_prog in purify
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
11695 if test -n "$PURIFY"; then
11696 ac_cv_prog_PURIFY="$PURIFY" # Let the user override the test.
11698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11699 for as_dir in $PATH
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
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; }
11720 { echo "$as_me:$LINENO: result: no" >&5
11721 echo "${ECHO_T}no" >&6; }
11725 test -n "$PURIFY" && break
11730 # Check whether --enable-java was given.
11731 if test "${enable_java+set}" = set; then
11732 enableval=$enable_java; enable_java=$enableval
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
11747 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
11750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11751 for as_dir in $PATH
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
11765 test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="no"
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; }
11774 { echo "$as_me:$LINENO: result: no" >&5
11775 echo "${ECHO_T}no" >&6; }
11779 for ac_prog in javah kaffeh
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
11790 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.
11793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11794 for as_dir in $PATH
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
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; }
11816 { echo "$as_me:$LINENO: result: no" >&5
11817 echo "${ECHO_T}no" >&6; }
11821 test -n "$JAVAH" && break
11823 test -n "$JAVAH" || JAVAH="no"
11825 for ac_prog in javadoc
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
11834 if test -n "$JAVADOC"; then
11835 ac_cv_prog_JAVADOC="$JAVADOC" # Let the user override the test.
11837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11838 for as_dir in $PATH
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
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; }
11859 { echo "$as_me:$LINENO: result: no" >&5
11860 echo "${ECHO_T}no" >&6; }
11864 test -n "$JAVADOC" && break
11866 test -n "$JAVADOC" || JAVADOC=":"
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;}
11874 # Make distcheck work
11879 if test "$enable_java" = yes; then
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
11895 if test `echo $JAVAH | sed 's,.*/,,'` = "kaffeh"; then
11896 sasl_cv_java_includes=-I`echo $JAVAH | sed -e 's,/bin.*,/include/kaffe,'`
11898 java_base=`echo $JAVAC | sed 's,/bin.*,'','`
11901 # Check whether --with-javabase was given.
11902 if test "${with_javabase+set}" = set; then
11903 withval=$with_javabase; java_base=$withval
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"
11914 sasl_cv_java_includes="${sasl_cv_java_includes} -I$javapath/include"
11918 JAVA_INCLUDES=$sasl_cv_java_includes
11920 { echo "$as_me:$LINENO: result: ok" >&5
11921 echo "${ECHO_T}ok" >&6; }
11925 JAVAC=`echo "$JAVAC" | sed 's,.*/,,'`
11926 JAVAH=`echo "$JAVAH" | sed 's,.*/,,'`
11929 if test "$enable_sample" = yes; then
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
11946 cat >conftest.$ac_ext <<_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
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. */
11962 # include <limits.h>
11964 # include <assert.h>
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. */
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
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;;
11997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11998 (eval "$ac_link") 2>conftest.er1
12000 grep -v '^ *+' conftest.er1 >conftest.err
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
12011 echo "$as_me: failed program was:" >&5
12012 sed 's/^/| /' conftest.$ac_ext >&5
12014 ac_cv_func_connect=no
12017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12018 conftest$ac_exeext conftest.$ac_ext
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
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
12030 ac_check_lib_save_LIBS=$LIBS
12032 cat >conftest.$ac_ext <<_ACEOF
12035 cat confdefs.h >>conftest.$ac_ext
12036 cat >>conftest.$ac_ext <<_ACEOF
12037 /* end confdefs.h. */
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. */
12045 char gethostbyname ();
12049 return gethostbyname ();
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;;
12060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12061 (eval "$ac_link") 2>conftest.er1
12063 grep -v '^ *+' conftest.er1 >conftest.err
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
12074 echo "$as_me: failed program was:" >&5
12075 sed 's/^/| /' conftest.$ac_ext >&5
12077 ac_cv_lib_nsl_gethostbyname=no
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
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"
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
12095 ac_check_lib_save_LIBS=$LIBS
12096 LIBS="-lsocket $LIBS"
12097 cat >conftest.$ac_ext <<_ACEOF
12100 cat confdefs.h >>conftest.$ac_ext
12101 cat >>conftest.$ac_ext <<_ACEOF
12102 /* end confdefs.h. */
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. */
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;;
12125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12126 (eval "$ac_link") 2>conftest.er1
12128 grep -v '^ *+' conftest.er1 >conftest.err
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
12139 echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12142 ac_cv_lib_socket_connect=no
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
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"
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
12164 cat >conftest.$ac_ext <<_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
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. */
12180 # include <limits.h>
12182 # include <assert.h>
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. */
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
12204 return res_search ();
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;;
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216 (eval "$ac_link") 2>conftest.er1
12218 grep -v '^ *+' conftest.er1 >conftest.err
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
12229 echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12232 ac_cv_func_res_search=no
12235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12236 conftest$ac_exeext conftest.$ac_ext
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
12243 LIBS="-lresolv $LIB_SOCKET $save_LIBS"
12244 cat >conftest.$ac_ext <<_ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
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>
12257 #include <resolv.h>
12262 const char host[12]="openafs.org";
12264 res_search( host, C_IN, T_MX, (u_char *)&ans, sizeof(ans));
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;;
12277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12278 (eval "$ac_link") 2>conftest.er1
12280 grep -v '^ *+' conftest.er1 >conftest.err
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"
12291 echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.$ac_ext >&5
12297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12298 conftest$ac_exeext conftest.$ac_ext
12302 LIBS="$LIB_SOCKET $save_LIBS"
12305 for ac_func in dn_expand dns_lookup
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
12313 cat >conftest.$ac_ext <<_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
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. */
12329 # include <limits.h>
12331 # include <assert.h>
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. */
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
12353 return $ac_func ();
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;;
12364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12365 (eval "$ac_link") 2>conftest.er1
12367 grep -v '^ *+' conftest.er1 >conftest.err
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"
12378 echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12381 eval "$as_ac_var=no"
12384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12385 conftest$ac_exeext conftest.$ac_ext
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
12404 # Check whether --with-dbpath was given.
12405 if test "${with_dbpath+set}" = set; then
12406 withval=$with_dbpath; dbpath=$withval
12408 dbpath=/etc/sasldb2
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; }
12416 cat >>confdefs.h <<_ACEOF
12417 #define SASL_DB_PATH "$dbpath"
12421 cmu_save_LIBS="$LIBS"
12423 # Check whether --with-dblib was given.
12424 if test "${with_dblib+set}" = set; then
12425 withval=$with_dblib; dblib=$withval
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
12437 test "${with_bdb_lib+set}" = set || with_bdb_lib=none
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
12445 test "${with_bdb_inc+set}" = set || with_bdb_inc=none
12457 cmu_save_CPPFLAGS=$CPPFLAGS
12459 if test -d $with_bdb_inc; then
12460 CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
12461 BDB_INCADD="-I$with_bdb_inc"
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
12472 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
12473 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
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
12481 cat confdefs.h >>conftest.$ac_ext
12482 cat >>conftest.$ac_ext <<_ACEOF
12483 /* end confdefs.h. */
12484 $ac_includes_default
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;;
12493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12494 (eval "$ac_compile") 2>conftest.er1
12496 grep -v '^ *+' conftest.er1 >conftest.err
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
12506 echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.$ac_ext >&5
12509 ac_header_compiler=no
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; }
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
12522 cat confdefs.h >>conftest.$ac_ext
12523 cat >>conftest.$ac_ext <<_ACEOF
12524 /* end confdefs.h. */
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;;
12532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12535 grep -v '^ *+' conftest.er1 >conftest.err
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
12543 ac_header_preproc=yes
12545 echo "$as_me: failed program was:" >&5
12546 sed 's/^/| /' conftest.$ac_ext >&5
12548 ac_header_preproc=no
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; }
12555 # So? What about this header?
12556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
12585 ac_cv_header_db_h=$ac_header_preproc
12587 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
12588 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
12591 if test $ac_cv_header_db_h = yes; then
12593 BDB_SAVE_LDFLAGS=$LDFLAGS
12595 if test -d $with_bdb_lib; then
12597 # this is CMU ADD LIBPATH TO
12598 if test "$andrew_runpath_switch" = "none" ; then
12599 LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
12601 LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
12605 # this is CMU ADD LIBPATH TO
12606 if test "$andrew_runpath_switch" = "none" ; then
12607 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
12609 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
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
12619 LIBS="$saved_LIBS -l$dbname"
12620 cat >conftest.$ac_ext <<_ACEOF
12623 cat confdefs.h >>conftest.$ac_ext
12624 cat >>conftest.$ac_ext <<_ACEOF
12625 /* end confdefs.h. */
12630 db_create(NULL, NULL, 0);
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;;
12641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642 (eval "$ac_link") 2>conftest.er1
12644 grep -v '^ *+' conftest.er1 >conftest.err
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
12655 echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.$ac_ext >&5
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
12665 if test "$dblib" = "no"; then
12666 LIBS="$saved_LIBS -ldb"
12667 cat >conftest.$ac_ext <<_ACEOF
12670 cat confdefs.h >>conftest.$ac_ext
12671 cat >>conftest.$ac_ext <<_ACEOF
12672 /* end confdefs.h. */
12677 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
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;;
12688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12689 (eval "$ac_link") 2>conftest.er1
12691 grep -v '^ *+' conftest.er1 >conftest.err
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
12702 echo "$as_me: failed program was:" >&5
12703 sed 's/^/| /' conftest.$ac_ext >&5
12708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12709 conftest$ac_exeext conftest.$ac_ext
12713 LDFLAGS=$BDB_SAVE_LDFLAGS
12721 CPPFLAGS=$cmu_save_CPPFLAGS
12723 CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
12724 SASL_DB_INC=$BDB_INCADD
12725 SASL_DB_LIB="${BDB_LIBADD}"
12729 # Check whether --with-gdbm was given.
12730 if test "${with_gdbm+set}" = set; then
12731 withval=$with_gdbm; with_gdbm="${withval}"
12735 case "$with_gdbm" in
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
12743 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
12744 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
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
12752 cat confdefs.h >>conftest.$ac_ext
12753 cat >>conftest.$ac_ext <<_ACEOF
12754 /* end confdefs.h. */
12755 $ac_includes_default
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;;
12764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12765 (eval "$ac_compile") 2>conftest.er1
12767 grep -v '^ *+' conftest.er1 >conftest.err
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
12777 echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12780 ac_header_compiler=no
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; }
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
12793 cat confdefs.h >>conftest.$ac_ext
12794 cat >>conftest.$ac_ext <<_ACEOF
12795 /* end confdefs.h. */
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;;
12803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12806 grep -v '^ *+' conftest.er1 >conftest.err
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
12814 ac_header_preproc=yes
12816 echo "$as_me: failed program was:" >&5
12817 sed 's/^/| /' conftest.$ac_ext >&5
12819 ac_header_preproc=no
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; }
12826 # So? What about this header?
12827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
12856 ac_cv_header_gdbm_h=$ac_header_preproc
12858 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
12859 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
12862 if test $ac_cv_header_gdbm_h = yes; then
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
12869 ac_check_lib_save_LIBS=$LIBS
12870 LIBS="-lgdbm $LIBS"
12871 cat >conftest.$ac_ext <<_ACEOF
12874 cat confdefs.h >>conftest.$ac_ext
12875 cat >>conftest.$ac_ext <<_ACEOF
12876 /* end confdefs.h. */
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. */
12888 return gdbm_open ();
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;;
12899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900 (eval "$ac_link") 2>conftest.er1
12902 grep -v '^ *+' conftest.er1 >conftest.err
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
12913 echo "$as_me: failed program was:" >&5
12914 sed 's/^/| /' conftest.$ac_ext >&5
12916 ac_cv_lib_gdbm_gdbm_open=no
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
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"
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"
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
12954 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
12955 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
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
12963 cat confdefs.h >>conftest.$ac_ext
12964 cat >>conftest.$ac_ext <<_ACEOF
12965 /* end confdefs.h. */
12966 $ac_includes_default
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;;
12975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12976 (eval "$ac_compile") 2>conftest.er1
12978 grep -v '^ *+' conftest.er1 >conftest.err
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
12988 echo "$as_me: failed program was:" >&5
12989 sed 's/^/| /' conftest.$ac_ext >&5
12991 ac_header_compiler=no
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; }
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
13004 cat confdefs.h >>conftest.$ac_ext
13005 cat >>conftest.$ac_ext <<_ACEOF
13006 /* end confdefs.h. */
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;;
13014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13017 grep -v '^ *+' conftest.er1 >conftest.err
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
13025 ac_header_preproc=yes
13027 echo "$as_me: failed program was:" >&5
13028 sed 's/^/| /' conftest.$ac_ext >&5
13030 ac_header_preproc=no
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; }
13037 # So? What about this header?
13038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
13067 ac_cv_header_ndbm_h=$ac_header_preproc
13069 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
13070 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
13073 if test $ac_cv_header_ndbm_h = yes; then
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
13080 ac_check_lib_save_LIBS=$LIBS
13081 LIBS="-lndbm $LIBS"
13082 cat >conftest.$ac_ext <<_ACEOF
13085 cat confdefs.h >>conftest.$ac_ext
13086 cat >>conftest.$ac_ext <<_ACEOF
13087 /* end confdefs.h. */
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. */
13099 return dbm_open ();
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;;
13110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111 (eval "$ac_link") 2>conftest.er1
13113 grep -v '^ *+' conftest.er1 >conftest.err
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
13124 echo "$as_me: failed program was:" >&5
13125 sed 's/^/| /' conftest.$ac_ext >&5
13127 ac_cv_lib_ndbm_dbm_open=no
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
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"
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
13145 cat >conftest.$ac_ext <<_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
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. */
13161 # include <limits.h>
13163 # include <assert.h>
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. */
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
13185 return dbm_open ();
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;;
13196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13197 (eval "$ac_link") 2>conftest.er1
13199 grep -v '^ *+' conftest.er1 >conftest.err
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
13210 echo "$as_me: failed program was:" >&5
13211 sed 's/^/| /' conftest.$ac_ext >&5
13213 ac_cv_func_dbm_open=no
13216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13217 conftest$ac_exeext conftest.$ac_ext
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
13239 cmu_save_CPPFLAGS=$CPPFLAGS
13241 if test -d $with_bdb_inc; then
13242 CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
13243 BDB_INCADD="-I$with_bdb_inc"
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
13254 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
13255 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
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
13263 cat confdefs.h >>conftest.$ac_ext
13264 cat >>conftest.$ac_ext <<_ACEOF
13265 /* end confdefs.h. */
13266 $ac_includes_default
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;;
13275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13276 (eval "$ac_compile") 2>conftest.er1
13278 grep -v '^ *+' conftest.er1 >conftest.err
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
13288 echo "$as_me: failed program was:" >&5
13289 sed 's/^/| /' conftest.$ac_ext >&5
13291 ac_header_compiler=no
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; }
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
13304 cat confdefs.h >>conftest.$ac_ext
13305 cat >>conftest.$ac_ext <<_ACEOF
13306 /* end confdefs.h. */
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;;
13314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13317 grep -v '^ *+' conftest.er1 >conftest.err
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
13325 ac_header_preproc=yes
13327 echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.$ac_ext >&5
13330 ac_header_preproc=no
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; }
13337 # So? What about this header?
13338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
13367 ac_cv_header_db_h=$ac_header_preproc
13369 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
13370 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
13373 if test $ac_cv_header_db_h = yes; then
13375 BDB_SAVE_LDFLAGS=$LDFLAGS
13377 if test -d $with_bdb_lib; then
13379 # this is CMU ADD LIBPATH TO
13380 if test "$andrew_runpath_switch" = "none" ; then
13381 LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
13383 LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
13387 # this is CMU ADD LIBPATH TO
13388 if test "$andrew_runpath_switch" = "none" ; then
13389 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
13391 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
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
13401 LIBS="$saved_LIBS -l$dbname"
13402 cat >conftest.$ac_ext <<_ACEOF
13405 cat confdefs.h >>conftest.$ac_ext
13406 cat >>conftest.$ac_ext <<_ACEOF
13407 /* end confdefs.h. */
13412 db_create(NULL, NULL, 0);
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;;
13423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13424 (eval "$ac_link") 2>conftest.er1
13426 grep -v '^ *+' conftest.er1 >conftest.err
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
13437 echo "$as_me: failed program was:" >&5
13438 sed 's/^/| /' conftest.$ac_ext >&5
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
13447 if test "$dblib" = "no"; then
13448 LIBS="$saved_LIBS -ldb"
13449 cat >conftest.$ac_ext <<_ACEOF
13452 cat confdefs.h >>conftest.$ac_ext
13453 cat >>conftest.$ac_ext <<_ACEOF
13454 /* end confdefs.h. */
13459 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
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;;
13470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13471 (eval "$ac_link") 2>conftest.er1
13473 grep -v '^ *+' conftest.er1 >conftest.err
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
13484 echo "$as_me: failed program was:" >&5
13485 sed 's/^/| /' conftest.$ac_ext >&5
13490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13491 conftest$ac_exeext conftest.$ac_ext
13495 LDFLAGS=$BDB_SAVE_LDFLAGS
13503 CPPFLAGS=$cmu_save_CPPFLAGS
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
13512 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
13513 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
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
13521 cat confdefs.h >>conftest.$ac_ext
13522 cat >>conftest.$ac_ext <<_ACEOF
13523 /* end confdefs.h. */
13524 $ac_includes_default
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;;
13533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13534 (eval "$ac_compile") 2>conftest.er1
13536 grep -v '^ *+' conftest.er1 >conftest.err
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
13546 echo "$as_me: failed program was:" >&5
13547 sed 's/^/| /' conftest.$ac_ext >&5
13549 ac_header_compiler=no
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; }
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
13562 cat confdefs.h >>conftest.$ac_ext
13563 cat >>conftest.$ac_ext <<_ACEOF
13564 /* end confdefs.h. */
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;;
13572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13575 grep -v '^ *+' conftest.er1 >conftest.err
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
13583 ac_header_preproc=yes
13585 echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.$ac_ext >&5
13588 ac_header_preproc=no
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; }
13595 # So? What about this header?
13596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
13625 ac_cv_header_ndbm_h=$ac_header_preproc
13627 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
13628 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
13631 if test $ac_cv_header_ndbm_h = yes; then
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
13638 ac_check_lib_save_LIBS=$LIBS
13639 LIBS="-lndbm $LIBS"
13640 cat >conftest.$ac_ext <<_ACEOF
13643 cat confdefs.h >>conftest.$ac_ext
13644 cat >>conftest.$ac_ext <<_ACEOF
13645 /* end confdefs.h. */
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. */
13657 return dbm_open ();
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;;
13668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13669 (eval "$ac_link") 2>conftest.er1
13671 grep -v '^ *+' conftest.er1 >conftest.err
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
13682 echo "$as_me: failed program was:" >&5
13683 sed 's/^/| /' conftest.$ac_ext >&5
13685 ac_cv_lib_ndbm_dbm_open=no
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
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"
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
13711 cat >conftest.$ac_ext <<_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
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. */
13727 # include <limits.h>
13729 # include <assert.h>
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. */
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
13751 return dbm_open ();
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;;
13762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13763 (eval "$ac_link") 2>conftest.er1
13765 grep -v '^ *+' conftest.er1 >conftest.err
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
13776 echo "$as_me: failed program was:" >&5
13777 sed 's/^/| /' conftest.$ac_ext >&5
13779 ac_cv_func_dbm_open=no
13782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13783 conftest$ac_exeext conftest.$ac_ext
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
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
13802 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
13803 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
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
13811 cat confdefs.h >>conftest.$ac_ext
13812 cat >>conftest.$ac_ext <<_ACEOF
13813 /* end confdefs.h. */
13814 $ac_includes_default
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;;
13823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13824 (eval "$ac_compile") 2>conftest.er1
13826 grep -v '^ *+' conftest.er1 >conftest.err
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
13836 echo "$as_me: failed program was:" >&5
13837 sed 's/^/| /' conftest.$ac_ext >&5
13839 ac_header_compiler=no
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; }
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
13852 cat confdefs.h >>conftest.$ac_ext
13853 cat >>conftest.$ac_ext <<_ACEOF
13854 /* end confdefs.h. */
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;;
13862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13865 grep -v '^ *+' conftest.er1 >conftest.err
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
13873 ac_header_preproc=yes
13875 echo "$as_me: failed program was:" >&5
13876 sed 's/^/| /' conftest.$ac_ext >&5
13878 ac_header_preproc=no
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; }
13885 # So? What about this header?
13886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
13915 ac_cv_header_gdbm_h=$ac_header_preproc
13917 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
13918 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
13921 if test $ac_cv_header_gdbm_h = yes; then
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
13928 ac_check_lib_save_LIBS=$LIBS
13929 LIBS="-lgdbm $LIBS"
13930 cat >conftest.$ac_ext <<_ACEOF
13933 cat confdefs.h >>conftest.$ac_ext
13934 cat >>conftest.$ac_ext <<_ACEOF
13935 /* end confdefs.h. */
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. */
13947 return gdbm_open ();
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;;
13958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13959 (eval "$ac_link") 2>conftest.er1
13961 grep -v '^ *+' conftest.er1 >conftest.err
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
13972 echo "$as_me: failed program was:" >&5
13973 sed 's/^/| /' conftest.$ac_ext >&5
13975 ac_cv_lib_gdbm_gdbm_open=no
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
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
13986 SASL_DB_LIB="-lgdbm"
13998 CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
13999 SASL_DB_INC=$BDB_INCADD
14000 SASL_DB_LIB="${BDB_LIBADD}"
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; }; }
14016 LIBS="$cmu_save_LIBS"
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; }
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"
14031 SASL_MECHS="$SASL_MECHS libsasldb.la"
14033 cat >>confdefs.h <<\_ACEOF
14039 SASL_MECHS="$SASL_MECHS libsasldb.la"
14041 cat >>confdefs.h <<\_ACEOF
14047 SASL_MECHS="$SASL_MECHS libsasldb.la"
14049 cat >>confdefs.h <<\_ACEOF
14050 #define SASL_BERKELEYDB
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"
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"
14071 cat >>confdefs.h <<\_ACEOF
14072 #define STATIC_SASLDB
14076 SASL_STATIC_OBJS="$SASL_STATIC_OBJS $SASL_DB_BACKEND_STATIC"
14077 SASL_STATIC_SRCS="$SASL_STATIC_SRCS $SASL_DB_BACKEND_STATIC_SRCS"
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='#'
14094 NO_SASL_DB_MANS_TRUE='#'
14095 NO_SASL_DB_MANS_FALSE=
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
14107 # Disable if Berkeley DB is not used
14108 if test "$dblib" != berkeley; then
14112 if test "$keep_db_open" = yes; then
14114 cat >>confdefs.h <<\_ACEOF
14115 #define KEEP_DB_OPEN
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; }
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
14129 ac_check_lib_save_LIBS=$LIBS
14131 cat >conftest.$ac_ext <<_ACEOF
14134 cat confdefs.h >>conftest.$ac_ext
14135 cat >>conftest.$ac_ext <<_ACEOF
14136 /* end confdefs.h. */
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. */
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;;
14159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14160 (eval "$ac_link") 2>conftest.er1
14162 grep -v '^ *+' conftest.er1 >conftest.err
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
14173 echo "$as_me: failed program was:" >&5
14174 sed 's/^/| /' conftest.$ac_ext >&5
14176 ac_cv_lib_dl_dlopen=no
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
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
14195 # Check whether --with-devrandom was given.
14196 if test "${with_devrandom+set}" = set; then
14197 withval=$with_devrandom; devrandom=$withval
14199 devrandom=/dev/random
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; }
14207 cat >>confdefs.h <<_ACEOF
14208 #define SASL_DEV_RANDOM "$devrandom"
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
14222 if test -n "$NM"; then
14223 ac_cv_prog_NM="$NM" # Let the user override the test.
14225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14226 for as_dir in $PATH
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
14243 if test -n "$NM"; then
14244 { echo "$as_me:$LINENO: result: $NM" >&5
14245 echo "${ECHO_T}$NM" >&6; }
14247 { echo "$as_me:$LINENO: result: no" >&5
14248 echo "${ECHO_T}no" >&6; }
14252 test -n "$NM" && break
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
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
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
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
14285 if test "$cross_compiling" = yes; then
14286 { echo "$as_me:$LINENO: WARNING: cross-compiler" >&5
14287 echo "$as_me: WARNING: cross-compiler" >&2;}
14289 cat >conftest.$ac_ext <<_ACEOF
14292 cat confdefs.h >>conftest.$ac_ext
14293 cat >>conftest.$ac_ext <<_ACEOF
14294 /* end confdefs.h. */
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); }
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;;
14310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14311 (eval "$ac_link") 2>&5
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;;
14319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14320 (eval "$ac_try") 2>&5
14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); }; }; then
14324 sasl_cv_dlsym_adds_uscore=yes
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
14330 ( exit $ac_status )
14331 sasl_cv_dlsym_adds_uscore=no
14333 cat >>confdefs.h <<\_ACEOF
14334 #define DLSYM_NEEDS_UNDERSCORE
14338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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; }
14351 for ac_func in syslog
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
14359 cat >conftest.$ac_ext <<_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
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. */
14375 # include <limits.h>
14377 # include <assert.h>
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. */
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
14399 return $ac_func ();
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;;
14410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14411 (eval "$ac_link") 2>conftest.er1
14413 grep -v '^ *+' conftest.er1 >conftest.err
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"
14424 echo "$as_me: failed program was:" >&5
14425 sed 's/^/| /' conftest.$ac_ext >&5
14427 eval "$as_ac_var=no"
14430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14431 conftest$ac_exeext conftest.$ac_ext
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
14446 # Check whether --with-pam was given.
14447 if test "${with_pam+set}" = set; then
14448 withval=$with_pam; with_pam=$withval
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"
14460 for ac_header in security/pam_appl.h pam/pam_appl.h
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
14469 ac_res=`eval echo '${'$as_ac_Header'}'`
14470 { echo "$as_me:$LINENO: result: $ac_res" >&5
14471 echo "${ECHO_T}$ac_res" >&6; }
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
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>
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;;
14491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14492 (eval "$ac_compile") 2>conftest.er1
14494 grep -v '^ *+' conftest.er1 >conftest.err
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
14504 echo "$as_me: failed program was:" >&5
14505 sed 's/^/| /' conftest.$ac_ext >&5
14507 ac_header_compiler=no
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; }
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
14520 cat confdefs.h >>conftest.$ac_ext
14521 cat >>conftest.$ac_ext <<_ACEOF
14522 /* end confdefs.h. */
14523 #include <$ac_header>
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;;
14530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14533 grep -v '^ *+' conftest.er1 >conftest.err
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
14541 ac_header_preproc=yes
14543 echo "$as_me: failed program was:" >&5
14544 sed 's/^/| /' conftest.$ac_ext >&5
14546 ac_header_preproc=no
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; }
14553 # So? What about this header?
14554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
14583 eval "$as_ac_Header=\$ac_header_preproc"
14585 ac_res=`eval echo '${'$as_ac_Header'}'`
14586 { echo "$as_me:$LINENO: result: $ac_res" >&5
14587 echo "${ECHO_T}$ac_res" >&6; }
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
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
14605 cat >conftest.$ac_ext <<_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
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. */
14621 # include <limits.h>
14623 # include <assert.h>
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. */
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
14645 return pam_start ();
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;;
14656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14657 (eval "$ac_link") 2>conftest.er1
14659 grep -v '^ *+' conftest.er1 >conftest.err
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
14670 echo "$as_me: failed program was:" >&5
14671 sed 's/^/| /' conftest.$ac_ext >&5
14673 ac_cv_func_pam_start=no
14676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14677 conftest$ac_exeext conftest.$ac_ext
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
14685 cat >conftest.$ac_ext <<_ACEOF
14688 cat confdefs.h >>conftest.$ac_ext
14689 cat >>conftest.$ac_ext <<_ACEOF
14690 /* end confdefs.h. */
14692 #include <sys/types.h>
14693 #ifdef HAVE_PAM_PAM_APPL_H
14694 #include <pam/pam_appl.h>
14696 #ifdef HAVE_SECURITY_PAM_H
14697 #include <security/pam_appl.h>
14703 const char *service="foo";
14704 const char *user="bar";
14705 pam_handle_t *pamh;
14706 struct pam_conv *conv;
14708 baz = pam_start(service, user, conv, &pamh);
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;;
14721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14722 (eval "$ac_link") 2>conftest.er1
14724 grep -v '^ *+' conftest.er1 >conftest.err
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
14735 echo "$as_me: failed program was:" >&5
14736 sed 's/^/| /' conftest.$ac_ext >&5
14741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14742 conftest$ac_exeext conftest.$ac_ext
14746 LIBS="$cmu_save_LIBS $LIBPAM"
14750 # Check whether --with-saslauthd was given.
14751 if test "${with_saslauthd+set}" = set; then
14752 withval=$with_saslauthd; with_saslauthd=$withval
14757 if test "$with_saslauthd" != no; then
14758 if test "$with_saslauthd" = yes; then
14759 with_saslauthd="/var/state/saslauthd"
14762 cat >>confdefs.h <<\_ACEOF
14763 #define HAVE_SASLAUTHD
14767 cat >>confdefs.h <<_ACEOF
14768 #define PATH_SASLAUTHD_RUNDIR "$with_saslauthd"
14772 if test "$with_saslauthd" != no; then
14774 SASLAUTHD_FALSE='#'
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; }
14786 # Check whether --with-authdaemond was given.
14787 if test "${with_authdaemond+set}" = set; then
14788 withval=$with_authdaemond; with_authdaemon=$withval
14790 with_authdaemon=yes
14793 if test "$with_authdaemon" != no; then
14794 if test "$with_authdaemon" = yes; then
14795 with_authdaemon="/dev/null"
14798 cat >>confdefs.h <<\_ACEOF
14799 #define HAVE_AUTHDAEMON
14803 cat >>confdefs.h <<_ACEOF
14804 #define PATH_AUTHDAEMON_SOCKET "$with_authdaemon"
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; }
14814 # Check whether --with-pwcheck was given.
14815 if test "${with_pwcheck+set}" = set; then
14816 withval=$with_pwcheck; with_pwcheck=$withval
14821 if test "$with_pwcheck" != no; then
14822 if test "$with_pwcheck" = yes; then
14823 with_pwcheck=/var/pwcheck
14826 cat >>confdefs.h <<\_ACEOF
14827 #define HAVE_PWCHECK
14831 cat >>confdefs.h <<_ACEOF
14832 #define PWCHECKDIR "$with_pwcheck"
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
14840 cat >conftest.$ac_ext <<_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
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. */
14856 # include <limits.h>
14858 # include <assert.h>
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. */
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
14880 return getspnam ();
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;;
14891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14892 (eval "$ac_link") 2>conftest.er1
14894 grep -v '^ *+' conftest.er1 >conftest.err
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
14905 echo "$as_me: failed program was:" >&5
14906 sed 's/^/| /' conftest.$ac_ext >&5
14908 ac_cv_func_getspnam=no
14911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14912 conftest$ac_exeext conftest.$ac_ext
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"
14919 PWCHECKMETH="getpwnam"
14924 if test "$with_pwcheck" != no; then
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; }
14938 # Check whether --with-ipctype was given.
14939 if test "${with_ipctype+set}" = set; then
14940 withval=$with_ipctype; with_ipctype=$withval
14942 with_ipctype="unix"
14945 IPCTYPE=$with_ipctype
14948 if test "$with_ipctype" = "doors"; then
14951 cat >>confdefs.h <<\_ACEOF
14958 # Check whether --enable-alwaystrue was given.
14959 if test "${enable_alwaystrue+set}" = set; then
14960 enableval=$enable_alwaystrue; enable_alwaystrue=$enableval
14962 enable_alwaystrue=no
14965 if test "$enable_alwaystrue" = yes; then
14967 cat >>confdefs.h <<\_ACEOF
14968 #define HAVE_ALWAYSTRUE
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; }
14977 # Check whether --enable-checkapop was given.
14978 if test "${enable_checkapop+set}" = set; then
14979 enableval=$enable_checkapop; checkapop=$enableval
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; }
14991 cat >>confdefs.h <<\_ACEOF
14992 #define DO_SASL_CHECKAPOP
14996 { echo "$as_me:$LINENO: result: disabled" >&5
14997 echo "${ECHO_T}disabled" >&6; }
15000 # Check whether --enable-cram was given.
15001 if test "${enable_cram+set}" = set; then
15002 enableval=$enable_cram; cram=$enableval
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"
15018 cat >>confdefs.h <<\_ACEOF
15019 #define STATIC_CRAMMD5
15024 { echo "$as_me:$LINENO: result: disabled" >&5
15025 echo "${ECHO_T}disabled" >&6; }
15029 # Check whether --with-lib-subdir was given.
15030 if test "${with_lib_subdir+set}" = set; then
15031 withval=$with_lib_subdir;
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
15039 cat >conftest.$ac_ext <<_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_;
15050 if ((ac__type_new_ *) 0)
15052 if (sizeof (ac__type_new_))
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;;
15064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15065 (eval "$ac_compile") 2>conftest.er1
15067 grep -v '^ *+' conftest.er1 >conftest.err
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
15077 echo "$as_me: failed program was:" >&5
15078 sed 's/^/| /' conftest.$ac_ext >&5
15083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15085 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15086 echo "${ECHO_T}$ac_cv_type_long" >&6; }
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
15097 if test "$cross_compiling" = yes; then
15098 # Depending upon the size, compute the lo and hi bounds.
15099 cat >conftest.$ac_ext <<_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_;
15110 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
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;;
15123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15124 (eval "$ac_compile") 2>conftest.er1
15126 grep -v '^ *+' conftest.er1 >conftest.err
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
15136 cat >conftest.$ac_ext <<_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_;
15147 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
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;;
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161 (eval "$ac_compile") 2>conftest.er1
15163 grep -v '^ *+' conftest.er1 >conftest.err
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
15173 echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15176 ac_lo=`expr $ac_mid + 1`
15177 if test $ac_lo -le $ac_mid; then
15181 ac_mid=`expr 2 '*' $ac_mid + 1`
15184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15187 echo "$as_me: failed program was:" >&5
15188 sed 's/^/| /' conftest.$ac_ext >&5
15190 cat >conftest.$ac_ext <<_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_;
15201 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
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;;
15214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15215 (eval "$ac_compile") 2>conftest.er1
15217 grep -v '^ *+' conftest.er1 >conftest.err
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
15227 cat >conftest.$ac_ext <<_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_;
15238 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
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;;
15251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15252 (eval "$ac_compile") 2>conftest.er1
15254 grep -v '^ *+' conftest.er1 >conftest.err
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
15264 echo "$as_me: failed program was:" >&5
15265 sed 's/^/| /' conftest.$ac_ext >&5
15267 ac_hi=`expr '(' $ac_mid ')' - 1`
15268 if test $ac_mid -le $ac_hi; then
15272 ac_mid=`expr 2 '*' $ac_mid`
15275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15278 echo "$as_me: failed program was:" >&5
15279 sed 's/^/| /' conftest.$ac_ext >&5
15284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
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_;
15302 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
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;;
15315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15316 (eval "$ac_compile") 2>conftest.er1
15318 grep -v '^ *+' conftest.er1 >conftest.err
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
15328 echo "$as_me: failed program was:" >&5
15329 sed 's/^/| /' conftest.$ac_ext >&5
15331 ac_lo=`expr '(' $ac_mid ')' + 1`
15334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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; }; }
15345 ac_cv_sizeof_long=0
15349 cat >conftest.$ac_ext <<_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_)); }
15360 #include <stdlib.h>
15365 FILE *f = fopen ("conftest.val", "w");
15368 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15370 long int i = longval ();
15371 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15373 fprintf (f, "%ld\n", i);
15377 unsigned long int i = ulongval ();
15378 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15380 fprintf (f, "%lu\n", i);
15382 return ferror (f) || fclose (f) != 0;
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;;
15394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15395 (eval "$ac_link") 2>&5
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;;
15403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15404 (eval "$ac_try") 2>&5
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); }; }; then
15408 ac_cv_sizeof_long=`cat conftest.val`
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
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; }; }
15422 ac_cv_sizeof_long=0
15425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15429 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15430 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
15434 cat >>confdefs.h <<_ACEOF
15435 #define SIZEOF_LONG $ac_cv_sizeof_long
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
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
15451 if test $ac_cv_sizeof_long -eq 8 ; then
15452 test -d /usr/lib64 && ac_cv_cmu_lib_subdir=lib64
15455 ac_cv_cmu_lib_subdir=$with_lib_subdir
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
15466 # Check whether --with-openssl was given.
15467 if test "${with_openssl+set}" = set; then
15468 withval=$with_openssl; with_openssl=$withval
15474 save_CPPFLAGS=$CPPFLAGS
15475 save_LDFLAGS=$LDFLAGS
15477 if test -d $with_openssl; then
15478 CPPFLAGS="${CPPFLAGS} -I${with_openssl}/include"
15480 # this is CMU ADD LIBPATH
15481 if test "$andrew_runpath_switch" = "none" ; then
15482 LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
15484 LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR $andrew_runpath_switch${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
15489 case "$with_openssl" in
15491 with_openssl="no";;
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
15499 ac_check_lib_save_LIBS=$LIBS
15500 LIBS="-lrsaref $LIBS"
15501 cat >conftest.$ac_ext <<_ACEOF
15504 cat confdefs.h >>conftest.$ac_ext
15505 cat >>conftest.$ac_ext <<_ACEOF
15506 /* end confdefs.h. */
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. */
15514 char RSAPublicEncrypt ();
15518 return RSAPublicEncrypt ();
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;;
15529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15530 (eval "$ac_link") 2>conftest.er1
15532 grep -v '^ *+' conftest.er1 >conftest.err
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
15543 echo "$as_me: failed program was:" >&5
15544 sed 's/^/| /' conftest.$ac_ext >&5
15546 ac_cv_lib_rsaref_RSAPublicEncrypt=no
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
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
15562 ac_check_lib_save_LIBS=$LIBS
15563 LIBS="-lRSAglue $LIBS"
15564 cat >conftest.$ac_ext <<_ACEOF
15567 cat confdefs.h >>conftest.$ac_ext
15568 cat >>conftest.$ac_ext <<_ACEOF
15569 /* end confdefs.h. */
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. */
15577 char RSAPublicEncrypt ();
15581 return RSAPublicEncrypt ();
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;;
15592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15593 (eval "$ac_link") 2>conftest.er1
15595 grep -v '^ *+' conftest.er1 >conftest.err
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
15606 echo "$as_me: failed program was:" >&5
15607 sed 's/^/| /' conftest.$ac_ext >&5
15609 ac_cv_lib_RSAglue_RSAPublicEncrypt=no
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
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"
15621 LIB_RSAREF="-lrsaref"
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
15635 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
15636 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6; }
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
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>
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;;
15656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15657 (eval "$ac_compile") 2>conftest.er1
15659 grep -v '^ *+' conftest.er1 >conftest.err
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
15669 echo "$as_me: failed program was:" >&5
15670 sed 's/^/| /' conftest.$ac_ext >&5
15672 ac_header_compiler=no
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; }
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
15685 cat confdefs.h >>conftest.$ac_ext
15686 cat >>conftest.$ac_ext <<_ACEOF
15687 /* end confdefs.h. */
15688 #include <openssl/evp.h>
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;;
15695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15698 grep -v '^ *+' conftest.er1 >conftest.err
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
15706 ac_header_preproc=yes
15708 echo "$as_me: failed program was:" >&5
15709 sed 's/^/| /' conftest.$ac_ext >&5
15711 ac_header_preproc=no
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; }
15718 # So? What about this header?
15719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
15748 ac_cv_header_openssl_evp_h=$ac_header_preproc
15750 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
15751 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6; }
15754 if test $ac_cv_header_openssl_evp_h = yes; then
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
15761 ac_check_lib_save_LIBS=$LIBS
15762 LIBS="-lcrypto $LIB_RSAREF $LIBS"
15763 cat >conftest.$ac_ext <<_ACEOF
15766 cat confdefs.h >>conftest.$ac_ext
15767 cat >>conftest.$ac_ext <<_ACEOF
15768 /* end confdefs.h. */
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. */
15776 char EVP_DigestInit ();
15780 return EVP_DigestInit ();
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;;
15791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15792 (eval "$ac_link") 2>conftest.er1
15794 grep -v '^ *+' conftest.er1 >conftest.err
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
15805 echo "$as_me: failed program was:" >&5
15806 sed 's/^/| /' conftest.$ac_ext >&5
15808 ac_cv_lib_crypto_EVP_DigestInit=no
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
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
15831 if test "$with_openssl" != "no"; then
15833 cat >>confdefs.h <<\_ACEOF
15834 #define HAVE_OPENSSL
15838 CPPFLAGS=$save_CPPFLAGS
15839 LDFLAGS=$save_LDFLAGS
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; }
15849 # Check whether --with-des was given.
15850 if test "${with_des+set}" = set; then
15851 withval=$with_des; with_des=$withval
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"
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
15870 ac_check_lib_save_LIBS=$LIBS
15871 LIBS="-lcrypto $LIB_RSAREF $LIBS"
15872 cat >conftest.$ac_ext <<_ACEOF
15875 cat confdefs.h >>conftest.$ac_ext
15876 cat >>conftest.$ac_ext <<_ACEOF
15877 /* end confdefs.h. */
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. */
15885 char des_cbc_encrypt ();
15889 return des_cbc_encrypt ();
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;;
15900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15901 (eval "$ac_link") 2>conftest.er1
15903 grep -v '^ *+' conftest.er1 >conftest.err
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
15914 echo "$as_me: failed program was:" >&5
15915 sed 's/^/| /' conftest.$ac_ext >&5
15917 ac_cv_lib_crypto_des_cbc_encrypt=no
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
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
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
15934 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
15935 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
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
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>
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;;
15955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15956 (eval "$ac_compile") 2>conftest.er1
15958 grep -v '^ *+' conftest.er1 >conftest.err
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
15968 echo "$as_me: failed program was:" >&5
15969 sed 's/^/| /' conftest.$ac_ext >&5
15971 ac_header_compiler=no
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; }
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
15984 cat confdefs.h >>conftest.$ac_ext
15985 cat >>conftest.$ac_ext <<_ACEOF
15986 /* end confdefs.h. */
15987 #include <openssl/des.h>
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;;
15994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15997 grep -v '^ *+' conftest.er1 >conftest.err
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
16005 ac_header_preproc=yes
16007 echo "$as_me: failed program was:" >&5
16008 sed 's/^/| /' conftest.$ac_ext >&5
16010 ac_header_preproc=no
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; }
16017 # So? What about this header?
16018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
16047 ac_cv_header_openssl_des_h=$ac_header_preproc
16049 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
16050 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
16053 if test $ac_cv_header_openssl_des_h = yes; then
16055 cat >>confdefs.h <<\_ACEOF
16056 #define WITH_SSL_DES
16059 LIB_DES="-lcrypto";
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
16077 ac_check_lib_save_LIBS=$LIBS
16078 LIBS="-lcrypto $LIB_RSAREF $LIBS"
16079 cat >conftest.$ac_ext <<_ACEOF
16082 cat confdefs.h >>conftest.$ac_ext
16083 cat >>conftest.$ac_ext <<_ACEOF
16084 /* end confdefs.h. */
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. */
16092 char DES_cbc_encrypt ();
16096 return DES_cbc_encrypt ();
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;;
16107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16108 (eval "$ac_link") 2>conftest.er1
16110 grep -v '^ *+' conftest.er1 >conftest.err
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
16121 echo "$as_me: failed program was:" >&5
16122 sed 's/^/| /' conftest.$ac_ext >&5
16124 ac_cv_lib_crypto_DES_cbc_encrypt=no
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
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
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
16141 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
16142 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
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
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>
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;;
16162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16163 (eval "$ac_compile") 2>conftest.er1
16165 grep -v '^ *+' conftest.er1 >conftest.err
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
16175 echo "$as_me: failed program was:" >&5
16176 sed 's/^/| /' conftest.$ac_ext >&5
16178 ac_header_compiler=no
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; }
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
16191 cat confdefs.h >>conftest.$ac_ext
16192 cat >>conftest.$ac_ext <<_ACEOF
16193 /* end confdefs.h. */
16194 #include <openssl/des.h>
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;;
16201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16204 grep -v '^ *+' conftest.er1 >conftest.err
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
16212 ac_header_preproc=yes
16214 echo "$as_me: failed program was:" >&5
16215 sed 's/^/| /' conftest.$ac_ext >&5
16217 ac_header_preproc=no
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; }
16224 # So? What about this header?
16225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
16254 ac_cv_header_openssl_des_h=$ac_header_preproc
16256 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
16257 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
16260 if test $ac_cv_header_openssl_des_h = yes; then
16262 cat >>confdefs.h <<\_ACEOF
16263 #define WITH_SSL_DES
16266 LIB_DES="-lcrypto";
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
16286 ac_check_lib_save_LIBS=$LIBS
16288 cat >conftest.$ac_ext <<_ACEOF
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h. */
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. */
16301 char des_cbc_encrypt ();
16305 return des_cbc_encrypt ();
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;;
16316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16317 (eval "$ac_link") 2>conftest.er1
16319 grep -v '^ *+' conftest.er1 >conftest.err
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
16330 echo "$as_me: failed program was:" >&5
16331 sed 's/^/| /' conftest.$ac_ext >&5
16333 ac_cv_lib_des_des_cbc_encrypt=no
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
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
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
16357 ac_check_lib_save_LIBS=$LIBS
16358 LIBS="-ldes425 $LIBS"
16359 cat >conftest.$ac_ext <<_ACEOF
16362 cat confdefs.h >>conftest.$ac_ext
16363 cat >>conftest.$ac_ext <<_ACEOF
16364 /* end confdefs.h. */
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. */
16372 char des_cbc_encrypt ();
16376 return des_cbc_encrypt ();
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;;
16387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16388 (eval "$ac_link") 2>conftest.er1
16390 grep -v '^ *+' conftest.er1 >conftest.err
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
16401 echo "$as_me: failed program was:" >&5
16402 sed 's/^/| /' conftest.$ac_ext >&5
16404 ac_cv_lib_des425_des_cbc_encrypt=no
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
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";
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
16428 ac_check_lib_save_LIBS=$LIBS
16429 LIBS="-ldes524 $LIBS"
16430 cat >conftest.$ac_ext <<_ACEOF
16433 cat confdefs.h >>conftest.$ac_ext
16434 cat >>conftest.$ac_ext <<_ACEOF
16435 /* end confdefs.h. */
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. */
16443 char des_cbc_encrypt ();
16447 return des_cbc_encrypt ();
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;;
16458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16459 (eval "$ac_link") 2>conftest.er1
16461 grep -v '^ *+' conftest.er1 >conftest.err
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
16472 echo "$as_me: failed program was:" >&5
16473 sed 's/^/| /' conftest.$ac_ext >&5
16475 ac_cv_lib_des524_des_cbc_encrypt=no
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
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";
16493 if test "$with_des" = no; then
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
16501 ac_check_lib_save_LIBS=$LIBS
16502 LIBS="-lrsaref $LIBS"
16503 cat >conftest.$ac_ext <<_ACEOF
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h. */
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. */
16516 char RSAPublicEncrypt ();
16520 return RSAPublicEncrypt ();
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;;
16531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16532 (eval "$ac_link") 2>conftest.er1
16534 grep -v '^ *+' conftest.er1 >conftest.err
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
16545 echo "$as_me: failed program was:" >&5
16546 sed 's/^/| /' conftest.$ac_ext >&5
16548 ac_cv_lib_rsaref_RSAPublicEncrypt=no
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
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
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
16569 ac_check_lib_save_LIBS=$LIBS
16570 LIBS="-lcrypto $LIB_RSAREF $LIBS"
16571 cat >conftest.$ac_ext <<_ACEOF
16574 cat confdefs.h >>conftest.$ac_ext
16575 cat >>conftest.$ac_ext <<_ACEOF
16576 /* end confdefs.h. */
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. */
16584 char des_cbc_encrypt ();
16588 return des_cbc_encrypt ();
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;;
16599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16600 (eval "$ac_link") 2>conftest.er1
16602 grep -v '^ *+' conftest.er1 >conftest.err
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
16613 echo "$as_me: failed program was:" >&5
16614 sed 's/^/| /' conftest.$ac_ext >&5
16616 ac_cv_lib_crypto_des_cbc_encrypt=no
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
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
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
16633 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
16634 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
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
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>
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;;
16654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16655 (eval "$ac_compile") 2>conftest.er1
16657 grep -v '^ *+' conftest.er1 >conftest.err
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
16667 echo "$as_me: failed program was:" >&5
16668 sed 's/^/| /' conftest.$ac_ext >&5
16670 ac_header_compiler=no
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; }
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
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h. */
16686 #include <openssl/des.h>
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;;
16693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16696 grep -v '^ *+' conftest.er1 >conftest.err
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
16704 ac_header_preproc=yes
16706 echo "$as_me: failed program was:" >&5
16707 sed 's/^/| /' conftest.$ac_ext >&5
16709 ac_header_preproc=no
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; }
16716 # So? What about this header?
16717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
16746 ac_cv_header_openssl_des_h=$ac_header_preproc
16748 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
16749 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
16752 if test $ac_cv_header_openssl_des_h = yes; then
16754 cat >>confdefs.h <<\_ACEOF
16755 #define WITH_SSL_DES
16758 LIB_DES="-lcrypto";
16772 if test "$with_des" != no; then
16774 cat >>confdefs.h <<\_ACEOF
16783 # Check whether --enable-digest was given.
16784 if test "${enable_digest+set}" = set; then
16785 enableval=$enable_digest; digest=$enableval
16791 if test "$digest" != no; then
16792 if test -d $digest; then
16793 CPPFLAGS="$CPPFLAGS -I$digest/include"
16794 LDFLAGS="$LDFLAGS -L$digest/lib"
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;}
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"
16812 cat >>confdefs.h <<\_ACEOF
16813 #define STATIC_DIGESTMD5
16818 { echo "$as_me:$LINENO: result: disabled" >&5
16819 echo "${ECHO_T}disabled" >&6; }
16822 # Check whether --enable-otp was given.
16823 if test "${enable_otp+set}" = set; then
16824 enableval=$enable_otp; otp=$enableval
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;}
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"
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"
16848 cat >>confdefs.h <<\_ACEOF
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}"
16861 case "$with_opie" in
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
16868 ac_check_lib_save_LIBS=$LIBS
16869 LIBS="-lopie $LIBS"
16870 cat >conftest.$ac_ext <<_ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h. */
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. */
16883 char opiechallenge ();
16887 return opiechallenge ();
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;;
16898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899 (eval "$ac_link") 2>conftest.er1
16901 grep -v '^ *+' conftest.er1 >conftest.err
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
16912 echo "$as_me: failed program was:" >&5
16913 sed 's/^/| /' conftest.$ac_ext >&5
16915 ac_cv_lib_opie_opiechallenge=no
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
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
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
16932 { echo "$as_me:$LINENO: result: $ac_cv_header_opie_h" >&5
16933 echo "${ECHO_T}$ac_cv_header_opie_h" >&6; }
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
16941 cat confdefs.h >>conftest.$ac_ext
16942 cat >>conftest.$ac_ext <<_ACEOF
16943 /* end confdefs.h. */
16944 $ac_includes_default
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;;
16953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16954 (eval "$ac_compile") 2>conftest.er1
16956 grep -v '^ *+' conftest.er1 >conftest.err
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
16966 echo "$as_me: failed program was:" >&5
16967 sed 's/^/| /' conftest.$ac_ext >&5
16969 ac_header_compiler=no
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; }
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
16982 cat confdefs.h >>conftest.$ac_ext
16983 cat >>conftest.$ac_ext <<_ACEOF
16984 /* end confdefs.h. */
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;;
16992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16995 grep -v '^ *+' conftest.er1 >conftest.err
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
17003 ac_header_preproc=yes
17005 echo "$as_me: failed program was:" >&5
17006 sed 's/^/| /' conftest.$ac_ext >&5
17008 ac_header_preproc=no
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; }
17015 # So? What about this header?
17016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
17045 ac_cv_header_opie_h=$ac_header_preproc
17047 { echo "$as_me:$LINENO: result: $ac_cv_header_opie_h" >&5
17048 echo "${ECHO_T}$ac_cv_header_opie_h" >&6; }
17051 if test $ac_cv_header_opie_h = yes; then
17064 if test -d $with_opie; then
17065 CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
17066 LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
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; }
17078 if test "$with_opie" != no; then
17080 cat >>confdefs.h <<\_ACEOF
17084 OTP_LIBS="$OTP_LIBS -lopie"
17090 { echo "$as_me:$LINENO: result: disabled" >&5
17091 echo "${ECHO_T}disabled" >&6; }
17094 # Check whether --enable-srp was given.
17095 if test "${enable_srp+set}" = set; then
17096 enableval=$enable_srp; srp=$enableval
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;}
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"
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"
17120 cat >>confdefs.h <<\_ACEOF
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
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; }
17140 cat >>confdefs.h <<\_ACEOF
17141 #define DO_SRP_SETPASS
17145 { echo "$as_me:$LINENO: result: disabled" >&5
17146 echo "${ECHO_T}disabled" >&6; }
17151 { echo "$as_me:$LINENO: result: disabled" >&5
17152 echo "${ECHO_T}disabled" >&6; }
17158 # Check whether --enable-krb4 was given.
17159 if test "${enable_krb4+set}" = set; then
17160 enableval=$enable_krb4; krb4=$enableval
17166 if test "$krb4" != no; then
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
17173 ac_check_lib_save_LIBS=$LIBS
17174 LIBS="-lresolv $LIBS"
17175 cat >conftest.$ac_ext <<_ACEOF
17178 cat confdefs.h >>conftest.$ac_ext
17179 cat >>conftest.$ac_ext <<_ACEOF
17180 /* end confdefs.h. */
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. */
17188 char res_search ();
17192 return res_search ();
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;;
17203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17204 (eval "$ac_link") 2>conftest.er1
17206 grep -v '^ *+' conftest.er1 >conftest.err
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
17217 echo "$as_me: failed program was:" >&5
17218 sed 's/^/| /' conftest.$ac_ext >&5
17220 ac_cv_lib_resolv_res_search=no
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
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
17234 LIBS="-lresolv $LIBS"
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
17246 for krbhloc in include/kerberosIV include/kerberos include
17248 if test -f ${krb4}/${krbhloc}/krb.h ; then
17249 cyrus_krbinclude=${krb4}/${krbhloc}
17255 { echo "$as_me:$LINENO: result: $cyrus_krbinclude" >&5
17256 echo "${ECHO_T}$cyrus_krbinclude" >&6; }
17258 if test -n "${cyrus_krbinclude}"; then
17259 CPPFLAGS="$CPPFLAGS -I${cyrus_krbinclude}"
17261 LDFLAGS="$LDFLAGS -L$krb4/lib"
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
17271 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
17272 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
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
17280 cat confdefs.h >>conftest.$ac_ext
17281 cat >>conftest.$ac_ext <<_ACEOF
17282 /* end confdefs.h. */
17283 $ac_includes_default
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;;
17292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17293 (eval "$ac_compile") 2>conftest.er1
17295 grep -v '^ *+' conftest.er1 >conftest.err
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
17305 echo "$as_me: failed program was:" >&5
17306 sed 's/^/| /' conftest.$ac_ext >&5
17308 ac_header_compiler=no
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; }
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
17321 cat confdefs.h >>conftest.$ac_ext
17322 cat >>conftest.$ac_ext <<_ACEOF
17323 /* end confdefs.h. */
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;;
17331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17334 grep -v '^ *+' conftest.er1 >conftest.err
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
17342 ac_header_preproc=yes
17344 echo "$as_me: failed program was:" >&5
17345 sed 's/^/| /' conftest.$ac_ext >&5
17347 ac_header_preproc=no
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; }
17354 # So? What about this header?
17355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
17384 ac_cv_header_krb_h=$ac_header_preproc
17386 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
17387 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
17390 if test $ac_cv_header_krb_h = yes; then
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
17397 ac_check_lib_save_LIBS=$LIBS
17398 LIBS="-lcom_err $LIBS"
17399 cat >conftest.$ac_ext <<_ACEOF
17402 cat confdefs.h >>conftest.$ac_ext
17403 cat >>conftest.$ac_ext <<_ACEOF
17404 /* end confdefs.h. */
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. */
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;;
17427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17428 (eval "$ac_link") 2>conftest.er1
17430 grep -v '^ *+' conftest.er1 >conftest.err
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
17441 echo "$as_me: failed program was:" >&5
17442 sed 's/^/| /' conftest.$ac_ext >&5
17444 ac_cv_lib_com_err_com_err=no
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
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
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
17460 ac_check_lib_save_LIBS=$LIBS
17461 LIBS="-lkrb $LIB_DES -lcom_err $LIBS"
17462 cat >conftest.$ac_ext <<_ACEOF
17465 cat confdefs.h >>conftest.$ac_ext
17466 cat >>conftest.$ac_ext <<_ACEOF
17467 /* end confdefs.h. */
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. */
17475 char krb_mk_priv ();
17479 return krb_mk_priv ();
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;;
17490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17491 (eval "$ac_link") 2>conftest.er1
17493 grep -v '^ *+' conftest.er1 >conftest.err
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
17504 echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17507 ac_cv_lib_krb_krb_mk_priv=no
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
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"
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
17529 ac_check_lib_save_LIBS=$LIBS
17530 LIBS="-lkrb $LIB_DES $LIBS"
17531 cat >conftest.$ac_ext <<_ACEOF
17534 cat confdefs.h >>conftest.$ac_ext
17535 cat >>conftest.$ac_ext <<_ACEOF
17536 /* end confdefs.h. */
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. */
17544 char krb_mk_priv ();
17548 return krb_mk_priv ();
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;;
17559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17560 (eval "$ac_link") 2>conftest.er1
17562 grep -v '^ *+' conftest.er1 >conftest.err
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
17573 echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17576 ac_cv_lib_krb_krb_mk_priv=no
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
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"
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
17605 ac_check_lib_save_LIBS=$LIBS
17606 LIBS="-lkrb4 $LIB_DES $LIBS"
17607 cat >conftest.$ac_ext <<_ACEOF
17610 cat confdefs.h >>conftest.$ac_ext
17611 cat >>conftest.$ac_ext <<_ACEOF
17612 /* end confdefs.h. */
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. */
17620 char krb_mk_priv ();
17624 return krb_mk_priv ();
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;;
17635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17636 (eval "$ac_link") 2>conftest.er1
17638 grep -v '^ *+' conftest.er1 >conftest.err
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
17649 echo "$as_me: failed program was:" >&5
17650 sed 's/^/| /' conftest.$ac_ext >&5
17652 ac_cv_lib_krb4_krb_mk_priv=no
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
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
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;}
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;}
17679 if test "$krb4" != no; then
17680 cmu_save_LIBS="$LIBS"
17681 LIBS="$LIBS $SASL_KRB_LIB"
17683 for ac_func in krb_get_err_text
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
17691 cat >conftest.$ac_ext <<_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
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. */
17707 # include <limits.h>
17709 # include <assert.h>
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. */
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
17731 return $ac_func ();
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;;
17742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17743 (eval "$ac_link") 2>conftest.er1
17745 grep -v '^ *+' conftest.er1 >conftest.err
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"
17756 echo "$as_me: failed program was:" >&5
17757 sed 's/^/| /' conftest.$ac_ext >&5
17759 eval "$as_ac_var=no"
17762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17763 conftest$ac_exeext conftest.$ac_ext
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
17776 LIBS="$cmu_save_LIBS"
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"
17788 cat >>confdefs.h <<\_ACEOF
17789 #define STATIC_KERBEROS4
17793 cat >>confdefs.h <<\_ACEOF
17797 SASL_KRB_LIB="$SASL_KRB_LIB $LIB_DES $COM_ERR"
17799 { echo "$as_me:$LINENO: result: disabled" >&5
17800 echo "${ECHO_T}disabled" >&6; }
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
17809 cat >conftest.$ac_ext <<_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
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. */
17825 # include <limits.h>
17827 # include <assert.h>
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. */
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
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;;
17860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861 (eval "$ac_link") 2>conftest.er1
17863 grep -v '^ *+' conftest.er1 >conftest.err
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
17874 echo "$as_me: failed program was:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17877 ac_cv_func_crypt=no
17880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17881 conftest$ac_exeext conftest.$ac_ext
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
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
17893 ac_check_lib_save_LIBS=$LIBS
17894 LIBS="-lcrypt $LIBS"
17895 cat >conftest.$ac_ext <<_ACEOF
17898 cat confdefs.h >>conftest.$ac_ext
17899 cat >>conftest.$ac_ext <<_ACEOF
17900 /* end confdefs.h. */
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. */
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;;
17923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17924 (eval "$ac_link") 2>conftest.er1
17926 grep -v '^ *+' conftest.er1 >conftest.err
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
17937 echo "$as_me: failed program was:" >&5
17938 sed 's/^/| /' conftest.$ac_ext >&5
17940 ac_cv_lib_crypt_crypt=no
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
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
17961 # Check whether --enable-gssapi was given.
17962 if test "${enable_gssapi+set}" = set; then
17963 enableval=$enable_gssapi; gssapi=$enableval
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
17977 if test "$gssapi" != no; then
17990 # When should we use __sunos?
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; }; }
18008 cmu_saved_CPPFLAGS=$CPPFLAGS
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"
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"
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
18033 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
18034 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
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
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>
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;;
18054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18055 (eval "$ac_compile") 2>conftest.er1
18057 grep -v '^ *+' conftest.er1 >conftest.err
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
18067 echo "$as_me: failed program was:" >&5
18068 sed 's/^/| /' conftest.$ac_ext >&5
18070 ac_header_compiler=no
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; }
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
18083 cat confdefs.h >>conftest.$ac_ext
18084 cat >>conftest.$ac_ext <<_ACEOF
18085 /* end confdefs.h. */
18086 #include <gssapi.h>
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;;
18093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18096 grep -v '^ *+' conftest.er1 >conftest.err
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
18104 ac_header_preproc=yes
18106 echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18109 ac_header_preproc=no
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; }
18116 # So? What about this header?
18117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
18146 ac_cv_header_gssapi_h=$ac_header_preproc
18148 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
18149 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
18152 if test $ac_cv_header_gssapi_h = yes; then
18154 cat >>confdefs.h <<\_ACEOF
18155 #define HAVE_GSSAPI_H
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
18165 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5
18166 echo "${ECHO_T}$ac_cv_header_gssapi_gssapi_h" >&6; }
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
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>
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;;
18186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18187 (eval "$ac_compile") 2>conftest.er1
18189 grep -v '^ *+' conftest.er1 >conftest.err
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
18199 echo "$as_me: failed program was:" >&5
18200 sed 's/^/| /' conftest.$ac_ext >&5
18202 ac_header_compiler=no
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; }
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
18215 cat confdefs.h >>conftest.$ac_ext
18216 cat >>conftest.$ac_ext <<_ACEOF
18217 /* end confdefs.h. */
18218 #include <gssapi/gssapi.h>
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;;
18225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18228 grep -v '^ *+' conftest.er1 >conftest.err
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
18236 ac_header_preproc=yes
18238 echo "$as_me: failed program was:" >&5
18239 sed 's/^/| /' conftest.$ac_ext >&5
18241 ac_header_preproc=no
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; }
18248 # So? What about this header?
18249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
18278 ac_cv_header_gssapi_gssapi_h=$ac_header_preproc
18280 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5
18281 echo "${ECHO_T}$ac_cv_header_gssapi_gssapi_h" >&6; }
18284 if test $ac_cv_header_gssapi_gssapi_h = yes; then
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
18296 CPPFLAGS=$cmu_saved_CPPFLAGS
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/)
18307 # The choice is reflected in GSSAPIBASE_LIBS
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
18315 ac_check_lib_save_LIBS=$LIBS
18316 LIBS="-lresolv $LIBS"
18317 cat >conftest.$ac_ext <<_ACEOF
18320 cat confdefs.h >>conftest.$ac_ext
18321 cat >>conftest.$ac_ext <<_ACEOF
18322 /* end confdefs.h. */
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. */
18330 char res_search ();
18334 return res_search ();
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;;
18345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18346 (eval "$ac_link") 2>conftest.er1
18348 grep -v '^ *+' conftest.er1 >conftest.err
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
18359 echo "$as_me: failed program was:" >&5
18360 sed 's/^/| /' conftest.$ac_ext >&5
18362 ac_cv_lib_resolv_res_search=no
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
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
18376 LIBS="-lresolv $LIBS"
18380 if test -d ${gssapi}; then
18381 gssapi_dir="${gssapi}/lib"
18382 GSSAPIBASE_LIBS="-L$gssapi_dir"
18383 GSSAPIBASE_STATIC_LIBS="-L$gssapi_dir"
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"
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.
18395 if test "$gss_impl" = "auto" -o "$gss_impl" = "heimdal"; then
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
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
18407 cat confdefs.h >>conftest.$ac_ext
18408 cat >>conftest.$ac_ext <<_ACEOF
18409 /* end confdefs.h. */
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. */
18417 char gss_unwrap ();
18421 return gss_unwrap ();
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;;
18432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18433 (eval "$ac_link") 2>conftest.er1
18435 grep -v '^ *+' conftest.er1 >conftest.err
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
18446 echo "$as_me: failed program was:" >&5
18447 sed 's/^/| /' conftest.$ac_ext >&5
18449 ac_cv_lib_gssapi_gss_unwrap=no
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
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
18464 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
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
18476 ac_check_lib_save_LIBS=$LIBS
18477 LIBS="-lkrb5support ${LIB_SOCKET} $LIBS"
18478 cat >conftest.$ac_ext <<_ACEOF
18481 cat confdefs.h >>conftest.$ac_ext
18482 cat >>conftest.$ac_ext <<_ACEOF
18483 /* end confdefs.h. */
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. */
18491 char krb5int_getspecific ();
18495 return krb5int_getspecific ();
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;;
18506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18507 (eval "$ac_link") 2>conftest.er1
18509 grep -v '^ *+' conftest.er1 >conftest.err
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
18520 echo "$as_me: failed program was:" >&5
18521 sed 's/^/| /' conftest.$ac_ext >&5
18523 ac_cv_lib_krb5support_krb5int_getspecific=no
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
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
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
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
18548 cat confdefs.h >>conftest.$ac_ext
18549 cat >>conftest.$ac_ext <<_ACEOF
18550 /* end confdefs.h. */
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. */
18558 char gss_unwrap ();
18562 return gss_unwrap ();
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;;
18573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18574 (eval "$ac_link") 2>conftest.er1
18576 grep -v '^ *+' conftest.er1 >conftest.err
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
18587 echo "$as_me: failed program was:" >&5
18588 sed 's/^/| /' conftest.$ac_ext >&5
18590 ac_cv_lib_gssapi_krb5_gss_unwrap=no
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
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
18605 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
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
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"
18619 CPPFLAGS="$CPPFLAGS -D$platform"
18620 if test -d "${gssapi}/appsec-sdk/include"; then
18621 CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
18626 # Check for CyberSafe with two libraries first, than fall back to a single
18627 # library (older CyberSafe)
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
18635 ac_check_lib_save_LIBS=$LIBS
18636 LIBS="-lgss ${GSSAPIBASE_LIBS} -lgss -lcstbk5 $LIBS"
18637 cat >conftest.$ac_ext <<_ACEOF
18640 cat confdefs.h >>conftest.$ac_ext
18641 cat >>conftest.$ac_ext <<_ACEOF
18642 /* end confdefs.h. */
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. */
18650 char csf_gss_acq_user ();
18654 return csf_gss_acq_user ();
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;;
18665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18666 (eval "$ac_link") 2>conftest.er1
18668 grep -v '^ *+' conftest.er1 >conftest.err
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
18679 echo "$as_me: failed program was:" >&5
18680 sed 's/^/| /' conftest.$ac_ext >&5
18682 ac_cv_lib_gss_csf_gss_acq_user=no
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
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"
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
18700 ac_check_lib_save_LIBS=$LIBS
18701 LIBS="-lgss $GSSAPIBASE_LIBS -lgss $LIBS"
18702 cat >conftest.$ac_ext <<_ACEOF
18705 cat confdefs.h >>conftest.$ac_ext
18706 cat >>conftest.$ac_ext <<_ACEOF
18707 /* end confdefs.h. */
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. */
18715 char csf_gss_acq_user ();
18719 return csf_gss_acq_user ();
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;;
18730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18731 (eval "$ac_link") 2>conftest.er1
18733 grep -v '^ *+' conftest.er1 >conftest.err
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
18744 echo "$as_me: failed program was:" >&5
18745 sed 's/^/| /' conftest.$ac_ext >&5
18747 ac_cv_lib_gss_csf_gss_acq_user=no
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
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"
18765 if test "$gss_failed" = "1"; then
18766 # Restore variables
18767 GSSAPIBASE_LIBS=$cmu_saved_GSSAPIBASE_LIBS
18768 CPPFLAGS=$cmu_saved_CPPFLAGS
18770 if test "$gss_impl" != "auto"; then
18776 if test "$gss_impl" = "auto" -o "$gss_impl" = "seam"; then
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
18783 ac_check_lib_save_LIBS=$LIBS
18784 LIBS="-lgss -lgss $LIBS"
18785 cat >conftest.$ac_ext <<_ACEOF
18788 cat confdefs.h >>conftest.$ac_ext
18789 cat >>conftest.$ac_ext <<_ACEOF
18790 /* end confdefs.h. */
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. */
18798 char gss_unwrap ();
18802 return gss_unwrap ();
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;;
18813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18814 (eval "$ac_link") 2>conftest.er1
18816 grep -v '^ *+' conftest.er1 >conftest.err
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
18827 echo "$as_me: failed program was:" >&5
18828 sed 's/^/| /' conftest.$ac_ext >&5
18830 ac_cv_lib_gss_gss_unwrap=no
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
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
18845 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
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
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;}
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;}
18888 # Cybersafe defines both GSS_C_NT_HOSTBASED_SERVICE and GSS_C_NT_USER_NAME
18889 # in gssapi\rfckrb5.h
18891 if test "$gssapi" != "no"; then
18892 if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
18893 cat >conftest.$ac_ext <<_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
18904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18905 $EGREP "hostbased_service_gss_nt_yes" >/dev/null 2>&1; then
18907 cat >>confdefs.h <<\_ACEOF
18908 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
18912 { echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5
18913 echo "$as_me: WARNING: Cybersafe define not found" >&2;}
18918 elif test "$ac_cv_header_gssapi_h" = "yes"; then
18919 cat >conftest.$ac_ext <<_ACEOF
18922 cat confdefs.h >>conftest.$ac_ext
18923 cat >>conftest.$ac_ext <<_ACEOF
18924 /* end confdefs.h. */
18925 #include <gssapi.h>
18928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18929 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
18931 cat >>confdefs.h <<\_ACEOF
18932 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
18938 elif test "$ac_cv_header_gssapi_gssapi_h"; then
18939 cat >conftest.$ac_ext <<_ACEOF
18942 cat confdefs.h >>conftest.$ac_ext
18943 cat >>conftest.$ac_ext <<_ACEOF
18944 /* end confdefs.h. */
18945 #include <gssapi/gssapi.h>
18948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18949 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
18951 cat >>confdefs.h <<\_ACEOF
18952 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
18960 if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
18961 cat >conftest.$ac_ext <<_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
18972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18973 $EGREP "user_name_yes_gss_nt" >/dev/null 2>&1; then
18975 cat >>confdefs.h <<\_ACEOF
18976 #define HAVE_GSS_C_NT_USER_NAME
18980 { echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5
18981 echo "$as_me: WARNING: Cybersafe define not found" >&2;}
18985 elif test "$ac_cv_header_gssapi_h" = "yes"; then
18986 cat >conftest.$ac_ext <<_ACEOF
18989 cat confdefs.h >>conftest.$ac_ext
18990 cat >>conftest.$ac_ext <<_ACEOF
18991 /* end confdefs.h. */
18992 #include <gssapi.h>
18995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18996 $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then
18998 cat >>confdefs.h <<\_ACEOF
18999 #define HAVE_GSS_C_NT_USER_NAME
19005 elif test "$ac_cv_header_gssapi_gssapi_h"; then
19006 cat >conftest.$ac_ext <<_ACEOF
19009 cat confdefs.h >>conftest.$ac_ext
19010 cat >>conftest.$ac_ext <<_ACEOF
19011 /* end confdefs.h. */
19012 #include <gssapi/gssapi.h>
19015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19016 $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then
19018 cat >>confdefs.h <<\_ACEOF
19019 #define HAVE_GSS_C_NT_USER_NAME
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
19039 ac_check_lib_save_LIBS=$LIBS
19040 LIBS="-lresolv $LIBS"
19041 cat >conftest.$ac_ext <<_ACEOF
19044 cat confdefs.h >>conftest.$ac_ext
19045 cat >>conftest.$ac_ext <<_ACEOF
19046 /* end confdefs.h. */
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. */
19054 char res_search ();
19058 return res_search ();
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;;
19069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19070 (eval "$ac_link") 2>conftest.er1
19072 grep -v '^ *+' conftest.er1 >conftest.err
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
19083 echo "$as_me: failed program was:" >&5
19084 sed 's/^/| /' conftest.$ac_ext >&5
19086 ac_cv_lib_resolv_res_search=no
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
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"
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"
19103 cmu_save_LIBS="$LIBS"
19104 LIBS="$LIBS $GSSAPIBASE_LIBS"
19106 for ac_func in gsskrb5_register_acceptor_identity
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
19114 cat >conftest.$ac_ext <<_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
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. */
19130 # include <limits.h>
19132 # include <assert.h>
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. */
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
19154 return $ac_func ();
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;;
19165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19166 (eval "$ac_link") 2>conftest.er1
19168 grep -v '^ *+' conftest.er1 >conftest.err
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"
19179 echo "$as_me: failed program was:" >&5
19180 sed 's/^/| /' conftest.$ac_ext >&5
19182 eval "$as_ac_var=no"
19185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19186 conftest$ac_exeext conftest.$ac_ext
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
19199 LIBS="$cmu_save_LIBS"
19201 { echo "$as_me:$LINENO: result: disabled" >&5
19202 echo "${ECHO_T}disabled" >&6; }
19208 if test "$gssapi" != "no"; then
19210 cat >>confdefs.h <<\_ACEOF
19211 #define STATIC_GSSAPIV2
19215 if test "$gss_impl" = "mit"; then
19216 mutex_default="yes"
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
19224 use_gss_mutexes=$mutex_default
19227 if test $use_gss_mutexes = "yes"; then
19229 cat >>confdefs.h <<\_ACEOF
19230 #define GSS_USE_MUTEXES
19234 { echo "$as_me:$LINENO: result: $use_gss_mutexes" >&5
19235 echo "${ECHO_T}$use_gss_mutexes" >&6; }
19241 # Check whether --enable-plain was given.
19242 if test "${enable_plain+set}" = set; then
19243 enableval=$enable_plain; plain=$enableval
19250 if test "$plain" != no; then
19251 if test "$cmu_have_crypt" = yes; then
19252 PLAIN_LIBS=$LIB_CRYPT
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"
19267 cat >>confdefs.h <<\_ACEOF
19268 #define STATIC_PLAIN
19273 { echo "$as_me:$LINENO: result: disabled" >&5
19274 echo "${ECHO_T}disabled" >&6; }
19278 # Check whether --enable-anon was given.
19279 if test "${enable_anon+set}" = set; then
19280 enableval=$enable_anon; anon=$enableval
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"
19296 cat >>confdefs.h <<\_ACEOF
19297 #define STATIC_ANONYMOUS
19302 { echo "$as_me:$LINENO: result: disabled" >&5
19303 echo "${ECHO_T}disabled" >&6; }
19306 # Check whether --enable-login was given.
19307 if test "${enable_login+set}" = set; then
19308 enableval=$enable_login; login=$enableval
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"
19324 cat >>confdefs.h <<\_ACEOF
19325 #define STATIC_LOGIN
19330 { echo "$as_me:$LINENO: result: disabled" >&5
19331 echo "${ECHO_T}disabled" >&6; }
19334 # Check whether --enable-ntlm was given.
19335 if test "${enable_ntlm+set}" = set; then
19336 enableval=$enable_ntlm; ntlm=$enableval
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;}
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"
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"
19361 cat >>confdefs.h <<\_ACEOF
19362 #define STATIC_NTLM
19367 { echo "$as_me:$LINENO: result: disabled" >&5
19368 echo "${ECHO_T}disabled" >&6; }
19371 # Check whether --enable-passdss was given.
19372 if test "${enable_passdss+set}" = set; then
19373 enableval=$enable_passdss; passdss=$enableval
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;}
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"
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"
19398 cat >>confdefs.h <<\_ACEOF
19399 #define STATIC_PASSDSS
19404 { echo "$as_me:$LINENO: result: disabled" >&5
19405 echo "${ECHO_T}disabled" >&6; }
19409 # make the option show up so people don't whine that it is only in the
19410 # saslauthd configure script --help
19412 # Check whether --with-ldap was given.
19413 if test "${with_ldap+set}" = set; then
19414 withval=$with_ldap;
19422 # Check whether --enable-sql was given.
19423 if test "${enable_sql+set}" = set; then
19424 enableval=$enable_sql; sql=$enableval
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"
19440 cat >>confdefs.h <<\_ACEOF
19446 { echo "$as_me:$LINENO: result: disabled" >&5
19447 echo "${ECHO_T}disabled" >&6; }
19451 # Check whether --with-mysql was given.
19452 if test "${with_mysql+set}" = set; then
19453 withval=$with_mysql; with_mysql=$withval
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
19465 if test -f ${prefix}/${mysqlloc}/libmysqlclient.a; then
19466 with_mysql="${prefix}"
19468 elif test -f /usr/local/${mysqlloc}/libmysqlclient.a; then
19469 with_mysql="/usr/local"
19471 elif test -f /usr/${mysqlloc}/libmysqlclient.a; then
19480 case "$with_mysql" in
19482 notfound) { echo "$as_me:$LINENO: WARNING: MySQL Library not found" >&5
19483 echo "$as_me: WARNING: MySQL Library not found" >&2;}; true;;
19485 if test -d ${with_mysql}/lib/mysql; then
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}"
19491 LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/lib/mysql"
19494 elif test -d ${with_mysql}/mysql/lib; then
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}"
19500 LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/mysql/lib"
19503 elif test -d ${with_mysql}/lib; then
19505 # this is CMU ADD LIBPATH TO
19506 if test "$andrew_runpath_switch" = "none" ; then
19507 LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL}"
19509 LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/lib"
19514 # this is CMU ADD LIBPATH TO
19515 if test "$andrew_runpath_switch" = "none" ; then
19516 LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL}"
19518 LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}"
19523 LIB_MYSQL_DIR=$LIB_MYSQL
19524 LIB_MYSQL="$LIB_MYSQL -lmysqlclient"
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"
19533 CPPFLAGS="${CPPFLAGS} -I${with_mysql}"
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
19543 ac_check_lib_save_LIBS=$LIBS
19544 LIBS="-lmysqlclient $LIBS"
19545 cat >conftest.$ac_ext <<_ACEOF
19548 cat confdefs.h >>conftest.$ac_ext
19549 cat >>conftest.$ac_ext <<_ACEOF
19550 /* end confdefs.h. */
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. */
19558 char mysql_select_db ();
19562 return mysql_select_db ();
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;;
19573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19574 (eval "$ac_link") 2>conftest.er1
19576 grep -v '^ *+' conftest.er1 >conftest.err
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
19587 echo "$as_me: failed program was:" >&5
19588 sed 's/^/| /' conftest.$ac_ext >&5
19590 ac_cv_lib_mysqlclient_mysql_select_db=no
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
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
19601 cat >>confdefs.h <<\_ACEOF
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;}
19611 LDFLAGS=$save_LDFLAGS;;
19617 # Check whether --with-pgsql was given.
19618 if test "${with_pgsql+set}" = set; then
19619 withval=$with_pgsql; with_pgsql=$withval
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
19631 if test -f ${prefix}/${pgsqlloc}/libpq.a; then
19632 with_pgsql="${prefix}"
19634 elif test -f /usr/local/${pgsqlloc}/libpq.a; then
19635 with_pgsql="/usr/local"
19637 elif test -f /usr/${pgsqlloc}/libpq.a; then
19646 case "$with_pgsql" in
19648 notfound) { echo "$as_me:$LINENO: WARNING: PostgreSQL Library not found" >&5
19649 echo "$as_me: WARNING: PostgreSQL Library not found" >&2;}; true;;
19651 if test -d ${with_pgsql}/lib/pgsql; then
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}"
19657 LIB_PGSQL="-L${with_pgsql}/lib/pgsql ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/lib/pgsql"
19660 elif test -d ${with_pgsql}/pgsql/lib; then
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}"
19666 LIB_PGSQL="-L${with_pgsql}/pgsql/lib ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/pgsql/lib"
19669 elif test -d ${with_pgsql}/lib; then
19671 # this is CMU ADD LIBPATH TO
19672 if test "$andrew_runpath_switch" = "none" ; then
19673 LIB_PGSQL="-L${with_pgsql}/lib ${LIB_PGSQL}"
19675 LIB_PGSQL="-L${with_pgsql}/lib ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/lib"
19680 # this is CMU ADD LIBPATH TO
19681 if test "$andrew_runpath_switch" = "none" ; then
19682 LIB_PGSQL="-L${with_pgsql} ${LIB_PGSQL}"
19684 LIB_PGSQL="-L${with_pgsql} ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}"
19689 LIB_PGSQL_DIR=$LIB_PGSQL
19690 LIB_PGSQL="$LIB_PGSQL -lpq"
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"
19699 CPPFLAGS="${CPPFLAGS} -I${with_pgsql}"
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
19710 ac_check_lib_save_LIBS=$LIBS
19712 cat >conftest.$ac_ext <<_ACEOF
19715 cat confdefs.h >>conftest.$ac_ext
19716 cat >>conftest.$ac_ext <<_ACEOF
19717 /* end confdefs.h. */
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. */
19725 char PQsetdbLogin ();
19729 return PQsetdbLogin ();
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;;
19740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19741 (eval "$ac_link") 2>conftest.er1
19743 grep -v '^ *+' conftest.er1 >conftest.err
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
19754 echo "$as_me: failed program was:" >&5
19755 sed 's/^/| /' conftest.$ac_ext >&5
19757 ac_cv_lib_pq_PQsetdbLogin=no
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
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
19768 cat >>confdefs.h <<\_ACEOF
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;}
19778 LDFLAGS=$save_LDFLAGS;;
19784 # Check whether --with-sqlite was given.
19785 if test "${with_sqlite+set}" = set; then
19786 withval=$with_sqlite; with_sqlite=$withval
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
19798 if test -f ${prefix}/${sqliteloc}/libsqlite.a; then
19799 with_sqlite="${prefix}"
19801 elif test -f /usr/local/${sqliteloc}/libsqlite.a; then
19802 with_sqlite="/usr/local"
19804 elif test -f /usr/${sqliteloc}/libsqlite.a; then
19813 case "$with_sqlite" in
19815 notfound) { echo "$as_me:$LINENO: WARNING: SQLite Library not found" >&5
19816 echo "$as_me: WARNING: SQLite Library not found" >&2;}; true;;
19818 if test -d ${with_sqlite}/lib; then
19819 LIB_SQLITE="-L${with_sqlite}/lib -R${with_sqlite}/lib"
19821 LIB_SQLITE="-L${with_sqlite} -R${with_sqlite}"
19824 LIB_SQLITE_DIR=$LIB_SQLITE
19825 LIB_SQLITE="$LIB_SQLITE -lsqlite"
19827 if test -d ${with_sqlite}/include; then
19828 CPPFLAGS="${CPPFLAGS} -I${with_sqlite}/include"
19830 CPPFLAGS="${CPPFLAGS} -I${with_sqlite}"
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
19837 ac_check_lib_save_LIBS=$LIBS
19838 LIBS="-lsqlite $LIB_SQLITE_DIR $LIBS"
19839 cat >conftest.$ac_ext <<_ACEOF
19842 cat confdefs.h >>conftest.$ac_ext
19843 cat >>conftest.$ac_ext <<_ACEOF
19844 /* end confdefs.h. */
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. */
19852 char sqlite_open ();
19856 return sqlite_open ();
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;;
19867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19868 (eval "$ac_link") 2>conftest.er1
19870 grep -v '^ *+' conftest.er1 >conftest.err
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
19881 echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19884 ac_cv_lib_sqlite_sqlite_open=no
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
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
19895 cat >>confdefs.h <<\_ACEOF
19896 #define HAVE_SQLITE
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;}
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; }; }
19915 if test "$enable_shared" = yes; then
19917 cat >>confdefs.h <<\_ACEOF
19923 # Check whether --enable-ldapdb was given.
19924 if test "${enable_ldapdb+set}" = set; then
19925 enableval=$enable_ldapdb; ldapdb=$enableval
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; }
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; }; }
19942 save_CPPFLAGS=$CPPFLAGS
19943 save_LDFLAGS=$LDFLAGS
19945 if test -d $with_ldap; then
19946 CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
19948 # this is CMU ADD LIBPATH
19949 if test "$andrew_runpath_switch" = "none" ; then
19950 LDFLAGS="-L${with_ldap}/lib ${LDFLAGS}"
19952 LDFLAGS="-L${with_ldap}/lib $andrew_runpath_switch${with_ldap}/lib ${LDFLAGS}"
19959 for ac_header in ldap.h lber.h
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
19968 ac_res=`eval echo '${'$as_ac_Header'}'`
19969 { echo "$as_me:$LINENO: result: $ac_res" >&5
19970 echo "${ECHO_T}$ac_res" >&6; }
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
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>
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;;
19990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19991 (eval "$ac_compile") 2>conftest.er1
19993 grep -v '^ *+' conftest.er1 >conftest.err
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
20003 echo "$as_me: failed program was:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20006 ac_header_compiler=no
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; }
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
20019 cat confdefs.h >>conftest.$ac_ext
20020 cat >>conftest.$ac_ext <<_ACEOF
20021 /* end confdefs.h. */
20022 #include <$ac_header>
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;;
20029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20032 grep -v '^ *+' conftest.er1 >conftest.err
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
20040 ac_header_preproc=yes
20042 echo "$as_me: failed program was:" >&5
20043 sed 's/^/| /' conftest.$ac_ext >&5
20045 ac_header_preproc=no
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; }
20052 # So? What about this header?
20053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
20082 eval "$as_ac_Header=\$ac_header_preproc"
20084 ac_res=`eval echo '${'$as_ac_Header'}'`
20085 { echo "$as_me:$LINENO: result: $ac_res" >&5
20086 echo "${ECHO_T}$ac_res" >&6; }
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
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
20106 cat >conftest.$ac_ext <<_ACEOF
20109 cat confdefs.h >>conftest.$ac_ext
20110 cat >>conftest.$ac_ext <<_ACEOF
20111 /* end confdefs.h. */
20115 #ifdef LDAP_API_FEATURE_X_OPENLDAP
20116 char *__openldap_api = LDAP_API_FEATURE_X_OPENLDAP;
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
20124 cmu_cv_openldap_api=no
20129 { echo "$as_me:$LINENO: result: $cmu_cv_openldap_api" >&5
20130 echo "${ECHO_T}$cmu_cv_openldap_api" >&6; }
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
20139 ac_check_lib_save_LIBS=$LIBS
20140 LIBS="-lldap -llber $LIBS"
20141 cat >conftest.$ac_ext <<_ACEOF
20144 cat confdefs.h >>conftest.$ac_ext
20145 cat >>conftest.$ac_ext <<_ACEOF
20146 /* end confdefs.h. */
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. */
20154 char ldap_initialize ();
20158 return ldap_initialize ();
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;;
20169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170 (eval "$ac_link") 2>conftest.er1
20172 grep -v '^ *+' conftest.er1 >conftest.err
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
20183 echo "$as_me: failed program was:" >&5
20184 sed 's/^/| /' conftest.$ac_ext >&5
20186 ac_cv_lib_ldap_ldap_initialize=no
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
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"
20198 cmu_link_openldap=no
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; }; }
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
20215 cat >conftest.$ac_ext <<_ACEOF
20218 cat confdefs.h >>conftest.$ac_ext
20219 cat >>conftest.$ac_ext <<_ACEOF
20220 /* end confdefs.h. */
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"
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
20238 cmu_cv_openldap_compat=no
20243 { echo "$as_me:$LINENO: result: $cmu_cv_openldap_compat" >&5
20244 echo "${ECHO_T}$cmu_cv_openldap_compat" >&6; }
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; }; }
20252 LIB_LDAP=$cmu_link_openldap
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"
20260 cat >>confdefs.h <<\_ACEOF
20261 #define STATIC_LDAPDB
20268 if test "$cmu_cv_openldap_compat" != yes; then
20269 CPPFLAGS=$save_CPPFLAGS
20270 LDFLAGS=$save_LDFLAGS
20273 { echo "$as_me:$LINENO: result: disabled" >&5
20274 echo "${ECHO_T}disabled" >&6; }
20283 # Check whether --with-plugindir was given.
20284 if test "${with_plugindir+set}" = set; then
20285 withval=$with_plugindir; plugindir=$withval
20287 plugindir=/usr/lib/sasl2
20291 cat >>confdefs.h <<_ACEOF
20292 #define PLUGINDIR "$plugindir"
20298 # Check whether --with-configdir was given.
20299 if test "${with_configdir+set}" = set; then
20300 withval=$with_configdir; configdir=$withval
20302 configdir=$plugindir:/etc/sasl2
20306 cat >>confdefs.h <<_ACEOF
20307 #define CONFIGDIR "$configdir"
20313 # Check whether --with-rc4 was given.
20314 if test "${with_rc4+set}" = set; then
20315 withval=$with_rc4; with_rc4=$withval
20321 if test "$with_rc4" != no; then
20323 cat >>confdefs.h <<\_ACEOF
20329 building_for_macosx=no
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
20336 building_for_macosx=yes
20341 if test "$building_for_macosx" = yes; then
20350 { echo "$as_me:$LINENO: checking for dmalloc library" >&5
20351 echo $ECHO_N "checking for dmalloc library... $ECHO_C" >&6; }
20353 # Check whether --with-dmalloc was given.
20354 if test "${with_dmalloc+set}" = set; then
20355 withval=$with_dmalloc; with_dmalloc=$withval
20363 if test "$with_dmalloc" != "no"; then
20364 if test "$with_dmalloc" = "yes"; then
20365 with_dmalloc="/usr/local"
20368 if test -r "$with_dmalloc/libdmalloc.a"; then
20369 DMALLOC_LIBS="$with_dmalloc/libdmalloc.a"
20371 cat >>confdefs.h <<\_ACEOF
20372 #define WITH_DMALLOC
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"
20380 cat >>confdefs.h <<\_ACEOF
20381 #define WITH_DMALLOC
20384 { echo "$as_me:$LINENO: result: yes" >&5
20385 echo "${ECHO_T}yes" >&6; }
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.; }; }
20392 { echo "$as_me:$LINENO: result: no" >&5
20393 echo "${ECHO_T}no" >&6; }
20398 { echo "$as_me:$LINENO: checking for sfio library" >&5
20399 echo $ECHO_N "checking for sfio library... $ECHO_C" >&6; }
20401 # Check whether --with-sfio was given.
20402 if test "${with_sfio+set}" = set; then
20403 withval=$with_sfio; with_sfio=$withval
20409 if test "$with_sfio" != "no"; then
20410 if test "$with_sfio" = "yes"; then
20411 with_sfio="/usr/local"
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
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.; }; }
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
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
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.; }; }
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
20463 { echo "$as_me:$LINENO: result: yes" >&5
20464 echo "${ECHO_T}yes" >&6; }
20466 { echo "$as_me:$LINENO: result: no" >&5
20467 echo "${ECHO_T}no" >&6; }
20470 SMTPTEST_PROGRAM=""
20471 SASL_UTIL_LIBS_EXTRA=""
20472 SASL_UTIL_HEADERS_EXTRA=""
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
20487 cat >conftest.$ac_ext <<_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
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. */
20503 # include <limits.h>
20505 # include <assert.h>
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. */
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
20527 return getsubopt ();
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;;
20538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20539 (eval "$ac_link") 2>conftest.er1
20541 grep -v '^ *+' conftest.er1 >conftest.err
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
20552 echo "$as_me: failed program was:" >&5
20553 sed 's/^/| /' conftest.$ac_ext >&5
20555 ac_cv_func_getsubopt=no
20558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20559 conftest$ac_exeext conftest.$ac_ext
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
20565 cat >>confdefs.h <<\_ACEOF
20566 #define HAVE_GETSUBOPT
20570 sasl_cv_getsubopt=yes
20573 if test $sasl_cv_getsubopt = yes; then
20574 case " $LIBOBJS " in
20575 *" getsubopt.$ac_objext "* ) ;;
20576 *) LIBOBJS="$LIBOBJS getsubopt.$ac_objext"
20580 GETSUBOPT="getsubopt.lo"
20584 sasl_cv_snprintf=no
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
20591 cat >conftest.$ac_ext <<_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
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. */
20607 # include <limits.h>
20609 # include <assert.h>
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. */
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
20631 return snprintf ();
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;;
20642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20643 (eval "$ac_link") 2>conftest.er1
20645 grep -v '^ *+' conftest.er1 >conftest.err
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
20656 echo "$as_me: failed program was:" >&5
20657 sed 's/^/| /' conftest.$ac_ext >&5
20659 ac_cv_func_snprintf=no
20662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20663 conftest$ac_exeext conftest.$ac_ext
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
20669 cat >>confdefs.h <<\_ACEOF
20670 #define HAVE_SNPRINTF
20674 sasl_cv_snprintf=yes
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
20682 cat >conftest.$ac_ext <<_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
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. */
20698 # include <limits.h>
20700 # include <assert.h>
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. */
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
20722 return vsnprintf ();
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;;
20733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20734 (eval "$ac_link") 2>conftest.er1
20736 grep -v '^ *+' conftest.er1 >conftest.err
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
20747 echo "$as_me: failed program was:" >&5
20748 sed 's/^/| /' conftest.$ac_ext >&5
20750 ac_cv_func_vsnprintf=no
20753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20754 conftest$ac_exeext conftest.$ac_ext
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
20760 cat >>confdefs.h <<\_ACEOF
20761 #define HAVE_VSNPRINTF
20765 sasl_cv_snprintf=yes
20768 if test $sasl_cv_snprintf = yes; then
20769 case " $LIBOBJS " in
20770 *" snprintf.$ac_objext "* ) ;;
20771 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20775 SNPRINTFOBJS="snprintf.o"
20776 LTSNPRINTFOBJS="snprintf.lo"
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
20787 ac_check_lib_save_LIBS=$LIBS
20788 LIBS="-lresolv $LIBS"
20789 cat >conftest.$ac_ext <<_ACEOF
20792 cat confdefs.h >>conftest.$ac_ext
20793 cat >>conftest.$ac_ext <<_ACEOF
20794 /* end confdefs.h. */
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. */
20806 return inet_aton ();
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;;
20817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20818 (eval "$ac_link") 2>conftest.er1
20820 grep -v '^ *+' conftest.er1 >conftest.err
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
20831 echo "$as_me: failed program was:" >&5
20832 sed 's/^/| /' conftest.$ac_ext >&5
20834 ac_cv_lib_resolv_inet_aton=no
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
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
20848 LIBS="-lresolv $LIBS"
20854 sasl_cv_getaddrinfo=yes
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
20861 cat >conftest.$ac_ext <<_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
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. */
20877 # include <limits.h>
20879 # include <assert.h>
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. */
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
20901 return getaddrinfo ();
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;;
20912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20913 (eval "$ac_link") 2>conftest.er1
20915 grep -v '^ *+' conftest.er1 >conftest.err
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
20926 echo "$as_me: failed program was:" >&5
20927 sed 's/^/| /' conftest.$ac_ext >&5
20929 ac_cv_func_getaddrinfo=no
20932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20933 conftest$ac_exeext conftest.$ac_ext
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
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
20947 ac_check_lib_save_LIBS=$LIBS
20948 LIBS="-lsocket $LIBS"
20949 cat >conftest.$ac_ext <<_ACEOF
20952 cat confdefs.h >>conftest.$ac_ext
20953 cat >>conftest.$ac_ext <<_ACEOF
20954 /* end confdefs.h. */
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. */
20962 char getaddrinfo ();
20966 return getaddrinfo ();
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;;
20977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20978 (eval "$ac_link") 2>conftest.er1
20980 grep -v '^ *+' conftest.er1 >conftest.err
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
20991 echo "$as_me: failed program was:" >&5
20992 sed 's/^/| /' conftest.$ac_ext >&5
20994 ac_cv_lib_socket_getaddrinfo=no
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
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
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
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
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
21024 if test x$ipv6_libinet6 = x; then
21026 SAVELDFLAGS="$LDFLAGS"
21027 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
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
21034 ac_check_lib_save_LIBS=$LIBS
21035 LIBS="-linet6 $LIBS"
21036 cat >conftest.$ac_ext <<_ACEOF
21039 cat confdefs.h >>conftest.$ac_ext
21040 cat >>conftest.$ac_ext <<_ACEOF
21041 /* end confdefs.h. */
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. */
21049 char getaddrinfo ();
21053 return getaddrinfo ();
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;;
21064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21065 (eval "$ac_link") 2>conftest.er1
21067 grep -v '^ *+' conftest.er1 >conftest.err
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
21078 echo "$as_me: failed program was:" >&5
21079 sed 's/^/| /' conftest.$ac_ext >&5
21081 ac_cv_lib_inet6_getaddrinfo=no
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
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
21093 LIBS="$LIBS -linet6"
21096 if test $ipv6_libinet6 = no; then
21097 LDFLAGS="$SAVELDFLAGS"
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
21107 ipv6_cv_getaddrinfo=yes
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
21115 cat confdefs.h >>conftest.$ac_ext
21116 cat >>conftest.$ac_ext <<_ACEOF
21117 /* end confdefs.h. */
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
21129 cat >conftest.$ac_ext <<_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
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. */
21145 # include <limits.h>
21147 # include <assert.h>
21150 #undef ${ipv6_cv_pfx}getaddrinfo
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. */
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
21169 return ${ipv6_cv_pfx}getaddrinfo ();
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;;
21180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21181 (eval "$ac_link") 2>conftest.er1
21183 grep -v '^ *+' conftest.er1 >conftest.err
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"
21194 echo "$as_me: failed program was:" >&5
21195 sed 's/^/| /' conftest.$ac_ext >&5
21197 eval "$as_ac_var=no"
21200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21201 conftest$ac_exeext conftest.$ac_ext
21203 ac_res=`eval echo '${'$as_ac_var'}'`
21204 { echo "$as_me:$LINENO: result: $ac_res" >&5
21205 echo "${ECHO_T}$ac_res" >&6; }
21210 if eval test X\$ac_cv_func_${ipv6_cv_pfx}getaddrinfo = Xyes; then
21212 cat >>confdefs.h <<\_ACEOF
21213 #define HAVE_GETADDRINFO
21216 ipv6_cv_getaddrinfo=yes
21222 if test $ipv6_cv_getaddrinfo = yes; then
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
21229 cat >conftest.$ac_ext <<_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
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. */
21245 # include <limits.h>
21247 # include <assert.h>
21250 #undef gai_strerror
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. */
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
21269 return gai_strerror ();
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;;
21280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21281 (eval "$ac_link") 2>conftest.er1
21283 grep -v '^ *+' conftest.er1 >conftest.err
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
21294 echo "$as_me: failed program was:" >&5
21295 sed 's/^/| /' conftest.$ac_ext >&5
21297 ac_cv_func_gai_strerror=no
21300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21301 conftest$ac_exeext conftest.$ac_ext
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
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
21315 ac_check_lib_save_LIBS=$LIBS
21316 LIBS="-lsocket $LIBS"
21317 cat >conftest.$ac_ext <<_ACEOF
21320 cat confdefs.h >>conftest.$ac_ext
21321 cat >>conftest.$ac_ext <<_ACEOF
21322 /* end confdefs.h. */
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. */
21330 char gai_strerror ();
21334 return gai_strerror ();
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;;
21345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21346 (eval "$ac_link") 2>conftest.er1
21348 grep -v '^ *+' conftest.er1 >conftest.err
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
21359 echo "$as_me: failed program was:" >&5
21360 sed 's/^/| /' conftest.$ac_ext >&5
21362 ac_cv_lib_socket_gai_strerror=no
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
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
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
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
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
21392 if test x$ipv6_libinet6 = x; then
21394 SAVELDFLAGS="$LDFLAGS"
21395 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
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
21402 ac_check_lib_save_LIBS=$LIBS
21403 LIBS="-linet6 $LIBS"
21404 cat >conftest.$ac_ext <<_ACEOF
21407 cat confdefs.h >>conftest.$ac_ext
21408 cat >>conftest.$ac_ext <<_ACEOF
21409 /* end confdefs.h. */
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. */
21417 char gai_strerror ();
21421 return gai_strerror ();
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;;
21432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21433 (eval "$ac_link") 2>conftest.er1
21435 grep -v '^ *+' conftest.er1 >conftest.err
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
21446 echo "$as_me: failed program was:" >&5
21447 sed 's/^/| /' conftest.$ac_ext >&5
21449 ac_cv_lib_inet6_gai_strerror=no
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
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
21461 LIBS="$LIBS -linet6"
21464 if test $ipv6_libinet6 = no; then
21465 LDFLAGS="$SAVELDFLAGS"
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
21475 ipv6_cv_gai_strerror=yes
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
21483 cat confdefs.h >>conftest.$ac_ext
21484 cat >>conftest.$ac_ext <<_ACEOF
21485 /* end confdefs.h. */
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
21497 cat >conftest.$ac_ext <<_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
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. */
21513 # include <limits.h>
21515 # include <assert.h>
21518 #undef ${ipv6_cv_pfx}gai_strerror
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. */
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
21537 return ${ipv6_cv_pfx}gai_strerror ();
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;;
21548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21549 (eval "$ac_link") 2>conftest.er1
21551 grep -v '^ *+' conftest.er1 >conftest.err
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"
21562 echo "$as_me: failed program was:" >&5
21563 sed 's/^/| /' conftest.$ac_ext >&5
21565 eval "$as_ac_var=no"
21568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21569 conftest$ac_exeext conftest.$ac_ext
21571 ac_res=`eval echo '${'$as_ac_var'}'`
21572 { echo "$as_me:$LINENO: result: $ac_res" >&5
21573 echo "${ECHO_T}$ac_res" >&6; }
21578 if eval test X\$ac_cv_func_${ipv6_cv_pfx}gai_strerror = Xyes; then
21580 cat >>confdefs.h <<\_ACEOF
21581 #define HAVE_GETADDRINFO
21584 ipv6_cv_gai_strerror=yes
21590 if test $ipv6_cv_gai_strerror = yes; then
21592 cat >>confdefs.h <<\_ACEOF
21593 #define HAVE_GETADDRINFO
21596 sasl_cv_getaddrinfo=no
21603 if test $sasl_cv_getaddrinfo = yes; then
21604 case " $LIBOBJS " in
21605 *" getaddrinfo.$ac_objext "* ) ;;
21606 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21610 GETADDRINFOOBJS="getaddrinfo.o"
21611 LTGETADDRINFOOBJS="getaddrinfo.lo"
21617 sasl_cv_getnameinfo=no
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
21624 cat >conftest.$ac_ext <<_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
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. */
21640 # include <limits.h>
21642 # include <assert.h>
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. */
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
21664 return getnameinfo ();
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;;
21675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21676 (eval "$ac_link") 2>conftest.er1
21678 grep -v '^ *+' conftest.er1 >conftest.err
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
21689 echo "$as_me: failed program was:" >&5
21690 sed 's/^/| /' conftest.$ac_ext >&5
21692 ac_cv_func_getnameinfo=no
21695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21696 conftest$ac_exeext conftest.$ac_ext
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
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
21710 ac_check_lib_save_LIBS=$LIBS
21711 LIBS="-lsocket $LIBS"
21712 cat >conftest.$ac_ext <<_ACEOF
21715 cat confdefs.h >>conftest.$ac_ext
21716 cat >>conftest.$ac_ext <<_ACEOF
21717 /* end confdefs.h. */
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. */
21725 char getnameinfo ();
21729 return getnameinfo ();
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;;
21740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21741 (eval "$ac_link") 2>conftest.er1
21743 grep -v '^ *+' conftest.er1 >conftest.err
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
21754 echo "$as_me: failed program was:" >&5
21755 sed 's/^/| /' conftest.$ac_ext >&5
21757 ac_cv_lib_socket_getnameinfo=no
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
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
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
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
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
21787 if test x$ipv6_libinet6 = x; then
21789 SAVELDFLAGS="$LDFLAGS"
21790 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
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
21797 ac_check_lib_save_LIBS=$LIBS
21798 LIBS="-linet6 $LIBS"
21799 cat >conftest.$ac_ext <<_ACEOF
21802 cat confdefs.h >>conftest.$ac_ext
21803 cat >>conftest.$ac_ext <<_ACEOF
21804 /* end confdefs.h. */
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. */
21812 char getnameinfo ();
21816 return getnameinfo ();
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;;
21827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21828 (eval "$ac_link") 2>conftest.er1
21830 grep -v '^ *+' conftest.er1 >conftest.err
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
21841 echo "$as_me: failed program was:" >&5
21842 sed 's/^/| /' conftest.$ac_ext >&5
21844 ac_cv_lib_inet6_getnameinfo=no
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
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
21856 LIBS="$LIBS -linet6"
21859 if test $ipv6_libinet6 = no; then
21860 LDFLAGS="$SAVELDFLAGS"
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
21870 ipv6_cv_getnameinfo=yes
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
21878 cat confdefs.h >>conftest.$ac_ext
21879 cat >>conftest.$ac_ext <<_ACEOF
21880 /* end confdefs.h. */
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
21892 cat >conftest.$ac_ext <<_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
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. */
21908 # include <limits.h>
21910 # include <assert.h>
21913 #undef ${ipv6_cv_pfx}getnameinfo
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. */
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
21932 return ${ipv6_cv_pfx}getnameinfo ();
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;;
21943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21944 (eval "$ac_link") 2>conftest.er1
21946 grep -v '^ *+' conftest.er1 >conftest.err
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"
21957 echo "$as_me: failed program was:" >&5
21958 sed 's/^/| /' conftest.$ac_ext >&5
21960 eval "$as_ac_var=no"
21963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21964 conftest$ac_exeext conftest.$ac_ext
21966 ac_res=`eval echo '${'$as_ac_var'}'`
21967 { echo "$as_me:$LINENO: result: $ac_res" >&5
21968 echo "${ECHO_T}$ac_res" >&6; }
21973 if eval test X\$ac_cv_func_${ipv6_cv_pfx}getnameinfo = Xyes; then
21975 cat >>confdefs.h <<\_ACEOF
21976 #define HAVE_GETADDRINFO
21979 ipv6_cv_getnameinfo=yes
21985 if test $ipv6_cv_getnameinfo = yes; then
21987 cat >>confdefs.h <<\_ACEOF
21988 #define HAVE_GETNAMEINFO
21992 sasl_cv_getnameinfo=yes
21994 if test $sasl_cv_getnameinfo = yes; then
21995 case " $LIBOBJS " in
21996 *" getnameinfo.$ac_objext "* ) ;;
21997 *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
22001 GETNAMEINFOOBJS="getnameinfo.o"
22002 LTGETNAMEINFOOBJS="getnameinfo.lo"
22007 LTLIBOBJS=`echo "$LIBOBJS" | sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
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
22015 cat >conftest.$ac_ext <<_ACEOF
22018 cat confdefs.h >>conftest.$ac_ext
22019 cat >>conftest.$ac_ext <<_ACEOF
22020 /* end confdefs.h. */
22025 /* FIXME: Include the comments suggested by Paul. */
22026 #ifndef __cplusplus
22027 /* Ultrix mips cc rejects this. */
22028 typedef int charset[2];
22030 /* SunOS 4.1.1 cc rejects this. */
22031 char const *const *pcpcc;
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
22040 const char *g = "string";
22041 pcpcc = &g + (g ? g-g : 0);
22042 /* HPUX 7.0 cc rejects these. */
22044 ppc = (char**) pcpcc;
22045 pcpcc = (char const *const *) ppc;
22046 { /* SCO 3.2v4 cc rejects this. */
22048 char const *s = 0 ? (char *) 0 : (char const *) 0;
22053 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22054 int x[] = {25, 17};
22055 const int *foo = &x[0];
22058 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22059 typedef const int *iptr;
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;
22068 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22069 const int foo = 10;
22070 if (!foo) return 0;
22072 return !cs[0] && !zero.x;
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;;
22085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22086 (eval "$ac_compile") 2>conftest.er1
22088 grep -v '^ *+' conftest.er1 >conftest.err
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
22098 echo "$as_me: failed program was:" >&5
22099 sed 's/^/| /' conftest.$ac_ext >&5
22104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
22110 cat >>confdefs.h <<\_ACEOF
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
22122 for ac_kw in inline __inline__ __inline; do
22123 cat >conftest.$ac_ext <<_ACEOF
22126 cat confdefs.h >>conftest.$ac_ext
22127 cat >>conftest.$ac_ext <<_ACEOF
22128 /* end confdefs.h. */
22129 #ifndef __cplusplus
22131 static $ac_kw foo_t static_foo () {return 0; }
22132 $ac_kw foo_t foo () {return 0; }
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;;
22142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22143 (eval "$ac_compile") 2>conftest.er1
22145 grep -v '^ *+' conftest.er1 >conftest.err
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
22155 echo "$as_me: failed program was:" >&5
22156 sed 's/^/| /' conftest.$ac_ext >&5
22161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22162 test "$ac_cv_c_inline" != no && break
22166 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22167 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
22170 case $ac_cv_c_inline in
22173 case $ac_cv_c_inline in
22175 *) ac_val=$ac_cv_c_inline;;
22177 cat >>confdefs.h <<_ACEOF
22178 #ifndef __cplusplus
22179 #define inline $ac_val
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
22190 cat >conftest.$ac_ext <<_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_;
22201 if ((ac__type_new_ *) 0)
22203 if (sizeof (ac__type_new_))
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;;
22215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22216 (eval "$ac_compile") 2>conftest.er1
22218 grep -v '^ *+' conftest.er1 >conftest.err
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
22228 echo "$as_me: failed program was:" >&5
22229 sed 's/^/| /' conftest.$ac_ext >&5
22231 ac_cv_type_mode_t=no
22234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
22242 cat >>confdefs.h <<_ACEOF
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
22253 cat >conftest.$ac_ext <<_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_;
22264 if ((ac__type_new_ *) 0)
22266 if (sizeof (ac__type_new_))
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;;
22278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22279 (eval "$ac_compile") 2>conftest.er1
22281 grep -v '^ *+' conftest.er1 >conftest.err
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
22291 echo "$as_me: failed program was:" >&5
22292 sed 's/^/| /' conftest.$ac_ext >&5
22294 ac_cv_type_pid_t=no
22297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
22305 cat >>confdefs.h <<_ACEOF
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
22316 cat >conftest.$ac_ext <<_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>
22328 return *(signal (0, 0)) (0) == 1;
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;;
22339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22340 (eval "$ac_compile") 2>conftest.er1
22342 grep -v '^ *+' conftest.er1 >conftest.err
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
22352 echo "$as_me: failed program was:" >&5
22353 sed 's/^/| /' conftest.$ac_ext >&5
22355 ac_cv_type_signal=void
22358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22360 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22361 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22363 cat >>confdefs.h <<_ACEOF
22364 #define RETSIGTYPE $ac_cv_type_signal
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
22374 cat >conftest.$ac_ext <<_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>
22387 if ((struct tm *) 0)
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;;
22399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22400 (eval "$ac_compile") 2>conftest.er1
22402 grep -v '^ *+' conftest.er1 >conftest.err
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
22412 echo "$as_me: failed program was:" >&5
22413 sed 's/^/| /' conftest.$ac_ext >&5
22415 ac_cv_header_time=no
22418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
22424 cat >>confdefs.h <<\_ACEOF
22425 #define TIME_WITH_SYS_TIME 1
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
22435 cat >conftest.$ac_ext <<_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>
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;;
22460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22461 (eval "$ac_compile") 2>conftest.er1
22463 grep -v '^ *+' conftest.er1 >conftest.err
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
22473 echo "$as_me: failed program was:" >&5
22474 sed 's/^/| /' conftest.$ac_ext >&5
22476 ac_cv_header_stdc=no
22479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
22486 cat confdefs.h >>conftest.$ac_ext
22487 cat >>conftest.$ac_ext <<_ACEOF
22488 /* end confdefs.h. */
22489 #include <string.h>
22492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22493 $EGREP "memchr" >/dev/null 2>&1; then
22496 ac_cv_header_stdc=no
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
22507 cat confdefs.h >>conftest.$ac_ext
22508 cat >>conftest.$ac_ext <<_ACEOF
22509 /* end confdefs.h. */
22510 #include <stdlib.h>
22513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22514 $EGREP "free" >/dev/null 2>&1; then
22517 ac_cv_header_stdc=no
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
22528 cat >conftest.$ac_ext <<_ACEOF
22531 cat confdefs.h >>conftest.$ac_ext
22532 cat >>conftest.$ac_ext <<_ACEOF
22533 /* end confdefs.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))
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))
22547 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22552 for (i = 0; i < 256; i++)
22553 if (XOR (islower (i), ISLOWER (i))
22554 || toupper (i) != TOUPPER (i))
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;;
22565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22566 (eval "$ac_link") 2>&5
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;;
22574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22575 (eval "$ac_try") 2>&5
22577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578 (exit $ac_status); }; }; then
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
22585 ( exit $ac_status )
22586 ac_cv_header_stdc=no
22588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
22598 cat >>confdefs.h <<\_ACEOF
22599 #define STDC_HEADERS 1
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
22617 cat >conftest.$ac_ext <<_ACEOF
22620 cat confdefs.h >>conftest.$ac_ext
22621 cat >>conftest.$ac_ext <<_ACEOF
22622 /* end confdefs.h. */
22623 #include <sys/types.h>
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;;
22641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22642 (eval "$ac_compile") 2>conftest.er1
22644 grep -v '^ *+' conftest.er1 >conftest.err
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"
22654 echo "$as_me: failed program was:" >&5
22655 sed 's/^/| /' conftest.$ac_ext >&5
22657 eval "$as_ac_Header=no"
22660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
22670 ac_header_dirent=$ac_hdr; break
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
22681 ac_func_search_save_LIBS=$LIBS
22682 cat >conftest.$ac_ext <<_ACEOF
22685 cat confdefs.h >>conftest.$ac_ext
22686 cat >>conftest.$ac_ext <<_ACEOF
22687 /* end confdefs.h. */
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. */
22704 for ac_lib in '' dir; do
22705 if test -z "$ac_lib"; then
22706 ac_res="none required"
22709 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
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;;
22717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22718 (eval "$ac_link") 2>conftest.er1
22720 grep -v '^ *+' conftest.er1 >conftest.err
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
22731 echo "$as_me: failed program was:" >&5
22732 sed 's/^/| /' conftest.$ac_ext >&5
22737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22739 if test "${ac_cv_search_opendir+set}" = set; then
22743 if test "${ac_cv_search_opendir+set}" = set; then
22746 ac_cv_search_opendir=no
22748 rm conftest.$ac_ext
22749 LIBS=$ac_func_search_save_LIBS
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"
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
22765 ac_func_search_save_LIBS=$LIBS
22766 cat >conftest.$ac_ext <<_ACEOF
22769 cat confdefs.h >>conftest.$ac_ext
22770 cat >>conftest.$ac_ext <<_ACEOF
22771 /* end confdefs.h. */
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. */
22788 for ac_lib in '' x; do
22789 if test -z "$ac_lib"; then
22790 ac_res="none required"
22793 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
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;;
22801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22802 (eval "$ac_link") 2>conftest.er1
22804 grep -v '^ *+' conftest.er1 >conftest.err
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
22815 echo "$as_me: failed program was:" >&5
22816 sed 's/^/| /' conftest.$ac_ext >&5
22821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22823 if test "${ac_cv_search_opendir+set}" = set; then
22827 if test "${ac_cv_search_opendir+set}" = set; then
22830 ac_cv_search_opendir=no
22832 rm conftest.$ac_ext
22833 LIBS=$ac_func_search_save_LIBS
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"
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
22850 cat >conftest.$ac_ext <<_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)
22862 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22870 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
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;;
22881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22882 (eval "$ac_compile") 2>conftest.er1
22884 grep -v '^ *+' conftest.er1 >conftest.err
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
22894 echo "$as_me: failed program was:" >&5
22895 sed 's/^/| /' conftest.$ac_ext >&5
22897 ac_cv_header_sys_wait_h=no
22900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
22906 cat >>confdefs.h <<\_ACEOF
22907 #define HAVE_SYS_WAIT_H 1
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
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
22938 ac_res=`eval echo '${'$as_ac_Header'}'`
22939 { echo "$as_me:$LINENO: result: $ac_res" >&5
22940 echo "${ECHO_T}$ac_res" >&6; }
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
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>
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;;
22960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22961 (eval "$ac_compile") 2>conftest.er1
22963 grep -v '^ *+' conftest.er1 >conftest.err
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
22973 echo "$as_me: failed program was:" >&5
22974 sed 's/^/| /' conftest.$ac_ext >&5
22976 ac_header_compiler=no
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; }
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
22989 cat confdefs.h >>conftest.$ac_ext
22990 cat >>conftest.$ac_ext <<_ACEOF
22991 /* end confdefs.h. */
22992 #include <$ac_header>
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;;
22999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23002 grep -v '^ *+' conftest.er1 >conftest.err
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
23010 ac_header_preproc=yes
23012 echo "$as_me: failed program was:" >&5
23013 sed 's/^/| /' conftest.$ac_ext >&5
23015 ac_header_preproc=no
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; }
23022 # So? What about this header?
23023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
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
23052 eval "$as_ac_Header=\$ac_header_preproc"
23054 ac_res=`eval echo '${'$as_ac_Header'}'`
23055 { echo "$as_me:$LINENO: result: $ac_res" >&5
23056 echo "${ECHO_T}$ac_res" >&6; }
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
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
23075 cat >conftest.$ac_ext <<_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>
23086 struct sockaddr_storage ss; int i = ss.ss_family;
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;;
23097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23098 (eval "$ac_compile") 2>conftest.er1
23100 grep -v '^ *+' conftest.er1 >conftest.err
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
23110 echo "$as_me: failed program was:" >&5
23111 sed 's/^/| /' conftest.$ac_ext >&5
23113 ipv6_cv_ss_family=no
23116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23118 if test $ipv6_cv_ss_family = yes; then
23120 cat >>confdefs.h <<\_ACEOF
23121 #define HAVE_SS_FAMILY
23127 { echo "$as_me:$LINENO: result: $ipv6_cv_ss_family" >&5
23128 echo "${ECHO_T}$ipv6_cv_ss_family" >&6; }
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
23135 cat >conftest.$ac_ext <<_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>
23146 struct sockaddr sa; int i = sa.sa_len;
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;;
23157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23158 (eval "$ac_compile") 2>conftest.er1
23160 grep -v '^ *+' conftest.er1 >conftest.err
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
23170 echo "$as_me: failed program was:" >&5
23171 sed 's/^/| /' conftest.$ac_ext >&5
23176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23178 if test $ipv6_cv_sa_len = yes; then
23180 cat >>confdefs.h <<\_ACEOF
23181 #define HAVE_SOCKADDR_SA_LEN
23187 { echo "$as_me:$LINENO: result: $ipv6_cv_sa_len" >&5
23188 echo "${ECHO_T}$ipv6_cv_sa_len" >&6; }
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
23195 cat >conftest.$ac_ext <<_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>
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;;
23217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23218 (eval "$ac_link") 2>conftest.er1
23220 grep -v '^ *+' conftest.er1 >conftest.err
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
23231 echo "$as_me: failed program was:" >&5
23232 sed 's/^/| /' conftest.$ac_ext >&5
23234 ipv6_cv_socklen_t=no
23237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23238 conftest$ac_exeext conftest.$ac_ext
23240 if test $ipv6_cv_socklen_t = yes; then
23242 cat >>confdefs.h <<\_ACEOF
23243 #define HAVE_SOCKLEN_T
23249 { echo "$as_me:$LINENO: result: $ipv6_cv_socklen_t" >&5
23250 echo "${ECHO_T}$ipv6_cv_socklen_t" >&6; }
23271 for ac_func in gethostname getdomainname getpwnam getspnam gettimeofday inet_aton memcpy mkdir select socket strchr strdup strerror strspn strstr strtol jrand48
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
23279 cat >conftest.$ac_ext <<_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
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. */
23295 # include <limits.h>
23297 # include <assert.h>
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. */
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
23319 return $ac_func ();
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;;
23330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23331 (eval "$ac_link") 2>conftest.er1
23333 grep -v '^ *+' conftest.er1 >conftest.err
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"
23344 echo "$as_me: failed program was:" >&5
23345 sed 's/^/| /' conftest.$ac_ext >&5
23347 eval "$as_ac_var=no"
23350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23351 conftest$ac_exeext conftest.$ac_ext
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
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;}
23369 cat >>confdefs.h <<\_ACEOF
23370 #define KRB4_IGNORE_IP_ADDRESS
23374 cat >>confdefs.h <<_ACEOF
23375 #define PREFER_MECH "KERBEROS_V4"
23380 cat >conftest.$ac_ext <<_ACEOF
23383 cat confdefs.h >>conftest.$ac_ext
23384 cat >>conftest.$ac_ext <<_ACEOF
23385 /* end confdefs.h. */
23386 #include <sys/socket.h>
23389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23390 $EGREP "sockaddr_storage" >/dev/null 2>&1; then
23393 cat >>confdefs.h <<\_ACEOF
23394 #define HAVE_STRUCT_SOCKADDR_STORAGE
23403 subdirs="$subdirs saslauthd"
23412 ac_config_headers="$ac_config_headers config.h"
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"
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.
23424 # config.status only pays attention to the cache file if you give it
23425 # the --recheck option to rerun configure.
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.
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.
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
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;} ;;
23448 _ | IFS | as_nl) ;; #(
23449 *) $as_unset $ac_var ;;
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 \).
23461 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23464 # `set' quotes correctly as required by POSIX, so do not add quotes.
23465 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23474 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23476 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
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
23485 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23486 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23491 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23492 # Let make expand exec_prefix.
23493 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23495 DEFS=-DHAVE_CONFIG_H
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'
23508 LIBOBJS=$ac_libobjs
23510 LTLIBOBJS=$ac_ltlibobjs
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; }; }
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; }; }
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; }; }
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; }; }
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; }; }
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; }; }
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; }; }
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; }; }
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
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.
23583 ac_cs_recheck=false
23585 SHELL=\${CONFIG_SHELL-$SHELL}
23588 cat >>$CONFIG_STATUS <<\_ACEOF
23589 ## --------------------- ##
23590 ## M4sh Initialization. ##
23591 ## --------------------- ##
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
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
23603 case `(set -o) 2>/dev/null` in
23604 *posix*) set -o posix ;;
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
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
23625 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23633 # Support unset when possible.
23634 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
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.)
23650 # Find who we are. Look in the path if we contain no directory separator.
23652 *[\\/]* ) as_myself=$0 ;;
23653 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23654 for as_dir in $PATH
23657 test -z "$as_dir" && as_dir=.
23658 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }
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
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
23688 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23689 eval $as_var=C; export $as_var
23691 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23695 # Required to use basename.
23696 if expr a : '\(a\)' >/dev/null 2>&1 &&
23697 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23703 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23704 as_basename=basename
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 ||
23716 sed '/^.*\/\([^/][^/]*\)\/*$/{
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" || {
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. :-)
23761 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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; }; }
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.
23778 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23784 ECHO_C= ECHO_N= ECHO_T=
23785 case `echo -n x` in
23787 case `echo 'x\c'` in
23788 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23795 if expr a : '\(a\)' >/dev/null 2>&1 &&
23796 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23802 rm -f conf$$ conf$$.exe conf$$.file
23803 if test -d conf$$.dir; then
23804 rm -f conf$$.dir/conf$$.file
23810 if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
23818 elif ln conf$$.file conf$$ 2>/dev/null; then
23823 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23824 rmdir conf$$.dir 2>/dev/null
23826 if mkdir -p . 2>/dev/null; then
23829 test -d ./-p && rmdir ./-p
23833 if test -x / >/dev/null 2>&1; then
23834 as_test_x='test -x'
23836 if ls -dL / >/dev/null 2>&1; then
23843 if test -d "$1"; then
23849 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23850 ???[sx]*):;;*)false;;esac;fi
23854 as_executable_p=$as_test_x
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'"
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'"
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.
23869 This file was extended by $as_me, which was
23870 generated by GNU Autoconf 2.61. Invocation command line was
23872 CONFIG_FILES = $CONFIG_FILES
23873 CONFIG_HEADERS = $CONFIG_HEADERS
23874 CONFIG_LINKS = $CONFIG_LINKS
23875 CONFIG_COMMANDS = $CONFIG_COMMANDS
23878 on `(hostname || uname -n) 2>/dev/null | sed 1q`
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"
23891 cat >>$CONFIG_STATUS <<\_ACEOF
23893 \`$as_me' instantiates files from templates according to the
23894 current configuration.
23896 Usage: $0 [OPTIONS] [FILE]...
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
23908 Configuration files:
23911 Configuration headers:
23914 Configuration commands:
23917 Report bugs to <bug-autoconf@gnu.org>."
23920 cat >>$CONFIG_STATUS <<_ACEOF
23923 configured by $0, generated by GNU Autoconf 2.61,
23924 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
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."
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.
23944 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23945 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23956 # Handling of the options.
23957 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23959 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23960 echo "$ac_cs_version"; exit ;;
23961 --debug | --debu | --deb | --de | --d | -d )
23963 --file | --fil | --fi | --f )
23965 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23966 ac_need_defaults=false;;
23967 --header | --heade | --head | --hea )
23969 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23970 ac_need_defaults=false;;
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)
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; }; } ;;
23987 *) ac_config_targets="$ac_config_targets $1"
23988 ac_need_defaults=false ;;
23994 ac_configure_extra_args=
23996 if $ac_cs_silent; then
23998 ac_configure_extra_args="$ac_configure_extra_args --silent"
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
24011 cat >>$CONFIG_STATUS <<\_ACEOF
24015 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24016 ## Running $as_me. ##
24022 cat >>$CONFIG_STATUS <<_ACEOF
24026 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
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
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"`'
24158 LTCFLAGS='$LTCFLAGS'
24159 compiler='$compiler_DEFAULT'
24161 # A function that is used when there is no print builtin or printf.
24162 func_fallback_echo ()
24164 eval 'cat <<_LTECHO_EOF
24169 # Quote evaled strings.
24183 deplibs_check_method \
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 \
24208 export_dynamic_flag_spec \
24209 whole_archive_flag_spec \
24210 compiler_needs_object \
24212 allow_undefined_flag \
24213 no_undefined_flag \
24214 hardcode_libdir_flag_spec \
24215 hardcode_libdir_flag_spec_ld \
24216 hardcode_libdir_separator \
24221 variables_saved_for_relink \
24223 library_names_spec \
24225 install_override_mode \
24229 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24230 *[\\\\\\\`\\"\\\$]*)
24231 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
24234 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24239 # Double-quote double-evaled strings.
24240 for var in reload_cmds \
24241 old_postinstall_cmds \
24242 old_postuninstall_cmds \
24244 extract_expsyms_cmds \
24245 old_archive_from_new_cmds \
24246 old_archive_from_expsyms_cmds \
24248 archive_expsym_cmds \
24250 module_expsym_cmds \
24251 export_symbols_cmds \
24254 postuninstall_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\\"\\\`\\\\\\""
24263 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24268 ac_aux_dir='$ac_aux_dir'
24269 xsi_shell='$xsi_shell'
24270 lt_shell_append='$lt_shell_append'
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
24281 TIMESTAMP='$TIMESTAMP'
24290 cat >>$CONFIG_STATUS <<\_ACEOF
24292 # Handling of arguments.
24293 for ac_config_target in $ac_config_targets
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" ;;
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; }; };;
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
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'.
24343 trap 'exit_status=$?
24344 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24346 trap '{ (exit 1); exit 1; }' 1 2 13 15
24348 # Create a (secure) tmp directory for tmp files.
24351 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24352 test -n "$tmp" && test -d "$tmp"
24355 tmp=./conf$$-$RANDOM
24356 (umask 077 && mkdir "$tmp")
24359 echo "$me: cannot create a temporary directory in ." >&2
24360 { (exit 1); exit 1; }
24364 # Set up the sed scripts for CONFIG_FILES section.
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
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
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
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
24466 LN_S!$LN_S$ac_delim
24467 LIBTOOL!$LIBTOOL$ac_delim
24469 GREP!$GREP$ac_delim
24470 EGREP!$EGREP$ac_delim
24471 FGREP!$FGREP$ac_delim
24473 DUMPBIN!$DUMPBIN$ac_delim
24474 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
24477 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
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; }; }
24484 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
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`
24494 cat >>$CONFIG_STATUS <<_ACEOF
24495 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24496 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24499 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24500 s/^/s,@/; s/!/@,|#_!!_#|/
24503 s/'"$ac_delim"'$/,g/; t
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
24514 for ac_last_try in false false false false false :; do
24515 cat >conf$$subs.sed <<_ACEOF
24517 OBJDUMP!$OBJDUMP$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
24595 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
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; }; }
24602 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
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`
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
24617 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24618 s/^/s,@/; s/!/@,|#_!!_#|/
24621 s/'"$ac_delim"'$/,g/; t
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
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}:*/:/
24642 s/^\([^=]*=[ ]*\):*/\1/
24648 cat >>$CONFIG_STATUS <<\_ACEOF
24649 fi # test -n "$CONFIG_FILES"
24652 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24655 :[FHLC]) ac_mode=$ac_tag; continue;;
24657 case $ac_mode$ac_tag in
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;;
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 `:'.
24687 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
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; }; };;
24693 ac_file_inputs="$ac_file_inputs $ac_f"
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;}
24708 *:-:* | *:-) cat >"$tmp/stdin";;
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 ||
24719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24723 /^X\(\/\/\)[^/].*/{
24738 -*) as_dir=./$as_dir;;
24740 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24744 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24745 *) as_qdir=$as_dir;;
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 ||
24754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24758 /^X\(\/\/\)[^/].*/{
24771 test -d "$as_dir" && break
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; }; }; }
24780 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
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/ ;;
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
24796 .) # We are building in place.
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 ;;
24809 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24819 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24820 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24822 ac_MKDIR_P=$MKDIR_P
24824 [\\/$]* | ?:[\\/]* ) ;;
24825 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
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=
24834 case `sed -n '/datarootdir/ {
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;}
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' ;;
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
24867 cat >>$CONFIG_STATUS <<\_ACEOF
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
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;}
24894 -) cat "$tmp/out"; rm -f "$tmp/out";;
24895 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
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'
24928 s/^[ ]*#[ ]*define[ ][ ]*//
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
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.)
24943 s,^[ #]*u.*,/* & */,' >>conftest.defines
24945 # Break up conftest.defines:
24946 ac_max_sed_lines=50
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"
24952 ac_in='$ac_file_inputs'
24953 ac_out='"$tmp/out1"'
24954 ac_nxt='"$tmp/out2"'
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
24967 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
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
24976 rm -f conftest.defines conftest.tail
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;}
24988 mv "$tmp/config.h" $ac_file
24991 echo "/* $configure_input */"
24995 # Compute $ac_file's index in $config_headers.
24997 for _am_header in $config_headers :; do
24998 case $_am_header in
24999 $ac_file | $ac_file:* )
25002 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
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 ||
25011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25015 /^X\(\/\/\)[^/].*/{
25027 s/.*/./; q'`/stamp-h$_am_stamp_count
25030 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25031 echo "$as_me: executing $ac_file commands" >&6;}
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 ||
25054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25058 /^X\(\/\/\)[^/].*/{
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
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 ||
25098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25102 /^X\(\/\/\)[^/].*/{
25115 { as_dir=$dirpart/$fdir
25117 -*) as_dir=./$as_dir;;
25119 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25123 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25124 *) as_qdir=$as_dir;;
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 ||
25133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25137 /^X\(\/\/\)[^/].*/{
25150 test -d "$as_dir" && break
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"
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
25169 cfgfile="${ofile}T"
25170 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25173 cat <<_LT_EOF >> "$cfgfile"
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.
25181 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
25182 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
25184 # Written by Gordon Matzigkeit, 1996
25186 # This file is part of GNU Libtool.
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.
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.
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.
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.
25210 # The names of the tagged configurations supported by this script.
25213 # ### BEGIN LIBTOOL CONFIG
25215 # Whether or not to build static libraries.
25216 build_old_libs=$enable_static
25218 # Which release of libtool.m4 was used?
25219 macro_version=$macro_version
25220 macro_revision=$macro_revision
25222 # Whether or not to build shared libraries.
25223 build_libtool_libs=$enable_shared
25225 # What type of objects to build.
25228 # Whether or not to optimize for fast installation.
25229 fast_install=$enable_fast_install
25231 # Shell to use when invoking shell scripts.
25234 # An echo program that protects backslashes.
25238 host_alias=$host_alias
25242 # The build system.
25243 build_alias=$build_alias
25247 # A sed program that does not truncate output.
25250 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
25251 Xsed="\$SED -e 1s/^X//"
25253 # A grep program that handles long lines.
25259 # A literal string matcher.
25262 # A BSD- or MS-compatible name lister.
25265 # Whether we need soft or hard links.
25268 # What is the maximum length of a command?
25269 max_cmd_len=$max_cmd_len
25271 # Object file suffix (normally "o").
25274 # Executable file suffix (normally "").
25277 # whether the shell understands "unset".
25280 # turn spaces into newlines.
25283 # turn newlines into spaces.
25286 # An object symbol dumper.
25287 OBJDUMP=$lt_OBJDUMP
25289 # Method to check whether dependent libraries are shared objects.
25290 deplibs_check_method=$lt_deplibs_check_method
25292 # Command to use when deplibs_check_method == "file_magic".
25293 file_magic_cmd=$lt_file_magic_cmd
25297 AR_FLAGS=$lt_AR_FLAGS
25299 # A symbol stripping program.
25302 # Commands used to install an old-style archive.
25304 old_postinstall_cmds=$lt_old_postinstall_cmds
25305 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25307 # Whether to use a lock for old archive extraction.
25308 lock_old_archive_extraction=$lock_old_archive_extraction
25313 # LTCC compiler flags.
25314 LTCFLAGS=$lt_CFLAGS
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
25319 # Transform the output of nm in a proper C declaration.
25320 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
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
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
25328 # The name of the directory that contains temporary libtool files.
25331 # Used to examine libraries when file_magic_cmd begins with "file".
25332 MAGIC_CMD=$MAGIC_CMD
25334 # Must we lock files when doing compilation?
25335 need_locks=$lt_need_locks
25337 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25338 DSYMUTIL=$lt_DSYMUTIL
25340 # Tool to change global to local symbols on Mac OS X.
25343 # Tool to manipulate fat objects and archives on Mac OS X.
25346 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
25349 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25350 OTOOL64=$lt_OTOOL64
25352 # Old archive suffix (normally "a").
25355 # Shared library suffix (normally ".so").
25356 shrext_cmds=$lt_shrext_cmds
25358 # The commands to extract the exported symbol list from a shared archive.
25359 extract_expsyms_cmds=$lt_extract_expsyms_cmds
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
25365 # Do we need the "lib" prefix for modules?
25366 need_lib_prefix=$need_lib_prefix
25368 # Do we need a version for libraries?
25369 need_version=$need_version
25371 # Library versioning type.
25372 version_type=$version_type
25374 # Shared library runtime path variable.
25375 runpath_var=$runpath_var
25377 # Shared library path variable.
25378 shlibpath_var=$shlibpath_var
25380 # Is shlibpath searched before the hard-coded library search path?
25381 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25383 # Format of library name prefix.
25384 libname_spec=$lt_libname_spec
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
25390 # The coded name of the library, if different from the real name.
25391 soname_spec=$lt_soname_spec
25393 # Permission mode override for installation of shared libraries.
25394 install_override_mode=$lt_install_override_mode
25396 # Command to use after installation of a shared archive.
25397 postinstall_cmds=$lt_postinstall_cmds
25399 # Command to use after uninstallation of a shared archive.
25400 postuninstall_cmds=$lt_postuninstall_cmds
25402 # Commands used to finish a libtool library installation in a directory.
25403 finish_cmds=$lt_finish_cmds
25405 # As "finish_cmds", except a single script fragment to be evaled but
25407 finish_eval=$lt_finish_eval
25409 # Whether we should hardcode library paths into libraries.
25410 hardcode_into_libs=$hardcode_into_libs
25412 # Compile-time system search path for libraries.
25413 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25415 # Run-time system search path for libraries.
25416 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25418 # Whether dlopen is supported.
25419 dlopen_support=$enable_dlopen
25421 # Whether dlopen of programs is supported.
25422 dlopen_self=$enable_dlopen_self
25424 # Whether dlopen of statically linked programs is supported.
25425 dlopen_self_static=$enable_dlopen_self_static
25427 # Commands to strip libraries.
25428 old_striplib=$lt_old_striplib
25429 striplib=$lt_striplib
25432 # The linker used to build libraries.
25435 # How to create reloadable object files.
25436 reload_flag=$lt_reload_flag
25437 reload_cmds=$lt_reload_cmds
25439 # Commands used to build an old-style archive.
25440 old_archive_cmds=$lt_old_archive_cmds
25442 # A language specific compiler.
25445 # Is the compiler the GNU compiler?
25448 # Compiler flag to turn off builtin functions.
25449 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25451 # How to pass a linker flag through the compiler.
25452 wl=$lt_lt_prog_compiler_wl
25454 # Additional compiler flags for building library objects.
25455 pic_flag=$lt_lt_prog_compiler_pic
25457 # Compiler flag to prevent dynamic linking.
25458 link_static_flag=$lt_lt_prog_compiler_static
25460 # Does compiler simultaneously support -c and -o options?
25461 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25463 # Whether or not to add -lc for building shared libraries.
25464 build_libtool_need_lc=$archive_cmds_need_lc
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
25469 # Compiler flag to allow reflexive dlopens.
25470 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25472 # Compiler flag to generate shared objects directly from archives.
25473 whole_archive_flag_spec=$lt_whole_archive_flag_spec
25475 # Whether the compiler copes with passing no objects directly.
25476 compiler_needs_object=$lt_compiler_needs_object
25478 # Create an old-style archive from a shared archive.
25479 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
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
25484 # Commands used to build a shared archive.
25485 archive_cmds=$lt_archive_cmds
25486 archive_expsym_cmds=$lt_archive_expsym_cmds
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
25493 # Whether we are building with GNU ld or not.
25494 with_gnu_ld=$lt_with_gnu_ld
25496 # Flag that allows shared libraries with undefined symbols to be built.
25497 allow_undefined_flag=$lt_allow_undefined_flag
25499 # Flag that enforces no undefined symbols.
25500 no_undefined_flag=$lt_no_undefined_flag
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
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
25510 # Whether we need a single "-rpath" flag with a separated argument.
25511 hardcode_libdir_separator=$lt_hardcode_libdir_separator
25513 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25514 # DIR into the resulting binary.
25515 hardcode_direct=$hardcode_direct
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
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
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
25531 # Set to "yes" if building a shared library automatically hardcodes DIR
25532 # into the library and all subsequent libraries and executables linked
25534 hardcode_automatic=$hardcode_automatic
25536 # Set to yes if linker adds runtime paths of dependent libraries
25537 # to runtime path list.
25538 inherit_rpath=$inherit_rpath
25540 # Whether libtool must link a program against all its dependency libraries.
25541 link_all_deplibs=$link_all_deplibs
25543 # Fix the shell variable \$srcfile for the compiler.
25544 fix_srcfile_path=$lt_fix_srcfile_path
25546 # Set to "yes" if exported symbols are required.
25547 always_export_symbols=$always_export_symbols
25549 # The commands to list exported symbols.
25550 export_symbols_cmds=$lt_export_symbols_cmds
25552 # Symbols that should not be listed in the preloaded symbols.
25553 exclude_expsyms=$lt_exclude_expsyms
25555 # Symbols that must always be exported.
25556 include_expsyms=$lt_include_expsyms
25558 # Commands necessary for linking programs (against libraries) with templates.
25559 prelink_cmds=$lt_prelink_cmds
25561 # Specify filename containing input files.
25562 file_list_spec=$lt_file_list_spec
25564 # How to hardcode a shared library path into an executable.
25565 hardcode_action=$hardcode_action
25567 # ### END LIBTOOL CONFIG
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
25579 export COLLECT_NAMES
25586 ltmain="$ac_aux_dir/ltmain.sh"
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)
25598 cat << \_LT_EOF >> "$cfgfile"
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.
25606 */*) func_dirname_result="${1%/*}${2}" ;;
25607 * ) func_dirname_result="${3}" ;;
25611 # func_basename file
25614 func_basename_result="${1##*/}"
25617 # func_dirname_and_basename file append nondir_replacement
25618 # perform func_basename and func_dirname in a single function
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 ()
25632 */*) func_dirname_result="${1%/*}${2}" ;;
25633 * ) func_dirname_result="${3}" ;;
25635 func_basename_result="${1##*/}"
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).
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}"}
25655 func_opt_split_opt=${1%%=*}
25656 func_opt_split_arg=${1#*=}
25663 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
25664 *) func_lo2o_result=${1} ;;
25668 # func_xform libobj-or-source
25671 func_xform_result=${1%.*}.lo
25674 # func_arith arithmetic-term...
25677 func_arith_result=$(( $* ))
25681 # STRING may not start with a hyphen.
25684 func_len_result=${#1}
25689 *) # Bourne compatible functions.
25690 cat << \_LT_EOF >> "$cfgfile"
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.
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}"
25702 func_dirname_result="$func_dirname_result${2}"
25706 # func_basename file
25709 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
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
25722 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
25723 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
25728 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
25729 my_sed_long_arg='1s/^-[^=]*=//'
25734 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
25735 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
25741 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
25744 # func_xform libobj-or-source
25747 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
25750 # func_arith arithmetic-term...
25753 func_arith_result=`expr "$@"`
25757 # STRING may not start with a hyphen.
25760 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
25766 case $lt_shell_append in
25768 cat << \_LT_EOF >> "$cfgfile"
25770 # func_append var value
25771 # Append VALUE to the end of shell variable VAR.
25779 cat << \_LT_EOF >> "$cfgfile"
25781 # func_append var value
25782 # Append VALUE to the end of shell variable VAR.
25793 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
25794 || (rm -f "$cfgfile"; exit 1)
25796 mv -f "$cfgfile" "$ofile" ||
25797 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25806 { (exit 0); exit 0; }
25808 chmod +x $CONFIG_STATUS
25809 ac_clean_files=$ac_clean_files_save
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
25822 ac_config_status_args=
25823 test "$silent" = yes &&
25824 ac_config_status_args="$ac_config_status_args --quiet"
25826 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
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; }
25834 # CONFIG_SUBDIRS section.
25836 if test "$no_recursion" != yes; then
25838 # Remove --cache-file and --srcdir arguments so they do not pile up.
25839 ac_sub_configure_args=
25841 eval "set x $ac_configure_args"
25845 if test -n "$ac_prev"; then
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=* \
25857 --config-cache | -C)
25859 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25861 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25863 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25865 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25869 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25871 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
25875 # Always prepend --prefix to ensure using the same prefix
25876 # in subdir configurations.
25877 ac_arg="--prefix=$prefix"
25879 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25881 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
25884 if test "$silent" = yes; then
25885 ac_sub_configure_args="--silent $ac_sub_configure_args"
25889 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
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
25895 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
25896 echo "$as_me:$LINENO: $ac_msg" >&5
25900 -*) as_dir=./$as_dir;;
25902 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25906 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25907 *) as_qdir=$as_dir;;
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 ||
25916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25920 /^X\(\/\/\)[^/].*/{
25933 test -d "$as_dir" && break
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; }; }; }
25942 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
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/ ;;
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
25958 .) # We are building in place.
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 ;;
25971 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
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
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;}
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 ;;
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; }; }
26014 echo Configuration Complete. Type \'make\' to build.