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
1903 if test $cache_file = "/dev/null"; then
1904 cache_file="./config.cache"
1905 if test -r "$cache_file"; then
1906 # Some versions of bash will fail to source /dev/null (special
1907 # files actually), so we avoid doing that.
1908 if test -f "$cache_file"; then
1909 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1910 echo "$as_me: loading cache $cache_file" >&6;}
1912 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1913 *) . "./$cache_file";;
1917 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1918 echo "$as_me: creating cache $cache_file" >&6;}
1925 for ac_dir in config "$srcdir"/config; do
1926 if test -f "$ac_dir/install-sh"; then
1928 ac_install_sh="$ac_aux_dir/install-sh -c"
1930 elif test -f "$ac_dir/install.sh"; then
1932 ac_install_sh="$ac_aux_dir/install.sh -c"
1934 elif test -f "$ac_dir/shtool"; then
1936 ac_install_sh="$ac_aux_dir/shtool install -c"
1940 if test -z "$ac_aux_dir"; then
1941 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1942 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1943 { (exit 1); exit 1; }; }
1946 # These three variables are undocumented and unsupported,
1947 # and are intended to be withdrawn in a future Autoconf release.
1948 # They can cause serious problems if a builder's source tree is in a directory
1949 # whose full name contains unusual characters.
1950 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1951 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1952 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1955 # Make sure we can run config.sub.
1956 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1957 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1958 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1959 { (exit 1); exit 1; }; }
1961 { echo "$as_me:$LINENO: checking build system type" >&5
1962 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1963 if test "${ac_cv_build+set}" = set; then
1964 echo $ECHO_N "(cached) $ECHO_C" >&6
1966 ac_build_alias=$build_alias
1967 test "x$ac_build_alias" = x &&
1968 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1969 test "x$ac_build_alias" = x &&
1970 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1971 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1972 { (exit 1); exit 1; }; }
1973 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1974 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1975 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1976 { (exit 1); exit 1; }; }
1979 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1980 echo "${ECHO_T}$ac_cv_build" >&6; }
1981 case $ac_cv_build in
1983 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1984 echo "$as_me: error: invalid value of canonical build" >&2;}
1985 { (exit 1); exit 1; }; };;
1988 ac_save_IFS=$IFS; IFS='-'
1994 # Remember, the first character of IFS is used to create $*,
1995 # except with old shells:
1998 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2001 { echo "$as_me:$LINENO: checking host system type" >&5
2002 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2003 if test "${ac_cv_host+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 if test "x$host_alias" = x; then
2007 ac_cv_host=$ac_cv_build
2009 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2010 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2011 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2012 { (exit 1); exit 1; }; }
2016 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2017 echo "${ECHO_T}$ac_cv_host" >&6; }
2020 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2021 echo "$as_me: error: invalid value of canonical host" >&2;}
2022 { (exit 1); exit 1; }; };;
2025 ac_save_IFS=$IFS; IFS='-'
2031 # Remember, the first character of IFS is used to create $*,
2032 # except with old shells:
2035 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2038 { echo "$as_me:$LINENO: checking target system type" >&5
2039 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2040 if test "${ac_cv_target+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2043 if test "x$target_alias" = x; then
2044 ac_cv_target=$ac_cv_host
2046 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2047 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2048 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2049 { (exit 1); exit 1; }; }
2053 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2054 echo "${ECHO_T}$ac_cv_target" >&6; }
2055 case $ac_cv_target in
2057 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2058 echo "$as_me: error: invalid value of canonical target" >&2;}
2059 { (exit 1); exit 1; }; };;
2061 target=$ac_cv_target
2062 ac_save_IFS=$IFS; IFS='-'
2068 # Remember, the first character of IFS is used to create $*,
2069 # except with old shells:
2072 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2075 # The aliases save the names the user supplied, while $host etc.
2076 # will get canonicalized.
2077 test -n "$target_alias" &&
2078 test "$program_prefix$program_suffix$program_transform_name" = \
2080 program_prefix=${target_alias}-
2082 am__api_version='1.10'
2084 # Find a good install program. We prefer a C program (faster),
2085 # so one script is as good as another. But avoid the broken or
2086 # incompatible versions:
2087 # SysV /etc/install, /usr/sbin/install
2088 # SunOS /usr/etc/install
2089 # IRIX /sbin/install
2091 # AmigaOS /C/install, which installs bootblocks on floppy discs
2092 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2093 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2094 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2095 # OS/2's system install, which has a completely different semantic
2096 # ./install, which can be erroneously created by make from ./install.sh.
2097 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2098 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2099 if test -z "$INSTALL"; then
2100 if test "${ac_cv_path_install+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107 test -z "$as_dir" && as_dir=.
2108 # Account for people who put trailing slashes in PATH elements.
2110 ./ | .// | /cC/* | \
2111 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2112 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2115 # OSF1 and SCO ODT 3.0 have their own names for install.
2116 # Don't use installbsd from OSF since it installs stuff as root
2118 for ac_prog in ginstall scoinst install; do
2119 for ac_exec_ext in '' $ac_executable_extensions; do
2120 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2121 if test $ac_prog = install &&
2122 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2123 # AIX install. It has an incompatible calling convention.
2125 elif test $ac_prog = install &&
2126 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2127 # program-specific install script used by HP pwplus--don't use.
2130 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2143 if test "${ac_cv_path_install+set}" = set; then
2144 INSTALL=$ac_cv_path_install
2146 # As a last resort, use the slow shell script. Don't cache a
2147 # value for INSTALL within a source directory, because that will
2148 # break other packages using the cache if that directory is
2149 # removed, or if the value is a relative name.
2150 INSTALL=$ac_install_sh
2153 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2154 echo "${ECHO_T}$INSTALL" >&6; }
2156 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2157 # It thinks the first close brace ends the variable substitution.
2158 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2160 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2162 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2164 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2165 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2168 echo timestamp > conftest.file
2169 # Do `set' in a subshell so we don't clobber the current shell's
2170 # arguments. Must try -L first in case configure is actually a
2171 # symlink; some systems play weird games with the mod time of symlinks
2172 # (eg FreeBSD returns the mod time of the symlink's containing
2175 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2176 if test "$*" = "X"; then
2178 set X `ls -t $srcdir/configure conftest.file`
2181 if test "$*" != "X $srcdir/configure conftest.file" \
2182 && test "$*" != "X conftest.file $srcdir/configure"; then
2184 # If neither matched, then we have a broken ls. This can happen
2185 # if, for instance, CONFIG_SHELL is bash and it inherits a
2186 # broken ls alias from the environment. This has actually
2187 # happened. Such a system could not be considered "sane".
2188 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2189 alias in your environment" >&5
2190 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2191 alias in your environment" >&2;}
2192 { (exit 1); exit 1; }; }
2195 test "$2" = conftest.file
2201 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2202 Check your system clock" >&5
2203 echo "$as_me: error: newly created file is older than distributed files!
2204 Check your system clock" >&2;}
2205 { (exit 1); exit 1; }; }
2207 { echo "$as_me:$LINENO: result: yes" >&5
2208 echo "${ECHO_T}yes" >&6; }
2209 test "$program_prefix" != NONE &&
2210 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2211 # Use a double $ so make ignores it.
2212 test "$program_suffix" != NONE &&
2213 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2214 # Double any \ or $. echo might interpret backslashes.
2215 # By default was `s,x,x', remove it if useless.
2216 cat <<\_ACEOF >conftest.sed
2217 s/[\\$]/&&/g;s/;s,x,x,$//
2219 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2222 # expand $ac_aux_dir to an absolute path
2223 am_aux_dir=`cd $ac_aux_dir && pwd`
2225 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2226 # Use eval to expand $SHELL
2227 if eval "$MISSING --run true"; then
2228 am_missing_run="$MISSING --run "
2231 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2232 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2235 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2236 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2237 if test -z "$MKDIR_P"; then
2238 if test "${ac_cv_path_mkdir+set}" = set; then
2239 echo $ECHO_N "(cached) $ECHO_C" >&6
2241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2245 test -z "$as_dir" && as_dir=.
2246 for ac_prog in mkdir gmkdir; do
2247 for ac_exec_ext in '' $ac_executable_extensions; do
2248 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2249 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2250 'mkdir (GNU coreutils) '* | \
2251 'mkdir (coreutils) '* | \
2252 'mkdir (fileutils) '4.1*)
2253 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2263 if test "${ac_cv_path_mkdir+set}" = set; then
2264 MKDIR_P="$ac_cv_path_mkdir -p"
2266 # As a last resort, use the slow shell script. Don't cache a
2267 # value for MKDIR_P within a source directory, because that will
2268 # break other packages using the cache if that directory is
2269 # removed, or if the value is a relative name.
2270 test -d ./--version && rmdir ./--version
2271 MKDIR_P="$ac_install_sh -d"
2274 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2275 echo "${ECHO_T}$MKDIR_P" >&6; }
2279 [\\/$]* | ?:[\\/]*) ;;
2280 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2283 for ac_prog in gawk mawk nawk awk
2285 # Extract the first word of "$ac_prog", so it can be a program name with args.
2286 set dummy $ac_prog; ac_word=$2
2287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2289 if test "${ac_cv_prog_AWK+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2292 if test -n "$AWK"; then
2293 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299 test -z "$as_dir" && as_dir=.
2300 for ac_exec_ext in '' $ac_executable_extensions; do
2301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2302 ac_cv_prog_AWK="$ac_prog"
2303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2313 if test -n "$AWK"; then
2314 { echo "$as_me:$LINENO: result: $AWK" >&5
2315 echo "${ECHO_T}$AWK" >&6; }
2317 { echo "$as_me:$LINENO: result: no" >&5
2318 echo "${ECHO_T}no" >&6; }
2322 test -n "$AWK" && break
2325 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2326 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2327 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2328 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 cat >conftest.make <<\_ACEOF
2334 @echo '@@@%%%=$(MAKE)=@@@%%%'
2336 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2337 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2339 eval ac_cv_prog_make_${ac_make}_set=yes;;
2341 eval ac_cv_prog_make_${ac_make}_set=no;;
2345 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2346 { echo "$as_me:$LINENO: result: yes" >&5
2347 echo "${ECHO_T}yes" >&6; }
2350 { echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6; }
2352 SET_MAKE="MAKE=${MAKE-make}"
2355 rm -rf .tst 2>/dev/null
2356 mkdir .tst 2>/dev/null
2357 if test -d .tst; then
2362 rmdir .tst 2>/dev/null
2364 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2365 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2366 # is not polluted with repeated "-I."
2367 am__isrc=' -I$(srcdir)'
2368 # test to see if srcdir already configured
2369 if test -f $srcdir/config.status; then
2370 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2371 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2372 { (exit 1); exit 1; }; }
2376 # test whether we have cygpath
2377 if test -z "$CYGPATH_W"; then
2378 if (cygpath --version) >/dev/null 2>/dev/null; then
2379 CYGPATH_W='cygpath -w'
2386 # Define the identity of the package.
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE "$PACKAGE"
2396 cat >>confdefs.h <<_ACEOF
2397 #define VERSION "$VERSION"
2400 # Some tools Automake needs.
2402 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2405 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2408 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2411 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2414 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2416 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2418 # Installed binaries are usually stripped using `strip' when the user
2419 # run `make install-strip'. However `strip' might not be the right
2420 # tool to use in cross-compilation environments, therefore Automake
2421 # will honor the `STRIP' environment variable to overrule this program.
2422 if test "$cross_compiling" != no; then
2423 if test -n "$ac_tool_prefix"; then
2424 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2425 set dummy ${ac_tool_prefix}strip; ac_word=$2
2426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2428 if test "${ac_cv_prog_STRIP+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 if test -n "$STRIP"; then
2432 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 test -z "$as_dir" && as_dir=.
2439 for ac_exec_ext in '' $ac_executable_extensions; do
2440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2441 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451 STRIP=$ac_cv_prog_STRIP
2452 if test -n "$STRIP"; then
2453 { echo "$as_me:$LINENO: result: $STRIP" >&5
2454 echo "${ECHO_T}$STRIP" >&6; }
2456 { echo "$as_me:$LINENO: result: no" >&5
2457 echo "${ECHO_T}no" >&6; }
2462 if test -z "$ac_cv_prog_STRIP"; then
2464 # Extract the first word of "strip", so it can be a program name with args.
2465 set dummy strip; ac_word=$2
2466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2468 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 if test -n "$ac_ct_STRIP"; then
2472 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 test -z "$as_dir" && as_dir=.
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2481 ac_cv_prog_ac_ct_STRIP="strip"
2482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2491 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2492 if test -n "$ac_ct_STRIP"; then
2493 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2494 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2496 { echo "$as_me:$LINENO: result: no" >&5
2497 echo "${ECHO_T}no" >&6; }
2500 if test "x$ac_ct_STRIP" = x; then
2503 case $cross_compiling:$ac_tool_warned in
2505 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2506 whose name does not start with the host triplet. If you think this
2507 configuration is useful to you, please write to autoconf@gnu.org." >&5
2508 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2509 whose name does not start with the host triplet. If you think this
2510 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2511 ac_tool_warned=yes ;;
2516 STRIP="$ac_cv_prog_STRIP"
2520 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2522 # We need awk for the "check" target. The system "awk" is bad on
2524 # Always define AMTAR for backward compatibility.
2526 AMTAR=${AMTAR-"${am_missing_run}tar"}
2528 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2536 ACLOCAL="$ACLOCAL -I \$(top_srcdir)/cmulocal"
2539 # and include our config dir scripts
2540 ACLOCAL="$ACLOCAL -I \$(top_srcdir)/config"
2544 # Check whether --enable-cmulocal was given.
2545 if test "${enable_cmulocal+set}" = set; then
2546 enableval=$enable_cmulocal;
2552 # Check whether --enable-sample was given.
2553 if test "${enable_sample+set}" = set; then
2554 enableval=$enable_sample; enable_sample=yes
2559 ac_cpp='$CPP $CPPFLAGS'
2560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2563 if test -n "$ac_tool_prefix"; then
2564 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2565 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2568 if test "${ac_cv_prog_CC+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 if test -n "$CC"; then
2572 ac_cv_prog_CC="$CC" # Let the user override the test.
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 test -z "$as_dir" && as_dir=.
2579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2581 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2592 if test -n "$CC"; then
2593 { echo "$as_me:$LINENO: result: $CC" >&5
2594 echo "${ECHO_T}$CC" >&6; }
2596 { echo "$as_me:$LINENO: result: no" >&5
2597 echo "${ECHO_T}no" >&6; }
2602 if test -z "$ac_cv_prog_CC"; then
2604 # Extract the first word of "gcc", so it can be a program name with args.
2605 set dummy gcc; ac_word=$2
2606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2608 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2609 echo $ECHO_N "(cached) $ECHO_C" >&6
2611 if test -n "$ac_ct_CC"; then
2612 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 test -z "$as_dir" && as_dir=.
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2621 ac_cv_prog_ac_ct_CC="gcc"
2622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2631 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2632 if test -n "$ac_ct_CC"; then
2633 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2634 echo "${ECHO_T}$ac_ct_CC" >&6; }
2636 { echo "$as_me:$LINENO: result: no" >&5
2637 echo "${ECHO_T}no" >&6; }
2640 if test "x$ac_ct_CC" = x; then
2643 case $cross_compiling:$ac_tool_warned in
2645 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2646 whose name does not start with the host triplet. If you think this
2647 configuration is useful to you, please write to autoconf@gnu.org." >&5
2648 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2649 whose name does not start with the host triplet. If you think this
2650 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2651 ac_tool_warned=yes ;;
2659 if test -z "$CC"; then
2660 if test -n "$ac_tool_prefix"; then
2661 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2662 set dummy ${ac_tool_prefix}cc; ac_word=$2
2663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2665 if test "${ac_cv_prog_CC+set}" = set; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2668 if test -n "$CC"; then
2669 ac_cv_prog_CC="$CC" # Let the user override the test.
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675 test -z "$as_dir" && as_dir=.
2676 for ac_exec_ext in '' $ac_executable_extensions; do
2677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2678 ac_cv_prog_CC="${ac_tool_prefix}cc"
2679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 if test -n "$CC"; then
2690 { echo "$as_me:$LINENO: result: $CC" >&5
2691 echo "${ECHO_T}$CC" >&6; }
2693 { echo "$as_me:$LINENO: result: no" >&5
2694 echo "${ECHO_T}no" >&6; }
2700 if test -z "$CC"; then
2701 # Extract the first word of "cc", so it can be a program name with args.
2702 set dummy cc; ac_word=$2
2703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2705 if test "${ac_cv_prog_CC+set}" = set; then
2706 echo $ECHO_N "(cached) $ECHO_C" >&6
2708 if test -n "$CC"; then
2709 ac_cv_prog_CC="$CC" # Let the user override the test.
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 test -z "$as_dir" && as_dir=.
2717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2719 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2720 ac_prog_rejected=yes
2724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2731 if test $ac_prog_rejected = yes; then
2732 # We found a bogon in the path, so make sure we never use it.
2733 set dummy $ac_cv_prog_CC
2735 if test $# != 0; then
2736 # We chose a different compiler from the bogus one.
2737 # However, it has the same basename, so the bogon will be chosen
2738 # first if we set CC to just the basename; use the full file name.
2740 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2746 if test -n "$CC"; then
2747 { echo "$as_me:$LINENO: result: $CC" >&5
2748 echo "${ECHO_T}$CC" >&6; }
2750 { echo "$as_me:$LINENO: result: no" >&5
2751 echo "${ECHO_T}no" >&6; }
2756 if test -z "$CC"; then
2757 if test -n "$ac_tool_prefix"; then
2758 for ac_prog in cl.exe
2760 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2761 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2764 if test "${ac_cv_prog_CC+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2767 if test -n "$CC"; then
2768 ac_cv_prog_CC="$CC" # Let the user override the test.
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 test -z "$as_dir" && as_dir=.
2775 for ac_exec_ext in '' $ac_executable_extensions; do
2776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2777 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 if test -n "$CC"; then
2789 { echo "$as_me:$LINENO: result: $CC" >&5
2790 echo "${ECHO_T}$CC" >&6; }
2792 { echo "$as_me:$LINENO: result: no" >&5
2793 echo "${ECHO_T}no" >&6; }
2797 test -n "$CC" && break
2800 if test -z "$CC"; then
2802 for ac_prog in cl.exe
2804 # Extract the first word of "$ac_prog", so it can be a program name with args.
2805 set dummy $ac_prog; ac_word=$2
2806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2808 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2811 if test -n "$ac_ct_CC"; then
2812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2821 ac_cv_prog_ac_ct_CC="$ac_prog"
2822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2832 if test -n "$ac_ct_CC"; then
2833 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2834 echo "${ECHO_T}$ac_ct_CC" >&6; }
2836 { echo "$as_me:$LINENO: result: no" >&5
2837 echo "${ECHO_T}no" >&6; }
2841 test -n "$ac_ct_CC" && break
2844 if test "x$ac_ct_CC" = x; then
2847 case $cross_compiling:$ac_tool_warned in
2849 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2850 whose name does not start with the host triplet. If you think this
2851 configuration is useful to you, please write to autoconf@gnu.org." >&5
2852 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2853 whose name does not start with the host triplet. If you think this
2854 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2855 ac_tool_warned=yes ;;
2864 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2865 See \`config.log' for more details." >&5
2866 echo "$as_me: error: no acceptable C compiler found in \$PATH
2867 See \`config.log' for more details." >&2;}
2868 { (exit 1); exit 1; }; }
2870 # Provide some information about the compiler.
2871 echo "$as_me:$LINENO: checking for C compiler version" >&5
2872 ac_compiler=`set X $ac_compile; echo $2`
2873 { (ac_try="$ac_compiler --version >&5"
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879 (eval "$ac_compiler --version >&5") 2>&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }
2883 { (ac_try="$ac_compiler -v >&5"
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_compiler -v >&5") 2>&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }
2893 { (ac_try="$ac_compiler -V >&5"
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compiler -V >&5") 2>&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }
2904 cat >conftest.$ac_ext <<_ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2919 ac_clean_files_save=$ac_clean_files
2920 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2921 # Try to create an executable without -o first, disregard a.out.
2922 # It will help us diagnose broken compilers, and finding out an intuition
2924 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2925 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2926 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2928 # List of possible output files, starting from the most likely.
2929 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2930 # only as a last resort. b.out is created by i960 compilers.
2931 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2933 # The IRIX 6 linker writes into existing files which may not be
2934 # executable, retaining their permissions. Remove them first so a
2935 # subsequent execution test works.
2937 for ac_file in $ac_files
2940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2941 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2946 if { (ac_try="$ac_link_default"
2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949 *) ac_try_echo=$ac_try;;
2951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2952 (eval "$ac_link_default") 2>&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; then
2956 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2957 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2958 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2959 # so that the user can short-circuit this test for compilers unknown to
2961 for ac_file in $ac_files ''
2963 test -f "$ac_file" || continue
2965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2968 # We found the default executable, but exeext='' is most
2972 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2974 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2976 # We set ac_cv_exeext here because the later test for it is not
2977 # safe: cross compilers may not add the suffix if given an `-o'
2978 # argument, so we may need to know it at that point already.
2979 # Even if this section looks crufty: it has the advantage of
2986 test "$ac_cv_exeext" = no && ac_cv_exeext=
2992 { echo "$as_me:$LINENO: result: $ac_file" >&5
2993 echo "${ECHO_T}$ac_file" >&6; }
2994 if test -z "$ac_file"; then
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2998 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2999 See \`config.log' for more details." >&5
3000 echo "$as_me: error: C compiler cannot create executables
3001 See \`config.log' for more details." >&2;}
3002 { (exit 77); exit 77; }; }
3005 ac_exeext=$ac_cv_exeext
3007 # Check that the compiler produces executables we can run. If not, either
3008 # the compiler is broken, or we cross compile.
3009 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3010 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3011 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3012 # If not cross compiling, check that we can run a simple program.
3013 if test "$cross_compiling" != yes; then
3014 if { ac_try='./$ac_file'
3015 { (case "(($ac_try" in
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020 (eval "$ac_try") 2>&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); }; }; then
3026 if test "$cross_compiling" = maybe; then
3029 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3030 If you meant to cross compile, use \`--host'.
3031 See \`config.log' for more details." >&5
3032 echo "$as_me: error: cannot run C compiled programs.
3033 If you meant to cross compile, use \`--host'.
3034 See \`config.log' for more details." >&2;}
3035 { (exit 1); exit 1; }; }
3039 { echo "$as_me:$LINENO: result: yes" >&5
3040 echo "${ECHO_T}yes" >&6; }
3042 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3043 ac_clean_files=$ac_clean_files_save
3044 # Check that the compiler produces executables we can run. If not, either
3045 # the compiler is broken, or we cross compile.
3046 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3047 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3048 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3049 echo "${ECHO_T}$cross_compiling" >&6; }
3051 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3052 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3053 if { (ac_try="$ac_link"
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059 (eval "$ac_link") 2>&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; then
3063 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3064 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3065 # work properly (i.e., refer to `conftest.exe'), while it won't with
3067 for ac_file in conftest.exe conftest conftest.*; do
3068 test -f "$ac_file" || continue
3070 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3071 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3077 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3078 See \`config.log' for more details." >&5
3079 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3080 See \`config.log' for more details." >&2;}
3081 { (exit 1); exit 1; }; }
3084 rm -f conftest$ac_cv_exeext
3085 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3086 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3088 rm -f conftest.$ac_ext
3089 EXEEXT=$ac_cv_exeext
3091 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3092 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3093 if test "${ac_cv_objext+set}" = set; then
3094 echo $ECHO_N "(cached) $ECHO_C" >&6
3096 cat >conftest.$ac_ext <<_ACEOF
3099 cat confdefs.h >>conftest.$ac_ext
3100 cat >>conftest.$ac_ext <<_ACEOF
3101 /* end confdefs.h. */
3111 rm -f conftest.o conftest.obj
3112 if { (ac_try="$ac_compile"
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118 (eval "$ac_compile") 2>&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); }; then
3122 for ac_file in conftest.o conftest.obj conftest.*; do
3123 test -f "$ac_file" || continue;
3125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3126 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3131 echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3134 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3135 See \`config.log' for more details." >&5
3136 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3137 See \`config.log' for more details." >&2;}
3138 { (exit 1); exit 1; }; }
3141 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3143 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3144 echo "${ECHO_T}$ac_cv_objext" >&6; }
3145 OBJEXT=$ac_cv_objext
3147 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3148 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3149 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
3152 cat >conftest.$ac_ext <<_ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h. */
3170 rm -f conftest.$ac_objext
3171 if { (ac_try="$ac_compile"
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_compile") 2>conftest.er1
3179 grep -v '^ *+' conftest.er1 >conftest.err
3181 cat conftest.err >&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); } && {
3184 test -z "$ac_c_werror_flag" ||
3185 test ! -s conftest.err
3186 } && test -s conftest.$ac_objext; then
3189 echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3199 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3200 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3201 GCC=`test $ac_compiler_gnu = yes && echo yes`
3202 ac_test_CFLAGS=${CFLAGS+set}
3203 ac_save_CFLAGS=$CFLAGS
3204 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3205 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3206 if test "${ac_cv_prog_cc_g+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 ac_save_c_werror_flag=$ac_c_werror_flag
3210 ac_c_werror_flag=yes
3213 cat >conftest.$ac_ext <<_ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3228 rm -f conftest.$ac_objext
3229 if { (ac_try="$ac_compile"
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235 (eval "$ac_compile") 2>conftest.er1
3237 grep -v '^ *+' conftest.er1 >conftest.err
3239 cat conftest.err >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); } && {
3242 test -z "$ac_c_werror_flag" ||
3243 test ! -s conftest.err
3244 } && test -s conftest.$ac_objext; then
3247 echo "$as_me: failed program was:" >&5
3248 sed 's/^/| /' conftest.$ac_ext >&5
3251 cat >conftest.$ac_ext <<_ACEOF
3254 cat confdefs.h >>conftest.$ac_ext
3255 cat >>conftest.$ac_ext <<_ACEOF
3256 /* end confdefs.h. */
3266 rm -f conftest.$ac_objext
3267 if { (ac_try="$ac_compile"
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3273 (eval "$ac_compile") 2>conftest.er1
3275 grep -v '^ *+' conftest.er1 >conftest.err
3277 cat conftest.err >&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); } && {
3280 test -z "$ac_c_werror_flag" ||
3281 test ! -s conftest.err
3282 } && test -s conftest.$ac_objext; then
3285 echo "$as_me: failed program was:" >&5
3286 sed 's/^/| /' conftest.$ac_ext >&5
3288 ac_c_werror_flag=$ac_save_c_werror_flag
3290 cat >conftest.$ac_ext <<_ACEOF
3293 cat confdefs.h >>conftest.$ac_ext
3294 cat >>conftest.$ac_ext <<_ACEOF
3295 /* end confdefs.h. */
3305 rm -f conftest.$ac_objext
3306 if { (ac_try="$ac_compile"
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3312 (eval "$ac_compile") 2>conftest.er1
3314 grep -v '^ *+' conftest.er1 >conftest.err
3316 cat conftest.err >&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); } && {
3319 test -z "$ac_c_werror_flag" ||
3320 test ! -s conftest.err
3321 } && test -s conftest.$ac_objext; then
3324 echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337 ac_c_werror_flag=$ac_save_c_werror_flag
3339 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3340 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3341 if test "$ac_test_CFLAGS" = set; then
3342 CFLAGS=$ac_save_CFLAGS
3343 elif test $ac_cv_prog_cc_g = yes; then
3344 if test "$GCC" = yes; then
3350 if test "$GCC" = yes; then
3356 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3357 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3358 if test "${ac_cv_prog_cc_c89+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 ac_cv_prog_cc_c89=no
3363 cat >conftest.$ac_ext <<_ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h. */
3371 #include <sys/types.h>
3372 #include <sys/stat.h>
3373 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3374 struct buf { int x; };
3375 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3376 static char *e (p, i)
3382 static char *f (char * (*g) (char **, int), char **p, ...)
3387 s = g (p, va_arg (v,int));
3392 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3393 function prototypes and stuff, but not '\xHH' hex character constants.
3394 These don't provoke an error unfortunately, instead are silently treated
3395 as 'x'. The following induces an error, until -std is added to get
3396 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3397 array size at least. It's necessary to write '\x00'==0 to get something
3398 that's true only with -std. */
3399 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3401 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3402 inside strings and character constants. */
3404 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3406 int test (int i, double x);
3407 struct s1 {int (*f) (int a);};
3408 struct s2 {int (*f) (double a);};
3409 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3415 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3420 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3421 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3423 CC="$ac_save_CC $ac_arg"
3424 rm -f conftest.$ac_objext
3425 if { (ac_try="$ac_compile"
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431 (eval "$ac_compile") 2>conftest.er1
3433 grep -v '^ *+' conftest.er1 >conftest.err
3435 cat conftest.err >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } && {
3438 test -z "$ac_c_werror_flag" ||
3439 test ! -s conftest.err
3440 } && test -s conftest.$ac_objext; then
3441 ac_cv_prog_cc_c89=$ac_arg
3443 echo "$as_me: failed program was:" >&5
3444 sed 's/^/| /' conftest.$ac_ext >&5
3449 rm -f core conftest.err conftest.$ac_objext
3450 test "x$ac_cv_prog_cc_c89" != "xno" && break
3452 rm -f conftest.$ac_ext
3457 case "x$ac_cv_prog_cc_c89" in
3459 { echo "$as_me:$LINENO: result: none needed" >&5
3460 echo "${ECHO_T}none needed" >&6; } ;;
3462 { echo "$as_me:$LINENO: result: unsupported" >&5
3463 echo "${ECHO_T}unsupported" >&6; } ;;
3465 CC="$CC $ac_cv_prog_cc_c89"
3466 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3467 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3472 ac_cpp='$CPP $CPPFLAGS'
3473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3476 DEPDIR="${am__leading_dot}deps"
3478 ac_config_commands="$ac_config_commands depfiles"
3481 am_make=${MAKE-make}
3482 cat > confinc << 'END'
3487 # If we don't find an include directive, just comment out the code.
3488 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3489 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3493 # First try GNU make style include.
3494 echo "include confinc" > confmf
3495 # We grep out `Entering directory' and `Leaving directory'
3496 # messages which can occur if `w' ends up in MAKEFLAGS.
3497 # In particular we don't look at `^make:' because GNU make might
3498 # be invoked under some other name (usually "gmake"), in which
3499 # case it prints its new name instead of `make'.
3500 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3505 # Now try BSD make style include.
3506 if test "$am__include" = "#"; then
3507 echo '.include "confinc"' > confmf
3508 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3509 am__include=.include
3516 { echo "$as_me:$LINENO: result: $_am_result" >&5
3517 echo "${ECHO_T}$_am_result" >&6; }
3518 rm -f confinc confmf
3520 # Check whether --enable-dependency-tracking was given.
3521 if test "${enable_dependency_tracking+set}" = set; then
3522 enableval=$enable_dependency_tracking;
3525 if test "x$enable_dependency_tracking" != xno; then
3526 am_depcomp="$ac_aux_dir/depcomp"
3529 if test "x$enable_dependency_tracking" != xno; then
3539 depcc="$CC" am_compiler_list=
3541 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3542 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3543 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3547 # We make a subdir and do the tests there. Otherwise we can end up
3548 # making bogus files that we don't know about and never remove. For
3549 # instance it was reported that on HP-UX the gcc test will end up
3550 # making a dummy file named `D' -- because `-MD' means `put the output
3553 # Copy depcomp to subdir because otherwise we won't find it if we're
3554 # using a relative directory.
3555 cp "$am_depcomp" conftest.dir
3557 # We will build objects and dependencies in a subdirectory because
3558 # it helps to detect inapplicable dependency modes. For instance
3559 # both Tru64's cc and ICC support -MD to output dependencies as a
3560 # side effect of compilation, but ICC will put the dependencies in
3561 # the current directory while Tru64 will put them in the object
3565 am_cv_CC_dependencies_compiler_type=none
3566 if test "$am_compiler_list" = ""; then
3567 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3569 for depmode in $am_compiler_list; do
3570 # Setup a source with many dependencies, because some compilers
3571 # like to wrap large dependency lists on column 80 (with \), and
3572 # we should not choose a depcomp mode which is confused by this.
3574 # We need to recreate these files for each test, as the compiler may
3575 # overwrite some of them when testing with obscure command lines.
3576 # This happens at least with the AIX C compiler.
3578 for i in 1 2 3 4 5 6; do
3579 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3580 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3581 # Solaris 8's {/usr,}/bin/sh.
3582 touch sub/conftst$i.h
3584 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3588 # after this tag, mechanisms are not by side-effect, so they'll
3589 # only be used when explicitly requested
3590 if test "x$enable_dependency_tracking" = xyes; then
3598 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3599 # mode. It turns out that the SunPro C++ compiler does not properly
3600 # handle `-M -o', and we need to detect this.
3601 if depmode=$depmode \
3602 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3603 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3604 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3605 >/dev/null 2>conftest.err &&
3606 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3607 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3608 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3609 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3610 # icc doesn't choke on unknown options, it will just issue warnings
3611 # or remarks (even with -Werror). So we grep stderr for any message
3612 # that says an option was ignored or not supported.
3613 # When given -MP, icc 7.0 and 7.1 complain thusly:
3614 # icc: Command line warning: ignoring option '-M'; no argument required
3615 # The diagnosis changed in icc 8.0:
3616 # icc: Command line remark: option '-MP' not supported
3617 if (grep 'ignoring option' conftest.err ||
3618 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3619 am_cv_CC_dependencies_compiler_type=$depmode
3628 am_cv_CC_dependencies_compiler_type=none
3632 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3633 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3634 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3637 test "x$enable_dependency_tracking" != xno \
3638 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3640 am__fastdepCC_FALSE='#'
3642 am__fastdepCC_TRUE='#'
3643 am__fastdepCC_FALSE=
3648 ac_cpp='$CPP $CPPFLAGS'
3649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3652 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3653 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3654 # On Suns, sometimes $CPP names a directory.
3655 if test -n "$CPP" && test -d "$CPP"; then
3658 if test -z "$CPP"; then
3659 if test "${ac_cv_prog_CPP+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 # Double quotes because CPP needs to be expanded
3663 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3666 for ac_c_preproc_warn_flag in '' yes
3668 # Use a header file that comes with gcc, so configuring glibc
3669 # with a fresh cross-compiler works.
3670 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3671 # <limits.h> exists even on freestanding compilers.
3672 # On the NeXT, cc -E runs the code through the compiler's parser,
3673 # not just through cpp. "Syntax error" is here to catch this case.
3674 cat >conftest.$ac_ext <<_ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h. */
3681 # include <limits.h>
3683 # include <assert.h>
3687 if { (ac_try="$ac_cpp conftest.$ac_ext"
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3695 grep -v '^ *+' conftest.er1 >conftest.err
3697 cat conftest.err >&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); } >/dev/null && {
3700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3701 test ! -s conftest.err
3705 echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3708 # Broken: fails on valid input.
3712 rm -f conftest.err conftest.$ac_ext
3714 # OK, works on sane cases. Now check whether nonexistent headers
3715 # can be detected and how.
3716 cat >conftest.$ac_ext <<_ACEOF
3719 cat confdefs.h >>conftest.$ac_ext
3720 cat >>conftest.$ac_ext <<_ACEOF
3721 /* end confdefs.h. */
3722 #include <ac_nonexistent.h>
3724 if { (ac_try="$ac_cpp conftest.$ac_ext"
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3732 grep -v '^ *+' conftest.er1 >conftest.err
3734 cat conftest.err >&5
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); } >/dev/null && {
3737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3738 test ! -s conftest.err
3740 # Broken: success on invalid input.
3743 echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3746 # Passes both tests.
3751 rm -f conftest.err conftest.$ac_ext
3754 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3755 rm -f conftest.err conftest.$ac_ext
3756 if $ac_preproc_ok; then
3768 { echo "$as_me:$LINENO: result: $CPP" >&5
3769 echo "${ECHO_T}$CPP" >&6; }
3771 for ac_c_preproc_warn_flag in '' yes
3773 # Use a header file that comes with gcc, so configuring glibc
3774 # with a fresh cross-compiler works.
3775 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3776 # <limits.h> exists even on freestanding compilers.
3777 # On the NeXT, cc -E runs the code through the compiler's parser,
3778 # not just through cpp. "Syntax error" is here to catch this case.
3779 cat >conftest.$ac_ext <<_ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h. */
3786 # include <limits.h>
3788 # include <assert.h>
3792 if { (ac_try="$ac_cpp conftest.$ac_ext"
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3800 grep -v '^ *+' conftest.er1 >conftest.err
3802 cat conftest.err >&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); } >/dev/null && {
3805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3806 test ! -s conftest.err
3810 echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3813 # Broken: fails on valid input.
3817 rm -f conftest.err conftest.$ac_ext
3819 # OK, works on sane cases. Now check whether nonexistent headers
3820 # can be detected and how.
3821 cat >conftest.$ac_ext <<_ACEOF
3824 cat confdefs.h >>conftest.$ac_ext
3825 cat >>conftest.$ac_ext <<_ACEOF
3826 /* end confdefs.h. */
3827 #include <ac_nonexistent.h>
3829 if { (ac_try="$ac_cpp conftest.$ac_ext"
3831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832 *) ac_try_echo=$ac_try;;
3834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3837 grep -v '^ *+' conftest.er1 >conftest.err
3839 cat conftest.err >&5
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); } >/dev/null && {
3842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3843 test ! -s conftest.err
3845 # Broken: success on invalid input.
3848 echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3851 # Passes both tests.
3856 rm -f conftest.err conftest.$ac_ext
3859 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3860 rm -f conftest.err conftest.$ac_ext
3861 if $ac_preproc_ok; then
3864 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3865 See \`config.log' for more details." >&5
3866 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3867 See \`config.log' for more details." >&2;}
3868 { (exit 1); exit 1; }; }
3872 ac_cpp='$CPP $CPPFLAGS'
3873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3877 for ac_prog in gawk mawk nawk awk
3879 # Extract the first word of "$ac_prog", so it can be a program name with args.
3880 set dummy $ac_prog; ac_word=$2
3881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3883 if test "${ac_cv_prog_AWK+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3886 if test -n "$AWK"; then
3887 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 test -z "$as_dir" && as_dir=.
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3896 ac_cv_prog_AWK="$ac_prog"
3897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 if test -n "$AWK"; then
3908 { echo "$as_me:$LINENO: result: $AWK" >&5
3909 echo "${ECHO_T}$AWK" >&6; }
3911 { echo "$as_me:$LINENO: result: no" >&5
3912 echo "${ECHO_T}no" >&6; }
3916 test -n "$AWK" && break
3919 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3920 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3922 if test "$LN_S" = "ln -s"; then
3923 { echo "$as_me:$LINENO: result: yes" >&5
3924 echo "${ECHO_T}yes" >&6; }
3926 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3927 echo "${ECHO_T}no, using $LN_S" >&6; }
3930 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3931 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3932 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3933 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 cat >conftest.make <<\_ACEOF
3939 @echo '@@@%%%=$(MAKE)=@@@%%%'
3941 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3942 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3944 eval ac_cv_prog_make_${ac_make}_set=yes;;
3946 eval ac_cv_prog_make_${ac_make}_set=no;;
3950 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3951 { echo "$as_me:$LINENO: result: yes" >&5
3952 echo "${ECHO_T}yes" >&6; }
3955 { echo "$as_me:$LINENO: result: no" >&5
3956 echo "${ECHO_T}no" >&6; }
3957 SET_MAKE="MAKE=${MAKE-make}"
3960 # Find a good install program. We prefer a C program (faster),
3961 # so one script is as good as another. But avoid the broken or
3962 # incompatible versions:
3963 # SysV /etc/install, /usr/sbin/install
3964 # SunOS /usr/etc/install
3965 # IRIX /sbin/install
3967 # AmigaOS /C/install, which installs bootblocks on floppy discs
3968 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3969 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3970 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3971 # OS/2's system install, which has a completely different semantic
3972 # ./install, which can be erroneously created by make from ./install.sh.
3973 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3974 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3975 if test -z "$INSTALL"; then
3976 if test "${ac_cv_path_install+set}" = set; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 test -z "$as_dir" && as_dir=.
3984 # Account for people who put trailing slashes in PATH elements.
3986 ./ | .// | /cC/* | \
3987 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3988 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3991 # OSF1 and SCO ODT 3.0 have their own names for install.
3992 # Don't use installbsd from OSF since it installs stuff as root
3994 for ac_prog in ginstall scoinst install; do
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3997 if test $ac_prog = install &&
3998 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3999 # AIX install. It has an incompatible calling convention.
4001 elif test $ac_prog = install &&
4002 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4003 # program-specific install script used by HP pwplus--don't use.
4006 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4019 if test "${ac_cv_path_install+set}" = set; then
4020 INSTALL=$ac_cv_path_install
4022 # As a last resort, use the slow shell script. Don't cache a
4023 # value for INSTALL within a source directory, because that will
4024 # break other packages using the cache if that directory is
4025 # removed, or if the value is a relative name.
4026 INSTALL=$ac_install_sh
4029 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4030 echo "${ECHO_T}$INSTALL" >&6; }
4032 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4033 # It thinks the first close brace ends the variable substitution.
4034 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4036 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4038 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4042 { echo "$as_me:$LINENO: checking for __attribute__" >&5
4043 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
4044 if test "${ac_cv___attribute__+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 cat >conftest.$ac_ext <<_ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h. */
4061 static void foo(void) __attribute__ ((noreturn));
4073 rm -f conftest.$ac_objext
4074 if { (ac_try="$ac_compile"
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080 (eval "$ac_compile") 2>conftest.er1
4082 grep -v '^ *+' conftest.er1 >conftest.err
4084 cat conftest.err >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } && {
4087 test -z "$ac_c_werror_flag" ||
4088 test ! -s conftest.err
4089 } && test -s conftest.$ac_objext; then
4090 ac_cv___attribute__=yes
4092 echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4095 ac_cv___attribute__=no
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101 if test "$ac_cv___attribute__" = "yes"; then
4103 cat >>confdefs.h <<\_ACEOF
4104 #define HAVE___ATTRIBUTE__ 1
4108 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
4109 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
4113 # CMU GUESS RUNPATH SWITCH
4114 { echo "$as_me:$LINENO: checking for runpath switch" >&5
4115 echo $ECHO_N "checking for runpath switch... $ECHO_C" >&6; }
4116 if test "${andrew_runpath_switch+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4121 SAVE_LDFLAGS="${LDFLAGS}"
4122 LDFLAGS="-R /usr/lib"
4123 cat >conftest.$ac_ext <<_ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4138 rm -f conftest.$ac_objext conftest$ac_exeext
4139 if { (ac_try="$ac_link"
4141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142 *) ac_try_echo=$ac_try;;
4144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4145 (eval "$ac_link") 2>conftest.er1
4147 grep -v '^ *+' conftest.er1 >conftest.err
4149 cat conftest.err >&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); } && {
4152 test -z "$ac_c_werror_flag" ||
4153 test ! -s conftest.err
4154 } && test -s conftest$ac_exeext &&
4155 $as_test_x conftest$ac_exeext; then
4156 andrew_runpath_switch="-R"
4158 echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4162 LDFLAGS="-Wl,-rpath,/usr/lib"
4163 cat >conftest.$ac_ext <<_ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h. */
4178 rm -f conftest.$ac_objext conftest$ac_exeext
4179 if { (ac_try="$ac_link"
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_link") 2>conftest.er1
4187 grep -v '^ *+' conftest.er1 >conftest.err
4189 cat conftest.err >&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); } && {
4192 test -z "$ac_c_werror_flag" ||
4193 test ! -s conftest.err
4194 } && test -s conftest$ac_exeext &&
4195 $as_test_x conftest$ac_exeext; then
4196 andrew_runpath_switch="-Wl,-rpath,"
4198 echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4201 andrew_runpath_switch="none"
4204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4205 conftest$ac_exeext conftest.$ac_ext
4209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4210 conftest$ac_exeext conftest.$ac_ext
4211 LDFLAGS="${SAVE_LDFLAGS}"
4214 { echo "$as_me:$LINENO: result: $andrew_runpath_switch" >&5
4215 echo "${ECHO_T}$andrew_runpath_switch" >&6; }
4218 # Check whether --with-staticsasl was given.
4219 if test "${with_staticsasl+set}" = set; then
4220 withval=$with_staticsasl;
4223 if test "$with_staticsasl" = yes; then
4229 if test -z "$target"; then
4234 # Check whether --enable-static was given.
4235 if test "${enable_static+set}" = set; then
4236 enableval=$enable_static; p=${PACKAGE-default}
4238 yes) enable_static=yes ;;
4239 no) enable_static=no ;;
4242 # Look at the argument we got. We use all the common list separators.
4243 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4244 for pkg in $enableval; do
4246 if test "X$pkg" = "X$p"; then
4267 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4268 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4273 macro_version='2.2.10'
4274 macro_revision='1.3175'
4288 ltmain="$ac_aux_dir/ltmain.sh"
4290 # Backslashify metacharacters that are still active within
4291 # double-quoted strings.
4292 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4294 # Same as above, but do not quote variable references.
4295 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4297 # Sed substitution to delay expansion of an escaped shell variable in a
4298 # double_quote_subst'ed string.
4299 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4301 # Sed substitution to delay expansion of an escaped single quote.
4302 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4304 # Sed substitution to avoid accidental globbing in evaled expressions
4305 no_glob_subst='s/\*/\\\*/g'
4307 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4308 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4309 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4311 { echo "$as_me:$LINENO: checking how to print strings" >&5
4312 echo $ECHO_N "checking how to print strings... $ECHO_C" >&6; }
4313 # Test print first, because it will be a builtin if present.
4314 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4315 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4317 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4320 # Use this function as a fallback that always works.
4321 func_fallback_echo ()
4323 eval 'cat <<_LTECHO_EOF
4327 ECHO='func_fallback_echo'
4330 # func_echo_all arg...
4331 # Invoke $ECHO with all args, space-separated.
4338 printf*) { echo "$as_me:$LINENO: result: printf" >&5
4339 echo "${ECHO_T}printf" >&6; } ;;
4340 print*) { echo "$as_me:$LINENO: result: print -r" >&5
4341 echo "${ECHO_T}print -r" >&6; } ;;
4342 *) { echo "$as_me:$LINENO: result: cat" >&5
4343 echo "${ECHO_T}cat" >&6; } ;;
4359 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4360 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4361 if test "${ac_cv_path_SED+set}" = set; then
4362 echo $ECHO_N "(cached) $ECHO_C" >&6
4364 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4365 for ac_i in 1 2 3 4 5 6 7; do
4366 ac_script="$ac_script$as_nl$ac_script"
4368 echo "$ac_script" | sed 99q >conftest.sed
4369 $as_unset ac_script || ac_script=
4370 # Extract the first word of "sed gsed" to use in msg output
4371 if test -z "$SED"; then
4372 set dummy sed gsed; ac_prog_name=$2
4373 if test "${ac_cv_path_SED+set}" = set; then
4374 echo $ECHO_N "(cached) $ECHO_C" >&6
4376 ac_path_SED_found=false
4377 # Loop through the user's path and test for each of PROGNAME-LIST
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382 test -z "$as_dir" && as_dir=.
4383 for ac_prog in sed gsed; do
4384 for ac_exec_ext in '' $ac_executable_extensions; do
4385 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4386 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4387 # Check for GNU ac_path_SED and select it if it is found.
4388 # Check for GNU $ac_path_SED
4389 case `"$ac_path_SED" --version 2>&1` in
4391 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4394 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4397 cat "conftest.in" "conftest.in" >"conftest.tmp"
4398 mv "conftest.tmp" "conftest.in"
4399 cp "conftest.in" "conftest.nl"
4400 echo '' >> "conftest.nl"
4401 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4402 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4403 ac_count=`expr $ac_count + 1`
4404 if test $ac_count -gt ${ac_path_SED_max-0}; then
4405 # Best one so far, save it but keep looking for a better one
4406 ac_cv_path_SED="$ac_path_SED"
4407 ac_path_SED_max=$ac_count
4409 # 10*(2^10) chars as input seems more than enough
4410 test $ac_count -gt 10 && break
4412 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4416 $ac_path_SED_found && break 3
4426 SED="$ac_cv_path_SED"
4427 if test -z "$SED"; then
4428 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
4429 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
4430 { (exit 1); exit 1; }; }
4438 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4439 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4440 SED="$ac_cv_path_SED"
4443 test -z "$SED" && SED=sed
4444 Xsed="$SED -e 1s/^X//"
4456 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4457 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4458 if test "${ac_cv_path_GREP+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4461 # Extract the first word of "grep ggrep" to use in msg output
4462 if test -z "$GREP"; then
4463 set dummy grep ggrep; ac_prog_name=$2
4464 if test "${ac_cv_path_GREP+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 ac_path_GREP_found=false
4468 # Loop through the user's path and test for each of PROGNAME-LIST
4469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4473 test -z "$as_dir" && as_dir=.
4474 for ac_prog in grep ggrep; do
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4477 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4478 # Check for GNU ac_path_GREP and select it if it is found.
4479 # Check for GNU $ac_path_GREP
4480 case `"$ac_path_GREP" --version 2>&1` in
4482 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4485 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4488 cat "conftest.in" "conftest.in" >"conftest.tmp"
4489 mv "conftest.tmp" "conftest.in"
4490 cp "conftest.in" "conftest.nl"
4491 echo 'GREP' >> "conftest.nl"
4492 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4493 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4494 ac_count=`expr $ac_count + 1`
4495 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4496 # Best one so far, save it but keep looking for a better one
4497 ac_cv_path_GREP="$ac_path_GREP"
4498 ac_path_GREP_max=$ac_count
4500 # 10*(2^10) chars as input seems more than enough
4501 test $ac_count -gt 10 && break
4503 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4507 $ac_path_GREP_found && break 3
4517 GREP="$ac_cv_path_GREP"
4518 if test -z "$GREP"; then
4519 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4520 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4521 { (exit 1); exit 1; }; }
4525 ac_cv_path_GREP=$GREP
4530 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4531 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4532 GREP="$ac_cv_path_GREP"
4535 { echo "$as_me:$LINENO: checking for egrep" >&5
4536 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4537 if test "${ac_cv_path_EGREP+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4540 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4541 then ac_cv_path_EGREP="$GREP -E"
4543 # Extract the first word of "egrep" to use in msg output
4544 if test -z "$EGREP"; then
4545 set dummy egrep; ac_prog_name=$2
4546 if test "${ac_cv_path_EGREP+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4549 ac_path_EGREP_found=false
4550 # Loop through the user's path and test for each of PROGNAME-LIST
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4555 test -z "$as_dir" && as_dir=.
4556 for ac_prog in egrep; do
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4559 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4560 # Check for GNU ac_path_EGREP and select it if it is found.
4561 # Check for GNU $ac_path_EGREP
4562 case `"$ac_path_EGREP" --version 2>&1` in
4564 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4567 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4570 cat "conftest.in" "conftest.in" >"conftest.tmp"
4571 mv "conftest.tmp" "conftest.in"
4572 cp "conftest.in" "conftest.nl"
4573 echo 'EGREP' >> "conftest.nl"
4574 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4575 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4576 ac_count=`expr $ac_count + 1`
4577 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4578 # Best one so far, save it but keep looking for a better one
4579 ac_cv_path_EGREP="$ac_path_EGREP"
4580 ac_path_EGREP_max=$ac_count
4582 # 10*(2^10) chars as input seems more than enough
4583 test $ac_count -gt 10 && break
4585 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4589 $ac_path_EGREP_found && break 3
4599 EGREP="$ac_cv_path_EGREP"
4600 if test -z "$EGREP"; then
4601 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4602 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4603 { (exit 1); exit 1; }; }
4607 ac_cv_path_EGREP=$EGREP
4613 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4614 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4615 EGREP="$ac_cv_path_EGREP"
4618 { echo "$as_me:$LINENO: checking for fgrep" >&5
4619 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
4620 if test "${ac_cv_path_FGREP+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4623 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4624 then ac_cv_path_FGREP="$GREP -F"
4626 # Extract the first word of "fgrep" to use in msg output
4627 if test -z "$FGREP"; then
4628 set dummy fgrep; ac_prog_name=$2
4629 if test "${ac_cv_path_FGREP+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 ac_path_FGREP_found=false
4633 # Loop through the user's path and test for each of PROGNAME-LIST
4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4638 test -z "$as_dir" && as_dir=.
4639 for ac_prog in fgrep; do
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4642 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4643 # Check for GNU ac_path_FGREP and select it if it is found.
4644 # Check for GNU $ac_path_FGREP
4645 case `"$ac_path_FGREP" --version 2>&1` in
4647 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4650 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4653 cat "conftest.in" "conftest.in" >"conftest.tmp"
4654 mv "conftest.tmp" "conftest.in"
4655 cp "conftest.in" "conftest.nl"
4656 echo 'FGREP' >> "conftest.nl"
4657 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4659 ac_count=`expr $ac_count + 1`
4660 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4661 # Best one so far, save it but keep looking for a better one
4662 ac_cv_path_FGREP="$ac_path_FGREP"
4663 ac_path_FGREP_max=$ac_count
4665 # 10*(2^10) chars as input seems more than enough
4666 test $ac_count -gt 10 && break
4668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4672 $ac_path_FGREP_found && break 3
4682 FGREP="$ac_cv_path_FGREP"
4683 if test -z "$FGREP"; then
4684 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4685 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4686 { (exit 1); exit 1; }; }
4690 ac_cv_path_FGREP=$FGREP
4696 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4697 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
4698 FGREP="$ac_cv_path_FGREP"
4701 test -z "$GREP" && GREP=grep
4721 # Check whether --with-gnu-ld was given.
4722 if test "${with_gnu_ld+set}" = set; then
4723 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4729 if test "$GCC" = yes; then
4730 # Check if gcc -print-prog-name=ld gives a path.
4731 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4732 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4735 # gcc leaves a trailing carriage return which upsets mingw
4736 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4738 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4741 # Accept absolute paths.
4743 re_direlt='/[^/][^/]*/\.\./'
4744 # Canonicalize the pathname of ld
4745 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4746 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4747 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4749 test -z "$LD" && LD="$ac_prog"
4752 # If it fails, then pretend we aren't using GCC.
4756 # If it is relative, then search for the first ld in PATH.
4760 elif test "$with_gnu_ld" = yes; then
4761 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4762 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4764 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4765 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4767 if test "${lt_cv_path_LD+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4770 if test -z "$LD"; then
4771 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4772 for ac_dir in $PATH; do
4774 test -z "$ac_dir" && ac_dir=.
4775 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4776 lt_cv_path_LD="$ac_dir/$ac_prog"
4777 # Check to see if the program is GNU ld. I'd rather use --version,
4778 # but apparently some variants of GNU ld only accept -v.
4779 # Break only if it was the GNU/non-GNU ld that we prefer.
4780 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4781 *GNU* | *'with BFD'*)
4782 test "$with_gnu_ld" != no && break
4785 test "$with_gnu_ld" != yes && break
4792 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4797 if test -n "$LD"; then
4798 { echo "$as_me:$LINENO: result: $LD" >&5
4799 echo "${ECHO_T}$LD" >&6; }
4801 { echo "$as_me:$LINENO: result: no" >&5
4802 echo "${ECHO_T}no" >&6; }
4804 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4805 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4806 { (exit 1); exit 1; }; }
4807 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4808 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4809 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4812 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4813 case `$LD -v 2>&1 </dev/null` in
4814 *GNU* | *'with BFD'*)
4815 lt_cv_prog_gnu_ld=yes
4818 lt_cv_prog_gnu_ld=no
4822 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4823 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4824 with_gnu_ld=$lt_cv_prog_gnu_ld
4834 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4835 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4836 if test "${lt_cv_path_NM+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 if test -n "$NM"; then
4840 # Let the user override the test.
4843 lt_nm_to_check="${ac_tool_prefix}nm"
4844 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4845 lt_nm_to_check="$lt_nm_to_check nm"
4847 for lt_tmp_nm in $lt_nm_to_check; do
4848 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4849 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4851 test -z "$ac_dir" && ac_dir=.
4852 tmp_nm="$ac_dir/$lt_tmp_nm"
4853 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4854 # Check to see if the nm accepts a BSD-compat flag.
4855 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4856 # nm: unknown option "B" ignored
4857 # Tru64's nm complains that /dev/null is an invalid object file
4858 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4859 */dev/null* | *'Invalid file or object type'*)
4860 lt_cv_path_NM="$tmp_nm -B"
4864 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4866 lt_cv_path_NM="$tmp_nm -p"
4870 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4871 continue # so that we can try to find one that supports BSD flags
4880 : ${lt_cv_path_NM=no}
4883 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4884 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4885 if test "$lt_cv_path_NM" != "no"; then
4888 # Didn't find any BSD compatible name lister, look for dumpbin.
4889 if test -n "$DUMPBIN"; then :
4890 # Let the user override the test.
4892 if test -n "$ac_tool_prefix"; then
4893 for ac_prog in dumpbin "link -dump"
4895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4899 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 if test -n "$DUMPBIN"; then
4903 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 DUMPBIN=$ac_cv_prog_DUMPBIN
4923 if test -n "$DUMPBIN"; then
4924 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4925 echo "${ECHO_T}$DUMPBIN" >&6; }
4927 { echo "$as_me:$LINENO: result: no" >&5
4928 echo "${ECHO_T}no" >&6; }
4932 test -n "$DUMPBIN" && break
4935 if test -z "$DUMPBIN"; then
4936 ac_ct_DUMPBIN=$DUMPBIN
4937 for ac_prog in dumpbin "link -dump"
4939 # Extract the first word of "$ac_prog", so it can be a program name with args.
4940 set dummy $ac_prog; ac_word=$2
4941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4943 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 if test -n "$ac_ct_DUMPBIN"; then
4947 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 test -z "$as_dir" && as_dir=.
4954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4956 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4967 if test -n "$ac_ct_DUMPBIN"; then
4968 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4969 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4971 { echo "$as_me:$LINENO: result: no" >&5
4972 echo "${ECHO_T}no" >&6; }
4976 test -n "$ac_ct_DUMPBIN" && break
4979 if test "x$ac_ct_DUMPBIN" = x; then
4982 case $cross_compiling:$ac_tool_warned in
4984 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4985 whose name does not start with the host triplet. If you think this
4986 configuration is useful to you, please write to autoconf@gnu.org." >&5
4987 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4988 whose name does not start with the host triplet. If you think this
4989 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4990 ac_tool_warned=yes ;;
4992 DUMPBIN=$ac_ct_DUMPBIN
4996 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4998 DUMPBIN="$DUMPBIN -symbols"
5006 if test "$DUMPBIN" != ":"; then
5010 test -z "$NM" && NM=nm
5017 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5018 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5019 if test "${lt_cv_nm_interface+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5022 lt_cv_nm_interface="BSD nm"
5023 echo "int some_variable = 0;" > conftest.$ac_ext
5024 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5025 (eval "$ac_compile" 2>conftest.err)
5026 cat conftest.err >&5
5027 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5028 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5029 cat conftest.err >&5
5030 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5031 cat conftest.out >&5
5032 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5033 lt_cv_nm_interface="MS dumpbin"
5037 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5038 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5040 # find the maximum length of command line arguments
5041 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5042 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5043 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5044 echo $ECHO_N "(cached) $ECHO_C" >&6
5051 # On DJGPP, this test can blow up pretty badly due to problems in libc
5052 # (any single argument exceeding 2000 bytes causes a buffer overrun
5053 # during glob expansion). Even if it were fixed, the result of this
5054 # check would be larger than it should be.
5055 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5059 # Under GNU Hurd, this test is not required because there is
5060 # no limit to the length of command line arguments.
5061 # Libtool will interpret -1 as no limit whatsoever
5062 lt_cv_sys_max_cmd_len=-1;
5065 cygwin* | mingw* | cegcc*)
5066 # On Win9x/ME, this test blows up -- it succeeds, but takes
5067 # about 5 minutes as the teststring grows exponentially.
5068 # Worse, since 9x/ME are not pre-emptively multitasking,
5069 # you end up with a "frozen" computer, even though with patience
5070 # the test eventually succeeds (with a max line length of 256k).
5071 # Instead, let's just punt: use the minimum linelength reported by
5072 # all of the supported platforms: 8192 (on NT/2K/XP).
5073 lt_cv_sys_max_cmd_len=8192;
5077 # On MiNT this can take a long time and run out of memory.
5078 lt_cv_sys_max_cmd_len=8192;
5082 # On AmigaOS with pdksh, this test takes hours, literally.
5083 # So we just punt and use a minimum line length of 8192.
5084 lt_cv_sys_max_cmd_len=8192;
5087 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5088 # This has been around since 386BSD, at least. Likely further.
5089 if test -x /sbin/sysctl; then
5090 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5091 elif test -x /usr/sbin/sysctl; then
5092 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5094 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5096 # And add a safety zone
5097 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5098 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5102 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5103 lt_cv_sys_max_cmd_len=196608
5107 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5108 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5109 # nice to cause kernel panics so lets avoid the loop below.
5110 # First set a reasonable default.
5111 lt_cv_sys_max_cmd_len=16384
5113 if test -x /sbin/sysconfig; then
5114 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5115 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5120 lt_cv_sys_max_cmd_len=102400
5122 sysv5* | sco5v6* | sysv4.2uw2*)
5123 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5124 if test -n "$kargmax"; then
5125 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5127 lt_cv_sys_max_cmd_len=32768
5131 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5132 if test -n "$lt_cv_sys_max_cmd_len"; then
5133 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5134 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5136 # Make teststring a little bigger before we do anything with it.
5137 # a 1K string should be a reasonable start.
5138 for i in 1 2 3 4 5 6 7 8 ; do
5139 teststring=$teststring$teststring
5141 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5142 # If test is not a shell built-in, we'll probably end up computing a
5143 # maximum length that is only half of the actual maximum length, but
5145 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5146 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5147 test $i != 17 # 1/2 MB should be enough
5150 teststring=$teststring$teststring
5152 # Only check the string length outside the loop.
5153 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5155 # Add a significant safety factor because C++ compilers can tack on
5156 # massive amounts of additional arguments before passing them to the
5157 # linker. It appears as though 1/2 is a usable value.
5158 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5165 if test -n $lt_cv_sys_max_cmd_len ; then
5166 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5167 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5169 { echo "$as_me:$LINENO: result: none" >&5
5170 echo "${ECHO_T}none" >&6; }
5172 max_cmd_len=$lt_cv_sys_max_cmd_len
5183 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5184 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
5185 # Try some XSI features
5188 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5190 && eval 'test $(( 1 + 1 )) -eq 2 \
5191 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5193 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
5194 echo "${ECHO_T}$xsi_shell" >&6; }
5197 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5198 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
5200 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5202 && lt_shell_append=yes
5203 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5204 echo "${ECHO_T}$lt_shell_append" >&6; }
5207 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5217 # test EBCDIC or ASCII
5218 case `echo X|tr X '\101'` in
5219 A) # ASCII based system
5220 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5221 lt_SP2NL='tr \040 \012'
5222 lt_NL2SP='tr \015\012 \040\040'
5224 *) # EBCDIC based system
5225 lt_SP2NL='tr \100 \n'
5226 lt_NL2SP='tr \r\n \100\100'
5238 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5239 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5240 if test "${lt_cv_ld_reload_flag+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 lt_cv_ld_reload_flag='-r'
5245 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5246 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5247 reload_flag=$lt_cv_ld_reload_flag
5248 case $reload_flag in
5250 *) reload_flag=" $reload_flag" ;;
5252 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5255 if test "$GCC" = yes; then
5256 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5258 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5271 if test -n "$ac_tool_prefix"; then
5272 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5273 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5276 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 if test -n "$OBJDUMP"; then
5280 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286 test -z "$as_dir" && as_dir=.
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5289 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5299 OBJDUMP=$ac_cv_prog_OBJDUMP
5300 if test -n "$OBJDUMP"; then
5301 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5302 echo "${ECHO_T}$OBJDUMP" >&6; }
5304 { echo "$as_me:$LINENO: result: no" >&5
5305 echo "${ECHO_T}no" >&6; }
5310 if test -z "$ac_cv_prog_OBJDUMP"; then
5311 ac_ct_OBJDUMP=$OBJDUMP
5312 # Extract the first word of "objdump", so it can be a program name with args.
5313 set dummy objdump; ac_word=$2
5314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5316 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5319 if test -n "$ac_ct_OBJDUMP"; then
5320 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 test -z "$as_dir" && as_dir=.
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5329 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5339 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5340 if test -n "$ac_ct_OBJDUMP"; then
5341 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5342 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5344 { echo "$as_me:$LINENO: result: no" >&5
5345 echo "${ECHO_T}no" >&6; }
5348 if test "x$ac_ct_OBJDUMP" = x; then
5351 case $cross_compiling:$ac_tool_warned in
5353 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5354 whose name does not start with the host triplet. If you think this
5355 configuration is useful to you, please write to autoconf@gnu.org." >&5
5356 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5357 whose name does not start with the host triplet. If you think this
5358 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5359 ac_tool_warned=yes ;;
5361 OBJDUMP=$ac_ct_OBJDUMP
5364 OBJDUMP="$ac_cv_prog_OBJDUMP"
5367 test -z "$OBJDUMP" && OBJDUMP=objdump
5377 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5378 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5379 if test "${lt_cv_deplibs_check_method+set}" = set; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 lt_cv_file_magic_cmd='$MAGIC_CMD'
5383 lt_cv_file_magic_test_file=
5384 lt_cv_deplibs_check_method='unknown'
5385 # Need to set the preceding variable on all platforms that support
5386 # interlibrary dependencies.
5387 # 'none' -- dependencies not supported.
5388 # `unknown' -- same as none, but documents that we really don't know.
5389 # 'pass_all' -- all dependencies passed with no checks.
5390 # 'test_compile' -- check by making test program.
5391 # 'file_magic [[regex]]' -- check by looking for files in library path
5392 # which responds to the $file_magic_cmd with a given extended regex.
5393 # If you have `file' or equivalent on your system and you're not sure
5394 # whether `pass_all' will *always* work, you probably want this one.
5398 lt_cv_deplibs_check_method=pass_all
5402 lt_cv_deplibs_check_method=pass_all
5406 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5407 lt_cv_file_magic_cmd='/usr/bin/file -L'
5408 lt_cv_file_magic_test_file=/shlib/libc.so
5412 # func_win32_libid is a shell function defined in ltmain.sh
5413 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5414 lt_cv_file_magic_cmd='func_win32_libid'
5418 # Base MSYS/MinGW do not provide the 'file' command needed by
5419 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5420 # unless we find 'file', for example because we are cross-compiling.
5421 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5422 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5423 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5424 lt_cv_file_magic_cmd='func_win32_libid'
5426 # Keep this pattern in sync with the one in func_win32_libid.
5427 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5428 lt_cv_file_magic_cmd='$OBJDUMP -f'
5433 # use the weaker test based on 'objdump'. See mingw*.
5434 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5435 lt_cv_file_magic_cmd='$OBJDUMP -f'
5438 darwin* | rhapsody*)
5439 lt_cv_deplibs_check_method=pass_all
5442 freebsd* | dragonfly*)
5443 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5446 # Not sure whether the presence of OpenBSD here was a mistake.
5447 # Let's accept both of them until this is cleared up.
5448 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5449 lt_cv_file_magic_cmd=/usr/bin/file
5450 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5454 lt_cv_deplibs_check_method=pass_all
5459 lt_cv_deplibs_check_method=pass_all
5463 lt_cv_deplibs_check_method=pass_all
5466 hpux10.20* | hpux11*)
5467 lt_cv_file_magic_cmd=/usr/bin/file
5470 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5471 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5474 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]'
5475 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5478 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5479 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5485 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5486 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5489 irix5* | irix6* | nonstopux*)
5491 *-32|*"-32 ") libmagic=32-bit;;
5492 *-n32|*"-n32 ") libmagic=N32;;
5493 *-64|*"-64 ") libmagic=64-bit;;
5494 *) libmagic=never-match;;
5496 lt_cv_deplibs_check_method=pass_all
5499 # This must be Linux ELF.
5500 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5501 lt_cv_deplibs_check_method=pass_all
5505 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5506 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5508 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5513 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5514 lt_cv_file_magic_cmd=/usr/bin/file
5515 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5519 lt_cv_deplibs_check_method=pass_all
5523 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5524 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5526 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5530 osf3* | osf4* | osf5*)
5531 lt_cv_deplibs_check_method=pass_all
5535 lt_cv_deplibs_check_method=pass_all
5539 lt_cv_deplibs_check_method=pass_all
5542 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5543 lt_cv_deplibs_check_method=pass_all
5547 case $host_vendor in
5549 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]'
5550 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5553 lt_cv_deplibs_check_method=pass_all
5556 lt_cv_file_magic_cmd='/bin/file'
5557 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5560 lt_cv_file_magic_cmd='/bin/file'
5561 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5562 lt_cv_file_magic_test_file=/lib/libc.so
5565 lt_cv_deplibs_check_method=pass_all
5568 lt_cv_deplibs_check_method=pass_all
5574 lt_cv_deplibs_check_method=pass_all
5579 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5580 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5581 file_magic_cmd=$lt_cv_file_magic_cmd
5582 deplibs_check_method=$lt_cv_deplibs_check_method
5583 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5596 if test -n "$ac_tool_prefix"; then
5597 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5598 set dummy ${ac_tool_prefix}ar; ac_word=$2
5599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5601 if test "${ac_cv_prog_AR+set}" = set; then
5602 echo $ECHO_N "(cached) $ECHO_C" >&6
5604 if test -n "$AR"; then
5605 ac_cv_prog_AR="$AR" # Let the user override the test.
5607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611 test -z "$as_dir" && as_dir=.
5612 for ac_exec_ext in '' $ac_executable_extensions; do
5613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5614 ac_cv_prog_AR="${ac_tool_prefix}ar"
5615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5625 if test -n "$AR"; then
5626 { echo "$as_me:$LINENO: result: $AR" >&5
5627 echo "${ECHO_T}$AR" >&6; }
5629 { echo "$as_me:$LINENO: result: no" >&5
5630 echo "${ECHO_T}no" >&6; }
5635 if test -z "$ac_cv_prog_AR"; then
5637 # Extract the first word of "ar", so it can be a program name with args.
5638 set dummy ar; ac_word=$2
5639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5641 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 if test -n "$ac_ct_AR"; then
5645 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651 test -z "$as_dir" && as_dir=.
5652 for ac_exec_ext in '' $ac_executable_extensions; do
5653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5654 ac_cv_prog_ac_ct_AR="ar"
5655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5664 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5665 if test -n "$ac_ct_AR"; then
5666 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5667 echo "${ECHO_T}$ac_ct_AR" >&6; }
5669 { echo "$as_me:$LINENO: result: no" >&5
5670 echo "${ECHO_T}no" >&6; }
5673 if test "x$ac_ct_AR" = x; then
5676 case $cross_compiling:$ac_tool_warned in
5678 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5679 whose name does not start with the host triplet. If you think this
5680 configuration is useful to you, please write to autoconf@gnu.org." >&5
5681 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5682 whose name does not start with the host triplet. If you think this
5683 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5684 ac_tool_warned=yes ;;
5692 test -z "$AR" && AR=ar
5693 test -z "$AR_FLAGS" && AR_FLAGS=cru
5705 if test -n "$ac_tool_prefix"; then
5706 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5707 set dummy ${ac_tool_prefix}strip; ac_word=$2
5708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5710 if test "${ac_cv_prog_STRIP+set}" = set; then
5711 echo $ECHO_N "(cached) $ECHO_C" >&6
5713 if test -n "$STRIP"; then
5714 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 test -z "$as_dir" && as_dir=.
5721 for ac_exec_ext in '' $ac_executable_extensions; do
5722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5723 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5733 STRIP=$ac_cv_prog_STRIP
5734 if test -n "$STRIP"; then
5735 { echo "$as_me:$LINENO: result: $STRIP" >&5
5736 echo "${ECHO_T}$STRIP" >&6; }
5738 { echo "$as_me:$LINENO: result: no" >&5
5739 echo "${ECHO_T}no" >&6; }
5744 if test -z "$ac_cv_prog_STRIP"; then
5746 # Extract the first word of "strip", so it can be a program name with args.
5747 set dummy strip; ac_word=$2
5748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5750 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 if test -n "$ac_ct_STRIP"; then
5754 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760 test -z "$as_dir" && as_dir=.
5761 for ac_exec_ext in '' $ac_executable_extensions; do
5762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5763 ac_cv_prog_ac_ct_STRIP="strip"
5764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5773 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5774 if test -n "$ac_ct_STRIP"; then
5775 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5776 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5778 { echo "$as_me:$LINENO: result: no" >&5
5779 echo "${ECHO_T}no" >&6; }
5782 if test "x$ac_ct_STRIP" = x; then
5785 case $cross_compiling:$ac_tool_warned in
5787 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5788 whose name does not start with the host triplet. If you think this
5789 configuration is useful to you, please write to autoconf@gnu.org." >&5
5790 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5791 whose name does not start with the host triplet. If you think this
5792 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5793 ac_tool_warned=yes ;;
5798 STRIP="$ac_cv_prog_STRIP"
5801 test -z "$STRIP" && STRIP=:
5808 if test -n "$ac_tool_prefix"; then
5809 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5810 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5813 if test "${ac_cv_prog_RANLIB+set}" = set; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5816 if test -n "$RANLIB"; then
5817 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 test -z "$as_dir" && as_dir=.
5824 for ac_exec_ext in '' $ac_executable_extensions; do
5825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5826 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5836 RANLIB=$ac_cv_prog_RANLIB
5837 if test -n "$RANLIB"; then
5838 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5839 echo "${ECHO_T}$RANLIB" >&6; }
5841 { echo "$as_me:$LINENO: result: no" >&5
5842 echo "${ECHO_T}no" >&6; }
5847 if test -z "$ac_cv_prog_RANLIB"; then
5848 ac_ct_RANLIB=$RANLIB
5849 # Extract the first word of "ranlib", so it can be a program name with args.
5850 set dummy ranlib; ac_word=$2
5851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5853 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 if test -n "$ac_ct_RANLIB"; then
5857 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5866 ac_cv_prog_ac_ct_RANLIB="ranlib"
5867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5876 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5877 if test -n "$ac_ct_RANLIB"; then
5878 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5879 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5881 { echo "$as_me:$LINENO: result: no" >&5
5882 echo "${ECHO_T}no" >&6; }
5885 if test "x$ac_ct_RANLIB" = x; then
5888 case $cross_compiling:$ac_tool_warned in
5890 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5891 whose name does not start with the host triplet. If you think this
5892 configuration is useful to you, please write to autoconf@gnu.org." >&5
5893 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5894 whose name does not start with the host triplet. If you think this
5895 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5896 ac_tool_warned=yes ;;
5898 RANLIB=$ac_ct_RANLIB
5901 RANLIB="$ac_cv_prog_RANLIB"
5904 test -z "$RANLIB" && RANLIB=:
5911 # Determine commands to create old-style static archives.
5912 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5913 old_postinstall_cmds='chmod 644 $oldlib'
5914 old_postuninstall_cmds=
5916 if test -n "$RANLIB"; then
5919 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5922 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5925 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5930 lock_old_archive_extraction=yes ;;
5932 lock_old_archive_extraction=no ;;
5973 # If no C compiler was specified, use CC.
5976 # If no C compiler flags were specified, use CFLAGS.
5977 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5979 # Allow CC to be a program name with arguments.
5983 # Check for command to grab the raw symbol name followed by C symbol from nm.
5984 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5985 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5986 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 # These are sane defaults that work on at least a few old systems.
5991 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5993 # Character class describing NM global symbol codes.
5994 symcode='[BCDEGRST]'
5996 # Regexp to match symbols that can be accessed directly from C.
5997 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5999 # Define system-specific variables.
6004 cygwin* | mingw* | pw32* | cegcc*)
6005 symcode='[ABCDGISTW]'
6008 if test "$host_cpu" = ia64; then
6009 symcode='[ABCDEGRST]'
6013 symcode='[BCDEGRST]'
6016 symcode='[BCDEGQRST]'
6027 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6035 # If we're using GNU nm, then use its standard symbol codes.
6036 case `$NM -V 2>&1` in
6037 *GNU* | *'with BFD'*)
6038 symcode='[ABCDGIRSTW]' ;;
6041 # Transform an extracted symbol line into a proper C declaration.
6042 # Some systems (esp. on ia64) link data and code symbols differently,
6043 # so use this general approach.
6044 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6046 # Transform an extracted symbol line into symbol name and symbol address
6047 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6048 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'"
6050 # Handle CRLF in mingw tool chain
6054 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6058 # Try without a prefix underscore, then with it.
6059 for ac_symprfx in "" "_"; do
6061 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6062 symxfrm="\\1 $ac_symprfx\\2 \\2"
6064 # Write the raw and C identifiers.
6065 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6066 # Fake it for dumpbin and say T for any non-static function
6067 # and D for any global variable.
6068 # Also find C++ and __fastcall symbols from MSVC++,
6069 # which start with @ or ?.
6070 lt_cv_sys_global_symbol_pipe="$AWK '"\
6071 " {last_section=section; section=\$ 3};"\
6072 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6073 " \$ 0!~/External *\|/{next};"\
6074 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6075 " {if(hide[section]) next};"\
6076 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6077 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6078 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6079 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6080 " ' prfx=^$ac_symprfx"
6082 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6085 # Check to see that the pipe works correctly.
6089 cat > conftest.$ac_ext <<_LT_EOF
6094 void nm_test_func(void);
6095 void nm_test_func(void){}
6099 int main(){nm_test_var='a';nm_test_func();return(0);}
6102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6103 (eval $ac_compile) 2>&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); }; then
6107 # Now try to grab the symbols.
6109 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\"") >&5
6110 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } && test -s "$nlist"; then
6114 # Try sorting and uniquifying the output.
6115 if sort "$nlist" | uniq > "$nlist"T; then
6116 mv -f "$nlist"T "$nlist"
6121 # Make sure that we snagged all the symbols we need.
6122 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6123 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6124 cat <<_LT_EOF > conftest.$ac_ext
6130 # Now generate the symbol file.
6131 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6133 cat <<_LT_EOF >> conftest.$ac_ext
6135 /* The mapping between symbol names and symbols. */
6140 lt__PROGRAM__LTX_preloaded_symbols[] =
6142 { "@PROGRAM@", (void *) 0 },
6144 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6145 cat <<\_LT_EOF >> conftest.$ac_ext
6149 /* This works around a problem in FreeBSD linker */
6150 #ifdef FREEBSD_WORKAROUND
6151 static const void *lt_preloaded_setup() {
6152 return lt__PROGRAM__LTX_preloaded_symbols;
6160 # Now try linking the two files.
6161 mv conftest.$ac_objext conftstm.$ac_objext
6162 lt_save_LIBS="$LIBS"
6163 lt_save_CFLAGS="$CFLAGS"
6164 LIBS="conftstm.$ac_objext"
6165 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6167 (eval $ac_link) 2>&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6173 LIBS="$lt_save_LIBS"
6174 CFLAGS="$lt_save_CFLAGS"
6176 echo "cannot find nm_test_func in $nlist" >&5
6179 echo "cannot find nm_test_var in $nlist" >&5
6182 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6185 echo "$progname: failed program was:" >&5
6186 cat conftest.$ac_ext >&5
6188 rm -rf conftest* conftst*
6190 # Do not use the global_symbol_pipe unless it works.
6191 if test "$pipe_works" = yes; then
6194 lt_cv_sys_global_symbol_pipe=
6200 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6201 lt_cv_sys_global_symbol_to_cdecl=
6203 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6204 { echo "$as_me:$LINENO: result: failed" >&5
6205 echo "${ECHO_T}failed" >&6; }
6207 { echo "$as_me:$LINENO: result: ok" >&5
6208 echo "${ECHO_T}ok" >&6; }
6232 # Check whether --enable-libtool-lock was given.
6233 if test "${enable_libtool_lock+set}" = set; then
6234 enableval=$enable_libtool_lock;
6237 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6239 # Some flags need to be propagated to the compiler or linker for good
6243 # Find out which ABI we are using.
6244 echo 'int i;' > conftest.$ac_ext
6245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6246 (eval $ac_compile) 2>&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); }; then
6250 case `/usr/bin/file conftest.$ac_objext` in
6262 # Find out which ABI we are using.
6263 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6265 (eval $ac_compile) 2>&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; then
6269 if test "$lt_cv_prog_gnu_ld" = yes; then
6270 case `/usr/bin/file conftest.$ac_objext` in
6272 LD="${LD-ld} -melf32bsmip"
6275 LD="${LD-ld} -melf32bmipn32"
6278 LD="${LD-ld} -melf64bmip"
6282 case `/usr/bin/file conftest.$ac_objext` in
6298 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6299 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6300 # Find out which ABI we are using.
6301 echo 'int i;' > conftest.$ac_ext
6302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6303 (eval $ac_compile) 2>&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; then
6307 case `/usr/bin/file conftest.o` in
6310 x86_64-*kfreebsd*-gnu)
6311 LD="${LD-ld} -m elf_i386_fbsd"
6314 LD="${LD-ld} -m elf_i386"
6316 ppc64-*linux*|powerpc64-*linux*)
6317 LD="${LD-ld} -m elf32ppclinux"
6320 LD="${LD-ld} -m elf_s390"
6323 LD="${LD-ld} -m elf32_sparc"
6329 x86_64-*kfreebsd*-gnu)
6330 LD="${LD-ld} -m elf_x86_64_fbsd"
6333 LD="${LD-ld} -m elf_x86_64"
6335 ppc*-*linux*|powerpc*-*linux*)
6336 LD="${LD-ld} -m elf64ppc"
6338 s390*-*linux*|s390*-*tpf*)
6339 LD="${LD-ld} -m elf64_s390"
6342 LD="${LD-ld} -m elf64_sparc"
6352 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6353 SAVE_CFLAGS="$CFLAGS"
6354 CFLAGS="$CFLAGS -belf"
6355 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6356 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6357 if test "${lt_cv_cc_needs_belf+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6361 ac_cpp='$CPP $CPPFLAGS'
6362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6366 cat >conftest.$ac_ext <<_ACEOF
6369 cat confdefs.h >>conftest.$ac_ext
6370 cat >>conftest.$ac_ext <<_ACEOF
6371 /* end confdefs.h. */
6381 rm -f conftest.$ac_objext conftest$ac_exeext
6382 if { (ac_try="$ac_link"
6384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6385 *) ac_try_echo=$ac_try;;
6387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6388 (eval "$ac_link") 2>conftest.er1
6390 grep -v '^ *+' conftest.er1 >conftest.err
6392 cat conftest.err >&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); } && {
6395 test -z "$ac_c_werror_flag" ||
6396 test ! -s conftest.err
6397 } && test -s conftest$ac_exeext &&
6398 $as_test_x conftest$ac_exeext; then
6399 lt_cv_cc_needs_belf=yes
6401 echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.$ac_ext >&5
6404 lt_cv_cc_needs_belf=no
6407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6408 conftest$ac_exeext conftest.$ac_ext
6410 ac_cpp='$CPP $CPPFLAGS'
6411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6416 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6417 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6418 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6419 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6420 CFLAGS="$SAVE_CFLAGS"
6424 # Find out which ABI we are using.
6425 echo 'int i;' > conftest.$ac_ext
6426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6427 (eval $ac_compile) 2>&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); }; then
6431 case `/usr/bin/file conftest.o` in
6433 case $lt_cv_prog_gnu_ld in
6434 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6436 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6448 need_locks="$enable_libtool_lock"
6452 rhapsody* | darwin*)
6453 if test -n "$ac_tool_prefix"; then
6454 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6455 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6458 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6461 if test -n "$DSYMUTIL"; then
6462 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6471 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6481 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6482 if test -n "$DSYMUTIL"; then
6483 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6484 echo "${ECHO_T}$DSYMUTIL" >&6; }
6486 { echo "$as_me:$LINENO: result: no" >&5
6487 echo "${ECHO_T}no" >&6; }
6492 if test -z "$ac_cv_prog_DSYMUTIL"; then
6493 ac_ct_DSYMUTIL=$DSYMUTIL
6494 # Extract the first word of "dsymutil", so it can be a program name with args.
6495 set dummy dsymutil; ac_word=$2
6496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6498 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6499 echo $ECHO_N "(cached) $ECHO_C" >&6
6501 if test -n "$ac_ct_DSYMUTIL"; then
6502 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 test -z "$as_dir" && as_dir=.
6509 for ac_exec_ext in '' $ac_executable_extensions; do
6510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6511 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6521 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6522 if test -n "$ac_ct_DSYMUTIL"; then
6523 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6524 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
6526 { echo "$as_me:$LINENO: result: no" >&5
6527 echo "${ECHO_T}no" >&6; }
6530 if test "x$ac_ct_DSYMUTIL" = x; then
6533 case $cross_compiling:$ac_tool_warned in
6535 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6536 whose name does not start with the host triplet. If you think this
6537 configuration is useful to you, please write to autoconf@gnu.org." >&5
6538 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6539 whose name does not start with the host triplet. If you think this
6540 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6541 ac_tool_warned=yes ;;
6543 DSYMUTIL=$ac_ct_DSYMUTIL
6546 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6549 if test -n "$ac_tool_prefix"; then
6550 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6551 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6554 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6555 echo $ECHO_N "(cached) $ECHO_C" >&6
6557 if test -n "$NMEDIT"; then
6558 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564 test -z "$as_dir" && as_dir=.
6565 for ac_exec_ext in '' $ac_executable_extensions; do
6566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6567 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6577 NMEDIT=$ac_cv_prog_NMEDIT
6578 if test -n "$NMEDIT"; then
6579 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
6580 echo "${ECHO_T}$NMEDIT" >&6; }
6582 { echo "$as_me:$LINENO: result: no" >&5
6583 echo "${ECHO_T}no" >&6; }
6588 if test -z "$ac_cv_prog_NMEDIT"; then
6589 ac_ct_NMEDIT=$NMEDIT
6590 # Extract the first word of "nmedit", so it can be a program name with args.
6591 set dummy nmedit; ac_word=$2
6592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6594 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6595 echo $ECHO_N "(cached) $ECHO_C" >&6
6597 if test -n "$ac_ct_NMEDIT"; then
6598 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 test -z "$as_dir" && as_dir=.
6605 for ac_exec_ext in '' $ac_executable_extensions; do
6606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6607 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6617 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6618 if test -n "$ac_ct_NMEDIT"; then
6619 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6620 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
6622 { echo "$as_me:$LINENO: result: no" >&5
6623 echo "${ECHO_T}no" >&6; }
6626 if test "x$ac_ct_NMEDIT" = x; then
6629 case $cross_compiling:$ac_tool_warned in
6631 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6632 whose name does not start with the host triplet. If you think this
6633 configuration is useful to you, please write to autoconf@gnu.org." >&5
6634 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6635 whose name does not start with the host triplet. If you think this
6636 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6637 ac_tool_warned=yes ;;
6639 NMEDIT=$ac_ct_NMEDIT
6642 NMEDIT="$ac_cv_prog_NMEDIT"
6645 if test -n "$ac_tool_prefix"; then
6646 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6647 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6650 if test "${ac_cv_prog_LIPO+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
6653 if test -n "$LIPO"; then
6654 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660 test -z "$as_dir" && as_dir=.
6661 for ac_exec_ext in '' $ac_executable_extensions; do
6662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6663 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6673 LIPO=$ac_cv_prog_LIPO
6674 if test -n "$LIPO"; then
6675 { echo "$as_me:$LINENO: result: $LIPO" >&5
6676 echo "${ECHO_T}$LIPO" >&6; }
6678 { echo "$as_me:$LINENO: result: no" >&5
6679 echo "${ECHO_T}no" >&6; }
6684 if test -z "$ac_cv_prog_LIPO"; then
6686 # Extract the first word of "lipo", so it can be a program name with args.
6687 set dummy lipo; ac_word=$2
6688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6690 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6693 if test -n "$ac_ct_LIPO"; then
6694 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 test -z "$as_dir" && as_dir=.
6701 for ac_exec_ext in '' $ac_executable_extensions; do
6702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6703 ac_cv_prog_ac_ct_LIPO="lipo"
6704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6713 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6714 if test -n "$ac_ct_LIPO"; then
6715 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6716 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
6718 { echo "$as_me:$LINENO: result: no" >&5
6719 echo "${ECHO_T}no" >&6; }
6722 if test "x$ac_ct_LIPO" = x; then
6725 case $cross_compiling:$ac_tool_warned in
6727 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6728 whose name does not start with the host triplet. If you think this
6729 configuration is useful to you, please write to autoconf@gnu.org." >&5
6730 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6731 whose name does not start with the host triplet. If you think this
6732 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6733 ac_tool_warned=yes ;;
6738 LIPO="$ac_cv_prog_LIPO"
6741 if test -n "$ac_tool_prefix"; then
6742 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6743 set dummy ${ac_tool_prefix}otool; ac_word=$2
6744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6746 if test "${ac_cv_prog_OTOOL+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 if test -n "$OTOOL"; then
6750 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6759 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6769 OTOOL=$ac_cv_prog_OTOOL
6770 if test -n "$OTOOL"; then
6771 { echo "$as_me:$LINENO: result: $OTOOL" >&5
6772 echo "${ECHO_T}$OTOOL" >&6; }
6774 { echo "$as_me:$LINENO: result: no" >&5
6775 echo "${ECHO_T}no" >&6; }
6780 if test -z "$ac_cv_prog_OTOOL"; then
6782 # Extract the first word of "otool", so it can be a program name with args.
6783 set dummy otool; ac_word=$2
6784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6786 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6789 if test -n "$ac_ct_OTOOL"; then
6790 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 test -z "$as_dir" && as_dir=.
6797 for ac_exec_ext in '' $ac_executable_extensions; do
6798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6799 ac_cv_prog_ac_ct_OTOOL="otool"
6800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6809 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6810 if test -n "$ac_ct_OTOOL"; then
6811 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6812 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
6814 { echo "$as_me:$LINENO: result: no" >&5
6815 echo "${ECHO_T}no" >&6; }
6818 if test "x$ac_ct_OTOOL" = x; then
6821 case $cross_compiling:$ac_tool_warned in
6823 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6824 whose name does not start with the host triplet. If you think this
6825 configuration is useful to you, please write to autoconf@gnu.org." >&5
6826 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6827 whose name does not start with the host triplet. If you think this
6828 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6829 ac_tool_warned=yes ;;
6834 OTOOL="$ac_cv_prog_OTOOL"
6837 if test -n "$ac_tool_prefix"; then
6838 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6839 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6842 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6843 echo $ECHO_N "(cached) $ECHO_C" >&6
6845 if test -n "$OTOOL64"; then
6846 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852 test -z "$as_dir" && as_dir=.
6853 for ac_exec_ext in '' $ac_executable_extensions; do
6854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6855 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6865 OTOOL64=$ac_cv_prog_OTOOL64
6866 if test -n "$OTOOL64"; then
6867 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
6868 echo "${ECHO_T}$OTOOL64" >&6; }
6870 { echo "$as_me:$LINENO: result: no" >&5
6871 echo "${ECHO_T}no" >&6; }
6876 if test -z "$ac_cv_prog_OTOOL64"; then
6877 ac_ct_OTOOL64=$OTOOL64
6878 # Extract the first word of "otool64", so it can be a program name with args.
6879 set dummy otool64; ac_word=$2
6880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6882 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 if test -n "$ac_ct_OTOOL64"; then
6886 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892 test -z "$as_dir" && as_dir=.
6893 for ac_exec_ext in '' $ac_executable_extensions; do
6894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6895 ac_cv_prog_ac_ct_OTOOL64="otool64"
6896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6905 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6906 if test -n "$ac_ct_OTOOL64"; then
6907 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6908 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6910 { echo "$as_me:$LINENO: result: no" >&5
6911 echo "${ECHO_T}no" >&6; }
6914 if test "x$ac_ct_OTOOL64" = x; then
6917 case $cross_compiling:$ac_tool_warned in
6919 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6920 whose name does not start with the host triplet. If you think this
6921 configuration is useful to you, please write to autoconf@gnu.org." >&5
6922 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6923 whose name does not start with the host triplet. If you think this
6924 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6925 ac_tool_warned=yes ;;
6927 OTOOL64=$ac_ct_OTOOL64
6930 OTOOL64="$ac_cv_prog_OTOOL64"
6959 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6960 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6961 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6962 echo $ECHO_N "(cached) $ECHO_C" >&6
6964 lt_cv_apple_cc_single_mod=no
6965 if test -z "${LT_MULTI_MODULE}"; then
6966 # By default we will add the -single_module flag. You can override
6967 # by either setting the environment variable LT_MULTI_MODULE
6968 # non-empty at configure time, or by adding -multi_module to the
6970 rm -rf libconftest.dylib*
6971 echo "int foo(void){return 1;}" > conftest.c
6972 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6973 -dynamiclib -Wl,-single_module conftest.c" >&5
6974 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6975 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6977 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6978 lt_cv_apple_cc_single_mod=yes
6980 cat conftest.err >&5
6982 rm -rf libconftest.dylib*
6986 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6987 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6988 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6989 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6990 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 lt_cv_ld_exported_symbols_list=no
6994 save_LDFLAGS=$LDFLAGS
6995 echo "_main" > conftest.sym
6996 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6997 cat >conftest.$ac_ext <<_ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7012 rm -f conftest.$ac_objext conftest$ac_exeext
7013 if { (ac_try="$ac_link"
7015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7016 *) ac_try_echo=$ac_try;;
7018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7019 (eval "$ac_link") 2>conftest.er1
7021 grep -v '^ *+' conftest.er1 >conftest.err
7023 cat conftest.err >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); } && {
7026 test -z "$ac_c_werror_flag" ||
7027 test ! -s conftest.err
7028 } && test -s conftest$ac_exeext &&
7029 $as_test_x conftest$ac_exeext; then
7030 lt_cv_ld_exported_symbols_list=yes
7032 echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.$ac_ext >&5
7035 lt_cv_ld_exported_symbols_list=no
7038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7039 conftest$ac_exeext conftest.$ac_ext
7040 LDFLAGS="$save_LDFLAGS"
7043 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7044 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7045 { echo "$as_me:$LINENO: checking for -force_load linker flag" >&5
7046 echo $ECHO_N "checking for -force_load linker flag... $ECHO_C" >&6; }
7047 if test "${lt_cv_ld_force_load+set}" = set; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 lt_cv_ld_force_load=no
7051 cat > conftest.c << _LT_EOF
7052 int forced_loaded() { return 2;}
7054 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7055 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7056 echo "$AR cru libconftest.a conftest.o" >&5
7057 $AR cru libconftest.a conftest.o 2>&5
7058 echo "$RANLIB libconftest.a" >&5
7059 $RANLIB libconftest.a 2>&5
7060 cat > conftest.c << _LT_EOF
7061 int main() { return 0;}
7063 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7064 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7066 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7067 lt_cv_ld_force_load=yes
7069 cat conftest.err >&5
7071 rm -f conftest.err libconftest.a conftest conftest.c
7072 rm -rf conftest.dSYM
7075 { echo "$as_me:$LINENO: result: $lt_cv_ld_force_load" >&5
7076 echo "${ECHO_T}$lt_cv_ld_force_load" >&6; }
7078 rhapsody* | darwin1.[012])
7079 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7081 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7082 darwin*) # darwin 5.x on
7083 # if running on 10.5 or later, the deployment target defaults
7084 # to the OS version, if on x86, and 10.4, the deployment
7085 # target defaults to 10.4. Don't you love it?
7086 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7087 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7088 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7090 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7092 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7096 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7097 _lt_dar_single_mod='$single_module'
7099 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7100 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7102 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7104 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7105 _lt_dsymutil='~$DSYMUTIL $lib || :'
7113 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7114 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7115 if test "${ac_cv_header_stdc+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7118 cat >conftest.$ac_ext <<_ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7137 rm -f conftest.$ac_objext
7138 if { (ac_try="$ac_compile"
7140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7141 *) ac_try_echo=$ac_try;;
7143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7144 (eval "$ac_compile") 2>conftest.er1
7146 grep -v '^ *+' conftest.er1 >conftest.err
7148 cat conftest.err >&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); } && {
7151 test -z "$ac_c_werror_flag" ||
7152 test ! -s conftest.err
7153 } && test -s conftest.$ac_objext; then
7154 ac_cv_header_stdc=yes
7156 echo "$as_me: failed program was:" >&5
7157 sed 's/^/| /' conftest.$ac_ext >&5
7159 ac_cv_header_stdc=no
7162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7164 if test $ac_cv_header_stdc = yes; then
7165 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7166 cat >conftest.$ac_ext <<_ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7176 $EGREP "memchr" >/dev/null 2>&1; then
7179 ac_cv_header_stdc=no
7185 if test $ac_cv_header_stdc = yes; then
7186 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7187 cat >conftest.$ac_ext <<_ACEOF
7190 cat confdefs.h >>conftest.$ac_ext
7191 cat >>conftest.$ac_ext <<_ACEOF
7192 /* end confdefs.h. */
7196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7197 $EGREP "free" >/dev/null 2>&1; then
7200 ac_cv_header_stdc=no
7206 if test $ac_cv_header_stdc = yes; then
7207 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7208 if test "$cross_compiling" = yes; then
7211 cat >conftest.$ac_ext <<_ACEOF
7214 cat confdefs.h >>conftest.$ac_ext
7215 cat >>conftest.$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7219 #if ((' ' & 0x0FF) == 0x020)
7220 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7221 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7223 # define ISLOWER(c) \
7224 (('a' <= (c) && (c) <= 'i') \
7225 || ('j' <= (c) && (c) <= 'r') \
7226 || ('s' <= (c) && (c) <= 'z'))
7227 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7230 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7235 for (i = 0; i < 256; i++)
7236 if (XOR (islower (i), ISLOWER (i))
7237 || toupper (i) != TOUPPER (i))
7242 rm -f conftest$ac_exeext
7243 if { (ac_try="$ac_link"
7245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7246 *) ac_try_echo=$ac_try;;
7248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7249 (eval "$ac_link") 2>&5
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7253 { (case "(($ac_try" in
7254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7255 *) ac_try_echo=$ac_try;;
7257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7258 (eval "$ac_try") 2>&5
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); }; }; then
7264 echo "$as_me: program exited with status $ac_status" >&5
7265 echo "$as_me: failed program was:" >&5
7266 sed 's/^/| /' conftest.$ac_ext >&5
7269 ac_cv_header_stdc=no
7271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7277 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7278 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7279 if test $ac_cv_header_stdc = yes; then
7281 cat >>confdefs.h <<\_ACEOF
7282 #define STDC_HEADERS 1
7287 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7297 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7298 inttypes.h stdint.h unistd.h
7300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7306 cat >conftest.$ac_ext <<_ACEOF
7309 cat confdefs.h >>conftest.$ac_ext
7310 cat >>conftest.$ac_ext <<_ACEOF
7311 /* end confdefs.h. */
7312 $ac_includes_default
7314 #include <$ac_header>
7316 rm -f conftest.$ac_objext
7317 if { (ac_try="$ac_compile"
7319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7320 *) ac_try_echo=$ac_try;;
7322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7323 (eval "$ac_compile") 2>conftest.er1
7325 grep -v '^ *+' conftest.er1 >conftest.err
7327 cat conftest.err >&5
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); } && {
7330 test -z "$ac_c_werror_flag" ||
7331 test ! -s conftest.err
7332 } && test -s conftest.$ac_objext; then
7333 eval "$as_ac_Header=yes"
7335 echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.$ac_ext >&5
7338 eval "$as_ac_Header=no"
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7343 ac_res=`eval echo '${'$as_ac_Header'}'`
7344 { echo "$as_me:$LINENO: result: $ac_res" >&5
7345 echo "${ECHO_T}$ac_res" >&6; }
7346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7347 cat >>confdefs.h <<_ACEOF
7348 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357 for ac_header in dlfcn.h
7359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 cat >conftest.$ac_ext <<_ACEOF
7368 cat confdefs.h >>conftest.$ac_ext
7369 cat >>conftest.$ac_ext <<_ACEOF
7370 /* end confdefs.h. */
7371 $ac_includes_default
7373 #include <$ac_header>
7375 rm -f conftest.$ac_objext
7376 if { (ac_try="$ac_compile"
7378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7379 *) ac_try_echo=$ac_try;;
7381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7382 (eval "$ac_compile") 2>conftest.er1
7384 grep -v '^ *+' conftest.er1 >conftest.err
7386 cat conftest.err >&5
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); } && {
7389 test -z "$ac_c_werror_flag" ||
7390 test ! -s conftest.err
7391 } && test -s conftest.$ac_objext; then
7392 eval "$as_ac_Header=yes"
7394 echo "$as_me: failed program was:" >&5
7395 sed 's/^/| /' conftest.$ac_ext >&5
7397 eval "$as_ac_Header=no"
7400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7402 ac_res=`eval echo '${'$as_ac_Header'}'`
7403 { echo "$as_me:$LINENO: result: $ac_res" >&5
7404 echo "${ECHO_T}$ac_res" >&6; }
7405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7406 cat >>confdefs.h <<_ACEOF
7407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7428 # Check whether --enable-shared was given.
7429 if test "${enable_shared+set}" = set; then
7430 enableval=$enable_shared; p=${PACKAGE-default}
7432 yes) enable_shared=yes ;;
7433 no) enable_shared=no ;;
7436 # Look at the argument we got. We use all the common list separators.
7437 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7438 for pkg in $enableval; do
7440 if test "X$pkg" = "X$p"; then
7461 # Check whether --with-pic was given.
7462 if test "${with_pic+set}" = set; then
7463 withval=$with_pic; pic_mode="$withval"
7469 test -z "$pic_mode" && pic_mode=default
7477 # Check whether --enable-fast-install was given.
7478 if test "${enable_fast_install+set}" = set; then
7479 enableval=$enable_fast_install; p=${PACKAGE-default}
7481 yes) enable_fast_install=yes ;;
7482 no) enable_fast_install=no ;;
7484 enable_fast_install=no
7485 # Look at the argument we got. We use all the common list separators.
7486 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7487 for pkg in $enableval; do
7489 if test "X$pkg" = "X$p"; then
7490 enable_fast_install=yes
7497 enable_fast_install=yes
7510 # This can be used to rebuild libtool when needed
7511 LIBTOOL_DEPS="$ltmain"
7513 # Always use our own libtool.
7514 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7541 test -z "$LN_S" && LN_S="ln -s"
7556 if test -n "${ZSH_VERSION+set}" ; then
7557 setopt NO_GLOB_SUBST
7560 { echo "$as_me:$LINENO: checking for objdir" >&5
7561 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7562 if test "${lt_cv_objdir+set}" = set; then
7563 echo $ECHO_N "(cached) $ECHO_C" >&6
7565 rm -f .libs 2>/dev/null
7566 mkdir .libs 2>/dev/null
7567 if test -d .libs; then
7570 # MS-DOS does not allow filenames that begin with a dot.
7573 rmdir .libs 2>/dev/null
7575 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7576 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7577 objdir=$lt_cv_objdir
7583 cat >>confdefs.h <<_ACEOF
7584 #define LT_OBJDIR "$lt_cv_objdir/"
7592 # AIX sometimes has problems with the GCC collect2 program. For some
7593 # reason, if we set the COLLECT_NAMES environment variable, the problems
7594 # vanish in a puff of smoke.
7595 if test "X${COLLECT_NAMES+set}" != Xset; then
7597 export COLLECT_NAMES
7604 can_build_shared=yes
7606 # All known linkers require a `.a' archive for static linking (except MSVC,
7607 # which needs '.lib').
7610 with_gnu_ld="$lt_cv_prog_gnu_ld"
7613 old_CFLAGS="$CFLAGS"
7615 # Set sane defaults for various variables
7616 test -z "$CC" && CC=cc
7617 test -z "$LTCC" && LTCC=$CC
7618 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7619 test -z "$LD" && LD=ld
7620 test -z "$ac_objext" && ac_objext=o
7622 for cc_temp in $compiler""; do
7624 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7625 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7630 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7633 # Only perform the check for file, if the check method requires it
7634 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7635 case $deplibs_check_method in
7637 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7638 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7639 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7640 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7641 echo $ECHO_N "(cached) $ECHO_C" >&6
7645 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7648 lt_save_MAGIC_CMD="$MAGIC_CMD"
7649 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7650 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7651 for ac_dir in $ac_dummy; do
7653 test -z "$ac_dir" && ac_dir=.
7654 if test -f $ac_dir/${ac_tool_prefix}file; then
7655 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7656 if test -n "$file_magic_test_file"; then
7657 case $deplibs_check_method in
7659 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7660 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7661 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7662 $EGREP "$file_magic_regex" > /dev/null; then
7667 *** Warning: the command libtool uses to detect shared libraries,
7668 *** $file_magic_cmd, produces output that libtool cannot recognize.
7669 *** The result is that libtool may fail to recognize shared libraries
7670 *** as such. This will affect the creation of libtool libraries that
7671 *** depend on shared libraries, but programs linked with such libtool
7672 *** libraries will work regardless of this problem. Nevertheless, you
7673 *** may want to report the problem to your system manager and/or to
7674 *** bug-libtool@gnu.org
7684 MAGIC_CMD="$lt_save_MAGIC_CMD"
7689 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7690 if test -n "$MAGIC_CMD"; then
7691 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7692 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7694 { echo "$as_me:$LINENO: result: no" >&5
7695 echo "${ECHO_T}no" >&6; }
7702 if test -z "$lt_cv_path_MAGIC_CMD"; then
7703 if test -n "$ac_tool_prefix"; then
7704 { echo "$as_me:$LINENO: checking for file" >&5
7705 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7706 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7711 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7714 lt_save_MAGIC_CMD="$MAGIC_CMD"
7715 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7716 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7717 for ac_dir in $ac_dummy; do
7719 test -z "$ac_dir" && ac_dir=.
7720 if test -f $ac_dir/file; then
7721 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7722 if test -n "$file_magic_test_file"; then
7723 case $deplibs_check_method in
7725 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7726 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7727 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7728 $EGREP "$file_magic_regex" > /dev/null; then
7733 *** Warning: the command libtool uses to detect shared libraries,
7734 *** $file_magic_cmd, produces output that libtool cannot recognize.
7735 *** The result is that libtool may fail to recognize shared libraries
7736 *** as such. This will affect the creation of libtool libraries that
7737 *** depend on shared libraries, but programs linked with such libtool
7738 *** libraries will work regardless of this problem. Nevertheless, you
7739 *** may want to report the problem to your system manager and/or to
7740 *** bug-libtool@gnu.org
7750 MAGIC_CMD="$lt_save_MAGIC_CMD"
7755 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7756 if test -n "$MAGIC_CMD"; then
7757 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7758 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7760 { echo "$as_me:$LINENO: result: no" >&5
7761 echo "${ECHO_T}no" >&6; }
7774 # Use C for the default configuration in the libtool script
7778 ac_cpp='$CPP $CPPFLAGS'
7779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7784 # Source file extension for C test sources.
7787 # Object file extension for compiled C test sources.
7791 # Code to be used in simple compile tests
7792 lt_simple_compile_test_code="int some_variable = 0;"
7794 # Code to be used in simple link tests
7795 lt_simple_link_test_code='int main(){return(0);}'
7803 # If no C compiler was specified, use CC.
7806 # If no C compiler flags were specified, use CFLAGS.
7807 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7809 # Allow CC to be a program name with arguments.
7812 # Save the default compiler, since it gets overwritten when the other
7813 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7814 compiler_DEFAULT=$CC
7816 # save warnings/boilerplate of simple test code
7817 ac_outfile=conftest.$ac_objext
7818 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7819 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7820 _lt_compiler_boilerplate=`cat conftest.err`
7823 ac_outfile=conftest.$ac_objext
7824 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7825 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7826 _lt_linker_boilerplate=`cat conftest.err`
7831 ## There is no encapsulation within the following macros, do not change
7832 ## the running order or otherwise move them around unless you know exactly
7833 ## what you are doing...
7834 if test -n "$compiler"; then
7836 lt_prog_compiler_no_builtin_flag=
7838 if test "$GCC" = yes; then
7839 case $cc_basename in
7841 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7843 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7846 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7847 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7848 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7849 echo $ECHO_N "(cached) $ECHO_C" >&6
7851 lt_cv_prog_compiler_rtti_exceptions=no
7852 ac_outfile=conftest.$ac_objext
7853 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7854 lt_compiler_flag="-fno-rtti -fno-exceptions"
7855 # Insert the option either (1) after the last *FLAGS variable, or
7856 # (2) before a word containing "conftest.", or (3) at the end.
7857 # Note that $ac_compile itself does not contain backslashes and begins
7858 # with a dollar sign (not a hyphen), so the echo should work correctly.
7859 # The option is referenced via a variable to avoid confusing sed.
7860 lt_compile=`echo "$ac_compile" | $SED \
7861 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7862 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7863 -e 's:$: $lt_compiler_flag:'`
7864 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7865 (eval "$lt_compile" 2>conftest.err)
7867 cat conftest.err >&5
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 if (exit $ac_status) && test -s "$ac_outfile"; then
7870 # The compiler can only warn and ignore the option if not recognized
7871 # So say no if there are warnings other than the usual output.
7872 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7874 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7875 lt_cv_prog_compiler_rtti_exceptions=yes
7881 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7882 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7884 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7885 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7897 lt_prog_compiler_wl=
7898 lt_prog_compiler_pic=
7899 lt_prog_compiler_static=
7901 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7902 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7904 if test "$GCC" = yes; then
7905 lt_prog_compiler_wl='-Wl,'
7906 lt_prog_compiler_static='-static'
7910 # All AIX code is PIC.
7911 if test "$host_cpu" = ia64; then
7912 # AIX 5 now supports IA64 processor
7913 lt_prog_compiler_static='-Bstatic'
7920 # see comment about AmigaOS4 .so support
7921 lt_prog_compiler_pic='-fPIC'
7924 # FIXME: we need at least 68020 code to build shared libraries, but
7925 # adding the `-m68020' flag to GCC prevents building anything better,
7927 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7932 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7933 # PIC is the default for these OSes.
7936 mingw* | cygwin* | pw32* | os2* | cegcc*)
7937 # This hack is so that the source file can tell whether it is being
7938 # built for inclusion in a dll (and should export symbols for example).
7939 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7940 # (--disable-auto-import) libraries
7941 lt_prog_compiler_pic='-DDLL_EXPORT'
7944 darwin* | rhapsody*)
7945 # PIC is the default on this platform
7946 # Common symbols not allowed in MH_DYLIB files
7947 lt_prog_compiler_pic='-fno-common'
7951 # PIC is the default for Haiku.
7952 # The "-static" flag exists, but is broken.
7953 lt_prog_compiler_static=
7957 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7958 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7959 # sets the default TLS model and affects inlining.
7965 lt_prog_compiler_pic='-fPIC'
7971 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7972 # Instead, we relocate shared libraries at runtime.
7976 # Just because we use GCC doesn't mean we suddenly get shared libraries
7977 # on systems that don't support them.
7978 lt_prog_compiler_can_build_shared=no
7983 # QNX uses GNU C++, but need to define -shared option too, otherwise
7985 lt_prog_compiler_pic='-fPIC -shared'
7989 if test -d /usr/nec; then
7990 lt_prog_compiler_pic=-Kconform_pic
7995 lt_prog_compiler_pic='-fPIC'
7999 case $cc_basename in
8000 nvcc*) # Cuda Compiler Driver 2.2
8001 lt_prog_compiler_wl='-Xlinker '
8002 lt_prog_compiler_pic='-Xcompiler -fPIC'
8006 # PORTME Check for flag to pass linker flags through the system compiler.
8009 lt_prog_compiler_wl='-Wl,'
8010 if test "$host_cpu" = ia64; then
8011 # AIX 5 now supports IA64 processor
8012 lt_prog_compiler_static='-Bstatic'
8014 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8018 mingw* | cygwin* | pw32* | os2* | cegcc*)
8019 # This hack is so that the source file can tell whether it is being
8020 # built for inclusion in a dll (and should export symbols for example).
8021 lt_prog_compiler_pic='-DDLL_EXPORT'
8024 hpux9* | hpux10* | hpux11*)
8025 lt_prog_compiler_wl='-Wl,'
8026 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8033 lt_prog_compiler_pic='+Z'
8036 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8037 lt_prog_compiler_static='${wl}-a ${wl}archive'
8040 irix5* | irix6* | nonstopux*)
8041 lt_prog_compiler_wl='-Wl,'
8042 # PIC (with -KPIC) is the default.
8043 lt_prog_compiler_static='-non_shared'
8046 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8047 case $cc_basename in
8048 # old Intel for x86_64 which still supported -KPIC.
8050 lt_prog_compiler_wl='-Wl,'
8051 lt_prog_compiler_pic='-KPIC'
8052 lt_prog_compiler_static='-static'
8054 # icc used to be incompatible with GCC.
8055 # ICC 10 doesn't accept -KPIC any more.
8057 lt_prog_compiler_wl='-Wl,'
8058 lt_prog_compiler_pic='-fPIC'
8059 lt_prog_compiler_static='-static'
8061 # Lahey Fortran 8.1.
8063 lt_prog_compiler_wl='-Wl,'
8064 lt_prog_compiler_pic='--shared'
8065 lt_prog_compiler_static='--static'
8067 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8068 # Portland Group compilers (*not* the Pentium gcc compiler,
8069 # which looks to be a dead project)
8070 lt_prog_compiler_wl='-Wl,'
8071 lt_prog_compiler_pic='-fpic'
8072 lt_prog_compiler_static='-Bstatic'
8075 lt_prog_compiler_wl='-Wl,'
8076 # All Alpha code is PIC.
8077 lt_prog_compiler_static='-non_shared'
8079 xl* | bgxl* | bgf* | mpixl*)
8080 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8081 lt_prog_compiler_wl='-Wl,'
8082 lt_prog_compiler_pic='-qpic'
8083 lt_prog_compiler_static='-qstaticlink'
8086 case `$CC -V 2>&1 | sed 5q` in
8087 *Sun\ F* | *Sun*Fortran*)
8088 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8089 lt_prog_compiler_pic='-KPIC'
8090 lt_prog_compiler_static='-Bstatic'
8091 lt_prog_compiler_wl=''
8095 lt_prog_compiler_pic='-KPIC'
8096 lt_prog_compiler_static='-Bstatic'
8097 lt_prog_compiler_wl='-Wl,'
8105 lt_prog_compiler_pic='-KPIC'
8106 lt_prog_compiler_static='-Bstatic'
8110 # QNX uses GNU C++, but need to define -shared option too, otherwise
8112 lt_prog_compiler_pic='-fPIC -shared'
8115 osf3* | osf4* | osf5*)
8116 lt_prog_compiler_wl='-Wl,'
8117 # All OSF/1 code is PIC.
8118 lt_prog_compiler_static='-non_shared'
8122 lt_prog_compiler_static='-non_shared'
8126 lt_prog_compiler_pic='-KPIC'
8127 lt_prog_compiler_static='-Bstatic'
8128 case $cc_basename in
8129 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8130 lt_prog_compiler_wl='-Qoption ld ';;
8132 lt_prog_compiler_wl='-Wl,';;
8137 lt_prog_compiler_wl='-Qoption ld '
8138 lt_prog_compiler_pic='-PIC'
8139 lt_prog_compiler_static='-Bstatic'
8142 sysv4 | sysv4.2uw2* | sysv4.3*)
8143 lt_prog_compiler_wl='-Wl,'
8144 lt_prog_compiler_pic='-KPIC'
8145 lt_prog_compiler_static='-Bstatic'
8149 if test -d /usr/nec ;then
8150 lt_prog_compiler_pic='-Kconform_pic'
8151 lt_prog_compiler_static='-Bstatic'
8155 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8156 lt_prog_compiler_wl='-Wl,'
8157 lt_prog_compiler_pic='-KPIC'
8158 lt_prog_compiler_static='-Bstatic'
8162 lt_prog_compiler_wl='-Wl,'
8163 lt_prog_compiler_can_build_shared=no
8167 lt_prog_compiler_pic='-pic'
8168 lt_prog_compiler_static='-Bstatic'
8172 lt_prog_compiler_can_build_shared=no
8178 # For platforms which do not support PIC, -DPIC is meaningless:
8180 lt_prog_compiler_pic=
8183 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8186 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8187 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8195 # Check to make sure the PIC flag actually works.
8197 if test -n "$lt_prog_compiler_pic"; then
8198 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8199 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8200 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8201 echo $ECHO_N "(cached) $ECHO_C" >&6
8203 lt_cv_prog_compiler_pic_works=no
8204 ac_outfile=conftest.$ac_objext
8205 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8206 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8207 # Insert the option either (1) after the last *FLAGS variable, or
8208 # (2) before a word containing "conftest.", or (3) at the end.
8209 # Note that $ac_compile itself does not contain backslashes and begins
8210 # with a dollar sign (not a hyphen), so the echo should work correctly.
8211 # The option is referenced via a variable to avoid confusing sed.
8212 lt_compile=`echo "$ac_compile" | $SED \
8213 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8215 -e 's:$: $lt_compiler_flag:'`
8216 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8217 (eval "$lt_compile" 2>conftest.err)
8219 cat conftest.err >&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 if (exit $ac_status) && test -s "$ac_outfile"; then
8222 # The compiler can only warn and ignore the option if not recognized
8223 # So say no if there are warnings other than the usual output.
8224 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8225 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8226 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8227 lt_cv_prog_compiler_pic_works=yes
8233 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8234 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8236 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8237 case $lt_prog_compiler_pic in
8239 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8242 lt_prog_compiler_pic=
8243 lt_prog_compiler_can_build_shared=no
8254 # Check to make sure the static flag actually works.
8256 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8257 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8258 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8259 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
8262 lt_cv_prog_compiler_static_works=no
8263 save_LDFLAGS="$LDFLAGS"
8264 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8265 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8266 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8267 # The linker can only warn and ignore the option if not recognized
8268 # So say no if there are warnings
8269 if test -s conftest.err; then
8270 # Append any errors to the config.log.
8271 cat conftest.err 1>&5
8272 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8273 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8274 if diff conftest.exp conftest.er2 >/dev/null; then
8275 lt_cv_prog_compiler_static_works=yes
8278 lt_cv_prog_compiler_static_works=yes
8282 LDFLAGS="$save_LDFLAGS"
8285 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8286 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8288 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8291 lt_prog_compiler_static=
8300 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8301 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8302 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8303 echo $ECHO_N "(cached) $ECHO_C" >&6
8305 lt_cv_prog_compiler_c_o=no
8306 $RM -r conftest 2>/dev/null
8310 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8312 lt_compiler_flag="-o out/conftest2.$ac_objext"
8313 # Insert the option either (1) after the last *FLAGS variable, or
8314 # (2) before a word containing "conftest.", or (3) at the end.
8315 # Note that $ac_compile itself does not contain backslashes and begins
8316 # with a dollar sign (not a hyphen), so the echo should work correctly.
8317 lt_compile=`echo "$ac_compile" | $SED \
8318 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8319 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8320 -e 's:$: $lt_compiler_flag:'`
8321 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8322 (eval "$lt_compile" 2>out/conftest.err)
8324 cat out/conftest.err >&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8328 # The compiler can only warn and ignore the option if not recognized
8329 # So say no if there are warnings
8330 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8331 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8332 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8333 lt_cv_prog_compiler_c_o=yes
8338 # SGI C++ compiler will create directory out/ii_files/ for
8339 # template instantiation
8340 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8341 $RM out/* && rmdir out
8347 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8348 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8355 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8356 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8357 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
8360 lt_cv_prog_compiler_c_o=no
8361 $RM -r conftest 2>/dev/null
8365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8367 lt_compiler_flag="-o out/conftest2.$ac_objext"
8368 # Insert the option either (1) after the last *FLAGS variable, or
8369 # (2) before a word containing "conftest.", or (3) at the end.
8370 # Note that $ac_compile itself does not contain backslashes and begins
8371 # with a dollar sign (not a hyphen), so the echo should work correctly.
8372 lt_compile=`echo "$ac_compile" | $SED \
8373 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8375 -e 's:$: $lt_compiler_flag:'`
8376 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8377 (eval "$lt_compile" 2>out/conftest.err)
8379 cat out/conftest.err >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8383 # The compiler can only warn and ignore the option if not recognized
8384 # So say no if there are warnings
8385 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8386 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8387 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8388 lt_cv_prog_compiler_c_o=yes
8393 # SGI C++ compiler will create directory out/ii_files/ for
8394 # template instantiation
8395 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8396 $RM out/* && rmdir out
8402 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8403 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8408 hard_links="nottested"
8409 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8410 # do not overwrite the value of need_locks provided by the user
8411 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8412 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8415 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8417 ln conftest.a conftest.b 2>&5 || hard_links=no
8418 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8419 { echo "$as_me:$LINENO: result: $hard_links" >&5
8420 echo "${ECHO_T}$hard_links" >&6; }
8421 if test "$hard_links" = no; then
8422 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8423 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8435 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8436 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8439 allow_undefined_flag=
8440 always_export_symbols=no
8442 archive_expsym_cmds=
8443 compiler_needs_object=no
8444 enable_shared_with_static_runtimes=no
8445 export_dynamic_flag_spec=
8446 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8447 hardcode_automatic=no
8449 hardcode_direct_absolute=no
8450 hardcode_libdir_flag_spec=
8451 hardcode_libdir_flag_spec_ld=
8452 hardcode_libdir_separator=
8454 hardcode_shlibpath_var=unsupported
8456 link_all_deplibs=unknown
8459 old_archive_from_new_cmds=
8460 old_archive_from_expsyms_cmds=
8461 thread_safe_flag_spec=
8462 whole_archive_flag_spec=
8463 # include_expsyms should be a list of space-separated symbols to be *always*
8464 # included in the symbol list
8466 # exclude_expsyms can be an extended regexp of symbols to exclude
8467 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8468 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8469 # as well as any symbol that contains `d'.
8470 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8471 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8472 # platforms (ab)use it in PIC code, but their linkers get confused if
8473 # the symbol is explicitly referenced. Since portable code cannot
8474 # rely on this symbol name, it's probably fine to never include it in
8475 # preloaded symbol tables.
8476 # Exclude shared library initialization/finalization symbols.
8477 extract_expsyms_cmds=
8480 cygwin* | mingw* | pw32* | cegcc*)
8481 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8482 # When not using gcc, we currently assume that we are using
8483 # Microsoft Visual C++.
8484 if test "$GCC" != yes; then
8489 # we just hope/assume this is gcc and not c89 (= MSVC++)
8499 # On some targets, GNU ld is compatible enough with the native linker
8500 # that we're better off using the native interface for both.
8501 lt_use_gnu_ld_interface=no
8502 if test "$with_gnu_ld" = yes; then
8505 # The AIX port of GNU ld has always aspired to compatibility
8506 # with the native linker. However, as the warning in the GNU ld
8507 # block says, versions before 2.19.5* couldn't really create working
8508 # shared libraries, regardless of the interface used.
8509 case `$LD -v 2>&1` in
8510 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8511 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8512 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8514 lt_use_gnu_ld_interface=yes
8519 lt_use_gnu_ld_interface=yes
8524 if test "$lt_use_gnu_ld_interface" = yes; then
8525 # If archive_cmds runs LD, not CC, wlarc should be empty
8528 # Set some defaults for GNU ld with shared library support. These
8529 # are reset later if shared libraries are not supported. Putting them
8530 # here allows them to be overridden if necessary.
8531 runpath_var=LD_RUN_PATH
8532 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8533 export_dynamic_flag_spec='${wl}--export-dynamic'
8534 # ancient GNU ld didn't support --whole-archive et. al.
8535 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8536 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8538 whole_archive_flag_spec=
8540 supports_anon_versioning=no
8541 case `$LD -v 2>&1` in
8542 *GNU\ gold*) supports_anon_versioning=yes ;;
8543 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8544 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8545 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8546 *\ 2.11.*) ;; # other 2.11 versions
8547 *) supports_anon_versioning=yes ;;
8550 # See if GNU ld supports shared libraries.
8553 # On AIX/PPC, the GNU linker is very broken
8554 if test "$host_cpu" != ia64; then
8558 *** Warning: the GNU linker, at least up to release 2.19, is reported
8559 *** to be unable to reliably create shared libraries on AIX.
8560 *** Therefore, libtool is disabling shared libraries support. If you
8561 *** really care for shared libraries, you may want to install binutils
8562 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8563 *** You will then need to restart the configuration process.
8572 # see comment about AmigaOS4 .so support
8573 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8574 archive_expsym_cmds=''
8577 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)'
8578 hardcode_libdir_flag_spec='-L$libdir'
8579 hardcode_minus_L=yes
8585 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8586 allow_undefined_flag=unsupported
8587 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8588 # support --undefined. This deserves some investigation. FIXME
8589 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8595 cygwin* | mingw* | pw32* | cegcc*)
8596 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8597 # as there is no search path for DLLs.
8598 hardcode_libdir_flag_spec='-L$libdir'
8599 export_dynamic_flag_spec='${wl}--export-all-symbols'
8600 allow_undefined_flag=unsupported
8601 always_export_symbols=no
8602 enable_shared_with_static_runtimes=yes
8603 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8605 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8606 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8607 # If the export-symbols file already is a .def file (1st line
8608 # is EXPORTS), use it as is; otherwise, prepend...
8609 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8610 cp $export_symbols $output_objdir/$soname.def;
8612 echo EXPORTS > $output_objdir/$soname.def;
8613 cat $export_symbols >> $output_objdir/$soname.def;
8615 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8622 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8623 link_all_deplibs=yes
8628 hardcode_shlibpath_var=no
8629 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8630 export_dynamic_flag_spec='${wl}-E'
8631 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8632 # Instead, shared libraries are loaded at an image base (0x10000000 by
8633 # default) and relocated if they conflict, which is a slow very memory
8634 # consuming and fragmenting process. To avoid this, we pick a random,
8635 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8636 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8637 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8638 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'
8641 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8643 if test "$host_os" = linux-dietlibc; then
8644 case $cc_basename in
8645 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8648 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8649 && test "$tmp_diet" = no
8652 tmp_sharedflag='-shared'
8653 case $cc_basename,$host_cpu in
8654 pgcc*) # Portland Group C compiler
8655 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'
8656 tmp_addflag=' $pic_flag'
8658 pgf77* | pgf90* | pgf95* | pgfortran*)
8659 # Portland Group f77 and f90 compilers
8660 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'
8661 tmp_addflag=' $pic_flag -Mnomain' ;;
8662 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8663 tmp_addflag=' -i_dynamic' ;;
8664 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8665 tmp_addflag=' -i_dynamic -nofor_main' ;;
8666 ifc* | ifort*) # Intel Fortran compiler
8667 tmp_addflag=' -nofor_main' ;;
8668 lf95*) # Lahey Fortran 8.1
8669 whole_archive_flag_spec=
8670 tmp_sharedflag='--shared' ;;
8671 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8672 tmp_sharedflag='-qmkshrobj'
8674 nvcc*) # Cuda Compiler Driver 2.2
8675 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'
8676 compiler_needs_object=yes
8679 case `$CC -V 2>&1 | sed 5q` in
8680 *Sun\ C*) # Sun C 5.9
8681 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'
8682 compiler_needs_object=yes
8683 tmp_sharedflag='-G' ;;
8684 *Sun\ F*) # Sun Fortran 8.3
8685 tmp_sharedflag='-G' ;;
8687 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8689 if test "x$supports_anon_versioning" = xyes; then
8690 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8691 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8692 echo "local: *; };" >> $output_objdir/$libname.ver~
8693 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8696 case $cc_basename in
8697 xlf* | bgf* | bgxlf* | mpixlf*)
8698 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8699 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8700 hardcode_libdir_flag_spec=
8701 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8702 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8703 if test "x$supports_anon_versioning" = xyes; then
8704 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8705 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8706 echo "local: *; };" >> $output_objdir/$libname.ver~
8707 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8717 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8718 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8721 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8722 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8727 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8731 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8732 *** create shared libraries on Solaris systems. Therefore, libtool
8733 *** is disabling shared libraries support. We urge you to upgrade GNU
8734 *** binutils to release 2.9.1 or newer. Another option is to modify
8735 *** your PATH or compiler configuration so that the native linker is
8736 *** used, and then restart.
8739 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8741 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8747 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8748 case `$LD -v 2>&1` in
8749 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8753 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8754 *** reliably create shared libraries on SCO systems. Therefore, libtool
8755 *** is disabling shared libraries support. We urge you to upgrade GNU
8756 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8757 *** your PATH or compiler configuration so that the native linker is
8758 *** used, and then restart.
8763 # For security reasons, it is highly recommended that you always
8764 # use absolute paths for naming shared libraries, and exclude the
8765 # DT_RUNPATH tag from executables and libraries. But doing so
8766 # requires that you compile everything twice, which is a pain.
8767 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8768 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8770 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8779 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8782 hardcode_shlibpath_var=no
8786 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8787 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8788 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8795 if test "$ld_shlibs" = no; then
8797 hardcode_libdir_flag_spec=
8798 export_dynamic_flag_spec=
8799 whole_archive_flag_spec=
8802 # PORTME fill in a description of your system's linker (not GNU ld)
8805 allow_undefined_flag=unsupported
8806 always_export_symbols=yes
8807 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'
8808 # Note: this linker hardcodes the directories in LIBPATH if there
8809 # are no directories specified by -L.
8810 hardcode_minus_L=yes
8811 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8812 # Neither direct hardcoding nor static linking is supported with a
8814 hardcode_direct=unsupported
8819 if test "$host_cpu" = ia64; then
8820 # On IA64, the linker does run time linking by default, so we don't
8821 # have to do anything special.
8822 aix_use_runtimelinking=no
8823 exp_sym_flag='-Bexport'
8826 # If we're using GNU nm, then we don't want the "-C" option.
8827 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8828 # Also, AIX nm treats weak defined symbols like other global
8829 # defined symbols, whereas GNU nm marks them as "W".
8830 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8831 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'
8833 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'
8835 aix_use_runtimelinking=no
8837 # Test if we are trying to use run time linking or normal
8838 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8839 # need to do runtime linking.
8840 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8841 for ld_flag in $LDFLAGS; do
8842 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8843 aix_use_runtimelinking=yes
8850 exp_sym_flag='-bexport'
8851 no_entry_flag='-bnoentry'
8854 # When large executables or shared objects are built, AIX ld can
8855 # have problems creating the table of contents. If linking a library
8856 # or program results in "error TOC overflow" add -mminimal-toc to
8857 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8858 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8862 hardcode_direct_absolute=yes
8863 hardcode_libdir_separator=':'
8864 link_all_deplibs=yes
8865 file_list_spec='${wl}-f,'
8867 if test "$GCC" = yes; then
8868 case $host_os in aix4.[012]|aix4.[012].*)
8869 # We only want to do this on AIX 4.2 and lower, the check
8870 # below for broken collect2 doesn't work under 4.3+
8871 collect2name=`${CC} -print-prog-name=collect2`
8872 if test -f "$collect2name" &&
8873 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8875 # We have reworked collect2
8878 # We have old collect2
8879 hardcode_direct=unsupported
8880 # It fails to find uninstalled libraries when the uninstalled
8881 # path is not listed in the libpath. Setting hardcode_minus_L
8882 # to unsupported forces relinking
8883 hardcode_minus_L=yes
8884 hardcode_libdir_flag_spec='-L$libdir'
8885 hardcode_libdir_separator=
8889 shared_flag='-shared'
8890 if test "$aix_use_runtimelinking" = yes; then
8891 shared_flag="$shared_flag "'${wl}-G'
8895 if test "$host_cpu" = ia64; then
8896 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8897 # chokes on -Wl,-G. The following line is correct:
8900 if test "$aix_use_runtimelinking" = yes; then
8901 shared_flag='${wl}-G'
8903 shared_flag='${wl}-bM:SRE'
8908 export_dynamic_flag_spec='${wl}-bexpall'
8909 # It seems that -bexpall does not export symbols beginning with
8910 # underscore (_), so it is better to generate a list of symbols to export.
8911 always_export_symbols=yes
8912 if test "$aix_use_runtimelinking" = yes; then
8913 # Warning - without using the other runtime loading flags (-brtl),
8914 # -berok will link without error, but may produce a broken library.
8915 allow_undefined_flag='-berok'
8916 # Determine the default libpath from the value encoded in an
8918 cat >conftest.$ac_ext <<_ACEOF
8921 cat confdefs.h >>conftest.$ac_ext
8922 cat >>conftest.$ac_ext <<_ACEOF
8923 /* end confdefs.h. */
8933 rm -f conftest.$ac_objext conftest$ac_exeext
8934 if { (ac_try="$ac_link"
8936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8937 *) ac_try_echo=$ac_try;;
8939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8940 (eval "$ac_link") 2>conftest.er1
8942 grep -v '^ *+' conftest.er1 >conftest.err
8944 cat conftest.err >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); } && {
8947 test -z "$ac_c_werror_flag" ||
8948 test ! -s conftest.err
8949 } && test -s conftest$ac_exeext &&
8950 $as_test_x conftest$ac_exeext; then
8952 lt_aix_libpath_sed='
8953 /Import File Strings/,/^$/ {
8959 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8960 # Check for a 64-bit object if we didn't find anything.
8961 if test -z "$aix_libpath"; then
8962 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8965 echo "$as_me: failed program was:" >&5
8966 sed 's/^/| /' conftest.$ac_ext >&5
8971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8972 conftest$ac_exeext conftest.$ac_ext
8973 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8975 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8976 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"
8978 if test "$host_cpu" = ia64; then
8979 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8980 allow_undefined_flag="-z nodefs"
8981 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"
8983 # Determine the default libpath from the value encoded in an
8985 cat >conftest.$ac_ext <<_ACEOF
8988 cat confdefs.h >>conftest.$ac_ext
8989 cat >>conftest.$ac_ext <<_ACEOF
8990 /* end confdefs.h. */
9000 rm -f conftest.$ac_objext conftest$ac_exeext
9001 if { (ac_try="$ac_link"
9003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9004 *) ac_try_echo=$ac_try;;
9006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9007 (eval "$ac_link") 2>conftest.er1
9009 grep -v '^ *+' conftest.er1 >conftest.err
9011 cat conftest.err >&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); } && {
9014 test -z "$ac_c_werror_flag" ||
9015 test ! -s conftest.err
9016 } && test -s conftest$ac_exeext &&
9017 $as_test_x conftest$ac_exeext; then
9019 lt_aix_libpath_sed='
9020 /Import File Strings/,/^$/ {
9026 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9027 # Check for a 64-bit object if we didn't find anything.
9028 if test -z "$aix_libpath"; then
9029 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9032 echo "$as_me: failed program was:" >&5
9033 sed 's/^/| /' conftest.$ac_ext >&5
9038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9039 conftest$ac_exeext conftest.$ac_ext
9040 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9042 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9043 # Warning - without using the other run time loading flags,
9044 # -berok will link without error, but may produce a broken library.
9045 no_undefined_flag=' ${wl}-bernotok'
9046 allow_undefined_flag=' ${wl}-berok'
9047 if test "$with_gnu_ld" = yes; then
9048 # We only use this code for GNU lds that support --whole-archive.
9049 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9051 # Exported symbols can be pulled into shared objects from archives
9052 whole_archive_flag_spec='$convenience'
9054 archive_cmds_need_lc=yes
9055 # This is similar to how AIX traditionally builds its shared libraries.
9056 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'
9064 # see comment about AmigaOS4 .so support
9065 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9066 archive_expsym_cmds=''
9069 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)'
9070 hardcode_libdir_flag_spec='-L$libdir'
9071 hardcode_minus_L=yes
9077 export_dynamic_flag_spec=-rdynamic
9080 cygwin* | mingw* | pw32* | cegcc*)
9081 # When not using gcc, we currently assume that we are using
9082 # Microsoft Visual C++.
9083 # hardcode_libdir_flag_spec is actually meaningless, as there is
9084 # no search path for DLLs.
9085 hardcode_libdir_flag_spec=' '
9086 allow_undefined_flag=unsupported
9087 # Tell ltmain to make .lib files, not .a files.
9089 # Tell ltmain to make .dll files, not .so files.
9091 # FIXME: Setting linknames here is a bad hack.
9092 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9093 # The linker will automatically build a .lib file if we build a DLL.
9094 old_archive_from_new_cmds='true'
9095 # FIXME: Should let the user specify the lib program.
9096 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9097 fix_srcfile_path='`cygpath -w "$srcfile"`'
9098 enable_shared_with_static_runtimes=yes
9101 darwin* | rhapsody*)
9104 archive_cmds_need_lc=no
9106 hardcode_automatic=yes
9107 hardcode_shlibpath_var=unsupported
9108 if test "$lt_cv_ld_force_load" = "yes"; then
9109 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\"`'
9111 whole_archive_flag_spec=''
9113 link_all_deplibs=yes
9114 allow_undefined_flag="$_lt_dar_allow_undefined"
9115 case $cc_basename in
9116 ifort*) _lt_dar_can_shared=yes ;;
9117 *) _lt_dar_can_shared=$GCC ;;
9119 if test "$_lt_dar_can_shared" = "yes"; then
9120 output_verbose_link_cmd=func_echo_all
9121 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9122 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9123 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}"
9124 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}"
9133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9134 hardcode_libdir_flag_spec='-L$libdir'
9135 hardcode_shlibpath_var=no
9142 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9143 # support. Future versions do this automatically, but an explicit c++rt0.o
9144 # does not break anything, and helps significantly (at the cost of a little
9147 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9148 hardcode_libdir_flag_spec='-R$libdir'
9150 hardcode_shlibpath_var=no
9153 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9155 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9157 hardcode_minus_L=yes
9158 hardcode_shlibpath_var=no
9161 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9162 freebsd* | dragonfly*)
9163 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9164 hardcode_libdir_flag_spec='-R$libdir'
9166 hardcode_shlibpath_var=no
9170 if test "$GCC" = yes; then
9171 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'
9173 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'
9175 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9176 hardcode_libdir_separator=:
9179 # hardcode_minus_L: Not really in the search PATH,
9180 # but as the default location of the library.
9181 hardcode_minus_L=yes
9182 export_dynamic_flag_spec='${wl}-E'
9186 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9187 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9189 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9191 if test "$with_gnu_ld" = no; then
9192 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9193 hardcode_libdir_flag_spec_ld='+b $libdir'
9194 hardcode_libdir_separator=:
9196 hardcode_direct_absolute=yes
9197 export_dynamic_flag_spec='${wl}-E'
9198 # hardcode_minus_L: Not really in the search PATH,
9199 # but as the default location of the library.
9200 hardcode_minus_L=yes
9205 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9208 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9211 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9214 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9220 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9223 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9227 # Older versions of the 11.00 compiler do not understand -b yet
9228 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9229 { echo "$as_me:$LINENO: checking if $CC understands -b" >&5
9230 echo $ECHO_N "checking if $CC understands -b... $ECHO_C" >&6; }
9231 if test "${lt_cv_prog_compiler__b+set}" = set; then
9232 echo $ECHO_N "(cached) $ECHO_C" >&6
9234 lt_cv_prog_compiler__b=no
9235 save_LDFLAGS="$LDFLAGS"
9236 LDFLAGS="$LDFLAGS -b"
9237 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9238 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9239 # The linker can only warn and ignore the option if not recognized
9240 # So say no if there are warnings
9241 if test -s conftest.err; then
9242 # Append any errors to the config.log.
9243 cat conftest.err 1>&5
9244 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9245 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9246 if diff conftest.exp conftest.er2 >/dev/null; then
9247 lt_cv_prog_compiler__b=yes
9250 lt_cv_prog_compiler__b=yes
9254 LDFLAGS="$save_LDFLAGS"
9257 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler__b" >&5
9258 echo "${ECHO_T}$lt_cv_prog_compiler__b" >&6; }
9260 if test x"$lt_cv_prog_compiler__b" = xyes; then
9261 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9263 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9269 if test "$with_gnu_ld" = no; then
9270 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9271 hardcode_libdir_separator=:
9276 hardcode_shlibpath_var=no
9280 hardcode_direct_absolute=yes
9281 export_dynamic_flag_spec='${wl}-E'
9283 # hardcode_minus_L: Not really in the search PATH,
9284 # but as the default location of the library.
9285 hardcode_minus_L=yes
9291 irix5* | irix6* | nonstopux*)
9292 if test "$GCC" = yes; then
9293 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'
9294 # Try to use the -exported_symbol ld option, if it does not
9295 # work, assume that -exports_file does not work either and
9296 # implicitly export all symbols.
9297 save_LDFLAGS="$LDFLAGS"
9298 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9299 cat >conftest.$ac_ext <<_ACEOF
9302 rm -f conftest.$ac_objext conftest$ac_exeext
9303 if { (ac_try="$ac_link"
9305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9306 *) ac_try_echo=$ac_try;;
9308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9309 (eval "$ac_link") 2>conftest.er1
9311 grep -v '^ *+' conftest.er1 >conftest.err
9313 cat conftest.err >&5
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); } && {
9316 test -z "$ac_c_werror_flag" ||
9317 test ! -s conftest.err
9318 } && test -s conftest$ac_exeext &&
9319 $as_test_x conftest$ac_exeext; then
9320 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'
9323 echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.$ac_ext >&5
9329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9330 conftest$ac_exeext conftest.$ac_ext
9331 LDFLAGS="$save_LDFLAGS"
9333 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'
9334 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'
9336 archive_cmds_need_lc='no'
9337 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9338 hardcode_libdir_separator=:
9340 link_all_deplibs=yes
9344 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9347 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9349 hardcode_libdir_flag_spec='-R$libdir'
9351 hardcode_shlibpath_var=no
9355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9357 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9358 hardcode_libdir_separator=:
9359 hardcode_shlibpath_var=no
9366 if test -f /usr/libexec/ld.so; then
9368 hardcode_shlibpath_var=no
9369 hardcode_direct_absolute=yes
9370 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9371 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9372 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9373 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9374 export_dynamic_flag_spec='${wl}-E'
9377 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9378 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9379 hardcode_libdir_flag_spec='-R$libdir'
9382 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9383 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9393 hardcode_libdir_flag_spec='-L$libdir'
9394 hardcode_minus_L=yes
9395 allow_undefined_flag=unsupported
9396 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'
9397 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9401 if test "$GCC" = yes; then
9402 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9403 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'
9405 allow_undefined_flag=' -expect_unresolved \*'
9406 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'
9408 archive_cmds_need_lc='no'
9409 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9410 hardcode_libdir_separator=:
9413 osf4* | osf5*) # as osf3* with the addition of -msym flag
9414 if test "$GCC" = yes; then
9415 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9416 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'
9417 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9419 allow_undefined_flag=' -expect_unresolved \*'
9420 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'
9421 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~
9422 $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'
9424 # Both c and cxx compiler support -rpath directly
9425 hardcode_libdir_flag_spec='-rpath $libdir'
9427 archive_cmds_need_lc='no'
9428 hardcode_libdir_separator=:
9432 no_undefined_flag=' -z defs'
9433 if test "$GCC" = yes; then
9435 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9436 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9437 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9439 case `$CC -V 2>&1` in
9442 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9443 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9444 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9448 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9449 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9450 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9454 hardcode_libdir_flag_spec='-R$libdir'
9455 hardcode_shlibpath_var=no
9457 solaris2.[0-5] | solaris2.[0-5].*) ;;
9459 # The compiler driver will combine and reorder linker options,
9460 # but understands `-z linker_flag'. GCC discards it without `$wl',
9461 # but is careful enough not to reorder.
9462 # Supported since Solaris 2.6 (maybe 2.5.1?)
9463 if test "$GCC" = yes; then
9464 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9466 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9470 link_all_deplibs=yes
9474 if test "x$host_vendor" = xsequent; then
9475 # Use $CC to link under sequent, because it throws in some extra .o
9476 # files that make .init and .fini sections work.
9477 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9479 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9481 hardcode_libdir_flag_spec='-L$libdir'
9483 hardcode_minus_L=yes
9484 hardcode_shlibpath_var=no
9488 case $host_vendor in
9490 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9491 hardcode_direct=yes # is this really true???
9494 ## LD is ld it makes a PLAMLIB
9495 ## CC just makes a GrossModule.
9496 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9497 reload_cmds='$CC -r -o $output$reload_objs'
9501 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9502 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9505 runpath_var='LD_RUN_PATH'
9506 hardcode_shlibpath_var=no
9510 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9511 hardcode_shlibpath_var=no
9512 export_dynamic_flag_spec='-Bexport'
9516 if test -d /usr/nec; then
9517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9518 hardcode_shlibpath_var=no
9519 runpath_var=LD_RUN_PATH
9520 hardcode_runpath_var=yes
9525 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9526 no_undefined_flag='${wl}-z,text'
9527 archive_cmds_need_lc=no
9528 hardcode_shlibpath_var=no
9529 runpath_var='LD_RUN_PATH'
9531 if test "$GCC" = yes; then
9532 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9533 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9535 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9536 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9540 sysv5* | sco3.2v5* | sco5v6*)
9541 # Note: We can NOT use -z defs as we might desire, because we do not
9542 # link with -lc, and that would cause any symbols used from libc to
9543 # always be unresolved, which means just about no library would
9544 # ever link correctly. If we're not using GNU ld we use -z text
9545 # though, which does catch some bad symbols but isn't as heavy-handed
9547 no_undefined_flag='${wl}-z,text'
9548 allow_undefined_flag='${wl}-z,nodefs'
9549 archive_cmds_need_lc=no
9550 hardcode_shlibpath_var=no
9551 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9552 hardcode_libdir_separator=':'
9553 link_all_deplibs=yes
9554 export_dynamic_flag_spec='${wl}-Bexport'
9555 runpath_var='LD_RUN_PATH'
9557 if test "$GCC" = yes; then
9558 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9559 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9561 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9562 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9567 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9568 hardcode_libdir_flag_spec='-L$libdir'
9569 hardcode_shlibpath_var=no
9577 if test x$host_vendor = xsni; then
9579 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9580 export_dynamic_flag_spec='${wl}-Blargedynsym'
9586 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9587 echo "${ECHO_T}$ld_shlibs" >&6; }
9588 test "$ld_shlibs" = no && can_build_shared=no
9590 with_gnu_ld=$with_gnu_ld
9607 # Do we need to explicitly link libc?
9609 case "x$archive_cmds_need_lc" in
9611 # Assume -lc should be added
9612 archive_cmds_need_lc=yes
9614 if test "$enable_shared" = yes && test "$GCC" = yes; then
9615 case $archive_cmds in
9617 # FIXME: we may have to deal with multi-command sequences.
9620 # Test whether the compiler implicitly links with -lc since on some
9621 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9622 # to ld, don't add -lc before -lgcc.
9623 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9624 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9625 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9626 echo $ECHO_N "(cached) $ECHO_C" >&6
9629 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9632 (eval $ac_compile) 2>&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); } 2>conftest.err; then
9638 libobjs=conftest.$ac_objext
9640 wl=$lt_prog_compiler_wl
9641 pic_flag=$lt_prog_compiler_pic
9647 lt_save_allow_undefined_flag=$allow_undefined_flag
9648 allow_undefined_flag=
9649 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9650 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); }
9655 lt_cv_archive_cmds_need_lc=no
9657 lt_cv_archive_cmds_need_lc=yes
9659 allow_undefined_flag=$lt_save_allow_undefined_flag
9661 cat conftest.err 1>&5
9666 { echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9667 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6; }
9668 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9831 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9832 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9834 if test "$GCC" = yes; then
9836 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9837 *) lt_awk_arg="/^libraries:/" ;;
9840 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9841 *) lt_sed_strip_eq="s,=/,/,g" ;;
9843 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9844 case $lt_search_path_spec in
9846 # if the path contains ";" then we assume it to be the separator
9847 # otherwise default to the standard path separator (i.e. ":") - it is
9848 # assumed that no part of a normal pathname contains ";" but that should
9849 # okay in the real world where ";" in dirpaths is itself problematic.
9850 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9853 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9856 # Ok, now we have the path, separated by spaces, we can step through it
9857 # and add multilib dir if necessary.
9858 lt_tmp_lt_search_path_spec=
9859 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9860 for lt_sys_path in $lt_search_path_spec; do
9861 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9862 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9864 test -d "$lt_sys_path" && \
9865 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9868 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9869 BEGIN {RS=" "; FS="/|\n";} {
9872 for (lt_i = NF; lt_i > 0; lt_i--) {
9873 if ($lt_i != "" && $lt_i != ".") {
9874 if ($lt_i == "..") {
9877 if (lt_count == 0) {
9878 lt_foo="/" $lt_i lt_foo;
9885 if (lt_foo != "") { lt_freq[lt_foo]++; }
9886 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9888 # AWK program above erroneously prepends '/' to C:/dos/paths
9891 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9892 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9894 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9896 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9899 libname_spec='lib$name'
9907 shlibpath_overrides_runpath=unknown
9909 dynamic_linker="$host_os ld.so"
9910 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9911 need_lib_prefix=unknown
9912 hardcode_into_libs=no
9914 # when you set need_version to no, make sure it does not cause -set_version
9915 # flags to be left without arguments
9916 need_version=unknown
9921 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9922 shlibpath_var=LIBPATH
9924 # AIX 3 has no versioning support, so we append a major version to the name.
9925 soname_spec='${libname}${release}${shared_ext}$major'
9932 hardcode_into_libs=yes
9933 if test "$host_cpu" = ia64; then
9934 # AIX 5 supports IA64
9935 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9936 shlibpath_var=LD_LIBRARY_PATH
9938 # With GCC up to 2.95.x, collect2 would create an import file
9939 # for dependence libraries. The import file would start with
9940 # the line `#! .'. This would cause the generated library to
9941 # depend on `.', always an invalid library. This was fixed in
9942 # development snapshots of GCC prior to 3.0.
9944 aix4 | aix4.[01] | aix4.[01].*)
9945 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9947 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9954 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9955 # soname into executable. Probably we can add versioning support to
9956 # collect2, so additional links can be useful in future.
9957 if test "$aix_use_runtimelinking" = yes; then
9958 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9959 # instead of lib<name>.a to let people know that these are not
9960 # typical AIX shared libraries.
9961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9963 # We preserve .a as extension for shared libraries through AIX4.2
9964 # and later when we are not doing run time linking.
9965 library_names_spec='${libname}${release}.a $libname.a'
9966 soname_spec='${libname}${release}${shared_ext}$major'
9968 shlibpath_var=LIBPATH
9975 # Since July 2007 AmigaOS4 officially supports .so libraries.
9976 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9980 library_names_spec='$libname.ixlibrary $libname.a'
9981 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9982 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'
9988 library_names_spec='${libname}${shared_ext}'
9989 dynamic_linker="$host_os ld.so"
9990 shlibpath_var=LIBRARY_PATH
9996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9997 soname_spec='${libname}${release}${shared_ext}$major'
9998 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9999 shlibpath_var=LD_LIBRARY_PATH
10000 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10001 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10002 # the default ld.so.conf also contains /usr/contrib/lib and
10003 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10004 # libtool to hard-code these into programs
10007 cygwin* | mingw* | pw32* | cegcc*)
10008 version_type=windows
10013 case $GCC,$host_os in
10014 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10015 library_names_spec='$libname.dll.a'
10016 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10017 postinstall_cmds='base_file=`basename \${file}`~
10018 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10019 dldir=$destdir/`dirname \$dlpath`~
10020 test -d \$dldir || mkdir -p \$dldir~
10021 $install_prog $dir/$dlname \$dldir/$dlname~
10022 chmod a+x \$dldir/$dlname~
10023 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10024 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10026 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10027 dlpath=$dir/\$dldll~
10029 shlibpath_overrides_runpath=yes
10033 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10034 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10036 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10039 # MinGW DLLs use traditional 'lib' prefix
10040 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10043 # pw32 DLLs use 'pw' prefix rather than 'lib'
10044 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10050 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10053 dynamic_linker='Win32 ld.exe'
10054 # FIXME: first we should search . and the directory the executable is in
10058 darwin* | rhapsody*)
10059 dynamic_linker="$host_os dyld"
10060 version_type=darwin
10063 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10064 soname_spec='${libname}${release}${major}$shared_ext'
10065 shlibpath_overrides_runpath=yes
10066 shlibpath_var=DYLD_LIBRARY_PATH
10067 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10069 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10070 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10078 soname_spec='${libname}${release}${shared_ext}$major'
10079 shlibpath_var=LD_LIBRARY_PATH
10086 freebsd* | dragonfly*)
10087 # DragonFly does not have aout. When/if they implement a new
10088 # versioning mechanism, adjust this.
10089 if test -x /usr/bin/objformat; then
10090 objformat=`/usr/bin/objformat`
10093 freebsd[123]*) objformat=aout ;;
10094 *) objformat=elf ;;
10097 version_type=freebsd-$objformat
10098 case $version_type in
10100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10105 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10109 shlibpath_var=LD_LIBRARY_PATH
10112 shlibpath_overrides_runpath=yes
10114 freebsd3.[01]* | freebsdelf3.[01]*)
10115 shlibpath_overrides_runpath=yes
10116 hardcode_into_libs=yes
10118 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10119 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10120 shlibpath_overrides_runpath=no
10121 hardcode_into_libs=yes
10123 *) # from 4.6 on, and DragonFly
10124 shlibpath_overrides_runpath=yes
10125 hardcode_into_libs=yes
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10135 soname_spec='${libname}${release}${shared_ext}$major'
10136 shlibpath_var=LD_LIBRARY_PATH
10137 hardcode_into_libs=yes
10144 dynamic_linker="$host_os runtime_loader"
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10146 soname_spec='${libname}${release}${shared_ext}$major'
10147 shlibpath_var=LIBRARY_PATH
10148 shlibpath_overrides_runpath=yes
10149 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10150 hardcode_into_libs=yes
10153 hpux9* | hpux10* | hpux11*)
10154 # Give a soname corresponding to the major version so that dld.sl refuses to
10155 # link against other versions.
10162 hardcode_into_libs=yes
10163 dynamic_linker="$host_os dld.so"
10164 shlibpath_var=LD_LIBRARY_PATH
10165 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10167 soname_spec='${libname}${release}${shared_ext}$major'
10168 if test "X$HPUX_IA64_MODE" = X32; then
10169 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10171 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10173 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10177 hardcode_into_libs=yes
10178 dynamic_linker="$host_os dld.sl"
10179 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10180 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182 soname_spec='${libname}${release}${shared_ext}$major'
10183 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10184 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10188 dynamic_linker="$host_os dld.sl"
10189 shlibpath_var=SHLIB_PATH
10190 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10192 soname_spec='${libname}${release}${shared_ext}$major'
10195 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10196 postinstall_cmds='chmod 555 $lib'
10197 # or fails outright, so override atomically:
10198 install_override_mode=555
10205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10206 soname_spec='${libname}${release}${shared_ext}$major'
10207 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10208 shlibpath_var=LD_LIBRARY_PATH
10209 shlibpath_overrides_runpath=no
10210 hardcode_into_libs=yes
10213 irix5* | irix6* | nonstopux*)
10215 nonstopux*) version_type=nonstopux ;;
10217 if test "$lt_cv_prog_gnu_ld" = yes; then
10225 soname_spec='${libname}${release}${shared_ext}$major'
10226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10228 irix5* | nonstopux*)
10229 libsuff= shlibsuff=
10232 case $LD in # libtool.m4 will add one of these switches to LD
10233 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10234 libsuff= shlibsuff= libmagic=32-bit;;
10235 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10236 libsuff=32 shlibsuff=N32 libmagic=N32;;
10237 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10238 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10239 *) libsuff= shlibsuff= libmagic=never-match;;
10243 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10244 shlibpath_overrides_runpath=no
10245 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10246 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10247 hardcode_into_libs=yes
10250 # No shared lib support for Linux oldld, aout, or coff.
10251 linux*oldld* | linux*aout* | linux*coff*)
10255 # This must be Linux ELF.
10256 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10261 soname_spec='${libname}${release}${shared_ext}$major'
10262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10263 shlibpath_var=LD_LIBRARY_PATH
10264 shlibpath_overrides_runpath=no
10266 # Some binutils ld are patched to set DT_RUNPATH
10267 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10270 lt_cv_shlibpath_overrides_runpath=no
10271 save_LDFLAGS=$LDFLAGS
10272 save_libdir=$libdir
10273 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10274 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10275 cat >conftest.$ac_ext <<_ACEOF
10278 cat confdefs.h >>conftest.$ac_ext
10279 cat >>conftest.$ac_ext <<_ACEOF
10280 /* end confdefs.h. */
10290 rm -f conftest.$ac_objext conftest$ac_exeext
10291 if { (ac_try="$ac_link"
10292 case "(($ac_try" in
10293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10294 *) ac_try_echo=$ac_try;;
10296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10297 (eval "$ac_link") 2>conftest.er1
10299 grep -v '^ *+' conftest.er1 >conftest.err
10301 cat conftest.err >&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); } && {
10304 test -z "$ac_c_werror_flag" ||
10305 test ! -s conftest.err
10306 } && test -s conftest$ac_exeext &&
10307 $as_test_x conftest$ac_exeext; then
10308 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10309 lt_cv_shlibpath_overrides_runpath=yes
10313 echo "$as_me: failed program was:" >&5
10314 sed 's/^/| /' conftest.$ac_ext >&5
10319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10320 conftest$ac_exeext conftest.$ac_ext
10321 LDFLAGS=$save_LDFLAGS
10322 libdir=$save_libdir
10326 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10328 # This implies no fast_install, which is unacceptable.
10329 # Some rework will be needed to allow for fast_install
10330 # before this can be enabled.
10331 hardcode_into_libs=yes
10333 # Append ld.so.conf contents to the search path
10334 if test -f /etc/ld.so.conf; then
10335 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' ' '`
10336 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10339 # We used to test for /lib/ld.so.1 and disable shared libraries on
10340 # powerpc, because MkLinux only supported shared libraries with the
10341 # GNU dynamic linker. Since this was broken with cross compilers,
10342 # most powerpc-linux boxes support dynamic linking these days and
10343 # people can always --disable-shared, the test was removed, and we
10344 # assume the GNU/Linux dynamic linker is in use.
10345 dynamic_linker='GNU/Linux ld.so'
10352 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10355 dynamic_linker='NetBSD (a.out) ld.so'
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10358 soname_spec='${libname}${release}${shared_ext}$major'
10359 dynamic_linker='NetBSD ld.elf_so'
10361 shlibpath_var=LD_LIBRARY_PATH
10362 shlibpath_overrides_runpath=yes
10363 hardcode_into_libs=yes
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10369 shlibpath_var=LD_LIBRARY_PATH
10370 shlibpath_overrides_runpath=yes
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10378 soname_spec='${libname}${release}${shared_ext}$major'
10379 shlibpath_var=LD_LIBRARY_PATH
10380 shlibpath_overrides_runpath=no
10381 hardcode_into_libs=yes
10382 dynamic_linker='ldqnx.so'
10387 sys_lib_dlsearch_path_spec="/usr/lib"
10389 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10391 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10392 *) need_version=no ;;
10394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10395 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10396 shlibpath_var=LD_LIBRARY_PATH
10397 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10399 openbsd2.[89] | openbsd2.[89].*)
10400 shlibpath_overrides_runpath=no
10403 shlibpath_overrides_runpath=yes
10407 shlibpath_overrides_runpath=yes
10412 libname_spec='$name'
10415 library_names_spec='$libname${shared_ext} $libname.a'
10416 dynamic_linker='OS/2 ld.exe'
10417 shlibpath_var=LIBPATH
10420 osf3* | osf4* | osf5*)
10424 soname_spec='${libname}${release}${shared_ext}$major'
10425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10426 shlibpath_var=LD_LIBRARY_PATH
10427 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10428 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10440 soname_spec='${libname}${release}${shared_ext}$major'
10441 shlibpath_var=LD_LIBRARY_PATH
10442 shlibpath_overrides_runpath=yes
10443 hardcode_into_libs=yes
10444 # ldd complains unless libraries are executable
10445 postinstall_cmds='chmod +x $lib'
10450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10451 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10452 shlibpath_var=LD_LIBRARY_PATH
10453 shlibpath_overrides_runpath=yes
10454 if test "$with_gnu_ld" = yes; then
10462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10463 soname_spec='${libname}${release}${shared_ext}$major'
10464 shlibpath_var=LD_LIBRARY_PATH
10465 case $host_vendor in
10467 shlibpath_overrides_runpath=no
10469 runpath_var=LD_RUN_PATH
10477 shlibpath_overrides_runpath=no
10478 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10484 if test -d /usr/nec ;then
10486 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10487 soname_spec='$libname${shared_ext}.$major'
10488 shlibpath_var=LD_LIBRARY_PATH
10492 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10493 version_type=freebsd-elf
10496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10497 soname_spec='${libname}${release}${shared_ext}$major'
10498 shlibpath_var=LD_LIBRARY_PATH
10499 shlibpath_overrides_runpath=yes
10500 hardcode_into_libs=yes
10501 if test "$with_gnu_ld" = yes; then
10502 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10504 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10507 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10511 sys_lib_dlsearch_path_spec='/usr/lib'
10515 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10520 shlibpath_var=LD_LIBRARY_PATH
10521 shlibpath_overrides_runpath=no
10522 hardcode_into_libs=yes
10527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10528 soname_spec='${libname}${release}${shared_ext}$major'
10529 shlibpath_var=LD_LIBRARY_PATH
10536 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10537 echo "${ECHO_T}$dynamic_linker" >&6; }
10538 test "$dynamic_linker" = no && can_build_shared=no
10540 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10541 if test "$GCC" = yes; then
10542 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10545 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10546 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10548 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10549 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10643 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10644 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10646 if test -n "$hardcode_libdir_flag_spec" ||
10647 test -n "$runpath_var" ||
10648 test "X$hardcode_automatic" = "Xyes" ; then
10650 # We can hardcode non-existent directories.
10651 if test "$hardcode_direct" != no &&
10652 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10653 # have to relink, otherwise we might link with an installed library
10654 # when we should be linking with a yet-to-be-installed one
10655 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10656 test "$hardcode_minus_L" != no; then
10657 # Linking always hardcodes the temporary library directory.
10658 hardcode_action=relink
10660 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10661 hardcode_action=immediate
10664 # We cannot hardcode anything, or else we can only hardcode existing
10666 hardcode_action=unsupported
10668 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10669 echo "${ECHO_T}$hardcode_action" >&6; }
10671 if test "$hardcode_action" = relink ||
10672 test "$inherit_rpath" = yes; then
10673 # Fast installation is not supported
10674 enable_fast_install=no
10675 elif test "$shlibpath_overrides_runpath" = yes ||
10676 test "$enable_shared" = no; then
10677 # Fast installation is not necessary
10678 enable_fast_install=needless
10686 if test "x$enable_dlopen" != xyes; then
10687 enable_dlopen=unknown
10688 enable_dlopen_self=unknown
10689 enable_dlopen_self_static=unknown
10696 lt_cv_dlopen="load_add_on"
10698 lt_cv_dlopen_self=yes
10701 mingw* | pw32* | cegcc*)
10702 lt_cv_dlopen="LoadLibrary"
10707 lt_cv_dlopen="dlopen"
10712 # if libdl is installed we need to link against it
10713 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10714 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10715 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10716 echo $ECHO_N "(cached) $ECHO_C" >&6
10718 ac_check_lib_save_LIBS=$LIBS
10720 cat >conftest.$ac_ext <<_ACEOF
10723 cat confdefs.h >>conftest.$ac_ext
10724 cat >>conftest.$ac_ext <<_ACEOF
10725 /* end confdefs.h. */
10727 /* Override any GCC internal prototype to avoid an error.
10728 Use char because int might match the return type of a GCC
10729 builtin and then its argument prototype would still apply. */
10742 rm -f conftest.$ac_objext conftest$ac_exeext
10743 if { (ac_try="$ac_link"
10744 case "(($ac_try" in
10745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10746 *) ac_try_echo=$ac_try;;
10748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10749 (eval "$ac_link") 2>conftest.er1
10751 grep -v '^ *+' conftest.er1 >conftest.err
10753 cat conftest.err >&5
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); } && {
10756 test -z "$ac_c_werror_flag" ||
10757 test ! -s conftest.err
10758 } && test -s conftest$ac_exeext &&
10759 $as_test_x conftest$ac_exeext; then
10760 ac_cv_lib_dl_dlopen=yes
10762 echo "$as_me: failed program was:" >&5
10763 sed 's/^/| /' conftest.$ac_ext >&5
10765 ac_cv_lib_dl_dlopen=no
10768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10769 conftest$ac_exeext conftest.$ac_ext
10770 LIBS=$ac_check_lib_save_LIBS
10772 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10773 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10774 if test $ac_cv_lib_dl_dlopen = yes; then
10775 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10778 lt_cv_dlopen="dyld"
10780 lt_cv_dlopen_self=yes
10787 { echo "$as_me:$LINENO: checking for shl_load" >&5
10788 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10789 if test "${ac_cv_func_shl_load+set}" = set; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10792 cat >conftest.$ac_ext <<_ACEOF
10795 cat confdefs.h >>conftest.$ac_ext
10796 cat >>conftest.$ac_ext <<_ACEOF
10797 /* end confdefs.h. */
10798 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10800 #define shl_load innocuous_shl_load
10802 /* System header to define __stub macros and hopefully few prototypes,
10803 which can conflict with char shl_load (); below.
10804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10805 <limits.h> exists even on freestanding compilers. */
10808 # include <limits.h>
10810 # include <assert.h>
10815 /* Override any GCC internal prototype to avoid an error.
10816 Use char because int might match the return type of a GCC
10817 builtin and then its argument prototype would still apply. */
10822 /* The GNU C library defines this for functions which it implements
10823 to always fail with ENOSYS. Some functions are actually named
10824 something starting with __ and the normal name is an alias. */
10825 #if defined __stub_shl_load || defined __stub___shl_load
10832 return shl_load ();
10837 rm -f conftest.$ac_objext conftest$ac_exeext
10838 if { (ac_try="$ac_link"
10839 case "(($ac_try" in
10840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10841 *) ac_try_echo=$ac_try;;
10843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10844 (eval "$ac_link") 2>conftest.er1
10846 grep -v '^ *+' conftest.er1 >conftest.err
10848 cat conftest.err >&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); } && {
10851 test -z "$ac_c_werror_flag" ||
10852 test ! -s conftest.err
10853 } && test -s conftest$ac_exeext &&
10854 $as_test_x conftest$ac_exeext; then
10855 ac_cv_func_shl_load=yes
10857 echo "$as_me: failed program was:" >&5
10858 sed 's/^/| /' conftest.$ac_ext >&5
10860 ac_cv_func_shl_load=no
10863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10864 conftest$ac_exeext conftest.$ac_ext
10866 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10867 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10868 if test $ac_cv_func_shl_load = yes; then
10869 lt_cv_dlopen="shl_load"
10871 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10872 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10873 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
10876 ac_check_lib_save_LIBS=$LIBS
10878 cat >conftest.$ac_ext <<_ACEOF
10881 cat confdefs.h >>conftest.$ac_ext
10882 cat >>conftest.$ac_ext <<_ACEOF
10883 /* end confdefs.h. */
10885 /* Override any GCC internal prototype to avoid an error.
10886 Use char because int might match the return type of a GCC
10887 builtin and then its argument prototype would still apply. */
10895 return shl_load ();
10900 rm -f conftest.$ac_objext conftest$ac_exeext
10901 if { (ac_try="$ac_link"
10902 case "(($ac_try" in
10903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904 *) ac_try_echo=$ac_try;;
10906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10907 (eval "$ac_link") 2>conftest.er1
10909 grep -v '^ *+' conftest.er1 >conftest.err
10911 cat conftest.err >&5
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); } && {
10914 test -z "$ac_c_werror_flag" ||
10915 test ! -s conftest.err
10916 } && test -s conftest$ac_exeext &&
10917 $as_test_x conftest$ac_exeext; then
10918 ac_cv_lib_dld_shl_load=yes
10920 echo "$as_me: failed program was:" >&5
10921 sed 's/^/| /' conftest.$ac_ext >&5
10923 ac_cv_lib_dld_shl_load=no
10926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10927 conftest$ac_exeext conftest.$ac_ext
10928 LIBS=$ac_check_lib_save_LIBS
10930 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10931 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10932 if test $ac_cv_lib_dld_shl_load = yes; then
10933 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10935 { echo "$as_me:$LINENO: checking for dlopen" >&5
10936 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10937 if test "${ac_cv_func_dlopen+set}" = set; then
10938 echo $ECHO_N "(cached) $ECHO_C" >&6
10940 cat >conftest.$ac_ext <<_ACEOF
10943 cat confdefs.h >>conftest.$ac_ext
10944 cat >>conftest.$ac_ext <<_ACEOF
10945 /* end confdefs.h. */
10946 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10948 #define dlopen innocuous_dlopen
10950 /* System header to define __stub macros and hopefully few prototypes,
10951 which can conflict with char dlopen (); below.
10952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10953 <limits.h> exists even on freestanding compilers. */
10956 # include <limits.h>
10958 # include <assert.h>
10963 /* Override any GCC internal prototype to avoid an error.
10964 Use char because int might match the return type of a GCC
10965 builtin and then its argument prototype would still apply. */
10970 /* The GNU C library defines this for functions which it implements
10971 to always fail with ENOSYS. Some functions are actually named
10972 something starting with __ and the normal name is an alias. */
10973 #if defined __stub_dlopen || defined __stub___dlopen
10985 rm -f conftest.$ac_objext conftest$ac_exeext
10986 if { (ac_try="$ac_link"
10987 case "(($ac_try" in
10988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989 *) ac_try_echo=$ac_try;;
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992 (eval "$ac_link") 2>conftest.er1
10994 grep -v '^ *+' conftest.er1 >conftest.err
10996 cat conftest.err >&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } && {
10999 test -z "$ac_c_werror_flag" ||
11000 test ! -s conftest.err
11001 } && test -s conftest$ac_exeext &&
11002 $as_test_x conftest$ac_exeext; then
11003 ac_cv_func_dlopen=yes
11005 echo "$as_me: failed program was:" >&5
11006 sed 's/^/| /' conftest.$ac_ext >&5
11008 ac_cv_func_dlopen=no
11011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11012 conftest$ac_exeext conftest.$ac_ext
11014 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11015 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11016 if test $ac_cv_func_dlopen = yes; then
11017 lt_cv_dlopen="dlopen"
11019 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11020 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11021 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11022 echo $ECHO_N "(cached) $ECHO_C" >&6
11024 ac_check_lib_save_LIBS=$LIBS
11026 cat >conftest.$ac_ext <<_ACEOF
11029 cat confdefs.h >>conftest.$ac_ext
11030 cat >>conftest.$ac_ext <<_ACEOF
11031 /* end confdefs.h. */
11033 /* Override any GCC internal prototype to avoid an error.
11034 Use char because int might match the return type of a GCC
11035 builtin and then its argument prototype would still apply. */
11048 rm -f conftest.$ac_objext conftest$ac_exeext
11049 if { (ac_try="$ac_link"
11050 case "(($ac_try" in
11051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052 *) ac_try_echo=$ac_try;;
11054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11055 (eval "$ac_link") 2>conftest.er1
11057 grep -v '^ *+' conftest.er1 >conftest.err
11059 cat conftest.err >&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); } && {
11062 test -z "$ac_c_werror_flag" ||
11063 test ! -s conftest.err
11064 } && test -s conftest$ac_exeext &&
11065 $as_test_x conftest$ac_exeext; then
11066 ac_cv_lib_dl_dlopen=yes
11068 echo "$as_me: failed program was:" >&5
11069 sed 's/^/| /' conftest.$ac_ext >&5
11071 ac_cv_lib_dl_dlopen=no
11074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11075 conftest$ac_exeext conftest.$ac_ext
11076 LIBS=$ac_check_lib_save_LIBS
11078 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11079 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11080 if test $ac_cv_lib_dl_dlopen = yes; then
11081 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11083 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11084 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11085 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11086 echo $ECHO_N "(cached) $ECHO_C" >&6
11088 ac_check_lib_save_LIBS=$LIBS
11089 LIBS="-lsvld $LIBS"
11090 cat >conftest.$ac_ext <<_ACEOF
11093 cat confdefs.h >>conftest.$ac_ext
11094 cat >>conftest.$ac_ext <<_ACEOF
11095 /* end confdefs.h. */
11097 /* Override any GCC internal prototype to avoid an error.
11098 Use char because int might match the return type of a GCC
11099 builtin and then its argument prototype would still apply. */
11112 rm -f conftest.$ac_objext conftest$ac_exeext
11113 if { (ac_try="$ac_link"
11114 case "(($ac_try" in
11115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116 *) ac_try_echo=$ac_try;;
11118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119 (eval "$ac_link") 2>conftest.er1
11121 grep -v '^ *+' conftest.er1 >conftest.err
11123 cat conftest.err >&5
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); } && {
11126 test -z "$ac_c_werror_flag" ||
11127 test ! -s conftest.err
11128 } && test -s conftest$ac_exeext &&
11129 $as_test_x conftest$ac_exeext; then
11130 ac_cv_lib_svld_dlopen=yes
11132 echo "$as_me: failed program was:" >&5
11133 sed 's/^/| /' conftest.$ac_ext >&5
11135 ac_cv_lib_svld_dlopen=no
11138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11139 conftest$ac_exeext conftest.$ac_ext
11140 LIBS=$ac_check_lib_save_LIBS
11142 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11143 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11144 if test $ac_cv_lib_svld_dlopen = yes; then
11145 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11147 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11148 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11149 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
11152 ac_check_lib_save_LIBS=$LIBS
11154 cat >conftest.$ac_ext <<_ACEOF
11157 cat confdefs.h >>conftest.$ac_ext
11158 cat >>conftest.$ac_ext <<_ACEOF
11159 /* end confdefs.h. */
11161 /* Override any GCC internal prototype to avoid an error.
11162 Use char because int might match the return type of a GCC
11163 builtin and then its argument prototype would still apply. */
11171 return dld_link ();
11176 rm -f conftest.$ac_objext conftest$ac_exeext
11177 if { (ac_try="$ac_link"
11178 case "(($ac_try" in
11179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180 *) ac_try_echo=$ac_try;;
11182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183 (eval "$ac_link") 2>conftest.er1
11185 grep -v '^ *+' conftest.er1 >conftest.err
11187 cat conftest.err >&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } && {
11190 test -z "$ac_c_werror_flag" ||
11191 test ! -s conftest.err
11192 } && test -s conftest$ac_exeext &&
11193 $as_test_x conftest$ac_exeext; then
11194 ac_cv_lib_dld_dld_link=yes
11196 echo "$as_me: failed program was:" >&5
11197 sed 's/^/| /' conftest.$ac_ext >&5
11199 ac_cv_lib_dld_dld_link=no
11202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11203 conftest$ac_exeext conftest.$ac_ext
11204 LIBS=$ac_check_lib_save_LIBS
11206 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11207 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11208 if test $ac_cv_lib_dld_dld_link = yes; then
11209 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11230 if test "x$lt_cv_dlopen" != xno; then
11236 case $lt_cv_dlopen in
11238 save_CPPFLAGS="$CPPFLAGS"
11239 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11241 save_LDFLAGS="$LDFLAGS"
11242 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11245 LIBS="$lt_cv_dlopen_libs $LIBS"
11247 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11248 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11249 if test "${lt_cv_dlopen_self+set}" = set; then
11250 echo $ECHO_N "(cached) $ECHO_C" >&6
11252 if test "$cross_compiling" = yes; then :
11253 lt_cv_dlopen_self=cross
11255 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11256 lt_status=$lt_dlunknown
11257 cat > conftest.$ac_ext <<_LT_EOF
11258 #line $LINENO "configure"
11259 #include "confdefs.h"
11268 # define LT_DLGLOBAL RTLD_GLOBAL
11271 # define LT_DLGLOBAL DL_GLOBAL
11273 # define LT_DLGLOBAL 0
11277 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11278 find out it does not work in some platform. */
11279 #ifndef LT_DLLAZY_OR_NOW
11281 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11284 # define LT_DLLAZY_OR_NOW DL_LAZY
11287 # define LT_DLLAZY_OR_NOW RTLD_NOW
11290 # define LT_DLLAZY_OR_NOW DL_NOW
11292 # define LT_DLLAZY_OR_NOW 0
11299 /* When -fvisbility=hidden is used, assume the code has been annotated
11300 correspondingly for the symbols needed. */
11301 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11302 void fnord () __attribute__((visibility("default")));
11305 void fnord () { int i=42; }
11308 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11309 int status = $lt_dlunknown;
11313 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11316 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11317 else puts (dlerror ());
11319 /* dlclose (self); */
11327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11328 (eval $ac_link) 2>&5
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11332 (./conftest; exit; ) >&5 2>/dev/null
11334 case x$lt_status in
11335 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11336 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11337 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11340 # compilation failed
11341 lt_cv_dlopen_self=no
11348 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11349 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11351 if test "x$lt_cv_dlopen_self" = xyes; then
11352 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11353 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11354 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11355 if test "${lt_cv_dlopen_self_static+set}" = set; then
11356 echo $ECHO_N "(cached) $ECHO_C" >&6
11358 if test "$cross_compiling" = yes; then :
11359 lt_cv_dlopen_self_static=cross
11361 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11362 lt_status=$lt_dlunknown
11363 cat > conftest.$ac_ext <<_LT_EOF
11364 #line $LINENO "configure"
11365 #include "confdefs.h"
11374 # define LT_DLGLOBAL RTLD_GLOBAL
11377 # define LT_DLGLOBAL DL_GLOBAL
11379 # define LT_DLGLOBAL 0
11383 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11384 find out it does not work in some platform. */
11385 #ifndef LT_DLLAZY_OR_NOW
11387 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11390 # define LT_DLLAZY_OR_NOW DL_LAZY
11393 # define LT_DLLAZY_OR_NOW RTLD_NOW
11396 # define LT_DLLAZY_OR_NOW DL_NOW
11398 # define LT_DLLAZY_OR_NOW 0
11405 /* When -fvisbility=hidden is used, assume the code has been annotated
11406 correspondingly for the symbols needed. */
11407 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11408 void fnord () __attribute__((visibility("default")));
11411 void fnord () { int i=42; }
11414 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11415 int status = $lt_dlunknown;
11419 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11422 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11423 else puts (dlerror ());
11425 /* dlclose (self); */
11433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11434 (eval $ac_link) 2>&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11438 (./conftest; exit; ) >&5 2>/dev/null
11440 case x$lt_status in
11441 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11442 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11443 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11446 # compilation failed
11447 lt_cv_dlopen_self_static=no
11454 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11455 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11458 CPPFLAGS="$save_CPPFLAGS"
11459 LDFLAGS="$save_LDFLAGS"
11464 case $lt_cv_dlopen_self in
11465 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11466 *) enable_dlopen_self=unknown ;;
11469 case $lt_cv_dlopen_self_static in
11470 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11471 *) enable_dlopen_self_static=unknown ;;
11493 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11494 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11495 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11496 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11497 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11498 { echo "$as_me:$LINENO: result: yes" >&5
11499 echo "${ECHO_T}yes" >&6; }
11501 # FIXME - insert some real tests, host_os isn't really good enough
11504 if test -n "$STRIP" ; then
11505 striplib="$STRIP -x"
11506 old_striplib="$STRIP -S"
11507 { echo "$as_me:$LINENO: result: yes" >&5
11508 echo "${ECHO_T}yes" >&6; }
11510 { echo "$as_me:$LINENO: result: no" >&5
11511 echo "${ECHO_T}no" >&6; }
11515 { echo "$as_me:$LINENO: result: no" >&5
11516 echo "${ECHO_T}no" >&6; }
11532 # Report which library types will actually be built
11533 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11534 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11535 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11536 echo "${ECHO_T}$can_build_shared" >&6; }
11538 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11539 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11540 test "$can_build_shared" = "no" && enable_shared=no
11542 # On AIX, shared libraries and static libraries use the same namespace, and
11543 # are all built from PIC.
11546 test "$enable_shared" = yes && enable_static=no
11547 if test -n "$RANLIB"; then
11548 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11549 postinstall_cmds='$RANLIB $lib'
11554 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11555 test "$enable_shared" = yes && enable_static=no
11559 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11560 echo "${ECHO_T}$enable_shared" >&6; }
11562 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11563 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11564 # Make sure either enable_shared or enable_static is yes.
11565 test "$enable_shared" = yes || enable_static=yes
11566 { echo "$as_me:$LINENO: result: $enable_static" >&5
11567 echo "${ECHO_T}$enable_static" >&6; }
11574 ac_cpp='$CPP $CPPFLAGS'
11575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11593 ac_config_commands="$ac_config_commands libtool"
11598 # Only expand once:
11602 target=$save_target
11604 if test "$enable_static" = yes; then
11605 SASL_STATIC_LIBS=libsasl2.a
11610 # Check whether --enable-staticdlopen was given.
11611 if test "${enable_staticdlopen+set}" = set; then
11612 enableval=$enable_staticdlopen; enable_staticdlopen=$enableval
11614 enable_staticdlopen=no
11618 if test "$enable_staticdlopen" = yes; then
11620 cat >>confdefs.h <<\_ACEOF
11621 #define TRY_DLOPEN_WHEN_STATIC
11626 if test "$ac_cv_c_compiler_gnu" = yes; then
11627 CFLAGS="-Wall -W ${CFLAGS}"
11631 # Check whether --with-purecov was given.
11632 if test "${with_purecov+set}" = set; then
11633 withval=$with_purecov;
11636 if test "$with_purecov" = yes; then
11637 for ac_prog in purecov
11639 # Extract the first word of "$ac_prog", so it can be a program name with args.
11640 set dummy $ac_prog; ac_word=$2
11641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11643 if test "${ac_cv_prog_PURECOV+set}" = set; then
11644 echo $ECHO_N "(cached) $ECHO_C" >&6
11646 if test -n "$PURECOV"; then
11647 ac_cv_prog_PURECOV="$PURECOV" # Let the user override the test.
11649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11650 for as_dir in $PATH
11653 test -z "$as_dir" && as_dir=.
11654 for ac_exec_ext in '' $ac_executable_extensions; do
11655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11656 ac_cv_prog_PURECOV="$ac_prog"
11657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11666 PURECOV=$ac_cv_prog_PURECOV
11667 if test -n "$PURECOV"; then
11668 { echo "$as_me:$LINENO: result: $PURECOV" >&5
11669 echo "${ECHO_T}$PURECOV" >&6; }
11671 { echo "$as_me:$LINENO: result: no" >&5
11672 echo "${ECHO_T}no" >&6; }
11676 test -n "$PURECOV" && break
11681 # Check whether --with-purify was given.
11682 if test "${with_purify+set}" = set; then
11683 withval=$with_purify;
11686 if test "$with_purify" = yes; then
11687 for ac_prog in purify
11689 # Extract the first word of "$ac_prog", so it can be a program name with args.
11690 set dummy $ac_prog; ac_word=$2
11691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11693 if test "${ac_cv_prog_PURIFY+set}" = set; then
11694 echo $ECHO_N "(cached) $ECHO_C" >&6
11696 if test -n "$PURIFY"; then
11697 ac_cv_prog_PURIFY="$PURIFY" # Let the user override the test.
11699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11700 for as_dir in $PATH
11703 test -z "$as_dir" && as_dir=.
11704 for ac_exec_ext in '' $ac_executable_extensions; do
11705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11706 ac_cv_prog_PURIFY="$ac_prog"
11707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11716 PURIFY=$ac_cv_prog_PURIFY
11717 if test -n "$PURIFY"; then
11718 { echo "$as_me:$LINENO: result: $PURIFY" >&5
11719 echo "${ECHO_T}$PURIFY" >&6; }
11721 { echo "$as_me:$LINENO: result: no" >&5
11722 echo "${ECHO_T}no" >&6; }
11726 test -n "$PURIFY" && break
11731 # Check whether --enable-java was given.
11732 if test "${enable_java+set}" = set; then
11733 enableval=$enable_java; enable_java=$enableval
11738 if test "$enable_java" = yes; then
11739 # Extract the first word of "javac", so it can be a program name with args.
11740 set dummy javac; ac_word=$2
11741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11743 if test "${ac_cv_path_JAVAC+set}" = set; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11748 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
11751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752 for as_dir in $PATH
11755 test -z "$as_dir" && as_dir=.
11756 for ac_exec_ext in '' $ac_executable_extensions; do
11757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11758 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
11759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11766 test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="no"
11770 JAVAC=$ac_cv_path_JAVAC
11771 if test -n "$JAVAC"; then
11772 { echo "$as_me:$LINENO: result: $JAVAC" >&5
11773 echo "${ECHO_T}$JAVAC" >&6; }
11775 { echo "$as_me:$LINENO: result: no" >&5
11776 echo "${ECHO_T}no" >&6; }
11780 for ac_prog in javah kaffeh
11782 # Extract the first word of "$ac_prog", so it can be a program name with args.
11783 set dummy $ac_prog; ac_word=$2
11784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11786 if test "${ac_cv_path_JAVAH+set}" = set; then
11787 echo $ECHO_N "(cached) $ECHO_C" >&6
11791 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.
11794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11795 for as_dir in $PATH
11798 test -z "$as_dir" && as_dir=.
11799 for ac_exec_ext in '' $ac_executable_extensions; do
11800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11801 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext"
11802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11812 JAVAH=$ac_cv_path_JAVAH
11813 if test -n "$JAVAH"; then
11814 { echo "$as_me:$LINENO: result: $JAVAH" >&5
11815 echo "${ECHO_T}$JAVAH" >&6; }
11817 { echo "$as_me:$LINENO: result: no" >&5
11818 echo "${ECHO_T}no" >&6; }
11822 test -n "$JAVAH" && break
11824 test -n "$JAVAH" || JAVAH="no"
11826 for ac_prog in javadoc
11828 # Extract the first word of "$ac_prog", so it can be a program name with args.
11829 set dummy $ac_prog; ac_word=$2
11830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11832 if test "${ac_cv_prog_JAVADOC+set}" = set; then
11833 echo $ECHO_N "(cached) $ECHO_C" >&6
11835 if test -n "$JAVADOC"; then
11836 ac_cv_prog_JAVADOC="$JAVADOC" # Let the user override the test.
11838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11839 for as_dir in $PATH
11842 test -z "$as_dir" && as_dir=.
11843 for ac_exec_ext in '' $ac_executable_extensions; do
11844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11845 ac_cv_prog_JAVADOC="$ac_prog"
11846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11855 JAVADOC=$ac_cv_prog_JAVADOC
11856 if test -n "$JAVADOC"; then
11857 { echo "$as_me:$LINENO: result: $JAVADOC" >&5
11858 echo "${ECHO_T}$JAVADOC" >&6; }
11860 { echo "$as_me:$LINENO: result: no" >&5
11861 echo "${ECHO_T}no" >&6; }
11865 test -n "$JAVADOC" && break
11867 test -n "$JAVADOC" || JAVADOC=":"
11869 if test "$JAVAC" = "no" -o "$JAVAH" = "no"; then
11870 { echo "$as_me:$LINENO: WARNING: Disabling Java support" >&5
11871 echo "$as_me: WARNING: Disabling Java support" >&2;}
11875 # Make distcheck work
11880 if test "$enable_java" = yes; then
11889 if test "$enable_java" = yes; then
11890 { echo "$as_me:$LINENO: checking JNI cpp flags" >&5
11891 echo $ECHO_N "checking JNI cpp flags... $ECHO_C" >&6; }
11892 if test "${sasl_cv_java_includes+set}" = set; then
11893 echo $ECHO_N "(cached) $ECHO_C" >&6
11896 if test `echo $JAVAH | sed 's,.*/,,'` = "kaffeh"; then
11897 sasl_cv_java_includes=-I`echo $JAVAH | sed -e 's,/bin.*,/include/kaffe,'`
11899 java_base=`echo $JAVAC | sed 's,/bin.*,'','`
11902 # Check whether --with-javabase was given.
11903 if test "${with_javabase+set}" = set; then
11904 withval=$with_javabase; java_base=$withval
11909 sasl_cv_java_includes=''
11910 for dir in `find ${java_base}/include -follow -type d -print | grep -v green_threads`; do
11911 sasl_cv_java_includes="${sasl_cv_java_includes} -I$dir"
11915 sasl_cv_java_includes="${sasl_cv_java_includes} -I$javapath/include"
11919 JAVA_INCLUDES=$sasl_cv_java_includes
11921 { echo "$as_me:$LINENO: result: ok" >&5
11922 echo "${ECHO_T}ok" >&6; }
11926 JAVAC=`echo "$JAVAC" | sed 's,.*/,,'`
11927 JAVAH=`echo "$JAVAH" | sed 's,.*/,,'`
11930 if test "$enable_sample" = yes; then
11942 { echo "$as_me:$LINENO: checking for connect" >&5
11943 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
11944 if test "${ac_cv_func_connect+set}" = set; then
11945 echo $ECHO_N "(cached) $ECHO_C" >&6
11947 cat >conftest.$ac_ext <<_ACEOF
11950 cat confdefs.h >>conftest.$ac_ext
11951 cat >>conftest.$ac_ext <<_ACEOF
11952 /* end confdefs.h. */
11953 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
11954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11955 #define connect innocuous_connect
11957 /* System header to define __stub macros and hopefully few prototypes,
11958 which can conflict with char connect (); below.
11959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11960 <limits.h> exists even on freestanding compilers. */
11963 # include <limits.h>
11965 # include <assert.h>
11970 /* Override any GCC internal prototype to avoid an error.
11971 Use char because int might match the return type of a GCC
11972 builtin and then its argument prototype would still apply. */
11977 /* The GNU C library defines this for functions which it implements
11978 to always fail with ENOSYS. Some functions are actually named
11979 something starting with __ and the normal name is an alias. */
11980 #if defined __stub_connect || defined __stub___connect
11992 rm -f conftest.$ac_objext conftest$ac_exeext
11993 if { (ac_try="$ac_link"
11994 case "(($ac_try" in
11995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11996 *) ac_try_echo=$ac_try;;
11998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11999 (eval "$ac_link") 2>conftest.er1
12001 grep -v '^ *+' conftest.er1 >conftest.err
12003 cat conftest.err >&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); } && {
12006 test -z "$ac_c_werror_flag" ||
12007 test ! -s conftest.err
12008 } && test -s conftest$ac_exeext &&
12009 $as_test_x conftest$ac_exeext; then
12010 ac_cv_func_connect=yes
12012 echo "$as_me: failed program was:" >&5
12013 sed 's/^/| /' conftest.$ac_ext >&5
12015 ac_cv_func_connect=no
12018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12019 conftest$ac_exeext conftest.$ac_ext
12021 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12022 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
12023 if test $ac_cv_func_connect = yes; then
12026 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
12027 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
12028 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
12029 echo $ECHO_N "(cached) $ECHO_C" >&6
12031 ac_check_lib_save_LIBS=$LIBS
12033 cat >conftest.$ac_ext <<_ACEOF
12036 cat confdefs.h >>conftest.$ac_ext
12037 cat >>conftest.$ac_ext <<_ACEOF
12038 /* end confdefs.h. */
12040 /* Override any GCC internal prototype to avoid an error.
12041 Use char because int might match the return type of a GCC
12042 builtin and then its argument prototype would still apply. */
12046 char gethostbyname ();
12050 return gethostbyname ();
12055 rm -f conftest.$ac_objext conftest$ac_exeext
12056 if { (ac_try="$ac_link"
12057 case "(($ac_try" in
12058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12059 *) ac_try_echo=$ac_try;;
12061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12062 (eval "$ac_link") 2>conftest.er1
12064 grep -v '^ *+' conftest.er1 >conftest.err
12066 cat conftest.err >&5
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); } && {
12069 test -z "$ac_c_werror_flag" ||
12070 test ! -s conftest.err
12071 } && test -s conftest$ac_exeext &&
12072 $as_test_x conftest$ac_exeext; then
12073 ac_cv_lib_nsl_gethostbyname=yes
12075 echo "$as_me: failed program was:" >&5
12076 sed 's/^/| /' conftest.$ac_ext >&5
12078 ac_cv_lib_nsl_gethostbyname=no
12081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12082 conftest$ac_exeext conftest.$ac_ext
12083 LIBS=$ac_check_lib_save_LIBS
12085 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
12086 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
12087 if test $ac_cv_lib_nsl_gethostbyname = yes; then
12088 LIB_SOCKET="-lnsl $LIB_SOCKET"
12091 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
12092 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
12093 if test "${ac_cv_lib_socket_connect+set}" = set; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
12096 ac_check_lib_save_LIBS=$LIBS
12097 LIBS="-lsocket $LIBS"
12098 cat >conftest.$ac_ext <<_ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h. */
12105 /* Override any GCC internal prototype to avoid an error.
12106 Use char because int might match the return type of a GCC
12107 builtin and then its argument prototype would still apply. */
12120 rm -f conftest.$ac_objext conftest$ac_exeext
12121 if { (ac_try="$ac_link"
12122 case "(($ac_try" in
12123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124 *) ac_try_echo=$ac_try;;
12126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12127 (eval "$ac_link") 2>conftest.er1
12129 grep -v '^ *+' conftest.er1 >conftest.err
12131 cat conftest.err >&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); } && {
12134 test -z "$ac_c_werror_flag" ||
12135 test ! -s conftest.err
12136 } && test -s conftest$ac_exeext &&
12137 $as_test_x conftest$ac_exeext; then
12138 ac_cv_lib_socket_connect=yes
12140 echo "$as_me: failed program was:" >&5
12141 sed 's/^/| /' conftest.$ac_ext >&5
12143 ac_cv_lib_socket_connect=no
12146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12147 conftest$ac_exeext conftest.$ac_ext
12148 LIBS=$ac_check_lib_save_LIBS
12150 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
12151 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
12152 if test $ac_cv_lib_socket_connect = yes; then
12153 LIB_SOCKET="-lsocket $LIB_SOCKET"
12159 LIBS="$LIB_SOCKET $save_LIBS"
12160 { echo "$as_me:$LINENO: checking for res_search" >&5
12161 echo $ECHO_N "checking for res_search... $ECHO_C" >&6; }
12162 if test "${ac_cv_func_res_search+set}" = set; then
12163 echo $ECHO_N "(cached) $ECHO_C" >&6
12165 cat >conftest.$ac_ext <<_ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h. */
12171 /* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
12172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12173 #define res_search innocuous_res_search
12175 /* System header to define __stub macros and hopefully few prototypes,
12176 which can conflict with char res_search (); below.
12177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12178 <limits.h> exists even on freestanding compilers. */
12181 # include <limits.h>
12183 # include <assert.h>
12188 /* Override any GCC internal prototype to avoid an error.
12189 Use char because int might match the return type of a GCC
12190 builtin and then its argument prototype would still apply. */
12194 char res_search ();
12195 /* The GNU C library defines this for functions which it implements
12196 to always fail with ENOSYS. Some functions are actually named
12197 something starting with __ and the normal name is an alias. */
12198 #if defined __stub_res_search || defined __stub___res_search
12205 return res_search ();
12210 rm -f conftest.$ac_objext conftest$ac_exeext
12211 if { (ac_try="$ac_link"
12212 case "(($ac_try" in
12213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214 *) ac_try_echo=$ac_try;;
12216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217 (eval "$ac_link") 2>conftest.er1
12219 grep -v '^ *+' conftest.er1 >conftest.err
12221 cat conftest.err >&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); } && {
12224 test -z "$ac_c_werror_flag" ||
12225 test ! -s conftest.err
12226 } && test -s conftest$ac_exeext &&
12227 $as_test_x conftest$ac_exeext; then
12228 ac_cv_func_res_search=yes
12230 echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12233 ac_cv_func_res_search=no
12236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12237 conftest$ac_exeext conftest.$ac_ext
12239 { echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
12240 echo "${ECHO_T}$ac_cv_func_res_search" >&6; }
12241 if test $ac_cv_func_res_search = yes; then
12244 LIBS="-lresolv $LIB_SOCKET $save_LIBS"
12245 cat >conftest.$ac_ext <<_ACEOF
12248 cat confdefs.h >>conftest.$ac_ext
12249 cat >>conftest.$ac_ext <<_ACEOF
12250 /* end confdefs.h. */
12252 #include <sys/types.h>
12253 #include <netinet/in.h>
12254 #include <arpa/nameser.h>
12255 #ifdef HAVE_ARPA_NAMESER_COMPAT_H
12256 #include <arpa/nameser_compat.h>
12258 #include <resolv.h>
12263 const char host[12]="openafs.org";
12265 res_search( host, C_IN, T_MX, (u_char *)&ans, sizeof(ans));
12272 rm -f conftest.$ac_objext conftest$ac_exeext
12273 if { (ac_try="$ac_link"
12274 case "(($ac_try" in
12275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276 *) ac_try_echo=$ac_try;;
12278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12279 (eval "$ac_link") 2>conftest.er1
12281 grep -v '^ *+' conftest.er1 >conftest.err
12283 cat conftest.err >&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); } && {
12286 test -z "$ac_c_werror_flag" ||
12287 test ! -s conftest.err
12288 } && test -s conftest$ac_exeext &&
12289 $as_test_x conftest$ac_exeext; then
12290 LIB_SOCKET="-lresolv $LIB_SOCKET"
12292 echo "$as_me: failed program was:" >&5
12293 sed 's/^/| /' conftest.$ac_ext >&5
12298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12299 conftest$ac_exeext conftest.$ac_ext
12303 LIBS="$LIB_SOCKET $save_LIBS"
12306 for ac_func in dn_expand dns_lookup
12308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12309 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12312 echo $ECHO_N "(cached) $ECHO_C" >&6
12314 cat >conftest.$ac_ext <<_ACEOF
12317 cat confdefs.h >>conftest.$ac_ext
12318 cat >>conftest.$ac_ext <<_ACEOF
12319 /* end confdefs.h. */
12320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12322 #define $ac_func innocuous_$ac_func
12324 /* System header to define __stub macros and hopefully few prototypes,
12325 which can conflict with char $ac_func (); below.
12326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12327 <limits.h> exists even on freestanding compilers. */
12330 # include <limits.h>
12332 # include <assert.h>
12337 /* Override any GCC internal prototype to avoid an error.
12338 Use char because int might match the return type of a GCC
12339 builtin and then its argument prototype would still apply. */
12344 /* The GNU C library defines this for functions which it implements
12345 to always fail with ENOSYS. Some functions are actually named
12346 something starting with __ and the normal name is an alias. */
12347 #if defined __stub_$ac_func || defined __stub___$ac_func
12354 return $ac_func ();
12359 rm -f conftest.$ac_objext conftest$ac_exeext
12360 if { (ac_try="$ac_link"
12361 case "(($ac_try" in
12362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12363 *) ac_try_echo=$ac_try;;
12365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12366 (eval "$ac_link") 2>conftest.er1
12368 grep -v '^ *+' conftest.er1 >conftest.err
12370 cat conftest.err >&5
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); } && {
12373 test -z "$ac_c_werror_flag" ||
12374 test ! -s conftest.err
12375 } && test -s conftest$ac_exeext &&
12376 $as_test_x conftest$ac_exeext; then
12377 eval "$as_ac_var=yes"
12379 echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12382 eval "$as_ac_var=no"
12385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12386 conftest$ac_exeext conftest.$ac_ext
12388 ac_res=`eval echo '${'$as_ac_var'}'`
12389 { echo "$as_me:$LINENO: result: $ac_res" >&5
12390 echo "${ECHO_T}$ac_res" >&6; }
12391 if test `eval echo '${'$as_ac_var'}'` = yes; then
12392 cat >>confdefs.h <<_ACEOF
12393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12405 # Check whether --with-dbpath was given.
12406 if test "${with_dbpath+set}" = set; then
12407 withval=$with_dbpath; dbpath=$withval
12409 dbpath=/etc/sasldb2
12412 { echo "$as_me:$LINENO: checking DB path to use" >&5
12413 echo $ECHO_N "checking DB path to use... $ECHO_C" >&6; }
12414 { echo "$as_me:$LINENO: result: $dbpath" >&5
12415 echo "${ECHO_T}$dbpath" >&6; }
12417 cat >>confdefs.h <<_ACEOF
12418 #define SASL_DB_PATH "$dbpath"
12422 cmu_save_LIBS="$LIBS"
12424 # Check whether --with-dblib was given.
12425 if test "${with_dblib+set}" = set; then
12426 withval=$with_dblib; dblib=$withval
12434 # Check whether --with-bdb-libdir was given.
12435 if test "${with_bdb_libdir+set}" = set; then
12436 withval=$with_bdb_libdir; with_bdb_lib=$withval
12438 test "${with_bdb_lib+set}" = set || with_bdb_lib=none
12442 # Check whether --with-bdb-incdir was given.
12443 if test "${with_bdb_incdir+set}" = set; then
12444 withval=$with_bdb_incdir; with_bdb_inc=$withval
12446 test "${with_bdb_inc+set}" = set || with_bdb_inc=none
12458 cmu_save_CPPFLAGS=$CPPFLAGS
12460 if test -d $with_bdb_inc; then
12461 CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
12462 BDB_INCADD="-I$with_bdb_inc"
12467 if test "${ac_cv_header_db_h+set}" = set; then
12468 { echo "$as_me:$LINENO: checking for db.h" >&5
12469 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
12470 if test "${ac_cv_header_db_h+set}" = set; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12473 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
12474 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
12476 # Is the header compilable?
12477 { echo "$as_me:$LINENO: checking db.h usability" >&5
12478 echo $ECHO_N "checking db.h usability... $ECHO_C" >&6; }
12479 cat >conftest.$ac_ext <<_ACEOF
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h. */
12485 $ac_includes_default
12488 rm -f conftest.$ac_objext
12489 if { (ac_try="$ac_compile"
12490 case "(($ac_try" in
12491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492 *) ac_try_echo=$ac_try;;
12494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12495 (eval "$ac_compile") 2>conftest.er1
12497 grep -v '^ *+' conftest.er1 >conftest.err
12499 cat conftest.err >&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); } && {
12502 test -z "$ac_c_werror_flag" ||
12503 test ! -s conftest.err
12504 } && test -s conftest.$ac_objext; then
12505 ac_header_compiler=yes
12507 echo "$as_me: failed program was:" >&5
12508 sed 's/^/| /' conftest.$ac_ext >&5
12510 ac_header_compiler=no
12513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12514 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12515 echo "${ECHO_T}$ac_header_compiler" >&6; }
12517 # Is the header present?
12518 { echo "$as_me:$LINENO: checking db.h presence" >&5
12519 echo $ECHO_N "checking db.h presence... $ECHO_C" >&6; }
12520 cat >conftest.$ac_ext <<_ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h. */
12528 if { (ac_try="$ac_cpp conftest.$ac_ext"
12529 case "(($ac_try" in
12530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12531 *) ac_try_echo=$ac_try;;
12533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12536 grep -v '^ *+' conftest.er1 >conftest.err
12538 cat conftest.err >&5
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } >/dev/null && {
12541 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12542 test ! -s conftest.err
12544 ac_header_preproc=yes
12546 echo "$as_me: failed program was:" >&5
12547 sed 's/^/| /' conftest.$ac_ext >&5
12549 ac_header_preproc=no
12552 rm -f conftest.err conftest.$ac_ext
12553 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12554 echo "${ECHO_T}$ac_header_preproc" >&6; }
12556 # So? What about this header?
12557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12559 { echo "$as_me:$LINENO: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&5
12560 echo "$as_me: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12561 { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the compiler's result" >&5
12562 echo "$as_me: WARNING: db.h: proceeding with the compiler's result" >&2;}
12563 ac_header_preproc=yes
12566 { echo "$as_me:$LINENO: WARNING: db.h: present but cannot be compiled" >&5
12567 echo "$as_me: WARNING: db.h: present but cannot be compiled" >&2;}
12568 { echo "$as_me:$LINENO: WARNING: db.h: check for missing prerequisite headers?" >&5
12569 echo "$as_me: WARNING: db.h: check for missing prerequisite headers?" >&2;}
12570 { echo "$as_me:$LINENO: WARNING: db.h: see the Autoconf documentation" >&5
12571 echo "$as_me: WARNING: db.h: see the Autoconf documentation" >&2;}
12572 { echo "$as_me:$LINENO: WARNING: db.h: section \"Present But Cannot Be Compiled\"" >&5
12573 echo "$as_me: WARNING: db.h: section \"Present But Cannot Be Compiled\"" >&2;}
12574 { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5
12575 echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;}
12576 { echo "$as_me:$LINENO: WARNING: db.h: in the future, the compiler will take precedence" >&5
12577 echo "$as_me: WARNING: db.h: in the future, the compiler will take precedence" >&2;}
12581 { echo "$as_me:$LINENO: checking for db.h" >&5
12582 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
12583 if test "${ac_cv_header_db_h+set}" = set; then
12584 echo $ECHO_N "(cached) $ECHO_C" >&6
12586 ac_cv_header_db_h=$ac_header_preproc
12588 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
12589 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
12592 if test $ac_cv_header_db_h = yes; then
12594 BDB_SAVE_LDFLAGS=$LDFLAGS
12596 if test -d $with_bdb_lib; then
12598 # this is CMU ADD LIBPATH TO
12599 if test "$andrew_runpath_switch" = "none" ; then
12600 LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
12602 LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
12606 # this is CMU ADD LIBPATH TO
12607 if test "$andrew_runpath_switch" = "none" ; then
12608 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
12610 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
12618 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
12620 LIBS="$saved_LIBS -l$dbname"
12621 cat >conftest.$ac_ext <<_ACEOF
12624 cat confdefs.h >>conftest.$ac_ext
12625 cat >>conftest.$ac_ext <<_ACEOF
12626 /* end confdefs.h. */
12631 db_create(NULL, NULL, 0);
12636 rm -f conftest.$ac_objext conftest$ac_exeext
12637 if { (ac_try="$ac_link"
12638 case "(($ac_try" in
12639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12640 *) ac_try_echo=$ac_try;;
12642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12643 (eval "$ac_link") 2>conftest.er1
12645 grep -v '^ *+' conftest.er1 >conftest.err
12647 cat conftest.err >&5
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); } && {
12650 test -z "$ac_c_werror_flag" ||
12651 test ! -s conftest.err
12652 } && test -s conftest$ac_exeext &&
12653 $as_test_x conftest$ac_exeext; then
12654 BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
12656 echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12663 conftest$ac_exeext conftest.$ac_ext
12664 if test "$dblib" = "berkeley"; then break; fi
12666 if test "$dblib" = "no"; then
12667 LIBS="$saved_LIBS -ldb"
12668 cat >conftest.$ac_ext <<_ACEOF
12671 cat confdefs.h >>conftest.$ac_ext
12672 cat >>conftest.$ac_ext <<_ACEOF
12673 /* end confdefs.h. */
12678 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
12683 rm -f conftest.$ac_objext conftest$ac_exeext
12684 if { (ac_try="$ac_link"
12685 case "(($ac_try" in
12686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12687 *) ac_try_echo=$ac_try;;
12689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12690 (eval "$ac_link") 2>conftest.er1
12692 grep -v '^ *+' conftest.er1 >conftest.err
12694 cat conftest.err >&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); } && {
12697 test -z "$ac_c_werror_flag" ||
12698 test ! -s conftest.err
12699 } && test -s conftest$ac_exeext &&
12700 $as_test_x conftest$ac_exeext; then
12701 BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
12703 echo "$as_me: failed program was:" >&5
12704 sed 's/^/| /' conftest.$ac_ext >&5
12709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12710 conftest$ac_exeext conftest.$ac_ext
12714 LDFLAGS=$BDB_SAVE_LDFLAGS
12722 CPPFLAGS=$cmu_save_CPPFLAGS
12724 CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
12725 SASL_DB_INC=$BDB_INCADD
12726 SASL_DB_LIB="${BDB_LIBADD}"
12730 # Check whether --with-gdbm was given.
12731 if test "${with_gdbm+set}" = set; then
12732 withval=$with_gdbm; with_gdbm="${withval}"
12736 case "$with_gdbm" in
12738 if test "${ac_cv_header_gdbm_h+set}" = set; then
12739 { echo "$as_me:$LINENO: checking for gdbm.h" >&5
12740 echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6; }
12741 if test "${ac_cv_header_gdbm_h+set}" = set; then
12742 echo $ECHO_N "(cached) $ECHO_C" >&6
12744 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
12745 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
12747 # Is the header compilable?
12748 { echo "$as_me:$LINENO: checking gdbm.h usability" >&5
12749 echo $ECHO_N "checking gdbm.h usability... $ECHO_C" >&6; }
12750 cat >conftest.$ac_ext <<_ACEOF
12753 cat confdefs.h >>conftest.$ac_ext
12754 cat >>conftest.$ac_ext <<_ACEOF
12755 /* end confdefs.h. */
12756 $ac_includes_default
12759 rm -f conftest.$ac_objext
12760 if { (ac_try="$ac_compile"
12761 case "(($ac_try" in
12762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12763 *) ac_try_echo=$ac_try;;
12765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12766 (eval "$ac_compile") 2>conftest.er1
12768 grep -v '^ *+' conftest.er1 >conftest.err
12770 cat conftest.err >&5
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); } && {
12773 test -z "$ac_c_werror_flag" ||
12774 test ! -s conftest.err
12775 } && test -s conftest.$ac_objext; then
12776 ac_header_compiler=yes
12778 echo "$as_me: failed program was:" >&5
12779 sed 's/^/| /' conftest.$ac_ext >&5
12781 ac_header_compiler=no
12784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12786 echo "${ECHO_T}$ac_header_compiler" >&6; }
12788 # Is the header present?
12789 { echo "$as_me:$LINENO: checking gdbm.h presence" >&5
12790 echo $ECHO_N "checking gdbm.h presence... $ECHO_C" >&6; }
12791 cat >conftest.$ac_ext <<_ACEOF
12794 cat confdefs.h >>conftest.$ac_ext
12795 cat >>conftest.$ac_ext <<_ACEOF
12796 /* end confdefs.h. */
12799 if { (ac_try="$ac_cpp conftest.$ac_ext"
12800 case "(($ac_try" in
12801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12802 *) ac_try_echo=$ac_try;;
12804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12807 grep -v '^ *+' conftest.er1 >conftest.err
12809 cat conftest.err >&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } >/dev/null && {
12812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12813 test ! -s conftest.err
12815 ac_header_preproc=yes
12817 echo "$as_me: failed program was:" >&5
12818 sed 's/^/| /' conftest.$ac_ext >&5
12820 ac_header_preproc=no
12823 rm -f conftest.err conftest.$ac_ext
12824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12825 echo "${ECHO_T}$ac_header_preproc" >&6; }
12827 # So? What about this header?
12828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12830 { echo "$as_me:$LINENO: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12831 echo "$as_me: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12832 { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the compiler's result" >&5
12833 echo "$as_me: WARNING: gdbm.h: proceeding with the compiler's result" >&2;}
12834 ac_header_preproc=yes
12837 { echo "$as_me:$LINENO: WARNING: gdbm.h: present but cannot be compiled" >&5
12838 echo "$as_me: WARNING: gdbm.h: present but cannot be compiled" >&2;}
12839 { echo "$as_me:$LINENO: WARNING: gdbm.h: check for missing prerequisite headers?" >&5
12840 echo "$as_me: WARNING: gdbm.h: check for missing prerequisite headers?" >&2;}
12841 { echo "$as_me:$LINENO: WARNING: gdbm.h: see the Autoconf documentation" >&5
12842 echo "$as_me: WARNING: gdbm.h: see the Autoconf documentation" >&2;}
12843 { echo "$as_me:$LINENO: WARNING: gdbm.h: section \"Present But Cannot Be Compiled\"" >&5
12844 echo "$as_me: WARNING: gdbm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12845 { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5
12846 echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;}
12847 { echo "$as_me:$LINENO: WARNING: gdbm.h: in the future, the compiler will take precedence" >&5
12848 echo "$as_me: WARNING: gdbm.h: in the future, the compiler will take precedence" >&2;}
12852 { echo "$as_me:$LINENO: checking for gdbm.h" >&5
12853 echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6; }
12854 if test "${ac_cv_header_gdbm_h+set}" = set; then
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
12857 ac_cv_header_gdbm_h=$ac_header_preproc
12859 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
12860 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
12863 if test $ac_cv_header_gdbm_h = yes; then
12865 { echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
12866 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6; }
12867 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
12868 echo $ECHO_N "(cached) $ECHO_C" >&6
12870 ac_check_lib_save_LIBS=$LIBS
12871 LIBS="-lgdbm $LIBS"
12872 cat >conftest.$ac_ext <<_ACEOF
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h. */
12879 /* Override any GCC internal prototype to avoid an error.
12880 Use char because int might match the return type of a GCC
12881 builtin and then its argument prototype would still apply. */
12889 return gdbm_open ();
12894 rm -f conftest.$ac_objext conftest$ac_exeext
12895 if { (ac_try="$ac_link"
12896 case "(($ac_try" in
12897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898 *) ac_try_echo=$ac_try;;
12900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12901 (eval "$ac_link") 2>conftest.er1
12903 grep -v '^ *+' conftest.er1 >conftest.err
12905 cat conftest.err >&5
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); } && {
12908 test -z "$ac_c_werror_flag" ||
12909 test ! -s conftest.err
12910 } && test -s conftest$ac_exeext &&
12911 $as_test_x conftest$ac_exeext; then
12912 ac_cv_lib_gdbm_gdbm_open=yes
12914 echo "$as_me: failed program was:" >&5
12915 sed 's/^/| /' conftest.$ac_ext >&5
12917 ac_cv_lib_gdbm_gdbm_open=no
12920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12921 conftest$ac_exeext conftest.$ac_ext
12922 LIBS=$ac_check_lib_save_LIBS
12924 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
12925 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6; }
12926 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
12927 SASL_DB_LIB="-lgdbm"
12939 if test -d $with_gdbm; then
12940 CPPFLAGS="${CPPFLAGS} -I${with_gdbm}/include"
12941 LDFLAGS="${LDFLAGS} -L${with_gdbm}/lib"
12942 SASL_DB_LIB="-lgdbm"
12949 if test "${ac_cv_header_ndbm_h+set}" = set; then
12950 { echo "$as_me:$LINENO: checking for ndbm.h" >&5
12951 echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6; }
12952 if test "${ac_cv_header_ndbm_h+set}" = set; then
12953 echo $ECHO_N "(cached) $ECHO_C" >&6
12955 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
12956 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
12958 # Is the header compilable?
12959 { echo "$as_me:$LINENO: checking ndbm.h usability" >&5
12960 echo $ECHO_N "checking ndbm.h usability... $ECHO_C" >&6; }
12961 cat >conftest.$ac_ext <<_ACEOF
12964 cat confdefs.h >>conftest.$ac_ext
12965 cat >>conftest.$ac_ext <<_ACEOF
12966 /* end confdefs.h. */
12967 $ac_includes_default
12970 rm -f conftest.$ac_objext
12971 if { (ac_try="$ac_compile"
12972 case "(($ac_try" in
12973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974 *) ac_try_echo=$ac_try;;
12976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12977 (eval "$ac_compile") 2>conftest.er1
12979 grep -v '^ *+' conftest.er1 >conftest.err
12981 cat conftest.err >&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); } && {
12984 test -z "$ac_c_werror_flag" ||
12985 test ! -s conftest.err
12986 } && test -s conftest.$ac_objext; then
12987 ac_header_compiler=yes
12989 echo "$as_me: failed program was:" >&5
12990 sed 's/^/| /' conftest.$ac_ext >&5
12992 ac_header_compiler=no
12995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12996 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12997 echo "${ECHO_T}$ac_header_compiler" >&6; }
12999 # Is the header present?
13000 { echo "$as_me:$LINENO: checking ndbm.h presence" >&5
13001 echo $ECHO_N "checking ndbm.h presence... $ECHO_C" >&6; }
13002 cat >conftest.$ac_ext <<_ACEOF
13005 cat confdefs.h >>conftest.$ac_ext
13006 cat >>conftest.$ac_ext <<_ACEOF
13007 /* end confdefs.h. */
13010 if { (ac_try="$ac_cpp conftest.$ac_ext"
13011 case "(($ac_try" in
13012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13013 *) ac_try_echo=$ac_try;;
13015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13018 grep -v '^ *+' conftest.er1 >conftest.err
13020 cat conftest.err >&5
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); } >/dev/null && {
13023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13024 test ! -s conftest.err
13026 ac_header_preproc=yes
13028 echo "$as_me: failed program was:" >&5
13029 sed 's/^/| /' conftest.$ac_ext >&5
13031 ac_header_preproc=no
13034 rm -f conftest.err conftest.$ac_ext
13035 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13036 echo "${ECHO_T}$ac_header_preproc" >&6; }
13038 # So? What about this header?
13039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13041 { echo "$as_me:$LINENO: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13042 echo "$as_me: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13043 { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the compiler's result" >&5
13044 echo "$as_me: WARNING: ndbm.h: proceeding with the compiler's result" >&2;}
13045 ac_header_preproc=yes
13048 { echo "$as_me:$LINENO: WARNING: ndbm.h: present but cannot be compiled" >&5
13049 echo "$as_me: WARNING: ndbm.h: present but cannot be compiled" >&2;}
13050 { echo "$as_me:$LINENO: WARNING: ndbm.h: check for missing prerequisite headers?" >&5
13051 echo "$as_me: WARNING: ndbm.h: check for missing prerequisite headers?" >&2;}
13052 { echo "$as_me:$LINENO: WARNING: ndbm.h: see the Autoconf documentation" >&5
13053 echo "$as_me: WARNING: ndbm.h: see the Autoconf documentation" >&2;}
13054 { echo "$as_me:$LINENO: WARNING: ndbm.h: section \"Present But Cannot Be Compiled\"" >&5
13055 echo "$as_me: WARNING: ndbm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13056 { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the preprocessor's result" >&5
13057 echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result" >&2;}
13058 { echo "$as_me:$LINENO: WARNING: ndbm.h: in the future, the compiler will take precedence" >&5
13059 echo "$as_me: WARNING: ndbm.h: in the future, the compiler will take precedence" >&2;}
13063 { echo "$as_me:$LINENO: checking for ndbm.h" >&5
13064 echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6; }
13065 if test "${ac_cv_header_ndbm_h+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13068 ac_cv_header_ndbm_h=$ac_header_preproc
13070 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
13071 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
13074 if test $ac_cv_header_ndbm_h = yes; then
13076 { echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
13077 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6; }
13078 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
13079 echo $ECHO_N "(cached) $ECHO_C" >&6
13081 ac_check_lib_save_LIBS=$LIBS
13082 LIBS="-lndbm $LIBS"
13083 cat >conftest.$ac_ext <<_ACEOF
13086 cat confdefs.h >>conftest.$ac_ext
13087 cat >>conftest.$ac_ext <<_ACEOF
13088 /* end confdefs.h. */
13090 /* Override any GCC internal prototype to avoid an error.
13091 Use char because int might match the return type of a GCC
13092 builtin and then its argument prototype would still apply. */
13100 return dbm_open ();
13105 rm -f conftest.$ac_objext conftest$ac_exeext
13106 if { (ac_try="$ac_link"
13107 case "(($ac_try" in
13108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109 *) ac_try_echo=$ac_try;;
13111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13112 (eval "$ac_link") 2>conftest.er1
13114 grep -v '^ *+' conftest.er1 >conftest.err
13116 cat conftest.err >&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); } && {
13119 test -z "$ac_c_werror_flag" ||
13120 test ! -s conftest.err
13121 } && test -s conftest$ac_exeext &&
13122 $as_test_x conftest$ac_exeext; then
13123 ac_cv_lib_ndbm_dbm_open=yes
13125 echo "$as_me: failed program was:" >&5
13126 sed 's/^/| /' conftest.$ac_ext >&5
13128 ac_cv_lib_ndbm_dbm_open=no
13131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13132 conftest$ac_exeext conftest.$ac_ext
13133 LIBS=$ac_check_lib_save_LIBS
13135 { echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
13136 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6; }
13137 if test $ac_cv_lib_ndbm_dbm_open = yes; then
13138 SASL_DB_LIB="-lndbm"
13141 { echo "$as_me:$LINENO: checking for dbm_open" >&5
13142 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6; }
13143 if test "${ac_cv_func_dbm_open+set}" = set; then
13144 echo $ECHO_N "(cached) $ECHO_C" >&6
13146 cat >conftest.$ac_ext <<_ACEOF
13149 cat confdefs.h >>conftest.$ac_ext
13150 cat >>conftest.$ac_ext <<_ACEOF
13151 /* end confdefs.h. */
13152 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
13153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13154 #define dbm_open innocuous_dbm_open
13156 /* System header to define __stub macros and hopefully few prototypes,
13157 which can conflict with char dbm_open (); below.
13158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13159 <limits.h> exists even on freestanding compilers. */
13162 # include <limits.h>
13164 # include <assert.h>
13169 /* Override any GCC internal prototype to avoid an error.
13170 Use char because int might match the return type of a GCC
13171 builtin and then its argument prototype would still apply. */
13176 /* The GNU C library defines this for functions which it implements
13177 to always fail with ENOSYS. Some functions are actually named
13178 something starting with __ and the normal name is an alias. */
13179 #if defined __stub_dbm_open || defined __stub___dbm_open
13186 return dbm_open ();
13191 rm -f conftest.$ac_objext conftest$ac_exeext
13192 if { (ac_try="$ac_link"
13193 case "(($ac_try" in
13194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13195 *) ac_try_echo=$ac_try;;
13197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13198 (eval "$ac_link") 2>conftest.er1
13200 grep -v '^ *+' conftest.er1 >conftest.err
13202 cat conftest.err >&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); } && {
13205 test -z "$ac_c_werror_flag" ||
13206 test ! -s conftest.err
13207 } && test -s conftest$ac_exeext &&
13208 $as_test_x conftest$ac_exeext; then
13209 ac_cv_func_dbm_open=yes
13211 echo "$as_me: failed program was:" >&5
13212 sed 's/^/| /' conftest.$ac_ext >&5
13214 ac_cv_func_dbm_open=no
13217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13218 conftest$ac_exeext conftest.$ac_ext
13220 { echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
13221 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6; }
13222 if test $ac_cv_func_dbm_open = yes; then
13240 cmu_save_CPPFLAGS=$CPPFLAGS
13242 if test -d $with_bdb_inc; then
13243 CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
13244 BDB_INCADD="-I$with_bdb_inc"
13249 if test "${ac_cv_header_db_h+set}" = set; then
13250 { echo "$as_me:$LINENO: checking for db.h" >&5
13251 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
13252 if test "${ac_cv_header_db_h+set}" = set; then
13253 echo $ECHO_N "(cached) $ECHO_C" >&6
13255 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
13256 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
13258 # Is the header compilable?
13259 { echo "$as_me:$LINENO: checking db.h usability" >&5
13260 echo $ECHO_N "checking db.h usability... $ECHO_C" >&6; }
13261 cat >conftest.$ac_ext <<_ACEOF
13264 cat confdefs.h >>conftest.$ac_ext
13265 cat >>conftest.$ac_ext <<_ACEOF
13266 /* end confdefs.h. */
13267 $ac_includes_default
13270 rm -f conftest.$ac_objext
13271 if { (ac_try="$ac_compile"
13272 case "(($ac_try" in
13273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13274 *) ac_try_echo=$ac_try;;
13276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13277 (eval "$ac_compile") 2>conftest.er1
13279 grep -v '^ *+' conftest.er1 >conftest.err
13281 cat conftest.err >&5
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); } && {
13284 test -z "$ac_c_werror_flag" ||
13285 test ! -s conftest.err
13286 } && test -s conftest.$ac_objext; then
13287 ac_header_compiler=yes
13289 echo "$as_me: failed program was:" >&5
13290 sed 's/^/| /' conftest.$ac_ext >&5
13292 ac_header_compiler=no
13295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13296 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13297 echo "${ECHO_T}$ac_header_compiler" >&6; }
13299 # Is the header present?
13300 { echo "$as_me:$LINENO: checking db.h presence" >&5
13301 echo $ECHO_N "checking db.h presence... $ECHO_C" >&6; }
13302 cat >conftest.$ac_ext <<_ACEOF
13305 cat confdefs.h >>conftest.$ac_ext
13306 cat >>conftest.$ac_ext <<_ACEOF
13307 /* end confdefs.h. */
13310 if { (ac_try="$ac_cpp conftest.$ac_ext"
13311 case "(($ac_try" in
13312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13313 *) ac_try_echo=$ac_try;;
13315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13318 grep -v '^ *+' conftest.er1 >conftest.err
13320 cat conftest.err >&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); } >/dev/null && {
13323 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13324 test ! -s conftest.err
13326 ac_header_preproc=yes
13328 echo "$as_me: failed program was:" >&5
13329 sed 's/^/| /' conftest.$ac_ext >&5
13331 ac_header_preproc=no
13334 rm -f conftest.err conftest.$ac_ext
13335 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13336 echo "${ECHO_T}$ac_header_preproc" >&6; }
13338 # So? What about this header?
13339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13341 { echo "$as_me:$LINENO: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&5
13342 echo "$as_me: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13343 { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the compiler's result" >&5
13344 echo "$as_me: WARNING: db.h: proceeding with the compiler's result" >&2;}
13345 ac_header_preproc=yes
13348 { echo "$as_me:$LINENO: WARNING: db.h: present but cannot be compiled" >&5
13349 echo "$as_me: WARNING: db.h: present but cannot be compiled" >&2;}
13350 { echo "$as_me:$LINENO: WARNING: db.h: check for missing prerequisite headers?" >&5
13351 echo "$as_me: WARNING: db.h: check for missing prerequisite headers?" >&2;}
13352 { echo "$as_me:$LINENO: WARNING: db.h: see the Autoconf documentation" >&5
13353 echo "$as_me: WARNING: db.h: see the Autoconf documentation" >&2;}
13354 { echo "$as_me:$LINENO: WARNING: db.h: section \"Present But Cannot Be Compiled\"" >&5
13355 echo "$as_me: WARNING: db.h: section \"Present But Cannot Be Compiled\"" >&2;}
13356 { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5
13357 echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;}
13358 { echo "$as_me:$LINENO: WARNING: db.h: in the future, the compiler will take precedence" >&5
13359 echo "$as_me: WARNING: db.h: in the future, the compiler will take precedence" >&2;}
13363 { echo "$as_me:$LINENO: checking for db.h" >&5
13364 echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
13365 if test "${ac_cv_header_db_h+set}" = set; then
13366 echo $ECHO_N "(cached) $ECHO_C" >&6
13368 ac_cv_header_db_h=$ac_header_preproc
13370 { echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
13371 echo "${ECHO_T}$ac_cv_header_db_h" >&6; }
13374 if test $ac_cv_header_db_h = yes; then
13376 BDB_SAVE_LDFLAGS=$LDFLAGS
13378 if test -d $with_bdb_lib; then
13380 # this is CMU ADD LIBPATH TO
13381 if test "$andrew_runpath_switch" = "none" ; then
13382 LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
13384 LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
13388 # this is CMU ADD LIBPATH TO
13389 if test "$andrew_runpath_switch" = "none" ; then
13390 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
13392 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
13400 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
13402 LIBS="$saved_LIBS -l$dbname"
13403 cat >conftest.$ac_ext <<_ACEOF
13406 cat confdefs.h >>conftest.$ac_ext
13407 cat >>conftest.$ac_ext <<_ACEOF
13408 /* end confdefs.h. */
13413 db_create(NULL, NULL, 0);
13418 rm -f conftest.$ac_objext conftest$ac_exeext
13419 if { (ac_try="$ac_link"
13420 case "(($ac_try" in
13421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422 *) ac_try_echo=$ac_try;;
13424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425 (eval "$ac_link") 2>conftest.er1
13427 grep -v '^ *+' conftest.er1 >conftest.err
13429 cat conftest.err >&5
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); } && {
13432 test -z "$ac_c_werror_flag" ||
13433 test ! -s conftest.err
13434 } && test -s conftest$ac_exeext &&
13435 $as_test_x conftest$ac_exeext; then
13436 BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
13438 echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13445 conftest$ac_exeext conftest.$ac_ext
13446 if test "$dblib" = "berkeley"; then break; fi
13448 if test "$dblib" = "no"; then
13449 LIBS="$saved_LIBS -ldb"
13450 cat >conftest.$ac_ext <<_ACEOF
13453 cat confdefs.h >>conftest.$ac_ext
13454 cat >>conftest.$ac_ext <<_ACEOF
13455 /* end confdefs.h. */
13460 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
13465 rm -f conftest.$ac_objext conftest$ac_exeext
13466 if { (ac_try="$ac_link"
13467 case "(($ac_try" in
13468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_link") 2>conftest.er1
13474 grep -v '^ *+' conftest.er1 >conftest.err
13476 cat conftest.err >&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); } && {
13479 test -z "$ac_c_werror_flag" ||
13480 test ! -s conftest.err
13481 } && test -s conftest$ac_exeext &&
13482 $as_test_x conftest$ac_exeext; then
13483 BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
13485 echo "$as_me: failed program was:" >&5
13486 sed 's/^/| /' conftest.$ac_ext >&5
13491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13492 conftest$ac_exeext conftest.$ac_ext
13496 LDFLAGS=$BDB_SAVE_LDFLAGS
13504 CPPFLAGS=$cmu_save_CPPFLAGS
13506 if test "$dblib" = no; then
13507 if test "${ac_cv_header_ndbm_h+set}" = set; then
13508 { echo "$as_me:$LINENO: checking for ndbm.h" >&5
13509 echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6; }
13510 if test "${ac_cv_header_ndbm_h+set}" = set; then
13511 echo $ECHO_N "(cached) $ECHO_C" >&6
13513 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
13514 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
13516 # Is the header compilable?
13517 { echo "$as_me:$LINENO: checking ndbm.h usability" >&5
13518 echo $ECHO_N "checking ndbm.h usability... $ECHO_C" >&6; }
13519 cat >conftest.$ac_ext <<_ACEOF
13522 cat confdefs.h >>conftest.$ac_ext
13523 cat >>conftest.$ac_ext <<_ACEOF
13524 /* end confdefs.h. */
13525 $ac_includes_default
13528 rm -f conftest.$ac_objext
13529 if { (ac_try="$ac_compile"
13530 case "(($ac_try" in
13531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13532 *) ac_try_echo=$ac_try;;
13534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13535 (eval "$ac_compile") 2>conftest.er1
13537 grep -v '^ *+' conftest.er1 >conftest.err
13539 cat conftest.err >&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } && {
13542 test -z "$ac_c_werror_flag" ||
13543 test ! -s conftest.err
13544 } && test -s conftest.$ac_objext; then
13545 ac_header_compiler=yes
13547 echo "$as_me: failed program was:" >&5
13548 sed 's/^/| /' conftest.$ac_ext >&5
13550 ac_header_compiler=no
13553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13554 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13555 echo "${ECHO_T}$ac_header_compiler" >&6; }
13557 # Is the header present?
13558 { echo "$as_me:$LINENO: checking ndbm.h presence" >&5
13559 echo $ECHO_N "checking ndbm.h presence... $ECHO_C" >&6; }
13560 cat >conftest.$ac_ext <<_ACEOF
13563 cat confdefs.h >>conftest.$ac_ext
13564 cat >>conftest.$ac_ext <<_ACEOF
13565 /* end confdefs.h. */
13568 if { (ac_try="$ac_cpp conftest.$ac_ext"
13569 case "(($ac_try" in
13570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13571 *) ac_try_echo=$ac_try;;
13573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13576 grep -v '^ *+' conftest.er1 >conftest.err
13578 cat conftest.err >&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); } >/dev/null && {
13581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13582 test ! -s conftest.err
13584 ac_header_preproc=yes
13586 echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13589 ac_header_preproc=no
13592 rm -f conftest.err conftest.$ac_ext
13593 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13594 echo "${ECHO_T}$ac_header_preproc" >&6; }
13596 # So? What about this header?
13597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13599 { echo "$as_me:$LINENO: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13600 echo "$as_me: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13601 { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the compiler's result" >&5
13602 echo "$as_me: WARNING: ndbm.h: proceeding with the compiler's result" >&2;}
13603 ac_header_preproc=yes
13606 { echo "$as_me:$LINENO: WARNING: ndbm.h: present but cannot be compiled" >&5
13607 echo "$as_me: WARNING: ndbm.h: present but cannot be compiled" >&2;}
13608 { echo "$as_me:$LINENO: WARNING: ndbm.h: check for missing prerequisite headers?" >&5
13609 echo "$as_me: WARNING: ndbm.h: check for missing prerequisite headers?" >&2;}
13610 { echo "$as_me:$LINENO: WARNING: ndbm.h: see the Autoconf documentation" >&5
13611 echo "$as_me: WARNING: ndbm.h: see the Autoconf documentation" >&2;}
13612 { echo "$as_me:$LINENO: WARNING: ndbm.h: section \"Present But Cannot Be Compiled\"" >&5
13613 echo "$as_me: WARNING: ndbm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13614 { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the preprocessor's result" >&5
13615 echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result" >&2;}
13616 { echo "$as_me:$LINENO: WARNING: ndbm.h: in the future, the compiler will take precedence" >&5
13617 echo "$as_me: WARNING: ndbm.h: in the future, the compiler will take precedence" >&2;}
13621 { echo "$as_me:$LINENO: checking for ndbm.h" >&5
13622 echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6; }
13623 if test "${ac_cv_header_ndbm_h+set}" = set; then
13624 echo $ECHO_N "(cached) $ECHO_C" >&6
13626 ac_cv_header_ndbm_h=$ac_header_preproc
13628 { echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5
13629 echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6; }
13632 if test $ac_cv_header_ndbm_h = yes; then
13634 { echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
13635 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6; }
13636 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
13637 echo $ECHO_N "(cached) $ECHO_C" >&6
13639 ac_check_lib_save_LIBS=$LIBS
13640 LIBS="-lndbm $LIBS"
13641 cat >conftest.$ac_ext <<_ACEOF
13644 cat confdefs.h >>conftest.$ac_ext
13645 cat >>conftest.$ac_ext <<_ACEOF
13646 /* end confdefs.h. */
13648 /* Override any GCC internal prototype to avoid an error.
13649 Use char because int might match the return type of a GCC
13650 builtin and then its argument prototype would still apply. */
13658 return dbm_open ();
13663 rm -f conftest.$ac_objext conftest$ac_exeext
13664 if { (ac_try="$ac_link"
13665 case "(($ac_try" in
13666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13667 *) ac_try_echo=$ac_try;;
13669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13670 (eval "$ac_link") 2>conftest.er1
13672 grep -v '^ *+' conftest.er1 >conftest.err
13674 cat conftest.err >&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); } && {
13677 test -z "$ac_c_werror_flag" ||
13678 test ! -s conftest.err
13679 } && test -s conftest$ac_exeext &&
13680 $as_test_x conftest$ac_exeext; then
13681 ac_cv_lib_ndbm_dbm_open=yes
13683 echo "$as_me: failed program was:" >&5
13684 sed 's/^/| /' conftest.$ac_ext >&5
13686 ac_cv_lib_ndbm_dbm_open=no
13689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13690 conftest$ac_exeext conftest.$ac_ext
13691 LIBS=$ac_check_lib_save_LIBS
13693 { echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
13694 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6; }
13695 if test $ac_cv_lib_ndbm_dbm_open = yes; then
13696 dblib="ndbm"; SASL_DB_LIB="-lndbm"
13706 if test "$dblib" = "weird"; then
13707 { echo "$as_me:$LINENO: checking for dbm_open" >&5
13708 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6; }
13709 if test "${ac_cv_func_dbm_open+set}" = set; then
13710 echo $ECHO_N "(cached) $ECHO_C" >&6
13712 cat >conftest.$ac_ext <<_ACEOF
13715 cat confdefs.h >>conftest.$ac_ext
13716 cat >>conftest.$ac_ext <<_ACEOF
13717 /* end confdefs.h. */
13718 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
13719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13720 #define dbm_open innocuous_dbm_open
13722 /* System header to define __stub macros and hopefully few prototypes,
13723 which can conflict with char dbm_open (); below.
13724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13725 <limits.h> exists even on freestanding compilers. */
13728 # include <limits.h>
13730 # include <assert.h>
13735 /* Override any GCC internal prototype to avoid an error.
13736 Use char because int might match the return type of a GCC
13737 builtin and then its argument prototype would still apply. */
13742 /* The GNU C library defines this for functions which it implements
13743 to always fail with ENOSYS. Some functions are actually named
13744 something starting with __ and the normal name is an alias. */
13745 #if defined __stub_dbm_open || defined __stub___dbm_open
13752 return dbm_open ();
13757 rm -f conftest.$ac_objext conftest$ac_exeext
13758 if { (ac_try="$ac_link"
13759 case "(($ac_try" in
13760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13761 *) ac_try_echo=$ac_try;;
13763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13764 (eval "$ac_link") 2>conftest.er1
13766 grep -v '^ *+' conftest.er1 >conftest.err
13768 cat conftest.err >&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); } && {
13771 test -z "$ac_c_werror_flag" ||
13772 test ! -s conftest.err
13773 } && test -s conftest$ac_exeext &&
13774 $as_test_x conftest$ac_exeext; then
13775 ac_cv_func_dbm_open=yes
13777 echo "$as_me: failed program was:" >&5
13778 sed 's/^/| /' conftest.$ac_ext >&5
13780 ac_cv_func_dbm_open=no
13783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13784 conftest$ac_exeext conftest.$ac_ext
13786 { echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
13787 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6; }
13788 if test $ac_cv_func_dbm_open = yes; then
13796 if test "$dblib" = no; then
13797 if test "${ac_cv_header_gdbm_h+set}" = set; then
13798 { echo "$as_me:$LINENO: checking for gdbm.h" >&5
13799 echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6; }
13800 if test "${ac_cv_header_gdbm_h+set}" = set; then
13801 echo $ECHO_N "(cached) $ECHO_C" >&6
13803 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
13804 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
13806 # Is the header compilable?
13807 { echo "$as_me:$LINENO: checking gdbm.h usability" >&5
13808 echo $ECHO_N "checking gdbm.h usability... $ECHO_C" >&6; }
13809 cat >conftest.$ac_ext <<_ACEOF
13812 cat confdefs.h >>conftest.$ac_ext
13813 cat >>conftest.$ac_ext <<_ACEOF
13814 /* end confdefs.h. */
13815 $ac_includes_default
13818 rm -f conftest.$ac_objext
13819 if { (ac_try="$ac_compile"
13820 case "(($ac_try" in
13821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822 *) ac_try_echo=$ac_try;;
13824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13825 (eval "$ac_compile") 2>conftest.er1
13827 grep -v '^ *+' conftest.er1 >conftest.err
13829 cat conftest.err >&5
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); } && {
13832 test -z "$ac_c_werror_flag" ||
13833 test ! -s conftest.err
13834 } && test -s conftest.$ac_objext; then
13835 ac_header_compiler=yes
13837 echo "$as_me: failed program was:" >&5
13838 sed 's/^/| /' conftest.$ac_ext >&5
13840 ac_header_compiler=no
13843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13844 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13845 echo "${ECHO_T}$ac_header_compiler" >&6; }
13847 # Is the header present?
13848 { echo "$as_me:$LINENO: checking gdbm.h presence" >&5
13849 echo $ECHO_N "checking gdbm.h presence... $ECHO_C" >&6; }
13850 cat >conftest.$ac_ext <<_ACEOF
13853 cat confdefs.h >>conftest.$ac_ext
13854 cat >>conftest.$ac_ext <<_ACEOF
13855 /* end confdefs.h. */
13858 if { (ac_try="$ac_cpp conftest.$ac_ext"
13859 case "(($ac_try" in
13860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13861 *) ac_try_echo=$ac_try;;
13863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13866 grep -v '^ *+' conftest.er1 >conftest.err
13868 cat conftest.err >&5
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); } >/dev/null && {
13871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13872 test ! -s conftest.err
13874 ac_header_preproc=yes
13876 echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13879 ac_header_preproc=no
13882 rm -f conftest.err conftest.$ac_ext
13883 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13884 echo "${ECHO_T}$ac_header_preproc" >&6; }
13886 # So? What about this header?
13887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13889 { echo "$as_me:$LINENO: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13890 echo "$as_me: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13891 { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the compiler's result" >&5
13892 echo "$as_me: WARNING: gdbm.h: proceeding with the compiler's result" >&2;}
13893 ac_header_preproc=yes
13896 { echo "$as_me:$LINENO: WARNING: gdbm.h: present but cannot be compiled" >&5
13897 echo "$as_me: WARNING: gdbm.h: present but cannot be compiled" >&2;}
13898 { echo "$as_me:$LINENO: WARNING: gdbm.h: check for missing prerequisite headers?" >&5
13899 echo "$as_me: WARNING: gdbm.h: check for missing prerequisite headers?" >&2;}
13900 { echo "$as_me:$LINENO: WARNING: gdbm.h: see the Autoconf documentation" >&5
13901 echo "$as_me: WARNING: gdbm.h: see the Autoconf documentation" >&2;}
13902 { echo "$as_me:$LINENO: WARNING: gdbm.h: section \"Present But Cannot Be Compiled\"" >&5
13903 echo "$as_me: WARNING: gdbm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13904 { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5
13905 echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;}
13906 { echo "$as_me:$LINENO: WARNING: gdbm.h: in the future, the compiler will take precedence" >&5
13907 echo "$as_me: WARNING: gdbm.h: in the future, the compiler will take precedence" >&2;}
13911 { echo "$as_me:$LINENO: checking for gdbm.h" >&5
13912 echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6; }
13913 if test "${ac_cv_header_gdbm_h+set}" = set; then
13914 echo $ECHO_N "(cached) $ECHO_C" >&6
13916 ac_cv_header_gdbm_h=$ac_header_preproc
13918 { echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
13919 echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6; }
13922 if test $ac_cv_header_gdbm_h = yes; then
13924 { echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
13925 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6; }
13926 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
13927 echo $ECHO_N "(cached) $ECHO_C" >&6
13929 ac_check_lib_save_LIBS=$LIBS
13930 LIBS="-lgdbm $LIBS"
13931 cat >conftest.$ac_ext <<_ACEOF
13934 cat confdefs.h >>conftest.$ac_ext
13935 cat >>conftest.$ac_ext <<_ACEOF
13936 /* end confdefs.h. */
13938 /* Override any GCC internal prototype to avoid an error.
13939 Use char because int might match the return type of a GCC
13940 builtin and then its argument prototype would still apply. */
13948 return gdbm_open ();
13953 rm -f conftest.$ac_objext conftest$ac_exeext
13954 if { (ac_try="$ac_link"
13955 case "(($ac_try" in
13956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13957 *) ac_try_echo=$ac_try;;
13959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13960 (eval "$ac_link") 2>conftest.er1
13962 grep -v '^ *+' conftest.er1 >conftest.err
13964 cat conftest.err >&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); } && {
13967 test -z "$ac_c_werror_flag" ||
13968 test ! -s conftest.err
13969 } && test -s conftest$ac_exeext &&
13970 $as_test_x conftest$ac_exeext; then
13971 ac_cv_lib_gdbm_gdbm_open=yes
13973 echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.$ac_ext >&5
13976 ac_cv_lib_gdbm_gdbm_open=no
13979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13980 conftest$ac_exeext conftest.$ac_ext
13981 LIBS=$ac_check_lib_save_LIBS
13983 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
13984 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6; }
13985 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
13987 SASL_DB_LIB="-lgdbm"
13999 CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
14000 SASL_DB_INC=$BDB_INCADD
14001 SASL_DB_LIB="${BDB_LIBADD}"
14009 { echo "$as_me:$LINENO: WARNING: Bad DB library implementation specified;" >&5
14010 echo "$as_me: WARNING: Bad DB library implementation specified;" >&2;}
14011 { { echo "$as_me:$LINENO: error: Use either \"berkeley\", \"gdbm\", \"ndbm\" or \"none\"" >&5
14012 echo "$as_me: error: Use either \"berkeley\", \"gdbm\", \"ndbm\" or \"none\"" >&2;}
14013 { (exit 1); exit 1; }; }
14017 LIBS="$cmu_save_LIBS"
14019 { echo "$as_me:$LINENO: checking DB library to use" >&5
14020 echo $ECHO_N "checking DB library to use... $ECHO_C" >&6; }
14021 { echo "$as_me:$LINENO: result: $dblib" >&5
14022 echo "${ECHO_T}$dblib" >&6; }
14024 SASL_DB_BACKEND="db_${dblib}.lo"
14025 SASL_DB_BACKEND_STATIC="db_${dblib}.o allockey.o"
14026 SASL_DB_BACKEND_STATIC_SRCS="../sasldb/db_${dblib}.c ../sasldb/allockey.c"
14027 SASL_DB_UTILS="saslpasswd2 sasldblistusers2"
14028 SASL_DB_MANS="saslpasswd2.8 sasldblistusers2.8"
14032 SASL_MECHS="$SASL_MECHS libsasldb.la"
14034 cat >>confdefs.h <<\_ACEOF
14040 SASL_MECHS="$SASL_MECHS libsasldb.la"
14042 cat >>confdefs.h <<\_ACEOF
14048 SASL_MECHS="$SASL_MECHS libsasldb.la"
14050 cat >>confdefs.h <<\_ACEOF
14051 #define SASL_BERKELEYDB
14056 { echo "$as_me:$LINENO: WARNING: Disabling SASL authentication database support" >&5
14057 echo "$as_me: WARNING: Disabling SASL authentication database support" >&2;}
14058 SASL_DB_BACKEND="db_none.lo"
14059 SASL_DB_BACKEND_STATIC="db_none.o"
14060 SASL_DB_BACKEND_STATIC_SRCS="../sasldb/db_none.c"
14067 if test "$enable_static" = yes; then
14068 if test "$dblib" != "none"; then
14069 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/sasldb.c $SASL_DB_BACKEND_STATIC_SRCS"
14070 SASL_STATIC_OBJS="$SASL_STATIC_OBJS sasldb.o $SASL_DB_BACKEND_STATIC"
14072 cat >>confdefs.h <<\_ACEOF
14073 #define STATIC_SASLDB
14077 SASL_STATIC_OBJS="$SASL_STATIC_OBJS $SASL_DB_BACKEND_STATIC"
14078 SASL_STATIC_SRCS="$SASL_STATIC_SRCS $SASL_DB_BACKEND_STATIC_SRCS"
14090 # Do we not install the SASL DB man pages?
14091 if test "x$SASL_DB_MANS" = "x"; then
14092 NO_SASL_DB_MANS_TRUE=
14093 NO_SASL_DB_MANS_FALSE='#'
14095 NO_SASL_DB_MANS_TRUE='#'
14096 NO_SASL_DB_MANS_FALSE=
14100 # Check whether --enable-keep_db_open was given.
14101 if test "${enable_keep_db_open+set}" = set; then
14102 enableval=$enable_keep_db_open; keep_db_open=$enableval
14108 # Disable if Berkeley DB is not used
14109 if test "$dblib" != berkeley; then
14113 if test "$keep_db_open" = yes; then
14115 cat >>confdefs.h <<\_ACEOF
14116 #define KEEP_DB_OPEN
14120 { echo "$as_me:$LINENO: checking if Berkeley DB handle is kept open in SASLDB" >&5
14121 echo $ECHO_N "checking if Berkeley DB handle is kept open in SASLDB... $ECHO_C" >&6; }
14122 { echo "$as_me:$LINENO: result: $keep_db_open" >&5
14123 echo "${ECHO_T}$keep_db_open" >&6; }
14125 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14126 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14127 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14128 echo $ECHO_N "(cached) $ECHO_C" >&6
14130 ac_check_lib_save_LIBS=$LIBS
14132 cat >conftest.$ac_ext <<_ACEOF
14135 cat confdefs.h >>conftest.$ac_ext
14136 cat >>conftest.$ac_ext <<_ACEOF
14137 /* end confdefs.h. */
14139 /* Override any GCC internal prototype to avoid an error.
14140 Use char because int might match the return type of a GCC
14141 builtin and then its argument prototype would still apply. */
14154 rm -f conftest.$ac_objext conftest$ac_exeext
14155 if { (ac_try="$ac_link"
14156 case "(($ac_try" in
14157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14158 *) ac_try_echo=$ac_try;;
14160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14161 (eval "$ac_link") 2>conftest.er1
14163 grep -v '^ *+' conftest.er1 >conftest.err
14165 cat conftest.err >&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); } && {
14168 test -z "$ac_c_werror_flag" ||
14169 test ! -s conftest.err
14170 } && test -s conftest$ac_exeext &&
14171 $as_test_x conftest$ac_exeext; then
14172 ac_cv_lib_dl_dlopen=yes
14174 echo "$as_me: failed program was:" >&5
14175 sed 's/^/| /' conftest.$ac_ext >&5
14177 ac_cv_lib_dl_dlopen=no
14180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14181 conftest$ac_exeext conftest.$ac_ext
14182 LIBS=$ac_check_lib_save_LIBS
14184 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14185 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
14186 if test $ac_cv_lib_dl_dlopen = yes; then
14196 # Check whether --with-devrandom was given.
14197 if test "${with_devrandom+set}" = set; then
14198 withval=$with_devrandom; devrandom=$withval
14200 devrandom=/dev/random
14203 { echo "$as_me:$LINENO: checking /dev/random to use" >&5
14204 echo $ECHO_N "checking /dev/random to use... $ECHO_C" >&6; }
14205 { echo "$as_me:$LINENO: result: $devrandom" >&5
14206 echo "${ECHO_T}$devrandom" >&6; }
14208 cat >>confdefs.h <<_ACEOF
14209 #define SASL_DEV_RANDOM "$devrandom"
14216 # Extract the first word of "$ac_prog", so it can be a program name with args.
14217 set dummy $ac_prog; ac_word=$2
14218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14220 if test "${ac_cv_prog_NM+set}" = set; then
14221 echo $ECHO_N "(cached) $ECHO_C" >&6
14223 if test -n "$NM"; then
14224 ac_cv_prog_NM="$NM" # Let the user override the test.
14226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14227 for as_dir in $PATH
14230 test -z "$as_dir" && as_dir=.
14231 for ac_exec_ext in '' $ac_executable_extensions; do
14232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14233 ac_cv_prog_NM="$ac_prog"
14234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14244 if test -n "$NM"; then
14245 { echo "$as_me:$LINENO: result: $NM" >&5
14246 echo "${ECHO_T}$NM" >&6; }
14248 { echo "$as_me:$LINENO: result: no" >&5
14249 echo "${ECHO_T}no" >&6; }
14253 test -n "$NM" && break
14257 { echo "$as_me:$LINENO: checking for underscore before symbols" >&5
14258 echo $ECHO_N "checking for underscore before symbols... $ECHO_C" >&6; }
14259 if test "${sasl_cv_uscore+set}" = set; then
14260 echo $ECHO_N "(cached) $ECHO_C" >&6
14263 echo "main(){int i=1;}
14264 foo(){int i=6;}" > conftest.c
14265 ${CC} -o a.out conftest.c > /dev/null
14266 if (${NM} a.out | grep _foo) > /dev/null; then
14273 { echo "$as_me:$LINENO: result: $sasl_cv_uscore" >&5
14274 echo "${ECHO_T}$sasl_cv_uscore" >&6; }
14275 rm -f conftest.c a.out
14277 if test $sasl_cv_uscore = yes; then
14278 if test $ac_cv_lib_dl_dlopen = yes ; then
14279 { echo "$as_me:$LINENO: checking whether dlsym adds the underscore for us" >&5
14280 echo $ECHO_N "checking whether dlsym adds the underscore for us... $ECHO_C" >&6; }
14281 cmu_save_LIBS="$LIBS"
14282 LIBS="$LIBS $SASL_DL_LIB"
14283 if test "${sasl_cv_dlsym_adds_uscore+set}" = set; then
14284 echo $ECHO_N "(cached) $ECHO_C" >&6
14286 if test "$cross_compiling" = yes; then
14287 { echo "$as_me:$LINENO: WARNING: cross-compiler" >&5
14288 echo "$as_me: WARNING: cross-compiler" >&2;}
14290 cat >conftest.$ac_ext <<_ACEOF
14293 cat confdefs.h >>conftest.$ac_ext
14294 cat >>conftest.$ac_ext <<_ACEOF
14295 /* end confdefs.h. */
14300 main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
14301 if(self) { ptr1=dlsym(self,"foo"); ptr2=dlsym(self,"_foo");
14302 if(ptr1 && !ptr2) exit(0); } exit(1); }
14305 rm -f conftest$ac_exeext
14306 if { (ac_try="$ac_link"
14307 case "(($ac_try" in
14308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14309 *) ac_try_echo=$ac_try;;
14311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14312 (eval "$ac_link") 2>&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14316 { (case "(($ac_try" in
14317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14318 *) ac_try_echo=$ac_try;;
14320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14321 (eval "$ac_try") 2>&5
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; }; then
14325 sasl_cv_dlsym_adds_uscore=yes
14327 echo "$as_me: program exited with status $ac_status" >&5
14328 echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.$ac_ext >&5
14331 ( exit $ac_status )
14332 sasl_cv_dlsym_adds_uscore=no
14334 cat >>confdefs.h <<\_ACEOF
14335 #define DLSYM_NEEDS_UNDERSCORE
14339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14345 LIBS="$cmu_save_LIBS"
14346 { echo "$as_me:$LINENO: result: $sasl_cv_dlsym_adds_uscore" >&5
14347 echo "${ECHO_T}$sasl_cv_dlsym_adds_uscore" >&6; }
14352 for ac_func in syslog
14354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14355 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14357 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14358 echo $ECHO_N "(cached) $ECHO_C" >&6
14360 cat >conftest.$ac_ext <<_ACEOF
14363 cat confdefs.h >>conftest.$ac_ext
14364 cat >>conftest.$ac_ext <<_ACEOF
14365 /* end confdefs.h. */
14366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14368 #define $ac_func innocuous_$ac_func
14370 /* System header to define __stub macros and hopefully few prototypes,
14371 which can conflict with char $ac_func (); below.
14372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14373 <limits.h> exists even on freestanding compilers. */
14376 # include <limits.h>
14378 # include <assert.h>
14383 /* Override any GCC internal prototype to avoid an error.
14384 Use char because int might match the return type of a GCC
14385 builtin and then its argument prototype would still apply. */
14390 /* The GNU C library defines this for functions which it implements
14391 to always fail with ENOSYS. Some functions are actually named
14392 something starting with __ and the normal name is an alias. */
14393 #if defined __stub_$ac_func || defined __stub___$ac_func
14400 return $ac_func ();
14405 rm -f conftest.$ac_objext conftest$ac_exeext
14406 if { (ac_try="$ac_link"
14407 case "(($ac_try" in
14408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14409 *) ac_try_echo=$ac_try;;
14411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14412 (eval "$ac_link") 2>conftest.er1
14414 grep -v '^ *+' conftest.er1 >conftest.err
14416 cat conftest.err >&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); } && {
14419 test -z "$ac_c_werror_flag" ||
14420 test ! -s conftest.err
14421 } && test -s conftest$ac_exeext &&
14422 $as_test_x conftest$ac_exeext; then
14423 eval "$as_ac_var=yes"
14425 echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.$ac_ext >&5
14428 eval "$as_ac_var=no"
14431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14432 conftest$ac_exeext conftest.$ac_ext
14434 ac_res=`eval echo '${'$as_ac_var'}'`
14435 { echo "$as_me:$LINENO: result: $ac_res" >&5
14436 echo "${ECHO_T}$ac_res" >&6; }
14437 if test `eval echo '${'$as_ac_var'}'` = yes; then
14438 cat >>confdefs.h <<_ACEOF
14439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14447 # Check whether --with-pam was given.
14448 if test "${with_pam+set}" = set; then
14449 withval=$with_pam; with_pam=$withval
14454 if test "$with_pam" != no; then
14455 if test -d $with_pam; then
14456 CPPFLAGS="$CPPFLAGS -I${with_pam}/include"
14457 LDFLAGS="$LDFLAGS -L${with_pam}/lib"
14461 for ac_header in security/pam_appl.h pam/pam_appl.h
14463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14468 echo $ECHO_N "(cached) $ECHO_C" >&6
14470 ac_res=`eval echo '${'$as_ac_Header'}'`
14471 { echo "$as_me:$LINENO: result: $ac_res" >&5
14472 echo "${ECHO_T}$ac_res" >&6; }
14474 # Is the header compilable?
14475 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14477 cat >conftest.$ac_ext <<_ACEOF
14480 cat confdefs.h >>conftest.$ac_ext
14481 cat >>conftest.$ac_ext <<_ACEOF
14482 /* end confdefs.h. */
14483 $ac_includes_default
14484 #include <$ac_header>
14486 rm -f conftest.$ac_objext
14487 if { (ac_try="$ac_compile"
14488 case "(($ac_try" in
14489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14490 *) ac_try_echo=$ac_try;;
14492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14493 (eval "$ac_compile") 2>conftest.er1
14495 grep -v '^ *+' conftest.er1 >conftest.err
14497 cat conftest.err >&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); } && {
14500 test -z "$ac_c_werror_flag" ||
14501 test ! -s conftest.err
14502 } && test -s conftest.$ac_objext; then
14503 ac_header_compiler=yes
14505 echo "$as_me: failed program was:" >&5
14506 sed 's/^/| /' conftest.$ac_ext >&5
14508 ac_header_compiler=no
14511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14513 echo "${ECHO_T}$ac_header_compiler" >&6; }
14515 # Is the header present?
14516 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14518 cat >conftest.$ac_ext <<_ACEOF
14521 cat confdefs.h >>conftest.$ac_ext
14522 cat >>conftest.$ac_ext <<_ACEOF
14523 /* end confdefs.h. */
14524 #include <$ac_header>
14526 if { (ac_try="$ac_cpp conftest.$ac_ext"
14527 case "(($ac_try" in
14528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14529 *) ac_try_echo=$ac_try;;
14531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14534 grep -v '^ *+' conftest.er1 >conftest.err
14536 cat conftest.err >&5
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); } >/dev/null && {
14539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14540 test ! -s conftest.err
14542 ac_header_preproc=yes
14544 echo "$as_me: failed program was:" >&5
14545 sed 's/^/| /' conftest.$ac_ext >&5
14547 ac_header_preproc=no
14550 rm -f conftest.err conftest.$ac_ext
14551 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14552 echo "${ECHO_T}$ac_header_preproc" >&6; }
14554 # So? What about this header?
14555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14561 ac_header_preproc=yes
14564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14567 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14571 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14579 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14582 echo $ECHO_N "(cached) $ECHO_C" >&6
14584 eval "$as_ac_Header=\$ac_header_preproc"
14586 ac_res=`eval echo '${'$as_ac_Header'}'`
14587 { echo "$as_me:$LINENO: result: $ac_res" >&5
14588 echo "${ECHO_T}$ac_res" >&6; }
14591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14592 cat >>confdefs.h <<_ACEOF
14593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14600 cmu_save_LIBS="$LIBS"
14601 { echo "$as_me:$LINENO: checking for pam_start" >&5
14602 echo $ECHO_N "checking for pam_start... $ECHO_C" >&6; }
14603 if test "${ac_cv_func_pam_start+set}" = set; then
14604 echo $ECHO_N "(cached) $ECHO_C" >&6
14606 cat >conftest.$ac_ext <<_ACEOF
14609 cat confdefs.h >>conftest.$ac_ext
14610 cat >>conftest.$ac_ext <<_ACEOF
14611 /* end confdefs.h. */
14612 /* Define pam_start to an innocuous variant, in case <limits.h> declares pam_start.
14613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14614 #define pam_start innocuous_pam_start
14616 /* System header to define __stub macros and hopefully few prototypes,
14617 which can conflict with char pam_start (); below.
14618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14619 <limits.h> exists even on freestanding compilers. */
14622 # include <limits.h>
14624 # include <assert.h>
14629 /* Override any GCC internal prototype to avoid an error.
14630 Use char because int might match the return type of a GCC
14631 builtin and then its argument prototype would still apply. */
14636 /* The GNU C library defines this for functions which it implements
14637 to always fail with ENOSYS. Some functions are actually named
14638 something starting with __ and the normal name is an alias. */
14639 #if defined __stub_pam_start || defined __stub___pam_start
14646 return pam_start ();
14651 rm -f conftest.$ac_objext conftest$ac_exeext
14652 if { (ac_try="$ac_link"
14653 case "(($ac_try" in
14654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14655 *) ac_try_echo=$ac_try;;
14657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14658 (eval "$ac_link") 2>conftest.er1
14660 grep -v '^ *+' conftest.er1 >conftest.err
14662 cat conftest.err >&5
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); } && {
14665 test -z "$ac_c_werror_flag" ||
14666 test ! -s conftest.err
14667 } && test -s conftest$ac_exeext &&
14668 $as_test_x conftest$ac_exeext; then
14669 ac_cv_func_pam_start=yes
14671 echo "$as_me: failed program was:" >&5
14672 sed 's/^/| /' conftest.$ac_ext >&5
14674 ac_cv_func_pam_start=no
14677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14678 conftest$ac_exeext conftest.$ac_ext
14680 { echo "$as_me:$LINENO: result: $ac_cv_func_pam_start" >&5
14681 echo "${ECHO_T}$ac_cv_func_pam_start" >&6; }
14682 if test $ac_cv_func_pam_start = yes; then
14686 cat >conftest.$ac_ext <<_ACEOF
14689 cat confdefs.h >>conftest.$ac_ext
14690 cat >>conftest.$ac_ext <<_ACEOF
14691 /* end confdefs.h. */
14693 #include <sys/types.h>
14694 #ifdef HAVE_PAM_PAM_APPL_H
14695 #include <pam/pam_appl.h>
14697 #ifdef HAVE_SECURITY_PAM_H
14698 #include <security/pam_appl.h>
14704 const char *service="foo";
14705 const char *user="bar";
14706 pam_handle_t *pamh;
14707 struct pam_conv *conv;
14709 baz = pam_start(service, user, conv, &pamh);
14716 rm -f conftest.$ac_objext conftest$ac_exeext
14717 if { (ac_try="$ac_link"
14718 case "(($ac_try" in
14719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14720 *) ac_try_echo=$ac_try;;
14722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14723 (eval "$ac_link") 2>conftest.er1
14725 grep -v '^ *+' conftest.er1 >conftest.err
14727 cat conftest.err >&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); } && {
14730 test -z "$ac_c_werror_flag" ||
14731 test ! -s conftest.err
14732 } && test -s conftest$ac_exeext &&
14733 $as_test_x conftest$ac_exeext; then
14736 echo "$as_me: failed program was:" >&5
14737 sed 's/^/| /' conftest.$ac_ext >&5
14742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14743 conftest$ac_exeext conftest.$ac_ext
14747 LIBS="$cmu_save_LIBS $LIBPAM"
14751 # Check whether --with-saslauthd was given.
14752 if test "${with_saslauthd+set}" = set; then
14753 withval=$with_saslauthd; with_saslauthd=$withval
14758 if test "$with_saslauthd" != no; then
14759 if test "$with_saslauthd" = yes; then
14760 with_saslauthd="/var/state/saslauthd"
14763 cat >>confdefs.h <<\_ACEOF
14764 #define HAVE_SASLAUTHD
14768 cat >>confdefs.h <<_ACEOF
14769 #define PATH_SASLAUTHD_RUNDIR "$with_saslauthd"
14773 if test "$with_saslauthd" != no; then
14775 SASLAUTHD_FALSE='#'
14781 { echo "$as_me:$LINENO: checking if I should include saslauthd" >&5
14782 echo $ECHO_N "checking if I should include saslauthd... $ECHO_C" >&6; }
14783 { echo "$as_me:$LINENO: result: $with_saslauthd" >&5
14784 echo "${ECHO_T}$with_saslauthd" >&6; }
14787 # Check whether --with-authdaemond was given.
14788 if test "${with_authdaemond+set}" = set; then
14789 withval=$with_authdaemond; with_authdaemon=$withval
14791 with_authdaemon=yes
14794 if test "$with_authdaemon" != no; then
14795 if test "$with_authdaemon" = yes; then
14796 with_authdaemon="/dev/null"
14799 cat >>confdefs.h <<\_ACEOF
14800 #define HAVE_AUTHDAEMON
14804 cat >>confdefs.h <<_ACEOF
14805 #define PATH_AUTHDAEMON_SOCKET "$with_authdaemon"
14809 { echo "$as_me:$LINENO: checking to include Courier authdaemond support" >&5
14810 echo $ECHO_N "checking to include Courier authdaemond support... $ECHO_C" >&6; }
14811 { echo "$as_me:$LINENO: result: $with_authdaemon" >&5
14812 echo "${ECHO_T}$with_authdaemon" >&6; }
14815 # Check whether --with-pwcheck was given.
14816 if test "${with_pwcheck+set}" = set; then
14817 withval=$with_pwcheck; with_pwcheck=$withval
14822 if test "$with_pwcheck" != no; then
14823 if test "$with_pwcheck" = yes; then
14824 with_pwcheck=/var/pwcheck
14827 cat >>confdefs.h <<\_ACEOF
14828 #define HAVE_PWCHECK
14832 cat >>confdefs.h <<_ACEOF
14833 #define PWCHECKDIR "$with_pwcheck"
14836 { echo "$as_me:$LINENO: checking for getspnam" >&5
14837 echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; }
14838 if test "${ac_cv_func_getspnam+set}" = set; then
14839 echo $ECHO_N "(cached) $ECHO_C" >&6
14841 cat >conftest.$ac_ext <<_ACEOF
14844 cat confdefs.h >>conftest.$ac_ext
14845 cat >>conftest.$ac_ext <<_ACEOF
14846 /* end confdefs.h. */
14847 /* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
14848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14849 #define getspnam innocuous_getspnam
14851 /* System header to define __stub macros and hopefully few prototypes,
14852 which can conflict with char getspnam (); below.
14853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14854 <limits.h> exists even on freestanding compilers. */
14857 # include <limits.h>
14859 # include <assert.h>
14864 /* Override any GCC internal prototype to avoid an error.
14865 Use char because int might match the return type of a GCC
14866 builtin and then its argument prototype would still apply. */
14871 /* The GNU C library defines this for functions which it implements
14872 to always fail with ENOSYS. Some functions are actually named
14873 something starting with __ and the normal name is an alias. */
14874 #if defined __stub_getspnam || defined __stub___getspnam
14881 return getspnam ();
14886 rm -f conftest.$ac_objext conftest$ac_exeext
14887 if { (ac_try="$ac_link"
14888 case "(($ac_try" in
14889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14890 *) ac_try_echo=$ac_try;;
14892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14893 (eval "$ac_link") 2>conftest.er1
14895 grep -v '^ *+' conftest.er1 >conftest.err
14897 cat conftest.err >&5
14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); } && {
14900 test -z "$ac_c_werror_flag" ||
14901 test ! -s conftest.err
14902 } && test -s conftest$ac_exeext &&
14903 $as_test_x conftest$ac_exeext; then
14904 ac_cv_func_getspnam=yes
14906 echo "$as_me: failed program was:" >&5
14907 sed 's/^/| /' conftest.$ac_ext >&5
14909 ac_cv_func_getspnam=no
14912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14913 conftest$ac_exeext conftest.$ac_ext
14915 { echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
14916 echo "${ECHO_T}$ac_cv_func_getspnam" >&6; }
14917 if test $ac_cv_func_getspnam = yes; then
14918 PWCHECKMETH="getspnam"
14920 PWCHECKMETH="getpwnam"
14925 if test "$with_pwcheck" != no; then
14933 { echo "$as_me:$LINENO: checking if I should include pwcheck" >&5
14934 echo $ECHO_N "checking if I should include pwcheck... $ECHO_C" >&6; }
14935 { echo "$as_me:$LINENO: result: $with_pwcheck" >&5
14936 echo "${ECHO_T}$with_pwcheck" >&6; }
14939 # Check whether --with-ipctype was given.
14940 if test "${with_ipctype+set}" = set; then
14941 withval=$with_ipctype; with_ipctype=$withval
14943 with_ipctype="unix"
14946 IPCTYPE=$with_ipctype
14949 if test "$with_ipctype" = "doors"; then
14952 cat >>confdefs.h <<\_ACEOF
14959 # Check whether --enable-alwaystrue was given.
14960 if test "${enable_alwaystrue+set}" = set; then
14961 enableval=$enable_alwaystrue; enable_alwaystrue=$enableval
14963 enable_alwaystrue=no
14966 if test "$enable_alwaystrue" = yes; then
14968 cat >>confdefs.h <<\_ACEOF
14969 #define HAVE_ALWAYSTRUE
14973 { echo "$as_me:$LINENO: checking if I should include the alwaystrue verifier" >&5
14974 echo $ECHO_N "checking if I should include the alwaystrue verifier... $ECHO_C" >&6; }
14975 { echo "$as_me:$LINENO: result: $enable_alwaystrue" >&5
14976 echo "${ECHO_T}$enable_alwaystrue" >&6; }
14978 # Check whether --enable-checkapop was given.
14979 if test "${enable_checkapop+set}" = set; then
14980 enableval=$enable_checkapop; checkapop=$enableval
14986 { echo "$as_me:$LINENO: checking if we should enable sasl_checkapop" >&5
14987 echo $ECHO_N "checking if we should enable sasl_checkapop... $ECHO_C" >&6; }
14988 if test "$checkapop" != no; then
14989 { echo "$as_me:$LINENO: result: enabled" >&5
14990 echo "${ECHO_T}enabled" >&6; }
14992 cat >>confdefs.h <<\_ACEOF
14993 #define DO_SASL_CHECKAPOP
14997 { echo "$as_me:$LINENO: result: disabled" >&5
14998 echo "${ECHO_T}disabled" >&6; }
15001 # Check whether --enable-cram was given.
15002 if test "${enable_cram+set}" = set; then
15003 enableval=$enable_cram; cram=$enableval
15009 { echo "$as_me:$LINENO: checking CRAM-MD5" >&5
15010 echo $ECHO_N "checking CRAM-MD5... $ECHO_C" >&6; }
15011 if test "$cram" != no; then
15012 { echo "$as_me:$LINENO: result: enabled" >&5
15013 echo "${ECHO_T}enabled" >&6; }
15014 SASL_MECHS="$SASL_MECHS libcrammd5.la"
15015 if test "$enable_static" = yes; then
15016 SASL_STATIC_OBJS="$SASL_STATIC_OBJS cram.o"
15017 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/cram.c"
15019 cat >>confdefs.h <<\_ACEOF
15020 #define STATIC_CRAMMD5
15025 { echo "$as_me:$LINENO: result: disabled" >&5
15026 echo "${ECHO_T}disabled" >&6; }
15030 # Check whether --with-lib-subdir was given.
15031 if test "${with_lib_subdir+set}" = set; then
15032 withval=$with_lib_subdir;
15035 { echo "$as_me:$LINENO: checking for long" >&5
15036 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
15037 if test "${ac_cv_type_long+set}" = set; then
15038 echo $ECHO_N "(cached) $ECHO_C" >&6
15040 cat >conftest.$ac_ext <<_ACEOF
15043 cat confdefs.h >>conftest.$ac_ext
15044 cat >>conftest.$ac_ext <<_ACEOF
15045 /* end confdefs.h. */
15046 $ac_includes_default
15047 typedef long ac__type_new_;
15051 if ((ac__type_new_ *) 0)
15053 if (sizeof (ac__type_new_))
15059 rm -f conftest.$ac_objext
15060 if { (ac_try="$ac_compile"
15061 case "(($ac_try" in
15062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15063 *) ac_try_echo=$ac_try;;
15065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15066 (eval "$ac_compile") 2>conftest.er1
15068 grep -v '^ *+' conftest.er1 >conftest.err
15070 cat conftest.err >&5
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); } && {
15073 test -z "$ac_c_werror_flag" ||
15074 test ! -s conftest.err
15075 } && test -s conftest.$ac_objext; then
15076 ac_cv_type_long=yes
15078 echo "$as_me: failed program was:" >&5
15079 sed 's/^/| /' conftest.$ac_ext >&5
15084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15086 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15087 echo "${ECHO_T}$ac_cv_type_long" >&6; }
15089 # The cast to long int works around a bug in the HP C Compiler
15090 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15091 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15092 # This bug is HP SR number 8606223364.
15093 { echo "$as_me:$LINENO: checking size of long" >&5
15094 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
15095 if test "${ac_cv_sizeof_long+set}" = set; then
15096 echo $ECHO_N "(cached) $ECHO_C" >&6
15098 if test "$cross_compiling" = yes; then
15099 # Depending upon the size, compute the lo and hi bounds.
15100 cat >conftest.$ac_ext <<_ACEOF
15103 cat confdefs.h >>conftest.$ac_ext
15104 cat >>conftest.$ac_ext <<_ACEOF
15105 /* end confdefs.h. */
15106 $ac_includes_default
15107 typedef long ac__type_sizeof_;
15111 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15118 rm -f conftest.$ac_objext
15119 if { (ac_try="$ac_compile"
15120 case "(($ac_try" in
15121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122 *) ac_try_echo=$ac_try;;
15124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15125 (eval "$ac_compile") 2>conftest.er1
15127 grep -v '^ *+' conftest.er1 >conftest.err
15129 cat conftest.err >&5
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); } && {
15132 test -z "$ac_c_werror_flag" ||
15133 test ! -s conftest.err
15134 } && test -s conftest.$ac_objext; then
15137 cat >conftest.$ac_ext <<_ACEOF
15140 cat confdefs.h >>conftest.$ac_ext
15141 cat >>conftest.$ac_ext <<_ACEOF
15142 /* end confdefs.h. */
15143 $ac_includes_default
15144 typedef long ac__type_sizeof_;
15148 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15155 rm -f conftest.$ac_objext
15156 if { (ac_try="$ac_compile"
15157 case "(($ac_try" in
15158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159 *) ac_try_echo=$ac_try;;
15161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162 (eval "$ac_compile") 2>conftest.er1
15164 grep -v '^ *+' conftest.er1 >conftest.err
15166 cat conftest.err >&5
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); } && {
15169 test -z "$ac_c_werror_flag" ||
15170 test ! -s conftest.err
15171 } && test -s conftest.$ac_objext; then
15172 ac_hi=$ac_mid; break
15174 echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15177 ac_lo=`expr $ac_mid + 1`
15178 if test $ac_lo -le $ac_mid; then
15182 ac_mid=`expr 2 '*' $ac_mid + 1`
15185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15188 echo "$as_me: failed program was:" >&5
15189 sed 's/^/| /' conftest.$ac_ext >&5
15191 cat >conftest.$ac_ext <<_ACEOF
15194 cat confdefs.h >>conftest.$ac_ext
15195 cat >>conftest.$ac_ext <<_ACEOF
15196 /* end confdefs.h. */
15197 $ac_includes_default
15198 typedef long ac__type_sizeof_;
15202 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15209 rm -f conftest.$ac_objext
15210 if { (ac_try="$ac_compile"
15211 case "(($ac_try" in
15212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213 *) ac_try_echo=$ac_try;;
15215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15216 (eval "$ac_compile") 2>conftest.er1
15218 grep -v '^ *+' conftest.er1 >conftest.err
15220 cat conftest.err >&5
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); } && {
15223 test -z "$ac_c_werror_flag" ||
15224 test ! -s conftest.err
15225 } && test -s conftest.$ac_objext; then
15228 cat >conftest.$ac_ext <<_ACEOF
15231 cat confdefs.h >>conftest.$ac_ext
15232 cat >>conftest.$ac_ext <<_ACEOF
15233 /* end confdefs.h. */
15234 $ac_includes_default
15235 typedef long ac__type_sizeof_;
15239 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15246 rm -f conftest.$ac_objext
15247 if { (ac_try="$ac_compile"
15248 case "(($ac_try" in
15249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15250 *) ac_try_echo=$ac_try;;
15252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15253 (eval "$ac_compile") 2>conftest.er1
15255 grep -v '^ *+' conftest.er1 >conftest.err
15257 cat conftest.err >&5
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); } && {
15260 test -z "$ac_c_werror_flag" ||
15261 test ! -s conftest.err
15262 } && test -s conftest.$ac_objext; then
15263 ac_lo=$ac_mid; break
15265 echo "$as_me: failed program was:" >&5
15266 sed 's/^/| /' conftest.$ac_ext >&5
15268 ac_hi=`expr '(' $ac_mid ')' - 1`
15269 if test $ac_mid -le $ac_hi; then
15273 ac_mid=`expr 2 '*' $ac_mid`
15276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15279 echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15289 # Binary search between lo and hi bounds.
15290 while test "x$ac_lo" != "x$ac_hi"; do
15291 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15292 cat >conftest.$ac_ext <<_ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h. */
15298 $ac_includes_default
15299 typedef long ac__type_sizeof_;
15303 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15310 rm -f conftest.$ac_objext
15311 if { (ac_try="$ac_compile"
15312 case "(($ac_try" in
15313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314 *) ac_try_echo=$ac_try;;
15316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15317 (eval "$ac_compile") 2>conftest.er1
15319 grep -v '^ *+' conftest.er1 >conftest.err
15321 cat conftest.err >&5
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); } && {
15324 test -z "$ac_c_werror_flag" ||
15325 test ! -s conftest.err
15326 } && test -s conftest.$ac_objext; then
15329 echo "$as_me: failed program was:" >&5
15330 sed 's/^/| /' conftest.$ac_ext >&5
15332 ac_lo=`expr '(' $ac_mid ')' + 1`
15335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15338 ?*) ac_cv_sizeof_long=$ac_lo;;
15339 '') if test "$ac_cv_type_long" = yes; then
15340 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
15341 See \`config.log' for more details." >&5
15342 echo "$as_me: error: cannot compute sizeof (long)
15343 See \`config.log' for more details." >&2;}
15344 { (exit 77); exit 77; }; }
15346 ac_cv_sizeof_long=0
15350 cat >conftest.$ac_ext <<_ACEOF
15353 cat confdefs.h >>conftest.$ac_ext
15354 cat >>conftest.$ac_ext <<_ACEOF
15355 /* end confdefs.h. */
15356 $ac_includes_default
15357 typedef long ac__type_sizeof_;
15358 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15359 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15361 #include <stdlib.h>
15366 FILE *f = fopen ("conftest.val", "w");
15369 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15371 long int i = longval ();
15372 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15374 fprintf (f, "%ld\n", i);
15378 unsigned long int i = ulongval ();
15379 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15381 fprintf (f, "%lu\n", i);
15383 return ferror (f) || fclose (f) != 0;
15389 rm -f conftest$ac_exeext
15390 if { (ac_try="$ac_link"
15391 case "(($ac_try" in
15392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393 *) ac_try_echo=$ac_try;;
15395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15396 (eval "$ac_link") 2>&5
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15400 { (case "(($ac_try" in
15401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402 *) ac_try_echo=$ac_try;;
15404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15405 (eval "$ac_try") 2>&5
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); }; }; then
15409 ac_cv_sizeof_long=`cat conftest.val`
15411 echo "$as_me: program exited with status $ac_status" >&5
15412 echo "$as_me: failed program was:" >&5
15413 sed 's/^/| /' conftest.$ac_ext >&5
15415 ( exit $ac_status )
15416 if test "$ac_cv_type_long" = yes; then
15417 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
15418 See \`config.log' for more details." >&5
15419 echo "$as_me: error: cannot compute sizeof (long)
15420 See \`config.log' for more details." >&2;}
15421 { (exit 77); exit 77; }; }
15423 ac_cv_sizeof_long=0
15426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15430 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15431 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
15435 cat >>confdefs.h <<_ACEOF
15436 #define SIZEOF_LONG $ac_cv_sizeof_long
15440 { echo "$as_me:$LINENO: checking what directory libraries are found in" >&5
15441 echo $ECHO_N "checking what directory libraries are found in... $ECHO_C" >&6; }
15442 if test "${ac_cv_cmu_lib_subdir+set}" = set; then
15443 echo $ECHO_N "(cached) $ECHO_C" >&6
15445 test "X$with_lib_subdir" = "Xyes" && with_lib_subdir=
15446 test "X$with_lib_subdir" = "Xno" && with_lib_subdir=
15447 if test "X$with_lib_subdir" = "X" ; then
15448 ac_cv_cmu_lib_subdir=lib
15449 if test $ac_cv_sizeof_long -eq 4 ; then
15450 test -d /usr/lib32 && ac_cv_cmu_lib_subdir=lib32
15452 if test $ac_cv_sizeof_long -eq 8 ; then
15453 test -d /usr/lib64 && ac_cv_cmu_lib_subdir=lib64
15456 ac_cv_cmu_lib_subdir=$with_lib_subdir
15459 { echo "$as_me:$LINENO: result: $ac_cv_cmu_lib_subdir" >&5
15460 echo "${ECHO_T}$ac_cv_cmu_lib_subdir" >&6; }
15461 CMU_LIB_SUBDIR=$ac_cv_cmu_lib_subdir
15467 # Check whether --with-openssl was given.
15468 if test "${with_openssl+set}" = set; then
15469 withval=$with_openssl; with_openssl=$withval
15475 save_CPPFLAGS=$CPPFLAGS
15476 save_LDFLAGS=$LDFLAGS
15478 if test -d $with_openssl; then
15479 CPPFLAGS="${CPPFLAGS} -I${with_openssl}/include"
15481 # this is CMU ADD LIBPATH
15482 if test "$andrew_runpath_switch" = "none" ; then
15483 LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
15485 LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR $andrew_runpath_switch${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
15490 case "$with_openssl" in
15492 with_openssl="no";;
15495 { echo "$as_me:$LINENO: checking for RSAPublicEncrypt in -lrsaref" >&5
15496 echo $ECHO_N "checking for RSAPublicEncrypt in -lrsaref... $ECHO_C" >&6; }
15497 if test "${ac_cv_lib_rsaref_RSAPublicEncrypt+set}" = set; then
15498 echo $ECHO_N "(cached) $ECHO_C" >&6
15500 ac_check_lib_save_LIBS=$LIBS
15501 LIBS="-lrsaref $LIBS"
15502 cat >conftest.$ac_ext <<_ACEOF
15505 cat confdefs.h >>conftest.$ac_ext
15506 cat >>conftest.$ac_ext <<_ACEOF
15507 /* end confdefs.h. */
15509 /* Override any GCC internal prototype to avoid an error.
15510 Use char because int might match the return type of a GCC
15511 builtin and then its argument prototype would still apply. */
15515 char RSAPublicEncrypt ();
15519 return RSAPublicEncrypt ();
15524 rm -f conftest.$ac_objext conftest$ac_exeext
15525 if { (ac_try="$ac_link"
15526 case "(($ac_try" in
15527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15528 *) ac_try_echo=$ac_try;;
15530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15531 (eval "$ac_link") 2>conftest.er1
15533 grep -v '^ *+' conftest.er1 >conftest.err
15535 cat conftest.err >&5
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); } && {
15538 test -z "$ac_c_werror_flag" ||
15539 test ! -s conftest.err
15540 } && test -s conftest$ac_exeext &&
15541 $as_test_x conftest$ac_exeext; then
15542 ac_cv_lib_rsaref_RSAPublicEncrypt=yes
15544 echo "$as_me: failed program was:" >&5
15545 sed 's/^/| /' conftest.$ac_ext >&5
15547 ac_cv_lib_rsaref_RSAPublicEncrypt=no
15550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15551 conftest$ac_exeext conftest.$ac_ext
15552 LIBS=$ac_check_lib_save_LIBS
15554 { echo "$as_me:$LINENO: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5
15555 echo "${ECHO_T}$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6; }
15556 if test $ac_cv_lib_rsaref_RSAPublicEncrypt = yes; then
15557 cmu_have_rsaref=yes;
15558 { echo "$as_me:$LINENO: checking for RSAPublicEncrypt in -lRSAglue" >&5
15559 echo $ECHO_N "checking for RSAPublicEncrypt in -lRSAglue... $ECHO_C" >&6; }
15560 if test "${ac_cv_lib_RSAglue_RSAPublicEncrypt+set}" = set; then
15561 echo $ECHO_N "(cached) $ECHO_C" >&6
15563 ac_check_lib_save_LIBS=$LIBS
15564 LIBS="-lRSAglue $LIBS"
15565 cat >conftest.$ac_ext <<_ACEOF
15568 cat confdefs.h >>conftest.$ac_ext
15569 cat >>conftest.$ac_ext <<_ACEOF
15570 /* end confdefs.h. */
15572 /* Override any GCC internal prototype to avoid an error.
15573 Use char because int might match the return type of a GCC
15574 builtin and then its argument prototype would still apply. */
15578 char RSAPublicEncrypt ();
15582 return RSAPublicEncrypt ();
15587 rm -f conftest.$ac_objext conftest$ac_exeext
15588 if { (ac_try="$ac_link"
15589 case "(($ac_try" in
15590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15591 *) ac_try_echo=$ac_try;;
15593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15594 (eval "$ac_link") 2>conftest.er1
15596 grep -v '^ *+' conftest.er1 >conftest.err
15598 cat conftest.err >&5
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); } && {
15601 test -z "$ac_c_werror_flag" ||
15602 test ! -s conftest.err
15603 } && test -s conftest$ac_exeext &&
15604 $as_test_x conftest$ac_exeext; then
15605 ac_cv_lib_RSAglue_RSAPublicEncrypt=yes
15607 echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.$ac_ext >&5
15610 ac_cv_lib_RSAglue_RSAPublicEncrypt=no
15613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15614 conftest$ac_exeext conftest.$ac_ext
15615 LIBS=$ac_check_lib_save_LIBS
15617 { echo "$as_me:$LINENO: result: $ac_cv_lib_RSAglue_RSAPublicEncrypt" >&5
15618 echo "${ECHO_T}$ac_cv_lib_RSAglue_RSAPublicEncrypt" >&6; }
15619 if test $ac_cv_lib_RSAglue_RSAPublicEncrypt = yes; then
15620 LIB_RSAREF="-lRSAglue -lrsaref"
15622 LIB_RSAREF="-lrsaref"
15630 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
15631 { echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
15632 echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6; }
15633 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
15634 echo $ECHO_N "(cached) $ECHO_C" >&6
15636 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
15637 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6; }
15639 # Is the header compilable?
15640 { echo "$as_me:$LINENO: checking openssl/evp.h usability" >&5
15641 echo $ECHO_N "checking openssl/evp.h usability... $ECHO_C" >&6; }
15642 cat >conftest.$ac_ext <<_ACEOF
15645 cat confdefs.h >>conftest.$ac_ext
15646 cat >>conftest.$ac_ext <<_ACEOF
15647 /* end confdefs.h. */
15648 $ac_includes_default
15649 #include <openssl/evp.h>
15651 rm -f conftest.$ac_objext
15652 if { (ac_try="$ac_compile"
15653 case "(($ac_try" in
15654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15655 *) ac_try_echo=$ac_try;;
15657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15658 (eval "$ac_compile") 2>conftest.er1
15660 grep -v '^ *+' conftest.er1 >conftest.err
15662 cat conftest.err >&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); } && {
15665 test -z "$ac_c_werror_flag" ||
15666 test ! -s conftest.err
15667 } && test -s conftest.$ac_objext; then
15668 ac_header_compiler=yes
15670 echo "$as_me: failed program was:" >&5
15671 sed 's/^/| /' conftest.$ac_ext >&5
15673 ac_header_compiler=no
15676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15677 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15678 echo "${ECHO_T}$ac_header_compiler" >&6; }
15680 # Is the header present?
15681 { echo "$as_me:$LINENO: checking openssl/evp.h presence" >&5
15682 echo $ECHO_N "checking openssl/evp.h presence... $ECHO_C" >&6; }
15683 cat >conftest.$ac_ext <<_ACEOF
15686 cat confdefs.h >>conftest.$ac_ext
15687 cat >>conftest.$ac_ext <<_ACEOF
15688 /* end confdefs.h. */
15689 #include <openssl/evp.h>
15691 if { (ac_try="$ac_cpp conftest.$ac_ext"
15692 case "(($ac_try" in
15693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15694 *) ac_try_echo=$ac_try;;
15696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15699 grep -v '^ *+' conftest.er1 >conftest.err
15701 cat conftest.err >&5
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); } >/dev/null && {
15704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15705 test ! -s conftest.err
15707 ac_header_preproc=yes
15709 echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.$ac_ext >&5
15712 ac_header_preproc=no
15715 rm -f conftest.err conftest.$ac_ext
15716 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15717 echo "${ECHO_T}$ac_header_preproc" >&6; }
15719 # So? What about this header?
15720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15722 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&5
15723 echo "$as_me: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15724 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the compiler's result" >&5
15725 echo "$as_me: WARNING: openssl/evp.h: proceeding with the compiler's result" >&2;}
15726 ac_header_preproc=yes
15729 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: present but cannot be compiled" >&5
15730 echo "$as_me: WARNING: openssl/evp.h: present but cannot be compiled" >&2;}
15731 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: check for missing prerequisite headers?" >&5
15732 echo "$as_me: WARNING: openssl/evp.h: check for missing prerequisite headers?" >&2;}
15733 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: see the Autoconf documentation" >&5
15734 echo "$as_me: WARNING: openssl/evp.h: see the Autoconf documentation" >&2;}
15735 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: section \"Present But Cannot Be Compiled\"" >&5
15736 echo "$as_me: WARNING: openssl/evp.h: section \"Present But Cannot Be Compiled\"" >&2;}
15737 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&5
15738 echo "$as_me: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&2;}
15739 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: in the future, the compiler will take precedence" >&5
15740 echo "$as_me: WARNING: openssl/evp.h: in the future, the compiler will take precedence" >&2;}
15744 { echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
15745 echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6; }
15746 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
15747 echo $ECHO_N "(cached) $ECHO_C" >&6
15749 ac_cv_header_openssl_evp_h=$ac_header_preproc
15751 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
15752 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6; }
15755 if test $ac_cv_header_openssl_evp_h = yes; then
15757 { echo "$as_me:$LINENO: checking for EVP_DigestInit in -lcrypto" >&5
15758 echo $ECHO_N "checking for EVP_DigestInit in -lcrypto... $ECHO_C" >&6; }
15759 if test "${ac_cv_lib_crypto_EVP_DigestInit+set}" = set; then
15760 echo $ECHO_N "(cached) $ECHO_C" >&6
15762 ac_check_lib_save_LIBS=$LIBS
15763 LIBS="-lcrypto $LIB_RSAREF $LIBS"
15764 cat >conftest.$ac_ext <<_ACEOF
15767 cat confdefs.h >>conftest.$ac_ext
15768 cat >>conftest.$ac_ext <<_ACEOF
15769 /* end confdefs.h. */
15771 /* Override any GCC internal prototype to avoid an error.
15772 Use char because int might match the return type of a GCC
15773 builtin and then its argument prototype would still apply. */
15777 char EVP_DigestInit ();
15781 return EVP_DigestInit ();
15786 rm -f conftest.$ac_objext conftest$ac_exeext
15787 if { (ac_try="$ac_link"
15788 case "(($ac_try" in
15789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15790 *) ac_try_echo=$ac_try;;
15792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15793 (eval "$ac_link") 2>conftest.er1
15795 grep -v '^ *+' conftest.er1 >conftest.err
15797 cat conftest.err >&5
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); } && {
15800 test -z "$ac_c_werror_flag" ||
15801 test ! -s conftest.err
15802 } && test -s conftest$ac_exeext &&
15803 $as_test_x conftest$ac_exeext; then
15804 ac_cv_lib_crypto_EVP_DigestInit=yes
15806 echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15809 ac_cv_lib_crypto_EVP_DigestInit=no
15812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15813 conftest$ac_exeext conftest.$ac_ext
15814 LIBS=$ac_check_lib_save_LIBS
15816 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_EVP_DigestInit" >&5
15817 echo "${ECHO_T}$ac_cv_lib_crypto_EVP_DigestInit" >&6; }
15818 if test $ac_cv_lib_crypto_EVP_DigestInit = yes; then
15832 if test "$with_openssl" != "no"; then
15834 cat >>confdefs.h <<\_ACEOF
15835 #define HAVE_OPENSSL
15839 CPPFLAGS=$save_CPPFLAGS
15840 LDFLAGS=$save_LDFLAGS
15843 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
15844 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
15845 { echo "$as_me:$LINENO: result: $with_openssl" >&5
15846 echo "${ECHO_T}$with_openssl" >&6; }
15850 # Check whether --with-des was given.
15851 if test "${with_des+set}" = set; then
15852 withval=$with_des; with_des=$withval
15859 if test "$with_des" != no; then
15860 if test -d $with_des; then
15861 CPPFLAGS="$CPPFLAGS -I${with_des}/include"
15862 LDFLAGS="$LDFLAGS -L${with_des}/lib"
15865 if test "$with_openssl" != no; then
15866 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -lcrypto" >&5
15867 echo $ECHO_N "checking for des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
15868 if test "${ac_cv_lib_crypto_des_cbc_encrypt+set}" = set; then
15869 echo $ECHO_N "(cached) $ECHO_C" >&6
15871 ac_check_lib_save_LIBS=$LIBS
15872 LIBS="-lcrypto $LIB_RSAREF $LIBS"
15873 cat >conftest.$ac_ext <<_ACEOF
15876 cat confdefs.h >>conftest.$ac_ext
15877 cat >>conftest.$ac_ext <<_ACEOF
15878 /* end confdefs.h. */
15880 /* Override any GCC internal prototype to avoid an error.
15881 Use char because int might match the return type of a GCC
15882 builtin and then its argument prototype would still apply. */
15886 char des_cbc_encrypt ();
15890 return des_cbc_encrypt ();
15895 rm -f conftest.$ac_objext conftest$ac_exeext
15896 if { (ac_try="$ac_link"
15897 case "(($ac_try" in
15898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15899 *) ac_try_echo=$ac_try;;
15901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15902 (eval "$ac_link") 2>conftest.er1
15904 grep -v '^ *+' conftest.er1 >conftest.err
15906 cat conftest.err >&5
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); } && {
15909 test -z "$ac_c_werror_flag" ||
15910 test ! -s conftest.err
15911 } && test -s conftest$ac_exeext &&
15912 $as_test_x conftest$ac_exeext; then
15913 ac_cv_lib_crypto_des_cbc_encrypt=yes
15915 echo "$as_me: failed program was:" >&5
15916 sed 's/^/| /' conftest.$ac_ext >&5
15918 ac_cv_lib_crypto_des_cbc_encrypt=no
15921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15922 conftest$ac_exeext conftest.$ac_ext
15923 LIBS=$ac_check_lib_save_LIBS
15925 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
15926 echo "${ECHO_T}$ac_cv_lib_crypto_des_cbc_encrypt" >&6; }
15927 if test $ac_cv_lib_crypto_des_cbc_encrypt = yes; then
15929 if test "${ac_cv_header_openssl_des_h+set}" = set; then
15930 { echo "$as_me:$LINENO: checking for openssl/des.h" >&5
15931 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6; }
15932 if test "${ac_cv_header_openssl_des_h+set}" = set; then
15933 echo $ECHO_N "(cached) $ECHO_C" >&6
15935 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
15936 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
15938 # Is the header compilable?
15939 { echo "$as_me:$LINENO: checking openssl/des.h usability" >&5
15940 echo $ECHO_N "checking openssl/des.h usability... $ECHO_C" >&6; }
15941 cat >conftest.$ac_ext <<_ACEOF
15944 cat confdefs.h >>conftest.$ac_ext
15945 cat >>conftest.$ac_ext <<_ACEOF
15946 /* end confdefs.h. */
15947 $ac_includes_default
15948 #include <openssl/des.h>
15950 rm -f conftest.$ac_objext
15951 if { (ac_try="$ac_compile"
15952 case "(($ac_try" in
15953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15954 *) ac_try_echo=$ac_try;;
15956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15957 (eval "$ac_compile") 2>conftest.er1
15959 grep -v '^ *+' conftest.er1 >conftest.err
15961 cat conftest.err >&5
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); } && {
15964 test -z "$ac_c_werror_flag" ||
15965 test ! -s conftest.err
15966 } && test -s conftest.$ac_objext; then
15967 ac_header_compiler=yes
15969 echo "$as_me: failed program was:" >&5
15970 sed 's/^/| /' conftest.$ac_ext >&5
15972 ac_header_compiler=no
15975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15976 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15977 echo "${ECHO_T}$ac_header_compiler" >&6; }
15979 # Is the header present?
15980 { echo "$as_me:$LINENO: checking openssl/des.h presence" >&5
15981 echo $ECHO_N "checking openssl/des.h presence... $ECHO_C" >&6; }
15982 cat >conftest.$ac_ext <<_ACEOF
15985 cat confdefs.h >>conftest.$ac_ext
15986 cat >>conftest.$ac_ext <<_ACEOF
15987 /* end confdefs.h. */
15988 #include <openssl/des.h>
15990 if { (ac_try="$ac_cpp conftest.$ac_ext"
15991 case "(($ac_try" in
15992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15993 *) ac_try_echo=$ac_try;;
15995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15998 grep -v '^ *+' conftest.er1 >conftest.err
16000 cat conftest.err >&5
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); } >/dev/null && {
16003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16004 test ! -s conftest.err
16006 ac_header_preproc=yes
16008 echo "$as_me: failed program was:" >&5
16009 sed 's/^/| /' conftest.$ac_ext >&5
16011 ac_header_preproc=no
16014 rm -f conftest.err conftest.$ac_ext
16015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16016 echo "${ECHO_T}$ac_header_preproc" >&6; }
16018 # So? What about this header?
16019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16021 { echo "$as_me:$LINENO: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&5
16022 echo "$as_me: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16023 { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the compiler's result" >&5
16024 echo "$as_me: WARNING: openssl/des.h: proceeding with the compiler's result" >&2;}
16025 ac_header_preproc=yes
16028 { echo "$as_me:$LINENO: WARNING: openssl/des.h: present but cannot be compiled" >&5
16029 echo "$as_me: WARNING: openssl/des.h: present but cannot be compiled" >&2;}
16030 { echo "$as_me:$LINENO: WARNING: openssl/des.h: check for missing prerequisite headers?" >&5
16031 echo "$as_me: WARNING: openssl/des.h: check for missing prerequisite headers?" >&2;}
16032 { echo "$as_me:$LINENO: WARNING: openssl/des.h: see the Autoconf documentation" >&5
16033 echo "$as_me: WARNING: openssl/des.h: see the Autoconf documentation" >&2;}
16034 { echo "$as_me:$LINENO: WARNING: openssl/des.h: section \"Present But Cannot Be Compiled\"" >&5
16035 echo "$as_me: WARNING: openssl/des.h: section \"Present But Cannot Be Compiled\"" >&2;}
16036 { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
16037 echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
16038 { echo "$as_me:$LINENO: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&5
16039 echo "$as_me: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&2;}
16043 { echo "$as_me:$LINENO: checking for openssl/des.h" >&5
16044 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6; }
16045 if test "${ac_cv_header_openssl_des_h+set}" = set; then
16046 echo $ECHO_N "(cached) $ECHO_C" >&6
16048 ac_cv_header_openssl_des_h=$ac_header_preproc
16050 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
16051 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
16054 if test $ac_cv_header_openssl_des_h = yes; then
16056 cat >>confdefs.h <<\_ACEOF
16057 #define WITH_SSL_DES
16060 LIB_DES="-lcrypto";
16072 if test "$with_des" = no; then
16073 { echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
16074 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
16075 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
16076 echo $ECHO_N "(cached) $ECHO_C" >&6
16078 ac_check_lib_save_LIBS=$LIBS
16079 LIBS="-lcrypto $LIB_RSAREF $LIBS"
16080 cat >conftest.$ac_ext <<_ACEOF
16083 cat confdefs.h >>conftest.$ac_ext
16084 cat >>conftest.$ac_ext <<_ACEOF
16085 /* end confdefs.h. */
16087 /* Override any GCC internal prototype to avoid an error.
16088 Use char because int might match the return type of a GCC
16089 builtin and then its argument prototype would still apply. */
16093 char DES_cbc_encrypt ();
16097 return DES_cbc_encrypt ();
16102 rm -f conftest.$ac_objext conftest$ac_exeext
16103 if { (ac_try="$ac_link"
16104 case "(($ac_try" in
16105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16106 *) ac_try_echo=$ac_try;;
16108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16109 (eval "$ac_link") 2>conftest.er1
16111 grep -v '^ *+' conftest.er1 >conftest.err
16113 cat conftest.err >&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); } && {
16116 test -z "$ac_c_werror_flag" ||
16117 test ! -s conftest.err
16118 } && test -s conftest$ac_exeext &&
16119 $as_test_x conftest$ac_exeext; then
16120 ac_cv_lib_crypto_DES_cbc_encrypt=yes
16122 echo "$as_me: failed program was:" >&5
16123 sed 's/^/| /' conftest.$ac_ext >&5
16125 ac_cv_lib_crypto_DES_cbc_encrypt=no
16128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16129 conftest$ac_exeext conftest.$ac_ext
16130 LIBS=$ac_check_lib_save_LIBS
16132 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
16133 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
16134 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
16136 if test "${ac_cv_header_openssl_des_h+set}" = set; then
16137 { echo "$as_me:$LINENO: checking for openssl/des.h" >&5
16138 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6; }
16139 if test "${ac_cv_header_openssl_des_h+set}" = set; then
16140 echo $ECHO_N "(cached) $ECHO_C" >&6
16142 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
16143 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
16145 # Is the header compilable?
16146 { echo "$as_me:$LINENO: checking openssl/des.h usability" >&5
16147 echo $ECHO_N "checking openssl/des.h usability... $ECHO_C" >&6; }
16148 cat >conftest.$ac_ext <<_ACEOF
16151 cat confdefs.h >>conftest.$ac_ext
16152 cat >>conftest.$ac_ext <<_ACEOF
16153 /* end confdefs.h. */
16154 $ac_includes_default
16155 #include <openssl/des.h>
16157 rm -f conftest.$ac_objext
16158 if { (ac_try="$ac_compile"
16159 case "(($ac_try" in
16160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161 *) ac_try_echo=$ac_try;;
16163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16164 (eval "$ac_compile") 2>conftest.er1
16166 grep -v '^ *+' conftest.er1 >conftest.err
16168 cat conftest.err >&5
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); } && {
16171 test -z "$ac_c_werror_flag" ||
16172 test ! -s conftest.err
16173 } && test -s conftest.$ac_objext; then
16174 ac_header_compiler=yes
16176 echo "$as_me: failed program was:" >&5
16177 sed 's/^/| /' conftest.$ac_ext >&5
16179 ac_header_compiler=no
16182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16183 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16184 echo "${ECHO_T}$ac_header_compiler" >&6; }
16186 # Is the header present?
16187 { echo "$as_me:$LINENO: checking openssl/des.h presence" >&5
16188 echo $ECHO_N "checking openssl/des.h presence... $ECHO_C" >&6; }
16189 cat >conftest.$ac_ext <<_ACEOF
16192 cat confdefs.h >>conftest.$ac_ext
16193 cat >>conftest.$ac_ext <<_ACEOF
16194 /* end confdefs.h. */
16195 #include <openssl/des.h>
16197 if { (ac_try="$ac_cpp conftest.$ac_ext"
16198 case "(($ac_try" in
16199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16200 *) ac_try_echo=$ac_try;;
16202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16205 grep -v '^ *+' conftest.er1 >conftest.err
16207 cat conftest.err >&5
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); } >/dev/null && {
16210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16211 test ! -s conftest.err
16213 ac_header_preproc=yes
16215 echo "$as_me: failed program was:" >&5
16216 sed 's/^/| /' conftest.$ac_ext >&5
16218 ac_header_preproc=no
16221 rm -f conftest.err conftest.$ac_ext
16222 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16223 echo "${ECHO_T}$ac_header_preproc" >&6; }
16225 # So? What about this header?
16226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16228 { echo "$as_me:$LINENO: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&5
16229 echo "$as_me: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16230 { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the compiler's result" >&5
16231 echo "$as_me: WARNING: openssl/des.h: proceeding with the compiler's result" >&2;}
16232 ac_header_preproc=yes
16235 { echo "$as_me:$LINENO: WARNING: openssl/des.h: present but cannot be compiled" >&5
16236 echo "$as_me: WARNING: openssl/des.h: present but cannot be compiled" >&2;}
16237 { echo "$as_me:$LINENO: WARNING: openssl/des.h: check for missing prerequisite headers?" >&5
16238 echo "$as_me: WARNING: openssl/des.h: check for missing prerequisite headers?" >&2;}
16239 { echo "$as_me:$LINENO: WARNING: openssl/des.h: see the Autoconf documentation" >&5
16240 echo "$as_me: WARNING: openssl/des.h: see the Autoconf documentation" >&2;}
16241 { echo "$as_me:$LINENO: WARNING: openssl/des.h: section \"Present But Cannot Be Compiled\"" >&5
16242 echo "$as_me: WARNING: openssl/des.h: section \"Present But Cannot Be Compiled\"" >&2;}
16243 { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
16244 echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
16245 { echo "$as_me:$LINENO: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&5
16246 echo "$as_me: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&2;}
16250 { echo "$as_me:$LINENO: checking for openssl/des.h" >&5
16251 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6; }
16252 if test "${ac_cv_header_openssl_des_h+set}" = set; then
16253 echo $ECHO_N "(cached) $ECHO_C" >&6
16255 ac_cv_header_openssl_des_h=$ac_header_preproc
16257 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
16258 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
16261 if test $ac_cv_header_openssl_des_h = yes; then
16263 cat >>confdefs.h <<\_ACEOF
16264 #define WITH_SSL_DES
16267 LIB_DES="-lcrypto";
16281 if test "$with_des" = no; then
16282 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
16283 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
16284 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
16285 echo $ECHO_N "(cached) $ECHO_C" >&6
16287 ac_check_lib_save_LIBS=$LIBS
16289 cat >conftest.$ac_ext <<_ACEOF
16292 cat confdefs.h >>conftest.$ac_ext
16293 cat >>conftest.$ac_ext <<_ACEOF
16294 /* end confdefs.h. */
16296 /* Override any GCC internal prototype to avoid an error.
16297 Use char because int might match the return type of a GCC
16298 builtin and then its argument prototype would still apply. */
16302 char des_cbc_encrypt ();
16306 return des_cbc_encrypt ();
16311 rm -f conftest.$ac_objext conftest$ac_exeext
16312 if { (ac_try="$ac_link"
16313 case "(($ac_try" in
16314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315 *) ac_try_echo=$ac_try;;
16317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16318 (eval "$ac_link") 2>conftest.er1
16320 grep -v '^ *+' conftest.er1 >conftest.err
16322 cat conftest.err >&5
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); } && {
16325 test -z "$ac_c_werror_flag" ||
16326 test ! -s conftest.err
16327 } && test -s conftest$ac_exeext &&
16328 $as_test_x conftest$ac_exeext; then
16329 ac_cv_lib_des_des_cbc_encrypt=yes
16331 echo "$as_me: failed program was:" >&5
16332 sed 's/^/| /' conftest.$ac_ext >&5
16334 ac_cv_lib_des_des_cbc_encrypt=no
16337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16338 conftest$ac_exeext conftest.$ac_ext
16339 LIBS=$ac_check_lib_save_LIBS
16341 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16342 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
16343 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
16352 if test "$with_des" = no; then
16353 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
16354 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
16355 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
16356 echo $ECHO_N "(cached) $ECHO_C" >&6
16358 ac_check_lib_save_LIBS=$LIBS
16359 LIBS="-ldes425 $LIBS"
16360 cat >conftest.$ac_ext <<_ACEOF
16363 cat confdefs.h >>conftest.$ac_ext
16364 cat >>conftest.$ac_ext <<_ACEOF
16365 /* end confdefs.h. */
16367 /* Override any GCC internal prototype to avoid an error.
16368 Use char because int might match the return type of a GCC
16369 builtin and then its argument prototype would still apply. */
16373 char des_cbc_encrypt ();
16377 return des_cbc_encrypt ();
16382 rm -f conftest.$ac_objext conftest$ac_exeext
16383 if { (ac_try="$ac_link"
16384 case "(($ac_try" in
16385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16386 *) ac_try_echo=$ac_try;;
16388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16389 (eval "$ac_link") 2>conftest.er1
16391 grep -v '^ *+' conftest.er1 >conftest.err
16393 cat conftest.err >&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } && {
16396 test -z "$ac_c_werror_flag" ||
16397 test ! -s conftest.err
16398 } && test -s conftest$ac_exeext &&
16399 $as_test_x conftest$ac_exeext; then
16400 ac_cv_lib_des425_des_cbc_encrypt=yes
16402 echo "$as_me: failed program was:" >&5
16403 sed 's/^/| /' conftest.$ac_ext >&5
16405 ac_cv_lib_des425_des_cbc_encrypt=no
16408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16409 conftest$ac_exeext conftest.$ac_ext
16410 LIBS=$ac_check_lib_save_LIBS
16412 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
16413 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
16414 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
16415 LIB_DES="-ldes425";
16423 if test "$with_des" = no; then
16424 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes524" >&5
16425 echo $ECHO_N "checking for des_cbc_encrypt in -ldes524... $ECHO_C" >&6; }
16426 if test "${ac_cv_lib_des524_des_cbc_encrypt+set}" = set; then
16427 echo $ECHO_N "(cached) $ECHO_C" >&6
16429 ac_check_lib_save_LIBS=$LIBS
16430 LIBS="-ldes524 $LIBS"
16431 cat >conftest.$ac_ext <<_ACEOF
16434 cat confdefs.h >>conftest.$ac_ext
16435 cat >>conftest.$ac_ext <<_ACEOF
16436 /* end confdefs.h. */
16438 /* Override any GCC internal prototype to avoid an error.
16439 Use char because int might match the return type of a GCC
16440 builtin and then its argument prototype would still apply. */
16444 char des_cbc_encrypt ();
16448 return des_cbc_encrypt ();
16453 rm -f conftest.$ac_objext conftest$ac_exeext
16454 if { (ac_try="$ac_link"
16455 case "(($ac_try" in
16456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457 *) ac_try_echo=$ac_try;;
16459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460 (eval "$ac_link") 2>conftest.er1
16462 grep -v '^ *+' conftest.er1 >conftest.err
16464 cat conftest.err >&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); } && {
16467 test -z "$ac_c_werror_flag" ||
16468 test ! -s conftest.err
16469 } && test -s conftest$ac_exeext &&
16470 $as_test_x conftest$ac_exeext; then
16471 ac_cv_lib_des524_des_cbc_encrypt=yes
16473 echo "$as_me: failed program was:" >&5
16474 sed 's/^/| /' conftest.$ac_ext >&5
16476 ac_cv_lib_des524_des_cbc_encrypt=no
16479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16480 conftest$ac_exeext conftest.$ac_ext
16481 LIBS=$ac_check_lib_save_LIBS
16483 { echo "$as_me:$LINENO: result: $ac_cv_lib_des524_des_cbc_encrypt" >&5
16484 echo "${ECHO_T}$ac_cv_lib_des524_des_cbc_encrypt" >&6; }
16485 if test $ac_cv_lib_des524_des_cbc_encrypt = yes; then
16486 LIB_DES="-ldes524";
16494 if test "$with_des" = no; then
16497 { echo "$as_me:$LINENO: checking for RSAPublicEncrypt in -lrsaref" >&5
16498 echo $ECHO_N "checking for RSAPublicEncrypt in -lrsaref... $ECHO_C" >&6; }
16499 if test "${ac_cv_lib_rsaref_RSAPublicEncrypt+set}" = set; then
16500 echo $ECHO_N "(cached) $ECHO_C" >&6
16502 ac_check_lib_save_LIBS=$LIBS
16503 LIBS="-lrsaref $LIBS"
16504 cat >conftest.$ac_ext <<_ACEOF
16507 cat confdefs.h >>conftest.$ac_ext
16508 cat >>conftest.$ac_ext <<_ACEOF
16509 /* end confdefs.h. */
16511 /* Override any GCC internal prototype to avoid an error.
16512 Use char because int might match the return type of a GCC
16513 builtin and then its argument prototype would still apply. */
16517 char RSAPublicEncrypt ();
16521 return RSAPublicEncrypt ();
16526 rm -f conftest.$ac_objext conftest$ac_exeext
16527 if { (ac_try="$ac_link"
16528 case "(($ac_try" in
16529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16530 *) ac_try_echo=$ac_try;;
16532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16533 (eval "$ac_link") 2>conftest.er1
16535 grep -v '^ *+' conftest.er1 >conftest.err
16537 cat conftest.err >&5
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); } && {
16540 test -z "$ac_c_werror_flag" ||
16541 test ! -s conftest.err
16542 } && test -s conftest$ac_exeext &&
16543 $as_test_x conftest$ac_exeext; then
16544 ac_cv_lib_rsaref_RSAPublicEncrypt=yes
16546 echo "$as_me: failed program was:" >&5
16547 sed 's/^/| /' conftest.$ac_ext >&5
16549 ac_cv_lib_rsaref_RSAPublicEncrypt=no
16552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16553 conftest$ac_exeext conftest.$ac_ext
16554 LIBS=$ac_check_lib_save_LIBS
16556 { echo "$as_me:$LINENO: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5
16557 echo "${ECHO_T}$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6; }
16558 if test $ac_cv_lib_rsaref_RSAPublicEncrypt = yes; then
16559 LIB_RSAREF="-lRSAglue -lrsaref"; cmu_have_rsaref=yes
16565 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -lcrypto" >&5
16566 echo $ECHO_N "checking for des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
16567 if test "${ac_cv_lib_crypto_des_cbc_encrypt+set}" = set; then
16568 echo $ECHO_N "(cached) $ECHO_C" >&6
16570 ac_check_lib_save_LIBS=$LIBS
16571 LIBS="-lcrypto $LIB_RSAREF $LIBS"
16572 cat >conftest.$ac_ext <<_ACEOF
16575 cat confdefs.h >>conftest.$ac_ext
16576 cat >>conftest.$ac_ext <<_ACEOF
16577 /* end confdefs.h. */
16579 /* Override any GCC internal prototype to avoid an error.
16580 Use char because int might match the return type of a GCC
16581 builtin and then its argument prototype would still apply. */
16585 char des_cbc_encrypt ();
16589 return des_cbc_encrypt ();
16594 rm -f conftest.$ac_objext conftest$ac_exeext
16595 if { (ac_try="$ac_link"
16596 case "(($ac_try" in
16597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598 *) ac_try_echo=$ac_try;;
16600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601 (eval "$ac_link") 2>conftest.er1
16603 grep -v '^ *+' conftest.er1 >conftest.err
16605 cat conftest.err >&5
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); } && {
16608 test -z "$ac_c_werror_flag" ||
16609 test ! -s conftest.err
16610 } && test -s conftest$ac_exeext &&
16611 $as_test_x conftest$ac_exeext; then
16612 ac_cv_lib_crypto_des_cbc_encrypt=yes
16614 echo "$as_me: failed program was:" >&5
16615 sed 's/^/| /' conftest.$ac_ext >&5
16617 ac_cv_lib_crypto_des_cbc_encrypt=no
16620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16621 conftest$ac_exeext conftest.$ac_ext
16622 LIBS=$ac_check_lib_save_LIBS
16624 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
16625 echo "${ECHO_T}$ac_cv_lib_crypto_des_cbc_encrypt" >&6; }
16626 if test $ac_cv_lib_crypto_des_cbc_encrypt = yes; then
16628 if test "${ac_cv_header_openssl_des_h+set}" = set; then
16629 { echo "$as_me:$LINENO: checking for openssl/des.h" >&5
16630 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6; }
16631 if test "${ac_cv_header_openssl_des_h+set}" = set; then
16632 echo $ECHO_N "(cached) $ECHO_C" >&6
16634 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
16635 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
16637 # Is the header compilable?
16638 { echo "$as_me:$LINENO: checking openssl/des.h usability" >&5
16639 echo $ECHO_N "checking openssl/des.h usability... $ECHO_C" >&6; }
16640 cat >conftest.$ac_ext <<_ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h. */
16646 $ac_includes_default
16647 #include <openssl/des.h>
16649 rm -f conftest.$ac_objext
16650 if { (ac_try="$ac_compile"
16651 case "(($ac_try" in
16652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653 *) ac_try_echo=$ac_try;;
16655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16656 (eval "$ac_compile") 2>conftest.er1
16658 grep -v '^ *+' conftest.er1 >conftest.err
16660 cat conftest.err >&5
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); } && {
16663 test -z "$ac_c_werror_flag" ||
16664 test ! -s conftest.err
16665 } && test -s conftest.$ac_objext; then
16666 ac_header_compiler=yes
16668 echo "$as_me: failed program was:" >&5
16669 sed 's/^/| /' conftest.$ac_ext >&5
16671 ac_header_compiler=no
16674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16675 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16676 echo "${ECHO_T}$ac_header_compiler" >&6; }
16678 # Is the header present?
16679 { echo "$as_me:$LINENO: checking openssl/des.h presence" >&5
16680 echo $ECHO_N "checking openssl/des.h presence... $ECHO_C" >&6; }
16681 cat >conftest.$ac_ext <<_ACEOF
16684 cat confdefs.h >>conftest.$ac_ext
16685 cat >>conftest.$ac_ext <<_ACEOF
16686 /* end confdefs.h. */
16687 #include <openssl/des.h>
16689 if { (ac_try="$ac_cpp conftest.$ac_ext"
16690 case "(($ac_try" in
16691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16692 *) ac_try_echo=$ac_try;;
16694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16697 grep -v '^ *+' conftest.er1 >conftest.err
16699 cat conftest.err >&5
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); } >/dev/null && {
16702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16703 test ! -s conftest.err
16705 ac_header_preproc=yes
16707 echo "$as_me: failed program was:" >&5
16708 sed 's/^/| /' conftest.$ac_ext >&5
16710 ac_header_preproc=no
16713 rm -f conftest.err conftest.$ac_ext
16714 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16715 echo "${ECHO_T}$ac_header_preproc" >&6; }
16717 # So? What about this header?
16718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16720 { echo "$as_me:$LINENO: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&5
16721 echo "$as_me: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16722 { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the compiler's result" >&5
16723 echo "$as_me: WARNING: openssl/des.h: proceeding with the compiler's result" >&2;}
16724 ac_header_preproc=yes
16727 { echo "$as_me:$LINENO: WARNING: openssl/des.h: present but cannot be compiled" >&5
16728 echo "$as_me: WARNING: openssl/des.h: present but cannot be compiled" >&2;}
16729 { echo "$as_me:$LINENO: WARNING: openssl/des.h: check for missing prerequisite headers?" >&5
16730 echo "$as_me: WARNING: openssl/des.h: check for missing prerequisite headers?" >&2;}
16731 { echo "$as_me:$LINENO: WARNING: openssl/des.h: see the Autoconf documentation" >&5
16732 echo "$as_me: WARNING: openssl/des.h: see the Autoconf documentation" >&2;}
16733 { echo "$as_me:$LINENO: WARNING: openssl/des.h: section \"Present But Cannot Be Compiled\"" >&5
16734 echo "$as_me: WARNING: openssl/des.h: section \"Present But Cannot Be Compiled\"" >&2;}
16735 { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5
16736 echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;}
16737 { echo "$as_me:$LINENO: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&5
16738 echo "$as_me: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&2;}
16742 { echo "$as_me:$LINENO: checking for openssl/des.h" >&5
16743 echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6; }
16744 if test "${ac_cv_header_openssl_des_h+set}" = set; then
16745 echo $ECHO_N "(cached) $ECHO_C" >&6
16747 ac_cv_header_openssl_des_h=$ac_header_preproc
16749 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5
16750 echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6; }
16753 if test $ac_cv_header_openssl_des_h = yes; then
16755 cat >>confdefs.h <<\_ACEOF
16756 #define WITH_SSL_DES
16759 LIB_DES="-lcrypto";
16773 if test "$with_des" != no; then
16775 cat >>confdefs.h <<\_ACEOF
16784 # Check whether --enable-digest was given.
16785 if test "${enable_digest+set}" = set; then
16786 enableval=$enable_digest; digest=$enableval
16792 if test "$digest" != no; then
16793 if test -d $digest; then
16794 CPPFLAGS="$CPPFLAGS -I$digest/include"
16795 LDFLAGS="$LDFLAGS -L$digest/lib"
16797 if test "$with_des" = no; then
16798 { echo "$as_me:$LINENO: WARNING: No DES support for DIGEST-MD5" >&5
16799 echo "$as_me: WARNING: No DES support for DIGEST-MD5" >&2;}
16803 { echo "$as_me:$LINENO: checking DIGEST-MD5" >&5
16804 echo $ECHO_N "checking DIGEST-MD5... $ECHO_C" >&6; }
16805 if test "$digest" != no; then
16806 { echo "$as_me:$LINENO: result: enabled" >&5
16807 echo "${ECHO_T}enabled" >&6; }
16808 SASL_MECHS="$SASL_MECHS libdigestmd5.la"
16809 if test "$enable_static" = yes; then
16810 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/digestmd5.c"
16811 SASL_STATIC_OBJS="$SASL_STATIC_OBJS digestmd5.o"
16813 cat >>confdefs.h <<\_ACEOF
16814 #define STATIC_DIGESTMD5
16819 { echo "$as_me:$LINENO: result: disabled" >&5
16820 echo "${ECHO_T}disabled" >&6; }
16823 # Check whether --enable-otp was given.
16824 if test "${enable_otp+set}" = set; then
16825 enableval=$enable_otp; otp=$enableval
16831 if test "$with_openssl" = no; then
16832 { echo "$as_me:$LINENO: WARNING: OpenSSL not found -- OTP will be disabled" >&5
16833 echo "$as_me: WARNING: OpenSSL not found -- OTP will be disabled" >&2;}
16837 { echo "$as_me:$LINENO: checking OTP" >&5
16838 echo $ECHO_N "checking OTP... $ECHO_C" >&6; }
16839 if test "$otp" != no; then
16840 { echo "$as_me:$LINENO: result: enabled" >&5
16841 echo "${ECHO_T}enabled" >&6; }
16842 OTP_LIBS="-lcrypto $LIB_RSAREF"
16844 SASL_MECHS="$SASL_MECHS libotp.la"
16845 if test "$enable_static" = yes; then
16846 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/otp.c"
16847 SASL_STATIC_OBJS="$SASL_STATIC_OBJS otp.o"
16849 cat >>confdefs.h <<\_ACEOF
16856 # Check whether --with-with-opie was given.
16857 if test "${with_with_opie+set}" = set; then
16858 withval=$with_with_opie; with_opie="${withval}"
16862 case "$with_opie" in
16864 { echo "$as_me:$LINENO: checking for opiechallenge in -lopie" >&5
16865 echo $ECHO_N "checking for opiechallenge in -lopie... $ECHO_C" >&6; }
16866 if test "${ac_cv_lib_opie_opiechallenge+set}" = set; then
16867 echo $ECHO_N "(cached) $ECHO_C" >&6
16869 ac_check_lib_save_LIBS=$LIBS
16870 LIBS="-lopie $LIBS"
16871 cat >conftest.$ac_ext <<_ACEOF
16874 cat confdefs.h >>conftest.$ac_ext
16875 cat >>conftest.$ac_ext <<_ACEOF
16876 /* end confdefs.h. */
16878 /* Override any GCC internal prototype to avoid an error.
16879 Use char because int might match the return type of a GCC
16880 builtin and then its argument prototype would still apply. */
16884 char opiechallenge ();
16888 return opiechallenge ();
16893 rm -f conftest.$ac_objext conftest$ac_exeext
16894 if { (ac_try="$ac_link"
16895 case "(($ac_try" in
16896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897 *) ac_try_echo=$ac_try;;
16899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16900 (eval "$ac_link") 2>conftest.er1
16902 grep -v '^ *+' conftest.er1 >conftest.err
16904 cat conftest.err >&5
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); } && {
16907 test -z "$ac_c_werror_flag" ||
16908 test ! -s conftest.err
16909 } && test -s conftest$ac_exeext &&
16910 $as_test_x conftest$ac_exeext; then
16911 ac_cv_lib_opie_opiechallenge=yes
16913 echo "$as_me: failed program was:" >&5
16914 sed 's/^/| /' conftest.$ac_ext >&5
16916 ac_cv_lib_opie_opiechallenge=no
16919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16920 conftest$ac_exeext conftest.$ac_ext
16921 LIBS=$ac_check_lib_save_LIBS
16923 { echo "$as_me:$LINENO: result: $ac_cv_lib_opie_opiechallenge" >&5
16924 echo "${ECHO_T}$ac_cv_lib_opie_opiechallenge" >&6; }
16925 if test $ac_cv_lib_opie_opiechallenge = yes; then
16927 if test "${ac_cv_header_opie_h+set}" = set; then
16928 { echo "$as_me:$LINENO: checking for opie.h" >&5
16929 echo $ECHO_N "checking for opie.h... $ECHO_C" >&6; }
16930 if test "${ac_cv_header_opie_h+set}" = set; then
16931 echo $ECHO_N "(cached) $ECHO_C" >&6
16933 { echo "$as_me:$LINENO: result: $ac_cv_header_opie_h" >&5
16934 echo "${ECHO_T}$ac_cv_header_opie_h" >&6; }
16936 # Is the header compilable?
16937 { echo "$as_me:$LINENO: checking opie.h usability" >&5
16938 echo $ECHO_N "checking opie.h usability... $ECHO_C" >&6; }
16939 cat >conftest.$ac_ext <<_ACEOF
16942 cat confdefs.h >>conftest.$ac_ext
16943 cat >>conftest.$ac_ext <<_ACEOF
16944 /* end confdefs.h. */
16945 $ac_includes_default
16948 rm -f conftest.$ac_objext
16949 if { (ac_try="$ac_compile"
16950 case "(($ac_try" in
16951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16952 *) ac_try_echo=$ac_try;;
16954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16955 (eval "$ac_compile") 2>conftest.er1
16957 grep -v '^ *+' conftest.er1 >conftest.err
16959 cat conftest.err >&5
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); } && {
16962 test -z "$ac_c_werror_flag" ||
16963 test ! -s conftest.err
16964 } && test -s conftest.$ac_objext; then
16965 ac_header_compiler=yes
16967 echo "$as_me: failed program was:" >&5
16968 sed 's/^/| /' conftest.$ac_ext >&5
16970 ac_header_compiler=no
16973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16975 echo "${ECHO_T}$ac_header_compiler" >&6; }
16977 # Is the header present?
16978 { echo "$as_me:$LINENO: checking opie.h presence" >&5
16979 echo $ECHO_N "checking opie.h presence... $ECHO_C" >&6; }
16980 cat >conftest.$ac_ext <<_ACEOF
16983 cat confdefs.h >>conftest.$ac_ext
16984 cat >>conftest.$ac_ext <<_ACEOF
16985 /* end confdefs.h. */
16988 if { (ac_try="$ac_cpp conftest.$ac_ext"
16989 case "(($ac_try" in
16990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16991 *) ac_try_echo=$ac_try;;
16993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16996 grep -v '^ *+' conftest.er1 >conftest.err
16998 cat conftest.err >&5
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); } >/dev/null && {
17001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17002 test ! -s conftest.err
17004 ac_header_preproc=yes
17006 echo "$as_me: failed program was:" >&5
17007 sed 's/^/| /' conftest.$ac_ext >&5
17009 ac_header_preproc=no
17012 rm -f conftest.err conftest.$ac_ext
17013 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17014 echo "${ECHO_T}$ac_header_preproc" >&6; }
17016 # So? What about this header?
17017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17019 { echo "$as_me:$LINENO: WARNING: opie.h: accepted by the compiler, rejected by the preprocessor!" >&5
17020 echo "$as_me: WARNING: opie.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17021 { echo "$as_me:$LINENO: WARNING: opie.h: proceeding with the compiler's result" >&5
17022 echo "$as_me: WARNING: opie.h: proceeding with the compiler's result" >&2;}
17023 ac_header_preproc=yes
17026 { echo "$as_me:$LINENO: WARNING: opie.h: present but cannot be compiled" >&5
17027 echo "$as_me: WARNING: opie.h: present but cannot be compiled" >&2;}
17028 { echo "$as_me:$LINENO: WARNING: opie.h: check for missing prerequisite headers?" >&5
17029 echo "$as_me: WARNING: opie.h: check for missing prerequisite headers?" >&2;}
17030 { echo "$as_me:$LINENO: WARNING: opie.h: see the Autoconf documentation" >&5
17031 echo "$as_me: WARNING: opie.h: see the Autoconf documentation" >&2;}
17032 { echo "$as_me:$LINENO: WARNING: opie.h: section \"Present But Cannot Be Compiled\"" >&5
17033 echo "$as_me: WARNING: opie.h: section \"Present But Cannot Be Compiled\"" >&2;}
17034 { echo "$as_me:$LINENO: WARNING: opie.h: proceeding with the preprocessor's result" >&5
17035 echo "$as_me: WARNING: opie.h: proceeding with the preprocessor's result" >&2;}
17036 { echo "$as_me:$LINENO: WARNING: opie.h: in the future, the compiler will take precedence" >&5
17037 echo "$as_me: WARNING: opie.h: in the future, the compiler will take precedence" >&2;}
17041 { echo "$as_me:$LINENO: checking for opie.h" >&5
17042 echo $ECHO_N "checking for opie.h... $ECHO_C" >&6; }
17043 if test "${ac_cv_header_opie_h+set}" = set; then
17044 echo $ECHO_N "(cached) $ECHO_C" >&6
17046 ac_cv_header_opie_h=$ac_header_preproc
17048 { echo "$as_me:$LINENO: result: $ac_cv_header_opie_h" >&5
17049 echo "${ECHO_T}$ac_cv_header_opie_h" >&6; }
17052 if test $ac_cv_header_opie_h = yes; then
17065 if test -d $with_opie; then
17066 CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
17067 LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
17074 { echo "$as_me:$LINENO: checking for OPIE" >&5
17075 echo $ECHO_N "checking for OPIE... $ECHO_C" >&6; }
17076 { echo "$as_me:$LINENO: result: $with_opie" >&5
17077 echo "${ECHO_T}$with_opie" >&6; }
17079 if test "$with_opie" != no; then
17081 cat >>confdefs.h <<\_ACEOF
17085 OTP_LIBS="$OTP_LIBS -lopie"
17091 { echo "$as_me:$LINENO: result: disabled" >&5
17092 echo "${ECHO_T}disabled" >&6; }
17095 # Check whether --enable-srp was given.
17096 if test "${enable_srp+set}" = set; then
17097 enableval=$enable_srp; srp=$enableval
17103 if test "$with_openssl" = no; then
17104 { echo "$as_me:$LINENO: WARNING: OpenSSL not found -- SRP will be disabled" >&5
17105 echo "$as_me: WARNING: OpenSSL not found -- SRP will be disabled" >&2;}
17109 { echo "$as_me:$LINENO: checking SRP" >&5
17110 echo $ECHO_N "checking SRP... $ECHO_C" >&6; }
17111 if test "$srp" != no; then
17112 { echo "$as_me:$LINENO: result: enabled" >&5
17113 echo "${ECHO_T}enabled" >&6; }
17114 SRP_LIBS="-lcrypto $LIB_RSAREF"
17116 SASL_MECHS="$SASL_MECHS libsrp.la"
17117 if test "$enable_static" = yes; then
17118 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/srp.c"
17119 SASL_STATIC_OBJS="$SASL_STATIC_OBJS srp.o"
17121 cat >>confdefs.h <<\_ACEOF
17127 # Check whether --enable-srp_setpass was given.
17128 if test "${enable_srp_setpass+set}" = set; then
17129 enableval=$enable_srp_setpass; srp_setpass=$enableval
17135 { echo "$as_me:$LINENO: checking if we should enable setting SRP secrets with saslpasswd" >&5
17136 echo $ECHO_N "checking if we should enable setting SRP secrets with saslpasswd... $ECHO_C" >&6; }
17137 if test "$srp_setpass" != no; then
17138 { echo "$as_me:$LINENO: result: enabled" >&5
17139 echo "${ECHO_T}enabled" >&6; }
17141 cat >>confdefs.h <<\_ACEOF
17142 #define DO_SRP_SETPASS
17146 { echo "$as_me:$LINENO: result: disabled" >&5
17147 echo "${ECHO_T}disabled" >&6; }
17152 { echo "$as_me:$LINENO: result: disabled" >&5
17153 echo "${ECHO_T}disabled" >&6; }
17159 # Check whether --enable-krb4 was given.
17160 if test "${enable_krb4+set}" = set; then
17161 enableval=$enable_krb4; krb4=$enableval
17167 if test "$krb4" != no; then
17169 { echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
17170 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6; }
17171 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
17172 echo $ECHO_N "(cached) $ECHO_C" >&6
17174 ac_check_lib_save_LIBS=$LIBS
17175 LIBS="-lresolv $LIBS"
17176 cat >conftest.$ac_ext <<_ACEOF
17179 cat confdefs.h >>conftest.$ac_ext
17180 cat >>conftest.$ac_ext <<_ACEOF
17181 /* end confdefs.h. */
17183 /* Override any GCC internal prototype to avoid an error.
17184 Use char because int might match the return type of a GCC
17185 builtin and then its argument prototype would still apply. */
17189 char res_search ();
17193 return res_search ();
17198 rm -f conftest.$ac_objext conftest$ac_exeext
17199 if { (ac_try="$ac_link"
17200 case "(($ac_try" in
17201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202 *) ac_try_echo=$ac_try;;
17204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205 (eval "$ac_link") 2>conftest.er1
17207 grep -v '^ *+' conftest.er1 >conftest.err
17209 cat conftest.err >&5
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); } && {
17212 test -z "$ac_c_werror_flag" ||
17213 test ! -s conftest.err
17214 } && test -s conftest$ac_exeext &&
17215 $as_test_x conftest$ac_exeext; then
17216 ac_cv_lib_resolv_res_search=yes
17218 echo "$as_me: failed program was:" >&5
17219 sed 's/^/| /' conftest.$ac_ext >&5
17221 ac_cv_lib_resolv_res_search=no
17224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17225 conftest$ac_exeext conftest.$ac_ext
17226 LIBS=$ac_check_lib_save_LIBS
17228 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
17229 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6; }
17230 if test $ac_cv_lib_resolv_res_search = yes; then
17231 cat >>confdefs.h <<_ACEOF
17232 #define HAVE_LIBRESOLV 1
17235 LIBS="-lresolv $LIBS"
17240 if test -d ${krb4}; then
17241 { echo "$as_me:$LINENO: checking for Kerberos includes" >&5
17242 echo $ECHO_N "checking for Kerberos includes... $ECHO_C" >&6; }
17243 if test "${cyrus_krbinclude+set}" = set; then
17244 echo $ECHO_N "(cached) $ECHO_C" >&6
17247 for krbhloc in include/kerberosIV include/kerberos include
17249 if test -f ${krb4}/${krbhloc}/krb.h ; then
17250 cyrus_krbinclude=${krb4}/${krbhloc}
17256 { echo "$as_me:$LINENO: result: $cyrus_krbinclude" >&5
17257 echo "${ECHO_T}$cyrus_krbinclude" >&6; }
17259 if test -n "${cyrus_krbinclude}"; then
17260 CPPFLAGS="$CPPFLAGS -I${cyrus_krbinclude}"
17262 LDFLAGS="$LDFLAGS -L$krb4/lib"
17265 if test "$with_des" != no; then
17266 if test "${ac_cv_header_krb_h+set}" = set; then
17267 { echo "$as_me:$LINENO: checking for krb.h" >&5
17268 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
17269 if test "${ac_cv_header_krb_h+set}" = set; then
17270 echo $ECHO_N "(cached) $ECHO_C" >&6
17272 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
17273 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
17275 # Is the header compilable?
17276 { echo "$as_me:$LINENO: checking krb.h usability" >&5
17277 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6; }
17278 cat >conftest.$ac_ext <<_ACEOF
17281 cat confdefs.h >>conftest.$ac_ext
17282 cat >>conftest.$ac_ext <<_ACEOF
17283 /* end confdefs.h. */
17284 $ac_includes_default
17287 rm -f conftest.$ac_objext
17288 if { (ac_try="$ac_compile"
17289 case "(($ac_try" in
17290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17291 *) ac_try_echo=$ac_try;;
17293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17294 (eval "$ac_compile") 2>conftest.er1
17296 grep -v '^ *+' conftest.er1 >conftest.err
17298 cat conftest.err >&5
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); } && {
17301 test -z "$ac_c_werror_flag" ||
17302 test ! -s conftest.err
17303 } && test -s conftest.$ac_objext; then
17304 ac_header_compiler=yes
17306 echo "$as_me: failed program was:" >&5
17307 sed 's/^/| /' conftest.$ac_ext >&5
17309 ac_header_compiler=no
17312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17313 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17314 echo "${ECHO_T}$ac_header_compiler" >&6; }
17316 # Is the header present?
17317 { echo "$as_me:$LINENO: checking krb.h presence" >&5
17318 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6; }
17319 cat >conftest.$ac_ext <<_ACEOF
17322 cat confdefs.h >>conftest.$ac_ext
17323 cat >>conftest.$ac_ext <<_ACEOF
17324 /* end confdefs.h. */
17327 if { (ac_try="$ac_cpp conftest.$ac_ext"
17328 case "(($ac_try" in
17329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17330 *) ac_try_echo=$ac_try;;
17332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17335 grep -v '^ *+' conftest.er1 >conftest.err
17337 cat conftest.err >&5
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); } >/dev/null && {
17340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17341 test ! -s conftest.err
17343 ac_header_preproc=yes
17345 echo "$as_me: failed program was:" >&5
17346 sed 's/^/| /' conftest.$ac_ext >&5
17348 ac_header_preproc=no
17351 rm -f conftest.err conftest.$ac_ext
17352 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17353 echo "${ECHO_T}$ac_header_preproc" >&6; }
17355 # So? What about this header?
17356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17358 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
17359 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17360 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the compiler's result" >&5
17361 echo "$as_me: WARNING: krb.h: proceeding with the compiler's result" >&2;}
17362 ac_header_preproc=yes
17365 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
17366 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
17367 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
17368 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
17369 { echo "$as_me:$LINENO: WARNING: krb.h: see the Autoconf documentation" >&5
17370 echo "$as_me: WARNING: krb.h: see the Autoconf documentation" >&2;}
17371 { echo "$as_me:$LINENO: WARNING: krb.h: section \"Present But Cannot Be Compiled\"" >&5
17372 echo "$as_me: WARNING: krb.h: section \"Present But Cannot Be Compiled\"" >&2;}
17373 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
17374 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
17375 { echo "$as_me:$LINENO: WARNING: krb.h: in the future, the compiler will take precedence" >&5
17376 echo "$as_me: WARNING: krb.h: in the future, the compiler will take precedence" >&2;}
17380 { echo "$as_me:$LINENO: checking for krb.h" >&5
17381 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
17382 if test "${ac_cv_header_krb_h+set}" = set; then
17383 echo $ECHO_N "(cached) $ECHO_C" >&6
17385 ac_cv_header_krb_h=$ac_header_preproc
17387 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
17388 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
17391 if test $ac_cv_header_krb_h = yes; then
17393 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17394 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
17395 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17396 echo $ECHO_N "(cached) $ECHO_C" >&6
17398 ac_check_lib_save_LIBS=$LIBS
17399 LIBS="-lcom_err $LIBS"
17400 cat >conftest.$ac_ext <<_ACEOF
17403 cat confdefs.h >>conftest.$ac_ext
17404 cat >>conftest.$ac_ext <<_ACEOF
17405 /* end confdefs.h. */
17407 /* Override any GCC internal prototype to avoid an error.
17408 Use char because int might match the return type of a GCC
17409 builtin and then its argument prototype would still apply. */
17422 rm -f conftest.$ac_objext conftest$ac_exeext
17423 if { (ac_try="$ac_link"
17424 case "(($ac_try" in
17425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17426 *) ac_try_echo=$ac_try;;
17428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17429 (eval "$ac_link") 2>conftest.er1
17431 grep -v '^ *+' conftest.er1 >conftest.err
17433 cat conftest.err >&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); } && {
17436 test -z "$ac_c_werror_flag" ||
17437 test ! -s conftest.err
17438 } && test -s conftest$ac_exeext &&
17439 $as_test_x conftest$ac_exeext; then
17440 ac_cv_lib_com_err_com_err=yes
17442 echo "$as_me: failed program was:" >&5
17443 sed 's/^/| /' conftest.$ac_ext >&5
17445 ac_cv_lib_com_err_com_err=no
17448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17449 conftest$ac_exeext conftest.$ac_ext
17450 LIBS=$ac_check_lib_save_LIBS
17452 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17453 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
17454 if test $ac_cv_lib_com_err_com_err = yes; then
17456 { echo "$as_me:$LINENO: checking for krb_mk_priv in -lkrb" >&5
17457 echo $ECHO_N "checking for krb_mk_priv in -lkrb... $ECHO_C" >&6; }
17458 if test "${ac_cv_lib_krb_krb_mk_priv+set}" = set; then
17459 echo $ECHO_N "(cached) $ECHO_C" >&6
17461 ac_check_lib_save_LIBS=$LIBS
17462 LIBS="-lkrb $LIB_DES -lcom_err $LIBS"
17463 cat >conftest.$ac_ext <<_ACEOF
17466 cat confdefs.h >>conftest.$ac_ext
17467 cat >>conftest.$ac_ext <<_ACEOF
17468 /* end confdefs.h. */
17470 /* Override any GCC internal prototype to avoid an error.
17471 Use char because int might match the return type of a GCC
17472 builtin and then its argument prototype would still apply. */
17476 char krb_mk_priv ();
17480 return krb_mk_priv ();
17485 rm -f conftest.$ac_objext conftest$ac_exeext
17486 if { (ac_try="$ac_link"
17487 case "(($ac_try" in
17488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489 *) ac_try_echo=$ac_try;;
17491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492 (eval "$ac_link") 2>conftest.er1
17494 grep -v '^ *+' conftest.er1 >conftest.err
17496 cat conftest.err >&5
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); } && {
17499 test -z "$ac_c_werror_flag" ||
17500 test ! -s conftest.err
17501 } && test -s conftest$ac_exeext &&
17502 $as_test_x conftest$ac_exeext; then
17503 ac_cv_lib_krb_krb_mk_priv=yes
17505 echo "$as_me: failed program was:" >&5
17506 sed 's/^/| /' conftest.$ac_ext >&5
17508 ac_cv_lib_krb_krb_mk_priv=no
17511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17512 conftest$ac_exeext conftest.$ac_ext
17513 LIBS=$ac_check_lib_save_LIBS
17515 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_mk_priv" >&5
17516 echo "${ECHO_T}$ac_cv_lib_krb_krb_mk_priv" >&6; }
17517 if test $ac_cv_lib_krb_krb_mk_priv = yes; then
17518 COM_ERR="-lcom_err"; SASL_KRB_LIB="-lkrb"; krb4lib="yes"
17525 { echo "$as_me:$LINENO: checking for krb_mk_priv in -lkrb" >&5
17526 echo $ECHO_N "checking for krb_mk_priv in -lkrb... $ECHO_C" >&6; }
17527 if test "${ac_cv_lib_krb_krb_mk_priv+set}" = set; then
17528 echo $ECHO_N "(cached) $ECHO_C" >&6
17530 ac_check_lib_save_LIBS=$LIBS
17531 LIBS="-lkrb $LIB_DES $LIBS"
17532 cat >conftest.$ac_ext <<_ACEOF
17535 cat confdefs.h >>conftest.$ac_ext
17536 cat >>conftest.$ac_ext <<_ACEOF
17537 /* end confdefs.h. */
17539 /* Override any GCC internal prototype to avoid an error.
17540 Use char because int might match the return type of a GCC
17541 builtin and then its argument prototype would still apply. */
17545 char krb_mk_priv ();
17549 return krb_mk_priv ();
17554 rm -f conftest.$ac_objext conftest$ac_exeext
17555 if { (ac_try="$ac_link"
17556 case "(($ac_try" in
17557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17558 *) ac_try_echo=$ac_try;;
17560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17561 (eval "$ac_link") 2>conftest.er1
17563 grep -v '^ *+' conftest.er1 >conftest.err
17565 cat conftest.err >&5
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); } && {
17568 test -z "$ac_c_werror_flag" ||
17569 test ! -s conftest.err
17570 } && test -s conftest$ac_exeext &&
17571 $as_test_x conftest$ac_exeext; then
17572 ac_cv_lib_krb_krb_mk_priv=yes
17574 echo "$as_me: failed program was:" >&5
17575 sed 's/^/| /' conftest.$ac_ext >&5
17577 ac_cv_lib_krb_krb_mk_priv=no
17580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17581 conftest$ac_exeext conftest.$ac_ext
17582 LIBS=$ac_check_lib_save_LIBS
17584 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_mk_priv" >&5
17585 echo "${ECHO_T}$ac_cv_lib_krb_krb_mk_priv" >&6; }
17586 if test $ac_cv_lib_krb_krb_mk_priv = yes; then
17587 COM_ERR=""; SASL_KRB_LIB="-lkrb"; krb4lib="yes"
17600 if test "$krb4" != "no" -a "$krb4lib" = "no"; then
17601 { echo "$as_me:$LINENO: checking for krb_mk_priv in -lkrb4" >&5
17602 echo $ECHO_N "checking for krb_mk_priv in -lkrb4... $ECHO_C" >&6; }
17603 if test "${ac_cv_lib_krb4_krb_mk_priv+set}" = set; then
17604 echo $ECHO_N "(cached) $ECHO_C" >&6
17606 ac_check_lib_save_LIBS=$LIBS
17607 LIBS="-lkrb4 $LIB_DES $LIBS"
17608 cat >conftest.$ac_ext <<_ACEOF
17611 cat confdefs.h >>conftest.$ac_ext
17612 cat >>conftest.$ac_ext <<_ACEOF
17613 /* end confdefs.h. */
17615 /* Override any GCC internal prototype to avoid an error.
17616 Use char because int might match the return type of a GCC
17617 builtin and then its argument prototype would still apply. */
17621 char krb_mk_priv ();
17625 return krb_mk_priv ();
17630 rm -f conftest.$ac_objext conftest$ac_exeext
17631 if { (ac_try="$ac_link"
17632 case "(($ac_try" in
17633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17634 *) ac_try_echo=$ac_try;;
17636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17637 (eval "$ac_link") 2>conftest.er1
17639 grep -v '^ *+' conftest.er1 >conftest.err
17641 cat conftest.err >&5
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); } && {
17644 test -z "$ac_c_werror_flag" ||
17645 test ! -s conftest.err
17646 } && test -s conftest$ac_exeext &&
17647 $as_test_x conftest$ac_exeext; then
17648 ac_cv_lib_krb4_krb_mk_priv=yes
17650 echo "$as_me: failed program was:" >&5
17651 sed 's/^/| /' conftest.$ac_ext >&5
17653 ac_cv_lib_krb4_krb_mk_priv=no
17656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17657 conftest$ac_exeext conftest.$ac_ext
17658 LIBS=$ac_check_lib_save_LIBS
17660 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_mk_priv" >&5
17661 echo "${ECHO_T}$ac_cv_lib_krb4_krb_mk_priv" >&6; }
17662 if test $ac_cv_lib_krb4_krb_mk_priv = yes; then
17663 COM_ERR=""; SASL_KRB_LIB="-lkrb4"; krb4=yes
17669 if test "$krb4" = no; then
17670 { echo "$as_me:$LINENO: WARNING: No Kerberos V4 found" >&5
17671 echo "$as_me: WARNING: No Kerberos V4 found" >&2;}
17674 { echo "$as_me:$LINENO: WARNING: No DES library found for Kerberos V4 support" >&5
17675 echo "$as_me: WARNING: No DES library found for Kerberos V4 support" >&2;}
17680 if test "$krb4" != no; then
17681 cmu_save_LIBS="$LIBS"
17682 LIBS="$LIBS $SASL_KRB_LIB"
17684 for ac_func in krb_get_err_text
17686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17687 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17689 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17690 echo $ECHO_N "(cached) $ECHO_C" >&6
17692 cat >conftest.$ac_ext <<_ACEOF
17695 cat confdefs.h >>conftest.$ac_ext
17696 cat >>conftest.$ac_ext <<_ACEOF
17697 /* end confdefs.h. */
17698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17700 #define $ac_func innocuous_$ac_func
17702 /* System header to define __stub macros and hopefully few prototypes,
17703 which can conflict with char $ac_func (); below.
17704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17705 <limits.h> exists even on freestanding compilers. */
17708 # include <limits.h>
17710 # include <assert.h>
17715 /* Override any GCC internal prototype to avoid an error.
17716 Use char because int might match the return type of a GCC
17717 builtin and then its argument prototype would still apply. */
17722 /* The GNU C library defines this for functions which it implements
17723 to always fail with ENOSYS. Some functions are actually named
17724 something starting with __ and the normal name is an alias. */
17725 #if defined __stub_$ac_func || defined __stub___$ac_func
17732 return $ac_func ();
17737 rm -f conftest.$ac_objext conftest$ac_exeext
17738 if { (ac_try="$ac_link"
17739 case "(($ac_try" in
17740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17741 *) ac_try_echo=$ac_try;;
17743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17744 (eval "$ac_link") 2>conftest.er1
17746 grep -v '^ *+' conftest.er1 >conftest.err
17748 cat conftest.err >&5
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); } && {
17751 test -z "$ac_c_werror_flag" ||
17752 test ! -s conftest.err
17753 } && test -s conftest$ac_exeext &&
17754 $as_test_x conftest$ac_exeext; then
17755 eval "$as_ac_var=yes"
17757 echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.$ac_ext >&5
17760 eval "$as_ac_var=no"
17763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17764 conftest$ac_exeext conftest.$ac_ext
17766 ac_res=`eval echo '${'$as_ac_var'}'`
17767 { echo "$as_me:$LINENO: result: $ac_res" >&5
17768 echo "${ECHO_T}$ac_res" >&6; }
17769 if test `eval echo '${'$as_ac_var'}'` = yes; then
17770 cat >>confdefs.h <<_ACEOF
17771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17777 LIBS="$cmu_save_LIBS"
17780 { echo "$as_me:$LINENO: checking KERBEROS_V4" >&5
17781 echo $ECHO_N "checking KERBEROS_V4... $ECHO_C" >&6; }
17782 if test "$krb4" != no; then
17783 { echo "$as_me:$LINENO: result: enabled" >&5
17784 echo "${ECHO_T}enabled" >&6; }
17785 SASL_MECHS="$SASL_MECHS libkerberos4.la"
17786 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/kerberos4.c"
17787 SASL_STATIC_OBJS="$SASL_STATIC_OBJS kerberos4.o"
17789 cat >>confdefs.h <<\_ACEOF
17790 #define STATIC_KERBEROS4
17794 cat >>confdefs.h <<\_ACEOF
17798 SASL_KRB_LIB="$SASL_KRB_LIB $LIB_DES $COM_ERR"
17800 { echo "$as_me:$LINENO: result: disabled" >&5
17801 echo "${ECHO_T}disabled" >&6; }
17805 { echo "$as_me:$LINENO: checking for crypt" >&5
17806 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
17807 if test "${ac_cv_func_crypt+set}" = set; then
17808 echo $ECHO_N "(cached) $ECHO_C" >&6
17810 cat >conftest.$ac_ext <<_ACEOF
17813 cat confdefs.h >>conftest.$ac_ext
17814 cat >>conftest.$ac_ext <<_ACEOF
17815 /* end confdefs.h. */
17816 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
17817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17818 #define crypt innocuous_crypt
17820 /* System header to define __stub macros and hopefully few prototypes,
17821 which can conflict with char crypt (); below.
17822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17823 <limits.h> exists even on freestanding compilers. */
17826 # include <limits.h>
17828 # include <assert.h>
17833 /* Override any GCC internal prototype to avoid an error.
17834 Use char because int might match the return type of a GCC
17835 builtin and then its argument prototype would still apply. */
17840 /* The GNU C library defines this for functions which it implements
17841 to always fail with ENOSYS. Some functions are actually named
17842 something starting with __ and the normal name is an alias. */
17843 #if defined __stub_crypt || defined __stub___crypt
17855 rm -f conftest.$ac_objext conftest$ac_exeext
17856 if { (ac_try="$ac_link"
17857 case "(($ac_try" in
17858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17859 *) ac_try_echo=$ac_try;;
17861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17862 (eval "$ac_link") 2>conftest.er1
17864 grep -v '^ *+' conftest.er1 >conftest.err
17866 cat conftest.err >&5
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); } && {
17869 test -z "$ac_c_werror_flag" ||
17870 test ! -s conftest.err
17871 } && test -s conftest$ac_exeext &&
17872 $as_test_x conftest$ac_exeext; then
17873 ac_cv_func_crypt=yes
17875 echo "$as_me: failed program was:" >&5
17876 sed 's/^/| /' conftest.$ac_ext >&5
17878 ac_cv_func_crypt=no
17881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17882 conftest$ac_exeext conftest.$ac_ext
17884 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
17885 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
17886 if test $ac_cv_func_crypt = yes; then
17889 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17890 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17891 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17892 echo $ECHO_N "(cached) $ECHO_C" >&6
17894 ac_check_lib_save_LIBS=$LIBS
17895 LIBS="-lcrypt $LIBS"
17896 cat >conftest.$ac_ext <<_ACEOF
17899 cat confdefs.h >>conftest.$ac_ext
17900 cat >>conftest.$ac_ext <<_ACEOF
17901 /* end confdefs.h. */
17903 /* Override any GCC internal prototype to avoid an error.
17904 Use char because int might match the return type of a GCC
17905 builtin and then its argument prototype would still apply. */
17918 rm -f conftest.$ac_objext conftest$ac_exeext
17919 if { (ac_try="$ac_link"
17920 case "(($ac_try" in
17921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17922 *) ac_try_echo=$ac_try;;
17924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17925 (eval "$ac_link") 2>conftest.er1
17927 grep -v '^ *+' conftest.er1 >conftest.err
17929 cat conftest.err >&5
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); } && {
17932 test -z "$ac_c_werror_flag" ||
17933 test ! -s conftest.err
17934 } && test -s conftest$ac_exeext &&
17935 $as_test_x conftest$ac_exeext; then
17936 ac_cv_lib_crypt_crypt=yes
17938 echo "$as_me: failed program was:" >&5
17939 sed 's/^/| /' conftest.$ac_ext >&5
17941 ac_cv_lib_crypt_crypt=no
17944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17945 conftest$ac_exeext conftest.$ac_ext
17946 LIBS=$ac_check_lib_save_LIBS
17948 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17949 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17950 if test $ac_cv_lib_crypt_crypt = yes; then
17951 LIB_CRYPT="-lcrypt"; cmu_have_crypt=yes
17962 # Check whether --enable-gssapi was given.
17963 if test "${enable_gssapi+set}" = set; then
17964 enableval=$enable_gssapi; gssapi=$enableval
17970 # Check whether --with-gss_impl was given.
17971 if test "${with_gss_impl+set}" = set; then
17972 withval=$with_gss_impl; gss_impl=$withval
17978 if test "$gssapi" != no; then
17991 # When should we use __sunos?
17999 { 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
18000 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;}
18001 if test "$gss_impl" = "cybersafe"; then
18002 { { echo "$as_me:$LINENO: error: CyberSafe was forced, cannot continue as platform is not supported" >&5
18003 echo "$as_me: error: CyberSafe was forced, cannot continue as platform is not supported" >&2;}
18004 { (exit 1); exit 1; }; }
18009 cmu_saved_CPPFLAGS=$CPPFLAGS
18011 if test -d ${gssapi}; then
18012 CPPFLAGS="$CPPFLAGS -I$gssapi/include"
18013 # We want to keep -I in our CPPFLAGS, but only if we succeed
18014 cmu_saved_CPPFLAGS=$CPPFLAGS
18015 ### I am not sure how useful is this (and whether this is required at all
18016 ### especially when we have to provide two -L flags for new CyberSafe
18017 LDFLAGS="$LDFLAGS -L$gssapi/lib"
18019 if test -n "$platform"; then
18020 if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
18021 CPPFLAGS="$CPPFLAGS -D$platform"
18022 if test -d "${gssapi}/appsec-sdk/include"; then
18023 CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
18028 if test "${ac_cv_header_gssapi_h+set}" = set; then
18029 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
18030 echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
18031 if test "${ac_cv_header_gssapi_h+set}" = set; then
18032 echo $ECHO_N "(cached) $ECHO_C" >&6
18034 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
18035 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
18037 # Is the header compilable?
18038 { echo "$as_me:$LINENO: checking gssapi.h usability" >&5
18039 echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; }
18040 cat >conftest.$ac_ext <<_ACEOF
18043 cat confdefs.h >>conftest.$ac_ext
18044 cat >>conftest.$ac_ext <<_ACEOF
18045 /* end confdefs.h. */
18046 $ac_includes_default
18047 #include <gssapi.h>
18049 rm -f conftest.$ac_objext
18050 if { (ac_try="$ac_compile"
18051 case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_compile") 2>conftest.er1
18058 grep -v '^ *+' conftest.er1 >conftest.err
18060 cat conftest.err >&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); } && {
18063 test -z "$ac_c_werror_flag" ||
18064 test ! -s conftest.err
18065 } && test -s conftest.$ac_objext; then
18066 ac_header_compiler=yes
18068 echo "$as_me: failed program was:" >&5
18069 sed 's/^/| /' conftest.$ac_ext >&5
18071 ac_header_compiler=no
18074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18076 echo "${ECHO_T}$ac_header_compiler" >&6; }
18078 # Is the header present?
18079 { echo "$as_me:$LINENO: checking gssapi.h presence" >&5
18080 echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; }
18081 cat >conftest.$ac_ext <<_ACEOF
18084 cat confdefs.h >>conftest.$ac_ext
18085 cat >>conftest.$ac_ext <<_ACEOF
18086 /* end confdefs.h. */
18087 #include <gssapi.h>
18089 if { (ac_try="$ac_cpp conftest.$ac_ext"
18090 case "(($ac_try" in
18091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18092 *) ac_try_echo=$ac_try;;
18094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18097 grep -v '^ *+' conftest.er1 >conftest.err
18099 cat conftest.err >&5
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); } >/dev/null && {
18102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18103 test ! -s conftest.err
18105 ac_header_preproc=yes
18107 echo "$as_me: failed program was:" >&5
18108 sed 's/^/| /' conftest.$ac_ext >&5
18110 ac_header_preproc=no
18113 rm -f conftest.err conftest.$ac_ext
18114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18115 echo "${ECHO_T}$ac_header_preproc" >&6; }
18117 # So? What about this header?
18118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18120 { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
18121 echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18122 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
18123 echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
18124 ac_header_preproc=yes
18127 { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
18128 echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
18129 { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5
18130 echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;}
18131 { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
18132 echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
18133 { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5
18134 echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
18135 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
18136 echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
18137 { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
18138 echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
18142 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
18143 echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
18144 if test "${ac_cv_header_gssapi_h+set}" = set; then
18145 echo $ECHO_N "(cached) $ECHO_C" >&6
18147 ac_cv_header_gssapi_h=$ac_header_preproc
18149 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
18150 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
18153 if test $ac_cv_header_gssapi_h = yes; then
18155 cat >>confdefs.h <<\_ACEOF
18156 #define HAVE_GSSAPI_H
18160 if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then
18161 { echo "$as_me:$LINENO: checking for gssapi/gssapi.h" >&5
18162 echo $ECHO_N "checking for gssapi/gssapi.h... $ECHO_C" >&6; }
18163 if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then
18164 echo $ECHO_N "(cached) $ECHO_C" >&6
18166 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5
18167 echo "${ECHO_T}$ac_cv_header_gssapi_gssapi_h" >&6; }
18169 # Is the header compilable?
18170 { echo "$as_me:$LINENO: checking gssapi/gssapi.h usability" >&5
18171 echo $ECHO_N "checking gssapi/gssapi.h usability... $ECHO_C" >&6; }
18172 cat >conftest.$ac_ext <<_ACEOF
18175 cat confdefs.h >>conftest.$ac_ext
18176 cat >>conftest.$ac_ext <<_ACEOF
18177 /* end confdefs.h. */
18178 $ac_includes_default
18179 #include <gssapi/gssapi.h>
18181 rm -f conftest.$ac_objext
18182 if { (ac_try="$ac_compile"
18183 case "(($ac_try" in
18184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18185 *) ac_try_echo=$ac_try;;
18187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18188 (eval "$ac_compile") 2>conftest.er1
18190 grep -v '^ *+' conftest.er1 >conftest.err
18192 cat conftest.err >&5
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); } && {
18195 test -z "$ac_c_werror_flag" ||
18196 test ! -s conftest.err
18197 } && test -s conftest.$ac_objext; then
18198 ac_header_compiler=yes
18200 echo "$as_me: failed program was:" >&5
18201 sed 's/^/| /' conftest.$ac_ext >&5
18203 ac_header_compiler=no
18206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18208 echo "${ECHO_T}$ac_header_compiler" >&6; }
18210 # Is the header present?
18211 { echo "$as_me:$LINENO: checking gssapi/gssapi.h presence" >&5
18212 echo $ECHO_N "checking gssapi/gssapi.h presence... $ECHO_C" >&6; }
18213 cat >conftest.$ac_ext <<_ACEOF
18216 cat confdefs.h >>conftest.$ac_ext
18217 cat >>conftest.$ac_ext <<_ACEOF
18218 /* end confdefs.h. */
18219 #include <gssapi/gssapi.h>
18221 if { (ac_try="$ac_cpp conftest.$ac_ext"
18222 case "(($ac_try" in
18223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18224 *) ac_try_echo=$ac_try;;
18226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18229 grep -v '^ *+' conftest.er1 >conftest.err
18231 cat conftest.err >&5
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); } >/dev/null && {
18234 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18235 test ! -s conftest.err
18237 ac_header_preproc=yes
18239 echo "$as_me: failed program was:" >&5
18240 sed 's/^/| /' conftest.$ac_ext >&5
18242 ac_header_preproc=no
18245 rm -f conftest.err conftest.$ac_ext
18246 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18247 echo "${ECHO_T}$ac_header_preproc" >&6; }
18249 # So? What about this header?
18250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18252 { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
18253 echo "$as_me: WARNING: gssapi/gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18254 { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: proceeding with the compiler's result" >&5
18255 echo "$as_me: WARNING: gssapi/gssapi.h: proceeding with the compiler's result" >&2;}
18256 ac_header_preproc=yes
18259 { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: present but cannot be compiled" >&5
18260 echo "$as_me: WARNING: gssapi/gssapi.h: present but cannot be compiled" >&2;}
18261 { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: check for missing prerequisite headers?" >&5
18262 echo "$as_me: WARNING: gssapi/gssapi.h: check for missing prerequisite headers?" >&2;}
18263 { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: see the Autoconf documentation" >&5
18264 echo "$as_me: WARNING: gssapi/gssapi.h: see the Autoconf documentation" >&2;}
18265 { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: section \"Present But Cannot Be Compiled\"" >&5
18266 echo "$as_me: WARNING: gssapi/gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
18267 { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: proceeding with the preprocessor's result" >&5
18268 echo "$as_me: WARNING: gssapi/gssapi.h: proceeding with the preprocessor's result" >&2;}
18269 { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: in the future, the compiler will take precedence" >&5
18270 echo "$as_me: WARNING: gssapi/gssapi.h: in the future, the compiler will take precedence" >&2;}
18274 { echo "$as_me:$LINENO: checking for gssapi/gssapi.h" >&5
18275 echo $ECHO_N "checking for gssapi/gssapi.h... $ECHO_C" >&6; }
18276 if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then
18277 echo $ECHO_N "(cached) $ECHO_C" >&6
18279 ac_cv_header_gssapi_gssapi_h=$ac_header_preproc
18281 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5
18282 echo "${ECHO_T}$ac_cv_header_gssapi_gssapi_h" >&6; }
18285 if test $ac_cv_header_gssapi_gssapi_h = yes; then
18288 { echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - no include files found" >&5
18289 echo "$as_me: WARNING: Disabling GSSAPI - no include files found" >&2;}; gssapi=no
18297 CPPFLAGS=$cmu_saved_CPPFLAGS
18301 if test "$gssapi" != no; then
18302 # We need to find out which gssapi implementation we are
18303 # using. Supported alternatives are: MIT Kerberos 5,
18304 # Heimdal Kerberos 5 (http://www.pdc.kth.se/heimdal),
18305 # CyberSafe Kerberos 5 (http://www.cybersafe.com/)
18306 # and Sun SEAM (http://wwws.sun.com/software/security/kerberos/)
18308 # The choice is reflected in GSSAPIBASE_LIBS
18311 { echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
18312 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6; }
18313 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
18314 echo $ECHO_N "(cached) $ECHO_C" >&6
18316 ac_check_lib_save_LIBS=$LIBS
18317 LIBS="-lresolv $LIBS"
18318 cat >conftest.$ac_ext <<_ACEOF
18321 cat confdefs.h >>conftest.$ac_ext
18322 cat >>conftest.$ac_ext <<_ACEOF
18323 /* end confdefs.h. */
18325 /* Override any GCC internal prototype to avoid an error.
18326 Use char because int might match the return type of a GCC
18327 builtin and then its argument prototype would still apply. */
18331 char res_search ();
18335 return res_search ();
18340 rm -f conftest.$ac_objext conftest$ac_exeext
18341 if { (ac_try="$ac_link"
18342 case "(($ac_try" in
18343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18344 *) ac_try_echo=$ac_try;;
18346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18347 (eval "$ac_link") 2>conftest.er1
18349 grep -v '^ *+' conftest.er1 >conftest.err
18351 cat conftest.err >&5
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); } && {
18354 test -z "$ac_c_werror_flag" ||
18355 test ! -s conftest.err
18356 } && test -s conftest$ac_exeext &&
18357 $as_test_x conftest$ac_exeext; then
18358 ac_cv_lib_resolv_res_search=yes
18360 echo "$as_me: failed program was:" >&5
18361 sed 's/^/| /' conftest.$ac_ext >&5
18363 ac_cv_lib_resolv_res_search=no
18366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18367 conftest$ac_exeext conftest.$ac_ext
18368 LIBS=$ac_check_lib_save_LIBS
18370 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
18371 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6; }
18372 if test $ac_cv_lib_resolv_res_search = yes; then
18373 cat >>confdefs.h <<_ACEOF
18374 #define HAVE_LIBRESOLV 1
18377 LIBS="-lresolv $LIBS"
18381 if test -d ${gssapi}; then
18382 gssapi_dir="${gssapi}/lib"
18383 GSSAPIBASE_LIBS="-L$gssapi_dir"
18384 GSSAPIBASE_STATIC_LIBS="-L$gssapi_dir"
18386 # FIXME: This is only used for building cyrus, and then only as
18387 # a real hack. it needs to be fixed.
18388 gssapi_dir="/usr/local/lib"
18391 # Check a full link against the Heimdal libraries.
18392 # If this fails, check a full link against the MIT libraries.
18393 # If this fails, check a full link against the CyberSafe libraries.
18394 # If this fails, check a full link against the Solaris 8 and up libgss.
18396 if test "$gss_impl" = "auto" -o "$gss_impl" = "heimdal"; then
18398 { echo "$as_me:$LINENO: checking for gss_unwrap in -lgssapi" >&5
18399 echo $ECHO_N "checking for gss_unwrap in -lgssapi... $ECHO_C" >&6; }
18400 if test "${ac_cv_lib_gssapi_gss_unwrap+set}" = set; then
18401 echo $ECHO_N "(cached) $ECHO_C" >&6
18403 ac_check_lib_save_LIBS=$LIBS
18404 LIBS="-lgssapi ${GSSAPIBASE_LIBS} -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err ${LIB_SOCKET} $LIBS"
18405 cat >conftest.$ac_ext <<_ACEOF
18408 cat confdefs.h >>conftest.$ac_ext
18409 cat >>conftest.$ac_ext <<_ACEOF
18410 /* end confdefs.h. */
18412 /* Override any GCC internal prototype to avoid an error.
18413 Use char because int might match the return type of a GCC
18414 builtin and then its argument prototype would still apply. */
18418 char gss_unwrap ();
18422 return gss_unwrap ();
18427 rm -f conftest.$ac_objext conftest$ac_exeext
18428 if { (ac_try="$ac_link"
18429 case "(($ac_try" in
18430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18431 *) ac_try_echo=$ac_try;;
18433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18434 (eval "$ac_link") 2>conftest.er1
18436 grep -v '^ *+' conftest.er1 >conftest.err
18438 cat conftest.err >&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); } && {
18441 test -z "$ac_c_werror_flag" ||
18442 test ! -s conftest.err
18443 } && test -s conftest$ac_exeext &&
18444 $as_test_x conftest$ac_exeext; then
18445 ac_cv_lib_gssapi_gss_unwrap=yes
18447 echo "$as_me: failed program was:" >&5
18448 sed 's/^/| /' conftest.$ac_ext >&5
18450 ac_cv_lib_gssapi_gss_unwrap=no
18453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18454 conftest$ac_exeext conftest.$ac_ext
18455 LIBS=$ac_check_lib_save_LIBS
18457 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_unwrap" >&5
18458 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_unwrap" >&6; }
18459 if test $ac_cv_lib_gssapi_gss_unwrap = yes; then
18465 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
18470 if test "$gss_impl" = "auto" -o "$gss_impl" = "mit"; then
18471 # check for libkrb5support first
18472 { echo "$as_me:$LINENO: checking for krb5int_getspecific in -lkrb5support" >&5
18473 echo $ECHO_N "checking for krb5int_getspecific in -lkrb5support... $ECHO_C" >&6; }
18474 if test "${ac_cv_lib_krb5support_krb5int_getspecific+set}" = set; then
18475 echo $ECHO_N "(cached) $ECHO_C" >&6
18477 ac_check_lib_save_LIBS=$LIBS
18478 LIBS="-lkrb5support ${LIB_SOCKET} $LIBS"
18479 cat >conftest.$ac_ext <<_ACEOF
18482 cat confdefs.h >>conftest.$ac_ext
18483 cat >>conftest.$ac_ext <<_ACEOF
18484 /* end confdefs.h. */
18486 /* Override any GCC internal prototype to avoid an error.
18487 Use char because int might match the return type of a GCC
18488 builtin and then its argument prototype would still apply. */
18492 char krb5int_getspecific ();
18496 return krb5int_getspecific ();
18501 rm -f conftest.$ac_objext conftest$ac_exeext
18502 if { (ac_try="$ac_link"
18503 case "(($ac_try" in
18504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18505 *) ac_try_echo=$ac_try;;
18507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18508 (eval "$ac_link") 2>conftest.er1
18510 grep -v '^ *+' conftest.er1 >conftest.err
18512 cat conftest.err >&5
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); } && {
18515 test -z "$ac_c_werror_flag" ||
18516 test ! -s conftest.err
18517 } && test -s conftest$ac_exeext &&
18518 $as_test_x conftest$ac_exeext; then
18519 ac_cv_lib_krb5support_krb5int_getspecific=yes
18521 echo "$as_me: failed program was:" >&5
18522 sed 's/^/| /' conftest.$ac_ext >&5
18524 ac_cv_lib_krb5support_krb5int_getspecific=no
18527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18528 conftest$ac_exeext conftest.$ac_ext
18529 LIBS=$ac_check_lib_save_LIBS
18531 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
18532 echo "${ECHO_T}$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
18533 if test $ac_cv_lib_krb5support_krb5int_getspecific = yes; then
18534 K5SUP=-lkrb5support K5SUPSTATIC=$gssapi_dir/libkrb5support.a
18539 { echo "$as_me:$LINENO: checking for gss_unwrap in -lgssapi_krb5" >&5
18540 echo $ECHO_N "checking for gss_unwrap in -lgssapi_krb5... $ECHO_C" >&6; }
18541 if test "${ac_cv_lib_gssapi_krb5_gss_unwrap+set}" = set; then
18542 echo $ECHO_N "(cached) $ECHO_C" >&6
18544 ac_check_lib_save_LIBS=$LIBS
18545 LIBS="-lgssapi_krb5 ${GSSAPIBASE_LIBS} -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP} ${LIB_SOCKET} $LIBS"
18546 cat >conftest.$ac_ext <<_ACEOF
18549 cat confdefs.h >>conftest.$ac_ext
18550 cat >>conftest.$ac_ext <<_ACEOF
18551 /* end confdefs.h. */
18553 /* Override any GCC internal prototype to avoid an error.
18554 Use char because int might match the return type of a GCC
18555 builtin and then its argument prototype would still apply. */
18559 char gss_unwrap ();
18563 return gss_unwrap ();
18568 rm -f conftest.$ac_objext conftest$ac_exeext
18569 if { (ac_try="$ac_link"
18570 case "(($ac_try" in
18571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572 *) ac_try_echo=$ac_try;;
18574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18575 (eval "$ac_link") 2>conftest.er1
18577 grep -v '^ *+' conftest.er1 >conftest.err
18579 cat conftest.err >&5
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); } && {
18582 test -z "$ac_c_werror_flag" ||
18583 test ! -s conftest.err
18584 } && test -s conftest$ac_exeext &&
18585 $as_test_x conftest$ac_exeext; then
18586 ac_cv_lib_gssapi_krb5_gss_unwrap=yes
18588 echo "$as_me: failed program was:" >&5
18589 sed 's/^/| /' conftest.$ac_ext >&5
18591 ac_cv_lib_gssapi_krb5_gss_unwrap=no
18594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18595 conftest$ac_exeext conftest.$ac_ext
18596 LIBS=$ac_check_lib_save_LIBS
18598 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_unwrap" >&5
18599 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_unwrap" >&6; }
18600 if test $ac_cv_lib_gssapi_krb5_gss_unwrap = yes; then
18606 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
18611 # For Cybersafe one has to set a platform define in order to make compilation work
18612 if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
18614 cmu_saved_CPPFLAGS=$CPPFLAGS
18615 cmu_saved_GSSAPIBASE_LIBS=$GSSAPIBASE_LIBS
18616 # FIXME - Note that the libraries are in .../lib64 for 64bit kernels
18617 if test -d "${gssapi}/appsec-rt/lib"; then
18618 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -L${gssapi}/appsec-rt/lib"
18620 CPPFLAGS="$CPPFLAGS -D$platform"
18621 if test -d "${gssapi}/appsec-sdk/include"; then
18622 CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
18627 # Check for CyberSafe with two libraries first, than fall back to a single
18628 # library (older CyberSafe)
18630 unset ac_cv_lib_gss_csf_gss_acq_user
18631 { echo "$as_me:$LINENO: checking for csf_gss_acq_user in -lgss" >&5
18632 echo $ECHO_N "checking for csf_gss_acq_user in -lgss... $ECHO_C" >&6; }
18633 if test "${ac_cv_lib_gss_csf_gss_acq_user+set}" = set; then
18634 echo $ECHO_N "(cached) $ECHO_C" >&6
18636 ac_check_lib_save_LIBS=$LIBS
18637 LIBS="-lgss ${GSSAPIBASE_LIBS} -lgss -lcstbk5 $LIBS"
18638 cat >conftest.$ac_ext <<_ACEOF
18641 cat confdefs.h >>conftest.$ac_ext
18642 cat >>conftest.$ac_ext <<_ACEOF
18643 /* end confdefs.h. */
18645 /* Override any GCC internal prototype to avoid an error.
18646 Use char because int might match the return type of a GCC
18647 builtin and then its argument prototype would still apply. */
18651 char csf_gss_acq_user ();
18655 return csf_gss_acq_user ();
18660 rm -f conftest.$ac_objext conftest$ac_exeext
18661 if { (ac_try="$ac_link"
18662 case "(($ac_try" in
18663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18664 *) ac_try_echo=$ac_try;;
18666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18667 (eval "$ac_link") 2>conftest.er1
18669 grep -v '^ *+' conftest.er1 >conftest.err
18671 cat conftest.err >&5
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); } && {
18674 test -z "$ac_c_werror_flag" ||
18675 test ! -s conftest.err
18676 } && test -s conftest$ac_exeext &&
18677 $as_test_x conftest$ac_exeext; then
18678 ac_cv_lib_gss_csf_gss_acq_user=yes
18680 echo "$as_me: failed program was:" >&5
18681 sed 's/^/| /' conftest.$ac_ext >&5
18683 ac_cv_lib_gss_csf_gss_acq_user=no
18686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18687 conftest$ac_exeext conftest.$ac_ext
18688 LIBS=$ac_check_lib_save_LIBS
18690 { echo "$as_me:$LINENO: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
18691 echo "${ECHO_T}$ac_cv_lib_gss_csf_gss_acq_user" >&6; }
18692 if test $ac_cv_lib_gss_csf_gss_acq_user = yes; then
18693 gss_impl="cybersafe03"
18695 unset ac_cv_lib_gss_csf_gss_acq_user;
18696 { echo "$as_me:$LINENO: checking for csf_gss_acq_user in -lgss" >&5
18697 echo $ECHO_N "checking for csf_gss_acq_user in -lgss... $ECHO_C" >&6; }
18698 if test "${ac_cv_lib_gss_csf_gss_acq_user+set}" = set; then
18699 echo $ECHO_N "(cached) $ECHO_C" >&6
18701 ac_check_lib_save_LIBS=$LIBS
18702 LIBS="-lgss $GSSAPIBASE_LIBS -lgss $LIBS"
18703 cat >conftest.$ac_ext <<_ACEOF
18706 cat confdefs.h >>conftest.$ac_ext
18707 cat >>conftest.$ac_ext <<_ACEOF
18708 /* end confdefs.h. */
18710 /* Override any GCC internal prototype to avoid an error.
18711 Use char because int might match the return type of a GCC
18712 builtin and then its argument prototype would still apply. */
18716 char csf_gss_acq_user ();
18720 return csf_gss_acq_user ();
18725 rm -f conftest.$ac_objext conftest$ac_exeext
18726 if { (ac_try="$ac_link"
18727 case "(($ac_try" in
18728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729 *) ac_try_echo=$ac_try;;
18731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18732 (eval "$ac_link") 2>conftest.er1
18734 grep -v '^ *+' conftest.er1 >conftest.err
18736 cat conftest.err >&5
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); } && {
18739 test -z "$ac_c_werror_flag" ||
18740 test ! -s conftest.err
18741 } && test -s conftest$ac_exeext &&
18742 $as_test_x conftest$ac_exeext; then
18743 ac_cv_lib_gss_csf_gss_acq_user=yes
18745 echo "$as_me: failed program was:" >&5
18746 sed 's/^/| /' conftest.$ac_ext >&5
18748 ac_cv_lib_gss_csf_gss_acq_user=no
18751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18752 conftest$ac_exeext conftest.$ac_ext
18753 LIBS=$ac_check_lib_save_LIBS
18755 { echo "$as_me:$LINENO: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
18756 echo "${ECHO_T}$ac_cv_lib_gss_csf_gss_acq_user" >&6; }
18757 if test $ac_cv_lib_gss_csf_gss_acq_user = yes; then
18758 gss_impl="cybersafe"
18766 if test "$gss_failed" = "1"; then
18767 # Restore variables
18768 GSSAPIBASE_LIBS=$cmu_saved_GSSAPIBASE_LIBS
18769 CPPFLAGS=$cmu_saved_CPPFLAGS
18771 if test "$gss_impl" != "auto"; then
18777 if test "$gss_impl" = "auto" -o "$gss_impl" = "seam"; then
18779 { echo "$as_me:$LINENO: checking for gss_unwrap in -lgss" >&5
18780 echo $ECHO_N "checking for gss_unwrap in -lgss... $ECHO_C" >&6; }
18781 if test "${ac_cv_lib_gss_gss_unwrap+set}" = set; then
18782 echo $ECHO_N "(cached) $ECHO_C" >&6
18784 ac_check_lib_save_LIBS=$LIBS
18785 LIBS="-lgss -lgss $LIBS"
18786 cat >conftest.$ac_ext <<_ACEOF
18789 cat confdefs.h >>conftest.$ac_ext
18790 cat >>conftest.$ac_ext <<_ACEOF
18791 /* end confdefs.h. */
18793 /* Override any GCC internal prototype to avoid an error.
18794 Use char because int might match the return type of a GCC
18795 builtin and then its argument prototype would still apply. */
18799 char gss_unwrap ();
18803 return gss_unwrap ();
18808 rm -f conftest.$ac_objext conftest$ac_exeext
18809 if { (ac_try="$ac_link"
18810 case "(($ac_try" in
18811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18812 *) ac_try_echo=$ac_try;;
18814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18815 (eval "$ac_link") 2>conftest.er1
18817 grep -v '^ *+' conftest.er1 >conftest.err
18819 cat conftest.err >&5
18820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821 (exit $ac_status); } && {
18822 test -z "$ac_c_werror_flag" ||
18823 test ! -s conftest.err
18824 } && test -s conftest$ac_exeext &&
18825 $as_test_x conftest$ac_exeext; then
18826 ac_cv_lib_gss_gss_unwrap=yes
18828 echo "$as_me: failed program was:" >&5
18829 sed 's/^/| /' conftest.$ac_ext >&5
18831 ac_cv_lib_gss_gss_unwrap=no
18834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18835 conftest$ac_exeext conftest.$ac_ext
18836 LIBS=$ac_check_lib_save_LIBS
18838 { echo "$as_me:$LINENO: result: $ac_cv_lib_gss_gss_unwrap" >&5
18839 echo "${ECHO_T}$ac_cv_lib_gss_gss_unwrap" >&6; }
18840 if test $ac_cv_lib_gss_gss_unwrap = yes; then
18846 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
18851 if test "$gss_impl" = "mit"; then
18852 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP}"
18853 GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_LIBS $gssapi_dir/libgssapi_krb5.a $gssapi_dir/libkrb5.a $gssapi_dir/libk5crypto.a $gssapi_dir/libcom_err.a ${K5SUPSTATIC}"
18854 elif test "$gss_impl" = "heimdal"; then
18855 CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL"
18856 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err"
18857 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}"
18858 elif test "$gss_impl" = "cybersafe03"; then
18859 # Version of CyberSafe with two libraries
18860 CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
18861 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss -lcstbk5"
18862 # there is no static libgss for CyberSafe
18863 GSSAPIBASE_STATIC_LIBS=none
18864 elif test "$gss_impl" = "cybersafe"; then
18865 CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
18866 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss"
18867 # there is no static libgss for CyberSafe
18868 GSSAPIBASE_STATIC_LIBS=none
18869 elif test "$gss_impl" = "seam"; then
18870 GSSAPIBASE_LIBS=-lgss
18871 # there is no static libgss on Solaris 8 and up
18872 GSSAPIBASE_STATIC_LIBS=none
18873 elif test "$gss_impl" = "failed"; then
18876 GSSAPIBASE_STATIC_LIBS=
18877 { echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - specified library not found" >&5
18878 echo "$as_me: WARNING: Disabling GSSAPI - specified library not found" >&2;}
18882 GSSAPIBASE_STATIC_LIBS=
18883 { echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - no library" >&5
18884 echo "$as_me: WARNING: Disabling GSSAPI - no library" >&2;}
18889 # Cybersafe defines both GSS_C_NT_HOSTBASED_SERVICE and GSS_C_NT_USER_NAME
18890 # in gssapi\rfckrb5.h
18892 if test "$gssapi" != "no"; then
18893 if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
18894 cat >conftest.$ac_ext <<_ACEOF
18897 cat confdefs.h >>conftest.$ac_ext
18898 cat >>conftest.$ac_ext <<_ACEOF
18899 /* end confdefs.h. */
18900 #include <gssapi/gssapi.h>
18901 #ifdef GSS_C_NT_HOSTBASED_SERVICE
18902 hostbased_service_gss_nt_yes
18905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18906 $EGREP "hostbased_service_gss_nt_yes" >/dev/null 2>&1; then
18908 cat >>confdefs.h <<\_ACEOF
18909 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
18913 { echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5
18914 echo "$as_me: WARNING: Cybersafe define not found" >&2;}
18919 elif test "$ac_cv_header_gssapi_h" = "yes"; then
18920 cat >conftest.$ac_ext <<_ACEOF
18923 cat confdefs.h >>conftest.$ac_ext
18924 cat >>conftest.$ac_ext <<_ACEOF
18925 /* end confdefs.h. */
18926 #include <gssapi.h>
18929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18930 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
18932 cat >>confdefs.h <<\_ACEOF
18933 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
18939 elif test "$ac_cv_header_gssapi_gssapi_h"; then
18940 cat >conftest.$ac_ext <<_ACEOF
18943 cat confdefs.h >>conftest.$ac_ext
18944 cat >>conftest.$ac_ext <<_ACEOF
18945 /* end confdefs.h. */
18946 #include <gssapi/gssapi.h>
18949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18950 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
18952 cat >>confdefs.h <<\_ACEOF
18953 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE
18961 if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
18962 cat >conftest.$ac_ext <<_ACEOF
18965 cat confdefs.h >>conftest.$ac_ext
18966 cat >>conftest.$ac_ext <<_ACEOF
18967 /* end confdefs.h. */
18968 #include <gssapi/gssapi.h>
18969 #ifdef GSS_C_NT_USER_NAME
18970 user_name_yes_gss_nt
18973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18974 $EGREP "user_name_yes_gss_nt" >/dev/null 2>&1; then
18976 cat >>confdefs.h <<\_ACEOF
18977 #define HAVE_GSS_C_NT_USER_NAME
18981 { echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5
18982 echo "$as_me: WARNING: Cybersafe define not found" >&2;}
18986 elif test "$ac_cv_header_gssapi_h" = "yes"; then
18987 cat >conftest.$ac_ext <<_ACEOF
18990 cat confdefs.h >>conftest.$ac_ext
18991 cat >>conftest.$ac_ext <<_ACEOF
18992 /* end confdefs.h. */
18993 #include <gssapi.h>
18996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18997 $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then
18999 cat >>confdefs.h <<\_ACEOF
19000 #define HAVE_GSS_C_NT_USER_NAME
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.h>
19015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19016 $EGREP "gss_inquire_attrs_for_mech" >/dev/null 2>&1; then
19021 elif test "$ac_cv_header_gssapi_gssapi_h"; then
19022 cat >conftest.$ac_ext <<_ACEOF
19025 cat confdefs.h >>conftest.$ac_ext
19026 cat >>conftest.$ac_ext <<_ACEOF
19027 /* end confdefs.h. */
19028 #include <gssapi/gssapi.h>
19031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19032 $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then
19034 cat >>confdefs.h <<\_ACEOF
19035 #define HAVE_GSS_C_NT_USER_NAME
19041 cat >conftest.$ac_ext <<_ACEOF
19044 cat confdefs.h >>conftest.$ac_ext
19045 cat >>conftest.$ac_ext <<_ACEOF
19046 /* end confdefs.h. */
19047 #include <gssapi/gssapi.h>
19050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19051 $EGREP "gss_inquire_attrs_for_mech" >/dev/null 2>&1; then
19060 { echo "$as_me:$LINENO: checking GSSAPI" >&5
19061 echo $ECHO_N "checking GSSAPI... $ECHO_C" >&6; }
19062 if test "$gssapi" != no; then
19063 { echo "$as_me:$LINENO: result: with implementation ${gss_impl}" >&5
19064 echo "${ECHO_T}with implementation ${gss_impl}" >&6; }
19065 { echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
19066 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6; }
19067 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
19068 echo $ECHO_N "(cached) $ECHO_C" >&6
19070 ac_check_lib_save_LIBS=$LIBS
19071 LIBS="-lresolv $LIBS"
19072 cat >conftest.$ac_ext <<_ACEOF
19075 cat confdefs.h >>conftest.$ac_ext
19076 cat >>conftest.$ac_ext <<_ACEOF
19077 /* end confdefs.h. */
19079 /* Override any GCC internal prototype to avoid an error.
19080 Use char because int might match the return type of a GCC
19081 builtin and then its argument prototype would still apply. */
19085 char res_search ();
19089 return res_search ();
19094 rm -f conftest.$ac_objext conftest$ac_exeext
19095 if { (ac_try="$ac_link"
19096 case "(($ac_try" in
19097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19098 *) ac_try_echo=$ac_try;;
19100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19101 (eval "$ac_link") 2>conftest.er1
19103 grep -v '^ *+' conftest.er1 >conftest.err
19105 cat conftest.err >&5
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); } && {
19108 test -z "$ac_c_werror_flag" ||
19109 test ! -s conftest.err
19110 } && test -s conftest$ac_exeext &&
19111 $as_test_x conftest$ac_exeext; then
19112 ac_cv_lib_resolv_res_search=yes
19114 echo "$as_me: failed program was:" >&5
19115 sed 's/^/| /' conftest.$ac_ext >&5
19117 ac_cv_lib_resolv_res_search=no
19120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19121 conftest$ac_exeext conftest.$ac_ext
19122 LIBS=$ac_check_lib_save_LIBS
19124 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
19125 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6; }
19126 if test $ac_cv_lib_resolv_res_search = yes; then
19127 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lresolv"
19130 SASL_MECHS="$SASL_MECHS libgssapiv2.la"
19131 SASL_STATIC_OBJS="$SASL_STATIC_OBJS gssapi.o"
19132 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/gssapi.c"
19133 if test "$rfc5587" = "yes"; then
19134 SASL_MECHS="$SASL_MECHS libgs2.la"
19135 SASL_STATIC_OBJS="$SASL_STATIC_OBJS gs2.o"
19136 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/gs2.c"
19138 cmu_save_LIBS="$LIBS"
19139 LIBS="$LIBS $GSSAPIBASE_LIBS"
19141 for ac_func in gsskrb5_register_acceptor_identity
19143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19144 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19146 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19147 echo $ECHO_N "(cached) $ECHO_C" >&6
19149 cat >conftest.$ac_ext <<_ACEOF
19152 cat confdefs.h >>conftest.$ac_ext
19153 cat >>conftest.$ac_ext <<_ACEOF
19154 /* end confdefs.h. */
19155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19157 #define $ac_func innocuous_$ac_func
19159 /* System header to define __stub macros and hopefully few prototypes,
19160 which can conflict with char $ac_func (); below.
19161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19162 <limits.h> exists even on freestanding compilers. */
19165 # include <limits.h>
19167 # include <assert.h>
19172 /* Override any GCC internal prototype to avoid an error.
19173 Use char because int might match the return type of a GCC
19174 builtin and then its argument prototype would still apply. */
19179 /* The GNU C library defines this for functions which it implements
19180 to always fail with ENOSYS. Some functions are actually named
19181 something starting with __ and the normal name is an alias. */
19182 #if defined __stub_$ac_func || defined __stub___$ac_func
19189 return $ac_func ();
19194 rm -f conftest.$ac_objext conftest$ac_exeext
19195 if { (ac_try="$ac_link"
19196 case "(($ac_try" in
19197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19198 *) ac_try_echo=$ac_try;;
19200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19201 (eval "$ac_link") 2>conftest.er1
19203 grep -v '^ *+' conftest.er1 >conftest.err
19205 cat conftest.err >&5
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); } && {
19208 test -z "$ac_c_werror_flag" ||
19209 test ! -s conftest.err
19210 } && test -s conftest$ac_exeext &&
19211 $as_test_x conftest$ac_exeext; then
19212 eval "$as_ac_var=yes"
19214 echo "$as_me: failed program was:" >&5
19215 sed 's/^/| /' conftest.$ac_ext >&5
19217 eval "$as_ac_var=no"
19220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19221 conftest$ac_exeext conftest.$ac_ext
19223 ac_res=`eval echo '${'$as_ac_var'}'`
19224 { echo "$as_me:$LINENO: result: $ac_res" >&5
19225 echo "${ECHO_T}$ac_res" >&6; }
19226 if test `eval echo '${'$as_ac_var'}'` = yes; then
19227 cat >>confdefs.h <<_ACEOF
19228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19234 LIBS="$cmu_save_LIBS"
19236 { echo "$as_me:$LINENO: result: disabled" >&5
19237 echo "${ECHO_T}disabled" >&6; }
19243 if test "$gssapi" != "no"; then
19245 cat >>confdefs.h <<\_ACEOF
19246 #define STATIC_GSSAPIV2
19250 if test "$gss_impl" = "mit"; then
19251 mutex_default="yes"
19253 { echo "$as_me:$LINENO: checking to use mutexes aroung GSS calls" >&5
19254 echo $ECHO_N "checking to use mutexes aroung GSS calls... $ECHO_C" >&6; }
19255 # Check whether --enable-gss_mutexes was given.
19256 if test "${enable_gss_mutexes+set}" = set; then
19257 enableval=$enable_gss_mutexes; use_gss_mutexes=$enableval
19259 use_gss_mutexes=$mutex_default
19262 if test $use_gss_mutexes = "yes"; then
19264 cat >>confdefs.h <<\_ACEOF
19265 #define GSS_USE_MUTEXES
19269 { echo "$as_me:$LINENO: result: $use_gss_mutexes" >&5
19270 echo "${ECHO_T}$use_gss_mutexes" >&6; }
19276 # Check whether --enable-plain was given.
19277 if test "${enable_plain+set}" = set; then
19278 enableval=$enable_plain; plain=$enableval
19285 if test "$plain" != no; then
19286 if test "$cmu_have_crypt" = yes; then
19287 PLAIN_LIBS=$LIB_CRYPT
19292 { echo "$as_me:$LINENO: checking PLAIN" >&5
19293 echo $ECHO_N "checking PLAIN... $ECHO_C" >&6; }
19294 if test "$plain" != no; then
19295 { echo "$as_me:$LINENO: result: enabled" >&5
19296 echo "${ECHO_T}enabled" >&6; }
19297 SASL_MECHS="$SASL_MECHS libplain.la"
19298 if test "$enable_static" = yes; then
19299 SASL_STATIC_OBJS="$SASL_STATIC_OBJS plain.o"
19300 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/plain.c"
19302 cat >>confdefs.h <<\_ACEOF
19303 #define STATIC_PLAIN
19308 { echo "$as_me:$LINENO: result: disabled" >&5
19309 echo "${ECHO_T}disabled" >&6; }
19313 # Check whether --enable-anon was given.
19314 if test "${enable_anon+set}" = set; then
19315 enableval=$enable_anon; anon=$enableval
19321 { echo "$as_me:$LINENO: checking ANONYMOUS" >&5
19322 echo $ECHO_N "checking ANONYMOUS... $ECHO_C" >&6; }
19323 if test "$anon" != no; then
19324 { echo "$as_me:$LINENO: result: enabled" >&5
19325 echo "${ECHO_T}enabled" >&6; }
19326 SASL_MECHS="$SASL_MECHS libanonymous.la"
19327 if test "$enable_static" = yes; then
19328 SASL_STATIC_OBJS="$SASL_STATIC_OBJS anonymous.o"
19329 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/anonymous.c"
19331 cat >>confdefs.h <<\_ACEOF
19332 #define STATIC_ANONYMOUS
19337 { echo "$as_me:$LINENO: result: disabled" >&5
19338 echo "${ECHO_T}disabled" >&6; }
19341 # Check whether --enable-login was given.
19342 if test "${enable_login+set}" = set; then
19343 enableval=$enable_login; login=$enableval
19349 { echo "$as_me:$LINENO: checking LOGIN" >&5
19350 echo $ECHO_N "checking LOGIN... $ECHO_C" >&6; }
19351 if test "$login" != no; then
19352 { echo "$as_me:$LINENO: result: enabled" >&5
19353 echo "${ECHO_T}enabled" >&6; }
19354 SASL_MECHS="$SASL_MECHS liblogin.la"
19355 if test "$enable_static" = yes; then
19356 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/login.c"
19357 SASL_STATIC_OBJS="$SASL_STATIC_OBJS login.o"
19359 cat >>confdefs.h <<\_ACEOF
19360 #define STATIC_LOGIN
19365 { echo "$as_me:$LINENO: result: disabled" >&5
19366 echo "${ECHO_T}disabled" >&6; }
19369 # Check whether --enable-ntlm was given.
19370 if test "${enable_ntlm+set}" = set; then
19371 enableval=$enable_ntlm; ntlm=$enableval
19377 if test "$with_openssl" = no; then
19378 { echo "$as_me:$LINENO: WARNING: OpenSSL not found -- NTLM will be disabled" >&5
19379 echo "$as_me: WARNING: OpenSSL not found -- NTLM will be disabled" >&2;}
19383 { echo "$as_me:$LINENO: checking NTLM" >&5
19384 echo $ECHO_N "checking NTLM... $ECHO_C" >&6; }
19385 if test "$ntlm" != no; then
19386 { echo "$as_me:$LINENO: result: enabled" >&5
19387 echo "${ECHO_T}enabled" >&6; }
19388 NTLM_LIBS="-lcrypto $LIB_RSAREF"
19391 SASL_MECHS="$SASL_MECHS libntlm.la"
19392 if test "$enable_static" = yes; then
19393 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/ntlm.c"
19394 SASL_STATIC_OBJS="$SASL_STATIC_OBJS ntlm.o"
19396 cat >>confdefs.h <<\_ACEOF
19397 #define STATIC_NTLM
19402 { echo "$as_me:$LINENO: result: disabled" >&5
19403 echo "${ECHO_T}disabled" >&6; }
19406 # Check whether --enable-passdss was given.
19407 if test "${enable_passdss+set}" = set; then
19408 enableval=$enable_passdss; passdss=$enableval
19414 if test "$with_openssl" = no; then
19415 { echo "$as_me:$LINENO: WARNING: OpenSSL not found -- PASSDSS will be disabled" >&5
19416 echo "$as_me: WARNING: OpenSSL not found -- PASSDSS will be disabled" >&2;}
19420 { echo "$as_me:$LINENO: checking PASSDSS" >&5
19421 echo $ECHO_N "checking PASSDSS... $ECHO_C" >&6; }
19422 if test "$passdss" != no; then
19423 { echo "$as_me:$LINENO: result: enabled" >&5
19424 echo "${ECHO_T}enabled" >&6; }
19425 PASSDSS_LIBS="-lcrypto $LIB_RSAREF"
19428 SASL_MECHS="$SASL_MECHS libpassdss.la"
19429 if test "$enable_static" = yes; then
19430 SASL_STATIC_OBJS="$SASL_STATIC_OBJS passdss.o"
19431 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/passdss.c"
19433 cat >>confdefs.h <<\_ACEOF
19434 #define STATIC_PASSDSS
19439 { echo "$as_me:$LINENO: result: disabled" >&5
19440 echo "${ECHO_T}disabled" >&6; }
19444 # make the option show up so people don't whine that it is only in the
19445 # saslauthd configure script --help
19447 # Check whether --with-ldap was given.
19448 if test "${with_ldap+set}" = set; then
19449 withval=$with_ldap;
19457 # Check whether --enable-sql was given.
19458 if test "${enable_sql+set}" = set; then
19459 enableval=$enable_sql; sql=$enableval
19465 { echo "$as_me:$LINENO: checking SQL" >&5
19466 echo $ECHO_N "checking SQL... $ECHO_C" >&6; }
19467 if test "$sql" != no; then
19468 { echo "$as_me:$LINENO: result: enabled" >&5
19469 echo "${ECHO_T}enabled" >&6; }
19470 SASL_MECHS="$SASL_MECHS libsql.la"
19471 if test "$enable_static" = yes; then
19472 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/sql.c"
19473 SASL_STATIC_OBJS="$SASL_STATIC_OBJS sql.o"
19475 cat >>confdefs.h <<\_ACEOF
19481 { echo "$as_me:$LINENO: result: disabled" >&5
19482 echo "${ECHO_T}disabled" >&6; }
19486 # Check whether --with-mysql was given.
19487 if test "${with_mysql+set}" = set; then
19488 withval=$with_mysql; with_mysql=$withval
19494 # find location of library
19495 # presuming if one given then correct
19496 if test "${with_mysql}" = "yes"; then
19497 with_mysql=notfound
19498 for mysqlloc in lib/mysql lib mysql/lib
19500 if test -f ${prefix}/${mysqlloc}/libmysqlclient.a; then
19501 with_mysql="${prefix}"
19503 elif test -f /usr/local/${mysqlloc}/libmysqlclient.a; then
19504 with_mysql="/usr/local"
19506 elif test -f /usr/${mysqlloc}/libmysqlclient.a; then
19515 case "$with_mysql" in
19517 notfound) { echo "$as_me:$LINENO: WARNING: MySQL Library not found" >&5
19518 echo "$as_me: WARNING: MySQL Library not found" >&2;}; true;;
19520 if test -d ${with_mysql}/lib/mysql; then
19522 # this is CMU ADD LIBPATH TO
19523 if test "$andrew_runpath_switch" = "none" ; then
19524 LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL}"
19526 LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/lib/mysql"
19529 elif test -d ${with_mysql}/mysql/lib; then
19531 # this is CMU ADD LIBPATH TO
19532 if test "$andrew_runpath_switch" = "none" ; then
19533 LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL}"
19535 LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/mysql/lib"
19538 elif test -d ${with_mysql}/lib; then
19540 # this is CMU ADD LIBPATH TO
19541 if test "$andrew_runpath_switch" = "none" ; then
19542 LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL}"
19544 LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/lib"
19549 # this is CMU ADD LIBPATH TO
19550 if test "$andrew_runpath_switch" = "none" ; then
19551 LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL}"
19553 LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}"
19558 LIB_MYSQL_DIR=$LIB_MYSQL
19559 LIB_MYSQL="$LIB_MYSQL -lmysqlclient"
19561 if test -d ${with_mysql}/include/mysql; then
19562 CPPFLAGS="${CPPFLAGS} -I${with_mysql}/include/mysql"
19563 elif test -d ${with_mysql}/mysql/include; then
19564 CPPFLAGS="${CPPFLAGS} -I${with_mysql}/mysql/include"
19565 elif test -d ${with_mysql}/include; then
19566 CPPFLAGS="${CPPFLAGS} -I${with_mysql}/include"
19568 CPPFLAGS="${CPPFLAGS} -I${with_mysql}"
19571 save_LDFLAGS=$LDFLAGS
19572 LDFLAGS="$LDFLAGS $LIB_MYSQL_DIR"
19573 { echo "$as_me:$LINENO: checking for mysql_select_db in -lmysqlclient" >&5
19574 echo $ECHO_N "checking for mysql_select_db in -lmysqlclient... $ECHO_C" >&6; }
19575 if test "${ac_cv_lib_mysqlclient_mysql_select_db+set}" = set; then
19576 echo $ECHO_N "(cached) $ECHO_C" >&6
19578 ac_check_lib_save_LIBS=$LIBS
19579 LIBS="-lmysqlclient $LIBS"
19580 cat >conftest.$ac_ext <<_ACEOF
19583 cat confdefs.h >>conftest.$ac_ext
19584 cat >>conftest.$ac_ext <<_ACEOF
19585 /* end confdefs.h. */
19587 /* Override any GCC internal prototype to avoid an error.
19588 Use char because int might match the return type of a GCC
19589 builtin and then its argument prototype would still apply. */
19593 char mysql_select_db ();
19597 return mysql_select_db ();
19602 rm -f conftest.$ac_objext conftest$ac_exeext
19603 if { (ac_try="$ac_link"
19604 case "(($ac_try" in
19605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19606 *) ac_try_echo=$ac_try;;
19608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19609 (eval "$ac_link") 2>conftest.er1
19611 grep -v '^ *+' conftest.er1 >conftest.err
19613 cat conftest.err >&5
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); } && {
19616 test -z "$ac_c_werror_flag" ||
19617 test ! -s conftest.err
19618 } && test -s conftest$ac_exeext &&
19619 $as_test_x conftest$ac_exeext; then
19620 ac_cv_lib_mysqlclient_mysql_select_db=yes
19622 echo "$as_me: failed program was:" >&5
19623 sed 's/^/| /' conftest.$ac_ext >&5
19625 ac_cv_lib_mysqlclient_mysql_select_db=no
19628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19629 conftest$ac_exeext conftest.$ac_ext
19630 LIBS=$ac_check_lib_save_LIBS
19632 { echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_select_db" >&5
19633 echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_select_db" >&6; }
19634 if test $ac_cv_lib_mysqlclient_mysql_select_db = yes; then
19636 cat >>confdefs.h <<\_ACEOF
19641 { echo "$as_me:$LINENO: WARNING: MySQL library mysqlclient does not work" >&5
19642 echo "$as_me: WARNING: MySQL library mysqlclient does not work" >&2;}
19646 LDFLAGS=$save_LDFLAGS;;
19652 # Check whether --with-pgsql was given.
19653 if test "${with_pgsql+set}" = set; then
19654 withval=$with_pgsql; with_pgsql=$withval
19660 # find location of library
19661 # presuing if one given then correct
19662 if test "${with_pgsql}" = "yes"; then
19663 with_pgsql=notfound
19664 for pgsqlloc in lib/pgsql lib pgsql/lib
19666 if test -f ${prefix}/${pgsqlloc}/libpq.a; then
19667 with_pgsql="${prefix}"
19669 elif test -f /usr/local/${pgsqlloc}/libpq.a; then
19670 with_pgsql="/usr/local"
19672 elif test -f /usr/${pgsqlloc}/libpq.a; then
19681 case "$with_pgsql" in
19683 notfound) { echo "$as_me:$LINENO: WARNING: PostgreSQL Library not found" >&5
19684 echo "$as_me: WARNING: PostgreSQL Library not found" >&2;}; true;;
19686 if test -d ${with_pgsql}/lib/pgsql; then
19688 # this is CMU ADD LIBPATH TO
19689 if test "$andrew_runpath_switch" = "none" ; then
19690 LIB_PGSQL="-L${with_pgsql}/lib/pgsql ${LIB_PGSQL}"
19692 LIB_PGSQL="-L${with_pgsql}/lib/pgsql ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/lib/pgsql"
19695 elif test -d ${with_pgsql}/pgsql/lib; then
19697 # this is CMU ADD LIBPATH TO
19698 if test "$andrew_runpath_switch" = "none" ; then
19699 LIB_PGSQL="-L${with_pgsql}/pgsql/lib ${LIB_PGSQL}"
19701 LIB_PGSQL="-L${with_pgsql}/pgsql/lib ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/pgsql/lib"
19704 elif test -d ${with_pgsql}/lib; then
19706 # this is CMU ADD LIBPATH TO
19707 if test "$andrew_runpath_switch" = "none" ; then
19708 LIB_PGSQL="-L${with_pgsql}/lib ${LIB_PGSQL}"
19710 LIB_PGSQL="-L${with_pgsql}/lib ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/lib"
19715 # this is CMU ADD LIBPATH TO
19716 if test "$andrew_runpath_switch" = "none" ; then
19717 LIB_PGSQL="-L${with_pgsql} ${LIB_PGSQL}"
19719 LIB_PGSQL="-L${with_pgsql} ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}"
19724 LIB_PGSQL_DIR=$LIB_PGSQL
19725 LIB_PGSQL="$LIB_PGSQL -lpq"
19727 if test -d ${with_pgsql}/include/pgsql; then
19728 CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include/pgsql"
19729 elif test -d ${with_pgsql}/pgsql/include; then
19730 CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/pgsql/include"
19731 elif test -d ${with_pgsql}/include; then
19732 CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include"
19734 CPPFLAGS="${CPPFLAGS} -I${with_pgsql}"
19738 save_LDFLAGS=$LDFLAGS
19739 LDFLAGS="$LDFLAGS $LIB_PGSQL_DIR"
19740 { echo "$as_me:$LINENO: checking for PQsetdbLogin in -lpq" >&5
19741 echo $ECHO_N "checking for PQsetdbLogin in -lpq... $ECHO_C" >&6; }
19742 if test "${ac_cv_lib_pq_PQsetdbLogin+set}" = set; then
19743 echo $ECHO_N "(cached) $ECHO_C" >&6
19745 ac_check_lib_save_LIBS=$LIBS
19747 cat >conftest.$ac_ext <<_ACEOF
19750 cat confdefs.h >>conftest.$ac_ext
19751 cat >>conftest.$ac_ext <<_ACEOF
19752 /* end confdefs.h. */
19754 /* Override any GCC internal prototype to avoid an error.
19755 Use char because int might match the return type of a GCC
19756 builtin and then its argument prototype would still apply. */
19760 char PQsetdbLogin ();
19764 return PQsetdbLogin ();
19769 rm -f conftest.$ac_objext conftest$ac_exeext
19770 if { (ac_try="$ac_link"
19771 case "(($ac_try" in
19772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773 *) ac_try_echo=$ac_try;;
19775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19776 (eval "$ac_link") 2>conftest.er1
19778 grep -v '^ *+' conftest.er1 >conftest.err
19780 cat conftest.err >&5
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); } && {
19783 test -z "$ac_c_werror_flag" ||
19784 test ! -s conftest.err
19785 } && test -s conftest$ac_exeext &&
19786 $as_test_x conftest$ac_exeext; then
19787 ac_cv_lib_pq_PQsetdbLogin=yes
19789 echo "$as_me: failed program was:" >&5
19790 sed 's/^/| /' conftest.$ac_ext >&5
19792 ac_cv_lib_pq_PQsetdbLogin=no
19795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19796 conftest$ac_exeext conftest.$ac_ext
19797 LIBS=$ac_check_lib_save_LIBS
19799 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQsetdbLogin" >&5
19800 echo "${ECHO_T}$ac_cv_lib_pq_PQsetdbLogin" >&6; }
19801 if test $ac_cv_lib_pq_PQsetdbLogin = yes; then
19803 cat >>confdefs.h <<\_ACEOF
19808 { echo "$as_me:$LINENO: WARNING: PostgreSQL Library pq does not work" >&5
19809 echo "$as_me: WARNING: PostgreSQL Library pq does not work" >&2;}
19813 LDFLAGS=$save_LDFLAGS;;
19819 # Check whether --with-sqlite was given.
19820 if test "${with_sqlite+set}" = set; then
19821 withval=$with_sqlite; with_sqlite=$withval
19827 # find location of library
19828 # presuing if one given then correct
19829 if test "${with_sqlite}" = "yes"; then
19830 with_sqlite=notfound
19831 for sqliteloc in lib
19833 if test -f ${prefix}/${sqliteloc}/libsqlite.a; then
19834 with_sqlite="${prefix}"
19836 elif test -f /usr/local/${sqliteloc}/libsqlite.a; then
19837 with_sqlite="/usr/local"
19839 elif test -f /usr/${sqliteloc}/libsqlite.a; then
19848 case "$with_sqlite" in
19850 notfound) { echo "$as_me:$LINENO: WARNING: SQLite Library not found" >&5
19851 echo "$as_me: WARNING: SQLite Library not found" >&2;}; true;;
19853 if test -d ${with_sqlite}/lib; then
19854 LIB_SQLITE="-L${with_sqlite}/lib -R${with_sqlite}/lib"
19856 LIB_SQLITE="-L${with_sqlite} -R${with_sqlite}"
19859 LIB_SQLITE_DIR=$LIB_SQLITE
19860 LIB_SQLITE="$LIB_SQLITE -lsqlite"
19862 if test -d ${with_sqlite}/include; then
19863 CPPFLAGS="${CPPFLAGS} -I${with_sqlite}/include"
19865 CPPFLAGS="${CPPFLAGS} -I${with_sqlite}"
19867 { echo "$as_me:$LINENO: checking for sqlite_open in -lsqlite" >&5
19868 echo $ECHO_N "checking for sqlite_open in -lsqlite... $ECHO_C" >&6; }
19869 if test "${ac_cv_lib_sqlite_sqlite_open+set}" = set; then
19870 echo $ECHO_N "(cached) $ECHO_C" >&6
19872 ac_check_lib_save_LIBS=$LIBS
19873 LIBS="-lsqlite $LIB_SQLITE_DIR $LIBS"
19874 cat >conftest.$ac_ext <<_ACEOF
19877 cat confdefs.h >>conftest.$ac_ext
19878 cat >>conftest.$ac_ext <<_ACEOF
19879 /* end confdefs.h. */
19881 /* Override any GCC internal prototype to avoid an error.
19882 Use char because int might match the return type of a GCC
19883 builtin and then its argument prototype would still apply. */
19887 char sqlite_open ();
19891 return sqlite_open ();
19896 rm -f conftest.$ac_objext conftest$ac_exeext
19897 if { (ac_try="$ac_link"
19898 case "(($ac_try" in
19899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19900 *) ac_try_echo=$ac_try;;
19902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19903 (eval "$ac_link") 2>conftest.er1
19905 grep -v '^ *+' conftest.er1 >conftest.err
19907 cat conftest.err >&5
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); } && {
19910 test -z "$ac_c_werror_flag" ||
19911 test ! -s conftest.err
19912 } && test -s conftest$ac_exeext &&
19913 $as_test_x conftest$ac_exeext; then
19914 ac_cv_lib_sqlite_sqlite_open=yes
19916 echo "$as_me: failed program was:" >&5
19917 sed 's/^/| /' conftest.$ac_ext >&5
19919 ac_cv_lib_sqlite_sqlite_open=no
19922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19923 conftest$ac_exeext conftest.$ac_ext
19924 LIBS=$ac_check_lib_save_LIBS
19926 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_open" >&5
19927 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_open" >&6; }
19928 if test $ac_cv_lib_sqlite_sqlite_open = yes; then
19930 cat >>confdefs.h <<\_ACEOF
19931 #define HAVE_SQLITE
19935 { echo "$as_me:$LINENO: WARNING: SQLite Library sqlite does not work" >&5
19936 echo "$as_me: WARNING: SQLite Library sqlite does not work" >&2;}
19944 if test "$sql" = yes -a "$with_pgsql" = no -a "$with_mysql" = no -a "$with_sqlite" = no; then
19945 { { echo "$as_me:$LINENO: error: --enable-sql chosen but neither Postgres nor MySQL nor SQLite found" >&5
19946 echo "$as_me: error: --enable-sql chosen but neither Postgres nor MySQL nor SQLite found" >&2;}
19947 { (exit 1); exit 1; }; }
19950 if test "$enable_shared" = yes; then
19952 cat >>confdefs.h <<\_ACEOF
19958 # Check whether --enable-ldapdb was given.
19959 if test "${enable_ldapdb+set}" = set; then
19960 enableval=$enable_ldapdb; ldapdb=$enableval
19965 { echo "$as_me:$LINENO: checking LDAPDB" >&5
19966 echo $ECHO_N "checking LDAPDB... $ECHO_C" >&6; }
19967 if test "$ldapdb" != no; then
19968 { echo "$as_me:$LINENO: result: enabled" >&5
19969 echo "${ECHO_T}enabled" >&6; }
19971 if test "$with_ldap" = no; then
19972 { { echo "$as_me:$LINENO: error: Cannot enable LDAPDB plugin: You need to specify --with-ldap" >&5
19973 echo "$as_me: error: Cannot enable LDAPDB plugin: You need to specify --with-ldap" >&2;}
19974 { (exit 1); exit 1; }; }
19977 save_CPPFLAGS=$CPPFLAGS
19978 save_LDFLAGS=$LDFLAGS
19980 if test -d $with_ldap; then
19981 CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
19983 # this is CMU ADD LIBPATH
19984 if test "$andrew_runpath_switch" = "none" ; then
19985 LDFLAGS="-L${with_ldap}/lib ${LDFLAGS}"
19987 LDFLAGS="-L${with_ldap}/lib $andrew_runpath_switch${with_ldap}/lib ${LDFLAGS}"
19994 for ac_header in ldap.h lber.h
19996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19998 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20001 echo $ECHO_N "(cached) $ECHO_C" >&6
20003 ac_res=`eval echo '${'$as_ac_Header'}'`
20004 { echo "$as_me:$LINENO: result: $ac_res" >&5
20005 echo "${ECHO_T}$ac_res" >&6; }
20007 # Is the header compilable?
20008 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20009 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20010 cat >conftest.$ac_ext <<_ACEOF
20013 cat confdefs.h >>conftest.$ac_ext
20014 cat >>conftest.$ac_ext <<_ACEOF
20015 /* end confdefs.h. */
20016 $ac_includes_default
20017 #include <$ac_header>
20019 rm -f conftest.$ac_objext
20020 if { (ac_try="$ac_compile"
20021 case "(($ac_try" in
20022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20023 *) ac_try_echo=$ac_try;;
20025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20026 (eval "$ac_compile") 2>conftest.er1
20028 grep -v '^ *+' conftest.er1 >conftest.err
20030 cat conftest.err >&5
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); } && {
20033 test -z "$ac_c_werror_flag" ||
20034 test ! -s conftest.err
20035 } && test -s conftest.$ac_objext; then
20036 ac_header_compiler=yes
20038 echo "$as_me: failed program was:" >&5
20039 sed 's/^/| /' conftest.$ac_ext >&5
20041 ac_header_compiler=no
20044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20045 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20046 echo "${ECHO_T}$ac_header_compiler" >&6; }
20048 # Is the header present?
20049 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20051 cat >conftest.$ac_ext <<_ACEOF
20054 cat confdefs.h >>conftest.$ac_ext
20055 cat >>conftest.$ac_ext <<_ACEOF
20056 /* end confdefs.h. */
20057 #include <$ac_header>
20059 if { (ac_try="$ac_cpp conftest.$ac_ext"
20060 case "(($ac_try" in
20061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20062 *) ac_try_echo=$ac_try;;
20064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20067 grep -v '^ *+' conftest.er1 >conftest.err
20069 cat conftest.err >&5
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); } >/dev/null && {
20072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20073 test ! -s conftest.err
20075 ac_header_preproc=yes
20077 echo "$as_me: failed program was:" >&5
20078 sed 's/^/| /' conftest.$ac_ext >&5
20080 ac_header_preproc=no
20083 rm -f conftest.err conftest.$ac_ext
20084 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20085 echo "${ECHO_T}$ac_header_preproc" >&6; }
20087 # So? What about this header?
20088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20090 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20091 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20093 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20094 ac_header_preproc=yes
20097 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20098 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20099 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20100 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20101 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20102 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20103 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20104 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20107 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20108 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20112 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20115 echo $ECHO_N "(cached) $ECHO_C" >&6
20117 eval "$as_ac_Header=\$ac_header_preproc"
20119 ac_res=`eval echo '${'$as_ac_Header'}'`
20120 { echo "$as_me:$LINENO: result: $ac_res" >&5
20121 echo "${ECHO_T}$ac_res" >&6; }
20124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20125 cat >>confdefs.h <<_ACEOF
20126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20134 if test $ac_cv_header_ldap_h = yes -a $ac_cv_header_lber_h = yes; then
20135 { echo "$as_me:$LINENO: checking OpenLDAP api" >&5
20136 echo $ECHO_N "checking OpenLDAP api... $ECHO_C" >&6; }
20137 if test "${cmu_cv_openldap_api+set}" = set; then
20138 echo $ECHO_N "(cached) $ECHO_C" >&6
20141 cat >conftest.$ac_ext <<_ACEOF
20144 cat confdefs.h >>conftest.$ac_ext
20145 cat >>conftest.$ac_ext <<_ACEOF
20146 /* end confdefs.h. */
20150 #ifdef LDAP_API_FEATURE_X_OPENLDAP
20151 char *__openldap_api = LDAP_API_FEATURE_X_OPENLDAP;
20155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20156 $EGREP "__openldap_api" >/dev/null 2>&1; then
20157 cmu_cv_openldap_api=yes
20159 cmu_cv_openldap_api=no
20164 { echo "$as_me:$LINENO: result: $cmu_cv_openldap_api" >&5
20165 echo "${ECHO_T}$cmu_cv_openldap_api" >&6; }
20168 if test "$cmu_cv_openldap_api" = yes; then
20169 { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap" >&5
20170 echo $ECHO_N "checking for ldap_initialize in -lldap... $ECHO_C" >&6; }
20171 if test "${ac_cv_lib_ldap_ldap_initialize+set}" = set; then
20172 echo $ECHO_N "(cached) $ECHO_C" >&6
20174 ac_check_lib_save_LIBS=$LIBS
20175 LIBS="-lldap -llber $LIBS"
20176 cat >conftest.$ac_ext <<_ACEOF
20179 cat confdefs.h >>conftest.$ac_ext
20180 cat >>conftest.$ac_ext <<_ACEOF
20181 /* end confdefs.h. */
20183 /* Override any GCC internal prototype to avoid an error.
20184 Use char because int might match the return type of a GCC
20185 builtin and then its argument prototype would still apply. */
20189 char ldap_initialize ();
20193 return ldap_initialize ();
20198 rm -f conftest.$ac_objext conftest$ac_exeext
20199 if { (ac_try="$ac_link"
20200 case "(($ac_try" in
20201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20202 *) ac_try_echo=$ac_try;;
20204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20205 (eval "$ac_link") 2>conftest.er1
20207 grep -v '^ *+' conftest.er1 >conftest.err
20209 cat conftest.err >&5
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); } && {
20212 test -z "$ac_c_werror_flag" ||
20213 test ! -s conftest.err
20214 } && test -s conftest$ac_exeext &&
20215 $as_test_x conftest$ac_exeext; then
20216 ac_cv_lib_ldap_ldap_initialize=yes
20218 echo "$as_me: failed program was:" >&5
20219 sed 's/^/| /' conftest.$ac_ext >&5
20221 ac_cv_lib_ldap_ldap_initialize=no
20224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20225 conftest$ac_exeext conftest.$ac_ext
20226 LIBS=$ac_check_lib_save_LIBS
20228 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_initialize" >&5
20229 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_initialize" >&6; }
20230 if test $ac_cv_lib_ldap_ldap_initialize = yes; then
20231 cmu_link_openldap="-lldap -llber"
20233 cmu_link_openldap=no
20239 if test "$cmu_cv_openldap_api" = no -o "$cmu_link_openldap" = no; then
20240 { { echo "$as_me:$LINENO: error: Cannot enable LDAPDB plugin: Could not locate OpenLDAP" >&5
20241 echo "$as_me: error: Cannot enable LDAPDB plugin: Could not locate OpenLDAP" >&2;}
20242 { (exit 1); exit 1; }; }
20244 { echo "$as_me:$LINENO: checking OpenLDAP version" >&5
20245 echo $ECHO_N "checking OpenLDAP version... $ECHO_C" >&6; }
20246 if test "${cmu_cv_openldap_compat+set}" = set; then
20247 echo $ECHO_N "(cached) $ECHO_C" >&6
20250 cat >conftest.$ac_ext <<_ACEOF
20253 cat confdefs.h >>conftest.$ac_ext
20254 cat >>conftest.$ac_ext <<_ACEOF
20255 /* end confdefs.h. */
20259 /* Require 2.1.27+ and 2.2.6+ */
20260 #if LDAP_VENDOR_VERSION_MAJOR == 2 && LDAP_VENDOR_VERSION_MINOR == 1 && LDAP_VENDOR_VERSION_PATCH > 26
20261 char *__openldap_compat = "2.1.27 or better okay";
20262 #elif LDAP_VENDOR_VERSION_MAJOR == 2 && LDAP_VENDOR_VERSION_MINOR == 2 && LDAP_VENDOR_VERSION_PATCH > 5
20263 char *__openldap_compat = "2.2.6 or better okay";
20264 #elif LDAP_VENDOR_VERSION_MAJOR == 2 && LDAP_VENDOR_VERSION_MINOR > 2
20265 char *__openldap_compat = "2.3 or better okay"
20269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20270 $EGREP "__openldap_compat" >/dev/null 2>&1; then
20271 cmu_cv_openldap_compat=yes
20273 cmu_cv_openldap_compat=no
20278 { echo "$as_me:$LINENO: result: $cmu_cv_openldap_compat" >&5
20279 echo "${ECHO_T}$cmu_cv_openldap_compat" >&6; }
20282 if test "$cmu_cv_openldap_compat" = no; then
20283 { { echo "$as_me:$LINENO: error: Cannot enable LDAPDB plugin: OpenLDAP library located but incompatible" >&5
20284 echo "$as_me: error: Cannot enable LDAPDB plugin: OpenLDAP library located but incompatible" >&2;}
20285 { (exit 1); exit 1; }; }
20287 LIB_LDAP=$cmu_link_openldap
20290 SASL_MECHS="$SASL_MECHS libldapdb.la"
20291 if test "$enable_static" = yes; then
20292 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/ldapdb.c"
20293 SASL_STATIC_OBJS="$SASL_STATIC_OBJS ldapdb.o"
20295 cat >>confdefs.h <<\_ACEOF
20296 #define STATIC_LDAPDB
20303 if test "$cmu_cv_openldap_compat" != yes; then
20304 CPPFLAGS=$save_CPPFLAGS
20305 LDFLAGS=$save_LDFLAGS
20308 { echo "$as_me:$LINENO: result: disabled" >&5
20309 echo "${ECHO_T}disabled" >&6; }
20318 # Check whether --with-plugindir was given.
20319 if test "${with_plugindir+set}" = set; then
20320 withval=$with_plugindir; plugindir=$withval
20322 plugindir=/usr/lib/sasl2
20326 cat >>confdefs.h <<_ACEOF
20327 #define PLUGINDIR "$plugindir"
20333 # Check whether --with-configdir was given.
20334 if test "${with_configdir+set}" = set; then
20335 withval=$with_configdir; configdir=$withval
20337 configdir=$plugindir:/etc/sasl2
20341 cat >>confdefs.h <<_ACEOF
20342 #define CONFIGDIR "$configdir"
20348 # Check whether --with-rc4 was given.
20349 if test "${with_rc4+set}" = set; then
20350 withval=$with_rc4; with_rc4=$withval
20356 if test "$with_rc4" != no; then
20358 cat >>confdefs.h <<\_ACEOF
20364 building_for_macosx=no
20367 # Check whether --enable-macos-framework was given.
20368 if test "${enable_macos_framework+set}" = set; then
20369 enableval=$enable_macos_framework; building_for_macosx=no
20371 building_for_macosx=yes
20376 if test "$building_for_macosx" = yes; then
20385 { echo "$as_me:$LINENO: checking for dmalloc library" >&5
20386 echo $ECHO_N "checking for dmalloc library... $ECHO_C" >&6; }
20388 # Check whether --with-dmalloc was given.
20389 if test "${with_dmalloc+set}" = set; then
20390 withval=$with_dmalloc; with_dmalloc=$withval
20398 if test "$with_dmalloc" != "no"; then
20399 if test "$with_dmalloc" = "yes"; then
20400 with_dmalloc="/usr/local"
20403 if test -r "$with_dmalloc/libdmalloc.a"; then
20404 DMALLOC_LIBS="$with_dmalloc/libdmalloc.a"
20406 cat >>confdefs.h <<\_ACEOF
20407 #define WITH_DMALLOC
20410 { echo "$as_me:$LINENO: result: yes" >&5
20411 echo "${ECHO_T}yes" >&6; }
20412 elif test -r "$with_dmalloc/lib/libdmalloc.a"; then
20413 DMALLOC_LIBS="$with_dmalloc/lib/libdmalloc.a"
20415 cat >>confdefs.h <<\_ACEOF
20416 #define WITH_DMALLOC
20419 { echo "$as_me:$LINENO: result: yes" >&5
20420 echo "${ECHO_T}yes" >&6; }
20422 { { echo "$as_me:$LINENO: error: cannot find dmalloc library" >&5
20423 echo "$as_me: error: cannot find dmalloc library" >&2;}
20424 { (exit please check your installation.); exit please check your installation.; }; }
20427 { echo "$as_me:$LINENO: result: no" >&5
20428 echo "${ECHO_T}no" >&6; }
20433 { echo "$as_me:$LINENO: checking for sfio library" >&5
20434 echo $ECHO_N "checking for sfio library... $ECHO_C" >&6; }
20436 # Check whether --with-sfio was given.
20437 if test "${with_sfio+set}" = set; then
20438 withval=$with_sfio; with_sfio=$withval
20444 if test "$with_sfio" != "no"; then
20445 if test "$with_sfio" = "yes"; then
20446 with_sfio="/usr/local"
20453 if test -r "$with_sfio/sfio.h"; then SFIO_DIR=$with_sfio;
20454 SFIO_INC_DIR=$with_sfio
20455 elif test -r "$with_sfio/include/sfio.h"; then SFIO_DIR=$with_sfio;
20456 SFIO_INC_DIR=$with_sfio/include
20457 elif test -r "$with_sfio/include/sfio/sfio.h"; then SFIO_DIR=$with_sfio;
20458 SFIO_INC_DIR=$with_sfio/include/sfio
20461 if test -z "$SFIO_DIR"; then
20462 { { echo "$as_me:$LINENO: error: Cannot find sfio.h" >&5
20463 echo "$as_me: error: Cannot find sfio.h" >&2;}
20464 { (exit Please check your SFIO installation.); exit Please check your SFIO installation.; }; }
20468 str="$SFIO_DIR/lib/libsfio.*"
20469 for i in `echo $str`; do
20470 if test -r $i; then
20471 SFIO_LIBDIR=$SFIO_DIR/lib
20477 str="$SFIO_DIR/lib/sfio/libsfio.*"
20478 for i in `echo $str`; do
20479 if test -r $i; then
20480 SFIO_LIBDIR=$SFIO_DIR/lib/sfio
20486 if test -z "$SFIO_LIBDIR"; then
20487 { { echo "$as_me:$LINENO: error: Cannot find sfio library" >&5
20488 echo "$as_me: error: Cannot find sfio library" >&2;}
20489 { (exit Please check your SFIO installation.); exit Please check your SFIO installation.; }; }
20492 SFIO_INC_FLAGS="-I$SFIO_INC_DIR"
20493 SFIO_LIB_FLAGS="-L$SFIO_LIBDIR -lsfio"
20494 SMTPTEST_PROGRAM="smtptest"
20495 SASL_UTIL_LIBS_EXTRA=libsfsasl2.la
20496 SASL_UTIL_HEADERS_EXTRA=sfsasl.h
20498 { echo "$as_me:$LINENO: result: yes" >&5
20499 echo "${ECHO_T}yes" >&6; }
20501 { echo "$as_me:$LINENO: result: no" >&5
20502 echo "${ECHO_T}no" >&6; }
20505 SMTPTEST_PROGRAM=""
20506 SASL_UTIL_LIBS_EXTRA=""
20507 SASL_UTIL_HEADERS_EXTRA=""
20516 sasl_cv_getsubopt=no
20517 { echo "$as_me:$LINENO: checking for getsubopt" >&5
20518 echo $ECHO_N "checking for getsubopt... $ECHO_C" >&6; }
20519 if test "${ac_cv_func_getsubopt+set}" = set; then
20520 echo $ECHO_N "(cached) $ECHO_C" >&6
20522 cat >conftest.$ac_ext <<_ACEOF
20525 cat confdefs.h >>conftest.$ac_ext
20526 cat >>conftest.$ac_ext <<_ACEOF
20527 /* end confdefs.h. */
20528 /* Define getsubopt to an innocuous variant, in case <limits.h> declares getsubopt.
20529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20530 #define getsubopt innocuous_getsubopt
20532 /* System header to define __stub macros and hopefully few prototypes,
20533 which can conflict with char getsubopt (); below.
20534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20535 <limits.h> exists even on freestanding compilers. */
20538 # include <limits.h>
20540 # include <assert.h>
20545 /* Override any GCC internal prototype to avoid an error.
20546 Use char because int might match the return type of a GCC
20547 builtin and then its argument prototype would still apply. */
20552 /* The GNU C library defines this for functions which it implements
20553 to always fail with ENOSYS. Some functions are actually named
20554 something starting with __ and the normal name is an alias. */
20555 #if defined __stub_getsubopt || defined __stub___getsubopt
20562 return getsubopt ();
20567 rm -f conftest.$ac_objext conftest$ac_exeext
20568 if { (ac_try="$ac_link"
20569 case "(($ac_try" in
20570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571 *) ac_try_echo=$ac_try;;
20573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20574 (eval "$ac_link") 2>conftest.er1
20576 grep -v '^ *+' conftest.er1 >conftest.err
20578 cat conftest.err >&5
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); } && {
20581 test -z "$ac_c_werror_flag" ||
20582 test ! -s conftest.err
20583 } && test -s conftest$ac_exeext &&
20584 $as_test_x conftest$ac_exeext; then
20585 ac_cv_func_getsubopt=yes
20587 echo "$as_me: failed program was:" >&5
20588 sed 's/^/| /' conftest.$ac_ext >&5
20590 ac_cv_func_getsubopt=no
20593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20594 conftest$ac_exeext conftest.$ac_ext
20596 { echo "$as_me:$LINENO: result: $ac_cv_func_getsubopt" >&5
20597 echo "${ECHO_T}$ac_cv_func_getsubopt" >&6; }
20598 if test $ac_cv_func_getsubopt = yes; then
20600 cat >>confdefs.h <<\_ACEOF
20601 #define HAVE_GETSUBOPT
20605 sasl_cv_getsubopt=yes
20608 if test $sasl_cv_getsubopt = yes; then
20609 case " $LIBOBJS " in
20610 *" getsubopt.$ac_objext "* ) ;;
20611 *) LIBOBJS="$LIBOBJS getsubopt.$ac_objext"
20615 GETSUBOPT="getsubopt.lo"
20619 sasl_cv_snprintf=no
20621 { echo "$as_me:$LINENO: checking for snprintf" >&5
20622 echo $ECHO_N "checking for snprintf... $ECHO_C" >&6; }
20623 if test "${ac_cv_func_snprintf+set}" = set; then
20624 echo $ECHO_N "(cached) $ECHO_C" >&6
20626 cat >conftest.$ac_ext <<_ACEOF
20629 cat confdefs.h >>conftest.$ac_ext
20630 cat >>conftest.$ac_ext <<_ACEOF
20631 /* end confdefs.h. */
20632 /* Define snprintf to an innocuous variant, in case <limits.h> declares snprintf.
20633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20634 #define snprintf innocuous_snprintf
20636 /* System header to define __stub macros and hopefully few prototypes,
20637 which can conflict with char snprintf (); below.
20638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20639 <limits.h> exists even on freestanding compilers. */
20642 # include <limits.h>
20644 # include <assert.h>
20649 /* Override any GCC internal prototype to avoid an error.
20650 Use char because int might match the return type of a GCC
20651 builtin and then its argument prototype would still apply. */
20656 /* The GNU C library defines this for functions which it implements
20657 to always fail with ENOSYS. Some functions are actually named
20658 something starting with __ and the normal name is an alias. */
20659 #if defined __stub_snprintf || defined __stub___snprintf
20666 return snprintf ();
20671 rm -f conftest.$ac_objext conftest$ac_exeext
20672 if { (ac_try="$ac_link"
20673 case "(($ac_try" in
20674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20675 *) ac_try_echo=$ac_try;;
20677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20678 (eval "$ac_link") 2>conftest.er1
20680 grep -v '^ *+' conftest.er1 >conftest.err
20682 cat conftest.err >&5
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); } && {
20685 test -z "$ac_c_werror_flag" ||
20686 test ! -s conftest.err
20687 } && test -s conftest$ac_exeext &&
20688 $as_test_x conftest$ac_exeext; then
20689 ac_cv_func_snprintf=yes
20691 echo "$as_me: failed program was:" >&5
20692 sed 's/^/| /' conftest.$ac_ext >&5
20694 ac_cv_func_snprintf=no
20697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20698 conftest$ac_exeext conftest.$ac_ext
20700 { echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5
20701 echo "${ECHO_T}$ac_cv_func_snprintf" >&6; }
20702 if test $ac_cv_func_snprintf = yes; then
20704 cat >>confdefs.h <<\_ACEOF
20705 #define HAVE_SNPRINTF
20709 sasl_cv_snprintf=yes
20712 { echo "$as_me:$LINENO: checking for vsnprintf" >&5
20713 echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6; }
20714 if test "${ac_cv_func_vsnprintf+set}" = set; then
20715 echo $ECHO_N "(cached) $ECHO_C" >&6
20717 cat >conftest.$ac_ext <<_ACEOF
20720 cat confdefs.h >>conftest.$ac_ext
20721 cat >>conftest.$ac_ext <<_ACEOF
20722 /* end confdefs.h. */
20723 /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
20724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20725 #define vsnprintf innocuous_vsnprintf
20727 /* System header to define __stub macros and hopefully few prototypes,
20728 which can conflict with char vsnprintf (); below.
20729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20730 <limits.h> exists even on freestanding compilers. */
20733 # include <limits.h>
20735 # include <assert.h>
20740 /* Override any GCC internal prototype to avoid an error.
20741 Use char because int might match the return type of a GCC
20742 builtin and then its argument prototype would still apply. */
20747 /* The GNU C library defines this for functions which it implements
20748 to always fail with ENOSYS. Some functions are actually named
20749 something starting with __ and the normal name is an alias. */
20750 #if defined __stub_vsnprintf || defined __stub___vsnprintf
20757 return vsnprintf ();
20762 rm -f conftest.$ac_objext conftest$ac_exeext
20763 if { (ac_try="$ac_link"
20764 case "(($ac_try" in
20765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20766 *) ac_try_echo=$ac_try;;
20768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20769 (eval "$ac_link") 2>conftest.er1
20771 grep -v '^ *+' conftest.er1 >conftest.err
20773 cat conftest.err >&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); } && {
20776 test -z "$ac_c_werror_flag" ||
20777 test ! -s conftest.err
20778 } && test -s conftest$ac_exeext &&
20779 $as_test_x conftest$ac_exeext; then
20780 ac_cv_func_vsnprintf=yes
20782 echo "$as_me: failed program was:" >&5
20783 sed 's/^/| /' conftest.$ac_ext >&5
20785 ac_cv_func_vsnprintf=no
20788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20789 conftest$ac_exeext conftest.$ac_ext
20791 { echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
20792 echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6; }
20793 if test $ac_cv_func_vsnprintf = yes; then
20795 cat >>confdefs.h <<\_ACEOF
20796 #define HAVE_VSNPRINTF
20800 sasl_cv_snprintf=yes
20803 if test $sasl_cv_snprintf = yes; then
20804 case " $LIBOBJS " in
20805 *" snprintf.$ac_objext "* ) ;;
20806 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20810 SNPRINTFOBJS="snprintf.o"
20811 LTSNPRINTFOBJS="snprintf.lo"
20817 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20818 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
20819 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20820 echo $ECHO_N "(cached) $ECHO_C" >&6
20822 ac_check_lib_save_LIBS=$LIBS
20823 LIBS="-lresolv $LIBS"
20824 cat >conftest.$ac_ext <<_ACEOF
20827 cat confdefs.h >>conftest.$ac_ext
20828 cat >>conftest.$ac_ext <<_ACEOF
20829 /* end confdefs.h. */
20831 /* Override any GCC internal prototype to avoid an error.
20832 Use char because int might match the return type of a GCC
20833 builtin and then its argument prototype would still apply. */
20841 return inet_aton ();
20846 rm -f conftest.$ac_objext conftest$ac_exeext
20847 if { (ac_try="$ac_link"
20848 case "(($ac_try" in
20849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850 *) ac_try_echo=$ac_try;;
20852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20853 (eval "$ac_link") 2>conftest.er1
20855 grep -v '^ *+' conftest.er1 >conftest.err
20857 cat conftest.err >&5
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); } && {
20860 test -z "$ac_c_werror_flag" ||
20861 test ! -s conftest.err
20862 } && test -s conftest$ac_exeext &&
20863 $as_test_x conftest$ac_exeext; then
20864 ac_cv_lib_resolv_inet_aton=yes
20866 echo "$as_me: failed program was:" >&5
20867 sed 's/^/| /' conftest.$ac_ext >&5
20869 ac_cv_lib_resolv_inet_aton=no
20872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20873 conftest$ac_exeext conftest.$ac_ext
20874 LIBS=$ac_check_lib_save_LIBS
20876 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20877 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
20878 if test $ac_cv_lib_resolv_inet_aton = yes; then
20879 cat >>confdefs.h <<_ACEOF
20880 #define HAVE_LIBRESOLV 1
20883 LIBS="-lresolv $LIBS"
20889 sasl_cv_getaddrinfo=yes
20891 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
20892 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
20893 if test "${ac_cv_func_getaddrinfo+set}" = set; then
20894 echo $ECHO_N "(cached) $ECHO_C" >&6
20896 cat >conftest.$ac_ext <<_ACEOF
20899 cat confdefs.h >>conftest.$ac_ext
20900 cat >>conftest.$ac_ext <<_ACEOF
20901 /* end confdefs.h. */
20902 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
20903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20904 #define getaddrinfo innocuous_getaddrinfo
20906 /* System header to define __stub macros and hopefully few prototypes,
20907 which can conflict with char getaddrinfo (); below.
20908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20909 <limits.h> exists even on freestanding compilers. */
20912 # include <limits.h>
20914 # include <assert.h>
20919 /* Override any GCC internal prototype to avoid an error.
20920 Use char because int might match the return type of a GCC
20921 builtin and then its argument prototype would still apply. */
20925 char getaddrinfo ();
20926 /* The GNU C library defines this for functions which it implements
20927 to always fail with ENOSYS. Some functions are actually named
20928 something starting with __ and the normal name is an alias. */
20929 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
20936 return getaddrinfo ();
20941 rm -f conftest.$ac_objext conftest$ac_exeext
20942 if { (ac_try="$ac_link"
20943 case "(($ac_try" in
20944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20945 *) ac_try_echo=$ac_try;;
20947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20948 (eval "$ac_link") 2>conftest.er1
20950 grep -v '^ *+' conftest.er1 >conftest.err
20952 cat conftest.err >&5
20953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954 (exit $ac_status); } && {
20955 test -z "$ac_c_werror_flag" ||
20956 test ! -s conftest.err
20957 } && test -s conftest$ac_exeext &&
20958 $as_test_x conftest$ac_exeext; then
20959 ac_cv_func_getaddrinfo=yes
20961 echo "$as_me: failed program was:" >&5
20962 sed 's/^/| /' conftest.$ac_ext >&5
20964 ac_cv_func_getaddrinfo=no
20967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20968 conftest$ac_exeext conftest.$ac_ext
20970 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
20971 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
20972 if test $ac_cv_func_getaddrinfo = yes; then
20973 ac_cv_lib_socket_getaddrinfo=no
20974 ac_cv_lib_inet6_getaddrinfo=no
20977 { echo "$as_me:$LINENO: checking for getaddrinfo in -lsocket" >&5
20978 echo $ECHO_N "checking for getaddrinfo in -lsocket... $ECHO_C" >&6; }
20979 if test "${ac_cv_lib_socket_getaddrinfo+set}" = set; then
20980 echo $ECHO_N "(cached) $ECHO_C" >&6
20982 ac_check_lib_save_LIBS=$LIBS
20983 LIBS="-lsocket $LIBS"
20984 cat >conftest.$ac_ext <<_ACEOF
20987 cat confdefs.h >>conftest.$ac_ext
20988 cat >>conftest.$ac_ext <<_ACEOF
20989 /* end confdefs.h. */
20991 /* Override any GCC internal prototype to avoid an error.
20992 Use char because int might match the return type of a GCC
20993 builtin and then its argument prototype would still apply. */
20997 char getaddrinfo ();
21001 return getaddrinfo ();
21006 rm -f conftest.$ac_objext conftest$ac_exeext
21007 if { (ac_try="$ac_link"
21008 case "(($ac_try" in
21009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21010 *) ac_try_echo=$ac_try;;
21012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21013 (eval "$ac_link") 2>conftest.er1
21015 grep -v '^ *+' conftest.er1 >conftest.err
21017 cat conftest.err >&5
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); } && {
21020 test -z "$ac_c_werror_flag" ||
21021 test ! -s conftest.err
21022 } && test -s conftest$ac_exeext &&
21023 $as_test_x conftest$ac_exeext; then
21024 ac_cv_lib_socket_getaddrinfo=yes
21026 echo "$as_me: failed program was:" >&5
21027 sed 's/^/| /' conftest.$ac_ext >&5
21029 ac_cv_lib_socket_getaddrinfo=no
21032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21033 conftest$ac_exeext conftest.$ac_ext
21034 LIBS=$ac_check_lib_save_LIBS
21036 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getaddrinfo" >&5
21037 echo "${ECHO_T}$ac_cv_lib_socket_getaddrinfo" >&6; }
21038 if test $ac_cv_lib_socket_getaddrinfo = yes; then
21039 LIBS="$LIBS -lsocket"
21040 ac_cv_lib_inet6_getaddrinfo=no
21043 { echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5
21044 echo $ECHO_N "checking whether your system has IPv6 directory... $ECHO_C" >&6; }
21045 if test "${ipv6_cv_dir+set}" = set; then
21046 echo $ECHO_N "(cached) $ECHO_C" >&6
21048 for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
21049 if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
21054 { echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5
21055 echo "${ECHO_T}$ipv6_cv_dir" >&6; }
21056 if test $ipv6_cv_dir = no; then
21057 ac_cv_lib_inet6_getaddrinfo=no
21059 if test x$ipv6_libinet6 = x; then
21061 SAVELDFLAGS="$LDFLAGS"
21062 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
21064 { echo "$as_me:$LINENO: checking for getaddrinfo in -linet6" >&5
21065 echo $ECHO_N "checking for getaddrinfo in -linet6... $ECHO_C" >&6; }
21066 if test "${ac_cv_lib_inet6_getaddrinfo+set}" = set; then
21067 echo $ECHO_N "(cached) $ECHO_C" >&6
21069 ac_check_lib_save_LIBS=$LIBS
21070 LIBS="-linet6 $LIBS"
21071 cat >conftest.$ac_ext <<_ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h. */
21078 /* Override any GCC internal prototype to avoid an error.
21079 Use char because int might match the return type of a GCC
21080 builtin and then its argument prototype would still apply. */
21084 char getaddrinfo ();
21088 return getaddrinfo ();
21093 rm -f conftest.$ac_objext conftest$ac_exeext
21094 if { (ac_try="$ac_link"
21095 case "(($ac_try" in
21096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21097 *) ac_try_echo=$ac_try;;
21099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21100 (eval "$ac_link") 2>conftest.er1
21102 grep -v '^ *+' conftest.er1 >conftest.err
21104 cat conftest.err >&5
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); } && {
21107 test -z "$ac_c_werror_flag" ||
21108 test ! -s conftest.err
21109 } && test -s conftest$ac_exeext &&
21110 $as_test_x conftest$ac_exeext; then
21111 ac_cv_lib_inet6_getaddrinfo=yes
21113 echo "$as_me: failed program was:" >&5
21114 sed 's/^/| /' conftest.$ac_ext >&5
21116 ac_cv_lib_inet6_getaddrinfo=no
21119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21120 conftest$ac_exeext conftest.$ac_ext
21121 LIBS=$ac_check_lib_save_LIBS
21123 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getaddrinfo" >&5
21124 echo "${ECHO_T}$ac_cv_lib_inet6_getaddrinfo" >&6; }
21125 if test $ac_cv_lib_inet6_getaddrinfo = yes; then
21126 if test $ipv6_libinet6 = no; then
21128 LIBS="$LIBS -linet6"
21131 if test $ipv6_libinet6 = no; then
21132 LDFLAGS="$SAVELDFLAGS"
21138 ipv6_cv_getaddrinfo=no
21139 if test $ac_cv_func_getaddrinfo = yes -o $ac_cv_lib_socket_getaddrinfo = yes \
21140 -o $ac_cv_lib_inet6_getaddrinfo = yes
21142 ipv6_cv_getaddrinfo=yes
21144 if test $ipv6_cv_getaddrinfo = no; then
21145 if test getaddrinfo = getaddrinfo; then
21146 for ipv6_cv_pfx in o n; do
21147 cat >conftest.$ac_ext <<_ACEOF
21150 cat confdefs.h >>conftest.$ac_ext
21151 cat >>conftest.$ac_ext <<_ACEOF
21152 /* end confdefs.h. */
21156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21157 $EGREP "${ipv6_cv_pfx}getaddrinfo" >/dev/null 2>&1; then
21158 as_ac_var=`echo "ac_cv_func_${ipv6_cv_pfx}getaddrinfo" | $as_tr_sh`
21159 { echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}getaddrinfo" >&5
21160 echo $ECHO_N "checking for ${ipv6_cv_pfx}getaddrinfo... $ECHO_C" >&6; }
21161 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21162 echo $ECHO_N "(cached) $ECHO_C" >&6
21164 cat >conftest.$ac_ext <<_ACEOF
21167 cat confdefs.h >>conftest.$ac_ext
21168 cat >>conftest.$ac_ext <<_ACEOF
21169 /* end confdefs.h. */
21170 /* Define ${ipv6_cv_pfx}getaddrinfo to an innocuous variant, in case <limits.h> declares ${ipv6_cv_pfx}getaddrinfo.
21171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21172 #define ${ipv6_cv_pfx}getaddrinfo innocuous_${ipv6_cv_pfx}getaddrinfo
21174 /* System header to define __stub macros and hopefully few prototypes,
21175 which can conflict with char ${ipv6_cv_pfx}getaddrinfo (); below.
21176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21177 <limits.h> exists even on freestanding compilers. */
21180 # include <limits.h>
21182 # include <assert.h>
21185 #undef ${ipv6_cv_pfx}getaddrinfo
21187 /* Override any GCC internal prototype to avoid an error.
21188 Use char because int might match the return type of a GCC
21189 builtin and then its argument prototype would still apply. */
21193 char ${ipv6_cv_pfx}getaddrinfo ();
21194 /* The GNU C library defines this for functions which it implements
21195 to always fail with ENOSYS. Some functions are actually named
21196 something starting with __ and the normal name is an alias. */
21197 #if defined __stub_${ipv6_cv_pfx}getaddrinfo || defined __stub___${ipv6_cv_pfx}getaddrinfo
21204 return ${ipv6_cv_pfx}getaddrinfo ();
21209 rm -f conftest.$ac_objext conftest$ac_exeext
21210 if { (ac_try="$ac_link"
21211 case "(($ac_try" in
21212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21213 *) ac_try_echo=$ac_try;;
21215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21216 (eval "$ac_link") 2>conftest.er1
21218 grep -v '^ *+' conftest.er1 >conftest.err
21220 cat conftest.err >&5
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); } && {
21223 test -z "$ac_c_werror_flag" ||
21224 test ! -s conftest.err
21225 } && test -s conftest$ac_exeext &&
21226 $as_test_x conftest$ac_exeext; then
21227 eval "$as_ac_var=yes"
21229 echo "$as_me: failed program was:" >&5
21230 sed 's/^/| /' conftest.$ac_ext >&5
21232 eval "$as_ac_var=no"
21235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21236 conftest$ac_exeext conftest.$ac_ext
21238 ac_res=`eval echo '${'$as_ac_var'}'`
21239 { echo "$as_me:$LINENO: result: $ac_res" >&5
21240 echo "${ECHO_T}$ac_res" >&6; }
21245 if eval test X\$ac_cv_func_${ipv6_cv_pfx}getaddrinfo = Xyes; then
21247 cat >>confdefs.h <<\_ACEOF
21248 #define HAVE_GETADDRINFO
21251 ipv6_cv_getaddrinfo=yes
21257 if test $ipv6_cv_getaddrinfo = yes; then
21259 { echo "$as_me:$LINENO: checking for gai_strerror" >&5
21260 echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6; }
21261 if test "${ac_cv_func_gai_strerror+set}" = set; then
21262 echo $ECHO_N "(cached) $ECHO_C" >&6
21264 cat >conftest.$ac_ext <<_ACEOF
21267 cat confdefs.h >>conftest.$ac_ext
21268 cat >>conftest.$ac_ext <<_ACEOF
21269 /* end confdefs.h. */
21270 /* Define gai_strerror to an innocuous variant, in case <limits.h> declares gai_strerror.
21271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21272 #define gai_strerror innocuous_gai_strerror
21274 /* System header to define __stub macros and hopefully few prototypes,
21275 which can conflict with char gai_strerror (); below.
21276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21277 <limits.h> exists even on freestanding compilers. */
21280 # include <limits.h>
21282 # include <assert.h>
21285 #undef gai_strerror
21287 /* Override any GCC internal prototype to avoid an error.
21288 Use char because int might match the return type of a GCC
21289 builtin and then its argument prototype would still apply. */
21293 char gai_strerror ();
21294 /* The GNU C library defines this for functions which it implements
21295 to always fail with ENOSYS. Some functions are actually named
21296 something starting with __ and the normal name is an alias. */
21297 #if defined __stub_gai_strerror || defined __stub___gai_strerror
21304 return gai_strerror ();
21309 rm -f conftest.$ac_objext conftest$ac_exeext
21310 if { (ac_try="$ac_link"
21311 case "(($ac_try" in
21312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21313 *) ac_try_echo=$ac_try;;
21315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21316 (eval "$ac_link") 2>conftest.er1
21318 grep -v '^ *+' conftest.er1 >conftest.err
21320 cat conftest.err >&5
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); } && {
21323 test -z "$ac_c_werror_flag" ||
21324 test ! -s conftest.err
21325 } && test -s conftest$ac_exeext &&
21326 $as_test_x conftest$ac_exeext; then
21327 ac_cv_func_gai_strerror=yes
21329 echo "$as_me: failed program was:" >&5
21330 sed 's/^/| /' conftest.$ac_ext >&5
21332 ac_cv_func_gai_strerror=no
21335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21336 conftest$ac_exeext conftest.$ac_ext
21338 { echo "$as_me:$LINENO: result: $ac_cv_func_gai_strerror" >&5
21339 echo "${ECHO_T}$ac_cv_func_gai_strerror" >&6; }
21340 if test $ac_cv_func_gai_strerror = yes; then
21341 ac_cv_lib_socket_gai_strerror=no
21342 ac_cv_lib_inet6_gai_strerror=no
21345 { echo "$as_me:$LINENO: checking for gai_strerror in -lsocket" >&5
21346 echo $ECHO_N "checking for gai_strerror in -lsocket... $ECHO_C" >&6; }
21347 if test "${ac_cv_lib_socket_gai_strerror+set}" = set; then
21348 echo $ECHO_N "(cached) $ECHO_C" >&6
21350 ac_check_lib_save_LIBS=$LIBS
21351 LIBS="-lsocket $LIBS"
21352 cat >conftest.$ac_ext <<_ACEOF
21355 cat confdefs.h >>conftest.$ac_ext
21356 cat >>conftest.$ac_ext <<_ACEOF
21357 /* end confdefs.h. */
21359 /* Override any GCC internal prototype to avoid an error.
21360 Use char because int might match the return type of a GCC
21361 builtin and then its argument prototype would still apply. */
21365 char gai_strerror ();
21369 return gai_strerror ();
21374 rm -f conftest.$ac_objext conftest$ac_exeext
21375 if { (ac_try="$ac_link"
21376 case "(($ac_try" in
21377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21378 *) ac_try_echo=$ac_try;;
21380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21381 (eval "$ac_link") 2>conftest.er1
21383 grep -v '^ *+' conftest.er1 >conftest.err
21385 cat conftest.err >&5
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); } && {
21388 test -z "$ac_c_werror_flag" ||
21389 test ! -s conftest.err
21390 } && test -s conftest$ac_exeext &&
21391 $as_test_x conftest$ac_exeext; then
21392 ac_cv_lib_socket_gai_strerror=yes
21394 echo "$as_me: failed program was:" >&5
21395 sed 's/^/| /' conftest.$ac_ext >&5
21397 ac_cv_lib_socket_gai_strerror=no
21400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21401 conftest$ac_exeext conftest.$ac_ext
21402 LIBS=$ac_check_lib_save_LIBS
21404 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gai_strerror" >&5
21405 echo "${ECHO_T}$ac_cv_lib_socket_gai_strerror" >&6; }
21406 if test $ac_cv_lib_socket_gai_strerror = yes; then
21407 LIBS="$LIBS -lsocket"
21408 ac_cv_lib_inet6_gai_strerror=no
21411 { echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5
21412 echo $ECHO_N "checking whether your system has IPv6 directory... $ECHO_C" >&6; }
21413 if test "${ipv6_cv_dir+set}" = set; then
21414 echo $ECHO_N "(cached) $ECHO_C" >&6
21416 for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
21417 if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
21422 { echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5
21423 echo "${ECHO_T}$ipv6_cv_dir" >&6; }
21424 if test $ipv6_cv_dir = no; then
21425 ac_cv_lib_inet6_gai_strerror=no
21427 if test x$ipv6_libinet6 = x; then
21429 SAVELDFLAGS="$LDFLAGS"
21430 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
21432 { echo "$as_me:$LINENO: checking for gai_strerror in -linet6" >&5
21433 echo $ECHO_N "checking for gai_strerror in -linet6... $ECHO_C" >&6; }
21434 if test "${ac_cv_lib_inet6_gai_strerror+set}" = set; then
21435 echo $ECHO_N "(cached) $ECHO_C" >&6
21437 ac_check_lib_save_LIBS=$LIBS
21438 LIBS="-linet6 $LIBS"
21439 cat >conftest.$ac_ext <<_ACEOF
21442 cat confdefs.h >>conftest.$ac_ext
21443 cat >>conftest.$ac_ext <<_ACEOF
21444 /* end confdefs.h. */
21446 /* Override any GCC internal prototype to avoid an error.
21447 Use char because int might match the return type of a GCC
21448 builtin and then its argument prototype would still apply. */
21452 char gai_strerror ();
21456 return gai_strerror ();
21461 rm -f conftest.$ac_objext conftest$ac_exeext
21462 if { (ac_try="$ac_link"
21463 case "(($ac_try" in
21464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21465 *) ac_try_echo=$ac_try;;
21467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21468 (eval "$ac_link") 2>conftest.er1
21470 grep -v '^ *+' conftest.er1 >conftest.err
21472 cat conftest.err >&5
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); } && {
21475 test -z "$ac_c_werror_flag" ||
21476 test ! -s conftest.err
21477 } && test -s conftest$ac_exeext &&
21478 $as_test_x conftest$ac_exeext; then
21479 ac_cv_lib_inet6_gai_strerror=yes
21481 echo "$as_me: failed program was:" >&5
21482 sed 's/^/| /' conftest.$ac_ext >&5
21484 ac_cv_lib_inet6_gai_strerror=no
21487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21488 conftest$ac_exeext conftest.$ac_ext
21489 LIBS=$ac_check_lib_save_LIBS
21491 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_gai_strerror" >&5
21492 echo "${ECHO_T}$ac_cv_lib_inet6_gai_strerror" >&6; }
21493 if test $ac_cv_lib_inet6_gai_strerror = yes; then
21494 if test $ipv6_libinet6 = no; then
21496 LIBS="$LIBS -linet6"
21499 if test $ipv6_libinet6 = no; then
21500 LDFLAGS="$SAVELDFLAGS"
21506 ipv6_cv_gai_strerror=no
21507 if test $ac_cv_func_gai_strerror = yes -o $ac_cv_lib_socket_gai_strerror = yes \
21508 -o $ac_cv_lib_inet6_gai_strerror = yes
21510 ipv6_cv_gai_strerror=yes
21512 if test $ipv6_cv_gai_strerror = no; then
21513 if test gai_strerror = getaddrinfo; then
21514 for ipv6_cv_pfx in o n; do
21515 cat >conftest.$ac_ext <<_ACEOF
21518 cat confdefs.h >>conftest.$ac_ext
21519 cat >>conftest.$ac_ext <<_ACEOF
21520 /* end confdefs.h. */
21524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21525 $EGREP "${ipv6_cv_pfx}gai_strerror" >/dev/null 2>&1; then
21526 as_ac_var=`echo "ac_cv_func_${ipv6_cv_pfx}gai_strerror" | $as_tr_sh`
21527 { echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}gai_strerror" >&5
21528 echo $ECHO_N "checking for ${ipv6_cv_pfx}gai_strerror... $ECHO_C" >&6; }
21529 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21530 echo $ECHO_N "(cached) $ECHO_C" >&6
21532 cat >conftest.$ac_ext <<_ACEOF
21535 cat confdefs.h >>conftest.$ac_ext
21536 cat >>conftest.$ac_ext <<_ACEOF
21537 /* end confdefs.h. */
21538 /* Define ${ipv6_cv_pfx}gai_strerror to an innocuous variant, in case <limits.h> declares ${ipv6_cv_pfx}gai_strerror.
21539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21540 #define ${ipv6_cv_pfx}gai_strerror innocuous_${ipv6_cv_pfx}gai_strerror
21542 /* System header to define __stub macros and hopefully few prototypes,
21543 which can conflict with char ${ipv6_cv_pfx}gai_strerror (); below.
21544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21545 <limits.h> exists even on freestanding compilers. */
21548 # include <limits.h>
21550 # include <assert.h>
21553 #undef ${ipv6_cv_pfx}gai_strerror
21555 /* Override any GCC internal prototype to avoid an error.
21556 Use char because int might match the return type of a GCC
21557 builtin and then its argument prototype would still apply. */
21561 char ${ipv6_cv_pfx}gai_strerror ();
21562 /* The GNU C library defines this for functions which it implements
21563 to always fail with ENOSYS. Some functions are actually named
21564 something starting with __ and the normal name is an alias. */
21565 #if defined __stub_${ipv6_cv_pfx}gai_strerror || defined __stub___${ipv6_cv_pfx}gai_strerror
21572 return ${ipv6_cv_pfx}gai_strerror ();
21577 rm -f conftest.$ac_objext conftest$ac_exeext
21578 if { (ac_try="$ac_link"
21579 case "(($ac_try" in
21580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21581 *) ac_try_echo=$ac_try;;
21583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21584 (eval "$ac_link") 2>conftest.er1
21586 grep -v '^ *+' conftest.er1 >conftest.err
21588 cat conftest.err >&5
21589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); } && {
21591 test -z "$ac_c_werror_flag" ||
21592 test ! -s conftest.err
21593 } && test -s conftest$ac_exeext &&
21594 $as_test_x conftest$ac_exeext; then
21595 eval "$as_ac_var=yes"
21597 echo "$as_me: failed program was:" >&5
21598 sed 's/^/| /' conftest.$ac_ext >&5
21600 eval "$as_ac_var=no"
21603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21604 conftest$ac_exeext conftest.$ac_ext
21606 ac_res=`eval echo '${'$as_ac_var'}'`
21607 { echo "$as_me:$LINENO: result: $ac_res" >&5
21608 echo "${ECHO_T}$ac_res" >&6; }
21613 if eval test X\$ac_cv_func_${ipv6_cv_pfx}gai_strerror = Xyes; then
21615 cat >>confdefs.h <<\_ACEOF
21616 #define HAVE_GETADDRINFO
21619 ipv6_cv_gai_strerror=yes
21625 if test $ipv6_cv_gai_strerror = yes; then
21627 cat >>confdefs.h <<\_ACEOF
21628 #define HAVE_GETADDRINFO
21631 sasl_cv_getaddrinfo=no
21638 if test $sasl_cv_getaddrinfo = yes; then
21639 case " $LIBOBJS " in
21640 *" getaddrinfo.$ac_objext "* ) ;;
21641 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21645 GETADDRINFOOBJS="getaddrinfo.o"
21646 LTGETADDRINFOOBJS="getaddrinfo.lo"
21652 sasl_cv_getnameinfo=no
21654 { echo "$as_me:$LINENO: checking for getnameinfo" >&5
21655 echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6; }
21656 if test "${ac_cv_func_getnameinfo+set}" = set; then
21657 echo $ECHO_N "(cached) $ECHO_C" >&6
21659 cat >conftest.$ac_ext <<_ACEOF
21662 cat confdefs.h >>conftest.$ac_ext
21663 cat >>conftest.$ac_ext <<_ACEOF
21664 /* end confdefs.h. */
21665 /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
21666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21667 #define getnameinfo innocuous_getnameinfo
21669 /* System header to define __stub macros and hopefully few prototypes,
21670 which can conflict with char getnameinfo (); below.
21671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21672 <limits.h> exists even on freestanding compilers. */
21675 # include <limits.h>
21677 # include <assert.h>
21682 /* Override any GCC internal prototype to avoid an error.
21683 Use char because int might match the return type of a GCC
21684 builtin and then its argument prototype would still apply. */
21688 char getnameinfo ();
21689 /* The GNU C library defines this for functions which it implements
21690 to always fail with ENOSYS. Some functions are actually named
21691 something starting with __ and the normal name is an alias. */
21692 #if defined __stub_getnameinfo || defined __stub___getnameinfo
21699 return getnameinfo ();
21704 rm -f conftest.$ac_objext conftest$ac_exeext
21705 if { (ac_try="$ac_link"
21706 case "(($ac_try" in
21707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21708 *) ac_try_echo=$ac_try;;
21710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21711 (eval "$ac_link") 2>conftest.er1
21713 grep -v '^ *+' conftest.er1 >conftest.err
21715 cat conftest.err >&5
21716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717 (exit $ac_status); } && {
21718 test -z "$ac_c_werror_flag" ||
21719 test ! -s conftest.err
21720 } && test -s conftest$ac_exeext &&
21721 $as_test_x conftest$ac_exeext; then
21722 ac_cv_func_getnameinfo=yes
21724 echo "$as_me: failed program was:" >&5
21725 sed 's/^/| /' conftest.$ac_ext >&5
21727 ac_cv_func_getnameinfo=no
21730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21731 conftest$ac_exeext conftest.$ac_ext
21733 { echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5
21734 echo "${ECHO_T}$ac_cv_func_getnameinfo" >&6; }
21735 if test $ac_cv_func_getnameinfo = yes; then
21736 ac_cv_lib_socket_getnameinfo=no
21737 ac_cv_lib_inet6_getnameinfo=no
21740 { echo "$as_me:$LINENO: checking for getnameinfo in -lsocket" >&5
21741 echo $ECHO_N "checking for getnameinfo in -lsocket... $ECHO_C" >&6; }
21742 if test "${ac_cv_lib_socket_getnameinfo+set}" = set; then
21743 echo $ECHO_N "(cached) $ECHO_C" >&6
21745 ac_check_lib_save_LIBS=$LIBS
21746 LIBS="-lsocket $LIBS"
21747 cat >conftest.$ac_ext <<_ACEOF
21750 cat confdefs.h >>conftest.$ac_ext
21751 cat >>conftest.$ac_ext <<_ACEOF
21752 /* end confdefs.h. */
21754 /* Override any GCC internal prototype to avoid an error.
21755 Use char because int might match the return type of a GCC
21756 builtin and then its argument prototype would still apply. */
21760 char getnameinfo ();
21764 return getnameinfo ();
21769 rm -f conftest.$ac_objext conftest$ac_exeext
21770 if { (ac_try="$ac_link"
21771 case "(($ac_try" in
21772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21773 *) ac_try_echo=$ac_try;;
21775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21776 (eval "$ac_link") 2>conftest.er1
21778 grep -v '^ *+' conftest.er1 >conftest.err
21780 cat conftest.err >&5
21781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782 (exit $ac_status); } && {
21783 test -z "$ac_c_werror_flag" ||
21784 test ! -s conftest.err
21785 } && test -s conftest$ac_exeext &&
21786 $as_test_x conftest$ac_exeext; then
21787 ac_cv_lib_socket_getnameinfo=yes
21789 echo "$as_me: failed program was:" >&5
21790 sed 's/^/| /' conftest.$ac_ext >&5
21792 ac_cv_lib_socket_getnameinfo=no
21795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21796 conftest$ac_exeext conftest.$ac_ext
21797 LIBS=$ac_check_lib_save_LIBS
21799 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getnameinfo" >&5
21800 echo "${ECHO_T}$ac_cv_lib_socket_getnameinfo" >&6; }
21801 if test $ac_cv_lib_socket_getnameinfo = yes; then
21802 LIBS="$LIBS -lsocket"
21803 ac_cv_lib_inet6_getnameinfo=no
21806 { echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5
21807 echo $ECHO_N "checking whether your system has IPv6 directory... $ECHO_C" >&6; }
21808 if test "${ipv6_cv_dir+set}" = set; then
21809 echo $ECHO_N "(cached) $ECHO_C" >&6
21811 for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
21812 if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
21817 { echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5
21818 echo "${ECHO_T}$ipv6_cv_dir" >&6; }
21819 if test $ipv6_cv_dir = no; then
21820 ac_cv_lib_inet6_getnameinfo=no
21822 if test x$ipv6_libinet6 = x; then
21824 SAVELDFLAGS="$LDFLAGS"
21825 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
21827 { echo "$as_me:$LINENO: checking for getnameinfo in -linet6" >&5
21828 echo $ECHO_N "checking for getnameinfo in -linet6... $ECHO_C" >&6; }
21829 if test "${ac_cv_lib_inet6_getnameinfo+set}" = set; then
21830 echo $ECHO_N "(cached) $ECHO_C" >&6
21832 ac_check_lib_save_LIBS=$LIBS
21833 LIBS="-linet6 $LIBS"
21834 cat >conftest.$ac_ext <<_ACEOF
21837 cat confdefs.h >>conftest.$ac_ext
21838 cat >>conftest.$ac_ext <<_ACEOF
21839 /* end confdefs.h. */
21841 /* Override any GCC internal prototype to avoid an error.
21842 Use char because int might match the return type of a GCC
21843 builtin and then its argument prototype would still apply. */
21847 char getnameinfo ();
21851 return getnameinfo ();
21856 rm -f conftest.$ac_objext conftest$ac_exeext
21857 if { (ac_try="$ac_link"
21858 case "(($ac_try" in
21859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21860 *) ac_try_echo=$ac_try;;
21862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21863 (eval "$ac_link") 2>conftest.er1
21865 grep -v '^ *+' conftest.er1 >conftest.err
21867 cat conftest.err >&5
21868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869 (exit $ac_status); } && {
21870 test -z "$ac_c_werror_flag" ||
21871 test ! -s conftest.err
21872 } && test -s conftest$ac_exeext &&
21873 $as_test_x conftest$ac_exeext; then
21874 ac_cv_lib_inet6_getnameinfo=yes
21876 echo "$as_me: failed program was:" >&5
21877 sed 's/^/| /' conftest.$ac_ext >&5
21879 ac_cv_lib_inet6_getnameinfo=no
21882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21883 conftest$ac_exeext conftest.$ac_ext
21884 LIBS=$ac_check_lib_save_LIBS
21886 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getnameinfo" >&5
21887 echo "${ECHO_T}$ac_cv_lib_inet6_getnameinfo" >&6; }
21888 if test $ac_cv_lib_inet6_getnameinfo = yes; then
21889 if test $ipv6_libinet6 = no; then
21891 LIBS="$LIBS -linet6"
21894 if test $ipv6_libinet6 = no; then
21895 LDFLAGS="$SAVELDFLAGS"
21901 ipv6_cv_getnameinfo=no
21902 if test $ac_cv_func_getnameinfo = yes -o $ac_cv_lib_socket_getnameinfo = yes \
21903 -o $ac_cv_lib_inet6_getnameinfo = yes
21905 ipv6_cv_getnameinfo=yes
21907 if test $ipv6_cv_getnameinfo = no; then
21908 if test getnameinfo = getaddrinfo; then
21909 for ipv6_cv_pfx in o n; do
21910 cat >conftest.$ac_ext <<_ACEOF
21913 cat confdefs.h >>conftest.$ac_ext
21914 cat >>conftest.$ac_ext <<_ACEOF
21915 /* end confdefs.h. */
21919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21920 $EGREP "${ipv6_cv_pfx}getnameinfo" >/dev/null 2>&1; then
21921 as_ac_var=`echo "ac_cv_func_${ipv6_cv_pfx}getnameinfo" | $as_tr_sh`
21922 { echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}getnameinfo" >&5
21923 echo $ECHO_N "checking for ${ipv6_cv_pfx}getnameinfo... $ECHO_C" >&6; }
21924 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21925 echo $ECHO_N "(cached) $ECHO_C" >&6
21927 cat >conftest.$ac_ext <<_ACEOF
21930 cat confdefs.h >>conftest.$ac_ext
21931 cat >>conftest.$ac_ext <<_ACEOF
21932 /* end confdefs.h. */
21933 /* Define ${ipv6_cv_pfx}getnameinfo to an innocuous variant, in case <limits.h> declares ${ipv6_cv_pfx}getnameinfo.
21934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21935 #define ${ipv6_cv_pfx}getnameinfo innocuous_${ipv6_cv_pfx}getnameinfo
21937 /* System header to define __stub macros and hopefully few prototypes,
21938 which can conflict with char ${ipv6_cv_pfx}getnameinfo (); below.
21939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21940 <limits.h> exists even on freestanding compilers. */
21943 # include <limits.h>
21945 # include <assert.h>
21948 #undef ${ipv6_cv_pfx}getnameinfo
21950 /* Override any GCC internal prototype to avoid an error.
21951 Use char because int might match the return type of a GCC
21952 builtin and then its argument prototype would still apply. */
21956 char ${ipv6_cv_pfx}getnameinfo ();
21957 /* The GNU C library defines this for functions which it implements
21958 to always fail with ENOSYS. Some functions are actually named
21959 something starting with __ and the normal name is an alias. */
21960 #if defined __stub_${ipv6_cv_pfx}getnameinfo || defined __stub___${ipv6_cv_pfx}getnameinfo
21967 return ${ipv6_cv_pfx}getnameinfo ();
21972 rm -f conftest.$ac_objext conftest$ac_exeext
21973 if { (ac_try="$ac_link"
21974 case "(($ac_try" in
21975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21976 *) ac_try_echo=$ac_try;;
21978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21979 (eval "$ac_link") 2>conftest.er1
21981 grep -v '^ *+' conftest.er1 >conftest.err
21983 cat conftest.err >&5
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); } && {
21986 test -z "$ac_c_werror_flag" ||
21987 test ! -s conftest.err
21988 } && test -s conftest$ac_exeext &&
21989 $as_test_x conftest$ac_exeext; then
21990 eval "$as_ac_var=yes"
21992 echo "$as_me: failed program was:" >&5
21993 sed 's/^/| /' conftest.$ac_ext >&5
21995 eval "$as_ac_var=no"
21998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21999 conftest$ac_exeext conftest.$ac_ext
22001 ac_res=`eval echo '${'$as_ac_var'}'`
22002 { echo "$as_me:$LINENO: result: $ac_res" >&5
22003 echo "${ECHO_T}$ac_res" >&6; }
22008 if eval test X\$ac_cv_func_${ipv6_cv_pfx}getnameinfo = Xyes; then
22010 cat >>confdefs.h <<\_ACEOF
22011 #define HAVE_GETADDRINFO
22014 ipv6_cv_getnameinfo=yes
22020 if test $ipv6_cv_getnameinfo = yes; then
22022 cat >>confdefs.h <<\_ACEOF
22023 #define HAVE_GETNAMEINFO
22027 sasl_cv_getnameinfo=yes
22029 if test $sasl_cv_getnameinfo = yes; then
22030 case " $LIBOBJS " in
22031 *" getnameinfo.$ac_objext "* ) ;;
22032 *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
22036 GETNAMEINFOOBJS="getnameinfo.o"
22037 LTGETNAMEINFOOBJS="getnameinfo.lo"
22042 LTLIBOBJS=`echo "$LIBOBJS" | sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
22045 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22046 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22047 if test "${ac_cv_c_const+set}" = set; then
22048 echo $ECHO_N "(cached) $ECHO_C" >&6
22050 cat >conftest.$ac_ext <<_ACEOF
22053 cat confdefs.h >>conftest.$ac_ext
22054 cat >>conftest.$ac_ext <<_ACEOF
22055 /* end confdefs.h. */
22060 /* FIXME: Include the comments suggested by Paul. */
22061 #ifndef __cplusplus
22062 /* Ultrix mips cc rejects this. */
22063 typedef int charset[2];
22065 /* SunOS 4.1.1 cc rejects this. */
22066 char const *const *pcpcc;
22068 /* NEC SVR4.0.2 mips cc rejects this. */
22069 struct point {int x, y;};
22070 static struct point const zero = {0,0};
22071 /* AIX XL C 1.02.0.0 rejects this.
22072 It does not let you subtract one const X* pointer from another in
22073 an arm of an if-expression whose if-part is not a constant
22075 const char *g = "string";
22076 pcpcc = &g + (g ? g-g : 0);
22077 /* HPUX 7.0 cc rejects these. */
22079 ppc = (char**) pcpcc;
22080 pcpcc = (char const *const *) ppc;
22081 { /* SCO 3.2v4 cc rejects this. */
22083 char const *s = 0 ? (char *) 0 : (char const *) 0;
22088 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22089 int x[] = {25, 17};
22090 const int *foo = &x[0];
22093 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22094 typedef const int *iptr;
22098 { /* AIX XL C 1.02.0.0 rejects this saying
22099 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22100 struct s { int j; const int *ap[3]; };
22101 struct s *b; b->j = 5;
22103 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22104 const int foo = 10;
22105 if (!foo) return 0;
22107 return !cs[0] && !zero.x;
22114 rm -f conftest.$ac_objext
22115 if { (ac_try="$ac_compile"
22116 case "(($ac_try" in
22117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22118 *) ac_try_echo=$ac_try;;
22120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22121 (eval "$ac_compile") 2>conftest.er1
22123 grep -v '^ *+' conftest.er1 >conftest.err
22125 cat conftest.err >&5
22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); } && {
22128 test -z "$ac_c_werror_flag" ||
22129 test ! -s conftest.err
22130 } && test -s conftest.$ac_objext; then
22133 echo "$as_me: failed program was:" >&5
22134 sed 's/^/| /' conftest.$ac_ext >&5
22139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22141 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22142 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22143 if test $ac_cv_c_const = no; then
22145 cat >>confdefs.h <<\_ACEOF
22151 { echo "$as_me:$LINENO: checking for inline" >&5
22152 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
22153 if test "${ac_cv_c_inline+set}" = set; then
22154 echo $ECHO_N "(cached) $ECHO_C" >&6
22157 for ac_kw in inline __inline__ __inline; do
22158 cat >conftest.$ac_ext <<_ACEOF
22161 cat confdefs.h >>conftest.$ac_ext
22162 cat >>conftest.$ac_ext <<_ACEOF
22163 /* end confdefs.h. */
22164 #ifndef __cplusplus
22166 static $ac_kw foo_t static_foo () {return 0; }
22167 $ac_kw foo_t foo () {return 0; }
22171 rm -f conftest.$ac_objext
22172 if { (ac_try="$ac_compile"
22173 case "(($ac_try" in
22174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22175 *) ac_try_echo=$ac_try;;
22177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22178 (eval "$ac_compile") 2>conftest.er1
22180 grep -v '^ *+' conftest.er1 >conftest.err
22182 cat conftest.err >&5
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); } && {
22185 test -z "$ac_c_werror_flag" ||
22186 test ! -s conftest.err
22187 } && test -s conftest.$ac_objext; then
22188 ac_cv_c_inline=$ac_kw
22190 echo "$as_me: failed program was:" >&5
22191 sed 's/^/| /' conftest.$ac_ext >&5
22196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22197 test "$ac_cv_c_inline" != no && break
22201 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22202 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
22205 case $ac_cv_c_inline in
22208 case $ac_cv_c_inline in
22210 *) ac_val=$ac_cv_c_inline;;
22212 cat >>confdefs.h <<_ACEOF
22213 #ifndef __cplusplus
22214 #define inline $ac_val
22220 { echo "$as_me:$LINENO: checking for mode_t" >&5
22221 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22222 if test "${ac_cv_type_mode_t+set}" = set; then
22223 echo $ECHO_N "(cached) $ECHO_C" >&6
22225 cat >conftest.$ac_ext <<_ACEOF
22228 cat confdefs.h >>conftest.$ac_ext
22229 cat >>conftest.$ac_ext <<_ACEOF
22230 /* end confdefs.h. */
22231 $ac_includes_default
22232 typedef mode_t ac__type_new_;
22236 if ((ac__type_new_ *) 0)
22238 if (sizeof (ac__type_new_))
22244 rm -f conftest.$ac_objext
22245 if { (ac_try="$ac_compile"
22246 case "(($ac_try" in
22247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22248 *) ac_try_echo=$ac_try;;
22250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22251 (eval "$ac_compile") 2>conftest.er1
22253 grep -v '^ *+' conftest.er1 >conftest.err
22255 cat conftest.err >&5
22256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257 (exit $ac_status); } && {
22258 test -z "$ac_c_werror_flag" ||
22259 test ! -s conftest.err
22260 } && test -s conftest.$ac_objext; then
22261 ac_cv_type_mode_t=yes
22263 echo "$as_me: failed program was:" >&5
22264 sed 's/^/| /' conftest.$ac_ext >&5
22266 ac_cv_type_mode_t=no
22269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22271 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22272 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
22273 if test $ac_cv_type_mode_t = yes; then
22277 cat >>confdefs.h <<_ACEOF
22283 { echo "$as_me:$LINENO: checking for pid_t" >&5
22284 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22285 if test "${ac_cv_type_pid_t+set}" = set; then
22286 echo $ECHO_N "(cached) $ECHO_C" >&6
22288 cat >conftest.$ac_ext <<_ACEOF
22291 cat confdefs.h >>conftest.$ac_ext
22292 cat >>conftest.$ac_ext <<_ACEOF
22293 /* end confdefs.h. */
22294 $ac_includes_default
22295 typedef pid_t ac__type_new_;
22299 if ((ac__type_new_ *) 0)
22301 if (sizeof (ac__type_new_))
22307 rm -f conftest.$ac_objext
22308 if { (ac_try="$ac_compile"
22309 case "(($ac_try" in
22310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22311 *) ac_try_echo=$ac_try;;
22313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22314 (eval "$ac_compile") 2>conftest.er1
22316 grep -v '^ *+' conftest.er1 >conftest.err
22318 cat conftest.err >&5
22319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320 (exit $ac_status); } && {
22321 test -z "$ac_c_werror_flag" ||
22322 test ! -s conftest.err
22323 } && test -s conftest.$ac_objext; then
22324 ac_cv_type_pid_t=yes
22326 echo "$as_me: failed program was:" >&5
22327 sed 's/^/| /' conftest.$ac_ext >&5
22329 ac_cv_type_pid_t=no
22332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22334 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22335 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22336 if test $ac_cv_type_pid_t = yes; then
22340 cat >>confdefs.h <<_ACEOF
22346 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22347 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22348 if test "${ac_cv_type_signal+set}" = set; then
22349 echo $ECHO_N "(cached) $ECHO_C" >&6
22351 cat >conftest.$ac_ext <<_ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h. */
22357 #include <sys/types.h>
22358 #include <signal.h>
22363 return *(signal (0, 0)) (0) == 1;
22368 rm -f conftest.$ac_objext
22369 if { (ac_try="$ac_compile"
22370 case "(($ac_try" in
22371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22372 *) ac_try_echo=$ac_try;;
22374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22375 (eval "$ac_compile") 2>conftest.er1
22377 grep -v '^ *+' conftest.er1 >conftest.err
22379 cat conftest.err >&5
22380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381 (exit $ac_status); } && {
22382 test -z "$ac_c_werror_flag" ||
22383 test ! -s conftest.err
22384 } && test -s conftest.$ac_objext; then
22385 ac_cv_type_signal=int
22387 echo "$as_me: failed program was:" >&5
22388 sed 's/^/| /' conftest.$ac_ext >&5
22390 ac_cv_type_signal=void
22393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22395 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22396 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22398 cat >>confdefs.h <<_ACEOF
22399 #define RETSIGTYPE $ac_cv_type_signal
22404 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22405 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22406 if test "${ac_cv_header_time+set}" = set; then
22407 echo $ECHO_N "(cached) $ECHO_C" >&6
22409 cat >conftest.$ac_ext <<_ACEOF
22412 cat confdefs.h >>conftest.$ac_ext
22413 cat >>conftest.$ac_ext <<_ACEOF
22414 /* end confdefs.h. */
22415 #include <sys/types.h>
22416 #include <sys/time.h>
22422 if ((struct tm *) 0)
22428 rm -f conftest.$ac_objext
22429 if { (ac_try="$ac_compile"
22430 case "(($ac_try" in
22431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22432 *) ac_try_echo=$ac_try;;
22434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22435 (eval "$ac_compile") 2>conftest.er1
22437 grep -v '^ *+' conftest.er1 >conftest.err
22439 cat conftest.err >&5
22440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); } && {
22442 test -z "$ac_c_werror_flag" ||
22443 test ! -s conftest.err
22444 } && test -s conftest.$ac_objext; then
22445 ac_cv_header_time=yes
22447 echo "$as_me: failed program was:" >&5
22448 sed 's/^/| /' conftest.$ac_ext >&5
22450 ac_cv_header_time=no
22453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22455 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22456 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22457 if test $ac_cv_header_time = yes; then
22459 cat >>confdefs.h <<\_ACEOF
22460 #define TIME_WITH_SYS_TIME 1
22465 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22466 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22467 if test "${ac_cv_header_stdc+set}" = set; then
22468 echo $ECHO_N "(cached) $ECHO_C" >&6
22470 cat >conftest.$ac_ext <<_ACEOF
22473 cat confdefs.h >>conftest.$ac_ext
22474 cat >>conftest.$ac_ext <<_ACEOF
22475 /* end confdefs.h. */
22476 #include <stdlib.h>
22477 #include <stdarg.h>
22478 #include <string.h>
22489 rm -f conftest.$ac_objext
22490 if { (ac_try="$ac_compile"
22491 case "(($ac_try" in
22492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22493 *) ac_try_echo=$ac_try;;
22495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22496 (eval "$ac_compile") 2>conftest.er1
22498 grep -v '^ *+' conftest.er1 >conftest.err
22500 cat conftest.err >&5
22501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22502 (exit $ac_status); } && {
22503 test -z "$ac_c_werror_flag" ||
22504 test ! -s conftest.err
22505 } && test -s conftest.$ac_objext; then
22506 ac_cv_header_stdc=yes
22508 echo "$as_me: failed program was:" >&5
22509 sed 's/^/| /' conftest.$ac_ext >&5
22511 ac_cv_header_stdc=no
22514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22516 if test $ac_cv_header_stdc = yes; then
22517 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22518 cat >conftest.$ac_ext <<_ACEOF
22521 cat confdefs.h >>conftest.$ac_ext
22522 cat >>conftest.$ac_ext <<_ACEOF
22523 /* end confdefs.h. */
22524 #include <string.h>
22527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22528 $EGREP "memchr" >/dev/null 2>&1; then
22531 ac_cv_header_stdc=no
22537 if test $ac_cv_header_stdc = yes; then
22538 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22539 cat >conftest.$ac_ext <<_ACEOF
22542 cat confdefs.h >>conftest.$ac_ext
22543 cat >>conftest.$ac_ext <<_ACEOF
22544 /* end confdefs.h. */
22545 #include <stdlib.h>
22548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22549 $EGREP "free" >/dev/null 2>&1; then
22552 ac_cv_header_stdc=no
22558 if test $ac_cv_header_stdc = yes; then
22559 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22560 if test "$cross_compiling" = yes; then
22563 cat >conftest.$ac_ext <<_ACEOF
22566 cat confdefs.h >>conftest.$ac_ext
22567 cat >>conftest.$ac_ext <<_ACEOF
22568 /* end confdefs.h. */
22570 #include <stdlib.h>
22571 #if ((' ' & 0x0FF) == 0x020)
22572 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22573 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22575 # define ISLOWER(c) \
22576 (('a' <= (c) && (c) <= 'i') \
22577 || ('j' <= (c) && (c) <= 'r') \
22578 || ('s' <= (c) && (c) <= 'z'))
22579 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22582 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22587 for (i = 0; i < 256; i++)
22588 if (XOR (islower (i), ISLOWER (i))
22589 || toupper (i) != TOUPPER (i))
22594 rm -f conftest$ac_exeext
22595 if { (ac_try="$ac_link"
22596 case "(($ac_try" in
22597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22598 *) ac_try_echo=$ac_try;;
22600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22601 (eval "$ac_link") 2>&5
22603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22605 { (case "(($ac_try" in
22606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22607 *) ac_try_echo=$ac_try;;
22609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22610 (eval "$ac_try") 2>&5
22612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 (exit $ac_status); }; }; then
22616 echo "$as_me: program exited with status $ac_status" >&5
22617 echo "$as_me: failed program was:" >&5
22618 sed 's/^/| /' conftest.$ac_ext >&5
22620 ( exit $ac_status )
22621 ac_cv_header_stdc=no
22623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22629 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22630 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
22631 if test $ac_cv_header_stdc = yes; then
22633 cat >>confdefs.h <<\_ACEOF
22634 #define STDC_HEADERS 1
22644 ac_header_dirent=no
22645 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22646 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22647 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22648 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22650 echo $ECHO_N "(cached) $ECHO_C" >&6
22652 cat >conftest.$ac_ext <<_ACEOF
22655 cat confdefs.h >>conftest.$ac_ext
22656 cat >>conftest.$ac_ext <<_ACEOF
22657 /* end confdefs.h. */
22658 #include <sys/types.h>
22670 rm -f conftest.$ac_objext
22671 if { (ac_try="$ac_compile"
22672 case "(($ac_try" in
22673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22674 *) ac_try_echo=$ac_try;;
22676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22677 (eval "$ac_compile") 2>conftest.er1
22679 grep -v '^ *+' conftest.er1 >conftest.err
22681 cat conftest.err >&5
22682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683 (exit $ac_status); } && {
22684 test -z "$ac_c_werror_flag" ||
22685 test ! -s conftest.err
22686 } && test -s conftest.$ac_objext; then
22687 eval "$as_ac_Header=yes"
22689 echo "$as_me: failed program was:" >&5
22690 sed 's/^/| /' conftest.$ac_ext >&5
22692 eval "$as_ac_Header=no"
22695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22697 ac_res=`eval echo '${'$as_ac_Header'}'`
22698 { echo "$as_me:$LINENO: result: $ac_res" >&5
22699 echo "${ECHO_T}$ac_res" >&6; }
22700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22701 cat >>confdefs.h <<_ACEOF
22702 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22705 ac_header_dirent=$ac_hdr; break
22709 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22710 if test $ac_header_dirent = dirent.h; then
22711 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22712 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22713 if test "${ac_cv_search_opendir+set}" = set; then
22714 echo $ECHO_N "(cached) $ECHO_C" >&6
22716 ac_func_search_save_LIBS=$LIBS
22717 cat >conftest.$ac_ext <<_ACEOF
22720 cat confdefs.h >>conftest.$ac_ext
22721 cat >>conftest.$ac_ext <<_ACEOF
22722 /* end confdefs.h. */
22724 /* Override any GCC internal prototype to avoid an error.
22725 Use char because int might match the return type of a GCC
22726 builtin and then its argument prototype would still apply. */
22739 for ac_lib in '' dir; do
22740 if test -z "$ac_lib"; then
22741 ac_res="none required"
22744 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22746 rm -f conftest.$ac_objext conftest$ac_exeext
22747 if { (ac_try="$ac_link"
22748 case "(($ac_try" in
22749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22750 *) ac_try_echo=$ac_try;;
22752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22753 (eval "$ac_link") 2>conftest.er1
22755 grep -v '^ *+' conftest.er1 >conftest.err
22757 cat conftest.err >&5
22758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); } && {
22760 test -z "$ac_c_werror_flag" ||
22761 test ! -s conftest.err
22762 } && test -s conftest$ac_exeext &&
22763 $as_test_x conftest$ac_exeext; then
22764 ac_cv_search_opendir=$ac_res
22766 echo "$as_me: failed program was:" >&5
22767 sed 's/^/| /' conftest.$ac_ext >&5
22772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22774 if test "${ac_cv_search_opendir+set}" = set; then
22778 if test "${ac_cv_search_opendir+set}" = set; then
22781 ac_cv_search_opendir=no
22783 rm conftest.$ac_ext
22784 LIBS=$ac_func_search_save_LIBS
22786 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22787 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22788 ac_res=$ac_cv_search_opendir
22789 if test "$ac_res" != no; then
22790 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22795 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22796 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22797 if test "${ac_cv_search_opendir+set}" = set; then
22798 echo $ECHO_N "(cached) $ECHO_C" >&6
22800 ac_func_search_save_LIBS=$LIBS
22801 cat >conftest.$ac_ext <<_ACEOF
22804 cat confdefs.h >>conftest.$ac_ext
22805 cat >>conftest.$ac_ext <<_ACEOF
22806 /* end confdefs.h. */
22808 /* Override any GCC internal prototype to avoid an error.
22809 Use char because int might match the return type of a GCC
22810 builtin and then its argument prototype would still apply. */
22823 for ac_lib in '' x; do
22824 if test -z "$ac_lib"; then
22825 ac_res="none required"
22828 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22830 rm -f conftest.$ac_objext conftest$ac_exeext
22831 if { (ac_try="$ac_link"
22832 case "(($ac_try" in
22833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22834 *) ac_try_echo=$ac_try;;
22836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22837 (eval "$ac_link") 2>conftest.er1
22839 grep -v '^ *+' conftest.er1 >conftest.err
22841 cat conftest.err >&5
22842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843 (exit $ac_status); } && {
22844 test -z "$ac_c_werror_flag" ||
22845 test ! -s conftest.err
22846 } && test -s conftest$ac_exeext &&
22847 $as_test_x conftest$ac_exeext; then
22848 ac_cv_search_opendir=$ac_res
22850 echo "$as_me: failed program was:" >&5
22851 sed 's/^/| /' conftest.$ac_ext >&5
22856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22858 if test "${ac_cv_search_opendir+set}" = set; then
22862 if test "${ac_cv_search_opendir+set}" = set; then
22865 ac_cv_search_opendir=no
22867 rm conftest.$ac_ext
22868 LIBS=$ac_func_search_save_LIBS
22870 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22871 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22872 ac_res=$ac_cv_search_opendir
22873 if test "$ac_res" != no; then
22874 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22880 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22881 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22882 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22883 echo $ECHO_N "(cached) $ECHO_C" >&6
22885 cat >conftest.$ac_ext <<_ACEOF
22888 cat confdefs.h >>conftest.$ac_ext
22889 cat >>conftest.$ac_ext <<_ACEOF
22890 /* end confdefs.h. */
22891 #include <sys/types.h>
22892 #include <sys/wait.h>
22893 #ifndef WEXITSTATUS
22894 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22897 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22905 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22910 rm -f conftest.$ac_objext
22911 if { (ac_try="$ac_compile"
22912 case "(($ac_try" in
22913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22914 *) ac_try_echo=$ac_try;;
22916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22917 (eval "$ac_compile") 2>conftest.er1
22919 grep -v '^ *+' conftest.er1 >conftest.err
22921 cat conftest.err >&5
22922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923 (exit $ac_status); } && {
22924 test -z "$ac_c_werror_flag" ||
22925 test ! -s conftest.err
22926 } && test -s conftest.$ac_objext; then
22927 ac_cv_header_sys_wait_h=yes
22929 echo "$as_me: failed program was:" >&5
22930 sed 's/^/| /' conftest.$ac_ext >&5
22932 ac_cv_header_sys_wait_h=no
22935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22937 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22938 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22939 if test $ac_cv_header_sys_wait_h = yes; then
22941 cat >>confdefs.h <<\_ACEOF
22942 #define HAVE_SYS_WAIT_H 1
22964 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
22966 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22968 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22971 echo $ECHO_N "(cached) $ECHO_C" >&6
22973 ac_res=`eval echo '${'$as_ac_Header'}'`
22974 { echo "$as_me:$LINENO: result: $ac_res" >&5
22975 echo "${ECHO_T}$ac_res" >&6; }
22977 # Is the header compilable?
22978 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22979 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22980 cat >conftest.$ac_ext <<_ACEOF
22983 cat confdefs.h >>conftest.$ac_ext
22984 cat >>conftest.$ac_ext <<_ACEOF
22985 /* end confdefs.h. */
22986 $ac_includes_default
22987 #include <$ac_header>
22989 rm -f conftest.$ac_objext
22990 if { (ac_try="$ac_compile"
22991 case "(($ac_try" in
22992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22993 *) ac_try_echo=$ac_try;;
22995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22996 (eval "$ac_compile") 2>conftest.er1
22998 grep -v '^ *+' conftest.er1 >conftest.err
23000 cat conftest.err >&5
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); } && {
23003 test -z "$ac_c_werror_flag" ||
23004 test ! -s conftest.err
23005 } && test -s conftest.$ac_objext; then
23006 ac_header_compiler=yes
23008 echo "$as_me: failed program was:" >&5
23009 sed 's/^/| /' conftest.$ac_ext >&5
23011 ac_header_compiler=no
23014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23015 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23016 echo "${ECHO_T}$ac_header_compiler" >&6; }
23018 # Is the header present?
23019 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23021 cat >conftest.$ac_ext <<_ACEOF
23024 cat confdefs.h >>conftest.$ac_ext
23025 cat >>conftest.$ac_ext <<_ACEOF
23026 /* end confdefs.h. */
23027 #include <$ac_header>
23029 if { (ac_try="$ac_cpp conftest.$ac_ext"
23030 case "(($ac_try" in
23031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23032 *) ac_try_echo=$ac_try;;
23034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23037 grep -v '^ *+' conftest.er1 >conftest.err
23039 cat conftest.err >&5
23040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041 (exit $ac_status); } >/dev/null && {
23042 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23043 test ! -s conftest.err
23045 ac_header_preproc=yes
23047 echo "$as_me: failed program was:" >&5
23048 sed 's/^/| /' conftest.$ac_ext >&5
23050 ac_header_preproc=no
23053 rm -f conftest.err conftest.$ac_ext
23054 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23055 echo "${ECHO_T}$ac_header_preproc" >&6; }
23057 # So? What about this header?
23058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23064 ac_header_preproc=yes
23067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23070 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23071 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23073 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23074 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23077 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23082 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23085 echo $ECHO_N "(cached) $ECHO_C" >&6
23087 eval "$as_ac_Header=\$ac_header_preproc"
23089 ac_res=`eval echo '${'$as_ac_Header'}'`
23090 { echo "$as_me:$LINENO: result: $ac_res" >&5
23091 echo "${ECHO_T}$ac_res" >&6; }
23094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23095 cat >>confdefs.h <<_ACEOF
23096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23105 { echo "$as_me:$LINENO: checking whether you have ss_family in struct sockaddr_storage" >&5
23106 echo $ECHO_N "checking whether you have ss_family in struct sockaddr_storage... $ECHO_C" >&6; }
23107 if test "${ipv6_cv_ss_family+set}" = set; then
23108 echo $ECHO_N "(cached) $ECHO_C" >&6
23110 cat >conftest.$ac_ext <<_ACEOF
23113 cat confdefs.h >>conftest.$ac_ext
23114 cat >>conftest.$ac_ext <<_ACEOF
23115 /* end confdefs.h. */
23116 #include <sys/types.h>
23117 #include <sys/socket.h>
23121 struct sockaddr_storage ss; int i = ss.ss_family;
23126 rm -f conftest.$ac_objext
23127 if { (ac_try="$ac_compile"
23128 case "(($ac_try" in
23129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23130 *) ac_try_echo=$ac_try;;
23132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23133 (eval "$ac_compile") 2>conftest.er1
23135 grep -v '^ *+' conftest.er1 >conftest.err
23137 cat conftest.err >&5
23138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139 (exit $ac_status); } && {
23140 test -z "$ac_c_werror_flag" ||
23141 test ! -s conftest.err
23142 } && test -s conftest.$ac_objext; then
23143 ipv6_cv_ss_family=yes
23145 echo "$as_me: failed program was:" >&5
23146 sed 's/^/| /' conftest.$ac_ext >&5
23148 ipv6_cv_ss_family=no
23151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23153 if test $ipv6_cv_ss_family = yes; then
23155 cat >>confdefs.h <<\_ACEOF
23156 #define HAVE_SS_FAMILY
23162 { echo "$as_me:$LINENO: result: $ipv6_cv_ss_family" >&5
23163 echo "${ECHO_T}$ipv6_cv_ss_family" >&6; }
23165 { echo "$as_me:$LINENO: checking whether you have sa_len in struct sockaddr" >&5
23166 echo $ECHO_N "checking whether you have sa_len in struct sockaddr... $ECHO_C" >&6; }
23167 if test "${ipv6_cv_sa_len+set}" = set; then
23168 echo $ECHO_N "(cached) $ECHO_C" >&6
23170 cat >conftest.$ac_ext <<_ACEOF
23173 cat confdefs.h >>conftest.$ac_ext
23174 cat >>conftest.$ac_ext <<_ACEOF
23175 /* end confdefs.h. */
23176 #include <sys/types.h>
23177 #include <sys/socket.h>
23181 struct sockaddr sa; int i = sa.sa_len;
23186 rm -f conftest.$ac_objext
23187 if { (ac_try="$ac_compile"
23188 case "(($ac_try" in
23189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23190 *) ac_try_echo=$ac_try;;
23192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23193 (eval "$ac_compile") 2>conftest.er1
23195 grep -v '^ *+' conftest.er1 >conftest.err
23197 cat conftest.err >&5
23198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199 (exit $ac_status); } && {
23200 test -z "$ac_c_werror_flag" ||
23201 test ! -s conftest.err
23202 } && test -s conftest.$ac_objext; then
23205 echo "$as_me: failed program was:" >&5
23206 sed 's/^/| /' conftest.$ac_ext >&5
23211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23213 if test $ipv6_cv_sa_len = yes; then
23215 cat >>confdefs.h <<\_ACEOF
23216 #define HAVE_SOCKADDR_SA_LEN
23222 { echo "$as_me:$LINENO: result: $ipv6_cv_sa_len" >&5
23223 echo "${ECHO_T}$ipv6_cv_sa_len" >&6; }
23225 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23226 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23227 if test "${ipv6_cv_socklen_t+set}" = set; then
23228 echo $ECHO_N "(cached) $ECHO_C" >&6
23230 cat >conftest.$ac_ext <<_ACEOF
23233 cat confdefs.h >>conftest.$ac_ext
23234 cat >>conftest.$ac_ext <<_ACEOF
23235 /* end confdefs.h. */
23236 #include <sys/types.h>
23237 #include <sys/socket.h>
23246 rm -f conftest.$ac_objext conftest$ac_exeext
23247 if { (ac_try="$ac_link"
23248 case "(($ac_try" in
23249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23250 *) ac_try_echo=$ac_try;;
23252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23253 (eval "$ac_link") 2>conftest.er1
23255 grep -v '^ *+' conftest.er1 >conftest.err
23257 cat conftest.err >&5
23258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23259 (exit $ac_status); } && {
23260 test -z "$ac_c_werror_flag" ||
23261 test ! -s conftest.err
23262 } && test -s conftest$ac_exeext &&
23263 $as_test_x conftest$ac_exeext; then
23264 ipv6_cv_socklen_t=yes
23266 echo "$as_me: failed program was:" >&5
23267 sed 's/^/| /' conftest.$ac_ext >&5
23269 ipv6_cv_socklen_t=no
23272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23273 conftest$ac_exeext conftest.$ac_ext
23275 if test $ipv6_cv_socklen_t = yes; then
23277 cat >>confdefs.h <<\_ACEOF
23278 #define HAVE_SOCKLEN_T
23284 { echo "$as_me:$LINENO: result: $ipv6_cv_socklen_t" >&5
23285 echo "${ECHO_T}$ipv6_cv_socklen_t" >&6; }
23306 for ac_func in gethostname getdomainname getpwnam getspnam gettimeofday inet_aton memcpy mkdir select socket strchr strdup strerror strspn strstr strtol jrand48
23308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23309 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23312 echo $ECHO_N "(cached) $ECHO_C" >&6
23314 cat >conftest.$ac_ext <<_ACEOF
23317 cat confdefs.h >>conftest.$ac_ext
23318 cat >>conftest.$ac_ext <<_ACEOF
23319 /* end confdefs.h. */
23320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23322 #define $ac_func innocuous_$ac_func
23324 /* System header to define __stub macros and hopefully few prototypes,
23325 which can conflict with char $ac_func (); below.
23326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23327 <limits.h> exists even on freestanding compilers. */
23330 # include <limits.h>
23332 # include <assert.h>
23337 /* Override any GCC internal prototype to avoid an error.
23338 Use char because int might match the return type of a GCC
23339 builtin and then its argument prototype would still apply. */
23344 /* The GNU C library defines this for functions which it implements
23345 to always fail with ENOSYS. Some functions are actually named
23346 something starting with __ and the normal name is an alias. */
23347 #if defined __stub_$ac_func || defined __stub___$ac_func
23354 return $ac_func ();
23359 rm -f conftest.$ac_objext conftest$ac_exeext
23360 if { (ac_try="$ac_link"
23361 case "(($ac_try" in
23362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23363 *) ac_try_echo=$ac_try;;
23365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23366 (eval "$ac_link") 2>conftest.er1
23368 grep -v '^ *+' conftest.er1 >conftest.err
23370 cat conftest.err >&5
23371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372 (exit $ac_status); } && {
23373 test -z "$ac_c_werror_flag" ||
23374 test ! -s conftest.err
23375 } && test -s conftest$ac_exeext &&
23376 $as_test_x conftest$ac_exeext; then
23377 eval "$as_ac_var=yes"
23379 echo "$as_me: failed program was:" >&5
23380 sed 's/^/| /' conftest.$ac_ext >&5
23382 eval "$as_ac_var=no"
23385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23386 conftest$ac_exeext conftest.$ac_ext
23388 ac_res=`eval echo '${'$as_ac_var'}'`
23389 { echo "$as_me:$LINENO: result: $ac_res" >&5
23390 echo "${ECHO_T}$ac_res" >&6; }
23391 if test `eval echo '${'$as_ac_var'}'` = yes; then
23392 cat >>confdefs.h <<_ACEOF
23393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23400 if test $enable_cmulocal = yes; then
23401 { echo "$as_me:$LINENO: WARNING: enabling CMU local kludges" >&5
23402 echo "$as_me: WARNING: enabling CMU local kludges" >&2;}
23404 cat >>confdefs.h <<\_ACEOF
23405 #define KRB4_IGNORE_IP_ADDRESS
23409 cat >>confdefs.h <<_ACEOF
23410 #define PREFER_MECH "KERBEROS_V4"
23415 cat >conftest.$ac_ext <<_ACEOF
23418 cat confdefs.h >>conftest.$ac_ext
23419 cat >>conftest.$ac_ext <<_ACEOF
23420 /* end confdefs.h. */
23421 #include <sys/socket.h>
23424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23425 $EGREP "sockaddr_storage" >/dev/null 2>&1; then
23428 cat >>confdefs.h <<\_ACEOF
23429 #define HAVE_STRUCT_SOCKADDR_STORAGE
23438 subdirs="$subdirs saslauthd"
23447 ac_config_headers="$ac_config_headers config.h"
23450 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"
23452 cat >confcache <<\_ACEOF
23453 # This file is a shell script that caches the results of configure
23454 # tests run on this system so they can be shared between configure
23455 # scripts and configure runs, see configure's option --config-cache.
23456 # It is not useful on other systems. If it contains results you don't
23457 # want to keep, you may remove or edit it.
23459 # config.status only pays attention to the cache file if you give it
23460 # the --recheck option to rerun configure.
23462 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23463 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23464 # following values.
23468 # The following way of writing the cache mishandles newlines in values,
23469 # but we know of no workaround that is simple, portable, and efficient.
23470 # So, we kill variables containing newlines.
23471 # Ultrix sh set writes to stderr and can't be redirected directly,
23472 # and sets the high bit in the cache file unless we assign to the vars.
23474 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23475 eval ac_val=\$$ac_var
23479 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23480 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23483 _ | IFS | as_nl) ;; #(
23484 *) $as_unset $ac_var ;;
23490 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23491 *${as_nl}ac_space=\ *)
23492 # `set' does not quote correctly, so add quotes (double-quote
23493 # substitution turns \\\\ into \\, and sed turns \\ into \).
23496 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23499 # `set' quotes correctly as required by POSIX, so do not add quotes.
23500 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23509 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23511 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23513 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23514 if test -w "$cache_file"; then
23515 test "x$cache_file" != "x/dev/null" &&
23516 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23517 echo "$as_me: updating cache $cache_file" >&6;}
23518 cat confcache >$cache_file
23520 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23521 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23526 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23527 # Let make expand exec_prefix.
23528 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23530 DEFS=-DHAVE_CONFIG_H
23534 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23535 # 1. Remove the extension, and $U if already installed.
23536 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23537 ac_i=`echo "$ac_i" | sed "$ac_script"`
23538 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23539 # will be set to the directory where LIBOBJS objects are built.
23540 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23541 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23543 LIBOBJS=$ac_libobjs
23545 LTLIBOBJS=$ac_ltlibobjs
23548 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23549 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23550 Usually this means the macro was only invoked conditionally." >&5
23551 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23552 Usually this means the macro was only invoked conditionally." >&2;}
23553 { (exit 1); exit 1; }; }
23555 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23556 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23557 Usually this means the macro was only invoked conditionally." >&5
23558 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23559 Usually this means the macro was only invoked conditionally." >&2;}
23560 { (exit 1); exit 1; }; }
23562 if test -z "${JAVA_TRUE}" && test -z "${JAVA_FALSE}"; then
23563 { { echo "$as_me:$LINENO: error: conditional \"JAVA\" was never defined.
23564 Usually this means the macro was only invoked conditionally." >&5
23565 echo "$as_me: error: conditional \"JAVA\" was never defined.
23566 Usually this means the macro was only invoked conditionally." >&2;}
23567 { (exit 1); exit 1; }; }
23569 if test -z "${SAMPLE_TRUE}" && test -z "${SAMPLE_FALSE}"; then
23570 { { echo "$as_me:$LINENO: error: conditional \"SAMPLE\" was never defined.
23571 Usually this means the macro was only invoked conditionally." >&5
23572 echo "$as_me: error: conditional \"SAMPLE\" was never defined.
23573 Usually this means the macro was only invoked conditionally." >&2;}
23574 { (exit 1); exit 1; }; }
23576 if test -z "${NO_SASL_DB_MANS_TRUE}" && test -z "${NO_SASL_DB_MANS_FALSE}"; then
23577 { { echo "$as_me:$LINENO: error: conditional \"NO_SASL_DB_MANS\" was never defined.
23578 Usually this means the macro was only invoked conditionally." >&5
23579 echo "$as_me: error: conditional \"NO_SASL_DB_MANS\" was never defined.
23580 Usually this means the macro was only invoked conditionally." >&2;}
23581 { (exit 1); exit 1; }; }
23583 if test -z "${SASLAUTHD_TRUE}" && test -z "${SASLAUTHD_FALSE}"; then
23584 { { echo "$as_me:$LINENO: error: conditional \"SASLAUTHD\" was never defined.
23585 Usually this means the macro was only invoked conditionally." >&5
23586 echo "$as_me: error: conditional \"SASLAUTHD\" was never defined.
23587 Usually this means the macro was only invoked conditionally." >&2;}
23588 { (exit 1); exit 1; }; }
23590 if test -z "${PWCHECK_TRUE}" && test -z "${PWCHECK_FALSE}"; then
23591 { { echo "$as_me:$LINENO: error: conditional \"PWCHECK\" was never defined.
23592 Usually this means the macro was only invoked conditionally." >&5
23593 echo "$as_me: error: conditional \"PWCHECK\" was never defined.
23594 Usually this means the macro was only invoked conditionally." >&2;}
23595 { (exit 1); exit 1; }; }
23597 if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then
23598 { { echo "$as_me:$LINENO: error: conditional \"MACOSX\" was never defined.
23599 Usually this means the macro was only invoked conditionally." >&5
23600 echo "$as_me: error: conditional \"MACOSX\" was never defined.
23601 Usually this means the macro was only invoked conditionally." >&2;}
23602 { (exit 1); exit 1; }; }
23605 : ${CONFIG_STATUS=./config.status}
23606 ac_clean_files_save=$ac_clean_files
23607 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23608 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23609 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23610 cat >$CONFIG_STATUS <<_ACEOF
23612 # Generated by $as_me.
23613 # Run this file to recreate the current configuration.
23614 # Compiler output produced by configure, useful for debugging
23615 # configure, is in config.log if it exists.
23618 ac_cs_recheck=false
23620 SHELL=\${CONFIG_SHELL-$SHELL}
23623 cat >>$CONFIG_STATUS <<\_ACEOF
23624 ## --------------------- ##
23625 ## M4sh Initialization. ##
23626 ## --------------------- ##
23628 # Be more Bourne compatible
23629 DUALCASE=1; export DUALCASE # for MKS sh
23630 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23633 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23634 # is contrary to our usage. Disable this feature.
23635 alias -g '${1+"$@"}'='"$@"'
23636 setopt NO_GLOB_SUBST
23638 case `(set -o) 2>/dev/null` in
23639 *posix*) set -o posix ;;
23648 # Avoid depending upon Character Ranges.
23649 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23650 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23651 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23652 as_cr_digits='0123456789'
23653 as_cr_alnum=$as_cr_Letters$as_cr_digits
23655 # The user is always right.
23656 if test "${PATH_SEPARATOR+set}" != set; then
23657 echo "#! /bin/sh" >conf$$.sh
23658 echo "exit 0" >>conf$$.sh
23660 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23668 # Support unset when possible.
23669 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23677 # We need space, tab and new line, in precisely that order. Quoting is
23678 # there to prevent editors from complaining about space-tab.
23679 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23680 # splitting by setting IFS to empty value.)
23685 # Find who we are. Look in the path if we contain no directory separator.
23687 *[\\/]* ) as_myself=$0 ;;
23688 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23689 for as_dir in $PATH
23692 test -z "$as_dir" && as_dir=.
23693 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23699 # We did not find ourselves, most probably we were run as `sh COMMAND'
23700 # in which case we are not to be found in the path.
23701 if test "x$as_myself" = x; then
23704 if test ! -f "$as_myself"; then
23705 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23706 { (exit 1); exit 1; }
23709 # Work around bugs in pre-3.0 UWIN ksh.
23710 for as_var in ENV MAIL MAILPATH
23711 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23719 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23720 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23721 LC_TELEPHONE LC_TIME
23723 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23724 eval $as_var=C; export $as_var
23726 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23730 # Required to use basename.
23731 if expr a : '\(a\)' >/dev/null 2>&1 &&
23732 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23738 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23739 as_basename=basename
23745 # Name of the executable.
23746 as_me=`$as_basename -- "$0" ||
23747 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23748 X"$0" : 'X\(//\)$' \| \
23749 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23751 sed '/^.*\/\([^/][^/]*\)\/*$/{
23770 as_lineno_1=$LINENO
23771 as_lineno_2=$LINENO
23772 test "x$as_lineno_1" != "x$as_lineno_2" &&
23773 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23775 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23776 # uniformly replaced by the line number. The first 'sed' inserts a
23777 # line-number line after each line using $LINENO; the second 'sed'
23778 # does the real work. The second script uses 'N' to pair each
23779 # line-number line with the line containing $LINENO, and appends
23780 # trailing '-' during substitution so that $LINENO is not a special
23781 # case at line end.
23782 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23783 # scripts with optimization help from Paolo Bonzini. Blame Lee
23784 # E. McMahon (1931-1989) for sed's syntax. :-)
23796 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23799 ' >$as_me.lineno &&
23800 chmod +x "$as_me.lineno" ||
23801 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23802 { (exit 1); exit 1; }; }
23804 # Don't try to exec as it changes $[0], causing all sort of problems
23805 # (the dirname of $[0] is not the place where we might find the
23806 # original and so on. Autoconf is especially sensitive to this).
23807 . "./$as_me.lineno"
23808 # Exit status is that of the last command.
23813 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23819 ECHO_C= ECHO_N= ECHO_T=
23820 case `echo -n x` in
23822 case `echo 'x\c'` in
23823 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23830 if expr a : '\(a\)' >/dev/null 2>&1 &&
23831 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23837 rm -f conf$$ conf$$.exe conf$$.file
23838 if test -d conf$$.dir; then
23839 rm -f conf$$.dir/conf$$.file
23845 if ln -s conf$$.file conf$$ 2>/dev/null; then
23847 # ... but there are two gotchas:
23848 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23849 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23850 # In both cases, we have to default to `cp -p'.
23851 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23853 elif ln conf$$.file conf$$ 2>/dev/null; then
23858 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23859 rmdir conf$$.dir 2>/dev/null
23861 if mkdir -p . 2>/dev/null; then
23864 test -d ./-p && rmdir ./-p
23868 if test -x / >/dev/null 2>&1; then
23869 as_test_x='test -x'
23871 if ls -dL / >/dev/null 2>&1; then
23878 if test -d "$1"; then
23884 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23885 ???[sx]*):;;*)false;;esac;fi
23889 as_executable_p=$as_test_x
23891 # Sed expression to map a string onto a valid CPP name.
23892 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23894 # Sed expression to map a string onto a valid variable name.
23895 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23900 # Save the log message, to keep $[0] and so on meaningful, and to
23901 # report actual input values of CONFIG_FILES etc. instead of their
23902 # values after options handling.
23904 This file was extended by $as_me, which was
23905 generated by GNU Autoconf 2.61. Invocation command line was
23907 CONFIG_FILES = $CONFIG_FILES
23908 CONFIG_HEADERS = $CONFIG_HEADERS
23909 CONFIG_LINKS = $CONFIG_LINKS
23910 CONFIG_COMMANDS = $CONFIG_COMMANDS
23913 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23918 cat >>$CONFIG_STATUS <<_ACEOF
23919 # Files that config.status was made for.
23920 config_files="$ac_config_files"
23921 config_headers="$ac_config_headers"
23922 config_commands="$ac_config_commands"
23926 cat >>$CONFIG_STATUS <<\_ACEOF
23928 \`$as_me' instantiates files from templates according to the
23929 current configuration.
23931 Usage: $0 [OPTIONS] [FILE]...
23933 -h, --help print this help, then exit
23934 -V, --version print version number and configuration settings, then exit
23935 -q, --quiet do not print progress messages
23936 -d, --debug don't remove temporary files
23937 --recheck update $as_me by reconfiguring in the same conditions
23938 --file=FILE[:TEMPLATE]
23939 instantiate the configuration file FILE
23940 --header=FILE[:TEMPLATE]
23941 instantiate the configuration header FILE
23943 Configuration files:
23946 Configuration headers:
23949 Configuration commands:
23952 Report bugs to <bug-autoconf@gnu.org>."
23955 cat >>$CONFIG_STATUS <<_ACEOF
23958 configured by $0, generated by GNU Autoconf 2.61,
23959 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23961 Copyright (C) 2006 Free Software Foundation, Inc.
23962 This config.status script is free software; the Free Software Foundation
23963 gives unlimited permission to copy, distribute and modify it."
23971 cat >>$CONFIG_STATUS <<\_ACEOF
23972 # If no file are specified by the user, then we need to provide default
23973 # value. By we need to know if files were specified by the user.
23979 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23980 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23991 # Handling of the options.
23992 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23994 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23995 echo "$ac_cs_version"; exit ;;
23996 --debug | --debu | --deb | --de | --d | -d )
23998 --file | --fil | --fi | --f )
24000 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24001 ac_need_defaults=false;;
24002 --header | --heade | --head | --hea )
24004 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24005 ac_need_defaults=false;;
24007 # Conflict between --help and --header
24008 { echo "$as_me: error: ambiguous option: $1
24009 Try \`$0 --help' for more information." >&2
24010 { (exit 1); exit 1; }; };;
24011 --help | --hel | -h )
24012 echo "$ac_cs_usage"; exit ;;
24013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24014 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24017 # This is an error.
24018 -*) { echo "$as_me: error: unrecognized option: $1
24019 Try \`$0 --help' for more information." >&2
24020 { (exit 1); exit 1; }; } ;;
24022 *) ac_config_targets="$ac_config_targets $1"
24023 ac_need_defaults=false ;;
24029 ac_configure_extra_args=
24031 if $ac_cs_silent; then
24033 ac_configure_extra_args="$ac_configure_extra_args --silent"
24037 cat >>$CONFIG_STATUS <<_ACEOF
24038 if \$ac_cs_recheck; then
24039 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24040 CONFIG_SHELL=$SHELL
24041 export CONFIG_SHELL
24042 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24046 cat >>$CONFIG_STATUS <<\_ACEOF
24050 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24051 ## Running $as_me. ##
24057 cat >>$CONFIG_STATUS <<_ACEOF
24061 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24064 # The HP-UX ksh and POSIX shell print the target directory to stdout
24065 # if CDPATH is set.
24066 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24068 sed_quote_subst='$sed_quote_subst'
24069 double_quote_subst='$double_quote_subst'
24070 delay_variable_subst='$delay_variable_subst'
24071 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
24072 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
24073 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
24074 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
24075 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
24076 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
24077 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
24078 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
24079 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
24080 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
24081 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
24082 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
24083 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
24084 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
24085 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
24086 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
24087 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
24088 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
24089 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
24090 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
24091 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
24092 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
24093 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
24094 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
24095 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
24096 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
24097 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
24098 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
24099 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
24100 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
24101 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
24102 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
24103 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
24104 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
24105 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
24106 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
24107 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
24108 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24109 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24110 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
24111 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
24112 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
24113 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
24114 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
24115 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
24116 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
24117 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
24118 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
24119 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"`'
24120 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
24121 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
24122 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
24123 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
24124 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
24125 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
24126 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
24127 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
24128 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
24129 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
24130 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
24131 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
24132 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
24133 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
24134 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
24135 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24136 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
24137 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
24138 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
24139 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
24140 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
24141 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
24142 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24143 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
24144 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24145 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
24146 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24147 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
24148 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
24149 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
24150 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
24151 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
24152 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
24153 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
24154 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
24155 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
24156 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24157 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24158 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24159 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24160 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
24161 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24162 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24163 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24164 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24165 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24166 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24167 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24168 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24169 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24170 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24171 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24172 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24173 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24174 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24175 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24176 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24177 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24178 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24179 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24180 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24181 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24182 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24183 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24184 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
24185 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24186 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24187 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24188 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24189 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24190 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24193 LTCFLAGS='$LTCFLAGS'
24194 compiler='$compiler_DEFAULT'
24196 # A function that is used when there is no print builtin or printf.
24197 func_fallback_echo ()
24199 eval 'cat <<_LTECHO_EOF
24204 # Quote evaled strings.
24218 deplibs_check_method \
24227 lt_cv_sys_global_symbol_pipe \
24228 lt_cv_sys_global_symbol_to_cdecl \
24229 lt_cv_sys_global_symbol_to_c_name_address \
24230 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24231 lt_prog_compiler_no_builtin_flag \
24232 lt_prog_compiler_wl \
24233 lt_prog_compiler_pic \
24234 lt_prog_compiler_static \
24235 lt_cv_prog_compiler_c_o \
24243 export_dynamic_flag_spec \
24244 whole_archive_flag_spec \
24245 compiler_needs_object \
24247 allow_undefined_flag \
24248 no_undefined_flag \
24249 hardcode_libdir_flag_spec \
24250 hardcode_libdir_flag_spec_ld \
24251 hardcode_libdir_separator \
24256 variables_saved_for_relink \
24258 library_names_spec \
24260 install_override_mode \
24264 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24265 *[\\\\\\\`\\"\\\$]*)
24266 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
24269 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24274 # Double-quote double-evaled strings.
24275 for var in reload_cmds \
24276 old_postinstall_cmds \
24277 old_postuninstall_cmds \
24279 extract_expsyms_cmds \
24280 old_archive_from_new_cmds \
24281 old_archive_from_expsyms_cmds \
24283 archive_expsym_cmds \
24285 module_expsym_cmds \
24286 export_symbols_cmds \
24289 postuninstall_cmds \
24291 sys_lib_search_path_spec \
24292 sys_lib_dlsearch_path_spec; do
24293 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24294 *[\\\\\\\`\\"\\\$]*)
24295 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
24298 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24303 ac_aux_dir='$ac_aux_dir'
24304 xsi_shell='$xsi_shell'
24305 lt_shell_append='$lt_shell_append'
24307 # See if we are running on zsh, and set the options which allow our
24308 # commands through without removal of \ escapes INIT.
24309 if test -n "\${ZSH_VERSION+set}" ; then
24310 setopt NO_GLOB_SUBST
24316 TIMESTAMP='$TIMESTAMP'
24325 cat >>$CONFIG_STATUS <<\_ACEOF
24327 # Handling of arguments.
24328 for ac_config_target in $ac_config_targets
24330 case $ac_config_target in
24331 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24332 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24333 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24334 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24335 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24336 "sasldb/Makefile") CONFIG_FILES="$CONFIG_FILES sasldb/Makefile" ;;
24337 "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
24338 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
24339 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
24340 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24341 "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
24342 "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
24343 "java/CyrusSasl/Makefile") CONFIG_FILES="$CONFIG_FILES java/CyrusSasl/Makefile" ;;
24344 "java/Test/Makefile") CONFIG_FILES="$CONFIG_FILES java/Test/Makefile" ;;
24345 "java/javax/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/Makefile" ;;
24346 "java/javax/security/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/security/Makefile" ;;
24347 "java/javax/security/auth/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/security/auth/Makefile" ;;
24348 "java/javax/security/auth/callback/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/security/auth/callback/Makefile" ;;
24349 "pwcheck/Makefile") CONFIG_FILES="$CONFIG_FILES pwcheck/Makefile" ;;
24350 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24352 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24353 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24354 { (exit 1); exit 1; }; };;
24359 # If the user did not use the arguments to specify the items to instantiate,
24360 # then the envvar interface is used. Set only those that are not.
24361 # We use the long form for the default assignment because of an extremely
24362 # bizarre bug on SunOS 4.1.3.
24363 if $ac_need_defaults; then
24364 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24365 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24366 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24369 # Have a temporary directory for convenience. Make it in the build tree
24370 # simply because there is no reason against having it here, and in addition,
24371 # creating and moving files from /tmp can sometimes cause problems.
24372 # Hook for its removal unless debugging.
24373 # Note that there is a small window in which the directory will not be cleaned:
24374 # after its creation but before its name has been assigned to `$tmp'.
24378 trap 'exit_status=$?
24379 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24381 trap '{ (exit 1); exit 1; }' 1 2 13 15
24383 # Create a (secure) tmp directory for tmp files.
24386 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24387 test -n "$tmp" && test -d "$tmp"
24390 tmp=./conf$$-$RANDOM
24391 (umask 077 && mkdir "$tmp")
24394 echo "$me: cannot create a temporary directory in ." >&2
24395 { (exit 1); exit 1; }
24399 # Set up the sed scripts for CONFIG_FILES section.
24402 # No need to generate the scripts if there are no CONFIG_FILES.
24403 # This happens for instance when ./config.status config.h
24404 if test -n "$CONFIG_FILES"; then
24411 for ac_last_try in false false false false false :; do
24412 cat >conf$$subs.sed <<_ACEOF
24413 SHELL!$SHELL$ac_delim
24414 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24415 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24416 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24417 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24418 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24419 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24420 exec_prefix!$exec_prefix$ac_delim
24421 prefix!$prefix$ac_delim
24422 program_transform_name!$program_transform_name$ac_delim
24423 bindir!$bindir$ac_delim
24424 sbindir!$sbindir$ac_delim
24425 libexecdir!$libexecdir$ac_delim
24426 datarootdir!$datarootdir$ac_delim
24427 datadir!$datadir$ac_delim
24428 sysconfdir!$sysconfdir$ac_delim
24429 sharedstatedir!$sharedstatedir$ac_delim
24430 localstatedir!$localstatedir$ac_delim
24431 includedir!$includedir$ac_delim
24432 oldincludedir!$oldincludedir$ac_delim
24433 docdir!$docdir$ac_delim
24434 infodir!$infodir$ac_delim
24435 htmldir!$htmldir$ac_delim
24436 dvidir!$dvidir$ac_delim
24437 pdfdir!$pdfdir$ac_delim
24438 psdir!$psdir$ac_delim
24439 libdir!$libdir$ac_delim
24440 localedir!$localedir$ac_delim
24441 mandir!$mandir$ac_delim
24442 DEFS!$DEFS$ac_delim
24443 ECHO_C!$ECHO_C$ac_delim
24444 ECHO_N!$ECHO_N$ac_delim
24445 ECHO_T!$ECHO_T$ac_delim
24446 LIBS!$LIBS$ac_delim
24447 build_alias!$build_alias$ac_delim
24448 host_alias!$host_alias$ac_delim
24449 target_alias!$target_alias$ac_delim
24450 build!$build$ac_delim
24451 build_cpu!$build_cpu$ac_delim
24452 build_vendor!$build_vendor$ac_delim
24453 build_os!$build_os$ac_delim
24454 host!$host$ac_delim
24455 host_cpu!$host_cpu$ac_delim
24456 host_vendor!$host_vendor$ac_delim
24457 host_os!$host_os$ac_delim
24458 target!$target$ac_delim
24459 target_cpu!$target_cpu$ac_delim
24460 target_vendor!$target_vendor$ac_delim
24461 target_os!$target_os$ac_delim
24462 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24463 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24464 INSTALL_DATA!$INSTALL_DATA$ac_delim
24465 am__isrc!$am__isrc$ac_delim
24466 CYGPATH_W!$CYGPATH_W$ac_delim
24467 PACKAGE!$PACKAGE$ac_delim
24468 VERSION!$VERSION$ac_delim
24469 ACLOCAL!$ACLOCAL$ac_delim
24470 AUTOCONF!$AUTOCONF$ac_delim
24471 AUTOMAKE!$AUTOMAKE$ac_delim
24472 AUTOHEADER!$AUTOHEADER$ac_delim
24473 MAKEINFO!$MAKEINFO$ac_delim
24474 install_sh!$install_sh$ac_delim
24475 STRIP!$STRIP$ac_delim
24476 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24477 mkdir_p!$mkdir_p$ac_delim
24479 SET_MAKE!$SET_MAKE$ac_delim
24480 am__leading_dot!$am__leading_dot$ac_delim
24481 AMTAR!$AMTAR$ac_delim
24482 am__tar!$am__tar$ac_delim
24483 am__untar!$am__untar$ac_delim
24485 CFLAGS!$CFLAGS$ac_delim
24486 LDFLAGS!$LDFLAGS$ac_delim
24487 CPPFLAGS!$CPPFLAGS$ac_delim
24488 ac_ct_CC!$ac_ct_CC$ac_delim
24489 EXEEXT!$EXEEXT$ac_delim
24490 OBJEXT!$OBJEXT$ac_delim
24491 DEPDIR!$DEPDIR$ac_delim
24492 am__include!$am__include$ac_delim
24493 am__quote!$am__quote$ac_delim
24494 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24495 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24496 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24497 CCDEPMODE!$CCDEPMODE$ac_delim
24498 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24499 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24501 LN_S!$LN_S$ac_delim
24502 LIBTOOL!$LIBTOOL$ac_delim
24504 GREP!$GREP$ac_delim
24505 EGREP!$EGREP$ac_delim
24506 FGREP!$FGREP$ac_delim
24508 DUMPBIN!$DUMPBIN$ac_delim
24509 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
24512 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24514 elif $ac_last_try; then
24515 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24516 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24517 { (exit 1); exit 1; }; }
24519 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24523 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24524 if test -n "$ac_eof"; then
24525 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24526 ac_eof=`expr $ac_eof + 1`
24529 cat >>$CONFIG_STATUS <<_ACEOF
24530 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24531 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24534 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24535 s/^/s,@/; s/!/@,|#_!!_#|/
24538 s/'"$ac_delim"'$/,g/; t
24540 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24541 ' >>$CONFIG_STATUS <conf$$subs.sed
24542 rm -f conf$$subs.sed
24543 cat >>$CONFIG_STATUS <<_ACEOF
24549 for ac_last_try in false false false false false :; do
24550 cat >conf$$subs.sed <<_ACEOF
24552 OBJDUMP!$OBJDUMP$ac_delim
24554 RANLIB!$RANLIB$ac_delim
24555 DSYMUTIL!$DSYMUTIL$ac_delim
24556 NMEDIT!$NMEDIT$ac_delim
24557 LIPO!$LIPO$ac_delim
24558 OTOOL!$OTOOL$ac_delim
24559 OTOOL64!$OTOOL64$ac_delim
24560 PURECOV!$PURECOV$ac_delim
24561 PURIFY!$PURIFY$ac_delim
24562 JAVAC!$JAVAC$ac_delim
24563 JAVAH!$JAVAH$ac_delim
24564 JAVADOC!$JAVADOC$ac_delim
24565 JAVA_TRUE!$JAVA_TRUE$ac_delim
24566 JAVA_FALSE!$JAVA_FALSE$ac_delim
24567 JAVA_INCLUDES!$JAVA_INCLUDES$ac_delim
24568 JAVAROOT!$JAVAROOT$ac_delim
24569 SAMPLE_TRUE!$SAMPLE_TRUE$ac_delim
24570 SAMPLE_FALSE!$SAMPLE_FALSE$ac_delim
24571 LIB_SOCKET!$LIB_SOCKET$ac_delim
24572 SASL_DB_UTILS!$SASL_DB_UTILS$ac_delim
24573 SASL_DB_MANS!$SASL_DB_MANS$ac_delim
24574 SASL_DB_BACKEND!$SASL_DB_BACKEND$ac_delim
24575 SASL_DB_BACKEND_STATIC!$SASL_DB_BACKEND_STATIC$ac_delim
24576 SASL_DB_INC!$SASL_DB_INC$ac_delim
24577 SASL_DB_LIB!$SASL_DB_LIB$ac_delim
24578 NO_SASL_DB_MANS_TRUE!$NO_SASL_DB_MANS_TRUE$ac_delim
24579 NO_SASL_DB_MANS_FALSE!$NO_SASL_DB_MANS_FALSE$ac_delim
24580 SASL_DL_LIB!$SASL_DL_LIB$ac_delim
24581 SASLAUTHD_TRUE!$SASLAUTHD_TRUE$ac_delim
24582 SASLAUTHD_FALSE!$SASLAUTHD_FALSE$ac_delim
24583 PWCHECKMETH!$PWCHECKMETH$ac_delim
24584 PWCHECK_TRUE!$PWCHECK_TRUE$ac_delim
24585 PWCHECK_FALSE!$PWCHECK_FALSE$ac_delim
24586 IPCTYPE!$IPCTYPE$ac_delim
24587 LIB_DOOR!$LIB_DOOR$ac_delim
24588 CMU_LIB_SUBDIR!$CMU_LIB_SUBDIR$ac_delim
24589 LIB_DES!$LIB_DES$ac_delim
24590 OTP_LIBS!$OTP_LIBS$ac_delim
24591 SRP_LIBS!$SRP_LIBS$ac_delim
24592 SASL_KRB_LIB!$SASL_KRB_LIB$ac_delim
24593 LIB_CRYPT!$LIB_CRYPT$ac_delim
24594 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
24595 GSSAPIBASE_LIBS!$GSSAPIBASE_LIBS$ac_delim
24596 PLAIN_LIBS!$PLAIN_LIBS$ac_delim
24597 NTLM_LIBS!$NTLM_LIBS$ac_delim
24598 PASSDSS_LIBS!$PASSDSS_LIBS$ac_delim
24599 LIB_MYSQL!$LIB_MYSQL$ac_delim
24600 LIB_PGSQL!$LIB_PGSQL$ac_delim
24601 LIB_SQLITE!$LIB_SQLITE$ac_delim
24602 LIB_LDAP!$LIB_LDAP$ac_delim
24603 SASL_MECHS!$SASL_MECHS$ac_delim
24604 SASL_STATIC_SRCS!$SASL_STATIC_SRCS$ac_delim
24605 SASL_STATIC_OBJS!$SASL_STATIC_OBJS$ac_delim
24606 SASL_STATIC_LIBS!$SASL_STATIC_LIBS$ac_delim
24607 plugindir!$plugindir$ac_delim
24608 configdir!$configdir$ac_delim
24609 MACOSX_TRUE!$MACOSX_TRUE$ac_delim
24610 MACOSX_FALSE!$MACOSX_FALSE$ac_delim
24611 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
24612 SFIO_INC_FLAGS!$SFIO_INC_FLAGS$ac_delim
24613 SFIO_LIB_FLAGS!$SFIO_LIB_FLAGS$ac_delim
24614 SMTPTEST_PROGRAM!$SMTPTEST_PROGRAM$ac_delim
24615 SASL_UTIL_LIBS_EXTRA!$SASL_UTIL_LIBS_EXTRA$ac_delim
24616 SASL_UTIL_HEADERS_EXTRA!$SASL_UTIL_HEADERS_EXTRA$ac_delim
24617 LIBOBJS!$LIBOBJS$ac_delim
24618 GETSUBOPT!$GETSUBOPT$ac_delim
24619 SNPRINTFOBJS!$SNPRINTFOBJS$ac_delim
24620 LTSNPRINTFOBJS!$LTSNPRINTFOBJS$ac_delim
24621 GETADDRINFOOBJS!$GETADDRINFOOBJS$ac_delim
24622 LTGETADDRINFOOBJS!$LTGETADDRINFOOBJS$ac_delim
24623 GETNAMEINFOOBJS!$GETNAMEINFOOBJS$ac_delim
24624 LTGETNAMEINFOOBJS!$LTGETNAMEINFOOBJS$ac_delim
24625 LTLIBOBJS!$LTLIBOBJS$ac_delim
24626 DIRS!$DIRS$ac_delim
24627 subdirs!$subdirs$ac_delim
24630 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
24632 elif $ac_last_try; then
24633 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24634 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24635 { (exit 1); exit 1; }; }
24637 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24641 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24642 if test -n "$ac_eof"; then
24643 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24644 ac_eof=`expr $ac_eof + 1`
24647 cat >>$CONFIG_STATUS <<_ACEOF
24648 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24649 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24652 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24653 s/^/s,@/; s/!/@,|#_!!_#|/
24656 s/'"$ac_delim"'$/,g/; t
24658 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24659 ' >>$CONFIG_STATUS <conf$$subs.sed
24660 rm -f conf$$subs.sed
24661 cat >>$CONFIG_STATUS <<_ACEOF
24668 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24669 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24670 # trailing colons and then remove the whole line if VPATH becomes empty
24671 # (actually we leave an empty line to preserve line numbers).
24672 if test "x$srcdir" = x.; then
24673 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24674 s/:*\$(srcdir):*/:/
24675 s/:*\${srcdir}:*/:/
24677 s/^\([^=]*=[ ]*\):*/\1/
24683 cat >>$CONFIG_STATUS <<\_ACEOF
24684 fi # test -n "$CONFIG_FILES"
24687 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24690 :[FHLC]) ac_mode=$ac_tag; continue;;
24692 case $ac_mode$ac_tag in
24694 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24695 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24696 { (exit 1); exit 1; }; };;
24697 :[FH]-) ac_tag=-:-;;
24698 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24715 -) ac_f="$tmp/stdin";;
24716 *) # Look for the file first in the build tree, then in the source tree
24717 # (if the path is not absolute). The absolute path cannot be DOS-style,
24718 # because $ac_f cannot contain `:'.
24722 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24724 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24725 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24726 { (exit 1); exit 1; }; };;
24728 ac_file_inputs="$ac_file_inputs $ac_f"
24731 # Let's still pretend it is `configure' which instantiates (i.e., don't
24732 # use $as_me), people would be surprised to read:
24733 # /* config.h. Generated by config.status. */
24734 configure_input="Generated from "`IFS=:
24735 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24736 if test x"$ac_file" != x-; then
24737 configure_input="$ac_file. $configure_input"
24738 { echo "$as_me:$LINENO: creating $ac_file" >&5
24739 echo "$as_me: creating $ac_file" >&6;}
24743 *:-:* | *:-) cat >"$tmp/stdin";;
24748 ac_dir=`$as_dirname -- "$ac_file" ||
24749 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24750 X"$ac_file" : 'X\(//\)[^/]' \| \
24751 X"$ac_file" : 'X\(//\)$' \| \
24752 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24758 /^X\(\/\/\)[^/].*/{
24773 -*) as_dir=./$as_dir;;
24775 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24779 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24780 *) as_qdir=$as_dir;;
24782 as_dirs="'$as_qdir' $as_dirs"
24783 as_dir=`$as_dirname -- "$as_dir" ||
24784 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24785 X"$as_dir" : 'X\(//\)[^/]' \| \
24786 X"$as_dir" : 'X\(//\)$' \| \
24787 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24793 /^X\(\/\/\)[^/].*/{
24806 test -d "$as_dir" && break
24808 test -z "$as_dirs" || eval "mkdir $as_dirs"
24809 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24810 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24811 { (exit 1); exit 1; }; }; }
24815 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24817 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24818 # A ".." for each directory in $ac_dir_suffix.
24819 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24820 case $ac_top_builddir_sub in
24821 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24822 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24825 ac_abs_top_builddir=$ac_pwd
24826 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24827 # for backward compatibility:
24828 ac_top_builddir=$ac_top_build_prefix
24831 .) # We are building in place.
24833 ac_top_srcdir=$ac_top_builddir_sub
24834 ac_abs_top_srcdir=$ac_pwd ;;
24835 [\\/]* | ?:[\\/]* ) # Absolute name.
24836 ac_srcdir=$srcdir$ac_dir_suffix;
24837 ac_top_srcdir=$srcdir
24838 ac_abs_top_srcdir=$srcdir ;;
24839 *) # Relative name.
24840 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24841 ac_top_srcdir=$ac_top_build_prefix$srcdir
24842 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24844 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24854 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24855 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24857 ac_MKDIR_P=$MKDIR_P
24859 [\\/$]* | ?:[\\/]* ) ;;
24860 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24864 cat >>$CONFIG_STATUS <<\_ACEOF
24865 # If the template does not know about datarootdir, expand it.
24866 # FIXME: This hack should be removed a few years after 2.60.
24867 ac_datarootdir_hack=; ac_datarootdir_seen=
24869 case `sed -n '/datarootdir/ {
24878 ' $ac_file_inputs` in
24879 *datarootdir*) ac_datarootdir_seen=yes;;
24880 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24881 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24882 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24884 cat >>$CONFIG_STATUS <<_ACEOF
24885 ac_datarootdir_hack='
24886 s&@datadir@&$datadir&g
24887 s&@docdir@&$docdir&g
24888 s&@infodir@&$infodir&g
24889 s&@localedir@&$localedir&g
24890 s&@mandir@&$mandir&g
24891 s&\\\${datarootdir}&$datarootdir&g' ;;
24895 # Neutralize VPATH when `$srcdir' = `.'.
24896 # Shell code in configure.ac might set extrasub.
24897 # FIXME: do we really want to maintain this feature?
24898 cat >>$CONFIG_STATUS <<_ACEOF
24902 cat >>$CONFIG_STATUS <<\_ACEOF
24904 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24905 s&@configure_input@&$configure_input&;t t
24906 s&@top_builddir@&$ac_top_builddir_sub&;t t
24907 s&@srcdir@&$ac_srcdir&;t t
24908 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24909 s&@top_srcdir@&$ac_top_srcdir&;t t
24910 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24911 s&@builddir@&$ac_builddir&;t t
24912 s&@abs_builddir@&$ac_abs_builddir&;t t
24913 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24914 s&@INSTALL@&$ac_INSTALL&;t t
24915 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24916 $ac_datarootdir_hack
24917 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24919 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24920 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24921 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24922 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24923 which seems to be undefined. Please make sure it is defined." >&5
24924 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24925 which seems to be undefined. Please make sure it is defined." >&2;}
24929 -) cat "$tmp/out"; rm -f "$tmp/out";;
24930 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24939 # Transform confdefs.h into a sed script `conftest.defines', that
24940 # substitutes the proper values into config.h.in to produce config.h.
24941 rm -f conftest.defines conftest.tail
24942 # First, append a space to every undef/define line, to ease matching.
24943 echo 's/$/ /' >conftest.defines
24944 # Then, protect against being on the right side of a sed subst, or in
24945 # an unquoted here document, in config.status. If some macros were
24946 # called several times there might be several #defines for the same
24947 # symbol, which is useless. But do not sort them, since the last
24948 # AC_DEFINE must be honored.
24949 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24950 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24951 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24952 # PARAMS is the parameter list in the macro definition--in most cases, it's
24953 # just an empty string.
24954 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24955 ac_dB='\\)[ (].*,\\1define\\2'
24963 s/^[ ]*#[ ]*define[ ][ ]*//
24968 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24969 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24970 ' >>conftest.defines
24972 # Remove the space that was appended to ease matching.
24973 # Then replace #undef with comments. This is necessary, for
24974 # example, in the case of _POSIX_SOURCE, which is predefined and required
24975 # on some systems where configure will not decide to define it.
24976 # (The regexp can be short, since the line contains either #define or #undef.)
24978 s,^[ #]*u.*,/* & */,' >>conftest.defines
24980 # Break up conftest.defines:
24981 ac_max_sed_lines=50
24983 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24984 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24985 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24987 ac_in='$ac_file_inputs'
24988 ac_out='"$tmp/out1"'
24989 ac_nxt='"$tmp/out2"'
24993 # Write a here document:
24994 cat >>$CONFIG_STATUS <<_ACEOF
24995 # First, check the format of the line:
24996 cat >"\$tmp/defines.sed" <<\\CEOF
24997 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24998 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25002 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25004 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25005 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25006 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25007 grep . conftest.tail >/dev/null || break
25008 rm -f conftest.defines
25009 mv conftest.tail conftest.defines
25011 rm -f conftest.defines conftest.tail
25013 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25014 cat >>$CONFIG_STATUS <<\_ACEOF
25015 if test x"$ac_file" != x-; then
25016 echo "/* $configure_input */" >"$tmp/config.h"
25017 cat "$ac_result" >>"$tmp/config.h"
25018 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25019 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25020 echo "$as_me: $ac_file is unchanged" >&6;}
25023 mv "$tmp/config.h" $ac_file
25026 echo "/* $configure_input */"
25030 # Compute $ac_file's index in $config_headers.
25032 for _am_header in $config_headers :; do
25033 case $_am_header in
25034 $ac_file | $ac_file:* )
25037 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25040 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
25041 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25042 X$ac_file : 'X\(//\)[^/]' \| \
25043 X$ac_file : 'X\(//\)$' \| \
25044 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
25046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25050 /^X\(\/\/\)[^/].*/{
25062 s/.*/./; q'`/stamp-h$_am_stamp_count
25065 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25066 echo "$as_me: executing $ac_file commands" >&6;}
25071 case $ac_file$ac_mode in
25072 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25073 # Strip MF so we end up with the name of the file.
25074 mf=`echo "$mf" | sed -e 's/:.*$//'`
25075 # Check whether this is an Automake generated Makefile or not.
25076 # We used to match only the files named `Makefile.in', but
25077 # some people rename them; so instead we look at the file content.
25078 # Grep'ing the first line is not enough: some people post-process
25079 # each Makefile.in and add a new line on top of each file to say so.
25080 # Grep'ing the whole file is not good either: AIX grep has a line
25081 # limit of 2048, but all sed's we know have understand at least 4000.
25082 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
25083 dirpart=`$as_dirname -- "$mf" ||
25084 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25085 X"$mf" : 'X\(//\)[^/]' \| \
25086 X"$mf" : 'X\(//\)$' \| \
25087 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25093 /^X\(\/\/\)[^/].*/{
25109 # Extract the definition of DEPDIR, am__include, and am__quote
25110 # from the Makefile without running `make'.
25111 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25112 test -z "$DEPDIR" && continue
25113 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25114 test -z "am__include" && continue
25115 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25116 # When using ansi2knr, U may be empty or an underscore; expand it
25117 U=`sed -n 's/^U = //p' < "$mf"`
25118 # Find all dependency output files, they are included files with
25119 # $(DEPDIR) in their names. We invoke sed twice because it is the
25120 # simplest approach to changing $(DEPDIR) to its actual value in the
25122 for file in `sed -n "
25123 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25124 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25125 # Make sure the directory exists.
25126 test -f "$dirpart/$file" && continue
25127 fdir=`$as_dirname -- "$file" ||
25128 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25129 X"$file" : 'X\(//\)[^/]' \| \
25130 X"$file" : 'X\(//\)$' \| \
25131 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25137 /^X\(\/\/\)[^/].*/{
25150 { as_dir=$dirpart/$fdir
25152 -*) as_dir=./$as_dir;;
25154 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25158 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25159 *) as_qdir=$as_dir;;
25161 as_dirs="'$as_qdir' $as_dirs"
25162 as_dir=`$as_dirname -- "$as_dir" ||
25163 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25164 X"$as_dir" : 'X\(//\)[^/]' \| \
25165 X"$as_dir" : 'X\(//\)$' \| \
25166 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25172 /^X\(\/\/\)[^/].*/{
25185 test -d "$as_dir" && break
25187 test -z "$as_dirs" || eval "mkdir $as_dirs"
25188 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25189 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25190 { (exit 1); exit 1; }; }; }
25191 # echo "creating $dirpart/$file"
25192 echo '# dummy' > "$dirpart/$file"
25198 # See if we are running on zsh, and set the options which allow our
25199 # commands through without removal of \ escapes.
25200 if test -n "${ZSH_VERSION+set}" ; then
25201 setopt NO_GLOB_SUBST
25204 cfgfile="${ofile}T"
25205 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25208 cat <<_LT_EOF >> "$cfgfile"
25211 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
25212 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
25213 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25214 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
25216 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
25217 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
25219 # Written by Gordon Matzigkeit, 1996
25221 # This file is part of GNU Libtool.
25223 # GNU Libtool is free software; you can redistribute it and/or
25224 # modify it under the terms of the GNU General Public License as
25225 # published by the Free Software Foundation; either version 2 of
25226 # the License, or (at your option) any later version.
25228 # As a special exception to the GNU General Public License,
25229 # if you distribute this file as part of a program or library that
25230 # is built using GNU Libtool, you may include this file under the
25231 # same distribution terms that you use for the rest of that program.
25233 # GNU Libtool is distributed in the hope that it will be useful,
25234 # but WITHOUT ANY WARRANTY; without even the implied warranty of
25235 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25236 # GNU General Public License for more details.
25238 # You should have received a copy of the GNU General Public License
25239 # along with GNU Libtool; see the file COPYING. If not, a copy
25240 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
25241 # obtained by writing to the Free Software Foundation, Inc.,
25242 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25245 # The names of the tagged configurations supported by this script.
25248 # ### BEGIN LIBTOOL CONFIG
25250 # Whether or not to build static libraries.
25251 build_old_libs=$enable_static
25253 # Which release of libtool.m4 was used?
25254 macro_version=$macro_version
25255 macro_revision=$macro_revision
25257 # Whether or not to build shared libraries.
25258 build_libtool_libs=$enable_shared
25260 # What type of objects to build.
25263 # Whether or not to optimize for fast installation.
25264 fast_install=$enable_fast_install
25266 # Shell to use when invoking shell scripts.
25269 # An echo program that protects backslashes.
25273 host_alias=$host_alias
25277 # The build system.
25278 build_alias=$build_alias
25282 # A sed program that does not truncate output.
25285 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
25286 Xsed="\$SED -e 1s/^X//"
25288 # A grep program that handles long lines.
25294 # A literal string matcher.
25297 # A BSD- or MS-compatible name lister.
25300 # Whether we need soft or hard links.
25303 # What is the maximum length of a command?
25304 max_cmd_len=$max_cmd_len
25306 # Object file suffix (normally "o").
25309 # Executable file suffix (normally "").
25312 # whether the shell understands "unset".
25315 # turn spaces into newlines.
25318 # turn newlines into spaces.
25321 # An object symbol dumper.
25322 OBJDUMP=$lt_OBJDUMP
25324 # Method to check whether dependent libraries are shared objects.
25325 deplibs_check_method=$lt_deplibs_check_method
25327 # Command to use when deplibs_check_method == "file_magic".
25328 file_magic_cmd=$lt_file_magic_cmd
25332 AR_FLAGS=$lt_AR_FLAGS
25334 # A symbol stripping program.
25337 # Commands used to install an old-style archive.
25339 old_postinstall_cmds=$lt_old_postinstall_cmds
25340 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25342 # Whether to use a lock for old archive extraction.
25343 lock_old_archive_extraction=$lock_old_archive_extraction
25348 # LTCC compiler flags.
25349 LTCFLAGS=$lt_CFLAGS
25351 # Take the output of nm and produce a listing of raw symbols and C names.
25352 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25354 # Transform the output of nm in a proper C declaration.
25355 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25357 # Transform the output of nm in a C name address pair.
25358 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25360 # Transform the output of nm in a C name address pair when lib prefix is needed.
25361 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25363 # The name of the directory that contains temporary libtool files.
25366 # Used to examine libraries when file_magic_cmd begins with "file".
25367 MAGIC_CMD=$MAGIC_CMD
25369 # Must we lock files when doing compilation?
25370 need_locks=$lt_need_locks
25372 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25373 DSYMUTIL=$lt_DSYMUTIL
25375 # Tool to change global to local symbols on Mac OS X.
25378 # Tool to manipulate fat objects and archives on Mac OS X.
25381 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
25384 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25385 OTOOL64=$lt_OTOOL64
25387 # Old archive suffix (normally "a").
25390 # Shared library suffix (normally ".so").
25391 shrext_cmds=$lt_shrext_cmds
25393 # The commands to extract the exported symbol list from a shared archive.
25394 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25396 # Variables whose values should be saved in libtool wrapper scripts and
25397 # restored at link time.
25398 variables_saved_for_relink=$lt_variables_saved_for_relink
25400 # Do we need the "lib" prefix for modules?
25401 need_lib_prefix=$need_lib_prefix
25403 # Do we need a version for libraries?
25404 need_version=$need_version
25406 # Library versioning type.
25407 version_type=$version_type
25409 # Shared library runtime path variable.
25410 runpath_var=$runpath_var
25412 # Shared library path variable.
25413 shlibpath_var=$shlibpath_var
25415 # Is shlibpath searched before the hard-coded library search path?
25416 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25418 # Format of library name prefix.
25419 libname_spec=$lt_libname_spec
25421 # List of archive names. First name is the real one, the rest are links.
25422 # The last name is the one that the linker finds with -lNAME
25423 library_names_spec=$lt_library_names_spec
25425 # The coded name of the library, if different from the real name.
25426 soname_spec=$lt_soname_spec
25428 # Permission mode override for installation of shared libraries.
25429 install_override_mode=$lt_install_override_mode
25431 # Command to use after installation of a shared archive.
25432 postinstall_cmds=$lt_postinstall_cmds
25434 # Command to use after uninstallation of a shared archive.
25435 postuninstall_cmds=$lt_postuninstall_cmds
25437 # Commands used to finish a libtool library installation in a directory.
25438 finish_cmds=$lt_finish_cmds
25440 # As "finish_cmds", except a single script fragment to be evaled but
25442 finish_eval=$lt_finish_eval
25444 # Whether we should hardcode library paths into libraries.
25445 hardcode_into_libs=$hardcode_into_libs
25447 # Compile-time system search path for libraries.
25448 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25450 # Run-time system search path for libraries.
25451 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25453 # Whether dlopen is supported.
25454 dlopen_support=$enable_dlopen
25456 # Whether dlopen of programs is supported.
25457 dlopen_self=$enable_dlopen_self
25459 # Whether dlopen of statically linked programs is supported.
25460 dlopen_self_static=$enable_dlopen_self_static
25462 # Commands to strip libraries.
25463 old_striplib=$lt_old_striplib
25464 striplib=$lt_striplib
25467 # The linker used to build libraries.
25470 # How to create reloadable object files.
25471 reload_flag=$lt_reload_flag
25472 reload_cmds=$lt_reload_cmds
25474 # Commands used to build an old-style archive.
25475 old_archive_cmds=$lt_old_archive_cmds
25477 # A language specific compiler.
25480 # Is the compiler the GNU compiler?
25483 # Compiler flag to turn off builtin functions.
25484 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25486 # How to pass a linker flag through the compiler.
25487 wl=$lt_lt_prog_compiler_wl
25489 # Additional compiler flags for building library objects.
25490 pic_flag=$lt_lt_prog_compiler_pic
25492 # Compiler flag to prevent dynamic linking.
25493 link_static_flag=$lt_lt_prog_compiler_static
25495 # Does compiler simultaneously support -c and -o options?
25496 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25498 # Whether or not to add -lc for building shared libraries.
25499 build_libtool_need_lc=$archive_cmds_need_lc
25501 # Whether or not to disallow shared libs when runtime libs are static.
25502 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25504 # Compiler flag to allow reflexive dlopens.
25505 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25507 # Compiler flag to generate shared objects directly from archives.
25508 whole_archive_flag_spec=$lt_whole_archive_flag_spec
25510 # Whether the compiler copes with passing no objects directly.
25511 compiler_needs_object=$lt_compiler_needs_object
25513 # Create an old-style archive from a shared archive.
25514 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25516 # Create a temporary old-style archive to link instead of a shared archive.
25517 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25519 # Commands used to build a shared archive.
25520 archive_cmds=$lt_archive_cmds
25521 archive_expsym_cmds=$lt_archive_expsym_cmds
25523 # Commands used to build a loadable module if different from building
25524 # a shared archive.
25525 module_cmds=$lt_module_cmds
25526 module_expsym_cmds=$lt_module_expsym_cmds
25528 # Whether we are building with GNU ld or not.
25529 with_gnu_ld=$lt_with_gnu_ld
25531 # Flag that allows shared libraries with undefined symbols to be built.
25532 allow_undefined_flag=$lt_allow_undefined_flag
25534 # Flag that enforces no undefined symbols.
25535 no_undefined_flag=$lt_no_undefined_flag
25537 # Flag to hardcode \$libdir into a binary during linking.
25538 # This must work even if \$libdir does not exist
25539 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25541 # If ld is used when linking, flag to hardcode \$libdir into a binary
25542 # during linking. This must work even if \$libdir does not exist.
25543 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
25545 # Whether we need a single "-rpath" flag with a separated argument.
25546 hardcode_libdir_separator=$lt_hardcode_libdir_separator
25548 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25549 # DIR into the resulting binary.
25550 hardcode_direct=$hardcode_direct
25552 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25553 # DIR into the resulting binary and the resulting library dependency is
25554 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
25555 # library is relocated.
25556 hardcode_direct_absolute=$hardcode_direct_absolute
25558 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25559 # into the resulting binary.
25560 hardcode_minus_L=$hardcode_minus_L
25562 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25563 # into the resulting binary.
25564 hardcode_shlibpath_var=$hardcode_shlibpath_var
25566 # Set to "yes" if building a shared library automatically hardcodes DIR
25567 # into the library and all subsequent libraries and executables linked
25569 hardcode_automatic=$hardcode_automatic
25571 # Set to yes if linker adds runtime paths of dependent libraries
25572 # to runtime path list.
25573 inherit_rpath=$inherit_rpath
25575 # Whether libtool must link a program against all its dependency libraries.
25576 link_all_deplibs=$link_all_deplibs
25578 # Fix the shell variable \$srcfile for the compiler.
25579 fix_srcfile_path=$lt_fix_srcfile_path
25581 # Set to "yes" if exported symbols are required.
25582 always_export_symbols=$always_export_symbols
25584 # The commands to list exported symbols.
25585 export_symbols_cmds=$lt_export_symbols_cmds
25587 # Symbols that should not be listed in the preloaded symbols.
25588 exclude_expsyms=$lt_exclude_expsyms
25590 # Symbols that must always be exported.
25591 include_expsyms=$lt_include_expsyms
25593 # Commands necessary for linking programs (against libraries) with templates.
25594 prelink_cmds=$lt_prelink_cmds
25596 # Specify filename containing input files.
25597 file_list_spec=$lt_file_list_spec
25599 # How to hardcode a shared library path into an executable.
25600 hardcode_action=$hardcode_action
25602 # ### END LIBTOOL CONFIG
25608 cat <<\_LT_EOF >> "$cfgfile"
25609 # AIX sometimes has problems with the GCC collect2 program. For some
25610 # reason, if we set the COLLECT_NAMES environment variable, the problems
25611 # vanish in a puff of smoke.
25612 if test "X${COLLECT_NAMES+set}" != Xset; then
25614 export COLLECT_NAMES
25621 ltmain="$ac_aux_dir/ltmain.sh"
25624 # We use sed instead of cat because bash on DJGPP gets confused if
25625 # if finds mixed CR/LF and LF-only lines. Since sed operates in
25626 # text mode, it properly converts lines to CR/LF. This bash problem
25627 # is reportedly fixed, but why not run on old versions too?
25628 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
25629 || (rm -f "$cfgfile"; exit 1)
25633 cat << \_LT_EOF >> "$cfgfile"
25635 # func_dirname file append nondir_replacement
25636 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
25637 # otherwise set result to NONDIR_REPLACEMENT.
25641 */*) func_dirname_result="${1%/*}${2}" ;;
25642 * ) func_dirname_result="${3}" ;;
25646 # func_basename file
25649 func_basename_result="${1##*/}"
25652 # func_dirname_and_basename file append nondir_replacement
25653 # perform func_basename and func_dirname in a single function
25655 # dirname: Compute the dirname of FILE. If nonempty,
25656 # add APPEND to the result, otherwise set result
25657 # to NONDIR_REPLACEMENT.
25658 # value returned in "$func_dirname_result"
25659 # basename: Compute filename of FILE.
25660 # value retuned in "$func_basename_result"
25661 # Implementation must be kept synchronized with func_dirname
25662 # and func_basename. For efficiency, we do not delegate to
25663 # those functions but instead duplicate the functionality here.
25664 func_dirname_and_basename ()
25667 */*) func_dirname_result="${1%/*}${2}" ;;
25668 * ) func_dirname_result="${3}" ;;
25670 func_basename_result="${1##*/}"
25673 # func_stripname prefix suffix name
25674 # strip PREFIX and SUFFIX off of NAME.
25675 # PREFIX and SUFFIX must not contain globbing or regex special
25676 # characters, hashes, percent signs, but SUFFIX may contain a leading
25677 # dot (in which case that matches only a dot).
25680 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
25681 # positional parameters, so assign one to ordinary parameter first.
25682 func_stripname_result=${3}
25683 func_stripname_result=${func_stripname_result#"${1}"}
25684 func_stripname_result=${func_stripname_result%"${2}"}
25690 func_opt_split_opt=${1%%=*}
25691 func_opt_split_arg=${1#*=}
25698 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
25699 *) func_lo2o_result=${1} ;;
25703 # func_xform libobj-or-source
25706 func_xform_result=${1%.*}.lo
25709 # func_arith arithmetic-term...
25712 func_arith_result=$(( $* ))
25716 # STRING may not start with a hyphen.
25719 func_len_result=${#1}
25724 *) # Bourne compatible functions.
25725 cat << \_LT_EOF >> "$cfgfile"
25727 # func_dirname file append nondir_replacement
25728 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
25729 # otherwise set result to NONDIR_REPLACEMENT.
25732 # Extract subdirectory from the argument.
25733 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
25734 if test "X$func_dirname_result" = "X${1}"; then
25735 func_dirname_result="${3}"
25737 func_dirname_result="$func_dirname_result${2}"
25741 # func_basename file
25744 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
25748 # func_stripname prefix suffix name
25749 # strip PREFIX and SUFFIX off of NAME.
25750 # PREFIX and SUFFIX must not contain globbing or regex special
25751 # characters, hashes, percent signs, but SUFFIX may contain a leading
25752 # dot (in which case that matches only a dot).
25753 # func_strip_suffix prefix name
25757 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
25758 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
25763 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
25764 my_sed_long_arg='1s/^-[^=]*=//'
25769 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
25770 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
25776 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
25779 # func_xform libobj-or-source
25782 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
25785 # func_arith arithmetic-term...
25788 func_arith_result=`expr "$@"`
25792 # STRING may not start with a hyphen.
25795 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
25801 case $lt_shell_append in
25803 cat << \_LT_EOF >> "$cfgfile"
25805 # func_append var value
25806 # Append VALUE to the end of shell variable VAR.
25814 cat << \_LT_EOF >> "$cfgfile"
25816 # func_append var value
25817 # Append VALUE to the end of shell variable VAR.
25828 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
25829 || (rm -f "$cfgfile"; exit 1)
25831 mv -f "$cfgfile" "$ofile" ||
25832 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25841 { (exit 0); exit 0; }
25843 chmod +x $CONFIG_STATUS
25844 ac_clean_files=$ac_clean_files_save
25847 # configure is writing to config.log, and then calls config.status.
25848 # config.status does its own redirection, appending to config.log.
25849 # Unfortunately, on DOS this fails, as config.log is still kept open
25850 # by configure, so config.status won't be able to write to it; its
25851 # output is simply discarded. So we exec the FD to /dev/null,
25852 # effectively closing config.log, so it can be properly (re)opened and
25853 # appended to by config.status. When coming back to configure, we
25854 # need to make the FD available again.
25855 if test "$no_create" != yes; then
25857 ac_config_status_args=
25858 test "$silent" = yes &&
25859 ac_config_status_args="$ac_config_status_args --quiet"
25861 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25863 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25864 # would make configure fail if this is the last instruction.
25865 $ac_cs_success || { (exit 1); exit 1; }
25869 # CONFIG_SUBDIRS section.
25871 if test "$no_recursion" != yes; then
25873 # Remove --cache-file and --srcdir arguments so they do not pile up.
25874 ac_sub_configure_args=
25876 eval "set x $ac_configure_args"
25880 if test -n "$ac_prev"; then
25885 -cache-file | --cache-file | --cache-fil | --cache-fi \
25886 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25887 ac_prev=cache_file ;;
25888 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25889 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25892 --config-cache | -C)
25894 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25896 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25898 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25900 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25904 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25906 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
25910 # Always prepend --prefix to ensure using the same prefix
25911 # in subdir configurations.
25912 ac_arg="--prefix=$prefix"
25914 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25916 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
25919 if test "$silent" = yes; then
25920 ac_sub_configure_args="--silent $ac_sub_configure_args"
25924 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25926 # Do not complain, so a configure script can configure whichever
25927 # parts of a large source tree are present.
25928 test -d "$srcdir/$ac_dir" || continue
25930 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
25931 echo "$as_me:$LINENO: $ac_msg" >&5
25935 -*) as_dir=./$as_dir;;
25937 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25941 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25942 *) as_qdir=$as_dir;;
25944 as_dirs="'$as_qdir' $as_dirs"
25945 as_dir=`$as_dirname -- "$as_dir" ||
25946 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25947 X"$as_dir" : 'X\(//\)[^/]' \| \
25948 X"$as_dir" : 'X\(//\)$' \| \
25949 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25955 /^X\(\/\/\)[^/].*/{
25968 test -d "$as_dir" && break
25970 test -z "$as_dirs" || eval "mkdir $as_dirs"
25971 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25972 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25973 { (exit 1); exit 1; }; }; }
25977 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25979 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25980 # A ".." for each directory in $ac_dir_suffix.
25981 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25982 case $ac_top_builddir_sub in
25983 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25984 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25987 ac_abs_top_builddir=$ac_pwd
25988 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25989 # for backward compatibility:
25990 ac_top_builddir=$ac_top_build_prefix
25993 .) # We are building in place.
25995 ac_top_srcdir=$ac_top_builddir_sub
25996 ac_abs_top_srcdir=$ac_pwd ;;
25997 [\\/]* | ?:[\\/]* ) # Absolute name.
25998 ac_srcdir=$srcdir$ac_dir_suffix;
25999 ac_top_srcdir=$srcdir
26000 ac_abs_top_srcdir=$srcdir ;;
26001 *) # Relative name.
26002 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26003 ac_top_srcdir=$ac_top_build_prefix$srcdir
26004 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26006 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26011 # Check for guested configure; otherwise get Cygnus style configure.
26012 if test -f "$ac_srcdir/configure.gnu"; then
26013 ac_sub_configure=$ac_srcdir/configure.gnu
26014 elif test -f "$ac_srcdir/configure"; then
26015 ac_sub_configure=$ac_srcdir/configure
26016 elif test -f "$ac_srcdir/configure.in"; then
26017 # This should be Cygnus configure.
26018 ac_sub_configure=$ac_aux_dir/configure
26020 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26021 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26025 # The recursion is here.
26026 if test -n "$ac_sub_configure"; then
26027 # Make the cache file name correct relative to the subdirectory.
26028 case $cache_file in
26029 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26030 *) # Relative name.
26031 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
26034 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26035 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26036 # The eval makes quoting arguments work.
26037 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
26038 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
26039 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26040 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26041 { (exit 1); exit 1; }; }
26049 echo Configuration Complete. Type \'make\' to build.